@coderline/alphatab-vite 1.9.0-alpha.1861 → 1.9.0-alpha.1962

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 (46) hide show
  1. package/dist/AlphaTabVitePluginOptions.cjs +1 -1
  2. package/dist/AlphaTabVitePluginOptions.mjs +1 -1
  3. package/dist/alphaTab.vite.cjs +1 -1
  4. package/dist/alphaTab.vite.mjs +1 -1
  5. package/dist/alphaTabVitePlugin.cjs +1 -1
  6. package/dist/alphaTabVitePlugin.mjs +1 -1
  7. package/dist/bridge/asset.cjs +3 -2
  8. package/dist/bridge/asset.mjs +3 -2
  9. package/dist/bridge/build.cjs +2 -4
  10. package/dist/bridge/build.mjs +2 -4
  11. package/dist/bridge/bundler.cjs +1 -1
  12. package/dist/bridge/bundler.mjs +1 -1
  13. package/dist/bridge/config.cjs +1 -1
  14. package/dist/bridge/config.mjs +1 -1
  15. package/dist/bridge/constants.cjs +1 -1
  16. package/dist/bridge/constants.mjs +1 -1
  17. package/dist/bridge/fsUtils.cjs +1 -1
  18. package/dist/bridge/fsUtils.mjs +1 -1
  19. package/dist/bridge/index.cjs +1 -1
  20. package/dist/bridge/index.mjs +1 -1
  21. package/dist/bridge/optimizer.cjs +5 -2
  22. package/dist/bridge/optimizer.mjs +5 -2
  23. package/dist/bridge/plugins.cjs +1 -1
  24. package/dist/bridge/plugins.mjs +1 -1
  25. package/dist/bridge/resolve.cjs +1 -1
  26. package/dist/bridge/resolve.mjs +1 -1
  27. package/dist/bridge/typeUtils.cjs +1 -1
  28. package/dist/bridge/typeUtils.mjs +1 -1
  29. package/dist/bridge/utils.cjs +1 -1
  30. package/dist/bridge/utils.mjs +1 -1
  31. package/dist/bridge/worker.cjs +3 -2
  32. package/dist/bridge/worker.mjs +3 -2
  33. package/dist/copyAssetsPlugin.cjs +1 -1
  34. package/dist/copyAssetsPlugin.mjs +1 -1
  35. package/dist/detectionGlobalPlugin.cjs +1 -1
  36. package/dist/detectionGlobalPlugin.mjs +1 -1
  37. package/dist/dist.cjs +1264 -868
  38. package/dist/dist.mjs +1263 -868
  39. package/dist/importMetaPlugin.cjs +2 -4
  40. package/dist/importMetaPlugin.mjs +2 -4
  41. package/dist/{prompt-B1Yc1NPt.cjs → prompt-CH6TK0bC.cjs} +63 -25
  42. package/dist/{prompt-B1Yc1NPt.mjs → prompt-CH6TK0bC.mjs} +63 -25
  43. package/dist/rolldown-runtime.cjs +2 -2
  44. package/dist/workerPlugin.cjs +6 -6
  45. package/dist/workerPlugin.mjs +6 -6
  46. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -120,9 +120,7 @@ function importMetaUrlPlugin(options) {
120
120
  case require_bridge_worker.AlphaTabWorkerTypes.WorkerModule:
121
121
  typeActive = isWorkerActive;
122
122
  break;
123
- case require_bridge_worker.AlphaTabWorkerTypes.AudioWorklet:
124
- typeActive = isWorkletActive;
125
- break;
123
+ case require_bridge_worker.AlphaTabWorkerTypes.AudioWorklet: typeActive = isWorkletActive;
126
124
  }
