drizzle-kit 0.24.2-8db0aa4 → 0.24.2-ab3b46d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/api.js +3136 -192
  2. package/api.mjs +3135 -192
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.mjs CHANGED
@@ -576,7 +576,7 @@ var require_old = __commonJS({
576
576
  "use strict";
577
577
  var pathModule = __require("path");
578
578
  var isWindows = process.platform === "win32";
579
- var fs4 = __require("fs");
579
+ var fs5 = __require("fs");
580
580
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
581
581
  function rethrow() {
582
582
  var callback;
@@ -641,7 +641,7 @@ var require_old = __commonJS({
641
641
  base = m7[0];
642
642
  previous = "";
643
643
  if (isWindows && !knownHard[base]) {
644
- fs4.lstatSync(base);
644
+ fs5.lstatSync(base);
645
645
  knownHard[base] = true;
646
646
  }
647
647
  }
@@ -659,7 +659,7 @@ var require_old = __commonJS({
659
659
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
660
660
  resolvedLink = cache[base];
661
661
  } else {
662
- var stat = fs4.lstatSync(base);
662
+ var stat = fs5.lstatSync(base);
663
663
  if (!stat.isSymbolicLink()) {
664
664
  knownHard[base] = true;
665
665
  if (cache) cache[base] = base;
@@ -673,8 +673,8 @@ var require_old = __commonJS({
673
673
  }
674
674
  }
675
675
  if (linkTarget === null) {
676
- fs4.statSync(base);
677
- linkTarget = fs4.readlinkSync(base);
676
+ fs5.statSync(base);
677
+ linkTarget = fs5.readlinkSync(base);
678
678
  }
679
679
  resolvedLink = pathModule.resolve(previous, linkTarget);
680
680
  if (cache) cache[base] = resolvedLink;
@@ -708,7 +708,7 @@ var require_old = __commonJS({
708
708
  base = m7[0];
709
709
  previous = "";
710
710
  if (isWindows && !knownHard[base]) {
711
- fs4.lstat(base, function(err) {
711
+ fs5.lstat(base, function(err) {
712
712
  if (err) return cb(err);
713
713
  knownHard[base] = true;
714
714
  LOOP();
@@ -734,7 +734,7 @@ var require_old = __commonJS({
734
734
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
735
735
  return gotResolvedLink(cache[base]);
736
736
  }
737
- return fs4.lstat(base, gotStat);
737
+ return fs5.lstat(base, gotStat);
738
738
  }
739
739
  function gotStat(err, stat) {
740
740
  if (err) return cb(err);
@@ -749,9 +749,9 @@ var require_old = __commonJS({
749
749
  return gotTarget(null, seenLinks[id], base);
750
750
  }
751
751
  }
752
- fs4.stat(base, function(err2) {
752
+ fs5.stat(base, function(err2) {
753
753
  if (err2) return cb(err2);
754
- fs4.readlink(base, function(err3, target) {
754
+ fs5.readlink(base, function(err3, target) {
755
755
  if (!isWindows) seenLinks[id] = target;
756
756
  gotTarget(err3, target);
757
757
  });
@@ -781,9 +781,9 @@ var require_fs = __commonJS({
781
781
  realpath.realpathSync = realpathSync;
782
782
  realpath.monkeypatch = monkeypatch;
783
783
  realpath.unmonkeypatch = unmonkeypatch;
784
- var fs4 = __require("fs");
785
- var origRealpath = fs4.realpath;
786
- var origRealpathSync = fs4.realpathSync;
784
+ var fs5 = __require("fs");
785
+ var origRealpath = fs5.realpath;
786
+ var origRealpathSync = fs5.realpathSync;
787
787
  var version3 = process.version;
788
788
  var ok = /^v[0-5]\./.test(version3);
789
789
  var old = require_old();
@@ -821,12 +821,12 @@ var require_fs = __commonJS({
821
821
  }
822
822
  }
823
823
  function monkeypatch() {
824
- fs4.realpath = realpath;
825
- fs4.realpathSync = realpathSync;
824
+ fs5.realpath = realpath;
825
+ fs5.realpathSync = realpathSync;
826
826
  }
827
827
  function unmonkeypatch() {
828
- fs4.realpath = origRealpath;
829
- fs4.realpathSync = origRealpathSync;
828
+ fs5.realpath = origRealpath;
829
+ fs5.realpathSync = origRealpathSync;
830
830
  }
831
831
  }
832
832
  });
@@ -1061,8 +1061,8 @@ var require_minimatch = __commonJS({
1061
1061
  return new Minimatch2(pattern, options).match(p7);
1062
1062
  };
1063
1063
  module.exports = minimatch2;
1064
- var path2 = require_path();
1065
- minimatch2.sep = path2.sep;
1064
+ var path3 = require_path();
1065
+ minimatch2.sep = path3.sep;
1066
1066
  var GLOBSTAR2 = Symbol("globstar **");
1067
1067
  minimatch2.GLOBSTAR = GLOBSTAR2;
1068
1068
  var expand2 = require_brace_expansion();
@@ -1567,8 +1567,8 @@ var require_minimatch = __commonJS({
1567
1567
  if (this.empty) return f5 === "";
1568
1568
  if (f5 === "/" && partial) return true;
1569
1569
  const options = this.options;
1570
- if (path2.sep !== "/") {
1571
- f5 = f5.split(path2.sep).join("/");
1570
+ if (path3.sep !== "/") {
1571
+ f5 = f5.split(path3.sep).join("/");
1572
1572
  }
1573
1573
  f5 = f5.split(slashSplit);
1574
1574
  this.debug(this.pattern, "split", f5);
@@ -1664,8 +1664,8 @@ var require_common = __commonJS({
1664
1664
  function ownProp(obj, field) {
1665
1665
  return Object.prototype.hasOwnProperty.call(obj, field);
1666
1666
  }
1667
- var fs4 = __require("fs");
1668
- var path2 = __require("path");
1667
+ var fs5 = __require("fs");
1668
+ var path3 = __require("path");
1669
1669
  var minimatch2 = require_minimatch();
1670
1670
  var isAbsolute = __require("path").isAbsolute;
1671
1671
  var Minimatch2 = minimatch2.Minimatch;
@@ -1723,7 +1723,7 @@ var require_common = __commonJS({
1723
1723
  self2.stat = !!options.stat;
1724
1724
  self2.noprocess = !!options.noprocess;
1725
1725
  self2.absolute = !!options.absolute;
1726
- self2.fs = options.fs || fs4;
1726
+ self2.fs = options.fs || fs5;
1727
1727
  self2.maxLength = options.maxLength || Infinity;
1728
1728
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
1729
1729
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -1732,13 +1732,13 @@ var require_common = __commonJS({
1732
1732
  self2.changedCwd = false;
1733
1733
  var cwd = process.cwd();
1734
1734
  if (!ownProp(options, "cwd"))
1735
- self2.cwd = path2.resolve(cwd);
1735
+ self2.cwd = path3.resolve(cwd);
1736
1736
  else {
1737
- self2.cwd = path2.resolve(options.cwd);
1737
+ self2.cwd = path3.resolve(options.cwd);
1738
1738
  self2.changedCwd = self2.cwd !== cwd;
1739
1739
  }
1740
- self2.root = options.root || path2.resolve(self2.cwd, "/");
1741
- self2.root = path2.resolve(self2.root);
1740
+ self2.root = options.root || path3.resolve(self2.cwd, "/");
1741
+ self2.root = path3.resolve(self2.root);
1742
1742
  self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
1743
1743
  self2.nomount = !!options.nomount;
1744
1744
  if (process.platform === "win32") {
@@ -1820,30 +1820,30 @@ var require_common = __commonJS({
1820
1820
  function makeAbs(self2, f5) {
1821
1821
  var abs = f5;
1822
1822
  if (f5.charAt(0) === "/") {
1823
- abs = path2.join(self2.root, f5);
1823
+ abs = path3.join(self2.root, f5);
1824
1824
  } else if (isAbsolute(f5) || f5 === "") {
1825
1825
  abs = f5;
1826
1826
  } else if (self2.changedCwd) {
1827
- abs = path2.resolve(self2.cwd, f5);
1827
+ abs = path3.resolve(self2.cwd, f5);
1828
1828
  } else {
1829
- abs = path2.resolve(f5);
1829
+ abs = path3.resolve(f5);
1830
1830
  }
1831
1831
  if (process.platform === "win32")
1832
1832
  abs = abs.replace(/\\/g, "/");
1833
1833
  return abs;
1834
1834
  }
1835
- function isIgnored(self2, path3) {
1835
+ function isIgnored(self2, path4) {
1836
1836
  if (!self2.ignore.length)
1837
1837
  return false;
1838
1838
  return self2.ignore.some(function(item) {
1839
- return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3));
1839
+ return item.matcher.match(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
1840
1840
  });
1841
1841
  }
1842
- function childrenIgnored(self2, path3) {
1842
+ function childrenIgnored(self2, path4) {
1843
1843
  if (!self2.ignore.length)
1844
1844
  return false;
1845
1845
  return self2.ignore.some(function(item) {
1846
- return !!(item.gmatcher && item.gmatcher.match(path3));
1846
+ return !!(item.gmatcher && item.gmatcher.match(path4));
1847
1847
  });
1848
1848
  }
1849
1849
  }
@@ -1860,7 +1860,7 @@ var require_sync = __commonJS({
1860
1860
  var Minimatch2 = minimatch2.Minimatch;
1861
1861
  var Glob = require_glob().Glob;
1862
1862
  var util2 = __require("util");
1863
- var path2 = __require("path");
1863
+ var path3 = __require("path");
1864
1864
  var assert = __require("assert");
1865
1865
  var isAbsolute = __require("path").isAbsolute;
1866
1866
  var common = require_common();
@@ -1988,7 +1988,7 @@ var require_sync = __commonJS({
1988
1988
  e5 = prefix2 + e5;
1989
1989
  }
1990
1990
  if (e5.charAt(0) === "/" && !this.nomount) {
1991
- e5 = path2.join(this.root, e5);
1991
+ e5 = path3.join(this.root, e5);
1992
1992
  }
1993
1993
  this._emitMatch(index4, e5);
1994
1994
  }
@@ -2137,9 +2137,9 @@ var require_sync = __commonJS({
2137
2137
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
2138
2138
  var trail = /[\/\\]$/.test(prefix2);
2139
2139
  if (prefix2.charAt(0) === "/") {
2140
- prefix2 = path2.join(this.root, prefix2);
2140
+ prefix2 = path3.join(this.root, prefix2);
2141
2141
  } else {
2142
- prefix2 = path2.resolve(this.root, prefix2);
2142
+ prefix2 = path3.resolve(this.root, prefix2);
2143
2143
  if (trail)
2144
2144
  prefix2 += "/";
2145
2145
  }
@@ -2335,7 +2335,7 @@ var require_glob = __commonJS({
2335
2335
  var Minimatch2 = minimatch2.Minimatch;
2336
2336
  var inherits = require_inherits();
2337
2337
  var EE = __require("events").EventEmitter;
2338
- var path2 = __require("path");
2338
+ var path3 = __require("path");
2339
2339
  var assert = __require("assert");
2340
2340
  var isAbsolute = __require("path").isAbsolute;
2341
2341
  var globSync = require_sync();
@@ -2616,7 +2616,7 @@ var require_glob = __commonJS({
2616
2616
  e5 = prefix2 + e5;
2617
2617
  }
2618
2618
  if (e5.charAt(0) === "/" && !this.nomount) {
2619
- e5 = path2.join(this.root, e5);
2619
+ e5 = path3.join(this.root, e5);
2620
2620
  }
2621
2621
  this._emitMatch(index4, e5);
2622
2622
  }
@@ -2803,9 +2803,9 @@ var require_glob = __commonJS({
2803
2803
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
2804
2804
  var trail = /[\/\\]$/.test(prefix2);
2805
2805
  if (prefix2.charAt(0) === "/") {
2806
- prefix2 = path2.join(this.root, prefix2);
2806
+ prefix2 = path3.join(this.root, prefix2);
2807
2807
  } else {
2808
- prefix2 = path2.resolve(this.root, prefix2);
2808
+ prefix2 = path3.resolve(this.root, prefix2);
2809
2809
  if (trail)
2810
2810
  prefix2 += "/";
2811
2811
  }
@@ -3957,8 +3957,8 @@ var init_lib = __esm({
3957
3957
  };
3958
3958
  overrideErrorMap = errorMap;
3959
3959
  makeIssue = (params) => {
3960
- const { data, path: path2, errorMaps, issueData } = params;
3961
- const fullPath = [...path2, ...issueData.path || []];
3960
+ const { data, path: path3, errorMaps, issueData } = params;
3961
+ const fullPath = [...path3, ...issueData.path || []];
3962
3962
  const fullIssue = {
3963
3963
  ...issueData,
3964
3964
  path: fullPath
@@ -4049,11 +4049,11 @@ var init_lib = __esm({
4049
4049
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
4050
4050
  })(errorUtil || (errorUtil = {}));
4051
4051
  ParseInputLazyPath = class {
4052
- constructor(parent, value, path2, key) {
4052
+ constructor(parent, value, path3, key) {
4053
4053
  this._cachedPath = [];
4054
4054
  this.parent = parent;
4055
4055
  this.data = value;
4056
- this._path = path2;
4056
+ this._path = path3;
4057
4057
  this._key = key;
4058
4058
  }
4059
4059
  get path() {
@@ -20229,12 +20229,12 @@ var require_utils3 = __commonJS({
20229
20229
  var require_sasl = __commonJS({
20230
20230
  "../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/sasl.js"(exports, module) {
20231
20231
  "use strict";
20232
- var crypto4 = require_utils3();
20232
+ var crypto5 = require_utils3();
20233
20233
  function startSession(mechanisms) {
20234
20234
  if (mechanisms.indexOf("SCRAM-SHA-256") === -1) {
20235
20235
  throw new Error("SASL: Only mechanism SCRAM-SHA-256 is currently supported");
20236
20236
  }
20237
- const clientNonce = crypto4.randomBytes(18).toString("base64");
20237
+ const clientNonce = crypto5.randomBytes(18).toString("base64");
20238
20238
  return {
20239
20239
  mechanism: "SCRAM-SHA-256",
20240
20240
  clientNonce,
@@ -20266,13 +20266,13 @@ var require_sasl = __commonJS({
20266
20266
  var clientFinalMessageWithoutProof = "c=biws,r=" + sv.nonce;
20267
20267
  var authMessage = clientFirstMessageBare + "," + serverFirstMessage + "," + clientFinalMessageWithoutProof;
20268
20268
  var saltBytes = Buffer.from(sv.salt, "base64");
20269
- var saltedPassword = await crypto4.deriveKey(password, saltBytes, sv.iteration);
20270
- var clientKey = await crypto4.hmacSha256(saltedPassword, "Client Key");
20271
- var storedKey = await crypto4.sha256(clientKey);
20272
- var clientSignature = await crypto4.hmacSha256(storedKey, authMessage);
20269
+ var saltedPassword = await crypto5.deriveKey(password, saltBytes, sv.iteration);
20270
+ var clientKey = await crypto5.hmacSha256(saltedPassword, "Client Key");
20271
+ var storedKey = await crypto5.sha256(clientKey);
20272
+ var clientSignature = await crypto5.hmacSha256(storedKey, authMessage);
20273
20273
  var clientProof = xorBuffers(Buffer.from(clientKey), Buffer.from(clientSignature)).toString("base64");
20274
- var serverKey = await crypto4.hmacSha256(saltedPassword, "Server Key");
20275
- var serverSignatureBytes = await crypto4.hmacSha256(serverKey, authMessage);
20274
+ var serverKey = await crypto5.hmacSha256(saltedPassword, "Server Key");
20275
+ var serverSignatureBytes = await crypto5.hmacSha256(serverKey, authMessage);
20276
20276
  session.message = "SASLResponse";
20277
20277
  session.serverSignature = Buffer.from(serverSignatureBytes).toString("base64");
20278
20278
  session.response = clientFinalMessageWithoutProof + ",p=" + clientProof;
@@ -20462,15 +20462,15 @@ var require_pg_connection_string = __commonJS({
20462
20462
  if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
20463
20463
  config.ssl = {};
20464
20464
  }
20465
- const fs4 = config.sslcert || config.sslkey || config.sslrootcert ? __require("fs") : null;
20465
+ const fs5 = config.sslcert || config.sslkey || config.sslrootcert ? __require("fs") : null;
20466
20466
  if (config.sslcert) {
20467
- config.ssl.cert = fs4.readFileSync(config.sslcert).toString();
20467
+ config.ssl.cert = fs5.readFileSync(config.sslcert).toString();
20468
20468
  }
20469
20469
  if (config.sslkey) {
20470
- config.ssl.key = fs4.readFileSync(config.sslkey).toString();
20470
+ config.ssl.key = fs5.readFileSync(config.sslkey).toString();
20471
20471
  }
20472
20472
  if (config.sslrootcert) {
20473
- config.ssl.ca = fs4.readFileSync(config.sslrootcert).toString();
20473
+ config.ssl.ca = fs5.readFileSync(config.sslrootcert).toString();
20474
20474
  }
20475
20475
  switch (config.sslmode) {
20476
20476
  case "disable": {
@@ -22072,7 +22072,7 @@ var require_split2 = __commonJS({
22072
22072
  var require_helper = __commonJS({
22073
22073
  "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js"(exports, module) {
22074
22074
  "use strict";
22075
- var path2 = __require("path");
22075
+ var path3 = __require("path");
22076
22076
  var Stream5 = __require("stream").Stream;
22077
22077
  var split = require_split2();
22078
22078
  var util2 = __require("util");
@@ -22111,7 +22111,7 @@ var require_helper = __commonJS({
22111
22111
  };
22112
22112
  module.exports.getFileName = function(rawEnv) {
22113
22113
  var env3 = rawEnv || process.env;
22114
- var file = env3.PGPASSFILE || (isWin ? path2.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path2.join(env3.HOME || "./", ".pgpass"));
22114
+ var file = env3.PGPASSFILE || (isWin ? path3.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env3.HOME || "./", ".pgpass"));
22115
22115
  return file;
22116
22116
  };
22117
22117
  module.exports.usePgPass = function(stats, fname) {
@@ -22243,16 +22243,16 @@ var require_helper = __commonJS({
22243
22243
  var require_lib2 = __commonJS({
22244
22244
  "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js"(exports, module) {
22245
22245
  "use strict";
22246
- var path2 = __require("path");
22247
- var fs4 = __require("fs");
22246
+ var path3 = __require("path");
22247
+ var fs5 = __require("fs");
22248
22248
  var helper = require_helper();
22249
22249
  module.exports = function(connInfo, cb) {
22250
22250
  var file = helper.getFileName();
22251
- fs4.stat(file, function(err, stat) {
22251
+ fs5.stat(file, function(err, stat) {
22252
22252
  if (err || !helper.usePgPass(stat, file)) {
22253
22253
  return cb(void 0);
22254
22254
  }
22255
- var st = fs4.createReadStream(file);
22255
+ var st = fs5.createReadStream(file);
22256
22256
  helper.getPassword(connInfo, st, cb);
22257
22257
  });
22258
22258
  };
@@ -22272,7 +22272,7 @@ var require_client = __commonJS({
22272
22272
  var Query2 = require_query();
22273
22273
  var defaults2 = require_defaults();
22274
22274
  var Connection4 = require_connection();
22275
- var crypto4 = require_utils3();
22275
+ var crypto5 = require_utils3();
22276
22276
  var Client4 = class extends EventEmitter {
22277
22277
  constructor(config) {
22278
22278
  super();
@@ -22464,7 +22464,7 @@ var require_client = __commonJS({
22464
22464
  _handleAuthMD5Password(msg) {
22465
22465
  this._checkPgPass(async () => {
22466
22466
  try {
22467
- const hashedPassword = await crypto4.postgresMd5PasswordHash(this.user, this.password, msg.salt);
22467
+ const hashedPassword = await crypto5.postgresMd5PasswordHash(this.user, this.password, msg.salt);
22468
22468
  this.connection.password(hashedPassword);
22469
22469
  } catch (e5) {
22470
22470
  this.emit("error", e5);
@@ -23632,7 +23632,7 @@ var init_query_promise = __esm({
23632
23632
  function mapResultRow(columns, row, joinsNotNullableMap) {
23633
23633
  const nullifyMap = {};
23634
23634
  const result = columns.reduce(
23635
- (result2, { path: path2, field }, columnIndex) => {
23635
+ (result2, { path: path3, field }, columnIndex) => {
23636
23636
  let decoder2;
23637
23637
  if (is(field, Column2)) {
23638
23638
  decoder2 = field;
@@ -23642,8 +23642,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) {
23642
23642
  decoder2 = field.sql.decoder;
23643
23643
  }
23644
23644
  let node = result2;
23645
- for (const [pathChunkIndex, pathChunk] of path2.entries()) {
23646
- if (pathChunkIndex < path2.length - 1) {
23645
+ for (const [pathChunkIndex, pathChunk] of path3.entries()) {
23646
+ if (pathChunkIndex < path3.length - 1) {
23647
23647
  if (!(pathChunk in node)) {
23648
23648
  node[pathChunk] = {};
23649
23649
  }
@@ -23651,8 +23651,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) {
23651
23651
  } else {
23652
23652
  const rawValue = row[columnIndex];
23653
23653
  const value = node[pathChunk] = rawValue === null ? null : decoder2.mapFromDriverValue(rawValue);
23654
- if (joinsNotNullableMap && is(field, Column2) && path2.length === 2) {
23655
- const objectName = path2[0];
23654
+ if (joinsNotNullableMap && is(field, Column2) && path3.length === 2) {
23655
+ const objectName = path3[0];
23656
23656
  if (!(objectName in nullifyMap)) {
23657
23657
  nullifyMap[objectName] = value === null ? getTableName(field.table) : false;
23658
23658
  } else if (typeof nullifyMap[objectName] === "string" && nullifyMap[objectName] !== getTableName(field.table)) {
@@ -30397,18 +30397,18 @@ var init_getAttrPathList = __esm({
30397
30397
  "../node_modules/.pnpm/@smithy+util-endpoints@2.0.0/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js"() {
30398
30398
  "use strict";
30399
30399
  init_types2();
30400
- getAttrPathList = (path2) => {
30401
- const parts = path2.split(".");
30400
+ getAttrPathList = (path3) => {
30401
+ const parts = path3.split(".");
30402
30402
  const pathList = [];
30403
30403
  for (const part of parts) {
30404
30404
  const squareBracketIndex = part.indexOf("[");
30405
30405
  if (squareBracketIndex !== -1) {
30406
30406
  if (part.indexOf("]") !== part.length - 1) {
30407
- throw new EndpointError(`Path: '${path2}' does not end with ']'`);
30407
+ throw new EndpointError(`Path: '${path3}' does not end with ']'`);
30408
30408
  }
30409
30409
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
30410
30410
  if (Number.isNaN(parseInt(arrayIndex))) {
30411
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path2}'`);
30411
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path3}'`);
30412
30412
  }
30413
30413
  if (squareBracketIndex !== 0) {
30414
30414
  pathList.push(part.slice(0, squareBracketIndex));
@@ -30430,9 +30430,9 @@ var init_getAttr = __esm({
30430
30430
  "use strict";
30431
30431
  init_types2();
30432
30432
  init_getAttrPathList();
30433
- getAttr = (value, path2) => getAttrPathList(path2).reduce((acc, index4) => {
30433
+ getAttr = (value, path3) => getAttrPathList(path3).reduce((acc, index4) => {
30434
30434
  if (typeof acc !== "object") {
30435
- throw new EndpointError(`Index '${index4}' in '${path2}' not found in '${JSON.stringify(value)}'`);
30435
+ throw new EndpointError(`Index '${index4}' in '${path3}' not found in '${JSON.stringify(value)}'`);
30436
30436
  } else if (Array.isArray(acc)) {
30437
30437
  return acc[parseInt(index4)];
30438
30438
  }
@@ -30477,8 +30477,8 @@ var init_parseURL = __esm({
30477
30477
  return value;
30478
30478
  }
30479
30479
  if (typeof value === "object" && "hostname" in value) {
30480
- const { hostname: hostname2, port, protocol: protocol3 = "", path: path2 = "", query = {} } = value;
30481
- const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${path2}`);
30480
+ const { hostname: hostname2, port, protocol: protocol3 = "", path: path3 = "", query = {} } = value;
30481
+ const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${path3}`);
30482
30482
  url.search = Object.entries(query).map(([k6, v8]) => `${k6}=${v8}`).join("&");
30483
30483
  return url;
30484
30484
  }
@@ -31934,8 +31934,8 @@ var init_createConfigValueProvider = __esm({
31934
31934
  return endpoint.url.href;
31935
31935
  }
31936
31936
  if ("hostname" in endpoint) {
31937
- const { protocol: protocol2, hostname, port, path: path2 } = endpoint;
31938
- return `${protocol2}//${hostname}${port ? ":" + port : ""}${path2}`;
31937
+ const { protocol: protocol2, hostname, port, path: path3 } = endpoint;
31938
+ return `${protocol2}//${hostname}${port ? ":" + port : ""}${path3}`;
31939
31939
  }
31940
31940
  }
31941
31941
  return endpoint;
@@ -32307,11 +32307,11 @@ var init_slurpFile = __esm({
32307
32307
  "use strict";
32308
32308
  ({ readFile: readFile2 } = fsPromises2);
32309
32309
  filePromisesHash = {};
32310
- slurpFile = (path2, options) => {
32311
- if (!filePromisesHash[path2] || options?.ignoreCache) {
32312
- filePromisesHash[path2] = readFile2(path2, "utf8");
32310
+ slurpFile = (path3, options) => {
32311
+ if (!filePromisesHash[path3] || options?.ignoreCache) {
32312
+ filePromisesHash[path3] = readFile2(path3, "utf8");
32313
32313
  }
32314
- return filePromisesHash[path2];
32314
+ return filePromisesHash[path3];
32315
32315
  };
32316
32316
  }
32317
32317
  });
@@ -34375,18 +34375,18 @@ var init_node_http_handler = __esm({
34375
34375
  const password = request2.password ?? "";
34376
34376
  auth = `${username}:${password}`;
34377
34377
  }
34378
- let path2 = request2.path;
34378
+ let path3 = request2.path;
34379
34379
  if (queryString) {
34380
- path2 += `?${queryString}`;
34380
+ path3 += `?${queryString}`;
34381
34381
  }
34382
34382
  if (request2.fragment) {
34383
- path2 += `#${request2.fragment}`;
34383
+ path3 += `#${request2.fragment}`;
34384
34384
  }
34385
34385
  const nodeHttpsOptions = {
34386
34386
  headers: request2.headers,
34387
34387
  host: request2.hostname,
34388
34388
  method: request2.method,
34389
- path: path2,
34389
+ path: path3,
34390
34390
  port: request2.port,
34391
34391
  agent,
34392
34392
  auth
@@ -36387,8 +36387,8 @@ var init_requestBuilder = __esm({
36387
36387
  return this;
36388
36388
  }
36389
36389
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
36390
- this.resolvePathStack.push((path2) => {
36391
- this.path = resolvedPath(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
36390
+ this.resolvePathStack.push((path3) => {
36391
+ this.path = resolvedPath(path3, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
36392
36392
  });
36393
36393
  return this;
36394
36394
  }
@@ -36443,9 +36443,9 @@ var init_createPaginator = __esm({
36443
36443
  makePagedClientRequest = async (CommandCtor, client, input, ...args) => {
36444
36444
  return await client.send(new CommandCtor(input), ...args);
36445
36445
  };
36446
- get = (fromObject, path2) => {
36446
+ get = (fromObject, path3) => {
36447
36447
  let cursor = fromObject;
36448
- const pathComponents = path2.split(".");
36448
+ const pathComponents = path3.split(".");
36449
36449
  for (const step of pathComponents) {
36450
36450
  if (!cursor || typeof cursor !== "object") {
36451
36451
  return void 0;
@@ -37602,10 +37602,10 @@ ${longDate}
37602
37602
  ${credentialScope}
37603
37603
  ${toHex(hashedRequest)}`;
37604
37604
  }
37605
- getCanonicalPath({ path: path2 }) {
37605
+ getCanonicalPath({ path: path3 }) {
37606
37606
  if (this.uriEscapePath) {
37607
37607
  const normalizedPathSegments = [];
37608
- for (const pathSegment of path2.split("/")) {
37608
+ for (const pathSegment of path3.split("/")) {
37609
37609
  if (pathSegment?.length === 0)
37610
37610
  continue;
37611
37611
  if (pathSegment === ".")
@@ -37616,11 +37616,11 @@ ${toHex(hashedRequest)}`;
37616
37616
  normalizedPathSegments.push(pathSegment);
37617
37617
  }
37618
37618
  }
37619
- const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`;
37619
+ const normalizedPath = `${path3?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path3?.endsWith("/") ? "/" : ""}`;
37620
37620
  const doubleEncoded = escapeUri(normalizedPath);
37621
37621
  return doubleEncoded.replace(/%2F/g, "/");
37622
37622
  }
37623
- return path2;
37623
+ return path3;
37624
37624
  }
37625
37625
  async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
37626
37626
  const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
@@ -45152,14 +45152,14 @@ var init_Aws_query = __esm({
45152
45152
  cfId: output.headers["x-amz-cf-id"]
45153
45153
  });
45154
45154
  throwDefaultError4 = withBaseException(STSServiceException);
45155
- buildHttpRpcRequest = async (context, headers, path2, resolvedHostname, body) => {
45155
+ buildHttpRpcRequest = async (context, headers, path3, resolvedHostname, body) => {
45156
45156
  const { hostname, protocol: protocol2 = "https", port, path: basePath } = await context.endpoint();
45157
45157
  const contents = {
45158
45158
  protocol: protocol2,
45159
45159
  hostname,
45160
45160
  port,
45161
45161
  method: "POST",
45162
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path2 : basePath + path2,
45162
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path3 : basePath + path3,
45163
45163
  headers
45164
45164
  };
45165
45165
  if (resolvedHostname !== void 0) {
@@ -47918,20 +47918,20 @@ var require_file_uri_to_path = __commonJS({
47918
47918
  var rest = decodeURI(uri.substring(7));
47919
47919
  var firstSlash = rest.indexOf("/");
47920
47920
  var host = rest.substring(0, firstSlash);
47921
- var path2 = rest.substring(firstSlash + 1);
47921
+ var path3 = rest.substring(firstSlash + 1);
47922
47922
  if ("localhost" == host) host = "";
47923
47923
  if (host) {
47924
47924
  host = sep3 + sep3 + host;
47925
47925
  }
47926
- path2 = path2.replace(/^(.+)\|/, "$1:");
47926
+ path3 = path3.replace(/^(.+)\|/, "$1:");
47927
47927
  if (sep3 == "\\") {
47928
- path2 = path2.replace(/\//g, "\\");
47928
+ path3 = path3.replace(/\//g, "\\");
47929
47929
  }
47930
- if (/^.+\:/.test(path2)) {
47930
+ if (/^.+\:/.test(path3)) {
47931
47931
  } else {
47932
- path2 = sep3 + path2;
47932
+ path3 = sep3 + path3;
47933
47933
  }
47934
- return host + path2;
47934
+ return host + path3;
47935
47935
  }
47936
47936
  }
47937
47937
  });
@@ -47940,19 +47940,19 @@ var require_file_uri_to_path = __commonJS({
47940
47940
  var require_bindings = __commonJS({
47941
47941
  "../node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js"(exports, module) {
47942
47942
  "use strict";
47943
- var fs4 = __require("fs");
47944
- var path2 = __require("path");
47943
+ var fs5 = __require("fs");
47944
+ var path3 = __require("path");
47945
47945
  var fileURLToPath = require_file_uri_to_path();
47946
- var join4 = path2.join;
47947
- var dirname = path2.dirname;
47948
- var exists2 = fs4.accessSync && function(path3) {
47946
+ var join4 = path3.join;
47947
+ var dirname = path3.dirname;
47948
+ var exists2 = fs5.accessSync && function(path4) {
47949
47949
  try {
47950
- fs4.accessSync(path3);
47950
+ fs5.accessSync(path4);
47951
47951
  } catch (e5) {
47952
47952
  return false;
47953
47953
  }
47954
47954
  return true;
47955
- } || fs4.existsSync || path2.existsSync;
47955
+ } || fs5.existsSync || path3.existsSync;
47956
47956
  var defaults2 = {
47957
47957
  arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
47958
47958
  compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
@@ -47997,7 +47997,7 @@ var require_bindings = __commonJS({
47997
47997
  if (!opts.module_root) {
47998
47998
  opts.module_root = exports.getRoot(exports.getFileName());
47999
47999
  }
48000
- if (path2.extname(opts.bindings) != ".node") {
48000
+ if (path3.extname(opts.bindings) != ".node") {
48001
48001
  opts.bindings += ".node";
48002
48002
  }
48003
48003
  var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
@@ -48232,11 +48232,11 @@ var require_pragma = __commonJS({
48232
48232
  var require_backup = __commonJS({
48233
48233
  "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/methods/backup.js"(exports, module) {
48234
48234
  "use strict";
48235
- var fs4 = __require("fs");
48236
- var path2 = __require("path");
48235
+ var fs5 = __require("fs");
48236
+ var path3 = __require("path");
48237
48237
  var { promisify: promisify2 } = __require("util");
48238
48238
  var { cppdb } = require_util3();
48239
- var fsAccess = promisify2(fs4.access);
48239
+ var fsAccess = promisify2(fs5.access);
48240
48240
  module.exports = async function backup(filename, options) {
48241
48241
  if (options == null) options = {};
48242
48242
  if (typeof filename !== "string") throw new TypeError("Expected first argument to be a string");
@@ -48249,7 +48249,7 @@ var require_backup = __commonJS({
48249
48249
  if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
48250
48250
  if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
48251
48251
  if (handler != null && typeof handler !== "function") throw new TypeError('Expected the "progress" option to be a function');
48252
- await fsAccess(path2.dirname(filename)).catch(() => {
48252
+ await fsAccess(path3.dirname(filename)).catch(() => {
48253
48253
  throw new TypeError("Cannot save backup because the directory does not exist");
48254
48254
  });
48255
48255
  const isNewFile = await fsAccess(filename).then(() => false, () => true);
@@ -48554,8 +48554,8 @@ var require_inspect = __commonJS({
48554
48554
  var require_database = __commonJS({
48555
48555
  "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/database.js"(exports, module) {
48556
48556
  "use strict";
48557
- var fs4 = __require("fs");
48558
- var path2 = __require("path");
48557
+ var fs5 = __require("fs");
48558
+ var path3 = __require("path");
48559
48559
  var util2 = require_util3();
48560
48560
  var SqliteError = require_sqlite_error();
48561
48561
  var DEFAULT_ADDON;
@@ -48591,7 +48591,7 @@ var require_database = __commonJS({
48591
48591
  addon = DEFAULT_ADDON || (DEFAULT_ADDON = require_bindings()("better_sqlite3.node"));
48592
48592
  } else if (typeof nativeBinding === "string") {
48593
48593
  const requireFunc = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : __require;
48594
- addon = requireFunc(path2.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
48594
+ addon = requireFunc(path3.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
48595
48595
  } else {
48596
48596
  addon = nativeBinding;
48597
48597
  }
@@ -48599,7 +48599,7 @@ var require_database = __commonJS({
48599
48599
  addon.setErrorConstructor(SqliteError);
48600
48600
  addon.isInitialized = true;
48601
48601
  }
48602
- if (!anonymous && !fs4.existsSync(path2.dirname(filename))) {
48602
+ if (!anonymous && !fs5.existsSync(path3.dirname(filename))) {
48603
48603
  throw new TypeError("Cannot open database because the directory does not exist");
48604
48604
  }
48605
48605
  Object.defineProperties(this, {
@@ -52490,10 +52490,10 @@ function parseUri(text) {
52490
52490
  const groups = match2.groups;
52491
52491
  const scheme = groups["scheme"];
52492
52492
  const authority = groups["authority"] !== void 0 ? parseAuthority(groups["authority"]) : void 0;
52493
- const path2 = percentDecode(groups["path"]);
52493
+ const path3 = percentDecode(groups["path"]);
52494
52494
  const query = groups["query"] !== void 0 ? parseQuery(groups["query"]) : void 0;
52495
52495
  const fragment2 = groups["fragment"] !== void 0 ? percentDecode(groups["fragment"]) : void 0;
52496
- return { scheme, authority, path: path2, query, fragment: fragment2 };
52496
+ return { scheme, authority, path: path3, query, fragment: fragment2 };
52497
52497
  }
52498
52498
  function parseAuthority(text) {
52499
52499
  const match2 = AUTHORITY_RE.exec(text);
@@ -52543,7 +52543,7 @@ function percentDecode(text) {
52543
52543
  throw e5;
52544
52544
  }
52545
52545
  }
52546
- function encodeBaseUrl(scheme, authority, path2) {
52546
+ function encodeBaseUrl(scheme, authority, path3) {
52547
52547
  if (authority === void 0) {
52548
52548
  throw new LibsqlError(`URL with scheme ${JSON.stringify(scheme + ":")} requires authority (the "//" part)`, "URL_INVALID");
52549
52549
  }
@@ -52552,7 +52552,7 @@ function encodeBaseUrl(scheme, authority, path2) {
52552
52552
  const portText = encodePort(authority.port);
52553
52553
  const userinfoText = encodeUserinfo(authority.userinfo);
52554
52554
  const authorityText = `//${userinfoText}${hostText}${portText}`;
52555
- let pathText = path2.split("/").map(encodeURIComponent).join("/");
52555
+ let pathText = path3.split("/").map(encodeURIComponent).join("/");
52556
52556
  if (pathText !== "" && !pathText.startsWith("/")) {
52557
52557
  pathText = "/" + pathText;
52558
52558
  }
@@ -52929,8 +52929,8 @@ var require_dist2 = __commonJS({
52929
52929
  };
52930
52930
  Object.defineProperty(exports, "__esModule", { value: true });
52931
52931
  exports.load = exports.currentTarget = void 0;
52932
- var path2 = __importStar2(__require("path"));
52933
- var fs4 = __importStar2(__require("fs"));
52932
+ var path3 = __importStar2(__require("path"));
52933
+ var fs5 = __importStar2(__require("fs"));
52934
52934
  function currentTarget() {
52935
52935
  let os3 = null;
52936
52936
  switch (process.platform) {
@@ -52995,8 +52995,8 @@ var require_dist2 = __commonJS({
52995
52995
  return typeof header === "object" && !!header && "glibcVersionRuntime" in header;
52996
52996
  }
52997
52997
  function load(dirname) {
52998
- const m7 = path2.join(dirname, "index.node");
52999
- return fs4.existsSync(m7) ? __require(m7) : null;
52998
+ const m7 = path3.join(dirname, "index.node");
52999
+ return fs5.existsSync(m7) ? __require(m7) : null;
53000
53000
  }
53001
53001
  exports.load = load;
53002
53002
  }
@@ -53022,11 +53022,11 @@ var require_process = __commonJS({
53022
53022
  var require_filesystem = __commonJS({
53023
53023
  "../node_modules/.pnpm/detect-libc@2.0.2/node_modules/detect-libc/lib/filesystem.js"(exports, module) {
53024
53024
  "use strict";
53025
- var fs4 = __require("fs");
53025
+ var fs5 = __require("fs");
53026
53026
  var LDD_PATH = "/usr/bin/ldd";
53027
- var readFileSync2 = (path2) => fs4.readFileSync(path2, "utf-8");
53028
- var readFile3 = (path2) => new Promise((resolve, reject) => {
53029
- fs4.readFile(path2, "utf-8", (err, data) => {
53027
+ var readFileSync2 = (path3) => fs5.readFileSync(path3, "utf-8");
53028
+ var readFile3 = (path3) => new Promise((resolve, reject) => {
53029
+ fs5.readFile(path3, "utf-8", (err, data) => {
53030
53030
  if (err) {
53031
53031
  reject(err);
53032
53032
  } else {
@@ -53335,7 +53335,7 @@ var require_libsql = __commonJS({
53335
53335
  * @constructor
53336
53336
  * @param {string} path - Path to the database file.
53337
53337
  */
53338
- constructor(path2, opts) {
53338
+ constructor(path3, opts) {
53339
53339
  const encryptionCipher = opts?.encryptionCipher ?? "aes256cbc";
53340
53340
  if (opts && opts.syncUrl) {
53341
53341
  var authToken = "";
@@ -53347,13 +53347,13 @@ var require_libsql = __commonJS({
53347
53347
  }
53348
53348
  const encryptionKey = opts?.encryptionKey ?? "";
53349
53349
  const syncPeriod = opts?.syncPeriod ?? 0;
53350
- this.db = databaseOpenWithRpcSync(path2, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod);
53350
+ this.db = databaseOpenWithRpcSync(path3, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod);
53351
53351
  } else {
53352
53352
  const authToken2 = opts?.authToken ?? "";
53353
53353
  const encryptionKey = opts?.encryptionKey ?? "";
53354
- this.db = databaseOpen(path2, authToken2, encryptionCipher, encryptionKey);
53354
+ this.db = databaseOpen(path3, authToken2, encryptionCipher, encryptionKey);
53355
53355
  }
53356
- this.memory = path2 === ":memory:";
53356
+ this.memory = path3 === ":memory:";
53357
53357
  this.readonly = false;
53358
53358
  this.name = "";
53359
53359
  this.open = true;
@@ -53628,16 +53628,16 @@ function _createClient(config) {
53628
53628
  throw new LibsqlError("File URL cannot have username and password", "URL_INVALID");
53629
53629
  }
53630
53630
  }
53631
- const path2 = config.path;
53631
+ const path3 = config.path;
53632
53632
  const options = {
53633
53633
  authToken: config.authToken,
53634
53634
  encryptionKey: config.encryptionKey,
53635
53635
  syncUrl: config.syncUrl,
53636
53636
  syncInterval: config.syncInterval
53637
53637
  };
53638
- const db2 = new import_libsql.default(path2, options);
53638
+ const db2 = new import_libsql.default(path3, options);
53639
53639
  executeStmt(db2, "SELECT 1 AS checkThatTheDatabaseCanBeOpened", config.intMode);
53640
- return new Sqlite3Client(path2, options, db2, config.intMode);
53640
+ return new Sqlite3Client(path3, options, db2, config.intMode);
53641
53641
  }
53642
53642
  function executeStmt(db2, stmt, intMode) {
53643
53643
  let sql3;
@@ -53771,7 +53771,7 @@ var init_sqlite3 = __esm({
53771
53771
  init_api();
53772
53772
  Sqlite3Client = class {
53773
53773
  /** @private */
53774
- constructor(path2, options, db2, intMode) {
53774
+ constructor(path3, options, db2, intMode) {
53775
53775
  __privateAdd(this, _Sqlite3Client_instances);
53776
53776
  __privateAdd(this, _path);
53777
53777
  __privateAdd(this, _options);
@@ -53779,7 +53779,7 @@ var init_sqlite3 = __esm({
53779
53779
  __privateAdd(this, _intMode);
53780
53780
  __publicField(this, "closed");
53781
53781
  __publicField(this, "protocol");
53782
- __privateSet(this, _path, path2);
53782
+ __privateSet(this, _path, path3);
53783
53783
  __privateSet(this, _options, options);
53784
53784
  __privateSet(this, _db, db2);
53785
53785
  __privateSet(this, _intMode, intMode);
@@ -54031,8 +54031,8 @@ var require_constants = __commonJS({
54031
54031
  var require_node_gyp_build = __commonJS({
54032
54032
  "../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
54033
54033
  "use strict";
54034
- var fs4 = __require("fs");
54035
- var path2 = __require("path");
54034
+ var fs5 = __require("fs");
54035
+ var path3 = __require("path");
54036
54036
  var os3 = __require("os");
54037
54037
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
54038
54038
  var vars = process.config && process.config.variables || {};
@@ -54049,21 +54049,21 @@ var require_node_gyp_build = __commonJS({
54049
54049
  return runtimeRequire(load.resolve(dir));
54050
54050
  }
54051
54051
  load.resolve = load.path = function(dir) {
54052
- dir = path2.resolve(dir || ".");
54052
+ dir = path3.resolve(dir || ".");
54053
54053
  try {
54054
- var name2 = runtimeRequire(path2.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
54054
+ var name2 = runtimeRequire(path3.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
54055
54055
  if (process.env[name2 + "_PREBUILD"]) dir = process.env[name2 + "_PREBUILD"];
54056
54056
  } catch (err) {
54057
54057
  }
54058
54058
  if (!prebuildsOnly) {
54059
- var release2 = getFirst(path2.join(dir, "build/Release"), matchBuild);
54059
+ var release2 = getFirst(path3.join(dir, "build/Release"), matchBuild);
54060
54060
  if (release2) return release2;
54061
- var debug = getFirst(path2.join(dir, "build/Debug"), matchBuild);
54061
+ var debug = getFirst(path3.join(dir, "build/Debug"), matchBuild);
54062
54062
  if (debug) return debug;
54063
54063
  }
54064
54064
  var prebuild = resolve(dir);
54065
54065
  if (prebuild) return prebuild;
54066
- var nearby = resolve(path2.dirname(process.execPath));
54066
+ var nearby = resolve(path3.dirname(process.execPath));
54067
54067
  if (nearby) return nearby;
54068
54068
  var target = [
54069
54069
  "platform=" + platform2,
@@ -54080,26 +54080,26 @@ var require_node_gyp_build = __commonJS({
54080
54080
  ].filter(Boolean).join(" ");
54081
54081
  throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
54082
54082
  function resolve(dir2) {
54083
- var tuples2 = readdirSync(path2.join(dir2, "prebuilds")).map(parseTuple);
54083
+ var tuples2 = readdirSync(path3.join(dir2, "prebuilds")).map(parseTuple);
54084
54084
  var tuple = tuples2.filter(matchTuple(platform2, arch)).sort(compareTuples)[0];
54085
54085
  if (!tuple) return;
54086
- var prebuilds = path2.join(dir2, "prebuilds", tuple.name);
54086
+ var prebuilds = path3.join(dir2, "prebuilds", tuple.name);
54087
54087
  var parsed = readdirSync(prebuilds).map(parseTags);
54088
54088
  var candidates = parsed.filter(matchTags(runtime, abi));
54089
54089
  var winner = candidates.sort(compareTags(runtime))[0];
54090
- if (winner) return path2.join(prebuilds, winner.file);
54090
+ if (winner) return path3.join(prebuilds, winner.file);
54091
54091
  }
54092
54092
  };
54093
54093
  function readdirSync(dir) {
54094
54094
  try {
54095
- return fs4.readdirSync(dir);
54095
+ return fs5.readdirSync(dir);
54096
54096
  } catch (err) {
54097
54097
  return [];
54098
54098
  }
54099
54099
  }
54100
54100
  function getFirst(dir, filter2) {
54101
54101
  var files = readdirSync(dir).filter(filter2);
54102
- return files[0] && path2.join(dir, files[0]);
54102
+ return files[0] && path3.join(dir, files[0]);
54103
54103
  }
54104
54104
  function matchBuild(name2) {
54105
54105
  return /\.node$/.test(name2);
@@ -54186,7 +54186,7 @@ var require_node_gyp_build = __commonJS({
54186
54186
  return typeof window !== "undefined" && window.process && window.process.type === "renderer";
54187
54187
  }
54188
54188
  function isAlpine(platform3) {
54189
- return platform3 === "linux" && fs4.existsSync("/etc/alpine-release");
54189
+ return platform3 === "linux" && fs5.existsSync("/etc/alpine-release");
54190
54190
  }
54191
54191
  load.parseTags = parseTags;
54192
54192
  load.matchTags = matchTags;
@@ -61141,14 +61141,14 @@ var require_url_state_machine = __commonJS({
61141
61141
  return url.replace(/\u0009|\u000A|\u000D/g, "");
61142
61142
  }
61143
61143
  function shortenPath(url) {
61144
- const path2 = url.path;
61145
- if (path2.length === 0) {
61144
+ const path3 = url.path;
61145
+ if (path3.length === 0) {
61146
61146
  return;
61147
61147
  }
61148
- if (url.scheme === "file" && path2.length === 1 && isNormalizedWindowsDriveLetter(path2[0])) {
61148
+ if (url.scheme === "file" && path3.length === 1 && isNormalizedWindowsDriveLetter(path3[0])) {
61149
61149
  return;
61150
61150
  }
61151
- path2.pop();
61151
+ path3.pop();
61152
61152
  }
61153
61153
  function includesCredentials(url) {
61154
61154
  return url.username !== "" || url.password !== "";
@@ -76889,9 +76889,9 @@ var require_client4 = __commonJS({
76889
76889
  var require_auth_41 = __commonJS({
76890
76890
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_41.js"(exports) {
76891
76891
  "use strict";
76892
- var crypto4 = __require("crypto");
76892
+ var crypto5 = __require("crypto");
76893
76893
  function sha1(msg, msg1, msg2) {
76894
- const hash = crypto4.createHash("sha1");
76894
+ const hash = crypto5.createHash("sha1");
76895
76895
  hash.update(msg);
76896
76896
  if (msg1) {
76897
76897
  hash.update(msg1);
@@ -78491,7 +78491,7 @@ var require_sha256_password = __commonJS({
78491
78491
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_plugins/sha256_password.js"(exports, module) {
78492
78492
  "use strict";
78493
78493
  var PLUGIN_NAME = "sha256_password";
78494
- var crypto4 = __require("crypto");
78494
+ var crypto5 = __require("crypto");
78495
78495
  var { xorRotating } = require_auth_41();
78496
78496
  var REQUEST_SERVER_KEY_PACKET = Buffer.from([1]);
78497
78497
  var STATE_INITIAL = 0;
@@ -78502,7 +78502,7 @@ var require_sha256_password = __commonJS({
78502
78502
  Buffer.from(`${password}\0`, "utf8"),
78503
78503
  scramble
78504
78504
  );
78505
- return crypto4.publicEncrypt(key, stage1);
78505
+ return crypto5.publicEncrypt(key, stage1);
78506
78506
  }
78507
78507
  module.exports = (pluginOptions = {}) => ({ connection: connection2 }) => {
78508
78508
  let state = 0;
@@ -78545,7 +78545,7 @@ var require_caching_sha2_password = __commonJS({
78545
78545
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js"(exports, module) {
78546
78546
  "use strict";
78547
78547
  var PLUGIN_NAME = "caching_sha2_password";
78548
- var crypto4 = __require("crypto");
78548
+ var crypto5 = __require("crypto");
78549
78549
  var { xor: xor2, xorRotating } = require_auth_41();
78550
78550
  var REQUEST_SERVER_KEY_PACKET = Buffer.from([2]);
78551
78551
  var FAST_AUTH_SUCCESS_PACKET = Buffer.from([3]);
@@ -78555,7 +78555,7 @@ var require_caching_sha2_password = __commonJS({
78555
78555
  var STATE_WAIT_SERVER_KEY = 2;
78556
78556
  var STATE_FINAL = -1;
78557
78557
  function sha2562(msg) {
78558
- const hash = crypto4.createHash("sha256");
78558
+ const hash = crypto5.createHash("sha256");
78559
78559
  hash.update(msg);
78560
78560
  return hash.digest();
78561
78561
  }
@@ -78573,7 +78573,7 @@ var require_caching_sha2_password = __commonJS({
78573
78573
  Buffer.from(`${password}\0`, "utf8"),
78574
78574
  scramble
78575
78575
  );
78576
- return crypto4.publicEncrypt(key, stage1);
78576
+ return crypto5.publicEncrypt(key, stage1);
78577
78577
  }
78578
78578
  module.exports = (pluginOptions = {}) => ({ connection: connection2 }) => {
78579
78579
  let state = 0;
@@ -80199,12 +80199,12 @@ var require_query4 = __commonJS({
80199
80199
  this._fields.push([]);
80200
80200
  return this.readField;
80201
80201
  }
80202
- _streamLocalInfile(connection2, path2) {
80202
+ _streamLocalInfile(connection2, path3) {
80203
80203
  if (this._streamFactory) {
80204
- this._localStream = this._streamFactory(path2);
80204
+ this._localStream = this._streamFactory(path3);
80205
80205
  } else {
80206
80206
  this._localStreamError = new Error(
80207
- `As a result of LOCAL INFILE command server wants to read ${path2} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
80207
+ `As a result of LOCAL INFILE command server wants to read ${path3} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
80208
80208
  );
80209
80209
  connection2.writePacket(EmptyPacket);
80210
80210
  return this.infileOk;
@@ -83508,11 +83508,11 @@ var require_connection2 = __commonJS({
83508
83508
  if (this.config.debug) {
83509
83509
  console.log("Upgrading connection to TLS");
83510
83510
  }
83511
- const crypto4 = __require("crypto");
83511
+ const crypto5 = __require("crypto");
83512
83512
  const config = this.config;
83513
83513
  const stream2 = this.stream;
83514
83514
  const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
83515
- const credentials2 = crypto4.createCredentials({
83515
+ const credentials2 = crypto5.createCredentials({
83516
83516
  key: config.ssl.key,
83517
83517
  cert: config.ssl.cert,
83518
83518
  passphrase: config.ssl.passphrase,
@@ -90818,7 +90818,7 @@ var init_serverless = __esm({
90818
90818
  var gr = wr;
90819
90819
  us2.exports = gr;
90820
90820
  });
90821
- ps = I2((Rl, fs4) => {
90821
+ ps = I2((Rl, fs5) => {
90822
90822
  "use strict";
90823
90823
  p5();
90824
90824
  var { EventEmitter: Fu } = we(), hs = cs(), ls = tt(), Sr = class Sr extends Fu {
@@ -90909,7 +90909,7 @@ var init_serverless = __esm({
90909
90909
  };
90910
90910
  a5(Sr, "Query");
90911
90911
  var br = Sr;
90912
- fs4.exports = br;
90912
+ fs5.exports = br;
90913
90913
  });
90914
90914
  ys = {};
90915
90915
  te(ys, { Socket: () => Ae, isIP: () => Mu });
@@ -95528,13 +95528,13 @@ function Subscribe(postgres2, options) {
95528
95528
  }
95529
95529
  }
95530
95530
  function handle(a7, b8) {
95531
- const path2 = b8.relation.schema + "." + b8.relation.table;
95531
+ const path3 = b8.relation.schema + "." + b8.relation.table;
95532
95532
  call("*", a7, b8);
95533
- call("*:" + path2, a7, b8);
95534
- b8.relation.keys.length && call("*:" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95533
+ call("*:" + path3, a7, b8);
95534
+ b8.relation.keys.length && call("*:" + path3 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95535
95535
  call(b8.command, a7, b8);
95536
- call(b8.command + ":" + path2, a7, b8);
95537
- b8.relation.keys.length && call(b8.command + ":" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95536
+ call(b8.command + ":" + path3, a7, b8);
95537
+ b8.relation.keys.length && call(b8.command + ":" + path3 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95538
95538
  }
95539
95539
  function pong() {
95540
95540
  const x6 = Buffer.alloc(34);
@@ -95647,8 +95647,8 @@ function parseEvent(x5) {
95647
95647
  const xs2 = x5.match(/^(\*|insert|update|delete)?:?([^.]+?\.?[^=]+)?=?(.+)?/i) || [];
95648
95648
  if (!xs2)
95649
95649
  throw new Error("Malformed subscribe pattern: " + x5);
95650
- const [, command, path2, key] = xs2;
95651
- return (command || "*") + (path2 ? ":" + (path2.indexOf(".") === -1 ? "public." + path2 : path2) : "") + (key ? "=" + key : "");
95650
+ const [, command, path3, key] = xs2;
95651
+ return (command || "*") + (path3 ? ":" + (path3.indexOf(".") === -1 ? "public." + path3 : path3) : "") + (key ? "=" + key : "");
95652
95652
  }
95653
95653
  var noop2;
95654
95654
  var init_subscribe = __esm({
@@ -95792,10 +95792,10 @@ function Postgres(a7, b8) {
95792
95792
  });
95793
95793
  return query;
95794
95794
  }
95795
- function file(path2, args = [], options2 = {}) {
95795
+ function file(path3, args = [], options2 = {}) {
95796
95796
  arguments.length === 2 && !Array.isArray(args) && (options2 = args, args = []);
95797
95797
  const query = new Query([], args, (query2) => {
95798
- fs2.readFile(path2, "utf8", (err, string2) => {
95798
+ fs2.readFile(path3, "utf8", (err, string2) => {
95799
95799
  if (err)
95800
95800
  return query2.reject(err);
95801
95801
  query2.strings = [string2];
@@ -106122,14 +106122,11 @@ var init_monodriver = __esm({
106122
106122
  "use strict";
106123
106123
  importError = (libName) => {
106124
106124
  throw new Error(
106125
- `Drizzle init error: unable to import selected database driver library '${libName}' - make sure it is installed.`
106125
+ `Please install '${libName}' for Drizzle ORM to connect to database`
106126
106126
  );
106127
106127
  };
106128
106128
  drizzle14 = async (params) => {
106129
- const { client, connection: connection2 } = params;
106130
- const drizzleConfig = params;
106131
- delete drizzleConfig.client;
106132
- delete drizzleConfig.connection;
106129
+ const { client, connection: connection2, ...drizzleConfig } = params;
106133
106130
  switch (client) {
106134
106131
  case "node-postgres": {
106135
106132
  const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
@@ -106147,16 +106144,24 @@ var init_monodriver = __esm({
106147
106144
  }
106148
106145
  case "better-sqlite3": {
106149
106146
  const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1)).catch(() => importError("better-sqlite3"));
106150
- const { filename, options } = connection2;
106151
106147
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_better_sqlite3(), better_sqlite3_exports));
106152
- const instance = new Client4(filename, options);
106148
+ if (typeof connection2 === "object") {
106149
+ const { filename, options } = connection2;
106150
+ const instance2 = new Client4(filename, options);
106151
+ return drizzle22(instance2, drizzleConfig);
106152
+ }
106153
+ const instance = new Client4(connection2);
106153
106154
  return drizzle22(instance, drizzleConfig);
106154
106155
  }
106155
- case "bun-sqlite": {
106156
+ case "bun:sqlite": {
106156
106157
  const { Database: Client4 } = await import("bun:sqlite").catch(() => importError("bun:sqlite"));
106157
- const { filename, options } = connection2;
106158
106158
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_bun_sqlite(), bun_sqlite_exports));
106159
- const instance = new Client4(filename, options);
106159
+ if (typeof connection2 === "object") {
106160
+ const { filename, options } = connection2;
106161
+ const instance2 = new Client4(filename, options);
106162
+ return drizzle22(instance2, drizzleConfig);
106163
+ }
106164
+ const instance = new Client4(connection2);
106160
106165
  return drizzle22(instance, drizzleConfig);
106161
106166
  }
106162
106167
  case "d1": {
@@ -106218,6 +106223,2920 @@ var init_monodriver = __esm({
106218
106223
  }
106219
106224
  });
106220
106225
 
106226
+ // ../drizzle-orm/dist/migrator.js
106227
+ import crypto4 from "crypto";
106228
+ import fs4 from "fs";
106229
+ import path2 from "path";
106230
+ function readMigrationFiles(config) {
106231
+ let migrationFolderTo;
106232
+ if (typeof config === "string") {
106233
+ const configAsString = fs4.readFileSync(path2.resolve(".", config), "utf8");
106234
+ const jsonConfig = JSON.parse(configAsString);
106235
+ migrationFolderTo = jsonConfig.out;
106236
+ } else {
106237
+ migrationFolderTo = config.migrationsFolder;
106238
+ }
106239
+ if (!migrationFolderTo) {
106240
+ throw new Error("no migration folder defined");
106241
+ }
106242
+ const migrationQueries = [];
106243
+ const journalPath = `${migrationFolderTo}/meta/_journal.json`;
106244
+ if (!fs4.existsSync(journalPath)) {
106245
+ throw new Error(`Can't find meta/_journal.json file`);
106246
+ }
106247
+ const journalAsString = fs4.readFileSync(`${migrationFolderTo}/meta/_journal.json`).toString();
106248
+ const journal = JSON.parse(journalAsString);
106249
+ for (const journalEntry of journal.entries) {
106250
+ const migrationPath = `${migrationFolderTo}/${journalEntry.tag}.sql`;
106251
+ try {
106252
+ const query = fs4.readFileSync(`${migrationFolderTo}/${journalEntry.tag}.sql`).toString();
106253
+ const result = query.split("--> statement-breakpoint").map((it) => {
106254
+ return it;
106255
+ });
106256
+ migrationQueries.push({
106257
+ sql: result,
106258
+ bps: journalEntry.breakpoints,
106259
+ folderMillis: journalEntry.when,
106260
+ hash: crypto4.createHash("sha256").update(query).digest("hex")
106261
+ });
106262
+ } catch {
106263
+ throw new Error(`No file ${migrationPath} found in ${migrationFolderTo} folder`);
106264
+ }
106265
+ }
106266
+ return migrationQueries;
106267
+ }
106268
+ var init_migrator = __esm({
106269
+ "../drizzle-orm/dist/migrator.js"() {
106270
+ "use strict";
106271
+ }
106272
+ });
106273
+
106274
+ // ../drizzle-orm/dist/aws-data-api/pg/migrator.js
106275
+ var migrator_exports = {};
106276
+ __export(migrator_exports, {
106277
+ migrate: () => migrate
106278
+ });
106279
+ async function migrate(db2, config) {
106280
+ const migrations = readMigrationFiles(config);
106281
+ await db2.dialect.migrate(migrations, db2.session, config);
106282
+ }
106283
+ var init_migrator2 = __esm({
106284
+ "../drizzle-orm/dist/aws-data-api/pg/migrator.js"() {
106285
+ "use strict";
106286
+ init_migrator();
106287
+ }
106288
+ });
106289
+
106290
+ // ../drizzle-orm/dist/better-sqlite3/migrator.js
106291
+ var migrator_exports2 = {};
106292
+ __export(migrator_exports2, {
106293
+ migrate: () => migrate2
106294
+ });
106295
+ function migrate2(db2, config) {
106296
+ const migrations = readMigrationFiles(config);
106297
+ db2.dialect.migrate(migrations, db2.session, config);
106298
+ }
106299
+ var init_migrator3 = __esm({
106300
+ "../drizzle-orm/dist/better-sqlite3/migrator.js"() {
106301
+ "use strict";
106302
+ init_migrator();
106303
+ }
106304
+ });
106305
+
106306
+ // ../drizzle-orm/dist/bun-sqlite/migrator.js
106307
+ var migrator_exports3 = {};
106308
+ __export(migrator_exports3, {
106309
+ migrate: () => migrate3
106310
+ });
106311
+ function migrate3(db2, config) {
106312
+ const migrations = readMigrationFiles(config);
106313
+ db2.dialect.migrate(migrations, db2.session, config);
106314
+ }
106315
+ var init_migrator4 = __esm({
106316
+ "../drizzle-orm/dist/bun-sqlite/migrator.js"() {
106317
+ "use strict";
106318
+ init_migrator();
106319
+ }
106320
+ });
106321
+
106322
+ // ../drizzle-orm/dist/d1/migrator.js
106323
+ var migrator_exports4 = {};
106324
+ __export(migrator_exports4, {
106325
+ migrate: () => migrate4
106326
+ });
106327
+ async function migrate4(db2, config) {
106328
+ const migrations = readMigrationFiles(config);
106329
+ const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
106330
+ const migrationTableCreate = sql`
106331
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
106332
+ id SERIAL PRIMARY KEY,
106333
+ hash text NOT NULL,
106334
+ created_at numeric
106335
+ )
106336
+ `;
106337
+ await db2.session.run(migrationTableCreate);
106338
+ const dbMigrations = await db2.values(
106339
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
106340
+ );
106341
+ const lastDbMigration = dbMigrations[0] ?? void 0;
106342
+ const statementToBatch = [];
106343
+ for (const migration of migrations) {
106344
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
106345
+ for (const stmt of migration.sql) {
106346
+ statementToBatch.push(db2.run(sql.raw(stmt)));
106347
+ }
106348
+ statementToBatch.push(
106349
+ db2.run(
106350
+ sql`INSERT INTO ${sql.identifier(migrationsTable)} ("hash", "created_at") VALUES(${sql.raw(`'${migration.hash}'`)}, ${sql.raw(`${migration.folderMillis}`)})`
106351
+ )
106352
+ );
106353
+ }
106354
+ }
106355
+ if (statementToBatch.length > 0) {
106356
+ await db2.session.batch(statementToBatch);
106357
+ }
106358
+ }
106359
+ var init_migrator5 = __esm({
106360
+ "../drizzle-orm/dist/d1/migrator.js"() {
106361
+ "use strict";
106362
+ init_migrator();
106363
+ init_sql();
106364
+ }
106365
+ });
106366
+
106367
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
106368
+ var require_react_production_min = __commonJS({
106369
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
106370
+ "use strict";
106371
+ var l5 = Symbol.for("react.element");
106372
+ var n5 = Symbol.for("react.portal");
106373
+ var p7 = Symbol.for("react.fragment");
106374
+ var q5 = Symbol.for("react.strict_mode");
106375
+ var r5 = Symbol.for("react.profiler");
106376
+ var t5 = Symbol.for("react.provider");
106377
+ var u5 = Symbol.for("react.context");
106378
+ var v8 = Symbol.for("react.forward_ref");
106379
+ var w5 = Symbol.for("react.suspense");
106380
+ var x5 = Symbol.for("react.memo");
106381
+ var y2 = Symbol.for("react.lazy");
106382
+ var z2 = Symbol.iterator;
106383
+ function A2(a7) {
106384
+ if (null === a7 || "object" !== typeof a7) return null;
106385
+ a7 = z2 && a7[z2] || a7["@@iterator"];
106386
+ return "function" === typeof a7 ? a7 : null;
106387
+ }
106388
+ var B2 = { isMounted: function() {
106389
+ return false;
106390
+ }, enqueueForceUpdate: function() {
106391
+ }, enqueueReplaceState: function() {
106392
+ }, enqueueSetState: function() {
106393
+ } };
106394
+ var C2 = Object.assign;
106395
+ var D2 = {};
106396
+ function E3(a7, b8, e5) {
106397
+ this.props = a7;
106398
+ this.context = b8;
106399
+ this.refs = D2;
106400
+ this.updater = e5 || B2;
106401
+ }
106402
+ E3.prototype.isReactComponent = {};
106403
+ E3.prototype.setState = function(a7, b8) {
106404
+ if ("object" !== typeof a7 && "function" !== typeof a7 && null != a7) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
106405
+ this.updater.enqueueSetState(this, a7, b8, "setState");
106406
+ };
106407
+ E3.prototype.forceUpdate = function(a7) {
106408
+ this.updater.enqueueForceUpdate(this, a7, "forceUpdate");
106409
+ };
106410
+ function F2() {
106411
+ }
106412
+ F2.prototype = E3.prototype;
106413
+ function G2(a7, b8, e5) {
106414
+ this.props = a7;
106415
+ this.context = b8;
106416
+ this.refs = D2;
106417
+ this.updater = e5 || B2;
106418
+ }
106419
+ var H2 = G2.prototype = new F2();
106420
+ H2.constructor = G2;
106421
+ C2(H2, E3.prototype);
106422
+ H2.isPureReactComponent = true;
106423
+ var I4 = Array.isArray;
106424
+ var J2 = Object.prototype.hasOwnProperty;
106425
+ var K2 = { current: null };
106426
+ var L = { key: true, ref: true, __self: true, __source: true };
106427
+ function M(a7, b8, e5) {
106428
+ var d7, c5 = {}, k6 = null, h5 = null;
106429
+ if (null != b8) for (d7 in void 0 !== b8.ref && (h5 = b8.ref), void 0 !== b8.key && (k6 = "" + b8.key), b8) J2.call(b8, d7) && !L.hasOwnProperty(d7) && (c5[d7] = b8[d7]);
106430
+ var g6 = arguments.length - 2;
106431
+ if (1 === g6) c5.children = e5;
106432
+ else if (1 < g6) {
106433
+ for (var f5 = Array(g6), m7 = 0; m7 < g6; m7++) f5[m7] = arguments[m7 + 2];
106434
+ c5.children = f5;
106435
+ }
106436
+ if (a7 && a7.defaultProps) for (d7 in g6 = a7.defaultProps, g6) void 0 === c5[d7] && (c5[d7] = g6[d7]);
106437
+ return { $$typeof: l5, type: a7, key: k6, ref: h5, props: c5, _owner: K2.current };
106438
+ }
106439
+ function N(a7, b8) {
106440
+ return { $$typeof: l5, type: a7.type, key: b8, ref: a7.ref, props: a7.props, _owner: a7._owner };
106441
+ }
106442
+ function O3(a7) {
106443
+ return "object" === typeof a7 && null !== a7 && a7.$$typeof === l5;
106444
+ }
106445
+ function escape5(a7) {
106446
+ var b8 = { "=": "=0", ":": "=2" };
106447
+ return "$" + a7.replace(/[=:]/g, function(a8) {
106448
+ return b8[a8];
106449
+ });
106450
+ }
106451
+ var P = /\/+/g;
106452
+ function Q(a7, b8) {
106453
+ return "object" === typeof a7 && null !== a7 && null != a7.key ? escape5("" + a7.key) : b8.toString(36);
106454
+ }
106455
+ function R(a7, b8, e5, d7, c5) {
106456
+ var k6 = typeof a7;
106457
+ if ("undefined" === k6 || "boolean" === k6) a7 = null;
106458
+ var h5 = false;
106459
+ if (null === a7) h5 = true;
106460
+ else switch (k6) {
106461
+ case "string":
106462
+ case "number":
106463
+ h5 = true;
106464
+ break;
106465
+ case "object":
106466
+ switch (a7.$$typeof) {
106467
+ case l5:
106468
+ case n5:
106469
+ h5 = true;
106470
+ }
106471
+ }
106472
+ if (h5) return h5 = a7, c5 = c5(h5), a7 = "" === d7 ? "." + Q(h5, 0) : d7, I4(c5) ? (e5 = "", null != a7 && (e5 = a7.replace(P, "$&/") + "/"), R(c5, b8, e5, "", function(a8) {
106473
+ return a8;
106474
+ })) : null != c5 && (O3(c5) && (c5 = N(c5, e5 + (!c5.key || h5 && h5.key === c5.key ? "" : ("" + c5.key).replace(P, "$&/") + "/") + a7)), b8.push(c5)), 1;
106475
+ h5 = 0;
106476
+ d7 = "" === d7 ? "." : d7 + ":";
106477
+ if (I4(a7)) for (var g6 = 0; g6 < a7.length; g6++) {
106478
+ k6 = a7[g6];
106479
+ var f5 = d7 + Q(k6, g6);
106480
+ h5 += R(k6, b8, e5, f5, c5);
106481
+ }
106482
+ else if (f5 = A2(a7), "function" === typeof f5) for (a7 = f5.call(a7), g6 = 0; !(k6 = a7.next()).done; ) k6 = k6.value, f5 = d7 + Q(k6, g6++), h5 += R(k6, b8, e5, f5, c5);
106483
+ else if ("object" === k6) throw b8 = String(a7), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b8 ? "object with keys {" + Object.keys(a7).join(", ") + "}" : b8) + "). If you meant to render a collection of children, use an array instead.");
106484
+ return h5;
106485
+ }
106486
+ function S3(a7, b8, e5) {
106487
+ if (null == a7) return a7;
106488
+ var d7 = [], c5 = 0;
106489
+ R(a7, d7, "", "", function(a8) {
106490
+ return b8.call(e5, a8, c5++);
106491
+ });
106492
+ return d7;
106493
+ }
106494
+ function T3(a7) {
106495
+ if (-1 === a7._status) {
106496
+ var b8 = a7._result;
106497
+ b8 = b8();
106498
+ b8.then(function(b9) {
106499
+ if (0 === a7._status || -1 === a7._status) a7._status = 1, a7._result = b9;
106500
+ }, function(b9) {
106501
+ if (0 === a7._status || -1 === a7._status) a7._status = 2, a7._result = b9;
106502
+ });
106503
+ -1 === a7._status && (a7._status = 0, a7._result = b8);
106504
+ }
106505
+ if (1 === a7._status) return a7._result.default;
106506
+ throw a7._result;
106507
+ }
106508
+ var U2 = { current: null };
106509
+ var V = { transition: null };
106510
+ var W = { ReactCurrentDispatcher: U2, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 };
106511
+ function X2() {
106512
+ throw Error("act(...) is not supported in production builds of React.");
106513
+ }
106514
+ exports.Children = { map: S3, forEach: function(a7, b8, e5) {
106515
+ S3(a7, function() {
106516
+ b8.apply(this, arguments);
106517
+ }, e5);
106518
+ }, count: function(a7) {
106519
+ var b8 = 0;
106520
+ S3(a7, function() {
106521
+ b8++;
106522
+ });
106523
+ return b8;
106524
+ }, toArray: function(a7) {
106525
+ return S3(a7, function(a8) {
106526
+ return a8;
106527
+ }) || [];
106528
+ }, only: function(a7) {
106529
+ if (!O3(a7)) throw Error("React.Children.only expected to receive a single React element child.");
106530
+ return a7;
106531
+ } };
106532
+ exports.Component = E3;
106533
+ exports.Fragment = p7;
106534
+ exports.Profiler = r5;
106535
+ exports.PureComponent = G2;
106536
+ exports.StrictMode = q5;
106537
+ exports.Suspense = w5;
106538
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
106539
+ exports.act = X2;
106540
+ exports.cloneElement = function(a7, b8, e5) {
106541
+ if (null === a7 || void 0 === a7) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a7 + ".");
106542
+ var d7 = C2({}, a7.props), c5 = a7.key, k6 = a7.ref, h5 = a7._owner;
106543
+ if (null != b8) {
106544
+ void 0 !== b8.ref && (k6 = b8.ref, h5 = K2.current);
106545
+ void 0 !== b8.key && (c5 = "" + b8.key);
106546
+ if (a7.type && a7.type.defaultProps) var g6 = a7.type.defaultProps;
106547
+ for (f5 in b8) J2.call(b8, f5) && !L.hasOwnProperty(f5) && (d7[f5] = void 0 === b8[f5] && void 0 !== g6 ? g6[f5] : b8[f5]);
106548
+ }
106549
+ var f5 = arguments.length - 2;
106550
+ if (1 === f5) d7.children = e5;
106551
+ else if (1 < f5) {
106552
+ g6 = Array(f5);
106553
+ for (var m7 = 0; m7 < f5; m7++) g6[m7] = arguments[m7 + 2];
106554
+ d7.children = g6;
106555
+ }
106556
+ return { $$typeof: l5, type: a7.type, key: c5, ref: k6, props: d7, _owner: h5 };
106557
+ };
106558
+ exports.createContext = function(a7) {
106559
+ a7 = { $$typeof: u5, _currentValue: a7, _currentValue2: a7, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
106560
+ a7.Provider = { $$typeof: t5, _context: a7 };
106561
+ return a7.Consumer = a7;
106562
+ };
106563
+ exports.createElement = M;
106564
+ exports.createFactory = function(a7) {
106565
+ var b8 = M.bind(null, a7);
106566
+ b8.type = a7;
106567
+ return b8;
106568
+ };
106569
+ exports.createRef = function() {
106570
+ return { current: null };
106571
+ };
106572
+ exports.forwardRef = function(a7) {
106573
+ return { $$typeof: v8, render: a7 };
106574
+ };
106575
+ exports.isValidElement = O3;
106576
+ exports.lazy = function(a7) {
106577
+ return { $$typeof: y2, _payload: { _status: -1, _result: a7 }, _init: T3 };
106578
+ };
106579
+ exports.memo = function(a7, b8) {
106580
+ return { $$typeof: x5, type: a7, compare: void 0 === b8 ? null : b8 };
106581
+ };
106582
+ exports.startTransition = function(a7) {
106583
+ var b8 = V.transition;
106584
+ V.transition = {};
106585
+ try {
106586
+ a7();
106587
+ } finally {
106588
+ V.transition = b8;
106589
+ }
106590
+ };
106591
+ exports.unstable_act = X2;
106592
+ exports.useCallback = function(a7, b8) {
106593
+ return U2.current.useCallback(a7, b8);
106594
+ };
106595
+ exports.useContext = function(a7) {
106596
+ return U2.current.useContext(a7);
106597
+ };
106598
+ exports.useDebugValue = function() {
106599
+ };
106600
+ exports.useDeferredValue = function(a7) {
106601
+ return U2.current.useDeferredValue(a7);
106602
+ };
106603
+ exports.useEffect = function(a7, b8) {
106604
+ return U2.current.useEffect(a7, b8);
106605
+ };
106606
+ exports.useId = function() {
106607
+ return U2.current.useId();
106608
+ };
106609
+ exports.useImperativeHandle = function(a7, b8, e5) {
106610
+ return U2.current.useImperativeHandle(a7, b8, e5);
106611
+ };
106612
+ exports.useInsertionEffect = function(a7, b8) {
106613
+ return U2.current.useInsertionEffect(a7, b8);
106614
+ };
106615
+ exports.useLayoutEffect = function(a7, b8) {
106616
+ return U2.current.useLayoutEffect(a7, b8);
106617
+ };
106618
+ exports.useMemo = function(a7, b8) {
106619
+ return U2.current.useMemo(a7, b8);
106620
+ };
106621
+ exports.useReducer = function(a7, b8, e5) {
106622
+ return U2.current.useReducer(a7, b8, e5);
106623
+ };
106624
+ exports.useRef = function(a7) {
106625
+ return U2.current.useRef(a7);
106626
+ };
106627
+ exports.useState = function(a7) {
106628
+ return U2.current.useState(a7);
106629
+ };
106630
+ exports.useSyncExternalStore = function(a7, b8, e5) {
106631
+ return U2.current.useSyncExternalStore(a7, b8, e5);
106632
+ };
106633
+ exports.useTransition = function() {
106634
+ return U2.current.useTransition();
106635
+ };
106636
+ exports.version = "18.3.1";
106637
+ }
106638
+ });
106639
+
106640
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
106641
+ var require_react_development = __commonJS({
106642
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module) {
106643
+ "use strict";
106644
+ if (process.env.NODE_ENV !== "production") {
106645
+ (function() {
106646
+ "use strict";
106647
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
106648
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
106649
+ }
106650
+ var ReactVersion = "18.3.1";
106651
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
106652
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
106653
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
106654
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
106655
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
106656
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
106657
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
106658
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
106659
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
106660
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
106661
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
106662
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
106663
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
106664
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
106665
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
106666
+ function getIteratorFn(maybeIterable) {
106667
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
106668
+ return null;
106669
+ }
106670
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
106671
+ if (typeof maybeIterator === "function") {
106672
+ return maybeIterator;
106673
+ }
106674
+ return null;
106675
+ }
106676
+ var ReactCurrentDispatcher = {
106677
+ /**
106678
+ * @internal
106679
+ * @type {ReactComponent}
106680
+ */
106681
+ current: null
106682
+ };
106683
+ var ReactCurrentBatchConfig = {
106684
+ transition: null
106685
+ };
106686
+ var ReactCurrentActQueue = {
106687
+ current: null,
106688
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
106689
+ isBatchingLegacy: false,
106690
+ didScheduleLegacyUpdate: false
106691
+ };
106692
+ var ReactCurrentOwner = {
106693
+ /**
106694
+ * @internal
106695
+ * @type {ReactComponent}
106696
+ */
106697
+ current: null
106698
+ };
106699
+ var ReactDebugCurrentFrame = {};
106700
+ var currentExtraStackFrame = null;
106701
+ function setExtraStackFrame(stack) {
106702
+ {
106703
+ currentExtraStackFrame = stack;
106704
+ }
106705
+ }
106706
+ {
106707
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
106708
+ {
106709
+ currentExtraStackFrame = stack;
106710
+ }
106711
+ };
106712
+ ReactDebugCurrentFrame.getCurrentStack = null;
106713
+ ReactDebugCurrentFrame.getStackAddendum = function() {
106714
+ var stack = "";
106715
+ if (currentExtraStackFrame) {
106716
+ stack += currentExtraStackFrame;
106717
+ }
106718
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
106719
+ if (impl) {
106720
+ stack += impl() || "";
106721
+ }
106722
+ return stack;
106723
+ };
106724
+ }
106725
+ var enableScopeAPI = false;
106726
+ var enableCacheElement = false;
106727
+ var enableTransitionTracing = false;
106728
+ var enableLegacyHidden = false;
106729
+ var enableDebugTracing = false;
106730
+ var ReactSharedInternals = {
106731
+ ReactCurrentDispatcher,
106732
+ ReactCurrentBatchConfig,
106733
+ ReactCurrentOwner
106734
+ };
106735
+ {
106736
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
106737
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
106738
+ }
106739
+ function warn(format3) {
106740
+ {
106741
+ {
106742
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
106743
+ args[_key - 1] = arguments[_key];
106744
+ }
106745
+ printWarning("warn", format3, args);
106746
+ }
106747
+ }
106748
+ }
106749
+ function error2(format3) {
106750
+ {
106751
+ {
106752
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
106753
+ args[_key2 - 1] = arguments[_key2];
106754
+ }
106755
+ printWarning("error", format3, args);
106756
+ }
106757
+ }
106758
+ }
106759
+ function printWarning(level, format3, args) {
106760
+ {
106761
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
106762
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
106763
+ if (stack !== "") {
106764
+ format3 += "%s";
106765
+ args = args.concat([stack]);
106766
+ }
106767
+ var argsWithFormat = args.map(function(item) {
106768
+ return String(item);
106769
+ });
106770
+ argsWithFormat.unshift("Warning: " + format3);
106771
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
106772
+ }
106773
+ }
106774
+ var didWarnStateUpdateForUnmountedComponent = {};
106775
+ function warnNoop(publicInstance, callerName) {
106776
+ {
106777
+ var _constructor = publicInstance.constructor;
106778
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
106779
+ var warningKey = componentName + "." + callerName;
106780
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
106781
+ return;
106782
+ }
106783
+ error2("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
106784
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
106785
+ }
106786
+ }
106787
+ var ReactNoopUpdateQueue = {
106788
+ /**
106789
+ * Checks whether or not this composite component is mounted.
106790
+ * @param {ReactClass} publicInstance The instance we want to test.
106791
+ * @return {boolean} True if mounted, false otherwise.
106792
+ * @protected
106793
+ * @final
106794
+ */
106795
+ isMounted: function(publicInstance) {
106796
+ return false;
106797
+ },
106798
+ /**
106799
+ * Forces an update. This should only be invoked when it is known with
106800
+ * certainty that we are **not** in a DOM transaction.
106801
+ *
106802
+ * You may want to call this when you know that some deeper aspect of the
106803
+ * component's state has changed but `setState` was not called.
106804
+ *
106805
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
106806
+ * `componentWillUpdate` and `componentDidUpdate`.
106807
+ *
106808
+ * @param {ReactClass} publicInstance The instance that should rerender.
106809
+ * @param {?function} callback Called after component is updated.
106810
+ * @param {?string} callerName name of the calling function in the public API.
106811
+ * @internal
106812
+ */
106813
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
106814
+ warnNoop(publicInstance, "forceUpdate");
106815
+ },
106816
+ /**
106817
+ * Replaces all of the state. Always use this or `setState` to mutate state.
106818
+ * You should treat `this.state` as immutable.
106819
+ *
106820
+ * There is no guarantee that `this.state` will be immediately updated, so
106821
+ * accessing `this.state` after calling this method may return the old value.
106822
+ *
106823
+ * @param {ReactClass} publicInstance The instance that should rerender.
106824
+ * @param {object} completeState Next state.
106825
+ * @param {?function} callback Called after component is updated.
106826
+ * @param {?string} callerName name of the calling function in the public API.
106827
+ * @internal
106828
+ */
106829
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
106830
+ warnNoop(publicInstance, "replaceState");
106831
+ },
106832
+ /**
106833
+ * Sets a subset of the state. This only exists because _pendingState is
106834
+ * internal. This provides a merging strategy that is not available to deep
106835
+ * properties which is confusing. TODO: Expose pendingState or don't use it
106836
+ * during the merge.
106837
+ *
106838
+ * @param {ReactClass} publicInstance The instance that should rerender.
106839
+ * @param {object} partialState Next partial state to be merged with state.
106840
+ * @param {?function} callback Called after component is updated.
106841
+ * @param {?string} Name of the calling function in the public API.
106842
+ * @internal
106843
+ */
106844
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
106845
+ warnNoop(publicInstance, "setState");
106846
+ }
106847
+ };
106848
+ var assign = Object.assign;
106849
+ var emptyObject = {};
106850
+ {
106851
+ Object.freeze(emptyObject);
106852
+ }
106853
+ function Component(props, context, updater) {
106854
+ this.props = props;
106855
+ this.context = context;
106856
+ this.refs = emptyObject;
106857
+ this.updater = updater || ReactNoopUpdateQueue;
106858
+ }
106859
+ Component.prototype.isReactComponent = {};
106860
+ Component.prototype.setState = function(partialState, callback) {
106861
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
106862
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
106863
+ }
106864
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
106865
+ };
106866
+ Component.prototype.forceUpdate = function(callback) {
106867
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
106868
+ };
106869
+ {
106870
+ var deprecatedAPIs = {
106871
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
106872
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
106873
+ };
106874
+ var defineDeprecationWarning = function(methodName, info2) {
106875
+ Object.defineProperty(Component.prototype, methodName, {
106876
+ get: function() {
106877
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]);
106878
+ return void 0;
106879
+ }
106880
+ });
106881
+ };
106882
+ for (var fnName in deprecatedAPIs) {
106883
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
106884
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
106885
+ }
106886
+ }
106887
+ }
106888
+ function ComponentDummy() {
106889
+ }
106890
+ ComponentDummy.prototype = Component.prototype;
106891
+ function PureComponent(props, context, updater) {
106892
+ this.props = props;
106893
+ this.context = context;
106894
+ this.refs = emptyObject;
106895
+ this.updater = updater || ReactNoopUpdateQueue;
106896
+ }
106897
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
106898
+ pureComponentPrototype.constructor = PureComponent;
106899
+ assign(pureComponentPrototype, Component.prototype);
106900
+ pureComponentPrototype.isPureReactComponent = true;
106901
+ function createRef() {
106902
+ var refObject = {
106903
+ current: null
106904
+ };
106905
+ {
106906
+ Object.seal(refObject);
106907
+ }
106908
+ return refObject;
106909
+ }
106910
+ var isArrayImpl = Array.isArray;
106911
+ function isArray(a7) {
106912
+ return isArrayImpl(a7);
106913
+ }
106914
+ function typeName(value) {
106915
+ {
106916
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
106917
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
106918
+ return type;
106919
+ }
106920
+ }
106921
+ function willCoercionThrow(value) {
106922
+ {
106923
+ try {
106924
+ testStringCoercion(value);
106925
+ return false;
106926
+ } catch (e5) {
106927
+ return true;
106928
+ }
106929
+ }
106930
+ }
106931
+ function testStringCoercion(value) {
106932
+ return "" + value;
106933
+ }
106934
+ function checkKeyStringCoercion(value) {
106935
+ {
106936
+ if (willCoercionThrow(value)) {
106937
+ error2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
106938
+ return testStringCoercion(value);
106939
+ }
106940
+ }
106941
+ }
106942
+ function getWrappedName(outerType, innerType, wrapperName) {
106943
+ var displayName = outerType.displayName;
106944
+ if (displayName) {
106945
+ return displayName;
106946
+ }
106947
+ var functionName = innerType.displayName || innerType.name || "";
106948
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
106949
+ }
106950
+ function getContextName(type) {
106951
+ return type.displayName || "Context";
106952
+ }
106953
+ function getComponentNameFromType(type) {
106954
+ if (type == null) {
106955
+ return null;
106956
+ }
106957
+ {
106958
+ if (typeof type.tag === "number") {
106959
+ error2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
106960
+ }
106961
+ }
106962
+ if (typeof type === "function") {
106963
+ return type.displayName || type.name || null;
106964
+ }
106965
+ if (typeof type === "string") {
106966
+ return type;
106967
+ }
106968
+ switch (type) {
106969
+ case REACT_FRAGMENT_TYPE:
106970
+ return "Fragment";
106971
+ case REACT_PORTAL_TYPE:
106972
+ return "Portal";
106973
+ case REACT_PROFILER_TYPE:
106974
+ return "Profiler";
106975
+ case REACT_STRICT_MODE_TYPE:
106976
+ return "StrictMode";
106977
+ case REACT_SUSPENSE_TYPE:
106978
+ return "Suspense";
106979
+ case REACT_SUSPENSE_LIST_TYPE:
106980
+ return "SuspenseList";
106981
+ }
106982
+ if (typeof type === "object") {
106983
+ switch (type.$$typeof) {
106984
+ case REACT_CONTEXT_TYPE:
106985
+ var context = type;
106986
+ return getContextName(context) + ".Consumer";
106987
+ case REACT_PROVIDER_TYPE:
106988
+ var provider = type;
106989
+ return getContextName(provider._context) + ".Provider";
106990
+ case REACT_FORWARD_REF_TYPE:
106991
+ return getWrappedName(type, type.render, "ForwardRef");
106992
+ case REACT_MEMO_TYPE:
106993
+ var outerName = type.displayName || null;
106994
+ if (outerName !== null) {
106995
+ return outerName;
106996
+ }
106997
+ return getComponentNameFromType(type.type) || "Memo";
106998
+ case REACT_LAZY_TYPE: {
106999
+ var lazyComponent = type;
107000
+ var payload = lazyComponent._payload;
107001
+ var init = lazyComponent._init;
107002
+ try {
107003
+ return getComponentNameFromType(init(payload));
107004
+ } catch (x5) {
107005
+ return null;
107006
+ }
107007
+ }
107008
+ }
107009
+ }
107010
+ return null;
107011
+ }
107012
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
107013
+ var RESERVED_PROPS = {
107014
+ key: true,
107015
+ ref: true,
107016
+ __self: true,
107017
+ __source: true
107018
+ };
107019
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
107020
+ {
107021
+ didWarnAboutStringRefs = {};
107022
+ }
107023
+ function hasValidRef(config) {
107024
+ {
107025
+ if (hasOwnProperty.call(config, "ref")) {
107026
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
107027
+ if (getter && getter.isReactWarning) {
107028
+ return false;
107029
+ }
107030
+ }
107031
+ }
107032
+ return config.ref !== void 0;
107033
+ }
107034
+ function hasValidKey(config) {
107035
+ {
107036
+ if (hasOwnProperty.call(config, "key")) {
107037
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
107038
+ if (getter && getter.isReactWarning) {
107039
+ return false;
107040
+ }
107041
+ }
107042
+ }
107043
+ return config.key !== void 0;
107044
+ }
107045
+ function defineKeyPropWarningGetter(props, displayName) {
107046
+ var warnAboutAccessingKey = function() {
107047
+ {
107048
+ if (!specialPropKeyWarningShown) {
107049
+ specialPropKeyWarningShown = true;
107050
+ error2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
107051
+ }
107052
+ }
107053
+ };
107054
+ warnAboutAccessingKey.isReactWarning = true;
107055
+ Object.defineProperty(props, "key", {
107056
+ get: warnAboutAccessingKey,
107057
+ configurable: true
107058
+ });
107059
+ }
107060
+ function defineRefPropWarningGetter(props, displayName) {
107061
+ var warnAboutAccessingRef = function() {
107062
+ {
107063
+ if (!specialPropRefWarningShown) {
107064
+ specialPropRefWarningShown = true;
107065
+ error2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
107066
+ }
107067
+ }
107068
+ };
107069
+ warnAboutAccessingRef.isReactWarning = true;
107070
+ Object.defineProperty(props, "ref", {
107071
+ get: warnAboutAccessingRef,
107072
+ configurable: true
107073
+ });
107074
+ }
107075
+ function warnIfStringRefCannotBeAutoConverted(config) {
107076
+ {
107077
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
107078
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
107079
+ if (!didWarnAboutStringRefs[componentName]) {
107080
+ error2('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
107081
+ didWarnAboutStringRefs[componentName] = true;
107082
+ }
107083
+ }
107084
+ }
107085
+ }
107086
+ var ReactElement = function(type, key, ref, self2, source, owner, props) {
107087
+ var element = {
107088
+ // This tag allows us to uniquely identify this as a React Element
107089
+ $$typeof: REACT_ELEMENT_TYPE,
107090
+ // Built-in properties that belong on the element
107091
+ type,
107092
+ key,
107093
+ ref,
107094
+ props,
107095
+ // Record the component responsible for creating this element.
107096
+ _owner: owner
107097
+ };
107098
+ {
107099
+ element._store = {};
107100
+ Object.defineProperty(element._store, "validated", {
107101
+ configurable: false,
107102
+ enumerable: false,
107103
+ writable: true,
107104
+ value: false
107105
+ });
107106
+ Object.defineProperty(element, "_self", {
107107
+ configurable: false,
107108
+ enumerable: false,
107109
+ writable: false,
107110
+ value: self2
107111
+ });
107112
+ Object.defineProperty(element, "_source", {
107113
+ configurable: false,
107114
+ enumerable: false,
107115
+ writable: false,
107116
+ value: source
107117
+ });
107118
+ if (Object.freeze) {
107119
+ Object.freeze(element.props);
107120
+ Object.freeze(element);
107121
+ }
107122
+ }
107123
+ return element;
107124
+ };
107125
+ function createElement(type, config, children) {
107126
+ var propName;
107127
+ var props = {};
107128
+ var key = null;
107129
+ var ref = null;
107130
+ var self2 = null;
107131
+ var source = null;
107132
+ if (config != null) {
107133
+ if (hasValidRef(config)) {
107134
+ ref = config.ref;
107135
+ {
107136
+ warnIfStringRefCannotBeAutoConverted(config);
107137
+ }
107138
+ }
107139
+ if (hasValidKey(config)) {
107140
+ {
107141
+ checkKeyStringCoercion(config.key);
107142
+ }
107143
+ key = "" + config.key;
107144
+ }
107145
+ self2 = config.__self === void 0 ? null : config.__self;
107146
+ source = config.__source === void 0 ? null : config.__source;
107147
+ for (propName in config) {
107148
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
107149
+ props[propName] = config[propName];
107150
+ }
107151
+ }
107152
+ }
107153
+ var childrenLength = arguments.length - 2;
107154
+ if (childrenLength === 1) {
107155
+ props.children = children;
107156
+ } else if (childrenLength > 1) {
107157
+ var childArray = Array(childrenLength);
107158
+ for (var i5 = 0; i5 < childrenLength; i5++) {
107159
+ childArray[i5] = arguments[i5 + 2];
107160
+ }
107161
+ {
107162
+ if (Object.freeze) {
107163
+ Object.freeze(childArray);
107164
+ }
107165
+ }
107166
+ props.children = childArray;
107167
+ }
107168
+ if (type && type.defaultProps) {
107169
+ var defaultProps = type.defaultProps;
107170
+ for (propName in defaultProps) {
107171
+ if (props[propName] === void 0) {
107172
+ props[propName] = defaultProps[propName];
107173
+ }
107174
+ }
107175
+ }
107176
+ {
107177
+ if (key || ref) {
107178
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
107179
+ if (key) {
107180
+ defineKeyPropWarningGetter(props, displayName);
107181
+ }
107182
+ if (ref) {
107183
+ defineRefPropWarningGetter(props, displayName);
107184
+ }
107185
+ }
107186
+ }
107187
+ return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
107188
+ }
107189
+ function cloneAndReplaceKey(oldElement, newKey) {
107190
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
107191
+ return newElement;
107192
+ }
107193
+ function cloneElement(element, config, children) {
107194
+ if (element === null || element === void 0) {
107195
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
107196
+ }
107197
+ var propName;
107198
+ var props = assign({}, element.props);
107199
+ var key = element.key;
107200
+ var ref = element.ref;
107201
+ var self2 = element._self;
107202
+ var source = element._source;
107203
+ var owner = element._owner;
107204
+ if (config != null) {
107205
+ if (hasValidRef(config)) {
107206
+ ref = config.ref;
107207
+ owner = ReactCurrentOwner.current;
107208
+ }
107209
+ if (hasValidKey(config)) {
107210
+ {
107211
+ checkKeyStringCoercion(config.key);
107212
+ }
107213
+ key = "" + config.key;
107214
+ }
107215
+ var defaultProps;
107216
+ if (element.type && element.type.defaultProps) {
107217
+ defaultProps = element.type.defaultProps;
107218
+ }
107219
+ for (propName in config) {
107220
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
107221
+ if (config[propName] === void 0 && defaultProps !== void 0) {
107222
+ props[propName] = defaultProps[propName];
107223
+ } else {
107224
+ props[propName] = config[propName];
107225
+ }
107226
+ }
107227
+ }
107228
+ }
107229
+ var childrenLength = arguments.length - 2;
107230
+ if (childrenLength === 1) {
107231
+ props.children = children;
107232
+ } else if (childrenLength > 1) {
107233
+ var childArray = Array(childrenLength);
107234
+ for (var i5 = 0; i5 < childrenLength; i5++) {
107235
+ childArray[i5] = arguments[i5 + 2];
107236
+ }
107237
+ props.children = childArray;
107238
+ }
107239
+ return ReactElement(element.type, key, ref, self2, source, owner, props);
107240
+ }
107241
+ function isValidElement(object2) {
107242
+ return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
107243
+ }
107244
+ var SEPARATOR = ".";
107245
+ var SUBSEPARATOR = ":";
107246
+ function escape5(key) {
107247
+ var escapeRegex = /[=:]/g;
107248
+ var escaperLookup = {
107249
+ "=": "=0",
107250
+ ":": "=2"
107251
+ };
107252
+ var escapedString = key.replace(escapeRegex, function(match2) {
107253
+ return escaperLookup[match2];
107254
+ });
107255
+ return "$" + escapedString;
107256
+ }
107257
+ var didWarnAboutMaps = false;
107258
+ var userProvidedKeyEscapeRegex = /\/+/g;
107259
+ function escapeUserProvidedKey(text) {
107260
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
107261
+ }
107262
+ function getElementKey(element, index4) {
107263
+ if (typeof element === "object" && element !== null && element.key != null) {
107264
+ {
107265
+ checkKeyStringCoercion(element.key);
107266
+ }
107267
+ return escape5("" + element.key);
107268
+ }
107269
+ return index4.toString(36);
107270
+ }
107271
+ function mapIntoArray(children, array2, escapedPrefix, nameSoFar, callback) {
107272
+ var type = typeof children;
107273
+ if (type === "undefined" || type === "boolean") {
107274
+ children = null;
107275
+ }
107276
+ var invokeCallback = false;
107277
+ if (children === null) {
107278
+ invokeCallback = true;
107279
+ } else {
107280
+ switch (type) {
107281
+ case "string":
107282
+ case "number":
107283
+ invokeCallback = true;
107284
+ break;
107285
+ case "object":
107286
+ switch (children.$$typeof) {
107287
+ case REACT_ELEMENT_TYPE:
107288
+ case REACT_PORTAL_TYPE:
107289
+ invokeCallback = true;
107290
+ }
107291
+ }
107292
+ }
107293
+ if (invokeCallback) {
107294
+ var _child = children;
107295
+ var mappedChild = callback(_child);
107296
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
107297
+ if (isArray(mappedChild)) {
107298
+ var escapedChildKey = "";
107299
+ if (childKey != null) {
107300
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
107301
+ }
107302
+ mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c5) {
107303
+ return c5;
107304
+ });
107305
+ } else if (mappedChild != null) {
107306
+ if (isValidElement(mappedChild)) {
107307
+ {
107308
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
107309
+ checkKeyStringCoercion(mappedChild.key);
107310
+ }
107311
+ }
107312
+ mappedChild = cloneAndReplaceKey(
107313
+ mappedChild,
107314
+ // Keep both the (mapped) and old keys if they differ, just as
107315
+ // traverseAllChildren used to do for objects as children
107316
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
107317
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
107318
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
107319
+ // eslint-disable-next-line react-internal/safe-string-coercion
107320
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
107321
+ ) : "") + childKey
107322
+ );
107323
+ }
107324
+ array2.push(mappedChild);
107325
+ }
107326
+ return 1;
107327
+ }
107328
+ var child;
107329
+ var nextName;
107330
+ var subtreeCount = 0;
107331
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
107332
+ if (isArray(children)) {
107333
+ for (var i5 = 0; i5 < children.length; i5++) {
107334
+ child = children[i5];
107335
+ nextName = nextNamePrefix + getElementKey(child, i5);
107336
+ subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback);
107337
+ }
107338
+ } else {
107339
+ var iteratorFn = getIteratorFn(children);
107340
+ if (typeof iteratorFn === "function") {
107341
+ var iterableChildren = children;
107342
+ {
107343
+ if (iteratorFn === iterableChildren.entries) {
107344
+ if (!didWarnAboutMaps) {
107345
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
107346
+ }
107347
+ didWarnAboutMaps = true;
107348
+ }
107349
+ }
107350
+ var iterator = iteratorFn.call(iterableChildren);
107351
+ var step;
107352
+ var ii2 = 0;
107353
+ while (!(step = iterator.next()).done) {
107354
+ child = step.value;
107355
+ nextName = nextNamePrefix + getElementKey(child, ii2++);
107356
+ subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback);
107357
+ }
107358
+ } else if (type === "object") {
107359
+ var childrenString = String(children);
107360
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
107361
+ }
107362
+ }
107363
+ return subtreeCount;
107364
+ }
107365
+ function mapChildren(children, func, context) {
107366
+ if (children == null) {
107367
+ return children;
107368
+ }
107369
+ var result = [];
107370
+ var count2 = 0;
107371
+ mapIntoArray(children, result, "", "", function(child) {
107372
+ return func.call(context, child, count2++);
107373
+ });
107374
+ return result;
107375
+ }
107376
+ function countChildren(children) {
107377
+ var n5 = 0;
107378
+ mapChildren(children, function() {
107379
+ n5++;
107380
+ });
107381
+ return n5;
107382
+ }
107383
+ function forEachChildren(children, forEachFunc, forEachContext) {
107384
+ mapChildren(children, function() {
107385
+ forEachFunc.apply(this, arguments);
107386
+ }, forEachContext);
107387
+ }
107388
+ function toArray(children) {
107389
+ return mapChildren(children, function(child) {
107390
+ return child;
107391
+ }) || [];
107392
+ }
107393
+ function onlyChild(children) {
107394
+ if (!isValidElement(children)) {
107395
+ throw new Error("React.Children.only expected to receive a single React element child.");
107396
+ }
107397
+ return children;
107398
+ }
107399
+ function createContext(defaultValue) {
107400
+ var context = {
107401
+ $$typeof: REACT_CONTEXT_TYPE,
107402
+ // As a workaround to support multiple concurrent renderers, we categorize
107403
+ // some renderers as primary and others as secondary. We only expect
107404
+ // there to be two concurrent renderers at most: React Native (primary) and
107405
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
107406
+ // Secondary renderers store their context values on separate fields.
107407
+ _currentValue: defaultValue,
107408
+ _currentValue2: defaultValue,
107409
+ // Used to track how many concurrent renderers this context currently
107410
+ // supports within in a single renderer. Such as parallel server rendering.
107411
+ _threadCount: 0,
107412
+ // These are circular
107413
+ Provider: null,
107414
+ Consumer: null,
107415
+ // Add these to use same hidden class in VM as ServerContext
107416
+ _defaultValue: null,
107417
+ _globalName: null
107418
+ };
107419
+ context.Provider = {
107420
+ $$typeof: REACT_PROVIDER_TYPE,
107421
+ _context: context
107422
+ };
107423
+ var hasWarnedAboutUsingNestedContextConsumers = false;
107424
+ var hasWarnedAboutUsingConsumerProvider = false;
107425
+ var hasWarnedAboutDisplayNameOnConsumer = false;
107426
+ {
107427
+ var Consumer = {
107428
+ $$typeof: REACT_CONTEXT_TYPE,
107429
+ _context: context
107430
+ };
107431
+ Object.defineProperties(Consumer, {
107432
+ Provider: {
107433
+ get: function() {
107434
+ if (!hasWarnedAboutUsingConsumerProvider) {
107435
+ hasWarnedAboutUsingConsumerProvider = true;
107436
+ error2("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
107437
+ }
107438
+ return context.Provider;
107439
+ },
107440
+ set: function(_Provider) {
107441
+ context.Provider = _Provider;
107442
+ }
107443
+ },
107444
+ _currentValue: {
107445
+ get: function() {
107446
+ return context._currentValue;
107447
+ },
107448
+ set: function(_currentValue) {
107449
+ context._currentValue = _currentValue;
107450
+ }
107451
+ },
107452
+ _currentValue2: {
107453
+ get: function() {
107454
+ return context._currentValue2;
107455
+ },
107456
+ set: function(_currentValue2) {
107457
+ context._currentValue2 = _currentValue2;
107458
+ }
107459
+ },
107460
+ _threadCount: {
107461
+ get: function() {
107462
+ return context._threadCount;
107463
+ },
107464
+ set: function(_threadCount) {
107465
+ context._threadCount = _threadCount;
107466
+ }
107467
+ },
107468
+ Consumer: {
107469
+ get: function() {
107470
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
107471
+ hasWarnedAboutUsingNestedContextConsumers = true;
107472
+ error2("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
107473
+ }
107474
+ return context.Consumer;
107475
+ }
107476
+ },
107477
+ displayName: {
107478
+ get: function() {
107479
+ return context.displayName;
107480
+ },
107481
+ set: function(displayName) {
107482
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
107483
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
107484
+ hasWarnedAboutDisplayNameOnConsumer = true;
107485
+ }
107486
+ }
107487
+ }
107488
+ });
107489
+ context.Consumer = Consumer;
107490
+ }
107491
+ {
107492
+ context._currentRenderer = null;
107493
+ context._currentRenderer2 = null;
107494
+ }
107495
+ return context;
107496
+ }
107497
+ var Uninitialized = -1;
107498
+ var Pending = 0;
107499
+ var Resolved = 1;
107500
+ var Rejected = 2;
107501
+ function lazyInitializer(payload) {
107502
+ if (payload._status === Uninitialized) {
107503
+ var ctor = payload._result;
107504
+ var thenable = ctor();
107505
+ thenable.then(function(moduleObject2) {
107506
+ if (payload._status === Pending || payload._status === Uninitialized) {
107507
+ var resolved = payload;
107508
+ resolved._status = Resolved;
107509
+ resolved._result = moduleObject2;
107510
+ }
107511
+ }, function(error3) {
107512
+ if (payload._status === Pending || payload._status === Uninitialized) {
107513
+ var rejected = payload;
107514
+ rejected._status = Rejected;
107515
+ rejected._result = error3;
107516
+ }
107517
+ });
107518
+ if (payload._status === Uninitialized) {
107519
+ var pending = payload;
107520
+ pending._status = Pending;
107521
+ pending._result = thenable;
107522
+ }
107523
+ }
107524
+ if (payload._status === Resolved) {
107525
+ var moduleObject = payload._result;
107526
+ {
107527
+ if (moduleObject === void 0) {
107528
+ error2("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
107529
+ }
107530
+ }
107531
+ {
107532
+ if (!("default" in moduleObject)) {
107533
+ error2("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
107534
+ }
107535
+ }
107536
+ return moduleObject.default;
107537
+ } else {
107538
+ throw payload._result;
107539
+ }
107540
+ }
107541
+ function lazy(ctor) {
107542
+ var payload = {
107543
+ // We use these fields to store the result.
107544
+ _status: Uninitialized,
107545
+ _result: ctor
107546
+ };
107547
+ var lazyType2 = {
107548
+ $$typeof: REACT_LAZY_TYPE,
107549
+ _payload: payload,
107550
+ _init: lazyInitializer
107551
+ };
107552
+ {
107553
+ var defaultProps;
107554
+ var propTypes;
107555
+ Object.defineProperties(lazyType2, {
107556
+ defaultProps: {
107557
+ configurable: true,
107558
+ get: function() {
107559
+ return defaultProps;
107560
+ },
107561
+ set: function(newDefaultProps) {
107562
+ error2("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
107563
+ defaultProps = newDefaultProps;
107564
+ Object.defineProperty(lazyType2, "defaultProps", {
107565
+ enumerable: true
107566
+ });
107567
+ }
107568
+ },
107569
+ propTypes: {
107570
+ configurable: true,
107571
+ get: function() {
107572
+ return propTypes;
107573
+ },
107574
+ set: function(newPropTypes) {
107575
+ error2("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
107576
+ propTypes = newPropTypes;
107577
+ Object.defineProperty(lazyType2, "propTypes", {
107578
+ enumerable: true
107579
+ });
107580
+ }
107581
+ }
107582
+ });
107583
+ }
107584
+ return lazyType2;
107585
+ }
107586
+ function forwardRef(render6) {
107587
+ {
107588
+ if (render6 != null && render6.$$typeof === REACT_MEMO_TYPE) {
107589
+ error2("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
107590
+ } else if (typeof render6 !== "function") {
107591
+ error2("forwardRef requires a render function but was given %s.", render6 === null ? "null" : typeof render6);
107592
+ } else {
107593
+ if (render6.length !== 0 && render6.length !== 2) {
107594
+ error2("forwardRef render functions accept exactly two parameters: props and ref. %s", render6.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
107595
+ }
107596
+ }
107597
+ if (render6 != null) {
107598
+ if (render6.defaultProps != null || render6.propTypes != null) {
107599
+ error2("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
107600
+ }
107601
+ }
107602
+ }
107603
+ var elementType = {
107604
+ $$typeof: REACT_FORWARD_REF_TYPE,
107605
+ render: render6
107606
+ };
107607
+ {
107608
+ var ownName;
107609
+ Object.defineProperty(elementType, "displayName", {
107610
+ enumerable: false,
107611
+ configurable: true,
107612
+ get: function() {
107613
+ return ownName;
107614
+ },
107615
+ set: function(name2) {
107616
+ ownName = name2;
107617
+ if (!render6.name && !render6.displayName) {
107618
+ render6.displayName = name2;
107619
+ }
107620
+ }
107621
+ });
107622
+ }
107623
+ return elementType;
107624
+ }
107625
+ var REACT_MODULE_REFERENCE;
107626
+ {
107627
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
107628
+ }
107629
+ function isValidElementType(type) {
107630
+ if (typeof type === "string" || typeof type === "function") {
107631
+ return true;
107632
+ }
107633
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
107634
+ return true;
107635
+ }
107636
+ if (typeof type === "object" && type !== null) {
107637
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
107638
+ // types supported by any Flight configuration anywhere since
107639
+ // we don't know which Flight build this will end up being used
107640
+ // with.
107641
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
107642
+ return true;
107643
+ }
107644
+ }
107645
+ return false;
107646
+ }
107647
+ function memo(type, compare) {
107648
+ {
107649
+ if (!isValidElementType(type)) {
107650
+ error2("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
107651
+ }
107652
+ }
107653
+ var elementType = {
107654
+ $$typeof: REACT_MEMO_TYPE,
107655
+ type,
107656
+ compare: compare === void 0 ? null : compare
107657
+ };
107658
+ {
107659
+ var ownName;
107660
+ Object.defineProperty(elementType, "displayName", {
107661
+ enumerable: false,
107662
+ configurable: true,
107663
+ get: function() {
107664
+ return ownName;
107665
+ },
107666
+ set: function(name2) {
107667
+ ownName = name2;
107668
+ if (!type.name && !type.displayName) {
107669
+ type.displayName = name2;
107670
+ }
107671
+ }
107672
+ });
107673
+ }
107674
+ return elementType;
107675
+ }
107676
+ function resolveDispatcher() {
107677
+ var dispatcher = ReactCurrentDispatcher.current;
107678
+ {
107679
+ if (dispatcher === null) {
107680
+ error2("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
107681
+ }
107682
+ }
107683
+ return dispatcher;
107684
+ }
107685
+ function useContext(Context) {
107686
+ var dispatcher = resolveDispatcher();
107687
+ {
107688
+ if (Context._context !== void 0) {
107689
+ var realContext = Context._context;
107690
+ if (realContext.Consumer === Context) {
107691
+ error2("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
107692
+ } else if (realContext.Provider === Context) {
107693
+ error2("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
107694
+ }
107695
+ }
107696
+ }
107697
+ return dispatcher.useContext(Context);
107698
+ }
107699
+ function useState(initialState) {
107700
+ var dispatcher = resolveDispatcher();
107701
+ return dispatcher.useState(initialState);
107702
+ }
107703
+ function useReducer3(reducer, initialArg, init) {
107704
+ var dispatcher = resolveDispatcher();
107705
+ return dispatcher.useReducer(reducer, initialArg, init);
107706
+ }
107707
+ function useRef(initialValue) {
107708
+ var dispatcher = resolveDispatcher();
107709
+ return dispatcher.useRef(initialValue);
107710
+ }
107711
+ function useEffect3(create, deps) {
107712
+ var dispatcher = resolveDispatcher();
107713
+ return dispatcher.useEffect(create, deps);
107714
+ }
107715
+ function useInsertionEffect(create, deps) {
107716
+ var dispatcher = resolveDispatcher();
107717
+ return dispatcher.useInsertionEffect(create, deps);
107718
+ }
107719
+ function useLayoutEffect(create, deps) {
107720
+ var dispatcher = resolveDispatcher();
107721
+ return dispatcher.useLayoutEffect(create, deps);
107722
+ }
107723
+ function useCallback(callback, deps) {
107724
+ var dispatcher = resolveDispatcher();
107725
+ return dispatcher.useCallback(callback, deps);
107726
+ }
107727
+ function useMemo(create, deps) {
107728
+ var dispatcher = resolveDispatcher();
107729
+ return dispatcher.useMemo(create, deps);
107730
+ }
107731
+ function useImperativeHandle(ref, create, deps) {
107732
+ var dispatcher = resolveDispatcher();
107733
+ return dispatcher.useImperativeHandle(ref, create, deps);
107734
+ }
107735
+ function useDebugValue(value, formatterFn) {
107736
+ {
107737
+ var dispatcher = resolveDispatcher();
107738
+ return dispatcher.useDebugValue(value, formatterFn);
107739
+ }
107740
+ }
107741
+ function useTransition() {
107742
+ var dispatcher = resolveDispatcher();
107743
+ return dispatcher.useTransition();
107744
+ }
107745
+ function useDeferredValue(value) {
107746
+ var dispatcher = resolveDispatcher();
107747
+ return dispatcher.useDeferredValue(value);
107748
+ }
107749
+ function useId() {
107750
+ var dispatcher = resolveDispatcher();
107751
+ return dispatcher.useId();
107752
+ }
107753
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
107754
+ var dispatcher = resolveDispatcher();
107755
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
107756
+ }
107757
+ var disabledDepth = 0;
107758
+ var prevLog;
107759
+ var prevInfo;
107760
+ var prevWarn;
107761
+ var prevError;
107762
+ var prevGroup;
107763
+ var prevGroupCollapsed;
107764
+ var prevGroupEnd;
107765
+ function disabledLog() {
107766
+ }
107767
+ disabledLog.__reactDisabledLog = true;
107768
+ function disableLogs() {
107769
+ {
107770
+ if (disabledDepth === 0) {
107771
+ prevLog = console.log;
107772
+ prevInfo = console.info;
107773
+ prevWarn = console.warn;
107774
+ prevError = console.error;
107775
+ prevGroup = console.group;
107776
+ prevGroupCollapsed = console.groupCollapsed;
107777
+ prevGroupEnd = console.groupEnd;
107778
+ var props = {
107779
+ configurable: true,
107780
+ enumerable: true,
107781
+ value: disabledLog,
107782
+ writable: true
107783
+ };
107784
+ Object.defineProperties(console, {
107785
+ info: props,
107786
+ log: props,
107787
+ warn: props,
107788
+ error: props,
107789
+ group: props,
107790
+ groupCollapsed: props,
107791
+ groupEnd: props
107792
+ });
107793
+ }
107794
+ disabledDepth++;
107795
+ }
107796
+ }
107797
+ function reenableLogs() {
107798
+ {
107799
+ disabledDepth--;
107800
+ if (disabledDepth === 0) {
107801
+ var props = {
107802
+ configurable: true,
107803
+ enumerable: true,
107804
+ writable: true
107805
+ };
107806
+ Object.defineProperties(console, {
107807
+ log: assign({}, props, {
107808
+ value: prevLog
107809
+ }),
107810
+ info: assign({}, props, {
107811
+ value: prevInfo
107812
+ }),
107813
+ warn: assign({}, props, {
107814
+ value: prevWarn
107815
+ }),
107816
+ error: assign({}, props, {
107817
+ value: prevError
107818
+ }),
107819
+ group: assign({}, props, {
107820
+ value: prevGroup
107821
+ }),
107822
+ groupCollapsed: assign({}, props, {
107823
+ value: prevGroupCollapsed
107824
+ }),
107825
+ groupEnd: assign({}, props, {
107826
+ value: prevGroupEnd
107827
+ })
107828
+ });
107829
+ }
107830
+ if (disabledDepth < 0) {
107831
+ error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
107832
+ }
107833
+ }
107834
+ }
107835
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
107836
+ var prefix2;
107837
+ function describeBuiltInComponentFrame(name2, source, ownerFn) {
107838
+ {
107839
+ if (prefix2 === void 0) {
107840
+ try {
107841
+ throw Error();
107842
+ } catch (x5) {
107843
+ var match2 = x5.stack.trim().match(/\n( *(at )?)/);
107844
+ prefix2 = match2 && match2[1] || "";
107845
+ }
107846
+ }
107847
+ return "\n" + prefix2 + name2;
107848
+ }
107849
+ }
107850
+ var reentry = false;
107851
+ var componentFrameCache;
107852
+ {
107853
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
107854
+ componentFrameCache = new PossiblyWeakMap();
107855
+ }
107856
+ function describeNativeComponentFrame(fn, construct) {
107857
+ if (!fn || reentry) {
107858
+ return "";
107859
+ }
107860
+ {
107861
+ var frame = componentFrameCache.get(fn);
107862
+ if (frame !== void 0) {
107863
+ return frame;
107864
+ }
107865
+ }
107866
+ var control;
107867
+ reentry = true;
107868
+ var previousPrepareStackTrace = Error.prepareStackTrace;
107869
+ Error.prepareStackTrace = void 0;
107870
+ var previousDispatcher;
107871
+ {
107872
+ previousDispatcher = ReactCurrentDispatcher$1.current;
107873
+ ReactCurrentDispatcher$1.current = null;
107874
+ disableLogs();
107875
+ }
107876
+ try {
107877
+ if (construct) {
107878
+ var Fake = function() {
107879
+ throw Error();
107880
+ };
107881
+ Object.defineProperty(Fake.prototype, "props", {
107882
+ set: function() {
107883
+ throw Error();
107884
+ }
107885
+ });
107886
+ if (typeof Reflect === "object" && Reflect.construct) {
107887
+ try {
107888
+ Reflect.construct(Fake, []);
107889
+ } catch (x5) {
107890
+ control = x5;
107891
+ }
107892
+ Reflect.construct(fn, [], Fake);
107893
+ } else {
107894
+ try {
107895
+ Fake.call();
107896
+ } catch (x5) {
107897
+ control = x5;
107898
+ }
107899
+ fn.call(Fake.prototype);
107900
+ }
107901
+ } else {
107902
+ try {
107903
+ throw Error();
107904
+ } catch (x5) {
107905
+ control = x5;
107906
+ }
107907
+ fn();
107908
+ }
107909
+ } catch (sample) {
107910
+ if (sample && control && typeof sample.stack === "string") {
107911
+ var sampleLines = sample.stack.split("\n");
107912
+ var controlLines = control.stack.split("\n");
107913
+ var s5 = sampleLines.length - 1;
107914
+ var c5 = controlLines.length - 1;
107915
+ while (s5 >= 1 && c5 >= 0 && sampleLines[s5] !== controlLines[c5]) {
107916
+ c5--;
107917
+ }
107918
+ for (; s5 >= 1 && c5 >= 0; s5--, c5--) {
107919
+ if (sampleLines[s5] !== controlLines[c5]) {
107920
+ if (s5 !== 1 || c5 !== 1) {
107921
+ do {
107922
+ s5--;
107923
+ c5--;
107924
+ if (c5 < 0 || sampleLines[s5] !== controlLines[c5]) {
107925
+ var _frame = "\n" + sampleLines[s5].replace(" at new ", " at ");
107926
+ if (fn.displayName && _frame.includes("<anonymous>")) {
107927
+ _frame = _frame.replace("<anonymous>", fn.displayName);
107928
+ }
107929
+ {
107930
+ if (typeof fn === "function") {
107931
+ componentFrameCache.set(fn, _frame);
107932
+ }
107933
+ }
107934
+ return _frame;
107935
+ }
107936
+ } while (s5 >= 1 && c5 >= 0);
107937
+ }
107938
+ break;
107939
+ }
107940
+ }
107941
+ }
107942
+ } finally {
107943
+ reentry = false;
107944
+ {
107945
+ ReactCurrentDispatcher$1.current = previousDispatcher;
107946
+ reenableLogs();
107947
+ }
107948
+ Error.prepareStackTrace = previousPrepareStackTrace;
107949
+ }
107950
+ var name2 = fn ? fn.displayName || fn.name : "";
107951
+ var syntheticFrame = name2 ? describeBuiltInComponentFrame(name2) : "";
107952
+ {
107953
+ if (typeof fn === "function") {
107954
+ componentFrameCache.set(fn, syntheticFrame);
107955
+ }
107956
+ }
107957
+ return syntheticFrame;
107958
+ }
107959
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
107960
+ {
107961
+ return describeNativeComponentFrame(fn, false);
107962
+ }
107963
+ }
107964
+ function shouldConstruct(Component2) {
107965
+ var prototype = Component2.prototype;
107966
+ return !!(prototype && prototype.isReactComponent);
107967
+ }
107968
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
107969
+ if (type == null) {
107970
+ return "";
107971
+ }
107972
+ if (typeof type === "function") {
107973
+ {
107974
+ return describeNativeComponentFrame(type, shouldConstruct(type));
107975
+ }
107976
+ }
107977
+ if (typeof type === "string") {
107978
+ return describeBuiltInComponentFrame(type);
107979
+ }
107980
+ switch (type) {
107981
+ case REACT_SUSPENSE_TYPE:
107982
+ return describeBuiltInComponentFrame("Suspense");
107983
+ case REACT_SUSPENSE_LIST_TYPE:
107984
+ return describeBuiltInComponentFrame("SuspenseList");
107985
+ }
107986
+ if (typeof type === "object") {
107987
+ switch (type.$$typeof) {
107988
+ case REACT_FORWARD_REF_TYPE:
107989
+ return describeFunctionComponentFrame(type.render);
107990
+ case REACT_MEMO_TYPE:
107991
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
107992
+ case REACT_LAZY_TYPE: {
107993
+ var lazyComponent = type;
107994
+ var payload = lazyComponent._payload;
107995
+ var init = lazyComponent._init;
107996
+ try {
107997
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
107998
+ } catch (x5) {
107999
+ }
108000
+ }
108001
+ }
108002
+ }
108003
+ return "";
108004
+ }
108005
+ var loggedTypeFailures = {};
108006
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
108007
+ function setCurrentlyValidatingElement(element) {
108008
+ {
108009
+ if (element) {
108010
+ var owner = element._owner;
108011
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
108012
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
108013
+ } else {
108014
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
108015
+ }
108016
+ }
108017
+ }
108018
+ function checkPropTypes(typeSpecs, values2, location, componentName, element) {
108019
+ {
108020
+ var has = Function.call.bind(hasOwnProperty);
108021
+ for (var typeSpecName in typeSpecs) {
108022
+ if (has(typeSpecs, typeSpecName)) {
108023
+ var error$1 = void 0;
108024
+ try {
108025
+ if (typeof typeSpecs[typeSpecName] !== "function") {
108026
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
108027
+ err.name = "Invariant Violation";
108028
+ throw err;
108029
+ }
108030
+ error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
108031
+ } catch (ex) {
108032
+ error$1 = ex;
108033
+ }
108034
+ if (error$1 && !(error$1 instanceof Error)) {
108035
+ setCurrentlyValidatingElement(element);
108036
+ error2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
108037
+ setCurrentlyValidatingElement(null);
108038
+ }
108039
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
108040
+ loggedTypeFailures[error$1.message] = true;
108041
+ setCurrentlyValidatingElement(element);
108042
+ error2("Failed %s type: %s", location, error$1.message);
108043
+ setCurrentlyValidatingElement(null);
108044
+ }
108045
+ }
108046
+ }
108047
+ }
108048
+ }
108049
+ function setCurrentlyValidatingElement$1(element) {
108050
+ {
108051
+ if (element) {
108052
+ var owner = element._owner;
108053
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
108054
+ setExtraStackFrame(stack);
108055
+ } else {
108056
+ setExtraStackFrame(null);
108057
+ }
108058
+ }
108059
+ }
108060
+ var propTypesMisspellWarningShown;
108061
+ {
108062
+ propTypesMisspellWarningShown = false;
108063
+ }
108064
+ function getDeclarationErrorAddendum() {
108065
+ if (ReactCurrentOwner.current) {
108066
+ var name2 = getComponentNameFromType(ReactCurrentOwner.current.type);
108067
+ if (name2) {
108068
+ return "\n\nCheck the render method of `" + name2 + "`.";
108069
+ }
108070
+ }
108071
+ return "";
108072
+ }
108073
+ function getSourceInfoErrorAddendum(source) {
108074
+ if (source !== void 0) {
108075
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
108076
+ var lineNumber = source.lineNumber;
108077
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
108078
+ }
108079
+ return "";
108080
+ }
108081
+ function getSourceInfoErrorAddendumForProps(elementProps) {
108082
+ if (elementProps !== null && elementProps !== void 0) {
108083
+ return getSourceInfoErrorAddendum(elementProps.__source);
108084
+ }
108085
+ return "";
108086
+ }
108087
+ var ownerHasKeyUseWarning = {};
108088
+ function getCurrentComponentErrorInfo(parentType) {
108089
+ var info2 = getDeclarationErrorAddendum();
108090
+ if (!info2) {
108091
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
108092
+ if (parentName) {
108093
+ info2 = "\n\nCheck the top-level render call using <" + parentName + ">.";
108094
+ }
108095
+ }
108096
+ return info2;
108097
+ }
108098
+ function validateExplicitKey(element, parentType) {
108099
+ if (!element._store || element._store.validated || element.key != null) {
108100
+ return;
108101
+ }
108102
+ element._store.validated = true;
108103
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
108104
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
108105
+ return;
108106
+ }
108107
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
108108
+ var childOwner = "";
108109
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
108110
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
108111
+ }
108112
+ {
108113
+ setCurrentlyValidatingElement$1(element);
108114
+ error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
108115
+ setCurrentlyValidatingElement$1(null);
108116
+ }
108117
+ }
108118
+ function validateChildKeys(node, parentType) {
108119
+ if (typeof node !== "object") {
108120
+ return;
108121
+ }
108122
+ if (isArray(node)) {
108123
+ for (var i5 = 0; i5 < node.length; i5++) {
108124
+ var child = node[i5];
108125
+ if (isValidElement(child)) {
108126
+ validateExplicitKey(child, parentType);
108127
+ }
108128
+ }
108129
+ } else if (isValidElement(node)) {
108130
+ if (node._store) {
108131
+ node._store.validated = true;
108132
+ }
108133
+ } else if (node) {
108134
+ var iteratorFn = getIteratorFn(node);
108135
+ if (typeof iteratorFn === "function") {
108136
+ if (iteratorFn !== node.entries) {
108137
+ var iterator = iteratorFn.call(node);
108138
+ var step;
108139
+ while (!(step = iterator.next()).done) {
108140
+ if (isValidElement(step.value)) {
108141
+ validateExplicitKey(step.value, parentType);
108142
+ }
108143
+ }
108144
+ }
108145
+ }
108146
+ }
108147
+ }
108148
+ function validatePropTypes(element) {
108149
+ {
108150
+ var type = element.type;
108151
+ if (type === null || type === void 0 || typeof type === "string") {
108152
+ return;
108153
+ }
108154
+ var propTypes;
108155
+ if (typeof type === "function") {
108156
+ propTypes = type.propTypes;
108157
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
108158
+ // Inner props are checked in the reconciler.
108159
+ type.$$typeof === REACT_MEMO_TYPE)) {
108160
+ propTypes = type.propTypes;
108161
+ } else {
108162
+ return;
108163
+ }
108164
+ if (propTypes) {
108165
+ var name2 = getComponentNameFromType(type);
108166
+ checkPropTypes(propTypes, element.props, "prop", name2, element);
108167
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
108168
+ propTypesMisspellWarningShown = true;
108169
+ var _name = getComponentNameFromType(type);
108170
+ error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
108171
+ }
108172
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
108173
+ error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
108174
+ }
108175
+ }
108176
+ }
108177
+ function validateFragmentProps(fragment2) {
108178
+ {
108179
+ var keys = Object.keys(fragment2.props);
108180
+ for (var i5 = 0; i5 < keys.length; i5++) {
108181
+ var key = keys[i5];
108182
+ if (key !== "children" && key !== "key") {
108183
+ setCurrentlyValidatingElement$1(fragment2);
108184
+ error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
108185
+ setCurrentlyValidatingElement$1(null);
108186
+ break;
108187
+ }
108188
+ }
108189
+ if (fragment2.ref !== null) {
108190
+ setCurrentlyValidatingElement$1(fragment2);
108191
+ error2("Invalid attribute `ref` supplied to `React.Fragment`.");
108192
+ setCurrentlyValidatingElement$1(null);
108193
+ }
108194
+ }
108195
+ }
108196
+ function createElementWithValidation(type, props, children) {
108197
+ var validType = isValidElementType(type);
108198
+ if (!validType) {
108199
+ var info2 = "";
108200
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
108201
+ info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
108202
+ }
108203
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
108204
+ if (sourceInfo) {
108205
+ info2 += sourceInfo;
108206
+ } else {
108207
+ info2 += getDeclarationErrorAddendum();
108208
+ }
108209
+ var typeString;
108210
+ if (type === null) {
108211
+ typeString = "null";
108212
+ } else if (isArray(type)) {
108213
+ typeString = "array";
108214
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
108215
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
108216
+ info2 = " Did you accidentally export a JSX literal instead of a component?";
108217
+ } else {
108218
+ typeString = typeof type;
108219
+ }
108220
+ {
108221
+ error2("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info2);
108222
+ }
108223
+ }
108224
+ var element = createElement.apply(this, arguments);
108225
+ if (element == null) {
108226
+ return element;
108227
+ }
108228
+ if (validType) {
108229
+ for (var i5 = 2; i5 < arguments.length; i5++) {
108230
+ validateChildKeys(arguments[i5], type);
108231
+ }
108232
+ }
108233
+ if (type === REACT_FRAGMENT_TYPE) {
108234
+ validateFragmentProps(element);
108235
+ } else {
108236
+ validatePropTypes(element);
108237
+ }
108238
+ return element;
108239
+ }
108240
+ var didWarnAboutDeprecatedCreateFactory = false;
108241
+ function createFactoryWithValidation(type) {
108242
+ var validatedFactory = createElementWithValidation.bind(null, type);
108243
+ validatedFactory.type = type;
108244
+ {
108245
+ if (!didWarnAboutDeprecatedCreateFactory) {
108246
+ didWarnAboutDeprecatedCreateFactory = true;
108247
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
108248
+ }
108249
+ Object.defineProperty(validatedFactory, "type", {
108250
+ enumerable: false,
108251
+ get: function() {
108252
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
108253
+ Object.defineProperty(this, "type", {
108254
+ value: type
108255
+ });
108256
+ return type;
108257
+ }
108258
+ });
108259
+ }
108260
+ return validatedFactory;
108261
+ }
108262
+ function cloneElementWithValidation(element, props, children) {
108263
+ var newElement = cloneElement.apply(this, arguments);
108264
+ for (var i5 = 2; i5 < arguments.length; i5++) {
108265
+ validateChildKeys(arguments[i5], newElement.type);
108266
+ }
108267
+ validatePropTypes(newElement);
108268
+ return newElement;
108269
+ }
108270
+ function startTransition(scope, options) {
108271
+ var prevTransition = ReactCurrentBatchConfig.transition;
108272
+ ReactCurrentBatchConfig.transition = {};
108273
+ var currentTransition = ReactCurrentBatchConfig.transition;
108274
+ {
108275
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
108276
+ }
108277
+ try {
108278
+ scope();
108279
+ } finally {
108280
+ ReactCurrentBatchConfig.transition = prevTransition;
108281
+ {
108282
+ if (prevTransition === null && currentTransition._updatedFibers) {
108283
+ var updatedFibersCount = currentTransition._updatedFibers.size;
108284
+ if (updatedFibersCount > 10) {
108285
+ warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
108286
+ }
108287
+ currentTransition._updatedFibers.clear();
108288
+ }
108289
+ }
108290
+ }
108291
+ }
108292
+ var didWarnAboutMessageChannel = false;
108293
+ var enqueueTaskImpl = null;
108294
+ function enqueueTask(task) {
108295
+ if (enqueueTaskImpl === null) {
108296
+ try {
108297
+ var requireString = ("require" + Math.random()).slice(0, 7);
108298
+ var nodeRequire = module && module[requireString];
108299
+ enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
108300
+ } catch (_err) {
108301
+ enqueueTaskImpl = function(callback) {
108302
+ {
108303
+ if (didWarnAboutMessageChannel === false) {
108304
+ didWarnAboutMessageChannel = true;
108305
+ if (typeof MessageChannel === "undefined") {
108306
+ error2("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
108307
+ }
108308
+ }
108309
+ }
108310
+ var channel = new MessageChannel();
108311
+ channel.port1.onmessage = callback;
108312
+ channel.port2.postMessage(void 0);
108313
+ };
108314
+ }
108315
+ }
108316
+ return enqueueTaskImpl(task);
108317
+ }
108318
+ var actScopeDepth = 0;
108319
+ var didWarnNoAwaitAct = false;
108320
+ function act(callback) {
108321
+ {
108322
+ var prevActScopeDepth = actScopeDepth;
108323
+ actScopeDepth++;
108324
+ if (ReactCurrentActQueue.current === null) {
108325
+ ReactCurrentActQueue.current = [];
108326
+ }
108327
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
108328
+ var result;
108329
+ try {
108330
+ ReactCurrentActQueue.isBatchingLegacy = true;
108331
+ result = callback();
108332
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
108333
+ var queue = ReactCurrentActQueue.current;
108334
+ if (queue !== null) {
108335
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
108336
+ flushActQueue(queue);
108337
+ }
108338
+ }
108339
+ } catch (error3) {
108340
+ popActScope(prevActScopeDepth);
108341
+ throw error3;
108342
+ } finally {
108343
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
108344
+ }
108345
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
108346
+ var thenableResult = result;
108347
+ var wasAwaited = false;
108348
+ var thenable = {
108349
+ then: function(resolve, reject) {
108350
+ wasAwaited = true;
108351
+ thenableResult.then(function(returnValue2) {
108352
+ popActScope(prevActScopeDepth);
108353
+ if (actScopeDepth === 0) {
108354
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
108355
+ } else {
108356
+ resolve(returnValue2);
108357
+ }
108358
+ }, function(error3) {
108359
+ popActScope(prevActScopeDepth);
108360
+ reject(error3);
108361
+ });
108362
+ }
108363
+ };
108364
+ {
108365
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
108366
+ Promise.resolve().then(function() {
108367
+ }).then(function() {
108368
+ if (!wasAwaited) {
108369
+ didWarnNoAwaitAct = true;
108370
+ error2("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
108371
+ }
108372
+ });
108373
+ }
108374
+ }
108375
+ return thenable;
108376
+ } else {
108377
+ var returnValue = result;
108378
+ popActScope(prevActScopeDepth);
108379
+ if (actScopeDepth === 0) {
108380
+ var _queue4 = ReactCurrentActQueue.current;
108381
+ if (_queue4 !== null) {
108382
+ flushActQueue(_queue4);
108383
+ ReactCurrentActQueue.current = null;
108384
+ }
108385
+ var _thenable = {
108386
+ then: function(resolve, reject) {
108387
+ if (ReactCurrentActQueue.current === null) {
108388
+ ReactCurrentActQueue.current = [];
108389
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
108390
+ } else {
108391
+ resolve(returnValue);
108392
+ }
108393
+ }
108394
+ };
108395
+ return _thenable;
108396
+ } else {
108397
+ var _thenable2 = {
108398
+ then: function(resolve, reject) {
108399
+ resolve(returnValue);
108400
+ }
108401
+ };
108402
+ return _thenable2;
108403
+ }
108404
+ }
108405
+ }
108406
+ }
108407
+ function popActScope(prevActScopeDepth) {
108408
+ {
108409
+ if (prevActScopeDepth !== actScopeDepth - 1) {
108410
+ error2("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
108411
+ }
108412
+ actScopeDepth = prevActScopeDepth;
108413
+ }
108414
+ }
108415
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
108416
+ {
108417
+ var queue = ReactCurrentActQueue.current;
108418
+ if (queue !== null) {
108419
+ try {
108420
+ flushActQueue(queue);
108421
+ enqueueTask(function() {
108422
+ if (queue.length === 0) {
108423
+ ReactCurrentActQueue.current = null;
108424
+ resolve(returnValue);
108425
+ } else {
108426
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
108427
+ }
108428
+ });
108429
+ } catch (error3) {
108430
+ reject(error3);
108431
+ }
108432
+ } else {
108433
+ resolve(returnValue);
108434
+ }
108435
+ }
108436
+ }
108437
+ var isFlushing = false;
108438
+ function flushActQueue(queue) {
108439
+ {
108440
+ if (!isFlushing) {
108441
+ isFlushing = true;
108442
+ var i5 = 0;
108443
+ try {
108444
+ for (; i5 < queue.length; i5++) {
108445
+ var callback = queue[i5];
108446
+ do {
108447
+ callback = callback(true);
108448
+ } while (callback !== null);
108449
+ }
108450
+ queue.length = 0;
108451
+ } catch (error3) {
108452
+ queue = queue.slice(i5 + 1);
108453
+ throw error3;
108454
+ } finally {
108455
+ isFlushing = false;
108456
+ }
108457
+ }
108458
+ }
108459
+ }
108460
+ var createElement$1 = createElementWithValidation;
108461
+ var cloneElement$1 = cloneElementWithValidation;
108462
+ var createFactory = createFactoryWithValidation;
108463
+ var Children = {
108464
+ map: mapChildren,
108465
+ forEach: forEachChildren,
108466
+ count: countChildren,
108467
+ toArray,
108468
+ only: onlyChild
108469
+ };
108470
+ exports.Children = Children;
108471
+ exports.Component = Component;
108472
+ exports.Fragment = REACT_FRAGMENT_TYPE;
108473
+ exports.Profiler = REACT_PROFILER_TYPE;
108474
+ exports.PureComponent = PureComponent;
108475
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
108476
+ exports.Suspense = REACT_SUSPENSE_TYPE;
108477
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
108478
+ exports.act = act;
108479
+ exports.cloneElement = cloneElement$1;
108480
+ exports.createContext = createContext;
108481
+ exports.createElement = createElement$1;
108482
+ exports.createFactory = createFactory;
108483
+ exports.createRef = createRef;
108484
+ exports.forwardRef = forwardRef;
108485
+ exports.isValidElement = isValidElement;
108486
+ exports.lazy = lazy;
108487
+ exports.memo = memo;
108488
+ exports.startTransition = startTransition;
108489
+ exports.unstable_act = act;
108490
+ exports.useCallback = useCallback;
108491
+ exports.useContext = useContext;
108492
+ exports.useDebugValue = useDebugValue;
108493
+ exports.useDeferredValue = useDeferredValue;
108494
+ exports.useEffect = useEffect3;
108495
+ exports.useId = useId;
108496
+ exports.useImperativeHandle = useImperativeHandle;
108497
+ exports.useInsertionEffect = useInsertionEffect;
108498
+ exports.useLayoutEffect = useLayoutEffect;
108499
+ exports.useMemo = useMemo;
108500
+ exports.useReducer = useReducer3;
108501
+ exports.useRef = useRef;
108502
+ exports.useState = useState;
108503
+ exports.useSyncExternalStore = useSyncExternalStore;
108504
+ exports.useTransition = useTransition;
108505
+ exports.version = ReactVersion;
108506
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
108507
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
108508
+ }
108509
+ })();
108510
+ }
108511
+ }
108512
+ });
108513
+
108514
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
108515
+ var require_react = __commonJS({
108516
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
108517
+ "use strict";
108518
+ if (process.env.NODE_ENV === "production") {
108519
+ module.exports = require_react_production_min();
108520
+ } else {
108521
+ module.exports = require_react_development();
108522
+ }
108523
+ }
108524
+ });
108525
+
108526
+ // ../drizzle-orm/dist/expo-sqlite/migrator.js
108527
+ var migrator_exports5 = {};
108528
+ __export(migrator_exports5, {
108529
+ migrate: () => migrate5,
108530
+ useMigrations: () => useMigrations
108531
+ });
108532
+ async function readMigrationFiles2({ journal, migrations }) {
108533
+ const migrationQueries = [];
108534
+ for await (const journalEntry of journal.entries) {
108535
+ const query = migrations[`m${journalEntry.idx.toString().padStart(4, "0")}`];
108536
+ if (!query) {
108537
+ throw new Error(`Missing migration: ${journalEntry.tag}`);
108538
+ }
108539
+ try {
108540
+ const result = query.split("--> statement-breakpoint").map((it) => {
108541
+ return it;
108542
+ });
108543
+ migrationQueries.push({
108544
+ sql: result,
108545
+ bps: journalEntry.breakpoints,
108546
+ folderMillis: journalEntry.when,
108547
+ hash: ""
108548
+ });
108549
+ } catch {
108550
+ throw new Error(`Failed to parse migration: ${journalEntry.tag}`);
108551
+ }
108552
+ }
108553
+ return migrationQueries;
108554
+ }
108555
+ async function migrate5(db2, config) {
108556
+ const migrations = await readMigrationFiles2(config);
108557
+ return db2.dialect.migrate(migrations, db2.session);
108558
+ }
108559
+ var import_react, useMigrations;
108560
+ var init_migrator6 = __esm({
108561
+ "../drizzle-orm/dist/expo-sqlite/migrator.js"() {
108562
+ "use strict";
108563
+ import_react = __toESM(require_react(), 1);
108564
+ useMigrations = (db2, migrations) => {
108565
+ const initialState = {
108566
+ success: false,
108567
+ error: void 0
108568
+ };
108569
+ const fetchReducer = (state2, action) => {
108570
+ switch (action.type) {
108571
+ case "migrating": {
108572
+ return { ...initialState };
108573
+ }
108574
+ case "migrated": {
108575
+ return { ...initialState, success: action.payload };
108576
+ }
108577
+ case "error": {
108578
+ return { ...initialState, error: action.payload };
108579
+ }
108580
+ default: {
108581
+ return state2;
108582
+ }
108583
+ }
108584
+ };
108585
+ const [state, dispatch] = (0, import_react.useReducer)(fetchReducer, initialState);
108586
+ (0, import_react.useEffect)(() => {
108587
+ dispatch({ type: "migrating" });
108588
+ migrate5(db2, migrations).then(() => {
108589
+ dispatch({ type: "migrated", payload: true });
108590
+ }).catch((error2) => {
108591
+ dispatch({ type: "error", payload: error2 });
108592
+ });
108593
+ }, []);
108594
+ return state;
108595
+ };
108596
+ }
108597
+ });
108598
+
108599
+ // ../drizzle-orm/dist/libsql/migrator.js
108600
+ var migrator_exports6 = {};
108601
+ __export(migrator_exports6, {
108602
+ migrate: () => migrate6
108603
+ });
108604
+ async function migrate6(db2, config) {
108605
+ const migrations = readMigrationFiles(config);
108606
+ const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108607
+ const migrationTableCreate = sql`
108608
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
108609
+ id SERIAL PRIMARY KEY,
108610
+ hash text NOT NULL,
108611
+ created_at numeric
108612
+ )
108613
+ `;
108614
+ await db2.session.run(migrationTableCreate);
108615
+ const dbMigrations = await db2.values(
108616
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
108617
+ );
108618
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108619
+ const statementToBatch = [];
108620
+ for (const migration of migrations) {
108621
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
108622
+ for (const stmt of migration.sql) {
108623
+ statementToBatch.push(db2.run(sql.raw(stmt)));
108624
+ }
108625
+ statementToBatch.push(
108626
+ db2.run(
108627
+ sql`INSERT INTO ${sql.identifier(migrationsTable)} ("hash", "created_at") VALUES(${migration.hash}, ${migration.folderMillis})`
108628
+ )
108629
+ );
108630
+ }
108631
+ }
108632
+ await db2.session.batch(statementToBatch);
108633
+ }
108634
+ var init_migrator7 = __esm({
108635
+ "../drizzle-orm/dist/libsql/migrator.js"() {
108636
+ "use strict";
108637
+ init_migrator();
108638
+ init_sql();
108639
+ }
108640
+ });
108641
+
108642
+ // ../drizzle-orm/dist/mysql-proxy/migrator.js
108643
+ var migrator_exports7 = {};
108644
+ __export(migrator_exports7, {
108645
+ migrate: () => migrate7
108646
+ });
108647
+ async function migrate7(db2, callback, config) {
108648
+ const migrations = readMigrationFiles(config);
108649
+ const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
108650
+ const migrationTableCreate = sql`
108651
+ create table if not exists ${sql.identifier(migrationsTable)} (
108652
+ id serial primary key,
108653
+ hash text not null,
108654
+ created_at bigint
108655
+ )
108656
+ `;
108657
+ await db2.execute(migrationTableCreate);
108658
+ const dbMigrations = await db2.select({
108659
+ id: sql.raw("id"),
108660
+ hash: sql.raw("hash"),
108661
+ created_at: sql.raw("created_at")
108662
+ }).from(sql.identifier(migrationsTable).getSQL()).orderBy(
108663
+ sql.raw("created_at desc")
108664
+ ).limit(1);
108665
+ const lastDbMigration = dbMigrations[0];
108666
+ const queriesToRun = [];
108667
+ for (const migration of migrations) {
108668
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108669
+ queriesToRun.push(
108670
+ ...migration.sql,
108671
+ `insert into ${sql.identifier(migrationsTable).value} (\`hash\`, \`created_at\`) values('${migration.hash}', '${migration.folderMillis}')`
108672
+ );
108673
+ }
108674
+ }
108675
+ await callback(queriesToRun);
108676
+ }
108677
+ var init_migrator8 = __esm({
108678
+ "../drizzle-orm/dist/mysql-proxy/migrator.js"() {
108679
+ "use strict";
108680
+ init_migrator();
108681
+ init_sql();
108682
+ }
108683
+ });
108684
+
108685
+ // ../drizzle-orm/dist/mysql2/migrator.js
108686
+ var migrator_exports8 = {};
108687
+ __export(migrator_exports8, {
108688
+ migrate: () => migrate8
108689
+ });
108690
+ async function migrate8(db2, config) {
108691
+ const migrations = readMigrationFiles(config);
108692
+ await db2.dialect.migrate(migrations, db2.session, config);
108693
+ }
108694
+ var init_migrator9 = __esm({
108695
+ "../drizzle-orm/dist/mysql2/migrator.js"() {
108696
+ "use strict";
108697
+ init_migrator();
108698
+ }
108699
+ });
108700
+
108701
+ // ../drizzle-orm/dist/neon-http/migrator.js
108702
+ var migrator_exports9 = {};
108703
+ __export(migrator_exports9, {
108704
+ migrate: () => migrate9
108705
+ });
108706
+ async function migrate9(db2, config) {
108707
+ const migrations = readMigrationFiles(config);
108708
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108709
+ const migrationsSchema = typeof config === "string" ? "drizzle" : config.migrationsSchema ?? "drizzle";
108710
+ const migrationTableCreate = sql`
108711
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} (
108712
+ id SERIAL PRIMARY KEY,
108713
+ hash text NOT NULL,
108714
+ created_at bigint
108715
+ )
108716
+ `;
108717
+ await db2.session.execute(sql`CREATE SCHEMA IF NOT EXISTS ${sql.identifier(migrationsSchema)}`);
108718
+ await db2.session.execute(migrationTableCreate);
108719
+ const dbMigrations = await db2.session.all(
108720
+ sql`select id, hash, created_at from ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} order by created_at desc limit 1`
108721
+ );
108722
+ const lastDbMigration = dbMigrations[0];
108723
+ const rowsToInsert = [];
108724
+ for await (const migration of migrations) {
108725
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108726
+ for (const stmt of migration.sql) {
108727
+ await db2.session.execute(sql.raw(stmt));
108728
+ }
108729
+ rowsToInsert.push(
108730
+ sql`insert into ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} ("hash", "created_at") values(${migration.hash}, ${migration.folderMillis})`
108731
+ );
108732
+ }
108733
+ }
108734
+ for await (const rowToInsert of rowsToInsert) {
108735
+ await db2.session.execute(rowToInsert);
108736
+ }
108737
+ }
108738
+ var init_migrator10 = __esm({
108739
+ "../drizzle-orm/dist/neon-http/migrator.js"() {
108740
+ "use strict";
108741
+ init_migrator();
108742
+ init_sql();
108743
+ }
108744
+ });
108745
+
108746
+ // ../drizzle-orm/dist/neon-serverless/migrator.js
108747
+ var migrator_exports10 = {};
108748
+ __export(migrator_exports10, {
108749
+ migrate: () => migrate10
108750
+ });
108751
+ async function migrate10(db2, config) {
108752
+ const migrations = readMigrationFiles(config);
108753
+ await db2.dialect.migrate(migrations, db2.session, config);
108754
+ }
108755
+ var init_migrator11 = __esm({
108756
+ "../drizzle-orm/dist/neon-serverless/migrator.js"() {
108757
+ "use strict";
108758
+ init_migrator();
108759
+ }
108760
+ });
108761
+
108762
+ // ../drizzle-orm/dist/node-postgres/migrator.js
108763
+ var migrator_exports11 = {};
108764
+ __export(migrator_exports11, {
108765
+ migrate: () => migrate11
108766
+ });
108767
+ async function migrate11(db2, config) {
108768
+ const migrations = readMigrationFiles(config);
108769
+ await db2.dialect.migrate(migrations, db2.session, config);
108770
+ }
108771
+ var init_migrator12 = __esm({
108772
+ "../drizzle-orm/dist/node-postgres/migrator.js"() {
108773
+ "use strict";
108774
+ init_migrator();
108775
+ }
108776
+ });
108777
+
108778
+ // ../drizzle-orm/dist/op-sqlite/migrator.js
108779
+ var migrator_exports12 = {};
108780
+ __export(migrator_exports12, {
108781
+ migrate: () => migrate12,
108782
+ useMigrations: () => useMigrations2
108783
+ });
108784
+ async function readMigrationFiles3({ journal, migrations }) {
108785
+ const migrationQueries = [];
108786
+ for await (const journalEntry of journal.entries) {
108787
+ const query = migrations[`m${journalEntry.idx.toString().padStart(4, "0")}`];
108788
+ if (!query) {
108789
+ throw new Error(`Missing migration: ${journalEntry.tag}`);
108790
+ }
108791
+ try {
108792
+ const result = query.split("--> statement-breakpoint").map((it) => {
108793
+ return it;
108794
+ });
108795
+ migrationQueries.push({
108796
+ sql: result,
108797
+ bps: journalEntry.breakpoints,
108798
+ folderMillis: journalEntry.when,
108799
+ hash: ""
108800
+ });
108801
+ } catch {
108802
+ throw new Error(`Failed to parse migration: ${journalEntry.tag}`);
108803
+ }
108804
+ }
108805
+ return migrationQueries;
108806
+ }
108807
+ async function migrate12(db2, config) {
108808
+ const migrations = await readMigrationFiles3(config);
108809
+ return db2.dialect.migrate(migrations, db2.session);
108810
+ }
108811
+ var import_react2, useMigrations2;
108812
+ var init_migrator13 = __esm({
108813
+ "../drizzle-orm/dist/op-sqlite/migrator.js"() {
108814
+ "use strict";
108815
+ import_react2 = __toESM(require_react(), 1);
108816
+ useMigrations2 = (db2, migrations) => {
108817
+ const initialState = {
108818
+ success: false,
108819
+ error: void 0
108820
+ };
108821
+ const fetchReducer = (state2, action) => {
108822
+ switch (action.type) {
108823
+ case "migrating": {
108824
+ return { ...initialState };
108825
+ }
108826
+ case "migrated": {
108827
+ return { ...initialState, success: action.payload };
108828
+ }
108829
+ case "error": {
108830
+ return { ...initialState, error: action.payload };
108831
+ }
108832
+ default: {
108833
+ return state2;
108834
+ }
108835
+ }
108836
+ };
108837
+ const [state, dispatch] = (0, import_react2.useReducer)(fetchReducer, initialState);
108838
+ (0, import_react2.useEffect)(() => {
108839
+ dispatch({ type: "migrating" });
108840
+ migrate12(db2, migrations).then(() => {
108841
+ dispatch({ type: "migrated", payload: true });
108842
+ }).catch((error2) => {
108843
+ dispatch({ type: "error", payload: error2 });
108844
+ });
108845
+ }, []);
108846
+ return state;
108847
+ };
108848
+ }
108849
+ });
108850
+
108851
+ // ../drizzle-orm/dist/pg-proxy/migrator.js
108852
+ var migrator_exports13 = {};
108853
+ __export(migrator_exports13, {
108854
+ migrate: () => migrate13
108855
+ });
108856
+ async function migrate13(db2, callback, config) {
108857
+ const migrations = readMigrationFiles(config);
108858
+ const migrationTableCreate = sql`
108859
+ CREATE TABLE IF NOT EXISTS "drizzle"."__drizzle_migrations" (
108860
+ id SERIAL PRIMARY KEY,
108861
+ hash text NOT NULL,
108862
+ created_at numeric
108863
+ )
108864
+ `;
108865
+ await db2.execute(sql`CREATE SCHEMA IF NOT EXISTS "drizzle"`);
108866
+ await db2.execute(migrationTableCreate);
108867
+ const dbMigrations = await db2.execute(
108868
+ sql`SELECT id, hash, created_at FROM "drizzle"."__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`
108869
+ );
108870
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108871
+ const queriesToRun = [];
108872
+ for (const migration of migrations) {
108873
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108874
+ queriesToRun.push(
108875
+ ...migration.sql,
108876
+ `INSERT INTO "drizzle"."__drizzle_migrations" ("hash", "created_at") VALUES('${migration.hash}', '${migration.folderMillis}')`
108877
+ );
108878
+ }
108879
+ }
108880
+ await callback(queriesToRun);
108881
+ }
108882
+ var init_migrator14 = __esm({
108883
+ "../drizzle-orm/dist/pg-proxy/migrator.js"() {
108884
+ "use strict";
108885
+ init_migrator();
108886
+ init_sql();
108887
+ }
108888
+ });
108889
+
108890
+ // ../drizzle-orm/dist/pglite/migrator.js
108891
+ var migrator_exports14 = {};
108892
+ __export(migrator_exports14, {
108893
+ migrate: () => migrate14
108894
+ });
108895
+ async function migrate14(db2, config) {
108896
+ const migrations = readMigrationFiles(config);
108897
+ await db2.dialect.migrate(migrations, db2.session, config);
108898
+ }
108899
+ var init_migrator15 = __esm({
108900
+ "../drizzle-orm/dist/pglite/migrator.js"() {
108901
+ "use strict";
108902
+ init_migrator();
108903
+ }
108904
+ });
108905
+
108906
+ // ../drizzle-orm/dist/planetscale-serverless/migrator.js
108907
+ var migrator_exports15 = {};
108908
+ __export(migrator_exports15, {
108909
+ migrate: () => migrate15
108910
+ });
108911
+ async function migrate15(db2, config) {
108912
+ const migrations = readMigrationFiles(config);
108913
+ await db2.dialect.migrate(migrations, db2.session, config);
108914
+ }
108915
+ var init_migrator16 = __esm({
108916
+ "../drizzle-orm/dist/planetscale-serverless/migrator.js"() {
108917
+ "use strict";
108918
+ init_migrator();
108919
+ }
108920
+ });
108921
+
108922
+ // ../drizzle-orm/dist/postgres-js/migrator.js
108923
+ var migrator_exports16 = {};
108924
+ __export(migrator_exports16, {
108925
+ migrate: () => migrate16
108926
+ });
108927
+ async function migrate16(db2, config) {
108928
+ const migrations = readMigrationFiles(config);
108929
+ await db2.dialect.migrate(migrations, db2.session, config);
108930
+ }
108931
+ var init_migrator17 = __esm({
108932
+ "../drizzle-orm/dist/postgres-js/migrator.js"() {
108933
+ "use strict";
108934
+ init_migrator();
108935
+ }
108936
+ });
108937
+
108938
+ // ../drizzle-orm/dist/sqlite-proxy/migrator.js
108939
+ var migrator_exports17 = {};
108940
+ __export(migrator_exports17, {
108941
+ migrate: () => migrate17
108942
+ });
108943
+ async function migrate17(db2, callback, config) {
108944
+ const migrations = readMigrationFiles(config);
108945
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108946
+ const migrationTableCreate = sql`
108947
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
108948
+ id SERIAL PRIMARY KEY,
108949
+ hash text NOT NULL,
108950
+ created_at numeric
108951
+ )
108952
+ `;
108953
+ await db2.run(migrationTableCreate);
108954
+ const dbMigrations = await db2.values(
108955
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
108956
+ );
108957
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108958
+ const queriesToRun = [];
108959
+ for (const migration of migrations) {
108960
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
108961
+ queriesToRun.push(
108962
+ ...migration.sql,
108963
+ `INSERT INTO \`${migrationsTable}\` ("hash", "created_at") VALUES('${migration.hash}', '${migration.folderMillis}')`
108964
+ );
108965
+ }
108966
+ }
108967
+ await callback(queriesToRun);
108968
+ }
108969
+ var init_migrator18 = __esm({
108970
+ "../drizzle-orm/dist/sqlite-proxy/migrator.js"() {
108971
+ "use strict";
108972
+ init_migrator();
108973
+ init_sql();
108974
+ }
108975
+ });
108976
+
108977
+ // ../drizzle-orm/dist/tidb-serverless/migrator.js
108978
+ var migrator_exports18 = {};
108979
+ __export(migrator_exports18, {
108980
+ migrate: () => migrate18
108981
+ });
108982
+ async function migrate18(db2, config) {
108983
+ const migrations = readMigrationFiles(config);
108984
+ await db2.dialect.migrate(migrations, db2.session, config);
108985
+ }
108986
+ var init_migrator19 = __esm({
108987
+ "../drizzle-orm/dist/tidb-serverless/migrator.js"() {
108988
+ "use strict";
108989
+ init_migrator();
108990
+ }
108991
+ });
108992
+
108993
+ // ../drizzle-orm/dist/vercel-postgres/migrator.js
108994
+ var migrator_exports19 = {};
108995
+ __export(migrator_exports19, {
108996
+ migrate: () => migrate19
108997
+ });
108998
+ async function migrate19(db2, config) {
108999
+ const migrations = readMigrationFiles(config);
109000
+ await db2.dialect.migrate(migrations, db2.session, config);
109001
+ }
109002
+ var init_migrator20 = __esm({
109003
+ "../drizzle-orm/dist/vercel-postgres/migrator.js"() {
109004
+ "use strict";
109005
+ init_migrator();
109006
+ }
109007
+ });
109008
+
109009
+ // ../drizzle-orm/dist/xata-http/migrator.js
109010
+ var migrator_exports20 = {};
109011
+ __export(migrator_exports20, {
109012
+ migrate: () => migrate20
109013
+ });
109014
+ async function migrate20(db2, config) {
109015
+ const migrations = readMigrationFiles(config);
109016
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
109017
+ const migrationTableCreate = sql`
109018
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
109019
+ id SERIAL PRIMARY KEY,
109020
+ hash text NOT NULL,
109021
+ created_at bigint
109022
+ )
109023
+ `;
109024
+ await db2.session.execute(migrationTableCreate);
109025
+ const dbMigrations = await db2.session.all(
109026
+ sql`select id, hash, created_at from ${sql.identifier(migrationsTable)} order by created_at desc limit 1`
109027
+ );
109028
+ const lastDbMigration = dbMigrations[0];
109029
+ for await (const migration of migrations) {
109030
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
109031
+ for (const stmt of migration.sql) {
109032
+ await db2.session.execute(sql.raw(stmt));
109033
+ }
109034
+ await db2.session.execute(
109035
+ sql`insert into ${sql.identifier(migrationsTable)} ("hash", "created_at") values(${migration.hash}, ${migration.folderMillis})`
109036
+ );
109037
+ }
109038
+ }
109039
+ }
109040
+ var init_migrator21 = __esm({
109041
+ "../drizzle-orm/dist/xata-http/migrator.js"() {
109042
+ "use strict";
109043
+ init_migrator();
109044
+ init_sql();
109045
+ }
109046
+ });
109047
+
109048
+ // ../drizzle-orm/dist/monomigrator.js
109049
+ async function migrate21(type, db2, config, extraConfig) {
109050
+ const rest = [db2, config, extraConfig];
109051
+ switch (type) {
109052
+ case "aws-data-api-pg": {
109053
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator2(), migrator_exports));
109054
+ return migrate22(rest[0], rest[1]);
109055
+ }
109056
+ case "better-sqlite3": {
109057
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator3(), migrator_exports2));
109058
+ return migrate22(rest[0], rest[1]);
109059
+ }
109060
+ case "bun:sqlite": {
109061
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator4(), migrator_exports3));
109062
+ return migrate22(rest[0], rest[1]);
109063
+ }
109064
+ case "d1": {
109065
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator5(), migrator_exports4));
109066
+ return migrate22(rest[0], rest[1]);
109067
+ }
109068
+ case "expo-sqlite": {
109069
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator6(), migrator_exports5));
109070
+ return migrate22(rest[0], rest[1]);
109071
+ }
109072
+ case "libsql": {
109073
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator7(), migrator_exports6));
109074
+ return migrate22(rest[0], rest[1]);
109075
+ }
109076
+ case "mysql-proxy": {
109077
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator8(), migrator_exports7));
109078
+ return migrate22(rest[0], rest[1], rest[2]);
109079
+ }
109080
+ case "mysql2": {
109081
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator9(), migrator_exports8));
109082
+ return migrate22(rest[0], rest[1]);
109083
+ }
109084
+ case "neon-http": {
109085
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator10(), migrator_exports9));
109086
+ return migrate22(rest[0], rest[1]);
109087
+ }
109088
+ case "neon-serverless": {
109089
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator11(), migrator_exports10));
109090
+ return migrate22(rest[0], rest[1]);
109091
+ }
109092
+ case "node-postgres": {
109093
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator12(), migrator_exports11));
109094
+ return migrate22(rest[0], rest[1]);
109095
+ }
109096
+ case "op-sqlite": {
109097
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator13(), migrator_exports12));
109098
+ return migrate22(rest[0], rest[1]);
109099
+ }
109100
+ case "pg-proxy": {
109101
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator14(), migrator_exports13));
109102
+ return migrate22(rest[0], rest[1], rest[2]);
109103
+ }
109104
+ case "pglite": {
109105
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator15(), migrator_exports14));
109106
+ return migrate22(rest[0], rest[1]);
109107
+ }
109108
+ case "planetscale": {
109109
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator16(), migrator_exports15));
109110
+ return migrate22(rest[0], rest[1]);
109111
+ }
109112
+ case "postgres-js": {
109113
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator17(), migrator_exports16));
109114
+ return migrate22(rest[0], rest[1]);
109115
+ }
109116
+ case "sqlite-proxy": {
109117
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator18(), migrator_exports17));
109118
+ return migrate22(rest[0], rest[1], rest[2]);
109119
+ }
109120
+ case "tidb-serverless": {
109121
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator19(), migrator_exports18));
109122
+ return migrate22(rest[0], rest[1]);
109123
+ }
109124
+ case "vercel-postgres": {
109125
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator20(), migrator_exports19));
109126
+ return migrate22(rest[0], rest[1]);
109127
+ }
109128
+ case "xata-http": {
109129
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator21(), migrator_exports20));
109130
+ return migrate22(rest[0], rest[1]);
109131
+ }
109132
+ }
109133
+ }
109134
+ var init_monomigrator = __esm({
109135
+ "../drizzle-orm/dist/monomigrator.js"() {
109136
+ "use strict";
109137
+ }
109138
+ });
109139
+
106221
109140
  // ../drizzle-orm/dist/operations.js
106222
109141
  var init_operations = __esm({
106223
109142
  "../drizzle-orm/dist/operations.js"() {
@@ -106320,6 +109239,7 @@ __export(dist_exports3, {
106320
109239
  mapResultRow: () => mapResultRow,
106321
109240
  mapUpdateSet: () => mapUpdateSet,
106322
109241
  max: () => max,
109242
+ migrate: () => migrate21,
106323
109243
  min: () => min,
106324
109244
  name: () => name,
106325
109245
  ne: () => ne,
@@ -106353,6 +109273,7 @@ var init_dist3 = __esm({
106353
109273
  init_expressions2();
106354
109274
  init_logger();
106355
109275
  init_monodriver();
109276
+ init_monomigrator();
106356
109277
  init_operations();
106357
109278
  init_query_promise();
106358
109279
  init_relations();
@@ -111551,4 +114472,26 @@ long/umd/index.js:
111551
114472
  * @license MIT
111552
114473
  *)
111553
114474
  *)
114475
+
114476
+ react/cjs/react.production.min.js:
114477
+ (**
114478
+ * @license React
114479
+ * react.production.min.js
114480
+ *
114481
+ * Copyright (c) Facebook, Inc. and its affiliates.
114482
+ *
114483
+ * This source code is licensed under the MIT license found in the
114484
+ * LICENSE file in the root directory of this source tree.
114485
+ *)
114486
+
114487
+ react/cjs/react.development.js:
114488
+ (**
114489
+ * @license React
114490
+ * react.development.js
114491
+ *
114492
+ * Copyright (c) Facebook, Inc. and its affiliates.
114493
+ *
114494
+ * This source code is licensed under the MIT license found in the
114495
+ * LICENSE file in the root directory of this source tree.
114496
+ *)
111554
114497
  */