drizzle-kit 0.20.6-88f61dc → 0.20.7-3bc340d

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