127
125
  if (!typeActive) {
128
126
  match = alphaTabWorkerPattern.exec(code);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -116,9 +116,7 @@ function importMetaUrlPlugin(options) {
116
116
  case AlphaTabWorkerTypes.WorkerModule:
117
117
  typeActive = isWorkerActive;
118
118
  break;
119
- case AlphaTabWorkerTypes.AudioWorklet:
120
- typeActive = isWorkletActive;
121
- break;
119
+ case AlphaTabWorkerTypes.AudioWorklet: typeActive = isWorkletActive;
122
120
  }
123
121
  if (!typeActive) {
124
122
  match = alphaTabWorkerPattern.exec(code);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -39,7 +39,7 @@ node_process = require_rolldown_runtime.__toESM(node_process, 1);
39
39
  let node_tty = require("node:tty");
40
40
  let node_readline = require("node:readline");
41
41
  node_readline = require_rolldown_runtime.__toESM(node_readline, 1);
42
- //#region ../../node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs
42
+ //#region ../../node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs
43
43
  function getDefaultExportFromCjs(x) {
44
44
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
45
45
  }
@@ -242,7 +242,11 @@ function A$1(t, u = {}) {
242
242
  }
243
243
  return e;
244
244
  }
245
- var m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`, r = {
245
+ var m = 10;
246
+ var L$1 = (t = 0) => (u) => `\x1B[${u + t}m`;
247
+ var N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
248
+ var I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
249
+ var r = {
246
250
  modifier: {
247
251
  reset: [0, 0],
248
252
  bold: [1, 22],
@@ -296,7 +300,8 @@ var m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1
296
300
  }
297
301
  };
298
302
  Object.keys(r.modifier);
299
- var tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
303
+ var tD = Object.keys(r.color);
304
+ var eD = Object.keys(r.bgColor);
300
305
  [...tD, ...eD];
301
306
  function sD() {
302
307
  const t = /* @__PURE__ */ new Map();
@@ -369,7 +374,18 @@ function sD() {
369
374
  }
370
375
  }), r;
371
376
  }
372
- var iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
377
+ var iD = sD();
378
+ var v = /* @__PURE__ */ new Set(["\x1B", "›"]);
379
+ var CD = 39;
380
+ var w$1 = "\x07";
381
+ var W$1 = "[";
382
+ var rD = "]";
383
+ var R = "m";
384
+ var y = `${rD}8;;`;
385
+ var V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`;
386
+ var z = (t) => `${v.values().next().value}${y}${t}${w$1}`;
387
+ var ED = (t) => t.split(" ").map((u) => A$1(u));
388
+ var _ = (t, u, F) => {
373
389
  const e = [...u];
374
390
  let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
375
391
  for (const [C, o] of e.entries()) {
@@ -381,12 +397,14 @@ var iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07
381
397
  D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
382
398
  }
383
399
  !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
384
- }, nD = (t) => {
400
+ };
401
+ var nD = (t) => {
385
402
  const u = t.split(" ");
386
403
  let F = u.length;
387
404
  for (; F > 0 && !(A$1(u[F - 1]) > 0);) F--;
388
405
  return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
389
- }, oD = (t, u, F = {}) => {
406
+ };
407
+ var oD = (t, u, F = {}) => {
390
408
  if (F.trim !== false && t.trim() === "") return "";
391
409
  let e = "", s, i;
392
410
  const D = ED(t);
@@ -474,12 +492,14 @@ function d$1(t, u) {
474
492
  const F = t;
475
493
  F.isTTY && F.setRawMode(u);
476
494
  }
477
- var AD = Object.defineProperty, pD = (t, u, F) => u in t ? AD(t, u, {
495
+ var AD = Object.defineProperty;
496
+ var pD = (t, u, F) => u in t ? AD(t, u, {
478
497
  enumerable: true,
479
498
  configurable: true,
480
499
  writable: true,
481
500
  value: F
482
- }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
501
+ }) : t[u] = F;
502
+ var h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
483
503
  var x = class {
484
504
  constructor(u, F = true) {
485
505
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
@@ -600,12 +620,14 @@ var fD = class extends x {
600
620
  });
601
621
  }
602
622
  };
603
- var bD = Object.defineProperty, mD = (t, u, F) => u in t ? bD(t, u, {
623
+ var bD = Object.defineProperty;
624
+ var mD = (t, u, F) => u in t ? bD(t, u, {
604
625
  enumerable: true,
605
626
  configurable: true,
606
627
  writable: true,
607
628
  value: F
608
- }) : t[u] = F, Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
629
+ }) : t[u] = F;
630
+ var Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
609
631
  var wD = class extends x {
610
632
  constructor(u) {
611
633
  super(u, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
@@ -620,9 +642,7 @@ var wD = class extends x {
620
642
  case "right":
621
643
  this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
622
644
  break;
623
- case "space":
624
- this.toggleValue();
625
- break;
645
+ case "space": this.toggleValue();
626
646
  }
627
647
  });
628
648
  }
@@ -638,12 +658,14 @@ var wD = class extends x {
638
658
  this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
639
659
  }
640
660
  };
641
- var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
661
+ var SD = Object.defineProperty;
662
+ var $D = (t, u, F) => u in t ? SD(t, u, {
642
663
  enumerable: true,
643
664
  configurable: true,
644
665
  writable: true,
645
666
  value: F
646
- }) : t[u] = F, q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
667
+ }) : t[u] = F;
668
+ var q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
647
669
  var jD = class extends x {
648
670
  constructor(u) {
649
671
  super(u, false), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
@@ -653,9 +675,7 @@ var jD = class extends x {
653
675
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
654
676
  break;
655
677
  case "down":
656
- case "right":
657
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
658
- break;
678
+ case "right": this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
659
679
  }
660
680
  this.changeValue();
661
681
  });
