@gvnrdao/dh-mcp 0.5.24 → 0.5.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/boundary.js CHANGED
@@ -1929,9 +1929,9 @@ var require_combined_stream = __commonJS({
1929
1929
  }
1930
1930
  });
1931
1931
 
1932
- // node_modules/axios/node_modules/mime-db/db.json
1932
+ // node_modules/form-data/node_modules/mime-db/db.json
1933
1933
  var require_db = __commonJS({
1934
- "node_modules/axios/node_modules/mime-db/db.json"(exports2, module2) {
1934
+ "node_modules/form-data/node_modules/mime-db/db.json"(exports2, module2) {
1935
1935
  module2.exports = {
1936
1936
  "application/1d-interleaved-parityfec": {
1937
1937
  source: "iana"
@@ -10454,17 +10454,17 @@ var require_db = __commonJS({
10454
10454
  }
10455
10455
  });
10456
10456
 
10457
- // node_modules/axios/node_modules/mime-db/index.js
10457
+ // node_modules/form-data/node_modules/mime-db/index.js
10458
10458
  var require_mime_db = __commonJS({
10459
- "node_modules/axios/node_modules/mime-db/index.js"(exports2, module2) {
10459
+ "node_modules/form-data/node_modules/mime-db/index.js"(exports2, module2) {
10460
10460
  "use strict";
10461
10461
  module2.exports = require_db();
10462
10462
  }
10463
10463
  });
10464
10464
 
10465
- // node_modules/axios/node_modules/mime-types/index.js
10465
+ // node_modules/form-data/node_modules/mime-types/index.js
10466
10466
  var require_mime_types = __commonJS({
10467
- "node_modules/axios/node_modules/mime-types/index.js"(exports2) {
10467
+ "node_modules/form-data/node_modules/mime-types/index.js"(exports2) {
10468
10468
  "use strict";
10469
10469
  var db = require_mime_db();
10470
10470
  var extname = require("path").extname;
@@ -11617,9 +11617,9 @@ var require_es_set_tostringtag = __commonJS({
11617
11617
  }
11618
11618
  });
11619
11619
 
11620
- // node_modules/axios/node_modules/form-data/lib/populate.js
11620
+ // node_modules/form-data/lib/populate.js
11621
11621
  var require_populate = __commonJS({
11622
- "node_modules/axios/node_modules/form-data/lib/populate.js"(exports2, module2) {
11622
+ "node_modules/form-data/lib/populate.js"(exports2, module2) {
11623
11623
  "use strict";
11624
11624
  module2.exports = function(dst, src) {
11625
11625
  Object.keys(src).forEach(function(prop) {
@@ -11630,9 +11630,9 @@ var require_populate = __commonJS({
11630
11630
  }
11631
11631
  });
11632
11632
 
11633
- // node_modules/axios/node_modules/form-data/lib/form_data.js
11633
+ // node_modules/form-data/lib/form_data.js
11634
11634
  var require_form_data = __commonJS({
11635
- "node_modules/axios/node_modules/form-data/lib/form_data.js"(exports2, module2) {
11635
+ "node_modules/form-data/lib/form_data.js"(exports2, module2) {
11636
11636
  "use strict";
11637
11637
  var CombinedStream = require_combined_stream();
11638
11638
  var util4 = require("util");
@@ -11642,7 +11642,7 @@ var require_form_data = __commonJS({
11642
11642
  var parseUrl2 = require("url").parse;
11643
11643
  var fs6 = require("fs");
11644
11644
  var Stream = require("stream").Stream;
11645
- var crypto6 = require("crypto");
11645
+ var crypto2 = require("crypto");
11646
11646
  var mime = require_mime_types();
11647
11647
  var asynckit = require_asynckit();
11648
11648
  var setToStringTag = require_es_set_tostringtag();
@@ -11851,7 +11851,7 @@ var require_form_data = __commonJS({
11851
11851
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
11852
11852
  };
11853
11853
  FormData3.prototype._generateBoundary = function() {
11854
- this._boundary = "--------------------------" + crypto6.randomBytes(12).toString("hex");
11854
+ this._boundary = "--------------------------" + crypto2.randomBytes(12).toString("hex");
11855
11855
  };
11856
11856
  FormData3.prototype.getLengthSync = function() {
11857
11857
  var knownLength = this._overheadLength + this._valueLength;
@@ -11966,7 +11966,7 @@ var require_ms = __commonJS({
11966
11966
  options = options || {};
11967
11967
  var type = typeof val;
11968
11968
  if (type === "string" && val.length > 0) {
11969
- return parse2(val);
11969
+ return parse(val);
11970
11970
  } else if (type === "number" && isFinite(val)) {
11971
11971
  return options.long ? fmtLong(val) : fmtShort(val);
11972
11972
  }
@@ -11974,7 +11974,7 @@ var require_ms = __commonJS({
11974
11974
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
11975
11975
  );
11976
11976
  };
11977
- function parse2(str) {
11977
+ function parse(str) {
11978
11978
  str = String(str);
11979
11979
  if (str.length > 100) {
11980
11980
  return;
@@ -12502,10 +12502,10 @@ var require_supports_color = __commonJS({
12502
12502
  return 3;
12503
12503
  }
12504
12504
  if ("TERM_PROGRAM" in env) {
12505
- const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
12505
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
12506
12506
  switch (env.TERM_PROGRAM) {
12507
12507
  case "iTerm.app":
12508
- return version2 >= 3 ? 3 : 2;
12508
+ return version >= 3 ? 3 : 2;
12509
12509
  case "Apple_Terminal":
12510
12510
  return 2;
12511
12511
  }
@@ -13196,7 +13196,7 @@ var require_follow_redirects = __commonJS({
13196
13196
  "node_modules/follow-redirects/index.js"(exports2, module2) {
13197
13197
  "use strict";
13198
13198
  var url2 = require("url");
13199
- var URL3 = url2.URL;
13199
+ var URL2 = url2.URL;
13200
13200
  var http4 = require("http");
13201
13201
  var https2 = require("https");
13202
13202
  var Writable = require("stream").Writable;
@@ -13212,7 +13212,7 @@ var require_follow_redirects = __commonJS({
13212
13212
  })();
13213
13213
  var useNativeURL = false;
13214
13214
  try {
13215
- assert(new URL3(""));
13215
+ assert(new URL2(""));
13216
13216
  } catch (error) {
13217
13217
  useNativeURL = error.code === "ERR_INVALID_URL";
13218
13218
  }
@@ -13607,7 +13607,7 @@ var require_follow_redirects = __commonJS({
13607
13607
  function parseUrl2(input) {
13608
13608
  var parsed;
13609
13609
  if (useNativeURL) {
13610
- parsed = new URL3(input);
13610
+ parsed = new URL2(input);
13611
13611
  } else {
13612
13612
  parsed = validateUrl(url2.parse(input));
13613
13613
  if (!isString2(parsed.protocol)) {
@@ -13617,7 +13617,7 @@ var require_follow_redirects = __commonJS({
13617
13617
  return parsed;
13618
13618
  }
13619
13619
  function resolveUrl(relative, base) {
13620
- return useNativeURL ? new URL3(relative, base) : parseUrl2(url2.resolve(base, relative));
13620
+ return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
13621
13621
  }
13622
13622
  function validateUrl(input) {
13623
13623
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -13699,7 +13699,7 @@ var require_follow_redirects = __commonJS({
13699
13699
  return typeof value === "object" && "length" in value;
13700
13700
  }
13701
13701
  function isURL(value) {
13702
- return URL3 && value instanceof URL3;
13702
+ return URL2 && value instanceof URL2;
13703
13703
  }
13704
13704
  function escapeRegex(regex) {
13705
13705
  return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
@@ -19007,7 +19007,7 @@ var require_axios = __commonJS({
19007
19007
  "node_modules/axios/dist/node/axios.cjs"(exports2, module2) {
19008
19008
  "use strict";
19009
19009
  var FormData$1 = require_form_data();
19010
- var crypto6 = require("crypto");
19010
+ var crypto2 = require("crypto");
19011
19011
  var url2 = require("url");
19012
19012
  var HttpsProxyAgent2 = require_dist2();
19013
19013
  var http4 = require("http");
@@ -20486,7 +20486,7 @@ var require_axios = __commonJS({
20486
20486
  length
20487
20487
  } = alphabet;
20488
20488
  const randomValues = new Uint32Array(size);
20489
- crypto6.randomFillSync(randomValues);
20489
+ crypto2.randomFillSync(randomValues);
20490
20490
  for (let i = 0; i < size; i++) {
20491
20491
  str += alphabet[randomValues[i] % length];
20492
20492
  }
@@ -23690,17 +23690,17 @@ var require_axios = __commonJS({
23690
23690
  };
23691
23691
  });
23692
23692
  var deprecatedWarnings2 = {};
23693
- validators$1.transitional = function transitional2(validator2, version2, message) {
23693
+ validators$1.transitional = function transitional2(validator2, version, message) {
23694
23694
  function formatMessage(opt, desc) {
23695
23695
  return "[Axios v" + VERSION3 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
23696
23696
  }
23697
23697
  return (value, opt, opts) => {
23698
23698
  if (validator2 === false) {
23699
- throw new AxiosError3(formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")), AxiosError3.ERR_DEPRECATED);
23699
+ throw new AxiosError3(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError3.ERR_DEPRECATED);
23700
23700
  }
23701
- if (version2 && !deprecatedWarnings2[opt]) {
23701
+ if (version && !deprecatedWarnings2[opt]) {
23702
23702
  deprecatedWarnings2[opt] = true;
23703
- console.warn(formatMessage(opt, " has been deprecated since v" + version2 + " and will be removed in the near future"));
23703
+ console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
23704
23704
  }
23705
23705
  return validator2 ? validator2(value, opt, opts) : true;
23706
23706
  };
@@ -28911,371 +28911,592 @@ var require_lit_ops_module = __commonJS({
28911
28911
  }
28912
28912
  });
28913
28913
 
28914
- // node_modules/uuid/dist/esm-node/rng.js
28915
- function rng() {
28916
- if (poolPtr > rnds8Pool.length - 16) {
28917
- import_crypto2.default.randomFillSync(rnds8Pool);
28918
- poolPtr = 0;
28914
+ // node_modules/uuid/dist/cjs/max.js
28915
+ var require_max2 = __commonJS({
28916
+ "node_modules/uuid/dist/cjs/max.js"(exports2) {
28917
+ "use strict";
28918
+ Object.defineProperty(exports2, "__esModule", { value: true });
28919
+ exports2.default = "ffffffff-ffff-ffff-ffff-ffffffffffff";
28919
28920
  }
28920
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
28921
- }
28922
- var import_crypto2, rnds8Pool, poolPtr;
28923
- var init_rng = __esm({
28924
- "node_modules/uuid/dist/esm-node/rng.js"() {
28921
+ });
28922
+
28923
+ // node_modules/uuid/dist/cjs/nil.js
28924
+ var require_nil = __commonJS({
28925
+ "node_modules/uuid/dist/cjs/nil.js"(exports2) {
28925
28926
  "use strict";
28926
- import_crypto2 = __toESM(require("crypto"));
28927
- rnds8Pool = new Uint8Array(256);
28928
- poolPtr = rnds8Pool.length;
28927
+ Object.defineProperty(exports2, "__esModule", { value: true });
28928
+ exports2.default = "00000000-0000-0000-0000-000000000000";
28929
28929
  }
28930
28930
  });
28931
28931
 
28932
- // node_modules/uuid/dist/esm-node/regex.js
28933
- var regex_default;
28934
- var init_regex = __esm({
28935
- "node_modules/uuid/dist/esm-node/regex.js"() {
28932
+ // node_modules/uuid/dist/cjs/regex.js
28933
+ var require_regex = __commonJS({
28934
+ "node_modules/uuid/dist/cjs/regex.js"(exports2) {
28936
28935
  "use strict";
28937
- regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
28936
+ Object.defineProperty(exports2, "__esModule", { value: true });
28937
+ exports2.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
28938
28938
  }
28939
28939
  });
28940
28940
 
28941
- // node_modules/uuid/dist/esm-node/validate.js
28942
- function validate(uuid) {
28943
- return typeof uuid === "string" && regex_default.test(uuid);
28944
- }
28945
- var validate_default;
28946
- var init_validate = __esm({
28947
- "node_modules/uuid/dist/esm-node/validate.js"() {
28941
+ // node_modules/uuid/dist/cjs/validate.js
28942
+ var require_validate = __commonJS({
28943
+ "node_modules/uuid/dist/cjs/validate.js"(exports2) {
28948
28944
  "use strict";
28949
- init_regex();
28950
- validate_default = validate;
28945
+ Object.defineProperty(exports2, "__esModule", { value: true });
28946
+ var regex_js_1 = require_regex();
28947
+ function validate(uuid) {
28948
+ return typeof uuid === "string" && regex_js_1.default.test(uuid);
28949
+ }
28950
+ exports2.default = validate;
28951
28951
  }
28952
28952
  });
28953
28953
 
28954
- // node_modules/uuid/dist/esm-node/stringify.js
28955
- function unsafeStringify(arr, offset = 0) {
28956
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
28957
- }
28958
- function stringify(arr, offset = 0) {
28959
- const uuid = unsafeStringify(arr, offset);
28960
- if (!validate_default(uuid)) {
28961
- throw TypeError("Stringified UUID is invalid");
28954
+ // node_modules/uuid/dist/cjs/parse.js
28955
+ var require_parse = __commonJS({
28956
+ "node_modules/uuid/dist/cjs/parse.js"(exports2) {
28957
+ "use strict";
28958
+ Object.defineProperty(exports2, "__esModule", { value: true });
28959
+ var validate_js_1 = require_validate();
28960
+ function parse(uuid) {
28961
+ if (!(0, validate_js_1.default)(uuid)) {
28962
+ throw TypeError("Invalid UUID");
28963
+ }
28964
+ let v;
28965
+ return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, v >>> 16 & 255, v >>> 8 & 255, v & 255, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255, v / 4294967296 & 255, v >>> 24 & 255, v >>> 16 & 255, v >>> 8 & 255, v & 255);
28966
+ }
28967
+ exports2.default = parse;
28962
28968
  }
28963
- return uuid;
28964
- }
28965
- var byteToHex, stringify_default;
28966
- var init_stringify = __esm({
28967
- "node_modules/uuid/dist/esm-node/stringify.js"() {
28969
+ });
28970
+
28971
+ // node_modules/uuid/dist/cjs/stringify.js
28972
+ var require_stringify = __commonJS({
28973
+ "node_modules/uuid/dist/cjs/stringify.js"(exports2) {
28968
28974
  "use strict";
28969
- init_validate();
28970
- byteToHex = [];
28975
+ Object.defineProperty(exports2, "__esModule", { value: true });
28976
+ exports2.unsafeStringify = void 0;
28977
+ var validate_js_1 = require_validate();
28978
+ var byteToHex = [];
28971
28979
  for (let i = 0; i < 256; ++i) {
28972
28980
  byteToHex.push((i + 256).toString(16).slice(1));
28973
28981
  }
28974
- stringify_default = stringify;
28982
+ function unsafeStringify(arr, offset = 0) {
28983
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
28984
+ }
28985
+ exports2.unsafeStringify = unsafeStringify;
28986
+ function stringify(arr, offset = 0) {
28987
+ const uuid = unsafeStringify(arr, offset);
28988
+ if (!(0, validate_js_1.default)(uuid)) {
28989
+ throw TypeError("Stringified UUID is invalid");
28990
+ }
28991
+ return uuid;
28992
+ }
28993
+ exports2.default = stringify;
28975
28994
  }
28976
28995
  });
28977
28996
 
28978
- // node_modules/uuid/dist/esm-node/v1.js
28979
- function v1(options, buf, offset) {
28980
- let i = buf && offset || 0;
28981
- const b = buf || new Array(16);
28982
- options = options || {};
28983
- let node = options.node || _nodeId;
28984
- let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
28985
- if (node == null || clockseq == null) {
28986
- const seedBytes = options.random || (options.rng || rng)();
28987
- if (node == null) {
28988
- node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
28989
- }
28990
- if (clockseq == null) {
28991
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
28992
- }
28993
- }
28994
- let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
28995
- let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
28996
- const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
28997
- if (dt < 0 && options.clockseq === void 0) {
28998
- clockseq = clockseq + 1 & 16383;
28999
- }
29000
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
29001
- nsecs = 0;
29002
- }
29003
- if (nsecs >= 1e4) {
29004
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
29005
- }
29006
- _lastMSecs = msecs;
29007
- _lastNSecs = nsecs;
29008
- _clockseq = clockseq;
29009
- msecs += 122192928e5;
29010
- const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
29011
- b[i++] = tl >>> 24 & 255;
29012
- b[i++] = tl >>> 16 & 255;
29013
- b[i++] = tl >>> 8 & 255;
29014
- b[i++] = tl & 255;
29015
- const tmh = msecs / 4294967296 * 1e4 & 268435455;
29016
- b[i++] = tmh >>> 8 & 255;
29017
- b[i++] = tmh & 255;
29018
- b[i++] = tmh >>> 24 & 15 | 16;
29019
- b[i++] = tmh >>> 16 & 255;
29020
- b[i++] = clockseq >>> 8 | 128;
29021
- b[i++] = clockseq & 255;
29022
- for (let n = 0; n < 6; ++n) {
29023
- b[i + n] = node[n];
29024
- }
29025
- return buf || unsafeStringify(b);
29026
- }
29027
- var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default;
29028
- var init_v1 = __esm({
29029
- "node_modules/uuid/dist/esm-node/v1.js"() {
28997
+ // node_modules/uuid/dist/cjs/rng.js
28998
+ var require_rng = __commonJS({
28999
+ "node_modules/uuid/dist/cjs/rng.js"(exports2) {
29030
29000
  "use strict";
29031
- init_rng();
29032
- init_stringify();
29033
- _lastMSecs = 0;
29034
- _lastNSecs = 0;
29035
- v1_default = v1;
29001
+ Object.defineProperty(exports2, "__esModule", { value: true });
29002
+ var crypto_1 = require("crypto");
29003
+ var rnds8Pool = new Uint8Array(256);
29004
+ var poolPtr = rnds8Pool.length;
29005
+ function rng() {
29006
+ if (poolPtr > rnds8Pool.length - 16) {
29007
+ (0, crypto_1.randomFillSync)(rnds8Pool);
29008
+ poolPtr = 0;
29009
+ }
29010
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
29011
+ }
29012
+ exports2.default = rng;
29036
29013
  }
29037
29014
  });
29038
29015
 
29039
- // node_modules/uuid/dist/esm-node/parse.js
29040
- function parse(uuid) {
29041
- if (!validate_default(uuid)) {
29042
- throw TypeError("Invalid UUID");
29043
- }
29044
- let v;
29045
- const arr = new Uint8Array(16);
29046
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
29047
- arr[1] = v >>> 16 & 255;
29048
- arr[2] = v >>> 8 & 255;
29049
- arr[3] = v & 255;
29050
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
29051
- arr[5] = v & 255;
29052
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
29053
- arr[7] = v & 255;
29054
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
29055
- arr[9] = v & 255;
29056
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
29057
- arr[11] = v / 4294967296 & 255;
29058
- arr[12] = v >>> 24 & 255;
29059
- arr[13] = v >>> 16 & 255;
29060
- arr[14] = v >>> 8 & 255;
29061
- arr[15] = v & 255;
29062
- return arr;
29063
- }
29064
- var parse_default;
29065
- var init_parse = __esm({
29066
- "node_modules/uuid/dist/esm-node/parse.js"() {
29016
+ // node_modules/uuid/dist/cjs/v1.js
29017
+ var require_v1 = __commonJS({
29018
+ "node_modules/uuid/dist/cjs/v1.js"(exports2) {
29067
29019
  "use strict";
29068
- init_validate();
29069
- parse_default = parse;
29020
+ Object.defineProperty(exports2, "__esModule", { value: true });
29021
+ exports2.updateV1State = void 0;
29022
+ var rng_js_1 = require_rng();
29023
+ var stringify_js_1 = require_stringify();
29024
+ var _state = {};
29025
+ function v1(options, buf, offset) {
29026
+ let bytes;
29027
+ const isV6 = options?._v6 ?? false;
29028
+ if (options) {
29029
+ const optionsKeys = Object.keys(options);
29030
+ if (optionsKeys.length === 1 && optionsKeys[0] === "_v6") {
29031
+ options = void 0;
29032
+ }
29033
+ }
29034
+ if (options) {
29035
+ bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
29036
+ } else {
29037
+ const now = Date.now();
29038
+ const rnds = (0, rng_js_1.default)();
29039
+ updateV1State(_state, now, rnds);
29040
+ bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? void 0 : _state.clockseq, isV6 ? void 0 : _state.node, buf, offset);
29041
+ }
29042
+ return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
29043
+ }
29044
+ function updateV1State(state, now, rnds) {
29045
+ state.msecs ??= -Infinity;
29046
+ state.nsecs ??= 0;
29047
+ if (now === state.msecs) {
29048
+ state.nsecs++;
29049
+ if (state.nsecs >= 1e4) {
29050
+ state.node = void 0;
29051
+ state.nsecs = 0;
29052
+ }
29053
+ } else if (now > state.msecs) {
29054
+ state.nsecs = 0;
29055
+ } else if (now < state.msecs) {
29056
+ state.node = void 0;
29057
+ }
29058
+ if (!state.node) {
29059
+ state.node = rnds.slice(10, 16);
29060
+ state.node[0] |= 1;
29061
+ state.clockseq = (rnds[8] << 8 | rnds[9]) & 16383;
29062
+ }
29063
+ state.msecs = now;
29064
+ return state;
29065
+ }
29066
+ exports2.updateV1State = updateV1State;
29067
+ function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
29068
+ if (rnds.length < 16) {
29069
+ throw new Error("Random bytes length must be >= 16");
29070
+ }
29071
+ if (!buf) {
29072
+ buf = new Uint8Array(16);
29073
+ offset = 0;
29074
+ } else {
29075
+ if (offset < 0 || offset + 16 > buf.length) {
29076
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29077
+ }
29078
+ }
29079
+ msecs ??= Date.now();
29080
+ nsecs ??= 0;
29081
+ clockseq ??= (rnds[8] << 8 | rnds[9]) & 16383;
29082
+ node ??= rnds.slice(10, 16);
29083
+ msecs += 122192928e5;
29084
+ const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
29085
+ buf[offset++] = tl >>> 24 & 255;
29086
+ buf[offset++] = tl >>> 16 & 255;
29087
+ buf[offset++] = tl >>> 8 & 255;
29088
+ buf[offset++] = tl & 255;
29089
+ const tmh = msecs / 4294967296 * 1e4 & 268435455;
29090
+ buf[offset++] = tmh >>> 8 & 255;
29091
+ buf[offset++] = tmh & 255;
29092
+ buf[offset++] = tmh >>> 24 & 15 | 16;
29093
+ buf[offset++] = tmh >>> 16 & 255;
29094
+ buf[offset++] = clockseq >>> 8 | 128;
29095
+ buf[offset++] = clockseq & 255;
29096
+ for (let n = 0; n < 6; ++n) {
29097
+ buf[offset++] = node[n];
29098
+ }
29099
+ return buf;
29100
+ }
29101
+ exports2.default = v1;
29070
29102
  }
29071
29103
  });
29072
29104
 
29073
- // node_modules/uuid/dist/esm-node/v35.js
29074
- function stringToBytes(str) {
29075
- str = unescape(encodeURIComponent(str));
29076
- const bytes = [];
29077
- for (let i = 0; i < str.length; ++i) {
29078
- bytes.push(str.charCodeAt(i));
29105
+ // node_modules/uuid/dist/cjs/v1ToV6.js
29106
+ var require_v1ToV6 = __commonJS({
29107
+ "node_modules/uuid/dist/cjs/v1ToV6.js"(exports2) {
29108
+ "use strict";
29109
+ Object.defineProperty(exports2, "__esModule", { value: true });
29110
+ var parse_js_1 = require_parse();
29111
+ var stringify_js_1 = require_stringify();
29112
+ function v1ToV6(uuid) {
29113
+ const v1Bytes = typeof uuid === "string" ? (0, parse_js_1.default)(uuid) : uuid;
29114
+ const v6Bytes = _v1ToV6(v1Bytes);
29115
+ return typeof uuid === "string" ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
29116
+ }
29117
+ exports2.default = v1ToV6;
29118
+ function _v1ToV6(v1Bytes) {
29119
+ return Uint8Array.of((v1Bytes[6] & 15) << 4 | v1Bytes[7] >> 4 & 15, (v1Bytes[7] & 15) << 4 | (v1Bytes[4] & 240) >> 4, (v1Bytes[4] & 15) << 4 | (v1Bytes[5] & 240) >> 4, (v1Bytes[5] & 15) << 4 | (v1Bytes[0] & 240) >> 4, (v1Bytes[0] & 15) << 4 | (v1Bytes[1] & 240) >> 4, (v1Bytes[1] & 15) << 4 | (v1Bytes[2] & 240) >> 4, 96 | v1Bytes[2] & 15, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
29120
+ }
29079
29121
  }
29080
- return bytes;
29081
- }
29082
- function v35(name, version2, hashfunc) {
29083
- function generateUUID(value, namespace, buf, offset) {
29084
- var _namespace;
29085
- if (typeof value === "string") {
29086
- value = stringToBytes(value);
29087
- }
29088
- if (typeof namespace === "string") {
29089
- namespace = parse_default(namespace);
29090
- }
29091
- if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
29092
- throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
29093
- }
29094
- let bytes = new Uint8Array(16 + value.length);
29095
- bytes.set(namespace);
29096
- bytes.set(value, namespace.length);
29097
- bytes = hashfunc(bytes);
29098
- bytes[6] = bytes[6] & 15 | version2;
29099
- bytes[8] = bytes[8] & 63 | 128;
29100
- if (buf) {
29101
- offset = offset || 0;
29102
- for (let i = 0; i < 16; ++i) {
29103
- buf[offset + i] = bytes[i];
29122
+ });
29123
+
29124
+ // node_modules/uuid/dist/cjs/md5.js
29125
+ var require_md5 = __commonJS({
29126
+ "node_modules/uuid/dist/cjs/md5.js"(exports2) {
29127
+ "use strict";
29128
+ Object.defineProperty(exports2, "__esModule", { value: true });
29129
+ var crypto_1 = require("crypto");
29130
+ function md5(bytes) {
29131
+ if (Array.isArray(bytes)) {
29132
+ bytes = Buffer.from(bytes);
29133
+ } else if (typeof bytes === "string") {
29134
+ bytes = Buffer.from(bytes, "utf8");
29104
29135
  }
29105
- return buf;
29136
+ return (0, crypto_1.createHash)("md5").update(bytes).digest();
29106
29137
  }
29107
- return unsafeStringify(bytes);
29138
+ exports2.default = md5;
29108
29139
  }
29109
- try {
29110
- generateUUID.name = name;
29111
- } catch (err) {
29112
- }
29113
- generateUUID.DNS = DNS;
29114
- generateUUID.URL = URL2;
29115
- return generateUUID;
29116
- }
29117
- var DNS, URL2;
29118
- var init_v35 = __esm({
29119
- "node_modules/uuid/dist/esm-node/v35.js"() {
29140
+ });
29141
+
29142
+ // node_modules/uuid/dist/cjs/v35.js
29143
+ var require_v35 = __commonJS({
29144
+ "node_modules/uuid/dist/cjs/v35.js"(exports2) {
29120
29145
  "use strict";
29121
- init_stringify();
29122
- init_parse();
29123
- DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
29124
- URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
29146
+ Object.defineProperty(exports2, "__esModule", { value: true });
29147
+ exports2.URL = exports2.DNS = exports2.stringToBytes = void 0;
29148
+ var parse_js_1 = require_parse();
29149
+ var stringify_js_1 = require_stringify();
29150
+ function stringToBytes(str) {
29151
+ str = unescape(encodeURIComponent(str));
29152
+ const bytes = new Uint8Array(str.length);
29153
+ for (let i = 0; i < str.length; ++i) {
29154
+ bytes[i] = str.charCodeAt(i);
29155
+ }
29156
+ return bytes;
29157
+ }
29158
+ exports2.stringToBytes = stringToBytes;
29159
+ exports2.DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
29160
+ exports2.URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
29161
+ function v35(version, hash, value, namespace, buf, offset) {
29162
+ const valueBytes = typeof value === "string" ? stringToBytes(value) : value;
29163
+ const namespaceBytes = typeof namespace === "string" ? (0, parse_js_1.default)(namespace) : namespace;
29164
+ if (typeof namespace === "string") {
29165
+ namespace = (0, parse_js_1.default)(namespace);
29166
+ }
29167
+ if (namespace?.length !== 16) {
29168
+ throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
29169
+ }
29170
+ let bytes = new Uint8Array(16 + valueBytes.length);
29171
+ bytes.set(namespaceBytes);
29172
+ bytes.set(valueBytes, namespaceBytes.length);
29173
+ bytes = hash(bytes);
29174
+ bytes[6] = bytes[6] & 15 | version;
29175
+ bytes[8] = bytes[8] & 63 | 128;
29176
+ if (buf) {
29177
+ offset = offset || 0;
29178
+ if (offset < 0 || offset + 16 > buf.length) {
29179
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29180
+ }
29181
+ for (let i = 0; i < 16; ++i) {
29182
+ buf[offset + i] = bytes[i];
29183
+ }
29184
+ return buf;
29185
+ }
29186
+ return (0, stringify_js_1.unsafeStringify)(bytes);
29187
+ }
29188
+ exports2.default = v35;
29125
29189
  }
29126
29190
  });
29127
29191
 
29128
- // node_modules/uuid/dist/esm-node/md5.js
29129
- function md5(bytes) {
29130
- if (Array.isArray(bytes)) {
29131
- bytes = Buffer.from(bytes);
29132
- } else if (typeof bytes === "string") {
29133
- bytes = Buffer.from(bytes, "utf8");
29134
- }
29135
- return import_crypto3.default.createHash("md5").update(bytes).digest();
29136
- }
29137
- var import_crypto3, md5_default;
29138
- var init_md5 = __esm({
29139
- "node_modules/uuid/dist/esm-node/md5.js"() {
29192
+ // node_modules/uuid/dist/cjs/v3.js
29193
+ var require_v3 = __commonJS({
29194
+ "node_modules/uuid/dist/cjs/v3.js"(exports2) {
29140
29195
  "use strict";
29141
- import_crypto3 = __toESM(require("crypto"));
29142
- md5_default = md5;
29196
+ Object.defineProperty(exports2, "__esModule", { value: true });
29197
+ exports2.URL = exports2.DNS = void 0;
29198
+ var md5_js_1 = require_md5();
29199
+ var v35_js_1 = require_v35();
29200
+ var v35_js_2 = require_v35();
29201
+ Object.defineProperty(exports2, "DNS", { enumerable: true, get: function() {
29202
+ return v35_js_2.DNS;
29203
+ } });
29204
+ Object.defineProperty(exports2, "URL", { enumerable: true, get: function() {
29205
+ return v35_js_2.URL;
29206
+ } });
29207
+ function v3(value, namespace, buf, offset) {
29208
+ return (0, v35_js_1.default)(48, md5_js_1.default, value, namespace, buf, offset);
29209
+ }
29210
+ v3.DNS = v35_js_1.DNS;
29211
+ v3.URL = v35_js_1.URL;
29212
+ exports2.default = v3;
29143
29213
  }
29144
29214
  });
29145
29215
 
29146
- // node_modules/uuid/dist/esm-node/v3.js
29147
- var v3, v3_default;
29148
- var init_v3 = __esm({
29149
- "node_modules/uuid/dist/esm-node/v3.js"() {
29216
+ // node_modules/uuid/dist/cjs/native.js
29217
+ var require_native = __commonJS({
29218
+ "node_modules/uuid/dist/cjs/native.js"(exports2) {
29150
29219
  "use strict";
29151
- init_v35();
29152
- init_md5();
29153
- v3 = v35("v3", 48, md5_default);
29154
- v3_default = v3;
29220
+ Object.defineProperty(exports2, "__esModule", { value: true });
29221
+ var crypto_1 = require("crypto");
29222
+ exports2.default = { randomUUID: crypto_1.randomUUID };
29155
29223
  }
29156
29224
  });
29157
29225
 
29158
- // node_modules/uuid/dist/esm-node/native.js
29159
- var import_crypto4, native_default;
29160
- var init_native = __esm({
29161
- "node_modules/uuid/dist/esm-node/native.js"() {
29226
+ // node_modules/uuid/dist/cjs/v4.js
29227
+ var require_v4 = __commonJS({
29228
+ "node_modules/uuid/dist/cjs/v4.js"(exports2) {
29162
29229
  "use strict";
29163
- import_crypto4 = __toESM(require("crypto"));
29164
- native_default = {
29165
- randomUUID: import_crypto4.default.randomUUID
29166
- };
29230
+ Object.defineProperty(exports2, "__esModule", { value: true });
29231
+ var native_js_1 = require_native();
29232
+ var rng_js_1 = require_rng();
29233
+ var stringify_js_1 = require_stringify();
29234
+ function v4(options, buf, offset) {
29235
+ if (native_js_1.default.randomUUID && !buf && !options) {
29236
+ return native_js_1.default.randomUUID();
29237
+ }
29238
+ options = options || {};
29239
+ const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
29240
+ if (rnds.length < 16) {
29241
+ throw new Error("Random bytes length must be >= 16");
29242
+ }
29243
+ rnds[6] = rnds[6] & 15 | 64;
29244
+ rnds[8] = rnds[8] & 63 | 128;
29245
+ if (buf) {
29246
+ offset = offset || 0;
29247
+ if (offset < 0 || offset + 16 > buf.length) {
29248
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29249
+ }
29250
+ for (let i = 0; i < 16; ++i) {
29251
+ buf[offset + i] = rnds[i];
29252
+ }
29253
+ return buf;
29254
+ }
29255
+ return (0, stringify_js_1.unsafeStringify)(rnds);
29256
+ }
29257
+ exports2.default = v4;
29167
29258
  }
29168
29259
  });
29169
29260
 
29170
- // node_modules/uuid/dist/esm-node/v4.js
29171
- function v4(options, buf, offset) {
29172
- if (native_default.randomUUID && !buf && !options) {
29173
- return native_default.randomUUID();
29174
- }
29175
- options = options || {};
29176
- const rnds = options.random || (options.rng || rng)();
29177
- rnds[6] = rnds[6] & 15 | 64;
29178
- rnds[8] = rnds[8] & 63 | 128;
29179
- if (buf) {
29180
- offset = offset || 0;
29181
- for (let i = 0; i < 16; ++i) {
29182
- buf[offset + i] = rnds[i];
29183
- }
29184
- return buf;
29185
- }
29186
- return unsafeStringify(rnds);
29187
- }
29188
- var v4_default;
29189
- var init_v4 = __esm({
29190
- "node_modules/uuid/dist/esm-node/v4.js"() {
29261
+ // node_modules/uuid/dist/cjs/sha1.js
29262
+ var require_sha1 = __commonJS({
29263
+ "node_modules/uuid/dist/cjs/sha1.js"(exports2) {
29191
29264
  "use strict";
29192
- init_native();
29193
- init_rng();
29194
- init_stringify();
29195
- v4_default = v4;
29265
+ Object.defineProperty(exports2, "__esModule", { value: true });
29266
+ var crypto_1 = require("crypto");
29267
+ function sha1(bytes) {
29268
+ if (Array.isArray(bytes)) {
29269
+ bytes = Buffer.from(bytes);
29270
+ } else if (typeof bytes === "string") {
29271
+ bytes = Buffer.from(bytes, "utf8");
29272
+ }
29273
+ return (0, crypto_1.createHash)("sha1").update(bytes).digest();
29274
+ }
29275
+ exports2.default = sha1;
29196
29276
  }
29197
29277
  });
29198
29278
 
29199
- // node_modules/uuid/dist/esm-node/sha1.js
29200
- function sha1(bytes) {
29201
- if (Array.isArray(bytes)) {
29202
- bytes = Buffer.from(bytes);
29203
- } else if (typeof bytes === "string") {
29204
- bytes = Buffer.from(bytes, "utf8");
29205
- }
29206
- return import_crypto5.default.createHash("sha1").update(bytes).digest();
29207
- }
29208
- var import_crypto5, sha1_default;
29209
- var init_sha1 = __esm({
29210
- "node_modules/uuid/dist/esm-node/sha1.js"() {
29279
+ // node_modules/uuid/dist/cjs/v5.js
29280
+ var require_v5 = __commonJS({
29281
+ "node_modules/uuid/dist/cjs/v5.js"(exports2) {
29211
29282
  "use strict";
29212
- import_crypto5 = __toESM(require("crypto"));
29213
- sha1_default = sha1;
29283
+ Object.defineProperty(exports2, "__esModule", { value: true });
29284
+ exports2.URL = exports2.DNS = void 0;
29285
+ var sha1_js_1 = require_sha1();
29286
+ var v35_js_1 = require_v35();
29287
+ var v35_js_2 = require_v35();
29288
+ Object.defineProperty(exports2, "DNS", { enumerable: true, get: function() {
29289
+ return v35_js_2.DNS;
29290
+ } });
29291
+ Object.defineProperty(exports2, "URL", { enumerable: true, get: function() {
29292
+ return v35_js_2.URL;
29293
+ } });
29294
+ function v5(value, namespace, buf, offset) {
29295
+ return (0, v35_js_1.default)(80, sha1_js_1.default, value, namespace, buf, offset);
29296
+ }
29297
+ v5.DNS = v35_js_1.DNS;
29298
+ v5.URL = v35_js_1.URL;
29299
+ exports2.default = v5;
29214
29300
  }
29215
29301
  });
29216
29302
 
29217
- // node_modules/uuid/dist/esm-node/v5.js
29218
- var v5, v5_default;
29219
- var init_v5 = __esm({
29220
- "node_modules/uuid/dist/esm-node/v5.js"() {
29303
+ // node_modules/uuid/dist/cjs/v6.js
29304
+ var require_v6 = __commonJS({
29305
+ "node_modules/uuid/dist/cjs/v6.js"(exports2) {
29221
29306
  "use strict";
29222
- init_v35();
29223
- init_sha1();
29224
- v5 = v35("v5", 80, sha1_default);
29225
- v5_default = v5;
29307
+ Object.defineProperty(exports2, "__esModule", { value: true });
29308
+ var stringify_js_1 = require_stringify();
29309
+ var v1_js_1 = require_v1();
29310
+ var v1ToV6_js_1 = require_v1ToV6();
29311
+ function v6(options, buf, offset) {
29312
+ options ??= {};
29313
+ offset ??= 0;
29314
+ let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
29315
+ bytes = (0, v1ToV6_js_1.default)(bytes);
29316
+ if (buf) {
29317
+ if (offset < 0 || offset + 16 > buf.length) {
29318
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29319
+ }
29320
+ for (let i = 0; i < 16; i++) {
29321
+ buf[offset + i] = bytes[i];
29322
+ }
29323
+ return buf;
29324
+ }
29325
+ return (0, stringify_js_1.unsafeStringify)(bytes);
29326
+ }
29327
+ exports2.default = v6;
29226
29328
  }
29227
29329
  });
29228
29330
 
29229
- // node_modules/uuid/dist/esm-node/nil.js
29230
- var nil_default;
29231
- var init_nil = __esm({
29232
- "node_modules/uuid/dist/esm-node/nil.js"() {
29331
+ // node_modules/uuid/dist/cjs/v6ToV1.js
29332
+ var require_v6ToV1 = __commonJS({
29333
+ "node_modules/uuid/dist/cjs/v6ToV1.js"(exports2) {
29233
29334
  "use strict";
29234
- nil_default = "00000000-0000-0000-0000-000000000000";
29335
+ Object.defineProperty(exports2, "__esModule", { value: true });
29336
+ var parse_js_1 = require_parse();
29337
+ var stringify_js_1 = require_stringify();
29338
+ function v6ToV1(uuid) {
29339
+ const v6Bytes = typeof uuid === "string" ? (0, parse_js_1.default)(uuid) : uuid;
29340
+ const v1Bytes = _v6ToV1(v6Bytes);
29341
+ return typeof uuid === "string" ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
29342
+ }
29343
+ exports2.default = v6ToV1;
29344
+ function _v6ToV1(v6Bytes) {
29345
+ return Uint8Array.of((v6Bytes[3] & 15) << 4 | v6Bytes[4] >> 4 & 15, (v6Bytes[4] & 15) << 4 | (v6Bytes[5] & 240) >> 4, (v6Bytes[5] & 15) << 4 | v6Bytes[6] & 15, v6Bytes[7], (v6Bytes[1] & 15) << 4 | (v6Bytes[2] & 240) >> 4, (v6Bytes[2] & 15) << 4 | (v6Bytes[3] & 240) >> 4, 16 | (v6Bytes[0] & 240) >> 4, (v6Bytes[0] & 15) << 4 | (v6Bytes[1] & 240) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
29346
+ }
29235
29347
  }
29236
29348
  });
29237
29349
 
29238
- // node_modules/uuid/dist/esm-node/version.js
29239
- function version(uuid) {
29240
- if (!validate_default(uuid)) {
29241
- throw TypeError("Invalid UUID");
29242
- }
29243
- return parseInt(uuid.slice(14, 15), 16);
29244
- }
29245
- var version_default;
29246
- var init_version = __esm({
29247
- "node_modules/uuid/dist/esm-node/version.js"() {
29350
+ // node_modules/uuid/dist/cjs/v7.js
29351
+ var require_v7 = __commonJS({
29352
+ "node_modules/uuid/dist/cjs/v7.js"(exports2) {
29248
29353
  "use strict";
29249
- init_validate();
29250
- version_default = version;
29354
+ Object.defineProperty(exports2, "__esModule", { value: true });
29355
+ exports2.updateV7State = void 0;
29356
+ var rng_js_1 = require_rng();
29357
+ var stringify_js_1 = require_stringify();
29358
+ var _state = {};
29359
+ function v7(options, buf, offset) {
29360
+ let bytes;
29361
+ if (options) {
29362
+ bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
29363
+ } else {
29364
+ const now = Date.now();
29365
+ const rnds = (0, rng_js_1.default)();
29366
+ updateV7State(_state, now, rnds);
29367
+ bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
29368
+ }
29369
+ return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
29370
+ }
29371
+ function updateV7State(state, now, rnds) {
29372
+ state.msecs ??= -Infinity;
29373
+ state.seq ??= 0;
29374
+ if (now > state.msecs) {
29375
+ state.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
29376
+ state.msecs = now;
29377
+ } else {
29378
+ state.seq = state.seq + 1 | 0;
29379
+ if (state.seq === 0) {
29380
+ state.msecs++;
29381
+ }
29382
+ }
29383
+ return state;
29384
+ }
29385
+ exports2.updateV7State = updateV7State;
29386
+ function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
29387
+ if (rnds.length < 16) {
29388
+ throw new Error("Random bytes length must be >= 16");
29389
+ }
29390
+ if (!buf) {
29391
+ buf = new Uint8Array(16);
29392
+ offset = 0;
29393
+ } else {
29394
+ if (offset < 0 || offset + 16 > buf.length) {
29395
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29396
+ }
29397
+ }
29398
+ msecs ??= Date.now();
29399
+ seq ??= rnds[6] * 127 << 24 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
29400
+ buf[offset++] = msecs / 1099511627776 & 255;
29401
+ buf[offset++] = msecs / 4294967296 & 255;
29402
+ buf[offset++] = msecs / 16777216 & 255;
29403
+ buf[offset++] = msecs / 65536 & 255;
29404
+ buf[offset++] = msecs / 256 & 255;
29405
+ buf[offset++] = msecs & 255;
29406
+ buf[offset++] = 112 | seq >>> 28 & 15;
29407
+ buf[offset++] = seq >>> 20 & 255;
29408
+ buf[offset++] = 128 | seq >>> 14 & 63;
29409
+ buf[offset++] = seq >>> 6 & 255;
29410
+ buf[offset++] = seq << 2 & 255 | rnds[10] & 3;
29411
+ buf[offset++] = rnds[11];
29412
+ buf[offset++] = rnds[12];
29413
+ buf[offset++] = rnds[13];
29414
+ buf[offset++] = rnds[14];
29415
+ buf[offset++] = rnds[15];
29416
+ return buf;
29417
+ }
29418
+ exports2.default = v7;
29251
29419
  }
29252
29420
  });
29253
29421
 
29254
- // node_modules/uuid/dist/esm-node/index.js
29255
- var esm_node_exports = {};
29256
- __export(esm_node_exports, {
29257
- NIL: () => nil_default,
29258
- parse: () => parse_default,
29259
- stringify: () => stringify_default,
29260
- v1: () => v1_default,
29261
- v3: () => v3_default,
29262
- v4: () => v4_default,
29263
- v5: () => v5_default,
29264
- validate: () => validate_default,
29265
- version: () => version_default
29422
+ // node_modules/uuid/dist/cjs/version.js
29423
+ var require_version = __commonJS({
29424
+ "node_modules/uuid/dist/cjs/version.js"(exports2) {
29425
+ "use strict";
29426
+ Object.defineProperty(exports2, "__esModule", { value: true });
29427
+ var validate_js_1 = require_validate();
29428
+ function version(uuid) {
29429
+ if (!(0, validate_js_1.default)(uuid)) {
29430
+ throw TypeError("Invalid UUID");
29431
+ }
29432
+ return parseInt(uuid.slice(14, 15), 16);
29433
+ }
29434
+ exports2.default = version;
29435
+ }
29266
29436
  });
29267
- var init_esm_node = __esm({
29268
- "node_modules/uuid/dist/esm-node/index.js"() {
29437
+
29438
+ // node_modules/uuid/dist/cjs/index.js
29439
+ var require_cjs = __commonJS({
29440
+ "node_modules/uuid/dist/cjs/index.js"(exports2) {
29269
29441
  "use strict";
29270
- init_v1();
29271
- init_v3();
29272
- init_v4();
29273
- init_v5();
29274
- init_nil();
29275
- init_version();
29276
- init_validate();
29277
- init_stringify();
29278
- init_parse();
29442
+ Object.defineProperty(exports2, "__esModule", { value: true });
29443
+ exports2.version = exports2.validate = exports2.v7 = exports2.v6ToV1 = exports2.v6 = exports2.v5 = exports2.v4 = exports2.v3 = exports2.v1ToV6 = exports2.v1 = exports2.stringify = exports2.parse = exports2.NIL = exports2.MAX = void 0;
29444
+ var max_js_1 = require_max2();
29445
+ Object.defineProperty(exports2, "MAX", { enumerable: true, get: function() {
29446
+ return max_js_1.default;
29447
+ } });
29448
+ var nil_js_1 = require_nil();
29449
+ Object.defineProperty(exports2, "NIL", { enumerable: true, get: function() {
29450
+ return nil_js_1.default;
29451
+ } });
29452
+ var parse_js_1 = require_parse();
29453
+ Object.defineProperty(exports2, "parse", { enumerable: true, get: function() {
29454
+ return parse_js_1.default;
29455
+ } });
29456
+ var stringify_js_1 = require_stringify();
29457
+ Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
29458
+ return stringify_js_1.default;
29459
+ } });
29460
+ var v1_js_1 = require_v1();
29461
+ Object.defineProperty(exports2, "v1", { enumerable: true, get: function() {
29462
+ return v1_js_1.default;
29463
+ } });
29464
+ var v1ToV6_js_1 = require_v1ToV6();
29465
+ Object.defineProperty(exports2, "v1ToV6", { enumerable: true, get: function() {
29466
+ return v1ToV6_js_1.default;
29467
+ } });
29468
+ var v3_js_1 = require_v3();
29469
+ Object.defineProperty(exports2, "v3", { enumerable: true, get: function() {
29470
+ return v3_js_1.default;
29471
+ } });
29472
+ var v4_js_1 = require_v4();
29473
+ Object.defineProperty(exports2, "v4", { enumerable: true, get: function() {
29474
+ return v4_js_1.default;
29475
+ } });
29476
+ var v5_js_1 = require_v5();
29477
+ Object.defineProperty(exports2, "v5", { enumerable: true, get: function() {
29478
+ return v5_js_1.default;
29479
+ } });
29480
+ var v6_js_1 = require_v6();
29481
+ Object.defineProperty(exports2, "v6", { enumerable: true, get: function() {
29482
+ return v6_js_1.default;
29483
+ } });
29484
+ var v6ToV1_js_1 = require_v6ToV1();
29485
+ Object.defineProperty(exports2, "v6ToV1", { enumerable: true, get: function() {
29486
+ return v6ToV1_js_1.default;
29487
+ } });
29488
+ var v7_js_1 = require_v7();
29489
+ Object.defineProperty(exports2, "v7", { enumerable: true, get: function() {
29490
+ return v7_js_1.default;
29491
+ } });
29492
+ var validate_js_1 = require_validate();
29493
+ Object.defineProperty(exports2, "validate", { enumerable: true, get: function() {
29494
+ return validate_js_1.default;
29495
+ } });
29496
+ var version_js_1 = require_version();
29497
+ Object.defineProperty(exports2, "version", { enumerable: true, get: function() {
29498
+ return version_js_1.default;
29499
+ } });
29279
29500
  }
29280
29501
  });
29281
29502
 
@@ -29285,7 +29506,7 @@ var require_ticket_manager_module = __commonJS({
29285
29506
  "use strict";
29286
29507
  Object.defineProperty(exports2, "__esModule", { value: true });
29287
29508
  exports2.TicketManager = void 0;
29288
- var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports));
29509
+ var uuid_1 = require_cjs();
29289
29510
  var TicketManager = class {
29290
29511
  constructor(config) {
29291
29512
  this.tickets = /* @__PURE__ */ new Map();
@@ -35479,16 +35700,16 @@ var require_brorand = __commonJS({
35479
35700
  }
35480
35701
  } else {
35481
35702
  try {
35482
- crypto6 = require("crypto");
35483
- if (typeof crypto6.randomBytes !== "function")
35703
+ crypto2 = require("crypto");
35704
+ if (typeof crypto2.randomBytes !== "function")
35484
35705
  throw new Error("Not supported");
35485
35706
  Rand.prototype._rand = function _rand(n) {
35486
- return crypto6.randomBytes(n);
35707
+ return crypto2.randomBytes(n);
35487
35708
  };
35488
35709
  } catch (e) {
35489
35710
  }
35490
35711
  }
35491
- var crypto6;
35712
+ var crypto2;
35492
35713
  }
35493
35714
  });
35494
35715
 
@@ -35527,7 +35748,7 @@ var require_base2 = __commonJS({
35527
35748
  BaseCurve.prototype.point = function point() {
35528
35749
  throw new Error("Not implemented");
35529
35750
  };
35530
- BaseCurve.prototype.validate = function validate2() {
35751
+ BaseCurve.prototype.validate = function validate() {
35531
35752
  throw new Error("Not implemented");
35532
35753
  };
35533
35754
  BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
@@ -35718,7 +35939,7 @@ var require_base2 = __commonJS({
35718
35939
  BasePoint.prototype.eq = function eq3() {
35719
35940
  throw new Error("Not implemented");
35720
35941
  };
35721
- BasePoint.prototype.validate = function validate2() {
35942
+ BasePoint.prototype.validate = function validate() {
35722
35943
  return this.curve.validate(this);
35723
35944
  };
35724
35945
  BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
@@ -35995,13 +36216,13 @@ var require_short = __commonJS({
35995
36216
  };
35996
36217
  ShortCurve.prototype._endoSplit = function _endoSplit(k) {
35997
36218
  var basis = this.endo.basis;
35998
- var v12 = basis[0];
36219
+ var v1 = basis[0];
35999
36220
  var v2 = basis[1];
36000
36221
  var c1 = v2.b.mul(k).divRound(this.n);
36001
- var c2 = v12.b.neg().mul(k).divRound(this.n);
36002
- var p1 = c1.mul(v12.a);
36222
+ var c2 = v1.b.neg().mul(k).divRound(this.n);
36223
+ var p1 = c1.mul(v1.a);
36003
36224
  var p2 = c2.mul(v2.a);
36004
- var q1 = c1.mul(v12.b);
36225
+ var q1 = c1.mul(v1.b);
36005
36226
  var q2 = c2.mul(v2.b);
36006
36227
  var k1 = k.sub(p1).sub(p2);
36007
36228
  var k2 = q1.add(q2).neg();
@@ -36020,7 +36241,7 @@ var require_short = __commonJS({
36020
36241
  y = y.redNeg();
36021
36242
  return this.point(x, y);
36022
36243
  };
36023
- ShortCurve.prototype.validate = function validate2(point) {
36244
+ ShortCurve.prototype.validate = function validate(point) {
36024
36245
  if (point.inf)
36025
36246
  return true;
36026
36247
  var x = point.x;
@@ -36578,7 +36799,7 @@ var require_mont = __commonJS({
36578
36799
  }
36579
36800
  inherits2(MontCurve, Base);
36580
36801
  module2.exports = MontCurve;
36581
- MontCurve.prototype.validate = function validate2(point) {
36802
+ MontCurve.prototype.validate = function validate(point) {
36582
36803
  var x = point.normalize().x;
36583
36804
  var x2 = x.redSqr();
36584
36805
  var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);
@@ -36765,7 +36986,7 @@ var require_edwards = __commonJS({
36765
36986
  x = x.redNeg();
36766
36987
  return this.point(x, y);
36767
36988
  };
36768
- EdwardsCurve.prototype.validate = function validate2(point) {
36989
+ EdwardsCurve.prototype.validate = function validate(point) {
36769
36990
  if (point.isInfinity())
36770
36991
  return true;
36771
36992
  point.normalize();
@@ -39717,7 +39938,7 @@ var require_key = __commonJS({
39717
39938
  privEnc: enc
39718
39939
  });
39719
39940
  };
39720
- KeyPair.prototype.validate = function validate2() {
39941
+ KeyPair.prototype.validate = function validate() {
39721
39942
  var pub = this.getPublic();
39722
39943
  if (pub.isInfinity())
39723
39944
  return { result: false, reason: "Invalid public key" };
@@ -51595,23 +51816,23 @@ var validators = {};
51595
51816
  };
51596
51817
  });
51597
51818
  var deprecatedWarnings = {};
51598
- validators.transitional = function transitional(validator, version2, message) {
51819
+ validators.transitional = function transitional(validator, version, message) {
51599
51820
  function formatMessage(opt, desc) {
51600
51821
  return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
51601
51822
  }
51602
51823
  return (value, opt, opts) => {
51603
51824
  if (validator === false) {
51604
51825
  throw new AxiosError_default(
51605
- formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
51826
+ formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
51606
51827
  AxiosError_default.ERR_DEPRECATED
51607
51828
  );
51608
51829
  }
51609
- if (version2 && !deprecatedWarnings[opt]) {
51830
+ if (version && !deprecatedWarnings[opt]) {
51610
51831
  deprecatedWarnings[opt] = true;
51611
51832
  console.warn(
51612
51833
  formatMessage(
51613
51834
  opt,
51614
- " has been deprecated since v" + version2 + " and will be removed in the near future"
51835
+ " has been deprecated since v" + version + " and will be removed in the near future"
51615
51836
  )
51616
51837
  );
51617
51838
  }
@@ -52318,11 +52539,11 @@ var init_deployment_addresses = __esm2({
52318
52539
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
52319
52540
  },
52320
52541
  LiquidationManagerModule: {
52321
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
52322
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
52323
- upgradedAt: "2026-07-03T20:02:00.579Z",
52324
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
52325
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
52542
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
52543
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
52544
+ upgradedAt: "2026-10-20T20:21:14.391Z",
52545
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
52546
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
52326
52547
  },
52327
52548
  BTCSpendAuthorizer: {
52328
52549
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -52750,7 +52971,7 @@ var init_deployment_addresses = __esm2({
52750
52971
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
52751
52972
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
52752
52973
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
52753
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
52974
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
52754
52975
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
52755
52976
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
52756
52977
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -58496,8 +58717,8 @@ var MINT_UCD_GAS_CEILING = BigInt(13e5);
58496
58717
  var WITHDRAW_BTC_GAS_CEILING = BigInt(3e6);
58497
58718
  var MAKE_PAYMENT_GAS_CEILING = BigInt(1e6);
58498
58719
  var EXTEND_POSITION_GAS_CEILING = BigInt(1e6);
58499
- var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(1e6);
58500
- var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(2e6);
58720
+ var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(2e6);
58721
+ var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(25e5);
58501
58722
  var FEE_HISTORY_BLOCK_COUNT = 20;
58502
58723
  var FEE_HISTORY_REWARD_PERCENTILE = 75;
58503
58724
  function isJsonRpcSendable(provider) {
@@ -59085,11 +59306,11 @@ function segwitProgramShape(address) {
59085
59306
  const data = lower2.slice(sep + 1);
59086
59307
  if (data.length < 8)
59087
59308
  return null;
59088
- const version2 = BECH32_CHARSET.indexOf(data[0]);
59089
- if (version2 < 0)
59309
+ const version = BECH32_CHARSET.indexOf(data[0]);
59310
+ if (version < 0)
59090
59311
  return null;
59091
59312
  const programChars = data.length - 1 - 6;
59092
- return { version: version2, programBytes: Math.floor(programChars * 5 / 8) };
59313
+ return { version, programBytes: Math.floor(programChars * 5 / 8) };
59093
59314
  }
59094
59315
  function dustLimitForAddress(address) {
59095
59316
  const shape = segwitProgramShape(address);
@@ -60606,8 +60827,8 @@ function isValidBase58CheckAddress(address) {
60606
60827
  }
60607
60828
  if (!decoded || decoded.length !== 21)
60608
60829
  return false;
60609
- const version2 = decoded[0];
60610
- return BASE58_VERSIONS_MAINNET.has(version2) || BASE58_VERSIONS_TEST.has(version2);
60830
+ const version = decoded[0];
60831
+ return BASE58_VERSIONS_MAINNET.has(version) || BASE58_VERSIONS_TEST.has(version);
60611
60832
  }
60612
60833
  function isValidBech32Address(address) {
60613
60834
  const lower2 = address.toLowerCase();
@@ -72439,6 +72660,7 @@ var CONTRACT_ERROR_FRAGMENTS = [
72439
72660
  { fragment: "error FeeOnTransferNotSupported()", contracts: ["SimplePSMV2"] },
72440
72661
  { fragment: "error FeeTooHigh(uint256 fee, uint256 max)", contracts: ["PositionManagerErrors"] },
72441
72662
  { fragment: "error FeeTooLow(uint256 fee, uint256 min)", contracts: ["PositionManagerErrors"] },
72663
+ { fragment: "error GlobalReentrancyGuardReentrantCall()", contracts: ["PositionManager", "CollateralManagerModule"] },
72442
72664
  { fragment: "error ImplNotDeployed()", contracts: ["LoanOperationsManagerModule", "BTCSpendAuthorizer"] },
72443
72665
  { fragment: "error ImplementationNotDeployed()", contracts: ["UCDController"] },
72444
72666
  { fragment: "error InitialBalanceTooLarge()", contracts: ["SimplePSMV2"] },
@@ -75678,7 +75900,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
75678
75900
  ),
75679
75901
  litActionResult.signature || "0x",
75680
75902
  { gasLimit: LIQUIDATION_COMMIT_GAS_CEILING }
75681
- // see definition: provisional, unverified against a real liquidation
75903
+ // see definition: measured on Sepolia 2026-10-20
75682
75904
  );
75683
75905
  const commitReceipt = await commitTx.wait();
75684
75906
  if (this.config.debug) {
@@ -75777,7 +75999,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
75777
75999
  revealResult.signature || "0x",
75778
76000
  BigInt(revealDeadline.toString()),
75779
76001
  { gasLimit: LIQUIDATION_REVEAL_GAS_CEILING }
75780
- // see definition: provisional, unverified against a real liquidation
76002
+ // see definition: measured on Sepolia 2026-10-20
75781
76003
  );
75782
76004
  if (this.config.debug) {
75783
76005
  log.info(` \u{1F4E4} Reveal TX submitted`, { txHash: revealTx.hash });
@@ -80977,7 +81199,10 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
80977
81199
  const intentSignature = await signer.signMessage((0, import_ethers13.getBytes)(intentHash));
80978
81200
  const response = await fetch(endpoint, {
80979
81201
  method: "POST",
80980
- headers: { "Content-Type": "application/json" },
81202
+ headers: {
81203
+ "Content-Type": "application/json",
81204
+ ...await this.getAuthHeader()
81205
+ },
80981
81206
  body: JSON.stringify({
80982
81207
  positionId: params.positionId,
80983
81208
  liquidatorAddress: params.liquidatorAddress,
@@ -81158,7 +81383,7 @@ var AuthParamsValidation;
81158
81383
  return errors;
81159
81384
  }
81160
81385
  AuthParamsValidation2.validateClosePosition = validateClosePosition;
81161
- function validate2(params) {
81386
+ function validate(params) {
81162
81387
  switch (params.type) {
81163
81388
  case "create":
81164
81389
  return validateCreateLoan(params);
@@ -81178,7 +81403,7 @@ var AuthParamsValidation;
81178
81403
  }
81179
81404
  }
81180
81405
  }
81181
- AuthParamsValidation2.validate = validate2;
81406
+ AuthParamsValidation2.validate = validate;
81182
81407
  })(AuthParamsValidation || (AuthParamsValidation = {}));
81183
81408
  init_deployment_addresses();
81184
81409
  init_deployment_addresses();
@@ -81407,11 +81632,11 @@ var SEPOLIA_DEPLOYMENT2 = {
81407
81632
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
81408
81633
  },
81409
81634
  LiquidationManagerModule: {
81410
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
81411
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
81412
- upgradedAt: "2026-07-03T20:02:00.579Z",
81413
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
81414
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
81635
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
81636
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
81637
+ upgradedAt: "2026-10-20T20:21:14.391Z",
81638
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
81639
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
81415
81640
  },
81416
81641
  BTCSpendAuthorizer: {
81417
81642
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -81809,7 +82034,7 @@ var MAINNET_DEPLOYMENT2 = {
81809
82034
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
81810
82035
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
81811
82036
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
81812
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
82037
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
81813
82038
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
81814
82039
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
81815
82040
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -86237,21 +86462,21 @@ var RealUpstreamPlugin = class {
86237
86462
  * createPosition revert ValidatorNotConfigured, which the user's wallet can only show
86238
86463
  * as an illegible "likely to fail". One eth_call turns that into a legible refusal. */
86239
86464
  async assertValidatorConfigured() {
86240
- const version2 = this.config.validatorVersion ?? 1;
86465
+ const version = this.config.validatorVersion ?? 1;
86241
86466
  const pkpValidation = this.contracts["PKPValidation"];
86242
86467
  if (!pkpValidation) {
86243
- throw new Error(`the SDK's ${this.config.network} deployment table has no PKPValidation address \u2014 cannot verify validator version ${version2}.`);
86468
+ throw new Error(`the SDK's ${this.config.network} deployment table has no PKPValidation address \u2014 cannot verify validator version ${version}.`);
86244
86469
  }
86245
86470
  const registry = new import_ethers53.ethers.Contract(pkpValidation, ["function validatorForVersion(uint256) view returns (address)"], this.provider);
86246
86471
  let validator;
86247
86472
  try {
86248
- validator = await registry.validatorForVersion(version2);
86473
+ validator = await registry.validatorForVersion(version);
86249
86474
  } catch (e) {
86250
- throw new Error(`could not verify validator version ${version2} on-chain (PKPValidation ${pkpValidation}): ${e.message}`);
86475
+ throw new Error(`could not verify validator version ${version} on-chain (PKPValidation ${pkpValidation}): ${e.message}`);
86251
86476
  }
86252
86477
  if (validator === import_ethers53.ethers.ZeroAddress) {
86253
86478
  throw new Error(
86254
- `validator version ${version2} is NOT registered on ${this.config.network} (PKPValidation ${pkpValidation} returns the zero address) \u2014 the transaction would revert ValidatorNotConfigured. Set DH_VALIDATOR_VERSION to the network's registered generation.`
86479
+ `validator version ${version} is NOT registered on ${this.config.network} (PKPValidation ${pkpValidation} returns the zero address) \u2014 the transaction would revert ValidatorNotConfigured. Set DH_VALIDATOR_VERSION to the network's registered generation.`
86255
86480
  );
86256
86481
  }
86257
86482
  }