@mux/mux-player 3.3.2-canary.3 → 3.3.2

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.
@@ -1216,7 +1216,7 @@ var mediaThemeGerwig = (() => {
1216
1216
  var internalGlobalThis = isServer ? globalThisShim : globalThis;
1217
1217
  var internalDocument = isServer ? globalThisShim.document : globalThis.document;
1218
1218
 
1219
- // ../../node_modules/media-chrome/dist/constants.js
1219
+ // node_modules/media-chrome/dist/constants.js
1220
1220
  var MediaUIEvents = {
1221
1221
  MEDIA_PLAY_REQUEST: "mediaplayrequest",
1222
1222
  MEDIA_PAUSE_REQUEST: "mediapauserequest",
@@ -1303,7 +1303,7 @@ var mediaThemeGerwig = (() => {
1303
1303
  {}
1304
1304
  );
1305
1305
  var AdditionalStateChangeEvents = {
1306
- USER_INACTIVE: "userinactivechange",
1306
+ USER_INACTIVE_CHANGE: "userinactivechange",
1307
1307
  BREAKPOINTS_CHANGE: "breakpointchange",
1308
1308
  BREAKPOINTS_COMPUTED: "breakpointscomputed"
1309
1309
  };
@@ -1346,7 +1346,7 @@ var mediaThemeGerwig = (() => {
1346
1346
  METADATA: "metadata"
1347
1347
  };
1348
1348
 
1349
- // ../../node_modules/media-chrome/dist/utils/server-safe-globals.js
1349
+ // node_modules/media-chrome/dist/utils/server-safe-globals.js
1350
1350
  var EventTarget2 = class {
1351
1351
  addEventListener() {
1352
1352
  }
@@ -1442,7 +1442,7 @@ var mediaThemeGerwig = (() => {
1442
1442
  var GlobalThis = isServer2 && !isShimmed ? globalThisShim2 : globalThis;
1443
1443
  var Document2 = isServer2 && !isShimmed ? documentShim : globalThis.document;
1444
1444
 
1445
- // ../../node_modules/media-chrome/dist/utils/template-parts.js
1445
+ // node_modules/media-chrome/dist/utils/template-parts.js
1446
1446
  var __accessCheck2 = (obj, member, msg) => {
1447
1447
  if (!member.has(obj))
1448
1448
  throw TypeError("Cannot " + msg);
@@ -1495,14 +1495,14 @@ var mediaThemeGerwig = (() => {
1495
1495
  };
1496
1496
  var TemplateInstance = class extends GlobalThis.DocumentFragment {
1497
1497
  constructor(template8, state, processor2 = defaultProcessor) {
1498
- var _a3;
1498
+ var _a4;
1499
1499
  super();
1500
1500
  __privateAdd2(this, _parts, void 0);
1501
1501
  __privateAdd2(this, _processor, void 0);
1502
1502
  this.append(template8.content.cloneNode(true));
1503
1503
  __privateSet2(this, _parts, parse(this));
1504
1504
  __privateSet2(this, _processor, processor2);
1505
- (_a3 = processor2.createCallback) == null ? void 0 : _a3.call(processor2, this, __privateGet2(this, _parts), state);
1505
+ (_a4 = processor2.createCallback) == null ? void 0 : _a4.call(processor2, this, __privateGet2(this, _parts), state);
1506
1506
  processor2.processCallback(this, __privateGet2(this, _parts), state);
1507
1507
  }
1508
1508
  update(state) {
@@ -1773,7 +1773,7 @@ var mediaThemeGerwig = (() => {
1773
1773
  return b;
1774
1774
  }
1775
1775
 
1776
- // ../../node_modules/media-chrome/dist/utils/utils.js
1776
+ // node_modules/media-chrome/dist/utils/utils.js
1777
1777
  function parseRenditionList(renditions) {
1778
1778
  return renditions == null ? void 0 : renditions.split(/\s+/).map(parseRendition);
1779
1779
  }
@@ -1806,7 +1806,7 @@ var mediaThemeGerwig = (() => {
1806
1806
  return !isNaN(str) && !isNaN(parseFloat(str));
1807
1807
  }
1808
1808
 
1809
- // ../../node_modules/media-chrome/dist/utils/template-processor.js
1809
+ // node_modules/media-chrome/dist/utils/template-processor.js
1810
1810
  var pipeModifiers = {
1811
1811
  string: (value) => String(value)
1812
1812
  };
@@ -1823,7 +1823,7 @@ var mediaThemeGerwig = (() => {
1823
1823
  state[part.expression] = new PartialTemplate(part.template);
1824
1824
  },
1825
1825
  if: (part, state) => {
1826
- var _a3;
1826
+ var _a4;
1827
1827
  if (evaluateExpression(part.expression, state)) {
1828
1828
  if (templates.get(part) !== part.template) {
1829
1829
  templates.set(part, part.template);
@@ -1831,7 +1831,7 @@ var mediaThemeGerwig = (() => {
1831
1831
  part.replace(tpl);
1832
1832
  templateInstances.set(part, tpl);
1833
1833
  } else {
1834
- (_a3 = templateInstances.get(part)) == null ? void 0 : _a3.update(state);
1834
+ (_a4 = templateInstances.get(part)) == null ? void 0 : _a4.update(state);
1835
1835
  }
1836
1836
  } else {
1837
1837
  part.replace("");
@@ -1843,7 +1843,7 @@ var mediaThemeGerwig = (() => {
1843
1843
  var DirectiveNames = Object.keys(Directives);
1844
1844
  var processor = {
1845
1845
  processCallback(instance, parts, state) {
1846
- var _a3, _b2;
1846
+ var _a4, _b2;
1847
1847
  if (!state)
1848
1848
  return;
1849
1849
  for (const [expression, part] of parts) {
@@ -1857,7 +1857,7 @@ var mediaThemeGerwig = (() => {
1857
1857
  part.expression = part.template.getAttribute(directive);
1858
1858
  }
1859
1859
  }
1860
- (_a3 = Directives[part.directive]) == null ? void 0 : _a3.call(Directives, part, state);
1860
+ (_a4 = Directives[part.directive]) == null ? void 0 : _a4.call(Directives, part, state);
1861
1861
  continue;
1862
1862
  }
1863
1863
  let value = evaluateExpression(expression, state);
@@ -1914,8 +1914,8 @@ var mediaThemeGerwig = (() => {
1914
1914
  "<=": (a, b) => a <= b,
1915
1915
  "??": (a, b) => a != null ? a : b,
1916
1916
  "|": (a, b) => {
1917
- var _a3;
1918
- return (_a3 = pipeModifiers[b]) == null ? void 0 : _a3.call(pipeModifiers, a);
1917
+ var _a4;
1918
+ return (_a4 = pipeModifiers[b]) == null ? void 0 : _a4.call(pipeModifiers, a);
1919
1919
  }
1920
1920
  };
1921
1921
  function tokenizeExpression(expr) {
@@ -1929,12 +1929,12 @@ var mediaThemeGerwig = (() => {
1929
1929
  }).filter(({ type }) => type !== "ws");
1930
1930
  }
1931
1931
  function evaluateExpression(expr, state = {}) {
1932
- var _a3, _b2, _c, _d, _e, _f, _g;
1932
+ var _a4, _b2, _c, _d, _e, _f, _g;
1933
1933
  const tokens = tokenizeExpression(expr);
1934
1934
  if (tokens.length === 0 || tokens.some(({ type }) => !type)) {
1935
1935
  return invalidExpression(expr);
1936
1936
  }
1937
- if (((_a3 = tokens[0]) == null ? void 0 : _a3.token) === ">") {
1937
+ if (((_a4 = tokens[0]) == null ? void 0 : _a4.token) === ">") {
1938
1938
  const partial = state[(_b2 = tokens[1]) == null ? void 0 : _b2.token];
1939
1939
  if (!partial) {
1940
1940
  return invalidExpression(expr);
@@ -2033,7 +2033,7 @@ var mediaThemeGerwig = (() => {
2033
2033
  return tokens;
2034
2034
  }
2035
2035
 
2036
- // ../../node_modules/media-chrome/dist/media-theme-element.js
2036
+ // node_modules/media-chrome/dist/media-theme-element.js
2037
2037
  var __accessCheck3 = (obj, member, msg) => {
2038
2038
  if (!member.has(obj))
2039
2039
  throw TypeError("Cannot " + msg);
@@ -2112,8 +2112,8 @@ var mediaThemeGerwig = (() => {
2112
2112
  this.createRenderer();
2113
2113
  }
2114
2114
  const observer2 = new MutationObserver((mutationList) => {
2115
- var _a3;
2116
- if (this.mediaController && !((_a3 = this.mediaController) == null ? void 0 : _a3.breakpointsComputed))
2115
+ var _a4;
2116
+ if (this.mediaController && !((_a4 = this.mediaController) == null ? void 0 : _a4.breakpointsComputed))
2117
2117
  return;
2118
2118
  if (mutationList.some((mutation) => {
2119
2119
  const target = mutation.target;
@@ -2146,8 +2146,8 @@ var mediaThemeGerwig = (() => {
2146
2146
  return this.renderRoot.querySelector("media-controller");
2147
2147
  }
2148
2148
  get template() {
2149
- var _a3;
2150
- return (_a3 = __privateGet3(this, _template)) != null ? _a3 : this.constructor.template;
2149
+ var _a4;
2150
+ return (_a4 = __privateGet3(this, _template)) != null ? _a4 : this.constructor.template;
2151
2151
  }
2152
2152
  set template(element) {
2153
2153
  __privateSet3(this, _prevTemplateId, null);
@@ -2155,9 +2155,9 @@ var mediaThemeGerwig = (() => {
2155
2155
  this.createRenderer();
2156
2156
  }
2157
2157
  get props() {
2158
- var _a3, _b2, _c;
2158
+ var _a4, _b2, _c;
2159
2159
  const observedAttributes = [
2160
- ...Array.from((_b2 = (_a3 = this.mediaController) == null ? void 0 : _a3.attributes) != null ? _b2 : []).filter(
2160
+ ...Array.from((_b2 = (_a4 = this.mediaController) == null ? void 0 : _a4.attributes) != null ? _b2 : []).filter(
2161
2161
  ({ name }) => {
2162
2162
  return observedMediaAttributes[name] || name.startsWith("breakpoint");
2163
2163
  }
@@ -2204,8 +2204,8 @@ var mediaThemeGerwig = (() => {
2204
2204
  }
2205
2205
  }
2206
2206
  render() {
2207
- var _a3;
2208
- (_a3 = this.renderer) == null ? void 0 : _a3.update(this.props);
2207
+ var _a4;
2208
+ (_a4 = this.renderer) == null ? void 0 : _a4.update(this.props);
2209
2209
  }
2210
2210
  };
2211
2211
  _template = /* @__PURE__ */ new WeakMap();
@@ -2221,12 +2221,12 @@ var mediaThemeGerwig = (() => {
2221
2221
  };
2222
2222
  _updateTemplate = /* @__PURE__ */ new WeakSet();
2223
2223
  updateTemplate_fn = function() {
2224
- var _a3;
2224
+ var _a4;
2225
2225
  const templateId = this.getAttribute("template");
2226
2226
  if (!templateId || templateId === __privateGet3(this, _prevTemplateId))
2227
2227
  return;
2228
2228
  const rootNode = this.getRootNode();
2229
- const template8 = (_a3 = rootNode == null ? void 0 : rootNode.getElementById) == null ? void 0 : _a3.call(rootNode, templateId);
2229
+ const template8 = (_a4 = rootNode == null ? void 0 : rootNode.getElementById) == null ? void 0 : _a4.call(rootNode, templateId);
2230
2230
  if (template8) {
2231
2231
  __privateSet3(this, _prevTemplateId, templateId);
2232
2232
  __privateSet3(this, _template, template8);
@@ -2269,7 +2269,7 @@ var mediaThemeGerwig = (() => {
2269
2269
  GlobalThis.customElements.define("media-theme", MediaThemeElement);
2270
2270
  }
2271
2271
 
2272
- // ../../node_modules/media-chrome/dist/utils/anchor-utils.js
2272
+ // node_modules/media-chrome/dist/utils/anchor-utils.js
2273
2273
  function computePosition({
2274
2274
  anchor,
2275
2275
  floating,
@@ -2294,9 +2294,9 @@ var mediaThemeGerwig = (() => {
2294
2294
  };
2295
2295
  }
2296
2296
  function getRectRelativeToOffsetParent(element, offsetParent) {
2297
- var _a3;
2297
+ var _a4;
2298
2298
  const rect = element.getBoundingClientRect();
2299
- const offsetRect = (_a3 = offsetParent == null ? void 0 : offsetParent.getBoundingClientRect()) != null ? _a3 : { x: 0, y: 0 };
2299
+ const offsetRect = (_a4 = offsetParent == null ? void 0 : offsetParent.getBoundingClientRect()) != null ? _a4 : { x: 0, y: 0 };
2300
2300
  return {
2301
2301
  x: rect.x - offsetRect.x,
2302
2302
  y: rect.y - offsetRect.y,
@@ -2345,7 +2345,7 @@ var mediaThemeGerwig = (() => {
2345
2345
  return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
2346
2346
  }
2347
2347
 
2348
- // ../../node_modules/media-chrome/dist/utils/resize-observer.js
2348
+ // node_modules/media-chrome/dist/utils/resize-observer.js
2349
2349
  var callbacksMap = /* @__PURE__ */ new WeakMap();
2350
2350
  var getCallbacks = (element) => {
2351
2351
  let callbacks = callbacksMap.get(element);
@@ -2374,7 +2374,7 @@ var mediaThemeGerwig = (() => {
2374
2374
  }
2375
2375
  }
2376
2376
 
2377
- // ../../node_modules/media-chrome/dist/utils/events.js
2377
+ // node_modules/media-chrome/dist/utils/events.js
2378
2378
  var InvokeEvent = class extends Event {
2379
2379
  /**
2380
2380
  * @param init - The event options.
@@ -2396,17 +2396,17 @@ var mediaThemeGerwig = (() => {
2396
2396
  }
2397
2397
  };
2398
2398
 
2399
- // ../../node_modules/media-chrome/dist/utils/element-utils.js
2399
+ // node_modules/media-chrome/dist/utils/element-utils.js
2400
2400
  function getMediaController(host) {
2401
- var _a3;
2402
- return (_a3 = getAttributeMediaController(host)) != null ? _a3 : closestComposedNode(host, "media-controller");
2401
+ var _a4;
2402
+ return (_a4 = getAttributeMediaController(host)) != null ? _a4 : closestComposedNode(host, "media-controller");
2403
2403
  }
2404
2404
  function getAttributeMediaController(host) {
2405
- var _a3;
2405
+ var _a4;
2406
2406
  const { MEDIA_CONTROLLER } = MediaStateReceiverAttributes;
2407
2407
  const mediaControllerId = host.getAttribute(MEDIA_CONTROLLER);
2408
2408
  if (mediaControllerId) {
2409
- return (_a3 = getDocumentOrShadowRoot(host)) == null ? void 0 : _a3.getElementById(
2409
+ return (_a4 = getDocumentOrShadowRoot(host)) == null ? void 0 : _a4.getElementById(
2410
2410
  mediaControllerId
2411
2411
  );
2412
2412
  }
@@ -2433,15 +2433,15 @@ var mediaThemeGerwig = (() => {
2433
2433
  );
2434
2434
  };
2435
2435
  function getActiveElement(root = document) {
2436
- var _a3;
2436
+ var _a4;
2437
2437
  const activeEl = root == null ? void 0 : root.activeElement;
2438
2438
  if (!activeEl)
2439
2439
  return null;
2440
- return (_a3 = getActiveElement(activeEl.shadowRoot)) != null ? _a3 : activeEl;
2440
+ return (_a4 = getActiveElement(activeEl.shadowRoot)) != null ? _a4 : activeEl;
2441
2441
  }
2442
2442
  function getDocumentOrShadowRoot(node) {
2443
- var _a3;
2444
- const rootNode = (_a3 = node == null ? void 0 : node.getRootNode) == null ? void 0 : _a3.call(node);
2443
+ var _a4;
2444
+ const rootNode = (_a4 = node == null ? void 0 : node.getRootNode) == null ? void 0 : _a4.call(node);
2445
2445
  if (rootNode instanceof ShadowRoot || rootNode instanceof Document) {
2446
2446
  return rootNode;
2447
2447
  }
@@ -2454,9 +2454,9 @@ var mediaThemeGerwig = (() => {
2454
2454
  return insertCSSRule(styleParent, selectorText);
2455
2455
  }
2456
2456
  function getCSSRule(styleParent, predicate) {
2457
- var _a3, _b2;
2457
+ var _a4, _b2;
2458
2458
  let style;
2459
- for (style of (_a3 = styleParent.querySelectorAll("style:not([media])")) != null ? _a3 : []) {
2459
+ for (style of (_a4 = styleParent.querySelectorAll("style:not([media])")) != null ? _a4 : []) {
2460
2460
  let cssRules;
2461
2461
  try {
2462
2462
  cssRules = (_b2 = style.sheet) == null ? void 0 : _b2.cssRules;
@@ -2470,8 +2470,8 @@ var mediaThemeGerwig = (() => {
2470
2470
  }
2471
2471
  }
2472
2472
  function insertCSSRule(styleParent, selectorText) {
2473
- var _a3, _b2;
2474
- const styles = (_a3 = styleParent.querySelectorAll("style:not([media])")) != null ? _a3 : [];
2473
+ var _a4, _b2;
2474
+ const styles = (_a4 = styleParent.querySelectorAll("style:not([media])")) != null ? _a4 : [];
2475
2475
  const style = styles == null ? void 0 : styles[styles.length - 1];
2476
2476
  if (!(style == null ? void 0 : style.sheet)) {
2477
2477
  console.warn(
@@ -2525,8 +2525,8 @@ var mediaThemeGerwig = (() => {
2525
2525
  el.toggleAttribute(attrName, value);
2526
2526
  }
2527
2527
  function getStringAttr(el, attrName, defaultValue = null) {
2528
- var _a3;
2529
- return (_a3 = el.getAttribute(attrName)) != null ? _a3 : defaultValue;
2528
+ var _a4;
2529
+ return (_a4 = el.getAttribute(attrName)) != null ? _a4 : defaultValue;
2530
2530
  }
2531
2531
  function setStringAttr(el, attrName, value) {
2532
2532
  if (value == null) {
@@ -2541,7 +2541,7 @@ var mediaThemeGerwig = (() => {
2541
2541
  el.setAttribute(attrName, nextValue);
2542
2542
  }
2543
2543
 
2544
- // ../../node_modules/media-chrome/dist/menu/media-chrome-menu.js
2544
+ // node_modules/media-chrome/dist/menu/media-chrome-menu.js
2545
2545
  var __accessCheck4 = (obj, member, msg) => {
2546
2546
  if (!member.has(obj))
2547
2547
  throw TypeError("Cannot " + msg);
@@ -2744,12 +2744,12 @@ var mediaThemeGerwig = (() => {
2744
2744
  slot[name="header"]::slotted(*) {
2745
2745
  padding: .4em .7em;
2746
2746
  border-bottom: 1px solid rgb(255 255 255 / .25);
2747
- cursor: default;
2747
+ cursor: var(--media-cursor, default);
2748
2748
  }
2749
2749
 
2750
2750
  slot[name="header"] > button[part~="back"],
2751
2751
  slot[name="header"]::slotted(button[part~="back"]) {
2752
- cursor: pointer;
2752
+ cursor: var(--media-cursor, pointer);
2753
2753
  }
2754
2754
 
2755
2755
  svg[part~="back"] {
@@ -2941,7 +2941,7 @@ var mediaThemeGerwig = (() => {
2941
2941
  }
2942
2942
  }
2943
2943
  connectedCallback() {
2944
- var _a3, _b2;
2944
+ var _a4, _b2;
2945
2945
  __privateSet4(this, _cssRule, insertCSSRule(this.shadowRoot, ":host"));
2946
2946
  __privateMethod2(this, _updateLayoutStyle, updateLayoutStyle_fn).call(this);
2947
2947
  if (!this.hasAttribute("disabled")) {
@@ -2951,22 +2951,22 @@ var mediaThemeGerwig = (() => {
2951
2951
  this.role = "menu";
2952
2952
  }
2953
2953
  __privateSet4(this, _mediaController, getAttributeMediaController(this));
2954
- (_b2 = (_a3 = __privateGet4(this, _mediaController)) == null ? void 0 : _a3.associateElement) == null ? void 0 : _b2.call(_a3, this);
2954
+ (_b2 = (_a4 = __privateGet4(this, _mediaController)) == null ? void 0 : _a4.associateElement) == null ? void 0 : _b2.call(_a4, this);
2955
2955
  if (!this.hidden) {
2956
2956
  observeResize(getBoundsElement(this), __privateGet4(this, _handleBoundsResize));
2957
2957
  observeResize(this, __privateGet4(this, _handleMenuResize));
2958
2958
  }
2959
2959
  }
2960
2960
  disconnectedCallback() {
2961
- var _a3, _b2;
2961
+ var _a4, _b2;
2962
2962
  unobserveResize(getBoundsElement(this), __privateGet4(this, _handleBoundsResize));
2963
2963
  unobserveResize(this, __privateGet4(this, _handleMenuResize));
2964
2964
  this.disable();
2965
- (_b2 = (_a3 = __privateGet4(this, _mediaController)) == null ? void 0 : _a3.unassociateElement) == null ? void 0 : _b2.call(_a3, this);
2965
+ (_b2 = (_a4 = __privateGet4(this, _mediaController)) == null ? void 0 : _a4.unassociateElement) == null ? void 0 : _b2.call(_a4, this);
2966
2966
  __privateSet4(this, _mediaController, null);
2967
2967
  }
2968
2968
  attributeChangedCallback(attrName, oldValue, newValue) {
2969
- var _a3, _b2, _c, _d;
2969
+ var _a4, _b2, _c, _d;
2970
2970
  if (attrName === Attributes.HIDDEN && newValue !== oldValue) {
2971
2971
  if (!__privateGet4(this, _isPopover))
2972
2972
  __privateSet4(this, _isPopover, true);
@@ -2984,7 +2984,7 @@ var mediaThemeGerwig = (() => {
2984
2984
  );
2985
2985
  } else if (attrName === MediaStateReceiverAttributes.MEDIA_CONTROLLER) {
2986
2986
  if (oldValue) {
2987
- (_b2 = (_a3 = __privateGet4(this, _mediaController)) == null ? void 0 : _a3.unassociateElement) == null ? void 0 : _b2.call(_a3, this);
2987
+ (_b2 = (_a4 = __privateGet4(this, _mediaController)) == null ? void 0 : _a4.unassociateElement) == null ? void 0 : _b2.call(_a4, this);
2988
2988
  __privateSet4(this, _mediaController, null);
2989
2989
  }
2990
2990
  if (newValue && this.isConnected) {
@@ -3017,9 +3017,9 @@ var mediaThemeGerwig = (() => {
3017
3017
  * Returns the anchor element when it is a floating menu.
3018
3018
  */
3019
3019
  get anchorElement() {
3020
- var _a3;
3020
+ var _a4;
3021
3021
  if (this.anchor) {
3022
- return (_a3 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a3.querySelector(
3022
+ return (_a4 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a4.querySelector(
3023
3023
  `#${this.anchor}`
3024
3024
  );
3025
3025
  }
@@ -3038,8 +3038,8 @@ var mediaThemeGerwig = (() => {
3038
3038
  return this.items.filter((item) => item.checked);
3039
3039
  }
3040
3040
  get value() {
3041
- var _a3, _b2;
3042
- return (_b2 = (_a3 = this.checkedItems[0]) == null ? void 0 : _a3.value) != null ? _b2 : "";
3041
+ var _a4, _b2;
3042
+ return (_b2 = (_a4 = this.checkedItems[0]) == null ? void 0 : _a4.value) != null ? _b2 : "";
3043
3043
  }
3044
3044
  set value(newValue) {
3045
3045
  const item = this.items.find((item2) => item2.value === newValue);
@@ -3060,13 +3060,13 @@ var mediaThemeGerwig = (() => {
3060
3060
  focusable == null ? void 0 : focusable.focus();
3061
3061
  }
3062
3062
  handleSelect(event) {
3063
- var _a3;
3063
+ var _a4;
3064
3064
  const item = __privateMethod2(this, _getItem, getItem_fn).call(this, event);
3065
3065
  if (!item)
3066
3066
  return;
3067
3067
  __privateMethod2(this, _selectItem, selectItem_fn).call(this, item, item.type === "checkbox");
3068
3068
  if (__privateGet4(this, _invokerElement) && !this.hidden) {
3069
- (_a3 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a3.focus();
3069
+ (_a4 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a4.focus();
3070
3070
  this.hidden = true;
3071
3071
  }
3072
3072
  }
@@ -3083,10 +3083,10 @@ var mediaThemeGerwig = (() => {
3083
3083
  ];
3084
3084
  }
3085
3085
  handleMove(event) {
3086
- var _a3, _b2;
3086
+ var _a4, _b2;
3087
3087
  const { key } = event;
3088
3088
  const items = this.items;
3089
- const currentItem = (_b2 = (_a3 = __privateMethod2(this, _getItem, getItem_fn).call(this, event)) != null ? _a3 : __privateMethod2(this, _getTabItem, getTabItem_fn).call(this)) != null ? _b2 : items[0];
3089
+ const currentItem = (_b2 = (_a4 = __privateMethod2(this, _getItem, getItem_fn).call(this, event)) != null ? _a4 : __privateMethod2(this, _getTabItem, getTabItem_fn).call(this)) != null ? _b2 : items[0];
3090
3090
  const currentIndex = items.indexOf(currentItem);
3091
3091
  let index = Math.max(0, currentIndex);
3092
3092
  if (key === "ArrowDown") {
@@ -3136,9 +3136,9 @@ var mediaThemeGerwig = (() => {
3136
3136
  _handleMenuItems = /* @__PURE__ */ new WeakMap();
3137
3137
  _updateLayoutStyle = /* @__PURE__ */ new WeakSet();
3138
3138
  updateLayoutStyle_fn = function() {
3139
- var _a3;
3139
+ var _a4;
3140
3140
  const layoutRowStyle = this.shadowRoot.querySelector("#layout-row");
3141
- const menuLayout = (_a3 = getComputedStyle(this).getPropertyValue("--media-menu-layout")) == null ? void 0 : _a3.trim();
3141
+ const menuLayout = (_a4 = getComputedStyle(this).getPropertyValue("--media-menu-layout")) == null ? void 0 : _a4.trim();
3142
3142
  layoutRowStyle.setAttribute("media", menuLayout === "row" ? "" : "width:0");
3143
3143
  };
3144
3144
  _handleInvoke = /* @__PURE__ */ new WeakSet();
@@ -3150,16 +3150,16 @@ var mediaThemeGerwig = (() => {
3150
3150
  };
3151
3151
  _handleOpen = /* @__PURE__ */ new WeakSet();
3152
3152
  handleOpen_fn = function() {
3153
- var _a3;
3154
- (_a3 = __privateGet4(this, _invokerElement)) == null ? void 0 : _a3.setAttribute("aria-expanded", "true");
3153
+ var _a4;
3154
+ (_a4 = __privateGet4(this, _invokerElement)) == null ? void 0 : _a4.setAttribute("aria-expanded", "true");
3155
3155
  this.addEventListener("transitionend", () => this.focus(), { once: true });
3156
3156
  observeResize(getBoundsElement(this), __privateGet4(this, _handleBoundsResize));
3157
3157
  observeResize(this, __privateGet4(this, _handleMenuResize));
3158
3158
  };
3159
3159
  _handleClosed = /* @__PURE__ */ new WeakSet();
3160
3160
  handleClosed_fn = function() {
3161
- var _a3;
3162
- (_a3 = __privateGet4(this, _invokerElement)) == null ? void 0 : _a3.setAttribute("aria-expanded", "false");
3161
+ var _a4;
3162
+ (_a4 = __privateGet4(this, _invokerElement)) == null ? void 0 : _a4.setAttribute("aria-expanded", "false");
3163
3163
  unobserveResize(getBoundsElement(this), __privateGet4(this, _handleBoundsResize));
3164
3164
  unobserveResize(this, __privateGet4(this, _handleMenuResize));
3165
3165
  };
@@ -3221,10 +3221,10 @@ var mediaThemeGerwig = (() => {
3221
3221
  };
3222
3222
  _handleClick = /* @__PURE__ */ new WeakSet();
3223
3223
  handleClick_fn = function(event) {
3224
- var _a3;
3224
+ var _a4;
3225
3225
  event.stopPropagation();
3226
3226
  if (event.composedPath().includes(__privateGet4(this, _backButtonElement, backButtonElement_get))) {
3227
- (_a3 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a3.focus();
3227
+ (_a4 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a4.focus();
3228
3228
  this.hidden = true;
3229
3229
  return;
3230
3230
  }
@@ -3236,11 +3236,11 @@ var mediaThemeGerwig = (() => {
3236
3236
  };
3237
3237
  _backButtonElement = /* @__PURE__ */ new WeakSet();
3238
3238
  backButtonElement_get = function() {
3239
- var _a3;
3239
+ var _a4;
3240
3240
  const headerSlot = this.shadowRoot.querySelector(
3241
3241
  'slot[name="header"]'
3242
3242
  );
3243
- return (_a3 = headerSlot.assignedElements({ flatten: true })) == null ? void 0 : _a3.find((el) => el.matches('button[part~="back"]'));
3243
+ return (_a4 = headerSlot.assignedElements({ flatten: true })) == null ? void 0 : _a4.find((el) => el.matches('button[part~="back"]'));
3244
3244
  };
3245
3245
  _handleToggle = /* @__PURE__ */ new WeakSet();
3246
3246
  handleToggle_fn = function(event) {
@@ -3272,10 +3272,10 @@ var mediaThemeGerwig = (() => {
3272
3272
  };
3273
3273
  _handleFocusOut = /* @__PURE__ */ new WeakSet();
3274
3274
  handleFocusOut_fn = function(event) {
3275
- var _a3;
3275
+ var _a4;
3276
3276
  if (!containsComposedNode(this, event.relatedTarget)) {
3277
3277
  if (__privateGet4(this, _isPopover)) {
3278
- (_a3 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a3.focus();
3278
+ (_a4 = __privateGet4(this, _previouslyFocused)) == null ? void 0 : _a4.focus();
3279
3279
  }
3280
3280
  if (__privateGet4(this, _invokerElement) && __privateGet4(this, _invokerElement) !== event.relatedTarget && !this.hidden) {
3281
3281
  this.hidden = true;
@@ -3284,7 +3284,7 @@ var mediaThemeGerwig = (() => {
3284
3284
  };
3285
3285
  _handleKeyDown = /* @__PURE__ */ new WeakSet();
3286
3286
  handleKeyDown_fn = function(event) {
3287
- var _a3, _b2, _c, _d, _e;
3287
+ var _a4, _b2, _c, _d, _e;
3288
3288
  const { key, ctrlKey, altKey, metaKey } = event;
3289
3289
  if (ctrlKey || altKey || metaKey) {
3290
3290
  return;
@@ -3300,7 +3300,7 @@ var mediaThemeGerwig = (() => {
3300
3300
  return;
3301
3301
  }
3302
3302
  if (event.shiftKey) {
3303
- (_b2 = (_a3 = this.previousElementSibling) == null ? void 0 : _a3.focus) == null ? void 0 : _b2.call(_a3);
3303
+ (_b2 = (_a4 = this.previousElementSibling) == null ? void 0 : _a4.focus) == null ? void 0 : _b2.call(_a4);
3304
3304
  } else {
3305
3305
  (_d = (_c = this.nextElementSibling) == null ? void 0 : _c.focus) == null ? void 0 : _d.call(_c);
3306
3306
  }
@@ -3358,14 +3358,14 @@ var mediaThemeGerwig = (() => {
3358
3358
  );
3359
3359
  }
3360
3360
  function getBoundsElement(host) {
3361
- var _a3;
3362
- return (_a3 = host.getAttribute("bounds") ? closestComposedNode(host, `#${host.getAttribute("bounds")}`) : getMediaController(host) || host.parentElement) != null ? _a3 : host;
3361
+ var _a4;
3362
+ return (_a4 = host.getAttribute("bounds") ? closestComposedNode(host, `#${host.getAttribute("bounds")}`) : getMediaController(host) || host.parentElement) != null ? _a4 : host;
3363
3363
  }
3364
3364
  if (!GlobalThis.customElements.get("media-chrome-menu")) {
3365
3365
  GlobalThis.customElements.define("media-chrome-menu", MediaChromeMenu);
3366
3366
  }
3367
3367
 
3368
- // ../../node_modules/media-chrome/dist/menu/media-chrome-menu-item.js
3368
+ // node_modules/media-chrome/dist/menu/media-chrome-menu-item.js
3369
3369
  var __accessCheck5 = (obj, member, msg) => {
3370
3370
  if (!member.has(obj))
3371
3371
  throw TypeError("Cannot " + msg);
@@ -3414,7 +3414,7 @@ var mediaThemeGerwig = (() => {
3414
3414
  );
3415
3415
  outline: var(--media-menu-item-outline, 0);
3416
3416
  outline-offset: var(--media-menu-item-outline-offset, -1px);
3417
- cursor: pointer;
3417
+ cursor: var(--media-cursor, pointer);
3418
3418
  display: flex;
3419
3419
  align-items: center;
3420
3420
  align-self: stretch;
@@ -3432,7 +3432,7 @@ var mediaThemeGerwig = (() => {
3432
3432
  }
3433
3433
 
3434
3434
  :host(:hover) {
3435
- cursor: pointer;
3435
+ cursor: var(--media-cursor, pointer);
3436
3436
  background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
3437
3437
  outline: var(--media-menu-item-hover-outline);
3438
3438
  outline-offset: var(--media-menu-item-hover-outline-offset, var(--media-menu-item-outline-offset, -1px));
@@ -3542,12 +3542,12 @@ var mediaThemeGerwig = (() => {
3542
3542
  __privateAdd5(this, _dirty, false);
3543
3543
  __privateAdd5(this, _ownerElement, void 0);
3544
3544
  __privateAdd5(this, _handleMenuItem, () => {
3545
- var _a3, _b2;
3545
+ var _a4, _b2;
3546
3546
  this.setAttribute("submenusize", `${this.submenuElement.items.length}`);
3547
3547
  const descriptionSlot = this.shadowRoot.querySelector(
3548
3548
  'slot[name="description"]'
3549
3549
  );
3550
- const checkedItem = (_a3 = this.submenuElement.checkedItems) == null ? void 0 : _a3[0];
3550
+ const checkedItem = (_a4 = this.submenuElement.checkedItems) == null ? void 0 : _a4[0];
3551
3551
  const description = (_b2 = checkedItem == null ? void 0 : checkedItem.dataset.description) != null ? _b2 : checkedItem == null ? void 0 : checkedItem.text;
3552
3552
  const span = Document2.createElement("span");
3553
3553
  span.textContent = description != null ? description : "";
@@ -3636,9 +3636,9 @@ var mediaThemeGerwig = (() => {
3636
3636
  * or the slotted submenu element.
3637
3637
  */
3638
3638
  get invokeTargetElement() {
3639
- var _a3;
3639
+ var _a4;
3640
3640
  if (this.invokeTarget) {
3641
- return (_a3 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a3.querySelector(
3641
+ return (_a4 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a4.querySelector(
3642
3642
  `#${this.invokeTarget}`
3643
3643
  );
3644
3644
  }
@@ -3656,22 +3656,22 @@ var mediaThemeGerwig = (() => {
3656
3656
  })[0];
3657
3657
  }
3658
3658
  get type() {
3659
- var _a3;
3660
- return (_a3 = this.getAttribute(Attributes2.TYPE)) != null ? _a3 : "";
3659
+ var _a4;
3660
+ return (_a4 = this.getAttribute(Attributes2.TYPE)) != null ? _a4 : "";
3661
3661
  }
3662
3662
  set type(val) {
3663
3663
  this.setAttribute(Attributes2.TYPE, `${val}`);
3664
3664
  }
3665
3665
  get value() {
3666
- var _a3;
3667
- return (_a3 = this.getAttribute(Attributes2.VALUE)) != null ? _a3 : this.text;
3666
+ var _a4;
3667
+ return (_a4 = this.getAttribute(Attributes2.VALUE)) != null ? _a4 : this.text;
3668
3668
  }
3669
3669
  set value(val) {
3670
3670
  this.setAttribute(Attributes2.VALUE, val);
3671
3671
  }
3672
3672
  get text() {
3673
- var _a3;
3674
- return ((_a3 = this.textContent) != null ? _a3 : "").trim();
3673
+ var _a4;
3674
+ return ((_a4 = this.textContent) != null ? _a4 : "").trim();
3675
3675
  }
3676
3676
  get checked() {
3677
3677
  if (!isCheckable(this))
@@ -3771,8 +3771,8 @@ var mediaThemeGerwig = (() => {
3771
3771
  };
3772
3772
  _reset = /* @__PURE__ */ new WeakSet();
3773
3773
  reset_fn = function() {
3774
- var _a3;
3775
- const items = (_a3 = __privateGet5(this, _ownerElement)) == null ? void 0 : _a3.radioGroupItems;
3774
+ var _a4;
3775
+ const items = (_a4 = __privateGet5(this, _ownerElement)) == null ? void 0 : _a4.radioGroupItems;
3776
3776
  if (!items)
3777
3777
  return;
3778
3778
  let checkedItem = items.filter((item) => item.getAttribute("aria-checked") === "true").pop();
@@ -3804,7 +3804,7 @@ var mediaThemeGerwig = (() => {
3804
3804
  );
3805
3805
  }
3806
3806
 
3807
- // ../../node_modules/media-chrome/dist/menu/media-settings-menu.js
3807
+ // node_modules/media-chrome/dist/menu/media-settings-menu.js
3808
3808
  var template3 = Document2.createElement("template");
3809
3809
  template3.innerHTML = MediaChromeMenu.template.innerHTML + /*html*/
3810
3810
  `
@@ -3860,7 +3860,7 @@ var mediaThemeGerwig = (() => {
3860
3860
  GlobalThis.customElements.define("media-settings-menu", MediaSettingsMenu);
3861
3861
  }
3862
3862
 
3863
- // ../../node_modules/media-chrome/dist/menu/media-settings-menu-item.js
3863
+ // node_modules/media-chrome/dist/menu/media-settings-menu-item.js
3864
3864
  var _a;
3865
3865
  var template4 = Document2.createElement("template");
3866
3866
  template4.innerHTML = MediaChromeMenuItem.template.innerHTML + /*html*/
@@ -3893,7 +3893,7 @@ var mediaThemeGerwig = (() => {
3893
3893
  );
3894
3894
  }
3895
3895
 
3896
- // ../../node_modules/media-chrome/dist/media-chrome-button.js
3896
+ // node_modules/media-chrome/dist/media-chrome-button.js
3897
3897
  var __accessCheck6 = (obj, member, msg) => {
3898
3898
  if (!member.has(obj))
3899
3899
  throw TypeError("Cannot " + msg);
@@ -3949,7 +3949,7 @@ var mediaThemeGerwig = (() => {
3949
3949
  box-sizing: border-box;
3950
3950
  transition: background .15s linear;
3951
3951
  pointer-events: auto;
3952
- cursor: pointer;
3952
+ cursor: var(--media-cursor, pointer);
3953
3953
  -webkit-tap-highlight-color: transparent;
3954
3954
  }
3955
3955
 
@@ -4016,7 +4016,7 @@ var mediaThemeGerwig = (() => {
4016
4016
  `;
4017
4017
  var MediaChromeButton = class extends GlobalThis.HTMLElement {
4018
4018
  constructor(options = {}) {
4019
- var _a3;
4019
+ var _a4;
4020
4020
  super();
4021
4021
  __privateAdd6(this, _setupTooltip);
4022
4022
  __privateAdd6(this, _mediaController2, void 0);
@@ -4030,8 +4030,8 @@ var mediaThemeGerwig = (() => {
4030
4030
  setTimeout(__privateGet6(this, _positionTooltip), 0);
4031
4031
  });
4032
4032
  __privateAdd6(this, _positionTooltip, () => {
4033
- var _a4, _b2;
4034
- (_b2 = (_a4 = this.tooltipEl) == null ? void 0 : _a4.updateXOffset) == null ? void 0 : _b2.call(_a4);
4033
+ var _a5, _b2;
4034
+ (_b2 = (_a5 = this.tooltipEl) == null ? void 0 : _a5.updateXOffset) == null ? void 0 : _b2.call(_a5);
4035
4035
  });
4036
4036
  __privateAdd6(this, _keyupListener, (e) => {
4037
4037
  const { key } = e;
@@ -4061,7 +4061,7 @@ var mediaThemeGerwig = (() => {
4061
4061
  slotTemplate7.innerHTML = `<slot>${options.defaultContent || ""}</slot>`;
4062
4062
  }
4063
4063
  if (options.tooltipContent) {
4064
- buttonHTML.querySelector('slot[name="tooltip-content"]').innerHTML = (_a3 = options.tooltipContent) != null ? _a3 : "";
4064
+ buttonHTML.querySelector('slot[name="tooltip-content"]').innerHTML = (_a4 = options.tooltipContent) != null ? _a4 : "";
4065
4065
  this.tooltipContent = options.tooltipContent;
4066
4066
  }
4067
4067
  this.nativeEl.appendChild(slotTemplate7.content.cloneNode(true));
@@ -4088,10 +4088,10 @@ var mediaThemeGerwig = (() => {
4088
4088
  this.tabIndex = -1;
4089
4089
  }
4090
4090
  attributeChangedCallback(attrName, oldValue, newValue) {
4091
- var _a3, _b2, _c, _d, _e;
4091
+ var _a4, _b2, _c, _d, _e;
4092
4092
  if (attrName === MediaStateReceiverAttributes.MEDIA_CONTROLLER) {
4093
4093
  if (oldValue) {
4094
- (_b2 = (_a3 = __privateGet6(this, _mediaController2)) == null ? void 0 : _a3.unassociateElement) == null ? void 0 : _b2.call(_a3, this);
4094
+ (_b2 = (_a4 = __privateGet6(this, _mediaController2)) == null ? void 0 : _a4.unassociateElement) == null ? void 0 : _b2.call(_a4, this);
4095
4095
  __privateSet6(this, _mediaController2, null);
4096
4096
  }
4097
4097
  if (newValue && this.isConnected) {
@@ -4110,7 +4110,7 @@ var mediaThemeGerwig = (() => {
4110
4110
  __privateGet6(this, _positionTooltip).call(this);
4111
4111
  }
4112
4112
  connectedCallback() {
4113
- var _a3, _b2, _c;
4113
+ var _a4, _b2, _c;
4114
4114
  const { style } = getOrInsertCSSRule(this.shadowRoot, ":host");
4115
4115
  style.setProperty(
4116
4116
  "display",
@@ -4130,16 +4130,16 @@ var mediaThemeGerwig = (() => {
4130
4130
  this,
4131
4131
  _mediaController2,
4132
4132
  // @ts-ignore
4133
- (_a3 = this.getRootNode()) == null ? void 0 : _a3.getElementById(mediaControllerId)
4133
+ (_a4 = this.getRootNode()) == null ? void 0 : _a4.getElementById(mediaControllerId)
4134
4134
  );
4135
4135
  (_c = (_b2 = __privateGet6(this, _mediaController2)) == null ? void 0 : _b2.associateElement) == null ? void 0 : _c.call(_b2, this);
4136
4136
  }
4137
4137
  GlobalThis.customElements.whenDefined("media-tooltip").then(() => __privateMethod4(this, _setupTooltip, setupTooltip_fn).call(this));
4138
4138
  }
4139
4139
  disconnectedCallback() {
4140
- var _a3, _b2;
4140
+ var _a4, _b2;
4141
4141
  this.disable();
4142
- (_b2 = (_a3 = __privateGet6(this, _mediaController2)) == null ? void 0 : _a3.unassociateElement) == null ? void 0 : _b2.call(_a3, this);
4142
+ (_b2 = (_a4 = __privateGet6(this, _mediaController2)) == null ? void 0 : _a4.unassociateElement) == null ? void 0 : _b2.call(_a4, this);
4143
4143
  __privateSet6(this, _mediaController2, null);
4144
4144
  this.removeEventListener("mouseenter", __privateGet6(this, _positionTooltip));
4145
4145
  this.removeEventListener("focus", __privateGet6(this, _positionTooltip));
@@ -4202,7 +4202,7 @@ var mediaThemeGerwig = (() => {
4202
4202
  GlobalThis.customElements.define("media-chrome-button", MediaChromeButton);
4203
4203
  }
4204
4204
 
4205
- // ../../node_modules/media-chrome/dist/menu/media-chrome-menu-button.js
4205
+ // node_modules/media-chrome/dist/menu/media-chrome-menu-button.js
4206
4206
  var MediaChromeMenuButton = class extends MediaChromeButton {
4207
4207
  connectedCallback() {
4208
4208
  super.connectedCallback();
@@ -4221,17 +4221,17 @@ var mediaThemeGerwig = (() => {
4221
4221
  * @return {HTMLElement | null}
4222
4222
  */
4223
4223
  get invokeTargetElement() {
4224
- var _a3;
4224
+ var _a4;
4225
4225
  if (this.invokeTarget) {
4226
- return (_a3 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a3.querySelector(
4226
+ return (_a4 = getDocumentOrShadowRoot(this)) == null ? void 0 : _a4.querySelector(
4227
4227
  `#${this.invokeTarget}`
4228
4228
  );
4229
4229
  }
4230
4230
  return null;
4231
4231
  }
4232
4232
  handleClick() {
4233
- var _a3;
4234
- (_a3 = this.invokeTargetElement) == null ? void 0 : _a3.dispatchEvent(
4233
+ var _a4;
4234
+ (_a4 = this.invokeTargetElement) == null ? void 0 : _a4.dispatchEvent(
4235
4235
  new InvokeEvent({ relatedTarget: this })
4236
4236
  );
4237
4237
  }
@@ -4243,7 +4243,7 @@ var mediaThemeGerwig = (() => {
4243
4243
  );
4244
4244
  }
4245
4245
 
4246
- // ../../node_modules/media-chrome/dist/lang/en.js
4246
+ // node_modules/media-chrome/dist/lang/en.js
4247
4247
  var En = {
4248
4248
  "Start airplay": "Start airplay",
4249
4249
  "Stop airplay": "Stop airplay",
@@ -4305,24 +4305,22 @@ var mediaThemeGerwig = (() => {
4305
4305
  "The media is encrypted and there are no keys to decrypt it.": "The media is encrypted and there are no keys to decrypt it."
4306
4306
  };
4307
4307
 
4308
- // ../../node_modules/media-chrome/dist/utils/i18n.js
4308
+ // node_modules/media-chrome/dist/utils/i18n.js
4309
+ var _a2;
4309
4310
  var translationsLanguages = {
4310
4311
  en: En
4311
4312
  };
4312
- var getBrowserLanguage = () => {
4313
- var _a3;
4314
- return ((_a3 = globalThis.navigator) == null ? void 0 : _a3.language.split("-")[0]) || "en";
4315
- };
4313
+ var currentLanguage = ((_a2 = globalThis.navigator) == null ? void 0 : _a2.language.split("-")[0]) || "en";
4316
4314
  var t = (key, variables = {}) => {
4317
- var _a3;
4318
- const result = ((_a3 = translationsLanguages[getBrowserLanguage()]) == null ? void 0 : _a3[key]) || En[key];
4315
+ var _a22;
4316
+ const result = ((_a22 = translationsLanguages[currentLanguage]) == null ? void 0 : _a22[key]) || En[key];
4319
4317
  return result.replace(
4320
4318
  /\{(\w+)\}/g,
4321
4319
  (_, varName) => variables[varName] !== void 0 ? String(variables[varName]) : `{${varName}}`
4322
4320
  );
4323
4321
  };
4324
4322
 
4325
- // ../../node_modules/media-chrome/dist/menu/media-settings-menu-button.js
4323
+ // node_modules/media-chrome/dist/menu/media-settings-menu-button.js
4326
4324
  var slotTemplate = Document2.createElement("template");
4327
4325
  slotTemplate.innerHTML = /*html*/
4328
4326
  `
@@ -4365,7 +4363,7 @@ var mediaThemeGerwig = (() => {
4365
4363
  );
4366
4364
  }
4367
4365
 
4368
- // ../../node_modules/media-chrome/dist/menu/media-audio-track-menu.js
4366
+ // node_modules/media-chrome/dist/menu/media-audio-track-menu.js
4369
4367
  var __accessCheck7 = (obj, member, msg) => {
4370
4368
  if (!member.has(obj))
4371
4369
  throw TypeError("Cannot " + msg);
@@ -4431,10 +4429,10 @@ var mediaThemeGerwig = (() => {
4431
4429
  * Returns the anchor element when it is a floating menu.
4432
4430
  */
4433
4431
  get anchorElement() {
4434
- var _a3;
4432
+ var _a4;
4435
4433
  if (this.anchor !== "auto")
4436
4434
  return super.anchorElement;
4437
- return (_a3 = getMediaController(this)) == null ? void 0 : _a3.querySelector(
4435
+ return (_a4 = getMediaController(this)) == null ? void 0 : _a4.querySelector(
4438
4436
  "media-audio-track-menu-button"
4439
4437
  );
4440
4438
  }
@@ -4449,8 +4447,8 @@ var mediaThemeGerwig = (() => {
4449
4447
  * Get enabled audio track id.
4450
4448
  */
4451
4449
  get mediaAudioTrackEnabled() {
4452
- var _a3;
4453
- return (_a3 = getStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED)) != null ? _a3 : "";
4450
+ var _a4;
4451
+ return (_a4 = getStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED)) != null ? _a4 : "";
4454
4452
  }
4455
4453
  set mediaAudioTrackEnabled(id) {
4456
4454
  setStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED, id);
@@ -4498,7 +4496,7 @@ var mediaThemeGerwig = (() => {
4498
4496
  );
4499
4497
  }
4500
4498
 
4501
- // ../../node_modules/media-chrome/dist/menu/media-audio-track-menu-button.js
4499
+ // node_modules/media-chrome/dist/menu/media-audio-track-menu-button.js
4502
4500
  var audioTrackIcon = (
4503
4501
  /*html*/
4504
4502
  `<svg aria-hidden="true" viewBox="0 0 24 24">
@@ -4539,18 +4537,18 @@ var mediaThemeGerwig = (() => {
4539
4537
  * @return {HTMLElement | null}
4540
4538
  */
4541
4539
  get invokeTargetElement() {
4542
- var _a3;
4540
+ var _a4;
4543
4541
  if (this.invokeTarget != void 0)
4544
4542
  return super.invokeTargetElement;
4545
- return (_a3 = getMediaController(this)) == null ? void 0 : _a3.querySelector("media-audio-track-menu");
4543
+ return (_a4 = getMediaController(this)) == null ? void 0 : _a4.querySelector("media-audio-track-menu");
4546
4544
  }
4547
4545
  /**
4548
4546
  * Get enabled audio track id.
4549
4547
  * @return {string}
4550
4548
  */
4551
4549
  get mediaAudioTrackEnabled() {
4552
- var _a3;
4553
- return (_a3 = getStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED)) != null ? _a3 : "";
4550
+ var _a4;
4551
+ return (_a4 = getStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED)) != null ? _a4 : "";
4554
4552
  }
4555
4553
  set mediaAudioTrackEnabled(id) {
4556
4554
  setStringAttr(this, MediaUIAttributes.MEDIA_AUDIO_TRACK_ENABLED, id);
@@ -4563,7 +4561,7 @@ var mediaThemeGerwig = (() => {
4563
4561
  );
4564
4562
  }
4565
4563
 
4566
- // ../../node_modules/media-chrome/dist/utils/captions.js
4564
+ // node_modules/media-chrome/dist/utils/captions.js
4567
4565
  var splitTextTracksStr = (textTracksStr = "") => textTracksStr.split(/\s+/);
4568
4566
  var parseTextTrackStr = (textTrackStr = "") => {
4569
4567
  const [kind, language, encodedLabel] = textTrackStr.split(":");
@@ -4594,12 +4592,12 @@ var mediaThemeGerwig = (() => {
4594
4592
  return Array.prototype.map.call(textTracks, formatTextTrackObj).join(" ");
4595
4593
  };
4596
4594
  var areSubsOn = (el) => {
4597
- var _a3;
4598
- const showingSubtitles = !!((_a3 = el.mediaSubtitlesShowing) == null ? void 0 : _a3.length) || el.hasAttribute(MediaUIAttributes.MEDIA_SUBTITLES_SHOWING);
4595
+ var _a4;
4596
+ const showingSubtitles = !!((_a4 = el.mediaSubtitlesShowing) == null ? void 0 : _a4.length) || el.hasAttribute(MediaUIAttributes.MEDIA_SUBTITLES_SHOWING);
4599
4597
  return showingSubtitles;
4600
4598
  };
4601
4599
 
4602
- // ../../node_modules/media-chrome/dist/menu/media-captions-menu.js
4600
+ // node_modules/media-chrome/dist/menu/media-captions-menu.js
4603
4601
  var __accessCheck8 = (obj, member, msg) => {
4604
4602
  if (!member.has(obj))
4605
4603
  throw TypeError("Cannot " + msg);
@@ -4703,7 +4701,7 @@ var mediaThemeGerwig = (() => {
4703
4701
  _prevState2 = /* @__PURE__ */ new WeakMap();
4704
4702
  _render2 = /* @__PURE__ */ new WeakSet();
4705
4703
  render_fn2 = function() {
4706
- var _a3;
4704
+ var _a4;
4707
4705
  if (__privateGet8(this, _prevState2) === JSON.stringify(this.mediaSubtitlesList))
4708
4706
  return;
4709
4707
  __privateSet8(this, _prevState2, JSON.stringify(this.mediaSubtitlesList));
@@ -4726,7 +4724,7 @@ var mediaThemeGerwig = (() => {
4726
4724
  checked: this.value == formatTextTrackObj(subs)
4727
4725
  });
4728
4726
  item2.prepend(createIndicator(this, "checked-indicator"));
4729
- const type = (_a3 = subs.kind) != null ? _a3 : "subs";
4727
+ const type = (_a4 = subs.kind) != null ? _a4 : "subs";
4730
4728
  if (type === "captions") {
4731
4729
  item2.append(createIndicator(this, "captions-indicator"));
4732
4730
  }
@@ -4784,7 +4782,7 @@ var mediaThemeGerwig = (() => {
4784
4782
  GlobalThis.customElements.define("media-captions-menu", MediaCaptionsMenu);
4785
4783
  }
4786
4784
 
4787
- // ../../node_modules/media-chrome/dist/menu/media-captions-menu-button.js
4785
+ // node_modules/media-chrome/dist/menu/media-captions-menu-button.js
4788
4786
  var __accessCheck9 = (obj, member, msg) => {
4789
4787
  if (!member.has(obj))
4790
4788
  throw TypeError("Cannot " + msg);
@@ -4862,10 +4860,10 @@ var mediaThemeGerwig = (() => {
4862
4860
  * @return {HTMLElement | null}
4863
4861
  */
4864
4862
  get invokeTargetElement() {
4865
- var _a3;
4863
+ var _a4;
4866
4864
  if (this.invokeTarget != void 0)
4867
4865
  return super.invokeTargetElement;
4868
- return (_a3 = getMediaController(this)) == null ? void 0 : _a3.querySelector("media-captions-menu");
4866
+ return (_a4 = getMediaController(this)) == null ? void 0 : _a4.querySelector("media-captions-menu");
4869
4867
  }
4870
4868
  /**
4871
4869
  * An array of TextTrack-like objects.
@@ -4914,7 +4912,7 @@ var mediaThemeGerwig = (() => {
4914
4912
  );
4915
4913
  }
4916
4914
 
4917
- // ../../node_modules/media-chrome/dist/utils/attribute-token-list.js
4915
+ // node_modules/media-chrome/dist/utils/attribute-token-list.js
4918
4916
  var __accessCheck10 = (obj, member, msg) => {
4919
4917
  if (!member.has(obj))
4920
4918
  throw TypeError("Cannot " + msg);
@@ -4957,15 +4955,15 @@ var mediaThemeGerwig = (() => {
4957
4955
  return __privateGet9(this, _tokens, tokens_get).size;
4958
4956
  }
4959
4957
  get value() {
4960
- var _a3;
4961
- return (_a3 = [...__privateGet9(this, _tokens, tokens_get)].join(" ")) != null ? _a3 : "";
4958
+ var _a4;
4959
+ return (_a4 = [...__privateGet9(this, _tokens, tokens_get)].join(" ")) != null ? _a4 : "";
4962
4960
  }
4963
4961
  set value(val) {
4964
- var _a3;
4962
+ var _a4;
4965
4963
  if (val === this.value)
4966
4964
  return;
4967
4965
  __privateSet10(this, _tokenSet, /* @__PURE__ */ new Set());
4968
- this.add(...(_a3 = val == null ? void 0 : val.split(" ")) != null ? _a3 : []);
4966
+ this.add(...(_a4 = val == null ? void 0 : val.split(" ")) != null ? _a4 : []);
4969
4967
  }
4970
4968
  toString() {
4971
4969
  return this.value;
@@ -4980,17 +4978,17 @@ var mediaThemeGerwig = (() => {
4980
4978
  __privateGet9(this, _tokens, tokens_get).forEach(callback, thisArg);
4981
4979
  }
4982
4980
  add(...tokens) {
4983
- var _a3, _b2;
4981
+ var _a4, _b2;
4984
4982
  tokens.forEach((t2) => __privateGet9(this, _tokenSet).add(t2));
4985
- if (this.value === "" && !((_a3 = __privateGet9(this, _el)) == null ? void 0 : _a3.hasAttribute(`${__privateGet9(this, _attr)}`))) {
4983
+ if (this.value === "" && !((_a4 = __privateGet9(this, _el)) == null ? void 0 : _a4.hasAttribute(`${__privateGet9(this, _attr)}`))) {
4986
4984
  return;
4987
4985
  }
4988
4986
  (_b2 = __privateGet9(this, _el)) == null ? void 0 : _b2.setAttribute(`${__privateGet9(this, _attr)}`, `${this.value}`);
4989
4987
  }
4990
4988
  remove(...tokens) {
4991
- var _a3;
4989
+ var _a4;
4992
4990
  tokens.forEach((t2) => __privateGet9(this, _tokenSet).delete(t2));
4993
- (_a3 = __privateGet9(this, _el)) == null ? void 0 : _a3.setAttribute(`${__privateGet9(this, _attr)}`, `${this.value}`);
4991
+ (_a4 = __privateGet9(this, _el)) == null ? void 0 : _a4.setAttribute(`${__privateGet9(this, _attr)}`, `${this.value}`);
4994
4992
  }
4995
4993
  contains(token) {
4996
4994
  return __privateGet9(this, _tokens, tokens_get).has(token);
@@ -5027,7 +5025,7 @@ var mediaThemeGerwig = (() => {
5027
5025
  return __privateGet9(this, _tokenSet).size ? __privateGet9(this, _tokenSet) : __privateGet9(this, _defaultSet);
5028
5026
  };
5029
5027
 
5030
- // ../../node_modules/media-chrome/dist/media-playback-rate-button.js
5028
+ // node_modules/media-chrome/dist/media-playback-rate-button.js
5031
5029
  var __accessCheck11 = (obj, member, msg) => {
5032
5030
  if (!member.has(obj))
5033
5031
  throw TypeError("Cannot " + msg);
@@ -5121,11 +5119,11 @@ var mediaThemeGerwig = (() => {
5121
5119
  setNumericAttr(this, MediaUIAttributes.MEDIA_PLAYBACK_RATE, value);
5122
5120
  }
5123
5121
  handleClick() {
5124
- var _a3, _b2;
5122
+ var _a4, _b2;
5125
5123
  const availableRates = Array.from(this.rates.values(), (str) => +str).sort(
5126
5124
  (a, b) => a - b
5127
5125
  );
5128
- const detail = (_b2 = (_a3 = availableRates.find((r) => r > this.mediaPlaybackRate)) != null ? _a3 : availableRates[0]) != null ? _b2 : DEFAULT_RATE;
5126
+ const detail = (_b2 = (_a4 = availableRates.find((r) => r > this.mediaPlaybackRate)) != null ? _a4 : availableRates[0]) != null ? _b2 : DEFAULT_RATE;
5129
5127
  const evt = new GlobalThis.CustomEvent(
5130
5128
  MediaUIEvents.MEDIA_PLAYBACK_RATE_REQUEST,
5131
5129
  { composed: true, bubbles: true, detail }
@@ -5141,7 +5139,7 @@ var mediaThemeGerwig = (() => {
5141
5139
  );
5142
5140
  }
5143
5141
 
5144
- // ../../node_modules/media-chrome/dist/menu/media-playback-rate-menu.js
5142
+ // node_modules/media-chrome/dist/menu/media-playback-rate-menu.js
5145
5143
  var __accessCheck12 = (obj, member, msg) => {
5146
5144
  if (!member.has(obj))
5147
5145
  throw TypeError("Cannot " + msg);
@@ -5276,7 +5274,7 @@ var mediaThemeGerwig = (() => {
5276
5274
  );
5277
5275
  }
5278
5276
 
5279
- // ../../node_modules/media-chrome/dist/menu/media-playback-rate-menu-button.js
5277
+ // node_modules/media-chrome/dist/menu/media-playback-rate-menu-button.js
5280
5278
  var __accessCheck13 = (obj, member, msg) => {
5281
5279
  if (!member.has(obj))
5282
5280
  throw TypeError("Cannot " + msg);
@@ -5390,7 +5388,7 @@ var mediaThemeGerwig = (() => {
5390
5388
  );
5391
5389
  }
5392
5390
 
5393
- // ../../node_modules/media-chrome/dist/menu/media-rendition-menu.js
5391
+ // node_modules/media-chrome/dist/menu/media-rendition-menu.js
5394
5392
  var __accessCheck14 = (obj, member, msg) => {
5395
5393
  if (!member.has(obj))
5396
5394
  throw TypeError("Cannot " + msg);
@@ -5549,7 +5547,7 @@ var mediaThemeGerwig = (() => {
5549
5547
  GlobalThis.customElements.define("media-rendition-menu", MediaRenditionMenu);
5550
5548
  }
5551
5549
 
5552
- // ../../node_modules/media-chrome/dist/menu/media-rendition-menu-button.js
5550
+ // node_modules/media-chrome/dist/menu/media-rendition-menu-button.js
5553
5551
  var renditionIcon = (
5554
5552
  /*html*/
5555
5553
  `<svg aria-hidden="true" viewBox="0 0 24 24">
@@ -5616,10 +5614,10 @@ var mediaThemeGerwig = (() => {
5616
5614
  // src/themes/gerwig/index.ts
5617
5615
  var template7 = internalDocument.createElement("template");
5618
5616
  if ("innerHTML" in template7) template7.innerHTML = gerwig_default;
5619
- var _a2, _b;
5617
+ var _a3, _b;
5620
5618
  var MediaThemeGerwig = class extends MediaThemeElement {
5621
5619
  };
5622
- MediaThemeGerwig.template = (_b = (_a2 = template7.content) == null ? void 0 : _a2.children) == null ? void 0 : _b[0];
5620
+ MediaThemeGerwig.template = (_b = (_a3 = template7.content) == null ? void 0 : _a3.children) == null ? void 0 : _b[0];
5623
5621
  if (!internalGlobalThis.customElements.get("media-theme-gerwig")) {
5624
5622
  internalGlobalThis.customElements.define("media-theme-gerwig", MediaThemeGerwig);
5625
5623
  }