@@ -686,7 +706,20 @@ var PD = class extends x {
686
706
  function ce() {
687
707
  return node_process.default.platform !== "win32" ? node_process.default.env.TERM !== "linux" : !!node_process.default.env.CI || !!node_process.default.env.WT_SESSION || !!node_process.default.env.TERMINUS_SUBLIME || node_process.default.env.ConEmuTask === "{cmd::Cmder}" || node_process.default.env.TERM_PROGRAM === "Terminus-Sublime" || node_process.default.env.TERM_PROGRAM === "vscode" || node_process.default.env.TERM === "xterm-256color" || node_process.default.env.TERM === "alacritty" || node_process.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
688
708
  }
689
- var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
709
+ var V = ce();
710
+ var u = (t, n) => V ? t : n;
711
+ var le = u("❯", ">");
712
+ var L = u("■", "x");
713
+ var W = u("▲", "x");
714
+ var C = u("✔", "√");
715
+ var o = u("");
716
+ var d = u("");
717
+ var k = u("●", ">");
718
+ var P = u("○", " ");
719
+ var A = u("◻", "[•]");
720
+ var T = u("◼", "[+]");
721
+ var F = u("◻", "[ ]");
722
+ var w = (t) => {
690
723
  switch (t) {
691
724
  case "initial":
692
725
  case "active": return e.cyan(le);
@@ -694,7 +727,8 @@ var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W
694
727
  case "error": return e.yellow(W);
695
728
  case "submit": return e.green(C);
696
729
  }
697
- }, B = (t) => {
730
+ };
731
+ var B = (t) => {
698
732
  const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
699
733
  let l = 0;
700
734
  n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
@@ -703,7 +737,8 @@ var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W
703
737
  const j = v === 0 && $, E = v === x.length - 1 && p;
704
738
  return j || E ? e.dim("...") : r(M, v + l === n);
705
739
  });
