@webwriter/quiz 1.0.3 → 1.0.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/LICENSE +6 -6
  2. package/custom.d.ts +175 -175
  3. package/dist/widgets/webwriter-choice-item.js +58 -13
  4. package/dist/widgets/webwriter-choice.js +64 -19
  5. package/dist/widgets/webwriter-cloze-gap.js +59 -14
  6. package/dist/widgets/webwriter-cloze.js +56 -11
  7. package/dist/widgets/webwriter-mark.js +56 -11
  8. package/dist/widgets/webwriter-order-item.js +56 -11
  9. package/dist/widgets/webwriter-order.js +64 -19
  10. package/dist/widgets/webwriter-pairing.js +59 -14
  11. package/dist/widgets/webwriter-quiz.js +67 -22
  12. package/dist/widgets/webwriter-speech.js +66 -20
  13. package/dist/widgets/webwriter-task.js +534 -308
  14. package/dist/widgets/webwriter-text.js +60 -14
  15. package/package.json +200 -200
  16. package/src/lib/combobox.ts +455 -455
  17. package/src/snippets/choice.html +7 -7
  18. package/src/snippets/cloze.html +3 -3
  19. package/src/snippets/mark.html +3 -3
  20. package/src/snippets/order.html +7 -7
  21. package/src/snippets/pairing.html +9 -9
  22. package/src/snippets/speech.html +3 -3
  23. package/src/snippets/text.html +3 -3
  24. package/src/snippets/wordsearch.html +3 -3
  25. package/src/widgets/webwriter-choice-item.ts +250 -250
  26. package/src/widgets/webwriter-choice.ts +309 -309
  27. package/src/widgets/webwriter-cloze-gap.ts +216 -216
  28. package/src/widgets/webwriter-cloze.ts +135 -135
  29. package/src/widgets/webwriter-mark.ts +434 -434
  30. package/src/widgets/webwriter-order-item.ts +444 -444
  31. package/src/widgets/webwriter-order.ts +272 -272
  32. package/src/widgets/webwriter-pairing-item.ts +155 -155
  33. package/src/widgets/webwriter-pairing.ts +187 -187
  34. package/src/widgets/webwriter-quiz.ts +280 -280
  35. package/src/widgets/webwriter-speech.ts +267 -267
  36. package/src/widgets/webwriter-task-explainer.ts +37 -37
  37. package/src/widgets/webwriter-task-hint.ts +16 -16
  38. package/src/widgets/webwriter-task-prompt.ts +17 -17
  39. package/src/widgets/webwriter-task.ts +543 -543
  40. package/src/widgets/webwriter-text.ts +130 -130
  41. package/tsconfig.json +6 -6
@@ -1662,7 +1662,7 @@ var component_styles_default = i`
1662
1662
  }
1663
1663
  `;
1664
1664
 
1665
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1665
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1666
1666
  var __defProp3 = Object.defineProperty;
1667
1667
  var __defProps = Object.defineProperties;
1668
1668
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
@@ -1692,11 +1692,32 @@ var __decorateClass = (decorators, target, key, kind) => {
1692
1692
  __defProp3(target, key, result);
1693
1693
  return result;
1694
1694
  };
1695
+ var __accessCheck3 = (obj, member, msg) => {
1696
+ if (!member.has(obj))
1697
+ throw TypeError("Cannot " + msg);
1698
+ };
1699
+ var __privateGet3 = (obj, member, getter) => {
1700
+ __accessCheck3(obj, member, "read from private field");
1701
+ return getter ? getter.call(obj) : member.get(obj);
1702
+ };
1703
+ var __privateAdd3 = (obj, member, value) => {
1704
+ if (member.has(obj))
1705
+ throw TypeError("Cannot add the same private member more than once");
1706
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1707
+ };
1708
+ var __privateSet3 = (obj, member, value, setter) => {
1709
+ __accessCheck3(obj, member, "write to private field");
1710
+ setter ? setter.call(obj, value) : member.set(obj, value);
1711
+ return value;
1712
+ };
1695
1713
 
