@gbozee/ultimate 0.0.2-121 → 0.0.2-123

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.
@@ -229,7 +229,8 @@ var init_errors = __esm(() => {
229
229
 
230
230
  // node_modules/jose/dist/node/esm/runtime/random.js
231
231
  import { randomFillSync } from "node:crypto";
232
- var init_random = () => {};
232
+ var init_random = () => {
233
+ };
233
234
 
234
235
  // node_modules/jose/dist/node/esm/lib/iv.js
235
236
  function bitLength(alg) {
@@ -270,7 +271,8 @@ var init_check_iv_length = __esm(() => {
270
271
  // node_modules/jose/dist/node/esm/runtime/is_key_object.js
271
272
  import * as util3 from "node:util";
272
273
  var is_key_object_default = (obj) => util3.types.isKeyObject(obj);
273
- var init_is_key_object = () => {};
274
+ var init_is_key_object = () => {
275
+ };
274
276
 
275
277
  // node_modules/jose/dist/node/esm/runtime/check_cek_length.js
276
278
  var checkCekLength = (enc, cek) => {
@@ -532,7 +534,8 @@ var ciphers, ciphers_default = (algorithm) => {
532
534
  ciphers ||= new Set(getCiphers());
533
535
  return ciphers.has(algorithm);
534
536
  };
535
- var init_ciphers = () => {};
537
+ var init_ciphers = () => {
538
+ };
536
539
 
537
540
  // node_modules/jose/dist/node/esm/runtime/is_key_like.js
538
541
  var is_key_like_default = (key) => is_key_object_default(key) || isCryptoKey(key), types3;
@@ -563,7 +566,8 @@ function cbcDecrypt(enc, cek, ciphertext, iv, tag, aad) {
563
566
  let macCheckPassed;
564
567
  try {
565
568
  macCheckPassed = timing_safe_equal_default(tag, expectedTag);
566
- } catch {}
569
+ } catch {
570
+ }
567
571
  if (!macCheckPassed) {
568
572
  throw new JWEDecryptionFailed;
569
573
  }
@@ -571,7 +575,8 @@ function cbcDecrypt(enc, cek, ciphertext, iv, tag, aad) {
571
575
  try {
572
576
  const decipher = createDecipheriv(algorithm, encKey, iv);
573
577
  plaintext = concat(decipher.update(ciphertext), decipher.final());
574
- } catch {}
578
+ } catch {
579
+ }
575
580
  if (!plaintext) {
576
581
  throw new JWEDecryptionFailed;
577
582
  }
@@ -749,7 +754,8 @@ function isPublicJWK(key) {
749
754
  function isSecretJWK(key) {
750
755
  return isJWK(key) && key.kty === "oct" && typeof key.k === "string";
751
756
  }
752
- var init_is_jwk = () => {};
757
+ var init_is_jwk = () => {
758
+ };
753
759
 
754
760
  // node_modules/jose/dist/node/esm/runtime/get_named_curve.js
755
761
  import { KeyObject as KeyObject3 } from "node:crypto";
@@ -932,12 +938,14 @@ var check_key_length_default = (key, alg) => {
932
938
  } else {
933
939
  modulusLength = Buffer.from(key.n, "base64url").byteLength << 3;
934
940
  }
935
- } catch {}
941
+ } catch {
942
+ }
936
943
  if (typeof modulusLength !== "number" || modulusLength < 2048) {
937
944
  throw new TypeError(`${alg} requires key modulusLength to be 2048 bits or larger`);
938
945
  }
939
946
  };
940
- var init_check_key_length = () => {};
947
+ var init_check_key_length = () => {
948
+ };
941
949
 
942
950
  // node_modules/jose/dist/node/esm/runtime/rsaes.js
943
951
  import { KeyObject as KeyObject7, publicEncrypt, constants, privateDecrypt } from "node:crypto";
@@ -1691,7 +1699,8 @@ async function generalDecrypt(jwe, key, options) {
1691
1699
  tag: jwe.tag,
1692
1700
  unprotected: jwe.unprotected
1693
1701
  }, key, options);
1694
- } catch {}
1702
+ } catch {
1703
+ }
1695
1704
  }
1696
1705
  throw new JWEDecryptionFailed;
1697
1706
  }
@@ -2576,7 +2585,8 @@ async function generalVerify(jws, key, options) {
2576
2585
  protected: signature.protected,
2577
2586
  signature: signature.signature
2578
2587
  }, key, options);
2579
- } catch {}
2588
+ } catch {
2589
+ }
2580
2590
  }
2581
2591
  throw new JWSSignatureVerificationFailed;
2582
2592
  }
@@ -2659,7 +2669,8 @@ var normalizeTyp = (value) => value.toLowerCase().replace(/^application\//, ""),
2659
2669
  let payload;
2660
2670
  try {
2661
2671
  payload = JSON.parse(decoder.decode(encodedPayload));
2662
- } catch {}
2672
+ } catch {
2673
+ }
2663
2674
  if (!isObject(payload)) {
2664
2675
  throw new JWTInvalid("JWT Claims Set must be a top-level JSON object");
2665
2676
  }
@@ -3344,7 +3355,8 @@ class LocalJWKSet {
3344
3355
  for (const jwk2 of candidates) {
3345
3356
  try {
3346
3357
  yield await importWithAlgCache(_cached, jwk2, alg);
3347
- } catch {}
3358
+ } catch {
3359
+ }
3348
3360
  }
3349
3361
  };
3350
3362
  throw error;