706
- }, he = (t) => new PD({
740
+ };
741
+ var he = (t) => new PD({
707
742
  validate: t.validate,
708
743
  placeholder: t.placeholder,
709
744
  defaultValue: t.defaultValue,
@@ -725,7 +760,8 @@ ${e.cyan(d)}
725
760
  `;
726
761
  }
727
762
  }
728
- }).prompt(), ye = (t) => {
763
+ }).prompt();
764
+ var ye = (t) => {
729
765
  const n = t.active ?? "Yes", s = t.inactive ?? "No";
730
766
  return new fD({
731
767
  active: n,
@@ -745,7 +781,8 @@ ${e.cyan(d)}
745
781
  }
746
782
  }
747
783
  }).prompt();
748
- }, ve = (t) => {
784
+ };
785
+ var ve = (t) => {
749
786
  const n = (s, r) => {
750
787
  const i = s.label ?? String(s.value);
751
788
  switch (r) {
@@ -778,7 +815,8 @@ ${e.cyan(d)}
778
815
  }
779
816
  }
780
817
  }).prompt();
781
- }, fe = (t) => {
818
+ };
819
+ var fe = (t) => {
782
820
  const n = (s, r) => {
783
821
  const i = s.label ?? String(s.value);
784
822
  return r === "active" ? `${e.cyan(A)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "selected" ? `${e.green(T)} ${e.dim(i)}` : r === "cancelled" ? `${e.strikethrough(e.dim(i))}` : r === "active-selected" ? `${e.green(T)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "submitted" ? `${e.dim(i)}` : `${e.dim(F)} ${e.dim(i)}`;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -36,7 +36,7 @@
36
36
  import g$1, { stdin, stdout } from "node:process";
37
37
  import { WriteStream } from "node:tty";
38
38
  import f from "node:readline";
39
- //#region ../../node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs
39
+ //#region ../../node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs
40
40
  function getDefaultExportFromCjs(x) {
41
41
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
42
42
  }
@@ -239,7 +239,11 @@ function A$1(t, u = {}) {
239
239
  }
240
240
  return e;
241
241
  }
242
- var m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`, r = {
242
+ var m = 10;
243
+ var L$1 = (t = 0) => (u) => `\x1B[${u + t}m`;
244
+ var N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
245
+ var I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
246
+ var r = {
243
247
  modifier: {
244
248
  reset: [0, 0],
245
249
  bold: [1, 22],
@@ -293,7 +297,8 @@ var m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1
293
297
  }
294
298
  };
295
299
  Object.keys(r.modifier);
296
- var tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
300
+ var tD = Object.keys(r.color);
301
+ var eD = Object.keys(r.bgColor);
297
302
  [...tD, ...eD];
298
303
  function sD() {
299
304
  const t = /* @__PURE__ */ new Map();
@@ -366,7 +371,18 @@ function sD() {
366
371
  }
367
372
  }), r;
368
373
  }
369
- var iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
374
+ var iD = sD();
375
+ var v = /* @__PURE__ */ new Set(["\x1B", "›"]);
376
+ var CD = 39;
377
+ var w$1 = "\x07";
378
+ var W$1 = "[";
379
+ var rD = "]";
380
+ var R = "m";
381
+ var y = `${rD}8;;`;
382
+ var V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`;
383
+ var z = (t) => `${v.values().next().value}${y}${t}${w$1}`;
384
+ var ED = (t) => t.split(" ").map((u) => A$1(u));
385
+ var _ = (t, u, F) => {
370
386
  const e = [...u];
371
387
  let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
372
388
  for (const [C, o] of e.entries()) {
@@ -378,12 +394,14 @@ var iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07
378
394
  D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
379
395
  }
380
396
  !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
381
- }, nD = (t) => {
397
+ };
398
+ var nD = (t) => {
382
399
  const u = t.split(" ");
383
400
  let F = u.length;
384
401
  for (; F > 0 && !(A$1(u[F - 1]) > 0);) F--;
385
402
  return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
386
- }, oD = (t, u, F = {}) => {
403
+ };
404
+ var oD = (t, u, F = {}) => {
387
405
  if (F.trim !== false && t.trim() === "") return "";
388
406
  let e = "", s, i;
389
407
  const D = ED(t);
@@ -471,12 +489,14 @@ function d$1(t, u) {
471
489
  const F = t;
472
490
  F.isTTY && F.setRawMode(u);
473
491
  }
474
- var AD = Object.defineProperty, pD = (t, u, F) => u in t ? AD(t, u, {
492
+ var AD = Object.defineProperty;
493
+ var pD = (t, u, F) => u in t ? AD(t, u, {
475
494
  enumerable: true,
476
495
  configurable: true,
477
496
  writable: true,
478
497
  value: F
479
- }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
498
+ }) : t[u] = F;
499
+ var h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
480
500
  var x = class {
481
501
  constructor(u, F = true) {
482
502
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
@@ -597,12 +617,14 @@ var fD = class extends x {
597
617
  });
598
618
  }
599
619
  };
600
- var bD = Object.defineProperty, mD = (t, u, F) => u in t ? bD(t, u, {
620
+ var bD = Object.defineProperty;
621
+ var mD = (t, u, F) => u in t ? bD(t, u, {
601
622
  enumerable: true,
602
623
  configurable: true,
603
624
  writable: true,
604
625
  value: F
605
- }) : t[u] = F, Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
626
+ }) : t[u] = F;
627
+ var Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
606
628
  var wD = class extends x {
607
629
  constructor(u) {
608
630
  super(u, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
@@ -617,9 +639,7 @@ var wD = class extends x {
617
639
  case "right":
618
640
  this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
619
641
  break;
620
- case "space":
621
- this.toggleValue();
622
- break;
642
+ case "space": this.toggleValue();
623
643
  }
624
644
  });
625
645
  }
@@ -635,12 +655,14 @@ var wD = class extends x {
635
655
  this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
636
656
  }
637
657
  };
638
- var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
658
+ var SD = Object.defineProperty;
659
+ var $D = (t, u, F) => u in t ? SD(t, u, {
639
660
  enumerable: true,
640
661
  configurable: true,
641
662
  writable: true,
642
663
  value: F
643
- }) : t[u] = F, q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
664
+ }) : t[u] = F;
665
+ var q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
644
666
  var jD = class extends x {
645
667
  constructor(u) {
646
668
  super(u, false), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
@@ -650,9 +672,7 @@ var jD = class extends x {
650
672
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
651
673
  break;
652
674
  case "down":
653
- case "right":
654
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
655
- break;
675
+ case "right": this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
656
676
  }
657
677
  this.changeValue();
658
678
  });
@@ -683,7 +703,20 @@ var PD = class extends x {
683
703
  function ce() {
684
704
  return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
685
705
  }
686
- var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
706
+ var V = ce();
707
+ var u = (t, n) => V ? t : n;
708
+ var le = u("❯", ">");
709
+ var L = u("■", "x");
710
+ var W = u("▲", "x");
711
+ var C = u("✔", "√");
712
+ var o = u("");
713
+ var d = u("");
714
+ var k = u("●", ">");
715
+ var P = u("○", " ");
716
+ var A = u("◻", "[•]");
717
+ var T = u("◼", "[+]");
718
+ var F = u("◻", "[ ]");
719
+ var w = (t) => {
687
720
  switch (t) {
688
721
  case "initial":
689
722
  case "active": return e.cyan(le);
@@ -691,7 +724,8 @@ var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W
691
724
  case "error": return e.yellow(W);
692
725
  case "submit": return e.green(C);
693
726
  }
694
- }, B = (t) => {
727
+ };
728
+ var B = (t) => {
695
729
  const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
696
730
  let l = 0;
697
731
  n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
@@ -700,7 +734,8 @@ var V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W
700
734
  const j = v === 0 && $, E = v === x.length - 1 && p;
701
735
  return j || E ? e.dim("...") : r(M, v + l === n);
702
736
  });
703
- }, he = (t) => new PD({
737
+ };
738
+ var he = (t) => new PD({
704
739
  validate: t.validate,
705
740
  placeholder: t.placeholder,
706
741
  defaultValue: t.defaultValue,
@@ -722,7 +757,8 @@ ${e.cyan(d)}
722
757
  `;
723
758
  }
724
759
  }
725
- }).prompt(), ye = (t) => {
760
+ }).prompt();
761
+ var ye = (t) => {
726
762
  const n = t.active ?? "Yes", s = t.inactive ?? "No";
727
763
  return new fD({
728
764
  active: n,
@@ -742,7 +778,8 @@ ${e.cyan(d)}
742
778
  }
743
779
  }
744
780
  }).prompt();