1696
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1714
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1715
+ var _hasRecordedInitialProperties;
1697
1716
  var ShoelaceElement = class extends h3 {
1698
1717
  constructor() {
1699
1718
  super();
1719
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1720
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1700
1721
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1701
1722
  this.constructor.define(name, component);
1702
1723
  });
@@ -1738,8 +1759,30 @@ var ShoelaceElement = class extends h3 {
1738
1759
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1739
1760
  );
1740
1761
  }
1762
+ attributeChangedCallback(name, oldValue, newValue) {
1763
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1764
+ this.constructor.elementProperties.forEach(
1765
+ (obj, prop) => {
1766
+ if (obj.reflect && this[prop] != null) {
1767
+ this.initialReflectedProperties.set(prop, this[prop]);
1768
+ }
1769
+ }
1770
+ );
1771
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1772
+ }
1773
+ super.attributeChangedCallback(name, oldValue, newValue);
1774
+ }
1775
+ willUpdate(changedProperties) {
1776
+ super.willUpdate(changedProperties);
1777
+ this.initialReflectedProperties.forEach((value, prop) => {
1778
+ if (changedProperties.has(prop) && this[prop] == null) {
1779
+ this[prop] = value;
1780
+ }
1781
+ });
1782
+ }
1741
1783
  };
1742
- ShoelaceElement.version = "2.16.0";
1784
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1785
+ ShoelaceElement.version = "2.17.1";
1743
1786
  ShoelaceElement.dependencies = {};