@@ -3891,7 +3903,8 @@ var require_util = __commonJS((exports) => {
3891
3903
  var util5;
3892
3904
  (function(util6) {
3893
3905
  util6.assertEqual = (val) => val;
3894
- function assertIs(_arg) {}
3906
+ function assertIs(_arg) {
3907
+ }
3895
3908
  util6.assertIs = assertIs;
3896
3909
  function assertNever(_x) {
3897
3910
  throw new Error;
@@ -6307,7 +6320,8 @@ var require_types = __commonJS((exports) => {
6307
6320
  });
6308
6321
  status.dirty();
6309
6322
  }
6310
- } else if (unknownKeys === "strip") {} else {
6323
+ } else if (unknownKeys === "strip") {
6324
+ } else {
6311
6325
  throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
6312
6326
  }
6313
6327
  } else {
@@ -8459,7 +8473,8 @@ var require_logLevelLogger = __commonJS((exports) => {
8459
8473
  if (typeof theFunc === "function" && maxLevel >= theLevel) {
8460
8474
  return theFunc.bind(logger);
8461
8475
  }
8462
- return function() {};
8476
+ return function() {
8477
+ };
8463
8478
  }
8464
8479
  return {
8465
8480
  error: _filterFunc("error", types_1.DiagLogLevel.ERROR),
@@ -8684,7 +8699,8 @@ var require_NoopMeter = __commonJS((exports) => {
8684
8699
  exports.createNoopMeter = exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports.NOOP_OBSERVABLE_GAUGE_METRIC = exports.NOOP_OBSERVABLE_COUNTER_METRIC = exports.NOOP_UP_DOWN_COUNTER_METRIC = exports.NOOP_HISTOGRAM_METRIC = exports.NOOP_GAUGE_METRIC = exports.NOOP_COUNTER_METRIC = exports.NOOP_METER = exports.NoopObservableUpDownCounterMetric = exports.NoopObservableGaugeMetric = exports.NoopObservableCounterMetric = exports.NoopObservableMetric = exports.NoopHistogramMetric = exports.NoopGaugeMetric = exports.NoopUpDownCounterMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = undefined;
8685
8700
 
8686
8701
  class NoopMeter {
8687
- constructor() {}
8702
+ constructor() {
8703
+ }
8688
8704
  createGauge(_name, _options) {
8689
8705
  return exports.NOOP_GAUGE_METRIC;
8690
8706
  }
@@ -8706,8 +8722,10 @@ var require_NoopMeter = __commonJS((exports) => {
8706
8722
  createObservableUpDownCounter(_name, _options) {
8707
8723
  return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
8708
8724
  }
8709
- addBatchObservableCallback(_callback, _observables) {}
8710
- removeBatchObservableCallback(_callback) {}
8725
+ addBatchObservableCallback(_callback, _observables) {
8726
+ }
8727
+ removeBatchObservableCallback(_callback) {
8728
+ }
8711
8729
  }
8712
8730
  exports.NoopMeter = NoopMeter;
8713
8731
 
@@ -8716,28 +8734,34 @@ var require_NoopMeter = __commonJS((exports) => {
8716
8734
  exports.NoopMetric = NoopMetric;
8717
8735
 
8718
8736
  class NoopCounterMetric extends NoopMetric {
8719
- add(_value, _attributes) {}
8737
+ add(_value, _attributes) {
8738
+ }
8720
8739
  }
8721
8740
  exports.NoopCounterMetric = NoopCounterMetric;
8722
8741
 
8723
8742
  class NoopUpDownCounterMetric extends NoopMetric {
8724
- add(_value, _attributes) {}
8743
+ add(_value, _attributes) {
8744
+ }
8725
8745
  }
8726
8746
  exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
8727
8747
 
8728
8748
  class NoopGaugeMetric extends NoopMetric {
8729
- record(_value, _attributes) {}
8749
+ record(_value, _attributes) {
8750
+ }
8730
8751
  }
8731
8752
  exports.NoopGaugeMetric = NoopGaugeMetric;
8732
8753
 
8733
8754
  class NoopHistogramMetric extends NoopMetric {
8734
- record(_value, _attributes) {}
8755
+ record(_value, _attributes) {
8756
+ }
8735
8757
  }
8736
8758
  exports.NoopHistogramMetric = NoopHistogramMetric;
8737
8759
 
8738
8760
  class NoopObservableMetric {
8739
- addCallback(_callback) {}
8740
- removeCallback(_callback) {}
8761
+ addCallback(_callback) {
8762
+ }
8763
+ removeCallback(_callback) {
8764
+ }
8741
8765
  }
8742
8766
  exports.NoopObservableMetric = NoopObservableMetric;
8743
8767
 
@@ -8842,7 +8866,8 @@ var require_context2 = __commonJS((exports) => {
8842
8866
  var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager;
8843
8867
 
8844
8868
  class ContextAPI {
8845
- constructor() {}
8869
+ constructor() {
8870
+ }
8846
8871
  static getInstance() {
8847
8872
  if (!this._instance) {
8848
8873
  this._instance = new ContextAPI;
@@ -8931,11 +8956,13 @@ var require_NonRecordingSpan = __commonJS((exports) => {
8931
8956
  updateName(_name) {
8932
8957
  return this;
8933
8958
  }
8934
- end(_endTime) {}
8959
+ end(_endTime) {
8960
+ }
8935
8961
  isRecording() {
8936
8962
  return false;
8937
8963
  }
8938
- recordException(_exception, _time) {}
8964
+ recordException(_exception, _time) {
8965
+ }
8939
8966
  }
8940
8967
  exports.NonRecordingSpan = NonRecordingSpan;
8941
8968
  });
@@ -9237,7 +9264,8 @@ var require_tracestate_impl = __commonJS((exports) => {
9237
9264
  const value = listMember.slice(i + 1, part.length);
9238
9265
  if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
9239
9266
  agg.set(key, value);
9240
- } else {}
9267
+ } else {
9268
+ }
9241
9269
  }
9242
9270
  return agg;
9243
9271
  }, new Map);
@@ -9309,7 +9337,8 @@ var require_metrics = __commonJS((exports) => {
9309
9337
  var API_NAME2 = "metrics";
9310
9338
 
9311
9339
  class MetricsAPI {
9312
- constructor() {}
9340
+ constructor() {
9341
+ }
9313
9342
  static getInstance() {
9314
9343
  if (!this._instance) {
9315
9344
  this._instance = new MetricsAPI;
@@ -9346,7 +9375,8 @@ var require_NoopTextMapPropagator = __commonJS((exports) => {
9346
9375
  exports.NoopTextMapPropagator = undefined;
9347
9376
 
9348
9377
  class NoopTextMapPropagator {
9349
- inject(_context, _carrier) {}
9378
+ inject(_context, _carrier) {
9379
+ }
9350
9380
  extract(context, _carrier) {
9351
9381
  return context;
9352
9382
  }
@@ -9659,7 +9689,8 @@ class Registry {
9659
9689
  return this.kv.getByKey(identifier);
9660
9690
  }
9661
9691
  }
9662
- var init_registry = () => {};
9692
+ var init_registry = () => {
9693
+ };
9663
9694
 
9664
9695
  // node_modules/superjson/dist/class-registry.js
9665
9696
  var ClassRegistry;
@@ -9744,7 +9775,8 @@ class CustomTransformerRegistry {
9744
9775
  return this.transfomers[name2];
9745
9776
  }
9746
9777
  }
9747
- var init_custom_transformer_registry = () => {};
9778
+ var init_custom_transformer_registry = () => {
9779
+ };
9748
9780
 
9749
9781
  // node_modules/superjson/dist/is.js
9750
9782
  var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1), isUndefined = (payload) => typeof payload === "undefined", isNull = (payload) => payload === null, isPlainObject = (payload) => {
@@ -10089,7 +10121,8 @@ var getNthKey = (value, n) => {
10089
10121
  }
10090
10122
  return object2;
10091
10123
  };
10092
- var init_accessDeep = () => {};
10124
+ var init_accessDeep = () => {
10125
+ };
10093
10126
 
10094
10127
  // node_modules/superjson/dist/plainer.js
10095
10128
  function traverse(tree, walker, origin = []) {
@@ -10678,7 +10711,8 @@ var require_NoopLogger = __commonJS((exports) => {
10678
10711
  exports.NOOP_LOGGER = exports.NoopLogger = undefined;
10679
10712
 
10680
10713
  class NoopLogger {
10681
- emit(_logRecord) {}
10714
+ emit(_logRecord) {
10715
+ }
10682
10716
  }
10683
10717
  exports.NoopLogger = NoopLogger;
10684
10718
  exports.NOOP_LOGGER = new NoopLogger;
@@ -10772,7 +10806,8 @@ var require_logs = __commonJS((exports) => {
10772
10806
  var NoopLoggerProvider_1 = require_NoopLoggerProvider();
10773
10807
 
10774
10808
  class LogsAPI {
10775
- constructor() {}
10809
+ constructor() {
10810
+ }
10776
10811
  static getInstance() {
10777
10812
  if (!this._instance) {
10778
10813
  this._instance = new LogsAPI;
@@ -11240,7 +11275,8 @@ var require_browser = __commonJS((exports, module) => {
11240
11275
  });
11241
11276
  args.splice(lastC, 0, c);
11242
11277
  }
11243
- exports.log = console.debug || console.log || (() => {});
11278
+ exports.log = console.debug || console.log || (() => {
11279
+ });
11244
11280
  function save(namespaces) {
11245
11281
  try {
11246
11282
  if (namespaces) {
@@ -11248,13 +11284,15 @@ var require_browser = __commonJS((exports, module) => {
11248
11284
  } else {
11249
11285
  exports.storage.removeItem("debug");
11250
11286
  }
11251
- } catch (error) {}
11287
+ } catch (error) {
11288
+ }
11252
11289
  }
11253
11290
  function load() {
11254
11291
  let r;
11255
11292
  try {
11256
11293
  r = exports.storage.getItem("debug");
11257
- } catch (error) {}
11294
+ } catch (error) {
11295
+ }
11258
11296
  if (!r && typeof process !== "undefined" && "env" in process) {
11259
11297
  r = process.env.DEBUG;
11260
11298
  }
@@ -11263,7 +11301,8 @@ var require_browser = __commonJS((exports, module) => {
11263
11301
  function localstorage() {
11264
11302
  try {
11265
11303
  return localStorage;
11266
- } catch (error) {}
11304
+ } catch (error) {
11305
+ }
11267
11306
  }
11268
11307
  module.exports = require_common()(exports);
11269
11308
  var { formatters } = module.exports;
@@ -11395,7 +11434,8 @@ var require_node3 = __commonJS((exports, module) => {
11395
11434
  exports.save = save;
11396
11435
  exports.load = load;
11397
11436
  exports.useColors = useColors;
11398
- exports.destroy = util5.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
11437
+ exports.destroy = util5.deprecate(() => {
11438
+ }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
11399
11439
  exports.colors = [6, 2, 3, 4, 5, 1];
11400
11440
  try {
11401
11441
  const supportsColor = require_supports_color();
@@ -11479,7 +11519,8 @@ var require_node3 = __commonJS((exports, module) => {
11479
11519
  221
11480
11520
  ];
11481
11521
  }
11482
- } catch (error) {}
11522
+ } catch (error) {
11523
+ }
11483
11524
  exports.inspectOpts = Object.keys(process.env).filter((key) => {
11484
11525
  return /^debug_/i.test(key);
11485
11526
  }).reduce((obj, key) => {
@@ -13728,7 +13769,8 @@ var require_jsbn = __commonJS((exports, module) => {
13728
13769
  ++this[w];
13729
13770
  }
13730
13771
  }
13731
- function NullExp() {}
13772
+ function NullExp() {
13773
+ }
13732
13774
  function nNop(x) {
13733
13775
  return x;
13734
13776
  }
@@ -14153,7 +14195,8 @@ var require_jsbn = __commonJS((exports, module) => {
14153
14195
  for (i2 = 0;i2 < ba.length; ++i2)
14154
14196
  ba[i2] = rng_get_byte();
14155
14197
  }
14156
- function SecureRandom() {}
14198
+ function SecureRandom() {
14199
+ }
14157
14200
  SecureRandom.prototype.nextBytes = rng_get_bytes;
14158
14201
  function Arcfour() {
14159
14202
  this.i = 0;
@@ -16376,7 +16419,8 @@ var require_delayed_stream = __commonJS((exports, module) => {
16376
16419
  delayedStream._handleEmit(arguments);
16377
16420
  return realEmit.apply(source, arguments);
16378
16421
  };
16379
- source.on("error", function() {});
16422
+ source.on("error", function() {
16423
+ });
16380
16424
  if (delayedStream.pauseStream) {
16381
16425
  source.pause();
16382
16426
  }
@@ -25680,7 +25724,8 @@ var require_implementation = __commonJS((exports, module) => {
25680
25724
  }
25681
25725
  bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
25682
25726
  if (target.prototype) {
25683
- var Empty = function Empty() {};
25727
+ var Empty = function Empty() {
25728
+ };
25684
25729
  Empty.prototype = target.prototype;
25685
25730
  bound.prototype = new Empty;
25686
25731
  Empty.prototype = null;
@@ -25800,7 +25845,8 @@ var require_get_intrinsic = __commonJS((exports, module) => {
25800
25845
  var getEvalledConstructor = function(expressionSyntax) {
25801
25846
  try {
25802
25847
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
25803
- } catch (e2) {}
25848
+ } catch (e2) {
25849
+ }
25804
25850
  };
25805
25851
  var $gOPD = require_gopd();
25806
25852
  var $defineProperty = require_es_define_property();
@@ -26539,9 +26585,11 @@ var require_debug = __commonJS((exports, module) => {
26539
26585
  if (!debug) {
26540
26586
  try {
26541
26587
  debug = require_src4()("follow-redirects");
26542
- } catch (error) {}
26588
+ } catch (error) {
26589
+ }
26543
26590
  if (typeof debug !== "function") {
26544
- debug = function() {};
26591
+ debug = function() {
26592
+ };
26545
26593
  }
26546
26594
  }
26547
26595
  debug.apply(null, arguments);
@@ -26916,7 +26964,8 @@ var require_follow_redirects = __commonJS((exports, module) => {
26916
26964
  });
26917
26965
  return exports2;
26918
26966
  }
26919
- function noop2() {}
26967
+ function noop2() {
26968
+ }
26920
26969
  function parseUrl(input) {
26921
26970
  var parsed;
26922
26971
  if (useNativeURL) {
@@ -27299,7 +27348,8 @@ var require_axios = __commonJS((exports, module) => {
27299
27348
  isArray3(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
27300
27349
  return obj;
27301
27350
  };
27302
- var noop2 = () => {};
27351
+ var noop2 = () => {
27352
+ };
27303
27353
  var toFiniteNumber = (value2, defaultValue) => {
27304
27354
  return value2 != null && Number.isFinite(value2 = +value2) ? value2 : defaultValue;
27305
27355
  };
@@ -28752,7 +28802,8 @@ var require_axios = __commonJS((exports, module) => {
28752
28802
  try {
28753
28803
  const knownLength = await util__default["default"].promisify(data.getLength).call(data);
28754
28804
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
28755
- } catch (e2) {}
28805
+ } catch (e2) {
28806
+ }
28756
28807
  }
28757
28808
  } else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
28758
28809
  data.size && headers.setContentType(data.type || "application/octet-stream");
@@ -29026,11 +29077,13 @@ var require_axios = __commonJS((exports, module) => {
29026
29077
  this.write(name2, "", Date.now() - 86400000);
29027
29078
  }
29028
29079
  } : {
29029
- write() {},
29080
+ write() {
29081
+ },
29030
29082
  read() {
29031
29083
  return null;
29032
29084
  },
29033
- remove() {}
29085
+ remove() {
29086
+ }
29034
29087
  };
29035
29088
  var headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
29036
29089
  function mergeConfig(config1, config2) {
@@ -29524,7 +29577,8 @@ var require_axios = __commonJS((exports, module) => {
29524
29577
  if (fn) {
29525
29578
  try {
29526
29579
  Object.defineProperty(fn, "name", { value: value2 });
29527
- } catch (e2) {}
29580
+ } catch (e2) {
29581
+ }
29528
29582
  Object.defineProperty(fn, "adapterName", { value: value2 });
29529
29583
  }
29530
29584
  });
@@ -29674,7 +29728,8 @@ var require_axios = __commonJS((exports, module) => {
29674
29728
  err.stack += `
29675
29729
  ` + stack;
29676
29730
  }
29677
- } catch (e2) {}
29731
+ } catch (e2) {
29732
+ }
29678
29733
  }
29679
29734
  throw err;
29680
29735
  }
@@ -31747,7 +31802,8 @@ var require_logger = __commonJS((exports) => {
31747
31802
  Object.defineProperty(exports, "__esModule", { value: true });
31748
31803
  exports.DefaultLogger = undefined;
31749
31804
  exports.DefaultLogger = {
31750
- silly: (...params) => {},
31805
+ silly: (...params) => {
31806
+ },
31751
31807
  debug: (...params) => {
31752
31808
  console.log(new Date, params);
31753
31809
  },
@@ -34490,7 +34546,8 @@ var require_constants4 = __commonJS((exports, module) => {
34490
34546
  kListener: Symbol("kListener"),
34491
34547
  kStatusCode: Symbol("status-code"),
34492
34548
  kWebSocket: Symbol("websocket"),
34493
- NOOP: () => {}
34549
+ NOOP: () => {
34550
+ }
34494
34551
  };
34495
34552
  });
34496
34553
 
@@ -34568,7 +34625,8 @@ var require_buffer_util = __commonJS((exports, module) => {
34568
34625
  else
34569
34626
  bufferUtil.unmask(buffer, mask);
34570
34627
  };
34571
- } catch (e2) {}
34628
+ } catch (e2) {
34629
+ }
34572
34630
  }
34573
34631
  });
34574
34632
 
@@ -35047,7 +35105,8 @@ var require_validation = __commonJS((exports, module) => {
35047
35105
  module.exports.isValidUTF8 = function(buf) {
35048
35106
  return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf);
35049
35107
  };
35050
- } catch (e2) {}
35108
+ } catch (e2) {
35109
+ }
35051
35110
  }
35052
35111
  });
35053
35112
 
@@ -37472,7 +37531,8 @@ var require_websocket_client = __commonJS((exports) => {
37472
37531
  this.options = Object.assign({ pongTimeout: 7500, pingInterval: 1e4, reconnectTimeout: 500 }, options);
37473
37532
  this.listenKeyStateStore = {};
37474
37533
  this.wsUrlKeyMap = {};
37475
- this.on("error", () => {});
37534
+ this.on("error", () => {
37535
+ });
37476
37536
  }
37477
37537
  getRestClientOptions() {
37478
37538
  return Object.assign(Object.assign(Object.assign({}, this.options), this.options.restOptions), { api_key: this.options.api_key, api_secret: this.options.api_secret });
@@ -38946,7 +39006,8 @@ var require_logger2 = __commonJS((exports) => {
38946
39006
  Object.defineProperty(exports, "__esModule", { value: true });
38947
39007
  exports.DefaultLogger = undefined;
38948
39008
  exports.DefaultLogger = {
38949
- trace: (..._params) => {},
39009
+ trace: (..._params) => {
39010
+ },
38950
39011
  info: (...params) => {
38951
39012
  console.info(params);
38952
39013
  },
@@ -40992,7 +41053,8 @@ var require_BaseWSClient = __commonJS((exports) => {
40992
41053
  if (wsState === null || wsState === undefined ? undefined : wsState.activePongTimer) {
40993
41054
  clearTimeout(wsState.activePongTimer);
40994
41055
  wsState.activePongTimer = undefined;
40995
- } else {}
41056
+ } else {
41057
+ }
40996
41058
  }
40997
41059
  clearReconnectTimer(wsKey) {
40998
41060
  const wsState = this.wsStore.get(wsKey);
@@ -41863,7 +41925,8 @@ var require_lib3 = __commonJS((exports) => {
41863
41925
  var util;
41864
41926
  (function(util2) {
41865
41927
  util2.assertEqual = (val) => val;
41866
- function assertIs(_arg) {}
41928
+ function assertIs(_arg) {
41929
+ }
41867
41930
  util2.assertIs = assertIs;
41868
41931
  function assertNever(_x) {
41869
41932
  throw new Error;
@@ -47218,7 +47281,8 @@ function parseStringDef(def, refs) {
47218
47281
  case "trim":
47219
47282
  break;
47220
47283
  default:
47221
- ((_) => {})(check);
47284
+ ((_) => {
47285
+ })(check);
47222
47286
  }
47223
47287
  }
47224
47288
  }
@@ -48608,7 +48672,8 @@ class StdioServerTransport {
48608
48672
  var util2;
48609
48673
  (function(util3) {
48610
48674
  util3.assertEqual = (val) => val;
48611
- function assertIs(_arg) {}
48675
+ function assertIs(_arg) {
48676
+ }
48612
48677
  util3.assertIs = assertIs;
48613
48678
  function assertNever(_x) {
48614
48679
  throw new Error;
@@ -53469,7 +53534,8 @@ var API_NAME = "task-context";
53469
53534
 
53470
53535
  class TaskContextAPI {
53471
53536
  static _instance;
53472
- constructor() {}
53537
+ constructor() {
53538
+ }
53473
53539
  static getInstance() {
53474
53540
  if (!this._instance) {
53475
53541
  this._instance = new TaskContextAPI;
@@ -53889,7 +53955,8 @@ class ParseError extends Error {
53889
53955
  super(message2), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
53890
53956
  }
53891
53957
  }
53892
- function noop(_arg) {}
53958
+ function noop(_arg) {
53959
+ }
53893
53960
  function createParser(callbacks) {
53894
53961
  if (typeof callbacks == "function")
53895
53962
  throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");
@@ -54092,7 +54159,8 @@ async function _doZodFetchWithRetries(schema, url, requestInit, options, attempt
54092
54159
  if (error instanceof ApiError) {
54093
54160
  throw error;
54094
54161
  }
54095
- if (error instanceof import_zod_validation_error.ValidationError) {}
54162
+ if (error instanceof import_zod_validation_error.ValidationError) {
54163
+ }
54096
54164
  if (options?.retry) {
54097
54165
  const retry = { ...defaultRetryOptions2, ...options.retry };
54098
54166
  const delay = calculateNextRetryDelay(retry, attempt);
@@ -54566,7 +54634,8 @@ class ApiClientMissingError extends Error {
54566
54634
 
54567
54635
  class APIClientManagerAPI {
54568
54636
  static _instance;
54569
- constructor() {}
54637
+ constructor() {
54638
+ }
54570
54639
  static getInstance() {
54571
54640
  if (!this._instance) {
54572
54641
  this._instance = new APIClientManagerAPI;
@@ -55121,7 +55190,8 @@ var PrefetchQueue = class {
55121
55190
  if (__privateGet(this, _queueTailUrl) && !__privateGet(this, _prefetchQueue).has(__privateGet(this, _queueTailUrl))) {
55122
55191
  __privateMethod(this, _PrefetchQueue_instances, prefetch_fn).call(this, __privateGet(this, _queueTailUrl), args[1]);
55123
55192
  }
55124
- }).catch(() => {});
55193
+ }).catch(() => {
55194
+ });
55125
55195
  return request;
55126
55196
  }
55127
55197
  };
@@ -55152,8 +55222,10 @@ prefetch_fn = function(...args) {
55152
55222
  }
55153
55223
  __privateSet(this, _queueTailUrl, nextUrl);
55154
55224
  return __privateMethod(this, _PrefetchQueue_instances, prefetch_fn).call(this, nextUrl, args[1]);
55155
- }).catch(() => {});
55156
- } catch (_) {}
55225
+ }).catch(() => {
55226
+ });
55227
+ } catch (_) {
55228
+ }
55157
55229
  };
55158
55230
  function getNextChunkUrl(url, res) {
55159
55231
  const shapeHandle = res.headers.get(SHAPE_HANDLE_HEADER);
@@ -55256,7 +55328,8 @@ var ShapeStream = class {
55256
55328
  get lastOffset() {
55257
55329
  return __privateGet(this, _lastOffset);
55258
55330
  }
55259
- subscribe(callback, onError = () => {}) {
55331
+ subscribe(callback, onError = () => {
55332
+ }) {
55260
55333
  const subscriptionId = Math.random();
55261
55334
  __privateGet(this, _subscribers).set(subscriptionId, [callback, onError]);
55262
55335
  return () => {
@@ -56450,7 +56523,8 @@ class SimpleClock {
56450
56523
  const nowStruct = now.toStruct();
56451
56524
  return [nowStruct.seconds, nowStruct.nanos];
56452
56525
  }
56453
- reset() {}
56526
+ reset() {
56527
+ }
56454
56528
  }
56455
56529
 
56456
56530
  // node_modules/@trigger.dev/core/dist/esm/v3/clock/index.js
@@ -56459,7 +56533,8 @@ var SIMPLE_CLOCK = new SimpleClock;
56459
56533
 
56460
56534
  class ClockAPI {
56461
56535
  static _instance;
56462
- constructor() {}
56536
+ constructor() {
56537
+ }
56463
56538
  static getInstance() {
56464
56539
  if (!this._instance) {
56465
56540
  this._instance = new ClockAPI;
@@ -56485,7 +56560,8 @@ var clock = ClockAPI.getInstance();
56485
56560
 
56486
56561
  // node_modules/@trigger.dev/core/dist/esm/v3/usage/noopUsageManager.js
56487
56562
  class NoopUsageManager {
56488
- disable() {}
56563
+ disable() {
56564
+ }
56489
56565
  start() {
56490
56566
  return {
56491
56567
  sample: () => ({ cpuTime: 0, wallTime: 0 })
@@ -56508,7 +56584,8 @@ var NOOP_USAGE_MANAGER = new NoopUsageManager;
56508
56584
 
56509
56585
  class UsageAPI {
56510
56586
  static _instance;
56511
- constructor() {}
56587
+ constructor() {
56588
+ }
56512
56589
  static getInstance() {
56513
56590
  if (!this._instance) {
56514
56591
  this._instance = new UsageAPI;
@@ -56568,7 +56645,8 @@ class NoopRunMetadataManager {
56568
56645
  refresh(requestOptions) {
56569
56646
  throw new Error("Method not implemented.");
56570
56647
  }
56571
- enterWithMetadata(metadata) {}
56648
+ enterWithMetadata(metadata) {
56649
+ }
56572
56650
  current() {
56573
56651
  throw new Error("Method not implemented.");
56574
56652
  }
@@ -56624,7 +56702,8 @@ var NOOP_MANAGER = new NoopRunMetadataManager;
56624
56702
 
56625
56703
  class RunMetadataAPI {
56626
56704
  static _instance;
56627
- constructor() {}
56705
+ constructor() {
56706
+ }
56628
56707
  static getInstance() {
56629
56708
  if (!this._instance) {
56630
56709
  this._instance = new RunMetadataAPI;
@@ -56709,7 +56788,8 @@ var NOOP_TIMEOUT_MANAGER = new NoopTimeoutManager;
56709
56788
 
56710
56789
  class TimeoutAPI {
56711
56790
  static _instance;
56712
- constructor() {}
56791
+ constructor() {
56792
+ }
56713
56793
  static getInstance() {
56714
56794
  if (!this._instance) {
56715
56795
  this._instance = new TimeoutAPI;
@@ -57113,7 +57193,8 @@ function getTokenPayload(e2) {
57113
57193
  return "%" + ("00" + e3.charCodeAt(0).toString(16)).slice(-2);
57114
57194
  }).join(""));
57115
57195
  return JSON.parse(t2) || {};
57116
- } catch (e3) {}
57196
+ } catch (e3) {
57197
+ }
57117
57198
  return {};
57118
57199
  }
57119
57200
  function isTokenExpired(e2, t2 = 0) {
@@ -57167,7 +57248,8 @@ class BaseAuthStore {
57167
57248
  let n = {};
57168
57249
  try {
57169
57250
  n = JSON.parse(s2), (typeof n === null || typeof n != "object" || Array.isArray(n)) && (n = {});
57170
- } catch (e3) {}
57251
+ } catch (e3) {
57252
+ }
57171
57253
  this.save(n.token || "", n.record || n.model || null);
57172
57254
  }
57173
57255
  exportToCookie(e2, t2 = i) {
@@ -57314,7 +57396,8 @@ class RealtimeService extends BaseService {
57314
57396
  let i3;
57315
57397
  try {
57316
57398
  i3 = JSON.parse(s3?.data);
57317
- } catch {}
57399
+ } catch {
57400
+ }
57318
57401
  t2(i3 || {});
57319
57402
  };
57320
57403
  return this.subscriptions[i2] || (this.subscriptions[i2] = []), this.subscriptions[i2].push(listener), this.isConnected ? this.subscriptions[i2].length === 1 ? await this.submitSubscriptions() : this.eventSource?.addEventListener(i2, listener) : await this.connect(), async () => this.unsubscribeByTopicAndListener(e2, listener);
@@ -58027,7 +58110,8 @@ class Client {
58027
58110
  let s3 = {};
58028
58111
  try {
58029
58112
  s3 = await e3.json();
58030
- } catch (e4) {}
58113
+ } catch (e4) {
58114
+ }
58031
58115
  if (this.afterSend && (s3 = await this.afterSend(e3, s3, t2)), e3.status >= 400)
58032
58116
  throw new ClientResponseError({ url: e3.url, status: e3.status, data: s3 });
58033
58117
  return s3;
@@ -58568,7 +58652,7 @@ class AppDatabase {
58568
58652
  }
58569
58653
  }
58570
58654
  async cancelLimitOrders(payload) {
58571
- const { symbol, kind, account, cancelExchangeOrders } = payload;
58655
+ const { symbol, kind, account, cancelExchangeOrders, raw } = payload;
58572
58656
  const side = kind === "long" ? "buy" : "sell";
58573
58657
  const orders = await this.pb.collection("orders").getFullList({
58574
58658
  filter: `symbol:lower="${symbol.toLowerCase()}" && account.owner:lower="${account.owner.toLowerCase()}" && account.exchange:lower="${account.exchange.toLowerCase()}" && kind="${kind}" && side:lower="${side}" && stop = 0`
@@ -58578,6 +58662,9 @@ class AppDatabase {
58578
58662
  filter: `symbol:lower="${symbol.toLowerCase()}" && account.owner:lower="${account.owner.toLowerCase()}" && account.exchange:lower="${account.exchange.toLowerCase()}" && kind="${kind}" && side:lower="${stop_side}" && stop > 0`
58579
58663
  });
58580
58664
  const exchange_order_ids = orders.concat(existing_stop_orders).map((o) => account.exchange === "bybit" ? o.order_id : parseInt(o.order_id, 10));
58665
+ if (raw) {
58666
+ return exchange_order_ids;
58667
+ }
58581
58668
  try {
58582
58669
  console.log(`Attempting to cancel ${exchange_order_ids.length} orders on ${account.exchange} for ${account.owner}...`);
58583
58670
  const cancel_result = await cancelExchangeOrders({
@@ -59517,7 +59604,8 @@ class Signal {
59517
59604
  support: kind === "long" ? _stop_loss : this.support
59518
59605
  };
59519
59606
  const instance = new Signal(derivedConfig);
59520
- if (kind === "short") {}
59607
+ if (kind === "short") {
59608
+ }
59521
59609
  let result = instance.get_bulk_trade_zones({ current_price, kind });
59522
59610
  return result;
59523
59611
  return result?.filter((x) => {
@@ -59735,7 +59823,8 @@ class Signal {
59735
59823
  kind = "long",
59736
59824
  raw
59737
59825
  }) {
59738
- if (raw) {}
59826
+ if (raw) {
59827
+ }
59739
59828
  const margin_range = this.get_margin_range(current_price, kind);
59740
59829
  let margin_zones = this.get_margin_zones({ current_price });
59741
59830
  let remaining_zones = margin_zones.filter((x) => JSON.stringify(x) != JSON.stringify(margin_range));
@@ -59946,7 +60035,8 @@ class Signal {
59946
60035
  return true;
59947
60036
  });
59948
60037
  let total_orders = limit_trades.concat(market_trades);
59949
- if (kind === "short") {}
60038
+ if (kind === "short") {
60039
+ }
59950
60040
  if (this.minimum_size && total_orders.length > 0) {
59951
60041
  let payload = total_orders;
59952
60042
  let greater_than_min_size = total_orders.filter((o) => o ? o.quantity >= this.minimum_size : true);
@@ -60032,7 +60122,8 @@ class Signal {
60032
60122
  });
60033
60123
  const multiplier = start - index;
60034
60124
  const incurred_fees = fees.reduce((a, b) => a + b, 0) + previous_risks.reduce((a, b) => a + b, 0);
60035
- if (index === 0) {}
60125
+ if (index === 0) {
60126
+ }
60036
60127
  let quantity = determine_position_size2({
60037
60128
  entry,
60038
60129
  stop,
@@ -60130,7 +60221,8 @@ function buildConfig(app_config, {
60130
60221
  return [];
60131
60222
  }
60132
60223
  const condition = (kind === "long" ? entry > app_config.support : entry >= app_config.support) && stop >= app_config.support * 0.999;
60133
- if (kind === "short") {}
60224
+ if (kind === "short") {
60225
+ }
60134
60226
  const result = entry === stop ? [] : condition ? instance.build_entry({
60135
60227
  current_price: entry,
60136
60228
  stop_loss: stop,
@@ -61978,7 +62070,8 @@ async function createLimitPurchaseOrdersParallel(client, symbol, priceFormat, qu
61978
62070
  const splitOrders = (inputOrders) => {
61979
62071
  const result = [];
61980
62072
  for (const o of inputOrders) {
61981
- if (o.take_profit) {}
62073
+ if (o.take_profit) {
62074
+ }
61982
62075
  if (o.stop && !o.side) {
61983
62076
  result.push({
61984
62077
  price: o.price,
@@ -62844,6 +62937,7 @@ async function cancelOrdersParallel(payload) {
62844
62937
 
62845
62938
  // src/exchanges/bybit.ts
62846
62939
  var import_bybit_api = __toESM(require_lib3(), 1);
62940
+ var import_p_limit2 = __toESM(require_p_limit(), 1);
62847
62941
  async function initClient2(credentials, options) {
62848
62942
  const { proxyAgent } = options;
62849
62943
  try {
@@ -62871,7 +62965,8 @@ async function createLimitPurchaseOrders(client, symbol, priceFormat, quantityFo
62871
62965
  const splitOrders = (inputOrders) => {
62872
62966
  const result = [];
62873
62967
  for (const o of inputOrders) {
62874
- if (o.take_profit) {}
62968
+ if (o.take_profit) {
62969
+ }
62875
62970
  if (o.stop && !o.side) {
62876
62971
  result.push({
62877
62972
  price: o.price,
@@ -62949,14 +63044,22 @@ async function getPositionInfo2(client, symbol) {
62949
63044
  const short = result.find((x) => x.side.toLowerCase() === "sell");
62950
63045
  return { long, short };
62951
63046
  }
63047
+ var ORDERS_PER_SECONDS = 10;
63048
+ var BATCH_SIZE2 = 10;
62952
63049
  async function cancelOrders2(payload) {
62953
63050
  const client = payload.custom_client;
62954
63051
  const results = [];
62955
- for (let i2 = 0;i2 < payload.orders.length; i2 += 15) {
62956
- const batch2 = payload.orders.slice(i2, i2 + 15);
62957
- let rr = await client.batchCancelOrders("linear", batch2.map((x) => ({ orderId: x.orderId, symbol: payload.symbol })));
63052
+ const batches = [];
63053
+ for (let i2 = 0;i2 < payload.orders.length; i2 += BATCH_SIZE2) {
63054
+ batches.push(payload.orders.slice(i2, i2 + BATCH_SIZE2));
63055
+ }
63056
+ const limit = import_p_limit2.default(ORDERS_PER_SECONDS);
63057
+ for (let i2 = 0;i2 < batches.length; i2++) {
63058
+ const batch2 = batches[i2];
63059
+ let rr = await limit(async () => {
63060
+ return await client.batchCancelOrders("linear", batch2.map((x) => ({ orderId: x.orderId, symbol: payload.symbol })));
63061
+ });
62958
63062
  results.push(rr);
62959
- await new Promise((resolve) => setTimeout(resolve, 1000));
62960
63063
  }
62961
63064
  return results;
62962
63065
  }
@@ -63413,8 +63516,10 @@ class BybitExchange extends BaseExchange {
63413
63516
  sellLeverage: payload.leverage.toString()
63414
63517
  });
63415
63518
  }
63416
- async generateConfig(payload) {}
63417
- async checkDelistedMovers(payload) {}
63519
+ async generateConfig(payload) {
63520
+ }
63521
+ async checkDelistedMovers(payload) {
63522
+ }
63418
63523
  async getAllOpenOrders() {
63419
63524
  const result = await getAllOpenOrders2({ client: this.client });
63420
63525
  return result;
@@ -63425,11 +63530,13 @@ class BybitExchange extends BaseExchange {
63425
63530
  async getDelistedSpotSymbols() {
63426
63531
  return [];
63427
63532
  }
63428
- async crossAccountTransfer(payload) {}
63533
+ async crossAccountTransfer(payload) {
63534
+ }
63429
63535
  getOpenOrders(payload) {
63430
63536
  return getOpenOrders2(this.client, payload.symbol);
63431
63537
  }
63432
- async placeBadStopEntry(payload) {}
63538
+ async placeBadStopEntry(payload) {
63539
+ }
63433
63540
  }
63434
63541
 
63435
63542
  // src/helpers/accounts.ts
@@ -64368,7 +64475,7 @@ class ExchangeAccount {
64368
64475
  }
64369
64476
  }
64370
64477
  async cancelOrders(payload) {
64371
- const { symbol, kind, price: _price, all, stop, limit } = payload;
64478
+ const { symbol, kind, price: _price, all, stop, limit, raw } = payload;
64372
64479
  let price = _price || 0;
64373
64480
  await this.syncAccount({
64374
64481
  symbol,
@@ -64377,13 +64484,15 @@ class ExchangeAccount {
64377
64484
  });
64378
64485
  if (limit) {
64379
64486
  return await this.app_db.cancelLimitOrders({
64487
+ raw,
64380
64488
  symbol,
64381
64489
  kind,
64382
64490
  account: this.instance,
64383
64491
  cancelExchangeOrders: this.cancelExchangeOrders.bind(this)
64384
64492
  });
64385
64493
  }
64386
- if (all) {} else {
64494
+ if (all) {
64495
+ } else {
64387
64496
  if (!price) {
64388
64497
  const position2 = await this.syncAccount({
64389
64498
  symbol,
@@ -67083,7 +67192,8 @@ async function fetchExchangeDetails(payload) {
67083
67192
  }
67084
67193
 
67085
67194
  // src/mcp-server.ts
67086
- console.log = (...args) => {};
67195
+ console.log = (...args) => {
67196
+ };
67087
67197
  var server = new McpServer({
67088
67198
  name: "ultimate-trader",
67089
67199
  version: "0.0.1",