745
- }, ve = (t) => {
781
+ };
782
+ var ve = (t) => {
746
783
  const n = (s, r) => {
747
784
  const i = s.label ?? String(s.value);
748
785
  switch (r) {
@@ -775,7 +812,8 @@ ${e.cyan(d)}
775
812
  }
776
813
  }
777
814
  }).prompt();
778
- }, fe = (t) => {
815
+ };
816
+ var fe = (t) => {
779
817
  const n = (s, r) => {
780
818
  const i = s.label ?? String(s.value);
781
819
  return r === "active" ? `${e.cyan(A)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "selected" ? `${e.green(T)} ${e.dim(i)}` : r === "cancelled" ? `${e.strikethrough(e.dim(i))}` : r === "active-selected" ? `${e.green(T)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "submitted" ? `${e.dim(i)}` : `${e.dim(F)} ${e.dim(i)}`;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -50,7 +50,7 @@ var __copyProps = (to, from, except, desc) => {
50
50
  }
51
51
  return to;
52
52
  };
53
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
53
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
54
54
  value: mod,
55
55
  enumerable: true
56
56
  }) : target, mod));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -90,9 +90,7 @@ function workerPlugin(options) {
90
90
  injectEnv = `importScripts(${envScriptPath})\n`;
91
91
  break;
92
92
  case require_bridge_worker.AlphaTabWorkerTypes.WorkerModule:
93
- case require_bridge_worker.AlphaTabWorkerTypes.AudioWorklet:
94
- injectEnv = `import ${envScriptPath}\n`;
95
- break;
93
+ case require_bridge_worker.AlphaTabWorkerTypes.AudioWorklet: injectEnv = `import ${envScriptPath}\n`;
96
94
  }
