@wix/cli-app 1.1.67 → 1.1.69

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 (68) hide show
  1. package/build/{CreateVersionCommand-OCHQTS2X.js → CreateVersionCommand-4XOTXR5T.js} +34 -15
  2. package/build/CreateVersionCommand-4XOTXR5T.js.map +1 -0
  3. package/build/{DevCommand-4IXIFS3I.js → DevCommand-NS4DBFV5.js} +12 -12
  4. package/build/{GenerateCommand-A3NZ4E7M.js → GenerateCommand-YPAWGSE3.js} +8 -8
  5. package/build/{LogsCommand-VI4SOYOF.js → LogsCommand-ASSPGAYQ.js} +4 -4
  6. package/build/PreviewCommand-6JOH2ZLN.js +23 -0
  7. package/build/{ReleaseCommand-5JSMZ6UB.js → ReleaseCommand-BAK57VV2.js} +15 -15
  8. package/build/{ServeCommand-47UYGAUR.js → ServeCommand-XVAHY5PD.js} +16 -21
  9. package/build/ServeCommand-XVAHY5PD.js.map +1 -0
  10. package/build/{build-WH5DNJQG.js → build-2E4HKDUB.js} +7 -7
  11. package/build/{chunk-7KWGY5JA.js → chunk-2DLC7QUL.js} +3 -3
  12. package/build/{chunk-FG7KTOQN.js → chunk-32MMFZ46.js} +300 -209
  13. package/build/chunk-32MMFZ46.js.map +1 -0
  14. package/build/{chunk-72RQ3EPK.js → chunk-5P4ZUCVU.js} +11 -16
  15. package/build/chunk-5P4ZUCVU.js.map +1 -0
  16. package/build/{chunk-LTAUYL4H.js → chunk-7VEP3B3B.js} +3 -3
  17. package/build/{chunk-2QNFVJOZ.js → chunk-BBL4SXGY.js} +3 -3
  18. package/build/chunk-BBL4SXGY.js.map +1 -0
  19. package/build/{chunk-NTI35N6X.js → chunk-D7O6F2SQ.js} +1193 -210
  20. package/build/chunk-D7O6F2SQ.js.map +1 -0
  21. package/build/{chunk-LEVI3PK6.js → chunk-FQ6UZCSF.js} +3 -3
  22. package/build/{chunk-WRJRTFOI.js → chunk-HEHKVE3E.js} +3 -3
  23. package/build/{chunk-JVYYEP4B.js → chunk-HWET32VV.js} +195 -143
  24. package/build/chunk-HWET32VV.js.map +1 -0
  25. package/build/{chunk-YG3BFHRO.js → chunk-K2BZ3TOE.js} +2 -2
  26. package/build/{chunk-FGRGEANM.js → chunk-KUGUNAKD.js} +3 -3
  27. package/build/{chunk-HIP3A6XH.js → chunk-MLV7TVJU.js} +3 -3
  28. package/build/{chunk-VSBG2V5M.js → chunk-NMEVBUJF.js} +3 -3
  29. package/build/{chunk-L5ETMB4Z.js → chunk-NUHN5M5Q.js} +5 -5
  30. package/build/{chunk-ZRS3UMNA.js → chunk-O6WUNJLD.js} +5 -5
  31. package/build/{chunk-RSMM6AJY.js → chunk-UVMRGZ5H.js} +358 -291
  32. package/build/{chunk-RSMM6AJY.js.map → chunk-UVMRGZ5H.js.map} +1 -1
  33. package/build/{chunk-2APJDT7U.js → chunk-ZOFE4LJ7.js} +3 -3
  34. package/build/{chunk-2APJDT7U.js.map → chunk-ZOFE4LJ7.js.map} +1 -1
  35. package/build/{chunk-P4IYXOMH.js → chunk-ZSY3YR6T.js} +3 -1
  36. package/build/chunk-ZSY3YR6T.js.map +1 -0
  37. package/build/index.js +24 -24
  38. package/build/index.js.map +1 -1
  39. package/build/{preview-6X7F4EFT.js → preview-LX67DEK4.js} +12 -12
  40. package/build/{render-command-SSMPKWYD.js → render-command-BDUASC2K.js} +6 -6
  41. package/package.json +5 -4
  42. package/build/CreateVersionCommand-OCHQTS2X.js.map +0 -1
  43. package/build/PreviewCommand-EDVLRBLK.js +0 -23
  44. package/build/ServeCommand-47UYGAUR.js.map +0 -1
  45. package/build/chunk-2QNFVJOZ.js.map +0 -1
  46. package/build/chunk-72RQ3EPK.js.map +0 -1
  47. package/build/chunk-FG7KTOQN.js.map +0 -1
  48. package/build/chunk-JVYYEP4B.js.map +0 -1
  49. package/build/chunk-NTI35N6X.js.map +0 -1
  50. package/build/chunk-P4IYXOMH.js.map +0 -1
  51. /package/build/{DevCommand-4IXIFS3I.js.map → DevCommand-NS4DBFV5.js.map} +0 -0
  52. /package/build/{GenerateCommand-A3NZ4E7M.js.map → GenerateCommand-YPAWGSE3.js.map} +0 -0
  53. /package/build/{LogsCommand-VI4SOYOF.js.map → LogsCommand-ASSPGAYQ.js.map} +0 -0
  54. /package/build/{PreviewCommand-EDVLRBLK.js.map → PreviewCommand-6JOH2ZLN.js.map} +0 -0
  55. /package/build/{ReleaseCommand-5JSMZ6UB.js.map → ReleaseCommand-BAK57VV2.js.map} +0 -0
  56. /package/build/{build-WH5DNJQG.js.map → build-2E4HKDUB.js.map} +0 -0
  57. /package/build/{chunk-7KWGY5JA.js.map → chunk-2DLC7QUL.js.map} +0 -0
  58. /package/build/{chunk-LTAUYL4H.js.map → chunk-7VEP3B3B.js.map} +0 -0
  59. /package/build/{chunk-LEVI3PK6.js.map → chunk-FQ6UZCSF.js.map} +0 -0
  60. /package/build/{chunk-WRJRTFOI.js.map → chunk-HEHKVE3E.js.map} +0 -0
  61. /package/build/{chunk-YG3BFHRO.js.map → chunk-K2BZ3TOE.js.map} +0 -0
  62. /package/build/{chunk-FGRGEANM.js.map → chunk-KUGUNAKD.js.map} +0 -0
  63. /package/build/{chunk-HIP3A6XH.js.map → chunk-MLV7TVJU.js.map} +0 -0
  64. /package/build/{chunk-VSBG2V5M.js.map → chunk-NMEVBUJF.js.map} +0 -0
  65. /package/build/{chunk-L5ETMB4Z.js.map → chunk-NUHN5M5Q.js.map} +0 -0
  66. /package/build/{chunk-ZRS3UMNA.js.map → chunk-O6WUNJLD.js.map} +0 -0
  67. /package/build/{preview-6X7F4EFT.js.map → preview-LX67DEK4.js.map} +0 -0
  68. /package/build/{render-command-SSMPKWYD.js.map → render-command-BDUASC2K.js.map} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  require_baseUniq