1744
1787
  __decorateClass([
1745
1788
  n5()
@@ -1748,7 +1791,7 @@ __decorateClass([
1748
1791
  n5()
1749
1792
  ], ShoelaceElement.prototype, "lang", 2);
1750
1793
 
1751
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7HOIOSC7.js
1794
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
1752
1795
  var SlSpinner = class extends ShoelaceElement {
1753
1796
  constructor() {
1754
1797
  super(...arguments);
@@ -1765,7 +1808,7 @@ var SlSpinner = class extends ShoelaceElement {
1765
1808
  };
1766
1809
  SlSpinner.styles = [component_styles_default, spinner_styles_default];
1767
1810
 
1768
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js
1811
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
1769
1812
  var formCollections = /* @__PURE__ */ new WeakMap();
1770
1813
  var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
1771
1814
  var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
@@ -2882,7 +2925,7 @@ var icon_styles_default = i`
2882
2925
  }
2883
2926
  `;
2884
2927
 
2885
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
2928
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
2886
2929
  function watch(propertyName, options) {
2887
2930
  const resolvedOptions = __spreadValues({
2888
2931
  waitUntilFirstUpdate: false
@@ -2915,7 +2958,7 @@ var rt = (o6) => void 0 === o6.strings;
2915
2958
  var ht = {};
2916
2959
  var dt = (o6, t5 = ht) => o6._$AH = t5;
2917
2960
 
2918
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
2961
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
2919
2962
  var CACHEABLE_ERROR = Symbol();
2920
2963
  var RETRYABLE_ERROR = Symbol();
2921
2964
  var parser;
@@ -2936,11 +2979,6 @@ var SlIcon = class extends ShoelaceElement {
2936
2979
  this.svg = ke`<svg part="svg">
2937
2980
  <use part="use" href="${url}"></use>
2938
2981
  </svg>`;
2939
- await this.updateComplete;
2940
- const svg = this.shadowRoot.querySelector("[part='svg']");
2941
- if (typeof library2.mutator === "function") {
2942
- library2.mutator(svg);
2943
- }
2944
2982
  return this.svg;
2945
2983
  }
2946
2984
  try {
@@ -3030,6 +3068,13 @@ var SlIcon = class extends ShoelaceElement {
3030
3068
  }
3031
3069
  if (nt(svg)) {
3032
3070
  this.svg = svg;
3071
+ if (library2) {
3072
+ await this.updateComplete;
3073
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
3074
+ if (typeof library2.mutator === "function" && shadowSVG) {
3075
+ library2.mutator(shadowSVG);
3076
+ }
3077
+ }
3033
3078
  return;
3034
3079
  }
3035
3080
  switch (svg) {
@@ -3148,7 +3193,7 @@ var Se3 = Ee(Se);
3148
3193
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
3149
3194
  var to = (t5) => t5 ?? D;
3150
3195
 
3151
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MR6SHCJO.js
3196
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
3152
3197
  var SlButton = class extends ShoelaceElement {
3153
3198
  constructor() {
3154
3199
  super(...arguments);
@@ -3297,7 +3342,7 @@ var SlButton = class extends ShoelaceElement {
3297
3342
  title=${this.title}
3298
3343
  name=${to(isLink ? void 0 : this.name)}
3299
3344
  value=${to(isLink ? void 0 : this.value)}
3300
- href=${to(isLink ? this.href : void 0)}
3345
+ href=${to(isLink && !this.disabled ? this.href : void 0)}
3301
3346
  target=${to(isLink ? this.target : void 0)}
3302
3347
  download=${to(isLink ? this.download : void 0)}
3303
3348
  rel=${to(isLink ? this.rel : void 0)}
@@ -3517,7 +3562,7 @@ var radio_styles_default = i`
3517
3562
  }
3518
3563
  `;
3519
3564
 
3520
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QQTW5PZI.js
3565
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.N5H7JIU3.js
3521
3566
  var SlRadio = class extends ShoelaceElement {
3522
3567
  constructor() {
3523
3568
  super();
@@ -3826,7 +3871,7 @@ var Ft = e6(class extends i3 {
3826
3871
  }
3827
3872
  });
3828
3873
 
3829
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6GAVHIFH.js
3874
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CX3DZWHK.js
3830
3875
  var SlCheckbox = class extends ShoelaceElement {
3831
3876
  constructor() {
3832
3877
  super(...arguments);
@@ -4073,7 +4118,7 @@ var radio_button_styles_default = i`
4073
4118
  }
4074
4119
  `;
4075
4120
 
4076
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2VQCGLC7.js
4121
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZHOD7CUD.js
4077
4122
  var SlRadioButton = class extends ShoelaceElement {
4078
4123
  constructor() {
4079
4124
  super(...arguments);
@@ -4228,7 +4273,7 @@ var button_group_styles_default = i`
4228
4273
  }
4229
4274
  `;
4230
4275
 
4231
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AKN2SAUH.js
4276
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RBPP5PLA.js
4232
4277
  var SlButtonGroup = class extends ShoelaceElement {
4233
4278
  constructor() {
4234
4279
  super(...arguments);
@@ -4301,7 +4346,7 @@ function findButton(el) {
4301
4346
  return (_a3 = el.closest(selector)) != null ? _a3 : el.querySelector(selector);
4302
4347
  }
4303
4348
 
4304
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TSKLKQOV.js
4349
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XISPCK6C.js
4305
4350
  var SlRadioGroup = class extends ShoelaceElement {
4306
4351
  constructor() {
4307
4352
  super(...arguments);
@@ -1649,7 +1649,7 @@ var icon_styles_default = i`
1649
1649
  }
1650
1650
  `;
1651
1651
 
1652
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1652
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1653
1653
  var __defProp3 = Object.defineProperty;
1654
1654
  var __defProps = Object.defineProperties;
1655
1655
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
@@ -1679,8 +1679,26 @@ var __decorateClass = (decorators, target, key, kind) => {
1679
1679
  __defProp3(target, key, result);
1680
1680
  return result;
1681
1681
  };
1682
+ var __accessCheck3 = (obj, member, msg) => {
1683
+ if (!member.has(obj))
1684
+ throw TypeError("Cannot " + msg);
1685
+ };
1686
+ var __privateGet3 = (obj, member, getter) => {
1687
+ __accessCheck3(obj, member, "read from private field");
1688
+ return getter ? getter.call(obj) : member.get(obj);
1689
+ };
1690
+ var __privateAdd3 = (obj, member, value) => {
1691
+ if (member.has(obj))
1692
+ throw TypeError("Cannot add the same private member more than once");
1693
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1694
+ };
1695
+ var __privateSet3 = (obj, member, value, setter) => {
1696
+ __accessCheck3(obj, member, "write to private field");
1697
+ setter ? setter.call(obj, value) : member.set(obj, value);
1698
+ return value;
1699
+ };
1682
1700
 
1683
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
1701
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
1684
1702
  function watch(propertyName, options) {
1685
1703
  const resolvedOptions = __spreadValues({
1686
1704
  waitUntilFirstUpdate: false
@@ -1723,10 +1741,13 @@ var component_styles_default = i`
1723
1741
  }
1724
1742
  `;
1725
1743
 
1726
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1744
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1745
+ var _hasRecordedInitialProperties;
1727
1746
  var ShoelaceElement = class extends h3 {
1728
1747
  constructor() {
1729
1748
  super();
1749
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1750
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1730
1751
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1731
1752
  this.constructor.define(name, component);
1732
1753
  });
@@ -1768,8 +1789,30 @@ var ShoelaceElement = class extends h3 {
1768
1789
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1769
1790
  );
1770
1791
  }
1792
+ attributeChangedCallback(name, oldValue, newValue) {
1793
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1794
+ this.constructor.elementProperties.forEach(
1795
+ (obj, prop) => {
1796
+ if (obj.reflect && this[prop] != null) {
1797
+ this.initialReflectedProperties.set(prop, this[prop]);
1798
+ }
1799
+ }
1800
+ );
1801
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1802
+ }
1803
+ super.attributeChangedCallback(name, oldValue, newValue);
1804
+ }
1805
+ willUpdate(changedProperties) {
1806
+ super.willUpdate(changedProperties);
1807
+ this.initialReflectedProperties.forEach((value, prop) => {
1808
+ if (changedProperties.has(prop) && this[prop] == null) {
1809
+ this[prop] = value;
1810
+ }
1811
+ });
1812
+ }
1771
1813
  };
1772
- ShoelaceElement.version = "2.16.0";
1814
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1815
+ ShoelaceElement.version = "2.17.1";
1773
1816
  ShoelaceElement.dependencies = {};
1774
1817
  __decorateClass([
1775
1818
  n5()
@@ -1785,7 +1828,7 @@ var rt = (o6) => void 0 === o6.strings;
1785
1828
  var ht = {};
1786
1829
  var dt = (o6, t5 = ht) => o6._$AH = t5;
1787
1830
 
1788
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
1831
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
1789
1832
  var CACHEABLE_ERROR = Symbol();
1790
1833
  var RETRYABLE_ERROR = Symbol();
1791
1834
  var parser;
@@ -1806,11 +1849,6 @@ var SlIcon = class extends ShoelaceElement {
1806
1849
  this.svg = ke`<svg part="svg">
1807
1850
  <use part="use" href="${url}"></use>
1808
1851
  </svg>`;
1809
- await this.updateComplete;
1810
- const svg = this.shadowRoot.querySelector("[part='svg']");
1811
- if (typeof library2.mutator === "function") {
1812
- library2.mutator(svg);
1813
- }
1814
1852
  return this.svg;
1815
1853
  }
1816
1854
  try {
@@ -1900,6 +1938,13 @@ var SlIcon = class extends ShoelaceElement {
1900
1938
  }
1901
1939
  if (nt(svg)) {
1902
1940
  this.svg = svg;
1941
+ if (library2) {
1942
+ await this.updateComplete;
1943
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
1944
+ if (typeof library2.mutator === "function" && shadowSVG) {
1945
+ library2.mutator(shadowSVG);
1946
+ }
1947
+ }
1903
1948
  return;
1904
1949
  }
1905
1950
  switch (svg) {
@@ -2018,7 +2063,7 @@ var Se3 = Ee(Se);
2018
2063
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
2019
2064
  var to = (t5) => t5 ?? D;
2020
2065
 
2021
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XJILXOW4.js
2066
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
2022
2067
  var SlIconButton = class extends ShoelaceElement {
2023
2068
  constructor() {
2024
2069
  super(...arguments);
@@ -2350,7 +2395,7 @@ var LocalizeController2 = class extends LocalizeController {
2350
2395
  };
2351
2396
  registerTranslation(en_default);
2352
2397
 
2353
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.YCFFWTNH.js
2398
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.4L6M7RA3.js
2354
2399
  var SlOption = class extends ShoelaceElement {
2355
2400
  constructor() {
2356
2401
  super(...arguments);
@@ -2846,7 +2891,7 @@ var form_control_styles_default = i`
2846
2891
  }
2847
2892
  `;
2848
2893
 
2849
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js
2894
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
2850
2895
  var formCollections = /* @__PURE__ */ new WeakMap();
2851
2896
  var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
2852
2897
  var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
@@ -3203,7 +3248,7 @@ var Ft = e6(class extends i3 {
3203
3248
  }
3204
3249
  });
3205
3250
 
3206
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5LELDSAA.js
3251
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.4RFB4FGM.js
3207
3252
  var SlInput = class extends ShoelaceElement {
3208
3253
  constructor() {
3209
3254
  super(...arguments);
@@ -1687,7 +1687,7 @@ var icon_styles_default = i`
1687
1687
  }
1688
1688
  `;
1689
1689
 
1690
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1690
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1691
1691
  var __defProp3 = Object.defineProperty;
1692
1692
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
1693
1693
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -1714,8 +1714,26 @@ var __decorateClass = (decorators, target, key, kind) => {
1714
1714
  __defProp3(target, key, result);
1715
1715
  return result;
1716
1716
  };
1717
+ var __accessCheck3 = (obj, member, msg) => {
1718
+ if (!member.has(obj))
1719
+ throw TypeError("Cannot " + msg);
1720
+ };
1721
+ var __privateGet3 = (obj, member, getter) => {
1722
+ __accessCheck3(obj, member, "read from private field");
1723
+ return getter ? getter.call(obj) : member.get(obj);
1724
+ };
1725
+ var __privateAdd3 = (obj, member, value) => {
1726
+ if (member.has(obj))
1727
+ throw TypeError("Cannot add the same private member more than once");
1728
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1729
+ };
1730
+ var __privateSet3 = (obj, member, value, setter) => {
1731
+ __accessCheck3(obj, member, "write to private field");
1732
+ setter ? setter.call(obj, value) : member.set(obj, value);
1733
+ return value;
1734
+ };
1717
1735
 
1718
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
1736
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
1719
1737
  function watch(propertyName, options) {
1720
1738
  const resolvedOptions = __spreadValues({
1721
1739
  waitUntilFirstUpdate: false
@@ -1758,10 +1776,13 @@ var component_styles_default = i`
1758
1776
  }
1759
1777
  `;
1760
1778
 
1761
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1779
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1780
+ var _hasRecordedInitialProperties;
1762
1781
  var ShoelaceElement = class extends h3 {
1763
1782
  constructor() {
1764
1783
  super();
1784
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1785
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1765
1786
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1766
1787
  this.constructor.define(name, component);
1767
1788
  });
@@ -1803,8 +1824,30 @@ var ShoelaceElement = class extends h3 {
1803
1824
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1804
1825
  );
1805
1826
  }
1827
+ attributeChangedCallback(name, oldValue, newValue) {
1828
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1829
+ this.constructor.elementProperties.forEach(
1830
+ (obj, prop) => {
1831
+ if (obj.reflect && this[prop] != null) {
1832
+ this.initialReflectedProperties.set(prop, this[prop]);
1833
+ }
1834
+ }
1835
+ );
1836
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1837
+ }
1838
+ super.attributeChangedCallback(name, oldValue, newValue);
1839
+ }
1840
+ willUpdate(changedProperties) {
1841
+ super.willUpdate(changedProperties);
1842
+ this.initialReflectedProperties.forEach((value, prop) => {
1843
+ if (changedProperties.has(prop) && this[prop] == null) {
1844
+ this[prop] = value;
1845
+ }
1846
+ });
1847
+ }
1806
1848
  };
1807
- ShoelaceElement.version = "2.16.0";
1849
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1850
+ ShoelaceElement.version = "2.17.1";
1808
1851
  ShoelaceElement.dependencies = {};
1809
1852
  __decorateClass([
1810
1853
  n5()
@@ -1817,7 +1860,7 @@ __decorateClass([
1817
1860
  var { I: et3 } = si;
1818
1861
  var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
1819
1862
 
1820
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
1863
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
1821
1864
  var CACHEABLE_ERROR = Symbol();
1822
1865
  var RETRYABLE_ERROR = Symbol();
1823
1866
  var parser;
@@ -1838,11 +1881,6 @@ var SlIcon = class extends ShoelaceElement {
1838
1881
  this.svg = ke`<svg part="svg">
1839
1882
  <use part="use" href="${url}"></use>
1840
1883
  </svg>`;
1841
- await this.updateComplete;
1842
- const svg = this.shadowRoot.querySelector("[part='svg']");
1843
- if (typeof library2.mutator === "function") {
1844
- library2.mutator(svg);
1845
- }
1846
1884
  return this.svg;
1847
1885
  }
1848
1886
  try {
@@ -1932,6 +1970,13 @@ var SlIcon = class extends ShoelaceElement {
1932
1970
  }
1933
1971
  if (nt(svg)) {
1934
1972
  this.svg = svg;
1973
+ if (library2) {
1974
+ await this.updateComplete;
1975
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
1976
+ if (typeof library2.mutator === "function" && shadowSVG) {
1977
+ library2.mutator(shadowSVG);
1978
+ }
1979
+ }
1935
1980
  return;
1936
1981
  }
1937
1982
  switch (svg) {
@@ -2030,7 +2075,7 @@ var Se3 = Ee(Se);
2030
2075
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
2031
2076
  var to = (t5) => t5 ?? D;
2032
2077
 
2033
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XJILXOW4.js
2078
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
2034
2079
  var SlIconButton = class extends ShoelaceElement {
2035
2080
  constructor() {
2036
2081
  super(...arguments);
@@ -1716,7 +1716,7 @@ var icon_styles_default = i`
1716
1716
  }
1717
1717
  `;
1718
1718
 
1719
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1719
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1720
1720
  var __defProp3 = Object.defineProperty;
1721
1721
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
1722
1722
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -1743,8 +1743,26 @@ var __decorateClass = (decorators, target, key, kind) => {
1743
1743
  __defProp3(target, key, result);
1744
1744
  return result;
1745
1745
  };
1746
+ var __accessCheck3 = (obj, member, msg) => {
1747
+ if (!member.has(obj))
1748
+ throw TypeError("Cannot " + msg);
1749
+ };
1750
+ var __privateGet3 = (obj, member, getter) => {
1751
+ __accessCheck3(obj, member, "read from private field");
1752
+ return getter ? getter.call(obj) : member.get(obj);
1753
+ };
1754
+ var __privateAdd3 = (obj, member, value) => {
1755
+ if (member.has(obj))
1756
+ throw TypeError("Cannot add the same private member more than once");
1757
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1758
+ };
1759
+ var __privateSet3 = (obj, member, value, setter) => {
1760
+ __accessCheck3(obj, member, "write to private field");
1761
+ setter ? setter.call(obj, value) : member.set(obj, value);
1762
+ return value;
1763
+ };
1746
1764
 
1747
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
1765
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
1748
1766
  function watch(propertyName, options) {
1749
1767
  const resolvedOptions = __spreadValues({
1750
1768
  waitUntilFirstUpdate: false
@@ -1787,10 +1805,13 @@ var component_styles_default = i`
1787
1805
  }
1788
1806
  `;
1789
1807
 
1790
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1808
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1809
+ var _hasRecordedInitialProperties;
1791
1810
  var ShoelaceElement = class extends h3 {
1792
1811
  constructor() {
1793
1812
  super();
1813
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1814
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1794
1815
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1795
1816
  this.constructor.define(name, component);
1796
1817
  });
@@ -1832,8 +1853,30 @@ var ShoelaceElement = class extends h3 {
1832
1853
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1833
1854
  );
1834
1855
  }
1856
+ attributeChangedCallback(name, oldValue, newValue) {
1857
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1858
+ this.constructor.elementProperties.forEach(
1859
+ (obj, prop) => {
1860
+ if (obj.reflect && this[prop] != null) {
1861
+ this.initialReflectedProperties.set(prop, this[prop]);
1862
+ }
1863
+ }
1864
+ );
1865
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1866
+ }
1867
+ super.attributeChangedCallback(name, oldValue, newValue);
1868
+ }
1869
+ willUpdate(changedProperties) {
1870
+ super.willUpdate(changedProperties);
1871
+ this.initialReflectedProperties.forEach((value, prop) => {
1872
+ if (changedProperties.has(prop) && this[prop] == null) {
1873
+ this[prop] = value;
1874
+ }
1875
+ });
1876
+ }
1835
1877
  };
1836
- ShoelaceElement.version = "2.16.0";
1878
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1879
+ ShoelaceElement.version = "2.17.1";
1837
1880
  ShoelaceElement.dependencies = {};
1838
1881
  __decorateClass([
1839
1882
  n5()
@@ -1846,7 +1889,7 @@ __decorateClass([
1846
1889
  var { I: et3 } = si;
1847
1890
  var nt = (o5, t6) => void 0 === t6 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t6;
1848
1891
 
1849
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
1892
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
1850
1893
  var CACHEABLE_ERROR = Symbol();
1851
1894
  var RETRYABLE_ERROR = Symbol();
1852
1895
  var parser;
@@ -1867,11 +1910,6 @@ var SlIcon = class extends ShoelaceElement {
1867
1910
  this.svg = ke`<svg part="svg">
1868
1911
  <use part="use" href="${url}"></use>
1869
1912
  </svg>`;
1870
- await this.updateComplete;
1871
- const svg = this.shadowRoot.querySelector("[part='svg']");
1872
- if (typeof library2.mutator === "function") {
1873
- library2.mutator(svg);
1874
- }
1875
1913
  return this.svg;
1876
1914
  }
1877
1915
  try {
@@ -1961,6 +1999,13 @@ var SlIcon = class extends ShoelaceElement {
1961
1999
  }
1962
2000
  if (nt(svg)) {
1963
2001
  this.svg = svg;
2002
+ if (library2) {
2003
+ await this.updateComplete;
2004
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
2005
+ if (typeof library2.mutator === "function" && shadowSVG) {
2006
+ library2.mutator(shadowSVG);
2007
+ }
2008
+ }
1964
2009
  return;
1965
2010
  }
1966
2011
  switch (svg) {
@@ -2059,7 +2104,7 @@ var Se3 = Ee(Se);
2059
2104
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
2060
2105
  var to = (t6) => t6 ?? D;
2061
2106
 
2062
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XJILXOW4.js
2107
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
2063
2108
  var SlIconButton = class extends ShoelaceElement {
2064
2109
  constructor() {
2065
2110
  super(...arguments);