drizzle-kit 0.20.6-45489ee → 0.20.6-955c8c7

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.
package/bin.cjs CHANGED
@@ -469,8 +469,8 @@ var init_lib = __esm({
469
469
  };
470
470
  overrideErrorMap = errorMap;
471
471
  makeIssue = (params) => {
472
- const { data, path: path4, errorMaps, issueData } = params;
473
- const fullPath = [...path4, ...issueData.path || []];
472
+ const { data, path: path5, errorMaps, issueData } = params;
473
+ const fullPath = [...path5, ...issueData.path || []];
474
474
  const fullIssue = {
475
475
  ...issueData,
476
476
  path: fullPath
@@ -552,10 +552,10 @@ var init_lib = __esm({
552
552
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
553
553
  })(errorUtil || (errorUtil = {}));
554
554
  ParseInputLazyPath = class {
555
- constructor(parent, value, path4, key) {
555
+ constructor(parent, value, path5, key) {
556
556
  this.parent = parent;
557
557
  this.data = value;
558
- this._path = path4;
558
+ this._path = path5;
559
559
  this._key = key;
560
560
  }
561
561
  get path() {
@@ -5774,7 +5774,7 @@ var require_ms = __commonJS({
5774
5774
  // node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
5775
5775
  var require_common = __commonJS({
5776
5776
  "node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module2) {
5777
- function setup(env2) {
5777
+ function setup(env3) {
5778
5778
  createDebug.debug = createDebug;
5779
5779
  createDebug.default = createDebug;
5780
5780
  createDebug.coerce = coerce2;
@@ -5783,8 +5783,8 @@ var require_common = __commonJS({
5783
5783
  createDebug.enabled = enabled;
5784
5784
  createDebug.humanize = require_ms();
5785
5785
  createDebug.destroy = destroy;
5786
- Object.keys(env2).forEach((key) => {
5787
- createDebug[key] = env2[key];
5786
+ Object.keys(env3).forEach((key) => {
5787
+ createDebug[key] = env3[key];
5788
5788
  });
5789
5789
  createDebug.names = [];
5790
5790
  createDebug.skips = [];
@@ -6120,23 +6120,23 @@ var require_has_flag = __commonJS({
6120
6120
  var require_supports_color = __commonJS({
6121
6121
  "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
6122
6122
  "use strict";
6123
- var os2 = require("os");
6123
+ var os3 = require("os");
6124
6124
  var tty2 = require("tty");
6125
6125
  var hasFlag2 = require_has_flag();
6126
- var { env: env2 } = process;
6126
+ var { env: env3 } = process;
6127
6127
  var forceColor;
6128
6128
  if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
6129
6129
  forceColor = 0;
6130
6130
  } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
6131
6131
  forceColor = 1;
6132
6132
  }
6133
- if ("FORCE_COLOR" in env2) {
6134
- if (env2.FORCE_COLOR === "true") {
6133
+ if ("FORCE_COLOR" in env3) {
6134
+ if (env3.FORCE_COLOR === "true") {
6135
6135
  forceColor = 1;
6136
- } else if (env2.FORCE_COLOR === "false") {
6136
+ } else if (env3.FORCE_COLOR === "false") {
6137
6137
  forceColor = 0;
6138
6138
  } else {
6139
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
6139
+ forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
6140
6140
  }
6141
6141
  }
6142
6142
  function translateLevel2(level) {
@@ -6164,44 +6164,44 @@ var require_supports_color = __commonJS({
6164
6164
  return 0;
6165
6165
  }
6166
6166
  const min = forceColor || 0;
6167
- if (env2.TERM === "dumb") {
6167
+ if (env3.TERM === "dumb") {
6168
6168
  return min;
6169
6169
  }
6170
6170
  if (process.platform === "win32") {
6171
- const osRelease = os2.release().split(".");
6171
+ const osRelease = os3.release().split(".");
6172
6172
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
6173
6173
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
6174
6174
  }
6175
6175
  return 1;
6176
6176
  }
6177
- if ("CI" in env2) {
6178
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
6177
+ if ("CI" in env3) {
6178
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
6179
6179
  return 1;
6180
6180
  }
6181
6181
  return min;
6182
6182
  }
6183
- if ("TEAMCITY_VERSION" in env2) {
6184
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
6183
+ if ("TEAMCITY_VERSION" in env3) {
6184
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
6185
6185
  }
6186
- if (env2.COLORTERM === "truecolor") {
6186
+ if (env3.COLORTERM === "truecolor") {
6187
6187
  return 3;
6188
6188
  }
6189
- if ("TERM_PROGRAM" in env2) {
6190
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6191
- switch (env2.TERM_PROGRAM) {
6189
+ if ("TERM_PROGRAM" in env3) {
6190
+ const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6191
+ switch (env3.TERM_PROGRAM) {
6192
6192
  case "iTerm.app":
6193
6193
  return version >= 3 ? 3 : 2;
6194
6194
  case "Apple_Terminal":
6195
6195
  return 2;
6196
6196
  }
6197
6197
  }
6198
- if (/-256(color)?$/i.test(env2.TERM)) {
6198
+ if (/-256(color)?$/i.test(env3.TERM)) {
6199
6199
  return 2;
6200
6200
  }
6201
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
6201
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
6202
6202
  return 1;
6203
6203
  }
6204
- if ("COLORTERM" in env2) {
6204
+ if ("COLORTERM" in env3) {
6205
6205
  return 1;
6206
6206
  }
6207
6207
  return min;
@@ -6572,16 +6572,16 @@ var require_node2 = __commonJS({
6572
6572
  }
6573
6573
  exports2.urlGenerate = urlGenerate;
6574
6574
  function normalize(aPath) {
6575
- var path4 = aPath;
6575
+ var path5 = aPath;
6576
6576
  var url = urlParse(aPath);
6577
6577
  if (url) {
6578
6578
  if (!url.path) {
6579
6579
  return aPath;
6580
6580
  }
6581
- path4 = url.path;
6581
+ path5 = url.path;
6582
6582
  }
6583
- var isAbsolute = exports2.isAbsolute(path4);
6584
- var parts = path4.split(/\/+/);
6583
+ var isAbsolute = exports2.isAbsolute(path5);
6584
+ var parts = path5.split(/\/+/);
6585
6585
  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
6586
6586
  part = parts[i];
6587
6587
  if (part === ".") {
@@ -6598,15 +6598,15 @@ var require_node2 = __commonJS({
6598
6598
  }
6599
6599
  }
6600
6600
  }
6601
- path4 = parts.join("/");
6602
- if (path4 === "") {
6603
- path4 = isAbsolute ? "/" : ".";
6601
+ path5 = parts.join("/");
6602
+ if (path5 === "") {
6603
+ path5 = isAbsolute ? "/" : ".";
6604
6604
  }
6605
6605
  if (url) {
6606
- url.path = path4;
6606
+ url.path = path5;
6607
6607
  return urlGenerate(url);
6608
6608
  }
6609
- return path4;
6609
+ return path5;
6610
6610
  }
6611
6611
  exports2.normalize = normalize;
6612
6612
  function join22(aRoot, aPath) {
@@ -7243,13 +7243,13 @@ var require_node2 = __commonJS({
7243
7243
  function randomIntInRange(low, high) {
7244
7244
  return Math.round(low + Math.random() * (high - low));
7245
7245
  }
7246
- function doQuickSort(ary, comparator, p, r) {
7247
- if (p < r) {
7248
- var pivotIndex = randomIntInRange(p, r);
7249
- var i = p - 1;
7246
+ function doQuickSort(ary, comparator, p2, r) {
7247
+ if (p2 < r) {
7248
+ var pivotIndex = randomIntInRange(p2, r);
7249
+ var i = p2 - 1;
7250
7250
  swap(ary, pivotIndex, r);
7251
7251
  var pivot = ary[r];
7252
- for (var j = p; j < r; j++) {
7252
+ for (var j = p2; j < r; j++) {
7253
7253
  if (comparator(ary[j], pivot) <= 0) {
7254
7254
  i += 1;
7255
7255
  swap(ary, i, j);
@@ -7257,7 +7257,7 @@ var require_node2 = __commonJS({
7257
7257
  }
7258
7258
  swap(ary, i + 1, j);
7259
7259
  var q = i + 1;
7260
- doQuickSort(ary, comparator, p, q - 1);
7260
+ doQuickSort(ary, comparator, p2, q - 1);
7261
7261
  doQuickSort(ary, comparator, q + 1, r);
7262
7262
  }
7263
7263
  }
@@ -8136,7 +8136,7 @@ var require_node2 = __commonJS({
8136
8136
  });
8137
8137
  var require_source_map_support = __commonJS2((exports2, module22) => {
8138
8138
  var SourceMapConsumer = require_source_map().SourceMapConsumer;
8139
- var path4 = require("path");
8139
+ var path5 = require("path");
8140
8140
  var fs32;
8141
8141
  try {
8142
8142
  fs32 = require("fs");
@@ -8209,15 +8209,15 @@ var require_node2 = __commonJS({
8209
8209
  function supportRelativeURL(file, url) {
8210
8210
  if (!file)
8211
8211
  return url;
8212
- var dir = path4.dirname(file);
8212
+ var dir = path5.dirname(file);
8213
8213
  var match2 = /^\w+:\/\/[^\/]*/.exec(dir);
8214
8214
  var protocol = match2 ? match2[0] : "";
8215
8215
  var startPath = dir.slice(protocol.length);
8216
8216
  if (protocol && /^\/\w\:/.test(startPath)) {
8217
8217
  protocol += "/";
8218
- return protocol + path4.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
8218
+ return protocol + path5.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
8219
8219
  }
8220
- return protocol + path4.resolve(dir.slice(protocol.length), url);
8220
+ return protocol + path5.resolve(dir.slice(protocol.length), url);
8221
8221
  }
8222
8222
  function retrieveSourceMapURL(source) {
8223
8223
  var fileData;
@@ -8697,7 +8697,7 @@ var require_node2 = __commonJS({
8697
8697
  });
8698
8698
  };
8699
8699
  }
8700
- var readFile = (fp) => new Promise((resolve2, reject) => {
8700
+ var readFile2 = (fp) => new Promise((resolve2, reject) => {
8701
8701
  _fs.default.readFile(fp, "utf8", (err2, data) => {
8702
8702
  if (err2)
8703
8703
  return reject(err2);
@@ -8895,7 +8895,7 @@ var require_node2 = __commonJS({
8895
8895
  data: _this3.packageJsonCache.get(filepath)[options.packageKey]
8896
8896
  };
8897
8897
  }
8898
- const data = _this3.options.parseJSON(yield readFile(filepath));
8898
+ const data = _this3.options.parseJSON(yield readFile2(filepath));
8899
8899
  return {
8900
8900
  path: filepath,
8901
8901
  data
@@ -8903,7 +8903,7 @@ var require_node2 = __commonJS({
8903
8903
  }
8904
8904
  return {
8905
8905
  path: filepath,
8906
- data: yield readFile(filepath)
8906
+ data: yield readFile2(filepath)
8907
8907
  };
8908
8908
  }
8909
8909
  return {};
@@ -9013,12 +9013,12 @@ var require_node2 = __commonJS({
9013
9013
  Object.defineProperty(exports2, "__esModule", { value: true });
9014
9014
  exports2.removeExtension = exports2.fileExistsAsync = exports2.readJsonFromDiskAsync = exports2.readJsonFromDiskSync = exports2.fileExistsSync = void 0;
9015
9015
  var fs32 = require("fs");
9016
- function fileExistsSync(path4) {
9017
- if (!fs32.existsSync(path4)) {
9016
+ function fileExistsSync(path5) {
9017
+ if (!fs32.existsSync(path5)) {
9018
9018
  return false;
9019
9019
  }
9020
9020
  try {
9021
- var stats = fs32.statSync(path4);
9021
+ var stats = fs32.statSync(path5);
9022
9022
  return stats.isFile();
9023
9023
  } catch (err2) {
9024
9024
  return false;
@@ -9032,8 +9032,8 @@ var require_node2 = __commonJS({
9032
9032
  return require(packageJsonPath);
9033
9033
  }
9034
9034
  exports2.readJsonFromDiskSync = readJsonFromDiskSync;
9035
- function readJsonFromDiskAsync(path4, callback) {
9036
- fs32.readFile(path4, "utf8", function(err2, result) {
9035
+ function readJsonFromDiskAsync(path5, callback) {
9036
+ fs32.readFile(path5, "utf8", function(err2, result) {
9037
9037
  if (err2 || !result) {
9038
9038
  return callback();
9039
9039
  }
@@ -9051,8 +9051,8 @@ var require_node2 = __commonJS({
9051
9051
  });
9052
9052
  }
9053
9053
  exports2.fileExistsAsync = fileExistsAsync;
9054
- function removeExtension(path4) {
9055
- return path4.substring(0, path4.lastIndexOf(".")) || path4;
9054
+ function removeExtension(path5) {
9055
+ return path5.substring(0, path5.lastIndexOf(".")) || path5;
9056
9056
  }
9057
9057
  exports2.removeExtension = removeExtension;
9058
9058
  });
@@ -9060,7 +9060,7 @@ var require_node2 = __commonJS({
9060
9060
  "use strict";
9061
9061
  Object.defineProperty(exports2, "__esModule", { value: true });
9062
9062
  exports2.getAbsoluteMappingEntries = void 0;
9063
- var path4 = require("path");
9063
+ var path5 = require("path");
9064
9064
  function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
9065
9065
  var sortedKeys = sortByLongestPrefix(Object.keys(paths));
9066
9066
  var absolutePaths = [];
@@ -9069,7 +9069,7 @@ var require_node2 = __commonJS({
9069
9069
  absolutePaths.push({
9070
9070
  pattern: key,
9071
9071
  paths: paths[key].map(function(pathToResolve) {
9072
- return path4.resolve(absoluteBaseUrl, pathToResolve);
9072
+ return path5.resolve(absoluteBaseUrl, pathToResolve);
9073
9073
  })
9074
9074
  });
9075
9075
  }
@@ -9096,7 +9096,7 @@ var require_node2 = __commonJS({
9096
9096
  "use strict";
9097
9097
  Object.defineProperty(exports2, "__esModule", { value: true });
9098
9098
  exports2.exhaustiveTypeException = exports2.getStrippedPath = exports2.getPathsToTry = void 0;
9099
- var path4 = require("path");
9099
+ var path5 = require("path");
9100
9100
  var path_1 = require("path");
9101
9101
  var filesystem_1 = require_filesystem();
9102
9102
  function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
@@ -9116,9 +9116,9 @@ var require_node2 = __commonJS({
9116
9116
  }));
9117
9117
  pathsToTry.push({
9118
9118
  type: "package",
9119
- path: path4.join(physicalPath, "/package.json")
9119
+ path: path5.join(physicalPath, "/package.json")
9120
9120
  });
9121
- var indexPath = path4.join(physicalPath, "/index");
9121
+ var indexPath = path5.join(physicalPath, "/index");
9122
9122
  pathsToTry.push.apply(pathsToTry, extensions.map(function(e) {
9123
9123
  return { type: "index", path: indexPath + e };
9124
9124
  }));
@@ -9166,7 +9166,7 @@ var require_node2 = __commonJS({
9166
9166
  "use strict";
9167
9167
  Object.defineProperty(exports2, "__esModule", { value: true });
9168
9168
  exports2.matchFromAbsolutePaths = exports2.createMatchPath = void 0;
9169
- var path4 = require("path");
9169
+ var path5 = require("path");
9170
9170
  var Filesystem = require_filesystem();
9171
9171
  var MappingEntry = require_mapping_entry();
9172
9172
  var TryPath = require_try_path();
@@ -9210,7 +9210,7 @@ var require_node2 = __commonJS({
9210
9210
  return obj[key];
9211
9211
  }, packageJson);
9212
9212
  if (candidateMapping && typeof candidateMapping === "string") {
9213
- var candidateFilePath = path4.join(path4.dirname(packageJsonPath), candidateMapping);
9213
+ var candidateFilePath = path5.join(path5.dirname(packageJsonPath), candidateMapping);
9214
9214
  if (fileExists(candidateFilePath)) {
9215
9215
  return candidateFilePath;
9216
9216
  }
@@ -9250,7 +9250,7 @@ var require_node2 = __commonJS({
9250
9250
  "use strict";
9251
9251
  Object.defineProperty(exports2, "__esModule", { value: true });
9252
9252
  exports2.matchFromAbsolutePathsAsync = exports2.createMatchPathAsync = void 0;
9253
- var path4 = require("path");
9253
+ var path5 = require("path");
9254
9254
  var TryPath = require_try_path();
9255
9255
  var MappingEntry = require_mapping_entry();
9256
9256
  var Filesystem = require_filesystem();
@@ -9304,7 +9304,7 @@ var require_node2 = __commonJS({
9304
9304
  if (typeof mainFieldMapping !== "string") {
9305
9305
  return tryNext();
9306
9306
  }
9307
- var mappedFilePath = path4.join(path4.dirname(packageJsonPath), mainFieldMapping);
9307
+ var mappedFilePath = path5.join(path5.dirname(packageJsonPath), mainFieldMapping);
9308
9308
  fileExistsAsync(mappedFilePath, function(err2, exists) {
9309
9309
  if (err2) {
9310
9310
  return doneCallback(err2);
@@ -9954,8 +9954,8 @@ var require_node2 = __commonJS({
9954
9954
  }
9955
9955
  function literal(s) {
9956
9956
  for (const c2 of s) {
9957
- const p = peek();
9958
- if (p !== c2) {
9957
+ const p2 = peek();
9958
+ if (p2 !== c2) {
9959
9959
  throw invalidChar(read());
9960
9960
  }
9961
9961
  read();
@@ -10469,9 +10469,9 @@ var require_node2 = __commonJS({
10469
10469
  __assign = Object.assign || function(t) {
10470
10470
  for (var s, i = 1, n = arguments.length; i < n; i++) {
10471
10471
  s = arguments[i];
10472
- for (var p in s)
10473
- if (Object.prototype.hasOwnProperty.call(s, p))
10474
- t[p] = s[p];
10472
+ for (var p2 in s)
10473
+ if (Object.prototype.hasOwnProperty.call(s, p2))
10474
+ t[p2] = s[p2];
10475
10475
  }
10476
10476
  return t;
10477
10477
  };
@@ -10479,7 +10479,7 @@ var require_node2 = __commonJS({
10479
10479
  };
10480
10480
  Object.defineProperty(exports2, "__esModule", { value: true });
10481
10481
  exports2.loadTsconfig = exports2.walkForTsConfig = exports2.tsConfigLoader = void 0;
10482
- var path4 = require("path");
10482
+ var path5 = require("path");
10483
10483
  var fs32 = require("fs");
10484
10484
  var JSON5 = require_lib32();
10485
10485
  var StripBom = require_strip_bom();
@@ -10509,14 +10509,14 @@ var require_node2 = __commonJS({
10509
10509
  }
10510
10510
  function resolveConfigPath(cwd, filename) {
10511
10511
  if (filename) {
10512
- var absolutePath = fs32.lstatSync(filename).isDirectory() ? path4.resolve(filename, "./tsconfig.json") : path4.resolve(cwd, filename);
10512
+ var absolutePath = fs32.lstatSync(filename).isDirectory() ? path5.resolve(filename, "./tsconfig.json") : path5.resolve(cwd, filename);
10513
10513
  return absolutePath;
10514
10514
  }
10515
10515
  if (fs32.statSync(cwd).isFile()) {
10516
- return path4.resolve(cwd);
10516
+ return path5.resolve(cwd);
10517
10517
  }
10518
10518
  var configAbsolutePath = walkForTsConfig(cwd);
10519
- return configAbsolutePath ? path4.resolve(configAbsolutePath) : void 0;
10519
+ return configAbsolutePath ? path5.resolve(configAbsolutePath) : void 0;
10520
10520
  }
10521
10521
  function walkForTsConfig(directory, readdirSync3) {
10522
10522
  if (readdirSync3 === void 0) {
@@ -10527,10 +10527,10 @@ var require_node2 = __commonJS({
10527
10527
  for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
10528
10528
  var fileToCheck = filesToCheck_1[_i];
10529
10529
  if (files.indexOf(fileToCheck) !== -1) {
10530
- return path4.join(directory, fileToCheck);
10530
+ return path5.join(directory, fileToCheck);
10531
10531
  }
10532
10532
  }
10533
- var parentDirectory = path4.dirname(directory);
10533
+ var parentDirectory = path5.dirname(directory);
10534
10534
  if (directory === parentDirectory) {
10535
10535
  return void 0;
10536
10536
  }
@@ -10577,15 +10577,15 @@ var require_node2 = __commonJS({
10577
10577
  if (typeof extendedConfigValue === "string" && extendedConfigValue.indexOf(".json") === -1) {
10578
10578
  extendedConfigValue += ".json";
10579
10579
  }
10580
- var currentDir = path4.dirname(configFilePath);
10581
- var extendedConfigPath = path4.join(currentDir, extendedConfigValue);
10580
+ var currentDir = path5.dirname(configFilePath);
10581
+ var extendedConfigPath = path5.join(currentDir, extendedConfigValue);
10582
10582
  if (extendedConfigValue.indexOf("/") !== -1 && extendedConfigValue.indexOf(".") !== -1 && !existsSync4(extendedConfigPath)) {
10583
- extendedConfigPath = path4.join(currentDir, "node_modules", extendedConfigValue);
10583
+ extendedConfigPath = path5.join(currentDir, "node_modules", extendedConfigValue);
10584
10584
  }
10585
10585
  var config = loadTsconfig(extendedConfigPath, existsSync4, readFileSync4) || {};
10586
10586
  if ((_a3 = config.compilerOptions) === null || _a3 === void 0 ? void 0 : _a3.baseUrl) {
10587
- var extendsDir = path4.dirname(extendedConfigValue);
10588
- config.compilerOptions.baseUrl = path4.join(extendsDir, config.compilerOptions.baseUrl);
10587
+ var extendsDir = path5.dirname(extendedConfigValue);
10588
+ config.compilerOptions.baseUrl = path5.join(extendsDir, config.compilerOptions.baseUrl);
10589
10589
  }
10590
10590
  return config;
10591
10591
  }
@@ -10600,7 +10600,7 @@ var require_node2 = __commonJS({
10600
10600
  Object.defineProperty(exports2, "__esModule", { value: true });
10601
10601
  exports2.configLoader = exports2.loadConfig = void 0;
10602
10602
  var TsConfigLoader2 = require_tsconfig_loader();
10603
- var path4 = require("path");
10603
+ var path5 = require("path");
10604
10604
  function loadConfig2(cwd) {
10605
10605
  if (cwd === void 0) {
10606
10606
  cwd = process.cwd();
@@ -10611,7 +10611,7 @@ var require_node2 = __commonJS({
10611
10611
  function configLoader(_a3) {
10612
10612
  var cwd = _a3.cwd, explicitParams = _a3.explicitParams, _b = _a3.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
10613
10613
  if (explicitParams) {
10614
- var absoluteBaseUrl = path4.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path4.join(cwd, explicitParams.baseUrl);
10614
+ var absoluteBaseUrl = path5.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path5.join(cwd, explicitParams.baseUrl);
10615
10615
  return {
10616
10616
  resultType: "success",
10617
10617
  configFileAbsolutePath: "",
@@ -10638,7 +10638,7 @@ var require_node2 = __commonJS({
10638
10638
  resultType: "success",
10639
10639
  configFileAbsolutePath: loadResult.tsConfigPath,
10640
10640
  baseUrl: loadResult.baseUrl,
10641
- absoluteBaseUrl: path4.resolve(path4.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
10641
+ absoluteBaseUrl: path5.resolve(path5.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
10642
10642
  paths: loadResult.paths || {},
10643
10643
  addMatchAll: loadResult.baseUrl !== void 0
10644
10644
  };
@@ -11094,8 +11094,8 @@ var require_node2 = __commonJS({
11094
11094
  });
11095
11095
  var getOptions = (cwd) => {
11096
11096
  var _a3, _b, _c, _d;
11097
- const { data, path: path4 } = joycon.loadSync(["tsconfig.json", "jsconfig.json"], cwd);
11098
- if (path4 && data) {
11097
+ const { data, path: path5 } = joycon.loadSync(["tsconfig.json", "jsconfig.json"], cwd);
11098
+ if (path5 && data) {
11099
11099
  return {
11100
11100
  jsxFactory: (_a3 = data.compilerOptions) == null ? void 0 : _a3.jsxFactory,
11101
11101
  jsxFragment: (_b = data.compilerOptions) == null ? void 0 : _b.jsxFragmentFactory,
@@ -11432,14 +11432,14 @@ var init_utils = __esm({
11432
11432
  )
11433
11433
  );
11434
11434
  }
11435
- const path4 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
11436
- if (!(0, import_fs.existsSync)(path4)) {
11437
- console.log(`${path4} file does not exist`);
11435
+ const path5 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
11436
+ if (!(0, import_fs.existsSync)(path5)) {
11437
+ console.log(`${path5} file does not exist`);
11438
11438
  process.exit(1);
11439
11439
  }
11440
- console.log(source_default.grey(`Reading config file '${path4}'`));
11440
+ console.log(source_default.grey(`Reading config file '${path5}'`));
11441
11441
  const { unregister } = await safeRegister();
11442
- const required = require(`${path4}`);
11442
+ const required = require(`${path5}`);
11443
11443
  const content = required.default ?? required;
11444
11444
  unregister();
11445
11445
  const res = mySqlCliConfigSchema.safeParse(content);
@@ -11462,14 +11462,14 @@ var init_utils = __esm({
11462
11462
  if (!configPath) {
11463
11463
  console.log(source_default.gray(`No config path provided, using default path`));
11464
11464
  }
11465
- const path4 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
11466
- if (!(0, import_fs.existsSync)(path4)) {
11467
- console.log(source_default.red(`${path4} file does not exist`));
11465
+ const path5 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
11466
+ if (!(0, import_fs.existsSync)(path5)) {
11467
+ console.log(source_default.red(`${path5} file does not exist`));
11468
11468
  process.exit(1);
11469
11469
  }
11470
- console.log(source_default.grey(`Reading config file '${path4}'`));
11470
+ console.log(source_default.grey(`Reading config file '${path5}'`));
11471
11471
  const { unregister } = await safeRegister();
11472
- const required = require(`${path4}`);
11472
+ const required = require(`${path5}`);
11473
11473
  const content = required.default ?? required;
11474
11474
  unregister();
11475
11475
  return content;
@@ -12162,10 +12162,9 @@ var pgSerializer_exports = {};
12162
12162
  __export(pgSerializer_exports, {
12163
12163
  fromDatabase: () => fromDatabase2,
12164
12164
  generatePgSnapshot: () => generatePgSnapshot,
12165
- indexName: () => indexName2,
12166
- toDrizzle: () => toDrizzle
12165
+ indexName: () => indexName2
12167
12166
  });
12168
- var import_pg_core2, import_pg_core3, import_drizzle_orm5, dialect4, indexName2, generatePgSnapshot, trimChar, fromDatabase2, columnToDefault, defaultForColumn, toDrizzle;
12167
+ var import_pg_core2, import_pg_core3, import_drizzle_orm5, dialect4, indexName2, generatePgSnapshot, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
12169
12168
  var init_pgSerializer = __esm({
12170
12169
  "src/serializer/pgSerializer.ts"() {
12171
12170
  import_pg_core2 = require("drizzle-orm/pg-core");
@@ -12776,108 +12775,6 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
12776
12775
  }
12777
12776
  }
12778
12777
  };
12779
- toDrizzle = (schema4, schemaName) => {
12780
- const tables = {};
12781
- Object.values(schema4.tables).forEach((t) => {
12782
- const columns = {};
12783
- Object.values(t.columns).forEach((c) => {
12784
- const columnName = c.name;
12785
- const type = c.type;
12786
- let columnBuilder;
12787
- if (type === "bigint") {
12788
- columnBuilder = new import_pg_core2.PgBigInt53Builder(columnName);
12789
- } else if (type === "bigserial") {
12790
- columnBuilder = new import_pg_core2.PgBigSerial53Builder(columnName);
12791
- } else if (type === "boolean") {
12792
- columnBuilder = new import_pg_core2.PgBooleanBuilder(columnName);
12793
- } else if (type === "cidr") {
12794
- columnBuilder = new import_pg_core2.PgCidrBuilder(columnName);
12795
- } else if (type === "date") {
12796
- columnBuilder = new import_pg_core2.PgDateBuilder(columnName);
12797
- } else if (type === "double precision") {
12798
- columnBuilder = new import_pg_core2.PgDoublePrecisionBuilder(columnName);
12799
- } else if (type === "inet") {
12800
- columnBuilder = new import_pg_core2.PgInetBuilder(columnName);
12801
- } else if (type === "integer") {
12802
- columnBuilder = new import_pg_core2.PgIntegerBuilder(columnName);
12803
- } else if (type === "interval" || type.startsWith("interval ")) {
12804
- columnBuilder = new import_pg_core2.PgIntervalBuilder(columnName, {});
12805
- } else if (type === "json") {
12806
- columnBuilder = new import_pg_core2.PgJsonBuilder(columnName);
12807
- } else if (type === "jsonb") {
12808
- columnBuilder = new import_pg_core2.PgJsonbBuilder(columnName);
12809
- } else if (type === "macaddr") {
12810
- columnBuilder = new import_pg_core2.PgMacaddrBuilder(columnName);
12811
- } else if (type === "macaddr8") {
12812
- columnBuilder = new import_pg_core2.PgMacaddr8Builder(columnName);
12813
- } else if (type === "numeric" || type.startsWith("numeric(")) {
12814
- columnBuilder = new import_pg_core2.PgNumericBuilder(columnName);
12815
- } else if (type === "real") {
12816
- columnBuilder = new import_pg_core2.PgRealBuilder(columnName);
12817
- } else if (type === "serial") {
12818
- columnBuilder = new import_pg_core2.PgSerialBuilder(columnName);
12819
- } else if (type === "smallint") {
12820
- columnBuilder = new import_pg_core2.PgSmallIntBuilder(columnName);
12821
- } else if (type === "smallserial") {
12822
- columnBuilder = new import_pg_core2.PgSmallSerialBuilder(columnName);
12823
- } else if (type === "text") {
12824
- columnBuilder = new import_pg_core2.PgTextBuilder(columnName, {});
12825
- } else if (type === "time" || type.startsWith("time(") || type === "time with time zone") {
12826
- columnBuilder = new import_pg_core2.PgTimeBuilder(columnName, false, void 0);
12827
- } else if (type === "timestamp" || type.startsWith("timestamp(") || type === "timestamp with time zone") {
12828
- columnBuilder = new import_pg_core2.PgTimestampBuilder(columnName, false, void 0);
12829
- } else if (type === "uuid") {
12830
- columnBuilder = new import_pg_core2.PgUUIDBuilder(columnName);
12831
- } else if (type === "varchar" || type.startsWith("varchar(")) {
12832
- columnBuilder = new import_pg_core2.PgVarcharBuilder(columnName, {});
12833
- } else if (type === "char" || type.startsWith("char(")) {
12834
- columnBuilder = new import_pg_core2.PgCharBuilder(columnName, {});
12835
- } else {
12836
- columnBuilder = (0, import_pg_core2.customType)({
12837
- dataType() {
12838
- return type;
12839
- }
12840
- })(columnName);
12841
- }
12842
- if (c.notNull) {
12843
- columnBuilder = columnBuilder.notNull();
12844
- }
12845
- if (c.default) {
12846
- columnBuilder = columnBuilder.default(c.default);
12847
- }
12848
- if (c.primaryKey) {
12849
- columnBuilder = columnBuilder.primaryKey();
12850
- }
12851
- columns[columnName] = columnBuilder;
12852
- });
12853
- if (schemaName === "public") {
12854
- tables[t.name] = (0, import_pg_core2.pgTable)(t.name, columns, (cb) => {
12855
- const res = {};
12856
- Object.values(t.compositePrimaryKeys).forEach((cpk) => {
12857
- const gh = cpk.columns.map((c) => cb[c]);
12858
- res[cpk.name] = new import_pg_core2.PrimaryKeyBuilder(
12859
- gh,
12860
- cpk.name
12861
- );
12862
- });
12863
- return res;
12864
- });
12865
- } else {
12866
- tables[t.name] = (0, import_pg_core2.pgSchema)(schemaName).table(t.name, columns, (cb) => {
12867
- const res = {};
12868
- Object.values(t.compositePrimaryKeys).forEach((cpk) => {
12869
- const gh = cpk.columns.map((c) => cb[c]);
12870
- res[cpk.name] = new import_pg_core2.PrimaryKeyBuilder(
12871
- gh,
12872
- cpk.name
12873
- );
12874
- });
12875
- return res;
12876
- });
12877
- }
12878
- });
12879
- return tables;
12880
- };
12881
12778
  }
12882
12779
  });
12883
12780
 
@@ -12916,8 +12813,7 @@ var init_sqliteImports = __esm({
12916
12813
  var sqliteSerializer_exports = {};
12917
12814
  __export(sqliteSerializer_exports, {
12918
12815
  fromDatabase: () => fromDatabase3,
12919
- generateSqliteSnapshot: () => generateSqliteSnapshot,
12920
- toDrizzle: () => toDrizzle2
12816
+ generateSqliteSnapshot: () => generateSqliteSnapshot
12921
12817
  });
12922
12818
  function mapSqlToSqliteType(sqlType) {
12923
12819
  if ([
@@ -12954,7 +12850,7 @@ function mapSqlToSqliteType(sqlType) {
12954
12850
  return "numeric";
12955
12851
  }
12956
12852
  }
12957
- var import_drizzle_orm7, import_sqlite_core2, dialect5, generateSqliteSnapshot, fromDatabase3, toDrizzle2;
12853
+ var import_drizzle_orm7, import_sqlite_core2, dialect5, generateSqliteSnapshot, fromDatabase3;
12958
12854
  var init_sqliteSerializer = __esm({
12959
12855
  "src/serializer/sqliteSerializer.ts"() {
12960
12856
  import_drizzle_orm7 = require("drizzle-orm");
@@ -13322,50 +13218,6 @@ WHERE
13322
13218
  }
13323
13219
  };
13324
13220
  };
13325
- toDrizzle2 = (schema4) => {
13326
- const tables = {};
13327
- Object.values(schema4.tables).forEach((t) => {
13328
- const columns = {};
13329
- Object.values(t.columns).forEach((c) => {
13330
- const columnName = c.name;
13331
- const type = c.type;
13332
- let columnBuilder;
13333
- if (type === "integer") {
13334
- columnBuilder = new import_sqlite_core2.SQLiteIntegerBuilder(columnName);
13335
- } else if (type === "text") {
13336
- columnBuilder = new import_sqlite_core2.SQLiteTextBuilder(columnName, {});
13337
- } else if (type === "blob") {
13338
- columnBuilder = new import_sqlite_core2.SQLiteBlobBufferBuilder(columnName);
13339
- } else if (type === "real") {
13340
- columnBuilder = new import_sqlite_core2.SQLiteRealBuilder(columnName);
13341
- } else {
13342
- columnBuilder = new import_sqlite_core2.SQLiteNumericBuilder(columnName);
13343
- }
13344
- if (c.notNull) {
13345
- columnBuilder = columnBuilder.notNull();
13346
- }
13347
- if (c.default) {
13348
- columnBuilder = columnBuilder.default(c.default);
13349
- }
13350
- if (c.primaryKey) {
13351
- columnBuilder = columnBuilder.primaryKey();
13352
- }
13353
- columns[columnName] = columnBuilder;
13354
- });
13355
- tables[t.name] = (0, import_sqlite_core2.sqliteTable)(t.name, columns, (cb) => {
13356
- const res = {};
13357
- Object.values(t.compositePrimaryKeys).forEach((cpk) => {
13358
- const gh = cpk.columns.map((c) => cb[c]);
13359
- res[cpk.name] = new import_sqlite_core2.PrimaryKeyBuilder(
13360
- gh,
13361
- cpk.name
13362
- );
13363
- });
13364
- return res;
13365
- });
13366
- });
13367
- return tables;
13368
- };
13369
13221
  }
13370
13222
  });
13371
13223
 
@@ -13399,8 +13251,8 @@ var init_serializer = __esm({
13399
13251
  }
13400
13252
  }).sql;
13401
13253
  };
13402
- serializeMySql = async (path4) => {
13403
- const filenames = prepareFilenames(path4);
13254
+ serializeMySql = async (path5) => {
13255
+ const filenames = prepareFilenames(path5);
13404
13256
  console.log(source_default.gray(`Reading schema files:
13405
13257
  ${filenames.join("\n")}
13406
13258
  `));
@@ -13409,25 +13261,25 @@ ${filenames.join("\n")}
13409
13261
  const { tables, enums, schemas } = await prepareFromMySqlImports2(filenames);
13410
13262
  return generateMySqlSnapshot2(tables, enums, schemas);
13411
13263
  };
13412
- serializePg = async (path4, schemaFilter) => {
13413
- const filenames = prepareFilenames(path4);
13264
+ serializePg = async (path5, schemaFilter) => {
13265
+ const filenames = prepareFilenames(path5);
13414
13266
  const { prepareFromPgImports: prepareFromPgImports2 } = await Promise.resolve().then(() => (init_pgImports(), pgImports_exports));
13415
13267
  const { generatePgSnapshot: generatePgSnapshot2 } = await Promise.resolve().then(() => (init_pgSerializer(), pgSerializer_exports));
13416
13268
  const { tables, enums, schemas } = await prepareFromPgImports2(filenames);
13417
13269
  return generatePgSnapshot2(tables, enums, schemas, schemaFilter);
13418
13270
  };
13419
- serializeSQLite = async (path4) => {
13420
- const filenames = prepareFilenames(path4);
13271
+ serializeSQLite = async (path5) => {
13272
+ const filenames = prepareFilenames(path5);
13421
13273
  const { prepareFromSqliteImports: prepareFromSqliteImports2 } = await Promise.resolve().then(() => (init_sqliteImports(), sqliteImports_exports));
13422
13274
  const { generateSqliteSnapshot: generateSqliteSnapshot2 } = await Promise.resolve().then(() => (init_sqliteSerializer(), sqliteSerializer_exports));
13423
13275
  const { tables, enums } = await prepareFromSqliteImports2(filenames);
13424
13276
  return generateSqliteSnapshot2(tables, enums);
13425
13277
  };
13426
- prepareFilenames = (path4) => {
13427
- if (typeof path4 === "string") {
13428
- path4 = [path4];
13278
+ prepareFilenames = (path5) => {
13279
+ if (typeof path5 === "string") {
13280
+ path5 = [path5];
13429
13281
  }
13430
- const result = path4.reduce((result2, cur) => {
13282
+ const result = path5.reduce((result2, cur) => {
13431
13283
  const globbed = glob.sync(cur);
13432
13284
  globbed.forEach((it) => {
13433
13285
  const fileName = import_fs2.default.lstatSync(it).isDirectory() ? null : import_path2.default.resolve(it);
@@ -13441,7 +13293,7 @@ ${filenames.join("\n")}
13441
13293
  return !(it.endsWith(".ts") || it.endsWith(".js") || it.endsWith(".cjs") || it.endsWith(".mjs") || it.endsWith(".mts") || it.endsWith(".cts"));
13442
13294
  });
13443
13295
  if (res.length === 0) {
13444
- console.log(error(`No schema files found for path config [${path4.map((it) => `'${it}'`).join(", ")}]`));
13296
+ console.log(error(`No schema files found for path config [${path5.map((it) => `'${it}'`).join(", ")}]`));
13445
13297
  console.log(error(`If path represents a file - please make sure to use .ts or other extension in the path`));
13446
13298
  process.exit(1);
13447
13299
  }
@@ -17963,11 +17815,11 @@ var init_pgUp = __esm({
17963
17815
  path: it,
17964
17816
  raw: report.rawMap[it]
17965
17817
  })).forEach((it) => {
17966
- const path4 = it.path;
17818
+ const path5 = it.path;
17967
17819
  const result = updateUpToV4(it.raw, prevId);
17968
17820
  prevId = result.id;
17969
- console.log(`[${source_default.green("\u2713")}] ${path4}`);
17970
- (0, import_fs5.writeFileSync)(path4, JSON.stringify(result, null, 2));
17821
+ console.log(`[${source_default.green("\u2713")}] ${path5}`);
17822
+ (0, import_fs5.writeFileSync)(path5, JSON.stringify(result, null, 2));
17971
17823
  });
17972
17824
  console.log("Everything's fine \u{1F436}\u{1F525}");
17973
17825
  };
@@ -18218,10 +18070,10 @@ var init_mysqlUp = __esm({
18218
18070
  path: it,
18219
18071
  raw: report.rawMap[it]
18220
18072
  })).forEach((it) => {
18221
- const path4 = it.path;
18073
+ const path5 = it.path;
18222
18074
  const result = updateToLatestV4(it.raw);
18223
- console.log(`[${source_default.green("\u2713")}] ${path4}`);
18224
- import_fs6.default.writeFileSync(path4, JSON.stringify(result, null, 2));
18075
+ console.log(`[${source_default.green("\u2713")}] ${path5}`);
18076
+ import_fs6.default.writeFileSync(path5, JSON.stringify(result, null, 2));
18225
18077
  });
18226
18078
  console.log("Everything's fine \u{1F436}\u{1F525}");
18227
18079
  };
@@ -18714,7 +18566,7 @@ var init_upFolders = __esm({
18714
18566
  date.setUTCMinutes(Number(it.substring(10, 12)));
18715
18567
  date.setUTCSeconds(Number(it.substring(12, 14)));
18716
18568
  date.setUTCMilliseconds(0);
18717
- const path4 = (0, import_path4.join)(out, it);
18569
+ const path5 = (0, import_path4.join)(out, it);
18718
18570
  const pathJson = (0, import_path4.join)(out, it, "snapshot.json");
18719
18571
  const pathSQL = (0, import_path4.join)(out, it, "migration.sql");
18720
18572
  const snapshot = JSON.parse((0, import_fs7.readFileSync)(pathJson).toString());
@@ -18725,7 +18577,7 @@ var init_upFolders = __esm({
18725
18577
  json: snapshot,
18726
18578
  date,
18727
18579
  sql: sql2,
18728
- path: path4
18580
+ path: path5
18729
18581
  });
18730
18582
  res2.idx += 1;
18731
18583
  return res2;
@@ -19626,14 +19478,14 @@ var require_brace_expansion = __commonJS({
19626
19478
  var pre = m.pre;
19627
19479
  var body = m.body;
19628
19480
  var post = m.post;
19629
- var p = pre.split(",");
19630
- p[p.length - 1] += "{" + body + "}";
19481
+ var p2 = pre.split(",");
19482
+ p2[p2.length - 1] += "{" + body + "}";
19631
19483
  var postParts = parseCommaParts(post);
19632
19484
  if (post.length) {
19633
- p[p.length - 1] += postParts.shift();
19634
- p.push.apply(p, postParts);
19485
+ p2[p2.length - 1] += postParts.shift();
19486
+ p2.push.apply(p2, postParts);
19635
19487
  }
19636
- parts.push.apply(parts, p);
19488
+ parts.push.apply(parts, p2);
19637
19489
  return parts;
19638
19490
  }
19639
19491
  function expandTop(str) {
@@ -19688,8 +19540,8 @@ var require_brace_expansion = __commonJS({
19688
19540
  if (n.length === 1) {
19689
19541
  n = expand2(n[0], false).map(embrace);
19690
19542
  if (n.length === 1) {
19691
- return post.map(function(p) {
19692
- return m.pre + n[0] + p;
19543
+ return post.map(function(p2) {
19544
+ return m.pre + n[0] + p2;
19693
19545
  });
19694
19546
  }
19695
19547
  }
@@ -19893,12 +19745,12 @@ var init_mjs = __esm({
19893
19745
  init_unescape();
19894
19746
  init_escape();
19895
19747
  init_unescape();
19896
- minimatch = (p, pattern, options = {}) => {
19748
+ minimatch = (p2, pattern, options = {}) => {
19897
19749
  assertValidPattern(pattern);
19898
19750
  if (!options.nocomment && pattern.charAt(0) === "#") {
19899
19751
  return false;
19900
19752
  }
19901
- return new Minimatch(pattern, options).match(p);
19753
+ return new Minimatch(pattern, options).match(p2);
19902
19754
  };
19903
19755
  starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
19904
19756
  starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
@@ -19976,7 +19828,7 @@ var init_mjs = __esm({
19976
19828
  }, {});
19977
19829
  reSpecials = charSet("().*{}+?[]^$\\!");
19978
19830
  addPatternStartSet = charSet("[.(");
19979
- filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
19831
+ filter = (pattern, options = {}) => (p2) => minimatch(p2, pattern, options);
19980
19832
  minimatch.filter = filter;
19981
19833
  ext = (a, b = {}) => Object.assign({}, a, b);
19982
19834
  defaults = (def) => {
@@ -19984,7 +19836,7 @@ var init_mjs = __esm({
19984
19836
  return minimatch;
19985
19837
  }
19986
19838
  const orig = minimatch;
19987
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
19839
+ const m = (p2, pattern, options = {}) => orig(p2, pattern, ext(def, options));
19988
19840
  return Object.assign(m, {
19989
19841
  Minimatch: class Minimatch extends orig.Minimatch {
19990
19842
  constructor(pattern, options = {}) {
@@ -20130,9 +19982,9 @@ var init_mjs = __esm({
20130
19982
  this.set = set2.filter((s) => s.indexOf(false) === -1);
20131
19983
  if (this.isWindows) {
20132
19984
  for (let i = 0; i < this.set.length; i++) {
20133
- const p = this.set[i];
20134
- if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
20135
- p[2] = "?";
19985
+ const p2 = this.set[i];
19986
+ if (p2[0] === "" && p2[1] === "" && this.globParts[i][2] === "?" && typeof p2[3] === "string" && /^[a-z]:$/i.test(p2[3])) {
19987
+ p2[2] = "?";
20136
19988
  }
20137
19989
  }
20138
19990
  }
@@ -20209,10 +20061,10 @@ var init_mjs = __esm({
20209
20061
  didSomething = false;
20210
20062
  if (!this.preserveMultipleSlashes) {
20211
20063
  for (let i = 1; i < parts.length - 1; i++) {
20212
- const p = parts[i];
20213
- if (i === 1 && p === "" && parts[0] === "")
20064
+ const p2 = parts[i];
20065
+ if (i === 1 && p2 === "" && parts[0] === "")
20214
20066
  continue;
20215
- if (p === "." || p === "") {
20067
+ if (p2 === "." || p2 === "") {
20216
20068
  didSomething = true;
20217
20069
  parts.splice(i, 1);
20218
20070
  i--;
@@ -20225,8 +20077,8 @@ var init_mjs = __esm({
20225
20077
  }
20226
20078
  let dd = 0;
20227
20079
  while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
20228
- const p = parts[dd - 1];
20229
- if (p && p !== "." && p !== ".." && p !== "**") {
20080
+ const p2 = parts[dd - 1];
20081
+ if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
20230
20082
  didSomething = true;
20231
20083
  parts.splice(dd - 1, 2);
20232
20084
  dd -= 2;
@@ -20268,11 +20120,11 @@ var init_mjs = __esm({
20268
20120
  parts.splice(gs + 1, gss - gs);
20269
20121
  }
20270
20122
  let next = parts[gs + 1];
20271
- const p = parts[gs + 2];
20272
- const p2 = parts[gs + 3];
20123
+ const p2 = parts[gs + 2];
20124
+ const p22 = parts[gs + 3];
20273
20125
  if (next !== "..")
20274
20126
  continue;
20275
- if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
20127
+ if (!p2 || p2 === "." || p2 === ".." || !p22 || p22 === "." || p22 === "..") {
20276
20128
  continue;
20277
20129
  }
20278
20130
  didSomething = true;
@@ -20284,10 +20136,10 @@ var init_mjs = __esm({
20284
20136
  }
20285
20137
  if (!this.preserveMultipleSlashes) {
20286
20138
  for (let i = 1; i < parts.length - 1; i++) {
20287
- const p = parts[i];
20288
- if (i === 1 && p === "" && parts[0] === "")
20139
+ const p2 = parts[i];
20140
+ if (i === 1 && p2 === "" && parts[0] === "")
20289
20141
  continue;
20290
- if (p === "." || p === "") {
20142
+ if (p2 === "." || p2 === "") {
20291
20143
  didSomething = true;
20292
20144
  parts.splice(i, 1);
20293
20145
  i--;
@@ -20300,8 +20152,8 @@ var init_mjs = __esm({
20300
20152
  }
20301
20153
  let dd = 0;
20302
20154
  while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
20303
- const p = parts[dd - 1];
20304
- if (p && p !== "." && p !== ".." && p !== "**") {
20155
+ const p2 = parts[dd - 1];
20156
+ if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
20305
20157
  didSomething = true;
20306
20158
  const needDot = dd === 1 && parts[dd + 1] === "**";
20307
20159
  const splin = needDot ? ["."] : [];
@@ -20423,14 +20275,14 @@ var init_mjs = __esm({
20423
20275
  this.debug("matchOne", file.length, pattern.length);
20424
20276
  for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
20425
20277
  this.debug("matchOne loop");
20426
- var p = pattern[pi];
20278
+ var p2 = pattern[pi];
20427
20279
  var f = file[fi];
20428
- this.debug(pattern, p, f);
20429
- if (p === false) {
20280
+ this.debug(pattern, p2, f);
20281
+ if (p2 === false) {
20430
20282
  return false;
20431
20283
  }
20432
- if (p === GLOBSTAR) {
20433
- this.debug("GLOBSTAR", [pattern, p, f]);
20284
+ if (p2 === GLOBSTAR) {
20285
+ this.debug("GLOBSTAR", [pattern, p2, f]);
20434
20286
  var fr = fi;
20435
20287
  var pr = pi + 1;
20436
20288
  if (pr === pl) {
@@ -20465,12 +20317,12 @@ var init_mjs = __esm({
20465
20317
  return false;
20466
20318
  }
20467
20319
  let hit;
20468
- if (typeof p === "string") {
20469
- hit = f === p;
20470
- this.debug("string match", p, f, hit);
20320
+ if (typeof p2 === "string") {
20321
+ hit = f === p2;
20322
+ this.debug("string match", p2, f, hit);
20471
20323
  } else {
20472
- hit = p.test(f);
20473
- this.debug("pattern match", p, f, hit);
20324
+ hit = p2.test(f);
20325
+ this.debug("pattern match", p2, f, hit);
20474
20326
  }
20475
20327
  if (!hit)
20476
20328
  return false;
@@ -20519,7 +20371,7 @@ var init_mjs = __esm({
20519
20371
  let dotTravAllowed = pattern.charAt(0) === ".";
20520
20372
  let dotFileAllowed = options.dot || dotTravAllowed;
20521
20373
  const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
20522
- const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
20374
+ const subPatternStart = (p2) => p2.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
20523
20375
  const clearStateChar = () => {
20524
20376
  if (stateChar) {
20525
20377
  switch (stateChar) {
@@ -20722,11 +20574,11 @@ var init_mjs = __esm({
20722
20574
  const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
20723
20575
  const flags = options.nocase ? "i" : "";
20724
20576
  let re = set2.map((pattern) => {
20725
- const pp = pattern.map((p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src);
20726
- pp.forEach((p, i) => {
20577
+ const pp = pattern.map((p2) => typeof p2 === "string" ? regExpEscape(p2) : p2 === GLOBSTAR ? GLOBSTAR : p2._src);
20578
+ pp.forEach((p2, i) => {
20727
20579
  const next = pp[i + 1];
20728
20580
  const prev = pp[i - 1];
20729
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
20581
+ if (p2 !== GLOBSTAR || prev === GLOBSTAR) {
20730
20582
  return;
20731
20583
  }
20732
20584
  if (prev === void 0) {
@@ -20742,7 +20594,7 @@ var init_mjs = __esm({
20742
20594
  pp[i + 1] = GLOBSTAR;
20743
20595
  }
20744
20596
  });
20745
- return pp.filter((p) => p !== GLOBSTAR).join("/");
20597
+ return pp.filter((p2) => p2 !== GLOBSTAR).join("/");
20746
20598
  }).join("|");
20747
20599
  re = "^(?:" + re + ")$";
20748
20600
  if (this.negate)
@@ -20754,13 +20606,13 @@ var init_mjs = __esm({
20754
20606
  }
20755
20607
  return this.regexp;
20756
20608
  }
20757
- slashSplit(p) {
20609
+ slashSplit(p2) {
20758
20610
  if (this.preserveMultipleSlashes) {
20759
- return p.split("/");
20760
- } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
20761
- return ["", ...p.split(/\/+/)];
20611
+ return p2.split("/");
20612
+ } else if (this.isWindows && /^\/\/[^\/]+/.test(p2)) {
20613
+ return ["", ...p2.split(/\/+/)];
20762
20614
  } else {
20763
- return p.split(/\/+/);
20615
+ return p2.split(/\/+/);
20764
20616
  }
20765
20617
  }
20766
20618
  match(f, partial = this.partial) {
@@ -21212,56 +21064,56 @@ var require_textParsers = __commonJS({
21212
21064
  if (!value) {
21213
21065
  return null;
21214
21066
  }
21215
- var p = arrayParser.create(value, function(entry) {
21067
+ var p2 = arrayParser.create(value, function(entry) {
21216
21068
  if (entry !== null) {
21217
21069
  entry = parsePoint(entry);
21218
21070
  }
21219
21071
  return entry;
21220
21072
  });
21221
- return p.parse();
21073
+ return p2.parse();
21222
21074
  };
21223
21075
  var parseFloatArray = function(value) {
21224
21076
  if (!value) {
21225
21077
  return null;
21226
21078
  }
21227
- var p = arrayParser.create(value, function(entry) {
21079
+ var p2 = arrayParser.create(value, function(entry) {
21228
21080
  if (entry !== null) {
21229
21081
  entry = parseFloat(entry);
21230
21082
  }
21231
21083
  return entry;
21232
21084
  });
21233
- return p.parse();
21085
+ return p2.parse();
21234
21086
  };
21235
21087
  var parseStringArray = function(value) {
21236
21088
  if (!value) {
21237
21089
  return null;
21238
21090
  }
21239
- var p = arrayParser.create(value);
21240
- return p.parse();
21091
+ var p2 = arrayParser.create(value);
21092
+ return p2.parse();
21241
21093
  };
21242
21094
  var parseDateArray = function(value) {
21243
21095
  if (!value) {
21244
21096
  return null;
21245
21097
  }
21246
- var p = arrayParser.create(value, function(entry) {
21098
+ var p2 = arrayParser.create(value, function(entry) {
21247
21099
  if (entry !== null) {
21248
21100
  entry = parseDate(entry);
21249
21101
  }
21250
21102
  return entry;
21251
21103
  });
21252
- return p.parse();
21104
+ return p2.parse();
21253
21105
  };
21254
21106
  var parseIntervalArray = function(value) {
21255
21107
  if (!value) {
21256
21108
  return null;
21257
21109
  }
21258
- var p = arrayParser.create(value, function(entry) {
21110
+ var p2 = arrayParser.create(value, function(entry) {
21259
21111
  if (entry !== null) {
21260
21112
  entry = parseInterval(entry);
21261
21113
  }
21262
21114
  return entry;
21263
21115
  });
21264
- return p.parse();
21116
+ return p2.parse();
21265
21117
  };
21266
21118
  var parseByteAArray = function(value) {
21267
21119
  if (!value) {
@@ -23927,7 +23779,7 @@ var require_split2 = __commonJS({
23927
23779
  var require_helper = __commonJS({
23928
23780
  "node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js"(exports, module2) {
23929
23781
  "use strict";
23930
- var path4 = require("path");
23782
+ var path5 = require("path");
23931
23783
  var Stream = require("stream").Stream;
23932
23784
  var split = require_split2();
23933
23785
  var util2 = require("util");
@@ -23965,8 +23817,8 @@ var require_helper = __commonJS({
23965
23817
  return old;
23966
23818
  };
23967
23819
  module2.exports.getFileName = function(rawEnv) {
23968
- var env2 = rawEnv || process.env;
23969
- var file = env2.PGPASSFILE || (isWin ? path4.join(env2.APPDATA || "./", "postgresql", "pgpass.conf") : path4.join(env2.HOME || "./", ".pgpass"));
23820
+ var env3 = rawEnv || process.env;
23821
+ var file = env3.PGPASSFILE || (isWin ? path5.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path5.join(env3.HOME || "./", ".pgpass"));
23970
23822
  return file;
23971
23823
  };
23972
23824
  module2.exports.usePgPass = function(stats, fname) {
@@ -24098,7 +23950,7 @@ var require_helper = __commonJS({
24098
23950
  var require_lib = __commonJS({
24099
23951
  "node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js"(exports, module2) {
24100
23952
  "use strict";
24101
- var path4 = require("path");
23953
+ var path5 = require("path");
24102
23954
  var fs8 = require("fs");
24103
23955
  var helper = require_helper();
24104
23956
  module2.exports = function(connInfo, cb) {
@@ -26268,6 +26120,15 @@ var init_sqliteIntrospect = __esm({
26268
26120
  }
26269
26121
  });
26270
26122
 
26123
+ // src/serializer/schemaToDrizzle.ts
26124
+ var import_pg_core4, import_sqlite_core3;
26125
+ var init_schemaToDrizzle = __esm({
26126
+ "src/serializer/schemaToDrizzle.ts"() {
26127
+ import_pg_core4 = require("drizzle-orm/pg-core");
26128
+ import_sqlite_core3 = require("drizzle-orm/sqlite-core");
26129
+ }
26130
+ });
26131
+
26271
26132
  // node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js
26272
26133
  var require_constants = __commonJS({
26273
26134
  "node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js"(exports, module2) {
@@ -27346,9 +27207,9 @@ var require_yallist = __commonJS({
27346
27207
  var head = this.head;
27347
27208
  var tail = this.tail;
27348
27209
  for (var walker = head; walker !== null; walker = walker.prev) {
27349
- var p = walker.prev;
27210
+ var p2 = walker.prev;
27350
27211
  walker.prev = walker.next;
27351
- walker.next = p;
27212
+ walker.next = p2;
27352
27213
  }
27353
27214
  this.head = tail;
27354
27215
  this.tail = head;
@@ -27846,20 +27707,20 @@ var require_range = __commonJS({
27846
27707
  };
27847
27708
  var replaceTilde = (comp, options) => {
27848
27709
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
27849
- return comp.replace(r, (_2, M, m, p, pr) => {
27850
- debug("tilde", comp, _2, M, m, p, pr);
27710
+ return comp.replace(r, (_2, M, m, p2, pr) => {
27711
+ debug("tilde", comp, _2, M, m, p2, pr);
27851
27712
  let ret;
27852
27713
  if (isX(M)) {
27853
27714
  ret = "";
27854
27715
  } else if (isX(m)) {
27855
27716
  ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
27856
- } else if (isX(p)) {
27717
+ } else if (isX(p2)) {
27857
27718
  ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
27858
27719
  } else if (pr) {
27859
27720
  debug("replaceTilde pr", pr);
27860
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
27721
+ ret = `>=${M}.${m}.${p2}-${pr} <${M}.${+m + 1}.0-0`;
27861
27722
  } else {
27862
- ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
27723
+ ret = `>=${M}.${m}.${p2} <${M}.${+m + 1}.0-0`;
27863
27724
  }
27864
27725
  debug("tilde return", ret);
27865
27726
  return ret;
@@ -27872,14 +27733,14 @@ var require_range = __commonJS({
27872
27733
  debug("caret", comp, options);
27873
27734
  const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
27874
27735
  const z2 = options.includePrerelease ? "-0" : "";
27875
- return comp.replace(r, (_2, M, m, p, pr) => {
27876
- debug("caret", comp, _2, M, m, p, pr);
27736
+ return comp.replace(r, (_2, M, m, p2, pr) => {
27737
+ debug("caret", comp, _2, M, m, p2, pr);
27877
27738
  let ret;
27878
27739
  if (isX(M)) {
27879
27740
  ret = "";
27880
27741
  } else if (isX(m)) {
27881
27742
  ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`;
27882
- } else if (isX(p)) {
27743
+ } else if (isX(p2)) {
27883
27744
  if (M === "0") {
27884
27745
  ret = `>=${M}.${m}.0${z2} <${M}.${+m + 1}.0-0`;
27885
27746
  } else {
@@ -27889,23 +27750,23 @@ var require_range = __commonJS({
27889
27750
  debug("replaceCaret pr", pr);
27890
27751
  if (M === "0") {
27891
27752
  if (m === "0") {
27892
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
27753
+ ret = `>=${M}.${m}.${p2}-${pr} <${M}.${m}.${+p2 + 1}-0`;
27893
27754
  } else {
27894
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
27755
+ ret = `>=${M}.${m}.${p2}-${pr} <${M}.${+m + 1}.0-0`;
27895
27756
  }
27896
27757
  } else {
27897
- ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
27758
+ ret = `>=${M}.${m}.${p2}-${pr} <${+M + 1}.0.0-0`;
27898
27759
  }
27899
27760
  } else {
27900
27761
  debug("no pr");
27901
27762
  if (M === "0") {
27902
27763
  if (m === "0") {
27903
- ret = `>=${M}.${m}.${p}${z2} <${M}.${m}.${+p + 1}-0`;
27764
+ ret = `>=${M}.${m}.${p2}${z2} <${M}.${m}.${+p2 + 1}-0`;
27904
27765
  } else {
27905
- ret = `>=${M}.${m}.${p}${z2} <${M}.${+m + 1}.0-0`;
27766
+ ret = `>=${M}.${m}.${p2}${z2} <${M}.${+m + 1}.0-0`;
27906
27767
  }
27907
27768
  } else {
27908
- ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
27769
+ ret = `>=${M}.${m}.${p2} <${+M + 1}.0.0-0`;
27909
27770
  }
27910
27771
  }
27911
27772
  debug("caret return", ret);
@@ -27919,11 +27780,11 @@ var require_range = __commonJS({
27919
27780
  var replaceXRange = (comp, options) => {
27920
27781
  comp = comp.trim();
27921
27782
  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
27922
- return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
27923
- debug("xRange", comp, ret, gtlt, M, m, p, pr);
27783
+ return comp.replace(r, (ret, gtlt, M, m, p2, pr) => {
27784
+ debug("xRange", comp, ret, gtlt, M, m, p2, pr);
27924
27785
  const xM = isX(M);
27925
27786
  const xm = xM || isX(m);
27926
- const xp = xm || isX(p);
27787
+ const xp = xm || isX(p2);
27927
27788
  const anyX = xp;
27928
27789
  if (gtlt === "=" && anyX) {
27929
27790
  gtlt = "";
@@ -27939,16 +27800,16 @@ var require_range = __commonJS({
27939
27800
  if (xm) {
27940
27801
  m = 0;
27941
27802
  }
27942
- p = 0;
27803
+ p2 = 0;
27943
27804
  if (gtlt === ">") {
27944
27805
  gtlt = ">=";
27945
27806
  if (xm) {
27946
27807
  M = +M + 1;
27947
27808
  m = 0;
27948
- p = 0;
27809
+ p2 = 0;
27949
27810
  } else {
27950
27811
  m = +m + 1;
27951
- p = 0;
27812
+ p2 = 0;
27952
27813
  }
27953
27814
  } else if (gtlt === "<=") {
27954
27815
  gtlt = "<";
@@ -27961,7 +27822,7 @@ var require_range = __commonJS({
27961
27822
  if (gtlt === "<") {
27962
27823
  pr = "-0";
27963
27824
  }
27964
- ret = `${gtlt + M}.${m}.${p}${pr}`;
27825
+ ret = `${gtlt + M}.${m}.${p2}${pr}`;
27965
27826
  } else if (xm) {
27966
27827
  ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
27967
27828
  } else if (xp) {
@@ -31763,10 +31624,10 @@ var require_long = __commonJS({
31763
31624
  radix = radix || 10;
31764
31625
  if (radix < 2 || 36 < radix)
31765
31626
  throw RangeError("radix");
31766
- var p;
31767
- if ((p = str.indexOf("-")) > 0)
31627
+ var p2;
31628
+ if ((p2 = str.indexOf("-")) > 0)
31768
31629
  throw Error("interior hyphen");
31769
- else if (p === 0) {
31630
+ else if (p2 === 0) {
31770
31631
  return fromString(str.substring(1), unsigned, radix).neg();
31771
31632
  }
31772
31633
  var radixToPower = fromNumber(pow_dbl(radix, 8));
@@ -37639,8 +37500,8 @@ var require_change_user = __commonJS({
37639
37500
  if (typeof this.database !== "string") {
37640
37501
  throw new Error('"database" connection config property must be a string');
37641
37502
  }
37642
- const p = this.serializeToBuffer(Packet.MockBuffer());
37643
- return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));
37503
+ const p2 = this.serializeToBuffer(Packet.MockBuffer());
37504
+ return this.serializeToBuffer(Buffer.allocUnsafe(p2.offset));
37644
37505
  }
37645
37506
  };
37646
37507
  module2.exports = ChangeUser;
@@ -38123,8 +37984,8 @@ var require_handshake_response = __commonJS({
38123
37984
  if (typeof this.database !== "string") {
38124
37985
  throw new Error('"database" connection config property must be a string');
38125
37986
  }
38126
- const p = this.serializeResponse(Packet.MockBuffer());
38127
- return this.serializeResponse(Buffer.alloc(p.offset));
37987
+ const p2 = this.serializeResponse(Packet.MockBuffer());
37988
+ return this.serializeResponse(Buffer.alloc(p2.offset));
38128
37989
  }
38129
37990
  static fromPacket(packet) {
38130
37991
  const args = {};
@@ -38554,7 +38415,7 @@ var require_text_row = __commonJS({
38554
38415
  var require_packets = __commonJS({
38555
38416
  "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/packets/index.js"(exports, module2) {
38556
38417
  "use strict";
38557
- var process4 = require("process");
38418
+ var process5 = require("process");
38558
38419
  var AuthSwitchRequest = require_auth_switch_request();
38559
38420
  var AuthSwitchRequestMoreData = require_auth_switch_request_more_data();
38560
38421
  var AuthSwitchResponse = require_auth_switch_response();
@@ -38595,13 +38456,13 @@ var require_packets = __commonJS({
38595
38456
  };
38596
38457
  Object.entries(ctorMap).forEach(([name, ctor]) => {
38597
38458
  module2.exports[name] = ctor;
38598
- if (process4.env.NODE_DEBUG) {
38459
+ if (process5.env.NODE_DEBUG) {
38599
38460
  if (ctor.prototype.toPacket) {
38600
38461
  const old = ctor.prototype.toPacket;
38601
38462
  ctor.prototype.toPacket = function() {
38602
- const p = old.call(this);
38603
- p._name = name;
38604
- return p;
38463
+ const p2 = old.call(this);
38464
+ p2._name = name;
38465
+ return p2;
38605
38466
  };
38606
38467
  }
38607
38468
  }
@@ -39198,8 +39059,8 @@ var require_compressed_protocol = __commonJS({
39198
39059
  connection._lastWrittenPacketId = 0;
39199
39060
  connection._lastReceivedPacketId = 0;
39200
39061
  connection._handleCompressedPacket = handleCompressedPacket;
39201
- connection._inflatedPacketsParser = new PacketParser((p) => {
39202
- connection.handlePacket(p);
39062
+ connection._inflatedPacketsParser = new PacketParser((p2) => {
39063
+ connection.handlePacket(p2);
39203
39064
  }, 4);
39204
39065
  connection._inflatedPacketsParser._lastPacket = 0;
39205
39066
  connection.packetParser = new PacketParser((packet) => {
@@ -40238,7 +40099,7 @@ var require_text_parser = __commonJS({
40238
40099
  var require_query4 = __commonJS({
40239
40100
  "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/commands/query.js"(exports, module2) {
40240
40101
  "use strict";
40241
- var process4 = require("process");
40102
+ var process5 = require("process");
40242
40103
  var Timers = require("timers");
40243
40104
  var Readable = require("stream").Readable;
40244
40105
  var Command2 = require_command();
@@ -40307,11 +40168,11 @@ var require_query4 = __commonJS({
40307
40168
  fields = this._fields;
40308
40169
  }
40309
40170
  if (fields) {
40310
- process4.nextTick(() => {
40171
+ process5.nextTick(() => {
40311
40172
  this.onResult(null, rows, fields);
40312
40173
  });
40313
40174
  } else {
40314
- process4.nextTick(() => {
40175
+ process5.nextTick(() => {
40315
40176
  this.onResult(null, rows);
40316
40177
  });
40317
40178
  }
@@ -40356,12 +40217,12 @@ var require_query4 = __commonJS({
40356
40217
  this._fields.push([]);
40357
40218
  return this.readField;
40358
40219
  }
40359
- _streamLocalInfile(connection, path4) {
40220
+ _streamLocalInfile(connection, path5) {
40360
40221
  if (this._streamFactory) {
40361
- this._localStream = this._streamFactory(path4);
40222
+ this._localStream = this._streamFactory(path5);
40362
40223
  } else {
40363
40224
  this._localStreamError = new Error(
40364
- `As a result of LOCAL INFILE command server wants to read ${path4} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
40225
+ `As a result of LOCAL INFILE command server wants to read ${path5} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
40365
40226
  );
40366
40227
  connection.writePacket(EmptyPacket);
40367
40228
  return this.infileOk;
@@ -42286,10 +42147,10 @@ var require_lru_cache2 = __commonJS({
42286
42147
  if (aborted && !ignoreAbort && !updateCache) {
42287
42148
  return fetchFail(ac.signal.reason);
42288
42149
  }
42289
- if (this.valList[index4] === p) {
42150
+ if (this.valList[index4] === p2) {
42290
42151
  if (v2 === void 0) {
42291
- if (p.__staleWhileFetching) {
42292
- this.valList[index4] = p.__staleWhileFetching;
42152
+ if (p2.__staleWhileFetching) {
42153
+ this.valList[index4] = p2.__staleWhileFetching;
42293
42154
  } else {
42294
42155
  this.delete(k);
42295
42156
  }
@@ -42313,20 +42174,20 @@ var require_lru_cache2 = __commonJS({
42313
42174
  const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
42314
42175
  const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
42315
42176
  const noDelete = allowStale || options.noDeleteOnFetchRejection;
42316
- if (this.valList[index4] === p) {
42317
- const del = !noDelete || p.__staleWhileFetching === void 0;
42177
+ if (this.valList[index4] === p2) {
42178
+ const del = !noDelete || p2.__staleWhileFetching === void 0;
42318
42179
  if (del) {
42319
42180
  this.delete(k);
42320
42181
  } else if (!allowStaleAborted) {
42321
- this.valList[index4] = p.__staleWhileFetching;
42182
+ this.valList[index4] = p2.__staleWhileFetching;
42322
42183
  }
42323
42184
  }
42324
42185
  if (allowStale) {
42325
- if (options.status && p.__staleWhileFetching !== void 0) {
42186
+ if (options.status && p2.__staleWhileFetching !== void 0) {
42326
42187
  options.status.returnedStale = true;
42327
42188
  }
42328
- return p.__staleWhileFetching;
42329
- } else if (p.__returned === p) {
42189
+ return p2.__staleWhileFetching;
42190
+ } else if (p2.__returned === p2) {
42330
42191
  throw er;
42331
42192
  }
42332
42193
  };
@@ -42343,23 +42204,23 @@ var require_lru_cache2 = __commonJS({
42343
42204
  };
42344
42205
  if (options.status)
42345
42206
  options.status.fetchDispatched = true;
42346
- const p = new Promise(pcall).then(cb, eb);
42347
- p.__abortController = ac;
42348
- p.__staleWhileFetching = v;
42349
- p.__returned = null;
42207
+ const p2 = new Promise(pcall).then(cb, eb);
42208
+ p2.__abortController = ac;
42209
+ p2.__staleWhileFetching = v;
42210
+ p2.__returned = null;
42350
42211
  if (index4 === void 0) {
42351
- this.set(k, p, { ...fetchOpts.options, status: void 0 });
42212
+ this.set(k, p2, { ...fetchOpts.options, status: void 0 });
42352
42213
  index4 = this.keyMap.get(k);
42353
42214
  } else {
42354
- this.valList[index4] = p;
42215
+ this.valList[index4] = p2;
42355
42216
  }
42356
- return p;
42217
+ return p2;
42357
42218
  }
42358
- isBackgroundFetch(p) {
42359
- return p && typeof p === "object" && typeof p.then === "function" && Object.prototype.hasOwnProperty.call(
42360
- p,
42219
+ isBackgroundFetch(p2) {
42220
+ return p2 && typeof p2 === "object" && typeof p2.then === "function" && Object.prototype.hasOwnProperty.call(
42221
+ p2,
42361
42222
  "__staleWhileFetching"
42362
- ) && Object.prototype.hasOwnProperty.call(p, "__returned") && (p.__returned === p || p.__returned === null);
42223
+ ) && Object.prototype.hasOwnProperty.call(p2, "__returned") && (p2.__returned === p2 || p2.__returned === null);
42363
42224
  }
42364
42225
  // this takes the union of get() and set() opts, because it does both
42365
42226
  async fetch(k, {
@@ -42413,8 +42274,8 @@ var require_lru_cache2 = __commonJS({
42413
42274
  if (index4 === void 0) {
42414
42275
  if (status)
42415
42276
  status.fetch = "miss";
42416
- const p = this.backgroundFetch(k, index4, options, fetchContext);
42417
- return p.__returned = p;
42277
+ const p2 = this.backgroundFetch(k, index4, options, fetchContext);
42278
+ return p2.__returned = p2;
42418
42279
  } else {
42419
42280
  const v = this.valList[index4];
42420
42281
  if (this.isBackgroundFetch(v)) {
@@ -42437,15 +42298,15 @@ var require_lru_cache2 = __commonJS({
42437
42298
  this.statusTTL(status, index4);
42438
42299
  return v;
42439
42300
  }
42440
- const p = this.backgroundFetch(k, index4, options, fetchContext);
42441
- const hasStale = p.__staleWhileFetching !== void 0;
42301
+ const p2 = this.backgroundFetch(k, index4, options, fetchContext);
42302
+ const hasStale = p2.__staleWhileFetching !== void 0;
42442
42303
  const staleVal = hasStale && allowStale;
42443
42304
  if (status) {
42444
42305
  status.fetch = hasStale && isStale ? "stale" : "refresh";
42445
42306
  if (staleVal && isStale)
42446
42307
  status.returnedStale = true;
42447
42308
  }
42448
- return staleVal ? p.__staleWhileFetching : p.__returned = p;
42309
+ return staleVal ? p2.__staleWhileFetching : p2.__returned = p2;
42449
42310
  }
42450
42311
  }
42451
42312
  get(k, {
@@ -42491,9 +42352,9 @@ var require_lru_cache2 = __commonJS({
42491
42352
  status.get = "miss";
42492
42353
  }
42493
42354
  }
42494
- connect(p, n) {
42495
- this.prev[n] = p;
42496
- this.next[p] = n;
42355
+ connect(p2, n) {
42356
+ this.prev[n] = p2;
42357
+ this.next[p2] = n;
42497
42358
  }
42498
42359
  moveToTail(index4) {
42499
42360
  if (index4 !== this.tail) {
@@ -42703,7 +42564,7 @@ var require_named_placeholders = __commonJS({
42703
42564
  }
42704
42565
  return s;
42705
42566
  }
42706
- function join6(tree) {
42567
+ function join7(tree) {
42707
42568
  if (tree.length == 1) {
42708
42569
  return tree;
42709
42570
  }
@@ -42729,7 +42590,7 @@ var require_named_placeholders = __commonJS({
42729
42590
  if (cache && (tree = cache.get(query))) {
42730
42591
  return toArrayParams(tree, paramsObj);
42731
42592
  }
42732
- tree = join6(parse(query));
42593
+ tree = join7(parse(query));
42733
42594
  if (cache) {
42734
42595
  cache.set(query, tree);
42735
42596
  }
@@ -42829,8 +42690,8 @@ var require_connection2 = __commonJS({
42829
42690
  this._outOfOrderPackets = [];
42830
42691
  this.clientEncoding = CharsetToEncoding[this.config.charsetNumber];
42831
42692
  this.stream.on("error", this._handleNetworkError.bind(this));
42832
- this.packetParser = new PacketParser((p) => {
42833
- this.handlePacket(p);
42693
+ this.packetParser = new PacketParser((p2) => {
42694
+ this.handlePacket(p2);
42834
42695
  });
42835
42696
  this.stream.on("data", (data) => {
42836
42697
  if (this.connectTimeout) {
@@ -43611,7 +43472,7 @@ var require_pool_connection = __commonJS({
43611
43472
  var require_pool = __commonJS({
43612
43473
  "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/pool.js"(exports, module2) {
43613
43474
  "use strict";
43614
- var process4 = require("process");
43475
+ var process5 = require("process");
43615
43476
  var mysql = require_mysql2();
43616
43477
  var EventEmitter = require("events").EventEmitter;
43617
43478
  var PoolConnection = require_pool_connection();
@@ -43642,13 +43503,13 @@ var require_pool = __commonJS({
43642
43503
  }
43643
43504
  getConnection(cb) {
43644
43505
  if (this._closed) {
43645
- return process4.nextTick(() => cb(new Error("Pool is closed.")));
43506
+ return process5.nextTick(() => cb(new Error("Pool is closed.")));
43646
43507
  }
43647
43508
  let connection;
43648
43509
  if (this._freeConnections.length > 0) {
43649
43510
  connection = this._freeConnections.shift();
43650
43511
  this.emit("acquire", connection);
43651
- return process4.nextTick(() => cb(null, connection));
43512
+ return process5.nextTick(() => cb(null, connection));
43652
43513
  }
43653
43514
  if (this.config.connectionLimit === 0 || this._allConnections.length < this.config.connectionLimit) {
43654
43515
  connection = new PoolConnection(this, {
@@ -43668,7 +43529,7 @@ var require_pool = __commonJS({
43668
43529
  });
43669
43530
  }
43670
43531
  if (!this.config.waitForConnections) {
43671
- return process4.nextTick(() => cb(new Error("No connections available.")));
43532
+ return process5.nextTick(() => cb(new Error("No connections available.")));
43672
43533
  }
43673
43534
  if (this.config.queueLimit && this._connectionQueue.length >= this.config.queueLimit) {
43674
43535
  return cb(new Error("Queue limit reached."));
@@ -43681,11 +43542,11 @@ var require_pool = __commonJS({
43681
43542
  if (!connection._pool) {
43682
43543
  if (this._connectionQueue.length) {
43683
43544
  cb = this._connectionQueue.shift();
43684
- process4.nextTick(this.getConnection.bind(this, cb));
43545
+ process5.nextTick(this.getConnection.bind(this, cb));
43685
43546
  }
43686
43547
  } else if (this._connectionQueue.length) {
43687
43548
  cb = this._connectionQueue.shift();
43688
- process4.nextTick(cb.bind(null, null, connection));
43549
+ process5.nextTick(cb.bind(null, null, connection));
43689
43550
  } else {
43690
43551
  this._freeConnections.push(connection);
43691
43552
  this.emit("release", connection);
@@ -43823,7 +43684,7 @@ var require_pool_config = __commonJS({
43823
43684
  var require_pool_cluster = __commonJS({
43824
43685
  "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/pool_cluster.js"(exports, module2) {
43825
43686
  "use strict";
43826
- var process4 = require("process");
43687
+ var process5 = require("process");
43827
43688
  var Pool = require_pool();
43828
43689
  var PoolConfig = require_pool_config();
43829
43690
  var Connection2 = require_connection2();
@@ -43987,7 +43848,7 @@ var require_pool_cluster = __commonJS({
43987
43848
  }
43988
43849
  };
43989
43850
  if (this._closed) {
43990
- process4.nextTick(cb);
43851
+ process5.nextTick(cb);
43991
43852
  return;
43992
43853
  }
43993
43854
  this._closed = true;
@@ -44004,7 +43865,7 @@ var require_pool_cluster = __commonJS({
44004
43865
  this._nodes[id].pool.end(onEnd);
44005
43866
  }
44006
43867
  if (waitingClose === 0) {
44007
- process4.nextTick(onEnd);
43868
+ process5.nextTick(onEnd);
44008
43869
  }
44009
43870
  }
44010
43871
  _findNodeIds(pattern) {
@@ -44658,15 +44519,15 @@ var require_promise = __commonJS({
44658
44519
  });
44659
44520
 
44660
44521
  // src/orm-extenstions/d1-driver/session.ts
44661
- var import_drizzle_orm10, import_drizzle_orm11, import_drizzle_orm12, import_sqlite_core3, import_drizzle_orm13, _a, SQLiteWranglerD1Session, _a2, PreparedQuery;
44522
+ var import_drizzle_orm10, import_drizzle_orm11, import_drizzle_orm12, import_sqlite_core4, import_drizzle_orm13, _a, SQLiteWranglerD1Session, _a2, PreparedQuery;
44662
44523
  var init_session = __esm({
44663
44524
  "src/orm-extenstions/d1-driver/session.ts"() {
44664
44525
  import_drizzle_orm10 = require("drizzle-orm");
44665
44526
  import_drizzle_orm11 = require("drizzle-orm");
44666
44527
  import_drizzle_orm12 = require("drizzle-orm");
44667
- import_sqlite_core3 = require("drizzle-orm/sqlite-core");
44528
+ import_sqlite_core4 = require("drizzle-orm/sqlite-core");
44668
44529
  import_drizzle_orm13 = require("drizzle-orm");
44669
- SQLiteWranglerD1Session = class extends import_sqlite_core3.SQLiteSession {
44530
+ SQLiteWranglerD1Session = class extends import_sqlite_core4.SQLiteSession {
44670
44531
  constructor(client, configPath, dbName, dialect6, schema4, options = {}) {
44671
44532
  super(dialect6);
44672
44533
  this.client = client;
@@ -44695,7 +44556,7 @@ var init_session = __esm({
44695
44556
  };
44696
44557
  _a = import_drizzle_orm10.entityKind;
44697
44558
  SQLiteWranglerD1Session[_a] = "SQLiteD1Session";
44698
- PreparedQuery = class extends import_sqlite_core3.SQLitePreparedQuery {
44559
+ PreparedQuery = class extends import_sqlite_core4.SQLitePreparedQuery {
44699
44560
  constructor(stmt, configPath, dbName, queryString, params, logger, fields, executeMethod, customResultMapper) {
44700
44561
  super("async", executeMethod, {
44701
44562
  sql: queryString,
@@ -44820,20 +44681,20 @@ function drizzle(client, configPath, dbName, config = {}) {
44820
44681
  const session = new SQLiteWranglerD1Session(client, configPath, dbName, dialect6, schema4, {
44821
44682
  logger
44822
44683
  });
44823
- return new import_sqlite_core4.BaseSQLiteDatabase(
44684
+ return new import_sqlite_core5.BaseSQLiteDatabase(
44824
44685
  "async",
44825
44686
  dialect6,
44826
44687
  session,
44827
44688
  schema4
44828
44689
  );
44829
44690
  }
44830
- var import_drizzle_orm14, import_sqlite_core4, WranglerDialect;
44691
+ var import_drizzle_orm14, import_sqlite_core5, WranglerDialect;
44831
44692
  var init_driver = __esm({
44832
44693
  "src/orm-extenstions/d1-driver/driver.ts"() {
44833
44694
  import_drizzle_orm14 = require("drizzle-orm");
44834
- import_sqlite_core4 = require("drizzle-orm/sqlite-core");
44695
+ import_sqlite_core5 = require("drizzle-orm/sqlite-core");
44835
44696
  init_session();
44836
- WranglerDialect = class extends import_sqlite_core4.SQLiteAsyncDialect {
44697
+ WranglerDialect = class extends import_sqlite_core5.SQLiteAsyncDialect {
44837
44698
  sqlToQuery(sql2) {
44838
44699
  return sql2.toQuery({
44839
44700
  escapeName: this.escapeName,
@@ -44853,7 +44714,7 @@ var require_windows = __commonJS({
44853
44714
  module2.exports = isexe;
44854
44715
  isexe.sync = sync2;
44855
44716
  var fs8 = require("fs");
44856
- function checkPathExt(path4, options) {
44717
+ function checkPathExt(path5, options) {
44857
44718
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
44858
44719
  if (!pathext) {
44859
44720
  return true;
@@ -44863,26 +44724,26 @@ var require_windows = __commonJS({
44863
44724
  return true;
44864
44725
  }
44865
44726
  for (var i = 0; i < pathext.length; i++) {
44866
- var p = pathext[i].toLowerCase();
44867
- if (p && path4.substr(-p.length).toLowerCase() === p) {
44727
+ var p2 = pathext[i].toLowerCase();
44728
+ if (p2 && path5.substr(-p2.length).toLowerCase() === p2) {
44868
44729
  return true;
44869
44730
  }
44870
44731
  }
44871
44732
  return false;
44872
44733
  }
44873
- function checkStat(stat, path4, options) {
44734
+ function checkStat(stat, path5, options) {
44874
44735
  if (!stat.isSymbolicLink() && !stat.isFile()) {
44875
44736
  return false;
44876
44737
  }
44877
- return checkPathExt(path4, options);
44738
+ return checkPathExt(path5, options);
44878
44739
  }
44879
- function isexe(path4, options, cb) {
44880
- fs8.stat(path4, function(er, stat) {
44881
- cb(er, er ? false : checkStat(stat, path4, options));
44740
+ function isexe(path5, options, cb) {
44741
+ fs8.stat(path5, function(er, stat) {
44742
+ cb(er, er ? false : checkStat(stat, path5, options));
44882
44743
  });
44883
44744
  }
44884
- function sync2(path4, options) {
44885
- return checkStat(fs8.statSync(path4), path4, options);
44745
+ function sync2(path5, options) {
44746
+ return checkStat(fs8.statSync(path5), path5, options);
44886
44747
  }
44887
44748
  }
44888
44749
  });
@@ -44893,13 +44754,13 @@ var require_mode = __commonJS({
44893
44754
  module2.exports = isexe;
44894
44755
  isexe.sync = sync2;
44895
44756
  var fs8 = require("fs");
44896
- function isexe(path4, options, cb) {
44897
- fs8.stat(path4, function(er, stat) {
44757
+ function isexe(path5, options, cb) {
44758
+ fs8.stat(path5, function(er, stat) {
44898
44759
  cb(er, er ? false : checkStat(stat, options));
44899
44760
  });
44900
44761
  }
44901
- function sync2(path4, options) {
44902
- return checkStat(fs8.statSync(path4), options);
44762
+ function sync2(path5, options) {
44763
+ return checkStat(fs8.statSync(path5), options);
44903
44764
  }
44904
44765
  function checkStat(stat, options) {
44905
44766
  return stat.isFile() && checkMode(stat, options);
@@ -44932,7 +44793,7 @@ var require_isexe = __commonJS({
44932
44793
  }
44933
44794
  module2.exports = isexe;
44934
44795
  isexe.sync = sync2;
44935
- function isexe(path4, options, cb) {
44796
+ function isexe(path5, options, cb) {
44936
44797
  if (typeof options === "function") {
44937
44798
  cb = options;
44938
44799
  options = {};
@@ -44942,7 +44803,7 @@ var require_isexe = __commonJS({
44942
44803
  throw new TypeError("callback not provided");
44943
44804
  }
44944
44805
  return new Promise(function(resolve2, reject) {
44945
- isexe(path4, options || {}, function(er, is9) {
44806
+ isexe(path5, options || {}, function(er, is9) {
44946
44807
  if (er) {
44947
44808
  reject(er);
44948
44809
  } else {
@@ -44951,7 +44812,7 @@ var require_isexe = __commonJS({
44951
44812
  });
44952
44813
  });
44953
44814
  }
44954
- core(path4, options || {}, function(er, is9) {
44815
+ core(path5, options || {}, function(er, is9) {
44955
44816
  if (er) {
44956
44817
  if (er.code === "EACCES" || options && options.ignoreErrors) {
44957
44818
  er = null;
@@ -44961,9 +44822,9 @@ var require_isexe = __commonJS({
44961
44822
  cb(er, is9);
44962
44823
  });
44963
44824
  }
44964
- function sync2(path4, options) {
44825
+ function sync2(path5, options) {
44965
44826
  try {
44966
- return core.sync(path4, options || {});
44827
+ return core.sync(path5, options || {});
44967
44828
  } catch (er) {
44968
44829
  if (options && options.ignoreErrors || er.code === "EACCES") {
44969
44830
  return false;
@@ -44979,7 +44840,7 @@ var require_isexe = __commonJS({
44979
44840
  var require_lib4 = __commonJS({
44980
44841
  "node_modules/.pnpm/which@3.0.1/node_modules/which/lib/index.js"(exports, module2) {
44981
44842
  var isexe = require_isexe();
44982
- var { join: join6, delimiter, sep: sep2, posix } = require("path");
44843
+ var { join: join7, delimiter, sep: sep2, posix } = require("path");
44983
44844
  var isWindows = process.platform === "win32";
44984
44845
  var rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1"));
44985
44846
  var rRel = new RegExp(`^\\.${rSlash.source}`);
@@ -45012,15 +44873,15 @@ var require_lib4 = __commonJS({
45012
44873
  var getPathPart = (raw, cmd) => {
45013
44874
  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
45014
44875
  const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
45015
- return prefix + join6(pathPart, cmd);
44876
+ return prefix + join7(pathPart, cmd);
45016
44877
  };
45017
44878
  var which2 = async (cmd, opt = {}) => {
45018
44879
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
45019
44880
  const found = [];
45020
44881
  for (const envPart of pathEnv) {
45021
- const p = getPathPart(envPart, cmd);
44882
+ const p2 = getPathPart(envPart, cmd);
45022
44883
  for (const ext2 of pathExt) {
45023
- const withExt = p + ext2;
44884
+ const withExt = p2 + ext2;
45024
44885
  const is9 = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
45025
44886
  if (is9) {
45026
44887
  if (!opt.all) {
@@ -45042,9 +44903,9 @@ var require_lib4 = __commonJS({
45042
44903
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
45043
44904
  const found = [];
45044
44905
  for (const pathEnvPart of pathEnv) {
45045
- const p = getPathPart(pathEnvPart, cmd);
44906
+ const p2 = getPathPart(pathEnvPart, cmd);
45046
44907
  for (const ext2 of pathExt) {
45047
- const withExt = p + ext2;
44908
+ const withExt = p2 + ext2;
45048
44909
  const is9 = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
45049
44910
  if (is9) {
45050
44911
  if (!opt.all) {
@@ -46205,7 +46066,7 @@ var init_core = __esm({
46205
46066
  }
46206
46067
  $ = new Proxy(function(pieces, ...args) {
46207
46068
  const from = new Error().stack.split(/^\s*at\s/m)[2].trim();
46208
- if (pieces.some((p) => p == void 0)) {
46069
+ if (pieces.some((p2) => p2 == void 0)) {
46209
46070
  throw new Error(`Malformed command at ${from}`);
46210
46071
  }
46211
46072
  let resolve2, reject;
@@ -46347,7 +46208,7 @@ var init_core = __esm({
46347
46208
  return this.child.stderr;
46348
46209
  }
46349
46210
  get exitCode() {
46350
- return this.then((p) => p.exitCode, (p) => p.exitCode);
46211
+ return this.then((p2) => p2.exitCode, (p2) => p2.exitCode);
46351
46212
  }
46352
46213
  then(onfulfilled, onrejected) {
46353
46214
  if (this.isHalted && !this.child) {
@@ -46387,9 +46248,9 @@ var init_core = __esm({
46387
46248
  if (!this.child.pid)
46388
46249
  throw new Error("The process pid is undefined.");
46389
46250
  let children = await psTree(this.child.pid);
46390
- for (const p of children) {
46251
+ for (const p2 of children) {
46391
46252
  try {
46392
- process.kill(+p.PID, signal);
46253
+ process.kill(+p2.PID, signal);
46393
46254
  } catch (e) {
46394
46255
  }
46395
46256
  }
@@ -46650,9 +46511,9 @@ var require_path = __commonJS({
46650
46511
  "use strict";
46651
46512
  Object.defineProperty(exports, "__esModule", { value: true });
46652
46513
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
46653
- var os2 = require("os");
46654
- var path4 = require("path");
46655
- var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
46514
+ var os3 = require("os");
46515
+ var path5 = require("path");
46516
+ var IS_WINDOWS_PLATFORM = os3.platform() === "win32";
46656
46517
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
46657
46518
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
46658
46519
  var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
@@ -46663,7 +46524,7 @@ var require_path = __commonJS({
46663
46524
  }
46664
46525
  exports.unixify = unixify;
46665
46526
  function makeAbsolute(cwd, filepath) {
46666
- return path4.resolve(cwd, filepath);
46527
+ return path5.resolve(cwd, filepath);
46667
46528
  }
46668
46529
  exports.makeAbsolute = makeAbsolute;
46669
46530
  function removeLeadingDotSegment(entry) {
@@ -47510,11 +47371,11 @@ var require_expand = __commonJS({
47510
47371
  let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
47511
47372
  let walk = (node, parent = {}) => {
47512
47373
  node.queue = [];
47513
- let p = parent;
47374
+ let p2 = parent;
47514
47375
  let q = parent.queue;
47515
- while (p.type !== "brace" && p.type !== "root" && p.parent) {
47516
- p = p.parent;
47517
- q = p.queue;
47376
+ while (p2.type !== "brace" && p2.type !== "root" && p2.parent) {
47377
+ p2 = p2.parent;
47378
+ q = p2.queue;
47518
47379
  }
47519
47380
  if (node.invalid || node.dollar) {
47520
47381
  q.push(append(q.pop(), stringify(node, options)));
@@ -47984,7 +47845,7 @@ var require_braces = __commonJS({
47984
47845
  var require_constants3 = __commonJS({
47985
47846
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) {
47986
47847
  "use strict";
47987
- var path4 = require("path");
47848
+ var path5 = require("path");
47988
47849
  var WIN_SLASH = "\\\\/";
47989
47850
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
47990
47851
  var DOT_LITERAL = "\\.";
@@ -48154,7 +48015,7 @@ var require_constants3 = __commonJS({
48154
48015
  /* | */
48155
48016
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
48156
48017
  /* \uFEFF */
48157
- SEP: path4.sep,
48018
+ SEP: path5.sep,
48158
48019
  /**
48159
48020
  * Create EXTGLOB_CHARS
48160
48021
  */
@@ -48181,7 +48042,7 @@ var require_constants3 = __commonJS({
48181
48042
  var require_utils5 = __commonJS({
48182
48043
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
48183
48044
  "use strict";
48184
- var path4 = require("path");
48045
+ var path5 = require("path");
48185
48046
  var win32 = process.platform === "win32";
48186
48047
  var {
48187
48048
  REGEX_BACKSLASH,
@@ -48210,7 +48071,7 @@ var require_utils5 = __commonJS({
48210
48071
  if (options && typeof options.windows === "boolean") {
48211
48072
  return options.windows;
48212
48073
  }
48213
- return win32 === true || path4.sep === "\\";
48074
+ return win32 === true || path5.sep === "\\";
48214
48075
  };
48215
48076
  exports.escapeLast = (input, char, lastIdx) => {
48216
48077
  const idx = input.lastIndexOf(char, lastIdx);
@@ -49358,7 +49219,7 @@ var require_parse3 = __commonJS({
49358
49219
  var require_picomatch = __commonJS({
49359
49220
  "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
49360
49221
  "use strict";
49361
- var path4 = require("path");
49222
+ var path5 = require("path");
49362
49223
  var scan = require_scan();
49363
49224
  var parse = require_parse3();
49364
49225
  var utils = require_utils5();
@@ -49444,12 +49305,12 @@ var require_picomatch = __commonJS({
49444
49305
  };
49445
49306
  picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
49446
49307
  const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
49447
- return regex.test(path4.basename(input));
49308
+ return regex.test(path5.basename(input));
49448
49309
  };
49449
49310
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
49450
49311
  picomatch.parse = (pattern, options) => {
49451
49312
  if (Array.isArray(pattern))
49452
- return pattern.map((p) => picomatch.parse(p, options));
49313
+ return pattern.map((p2) => picomatch.parse(p2, options));
49453
49314
  return parse(pattern, { ...options, fastpaths: false });
49454
49315
  };
49455
49316
  picomatch.scan = (input, options) => scan(input, options);
@@ -49553,7 +49414,7 @@ var require_micromatch = __commonJS({
49553
49414
  throw new Error(`No matches found for "${patterns.join(", ")}"`);
49554
49415
  }
49555
49416
  if (options.nonull === true || options.nullglob === true) {
49556
- return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
49417
+ return options.unescape ? patterns.map((p2) => p2.replace(/\\/g, "")) : patterns;
49557
49418
  }
49558
49419
  }
49559
49420
  return matches;
@@ -49584,7 +49445,7 @@ var require_micromatch = __commonJS({
49584
49445
  throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
49585
49446
  }
49586
49447
  if (Array.isArray(pattern)) {
49587
- return pattern.some((p) => micromatch.contains(str, p, options));
49448
+ return pattern.some((p2) => micromatch.contains(str, p2, options));
49588
49449
  }
49589
49450
  if (typeof pattern === "string") {
49590
49451
  if (isEmptyString(str) || isEmptyString(pattern)) {
@@ -49630,7 +49491,7 @@ var require_micromatch = __commonJS({
49630
49491
  if (typeof str !== "string") {
49631
49492
  throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
49632
49493
  }
49633
- return [].concat(patterns).every((p) => picomatch(p, options)(str));
49494
+ return [].concat(patterns).every((p2) => picomatch(p2, options)(str));
49634
49495
  };
49635
49496
  micromatch.capture = (glob2, input, options) => {
49636
49497
  let posix = utils.isWindows(options);
@@ -49674,7 +49535,7 @@ var require_pattern = __commonJS({
49674
49535
  "use strict";
49675
49536
  Object.defineProperty(exports, "__esModule", { value: true });
49676
49537
  exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
49677
- var path4 = require("path");
49538
+ var path5 = require("path");
49678
49539
  var globParent = require_glob_parent();
49679
49540
  var micromatch = require_micromatch();
49680
49541
  var GLOBSTAR2 = "**";
@@ -49769,7 +49630,7 @@ var require_pattern = __commonJS({
49769
49630
  }
49770
49631
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
49771
49632
  function isAffectDepthOfReadingPattern(pattern) {
49772
- const basename = path4.basename(pattern);
49633
+ const basename = path5.basename(pattern);
49773
49634
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
49774
49635
  }
49775
49636
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -49868,8 +49729,8 @@ var require_utils6 = __commonJS({
49868
49729
  exports.errno = errno;
49869
49730
  var fs8 = require_fs();
49870
49731
  exports.fs = fs8;
49871
- var path4 = require_path();
49872
- exports.path = path4;
49732
+ var path5 = require_path();
49733
+ exports.path = path5;
49873
49734
  var pattern = require_pattern();
49874
49735
  exports.pattern = pattern;
49875
49736
  var stream = require_stream2();
@@ -49981,8 +49842,8 @@ var require_async = __commonJS({
49981
49842
  "use strict";
49982
49843
  Object.defineProperty(exports, "__esModule", { value: true });
49983
49844
  exports.read = void 0;
49984
- function read(path4, settings, callback) {
49985
- settings.fs.lstat(path4, (lstatError, lstat) => {
49845
+ function read(path5, settings, callback) {
49846
+ settings.fs.lstat(path5, (lstatError, lstat) => {
49986
49847
  if (lstatError !== null) {
49987
49848
  callFailureCallback(callback, lstatError);
49988
49849
  return;
@@ -49991,7 +49852,7 @@ var require_async = __commonJS({
49991
49852
  callSuccessCallback(callback, lstat);
49992
49853
  return;
49993
49854
  }
49994
- settings.fs.stat(path4, (statError, stat) => {
49855
+ settings.fs.stat(path5, (statError, stat) => {
49995
49856
  if (statError !== null) {
49996
49857
  if (settings.throwErrorOnBrokenSymbolicLink) {
49997
49858
  callFailureCallback(callback, statError);
@@ -50023,13 +49884,13 @@ var require_sync = __commonJS({
50023
49884
  "use strict";
50024
49885
  Object.defineProperty(exports, "__esModule", { value: true });
50025
49886
  exports.read = void 0;
50026
- function read(path4, settings) {
50027
- const lstat = settings.fs.lstatSync(path4);
49887
+ function read(path5, settings) {
49888
+ const lstat = settings.fs.lstatSync(path5);
50028
49889
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
50029
49890
  return lstat;
50030
49891
  }
50031
49892
  try {
50032
- const stat = settings.fs.statSync(path4);
49893
+ const stat = settings.fs.statSync(path5);
50033
49894
  if (settings.markSymbolicLink) {
50034
49895
  stat.isSymbolicLink = () => true;
50035
49896
  }
@@ -50100,17 +49961,17 @@ var require_out = __commonJS({
50100
49961
  var sync2 = require_sync();
50101
49962
  var settings_1 = require_settings();
50102
49963
  exports.Settings = settings_1.default;
50103
- function stat(path4, optionsOrSettingsOrCallback, callback) {
49964
+ function stat(path5, optionsOrSettingsOrCallback, callback) {
50104
49965
  if (typeof optionsOrSettingsOrCallback === "function") {
50105
- async.read(path4, getSettings(), optionsOrSettingsOrCallback);
49966
+ async.read(path5, getSettings(), optionsOrSettingsOrCallback);
50106
49967
  return;
50107
49968
  }
50108
- async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
49969
+ async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
50109
49970
  }
50110
49971
  exports.stat = stat;
50111
- function statSync(path4, optionsOrSettings) {
49972
+ function statSync(path5, optionsOrSettings) {
50112
49973
  const settings = getSettings(optionsOrSettings);
50113
- return sync2.read(path4, settings);
49974
+ return sync2.read(path5, settings);
50114
49975
  }
50115
49976
  exports.statSync = statSync;
50116
49977
  function getSettings(settingsOrOptions = {}) {
@@ -50329,16 +50190,16 @@ var require_async2 = __commonJS({
50329
50190
  return;
50330
50191
  }
50331
50192
  const tasks = names.map((name) => {
50332
- const path4 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
50193
+ const path5 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
50333
50194
  return (done) => {
50334
- fsStat.stat(path4, settings.fsStatSettings, (error2, stats) => {
50195
+ fsStat.stat(path5, settings.fsStatSettings, (error2, stats) => {
50335
50196
  if (error2 !== null) {
50336
50197
  done(error2);
50337
50198
  return;
50338
50199
  }
50339
50200
  const entry = {
50340
50201
  name,
50341
- path: path4,
50202
+ path: path5,
50342
50203
  dirent: utils.fs.createDirentFromStats(name, stats)
50343
50204
  };
50344
50205
  if (settings.stats) {
@@ -50456,7 +50317,7 @@ var require_settings2 = __commonJS({
50456
50317
  "node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
50457
50318
  "use strict";
50458
50319
  Object.defineProperty(exports, "__esModule", { value: true });
50459
- var path4 = require("path");
50320
+ var path5 = require("path");
50460
50321
  var fsStat = require_out();
50461
50322
  var fs8 = require_fs4();
50462
50323
  var Settings = class {
@@ -50464,7 +50325,7 @@ var require_settings2 = __commonJS({
50464
50325
  this._options = _options;
50465
50326
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
50466
50327
  this.fs = fs8.createFileSystemAdapter(this._options.fs);
50467
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
50328
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
50468
50329
  this.stats = this._getValue(this._options.stats, false);
50469
50330
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
50470
50331
  this.fsStatSettings = new fsStat.Settings({
@@ -50491,17 +50352,17 @@ var require_out2 = __commonJS({
50491
50352
  var sync2 = require_sync2();
50492
50353
  var settings_1 = require_settings2();
50493
50354
  exports.Settings = settings_1.default;
50494
- function scandir(path4, optionsOrSettingsOrCallback, callback) {
50355
+ function scandir(path5, optionsOrSettingsOrCallback, callback) {
50495
50356
  if (typeof optionsOrSettingsOrCallback === "function") {
50496
- async.read(path4, getSettings(), optionsOrSettingsOrCallback);
50357
+ async.read(path5, getSettings(), optionsOrSettingsOrCallback);
50497
50358
  return;
50498
50359
  }
50499
- async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
50360
+ async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
50500
50361
  }
50501
50362
  exports.scandir = scandir;
50502
- function scandirSync(path4, optionsOrSettings) {
50363
+ function scandirSync(path5, optionsOrSettings) {
50503
50364
  const settings = getSettings(optionsOrSettings);
50504
- return sync2.read(path4, settings);
50365
+ return sync2.read(path5, settings);
50505
50366
  }
50506
50367
  exports.scandirSync = scandirSync;
50507
50368
  function getSettings(settingsOrOptions = {}) {
@@ -50739,7 +50600,7 @@ var require_queue = __commonJS({
50739
50600
  queue.drained = drained;
50740
50601
  return queue;
50741
50602
  function push(value) {
50742
- var p = new Promise(function(resolve2, reject) {
50603
+ var p2 = new Promise(function(resolve2, reject) {
50743
50604
  pushCb(value, function(err2, result) {
50744
50605
  if (err2) {
50745
50606
  reject(err2);
@@ -50748,11 +50609,11 @@ var require_queue = __commonJS({
50748
50609
  resolve2(result);
50749
50610
  });
50750
50611
  });
50751
- p.catch(noop2);
50752
- return p;
50612
+ p2.catch(noop2);
50613
+ return p2;
50753
50614
  }
50754
50615
  function unshift(value) {
50755
- var p = new Promise(function(resolve2, reject) {
50616
+ var p2 = new Promise(function(resolve2, reject) {
50756
50617
  unshiftCb(value, function(err2, result) {
50757
50618
  if (err2) {
50758
50619
  reject(err2);
@@ -50761,8 +50622,8 @@ var require_queue = __commonJS({
50761
50622
  resolve2(result);
50762
50623
  });
50763
50624
  });
50764
- p.catch(noop2);
50765
- return p;
50625
+ p2.catch(noop2);
50626
+ return p2;
50766
50627
  }
50767
50628
  function drained() {
50768
50629
  if (queue.idle()) {
@@ -50771,13 +50632,13 @@ var require_queue = __commonJS({
50771
50632
  });
50772
50633
  }
50773
50634
  var previousDrain = queue.drain;
50774
- var p = new Promise(function(resolve2) {
50635
+ var p2 = new Promise(function(resolve2) {
50775
50636
  queue.drain = function() {
50776
50637
  previousDrain();
50777
50638
  resolve2();
50778
50639
  };
50779
50640
  });
50780
- return p;
50641
+ return p2;
50781
50642
  }
50782
50643
  }
50783
50644
  module2.exports = fastqueue;
@@ -51105,7 +50966,7 @@ var require_settings3 = __commonJS({
51105
50966
  "node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
51106
50967
  "use strict";
51107
50968
  Object.defineProperty(exports, "__esModule", { value: true });
51108
- var path4 = require("path");
50969
+ var path5 = require("path");
51109
50970
  var fsScandir = require_out2();
51110
50971
  var Settings = class {
51111
50972
  constructor(_options = {}) {
@@ -51115,7 +50976,7 @@ var require_settings3 = __commonJS({
51115
50976
  this.deepFilter = this._getValue(this._options.deepFilter, null);
51116
50977
  this.entryFilter = this._getValue(this._options.entryFilter, null);
51117
50978
  this.errorFilter = this._getValue(this._options.errorFilter, null);
51118
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
50979
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
51119
50980
  this.fsScandirSettings = new fsScandir.Settings({
51120
50981
  followSymbolicLinks: this._options.followSymbolicLinks,
51121
50982
  fs: this._options.fs,
@@ -51177,7 +51038,7 @@ var require_reader2 = __commonJS({
51177
51038
  "node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js"(exports) {
51178
51039
  "use strict";
51179
51040
  Object.defineProperty(exports, "__esModule", { value: true });
51180
- var path4 = require("path");
51041
+ var path5 = require("path");
51181
51042
  var fsStat = require_out();
51182
51043
  var utils = require_utils6();
51183
51044
  var Reader = class {
@@ -51190,7 +51051,7 @@ var require_reader2 = __commonJS({
51190
51051
  });
51191
51052
  }
51192
51053
  _getFullEntryPath(filepath) {
51193
- return path4.resolve(this._settings.cwd, filepath);
51054
+ return path5.resolve(this._settings.cwd, filepath);
51194
51055
  }
51195
51056
  _makeEntry(stats, pattern) {
51196
51057
  const entry = {
@@ -51584,7 +51445,7 @@ var require_provider = __commonJS({
51584
51445
  "node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js"(exports) {
51585
51446
  "use strict";
51586
51447
  Object.defineProperty(exports, "__esModule", { value: true });
51587
- var path4 = require("path");
51448
+ var path5 = require("path");
51588
51449
  var deep_1 = require_deep();
51589
51450
  var entry_1 = require_entry();
51590
51451
  var error_1 = require_error();
@@ -51598,7 +51459,7 @@ var require_provider = __commonJS({
51598
51459
  this.entryTransformer = new entry_2.default(this._settings);
51599
51460
  }
51600
51461
  _getRootDirectory(task) {
51601
- return path4.resolve(this._settings.cwd, task.base);
51462
+ return path5.resolve(this._settings.cwd, task.base);
51602
51463
  }
51603
51464
  _getReaderOptions(task) {
51604
51465
  const basePath = task.base === "." ? "" : task.base;
@@ -51780,8 +51641,8 @@ var require_settings4 = __commonJS({
51780
51641
  Object.defineProperty(exports, "__esModule", { value: true });
51781
51642
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
51782
51643
  var fs8 = require("fs");
51783
- var os2 = require("os");
51784
- var CPU_COUNT = Math.max(os2.cpus().length, 1);
51644
+ var os3 = require("os");
51645
+ var CPU_COUNT = Math.max(os3.cpus().length, 1);
51785
51646
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
51786
51647
  lstat: fs8.lstat,
51787
51648
  lstatSync: fs8.lstatSync,
@@ -51980,15 +51841,15 @@ var require_path_type = __commonJS({
51980
51841
  var require_dir_glob = __commonJS({
51981
51842
  "node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(exports, module2) {
51982
51843
  "use strict";
51983
- var path4 = require("path");
51844
+ var path5 = require("path");
51984
51845
  var pathType = require_path_type();
51985
51846
  var getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0];
51986
51847
  var getPath = (filepath, cwd) => {
51987
51848
  const pth = filepath[0] === "!" ? filepath.slice(1) : filepath;
51988
- return path4.isAbsolute(pth) ? pth : path4.join(cwd, pth);
51849
+ return path5.isAbsolute(pth) ? pth : path5.join(cwd, pth);
51989
51850
  };
51990
51851
  var addExtensions = (file, extensions) => {
51991
- if (path4.extname(file)) {
51852
+ if (path5.extname(file)) {
51992
51853
  return `**/${file}`;
51993
51854
  }
51994
51855
  return `**/${file}.${getExtensions(extensions)}`;
@@ -52001,15 +51862,15 @@ var require_dir_glob = __commonJS({
52001
51862
  throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``);
52002
51863
  }
52003
51864
  if (options.files && options.extensions) {
52004
- return options.files.map((x) => path4.posix.join(directory, addExtensions(x, options.extensions)));
51865
+ return options.files.map((x) => path5.posix.join(directory, addExtensions(x, options.extensions)));
52005
51866
  }
52006
51867
  if (options.files) {
52007
- return options.files.map((x) => path4.posix.join(directory, `**/${x}`));
51868
+ return options.files.map((x) => path5.posix.join(directory, `**/${x}`));
52008
51869
  }
52009
51870
  if (options.extensions) {
52010
- return [path4.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
51871
+ return [path5.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
52011
51872
  }
52012
- return [path4.posix.join(directory, "**")];
51873
+ return [path5.posix.join(directory, "**")];
52013
51874
  };
52014
51875
  module2.exports = async (input, options) => {
52015
51876
  options = {
@@ -52255,17 +52116,17 @@ var require_ignore = __commonJS({
52255
52116
  var throwError = (message, Ctor) => {
52256
52117
  throw new Ctor(message);
52257
52118
  };
52258
- var checkPath = (path4, originalPath, doThrow) => {
52259
- if (!isString2(path4)) {
52119
+ var checkPath = (path5, originalPath, doThrow) => {
52120
+ if (!isString2(path5)) {
52260
52121
  return doThrow(
52261
52122
  `path must be a string, but got \`${originalPath}\``,
52262
52123
  TypeError
52263
52124
  );
52264
52125
  }
52265
- if (!path4) {
52126
+ if (!path5) {
52266
52127
  return doThrow(`path must not be empty`, TypeError);
52267
52128
  }
52268
- if (checkPath.isNotRelative(path4)) {
52129
+ if (checkPath.isNotRelative(path5)) {
52269
52130
  const r = "`path.relative()`d";
52270
52131
  return doThrow(
52271
52132
  `path should be a ${r} string, but got "${originalPath}"`,
@@ -52274,9 +52135,9 @@ var require_ignore = __commonJS({
52274
52135
  }
52275
52136
  return true;
52276
52137
  };
52277
- var isNotRelative = (path4) => REGEX_TEST_INVALID_PATH.test(path4);
52138
+ var isNotRelative = (path5) => REGEX_TEST_INVALID_PATH.test(path5);
52278
52139
  checkPath.isNotRelative = isNotRelative;
52279
- checkPath.convert = (p) => p;
52140
+ checkPath.convert = (p2) => p2;
52280
52141
  var Ignore = class {
52281
52142
  constructor({
52282
52143
  ignorecase = true,
@@ -52333,7 +52194,7 @@ var require_ignore = __commonJS({
52333
52194
  // setting `checkUnignored` to `false` could reduce additional
52334
52195
  // path matching.
52335
52196
  // @returns {TestResult} true if a file is ignored
52336
- _testOne(path4, checkUnignored) {
52197
+ _testOne(path5, checkUnignored) {
52337
52198
  let ignored = false;
52338
52199
  let unignored = false;
52339
52200
  this._rules.forEach((rule) => {
@@ -52341,7 +52202,7 @@ var require_ignore = __commonJS({
52341
52202
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
52342
52203
  return;
52343
52204
  }
52344
- const matched = rule.regex.test(path4);
52205
+ const matched = rule.regex.test(path5);
52345
52206
  if (matched) {
52346
52207
  ignored = !negative;
52347
52208
  unignored = negative;
@@ -52354,24 +52215,24 @@ var require_ignore = __commonJS({
52354
52215
  }
52355
52216
  // @returns {TestResult}
52356
52217
  _test(originalPath, cache, checkUnignored, slices) {
52357
- const path4 = originalPath && checkPath.convert(originalPath);
52218
+ const path5 = originalPath && checkPath.convert(originalPath);
52358
52219
  checkPath(
52359
- path4,
52220
+ path5,
52360
52221
  originalPath,
52361
52222
  this._allowRelativePaths ? RETURN_FALSE : throwError
52362
52223
  );
52363
- return this._t(path4, cache, checkUnignored, slices);
52224
+ return this._t(path5, cache, checkUnignored, slices);
52364
52225
  }
52365
- _t(path4, cache, checkUnignored, slices) {
52366
- if (path4 in cache) {
52367
- return cache[path4];
52226
+ _t(path5, cache, checkUnignored, slices) {
52227
+ if (path5 in cache) {
52228
+ return cache[path5];
52368
52229
  }
52369
52230
  if (!slices) {
52370
- slices = path4.split(SLASH);
52231
+ slices = path5.split(SLASH);
52371
52232
  }
52372
52233
  slices.pop();
52373
52234
  if (!slices.length) {
52374
- return cache[path4] = this._testOne(path4, checkUnignored);
52235
+ return cache[path5] = this._testOne(path5, checkUnignored);
52375
52236
  }
52376
52237
  const parent = this._t(
52377
52238
  slices.join(SLASH) + SLASH,
@@ -52379,24 +52240,24 @@ var require_ignore = __commonJS({
52379
52240
  checkUnignored,
52380
52241
  slices
52381
52242
  );
52382
- return cache[path4] = parent.ignored ? parent : this._testOne(path4, checkUnignored);
52243
+ return cache[path5] = parent.ignored ? parent : this._testOne(path5, checkUnignored);
52383
52244
  }
52384
- ignores(path4) {
52385
- return this._test(path4, this._ignoreCache, false).ignored;
52245
+ ignores(path5) {
52246
+ return this._test(path5, this._ignoreCache, false).ignored;
52386
52247
  }
52387
52248
  createFilter() {
52388
- return (path4) => !this.ignores(path4);
52249
+ return (path5) => !this.ignores(path5);
52389
52250
  }
52390
52251
  filter(paths) {
52391
52252
  return makeArray(paths).filter(this.createFilter());
52392
52253
  }
52393
52254
  // @returns {TestResult}
52394
- test(path4) {
52395
- return this._test(path4, this._testCache, true);
52255
+ test(path5) {
52256
+ return this._test(path5, this._testCache, true);
52396
52257
  }
52397
52258
  };
52398
52259
  var factory = (options) => new Ignore(options);
52399
- var isPathValid = (path4) => checkPath(path4 && checkPath.convert(path4), path4, RETURN_FALSE);
52260
+ var isPathValid = (path5) => checkPath(path5 && checkPath.convert(path5), path5, RETURN_FALSE);
52400
52261
  factory.isPathValid = isPathValid;
52401
52262
  factory.default = factory;
52402
52263
  module2.exports = factory;
@@ -52407,19 +52268,19 @@ var require_ignore = __commonJS({
52407
52268
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
52408
52269
  checkPath.convert = makePosix;
52409
52270
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
52410
- checkPath.isNotRelative = (path4) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path4) || isNotRelative(path4);
52271
+ checkPath.isNotRelative = (path5) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path5) || isNotRelative(path5);
52411
52272
  }
52412
52273
  }
52413
52274
  });
52414
52275
 
52415
52276
  // node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js
52416
- function slash(path4) {
52417
- const isExtendedLengthPath = /^\\\\\?\\/.test(path4);
52418
- const hasNonAscii = /[^\u0000-\u0080]+/.test(path4);
52277
+ function slash(path5) {
52278
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path5);
52279
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path5);
52419
52280
  if (isExtendedLengthPath || hasNonAscii) {
52420
- return path4;
52281
+ return path5;
52421
52282
  }
52422
- return path4.replace(/\\/g, "/");
52283
+ return path5.replace(/\\/g, "/");
52423
52284
  }
52424
52285
  var init_slash = __esm({
52425
52286
  "node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js"() {
@@ -52605,9 +52466,9 @@ var init_globby = __esm({
52605
52466
  createFilterFunction = (isIgnored) => {
52606
52467
  const seen = /* @__PURE__ */ new Set();
52607
52468
  return (fastGlobResult) => {
52608
- const path4 = fastGlobResult.path || fastGlobResult;
52609
- const pathKey = import_node_path2.default.normalize(path4);
52610
- const seenOrIgnored = seen.has(pathKey) || isIgnored && isIgnored(path4);
52469
+ const path5 = fastGlobResult.path || fastGlobResult;
52470
+ const pathKey = import_node_path2.default.normalize(path5);
52471
+ const seenOrIgnored = seen.has(pathKey) || isIgnored && isIgnored(path5);
52611
52472
  seen.add(pathKey);
52612
52473
  return !seenOrIgnored;
52613
52474
  };
@@ -53013,17 +52874,17 @@ var require_visit = __commonJS({
53013
52874
  visit.BREAK = BREAK;
53014
52875
  visit.SKIP = SKIP;
53015
52876
  visit.REMOVE = REMOVE;
53016
- function visit_(key, node, visitor, path4) {
53017
- const ctrl = callVisitor(key, node, visitor, path4);
52877
+ function visit_(key, node, visitor, path5) {
52878
+ const ctrl = callVisitor(key, node, visitor, path5);
53018
52879
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
53019
- replaceNode(key, path4, ctrl);
53020
- return visit_(key, ctrl, visitor, path4);
52880
+ replaceNode(key, path5, ctrl);
52881
+ return visit_(key, ctrl, visitor, path5);
53021
52882
  }
53022
52883
  if (typeof ctrl !== "symbol") {
53023
52884
  if (identity.isCollection(node)) {
53024
- path4 = Object.freeze(path4.concat(node));
52885
+ path5 = Object.freeze(path5.concat(node));
53025
52886
  for (let i = 0; i < node.items.length; ++i) {
53026
- const ci = visit_(i, node.items[i], visitor, path4);
52887
+ const ci = visit_(i, node.items[i], visitor, path5);
53027
52888
  if (typeof ci === "number")
53028
52889
  i = ci - 1;
53029
52890
  else if (ci === BREAK)
@@ -53034,13 +52895,13 @@ var require_visit = __commonJS({
53034
52895
  }
53035
52896
  }
53036
52897
  } else if (identity.isPair(node)) {
53037
- path4 = Object.freeze(path4.concat(node));
53038
- const ck = visit_("key", node.key, visitor, path4);
52898
+ path5 = Object.freeze(path5.concat(node));
52899
+ const ck = visit_("key", node.key, visitor, path5);
53039
52900
  if (ck === BREAK)
53040
52901
  return BREAK;
53041
52902
  else if (ck === REMOVE)
53042
52903
  node.key = null;
53043
- const cv = visit_("value", node.value, visitor, path4);
52904
+ const cv = visit_("value", node.value, visitor, path5);
53044
52905
  if (cv === BREAK)
53045
52906
  return BREAK;
53046
52907
  else if (cv === REMOVE)
@@ -53061,17 +52922,17 @@ var require_visit = __commonJS({
53061
52922
  visitAsync.BREAK = BREAK;
53062
52923
  visitAsync.SKIP = SKIP;
53063
52924
  visitAsync.REMOVE = REMOVE;
53064
- async function visitAsync_(key, node, visitor, path4) {
53065
- const ctrl = await callVisitor(key, node, visitor, path4);
52925
+ async function visitAsync_(key, node, visitor, path5) {
52926
+ const ctrl = await callVisitor(key, node, visitor, path5);
53066
52927
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
53067
- replaceNode(key, path4, ctrl);
53068
- return visitAsync_(key, ctrl, visitor, path4);
52928
+ replaceNode(key, path5, ctrl);
52929
+ return visitAsync_(key, ctrl, visitor, path5);
53069
52930
  }
53070
52931
  if (typeof ctrl !== "symbol") {
53071
52932
  if (identity.isCollection(node)) {
53072
- path4 = Object.freeze(path4.concat(node));
52933
+ path5 = Object.freeze(path5.concat(node));
53073
52934
  for (let i = 0; i < node.items.length; ++i) {
53074
- const ci = await visitAsync_(i, node.items[i], visitor, path4);
52935
+ const ci = await visitAsync_(i, node.items[i], visitor, path5);
53075
52936
  if (typeof ci === "number")
53076
52937
  i = ci - 1;
53077
52938
  else if (ci === BREAK)
@@ -53082,13 +52943,13 @@ var require_visit = __commonJS({
53082
52943
  }
53083
52944
  }
53084
52945
  } else if (identity.isPair(node)) {
53085
- path4 = Object.freeze(path4.concat(node));
53086
- const ck = await visitAsync_("key", node.key, visitor, path4);
52946
+ path5 = Object.freeze(path5.concat(node));
52947
+ const ck = await visitAsync_("key", node.key, visitor, path5);
53087
52948
  if (ck === BREAK)
53088
52949
  return BREAK;
53089
52950
  else if (ck === REMOVE)
53090
52951
  node.key = null;
53091
- const cv = await visitAsync_("value", node.value, visitor, path4);
52952
+ const cv = await visitAsync_("value", node.value, visitor, path5);
53092
52953
  if (cv === BREAK)
53093
52954
  return BREAK;
53094
52955
  else if (cv === REMOVE)
@@ -53115,24 +52976,24 @@ var require_visit = __commonJS({
53115
52976
  }
53116
52977
  return visitor;
53117
52978
  }
53118
- function callVisitor(key, node, visitor, path4) {
52979
+ function callVisitor(key, node, visitor, path5) {
53119
52980
  var _a3, _b, _c, _d, _e;
53120
52981
  if (typeof visitor === "function")
53121
- return visitor(key, node, path4);
52982
+ return visitor(key, node, path5);
53122
52983
  if (identity.isMap(node))
53123
- return (_a3 = visitor.Map) == null ? void 0 : _a3.call(visitor, key, node, path4);
52984
+ return (_a3 = visitor.Map) == null ? void 0 : _a3.call(visitor, key, node, path5);
53124
52985
  if (identity.isSeq(node))
53125
- return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path4);
52986
+ return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path5);
53126
52987
  if (identity.isPair(node))
53127
- return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path4);
52988
+ return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path5);
53128
52989
  if (identity.isScalar(node))
53129
- return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path4);
52990
+ return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path5);
53130
52991
  if (identity.isAlias(node))
53131
- return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path4);
52992
+ return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path5);
53132
52993
  return void 0;
53133
52994
  }
53134
- function replaceNode(key, path4, node) {
53135
- const parent = path4[path4.length - 1];
52995
+ function replaceNode(key, path5, node) {
52996
+ const parent = path5[path5.length - 1];
53136
52997
  if (identity.isCollection(parent)) {
53137
52998
  parent.items[key] = node;
53138
52999
  } else if (identity.isPair(parent)) {
@@ -53728,10 +53589,10 @@ var require_Collection = __commonJS({
53728
53589
  var createNode = require_createNode();
53729
53590
  var identity = require_identity();
53730
53591
  var Node = require_Node();
53731
- function collectionFromPath(schema4, path4, value) {
53592
+ function collectionFromPath(schema4, path5, value) {
53732
53593
  let v = value;
53733
- for (let i = path4.length - 1; i >= 0; --i) {
53734
- const k = path4[i];
53594
+ for (let i = path5.length - 1; i >= 0; --i) {
53595
+ const k = path5[i];
53735
53596
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
53736
53597
  const a = [];
53737
53598
  a[k] = v;
@@ -53750,7 +53611,7 @@ var require_Collection = __commonJS({
53750
53611
  sourceObjects: /* @__PURE__ */ new Map()
53751
53612
  });
53752
53613
  }
53753
- var isEmptyPath = (path4) => path4 == null || typeof path4 === "object" && !!path4[Symbol.iterator]().next().done;
53614
+ var isEmptyPath = (path5) => path5 == null || typeof path5 === "object" && !!path5[Symbol.iterator]().next().done;
53754
53615
  var Collection = class extends Node.NodeBase {
53755
53616
  constructor(type, schema4) {
53756
53617
  super(type);
@@ -53780,11 +53641,11 @@ var require_Collection = __commonJS({
53780
53641
  * be a Pair instance or a `{ key, value }` object, which may not have a key
53781
53642
  * that already exists in the map.
53782
53643
  */
53783
- addIn(path4, value) {
53784
- if (isEmptyPath(path4))
53644
+ addIn(path5, value) {
53645
+ if (isEmptyPath(path5))
53785
53646
  this.add(value);
53786
53647
  else {
53787
- const [key, ...rest] = path4;
53648
+ const [key, ...rest] = path5;
53788
53649
  const node = this.get(key, true);
53789
53650
  if (identity.isCollection(node))
53790
53651
  node.addIn(rest, value);
@@ -53798,8 +53659,8 @@ var require_Collection = __commonJS({
53798
53659
  * Removes a value from the collection.
53799
53660
  * @returns `true` if the item was found and removed.
53800
53661
  */
53801
- deleteIn(path4) {
53802
- const [key, ...rest] = path4;
53662
+ deleteIn(path5) {
53663
+ const [key, ...rest] = path5;
53803
53664
  if (rest.length === 0)
53804
53665
  return this.delete(key);
53805
53666
  const node = this.get(key, true);
@@ -53813,8 +53674,8 @@ var require_Collection = __commonJS({
53813
53674
  * scalar values from their surrounding node; to disable set `keepScalar` to
53814
53675
  * `true` (collections are always returned intact).
53815
53676
  */
53816
- getIn(path4, keepScalar) {
53817
- const [key, ...rest] = path4;
53677
+ getIn(path5, keepScalar) {
53678
+ const [key, ...rest] = path5;
53818
53679
  const node = this.get(key, true);
53819
53680
  if (rest.length === 0)
53820
53681
  return !keepScalar && identity.isScalar(node) ? node.value : node;
@@ -53832,8 +53693,8 @@ var require_Collection = __commonJS({
53832
53693
  /**
53833
53694
  * Checks if the collection includes a value with the key `key`.
53834
53695
  */
53835
- hasIn(path4) {
53836
- const [key, ...rest] = path4;
53696
+ hasIn(path5) {
53697
+ const [key, ...rest] = path5;
53837
53698
  if (rest.length === 0)
53838
53699
  return this.has(key);
53839
53700
  const node = this.get(key, true);
@@ -53843,8 +53704,8 @@ var require_Collection = __commonJS({
53843
53704
  * Sets a value in this collection. For `!!set`, `value` needs to be a
53844
53705
  * boolean to add/remove the item from the set.
53845
53706
  */
53846
- setIn(path4, value) {
53847
- const [key, ...rest] = path4;
53707
+ setIn(path5, value) {
53708
+ const [key, ...rest] = path5;
53848
53709
  if (rest.length === 0) {
53849
53710
  this.set(key, value);
53850
53711
  } else {
@@ -55906,7 +55767,7 @@ var require_timestamp = __commonJS({
55906
55767
  const sign = str[0];
55907
55768
  const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
55908
55769
  const num = (n) => asBigInt ? BigInt(n) : Number(n);
55909
- const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
55770
+ const res = parts.replace(/_/g, "").split(":").reduce((res2, p2) => res2 * num(60) + num(p2), num(0));
55910
55771
  return sign === "-" ? num(-1) * res : res;
55911
55772
  }
55912
55773
  function stringifySexagesimal(node) {
@@ -56301,9 +56162,9 @@ var require_Document = __commonJS({
56301
56162
  this.contents.add(value);
56302
56163
  }
56303
56164
  /** Adds a value to the document. */
56304
- addIn(path4, value) {
56165
+ addIn(path5, value) {
56305
56166
  if (assertCollection(this.contents))
56306
- this.contents.addIn(path4, value);
56167
+ this.contents.addIn(path5, value);
56307
56168
  }
56308
56169
  /**
56309
56170
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -56378,14 +56239,14 @@ var require_Document = __commonJS({
56378
56239
  * Removes a value from the document.
56379
56240
  * @returns `true` if the item was found and removed.
56380
56241
  */
56381
- deleteIn(path4) {
56382
- if (Collection.isEmptyPath(path4)) {
56242
+ deleteIn(path5) {
56243
+ if (Collection.isEmptyPath(path5)) {
56383
56244
  if (this.contents == null)
56384
56245
  return false;
56385
56246
  this.contents = null;
56386
56247
  return true;
56387
56248
  }
56388
- return assertCollection(this.contents) ? this.contents.deleteIn(path4) : false;
56249
+ return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
56389
56250
  }
56390
56251
  /**
56391
56252
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -56400,10 +56261,10 @@ var require_Document = __commonJS({
56400
56261
  * scalar values from their surrounding node; to disable set `keepScalar` to
56401
56262
  * `true` (collections are always returned intact).
56402
56263
  */
56403
- getIn(path4, keepScalar) {
56404
- if (Collection.isEmptyPath(path4))
56264
+ getIn(path5, keepScalar) {
56265
+ if (Collection.isEmptyPath(path5))
56405
56266
  return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
56406
- return identity.isCollection(this.contents) ? this.contents.getIn(path4, keepScalar) : void 0;
56267
+ return identity.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : void 0;
56407
56268
  }
56408
56269
  /**
56409
56270
  * Checks if the document includes a value with the key `key`.
@@ -56414,10 +56275,10 @@ var require_Document = __commonJS({
56414
56275
  /**
56415
56276
  * Checks if the document includes a value at `path`.
56416
56277
  */
56417
- hasIn(path4) {
56418
- if (Collection.isEmptyPath(path4))
56278
+ hasIn(path5) {
56279
+ if (Collection.isEmptyPath(path5))
56419
56280
  return this.contents !== void 0;
56420
- return identity.isCollection(this.contents) ? this.contents.hasIn(path4) : false;
56281
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
56421
56282
  }
56422
56283
  /**
56423
56284
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -56434,13 +56295,13 @@ var require_Document = __commonJS({
56434
56295
  * Sets a value in this document. For `!!set`, `value` needs to be a
56435
56296
  * boolean to add/remove the item from the set.
56436
56297
  */
56437
- setIn(path4, value) {
56438
- if (Collection.isEmptyPath(path4)) {
56298
+ setIn(path5, value) {
56299
+ if (Collection.isEmptyPath(path5)) {
56439
56300
  this.contents = value;
56440
56301
  } else if (this.contents == null) {
56441
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path4), value);
56302
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path5), value);
56442
56303
  } else if (assertCollection(this.contents)) {
56443
- this.contents.setIn(path4, value);
56304
+ this.contents.setIn(path5, value);
56444
56305
  }
56445
56306
  }
56446
56307
  /**
@@ -58332,9 +58193,9 @@ var require_cst_visit = __commonJS({
58332
58193
  visit.BREAK = BREAK;
58333
58194
  visit.SKIP = SKIP;
58334
58195
  visit.REMOVE = REMOVE;
58335
- visit.itemAtPath = (cst, path4) => {
58196
+ visit.itemAtPath = (cst, path5) => {
58336
58197
  let item = cst;
58337
- for (const [field, index4] of path4) {
58198
+ for (const [field, index4] of path5) {
58338
58199
  const tok = item == null ? void 0 : item[field];
58339
58200
  if (tok && "items" in tok) {
58340
58201
  item = tok.items[index4];
@@ -58343,23 +58204,23 @@ var require_cst_visit = __commonJS({
58343
58204
  }
58344
58205
  return item;
58345
58206
  };
58346
- visit.parentCollection = (cst, path4) => {
58347
- const parent = visit.itemAtPath(cst, path4.slice(0, -1));
58348
- const field = path4[path4.length - 1][0];
58207
+ visit.parentCollection = (cst, path5) => {
58208
+ const parent = visit.itemAtPath(cst, path5.slice(0, -1));
58209
+ const field = path5[path5.length - 1][0];
58349
58210
  const coll = parent == null ? void 0 : parent[field];
58350
58211
  if (coll && "items" in coll)
58351
58212
  return coll;
58352
58213
  throw new Error("Parent collection not found");
58353
58214
  };
58354
- function _visit(path4, item, visitor) {
58355
- let ctrl = visitor(item, path4);
58215
+ function _visit(path5, item, visitor) {
58216
+ let ctrl = visitor(item, path5);
58356
58217
  if (typeof ctrl === "symbol")
58357
58218
  return ctrl;
58358
58219
  for (const field of ["key", "value"]) {
58359
58220
  const token = item[field];
58360
58221
  if (token && "items" in token) {
58361
58222
  for (let i = 0; i < token.items.length; ++i) {
58362
- const ci = _visit(Object.freeze(path4.concat([[field, i]])), token.items[i], visitor);
58223
+ const ci = _visit(Object.freeze(path5.concat([[field, i]])), token.items[i], visitor);
58363
58224
  if (typeof ci === "number")
58364
58225
  i = ci - 1;
58365
58226
  else if (ci === BREAK)
@@ -58370,10 +58231,10 @@ var require_cst_visit = __commonJS({
58370
58231
  }
58371
58232
  }
58372
58233
  if (typeof ctrl === "function" && field === "key")
58373
- ctrl = ctrl(item, path4);
58234
+ ctrl = ctrl(item, path5);
58374
58235
  }
58375
58236
  }
58376
- return typeof ctrl === "function" ? ctrl(item, path4) : ctrl;
58237
+ return typeof ctrl === "function" ? ctrl(item, path5) : ctrl;
58377
58238
  }
58378
58239
  exports.visit = visit;
58379
58240
  }
@@ -60160,19 +60021,19 @@ __export(studioUtils_exports, {
60160
60021
  preparePgSchema: () => preparePgSchema,
60161
60022
  prepareSQLiteSchema: () => prepareSQLiteSchema
60162
60023
  });
60163
- var import_drizzle_orm15, import_mysql_core4, import_pg_core4, import_sqlite_core5, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, prepareModels, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleDb;
60024
+ var import_drizzle_orm15, import_mysql_core4, import_pg_core5, import_sqlite_core6, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, prepareModels, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleDb;
60164
60025
  var init_studioUtils = __esm({
60165
60026
  "src/serializer/studioUtils.ts"() {
60166
60027
  import_drizzle_orm15 = require("drizzle-orm");
60167
60028
  import_mysql_core4 = require("drizzle-orm/mysql-core");
60168
- import_pg_core4 = require("drizzle-orm/pg-core");
60169
- import_sqlite_core5 = require("drizzle-orm/sqlite-core");
60029
+ import_pg_core5 = require("drizzle-orm/pg-core");
60030
+ import_sqlite_core6 = require("drizzle-orm/sqlite-core");
60170
60031
  init_utils();
60171
60032
  init_utils3();
60172
60033
  init_global();
60173
60034
  init_serializer();
60174
- preparePgSchema = async (path4) => {
60175
- const imports = prepareFilenames(path4);
60035
+ preparePgSchema = async (path5) => {
60036
+ const imports = prepareFilenames(path5);
60176
60037
  const pgSchema4 = {};
60177
60038
  const relations4 = {};
60178
60039
  const { unregister } = await safeRegister();
@@ -60181,8 +60042,8 @@ var init_studioUtils = __esm({
60181
60042
  const i0 = require(`${it}`);
60182
60043
  const i0values = Object.entries(i0);
60183
60044
  i0values.forEach(([k, t]) => {
60184
- if ((0, import_drizzle_orm15.is)(t, import_pg_core4.PgTable)) {
60185
- const schema4 = (0, import_pg_core4.getTableConfig)(t).schema || "public";
60045
+ if ((0, import_drizzle_orm15.is)(t, import_pg_core5.PgTable)) {
60046
+ const schema4 = (0, import_pg_core5.getTableConfig)(t).schema || "public";
60186
60047
  pgSchema4[schema4] = pgSchema4[schema4] || {};
60187
60048
  pgSchema4[schema4][k] = t;
60188
60049
  }
@@ -60194,8 +60055,8 @@ var init_studioUtils = __esm({
60194
60055
  unregister();
60195
60056
  return { schema: pgSchema4, relations: relations4 };
60196
60057
  };
60197
- prepareMySqlSchema = async (path4) => {
60198
- const imports = prepareFilenames(path4);
60058
+ prepareMySqlSchema = async (path5) => {
60059
+ const imports = prepareFilenames(path5);
60199
60060
  const mysqlSchema4 = {
60200
60061
  public: {}
60201
60062
  };
@@ -60218,8 +60079,8 @@ var init_studioUtils = __esm({
60218
60079
  unregister();
60219
60080
  return { schema: mysqlSchema4, relations: relations4 };
60220
60081
  };
60221
- prepareSQLiteSchema = async (path4) => {
60222
- const imports = prepareFilenames(path4);
60082
+ prepareSQLiteSchema = async (path5) => {
60083
+ const imports = prepareFilenames(path5);
60223
60084
  const sqliteSchema2 = {
60224
60085
  public: {}
60225
60086
  };
@@ -60230,7 +60091,7 @@ var init_studioUtils = __esm({
60230
60091
  const i0 = require(`${it}`);
60231
60092
  const i0values = Object.entries(i0);
60232
60093
  i0values.forEach(([k, t]) => {
60233
- if ((0, import_drizzle_orm15.is)(t, import_sqlite_core5.SQLiteTable)) {
60094
+ if ((0, import_drizzle_orm15.is)(t, import_sqlite_core6.SQLiteTable)) {
60234
60095
  const schema4 = "public";
60235
60096
  sqliteSchema2[schema4][k] = t;
60236
60097
  }
@@ -60242,8 +60103,8 @@ var init_studioUtils = __esm({
60242
60103
  unregister();
60243
60104
  return { schema: sqliteSchema2, relations: relations4 };
60244
60105
  };
60245
- prepareModels = async (path4) => {
60246
- const imports = prepareFilenames(path4);
60106
+ prepareModels = async (path5) => {
60107
+ const imports = prepareFilenames(path5);
60247
60108
  const sqliteSchema2 = {};
60248
60109
  const pgSchema4 = {};
60249
60110
  const mysqlSchema4 = {};
@@ -60253,13 +60114,13 @@ var init_studioUtils = __esm({
60253
60114
  const i0 = require(`${it}`);
60254
60115
  const i0values = Object.entries(i0);
60255
60116
  i0values.forEach(([k, t]) => {
60256
- if ((0, import_drizzle_orm15.is)(t, import_pg_core4.PgTable)) {
60117
+ if ((0, import_drizzle_orm15.is)(t, import_pg_core5.PgTable)) {
60257
60118
  pgSchema4[k] = t;
60258
60119
  }
60259
60120
  if ((0, import_drizzle_orm15.is)(t, import_mysql_core4.MySqlTable)) {
60260
60121
  mysqlSchema4[k] = t;
60261
60122
  }
60262
- if ((0, import_drizzle_orm15.is)(t, import_sqlite_core5.SQLiteTable)) {
60123
+ if ((0, import_drizzle_orm15.is)(t, import_sqlite_core6.SQLiteTable)) {
60263
60124
  sqliteSchema2[k] = t;
60264
60125
  }
60265
60126
  if ((0, import_drizzle_orm15.is)(t, import_drizzle_orm15.Relations)) {
@@ -60467,8 +60328,7 @@ var init_utils5 = __esm({
60467
60328
  init_pgIntrospect();
60468
60329
  init_pgPushUtils();
60469
60330
  init_sqliteIntrospect();
60470
- init_sqliteSerializer();
60471
- init_pgSerializer();
60331
+ init_schemaToDrizzle();
60472
60332
  init_studioUtils();
60473
60333
  init_pgConnect();
60474
60334
  assertV1OutFolder = (out, dialect6) => {
@@ -61271,8 +61131,8 @@ var require_package = __commonJS({
61271
61131
  var require_main = __commonJS({
61272
61132
  "node_modules/.pnpm/dotenv@16.0.3/node_modules/dotenv/lib/main.js"(exports, module2) {
61273
61133
  var fs8 = require("fs");
61274
- var path4 = require("path");
61275
- var os2 = require("os");
61134
+ var path5 = require("path");
61135
+ var os3 = require("os");
61276
61136
  var packageJson = require_package();
61277
61137
  var version = packageJson.version;
61278
61138
  var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
@@ -61299,10 +61159,10 @@ var require_main = __commonJS({
61299
61159
  console.log(`[dotenv@${version}][DEBUG] ${message}`);
61300
61160
  }
61301
61161
  function _resolveHome(envPath) {
61302
- return envPath[0] === "~" ? path4.join(os2.homedir(), envPath.slice(1)) : envPath;
61162
+ return envPath[0] === "~" ? path5.join(os3.homedir(), envPath.slice(1)) : envPath;
61303
61163
  }
61304
61164
  function config(options) {
61305
- let dotenvPath = path4.resolve(process.cwd(), ".env");
61165
+ let dotenvPath = path5.resolve(process.cwd(), ".env");
61306
61166
  let encoding = "utf8";
61307
61167
  const debug = Boolean(options && options.debug);
61308
61168
  const override = Boolean(options && options.override);
@@ -62109,7 +61969,7 @@ __export(cli_exports, {
62109
61969
  });
62110
61970
  module.exports = __toCommonJS(cli_exports);
62111
61971
  var import_commander = require("commander");
62112
- var import_fs11 = require("fs");
61972
+ var import_fs12 = require("fs");
62113
61973
  init_lib();
62114
61974
 
62115
61975
  // src/cli/commands/check.ts
@@ -62151,7 +62011,7 @@ var checkHandler = (out, dialect6) => {
62151
62011
 
62152
62012
  // src/cli/index.ts
62153
62013
  var import_hanji11 = __toESM(require_hanji());
62154
- var import_path7 = __toESM(require("path"));
62014
+ var import_path8 = __toESM(require("path"));
62155
62015
  init_utils3();
62156
62016
  init_source();
62157
62017
 
@@ -62214,11 +62074,12 @@ var package_default = {
62214
62074
  ]
62215
62075
  },
62216
62076
  dependencies: {
62217
- "@drizzle-team/studio": "^0.0.35",
62077
+ "@drizzle-team/studio": "^0.0.37",
62218
62078
  "@esbuild-kit/esm-loader": "^2.5.5",
62219
62079
  camelcase: "^7.0.1",
62220
62080
  chalk: "^5.2.0",
62221
62081
  commander: "^9.4.1",
62082
+ "env-paths": "^3.0.0",
62222
62083
  esbuild: "^0.19.7",
62223
62084
  "esbuild-register": "^3.5.0",
62224
62085
  glob: "^8.1.0",
@@ -62309,10 +62170,10 @@ var upSqliteHandlerV4 = (out) => {
62309
62170
  path: it,
62310
62171
  raw: report.rawMap[it]
62311
62172
  })).forEach((it) => {
62312
- const path4 = it.path;
62173
+ const path5 = it.path;
62313
62174
  const result = updateToLatestV42(it.raw);
62314
- console.log(`[${source_default.green("\u2713")}] ${path4}`);
62315
- import_fs9.default.writeFileSync(path4, JSON.stringify(result, null, 2));
62175
+ console.log(`[${source_default.green("\u2713")}] ${path5}`);
62176
+ import_fs9.default.writeFileSync(path5, JSON.stringify(result, null, 2));
62316
62177
  });
62317
62178
  console.log("Everything's fine \u{1F436}\u{1F525}");
62318
62179
  };
@@ -62908,6 +62769,97 @@ init_sqlgenerator();
62908
62769
  init_selector_ui();
62909
62770
  var import_studio = require("@drizzle-team/studio");
62910
62771
  init_global();
62772
+
62773
+ // src/utils/certs.ts
62774
+ init_build();
62775
+ var import_path7 = require("path");
62776
+
62777
+ // node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
62778
+ var import_node_path3 = __toESM(require("node:path"), 1);
62779
+ var import_node_os2 = __toESM(require("node:os"), 1);
62780
+ var import_node_process3 = __toESM(require("node:process"), 1);
62781
+ var homedir = import_node_os2.default.homedir();
62782
+ var tmpdir = import_node_os2.default.tmpdir();
62783
+ var { env: env2 } = import_node_process3.default;
62784
+ var macos = (name) => {
62785
+ const library = import_node_path3.default.join(homedir, "Library");
62786
+ return {
62787
+ data: import_node_path3.default.join(library, "Application Support", name),
62788
+ config: import_node_path3.default.join(library, "Preferences", name),
62789
+ cache: import_node_path3.default.join(library, "Caches", name),
62790
+ log: import_node_path3.default.join(library, "Logs", name),
62791
+ temp: import_node_path3.default.join(tmpdir, name)
62792
+ };
62793
+ };
62794
+ var windows = (name) => {
62795
+ const appData = env2.APPDATA || import_node_path3.default.join(homedir, "AppData", "Roaming");
62796
+ const localAppData = env2.LOCALAPPDATA || import_node_path3.default.join(homedir, "AppData", "Local");
62797
+ return {
62798
+ // Data/config/cache/log are invented by me as Windows isn't opinionated about this
62799
+ data: import_node_path3.default.join(localAppData, name, "Data"),
62800
+ config: import_node_path3.default.join(appData, name, "Config"),
62801
+ cache: import_node_path3.default.join(localAppData, name, "Cache"),
62802
+ log: import_node_path3.default.join(localAppData, name, "Log"),
62803
+ temp: import_node_path3.default.join(tmpdir, name)
62804
+ };
62805
+ };
62806
+ var linux = (name) => {
62807
+ const username = import_node_path3.default.basename(homedir);
62808
+ return {
62809
+ data: import_node_path3.default.join(env2.XDG_DATA_HOME || import_node_path3.default.join(homedir, ".local", "share"), name),
62810
+ config: import_node_path3.default.join(env2.XDG_CONFIG_HOME || import_node_path3.default.join(homedir, ".config"), name),
62811
+ cache: import_node_path3.default.join(env2.XDG_CACHE_HOME || import_node_path3.default.join(homedir, ".cache"), name),
62812
+ // https://wiki.debian.org/XDGBaseDirectorySpecification#state
62813
+ log: import_node_path3.default.join(env2.XDG_STATE_HOME || import_node_path3.default.join(homedir, ".local", "state"), name),
62814
+ temp: import_node_path3.default.join(tmpdir, username, name)
62815
+ };
62816
+ };
62817
+ function envPaths(name, { suffix = "nodejs" } = {}) {
62818
+ if (typeof name !== "string") {
62819
+ throw new TypeError(`Expected a string, got ${typeof name}`);
62820
+ }
62821
+ if (suffix) {
62822
+ name += `-${suffix}`;
62823
+ }
62824
+ if (import_node_process3.default.platform === "darwin") {
62825
+ return macos(name);
62826
+ }
62827
+ if (import_node_process3.default.platform === "win32") {
62828
+ return windows(name);
62829
+ }
62830
+ return linux(name);
62831
+ }
62832
+
62833
+ // src/utils/certs.ts
62834
+ var import_promises = require("fs/promises");
62835
+ var import_fs11 = require("fs");
62836
+ var p = envPaths("drizzle-studio", {
62837
+ suffix: ""
62838
+ });
62839
+ $.verbose = false;
62840
+ $.cwd = p.data;
62841
+ (0, import_fs11.mkdirSync)(p.data, { recursive: true });
62842
+ var certs = async () => {
62843
+ const res = await $`mkcert --help`.nothrow();
62844
+ const keyPath = (0, import_path7.join)(p.data, "localhost-key.pem");
62845
+ const certPath = (0, import_path7.join)(p.data, "localhost.pem");
62846
+ if (res.exitCode === 0) {
62847
+ try {
62848
+ await Promise.all([(0, import_promises.access)(keyPath), (0, import_promises.access)(certPath)]);
62849
+ } catch (e) {
62850
+ await $`mkcert localhost`.nothrow();
62851
+ }
62852
+ const [key, cert] = await Promise.all([
62853
+ (0, import_promises.readFile)(keyPath, { encoding: "utf-8" }),
62854
+ (0, import_promises.readFile)(certPath, { encoding: "utf-8" })
62855
+ ]);
62856
+ return key && cert ? { key, cert } : null;
62857
+ }
62858
+ return null;
62859
+ };
62860
+ certs();
62861
+
62862
+ // src/cli/index.ts
62911
62863
  var printVersions = async () => {
62912
62864
  const v = await versions();
62913
62865
  console.log(`${source_default.gray(v)}
@@ -63437,8 +63389,8 @@ var introspectPgCommand = new import_commander.Command("introspect:pg").option("
63437
63389
  tablesFilter,
63438
63390
  schemasFilter
63439
63391
  );
63440
- const schemaFile = import_path7.default.join(validatedConfig.out, "schema.ts");
63441
- (0, import_fs11.writeFileSync)(schemaFile, ts.file);
63392
+ const schemaFile = import_path8.default.join(validatedConfig.out, "schema.ts");
63393
+ (0, import_fs12.writeFileSync)(schemaFile, ts.file);
63442
63394
  console.log();
63443
63395
  if (snapshots.length === 0) {
63444
63396
  const { sqlStatements, _meta } = await prepareSQL(
@@ -63490,8 +63442,8 @@ var introspectMySqlCommand = new import_commander.Command("introspect:mysql").op
63490
63442
  const filterConfig = res.tablesFilter;
63491
63443
  const tablesFilter = filterConfig ? typeof filterConfig === "string" ? [filterConfig] : filterConfig : [];
63492
63444
  const { schema: schema4, ts } = await mysqlIntrospect2(res, tablesFilter);
63493
- const schemaFile = import_path7.default.join(out, "schema.ts");
63494
- (0, import_fs11.writeFileSync)(schemaFile, ts.file);
63445
+ const schemaFile = import_path8.default.join(out, "schema.ts");
63446
+ (0, import_fs12.writeFileSync)(schemaFile, ts.file);
63495
63447
  console.log();
63496
63448
  if (snapshots.length === 0) {
63497
63449
  const { sqlStatements, _meta } = await prepareSQL(
@@ -63543,8 +63495,8 @@ var introspectSQLiteCommand = new import_commander.Command("introspect:sqlite").
63543
63495
  const filterConfig = res.tablesFilter;
63544
63496
  const tablesFilter = filterConfig ? typeof filterConfig === "string" ? [filterConfig] : filterConfig : [];
63545
63497
  const { schema: schema4, ts } = await sqliteIntrospect2(res, tablesFilter);
63546
- const schemaFile = import_path7.default.join(out, "schema.ts");
63547
- (0, import_fs11.writeFileSync)(schemaFile, ts.file);
63498
+ const schemaFile = import_path8.default.join(out, "schema.ts");
63499
+ (0, import_fs12.writeFileSync)(schemaFile, ts.file);
63548
63500
  console.log();
63549
63501
  if (snapshots.length === 0) {
63550
63502
  const { sqlStatements, _meta } = await prepareSQL(
@@ -63685,9 +63637,12 @@ var studioCommand = new import_commander.Command("studio").option("--port <port>
63685
63637
  )
63686
63638
  );
63687
63639
  }
63640
+ const { key, cert } = await certs() || {};
63688
63641
  server.start({
63689
63642
  host,
63690
63643
  port,
63644
+ key,
63645
+ cert,
63691
63646
  cb: (err2, address) => {
63692
63647
  if (err2) {
63693
63648
  console.error(err2);
@@ -63699,7 +63654,7 @@ var studioCommand = new import_commander.Command("studio").option("--port <port>
63699
63654
  if (host !== "127.0.0.1") {
63700
63655
  queryParams.host = host;
63701
63656
  }
63702
- const queryString = Object.keys(queryParams).map((key) => `${key}=${queryParams[key]}`).join("&");
63657
+ const queryString = Object.keys(queryParams).map((key2) => `${key2}=${queryParams[key2]}`).join("&");
63703
63658
  console.log(
63704
63659
  `
63705
63660
  Drizzle Studio is up and running on ${source_default.blue(