5
- } from "./chunk-YG3BFHRO.js";
5
+ } from "./chunk-K2BZ3TOE.js";
6
6
  import {
7
7
  BLOCKS_WIDGETS_PANELS_PATTERN,
8
8
  BLOCKS_WIDGETS_PATTERN,
@@ -57,14 +57,14 @@ import {
57
57
  virtualModuleIdForScriptAsset,
58
58
  virtualPathForCustomElementPanelHTMLAsset,
59
59
  virtualPathForHTMLAsset
60
- } from "./chunk-RSMM6AJY.js";
60
+ } from "./chunk-UVMRGZ5H.js";
61
61
  import {
62
62
  CliError,
63
63
  CliErrorCode,
64
64
  getTestOverrides,
65
65
  require_lib,
66
66
  z
67
- } from "./chunk-FG7KTOQN.js";
67
+ } from "./chunk-32MMFZ46.js";
68
68
  import {
69
69
  __commonJS,
70
70
  __esm,
@@ -158,14 +158,14 @@ var require_polyfills = __commonJS({
158
158
  fs2.fstatSync = statFixSync(fs2.fstatSync);
159
159
  fs2.lstatSync = statFixSync(fs2.lstatSync);
160
160
  if (fs2.chmod && !fs2.lchmod) {
161
- fs2.lchmod = function(path7, mode, cb) {
161
+ fs2.lchmod = function(path8, mode, cb) {
162
162
  if (cb) process.nextTick(cb);
163
163
  };
164
164
  fs2.lchmodSync = function() {
165
165
  };
166
166
  }
167
167
  if (fs2.chown && !fs2.lchown) {
168
- fs2.lchown = function(path7, uid, gid, cb) {
168
+ fs2.lchown = function(path8, uid, gid, cb) {
169
169
  if (cb) process.nextTick(cb);
170
170
  };
171
171
  fs2.lchownSync = function() {
@@ -232,9 +232,9 @@ var require_polyfills = __commonJS({
232
232
  };
233
233
  }(fs2.readSync);
234
234
  function patchLchmod(fs3) {
235
- fs3.lchmod = function(path7, mode, callback) {
235
+ fs3.lchmod = function(path8, mode, callback) {
236
236
  fs3.open(
237
- path7,
237
+ path8,
238
238
  constants.O_WRONLY | constants.O_SYMLINK,
239
239
  mode,
240
240
  function(err, fd) {
@@ -250,8 +250,8 @@ var require_polyfills = __commonJS({
250
250
  }
251
251
  );
252
252
  };
253
- fs3.lchmodSync = function(path7, mode) {
254
- var fd = fs3.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
253
+ fs3.lchmodSync = function(path8, mode) {
254
+ var fd = fs3.openSync(path8, constants.O_WRONLY | constants.O_SYMLINK, mode);
255
255
  var threw = true;
256
256
  var ret;
257
257
  try {
@@ -272,8 +272,8 @@ var require_polyfills = __commonJS({
272
272
  }
273
273
  function patchLutimes(fs3) {
274
274
  if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
275
- fs3.lutimes = function(path7, at2, mt, cb) {
276
- fs3.open(path7, constants.O_SYMLINK, function(er, fd) {
275
+ fs3.lutimes = function(path8, at2, mt, cb) {
276
+ fs3.open(path8, constants.O_SYMLINK, function(er, fd) {
277
277
  if (er) {
278
278
  if (cb) cb(er);
279
279
  return;
@@ -285,8 +285,8 @@ var require_polyfills = __commonJS({
285
285
  });
286
286
  });
287
287
  };
288
- fs3.lutimesSync = function(path7, at2, mt) {
289
- var fd = fs3.openSync(path7, constants.O_SYMLINK);
288
+ fs3.lutimesSync = function(path8, at2, mt) {
289
+ var fd = fs3.openSync(path8, constants.O_SYMLINK);
290
290
  var ret;
291
291
  var threw = true;
292
292
  try {
@@ -406,11 +406,11 @@ var require_legacy_streams = __commonJS({
406
406
  ReadStream,
407
407
  WriteStream
408
408
  };
409
- function ReadStream(path7, options) {
410
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
409
+ function ReadStream(path8, options) {
410
+ if (!(this instanceof ReadStream)) return new ReadStream(path8, options);
411
411
  Stream.call(this);
412
412
  var self2 = this;
413
- this.path = path7;
413
+ this.path = path8;
414
414
  this.fd = null;
415
415
  this.readable = true;
416
416
  this.paused = false;
@@ -455,10 +455,10 @@ var require_legacy_streams = __commonJS({
455
455
  self2._read();
456
456
  });
457
457
  }
458
- function WriteStream(path7, options) {
459
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
458
+ function WriteStream(path8, options) {
459
+ if (!(this instanceof WriteStream)) return new WriteStream(path8, options);
460
460
  Stream.call(this);
461
- this.path = path7;
461
+ this.path = path8;
462
462
  this.fd = null;
463
463
  this.writable = true;
464
464
  this.flags = "w";
@@ -604,14 +604,14 @@ var require_graceful_fs = __commonJS({
604
604
  fs3.createWriteStream = createWriteStream;
605
605
  var fs$readFile = fs3.readFile;
606
606
  fs3.readFile = readFile5;
607
- function readFile5(path7, options, cb) {
607
+ function readFile5(path8, options, cb) {
608
608
  if (typeof options === "function")
609
609
  cb = options, options = null;
610
- return go$readFile(path7, options, cb);
611
- function go$readFile(path8, options2, cb2, startTime) {
612
- return fs$readFile(path8, options2, function(err) {
610
+ return go$readFile(path8, options, cb);
611
+ function go$readFile(path9, options2, cb2, startTime) {
612
+ return fs$readFile(path9, options2, function(err) {
613
613
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
614
- enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
614
+ enqueue([go$readFile, [path9, options2, cb2], err, startTime || Date.now(), Date.now()]);
615
615
  else {
616
616
  if (typeof cb2 === "function")
617
617
  cb2.apply(this, arguments);
@@ -621,14 +621,14 @@ var require_graceful_fs = __commonJS({
621
621
  }
622
622
  var fs$writeFile = fs3.writeFile;
623
623
  fs3.writeFile = writeFile3;
624
- function writeFile3(path7, data2, options, cb) {
624
+ function writeFile3(path8, data2, options, cb) {
625
625
  if (typeof options === "function")
626
626
  cb = options, options = null;
627
- return go$writeFile(path7, data2, options, cb);
628
- function go$writeFile(path8, data3, options2, cb2, startTime) {
629
- return fs$writeFile(path8, data3, options2, function(err) {
627
+ return go$writeFile(path8, data2, options, cb);
628
+ function go$writeFile(path9, data3, options2, cb2, startTime) {
629
+ return fs$writeFile(path9, data3, options2, function(err) {
630
630
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
631
- enqueue([go$writeFile, [path8, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
631
+ enqueue([go$writeFile, [path9, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
632
632
  else {
633
633
  if (typeof cb2 === "function")
634
634
  cb2.apply(this, arguments);
@@ -639,14 +639,14 @@ var require_graceful_fs = __commonJS({
639
639
  var fs$appendFile = fs3.appendFile;
640
640
  if (fs$appendFile)
641
641
  fs3.appendFile = appendFile;
642
- function appendFile(path7, data2, options, cb) {
642
+ function appendFile(path8, data2, options, cb) {
643
643
  if (typeof options === "function")
644
644
  cb = options, options = null;
645
- return go$appendFile(path7, data2, options, cb);
646
- function go$appendFile(path8, data3, options2, cb2, startTime) {
647
- return fs$appendFile(path8, data3, options2, function(err) {
645
+ return go$appendFile(path8, data2, options, cb);
646
+ function go$appendFile(path9, data3, options2, cb2, startTime) {
647
+ return fs$appendFile(path9, data3, options2, function(err) {
648
648
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
649
- enqueue([go$appendFile, [path8, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
649
+ enqueue([go$appendFile, [path9, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
650
650
  else {
651
651
  if (typeof cb2 === "function")
652
652
  cb2.apply(this, arguments);
@@ -677,31 +677,31 @@ var require_graceful_fs = __commonJS({
677
677
  var fs$readdir = fs3.readdir;
678
678
  fs3.readdir = readdir;
679
679
  var noReaddirOptionVersions = /^v[0-5]\./;
680
- function readdir(path7, options, cb) {
680
+ function readdir(path8, options, cb) {
681
681
  if (typeof options === "function")
682
682
  cb = options, options = null;
683
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
684
- return fs$readdir(path8, fs$readdirCallback(
685
- path8,
683
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options2, cb2, startTime) {
684
+ return fs$readdir(path9, fs$readdirCallback(
685
+ path9,
686
686
  options2,
687
687
  cb2,
688
688
  startTime
689
689
  ));
690
- } : function go$readdir2(path8, options2, cb2, startTime) {
691
- return fs$readdir(path8, options2, fs$readdirCallback(
692
- path8,
690
+ } : function go$readdir2(path9, options2, cb2, startTime) {
691
+ return fs$readdir(path9, options2, fs$readdirCallback(
692
+ path9,
693
693
  options2,
694
694
  cb2,
695
695
  startTime
696
696
  ));
697
697
  };
698
- return go$readdir(path7, options, cb);
699
- function fs$readdirCallback(path8, options2, cb2, startTime) {
698
+ return go$readdir(path8, options, cb);
699
+ function fs$readdirCallback(path9, options2, cb2, startTime) {
700
700
  return function(err, files) {
701
701
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
702
702
  enqueue([
703
703
  go$readdir,
704
- [path8, options2, cb2],
704
+ [path9, options2, cb2],
705
705
  err,
706
706
  startTime || Date.now(),
707
707
  Date.now()
@@ -772,7 +772,7 @@ var require_graceful_fs = __commonJS({
772
772
  enumerable: true,
773
773
  configurable: true
774
774
  });
775
- function ReadStream(path7, options) {
775
+ function ReadStream(path8, options) {
776
776
  if (this instanceof ReadStream)
777
777
  return fs$ReadStream.apply(this, arguments), this;
778
778
  else
@@ -792,7 +792,7 @@ var require_graceful_fs = __commonJS({
792
792
  }
793
793
  });
794
794
  }
795
- function WriteStream(path7, options) {
795
+ function WriteStream(path8, options) {
796
796
  if (this instanceof WriteStream)
797
797
  return fs$WriteStream.apply(this, arguments), this;
798
798
  else
@@ -810,22 +810,22 @@ var require_graceful_fs = __commonJS({
810
810
  }
811
811
  });
812
812
  }
813
- function createReadStream(path7, options) {
814
- return new fs3.ReadStream(path7, options);
813
+ function createReadStream(path8, options) {
814
+ return new fs3.ReadStream(path8, options);
815
815
  }
816
- function createWriteStream(path7, options) {
817
- return new fs3.WriteStream(path7, options);
816
+ function createWriteStream(path8, options) {
817
+ return new fs3.WriteStream(path8, options);
818
818
  }
819
819
  var fs$open = fs3.open;
820
820
  fs3.open = open;
821
- function open(path7, flags, mode, cb) {
821
+ function open(path8, flags, mode, cb) {
822
822
  if (typeof mode === "function")
823
823
  cb = mode, mode = null;
824
- return go$open(path7, flags, mode, cb);
825
- function go$open(path8, flags2, mode2, cb2, startTime) {
826
- return fs$open(path8, flags2, mode2, function(err, fd) {
824
+ return go$open(path8, flags, mode, cb);
825
+ function go$open(path9, flags2, mode2, cb2, startTime) {
826
+ return fs$open(path9, flags2, mode2, function(err, fd) {
827
827
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
828
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
828
+ enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
829
829
  else {
830
830
  if (typeof cb2 === "function")
831
831
  cb2.apply(this, arguments);
@@ -997,10 +997,10 @@ var require_utils = __commonJS({
997
997
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
998
998
  "use strict";
999
999
  init_esm_shims();
1000
- var path7 = __require("path");
1000
+ var path8 = __require("path");
1001
1001
  module.exports.checkPath = function checkPath(pth) {
1002
1002
  if (process.platform === "win32") {
1003
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path7.parse(pth).root, ""));
1003
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path8.parse(pth).root, ""));
1004
1004
  if (pathHasInvalidWinCharacters) {
1005
1005
  const error = new Error(`Path contains invalid characters: ${pth}`);
1006
1006
  error.code = "EINVAL";
@@ -1067,8 +1067,8 @@ var require_path_exists = __commonJS({
1067
1067
  init_esm_shims();
1068
1068
  var u = require_universalify().fromPromise;
1069
1069
  var fs2 = require_fs();
1070
- function pathExists(path7) {
1071
- return fs2.access(path7).then(() => true).catch(() => false);
1070
+ function pathExists(path8) {
1071
+ return fs2.access(path8).then(() => true).catch(() => false);
1072
1072
  }
1073
1073
  module.exports = {
1074
1074
  pathExists: u(pathExists),
@@ -1083,8 +1083,8 @@ var require_utimes = __commonJS({
1083
1083
  "use strict";
1084
1084
  init_esm_shims();
1085
1085
  var fs2 = require_graceful_fs();
1086
- function utimesMillis(path7, atime, mtime, callback) {
1087
- fs2.open(path7, "r+", (err, fd) => {
1086
+ function utimesMillis(path8, atime, mtime, callback) {
1087
+ fs2.open(path8, "r+", (err, fd) => {
1088
1088
  if (err) return callback(err);
1089
1089
  fs2.futimes(fd, atime, mtime, (futimesErr) => {
1090
1090
  fs2.close(fd, (closeErr) => {
@@ -1093,8 +1093,8 @@ var require_utimes = __commonJS({
1093
1093
  });
1094
1094
  });
1095
1095
  }
1096
- function utimesMillisSync(path7, atime, mtime) {
1097
- const fd = fs2.openSync(path7, "r+");
1096
+ function utimesMillisSync(path8, atime, mtime) {
1097
+ const fd = fs2.openSync(path8, "r+");
1098
1098
  fs2.futimesSync(fd, atime, mtime);
1099
1099
  return fs2.closeSync(fd);
1100
1100
  }
@@ -1111,7 +1111,7 @@ var require_stat = __commonJS({
1111
1111
  "use strict";
1112
1112
  init_esm_shims();
1113
1113
  var fs2 = require_fs();
1114
- var path7 = __require("path");
1114
+ var path8 = __require("path");
1115
1115
  var util = __require("util");
1116
1116
  function getStats(src, dest, opts) {
1117
1117
  const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
@@ -1141,8 +1141,8 @@ var require_stat = __commonJS({
1141
1141
  const { srcStat, destStat } = stats;
1142
1142
  if (destStat) {
1143
1143
  if (areIdentical(srcStat, destStat)) {
1144
- const srcBaseName = path7.basename(src);
1145
- const destBaseName = path7.basename(dest);
1144
+ const srcBaseName = path8.basename(src);
1145
+ const destBaseName = path8.basename(dest);
1146
1146
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1147
1147
  return cb(null, { srcStat, destStat, isChangingCase: true });
1148
1148
  }
@@ -1165,8 +1165,8 @@ var require_stat = __commonJS({
1165
1165
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1166
1166
  if (destStat) {
1167
1167
  if (areIdentical(srcStat, destStat)) {
1168
- const srcBaseName = path7.basename(src);
1169
- const destBaseName = path7.basename(dest);
1168
+ const srcBaseName = path8.basename(src);
1169
+ const destBaseName = path8.basename(dest);
1170
1170
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1171
1171
  return { srcStat, destStat, isChangingCase: true };
1172
1172
  }
@@ -1185,9 +1185,9 @@ var require_stat = __commonJS({
1185
1185
  return { srcStat, destStat };
1186
1186
  }
1187
1187
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
1188
- const srcParent = path7.resolve(path7.dirname(src));
1189
- const destParent = path7.resolve(path7.dirname(dest));
1190
- if (destParent === srcParent || destParent === path7.parse(destParent).root) return cb();
1188
+ const srcParent = path8.resolve(path8.dirname(src));
1189
+ const destParent = path8.resolve(path8.dirname(dest));
1190
+ if (destParent === srcParent || destParent === path8.parse(destParent).root) return cb();
1191
1191
  fs2.stat(destParent, { bigint: true }, (err, destStat) => {
1192
1192
  if (err) {
1193
1193
  if (err.code === "ENOENT") return cb();
@@ -1200,9 +1200,9 @@ var require_stat = __commonJS({
1200
1200
  });
1201
1201
  }
1202
1202
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1203
- const srcParent = path7.resolve(path7.dirname(src));
1204
- const destParent = path7.resolve(path7.dirname(dest));
1205
- if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
1203
+ const srcParent = path8.resolve(path8.dirname(src));
1204
+ const destParent = path8.resolve(path8.dirname(dest));
1205
+ if (destParent === srcParent || destParent === path8.parse(destParent).root) return;
1206
1206
  let destStat;
1207
1207
  try {
1208
1208
  destStat = fs2.statSync(destParent, { bigint: true });
@@ -1219,8 +1219,8 @@ var require_stat = __commonJS({
1219
1219
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1220
1220
  }
1221
1221
  function isSrcSubdir(src, dest) {
1222
- const srcArr = path7.resolve(src).split(path7.sep).filter((i) => i);
1223
- const destArr = path7.resolve(dest).split(path7.sep).filter((i) => i);
1222
+ const srcArr = path8.resolve(src).split(path8.sep).filter((i) => i);
1223
+ const destArr = path8.resolve(dest).split(path8.sep).filter((i) => i);
1224
1224
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
1225
1225
  }
1226
1226
  function errMsg(src, dest, funcName) {
@@ -1243,7 +1243,7 @@ var require_copy = __commonJS({
1243
1243
  "use strict";
1244
1244
  init_esm_shims();
1245
1245
  var fs2 = require_graceful_fs();
1246
- var path7 = __require("path");
1246
+ var path8 = __require("path");
1247
1247
  var mkdirs = require_mkdirs().mkdirs;
1248
1248
  var pathExists = require_path_exists().pathExists;
1249
1249
  var utimesMillis = require_utimes().utimesMillis;
@@ -1278,7 +1278,7 @@ var require_copy = __commonJS({
1278
1278
  });
1279
1279
  }
1280
1280
  function checkParentDir(destStat, src, dest, opts, cb) {
1281
- const destParent = path7.dirname(dest);
1281
+ const destParent = path8.dirname(dest);
1282
1282
  pathExists(destParent, (err, dirExists) => {
1283
1283
  if (err) return cb(err);
1284
1284
  if (dirExists) return getStats(destStat, src, dest, opts, cb);
@@ -1386,8 +1386,8 @@ var require_copy = __commonJS({
1386
1386
  return copyDirItem(items, item, src, dest, opts, cb);
1387
1387
  }
1388
1388
  function copyDirItem(items, item, src, dest, opts, cb) {
1389
- const srcItem = path7.join(src, item);
1390
- const destItem = path7.join(dest, item);
1389
+ const srcItem = path8.join(src, item);
1390
+ const destItem = path8.join(dest, item);
1391
1391
  stat2.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
1392
1392
  if (err) return cb(err);
1393
1393
  const { destStat } = stats;
@@ -1401,7 +1401,7 @@ var require_copy = __commonJS({
1401
1401
  fs2.readlink(src, (err, resolvedSrc) => {
1402
1402
  if (err) return cb(err);
1403
1403
  if (opts.dereference) {
1404
- resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
1404
+ resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1405
1405
  }
1406
1406
  if (!destStat) {
1407
1407
  return fs2.symlink(resolvedSrc, dest, cb);
@@ -1412,7 +1412,7 @@ var require_copy = __commonJS({
1412
1412
  return cb(err2);
1413
1413
  }
1414
1414
  if (opts.dereference) {
1415
- resolvedDest = path7.resolve(process.cwd(), resolvedDest);
1415
+ resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1416
1416
  }
1417
1417
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
1418
1418
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -1441,7 +1441,7 @@ var require_copy_sync = __commonJS({
1441
1441
  "use strict";
1442
1442
  init_esm_shims();
1443
1443
  var fs2 = require_graceful_fs();
1444
- var path7 = __require("path");
1444
+ var path8 = __require("path");
1445
1445
  var mkdirsSync = require_mkdirs().mkdirsSync;
1446
1446
  var utimesMillisSync = require_utimes().utimesMillisSync;
1447
1447
  var stat2 = require_stat();
@@ -1465,7 +1465,7 @@ var require_copy_sync = __commonJS({
1465
1465
  }
1466
1466
  function handleFilterAndCopy(destStat, src, dest, opts) {
1467
1467
  if (opts.filter && !opts.filter(src, dest)) return;
1468
- const destParent = path7.dirname(dest);
1468
+ const destParent = path8.dirname(dest);
1469
1469
  if (!fs2.existsSync(destParent)) mkdirsSync(destParent);
1470
1470
  return getStats(destStat, src, dest, opts);
1471
1471
  }
@@ -1530,15 +1530,15 @@ var require_copy_sync = __commonJS({
1530
1530
  fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
1531
1531
  }
1532
1532
  function copyDirItem(item, src, dest, opts) {
1533
- const srcItem = path7.join(src, item);
1534
- const destItem = path7.join(dest, item);
1533
+ const srcItem = path8.join(src, item);
1534
+ const destItem = path8.join(dest, item);
1535
1535
  const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
1536
1536
  return startCopy(destStat, srcItem, destItem, opts);
1537
1537
  }
1538
1538
  function onLink(destStat, src, dest, opts) {
1539
1539
  let resolvedSrc = fs2.readlinkSync(src);
1540
1540
  if (opts.dereference) {
1541
- resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
1541
+ resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1542
1542
  }
1543
1543
  if (!destStat) {
1544
1544
  return fs2.symlinkSync(resolvedSrc, dest);
@@ -1551,7 +1551,7 @@ var require_copy_sync = __commonJS({
1551
1551
  throw err;
1552
1552
  }
1553
1553
  if (opts.dereference) {
1554
- resolvedDest = path7.resolve(process.cwd(), resolvedDest);
1554
+ resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1555
1555
  }
1556
1556
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
1557
1557
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -1589,7 +1589,7 @@ var require_rimraf = __commonJS({
1589
1589
  "use strict";
1590
1590
  init_esm_shims();
1591
1591
  var fs2 = require_graceful_fs();
1592
- var path7 = __require("path");
1592
+ var path8 = __require("path");
1593
1593
  var assert = __require("assert");
1594
1594
  var isWindows = process.platform === "win32";
1595
1595
  function defaults2(options) {
@@ -1734,7 +1734,7 @@ var require_rimraf = __commonJS({
1734
1734
  let errState;
1735
1735
  if (n3 === 0) return options.rmdir(p, cb);
1736
1736
  files.forEach((f) => {
1737
- rimraf(path7.join(p, f), options, (er2) => {
1737
+ rimraf(path8.join(p, f), options, (er2) => {
1738
1738
  if (errState) {
1739
1739
  return;
1740
1740
  }
@@ -1799,7 +1799,7 @@ var require_rimraf = __commonJS({
1799
1799
  function rmkidsSync(p, options) {
1800
1800
  assert(p);
1801
1801
  assert(options);
1802
- options.readdirSync(p).forEach((f) => rimrafSync(path7.join(p, f), options));
1802
+ options.readdirSync(p).forEach((f) => rimrafSync(path8.join(p, f), options));
1803
1803
  if (isWindows) {
1804
1804
  const startTime = Date.now();
1805
1805
  do {
@@ -1827,13 +1827,13 @@ var require_remove = __commonJS({
1827
1827
  var fs2 = require_graceful_fs();
1828
1828
  var u = require_universalify().fromCallback;
1829
1829
  var rimraf = require_rimraf();
1830
- function remove2(path7, callback) {
1831
- if (fs2.rm) return fs2.rm(path7, { recursive: true, force: true }, callback);
1832
- rimraf(path7, callback);
1830
+ function remove2(path8, callback) {
1831
+ if (fs2.rm) return fs2.rm(path8, { recursive: true, force: true }, callback);
1832
+ rimraf(path8, callback);
1833
1833
  }
1834
- function removeSync(path7) {
1835
- if (fs2.rmSync) return fs2.rmSync(path7, { recursive: true, force: true });
1836
- rimraf.sync(path7);
1834
+ function removeSync(path8) {
1835
+ if (fs2.rmSync) return fs2.rmSync(path8, { recursive: true, force: true });
1836
+ rimraf.sync(path8);
1837
1837
  }
1838
1838
  module.exports = {
1839
1839
  remove: u(remove2),
@@ -1849,7 +1849,7 @@ var require_empty = __commonJS({
1849
1849
  init_esm_shims();
1850
1850
  var u = require_universalify().fromPromise;
1851
1851
  var fs2 = require_fs();
1852
- var path7 = __require("path");
1852
+ var path8 = __require("path");
1853
1853
  var mkdir = require_mkdirs();
1854
1854
  var remove2 = require_remove();
1855
1855
  var emptyDir = u(async function emptyDir2(dir) {
@@ -1859,7 +1859,7 @@ var require_empty = __commonJS({
1859
1859
  } catch {
1860
1860
  return mkdir.mkdirs(dir);
1861
1861
  }
1862
- return Promise.all(items.map((item) => remove2.remove(path7.join(dir, item))));
1862
+ return Promise.all(items.map((item) => remove2.remove(path8.join(dir, item))));
1863
1863
  });
1864
1864
  function emptyDirSync2(dir) {
1865
1865
  let items;
@@ -1869,7 +1869,7 @@ var require_empty = __commonJS({
1869
1869
  return mkdir.mkdirsSync(dir);
1870
1870
  }
1871
1871
  items.forEach((item) => {
1872
- item = path7.join(dir, item);
1872
+ item = path8.join(dir, item);
1873
1873
  remove2.removeSync(item);
1874
1874
  });
1875
1875
  }
@@ -1888,7 +1888,7 @@ var require_file = __commonJS({
1888
1888
  "use strict";
1889
1889
  init_esm_shims();
1890
1890
  var u = require_universalify().fromCallback;
1891
- var path7 = __require("path");
1891
+ var path8 = __require("path");
1892
1892
  var fs2 = require_graceful_fs();
1893
1893
  var mkdir = require_mkdirs();
1894
1894
  function createFile(file, callback) {
@@ -1900,7 +1900,7 @@ var require_file = __commonJS({
1900
1900
  }
1901
1901
  fs2.stat(file, (err, stats) => {
1902
1902
  if (!err && stats.isFile()) return callback();
1903
- const dir = path7.dirname(file);
1903
+ const dir = path8.dirname(file);
1904
1904
  fs2.stat(dir, (err2, stats2) => {
1905
1905
  if (err2) {
1906
1906
  if (err2.code === "ENOENT") {
@@ -1927,7 +1927,7 @@ var require_file = __commonJS({
1927
1927
  } catch {
1928
1928
  }
1929
1929
  if (stats && stats.isFile()) return;
1930
- const dir = path7.dirname(file);
1930
+ const dir = path8.dirname(file);
1931
1931
  try {
1932
1932
  if (!fs2.statSync(dir).isDirectory()) {
1933
1933
  fs2.readdirSync(dir);
@@ -1951,7 +1951,7 @@ var require_link = __commonJS({
1951
1951
  "use strict";
1952
1952
  init_esm_shims();
1953
1953
  var u = require_universalify().fromCallback;
1954
- var path7 = __require("path");
1954
+ var path8 = __require("path");
1955
1955
  var fs2 = require_graceful_fs();
1956
1956
  var mkdir = require_mkdirs();
1957
1957
  var pathExists = require_path_exists().pathExists;
@@ -1970,7 +1970,7 @@ var require_link = __commonJS({
1970
1970
  return callback(err);
1971
1971
  }
1972
1972
  if (dstStat && areIdentical(srcStat, dstStat)) return callback(null);
1973
- const dir = path7.dirname(dstpath);
1973
+ const dir = path8.dirname(dstpath);
1974
1974
  pathExists(dir, (err2, dirExists) => {
1975
1975
  if (err2) return callback(err2);
1976
1976
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -1995,7 +1995,7 @@ var require_link = __commonJS({
1995
1995
  err.message = err.message.replace("lstat", "ensureLink");
1996
1996
  throw err;
1997
1997
  }
1998
- const dir = path7.dirname(dstpath);
1998
+ const dir = path8.dirname(dstpath);
1999
1999
  const dirExists = fs2.existsSync(dir);
2000
2000
  if (dirExists) return fs2.linkSync(srcpath, dstpath);
2001
2001
  mkdir.mkdirsSync(dir);
@@ -2013,11 +2013,11 @@ var require_symlink_paths = __commonJS({
2013
2013
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
2014
2014
  "use strict";
2015
2015
  init_esm_shims();
2016
- var path7 = __require("path");
2016
+ var path8 = __require("path");
2017
2017
  var fs2 = require_graceful_fs();
2018
2018
  var pathExists = require_path_exists().pathExists;
2019
2019
  function symlinkPaths(srcpath, dstpath, callback) {
2020
- if (path7.isAbsolute(srcpath)) {
2020
+ if (path8.isAbsolute(srcpath)) {
2021
2021
  return fs2.lstat(srcpath, (err) => {
2022
2022
  if (err) {
2023
2023
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -2029,8 +2029,8 @@ var require_symlink_paths = __commonJS({
2029
2029
  });
2030
2030
  });
2031
2031
  } else {
2032
- const dstdir = path7.dirname(dstpath);
2033
- const relativeToDst = path7.join(dstdir, srcpath);
2032
+ const dstdir = path8.dirname(dstpath);
2033
+ const relativeToDst = path8.join(dstdir, srcpath);
2034
2034
  return pathExists(relativeToDst, (err, exists) => {
2035
2035
  if (err) return callback(err);
2036
2036
  if (exists) {
@@ -2046,7 +2046,7 @@ var require_symlink_paths = __commonJS({
2046
2046
  }
2047
2047
  return callback(null, {
2048
2048
  toCwd: srcpath,
2049
- toDst: path7.relative(dstdir, srcpath)
2049
+ toDst: path8.relative(dstdir, srcpath)
2050
2050
  });
2051
2051
  });
2052
2052
  }
@@ -2055,7 +2055,7 @@ var require_symlink_paths = __commonJS({
2055
2055
  }
2056
2056
  function symlinkPathsSync(srcpath, dstpath) {
2057
2057
  let exists;
2058
- if (path7.isAbsolute(srcpath)) {
2058
+ if (path8.isAbsolute(srcpath)) {
2059
2059
  exists = fs2.existsSync(srcpath);
2060
2060
  if (!exists) throw new Error("absolute srcpath does not exist");
2061
2061
  return {
@@ -2063,8 +2063,8 @@ var require_symlink_paths = __commonJS({
2063
2063
  toDst: srcpath
2064
2064
  };
2065
2065
  } else {
2066
- const dstdir = path7.dirname(dstpath);
2067
- const relativeToDst = path7.join(dstdir, srcpath);
2066
+ const dstdir = path8.dirname(dstpath);
2067
+ const relativeToDst = path8.join(dstdir, srcpath);
2068
2068
  exists = fs2.existsSync(relativeToDst);
2069
2069
  if (exists) {
2070
2070
  return {
@@ -2076,7 +2076,7 @@ var require_symlink_paths = __commonJS({
2076
2076
  if (!exists) throw new Error("relative srcpath does not exist");
2077
2077
  return {
2078
2078
  toCwd: srcpath,
2079
- toDst: path7.relative(dstdir, srcpath)
2079
+ toDst: path8.relative(dstdir, srcpath)
2080
2080
  };
2081
2081
  }
2082
2082
  }
@@ -2127,7 +2127,7 @@ var require_symlink = __commonJS({
2127
2127
  "use strict";
2128
2128
  init_esm_shims();
2129
2129
  var u = require_universalify().fromCallback;
2130
- var path7 = __require("path");
2130
+ var path8 = __require("path");
2131
2131
  var fs2 = require_fs();
2132
2132
  var _mkdirs = require_mkdirs();
2133
2133
  var mkdirs = _mkdirs.mkdirs;
@@ -2161,7 +2161,7 @@ var require_symlink = __commonJS({
2161
2161
  srcpath = relative.toDst;
2162
2162
  symlinkType(relative.toCwd, type, (err2, type2) => {
2163
2163
  if (err2) return callback(err2);
2164
- const dir = path7.dirname(dstpath);
2164
+ const dir = path8.dirname(dstpath);
2165
2165
  pathExists(dir, (err3, dirExists) => {
2166
2166
  if (err3) return callback(err3);
2167
2167
  if (dirExists) return fs2.symlink(srcpath, dstpath, type2, callback);
@@ -2187,7 +2187,7 @@ var require_symlink = __commonJS({
2187
2187
  const relative = symlinkPathsSync(srcpath, dstpath);
2188
2188
  srcpath = relative.toDst;
2189
2189
  type = symlinkTypeSync(relative.toCwd, type);
2190
- const dir = path7.dirname(dstpath);
2190
+ const dir = path8.dirname(dstpath);
2191
2191
  const exists = fs2.existsSync(dir);
2192
2192
  if (exists) return fs2.symlinkSync(srcpath, dstpath, type);
2193
2193
  mkdirsSync(dir);
@@ -2344,7 +2344,7 @@ var require_output_file = __commonJS({
2344
2344
  init_esm_shims();
2345
2345
  var u = require_universalify().fromCallback;
2346
2346
  var fs2 = require_graceful_fs();
2347
- var path7 = __require("path");
2347
+ var path8 = __require("path");
2348
2348
  var mkdir = require_mkdirs();
2349
2349
  var pathExists = require_path_exists().pathExists;
2350
2350
  function outputFile(file, data2, encoding, callback) {
@@ -2352,7 +2352,7 @@ var require_output_file = __commonJS({
2352
2352
  callback = encoding;
2353
2353
  encoding = "utf8";
2354
2354
  }
2355
- const dir = path7.dirname(file);
2355
+ const dir = path8.dirname(file);
2356
2356
  pathExists(dir, (err, itDoes) => {
2357
2357
  if (err) return callback(err);
2358
2358
  if (itDoes) return fs2.writeFile(file, data2, encoding, callback);
@@ -2363,7 +2363,7 @@ var require_output_file = __commonJS({
2363
2363
  });
2364
2364
  }
2365
2365
  function outputFileSync(file, ...args) {
2366
- const dir = path7.dirname(file);
2366
+ const dir = path8.dirname(file);
2367
2367
  if (fs2.existsSync(dir)) {
2368
2368
  return fs2.writeFileSync(file, ...args);
2369
2369
  }
@@ -2432,7 +2432,7 @@ var require_move = __commonJS({
2432
2432
  "use strict";
2433
2433
  init_esm_shims();
2434
2434
  var fs2 = require_graceful_fs();
2435
- var path7 = __require("path");
2435
+ var path8 = __require("path");
2436
2436
  var copy = require_copy2().copy;
2437
2437
  var remove2 = require_remove().remove;
2438
2438
  var mkdirp = require_mkdirs().mkdirp;
@@ -2451,7 +2451,7 @@ var require_move = __commonJS({
2451
2451
  stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
2452
2452
  if (err2) return cb(err2);
2453
2453
  if (isParentRoot(dest)) return doRename(src, dest, overwrite2, isChangingCase, cb);
2454
- mkdirp(path7.dirname(dest), (err3) => {
2454
+ mkdirp(path8.dirname(dest), (err3) => {
2455
2455
  if (err3) return cb(err3);
2456
2456
  return doRename(src, dest, overwrite2, isChangingCase, cb);
2457
2457
  });
@@ -2459,8 +2459,8 @@ var require_move = __commonJS({
2459
2459
  });
2460
2460
  }
2461
2461
  function isParentRoot(dest) {
2462
- const parent = path7.dirname(dest);
2463
- const parsedPath = path7.parse(parent);
2462
+ const parent = path8.dirname(dest);
2463
+ const parsedPath = path8.parse(parent);
2464
2464
  return parsedPath.root === parent;
2465
2465
  }
2466
2466
  function doRename(src, dest, overwrite2, isChangingCase, cb) {
@@ -2504,7 +2504,7 @@ var require_move_sync = __commonJS({
2504
2504
  "use strict";
2505
2505
  init_esm_shims();
2506
2506
  var fs2 = require_graceful_fs();
2507
- var path7 = __require("path");
2507
+ var path8 = __require("path");
2508
2508
  var copySync = require_copy2().copySync;
2509
2509
  var removeSync = require_remove().removeSync;
2510
2510
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -2514,12 +2514,12 @@ var require_move_sync = __commonJS({
2514
2514
  const overwrite2 = opts.overwrite || opts.clobber || false;
2515
2515
  const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
2516
2516
  stat2.checkParentPathsSync(src, srcStat, dest, "move");
2517
- if (!isParentRoot(dest)) mkdirpSync(path7.dirname(dest));
2517
+ if (!isParentRoot(dest)) mkdirpSync(path8.dirname(dest));
2518
2518
  return doRename(src, dest, overwrite2, isChangingCase);
2519
2519
  }
2520
2520
  function isParentRoot(dest) {
2521
- const parent = path7.dirname(dest);
2522
- const parsedPath = path7.parse(parent);
2521
+ const parent = path8.dirname(dest);
2522
+ const parsedPath = path8.parse(parent);
2523
2523
  return parsedPath.root === parent;
2524
2524
  }
2525
2525
  function doRename(src, dest, overwrite2, isChangingCase) {
@@ -36215,15 +36215,15 @@ var exportsCustodian = ({
36215
36215
  if (id === EXPORTS_CUSTODIAN_ENTRY) {
36216
36216
  return [
36217
36217
  ...Array.from(virtualBlocksWidgetAssets.keys()).map(
36218
- (path7, index) => `
36219
- import { init as init${index}, api as api${index} } from '${path7}';
36218
+ (path8, index) => `
36219
+ import { init as init${index}, api as api${index} } from '${path8}';
36220
36220
  init${index}();
36221
36221
  api${index}();
36222
36222
  `
36223
36223
  ),
36224
36224
  ...Array.from(virtualBlocksWidgetPanelAssets.keys()).map(
36225
- (path7, index) => `
36226
- import { init as initPanel${index} } from '${path7}';
36225
+ (path8, index) => `
36226
+ import { init as initPanel${index} } from '${path8}';
36227
36227
  initPanel${index}();
36228
36228
  `
36229
36229
  )
@@ -36234,6 +36234,32 @@ var exportsCustodian = ({
36234
36234
  };
36235
36235
  };
36236
36236
 
36237
+ // src/vite/plugins/hash-html-files.ts
36238
+ init_esm_shims();
36239
+ import { createHash } from "node:crypto";
36240
+ import { extname } from "node:path";
36241
+ function getHash(text) {
36242
+ return createHash("sha256").update(text).digest("hex").substring(0, 8);
36243
+ }
36244
+ function hashHtmlFiles() {
36245
+ return {
36246
+ name: "hash-html-files",
36247
+ enforce: "post",
36248
+ generateBundle(_, bundle) {
36249
+ for (const id of Object.keys(bundle)) {
36250
+ const outputAsset = bundle[id];
36251
+ if (outputAsset?.type === "asset" && extname(outputAsset.fileName) === ".html") {
36252
+ const newFileName = outputAsset.fileName.replace(
36253
+ /(\.html)$/,
36254
+ `.ch.${getHash(outputAsset.source.toString())}.html`
36255
+ );
36256
+ outputAsset.fileName = newFileName;
36257
+ }
36258
+ }
36259
+ }
36260
+ };
36261
+ }
36262
+
36237
36263
  // src/vite/plugins/config-extensions-file-emitter.ts
36238
36264
  init_esm_shims();
36239
36265
  import path3 from "node:path";
@@ -37794,6 +37820,9 @@ async function getViteConfig(model, options, { baseBackendUrl } = {}) {
37794
37820
  ...virtualBlocksScriptEntries.length ? { [EXPORTS_CUSTODIAN_ENTRY]: EXPORTS_CUSTODIAN_ENTRY } : {}
37795
37821
  },
37796
37822
  output: {
37823
+ assetFileNames: "assets/[name].ch.[hash][extname]",
37824
+ chunkFileNames: "assets/[name].ch.[hash].js",
37825
+ entryFileNames: "assets/[name].ch.[hash].js",
37797
37826
  // Need it to preserve shapes of our exports from virtual module bundles
37798
37827
  minifyInternalExports: false
37799
37828
  }
@@ -37837,6 +37866,7 @@ async function getViteConfig(model, options, { baseBackendUrl } = {}) {
37837
37866
  initialModel: model,
37838
37867
  ...options
37839
37868
  }),
37869
+ hashHtmlFiles(),
37840
37870
  configExtensionsFileEmitter(model),
37841
37871
  ...monitoringPlugins ?? []
37842
37872
  ],
@@ -39068,11 +39098,12 @@ async function createAppManifest({
39068
39098
  // src/app-manifest/component-source.ts
39069
39099
  init_esm_shims();
39070
39100
  var import_variant5 = __toESM(require_lib(), 1);
39071
- import { join as join6 } from "node:path";
39101
+ import path7, { join as join6 } from "node:path";
39072
39102
  import { pathToFileURL } from "node:url";
39073
39103
 
39074
39104
  // src/app-manifest/build-output-data-extractor.ts
39075
39105
  init_esm_shims();
39106
+ import { extname as extname2 } from "node:path";
39076
39107
  function extractBuildOutputs(buildOutput) {
39077
39108
  const isValidRollupOutput = "output" in buildOutput || Array.isArray(buildOutput);
39078
39109
  if (!isValidRollupOutput) {
@@ -39084,6 +39115,23 @@ function extractBuildOutputs(buildOutput) {
39084
39115
  const outputs = Array.isArray(buildOutput) ? buildOutput.flatMap((output) => output.output) : buildOutput.output;
39085
39116
  return outputs;
39086
39117
  }
39118
+ function extractAssetOutput(buildOutput, fileName) {
39119
+ const outputs = extractBuildOutputs(buildOutput);
39120
+ return outputs.find((output) => {
39121
+ return output.type === "asset" && fileName === output.originalFileName && // Workaround for the fact that some assets with different file extensions are outputted with the same originalFileName
39122
+ extname2(fileName) === extname2(output.fileName);
39123
+ });
39124
+ }
39125
+ function extractBundleAssetFileName(buildOutput, fileName) {
39126
+ const output = extractAssetOutput(buildOutput, fileName);
39127
+ if (!output) {
39128
+ throw new CliError({
39129
+ code: CliErrorCode.ViteModuleBundleNotFound(),
39130
+ cause: null
39131
+ });
39132
+ }
39133
+ return output.fileName;
39134
+ }
39087
39135
  function extractModuleBundleName(buildOutput, moduleId) {
39088
39136
  const outputs = extractBuildOutputs(buildOutput);
39089
39137
  const output = outputs.find(
@@ -39098,8 +39146,7 @@ function extractModuleBundleName(buildOutput, moduleId) {
39098
39146
  return output.fileName;
39099
39147
  }
39100
39148
  function extractModuleBundleContent(buildOutput, fileName) {
39101
- const outputs = extractBuildOutputs(buildOutput);
39102
- const output = outputs.find((output2) => output2.fileName === fileName);
39149
+ const output = extractAssetOutput(buildOutput, fileName);
39103
39150
  if (!output || !("source" in output)) {
39104
39151
  throw new CliError({
39105
39152
  code: CliErrorCode.ViteFileNotFoundInOutput({ fileName }),
@@ -39193,8 +39240,9 @@ async function getServicePluginProdType(component, model) {
39193
39240
  }
39194
39241
  var dashboardSourceBuilder = (component, model, clientSource) => {
39195
39242
  if (!model.config.trusted) {
39243
+ const fileName = virtualPathForHTMLAsset(component.id);
39196
39244
  return {
39197
- iframeUrl: virtualPathForHTMLAsset(component.id)
39245
+ iframeUrl: clientSource.clientBuildOutput ? extractBundleAssetFileName(clientSource.clientBuildOutput, fileName) : fileName
39198
39246
  };
39199
39247
  }
39200
39248
  const moduleId = virtualModuleIdForScriptAsset(component.id);
@@ -39208,9 +39256,12 @@ var dashboardSourceBuilder = (component, model, clientSource) => {
39208
39256
  }
39209
39257
  };
39210
39258
  };
39211
- var embeddedScriptBuilder = async (component, { clientBuildOutput, clientDevServerUrl }) => {
39259
+ var embeddedScriptBuilder = async (model, component, { clientBuildOutput, clientDevServerUrl }) => {
39212
39260
  return {
39213
- template: clientBuildOutput ? extractModuleBundleContent(clientBuildOutput, component.relativePath) : await getEmbeddedScriptDevTemplate(component, clientDevServerUrl)
39261
+ template: clientBuildOutput ? extractModuleBundleContent(
39262
+ clientBuildOutput,
39263
+ path7.resolve(model.projectFolder, component.relativePath)
39264
+ ) : await getEmbeddedScriptDevTemplate(component, clientDevServerUrl)
39214
39265
  };
39215
39266
  };
39216
39267
  var eventSourceBuilder = async (component, model, backendSource) => {
@@ -39235,9 +39286,10 @@ var servicePluginSourceBuilder = async (component, model, backendSource) => {
39235
39286
  var customElementBuilder = (component, clientSource) => {
39236
39287
  const moduleId = virtualModuleIdForCustomElementScriptAsset(component.id);
39237
39288
  const componentUrl = clientSource.clientBuildOutput ? extractModuleBundleName(clientSource.clientBuildOutput, moduleId) : `/@id/${moduleId}?import`;
39289
+ const fileName = virtualPathForCustomElementPanelHTMLAsset(component.id);
39238
39290
  return {
39239
39291
  scriptUrl: componentUrl,
39240
- settingsUrl: virtualPathForCustomElementPanelHTMLAsset(component.id)
39292
+ settingsUrl: clientSource.clientBuildOutput ? extractBundleAssetFileName(clientSource.clientBuildOutput, fileName) : fileName
39241
39293
  };
39242
39294
  };
39243
39295
  var blocksWidgetBuilder = (component, clientSource) => {
@@ -39257,7 +39309,7 @@ var blocksPanelBuilder = (component, clientSource) => {
39257
39309
  function getComponentSourceBuilder(model, clientSource, backendSource) {
39258
39310
  return async (component) => {
39259
39311
  const source = (0, import_variant5.match)(component, {
39260
- EmbeddedScript: (embeddedScriptComponent) => embeddedScriptBuilder(embeddedScriptComponent, clientSource),
39312
+ EmbeddedScript: (embeddedScriptComponent) => embeddedScriptBuilder(model, embeddedScriptComponent, clientSource),
39261
39313
  DashboardSidebarCategory: () => {
39262
39314
  },
39263
39315
  CustomElement: (customElementComponent) => customElementBuilder(customElementComponent, clientSource),
@@ -40028,7 +40080,7 @@ var updateTopology = (appManifest, topologyData) => {
40028
40080
  return clonedManifest;
40029
40081
  };
40030
40082
  var updateBlocksComponents = (manifest, blocksComponents) => {
40031
- if (!blocksComponents) {
40083
+ if (!blocksComponents?.length) {
40032
40084
  return manifest;
40033
40085
  }
40034
40086
  const mainComponentFromBlocks = blocksComponents.find(
@@ -40122,4 +40174,4 @@ export {
40122
40174
  he/he.js:
40123
40175
  (*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
40124
40176
  */
40125
- //# sourceMappingURL=chunk-JVYYEP4B.js.map
40177
+ //# sourceMappingURL=chunk-HWET32VV.js.map