@koi-design/callkit 2.0.2 → 2.0.3

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.
@@ -37,9 +37,9 @@ var WebCall = (() => {
37
37
  ));
38
38
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
39
 
40
- // node_modules/.pnpm/blueimp-md5@2.19.0/node_modules/blueimp-md5/js/md5.js
40
+ // ../../node_modules/.pnpm/blueimp-md5@2.19.0/node_modules/blueimp-md5/js/md5.js
41
41
  var require_md5 = __commonJS({
42
- "node_modules/.pnpm/blueimp-md5@2.19.0/node_modules/blueimp-md5/js/md5.js"(exports, module) {
42
+ "../../node_modules/.pnpm/blueimp-md5@2.19.0/node_modules/blueimp-md5/js/md5.js"(exports, module) {
43
43
  (function($) {
44
44
  "use strict";
45
45
  function safeAdd(x, y) {
@@ -246,9 +246,9 @@ var WebCall = (() => {
246
246
  }
247
247
  });
248
248
 
249
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/bind.js
249
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/bind.js
250
250
  var require_bind = __commonJS({
251
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/bind.js"(exports, module) {
251
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/bind.js"(exports, module) {
252
252
  "use strict";
253
253
  module.exports = function bind(fn, thisArg) {
254
254
  return function wrap() {
@@ -262,9 +262,9 @@ var WebCall = (() => {
262
262
  }
263
263
  });
264
264
 
265
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/utils.js
265
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/utils.js
266
266
  var require_utils = __commonJS({
267
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/utils.js"(exports, module) {
267
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/utils.js"(exports, module) {
268
268
  "use strict";
269
269
  var bind = require_bind();
270
270
  var toString = Object.prototype.toString;
@@ -415,9 +415,9 @@ var WebCall = (() => {
415
415
  }
416
416
  });
417
417
 
418
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/buildURL.js
418
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/buildURL.js
419
419
  var require_buildURL = __commonJS({
420
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/buildURL.js"(exports, module) {
420
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/buildURL.js"(exports, module) {
421
421
  "use strict";
422
422
  var utils = require_utils();
423
423
  function encode(val) {
@@ -466,9 +466,9 @@ var WebCall = (() => {
466
466
  }
467
467
  });
468
468
 
469
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/InterceptorManager.js
469
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/InterceptorManager.js
470
470
  var require_InterceptorManager = __commonJS({
471
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/InterceptorManager.js"(exports, module) {
471
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/InterceptorManager.js"(exports, module) {
472
472
  "use strict";
473
473
  var utils = require_utils();
474
474
  function InterceptorManager() {
@@ -499,9 +499,9 @@ var WebCall = (() => {
499
499
  }
500
500
  });
501
501
 
502
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/normalizeHeaderName.js
502
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/normalizeHeaderName.js
503
503
  var require_normalizeHeaderName = __commonJS({
504
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports, module) {
504
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports, module) {
505
505
  "use strict";
506
506
  var utils = require_utils();
507
507
  module.exports = function normalizeHeaderName(headers, normalizedName) {
@@ -515,9 +515,9 @@ var WebCall = (() => {
515
515
  }
516
516
  });
517
517
 
518
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/enhanceError.js
518
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/enhanceError.js
519
519
  var require_enhanceError = __commonJS({
520
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/enhanceError.js"(exports, module) {
520
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/enhanceError.js"(exports, module) {
521
521
  "use strict";
522
522
  module.exports = function enhanceError(error, config, code, request2, response) {
523
523
  error.config = config;
@@ -551,9 +551,9 @@ var WebCall = (() => {
551
551
  }
552
552
  });
553
553
 
554
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/transitional.js
554
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/transitional.js
555
555
  var require_transitional = __commonJS({
556
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/transitional.js"(exports, module) {
556
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/transitional.js"(exports, module) {
557
557
  "use strict";
558
558
  module.exports = {
559
559
  silentJSONParsing: true,
@@ -563,9 +563,9 @@ var WebCall = (() => {
563
563
  }
564
564
  });
565
565
 
566
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/createError.js
566
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/createError.js
567
567
  var require_createError = __commonJS({
568
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/createError.js"(exports, module) {
568
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/createError.js"(exports, module) {
569
569
  "use strict";
570
570
  var enhanceError = require_enhanceError();
571
571
  module.exports = function createError(message, config, code, request2, response) {
@@ -575,9 +575,9 @@ var WebCall = (() => {
575
575
  }
576
576
  });
577
577
 
578
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/settle.js
578
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/settle.js
579
579
  var require_settle = __commonJS({
580
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/settle.js"(exports, module) {
580
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/settle.js"(exports, module) {
581
581
  "use strict";
582
582
  var createError = require_createError();
583
583
  module.exports = function settle(resolve, reject, response) {
@@ -597,9 +597,9 @@ var WebCall = (() => {
597
597
  }
598
598
  });
599
599
 
600
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/cookies.js
600
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/cookies.js
601
601
  var require_cookies = __commonJS({
602
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/cookies.js"(exports, module) {
602
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/cookies.js"(exports, module) {
603
603
  "use strict";
604
604
  var utils = require_utils();
605
605
  module.exports = utils.isStandardBrowserEnv() ? (
@@ -649,9 +649,9 @@ var WebCall = (() => {
649
649
  }
650
650
  });
651
651
 
652
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
652
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
653
653
  var require_isAbsoluteURL = __commonJS({
654
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports, module) {
654
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports, module) {
655
655
  "use strict";
656
656
  module.exports = function isAbsoluteURL(url) {
657
657
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
@@ -659,9 +659,9 @@ var WebCall = (() => {
659
659
  }
660
660
  });
661
661
 
662
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/combineURLs.js
662
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/combineURLs.js
663
663
  var require_combineURLs = __commonJS({
664
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/combineURLs.js"(exports, module) {
664
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/combineURLs.js"(exports, module) {
665
665
  "use strict";
666
666
  module.exports = function combineURLs(baseURL, relativeURL) {
667
667
  return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
@@ -669,9 +669,9 @@ var WebCall = (() => {
669
669
  }
670
670
  });
671
671
 
672
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/buildFullPath.js
672
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/buildFullPath.js
673
673
  var require_buildFullPath = __commonJS({
674
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/buildFullPath.js"(exports, module) {
674
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/buildFullPath.js"(exports, module) {
675
675
  "use strict";
676
676
  var isAbsoluteURL = require_isAbsoluteURL();
677
677
  var combineURLs = require_combineURLs();
@@ -684,9 +684,9 @@ var WebCall = (() => {
684
684
  }
685
685
  });
686
686
 
687
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/parseHeaders.js
687
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/parseHeaders.js
688
688
  var require_parseHeaders = __commonJS({
689
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/parseHeaders.js"(exports, module) {
689
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/parseHeaders.js"(exports, module) {
690
690
  "use strict";
691
691
  var utils = require_utils();
692
692
  var ignoreDuplicateOf = [
@@ -736,9 +736,9 @@ var WebCall = (() => {
736
736
  }
737
737
  });
738
738
 
739
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
739
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
740
740
  var require_isURLSameOrigin = __commonJS({
741
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module) {
741
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module) {
742
742
  "use strict";
743
743
  var utils = require_utils();
744
744
  module.exports = utils.isStandardBrowserEnv() ? (
@@ -783,9 +783,9 @@ var WebCall = (() => {
783
783
  }
784
784
  });
785
785
 
786
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/Cancel.js
786
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/Cancel.js
787
787
  var require_Cancel = __commonJS({
788
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/Cancel.js"(exports, module) {
788
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/Cancel.js"(exports, module) {
789
789
  "use strict";
790
790
  function Cancel2(message) {
791
791
  this.message = message;
@@ -798,9 +798,9 @@ var WebCall = (() => {
798
798
  }
799
799
  });
800
800
 
801
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/xhr.js
801
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/xhr.js
802
802
  var require_xhr = __commonJS({
803
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/xhr.js"(exports, module) {
803
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/xhr.js"(exports, module) {
804
804
  "use strict";
805
805
  var utils = require_utils();
806
806
  var settle = require_settle();
@@ -949,9 +949,9 @@ var WebCall = (() => {
949
949
  }
950
950
  });
951
951
 
952
- // node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
952
+ // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
953
953
  var require_ms = __commonJS({
954
- "node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
954
+ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
955
955
  var s = 1e3;
956
956
  var m = s * 60;
957
957
  var h = m * 60;
@@ -1065,9 +1065,9 @@ var WebCall = (() => {
1065
1065
  }
1066
1066
  });
1067
1067
 
1068
- // node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js
1068
+ // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js
1069
1069
  var require_common = __commonJS({
1070
- "node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module) {
1070
+ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module) {
1071
1071
  function setup(env) {
1072
1072
  createDebug.debug = createDebug;
1073
1073
  createDebug.default = createDebug;
@@ -1242,9 +1242,9 @@ var WebCall = (() => {
1242
1242
  }
1243
1243
  });
1244
1244
 
1245
- // node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js
1245
+ // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js
1246
1246
  var require_browser = __commonJS({
1247
- "node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module) {
1247
+ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module) {
1248
1248
  exports.formatArgs = formatArgs;
1249
1249
  exports.save = save;
1250
1250
  exports.load = load;
@@ -1412,9 +1412,9 @@ var WebCall = (() => {
1412
1412
  }
1413
1413
  });
1414
1414
 
1415
- // node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
1415
+ // ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
1416
1416
  var require_has_flag = __commonJS({
1417
- "node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
1417
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
1418
1418
  "use strict";
1419
1419
  module.exports = (flag, argv = process.argv) => {
1420
1420
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -1425,9 +1425,9 @@ var WebCall = (() => {
1425
1425
  }
1426
1426
  });
1427
1427
 
1428
- // node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
1428
+ // ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
1429
1429
  var require_supports_color = __commonJS({
1430
- "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
1430
+ "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
1431
1431
  "use strict";
1432
1432
  var os = __require("os");
1433
1433
  var tty = __require("tty");
@@ -1527,9 +1527,9 @@ var WebCall = (() => {
1527
1527
  }
1528
1528
  });
1529
1529
 
1530
- // node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js
1530
+ // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js
1531
1531
  var require_node = __commonJS({
1532
- "node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module) {
1532
+ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module) {
1533
1533
  var tty = __require("tty");
1534
1534
  var util = __require("util");
1535
1535
  exports.init = init;
@@ -1701,9 +1701,9 @@ var WebCall = (() => {
1701
1701
  }
1702
1702
  });
1703
1703
 
1704
- // node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js
1704
+ // ../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js
1705
1705
  var require_src = __commonJS({
1706
- "node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module) {
1706
+ "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module) {
1707
1707
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
1708
1708
  module.exports = require_browser();
1709
1709
  } else {
@@ -1712,9 +1712,9 @@ var WebCall = (() => {
1712
1712
  }
1713
1713
  });
1714
1714
 
1715
- // node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/debug.js
1715
+ // ../../node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/debug.js
1716
1716
  var require_debug = __commonJS({
1717
- "node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/debug.js"(exports, module) {
1717
+ "../../node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/debug.js"(exports, module) {
1718
1718
  var debug;
1719
1719
  module.exports = function() {
1720
1720
  if (!debug) {
@@ -1732,9 +1732,9 @@ var WebCall = (() => {
1732
1732
  }
1733
1733
  });
1734
1734
 
1735
- // node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/index.js
1735
+ // ../../node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/index.js
1736
1736
  var require_follow_redirects = __commonJS({
1737
- "node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/index.js"(exports, module) {
1737
+ "../../node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/index.js"(exports, module) {
1738
1738
  var url = __require("url");
1739
1739
  var URL = url.URL;
1740
1740
  var http = __require("http");
@@ -2228,18 +2228,18 @@ var WebCall = (() => {
2228
2228
  }
2229
2229
  });
2230
2230
 
2231
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/env/data.js
2231
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/env/data.js
2232
2232
  var require_data = __commonJS({
2233
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/env/data.js"(exports, module) {
2233
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/env/data.js"(exports, module) {
2234
2234
  module.exports = {
2235
2235
  "version": "0.26.1"
2236
2236
  };
2237
2237
  }
2238
2238
  });
2239
2239
 
2240
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/http.js
2240
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/http.js
2241
2241
  var require_http = __commonJS({
2242
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/http.js"(exports, module) {
2242
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/adapters/http.js"(exports, module) {
2243
2243
  "use strict";
2244
2244
  var utils = require_utils();
2245
2245
  var settle = require_settle();
@@ -2561,9 +2561,9 @@ var WebCall = (() => {
2561
2561
  }
2562
2562
  });
2563
2563
 
2564
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/index.js
2564
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/index.js
2565
2565
  var require_defaults = __commonJS({
2566
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/index.js"(exports, module) {
2566
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/defaults/index.js"(exports, module) {
2567
2567
  "use strict";
2568
2568
  var utils = require_utils();
2569
2569
  var normalizeHeaderName = require_normalizeHeaderName();
@@ -2668,9 +2668,9 @@ var WebCall = (() => {
2668
2668
  }
2669
2669
  });
2670
2670
 
2671
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/transformData.js
2671
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/transformData.js
2672
2672
  var require_transformData = __commonJS({
2673
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/transformData.js"(exports, module) {
2673
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/transformData.js"(exports, module) {
2674
2674
  "use strict";
2675
2675
  var utils = require_utils();
2676
2676
  var defaults = require_defaults();
@@ -2684,9 +2684,9 @@ var WebCall = (() => {
2684
2684
  }
2685
2685
  });
2686
2686
 
2687
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/isCancel.js
2687
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/isCancel.js
2688
2688
  var require_isCancel = __commonJS({
2689
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/isCancel.js"(exports, module) {
2689
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/isCancel.js"(exports, module) {
2690
2690
  "use strict";
2691
2691
  module.exports = function isCancel(value) {
2692
2692
  return !!(value && value.__CANCEL__);
@@ -2694,9 +2694,9 @@ var WebCall = (() => {
2694
2694
  }
2695
2695
  });
2696
2696
 
2697
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/dispatchRequest.js
2697
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/dispatchRequest.js
2698
2698
  var require_dispatchRequest = __commonJS({
2699
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/dispatchRequest.js"(exports, module) {
2699
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/dispatchRequest.js"(exports, module) {
2700
2700
  "use strict";
2701
2701
  var utils = require_utils();
2702
2702
  var transformData = require_transformData();
@@ -2759,9 +2759,9 @@ var WebCall = (() => {
2759
2759
  }
2760
2760
  });
2761
2761
 
2762
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/mergeConfig.js
2762
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/mergeConfig.js
2763
2763
  var require_mergeConfig = __commonJS({
2764
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/mergeConfig.js"(exports, module) {
2764
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/mergeConfig.js"(exports, module) {
2765
2765
  "use strict";
2766
2766
  var utils = require_utils();
2767
2767
  module.exports = function mergeConfig(config1, config2) {
@@ -2841,9 +2841,9 @@ var WebCall = (() => {
2841
2841
  }
2842
2842
  });
2843
2843
 
2844
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/validator.js
2844
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/validator.js
2845
2845
  var require_validator = __commonJS({
2846
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/validator.js"(exports, module) {
2846
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/validator.js"(exports, module) {
2847
2847
  "use strict";
2848
2848
  var VERSION = require_data().version;
2849
2849
  var validators = {};
@@ -2902,9 +2902,9 @@ var WebCall = (() => {
2902
2902
  }
2903
2903
  });
2904
2904
 
2905
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/Axios.js
2905
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/Axios.js
2906
2906
  var require_Axios = __commonJS({
2907
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/Axios.js"(exports, module) {
2907
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/core/Axios.js"(exports, module) {
2908
2908
  "use strict";
2909
2909
  var utils = require_utils();
2910
2910
  var buildURL = require_buildURL();
@@ -3014,9 +3014,9 @@ var WebCall = (() => {
3014
3014
  }
3015
3015
  });
3016
3016
 
3017
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/CancelToken.js
3017
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/CancelToken.js
3018
3018
  var require_CancelToken = __commonJS({
3019
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/CancelToken.js"(exports, module) {
3019
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/cancel/CancelToken.js"(exports, module) {
3020
3020
  "use strict";
3021
3021
  var Cancel2 = require_Cancel();
3022
3022
  function CancelToken(executor) {
@@ -3096,9 +3096,9 @@ var WebCall = (() => {
3096
3096
  }
3097
3097
  });
3098
3098
 
3099
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/spread.js
3099
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/spread.js
3100
3100
  var require_spread = __commonJS({
3101
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/spread.js"(exports, module) {
3101
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/spread.js"(exports, module) {
3102
3102
  "use strict";
3103
3103
  module.exports = function spread(callback) {
3104
3104
  return function wrap(arr) {
@@ -3108,9 +3108,9 @@ var WebCall = (() => {
3108
3108
  }
3109
3109
  });
3110
3110
 
3111
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAxiosError.js
3111
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAxiosError.js
3112
3112
  var require_isAxiosError = __commonJS({
3113
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAxiosError.js"(exports, module) {
3113
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/helpers/isAxiosError.js"(exports, module) {
3114
3114
  "use strict";
3115
3115
  var utils = require_utils();
3116
3116
  module.exports = function isAxiosError(payload) {
@@ -3119,9 +3119,9 @@ var WebCall = (() => {
3119
3119
  }
3120
3120
  });
3121
3121
 
3122
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/axios.js
3122
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/axios.js
3123
3123
  var require_axios = __commonJS({
3124
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/axios.js"(exports, module) {
3124
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/lib/axios.js"(exports, module) {
3125
3125
  "use strict";
3126
3126
  var utils = require_utils();
3127
3127
  var bind = require_bind();
@@ -3154,16 +3154,16 @@ var WebCall = (() => {
3154
3154
  }
3155
3155
  });
3156
3156
 
3157
- // node_modules/.pnpm/axios@0.26.1/node_modules/axios/index.js
3157
+ // ../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/index.js
3158
3158
  var require_axios2 = __commonJS({
3159
- "node_modules/.pnpm/axios@0.26.1/node_modules/axios/index.js"(exports, module) {
3159
+ "../../node_modules/.pnpm/axios@0.26.1/node_modules/axios/index.js"(exports, module) {
3160
3160
  module.exports = require_axios();
3161
3161
  }
3162
3162
  });
3163
3163
 
3164
- // node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js
3164
+ // ../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js
3165
3165
  var require_stringify = __commonJS({
3166
- "node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js"(exports, module) {
3166
+ "../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js"(exports, module) {
3167
3167
  exports = module.exports = stringify2;
3168
3168
  exports.getSerialize = serializer;
3169
3169
  function stringify2(obj, replacer, spaces, cycleReplacer) {
@@ -3192,19 +3192,20 @@ var WebCall = (() => {
3192
3192
  }
3193
3193
  });
3194
3194
 
3195
- // package/index.ts
3196
- var package_exports = {};
3197
- __export(package_exports, {
3195
+ // core/index.ts
3196
+ var core_exports = {};
3197
+ __export(core_exports, {
3198
3198
  CallKit: () => CallKit
3199
3199
  });
3200
3200
  var import_blueimp_md5 = __toESM(require_md5());
3201
3201
 
3202
- // package/axios.ts
3202
+ // core/axios.ts
3203
3203
  var import_axios = __toESM(require_axios2());
3204
3204
  var instance = import_axios.default.create({
3205
3205
  headers: {
3206
3206
  "Content-Type": "application/x-www-form-urlencoded"
3207
- }
3207
+ },
3208
+ timeout: 6e4
3208
3209
  });
3209
3210
  instance.interceptors.request.use((config) => config);
3210
3211
  instance.interceptors.response.use(
@@ -3214,25 +3215,49 @@ var WebCall = (() => {
3214
3215
  var request = (config) => instance.request(config);
3215
3216
  var axios_default = request;
3216
3217
 
3217
- // package/api.ts
3218
+ // core/api.ts
3218
3219
  var Api = class {
3219
3220
  callKit;
3220
3221
  constructor(callKit) {
3221
3222
  this.callKit = callKit;
3222
3223
  }
3224
+ isLogining = false;
3225
+ isLoginOuting = false;
3223
3226
  async login(params) {
3224
- return this.post({
3225
- url: "/auth/agentUser/login",
3226
- method: "post",
3227
- data: params
3228
- });
3227
+ if (this.isLogining) {
3228
+ return;
3229
+ }
3230
+ this.isLogining = true;
3231
+ try {
3232
+ const res = await this.post({
3233
+ url: "/auth/agentUser/login",
3234
+ method: "post",
3235
+ data: params
3236
+ });
3237
+ this.isLogining = false;
3238
+ return res;
3239
+ } catch (error) {
3240
+ this.isLogining = false;
3241
+ throw error;
3242
+ }
3229
3243
  }
3230
3244
  async loginOut(params) {
3231
- return this.post({
3232
- url: "/auth/agentUser/loginOut",
3233
- method: "post",
3234
- data: params
3235
- });
3245
+ if (this.isLoginOuting) {
3246
+ return;
3247
+ }
3248
+ this.isLoginOuting = true;
3249
+ try {
3250
+ const res = await this.post({
3251
+ url: "/auth/agentUser/loginOut",
3252
+ method: "post",
3253
+ data: params
3254
+ });
3255
+ this.isLoginOuting = false;
3256
+ return res;
3257
+ } catch (error) {
3258
+ this.isLoginOuting = false;
3259
+ throw error;
3260
+ }
3236
3261
  }
3237
3262
  async trackLogs(log) {
3238
3263
  return this.post(
@@ -3295,7 +3320,7 @@ var WebCall = (() => {
3295
3320
  }
3296
3321
  };
3297
3322
 
3298
- // package/const.ts
3323
+ // core/const.ts
3299
3324
  var CallStatus = {
3300
3325
  /**
3301
3326
  * Initial state/Hang up
@@ -3644,7 +3669,7 @@ var WebCall = (() => {
3644
3669
  maxSize: 8192
3645
3670
  };
3646
3671
 
3647
- // package/call.ts
3672
+ // core/call.ts
3648
3673
  var Call = class {
3649
3674
  callKit;
3650
3675
  constructor(callKit) {
@@ -3785,20 +3810,19 @@ var WebCall = (() => {
3785
3810
  // package.json
3786
3811
  var package_default = {
3787
3812
  name: "@koi-design/callkit",
3788
- version: "2.0.2",
3813
+ version: "2.0.3",
3789
3814
  description: "callkit",
3790
3815
  author: "koi",
3791
3816
  license: "ISC",
3792
3817
  scripts: {
3793
3818
  build: "tsup",
3794
- start: "tsup --watch",
3795
3819
  dev: "vite",
3796
- lint: "eslint -c .eslintrc.js --ext .jsx,.js,.tsx,.ts ./package --fix",
3797
- prepare: "husky install",
3820
+ lint: "eslint -c ../../.eslintrc.js --ext .jsx,.js,.tsx,.ts ./package --fix",
3798
3821
  release: "tsup && node scripts/pkg.js"
3799
3822
  },
3800
3823
  exports: {
3801
3824
  ".": {
3825
+ types: "./dist/index.d.ts",
3802
3826
  require: "./dist/index.js",
3803
3827
  import: "./dist/index.mjs"
3804
3828
  }
@@ -3835,7 +3859,7 @@ var WebCall = (() => {
3835
3859
  }
3836
3860
  };
3837
3861
 
3838
- // package/config.ts
3862
+ // core/config.ts
3839
3863
  var Config = class {
3840
3864
  callKit;
3841
3865
  constructor(callKit) {
@@ -3851,6 +3875,7 @@ var WebCall = (() => {
3851
3875
  socket: "",
3852
3876
  userInfo: {
3853
3877
  wsUrl: "",
3878
+ logGather: false,
3854
3879
  sessionId: "",
3855
3880
  // User
3856
3881
  username: "",
@@ -3905,7 +3930,8 @@ var WebCall = (() => {
3905
3930
  fsPort: "",
3906
3931
  iceInfo: [],
3907
3932
  iceGatheringTimeout: this.config.userInfo.iceGatheringTimeout,
3908
- encryptionMethod: EncryptionMethod.INTERNAL
3933
+ encryptionMethod: EncryptionMethod.INTERNAL,
3934
+ logGather: false
3909
3935
  };
3910
3936
  this.callKit.trigger(KitEvent.KIT_LOGIN_CHANGE, false);
3911
3937
  }
@@ -3938,7 +3964,7 @@ var WebCall = (() => {
3938
3964
  }
3939
3965
  };
3940
3966
 
3941
- // package/logger.ts
3967
+ // core/logger.ts
3942
3968
  var import_json_stringify_safe = __toESM(require_stringify());
3943
3969
  function getLevel(level) {
3944
3970
  return LoggerLevelMap[level];
@@ -4075,10 +4101,10 @@ var WebCall = (() => {
4075
4101
  }
4076
4102
  };
4077
4103
 
4078
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/version.js
4104
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/version.js
4079
4105
  var LIBRARY_VERSION = "0.21.1";
4080
4106
 
4081
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/exception.js
4107
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/exception.js
4082
4108
  var Exception = class extends Error {
4083
4109
  constructor(message) {
4084
4110
  super(message);
@@ -4086,14 +4112,14 @@ var WebCall = (() => {
4086
4112
  }
4087
4113
  };
4088
4114
 
4089
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/content-type-unsupported.js
4115
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/content-type-unsupported.js
4090
4116
  var ContentTypeUnsupportedError = class extends Exception {
4091
4117
  constructor(message) {
4092
4118
  super(message ? message : "Unsupported content type.");
4093
4119
  }
4094
4120
  };
4095
4121
 
4096
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/request-pending.js
4122
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/request-pending.js
4097
4123
  var RequestPendingError = class extends Exception {
4098
4124
  /** @internal */
4099
4125
  constructor(message) {
@@ -4101,28 +4127,28 @@ var WebCall = (() => {
4101
4127
  }
4102
4128
  };
4103
4129
 
4104
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/session-description-handler.js
4130
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/session-description-handler.js
4105
4131
  var SessionDescriptionHandlerError = class extends Exception {
4106
4132
  constructor(message) {
4107
4133
  super(message ? message : "Unspecified session description handler error.");
4108
4134
  }
4109
4135
  };
4110
4136
 
4111
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/session-terminated.js
4137
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/session-terminated.js
4112
4138
  var SessionTerminatedError = class extends Exception {
4113
4139
  constructor() {
4114
4140
  super("The session has terminated.");
4115
4141
  }
4116
4142
  };
4117
4143
 
4118
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/state-transition.js
4144
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/exceptions/state-transition.js
4119
4145
  var StateTransitionError = class extends Exception {
4120
4146
  constructor(message) {
4121
4147
  super(message ? message : "An error occurred during state transition.");
4122
4148
  }
4123
4149
  };
4124
4150
 
4125
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/ack.js
4151
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/ack.js
4126
4152
  var Ack = class {
4127
4153
  /** @internal */
4128
4154
  constructor(incomingAckRequest) {
@@ -4134,7 +4160,7 @@ var WebCall = (() => {
4134
4160
  }
4135
4161
  };
4136
4162
 
4137
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/bye.js
4163
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/bye.js
4138
4164
  var Bye = class {
4139
4165
  /** @internal */
4140
4166
  constructor(incomingByeRequest) {
@@ -4156,7 +4182,7 @@ var WebCall = (() => {
4156
4182
  }
4157
4183
  };
4158
4184
 
4159
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/cancel.js
4185
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/cancel.js
4160
4186
  var Cancel = class {
4161
4187
  /** @internal */
4162
4188
  constructor(incomingCancelRequest) {
@@ -4168,7 +4194,7 @@ var WebCall = (() => {
4168
4194
  }
4169
4195
  };
4170
4196
 
4171
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/emitter.js
4197
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/emitter.js
4172
4198
  var EmitterImpl = class {
4173
4199
  constructor() {
4174
4200
  this.listeners = new Array();
@@ -4233,7 +4259,7 @@ var WebCall = (() => {
4233
4259
  }
4234
4260
  };
4235
4261
 
4236
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/info.js
4262
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/info.js
4237
4263
  var Info = class {
4238
4264
  /** @internal */
4239
4265
  constructor(incomingInfoRequest) {
@@ -4255,7 +4281,7 @@ var WebCall = (() => {
4255
4281
  }
4256
4282
  };
4257
4283
 
4258
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/parameters.js
4284
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/parameters.js
4259
4285
  var Parameters = class {
4260
4286
  constructor(parameters) {
4261
4287
  this.parameters = {};
@@ -4291,7 +4317,7 @@ var WebCall = (() => {
4291
4317
  }
4292
4318
  };
4293
4319
 
4294
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/name-addr-header.js
4320
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/name-addr-header.js
4295
4321
  var NameAddrHeader = class extends Parameters {
4296
4322
  /**
4297
4323
  * Constructor
@@ -4331,7 +4357,7 @@ var WebCall = (() => {
4331
4357
  }
4332
4358
  };
4333
4359
 
4334
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/uri.js
4360
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/uri.js
4335
4361
  var URI = class extends Parameters {
4336
4362
  /**
4337
4363
  * Constructor
@@ -4547,7 +4573,7 @@ var WebCall = (() => {
4547
4573
  return true;
4548
4574
  }
4549
4575
 
4550
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/pegjs/dist/grammar.js
4576
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/pegjs/dist/grammar.js
4551
4577
  function peg$padEnd(str, targetLength, padString) {
4552
4578
  padString = padString || " ";
4553
4579
  if (str.length > targetLength) {
@@ -6072,7 +6098,7 @@ var WebCall = (() => {
6072
6098
  }
6073
6099
  var parse = peg$parse;
6074
6100
 
6075
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/grammar.js
6101
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/grammar/grammar.js
6076
6102
  var Grammar;
6077
6103
  (function(Grammar2) {
6078
6104
  function parse2(input, startRule) {
@@ -6097,7 +6123,7 @@ var WebCall = (() => {
6097
6123
  Grammar2.URIParse = URIParse;
6098
6124
  })(Grammar = Grammar || (Grammar = {}));
6099
6125
 
6100
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/utils.js
6126
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/utils.js
6101
6127
  var REASON_PHRASE = {
6102
6128
  100: "Trying",
6103
6129
  180: "Ringing",
@@ -6212,7 +6238,7 @@ var WebCall = (() => {
6212
6238
  return encodeURIComponent(str).replace(/%[A-F\d]{2}/g, "U").length;
6213
6239
  }
6214
6240
 
6215
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-message.js
6241
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-message.js
6216
6242
  var IncomingMessage = class {
6217
6243
  constructor() {
6218
6244
  this.headers = {};
@@ -6327,21 +6353,21 @@ var WebCall = (() => {
6327
6353
  }
6328
6354
  };
6329
6355
 
6330
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-request-message.js
6356
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-request-message.js
6331
6357
  var IncomingRequestMessage = class extends IncomingMessage {
6332
6358
  constructor() {
6333
6359
  super();
6334
6360
  }
6335
6361
  };
6336
6362
 
6337
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-response-message.js
6363
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/incoming-response-message.js
6338
6364
  var IncomingResponseMessage = class extends IncomingMessage {
6339
6365
  constructor() {
6340
6366
  super();
6341
6367
  }
6342
6368
  };
6343
6369
 
6344
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/outgoing-request-message.js
6370
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/outgoing-request-message.js
6345
6371
  var OutgoingRequestMessage = class {
6346
6372
  constructor(method, ruri, fromURI, toURI, options, extraHeaders, body) {
6347
6373
  this.headers = {};
@@ -6541,7 +6567,7 @@ var WebCall = (() => {
6541
6567
  }
6542
6568
  };
6543
6569
 
6544
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/body.js
6570
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/body.js
6545
6571
  function contentTypeToContentDisposition(contentType) {
6546
6572
  if (contentType === "application/sdp") {
6547
6573
  return "session";
@@ -6621,7 +6647,7 @@ var WebCall = (() => {
6621
6647
  };
6622
6648
  }
6623
6649
 
6624
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/session/session.js
6650
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/session/session.js
6625
6651
  var SessionState;
6626
6652
  (function(SessionState3) {
6627
6653
  SessionState3["Initial"] = "Initial";
@@ -6639,7 +6665,7 @@ var WebCall = (() => {
6639
6665
  SignalingState2["Closed"] = "Closed";
6640
6666
  })(SignalingState = SignalingState || (SignalingState = {}));
6641
6667
 
6642
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/timers.js
6668
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/timers.js
6643
6669
  var T1 = 500;
6644
6670
  var T2 = 4e3;
6645
6671
  var T4 = 5e3;
@@ -6661,14 +6687,14 @@ var WebCall = (() => {
6661
6687
  // See RFC 3261 Section 13.3.1.1
6662
6688
  };
6663
6689
 
6664
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/transaction-state-error.js
6690
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/transaction-state-error.js
6665
6691
  var TransactionStateError = class extends Exception {
6666
6692
  constructor(message) {
6667
6693
  super(message ? message : "Transaction state error.");
6668
6694
  }
6669
6695
  };
6670
6696
 
6671
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/methods/constants.js
6697
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/methods/constants.js
6672
6698
  var C;
6673
6699
  (function(C2) {
6674
6700
  C2.ACK = "ACK";
@@ -6687,7 +6713,7 @@ var WebCall = (() => {
6687
6713
  C2.PRACK = "PRACK";
6688
6714
  })(C = C || (C = {}));
6689
6715
 
6690
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agent-core/allowed-methods.js
6716
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agent-core/allowed-methods.js
6691
6717
  var AllowedMethods = [
6692
6718
  C.ACK,
6693
6719
  C.BYE,
@@ -6703,7 +6729,7 @@ var WebCall = (() => {
6703
6729
  C.SUBSCRIBE
6704
6730
  ];
6705
6731
 
6706
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/message.js
6732
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/message.js
6707
6733
  var Message = class {
6708
6734
  /** @internal */
6709
6735
  constructor(incomingMessageRequest) {
@@ -6725,7 +6751,7 @@ var WebCall = (() => {
6725
6751
  }
6726
6752
  };
6727
6753
 
6728
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/notification.js
6754
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/notification.js
6729
6755
  var Notification = class {
6730
6756
  /** @internal */
6731
6757
  constructor(incomingNotifyRequest) {
@@ -6747,7 +6773,7 @@ var WebCall = (() => {
6747
6773
  }
6748
6774
  };
6749
6775
 
6750
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/referral.js
6776
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/referral.js
6751
6777
  var Referral = class {
6752
6778
  /** @internal */
6753
6779
  constructor(incomingReferRequest, session) {
@@ -6822,7 +6848,7 @@ var WebCall = (() => {
6822
6848
  }
6823
6849
  };
6824
6850
 
6825
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/session-state.js
6851
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/session-state.js
6826
6852
  var SessionState2;
6827
6853
  (function(SessionState3) {
6828
6854
  SessionState3["Initial"] = "Initial";
@@ -6832,7 +6858,7 @@ var WebCall = (() => {
6832
6858
  SessionState3["Terminated"] = "Terminated";
6833
6859
  })(SessionState2 = SessionState2 || (SessionState2 = {}));
6834
6860
 
6835
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/session.js
6861
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/session.js
6836
6862
  var Session = class {
6837
6863
  /**
6838
6864
  * Constructor.
@@ -7864,7 +7890,7 @@ var WebCall = (() => {
7864
7890
  }
7865
7891
  };
7866
7892
 
7867
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent-options.js
7893
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent-options.js
7868
7894
  var SIPExtension;
7869
7895
  (function(SIPExtension2) {
7870
7896
  SIPExtension2["Required"] = "Required";
@@ -7908,7 +7934,7 @@ var WebCall = (() => {
7908
7934
  // RFC 7433
7909
7935
  };
7910
7936
 
7911
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/invitation.js
7937
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/invitation.js
7912
7938
  var Invitation = class extends Session {
7913
7939
  /** @internal */
7914
7940
  constructor(userAgent, incomingInviteRequest) {
@@ -8441,7 +8467,7 @@ var WebCall = (() => {
8441
8467
  }
8442
8468
  };
8443
8469
 
8444
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/inviter.js
8470
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/inviter.js
8445
8471
  var Inviter = class extends Session {
8446
8472
  /**
8447
8473
  * Constructs a new instance of the `Inviter` class.
@@ -9114,7 +9140,7 @@ var WebCall = (() => {
9114
9140
  }
9115
9141
  };
9116
9142
 
9117
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/messager.js
9143
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/messager.js
9118
9144
  var Messager = class {
9119
9145
  /**
9120
9146
  * Constructs a new instance of the `Messager` class.
@@ -9161,7 +9187,7 @@ var WebCall = (() => {
9161
9187
  }
9162
9188
  };
9163
9189
 
9164
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/registerer-state.js
9190
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/registerer-state.js
9165
9191
  var RegistererState;
9166
9192
  (function(RegistererState2) {
9167
9193
  RegistererState2["Initial"] = "Initial";
@@ -9170,7 +9196,7 @@ var WebCall = (() => {
9170
9196
  RegistererState2["Terminated"] = "Terminated";
9171
9197
  })(RegistererState = RegistererState || (RegistererState = {}));
9172
9198
 
9173
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/registerer.js
9199
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/registerer.js
9174
9200
  var Registerer = class {
9175
9201
  /**
9176
9202
  * Constructs a new instance of the `Registerer` class.
@@ -9707,7 +9733,7 @@ var WebCall = (() => {
9707
9733
  Registerer.defaultExpires = 600;
9708
9734
  Registerer.defaultRefreshFrequency = 99;
9709
9735
 
9710
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/subscription/subscription.js
9736
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/subscription/subscription.js
9711
9737
  var SubscriptionState;
9712
9738
  (function(SubscriptionState2) {
9713
9739
  SubscriptionState2["Initial"] = "Initial";
@@ -9717,7 +9743,7 @@ var WebCall = (() => {
9717
9743
  SubscriptionState2["Terminated"] = "Terminated";
9718
9744
  })(SubscriptionState = SubscriptionState || (SubscriptionState = {}));
9719
9745
 
9720
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/transport-state.js
9746
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/transport-state.js
9721
9747
  var TransportState;
9722
9748
  (function(TransportState2) {
9723
9749
  TransportState2["Connecting"] = "Connecting";
@@ -9726,14 +9752,14 @@ var WebCall = (() => {
9726
9752
  TransportState2["Disconnected"] = "Disconnected";
9727
9753
  })(TransportState = TransportState || (TransportState = {}));
9728
9754
 
9729
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent-state.js
9755
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent-state.js
9730
9756
  var UserAgentState;
9731
9757
  (function(UserAgentState2) {
9732
9758
  UserAgentState2["Started"] = "Started";
9733
9759
  UserAgentState2["Stopped"] = "Stopped";
9734
9760
  })(UserAgentState = UserAgentState || (UserAgentState = {}));
9735
9761
 
9736
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/md5.js
9762
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/md5.js
9737
9763
  var Md5 = class {
9738
9764
  constructor() {
9739
9765
  this._dataLength = 0;
@@ -10060,7 +10086,7 @@ var WebCall = (() => {
10060
10086
  console.error("Md5 self test failed.");
10061
10087
  }
10062
10088
 
10063
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/digest-authentication.js
10089
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/digest-authentication.js
10064
10090
  function MD5(s) {
10065
10091
  return Md5.hashStr(s);
10066
10092
  }
@@ -10186,7 +10212,7 @@ var WebCall = (() => {
10186
10212
  }
10187
10213
  };
10188
10214
 
10189
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/levels.js
10215
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/levels.js
10190
10216
  var Levels;
10191
10217
  (function(Levels2) {
10192
10218
  Levels2[Levels2["error"] = 0] = "error";
@@ -10195,7 +10221,7 @@ var WebCall = (() => {
10195
10221
  Levels2[Levels2["debug"] = 3] = "debug";
10196
10222
  })(Levels = Levels || (Levels = {}));
10197
10223
 
10198
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/logger.js
10224
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/logger.js
10199
10225
  var Logger2 = class {
10200
10226
  constructor(logger, category, label) {
10201
10227
  this.logger = logger;
@@ -10225,7 +10251,7 @@ var WebCall = (() => {
10225
10251
  }
10226
10252
  };
10227
10253
 
10228
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/logger-factory.js
10254
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/log/logger-factory.js
10229
10255
  var LoggerFactory = class {
10230
10256
  constructor() {
10231
10257
  this.builtinEnabled = true;
@@ -10310,7 +10336,7 @@ var WebCall = (() => {
10310
10336
  }
10311
10337
  };
10312
10338
 
10313
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/parser.js
10339
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/parser.js
10314
10340
  var Parser;
10315
10341
  (function(Parser2) {
10316
10342
  function getHeader(data, headerStart) {
@@ -10514,7 +10540,7 @@ var WebCall = (() => {
10514
10540
  Parser2.parseMessage = parseMessage;
10515
10541
  })(Parser = Parser || (Parser = {}));
10516
10542
 
10517
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/outgoing-response.js
10543
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/messages/outgoing-response.js
10518
10544
  function constructOutgoingResponse(message, options) {
10519
10545
  const CRLF = "\r\n";
10520
10546
  if (options.statusCode < 100 || options.statusCode > 699) {
@@ -10573,14 +10599,14 @@ var WebCall = (() => {
10573
10599
  return { message: response };
10574
10600
  }
10575
10601
 
10576
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/transport-error.js
10602
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/exceptions/transport-error.js
10577
10603
  var TransportError = class extends Exception {
10578
10604
  constructor(message) {
10579
10605
  super(message ? message : "Unspecified transport error.");
10580
10606
  }
10581
10607
  };
10582
10608
 
10583
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/transaction.js
10609
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/transaction.js
10584
10610
  var Transaction = class {
10585
10611
  constructor(_transport, _user, _id, _state, loggerCategory) {
10586
10612
  this._transport = _transport;
@@ -10688,7 +10714,7 @@ var WebCall = (() => {
10688
10714
  }
10689
10715
  };
10690
10716
 
10691
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/server-transaction.js
10717
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/server-transaction.js
10692
10718
  var ServerTransaction = class extends Transaction {
10693
10719
  constructor(_request, transport, user, state, loggerCategory) {
10694
10720
  super(transport, user, _request.viaBranch, state, loggerCategory);
@@ -10701,7 +10727,7 @@ var WebCall = (() => {
10701
10727
  }
10702
10728
  };
10703
10729
 
10704
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/transaction-state.js
10730
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/transaction-state.js
10705
10731
  var TransactionState;
10706
10732
  (function(TransactionState2) {
10707
10733
  TransactionState2["Accepted"] = "Accepted";
@@ -10713,7 +10739,7 @@ var WebCall = (() => {
10713
10739
  TransactionState2["Trying"] = "Trying";
10714
10740
  })(TransactionState = TransactionState || (TransactionState = {}));
10715
10741
 
10716
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/invite-server-transaction.js
10742
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/invite-server-transaction.js
10717
10743
  var InviteServerTransaction = class extends ServerTransaction {
10718
10744
  /**
10719
10745
  * Constructor.
@@ -11013,7 +11039,7 @@ var WebCall = (() => {
11013
11039
  }
11014
11040
  };
11015
11041
 
11016
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/client-transaction.js
11042
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/client-transaction.js
11017
11043
  var ClientTransaction = class extends Transaction {
11018
11044
  constructor(_request, transport, user, state, loggerCategory) {
11019
11045
  super(transport, user, ClientTransaction.makeId(_request), state, loggerCategory);
@@ -11052,7 +11078,7 @@ var WebCall = (() => {
11052
11078
  }
11053
11079
  };
11054
11080
 
11055
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/non-invite-client-transaction.js
11081
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/non-invite-client-transaction.js
11056
11082
  var NonInviteClientTransaction = class extends ClientTransaction {
11057
11083
  /**
11058
11084
  * Constructor
@@ -11237,7 +11263,7 @@ var WebCall = (() => {
11237
11263
  }
11238
11264
  };
11239
11265
 
11240
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/dialog.js
11266
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/dialog.js
11241
11267
  var Dialog = class {
11242
11268
  /**
11243
11269
  * Dialog constructor.
@@ -11553,7 +11579,7 @@ var WebCall = (() => {
11553
11579
  }
11554
11580
  };
11555
11581
 
11556
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/invite-client-transaction.js
11582
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/invite-client-transaction.js
11557
11583
  var InviteClientTransaction = class extends ClientTransaction {
11558
11584
  /**
11559
11585
  * Constructor.
@@ -11880,7 +11906,7 @@ var WebCall = (() => {
11880
11906
  }
11881
11907
  };
11882
11908
 
11883
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/user-agent-client.js
11909
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/user-agent-client.js
11884
11910
  var UserAgentClient = class {
11885
11911
  constructor(transactionConstructor, core, message, delegate) {
11886
11912
  this.transactionConstructor = transactionConstructor;
@@ -12122,7 +12148,7 @@ var WebCall = (() => {
12122
12148
  }
12123
12149
  };
12124
12150
 
12125
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/bye-user-agent-client.js
12151
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/bye-user-agent-client.js
12126
12152
  var ByeUserAgentClient = class extends UserAgentClient {
12127
12153
  constructor(dialog, delegate, options) {
12128
12154
  const message = dialog.createOutgoingRequestMessage(C.BYE, options);
@@ -12131,7 +12157,7 @@ var WebCall = (() => {
12131
12157
  }
12132
12158
  };
12133
12159
 
12134
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/non-invite-server-transaction.js
12160
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/transactions/non-invite-server-transaction.js
12135
12161
  var NonInviteServerTransaction = class extends ServerTransaction {
12136
12162
  /**
12137
12163
  * Constructor.
@@ -12306,7 +12332,7 @@ var WebCall = (() => {
12306
12332
  }
12307
12333
  };
12308
12334
 
12309
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/user-agent-server.js
12335
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/user-agent-server.js
12310
12336
  var UserAgentServer = class {
12311
12337
  constructor(transactionConstructor, core, message, delegate) {
12312
12338
  this.transactionConstructor = transactionConstructor;
@@ -12501,14 +12527,14 @@ var WebCall = (() => {
12501
12527
  }
12502
12528
  };
12503
12529
 
12504
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/bye-user-agent-server.js
12530
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/bye-user-agent-server.js
12505
12531
  var ByeUserAgentServer = class extends UserAgentServer {
12506
12532
  constructor(dialog, message, delegate) {
12507
12533
  super(NonInviteServerTransaction, dialog.userAgentCore, message, delegate);
12508
12534
  }
12509
12535
  };
12510
12536
 
12511
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/info-user-agent-client.js
12537
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/info-user-agent-client.js
12512
12538
  var InfoUserAgentClient = class extends UserAgentClient {
12513
12539
  constructor(dialog, delegate, options) {
12514
12540
  const message = dialog.createOutgoingRequestMessage(C.INFO, options);
@@ -12516,28 +12542,28 @@ var WebCall = (() => {
12516
12542
  }
12517
12543
  };
12518
12544
 
12519
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/info-user-agent-server.js
12545
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/info-user-agent-server.js
12520
12546
  var InfoUserAgentServer = class extends UserAgentServer {
12521
12547
  constructor(dialog, message, delegate) {
12522
12548
  super(NonInviteServerTransaction, dialog.userAgentCore, message, delegate);
12523
12549
  }
12524
12550
  };
12525
12551
 
12526
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/message-user-agent-client.js
12552
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/message-user-agent-client.js
12527
12553
  var MessageUserAgentClient = class extends UserAgentClient {
12528
12554
  constructor(core, message, delegate) {
12529
12555
  super(NonInviteClientTransaction, core, message, delegate);
12530
12556
  }
12531
12557
  };
12532
12558
 
12533
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/message-user-agent-server.js
12559
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/message-user-agent-server.js
12534
12560
  var MessageUserAgentServer = class extends UserAgentServer {
12535
12561
  constructor(core, message, delegate) {
12536
12562
  super(NonInviteServerTransaction, core, message, delegate);
12537
12563
  }
12538
12564
  };
12539
12565
 
12540
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/notify-user-agent-client.js
12566
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/notify-user-agent-client.js
12541
12567
  var NotifyUserAgentClient = class extends UserAgentClient {
12542
12568
  constructor(dialog, delegate, options) {
12543
12569
  const message = dialog.createOutgoingRequestMessage(C.NOTIFY, options);
@@ -12545,7 +12571,7 @@ var WebCall = (() => {
12545
12571
  }
12546
12572
  };
12547
12573
 
12548
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/notify-user-agent-server.js
12574
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/notify-user-agent-server.js
12549
12575
  function instanceOfDialog(object) {
12550
12576
  return object.userAgentCore !== void 0;
12551
12577
  }
@@ -12561,7 +12587,7 @@ var WebCall = (() => {
12561
12587
  }
12562
12588
  };
12563
12589
 
12564
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/prack-user-agent-client.js
12590
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/prack-user-agent-client.js
12565
12591
  var PrackUserAgentClient = class extends UserAgentClient {
12566
12592
  constructor(dialog, delegate, options) {
12567
12593
  const message = dialog.createOutgoingRequestMessage(C.PRACK, options);
@@ -12570,7 +12596,7 @@ var WebCall = (() => {
12570
12596
  }
12571
12597
  };
12572
12598
 
12573
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/prack-user-agent-server.js
12599
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/prack-user-agent-server.js
12574
12600
  var PrackUserAgentServer = class extends UserAgentServer {
12575
12601
  constructor(dialog, message, delegate) {
12576
12602
  super(NonInviteServerTransaction, dialog.userAgentCore, message, delegate);
@@ -12589,7 +12615,7 @@ var WebCall = (() => {
12589
12615
  }
12590
12616
  };
12591
12617
 
12592
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-invite-user-agent-client.js
12618
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-invite-user-agent-client.js
12593
12619
  var ReInviteUserAgentClient = class extends UserAgentClient {
12594
12620
  constructor(dialog, delegate, options) {
12595
12621
  const message = dialog.createOutgoingRequestMessage(C.INVITE, options);
@@ -12659,7 +12685,7 @@ var WebCall = (() => {
12659
12685
  }
12660
12686
  };
12661
12687
 
12662
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-invite-user-agent-server.js
12688
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-invite-user-agent-server.js
12663
12689
  var ReInviteUserAgentServer = class extends UserAgentServer {
12664
12690
  constructor(dialog, message, delegate) {
12665
12691
  super(InviteServerTransaction, dialog.userAgentCore, message, delegate);
@@ -12721,7 +12747,7 @@ var WebCall = (() => {
12721
12747
  }
12722
12748
  };
12723
12749
 
12724
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/refer-user-agent-client.js
12750
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/refer-user-agent-client.js
12725
12751
  var ReferUserAgentClient = class extends UserAgentClient {
12726
12752
  constructor(dialog, delegate, options) {
12727
12753
  const message = dialog.createOutgoingRequestMessage(C.REFER, options);
@@ -12729,7 +12755,7 @@ var WebCall = (() => {
12729
12755
  }
12730
12756
  };
12731
12757
 
12732
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/refer-user-agent-server.js
12758
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/refer-user-agent-server.js
12733
12759
  function instanceOfSessionDialog(object) {
12734
12760
  return object.userAgentCore !== void 0;
12735
12761
  }
@@ -12745,7 +12771,7 @@ var WebCall = (() => {
12745
12771
  }
12746
12772
  };
12747
12773
 
12748
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/session-dialog.js
12774
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/session-dialog.js
12749
12775
  var SessionDialog = class extends Dialog {
12750
12776
  constructor(initialTransaction, core, state, delegate) {
12751
12777
  super(core, state);
@@ -13358,7 +13384,7 @@ var WebCall = (() => {
13358
13384
  }
13359
13385
  };
13360
13386
 
13361
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/invite-user-agent-client.js
13387
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/invite-user-agent-client.js
13362
13388
  var InviteUserAgentClient = class extends UserAgentClient {
13363
13389
  constructor(core, message, delegate) {
13364
13390
  super(InviteClientTransaction, core, message, delegate);
@@ -13524,7 +13550,7 @@ var WebCall = (() => {
13524
13550
  }
13525
13551
  };
13526
13552
 
13527
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/invite-user-agent-server.js
13553
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/invite-user-agent-server.js
13528
13554
  var InviteUserAgentServer = class extends UserAgentServer {
13529
13555
  constructor(core, message, delegate) {
13530
13556
  super(InviteServerTransaction, core, message, delegate);
@@ -13664,21 +13690,21 @@ var WebCall = (() => {
13664
13690
  }
13665
13691
  };
13666
13692
 
13667
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/publish-user-agent-client.js
13693
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/publish-user-agent-client.js
13668
13694
  var PublishUserAgentClient = class extends UserAgentClient {
13669
13695
  constructor(core, message, delegate) {
13670
13696
  super(NonInviteClientTransaction, core, message, delegate);
13671
13697
  }
13672
13698
  };
13673
13699
 
13674
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/register-user-agent-client.js
13700
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/register-user-agent-client.js
13675
13701
  var RegisterUserAgentClient = class extends UserAgentClient {
13676
13702
  constructor(core, message, delegate) {
13677
13703
  super(NonInviteClientTransaction, core, message, delegate);
13678
13704
  }
13679
13705
  };
13680
13706
 
13681
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/register-user-agent-server.js
13707
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/register-user-agent-server.js
13682
13708
  var RegisterUserAgentServer = class extends UserAgentServer {
13683
13709
  constructor(core, message, delegate) {
13684
13710
  super(NonInviteServerTransaction, core, message, delegate);
@@ -13686,7 +13712,7 @@ var WebCall = (() => {
13686
13712
  }
13687
13713
  };
13688
13714
 
13689
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-subscribe-user-agent-client.js
13715
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/re-subscribe-user-agent-client.js
13690
13716
  var ReSubscribeUserAgentClient = class extends UserAgentClient {
13691
13717
  constructor(dialog, delegate, options) {
13692
13718
  const message = dialog.createOutgoingRequestMessage(C.SUBSCRIBE, options);
@@ -13722,7 +13748,7 @@ var WebCall = (() => {
13722
13748
  }
13723
13749
  };
13724
13750
 
13725
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/subscription-dialog.js
13751
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/dialogs/subscription-dialog.js
13726
13752
  var SubscriptionDialog = class extends Dialog {
13727
13753
  constructor(subscriptionEvent, subscriptionExpires, subscriptionState, core, state, delegate) {
13728
13754
  super(core, state);
@@ -14072,7 +14098,7 @@ var WebCall = (() => {
14072
14098
  }
14073
14099
  };
14074
14100
 
14075
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/subscribe-user-agent-client.js
14101
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/subscribe-user-agent-client.js
14076
14102
  var SubscribeUserAgentClient = class extends UserAgentClient {
14077
14103
  constructor(core, message, delegate) {
14078
14104
  const event = message.getHeader("Event");
@@ -14235,7 +14261,7 @@ var WebCall = (() => {
14235
14261
  }
14236
14262
  };
14237
14263
 
14238
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/subscribe-user-agent-server.js
14264
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agents/subscribe-user-agent-server.js
14239
14265
  var SubscribeUserAgentServer = class extends UserAgentServer {
14240
14266
  constructor(core, message, delegate) {
14241
14267
  super(NonInviteServerTransaction, core, message, delegate);
@@ -14243,7 +14269,7 @@ var WebCall = (() => {
14243
14269
  }
14244
14270
  };
14245
14271
 
14246
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agent-core/user-agent-core.js
14272
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/core/user-agent-core/user-agent-core.js
14247
14273
  var acceptedBodyTypes = ["application/sdp", "application/dtmf-relay"];
14248
14274
  var UserAgentCore = class {
14249
14275
  /**
@@ -14661,7 +14687,7 @@ var WebCall = (() => {
14661
14687
  }
14662
14688
  };
14663
14689
 
14664
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/media-stream-factory-default.js
14690
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/media-stream-factory-default.js
14665
14691
  function defaultMediaStreamFactory() {
14666
14692
  return (constraints) => {
14667
14693
  if (!constraints.audio && !constraints.video) {
@@ -14674,7 +14700,7 @@ var WebCall = (() => {
14674
14700
  };
14675
14701
  }
14676
14702
 
14677
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/peer-connection-configuration-default.js
14703
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/peer-connection-configuration-default.js
14678
14704
  function defaultPeerConnectionConfiguration() {
14679
14705
  const configuration = {
14680
14706
  bundlePolicy: "balanced",
@@ -14687,7 +14713,7 @@ var WebCall = (() => {
14687
14713
  return configuration;
14688
14714
  }
14689
14715
 
14690
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/session-description-handler.js
14716
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/session-description-handler.js
14691
14717
  var SessionDescriptionHandler = class {
14692
14718
  /**
14693
14719
  * Constructor
@@ -15450,7 +15476,7 @@ var WebCall = (() => {
15450
15476
  }
15451
15477
  };
15452
15478
 
15453
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/session-description-handler-factory-default.js
15479
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/session-description-handler-factory-default.js
15454
15480
  function defaultSessionDescriptionHandlerFactory(mediaStreamFactory) {
15455
15481
  return (session, options) => {
15456
15482
  if (mediaStreamFactory === void 0) {
@@ -15466,7 +15492,7 @@ var WebCall = (() => {
15466
15492
  };
15467
15493
  }
15468
15494
 
15469
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/transport/transport.js
15495
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/transport/transport.js
15470
15496
  var Transport = class {
15471
15497
  constructor(logger, options) {
15472
15498
  this._state = TransportState.Disconnected;
@@ -16024,7 +16050,7 @@ var WebCall = (() => {
16024
16050
  traceSip: true
16025
16051
  };
16026
16052
 
16027
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent.js
16053
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/api/user-agent.js
16028
16054
  var UserAgent = class {
16029
16055
  /**
16030
16056
  * Constructs a new instance of the `UserAgent` class.
@@ -16745,7 +16771,7 @@ var WebCall = (() => {
16745
16771
  }
16746
16772
  };
16747
16773
 
16748
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/index.js
16774
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/index.js
16749
16775
  var web_exports = {};
16750
16776
  __export(web_exports, {
16751
16777
  SessionDescriptionHandler: () => SessionDescriptionHandler,
@@ -16768,7 +16794,7 @@ var WebCall = (() => {
16768
16794
  stripVideo: () => stripVideo
16769
16795
  });
16770
16796
 
16771
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/modifiers/modifiers.js
16797
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/modifiers/modifiers.js
16772
16798
  var stripPayload = (sdp, payload) => {
16773
16799
  const mediaDescs = [];
16774
16800
  const lines = sdp.split(/\r\n/);
@@ -16895,7 +16921,7 @@ var WebCall = (() => {
16895
16921
  return Promise.resolve({ sdp, type });
16896
16922
  }
16897
16923
 
16898
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/web-audio-session-description-handler.js
16924
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-description-handler/web-audio-session-description-handler.js
16899
16925
  function startLocalConference(conferenceSessions) {
16900
16926
  if (conferenceSessions.length < 2) {
16901
16927
  throw new Error("Start local conference requires at leaast 2 sessions.");
@@ -16991,14 +17017,14 @@ var WebCall = (() => {
16991
17017
  }
16992
17018
  };
16993
17019
 
16994
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-manager/managed-session-factory-default.js
17020
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-manager/managed-session-factory-default.js
16995
17021
  function defaultManagedSessionFactory() {
16996
17022
  return (sessionManager, session) => {
16997
17023
  return { session, held: false, muted: false };
16998
17024
  };
16999
17025
  }
17000
17026
 
17001
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-manager/session-manager.js
17027
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/session-manager/session-manager.js
17002
17028
  var SessionManager = class {
17003
17029
  /**
17004
17030
  * Constructs a new instance of the `SessionManager` class.
@@ -18164,7 +18190,7 @@ var WebCall = (() => {
18164
18190
  }
18165
18191
  };
18166
18192
 
18167
- // node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/simple-user/simple-user.js
18193
+ // ../../node_modules/.pnpm/sip.js@0.21.2/node_modules/sip.js/lib/platform/web/simple-user/simple-user.js
18168
18194
  var SimpleUser = class {
18169
18195
  /**
18170
18196
  * Constructs a new instance of the `SimpleUser` class.
@@ -18476,7 +18502,7 @@ var WebCall = (() => {
18476
18502
  }
18477
18503
  };
18478
18504
 
18479
- // package/utils.ts
18505
+ // core/utils.ts
18480
18506
  var formatGetInviteData = (inviteData) => {
18481
18507
  const extendInfoStr = inviteData["x-antaios-manual-extend_info"] || inviteData["x-antaios-manual-extend-info"];
18482
18508
  let extendInfoObj = null;
@@ -18491,7 +18517,7 @@ var WebCall = (() => {
18491
18517
  }
18492
18518
  };
18493
18519
 
18494
- // package/connect.ts
18520
+ // core/connect.ts
18495
18521
  var DEFAULT_RECONNECT_CONFIG = {
18496
18522
  maxAttempts: 3,
18497
18523
  delay: 500
@@ -19021,7 +19047,7 @@ var WebCall = (() => {
19021
19047
  this.setCallId(inviteData.callUuid);
19022
19048
  } else {
19023
19049
  this.setCallId(null);
19024
- this.callKit.logger.error("call id is not exist", {
19050
+ this.callKit.logger.warn("call id is not exist", {
19025
19051
  caller: "Connect.register.onInvite",
19026
19052
  content: {
19027
19053
  inviteData
@@ -19085,9 +19111,7 @@ var WebCall = (() => {
19085
19111
  onDisconnect: (error) => {
19086
19112
  console.log("onDisconnect", error);
19087
19113
  if (error) {
19088
- this.startReconnectTimer();
19089
- } else {
19090
- this.callKit.logger.info("SIP User Agent Disconnected", {
19114
+ this.callKit.logger.info("SIP User Agent Disconnected with error", {
19091
19115
  caller: "Connect.register",
19092
19116
  type: "SIP",
19093
19117
  content: {
@@ -19095,6 +19119,13 @@ var WebCall = (() => {
19095
19119
  errCode: ErrorCode.WEBRTC_USER_AGENT_ERROR
19096
19120
  }
19097
19121
  });
19122
+ this.startReconnectTimer();
19123
+ } else {
19124
+ this.callKit.logger.info("SIP User Agent Disconnected", {
19125
+ caller: "Connect.register",
19126
+ type: "SIP",
19127
+ content: {}
19128
+ });
19098
19129
  }
19099
19130
  },
19100
19131
  onRegister: () => {
@@ -19203,6 +19234,15 @@ var WebCall = (() => {
19203
19234
  }
19204
19235
  });
19205
19236
  });
19237
+ await this.userAgent?.stop().catch((err) => {
19238
+ this.callKit.logger.warn(err, {
19239
+ caller: "Connect.unregister",
19240
+ type: "SIP",
19241
+ content: {
19242
+ errCode: ErrorCode.WEBRTC_CANCEL_REGISTER_ERROR
19243
+ }
19244
+ });
19245
+ });
19206
19246
  }
19207
19247
  async call(callback) {
19208
19248
  this.callKit.logger.info("connect call", {
@@ -19437,14 +19477,17 @@ var WebCall = (() => {
19437
19477
  }
19438
19478
  };
19439
19479
 
19440
- // package/socket.ts
19480
+ // core/socket.ts
19441
19481
  var RECONNECT_CONFIG = {
19442
19482
  enabled: true,
19443
19483
  maxAttempts: 3,
19444
19484
  delay: 500,
19445
19485
  backoffMultiplier: 1.5,
19446
19486
  pingInterval: 3e4,
19447
- pingTimeout: 5e3
19487
+ pingTimeout: 5e3,
19488
+ maxConnectsPerWindow: 5,
19489
+ timeWindow: 6e4
19490
+ // 60 seconds
19448
19491
  };
19449
19492
  var Socket = class {
19450
19493
  callKit;
@@ -19459,6 +19502,8 @@ var WebCall = (() => {
19459
19502
  isReconnecting = false;
19460
19503
  reconnectAttempts = 0;
19461
19504
  socketError = false;
19505
+ // Track connection attempts for rate limiting
19506
+ connectAttemptTimes = [];
19462
19507
  constructor(callKit) {
19463
19508
  this.callKit = callKit;
19464
19509
  const { reconnect } = this.callKit.config.getConfig();
@@ -19499,8 +19544,8 @@ var WebCall = (() => {
19499
19544
  this.ws.onerror = null;
19500
19545
  this.ws.onmessage = null;
19501
19546
  }
19502
- if (this.ws.readyState === WebSocket.CONNECTING || this.ws.readyState === WebSocket.OPEN) {
19503
- this.ws.close();
19547
+ if (this.ws?.readyState === WebSocket.CONNECTING || this.ws?.readyState === WebSocket.OPEN) {
19548
+ this.ws?.close(1e3, "socket close");
19504
19549
  this.callKit.logger.info("socket clear", {
19505
19550
  caller: "Socket.clearWebSocket",
19506
19551
  type: "INCALL",
@@ -19514,6 +19559,7 @@ var WebCall = (() => {
19514
19559
  if (this.ws) {
19515
19560
  this.clearWebSocket();
19516
19561
  }
19562
+ this.connectAttemptTimes.push(Date.now());
19517
19563
  this.ws = new WebSocket(socketUrl);
19518
19564
  this.ws.onopen = (ev) => this.onOpen(ev);
19519
19565
  this.ws.onclose = (ev) => this.onClose(ev);
@@ -19891,6 +19937,7 @@ var WebCall = (() => {
19891
19937
  this.lastPingTime = void 0;
19892
19938
  this.satrtConfirm = false;
19893
19939
  this.socketError = false;
19940
+ this.connectAttemptTimes = [];
19894
19941
  this.clearWebSocket();
19895
19942
  }
19896
19943
  attemptReconnect() {
@@ -19898,6 +19945,29 @@ var WebCall = (() => {
19898
19945
  clearTimeout(this.reconnectTimer);
19899
19946
  this.reconnectTimer = void 0;
19900
19947
  }
19948
+ const { maxConnectsPerWindow, timeWindow } = this.socketConfig;
19949
+ if (maxConnectsPerWindow && timeWindow) {
19950
+ const now = Date.now();
19951
+ this.connectAttemptTimes = this.connectAttemptTimes.filter(
19952
+ (time) => now - time < timeWindow
19953
+ );
19954
+ if (this.connectAttemptTimes.length >= maxConnectsPerWindow) {
19955
+ this.callKit.trigger(KitEvent.INCALL_CONNECT_EVENT, {
19956
+ event: "INCALL_RECONNECT_ERROR"
19957
+ });
19958
+ this.callKit.logger.warn("Connection rate limit exceeded", {
19959
+ caller: "Socket.attemptReconnect",
19960
+ type: "INCALL",
19961
+ content: {
19962
+ errCode: ErrorCode.SOCKET_RECONNECT_FAILED,
19963
+ attempts: this.connectAttemptTimes.length,
19964
+ maxConnectsPerWindow,
19965
+ timeWindow
19966
+ }
19967
+ });
19968
+ return;
19969
+ }
19970
+ }
19901
19971
  if (this.reconnectAttempts >= this.socketConfig.maxAttempts) {
19902
19972
  this.callKit.trigger(KitEvent.INCALL_CONNECT_EVENT, {
19903
19973
  event: "INCALL_RECONNECT_ERROR"
@@ -19940,7 +20010,7 @@ var WebCall = (() => {
19940
20010
  }
19941
20011
  };
19942
20012
 
19943
- // package/index.ts
20013
+ // core/index.ts
19944
20014
  var CallKit = class {
19945
20015
  api;
19946
20016
  config;
@@ -20280,6 +20350,6 @@ var WebCall = (() => {
20280
20350
  });
20281
20351
  }
20282
20352
  };
20283
- return __toCommonJS(package_exports);
20353
+ return __toCommonJS(core_exports);
20284
20354
  })();
20285
20355
  //# sourceMappingURL=index.global.js.map