97
95
  if (injectEnv) {
98
96
  const s = new magic_string.default(raw);
@@ -120,7 +118,8 @@ function workerPlugin(options) {
120
118
  let match = workerAssetUrlRE.exec(code);
121
119
  while (match) {
122
120
  const [full, hash] = match;
123
- const replacement = require_bridge_build.toOutputFilePathInJS(fileNameHash.get(hash), "asset", chunk.fileName, "js", resolvedConfig, toRelativeRuntime);
121
+ const filename = fileNameHash.get(hash);
122
+ const replacement = require_bridge_build.toOutputFilePathInJS(filename, "asset", chunk.fileName, "js", resolvedConfig, toRelativeRuntime);
124
123
  const replacementString = typeof replacement === "string" ? JSON.stringify(require_bridge_utils.encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
125
124
  s.update(match.index, match.index + full.length, replacementString);
126
125
  match = workerAssetUrlRE.exec(code);
@@ -134,7 +133,8 @@ function workerPlugin(options) {
134
133
  for (const asset of workerMap.assets.values()) {
135
134
  const duplicateAsset = bundle[asset.fileName];
136
135
  if (duplicateAsset) {
137
- if (require_bridge_worker.isSameContent(duplicateAsset.type === "asset" ? duplicateAsset.source : duplicateAsset.code, asset.source)) return;
136
+ const content = duplicateAsset.type === "asset" ? duplicateAsset.source : duplicateAsset.code;
137
+ if (require_bridge_worker.isSameContent(content, asset.source)) return;
138
138
  }
139
139
  this.emitFile({
140
140
  type: "asset",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.9.0-alpha.1861 (develop, build 1861)
2
+ * alphaTab Vite Plugin v1.9.0-alpha.1962 (develop, build 1962)
3
3
  *
4
4
  * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -86,9 +86,7 @@ function workerPlugin(options) {
86
86
  injectEnv = `importScripts(${envScriptPath})\n`;
87
87
  break;
88
88
  case AlphaTabWorkerTypes.WorkerModule:
89
- case AlphaTabWorkerTypes.AudioWorklet:
90
- injectEnv = `import ${envScriptPath}\n`;
91
- break;
89
+ case AlphaTabWorkerTypes.AudioWorklet: injectEnv = `import ${envScriptPath}\n`;
92
90
  }
93
91
  if (injectEnv) {
94
92
  const s = new MagicString(raw);
@@ -116,7 +114,8 @@ function workerPlugin(options) {
116
114
  let match = workerAssetUrlRE.exec(code);
117
115
  while (match) {
118
116
  const [full, hash] = match;
119
- const replacement = toOutputFilePathInJS(fileNameHash.get(hash), "asset", chunk.fileName, "js", resolvedConfig, toRelativeRuntime);
117
+ const filename = fileNameHash.get(hash);
118
+ const replacement = toOutputFilePathInJS(filename, "asset", chunk.fileName, "js", resolvedConfig, toRelativeRuntime);
120
119
  const replacementString = typeof replacement === "string" ? JSON.stringify(encodeURIPath(replacement)).slice(1, -1) : `"+${replacement.runtime}+"`;
121
120
  s.update(match.index, match.index + full.length, replacementString);
122
121
  match = workerAssetUrlRE.exec(code);
@@ -130,7 +129,8 @@ function workerPlugin(options) {
130
129
  for (const asset of workerMap.assets.values()) {
131
130
  const duplicateAsset = bundle[asset.fileName];
132
131
  if (duplicateAsset) {
133
- if (isSameContent(duplicateAsset.type === "asset" ? duplicateAsset.source : duplicateAsset.code, asset.source)) return;
132
+ const content = duplicateAsset.type === "asset" ? duplicateAsset.source : duplicateAsset.code;
133
+ if (isSameContent(content, asset.source)) return;
134
134
  }
135
135
  this.emitFile({
136
136
  type: "asset",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderline/alphatab-vite",
3
- "version": "1.9.0-alpha.1861",
3
+ "version": "1.9.0-alpha.1962",
4
4
  "description": "A plugin for Vite to bundle alphaTab into your webapps.",
5
5
  "keywords": [
6
6
  "guitar",
@@ -19,7 +19,7 @@
19
19
  "license": "MPL-2.0",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/coderline/alphaTab.git"
22
+ "url": "git+https://github.com/CoderLine/alphaTab.git"
23
23
  },
24
24
  "type": "module",
25
25
  "exports": {
@@ -44,25 +44,25 @@
44
44
  "test-web": "npm run test"
45
45
  },
46
46
  "dependencies": {
47
- "magic-string": "^0.30.21"
47
+ "magic-string": "^1.4.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "vite": "^7 || ^8"
50
+ "vite": "^8.3.0"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=20.19.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@biomejs/biome": "^2.5.0",
57
- "@microsoft/api-extractor": "^7.58.9",
58
- "@types/node": "^26.0.0",
56
+ "@biomejs/biome": "^2.5.14",
57
+ "@microsoft/api-extractor": "^7.59.1",
58
+ "@types/node": "^26.6.2",
59
59
  "rimraf": "^6.1.3",
60
60
  "rollup-plugin-node-externals": "^9.0.1",
61
- "terser": "^5.48.0",
61
+ "terser": "^5.51.2",
62
62
  "tslib": "^2.8.1",
63
- "tsx": "^4.22.4",
63
+ "tsx": "^4.23.15",
64
64
  "typescript": "^6.0.3",
65
- "vitest": "^4.1.10"
65
+ "vitest": "^5.0.1"
66
66
  },
67
67
  "files": [
68
68
  "/dist/**",