@tbisoftware/phone 1.0.4 → 1.0.7

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.
Files changed (3) hide show
  1. package/dist/index.cjs +15 -15
  2. package/dist/index.js +739 -714
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as W, jsxs as re, Fragment as Kl } from "react/jsx-runtime";
2
- import { useState as we, useRef as ft, useEffect as Me, useCallback as qt, createContext as Yl, useContext as Jl } from "react";
1
+ import { jsx as W, jsxs as ne, Fragment as Kl } from "react/jsx-runtime";
2
+ import { useState as we, useRef as je, useEffect as Me, useCallback as qt, createContext as Yl, useContext as Jl } from "react";
3
3
  function vs(...y) {
4
4
  return y.filter(Boolean).join(" ");
5
5
  }
@@ -325,12 +325,12 @@ function Ce() {
325
325
  CRLF: T,
326
326
  DIGIT: c,
327
327
  ALPHA: A,
328
- HEXDIG: D,
328
+ HEXDIG: U,
329
329
  WSP: v,
330
330
  OCTET: x,
331
331
  DQUOTE: $,
332
332
  SP: C,
333
- HTAB: w,
333
+ HTAB: b,
334
334
  alphanum: F,
335
335
  reserved: H,
336
336
  unreserved: o,
@@ -338,14 +338,14 @@ function Ce() {
338
338
  escaped: g,
339
339
  LWS: p,
340
340
  SWS: S,
341
- HCOLON: O,
341
+ HCOLON: D,
342
342
  TEXT_UTF8_TRIM: E,
343
- TEXT_UTF8char: b,
344
- UTF8_NONASCII: U,
343
+ TEXT_UTF8char: w,
344
+ UTF8_NONASCII: O,
345
345
  UTF8_CONT: P,
346
- LHEX: K,
346
+ LHEX: z,
347
347
  token: q,
348
- token_nodot: ne,
348
+ token_nodot: te,
349
349
  separators: de,
350
350
  word: he,
351
351
  STAR: X,
@@ -359,23 +359,23 @@ function Ce() {
359
359
  SEMI: J,
360
360
  COLON: De,
361
361
  LDQUOT: be,
362
- RDQUOT: Ke,
363
- comment: z,
362
+ RDQUOT: Ye,
363
+ comment: K,
364
364
  ctext: j,
365
365
  quoted_string: Y,
366
366
  quoted_string_clean: Z,
367
367
  qdtext: le,
368
368
  quoted_pair: ie,
369
- SIP_URI_noparams: te,
369
+ SIP_URI_noparams: se,
370
370
  SIP_URI: ve,
371
371
  uri_scheme: pe,
372
372
  uri_scheme_sips: ys,
373
373
  uri_scheme_sip: Is,
374
- userinfo: Ye,
374
+ userinfo: Je,
375
375
  user: Ns,
376
376
  user_unreserved: gt,
377
377
  password: xs,
378
- hostport: Je,
378
+ hostport: Xe,
379
379
  host: Fe,
380
380
  hostname: Tt,
381
381
  domainlabel: Ct,
@@ -401,7 +401,7 @@ function Ce() {
401
401
  paramchar: ke,
402
402
  param_unreserved: Bs,
403
403
  headers: Ws,
404
- header: Xe,
404
+ header: Qe,
405
405
  hname: Vs,
406
406
  hvalue: js,
407
407
  hnv_unreserved: qe,
@@ -411,12 +411,12 @@ function Ce() {
411
411
  absoluteURI: At,
412
412
  hier_part: Ys,
413
413
  net_path: Js,
414
- abs_path: Qe,
414
+ abs_path: Ze,
415
415
  opaque_part: Xs,
416
416
  uric: Ge,
417
417
  uric_no_slash: Qs,
418
418
  path_segments: Zs,
419
- segment: Ze,
419
+ segment: et,
420
420
  param: Rt,
421
421
  pchar: Be,
422
422
  scheme: er,
@@ -434,7 +434,7 @@ function Ce() {
434
434
  SUBSCRIBEm: fr,
435
435
  NOTIFYm: hr,
436
436
  REFERm: dr,
437
- Method: et,
437
+ Method: tt,
438
438
  Status_Line: _r,
439
439
  Status_Code: pr,
440
440
  extension_code: mr,
@@ -442,9 +442,9 @@ function Ce() {
442
442
  Allow_Events: fl,
443
443
  Call_ID: hl,
444
444
  Contact: dl,
445
- contact_param: tt,
445
+ contact_param: st,
446
446
  name_addr: Ue,
447
- display_name: st,
447
+ display_name: rt,
448
448
  contact_params: wt,
449
449
  c_p_q: Tr,
450
450
  c_p_expires: Cr,
@@ -463,7 +463,7 @@ function Ce() {
463
463
  m_type: br,
464
464
  discrete_type: wr,
465
465
  composite_type: yr,
466
- extension_token: rt,
466
+ extension_token: nt,
467
467
  x_token: Ir,
468
468
  m_subtype: Nr,
469
469
  m_parameter: It,
@@ -483,27 +483,27 @@ function Ce() {
483
483
  challenge: Ot,
484
484
  other_challenge: Dr,
485
485
  auth_param: Ve,
486
- digest_cln: nt,
486
+ digest_cln: lt,
487
487
  realm: Ur,
488
488
  realm_value: Pr,
489
489
  domain: Mr,
490
- URI: lt,
490
+ URI: it,
491
491
  nonce: Lr,
492
492
  nonce_value: Fr,
493
493
  opaque: Hr,
494
494
  stale: $r,
495
495
  algorithm: kr,
496
496
  qop_options: qr,
497
- qop_value: it,
497
+ qop_value: at,
498
498
  Proxy_Require: wl,
499
499
  Record_Route: yl,
500
- rec_route: at,
500
+ rec_route: ot,
501
501
  Reason: Il,
502
502
  reason_param: Dt,
503
503
  reason_cause: Gr,
504
504
  Require: Nl,
505
505
  Route: xl,
506
- route_param: ot,
506
+ route_param: ut,
507
507
  Subscription_State: Ol,
508
508
  substate_value: Br,
509
509
  subexp_params: Ut,
@@ -513,7 +513,7 @@ function Ce() {
513
513
  To: Pl,
514
514
  to_param: Pt,
515
515
  Via: Ml,
516
- via_param: ut,
516
+ via_param: ct,
517
517
  via_params: Mt,
518
518
  via_ttl: Vr,
519
519
  via_maddr: jr,
@@ -572,13 +572,13 @@ function Ce() {
572
572
  var e;
573
573
  return /^[a-zA-Z]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[a-zA-Z]")), e;
574
574
  }
575
- function D() {
575
+ function U() {
576
576
  var e;
577
577
  return /^[0-9a-fA-F]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[0-9a-fA-F]")), e;
578
578
  }
579
579
  function v() {
580
580
  var e;
581
- return e = C(), e === null && (e = w()), e;
581
+ return e = C(), e === null && (e = b()), e;
582
582
  }
583
583
  function x() {
584
584
  var e;
@@ -592,7 +592,7 @@ function Ce() {
592
592
  var e;
593
593
  return i.charCodeAt(t) === 32 ? (e = " ", t++) : (e = null, l('" "')), e;
594
594
  }
595
- function w() {
595
+ function b() {
596
596
  var e;
597
597
  return i.charCodeAt(t) === 9 ? (e = " ", t++) : (e = null, l('"\\t"')), e;
598
598
  }
@@ -614,7 +614,7 @@ function Ce() {
614
614
  }
615
615
  function g() {
616
616
  var e, s, r, n, a;
617
- return n = t, a = t, i.charCodeAt(t) === 37 ? (e = "%", t++) : (e = null, l('"%"')), e !== null ? (s = D(), s !== null ? (r = D(), r !== null ? e = [e, s, r] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e !== null && (e = (function(u, m) {
617
+ return n = t, a = t, i.charCodeAt(t) === 37 ? (e = "%", t++) : (e = null, l('"%"')), e !== null ? (s = U(), s !== null ? (r = U(), r !== null ? e = [e, s, r] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e !== null && (e = (function(u, m) {
618
618
  return m.join("");
619
619
  })(n, e)), e === null && (t = n), e;
620
620
  }
@@ -639,28 +639,28 @@ function Ce() {
639
639
  var e;
640
640
  return e = p(), e = e !== null ? e : "", e;
641
641
  }
642
- function O() {
642
+ function D() {
643
643
  var e, s, r, n, a;
644
- for (n = t, a = t, e = [], s = C(), s === null && (s = w()); s !== null; )
645
- e.push(s), s = C(), s === null && (s = w());
644
+ for (n = t, a = t, e = [], s = C(), s === null && (s = b()); s !== null; )
645
+ e.push(s), s = C(), s === null && (s = b());
646
646
  return e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = S(), r !== null ? e = [e, s, r] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e !== null && (e = /* @__PURE__ */ (function(u) {
647
647
  return ":";
648
648
  })()), e === null && (t = n), e;
649
649
  }
650
650
  function E() {
651
651
  var e, s, r, n, a, u, m;
652
- if (a = t, u = t, s = b(), s !== null)
652
+ if (a = t, u = t, s = w(), s !== null)
653
653
  for (e = []; s !== null; )
654
- e.push(s), s = b();
654
+ e.push(s), s = w();
655
655
  else
656
656
  e = null;
657
657
  if (e !== null) {
658
658
  for (s = [], m = t, r = [], n = p(); n !== null; )
659
659
  r.push(n), n = p();
660
- for (r !== null ? (n = b(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; ) {
660
+ for (r !== null ? (n = w(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; ) {
661
661
  for (s.push(r), m = t, r = [], n = p(); n !== null; )
662
662
  r.push(n), n = p();
663
- r !== null ? (n = b(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
663
+ r !== null ? (n = w(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
664
664
  }
665
665
  s !== null ? e = [e, s] : (e = null, t = u);
666
666
  } else
@@ -669,11 +669,11 @@ function Ce() {
669
669
  return i.substring(t, M);
670
670
  })(a)), e === null && (t = a), e;
671
671
  }
672
- function b() {
672
+ function w() {
673
673
  var e;
674
- return /^[!-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[!-~]")), e === null && (e = U()), e;
674
+ return /^[!-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[!-~]")), e === null && (e = O()), e;
675
675
  }
676
- function U() {
676
+ function O() {
677
677
  var e;
678
678
  return /^[\x80-\uFFFF]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\x80-\\uFFFF]")), e;
679
679
  }
@@ -681,7 +681,7 @@ function Ce() {
681
681
  var e;
682
682
  return /^[\x80-\xBF]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\x80-\\xBF]")), e;
683
683
  }
684
- function K() {
684
+ function z() {
685
685
  var e;
686
686
  return e = c(), e === null && (/^[a-f]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[a-f]"))), e;
687
687
  }
@@ -696,7 +696,7 @@ function Ce() {
696
696
  return i.substring(t, n);
697
697
  })(r)), e === null && (t = r), e;
698
698
  }
699
- function ne() {
699
+ function te() {
700
700
  var e, s, r;
701
701
  if (r = t, s = F(), s === null && (i.charCodeAt(t) === 45 ? (s = "-", t++) : (s = null, l('"-"')), s === null && (i.charCodeAt(t) === 33 ? (s = "!", t++) : (s = null, l('"!"')), s === null && (i.charCodeAt(t) === 37 ? (s = "%", t++) : (s = null, l('"%"')), s === null && (i.charCodeAt(t) === 42 ? (s = "*", t++) : (s = null, l('"*"')), s === null && (i.charCodeAt(t) === 95 ? (s = "_", t++) : (s = null, l('"_"')), s === null && (i.charCodeAt(t) === 43 ? (s = "+", t++) : (s = null, l('"+"')), s === null && (i.charCodeAt(t) === 96 ? (s = "`", t++) : (s = null, l('"`"')), s === null && (i.charCodeAt(t) === 39 ? (s = "'", t++) : (s = null, l(`"'"`)), s === null && (i.charCodeAt(t) === 126 ? (s = "~", t++) : (s = null, l('"~"'))))))))))), s !== null)
702
702
  for (e = []; s !== null; )
@@ -709,7 +709,7 @@ function Ce() {
709
709
  }
710
710
  function de() {
711
711
  var e;
712
- return i.charCodeAt(t) === 40 ? (e = "(", t++) : (e = null, l('"("')), e === null && (i.charCodeAt(t) === 41 ? (e = ")", t++) : (e = null, l('")"')), e === null && (i.charCodeAt(t) === 60 ? (e = "<", t++) : (e = null, l('"<"')), e === null && (i.charCodeAt(t) === 62 ? (e = ">", t++) : (e = null, l('">"')), e === null && (i.charCodeAt(t) === 64 ? (e = "@", t++) : (e = null, l('"@"')), e === null && (i.charCodeAt(t) === 44 ? (e = ",", t++) : (e = null, l('","')), e === null && (i.charCodeAt(t) === 59 ? (e = ";", t++) : (e = null, l('";"')), e === null && (i.charCodeAt(t) === 58 ? (e = ":", t++) : (e = null, l('":"')), e === null && (i.charCodeAt(t) === 92 ? (e = "\\", t++) : (e = null, l('"\\\\"')), e === null && (e = $(), e === null && (i.charCodeAt(t) === 47 ? (e = "/", t++) : (e = null, l('"/"')), e === null && (i.charCodeAt(t) === 91 ? (e = "[", t++) : (e = null, l('"["')), e === null && (i.charCodeAt(t) === 93 ? (e = "]", t++) : (e = null, l('"]"')), e === null && (i.charCodeAt(t) === 63 ? (e = "?", t++) : (e = null, l('"?"')), e === null && (i.charCodeAt(t) === 61 ? (e = "=", t++) : (e = null, l('"="')), e === null && (i.charCodeAt(t) === 123 ? (e = "{", t++) : (e = null, l('"{"')), e === null && (i.charCodeAt(t) === 125 ? (e = "}", t++) : (e = null, l('"}"')), e === null && (e = C(), e === null && (e = w())))))))))))))))))), e;
712
+ return i.charCodeAt(t) === 40 ? (e = "(", t++) : (e = null, l('"("')), e === null && (i.charCodeAt(t) === 41 ? (e = ")", t++) : (e = null, l('")"')), e === null && (i.charCodeAt(t) === 60 ? (e = "<", t++) : (e = null, l('"<"')), e === null && (i.charCodeAt(t) === 62 ? (e = ">", t++) : (e = null, l('">"')), e === null && (i.charCodeAt(t) === 64 ? (e = "@", t++) : (e = null, l('"@"')), e === null && (i.charCodeAt(t) === 44 ? (e = ",", t++) : (e = null, l('","')), e === null && (i.charCodeAt(t) === 59 ? (e = ";", t++) : (e = null, l('";"')), e === null && (i.charCodeAt(t) === 58 ? (e = ":", t++) : (e = null, l('":"')), e === null && (i.charCodeAt(t) === 92 ? (e = "\\", t++) : (e = null, l('"\\\\"')), e === null && (e = $(), e === null && (i.charCodeAt(t) === 47 ? (e = "/", t++) : (e = null, l('"/"')), e === null && (i.charCodeAt(t) === 91 ? (e = "[", t++) : (e = null, l('"["')), e === null && (i.charCodeAt(t) === 93 ? (e = "]", t++) : (e = null, l('"]"')), e === null && (i.charCodeAt(t) === 63 ? (e = "?", t++) : (e = null, l('"?"')), e === null && (i.charCodeAt(t) === 61 ? (e = "=", t++) : (e = null, l('"="')), e === null && (i.charCodeAt(t) === 123 ? (e = "{", t++) : (e = null, l('"{"')), e === null && (i.charCodeAt(t) === 125 ? (e = "}", t++) : (e = null, l('"}"')), e === null && (e = C(), e === null && (e = b())))))))))))))))))), e;
713
713
  }
714
714
  function he() {
715
715
  var e, s, r;
@@ -788,17 +788,17 @@ function Ce() {
788
788
  return '"';
789
789
  })()), e === null && (t = r), e;
790
790
  }
791
- function Ke() {
791
+ function Ye() {
792
792
  var e, s, r, n;
793
793
  return r = t, n = t, e = $(), e !== null ? (s = S(), s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e !== null && (e = /* @__PURE__ */ (function(a) {
794
794
  return '"';
795
795
  })()), e === null && (t = r), e;
796
796
  }
797
- function z() {
797
+ function K() {
798
798
  var e, s, r, n;
799
799
  if (n = t, e = xe(), e !== null) {
800
- for (s = [], r = j(), r === null && (r = ie(), r === null && (r = z())); r !== null; )
801
- s.push(r), r = j(), r === null && (r = ie(), r === null && (r = z()));
800
+ for (s = [], r = j(), r === null && (r = ie(), r === null && (r = K())); r !== null; )
801
+ s.push(r), r = j(), r === null && (r = ie(), r === null && (r = K()));
802
802
  s !== null ? (r = Oe(), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n);
803
803
  } else
804
804
  e = null, t = n;
@@ -806,7 +806,7 @@ function Ce() {
806
806
  }
807
807
  function j() {
808
808
  var e;
809
- return /^[!-']/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[!-']")), e === null && (/^[*-[]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[*-[]")), e === null && (/^[\]-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\]-~]")), e === null && (e = U(), e === null && (e = p())))), e;
809
+ return /^[!-']/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[!-']")), e === null && (/^[*-[]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[*-[]")), e === null && (/^[\]-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\]-~]")), e === null && (e = O(), e === null && (e = p())))), e;
810
810
  }
811
811
  function Y() {
812
812
  var e, s, r, n, a, u;
@@ -841,15 +841,15 @@ function Ce() {
841
841
  }
842
842
  function le() {
843
843
  var e;
844
- return e = p(), e === null && (i.charCodeAt(t) === 33 ? (e = "!", t++) : (e = null, l('"!"')), e === null && (/^[#-[]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[#-[]")), e === null && (/^[\]-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\]-~]")), e === null && (e = U())))), e;
844
+ return e = p(), e === null && (i.charCodeAt(t) === 33 ? (e = "!", t++) : (e = null, l('"!"')), e === null && (/^[#-[]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[#-[]")), e === null && (/^[\]-~]/.test(i.charAt(t)) ? (e = i.charAt(t), t++) : (e = null, l("[\\]-~]")), e === null && (e = O())))), e;
845
845
  }
846
846
  function ie() {
847
847
  var e, s, r;
848
848
  return r = t, i.charCodeAt(t) === 92 ? (e = "\\", t++) : (e = null, l('"\\\\"')), e !== null ? (/^[\0-\t]/.test(i.charAt(t)) ? (s = i.charAt(t), t++) : (s = null, l("[\\0-\\t]")), s === null && (/^[\x0B-\f]/.test(i.charAt(t)) ? (s = i.charAt(t), t++) : (s = null, l("[\\x0B-\\f]")), s === null && (/^[\x0E-]/.test(i.charAt(t)) ? (s = i.charAt(t), t++) : (s = null, l("[\\x0E-]")))), s !== null ? e = [e, s] : (e = null, t = r)) : (e = null, t = r), e;
849
849
  }
850
- function te() {
850
+ function se() {
851
851
  var e, s, r, n, a, u;
852
- return a = t, u = t, e = pe(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = Ye(), r = r !== null ? r : "", r !== null ? (n = Je(), n !== null ? e = [e, s, r, n] : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u), e !== null && (e = (function(m) {
852
+ return a = t, u = t, e = pe(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = Je(), r = r !== null ? r : "", r !== null ? (n = Xe(), n !== null ? e = [e, s, r, n] : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u), e !== null && (e = (function(m) {
853
853
  try {
854
854
  N.uri = new _n(N.scheme, N.user, N.host, N.port), delete N.scheme, delete N.user, delete N.host, delete N.host_type, delete N.port;
855
855
  } catch {
@@ -859,7 +859,7 @@ function Ce() {
859
859
  }
860
860
  function ve() {
861
861
  var e, s, r, n, a, u, m, M;
862
- return m = t, M = t, e = pe(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = Ye(), r = r !== null ? r : "", r !== null ? (n = Je(), n !== null ? (a = Us(), a !== null ? (u = Ws(), u = u !== null ? u : "", u !== null ? e = [e, s, r, n, a, u] : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M), e !== null && (e = (function(k) {
862
+ return m = t, M = t, e = pe(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = Je(), r = r !== null ? r : "", r !== null ? (n = Xe(), n !== null ? (a = Us(), a !== null ? (u = Ws(), u = u !== null ? u : "", u !== null ? e = [e, s, r, n, a, u] : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M)) : (e = null, t = M), e !== null && (e = (function(k) {
863
863
  try {
864
864
  N.uri = new _n(N.scheme, N.user, N.host, N.port, N.uri_params, N.uri_headers), delete N.scheme, delete N.user, delete N.host, delete N.host_type, delete N.port, delete N.uri_params, _ === "SIP_URI" && (N = N.uri);
865
865
  } catch {
@@ -883,7 +883,7 @@ function Ce() {
883
883
  N.scheme = n.toLowerCase();
884
884
  })(s, e)), e === null && (t = s), e;
885
885
  }
886
- function Ye() {
886
+ function Je() {
887
887
  var e, s, r, n, a, u;
888
888
  return n = t, a = t, e = Ns(), e !== null ? (u = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = xs(), r !== null ? s = [s, r] : (s = null, t = u)) : (s = null, t = u), s = s !== null ? s : "", s !== null ? (i.charCodeAt(t) === 64 ? (r = "@", t++) : (r = null, l('"@"')), r !== null ? e = [e, s, r] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e !== null && (e = (function(m) {
889
889
  N.user = decodeURIComponent(i.substring(t - 1, m));
@@ -910,7 +910,7 @@ function Ce() {
910
910
  N.password = i.substring(t, n);
911
911
  })(r)), e === null && (t = r), e;
912
912
  }
913
- function Je() {
913
+ function Xe() {
914
914
  var e, s, r, n, a;
915
915
  return n = t, e = Fe(), e !== null ? (a = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = Ds(), r !== null ? s = [s, r] : (s = null, t = a)) : (s = null, t = a), s = s !== null ? s : "", s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e;
916
916
  }
@@ -955,14 +955,14 @@ function Ce() {
955
955
  })(n)), e === null && (t = n), e;
956
956
  }
957
957
  function Et() {
958
- var e, s, r, n, a, u, m, M, k, V, se, Te, ct, kt, L, B;
959
- return kt = t, L = t, e = G(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? (i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = G(), k !== null ? (i.charCodeAt(t) === 58 ? (V = ":", t++) : (V = null, l('":"')), V !== null ? (se = G(), se !== null ? (i.charCodeAt(t) === 58 ? (Te = ":", t++) : (Te = null, l('":"')), Te !== null ? (ct = me(), ct !== null ? e = [e, s, r, n, a, u, m, M, k, V, se, Te, ct] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = G(), V !== null ? (i.charCodeAt(t) === 58 ? (se = ":", t++) : (se = null, l('":"')), se !== null ? (Te = me(), Te !== null ? e = [e, s, r, n, a, u, m, M, k, V, se, Te] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = me(), V !== null ? e = [e, s, r, n, a, u, m, M, k, V] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = me(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = me(), u !== null ? e = [e, s, r, n, a, u] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = me(), n !== null ? e = [e, s, r, n] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = me(), s !== null ? e = [e, s] : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? e = [e, s] : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (i.substr(t, 2) === "::" ? (s = "::", t += 2) : (s = null, l('"::"')), s !== null ? (r = G(), r !== null ? (i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = G(), k !== null ? (i.charCodeAt(t) === 58 ? (V = ":", t++) : (V = null, l('":"')), V !== null ? (se = me(), se !== null ? e = [e, s, r, n, a, u, m, M, k, V, se] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (i.substr(t, 2) === "::" ? (r = "::", t += 2) : (r = null, l('"::"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = me(), V !== null ? e = [e, s, r, n, a, u, m, M, k, V] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (i.substr(t, 2) === "::" ? (n = "::", t += 2) : (n = null, l('"::"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = me(), k !== null ? e = [e, s, r, n, a, u, m, M, k] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (i.substr(t, 2) === "::" ? (a = "::", t += 2) : (a = null, l('"::"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = me(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (i.substr(t, 2) === "::" ? (u = "::", t += 2) : (u = null, l('"::"')), u !== null ? (m = me(), m !== null ? e = [e, s, r, n, a, u, m] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (B = t, i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? u = [u, m] : (u = null, t = B)) : (u = null, t = B), u = u !== null ? u : "", u !== null ? (i.substr(t, 2) === "::" ? (m = "::", t += 2) : (m = null, l('"::"')), m !== null ? (M = G(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (B = t, i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? u = [u, m] : (u = null, t = B)) : (u = null, t = B), u = u !== null ? u : "", u !== null ? (B = t, i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? m = [m, M] : (m = null, t = B)) : (m = null, t = B), m = m !== null ? m : "", m !== null ? (i.substr(t, 2) === "::" ? (M = "::", t += 2) : (M = null, l('"::"')), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L))))))))))))))), e !== null && (e = (function(zl) {
958
+ var e, s, r, n, a, u, m, M, k, V, re, Te, ft, kt, L, B;
959
+ return kt = t, L = t, e = G(), e !== null ? (i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? (i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = G(), k !== null ? (i.charCodeAt(t) === 58 ? (V = ":", t++) : (V = null, l('":"')), V !== null ? (re = G(), re !== null ? (i.charCodeAt(t) === 58 ? (Te = ":", t++) : (Te = null, l('":"')), Te !== null ? (ft = me(), ft !== null ? e = [e, s, r, n, a, u, m, M, k, V, re, Te, ft] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = G(), V !== null ? (i.charCodeAt(t) === 58 ? (re = ":", t++) : (re = null, l('":"')), re !== null ? (Te = me(), Te !== null ? e = [e, s, r, n, a, u, m, M, k, V, re, Te] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = me(), V !== null ? e = [e, s, r, n, a, u, m, M, k, V] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = me(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = me(), u !== null ? e = [e, s, r, n, a, u] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? (i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = me(), n !== null ? e = [e, s, r, n] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = me(), s !== null ? e = [e, s] : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, i.substr(t, 2) === "::" ? (e = "::", t += 2) : (e = null, l('"::"')), e !== null ? (s = G(), s !== null ? e = [e, s] : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (i.substr(t, 2) === "::" ? (s = "::", t += 2) : (s = null, l('"::"')), s !== null ? (r = G(), r !== null ? (i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = G(), k !== null ? (i.charCodeAt(t) === 58 ? (V = ":", t++) : (V = null, l('":"')), V !== null ? (re = me(), re !== null ? e = [e, s, r, n, a, u, m, M, k, V, re] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (i.substr(t, 2) === "::" ? (r = "::", t += 2) : (r = null, l('"::"')), r !== null ? (n = G(), n !== null ? (i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? (i.charCodeAt(t) === 58 ? (k = ":", t++) : (k = null, l('":"')), k !== null ? (V = me(), V !== null ? e = [e, s, r, n, a, u, m, M, k, V] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (i.substr(t, 2) === "::" ? (n = "::", t += 2) : (n = null, l('"::"')), n !== null ? (a = G(), a !== null ? (i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? (i.charCodeAt(t) === 58 ? (M = ":", t++) : (M = null, l('":"')), M !== null ? (k = me(), k !== null ? e = [e, s, r, n, a, u, m, M, k] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (i.substr(t, 2) === "::" ? (a = "::", t += 2) : (a = null, l('"::"')), a !== null ? (u = G(), u !== null ? (i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = me(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (i.substr(t, 2) === "::" ? (u = "::", t += 2) : (u = null, l('"::"')), u !== null ? (m = me(), m !== null ? e = [e, s, r, n, a, u, m] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (B = t, i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? u = [u, m] : (u = null, t = B)) : (u = null, t = B), u = u !== null ? u : "", u !== null ? (i.substr(t, 2) === "::" ? (m = "::", t += 2) : (m = null, l('"::"')), m !== null ? (M = G(), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L), e === null && (L = t, e = G(), e !== null ? (B = t, i.charCodeAt(t) === 58 ? (s = ":", t++) : (s = null, l('":"')), s !== null ? (r = G(), r !== null ? s = [s, r] : (s = null, t = B)) : (s = null, t = B), s = s !== null ? s : "", s !== null ? (B = t, i.charCodeAt(t) === 58 ? (r = ":", t++) : (r = null, l('":"')), r !== null ? (n = G(), n !== null ? r = [r, n] : (r = null, t = B)) : (r = null, t = B), r = r !== null ? r : "", r !== null ? (B = t, i.charCodeAt(t) === 58 ? (n = ":", t++) : (n = null, l('":"')), n !== null ? (a = G(), a !== null ? n = [n, a] : (n = null, t = B)) : (n = null, t = B), n = n !== null ? n : "", n !== null ? (B = t, i.charCodeAt(t) === 58 ? (a = ":", t++) : (a = null, l('":"')), a !== null ? (u = G(), u !== null ? a = [a, u] : (a = null, t = B)) : (a = null, t = B), a = a !== null ? a : "", a !== null ? (B = t, i.charCodeAt(t) === 58 ? (u = ":", t++) : (u = null, l('":"')), u !== null ? (m = G(), m !== null ? u = [u, m] : (u = null, t = B)) : (u = null, t = B), u = u !== null ? u : "", u !== null ? (B = t, i.charCodeAt(t) === 58 ? (m = ":", t++) : (m = null, l('":"')), m !== null ? (M = G(), M !== null ? m = [m, M] : (m = null, t = B)) : (m = null, t = B), m = m !== null ? m : "", m !== null ? (i.substr(t, 2) === "::" ? (M = "::", t += 2) : (M = null, l('"::"')), M !== null ? e = [e, s, r, n, a, u, m, M] : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L)) : (e = null, t = L))))))))))))))), e !== null && (e = (function(zl) {
960
960
  return N.host_type = "IPv6", i.substring(t, zl);
961
961
  })(kt)), e === null && (t = kt), e;
962
962
  }
963
963
  function G() {
964
964
  var e, s, r, n, a;
965
- return a = t, e = D(), e !== null ? (s = D(), s = s !== null ? s : "", s !== null ? (r = D(), r = r !== null ? r : "", r !== null ? (n = D(), n = n !== null ? n : "", n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
965
+ return a = t, e = U(), e !== null ? (s = U(), s = s !== null ? s : "", s !== null ? (r = U(), r = r !== null ? r : "", r !== null ? (n = U(), n = n !== null ? n : "", n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
966
966
  }
967
967
  function me() {
968
968
  var e, s, r, n;
@@ -1008,7 +1008,7 @@ function Ce() {
1008
1008
  }
1009
1009
  function Ls() {
1010
1010
  var e, s, r, n;
1011
- return r = t, n = t, i.substr(t, 7).toLowerCase() === "method=" ? (e = i.substr(t, 7), t += 7) : (e = null, l('"method="')), e !== null ? (s = et(), s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e !== null && (e = (function(a, u) {
1011
+ return r = t, n = t, i.substr(t, 7).toLowerCase() === "method=" ? (e = i.substr(t, 7), t += 7) : (e = null, l('"method="')), e !== null ? (s = tt(), s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e !== null && (e = (function(a, u) {
1012
1012
  N.uri_params || (N.uri_params = {}), N.uri_params.method = u;
1013
1013
  })(r, e[1])), e === null && (t = r), e;
1014
1014
  }
@@ -1069,9 +1069,9 @@ function Ce() {
1069
1069
  function Ws() {
1070
1070
  var e, s, r, n, a, u, m;
1071
1071
  if (u = t, i.charCodeAt(t) === 63 ? (e = "?", t++) : (e = null, l('"?"')), e !== null)
1072
- if (s = Xe(), s !== null) {
1073
- for (r = [], m = t, i.charCodeAt(t) === 38 ? (n = "&", t++) : (n = null, l('"&"')), n !== null ? (a = Xe(), a !== null ? n = [n, a] : (n = null, t = m)) : (n = null, t = m); n !== null; )
1074
- r.push(n), m = t, i.charCodeAt(t) === 38 ? (n = "&", t++) : (n = null, l('"&"')), n !== null ? (a = Xe(), a !== null ? n = [n, a] : (n = null, t = m)) : (n = null, t = m);
1072
+ if (s = Qe(), s !== null) {
1073
+ for (r = [], m = t, i.charCodeAt(t) === 38 ? (n = "&", t++) : (n = null, l('"&"')), n !== null ? (a = Qe(), a !== null ? n = [n, a] : (n = null, t = m)) : (n = null, t = m); n !== null; )
1074
+ r.push(n), m = t, i.charCodeAt(t) === 38 ? (n = "&", t++) : (n = null, l('"&"')), n !== null ? (a = Qe(), a !== null ? n = [n, a] : (n = null, t = m)) : (n = null, t = m);
1075
1075
  r !== null ? e = [e, s, r] : (e = null, t = u);
1076
1076
  } else
1077
1077
  e = null, t = u;
@@ -1079,7 +1079,7 @@ function Ce() {
1079
1079
  e = null, t = u;
1080
1080
  return e;
1081
1081
  }
1082
- function Xe() {
1082
+ function Qe() {
1083
1083
  var e, s, r, n, a;
1084
1084
  return n = t, a = t, e = Vs(), e !== null ? (i.charCodeAt(t) === 61 ? (s = "=", t++) : (s = null, l('"="')), s !== null ? (r = js(), r !== null ? e = [e, s, r] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e !== null && (e = (function(u, m, M) {
1085
1085
  m = m.join("").toLowerCase(), M = M.join(""), N.uri_headers || (N.uri_headers = {}), N.uri_headers[m] ? N.uri_headers[m].push(M) : N.uri_headers[m] = [M];
@@ -1110,7 +1110,7 @@ function Ce() {
1110
1110
  }
1111
1111
  function zs() {
1112
1112
  var e, s, r, n, a, u;
1113
- return u = t, e = et(), e !== null ? (s = C(), s !== null ? (r = Ks(), r !== null ? (n = C(), n !== null ? (a = bt(), a !== null ? e = [e, s, r, n, a] : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u), e;
1113
+ return u = t, e = tt(), e !== null ? (s = C(), s !== null ? (r = Ks(), r !== null ? (n = C(), n !== null ? (a = bt(), a !== null ? e = [e, s, r, n, a] : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u)) : (e = null, t = u), e;
1114
1114
  }
1115
1115
  function Ks() {
1116
1116
  var e;
@@ -1122,13 +1122,13 @@ function Ce() {
1122
1122
  }
1123
1123
  function Ys() {
1124
1124
  var e, s, r, n, a;
1125
- return n = t, e = Js(), e === null && (e = Qe()), e !== null ? (a = t, i.charCodeAt(t) === 63 ? (s = "?", t++) : (s = null, l('"?"')), s !== null ? (r = nr(), r !== null ? s = [s, r] : (s = null, t = a)) : (s = null, t = a), s = s !== null ? s : "", s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e;
1125
+ return n = t, e = Js(), e === null && (e = Ze()), e !== null ? (a = t, i.charCodeAt(t) === 63 ? (s = "?", t++) : (s = null, l('"?"')), s !== null ? (r = nr(), r !== null ? s = [s, r] : (s = null, t = a)) : (s = null, t = a), s = s !== null ? s : "", s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e;
1126
1126
  }
1127
1127
  function Js() {
1128
1128
  var e, s, r, n;
1129
- return n = t, i.substr(t, 2) === "//" ? (e = "//", t += 2) : (e = null, l('"//"')), e !== null ? (s = tr(), s !== null ? (r = Qe(), r = r !== null ? r : "", r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
1129
+ return n = t, i.substr(t, 2) === "//" ? (e = "//", t += 2) : (e = null, l('"//"')), e !== null ? (s = tr(), s !== null ? (r = Ze(), r = r !== null ? r : "", r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
1130
1130
  }
1131
- function Qe() {
1131
+ function Ze() {
1132
1132
  var e, s, r;
1133
1133
  return r = t, i.charCodeAt(t) === 47 ? (e = "/", t++) : (e = null, l('"/"')), e !== null ? (s = Zs(), s !== null ? e = [e, s] : (e = null, t = r)) : (e = null, t = r), e;
1134
1134
  }
@@ -1152,15 +1152,15 @@ function Ce() {
1152
1152
  }
1153
1153
  function Zs() {
1154
1154
  var e, s, r, n, a, u;
1155
- if (a = t, e = Ze(), e !== null) {
1156
- for (s = [], u = t, i.charCodeAt(t) === 47 ? (r = "/", t++) : (r = null, l('"/"')), r !== null ? (n = Ze(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1157
- s.push(r), u = t, i.charCodeAt(t) === 47 ? (r = "/", t++) : (r = null, l('"/"')), r !== null ? (n = Ze(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1155
+ if (a = t, e = et(), e !== null) {
1156
+ for (s = [], u = t, i.charCodeAt(t) === 47 ? (r = "/", t++) : (r = null, l('"/"')), r !== null ? (n = et(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1157
+ s.push(r), u = t, i.charCodeAt(t) === 47 ? (r = "/", t++) : (r = null, l('"/"')), r !== null ? (n = et(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1158
1158
  s !== null ? e = [e, s] : (e = null, t = a);
1159
1159
  } else
1160
1160
  e = null, t = a;
1161
1161
  return e;
1162
1162
  }
1163
- function Ze() {
1163
+ function et() {
1164
1164
  var e, s, r, n, a, u;
1165
1165
  for (a = t, e = [], s = Be(); s !== null; )
1166
1166
  e.push(s), s = Be();
@@ -1200,7 +1200,7 @@ function Ce() {
1200
1200
  }
1201
1201
  function sr() {
1202
1202
  var e, s, r, n;
1203
- return r = t, n = t, e = Ye(), e !== null ? (i.charCodeAt(t) === 64 ? (s = "@", t++) : (s = null, l('"@"')), s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e = e !== null ? e : "", e !== null ? (s = Je(), s !== null ? e = [e, s] : (e = null, t = r)) : (e = null, t = r), e = e !== null ? e : "", e;
1203
+ return r = t, n = t, e = Je(), e !== null ? (i.charCodeAt(t) === 64 ? (s = "@", t++) : (s = null, l('"@"')), s !== null ? e = [e, s] : (e = null, t = n)) : (e = null, t = n), e = e !== null ? e : "", e !== null ? (s = Xe(), s !== null ? e = [e, s] : (e = null, t = r)) : (e = null, t = r), e = e !== null ? e : "", e;
1204
1204
  }
1205
1205
  function rr() {
1206
1206
  var e, s;
@@ -1282,7 +1282,7 @@ function Ce() {
1282
1282
  var e;
1283
1283
  return i.substr(t, 5) === "REFER" ? (e = "REFER", t += 5) : (e = null, l('"REFER"')), e;
1284
1284
  }
1285
- function et() {
1285
+ function tt() {
1286
1286
  var e, s;
1287
1287
  return s = t, e = lr(), e === null && (e = ir(), e === null && (e = ar(), e === null && (e = or(), e === null && (e = ur(), e === null && (e = cr(), e === null && (e = fr(), e === null && (e = hr(), e === null && (e = dr(), e === null && (e = q()))))))))), e !== null && (e = (function(r) {
1288
1288
  return N.method = i.substring(t, r), N.method;
@@ -1304,8 +1304,8 @@ function Ce() {
1304
1304
  }
1305
1305
  function gr() {
1306
1306
  var e, s, r;
1307
- for (r = t, e = [], s = H(), s === null && (s = o(), s === null && (s = g(), s === null && (s = U(), s === null && (s = P(), s === null && (s = C(), s === null && (s = w())))))); s !== null; )
1308
- e.push(s), s = H(), s === null && (s = o(), s === null && (s = g(), s === null && (s = U(), s === null && (s = P(), s === null && (s = C(), s === null && (s = w()))))));
1307
+ for (r = t, e = [], s = H(), s === null && (s = o(), s === null && (s = g(), s === null && (s = O(), s === null && (s = P(), s === null && (s = C(), s === null && (s = b())))))); s !== null; )
1308
+ e.push(s), s = H(), s === null && (s = o(), s === null && (s = g(), s === null && (s = O(), s === null && (s = P(), s === null && (s = C(), s === null && (s = b()))))));
1309
1309
  return e !== null && (e = (function(n) {
1310
1310
  N.reason_phrase = i.substring(t, n);
1311
1311
  })(r)), e === null && (t = r), e;
@@ -1329,9 +1329,9 @@ function Ce() {
1329
1329
  function dl() {
1330
1330
  var e, s, r, n, a, u, m;
1331
1331
  if (a = t, e = X(), e === null)
1332
- if (u = t, e = tt(), e !== null) {
1333
- for (s = [], m = t, r = ee(), r !== null ? (n = tt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1334
- s.push(r), m = t, r = ee(), r !== null ? (n = tt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1332
+ if (u = t, e = st(), e !== null) {
1333
+ for (s = [], m = t, r = ee(), r !== null ? (n = st(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1334
+ s.push(r), m = t, r = ee(), r !== null ? (n = st(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1335
1335
  s !== null ? e = [e, s] : (e = null, t = u);
1336
1336
  } else
1337
1337
  e = null, t = u;
@@ -1345,9 +1345,9 @@ function Ce() {
1345
1345
  N !== null ? N = N.multi_header : N = -1;
1346
1346
  })()), e === null && (t = a), e;
1347
1347
  }
1348
- function tt() {
1348
+ function st() {
1349
1349
  var e, s, r, n, a, u, m;
1350
- if (a = t, u = t, e = te(), e === null && (e = Ue()), e !== null) {
1350
+ if (a = t, u = t, e = se(), e === null && (e = Ue()), e !== null) {
1351
1351
  for (s = [], m = t, r = J(), r !== null ? (n = wt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1352
1352
  s.push(r), m = t, r = J(), r !== null ? (n = wt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1353
1353
  s !== null ? e = [e, s] : (e = null, t = u);
@@ -1370,9 +1370,9 @@ function Ce() {
1370
1370
  }
1371
1371
  function Ue() {
1372
1372
  var e, s, r, n, a;
1373
- return a = t, e = st(), e = e !== null ? e : "", e !== null ? (s = Re(), s !== null ? (r = ve(), r !== null ? (n = Ae(), n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
1373
+ return a = t, e = rt(), e = e !== null ? e : "", e !== null ? (s = Re(), s !== null ? (r = ve(), r !== null ? (n = Ae(), n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
1374
1374
  }
1375
- function st() {
1375
+ function rt() {
1376
1376
  var e, s, r, n, a, u, m;
1377
1377
  if (a = t, u = t, e = q(), e !== null) {
1378
1378
  for (s = [], m = t, r = p(), r !== null ? (n = q(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
@@ -1381,8 +1381,8 @@ function Ce() {
1381
1381
  } else
1382
1382
  e = null, t = u;
1383
1383
  return e === null && (e = Z()), e !== null && (e = (function(M, k) {
1384
- typeof k == "string" ? N.display_name = k : N.display_name = k[1].reduce(function(V, se) {
1385
- return V + se[0] + se[1];
1384
+ typeof k == "string" ? N.display_name = k : N.display_name = k[1].reduce(function(V, re) {
1385
+ return V + re[0] + re[1];
1386
1386
  }, k[0]);
1387
1387
  })(a, e)), e === null && (t = a), e;
1388
1388
  }
@@ -1500,13 +1500,13 @@ function Ce() {
1500
1500
  }
1501
1501
  function wr() {
1502
1502
  var e;
1503
- return i.substr(t, 4).toLowerCase() === "text" ? (e = i.substr(t, 4), t += 4) : (e = null, l('"text"')), e === null && (i.substr(t, 5).toLowerCase() === "image" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"image"')), e === null && (i.substr(t, 5).toLowerCase() === "audio" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"audio"')), e === null && (i.substr(t, 5).toLowerCase() === "video" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"video"')), e === null && (i.substr(t, 11).toLowerCase() === "application" ? (e = i.substr(t, 11), t += 11) : (e = null, l('"application"')), e === null && (e = rt()))))), e;
1503
+ return i.substr(t, 4).toLowerCase() === "text" ? (e = i.substr(t, 4), t += 4) : (e = null, l('"text"')), e === null && (i.substr(t, 5).toLowerCase() === "image" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"image"')), e === null && (i.substr(t, 5).toLowerCase() === "audio" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"audio"')), e === null && (i.substr(t, 5).toLowerCase() === "video" ? (e = i.substr(t, 5), t += 5) : (e = null, l('"video"')), e === null && (i.substr(t, 11).toLowerCase() === "application" ? (e = i.substr(t, 11), t += 11) : (e = null, l('"application"')), e === null && (e = nt()))))), e;
1504
1504
  }
1505
1505
  function yr() {
1506
1506
  var e;
1507
- return i.substr(t, 7).toLowerCase() === "message" ? (e = i.substr(t, 7), t += 7) : (e = null, l('"message"')), e === null && (i.substr(t, 9).toLowerCase() === "multipart" ? (e = i.substr(t, 9), t += 9) : (e = null, l('"multipart"')), e === null && (e = rt())), e;
1507
+ return i.substr(t, 7).toLowerCase() === "message" ? (e = i.substr(t, 7), t += 7) : (e = null, l('"message"')), e === null && (i.substr(t, 9).toLowerCase() === "multipart" ? (e = i.substr(t, 9), t += 9) : (e = null, l('"multipart"')), e === null && (e = nt())), e;
1508
1508
  }
1509
- function rt() {
1509
+ function nt() {
1510
1510
  var e;
1511
1511
  return e = q(), e === null && (e = Ir()), e;
1512
1512
  }
@@ -1516,7 +1516,7 @@ function Ce() {
1516
1516
  }
1517
1517
  function Nr() {
1518
1518
  var e;
1519
- return e = rt(), e === null && (e = q()), e;
1519
+ return e = nt(), e === null && (e = q()), e;
1520
1520
  }
1521
1521
  function It() {
1522
1522
  var e, s, r, n;
@@ -1528,7 +1528,7 @@ function Ce() {
1528
1528
  }
1529
1529
  function Tl() {
1530
1530
  var e, s, r, n;
1531
- return n = t, e = Or(), e !== null ? (s = p(), s !== null ? (r = et(), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
1531
+ return n = t, e = Or(), e !== null ? (s = p(), s !== null ? (r = tt(), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
1532
1532
  }
1533
1533
  function Or() {
1534
1534
  var e, s, r;
@@ -1561,9 +1561,9 @@ function Ce() {
1561
1561
  }
1562
1562
  function We() {
1563
1563
  var e, s, r, n, a, u;
1564
- if (a = t, e = ne(), e !== null) {
1565
- for (s = [], u = t, i.charCodeAt(t) === 46 ? (r = ".", t++) : (r = null, l('"."')), r !== null ? (n = ne(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1566
- s.push(r), u = t, i.charCodeAt(t) === 46 ? (r = ".", t++) : (r = null, l('"."')), r !== null ? (n = ne(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1564
+ if (a = t, e = te(), e !== null) {
1565
+ for (s = [], u = t, i.charCodeAt(t) === 46 ? (r = ".", t++) : (r = null, l('"."')), r !== null ? (n = te(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1566
+ s.push(r), u = t, i.charCodeAt(t) === 46 ? (r = ".", t++) : (r = null, l('"."')), r !== null ? (n = te(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1567
1567
  s !== null ? e = [e, s] : (e = null, t = a);
1568
1568
  } else
1569
1569
  e = null, t = a;
@@ -1571,7 +1571,7 @@ function Ce() {
1571
1571
  }
1572
1572
  function El() {
1573
1573
  var e, s, r, n, a, u, m;
1574
- if (a = t, u = t, e = te(), e === null && (e = Ue()), e !== null) {
1574
+ if (a = t, u = t, e = se(), e === null && (e = Ue()), e !== null) {
1575
1575
  for (s = [], m = t, r = J(), r !== null ? (n = Nt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1576
1576
  s.push(r), m = t, r = J(), r !== null ? (n = Nt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1577
1577
  s !== null ? e = [e, s] : (e = null, t = u);
@@ -1615,8 +1615,8 @@ function Ce() {
1615
1615
  }
1616
1616
  function Rl() {
1617
1617
  var e, s, r, n, a, u, m, M, k, V;
1618
- for (M = t, k = t, e = [], s = st(); s !== null; )
1619
- e.push(s), s = st();
1618
+ for (M = t, k = t, e = [], s = rt(); s !== null; )
1619
+ e.push(s), s = rt();
1620
1620
  if (e !== null)
1621
1621
  if (s = Re(), s !== null)
1622
1622
  if (r = ve(), r !== null)
@@ -1632,7 +1632,7 @@ function Ce() {
1632
1632
  e = null, t = k;
1633
1633
  else
1634
1634
  e = null, t = k;
1635
- return e !== null && (e = (function(se) {
1635
+ return e !== null && (e = (function(re) {
1636
1636
  try {
1637
1637
  N = new Le(N.uri, N.display_name, N.params);
1638
1638
  } catch {
@@ -1648,9 +1648,9 @@ function Ce() {
1648
1648
  var e, s, r, n, a, u, m, M;
1649
1649
  if (m = t, i.substr(t, 6).toLowerCase() === "digest" ? (e = i.substr(t, 6), t += 6) : (e = null, l('"Digest"')), e !== null)
1650
1650
  if (s = p(), s !== null)
1651
- if (r = nt(), r !== null) {
1652
- for (n = [], M = t, a = ee(), a !== null ? (u = nt(), u !== null ? a = [a, u] : (a = null, t = M)) : (a = null, t = M); a !== null; )
1653
- n.push(a), M = t, a = ee(), a !== null ? (u = nt(), u !== null ? a = [a, u] : (a = null, t = M)) : (a = null, t = M);
1651
+ if (r = lt(), r !== null) {
1652
+ for (n = [], M = t, a = ee(), a !== null ? (u = lt(), u !== null ? a = [a, u] : (a = null, t = M)) : (a = null, t = M); a !== null; )
1653
+ n.push(a), M = t, a = ee(), a !== null ? (u = lt(), u !== null ? a = [a, u] : (a = null, t = M)) : (a = null, t = M);
1654
1654
  n !== null ? e = [e, s, r, n] : (e = null, t = m);
1655
1655
  } else
1656
1656
  e = null, t = m;
@@ -1680,7 +1680,7 @@ function Ce() {
1680
1680
  var e, s, r, n;
1681
1681
  return n = t, e = q(), e !== null ? (s = Q(), s !== null ? (r = q(), r === null && (r = Y()), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
1682
1682
  }
1683
- function nt() {
1683
+ function lt() {
1684
1684
  var e;
1685
1685
  return e = Ur(), e === null && (e = Mr(), e === null && (e = Lr(), e === null && (e = Hr(), e === null && (e = $r(), e === null && (e = kr(), e === null && (e = qr(), e === null && (e = Ve()))))))), e;
1686
1686
  }
@@ -1699,21 +1699,21 @@ function Ce() {
1699
1699
  if (M = t, i.substr(t, 6).toLowerCase() === "domain" ? (e = i.substr(t, 6), t += 6) : (e = null, l('"domain"')), e !== null)
1700
1700
  if (s = Q(), s !== null)
1701
1701
  if (r = be(), r !== null)
1702
- if (n = lt(), n !== null) {
1702
+ if (n = it(), n !== null) {
1703
1703
  if (a = [], k = t, m = C(), m !== null)
1704
1704
  for (u = []; m !== null; )
1705
1705
  u.push(m), m = C();
1706
1706
  else
1707
1707
  u = null;
1708
- for (u !== null ? (m = lt(), m !== null ? u = [u, m] : (u = null, t = k)) : (u = null, t = k); u !== null; ) {
1708
+ for (u !== null ? (m = it(), m !== null ? u = [u, m] : (u = null, t = k)) : (u = null, t = k); u !== null; ) {
1709
1709
  if (a.push(u), k = t, m = C(), m !== null)
1710
1710
  for (u = []; m !== null; )
1711
1711
  u.push(m), m = C();
1712
1712
  else
1713
1713
  u = null;
1714
- u !== null ? (m = lt(), m !== null ? u = [u, m] : (u = null, t = k)) : (u = null, t = k);
1714
+ u !== null ? (m = it(), m !== null ? u = [u, m] : (u = null, t = k)) : (u = null, t = k);
1715
1715
  }
1716
- a !== null ? (u = Ke(), u !== null ? e = [e, s, r, n, a, u] : (e = null, t = M)) : (e = null, t = M);
1716
+ a !== null ? (u = Ye(), u !== null ? e = [e, s, r, n, a, u] : (e = null, t = M)) : (e = null, t = M);
1717
1717
  } else
1718
1718
  e = null, t = M;
1719
1719
  else
@@ -1724,9 +1724,9 @@ function Ce() {
1724
1724
  e = null, t = M;
1725
1725
  return e;
1726
1726
  }
1727
- function lt() {
1727
+ function it() {
1728
1728
  var e;
1729
- return e = At(), e === null && (e = Qe()), e;
1729
+ return e = At(), e === null && (e = Ze()), e;
1730
1730
  }
1731
1731
  function Lr() {
1732
1732
  var e, s, r, n;
@@ -1763,13 +1763,13 @@ function Ce() {
1763
1763
  if (M = t, i.substr(t, 3).toLowerCase() === "qop" ? (e = i.substr(t, 3), t += 3) : (e = null, l('"qop"')), e !== null)
1764
1764
  if (s = Q(), s !== null)
1765
1765
  if (r = be(), r !== null) {
1766
- if (k = t, n = it(), n !== null) {
1767
- for (a = [], V = t, i.charCodeAt(t) === 44 ? (u = ",", t++) : (u = null, l('","')), u !== null ? (m = it(), m !== null ? u = [u, m] : (u = null, t = V)) : (u = null, t = V); u !== null; )
1768
- a.push(u), V = t, i.charCodeAt(t) === 44 ? (u = ",", t++) : (u = null, l('","')), u !== null ? (m = it(), m !== null ? u = [u, m] : (u = null, t = V)) : (u = null, t = V);
1766
+ if (k = t, n = at(), n !== null) {
1767
+ for (a = [], V = t, i.charCodeAt(t) === 44 ? (u = ",", t++) : (u = null, l('","')), u !== null ? (m = at(), m !== null ? u = [u, m] : (u = null, t = V)) : (u = null, t = V); u !== null; )
1768
+ a.push(u), V = t, i.charCodeAt(t) === 44 ? (u = ",", t++) : (u = null, l('","')), u !== null ? (m = at(), m !== null ? u = [u, m] : (u = null, t = V)) : (u = null, t = V);
1769
1769
  a !== null ? n = [n, a] : (n = null, t = k);
1770
1770
  } else
1771
1771
  n = null, t = k;
1772
- n !== null ? (a = Ke(), a !== null ? e = [e, s, r, n, a] : (e = null, t = M)) : (e = null, t = M);
1772
+ n !== null ? (a = Ye(), a !== null ? e = [e, s, r, n, a] : (e = null, t = M)) : (e = null, t = M);
1773
1773
  } else
1774
1774
  e = null, t = M;
1775
1775
  else
@@ -1778,7 +1778,7 @@ function Ce() {
1778
1778
  e = null, t = M;
1779
1779
  return e;
1780
1780
  }
1781
- function it() {
1781
+ function at() {
1782
1782
  var e, s;
1783
1783
  return s = t, i.substr(t, 8).toLowerCase() === "auth-int" ? (e = i.substr(t, 8), t += 8) : (e = null, l('"auth-int"')), e === null && (i.substr(t, 4).toLowerCase() === "auth" ? (e = i.substr(t, 4), t += 4) : (e = null, l('"auth"')), e === null && (e = q())), e !== null && (e = (function(r, n) {
1784
1784
  N.qop || (N.qop = []), N.qop.push(n.toLowerCase());
@@ -1796,9 +1796,9 @@ function Ce() {
1796
1796
  }
1797
1797
  function yl() {
1798
1798
  var e, s, r, n, a, u, m;
1799
- if (a = t, u = t, e = at(), e !== null) {
1800
- for (s = [], m = t, r = ee(), r !== null ? (n = at(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1801
- s.push(r), m = t, r = ee(), r !== null ? (n = at(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1799
+ if (a = t, u = t, e = ot(), e !== null) {
1800
+ for (s = [], m = t, r = ee(), r !== null ? (n = ot(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1801
+ s.push(r), m = t, r = ee(), r !== null ? (n = ot(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1802
1802
  s !== null ? e = [e, s] : (e = null, t = u);
1803
1803
  } else
1804
1804
  e = null, t = u;
@@ -1812,7 +1812,7 @@ function Ce() {
1812
1812
  N !== null ? N = N.multi_header : N = -1;
1813
1813
  })()), e === null && (t = a), e;
1814
1814
  }
1815
- function at() {
1815
+ function ot() {
1816
1816
  var e, s, r, n, a, u, m;
1817
1817
  if (a = t, u = t, e = Ue(), e !== null) {
1818
1818
  for (s = [], m = t, r = J(), r !== null ? (n = oe(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
@@ -1884,15 +1884,15 @@ function Ce() {
1884
1884
  }
1885
1885
  function xl() {
1886
1886
  var e, s, r, n, a, u;
1887
- if (a = t, e = ot(), e !== null) {
1888
- for (s = [], u = t, r = ee(), r !== null ? (n = ot(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1889
- s.push(r), u = t, r = ee(), r !== null ? (n = ot(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1887
+ if (a = t, e = ut(), e !== null) {
1888
+ for (s = [], u = t, r = ee(), r !== null ? (n = ut(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1889
+ s.push(r), u = t, r = ee(), r !== null ? (n = ut(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1890
1890
  s !== null ? e = [e, s] : (e = null, t = a);
1891
1891
  } else
1892
1892
  e = null, t = a;
1893
1893
  return e;
1894
1894
  }
1895
- function ot() {
1895
+ function ut() {
1896
1896
  var e, s, r, n, a, u;
1897
1897
  if (a = t, e = Ue(), e !== null) {
1898
1898
  for (s = [], u = t, r = J(), r !== null ? (n = oe(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
@@ -1948,7 +1948,7 @@ function Ce() {
1948
1948
  }
1949
1949
  function Pl() {
1950
1950
  var e, s, r, n, a, u, m;
1951
- if (a = t, u = t, e = te(), e === null && (e = Ue()), e !== null) {
1951
+ if (a = t, u = t, e = se(), e === null && (e = Ue()), e !== null) {
1952
1952
  for (s = [], m = t, r = J(), r !== null ? (n = Pt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
1953
1953
  s.push(r), m = t, r = J(), r !== null ? (n = Pt(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
1954
1954
  s !== null ? e = [e, s] : (e = null, t = u);
@@ -1969,15 +1969,15 @@ function Ce() {
1969
1969
  }
1970
1970
  function Ml() {
1971
1971
  var e, s, r, n, a, u;
1972
- if (a = t, e = ut(), e !== null) {
1973
- for (s = [], u = t, r = ee(), r !== null ? (n = ut(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1974
- s.push(r), u = t, r = ee(), r !== null ? (n = ut(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1972
+ if (a = t, e = ct(), e !== null) {
1973
+ for (s = [], u = t, r = ee(), r !== null ? (n = ct(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u); r !== null; )
1974
+ s.push(r), u = t, r = ee(), r !== null ? (n = ct(), n !== null ? r = [r, n] : (r = null, t = u)) : (r = null, t = u);
1975
1975
  s !== null ? e = [e, s] : (e = null, t = a);
1976
1976
  } else
1977
1977
  e = null, t = a;
1978
1978
  return e;
1979
1979
  }
1980
- function ut() {
1980
+ function ct() {
1981
1981
  var e, s, r, n, a, u, m, M;
1982
1982
  if (m = t, e = Xr(), e !== null)
1983
1983
  if (s = p(), s !== null)
@@ -2101,12 +2101,12 @@ function Ce() {
2101
2101
  }
2102
2102
  function Hl() {
2103
2103
  var e, s, r, n;
2104
- return n = t, e = q(), e !== null ? (s = O(), s !== null ? (r = ln(), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
2104
+ return n = t, e = q(), e !== null ? (s = D(), s !== null ? (r = ln(), r !== null ? e = [e, s, r] : (e = null, t = n)) : (e = null, t = n)) : (e = null, t = n), e;
2105
2105
  }
2106
2106
  function ln() {
2107
2107
  var e, s;
2108
- for (e = [], s = b(), s === null && (s = P(), s === null && (s = p())); s !== null; )
2109
- e.push(s), s = b(), s === null && (s = P(), s === null && (s = p()));
2108
+ for (e = [], s = w(), s === null && (s = P(), s === null && (s = p())); s !== null; )
2109
+ e.push(s), s = w(), s === null && (s = P(), s === null && (s = p()));
2110
2110
  return e;
2111
2111
  }
2112
2112
  function $l() {
@@ -2120,14 +2120,14 @@ function Ce() {
2120
2120
  return r = t, i.substr(t, 5) === "uuid:" ? (e = "uuid:", t += 5) : (e = null, l('"uuid:"')), e !== null ? (s = an(), s !== null ? e = [e, s] : (e = null, t = r)) : (e = null, t = r), e;
2121
2121
  }
2122
2122
  function an() {
2123
- var e, s, r, n, a, u, m, M, k, V, se;
2124
- return V = t, se = t, e = on(), e !== null ? (i.charCodeAt(t) === 45 ? (s = "-", t++) : (s = null, l('"-"')), s !== null ? (r = Ee(), r !== null ? (i.charCodeAt(t) === 45 ? (n = "-", t++) : (n = null, l('"-"')), n !== null ? (a = Ee(), a !== null ? (i.charCodeAt(t) === 45 ? (u = "-", t++) : (u = null, l('"-"')), u !== null ? (m = Ee(), m !== null ? (i.charCodeAt(t) === 45 ? (M = "-", t++) : (M = null, l('"-"')), M !== null ? (k = un(), k !== null ? e = [e, s, r, n, a, u, m, M, k] : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se)) : (e = null, t = se), e !== null && (e = (function(Te, ct) {
2123
+ var e, s, r, n, a, u, m, M, k, V, re;
2124
+ return V = t, re = t, e = on(), e !== null ? (i.charCodeAt(t) === 45 ? (s = "-", t++) : (s = null, l('"-"')), s !== null ? (r = Ee(), r !== null ? (i.charCodeAt(t) === 45 ? (n = "-", t++) : (n = null, l('"-"')), n !== null ? (a = Ee(), a !== null ? (i.charCodeAt(t) === 45 ? (u = "-", t++) : (u = null, l('"-"')), u !== null ? (m = Ee(), m !== null ? (i.charCodeAt(t) === 45 ? (M = "-", t++) : (M = null, l('"-"')), M !== null ? (k = un(), k !== null ? e = [e, s, r, n, a, u, m, M, k] : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re)) : (e = null, t = re), e !== null && (e = (function(Te, ft) {
2125
2125
  N = i.substring(t + 5, Te);
2126
2126
  })(V, e[0])), e === null && (t = V), e;
2127
2127
  }
2128
2128
  function Ee() {
2129
2129
  var e, s, r, n, a;
2130
- return a = t, e = D(), e !== null ? (s = D(), s !== null ? (r = D(), r !== null ? (n = D(), n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
2130
+ return a = t, e = U(), e !== null ? (s = U(), s !== null ? (r = U(), r !== null ? (n = U(), n !== null ? e = [e, s, r, n] : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a)) : (e = null, t = a), e;
2131
2131
  }
2132
2132
  function on() {
2133
2133
  var e, s, r;
@@ -2139,7 +2139,7 @@ function Ce() {
2139
2139
  }
2140
2140
  function ql() {
2141
2141
  var e, s, r, n, a, u, m;
2142
- if (a = t, u = t, e = te(), e === null && (e = Ue()), e !== null) {
2142
+ if (a = t, u = t, e = se(), e === null && (e = Ue()), e !== null) {
2143
2143
  for (s = [], m = t, r = J(), r !== null ? (n = oe(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m); r !== null; )
2144
2144
  s.push(r), m = t, r = J(), r !== null ? (n = oe(), n !== null ? r = [r, n] : (r = null, t = m)) : (r = null, t = m);
2145
2145
  s !== null ? e = [e, s] : (e = null, t = u);
@@ -2435,64 +2435,64 @@ function fe() {
2435
2435
  }
2436
2436
  return `192.0.2.${d(1, 254)}`;
2437
2437
  }, ae.calculateMD5 = (d) => {
2438
- function h(z, j) {
2439
- return z << j | z >>> 32 - j;
2438
+ function h(K, j) {
2439
+ return K << j | K >>> 32 - j;
2440
2440
  }
2441
- function l(z, j) {
2442
- const Y = z & 2147483648, Z = j & 2147483648, le = z & 1073741824, ie = j & 1073741824, te = (z & 1073741823) + (j & 1073741823);
2443
- return le & ie ? te ^ 2147483648 ^ Y ^ Z : le | ie ? te & 1073741824 ? te ^ 3221225472 ^ Y ^ Z : te ^ 1073741824 ^ Y ^ Z : te ^ Y ^ Z;
2441
+ function l(K, j) {
2442
+ const Y = K & 2147483648, Z = j & 2147483648, le = K & 1073741824, ie = j & 1073741824, se = (K & 1073741823) + (j & 1073741823);
2443
+ return le & ie ? se ^ 2147483648 ^ Y ^ Z : le | ie ? se & 1073741824 ? se ^ 3221225472 ^ Y ^ Z : se ^ 1073741824 ^ Y ^ Z : se ^ Y ^ Z;
2444
2444
  }
2445
- function T(z, j, Y) {
2446
- return z & j | ~z & Y;
2445
+ function T(K, j, Y) {
2446
+ return K & j | ~K & Y;
2447
2447
  }
2448
- function c(z, j, Y) {
2449
- return z & Y | j & ~Y;
2448
+ function c(K, j, Y) {
2449
+ return K & Y | j & ~Y;
2450
2450
  }
2451
- function A(z, j, Y) {
2452
- return z ^ j ^ Y;
2451
+ function A(K, j, Y) {
2452
+ return K ^ j ^ Y;
2453
2453
  }
2454
- function D(z, j, Y) {
2455
- return j ^ (z | ~Y);
2454
+ function U(K, j, Y) {
2455
+ return j ^ (K | ~Y);
2456
2456
  }
2457
- function v(z, j, Y, Z, le, ie, te) {
2458
- return z = l(z, l(l(T(j, Y, Z), le), te)), l(h(z, ie), j);
2457
+ function v(K, j, Y, Z, le, ie, se) {
2458
+ return K = l(K, l(l(T(j, Y, Z), le), se)), l(h(K, ie), j);
2459
2459
  }
2460
- function x(z, j, Y, Z, le, ie, te) {
2461
- return z = l(z, l(l(c(j, Y, Z), le), te)), l(h(z, ie), j);
2460
+ function x(K, j, Y, Z, le, ie, se) {
2461
+ return K = l(K, l(l(c(j, Y, Z), le), se)), l(h(K, ie), j);
2462
2462
  }
2463
- function $(z, j, Y, Z, le, ie, te) {
2464
- return z = l(z, l(l(A(j, Y, Z), le), te)), l(h(z, ie), j);
2463
+ function $(K, j, Y, Z, le, ie, se) {
2464
+ return K = l(K, l(l(A(j, Y, Z), le), se)), l(h(K, ie), j);
2465
2465
  }
2466
- function C(z, j, Y, Z, le, ie, te) {
2467
- return z = l(z, l(l(D(j, Y, Z), le), te)), l(h(z, ie), j);
2466
+ function C(K, j, Y, Z, le, ie, se) {
2467
+ return K = l(K, l(l(U(j, Y, Z), le), se)), l(h(K, ie), j);
2468
2468
  }
2469
- function w(z) {
2469
+ function b(K) {
2470
2470
  let j;
2471
- const Y = z.length, Z = Y + 8, ie = ((Z - Z % 64) / 64 + 1) * 16, te = new Array(ie - 1);
2471
+ const Y = K.length, Z = Y + 8, ie = ((Z - Z % 64) / 64 + 1) * 16, se = new Array(ie - 1);
2472
2472
  let ve = 0, pe = 0;
2473
2473
  for (; pe < Y; )
2474
- j = (pe - pe % 4) / 4, ve = pe % 4 * 8, te[j] = te[j] | z.charCodeAt(pe) << ve, pe++;
2475
- return j = (pe - pe % 4) / 4, ve = pe % 4 * 8, te[j] = te[j] | 128 << ve, te[ie - 2] = Y << 3, te[ie - 1] = Y >>> 29, te;
2474
+ j = (pe - pe % 4) / 4, ve = pe % 4 * 8, se[j] = se[j] | K.charCodeAt(pe) << ve, pe++;
2475
+ return j = (pe - pe % 4) / 4, ve = pe % 4 * 8, se[j] = se[j] | 128 << ve, se[ie - 2] = Y << 3, se[ie - 1] = Y >>> 29, se;
2476
2476
  }
2477
- function F(z) {
2477
+ function F(K) {
2478
2478
  let j = "", Y = "", Z, le;
2479
2479
  for (le = 0; le <= 3; le++)
2480
- Z = z >>> le * 8 & 255, Y = `0${Z.toString(16)}`, j = j + Y.substr(Y.length - 2, 2);
2480
+ Z = K >>> le * 8 & 255, Y = `0${Z.toString(16)}`, j = j + Y.substr(Y.length - 2, 2);
2481
2481
  return j;
2482
2482
  }
2483
- function H(z) {
2483
+ function H(K) {
2484
2484
  let j = "";
2485
- for (let Y = 0; Y < z.length; Y++) {
2486
- const Z = z.charCodeAt(Y);
2485
+ for (let Y = 0; Y < K.length; Y++) {
2486
+ const Z = K.charCodeAt(Y);
2487
2487
  Z < 128 ? j += String.fromCharCode(Z) : Z > 127 && Z < 2048 ? (j += String.fromCharCode(Z >> 6 | 192), j += String.fromCharCode(Z & 63 | 128)) : (j += String.fromCharCode(Z >> 12 | 224), j += String.fromCharCode(Z >> 6 & 63 | 128), j += String.fromCharCode(Z & 63 | 128));
2488
2488
  }
2489
2489
  return j;
2490
2490
  }
2491
- let o = [], f, g, p, S, O, E, b, U, P;
2492
- const K = 7, q = 12, ne = 17, de = 22, he = 5, X = 9, _e = 14, Q = 20, xe = 4, Oe = 11, Ae = 16, Re = 23, ee = 6, J = 10, De = 15, be = 21;
2493
- for (d = H(d), o = w(d), E = 1732584193, b = 4023233417, U = 2562383102, P = 271733878, f = 0; f < o.length; f += 16)
2494
- g = E, p = b, S = U, O = P, E = v(E, b, U, P, o[f + 0], K, 3614090360), P = v(P, E, b, U, o[f + 1], q, 3905402710), U = v(U, P, E, b, o[f + 2], ne, 606105819), b = v(b, U, P, E, o[f + 3], de, 3250441966), E = v(E, b, U, P, o[f + 4], K, 4118548399), P = v(P, E, b, U, o[f + 5], q, 1200080426), U = v(U, P, E, b, o[f + 6], ne, 2821735955), b = v(b, U, P, E, o[f + 7], de, 4249261313), E = v(E, b, U, P, o[f + 8], K, 1770035416), P = v(P, E, b, U, o[f + 9], q, 2336552879), U = v(U, P, E, b, o[f + 10], ne, 4294925233), b = v(b, U, P, E, o[f + 11], de, 2304563134), E = v(E, b, U, P, o[f + 12], K, 1804603682), P = v(P, E, b, U, o[f + 13], q, 4254626195), U = v(U, P, E, b, o[f + 14], ne, 2792965006), b = v(b, U, P, E, o[f + 15], de, 1236535329), E = x(E, b, U, P, o[f + 1], he, 4129170786), P = x(P, E, b, U, o[f + 6], X, 3225465664), U = x(U, P, E, b, o[f + 11], _e, 643717713), b = x(b, U, P, E, o[f + 0], Q, 3921069994), E = x(E, b, U, P, o[f + 5], he, 3593408605), P = x(P, E, b, U, o[f + 10], X, 38016083), U = x(U, P, E, b, o[f + 15], _e, 3634488961), b = x(b, U, P, E, o[f + 4], Q, 3889429448), E = x(E, b, U, P, o[f + 9], he, 568446438), P = x(P, E, b, U, o[f + 14], X, 3275163606), U = x(U, P, E, b, o[f + 3], _e, 4107603335), b = x(b, U, P, E, o[f + 8], Q, 1163531501), E = x(E, b, U, P, o[f + 13], he, 2850285829), P = x(P, E, b, U, o[f + 2], X, 4243563512), U = x(U, P, E, b, o[f + 7], _e, 1735328473), b = x(b, U, P, E, o[f + 12], Q, 2368359562), E = $(E, b, U, P, o[f + 5], xe, 4294588738), P = $(P, E, b, U, o[f + 8], Oe, 2272392833), U = $(U, P, E, b, o[f + 11], Ae, 1839030562), b = $(b, U, P, E, o[f + 14], Re, 4259657740), E = $(E, b, U, P, o[f + 1], xe, 2763975236), P = $(P, E, b, U, o[f + 4], Oe, 1272893353), U = $(U, P, E, b, o[f + 7], Ae, 4139469664), b = $(b, U, P, E, o[f + 10], Re, 3200236656), E = $(E, b, U, P, o[f + 13], xe, 681279174), P = $(P, E, b, U, o[f + 0], Oe, 3936430074), U = $(U, P, E, b, o[f + 3], Ae, 3572445317), b = $(b, U, P, E, o[f + 6], Re, 76029189), E = $(E, b, U, P, o[f + 9], xe, 3654602809), P = $(P, E, b, U, o[f + 12], Oe, 3873151461), U = $(U, P, E, b, o[f + 15], Ae, 530742520), b = $(b, U, P, E, o[f + 2], Re, 3299628645), E = C(E, b, U, P, o[f + 0], ee, 4096336452), P = C(P, E, b, U, o[f + 7], J, 1126891415), U = C(U, P, E, b, o[f + 14], De, 2878612391), b = C(b, U, P, E, o[f + 5], be, 4237533241), E = C(E, b, U, P, o[f + 12], ee, 1700485571), P = C(P, E, b, U, o[f + 3], J, 2399980690), U = C(U, P, E, b, o[f + 10], De, 4293915773), b = C(b, U, P, E, o[f + 1], be, 2240044497), E = C(E, b, U, P, o[f + 8], ee, 1873313359), P = C(P, E, b, U, o[f + 15], J, 4264355552), U = C(U, P, E, b, o[f + 6], De, 2734768916), b = C(b, U, P, E, o[f + 13], be, 1309151649), E = C(E, b, U, P, o[f + 4], ee, 4149444226), P = C(P, E, b, U, o[f + 11], J, 3174756917), U = C(U, P, E, b, o[f + 2], De, 718787259), b = C(b, U, P, E, o[f + 9], be, 3951481745), E = l(E, g), b = l(b, p), U = l(U, S), P = l(P, O);
2495
- return (F(E) + F(b) + F(U) + F(P)).toLowerCase();
2491
+ let o = [], f, g, p, S, D, E, w, O, P;
2492
+ const z = 7, q = 12, te = 17, de = 22, he = 5, X = 9, _e = 14, Q = 20, xe = 4, Oe = 11, Ae = 16, Re = 23, ee = 6, J = 10, De = 15, be = 21;
2493
+ for (d = H(d), o = b(d), E = 1732584193, w = 4023233417, O = 2562383102, P = 271733878, f = 0; f < o.length; f += 16)
2494
+ g = E, p = w, S = O, D = P, E = v(E, w, O, P, o[f + 0], z, 3614090360), P = v(P, E, w, O, o[f + 1], q, 3905402710), O = v(O, P, E, w, o[f + 2], te, 606105819), w = v(w, O, P, E, o[f + 3], de, 3250441966), E = v(E, w, O, P, o[f + 4], z, 4118548399), P = v(P, E, w, O, o[f + 5], q, 1200080426), O = v(O, P, E, w, o[f + 6], te, 2821735955), w = v(w, O, P, E, o[f + 7], de, 4249261313), E = v(E, w, O, P, o[f + 8], z, 1770035416), P = v(P, E, w, O, o[f + 9], q, 2336552879), O = v(O, P, E, w, o[f + 10], te, 4294925233), w = v(w, O, P, E, o[f + 11], de, 2304563134), E = v(E, w, O, P, o[f + 12], z, 1804603682), P = v(P, E, w, O, o[f + 13], q, 4254626195), O = v(O, P, E, w, o[f + 14], te, 2792965006), w = v(w, O, P, E, o[f + 15], de, 1236535329), E = x(E, w, O, P, o[f + 1], he, 4129170786), P = x(P, E, w, O, o[f + 6], X, 3225465664), O = x(O, P, E, w, o[f + 11], _e, 643717713), w = x(w, O, P, E, o[f + 0], Q, 3921069994), E = x(E, w, O, P, o[f + 5], he, 3593408605), P = x(P, E, w, O, o[f + 10], X, 38016083), O = x(O, P, E, w, o[f + 15], _e, 3634488961), w = x(w, O, P, E, o[f + 4], Q, 3889429448), E = x(E, w, O, P, o[f + 9], he, 568446438), P = x(P, E, w, O, o[f + 14], X, 3275163606), O = x(O, P, E, w, o[f + 3], _e, 4107603335), w = x(w, O, P, E, o[f + 8], Q, 1163531501), E = x(E, w, O, P, o[f + 13], he, 2850285829), P = x(P, E, w, O, o[f + 2], X, 4243563512), O = x(O, P, E, w, o[f + 7], _e, 1735328473), w = x(w, O, P, E, o[f + 12], Q, 2368359562), E = $(E, w, O, P, o[f + 5], xe, 4294588738), P = $(P, E, w, O, o[f + 8], Oe, 2272392833), O = $(O, P, E, w, o[f + 11], Ae, 1839030562), w = $(w, O, P, E, o[f + 14], Re, 4259657740), E = $(E, w, O, P, o[f + 1], xe, 2763975236), P = $(P, E, w, O, o[f + 4], Oe, 1272893353), O = $(O, P, E, w, o[f + 7], Ae, 4139469664), w = $(w, O, P, E, o[f + 10], Re, 3200236656), E = $(E, w, O, P, o[f + 13], xe, 681279174), P = $(P, E, w, O, o[f + 0], Oe, 3936430074), O = $(O, P, E, w, o[f + 3], Ae, 3572445317), w = $(w, O, P, E, o[f + 6], Re, 76029189), E = $(E, w, O, P, o[f + 9], xe, 3654602809), P = $(P, E, w, O, o[f + 12], Oe, 3873151461), O = $(O, P, E, w, o[f + 15], Ae, 530742520), w = $(w, O, P, E, o[f + 2], Re, 3299628645), E = C(E, w, O, P, o[f + 0], ee, 4096336452), P = C(P, E, w, O, o[f + 7], J, 1126891415), O = C(O, P, E, w, o[f + 14], De, 2878612391), w = C(w, O, P, E, o[f + 5], be, 4237533241), E = C(E, w, O, P, o[f + 12], ee, 1700485571), P = C(P, E, w, O, o[f + 3], J, 2399980690), O = C(O, P, E, w, o[f + 10], De, 4293915773), w = C(w, O, P, E, o[f + 1], be, 2240044497), E = C(E, w, O, P, o[f + 8], ee, 1873313359), P = C(P, E, w, O, o[f + 15], J, 4264355552), O = C(O, P, E, w, o[f + 6], De, 2734768916), w = C(w, O, P, E, o[f + 13], be, 1309151649), E = C(E, w, O, P, o[f + 4], ee, 4149444226), P = C(P, E, w, O, o[f + 11], J, 3174756917), O = C(O, P, E, w, o[f + 2], De, 718787259), w = C(w, O, P, E, o[f + 9], be, 3951481745), E = l(E, g), w = l(w, p), O = l(O, S), P = l(P, D);
2495
+ return (F(E) + F(w) + F(O) + F(P)).toLowerCase();
2496
2496
  }, ae.closeMediaStream = (d) => {
2497
2497
  if (d)
2498
2498
  try {
@@ -2535,7 +2535,7 @@ function Ne() {
2535
2535
  function t() {
2536
2536
  t.init.call(this);
2537
2537
  }
2538
- ht.exports = t, ht.exports.once = w, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0;
2538
+ ht.exports = t, ht.exports.once = b, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0;
2539
2539
  var d = 10;
2540
2540
  function h(o) {
2541
2541
  if (typeof o != "function")
@@ -2565,40 +2565,40 @@ function Ne() {
2565
2565
  return l(this);
2566
2566
  }, t.prototype.emit = function(f) {
2567
2567
  for (var g = [], p = 1; p < arguments.length; p++) g.push(arguments[p]);
2568
- var S = f === "error", O = this._events;
2569
- if (O !== void 0)
2570
- S = S && O.error === void 0;
2568
+ var S = f === "error", D = this._events;
2569
+ if (D !== void 0)
2570
+ S = S && D.error === void 0;
2571
2571
  else if (!S)
2572
2572
  return !1;
2573
2573
  if (S) {
2574
2574
  var E;
2575
2575
  if (g.length > 0 && (E = g[0]), E instanceof Error)
2576
2576
  throw E;
2577
- var b = new Error("Unhandled error." + (E ? " (" + E.message + ")" : ""));
2578
- throw b.context = E, b;
2577
+ var w = new Error("Unhandled error." + (E ? " (" + E.message + ")" : ""));
2578
+ throw w.context = E, w;
2579
2579
  }
2580
- var U = O[f];
2581
- if (U === void 0)
2580
+ var O = D[f];
2581
+ if (O === void 0)
2582
2582
  return !1;
2583
- if (typeof U == "function")
2584
- I(U, this, g);
2583
+ if (typeof O == "function")
2584
+ I(O, this, g);
2585
2585
  else
2586
- for (var P = U.length, K = x(U, P), p = 0; p < P; ++p)
2587
- I(K[p], this, g);
2586
+ for (var P = O.length, z = x(O, P), p = 0; p < P; ++p)
2587
+ I(z[p], this, g);
2588
2588
  return !0;
2589
2589
  };
2590
2590
  function T(o, f, g, p) {
2591
- var S, O, E;
2592
- if (h(g), O = o._events, O === void 0 ? (O = o._events = /* @__PURE__ */ Object.create(null), o._eventsCount = 0) : (O.newListener !== void 0 && (o.emit(
2591
+ var S, D, E;
2592
+ if (h(g), D = o._events, D === void 0 ? (D = o._events = /* @__PURE__ */ Object.create(null), o._eventsCount = 0) : (D.newListener !== void 0 && (o.emit(
2593
2593
  "newListener",
2594
2594
  f,
2595
2595
  g.listener ? g.listener : g
2596
- ), O = o._events), E = O[f]), E === void 0)
2597
- E = O[f] = g, ++o._eventsCount;
2598
- else if (typeof E == "function" ? E = O[f] = p ? [g, E] : [E, g] : p ? E.unshift(g) : E.push(g), S = l(o), S > 0 && E.length > S && !E.warned) {
2596
+ ), D = o._events), E = D[f]), E === void 0)
2597
+ E = D[f] = g, ++o._eventsCount;
2598
+ else if (typeof E == "function" ? E = D[f] = p ? [g, E] : [E, g] : p ? E.unshift(g) : E.push(g), S = l(o), S > 0 && E.length > S && !E.warned) {
2599
2599
  E.warned = !0;
2600
- var b = new Error("Possible EventEmitter memory leak detected. " + E.length + " " + String(f) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2601
- b.name = "MaxListenersExceededWarning", b.emitter = o, b.type = f, b.count = E.length, _(b);
2600
+ var w = new Error("Possible EventEmitter memory leak detected. " + E.length + " " + String(f) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2601
+ w.name = "MaxListenersExceededWarning", w.emitter = o, w.type = f, w.count = E.length, _(w);
2602
2602
  }
2603
2603
  return o;
2604
2604
  }
@@ -2620,7 +2620,7 @@ function Ne() {
2620
2620
  }, t.prototype.prependOnceListener = function(f, g) {
2621
2621
  return h(g), this.prependListener(f, A(this, f, g)), this;
2622
2622
  }, t.prototype.removeListener = function(f, g) {
2623
- var p, S, O, E, b;
2623
+ var p, S, D, E, w;
2624
2624
  if (h(g), S = this._events, S === void 0)
2625
2625
  return this;
2626
2626
  if (p = S[f], p === void 0)
@@ -2628,14 +2628,14 @@ function Ne() {
2628
2628
  if (p === g || p.listener === g)
2629
2629
  --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete S[f], S.removeListener && this.emit("removeListener", f, p.listener || g));
2630
2630
  else if (typeof p != "function") {
2631
- for (O = -1, E = p.length - 1; E >= 0; E--)
2631
+ for (D = -1, E = p.length - 1; E >= 0; E--)
2632
2632
  if (p[E] === g || p[E].listener === g) {
2633
- b = p[E].listener, O = E;
2633
+ w = p[E].listener, D = E;
2634
2634
  break;
2635
2635
  }
2636
- if (O < 0)
2636
+ if (D < 0)
2637
2637
  return this;
2638
- O === 0 ? p.shift() : $(p, O), p.length === 1 && (S[f] = p[0]), S.removeListener !== void 0 && this.emit("removeListener", f, b || g);
2638
+ D === 0 ? p.shift() : $(p, D), p.length === 1 && (S[f] = p[0]), S.removeListener !== void 0 && this.emit("removeListener", f, w || g);
2639
2639
  }
2640
2640
  return this;
2641
2641
  }, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(f) {
@@ -2645,9 +2645,9 @@ function Ne() {
2645
2645
  if (p.removeListener === void 0)
2646
2646
  return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : p[f] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete p[f]), this;
2647
2647
  if (arguments.length === 0) {
2648
- var O = Object.keys(p), E;
2649
- for (S = 0; S < O.length; ++S)
2650
- E = O[S], E !== "removeListener" && this.removeAllListeners(E);
2648
+ var D = Object.keys(p), E;
2649
+ for (S = 0; S < D.length; ++S)
2650
+ E = D[S], E !== "removeListener" && this.removeAllListeners(E);
2651
2651
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
2652
2652
  }
2653
2653
  if (g = p[f], typeof g == "function")
@@ -2657,7 +2657,7 @@ function Ne() {
2657
2657
  this.removeListener(f, g[S]);
2658
2658
  return this;
2659
2659
  };
2660
- function D(o, f, g) {
2660
+ function U(o, f, g) {
2661
2661
  var p = o._events;
2662
2662
  if (p === void 0)
2663
2663
  return [];
@@ -2665,9 +2665,9 @@ function Ne() {
2665
2665
  return S === void 0 ? [] : typeof S == "function" ? g ? [S.listener || S] : [S] : g ? C(S) : x(S, S.length);
2666
2666
  }
2667
2667
  t.prototype.listeners = function(f) {
2668
- return D(this, f, !0);
2668
+ return U(this, f, !0);
2669
2669
  }, t.prototype.rawListeners = function(f) {
2670
- return D(this, f, !1);
2670
+ return U(this, f, !1);
2671
2671
  }, t.listenerCount = function(o, f) {
2672
2672
  return typeof o.listenerCount == "function" ? o.listenerCount(f) : v.call(o, f);
2673
2673
  }, t.prototype.listenerCount = v;
@@ -2700,15 +2700,15 @@ function Ne() {
2700
2700
  f[g] = o[g].listener || o[g];
2701
2701
  return f;
2702
2702
  }
2703
- function w(o, f) {
2703
+ function b(o, f) {
2704
2704
  return new Promise(function(g, p) {
2705
2705
  function S(E) {
2706
- o.removeListener(f, O), p(E);
2706
+ o.removeListener(f, D), p(E);
2707
2707
  }
2708
- function O() {
2708
+ function D() {
2709
2709
  typeof o.removeListener == "function" && o.removeListener("error", S), g([].slice.call(arguments));
2710
2710
  }
2711
- H(o, f, O, { once: !0 }), f !== "error" && F(o, S, { once: !0 });
2711
+ H(o, f, D, { once: !0 }), f !== "error" && F(o, S, { once: !0 });
2712
2712
  });
2713
2713
  }
2714
2714
  function F(o, f, g) {
@@ -2718,8 +2718,8 @@ function Ne() {
2718
2718
  if (typeof o.on == "function")
2719
2719
  p.once ? o.once(f, g) : o.on(f, g);
2720
2720
  else if (typeof o.addEventListener == "function")
2721
- o.addEventListener(f, function S(O) {
2722
- p.once && o.removeEventListener(f, S), g(O);
2721
+ o.addEventListener(f, function S(D) {
2722
+ p.once && o.removeEventListener(f, S), g(D);
2723
2723
  });
2724
2724
  else
2725
2725
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof o);
@@ -2733,10 +2733,10 @@ function ti() {
2733
2733
  var y = 1e3, I = y * 60, i = I * 60, _ = i * 24, R = _ * 7, t = _ * 365.25;
2734
2734
  zt = function(c, A) {
2735
2735
  A = A || {};
2736
- var D = typeof c;
2737
- if (D === "string" && c.length > 0)
2736
+ var U = typeof c;
2737
+ if (U === "string" && c.length > 0)
2738
2738
  return d(c);
2739
- if (D === "number" && isFinite(c))
2739
+ if (U === "number" && isFinite(c))
2740
2740
  return A.long ? l(c) : h(c);
2741
2741
  throw new Error(
2742
2742
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(c)
@@ -2748,46 +2748,46 @@ function ti() {
2748
2748
  c
2749
2749
  );
2750
2750
  if (A) {
2751
- var D = parseFloat(A[1]), v = (A[2] || "ms").toLowerCase();
2751
+ var U = parseFloat(A[1]), v = (A[2] || "ms").toLowerCase();
2752
2752
  switch (v) {
2753
2753
  case "years":
2754
2754
  case "year":
2755
2755
  case "yrs":
2756
2756
  case "yr":
2757
2757
  case "y":
2758
- return D * t;
2758
+ return U * t;
2759
2759
  case "weeks":
2760
2760
  case "week":
2761
2761
  case "w":
2762
- return D * R;
2762
+ return U * R;
2763
2763
  case "days":
2764
2764
  case "day":
2765
2765
  case "d":
2766
- return D * _;
2766
+ return U * _;
2767
2767
  case "hours":
2768
2768
  case "hour":
2769
2769
  case "hrs":
2770
2770
  case "hr":
2771
2771
  case "h":
2772
- return D * i;
2772
+ return U * i;
2773
2773
  case "minutes":
2774
2774
  case "minute":
2775
2775
  case "mins":
2776
2776
  case "min":
2777
2777
  case "m":
2778
- return D * I;
2778
+ return U * I;
2779
2779
  case "seconds":
2780
2780
  case "second":
2781
2781
  case "secs":
2782
2782
  case "sec":
2783
2783
  case "s":
2784
- return D * y;
2784
+ return U * y;
2785
2785
  case "milliseconds":
2786
2786
  case "millisecond":
2787
2787
  case "msecs":
2788
2788
  case "msec":
2789
2789
  case "ms":
2790
- return D;
2790
+ return U;
2791
2791
  default:
2792
2792
  return;
2793
2793
  }
@@ -2802,9 +2802,9 @@ function ti() {
2802
2802
  var A = Math.abs(c);
2803
2803
  return A >= _ ? T(c, A, _, "day") : A >= i ? T(c, A, i, "hour") : A >= I ? T(c, A, I, "minute") : A >= y ? T(c, A, y, "second") : c + " ms";
2804
2804
  }
2805
- function T(c, A, D, v) {
2806
- var x = A >= D * 1.5;
2807
- return Math.round(c / D) + " " + v + (x ? "s" : "");
2805
+ function T(c, A, U, v) {
2806
+ var x = A >= U * 1.5;
2807
+ return Math.round(c / U) + " " + v + (x ? "s" : "");
2808
2808
  }
2809
2809
  return zt;
2810
2810
  }
@@ -2817,77 +2817,77 @@ function si() {
2817
2817
  _[A] = I[A];
2818
2818
  }), _.names = [], _.skips = [], _.formatters = {};
2819
2819
  function i(A) {
2820
- let D = 0;
2820
+ let U = 0;
2821
2821
  for (let v = 0; v < A.length; v++)
2822
- D = (D << 5) - D + A.charCodeAt(v), D |= 0;
2823
- return _.colors[Math.abs(D) % _.colors.length];
2822
+ U = (U << 5) - U + A.charCodeAt(v), U |= 0;
2823
+ return _.colors[Math.abs(U) % _.colors.length];
2824
2824
  }
2825
2825
  _.selectColor = i;
2826
2826
  function _(A) {
2827
- let D, v = null, x, $;
2828
- function C(...w) {
2827
+ let U, v = null, x, $;
2828
+ function C(...b) {
2829
2829
  if (!C.enabled)
2830
2830
  return;
2831
- const F = C, H = Number(/* @__PURE__ */ new Date()), o = H - (D || H);
2832
- F.diff = o, F.prev = D, F.curr = H, D = H, w[0] = _.coerce(w[0]), typeof w[0] != "string" && w.unshift("%O");
2831
+ const F = C, H = Number(/* @__PURE__ */ new Date()), o = H - (U || H);
2832
+ F.diff = o, F.prev = U, F.curr = H, U = H, b[0] = _.coerce(b[0]), typeof b[0] != "string" && b.unshift("%O");
2833
2833
  let f = 0;
2834
- w[0] = w[0].replace(/%([a-zA-Z%])/g, (p, S) => {
2834
+ b[0] = b[0].replace(/%([a-zA-Z%])/g, (p, S) => {
2835
2835
  if (p === "%%")
2836
2836
  return "%";
2837
2837
  f++;
2838
- const O = _.formatters[S];
2839
- if (typeof O == "function") {
2840
- const E = w[f];
2841
- p = O.call(F, E), w.splice(f, 1), f--;
2838
+ const D = _.formatters[S];
2839
+ if (typeof D == "function") {
2840
+ const E = b[f];
2841
+ p = D.call(F, E), b.splice(f, 1), f--;
2842
2842
  }
2843
2843
  return p;
2844
- }), _.formatArgs.call(F, w), (F.log || _.log).apply(F, w);
2844
+ }), _.formatArgs.call(F, b), (F.log || _.log).apply(F, b);
2845
2845
  }
2846
2846
  return C.namespace = A, C.useColors = _.useColors(), C.color = _.selectColor(A), C.extend = R, C.destroy = _.destroy, Object.defineProperty(C, "enabled", {
2847
2847
  enumerable: !0,
2848
2848
  configurable: !1,
2849
2849
  get: () => v !== null ? v : (x !== _.namespaces && (x = _.namespaces, $ = _.enabled(A)), $),
2850
- set: (w) => {
2851
- v = w;
2850
+ set: (b) => {
2851
+ v = b;
2852
2852
  }
2853
2853
  }), typeof _.init == "function" && _.init(C), C;
2854
2854
  }
2855
- function R(A, D) {
2856
- const v = _(this.namespace + (typeof D > "u" ? ":" : D) + A);
2855
+ function R(A, U) {
2856
+ const v = _(this.namespace + (typeof U > "u" ? ":" : U) + A);
2857
2857
  return v.log = this.log, v;
2858
2858
  }
2859
2859
  function t(A) {
2860
2860
  _.save(A), _.namespaces = A, _.names = [], _.skips = [];
2861
- const D = (typeof A == "string" ? A : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
2862
- for (const v of D)
2861
+ const U = (typeof A == "string" ? A : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
2862
+ for (const v of U)
2863
2863
  v[0] === "-" ? _.skips.push(v.slice(1)) : _.names.push(v);
2864
2864
  }
2865
- function d(A, D) {
2865
+ function d(A, U) {
2866
2866
  let v = 0, x = 0, $ = -1, C = 0;
2867
2867
  for (; v < A.length; )
2868
- if (x < D.length && (D[x] === A[v] || D[x] === "*"))
2869
- D[x] === "*" ? ($ = x, C = v, x++) : (v++, x++);
2868
+ if (x < U.length && (U[x] === A[v] || U[x] === "*"))
2869
+ U[x] === "*" ? ($ = x, C = v, x++) : (v++, x++);
2870
2870
  else if ($ !== -1)
2871
2871
  x = $ + 1, C++, v = C;
2872
2872
  else
2873
2873
  return !1;
2874
- for (; x < D.length && D[x] === "*"; )
2874
+ for (; x < U.length && U[x] === "*"; )
2875
2875
  x++;
2876
- return x === D.length;
2876
+ return x === U.length;
2877
2877
  }
2878
2878
  function h() {
2879
2879
  const A = [
2880
2880
  ..._.names,
2881
- ..._.skips.map((D) => "-" + D)
2881
+ ..._.skips.map((U) => "-" + U)
2882
2882
  ].join(",");
2883
2883
  return _.enable(""), A;
2884
2884
  }
2885
2885
  function l(A) {
2886
- for (const D of _.skips)
2887
- if (d(A, D))
2886
+ for (const U of _.skips)
2887
+ if (d(A, U))
2888
2888
  return !1;
2889
- for (const D of _.names)
2890
- if (d(A, D))
2889
+ for (const U of _.names)
2890
+ if (d(A, U))
2891
2891
  return !0;
2892
2892
  return !1;
2893
2893
  }
@@ -3005,8 +3005,8 @@ function Ss() {
3005
3005
  const T = "color: " + this.color;
3006
3006
  l.splice(1, 0, T, "color: inherit");
3007
3007
  let c = 0, A = 0;
3008
- l[0].replace(/%[a-zA-Z%]/g, (D) => {
3009
- D !== "%%" && (c++, D === "%c" && (A = c));
3008
+ l[0].replace(/%[a-zA-Z%]/g, (U) => {
3009
+ U !== "%%" && (c++, U === "%c" && (A = c));
3010
3010
  }), l.splice(A, 0, T);
3011
3011
  }
3012
3012
  I.log = console.debug || console.log || (() => {
@@ -3530,10 +3530,10 @@ function ri() {
3530
3530
  y.parse = function(h) {
3531
3531
  var l = {}, T = [], c = l;
3532
3532
  return h.split(/(\r\n|\r|\n)/).filter(t).forEach(function(A) {
3533
- var D = A[0], v = A.slice(2);
3534
- D === "m" && (T.push({ rtp: [], fmtp: [] }), c = T[T.length - 1]);
3535
- for (var x = 0; x < (R[D] || []).length; x += 1) {
3536
- var $ = R[D][x];
3533
+ var U = A[0], v = A.slice(2);
3534
+ U === "m" && (T.push({ rtp: [], fmtp: [] }), c = T[T.length - 1]);
3535
+ for (var x = 0; x < (R[U] || []).length; x += 1) {
3536
+ var $ = R[U][x];
3537
3537
  if ($.reg.test(v))
3538
3538
  return _($, c, v);
3539
3539
  }
@@ -3597,8 +3597,8 @@ function ni() {
3597
3597
  var T = h.format instanceof Function ? h.format(h.push ? l : l[h.name]) : h.format, c = [d + "=" + T];
3598
3598
  if (h.names)
3599
3599
  for (var A = 0; A < h.names.length; A += 1) {
3600
- var D = h.names[A];
3601
- h.name ? c.push(l[h.name][D]) : c.push(l[h.names[A]]);
3600
+ var U = h.names[A];
3601
+ h.name ? c.push(l[h.name][U]) : c.push(l[h.names[A]]);
3602
3602
  }
3603
3603
  else
3604
3604
  c.push(l[h.name]);
@@ -3624,16 +3624,16 @@ function ni() {
3624
3624
  });
3625
3625
  var l = h.outerOrder || R, T = h.innerOrder || t, c = [];
3626
3626
  return l.forEach(function(A) {
3627
- y[A].forEach(function(D) {
3628
- D.name in d && d[D.name] != null ? c.push(_(A, D, d)) : D.push in d && d[D.push] != null && d[D.push].forEach(function(v) {
3629
- c.push(_(A, D, v));
3627
+ y[A].forEach(function(U) {
3628
+ U.name in d && d[U.name] != null ? c.push(_(A, U, d)) : U.push in d && d[U.push] != null && d[U.push].forEach(function(v) {
3629
+ c.push(_(A, U, v));
3630
3630
  });
3631
3631
  });
3632
3632
  }), d.media.forEach(function(A) {
3633
- c.push(_("m", y.m[0], A)), T.forEach(function(D) {
3634
- y[D].forEach(function(v) {
3635
- v.name in A && A[v.name] != null ? c.push(_(D, v, A)) : v.push in A && A[v.push] != null && A[v.push].forEach(function(x) {
3636
- c.push(_(D, v, x));
3633
+ c.push(_("m", y.m[0], A)), T.forEach(function(U) {
3634
+ y[U].forEach(function(v) {
3635
+ v.name in A && A[v.name] != null ? c.push(_(U, v, A)) : v.push in A && A[v.push] != null && A[v.push].forEach(function(x) {
3636
+ c.push(_(U, v, x));
3637
3637
  });
3638
3638
  });
3639
3639
  });
@@ -3655,17 +3655,17 @@ function Se() {
3655
3655
  On = 1;
3656
3656
  const y = nl(), I = ce(), i = ue(), _ = fe(), R = bs(), t = Ce(), d = new I("SIPMessage");
3657
3657
  class h {
3658
- constructor(v, x, $, C, w, F) {
3658
+ constructor(v, x, $, C, b, F) {
3659
3659
  if (!v || !x || !$)
3660
3660
  return null;
3661
- C = C || {}, this.ua = $, this.headers = {}, this.method = v, this.ruri = x, this.body = F, this.extraHeaders = _.cloneArray(w), this.ua.configuration.extra_headers && (this.extraHeaders = this.extraHeaders.concat(this.ua.configuration.extra_headers)), C.route_set ? this.setHeader("route", C.route_set) : $.configuration.use_preloaded_route && this.setHeader("route", `<${$.transport.sip_uri};lr>`), this.setHeader("via", ""), this.setHeader("max-forwards", i.MAX_FORWARDS);
3661
+ C = C || {}, this.ua = $, this.headers = {}, this.method = v, this.ruri = x, this.body = F, this.extraHeaders = _.cloneArray(b), this.ua.configuration.extra_headers && (this.extraHeaders = this.extraHeaders.concat(this.ua.configuration.extra_headers)), C.route_set ? this.setHeader("route", C.route_set) : $.configuration.use_preloaded_route && this.setHeader("route", `<${$.transport.sip_uri};lr>`), this.setHeader("via", ""), this.setHeader("max-forwards", i.MAX_FORWARDS);
3662
3662
  const H = C.to_uri || x, o = C.to_tag ? { tag: C.to_tag } : null, f = typeof C.to_display_name < "u" ? C.to_display_name : null;
3663
3663
  this.to = new R(H, f, o), this.setHeader("to", this.to.toString());
3664
3664
  const g = C.from_uri || $.configuration.uri, p = { tag: C.from_tag || _.newTag() };
3665
3665
  let S;
3666
3666
  typeof C.from_display_name < "u" ? S = C.from_display_name : $.configuration.display_name ? S = $.configuration.display_name : S = null, this.from = new R(g, S, p), this.setHeader("from", this.from.toString());
3667
- const O = C.call_id || $.configuration.jssip_id + _.createRandomToken(15);
3668
- this.call_id = O, this.setHeader("call-id", O);
3667
+ const D = C.call_id || $.configuration.jssip_id + _.createRandomToken(15);
3668
+ this.call_id = D, this.setHeader("call-id", D);
3669
3669
  const E = C.cseq || Math.floor(Math.random() * 1e4);
3670
3670
  this.cseq = E, this.setHeader("cseq", `${E} ${v}`);
3671
3671
  }
@@ -3710,8 +3710,8 @@ function Se() {
3710
3710
  return $;
3711
3711
  } else {
3712
3712
  const C = new RegExp(`^\\s*${v}\\s*:`, "i");
3713
- for (const w of this.extraHeaders)
3714
- C.test(w) && $.push(w.substring(w.indexOf(":") + 1).trim());
3713
+ for (const b of this.extraHeaders)
3714
+ C.test(b) && $.push(b.substring(b.indexOf(":") + 1).trim());
3715
3715
  return $;
3716
3716
  }
3717
3717
  }
@@ -3746,8 +3746,8 @@ function Se() {
3746
3746
  `;
3747
3747
  for (const C in this.headers)
3748
3748
  if (Object.prototype.hasOwnProperty.call(this.headers, C))
3749
- for (const w of this.headers[C])
3750
- v += `${C}: ${w}\r
3749
+ for (const b of this.headers[C])
3750
+ v += `${C}: ${b}\r
3751
3751
  `;
3752
3752
  for (const C of this.extraHeaders)
3753
3753
  v += `${C.trim()}\r
@@ -3788,8 +3788,8 @@ function Se() {
3788
3788
  }
3789
3789
  }
3790
3790
  class l extends h {
3791
- constructor(v, x, $, C, w) {
3792
- super(i.INVITE, v, x, $, C, w), this.transaction = null;
3791
+ constructor(v, x, $, C, b) {
3792
+ super(i.INVITE, v, x, $, C, b), this.transaction = null;
3793
3793
  }
3794
3794
  cancel(v) {
3795
3795
  this.transaction.cancel(v);
@@ -3861,12 +3861,12 @@ function Se() {
3861
3861
  const $ = this.headers[v][x], C = $.raw;
3862
3862
  if ($.parsed)
3863
3863
  return $.parsed;
3864
- const w = t.parse(C, v.replace(/-/g, "_"));
3865
- if (w === -1) {
3864
+ const b = t.parse(C, v.replace(/-/g, "_"));
3865
+ if (b === -1) {
3866
3866
  this.headers[v].splice(x, 1), d.debug(`error parsing "${v}" header field with value "${C}"`);
3867
3867
  return;
3868
3868
  } else
3869
- return $.parsed = w, w;
3869
+ return $.parsed = b, b;
3870
3870
  }
3871
3871
  /**
3872
3872
  * Message Header attribute selector. Alias of parseHeader.
@@ -3917,7 +3917,7 @@ function Se() {
3917
3917
  * -param {Function} [onSuccess] onSuccess callback
3918
3918
  * -param {Function} [onFailure] onFailure callback
3919
3919
  */
3920
- reply(v, x, $, C, w, F) {
3920
+ reply(v, x, $, C, b, F) {
3921
3921
  const H = [];
3922
3922
  let o = this.getHeader("To");
3923
3923
  if (v = v || null, x = x || null, !v || v < 100 || v > 699)
@@ -3967,7 +3967,7 @@ function Se() {
3967
3967
  f += `Content-Length: 0\r
3968
3968
  \r
3969
3969
  `;
3970
- this.server_transaction.receiveResponse(v, f, w, F);
3970
+ this.server_transaction.receiveResponse(v, f, b, F);
3971
3971
  }
3972
3972
  /**
3973
3973
  * Stateless reply.
@@ -3986,8 +3986,8 @@ function Se() {
3986
3986
  for (const F of $)
3987
3987
  C += `Via: ${F}\r
3988
3988
  `;
3989
- let w = this.getHeader("To");
3990
- if (!this.to_tag && v > 100 ? w += `;tag=${_.newTag()}` : this.to_tag && !this.s("to").hasParam("tag") && (w += `;tag=${this.to_tag}`), C += `To: ${w}\r
3989
+ let b = this.getHeader("To");
3990
+ if (!this.to_tag && v > 100 ? b += `;tag=${_.newTag()}` : this.to_tag && !this.s("to").hasParam("tag") && (b += `;tag=${this.to_tag}`), C += `To: ${b}\r
3991
3991
  `, C += `From: ${this.getHeader("From")}\r
3992
3992
  `, C += `Call-ID: ${this.call_id}\r
3993
3993
  `, C += `CSeq: ${this.cseq} ${this.method}\r
@@ -4102,7 +4102,7 @@ function ll() {
4102
4102
  }, ts;
4103
4103
  }
4104
4104
  var ss, Pn;
4105
- function je() {
4105
+ function ze() {
4106
4106
  if (Pn) return ss;
4107
4107
  Pn = 1;
4108
4108
  const y = Ne().EventEmitter, I = ce(), i = ue(), _ = Se(), R = ll(), t = new I("NonInviteClientTransaction"), d = new I("InviteClientTransaction"), h = new I("AckClientTransaction"), l = new I("NonInviteServerTransaction"), T = new I("InviteServerTransaction"), c = {
@@ -4168,7 +4168,7 @@ function je() {
4168
4168
  }
4169
4169
  }
4170
4170
  }
4171
- class D extends y {
4171
+ class U extends y {
4172
4172
  constructor(F, H, o, f) {
4173
4173
  super(), this.type = c.INVITE_CLIENT, this.id = `z9hG4bK${Math.floor(Math.random() * 1e7)}`, this.ua = F, this.transport = H, this.request = o, this.eventHandlers = f, o.transaction = this;
4174
4174
  let g = `SIP/2.0/${H.via_transport}`;
@@ -4367,11 +4367,11 @@ function je() {
4367
4367
  }, R.TIMER_H), o && o()) : (this.onTransportError(), f && f()));
4368
4368
  }
4369
4369
  }
4370
- function C({ _transactions: w }, F) {
4370
+ function C({ _transactions: b }, F) {
4371
4371
  let H;
4372
4372
  switch (F.method) {
4373
4373
  case i.INVITE:
4374
- if (H = w.ist[F.via_branch], H) {
4374
+ if (H = b.ist[F.via_branch], H) {
4375
4375
  switch (H.state) {
4376
4376
  case c.STATUS_PROCEEDING:
4377
4377
  H.transport.send(H.last_response);
@@ -4385,7 +4385,7 @@ function je() {
4385
4385
  }
4386
4386
  break;
4387
4387
  case i.ACK:
4388
- if (H = w.ist[F.via_branch], H) {
4388
+ if (H = b.ist[F.via_branch], H) {
4389
4389
  if (H.state === c.STATUS_ACCEPTED)
4390
4390
  return !1;
4391
4391
  if (H.state === c.STATUS_COMPLETED)
@@ -4396,9 +4396,9 @@ function je() {
4396
4396
  return !1;
4397
4397
  break;
4398
4398
  case i.CANCEL:
4399
- return H = w.ist[F.via_branch], H ? (F.reply_sl(200), H.state !== c.STATUS_PROCEEDING) : (F.reply_sl(481), !0);
4399
+ return H = b.ist[F.via_branch], H ? (F.reply_sl(200), H.state !== c.STATUS_PROCEEDING) : (F.reply_sl(481), !0);
4400
4400
  default:
4401
- if (H = w.nist[F.via_branch], H) {
4401
+ if (H = b.nist[F.via_branch], H) {
4402
4402
  switch (H.state) {
4403
4403
  case c.STATUS_TRYING:
4404
4404
  break;
@@ -4415,7 +4415,7 @@ function je() {
4415
4415
  return ss = {
4416
4416
  C: c,
4417
4417
  NonInviteClientTransaction: A,
4418
- InviteClientTransaction: D,
4418
+ InviteClientTransaction: U,
4419
4419
  AckClientTransaction: v,
4420
4420
  NonInviteServerTransaction: x,
4421
4421
  InviteServerTransaction: $,
@@ -4423,10 +4423,10 @@ function je() {
4423
4423
  }, ss;
4424
4424
  }
4425
4425
  var rs, Mn;
4426
- function ze() {
4426
+ function Ke() {
4427
4427
  if (Mn) return rs;
4428
4428
  Mn = 1;
4429
- const y = ce(), I = ue(), i = li(), _ = je(), R = new y("RequestSender"), t = {
4429
+ const y = ce(), I = ue(), i = li(), _ = ze(), R = new y("RequestSender"), t = {
4430
4430
  onRequestTimeout: () => {
4431
4431
  },
4432
4432
  onTransportError: () => {
@@ -4519,7 +4519,7 @@ var ns, Ln;
4519
4519
  function ii() {
4520
4520
  if (Ln) return ns;
4521
4521
  Ln = 1;
4522
- const y = ce(), I = fe(), i = ue(), _ = Se(), R = ze(), t = new y("Registrator"), d = 10;
4522
+ const y = ce(), I = fe(), i = ue(), _ = Se(), R = Ke(), t = new y("Registrator"), d = 10;
4523
4523
  return ns = class {
4524
4524
  constructor(l, T) {
4525
4525
  this._reg_id = 1, this._ua = l, this._transport = T, this._registrar = l.configuration.registrar_server, this._expires = l.configuration.register_expires, this._call_id = I.createRandomToken(22), this._cseq = 0, this._to_uri = l.configuration.uri, this._registrationTimer = null, this._registering = !1, this._registered = !1, this._contact = this._ua.contact.toString(), this._contact += ";+sip.ice", this._extraHeaders = [], this._extraContactParams = "", this._sipInstance = `"<urn:uuid:${this._ua.configuration.instance_id}>"`, this._contact += `;reg-id=${this._reg_id}`, this._contact += `;+sip.instance=${this._sipInstance}`;
@@ -4559,7 +4559,7 @@ function ii() {
4559
4559
  from_tag: c
4560
4560
  },
4561
4561
  l
4562
- ), D = new R(this._ua, A, {
4562
+ ), U = new R(this._ua, A, {
4563
4563
  onRequestTimeout: () => {
4564
4564
  this._registrationFailure(null, i.causes.REQUEST_TIMEOUT);
4565
4565
  },
@@ -4588,10 +4588,10 @@ function ii() {
4588
4588
  }
4589
4589
  let C = $.getParam("expires");
4590
4590
  !C && v.hasHeader("expires") && (C = v.getHeader("expires")), C || (C = this._expires), C = Number(C), C < d && (C = d);
4591
- const w = C > 64 ? C * 1e3 / 2 + Math.floor((C / 2 - 32) * 1e3 * Math.random()) : C * 1e3 - 5e3;
4591
+ const b = C > 64 ? C * 1e3 / 2 + Math.floor((C / 2 - 32) * 1e3 * Math.random()) : C * 1e3 - 5e3;
4592
4592
  this._registrationTimer = setTimeout(() => {
4593
4593
  this._registrationTimer = null, this._ua.listeners("registrationExpiring").length === 0 ? this.register() : this._ua.emit("registrationExpiring");
4594
- }, w), $.hasParam("temp-gruu") && (this._ua.contact.temp_gruu = $.getParam("temp-gruu").replace(/"/g, "")), $.hasParam("pub-gruu") && (this._ua.contact.pub_gruu = $.getParam("pub-gruu").replace(/"/g, "")), this._registered || (this._registered = !0, this._ua.registered({ response: v }));
4594
+ }, b), $.hasParam("temp-gruu") && (this._ua.contact.temp_gruu = $.getParam("temp-gruu").replace(/"/g, "")), $.hasParam("pub-gruu") && (this._ua.contact.pub_gruu = $.getParam("pub-gruu").replace(/"/g, "")), this._registered || (this._registered = !0, this._ua.registered({ response: v }));
4595
4595
  break;
4596
4596
  }
4597
4597
  // Interval too brief RFC3261 10.2.8.
@@ -4606,7 +4606,7 @@ function ii() {
4606
4606
  }
4607
4607
  }
4608
4608
  });
4609
- this._registering = !0, D.send();
4609
+ this._registering = !0, U.send();
4610
4610
  }
4611
4611
  unregister(l = {}) {
4612
4612
  if (!this._registered) {
@@ -4638,16 +4638,16 @@ function ii() {
4638
4638
  onAuthenticated: () => {
4639
4639
  this._cseq += 1;
4640
4640
  },
4641
- onReceiveResponse: (D) => {
4641
+ onReceiveResponse: (U) => {
4642
4642
  switch (!0) {
4643
- case /^1[0-9]{2}$/.test(D.status_code):
4643
+ case /^1[0-9]{2}$/.test(U.status_code):
4644
4644
  break;
4645
- case /^2[0-9]{2}$/.test(D.status_code):
4646
- this._unregistered(D);
4645
+ case /^2[0-9]{2}$/.test(U.status_code):
4646
+ this._unregistered(U);
4647
4647
  break;
4648
4648
  default: {
4649
- const v = I.sipErrorCause(D.status_code);
4650
- this._unregistered(D, v);
4649
+ const v = I.sipErrorCause(U.status_code);
4650
+ this._unregistered(U, v);
4651
4651
  }
4652
4652
  }
4653
4653
  }
@@ -4680,7 +4680,7 @@ var ls, Fn;
4680
4680
  function ai() {
4681
4681
  if (Fn) return ls;
4682
4682
  Fn = 1;
4683
- const y = ue(), I = je(), i = ze(), _ = {
4683
+ const y = ue(), I = ze(), i = Ke(), _ = {
4684
4684
  onRequestTimeout: () => {
4685
4685
  },
4686
4686
  onTransportError: () => {
@@ -4737,7 +4737,7 @@ var is, Hn;
4737
4737
  function oi() {
4738
4738
  if (Hn) return is;
4739
4739
  Hn = 1;
4740
- const y = ce(), I = Se(), i = ue(), _ = je(), R = ai(), t = fe(), d = new y("Dialog"), h = {
4740
+ const y = ce(), I = Se(), i = ue(), _ = ze(), R = ai(), t = fe(), d = new y("Dialog"), h = {
4741
4741
  // Dialog states.
4742
4742
  STATUS_EARLY: 1,
4743
4743
  STATUS_CONFIRMED: 2,
@@ -4748,12 +4748,12 @@ function oi() {
4748
4748
  static get C() {
4749
4749
  return h;
4750
4750
  }
4751
- constructor(T, c, A, D = h.STATUS_CONFIRMED) {
4751
+ constructor(T, c, A, U = h.STATUS_CONFIRMED) {
4752
4752
  if (this._owner = T, this._ua = T._ua, this._uac_pending_reply = !1, this._uas_pending_reply = !1, !c.hasHeader("contact"))
4753
4753
  return {
4754
4754
  error: "unable to create a Dialog without Contact header field"
4755
4755
  };
4756
- c instanceof I.IncomingResponse && (D = c.status_code < 200 ? h.STATUS_EARLY : h.STATUS_CONFIRMED);
4756
+ c instanceof I.IncomingResponse && (U = c.status_code < 200 ? h.STATUS_EARLY : h.STATUS_CONFIRMED);
4757
4757
  const v = c.parseHeader("contact");
4758
4758
  A === "UAS" ? (this._id = {
4759
4759
  call_id: c.call_id,
@@ -4762,14 +4762,14 @@ function oi() {
4762
4762
  toString() {
4763
4763
  return this.call_id + this.local_tag + this.remote_tag;
4764
4764
  }
4765
- }, this._state = D, this._remote_seqnum = c.cseq, this._local_uri = c.parseHeader("to").uri, this._remote_uri = c.parseHeader("from").uri, this._remote_target = v.uri, this._route_set = c.getHeaders("record-route"), this.incoming_ack_seqnum = c.cseq, this.outgoing_ack_seqnum = null) : A === "UAC" && (this._id = {
4765
+ }, this._state = U, this._remote_seqnum = c.cseq, this._local_uri = c.parseHeader("to").uri, this._remote_uri = c.parseHeader("from").uri, this._remote_target = v.uri, this._route_set = c.getHeaders("record-route"), this.incoming_ack_seqnum = c.cseq, this.outgoing_ack_seqnum = null) : A === "UAC" && (this._id = {
4766
4766
  call_id: c.call_id,
4767
4767
  local_tag: c.from_tag,
4768
4768
  remote_tag: c.to_tag,
4769
4769
  toString() {
4770
4770
  return this.call_id + this.local_tag + this.remote_tag;
4771
4771
  }
4772
- }, this._state = D, this._local_seqnum = c.cseq, this._local_uri = c.parseHeader("from").uri, this._remote_uri = c.parseHeader("to").uri, this._remote_target = v.uri, this._route_set = c.getHeaders("record-route").reverse(), this.incoming_ack_seqnum = null, this.outgoing_ack_seqnum = this._local_seqnum), this._ua.newDialog(this), d.debug(`new ${A} dialog created with status ${this._state === h.STATUS_EARLY ? "EARLY" : "CONFIRMED"}`);
4772
+ }, this._state = U, this._local_seqnum = c.cseq, this._local_uri = c.parseHeader("from").uri, this._remote_uri = c.parseHeader("to").uri, this._remote_target = v.uri, this._route_set = c.getHeaders("record-route").reverse(), this.incoming_ack_seqnum = null, this.outgoing_ack_seqnum = this._local_seqnum), this._ua.newDialog(this), d.debug(`new ${A} dialog created with status ${this._state === h.STATUS_EARLY ? "EARLY" : "CONFIRMED"}`);
4773
4773
  }
4774
4774
  get id() {
4775
4775
  return this._id;
@@ -4802,10 +4802,10 @@ function oi() {
4802
4802
  d.debug(`dialog ${this._id.toString()} deleted`), this._ua.destroyDialog(this), this._state = h.STATUS_TERMINATED;
4803
4803
  }
4804
4804
  sendRequest(T, c = {}) {
4805
- const A = t.cloneArray(c.extraHeaders), D = t.cloneObject(c.eventHandlers), v = c.body || null, x = this._createRequest(T, A, v);
4806
- return D.onAuthenticated = () => {
4805
+ const A = t.cloneArray(c.extraHeaders), U = t.cloneObject(c.eventHandlers), v = c.body || null, x = this._createRequest(T, A, v);
4806
+ return U.onAuthenticated = () => {
4807
4807
  this._local_seqnum += 1, x.method === i.INVITE && (this._outgoing_ack_seqnum = this._local_seqnum);
4808
- }, new R(this, x, D).send(), x;
4808
+ }, new R(this, x, U).send(), x;
4809
4809
  }
4810
4810
  receiveRequest(T) {
4811
4811
  this._checkInDialogRequest(T) && (T.method === i.ACK && this.incoming_ack_seqnum !== null ? this.incoming_ack_seqnum = null : T.method === i.INVITE && (this.incoming_ack_seqnum = T.cseq), this._owner.receiveRequest(T));
@@ -4813,13 +4813,13 @@ function oi() {
4813
4813
  // RFC 3261 12.2.1.1.
4814
4814
  _createRequest(T, c, A) {
4815
4815
  c = t.cloneArray(c), this._local_seqnum || (this._local_seqnum = Math.floor(Math.random() * 1e4));
4816
- const D = T === i.CANCEL || T === i.ACK ? this.outgoing_ack_seqnum : this._local_seqnum += 1;
4817
- return T === i.INVITE && (this.outgoing_ack_seqnum = D), new I.OutgoingRequest(
4816
+ const U = T === i.CANCEL || T === i.ACK ? this.outgoing_ack_seqnum : this._local_seqnum += 1;
4817
+ return T === i.INVITE && (this.outgoing_ack_seqnum = U), new I.OutgoingRequest(
4818
4818
  T,
4819
4819
  this._remote_target,
4820
4820
  this._ua,
4821
4821
  {
4822
- cseq: D,
4822
+ cseq: U,
4823
4823
  call_id: this._id.call_id,
4824
4824
  from_uri: this._local_uri,
4825
4825
  from_tag: this._id.local_tag,
@@ -4912,16 +4912,16 @@ function ui() {
4912
4912
  }), this._session.sendRequest(i.INFO, {
4913
4913
  extraHeaders: c,
4914
4914
  eventHandlers: {
4915
- onSuccessResponse: (D) => {
4915
+ onSuccessResponse: (U) => {
4916
4916
  this.emit("succeeded", {
4917
4917
  originator: "remote",
4918
- response: D
4918
+ response: U
4919
4919
  });
4920
4920
  },
4921
- onErrorResponse: (D) => {
4921
+ onErrorResponse: (U) => {
4922
4922
  this.eventHandlers.onFailed && this.eventHandlers.onFailed(), this.emit("failed", {
4923
4923
  originator: "remote",
4924
- response: D
4924
+ response: U
4925
4925
  });
4926
4926
  },
4927
4927
  onRequestTimeout: () => {
@@ -5069,8 +5069,8 @@ function hi() {
5069
5069
  Object.prototype.hasOwnProperty.call(c, x) && this.on(x, c[x]);
5070
5070
  let A = null;
5071
5071
  l.replaces && (A = l.replaces._request.call_id, A += `;to-tag=${l.replaces._to_tag}`, A += `;from-tag=${l.replaces._from_tag}`, A = encodeURIComponent(A));
5072
- const D = `Refer-To: <${h}${A ? `?Replaces=${A}` : ""}>`;
5073
- if (T.push(D), !T.some((x) => x.toLowerCase().startsWith("referred-by:"))) {
5072
+ const U = `Refer-To: <${h}${A ? `?Replaces=${A}` : ""}>`;
5073
+ if (T.push(U), !T.some((x) => x.toLowerCase().startsWith("referred-by:"))) {
5074
5074
  const x = `Referred-By: <${this._session._ua._configuration.uri._scheme}:${this._session._ua._configuration.uri._user}@${this._session._ua._configuration.uri._host}>`;
5075
5075
  T.push(x);
5076
5076
  }
@@ -5150,7 +5150,7 @@ var cs, Bn;
5150
5150
  function il() {
5151
5151
  if (Bn) return cs;
5152
5152
  Bn = 1;
5153
- const y = Ne().EventEmitter, I = nl(), i = ce(), _ = ue(), R = ye(), t = je(), d = fe(), h = ll(), l = Se(), T = oi(), c = ze(), A = ui(), D = ci(), v = fi(), x = hi(), $ = Ie(), C = new i("RTCSession"), w = {
5153
+ const y = Ne().EventEmitter, I = nl(), i = ce(), _ = ue(), R = ye(), t = ze(), d = fe(), h = ll(), l = Se(), T = oi(), c = Ke(), A = ui(), U = ci(), v = fi(), x = hi(), $ = Ie(), C = new i("RTCSession"), b = {
5154
5154
  // RTCSession states.
5155
5155
  STATUS_NULL: 0,
5156
5156
  STATUS_INVITE_SENT: 1,
@@ -5168,10 +5168,10 @@ function il() {
5168
5168
  * Expose C object.
5169
5169
  */
5170
5170
  static get C() {
5171
- return w;
5171
+ return b;
5172
5172
  }
5173
5173
  constructor(o) {
5174
- C.debug("new"), super(), this._id = null, this._ua = o, this._status = w.STATUS_NULL, this._dialog = null, this._earlyDialogs = {}, this._contact = null, this._from_tag = null, this._to_tag = null, this._connection = null, this._connectionPromiseQueue = Promise.resolve(), this._request = null, this._is_canceled = !1, this._cancel_reason = "", this._is_confirmed = !1, this._late_sdp = !1, this._rtcOfferConstraints = null, this._rtcAnswerConstraints = null, this._localMediaStream = null, this._localMediaStreamLocallyGenerated = !1, this._rtcReady = !0, this._iceReady = !1, this._timers = {
5174
+ C.debug("new"), super(), this._id = null, this._ua = o, this._status = b.STATUS_NULL, this._dialog = null, this._earlyDialogs = {}, this._contact = null, this._from_tag = null, this._to_tag = null, this._connection = null, this._connectionPromiseQueue = Promise.resolve(), this._request = null, this._is_canceled = !1, this._cancel_reason = "", this._is_confirmed = !1, this._late_sdp = !1, this._rtcOfferConstraints = null, this._rtcAnswerConstraints = null, this._localMediaStream = null, this._localMediaStreamLocallyGenerated = !1, this._rtcReady = !0, this._iceReady = !1, this._timers = {
5175
5175
  ackTimer: null,
5176
5176
  expiresTimer: null,
5177
5177
  invite2xxTimer: null,
@@ -5192,7 +5192,7 @@ function il() {
5192
5192
  */
5193
5193
  // Expose RTCSession constants as a property of the RTCSession instance.
5194
5194
  get C() {
5195
- return w;
5195
+ return b;
5196
5196
  }
5197
5197
  // Expose session failed/ended causes as a property of the RTCSession instance.
5198
5198
  get causes() {
@@ -5233,11 +5233,11 @@ function il() {
5233
5233
  }
5234
5234
  isInProgress() {
5235
5235
  switch (this._status) {
5236
- case w.STATUS_NULL:
5237
- case w.STATUS_INVITE_SENT:
5238
- case w.STATUS_1XX_RECEIVED:
5239
- case w.STATUS_INVITE_RECEIVED:
5240
- case w.STATUS_WAITING_FOR_ANSWER:
5236
+ case b.STATUS_NULL:
5237
+ case b.STATUS_INVITE_SENT:
5238
+ case b.STATUS_1XX_RECEIVED:
5239
+ case b.STATUS_INVITE_RECEIVED:
5240
+ case b.STATUS_WAITING_FOR_ANSWER:
5241
5241
  return !0;
5242
5242
  default:
5243
5243
  return !1;
@@ -5245,9 +5245,9 @@ function il() {
5245
5245
  }
5246
5246
  isEstablished() {
5247
5247
  switch (this._status) {
5248
- case w.STATUS_ANSWERED:
5249
- case w.STATUS_WAITING_FOR_ACK:
5250
- case w.STATUS_CONFIRMED:
5248
+ case b.STATUS_ANSWERED:
5249
+ case b.STATUS_WAITING_FOR_ACK:
5250
+ case b.STATUS_CONFIRMED:
5251
5251
  return !0;
5252
5252
  default:
5253
5253
  return !1;
@@ -5255,8 +5255,8 @@ function il() {
5255
5255
  }
5256
5256
  isEnded() {
5257
5257
  switch (this._status) {
5258
- case w.STATUS_CANCELED:
5259
- case w.STATUS_TERMINATED:
5258
+ case b.STATUS_CANCELED:
5259
+ case b.STATUS_TERMINATED:
5260
5260
  return !0;
5261
5261
  default:
5262
5262
  return !1;
@@ -5276,13 +5276,13 @@ function il() {
5276
5276
  }
5277
5277
  connect(o, f = {}, g) {
5278
5278
  C.debug("connect()");
5279
- const p = o, S = d.cloneObject(f.eventHandlers), O = d.cloneArray(f.extraHeaders), E = d.cloneObject(f.mediaConstraints, {
5279
+ const p = o, S = d.cloneObject(f.eventHandlers), D = d.cloneArray(f.extraHeaders), E = d.cloneObject(f.mediaConstraints, {
5280
5280
  audio: !0,
5281
5281
  video: !0
5282
- }), b = f.mediaStream || null, U = d.cloneObject(f.pcConfig, { iceServers: [] }), P = f.rtcConstraints || null, K = f.rtcOfferConstraints || null;
5283
- if (this._rtcOfferConstraints = K, this._rtcAnswerConstraints = f.rtcAnswerConstraints || null, this._data = f.data || this._data, o === void 0)
5282
+ }), w = f.mediaStream || null, O = d.cloneObject(f.pcConfig, { iceServers: [] }), P = f.rtcConstraints || null, z = f.rtcOfferConstraints || null;
5283
+ if (this._rtcOfferConstraints = z, this._rtcAnswerConstraints = f.rtcAnswerConstraints || null, this._data = f.data || this._data, o === void 0)
5284
5284
  throw new TypeError("Not enough arguments");
5285
- if (this._status !== w.STATUS_NULL)
5285
+ if (this._status !== b.STATUS_NULL)
5286
5286
  throw new R.InvalidStateError(this._status);
5287
5287
  if (!window.RTCPeerConnection)
5288
5288
  throw new R.NotSupportedError("WebRTC not supported");
@@ -5292,16 +5292,16 @@ function il() {
5292
5292
  for (const de in S)
5293
5293
  Object.prototype.hasOwnProperty.call(S, de) && this.on(de, S[de]);
5294
5294
  this._from_tag = d.newTag();
5295
- const q = f.anonymous || !1, ne = { from_tag: this._from_tag };
5295
+ const q = f.anonymous || !1, te = { from_tag: this._from_tag };
5296
5296
  this._contact = this._ua.contact.toString({
5297
5297
  anonymous: q,
5298
5298
  outbound: !0
5299
- }), q ? (ne.from_display_name = "Anonymous", ne.from_uri = new $("sip", "anonymous", "anonymous.invalid"), O.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), O.push("Privacy: id")) : f.fromUserName && (ne.from_uri = new $("sip", f.fromUserName, this._ua.configuration.uri.host), O.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), f.fromDisplayName && (ne.from_display_name = f.fromDisplayName), O.push(`Contact: ${this._contact}`), O.push("Content-Type: application/sdp"), this._sessionTimers.enabled && O.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new l.InitialOutgoingInviteRequest(
5299
+ }), q ? (te.from_display_name = "Anonymous", te.from_uri = new $("sip", "anonymous", "anonymous.invalid"), D.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), D.push("Privacy: id")) : f.fromUserName && (te.from_uri = new $("sip", f.fromUserName, this._ua.configuration.uri.host), D.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), f.fromDisplayName && (te.from_display_name = f.fromDisplayName), D.push(`Contact: ${this._contact}`), D.push("Content-Type: application/sdp"), this._sessionTimers.enabled && D.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new l.InitialOutgoingInviteRequest(
5300
5300
  o,
5301
5301
  this._ua,
5302
- ne,
5303
- O
5304
- ), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(U, P), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, g && g(this), this._newRTCSession("local", this._request), this._sendInitialRequest(E, K, b);
5302
+ te,
5303
+ D
5304
+ ), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(O, P), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, g && g(this), this._newRTCSession("local", this._request), this._sendInitialRequest(E, z, w);
5305
5305
  }
5306
5306
  init_incoming(o, f) {
5307
5307
  C.debug("init_incoming()");
@@ -5311,34 +5311,34 @@ function il() {
5311
5311
  o.reply(415);
5312
5312
  return;
5313
5313
  }
5314
- if (this._status = w.STATUS_INVITE_RECEIVED, this._from_tag = o.from_tag, this._id = o.call_id + this._from_tag, this._request = o, this._contact = this._ua.contact.toString(), o.hasHeader("expires") && (g = o.getHeader("expires") * 1e3), o.to_tag = d.newTag(), !this._createDialog(o, "UAS", !0)) {
5314
+ if (this._status = b.STATUS_INVITE_RECEIVED, this._from_tag = o.from_tag, this._id = o.call_id + this._from_tag, this._request = o, this._contact = this._ua.contact.toString(), o.hasHeader("expires") && (g = o.getHeader("expires") * 1e3), o.to_tag = d.newTag(), !this._createDialog(o, "UAS", !0)) {
5315
5315
  o.reply(500, "Missing Contact header field");
5316
5316
  return;
5317
5317
  }
5318
- o.body ? this._late_sdp = !1 : this._late_sdp = !0, this._status = w.STATUS_WAITING_FOR_ANSWER, this._timers.userNoAnswerTimer = setTimeout(
5318
+ o.body ? this._late_sdp = !1 : this._late_sdp = !0, this._status = b.STATUS_WAITING_FOR_ANSWER, this._timers.userNoAnswerTimer = setTimeout(
5319
5319
  () => {
5320
5320
  o.reply(408), this._failed("local", null, _.causes.NO_ANSWER);
5321
5321
  },
5322
5322
  this._ua.configuration.no_answer_timeout
5323
5323
  ), g && (this._timers.expiresTimer = setTimeout(
5324
5324
  () => {
5325
- this._status === w.STATUS_WAITING_FOR_ANSWER && (o.reply(487), this._failed("system", null, _.causes.EXPIRES));
5325
+ this._status === b.STATUS_WAITING_FOR_ANSWER && (o.reply(487), this._failed("system", null, _.causes.EXPIRES));
5326
5326
  },
5327
5327
  g
5328
- )), this._direction = "incoming", this._local_identity = o.to, this._remote_identity = o.from, f && f(this), this._newRTCSession("remote", o), this._status !== w.STATUS_TERMINATED && (o.reply(180, null, [`Contact: ${this._contact}`]), this._progress("local", null));
5328
+ )), this._direction = "incoming", this._local_identity = o.to, this._remote_identity = o.from, f && f(this), this._newRTCSession("remote", o), this._status !== b.STATUS_TERMINATED && (o.reply(180, null, [`Contact: ${this._contact}`]), this._progress("local", null));
5329
5329
  }
5330
5330
  /**
5331
5331
  * Answer the call.
5332
5332
  */
5333
5333
  answer(o = {}) {
5334
5334
  C.debug("answer()");
5335
- const f = this._request, g = d.cloneArray(o.extraHeaders), p = d.cloneObject(o.mediaConstraints), S = o.mediaStream || null, O = d.cloneObject(o.pcConfig, { iceServers: [] }), E = o.rtcConstraints || null, b = o.rtcAnswerConstraints || null, U = d.cloneObject(o.rtcOfferConstraints);
5336
- let P, K = !1, q = !1, ne = !1, de = !1;
5337
- if (this._rtcAnswerConstraints = b, this._rtcOfferConstraints = o.rtcOfferConstraints || null, this._data = o.data || this._data, this._direction !== "incoming")
5335
+ const f = this._request, g = d.cloneArray(o.extraHeaders), p = d.cloneObject(o.mediaConstraints), S = o.mediaStream || null, D = d.cloneObject(o.pcConfig, { iceServers: [] }), E = o.rtcConstraints || null, w = o.rtcAnswerConstraints || null, O = d.cloneObject(o.rtcOfferConstraints);
5336
+ let P, z = !1, q = !1, te = !1, de = !1;
5337
+ if (this._rtcAnswerConstraints = w, this._rtcOfferConstraints = o.rtcOfferConstraints || null, this._data = o.data || this._data, this._direction !== "incoming")
5338
5338
  throw new R.NotSupportedError('"answer" not supported for outgoing RTCSession');
5339
- if (this._status !== w.STATUS_WAITING_FOR_ANSWER)
5339
+ if (this._status !== b.STATUS_WAITING_FOR_ANSWER)
5340
5340
  throw new R.InvalidStateError(this._status);
5341
- if (this._sessionTimers.enabled && d.isDecimal(o.sessionTimersExpires) && (o.sessionTimersExpires >= _.MIN_SESSION_EXPIRES ? this._sessionTimers.defaultExpires = o.sessionTimersExpires : this._sessionTimers.defaultExpires = _.SESSION_EXPIRES), this._status = w.STATUS_ANSWERED, !this._createDialog(f, "UAS")) {
5341
+ if (this._sessionTimers.enabled && d.isDecimal(o.sessionTimersExpires) && (o.sessionTimersExpires >= _.MIN_SESSION_EXPIRES ? this._sessionTimers.defaultExpires = o.sessionTimersExpires : this._sessionTimers.defaultExpires = _.SESSION_EXPIRES), this._status = b.STATUS_ANSWERED, !this._createDialog(f, "UAS")) {
5342
5342
  f.reply(500, "Error creating dialog");
5343
5343
  return;
5344
5344
  }
@@ -5346,7 +5346,7 @@ function il() {
5346
5346
  const he = f.parseSDP();
5347
5347
  Array.isArray(he.media) || (he.media = [he.media]);
5348
5348
  for (const X of he.media)
5349
- X.type === "audio" && (K = !0, (!X.direction || X.direction === "sendrecv") && (ne = !0)), X.type === "video" && (q = !0, (!X.direction || X.direction === "sendrecv") && (de = !0));
5349
+ X.type === "audio" && (z = !0, (!X.direction || X.direction === "sendrecv") && (te = !0)), X.type === "video" && (q = !0, (!X.direction || X.direction === "sendrecv") && (de = !0));
5350
5350
  if (S && p.audio === !1) {
5351
5351
  P = S.getAudioTracks();
5352
5352
  for (const X of P)
@@ -5357,15 +5357,15 @@ function il() {
5357
5357
  for (const X of P)
5358
5358
  S.removeTrack(X);
5359
5359
  }
5360
- !S && p.audio === void 0 && (p.audio = ne), !S && p.video === void 0 && (p.video = de), !S && !K && !U.offerToReceiveAudio && (p.audio = !1), !S && !q && !U.offerToReceiveVideo && (p.video = !1), this._createRTCConnection(O, E), Promise.resolve().then(() => {
5360
+ !S && p.audio === void 0 && (p.audio = te), !S && p.video === void 0 && (p.video = de), !S && !z && !O.offerToReceiveAudio && (p.audio = !1), !S && !q && !O.offerToReceiveVideo && (p.video = !1), this._createRTCConnection(D, E), Promise.resolve().then(() => {
5361
5361
  if (S)
5362
5362
  return S;
5363
5363
  if (p.audio || p.video)
5364
5364
  return this._localMediaStreamLocallyGenerated = !0, navigator.mediaDevices.getUserMedia(p).catch((X) => {
5365
- throw this._status === w.STATUS_TERMINATED ? new Error("terminated") : (f.reply(480), this._failed("local", null, _.causes.USER_DENIED_MEDIA_ACCESS), C.warn('emit "getusermediafailed" [error:%o]', X), this.emit("getusermediafailed", X), new Error("getUserMedia() failed"));
5365
+ throw this._status === b.STATUS_TERMINATED ? new Error("terminated") : (f.reply(480), this._failed("local", null, _.causes.USER_DENIED_MEDIA_ACCESS), C.warn('emit "getusermediafailed" [error:%o]', X), this.emit("getusermediafailed", X), new Error("getUserMedia() failed"));
5366
5366
  });
5367
5367
  }).then((X) => {
5368
- if (this._status === w.STATUS_TERMINATED)
5368
+ if (this._status === b.STATUS_TERMINATED)
5369
5369
  throw new Error("terminated");
5370
5370
  this._localMediaStream = X, X && X.getTracks().forEach((_e) => {
5371
5371
  this._connection.addTrack(_e, X);
@@ -5380,15 +5380,15 @@ function il() {
5380
5380
  throw f.reply(488), this._failed("system", null, _.causes.WEBRTC_ERROR), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', Q), this.emit("peerconnection:setremotedescriptionfailed", Q), new Error("peerconnection.setRemoteDescription() failed");
5381
5381
  }), this._connectionPromiseQueue;
5382
5382
  }).then(() => {
5383
- if (this._status === w.STATUS_TERMINATED)
5383
+ if (this._status === b.STATUS_TERMINATED)
5384
5384
  throw new Error("terminated");
5385
5385
  return this._connecting(f), this._late_sdp ? this._createLocalDescription("offer", this._rtcOfferConstraints).catch(() => {
5386
5386
  throw f.reply(500), new Error("_createLocalDescription() failed");
5387
- }) : this._createLocalDescription("answer", b).catch(() => {
5387
+ }) : this._createLocalDescription("answer", w).catch(() => {
5388
5388
  throw f.reply(500), new Error("_createLocalDescription() failed");
5389
5389
  });
5390
5390
  }).then((X) => {
5391
- if (this._status === w.STATUS_TERMINATED)
5391
+ if (this._status === b.STATUS_TERMINATED)
5392
5392
  throw new Error("terminated");
5393
5393
  this._handleSessionTimersInIncomingRequest(f, g), f.reply(
5394
5394
  200,
@@ -5396,14 +5396,14 @@ function il() {
5396
5396
  g,
5397
5397
  X,
5398
5398
  () => {
5399
- this._status = w.STATUS_WAITING_FOR_ACK, this._setInvite2xxTimer(f, X), this._setACKTimer(), this._accepted("local");
5399
+ this._status = b.STATUS_WAITING_FOR_ACK, this._setInvite2xxTimer(f, X), this._setACKTimer(), this._accepted("local");
5400
5400
  },
5401
5401
  () => {
5402
5402
  this._failed("system", null, _.causes.CONNECTION_ERROR);
5403
5403
  }
5404
5404
  );
5405
5405
  }).catch((X) => {
5406
- this._status !== w.STATUS_TERMINATED && (C.warn(`answer() failed: ${X.message}`), this._failed("system", X.message, _.causes.INTERNAL_ERROR));
5406
+ this._status !== b.STATUS_TERMINATED && (C.warn(`answer() failed: ${X.message}`), this._failed("system", X.message, _.causes.INTERNAL_ERROR));
5407
5407
  });
5408
5408
  }
5409
5409
  /**
@@ -5412,42 +5412,42 @@ function il() {
5412
5412
  terminate(o = {}) {
5413
5413
  C.debug("terminate()");
5414
5414
  const f = o.cause || _.causes.BYE, g = d.cloneArray(o.extraHeaders), p = o.body;
5415
- let S, O = o.status_code, E = o.reason_phrase;
5416
- if (this._status === w.STATUS_TERMINATED)
5415
+ let S, D = o.status_code, E = o.reason_phrase;
5416
+ if (this._status === b.STATUS_TERMINATED)
5417
5417
  throw new R.InvalidStateError(this._status);
5418
5418
  switch (this._status) {
5419
5419
  // - UAC -
5420
- case w.STATUS_NULL:
5421
- case w.STATUS_INVITE_SENT:
5422
- case w.STATUS_1XX_RECEIVED:
5423
- if (C.debug("canceling session"), O && (O < 200 || O >= 700))
5424
- throw new TypeError(`Invalid status_code: ${O}`);
5425
- O && (E = E || _.REASON_PHRASE[O] || "", S = `SIP ;cause=${O} ;text="${E}"`), this._status === w.STATUS_NULL || this._status === w.STATUS_INVITE_SENT ? (this._is_canceled = !0, this._cancel_reason = S) : this._status === w.STATUS_1XX_RECEIVED && this._request.cancel(S), this._status = w.STATUS_CANCELED, this._failed("local", null, _.causes.CANCELED);
5420
+ case b.STATUS_NULL:
5421
+ case b.STATUS_INVITE_SENT:
5422
+ case b.STATUS_1XX_RECEIVED:
5423
+ if (C.debug("canceling session"), D && (D < 200 || D >= 700))
5424
+ throw new TypeError(`Invalid status_code: ${D}`);
5425
+ D && (E = E || _.REASON_PHRASE[D] || "", S = `SIP ;cause=${D} ;text="${E}"`), this._status === b.STATUS_NULL || this._status === b.STATUS_INVITE_SENT ? (this._is_canceled = !0, this._cancel_reason = S) : this._status === b.STATUS_1XX_RECEIVED && this._request.cancel(S), this._status = b.STATUS_CANCELED, this._failed("local", null, _.causes.CANCELED);
5426
5426
  break;
5427
5427
  // - UAS -
5428
- case w.STATUS_WAITING_FOR_ANSWER:
5429
- case w.STATUS_ANSWERED:
5430
- if (C.debug("rejecting session"), O = O || 480, O < 300 || O >= 700)
5431
- throw new TypeError(`Invalid status_code: ${O}`);
5432
- this._request.reply(O, E, g, p), this._failed("local", null, _.causes.REJECTED);
5428
+ case b.STATUS_WAITING_FOR_ANSWER:
5429
+ case b.STATUS_ANSWERED:
5430
+ if (C.debug("rejecting session"), D = D || 480, D < 300 || D >= 700)
5431
+ throw new TypeError(`Invalid status_code: ${D}`);
5432
+ this._request.reply(D, E, g, p), this._failed("local", null, _.causes.REJECTED);
5433
5433
  break;
5434
- case w.STATUS_WAITING_FOR_ACK:
5435
- case w.STATUS_CONFIRMED:
5436
- if (C.debug("terminating session"), E = o.reason_phrase || _.REASON_PHRASE[O] || "", O && (O < 200 || O >= 700))
5437
- throw new TypeError(`Invalid status_code: ${O}`);
5438
- if (O && g.push(`Reason: SIP ;cause=${O}; text="${E}"`), this._status === w.STATUS_WAITING_FOR_ACK && this._direction === "incoming" && this._request.server_transaction.state !== t.C.STATUS_TERMINATED) {
5439
- const b = this._dialog;
5440
- this.receiveRequest = ({ method: U }) => {
5441
- U === _.ACK && (this.sendRequest(_.BYE, {
5434
+ case b.STATUS_WAITING_FOR_ACK:
5435
+ case b.STATUS_CONFIRMED:
5436
+ if (C.debug("terminating session"), E = o.reason_phrase || _.REASON_PHRASE[D] || "", D && (D < 200 || D >= 700))
5437
+ throw new TypeError(`Invalid status_code: ${D}`);
5438
+ if (D && g.push(`Reason: SIP ;cause=${D}; text="${E}"`), this._status === b.STATUS_WAITING_FOR_ACK && this._direction === "incoming" && this._request.server_transaction.state !== t.C.STATUS_TERMINATED) {
5439
+ const w = this._dialog;
5440
+ this.receiveRequest = ({ method: O }) => {
5441
+ O === _.ACK && (this.sendRequest(_.BYE, {
5442
5442
  extraHeaders: g,
5443
5443
  body: p
5444
- }), b.terminate());
5444
+ }), w.terminate());
5445
5445
  }, this._request.server_transaction.on("stateChanged", () => {
5446
5446
  this._request.server_transaction.state === t.C.STATUS_TERMINATED && (this.sendRequest(_.BYE, {
5447
5447
  extraHeaders: g,
5448
5448
  body: p
5449
- }), b.terminate());
5450
- }), this._ended("local", null, f), this._dialog = b, this._ua.newDialog(b);
5449
+ }), w.terminate());
5450
+ }), this._ended("local", null, f), this._dialog = w, this._ua.newDialog(w);
5451
5451
  } else
5452
5452
  this.sendRequest(_.BYE, {
5453
5453
  extraHeaders: g,
@@ -5461,7 +5461,7 @@ function il() {
5461
5461
  const S = f.transportType || _.DTMF_TRANSPORT.INFO;
5462
5462
  if (o === void 0)
5463
5463
  throw new TypeError("Not enough arguments");
5464
- if (this._status !== w.STATUS_CONFIRMED && this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_1XX_RECEIVED)
5464
+ if (this._status !== b.STATUS_CONFIRMED && this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_1XX_RECEIVED)
5465
5465
  throw new R.InvalidStateError(this._status);
5466
5466
  if (S !== _.DTMF_TRANSPORT.INFO && S !== _.DTMF_TRANSPORT.RFC2833)
5467
5467
  throw new TypeError(`invalid transportType: ${S}`);
@@ -5480,31 +5480,31 @@ function il() {
5480
5480
  this._tones += o;
5481
5481
  return;
5482
5482
  }
5483
- this._tones = o, O.call(this);
5484
- function O() {
5483
+ this._tones = o, D.call(this);
5484
+ function D() {
5485
5485
  let E;
5486
- if (this._status === w.STATUS_TERMINATED || !this._tones) {
5486
+ if (this._status === b.STATUS_TERMINATED || !this._tones) {
5487
5487
  this._tones = null;
5488
5488
  return;
5489
5489
  }
5490
- const b = this._tones[0];
5491
- if (this._tones = this._tones.substring(1), b === ",")
5490
+ const w = this._tones[0];
5491
+ if (this._tones = this._tones.substring(1), w === ",")
5492
5492
  E = 2e3;
5493
5493
  else {
5494
- const U = new A(this);
5494
+ const O = new A(this);
5495
5495
  f.eventHandlers = {
5496
5496
  onFailed: () => {
5497
5497
  this._tones = null;
5498
5498
  }
5499
- }, U.send(b, f), E = g + p;
5499
+ }, O.send(w, f), E = g + p;
5500
5500
  }
5501
- setTimeout(O.bind(this), E);
5501
+ setTimeout(D.bind(this), E);
5502
5502
  }
5503
5503
  }
5504
5504
  sendInfo(o, f, g = {}) {
5505
- if (C.debug("sendInfo()"), this._status !== w.STATUS_CONFIRMED && this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_1XX_RECEIVED)
5505
+ if (C.debug("sendInfo()"), this._status !== b.STATUS_CONFIRMED && this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_1XX_RECEIVED)
5506
5506
  throw new R.InvalidStateError(this._status);
5507
- new D(this).send(o, f, g);
5507
+ new U(this).send(o, f, g);
5508
5508
  }
5509
5509
  /**
5510
5510
  * Mute
@@ -5532,7 +5532,7 @@ function il() {
5532
5532
  * Hold
5533
5533
  */
5534
5534
  hold(o = {}, f) {
5535
- if (C.debug("hold()"), this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED || this._localHold === !0 || !this.isReadyToReOffer())
5535
+ if (C.debug("hold()"), this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED || this._localHold === !0 || !this.isReadyToReOffer())
5536
5536
  return !1;
5537
5537
  this._localHold = !0, this._onhold("local");
5538
5538
  const g = {
@@ -5557,7 +5557,7 @@ function il() {
5557
5557
  }), !0;
5558
5558
  }
5559
5559
  unhold(o = {}, f) {
5560
- if (C.debug("unhold()"), this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED || this._localHold === !1 || !this.isReadyToReOffer())
5560
+ if (C.debug("unhold()"), this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED || this._localHold === !1 || !this.isReadyToReOffer())
5561
5561
  return !1;
5562
5562
  this._localHold = !1, this._onunhold("local");
5563
5563
  const g = {
@@ -5584,7 +5584,7 @@ function il() {
5584
5584
  renegotiate(o = {}, f) {
5585
5585
  C.debug("renegotiate()");
5586
5586
  const g = o.rtcOfferConstraints || null;
5587
- if (this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED || !this.isReadyToReOffer())
5587
+ if (this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED || !this.isReadyToReOffer())
5588
5588
  return !1;
5589
5589
  const p = {
5590
5590
  succeeded: () => {
@@ -5615,7 +5615,7 @@ function il() {
5615
5615
  refer(o, f) {
5616
5616
  C.debug("refer()");
5617
5617
  const g = o;
5618
- if (this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED)
5618
+ if (this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED)
5619
5619
  return !1;
5620
5620
  if (o = this._ua.normalizeTarget(o), !o)
5621
5621
  throw new TypeError(`Invalid target: ${g}`);
@@ -5649,13 +5649,13 @@ function il() {
5649
5649
  */
5650
5650
  receiveRequest(o) {
5651
5651
  if (C.debug("receiveRequest()"), o.method === _.CANCEL)
5652
- (this._status === w.STATUS_WAITING_FOR_ANSWER || this._status === w.STATUS_ANSWERED) && (this._status = w.STATUS_CANCELED, this._request.reply(487), this._failed("remote", o, _.causes.CANCELED));
5652
+ (this._status === b.STATUS_WAITING_FOR_ANSWER || this._status === b.STATUS_ANSWERED) && (this._status = b.STATUS_CANCELED, this._request.reply(487), this._failed("remote", o, _.causes.CANCELED));
5653
5653
  else
5654
5654
  switch (o.method) {
5655
5655
  case _.ACK:
5656
- if (this._status !== w.STATUS_WAITING_FOR_ACK)
5656
+ if (this._status !== b.STATUS_WAITING_FOR_ACK)
5657
5657
  return;
5658
- if (this._status = w.STATUS_CONFIRMED, clearTimeout(this._timers.ackTimer), clearTimeout(this._timers.invite2xxTimer), this._late_sdp) {
5658
+ if (this._status = b.STATUS_CONFIRMED, clearTimeout(this._timers.ackTimer), clearTimeout(this._timers.invite2xxTimer), this._late_sdp) {
5659
5659
  if (!o.body) {
5660
5660
  this.terminate({
5661
5661
  cause: _.causes.MISSING_SDP,
@@ -5678,26 +5678,26 @@ function il() {
5678
5678
  this._is_confirmed || this._confirmed("remote", o);
5679
5679
  break;
5680
5680
  case _.BYE:
5681
- this._status === w.STATUS_CONFIRMED || this._status === w.STATUS_WAITING_FOR_ACK ? (o.reply(200), this._ended("remote", o, _.causes.BYE)) : this._status === w.STATUS_INVITE_RECEIVED || this._status === w.STATUS_WAITING_FOR_ANSWER ? (o.reply(200), this._request.reply(487, "BYE Received"), this._ended("remote", o, _.causes.BYE)) : o.reply(403, "Wrong Status");
5681
+ this._status === b.STATUS_CONFIRMED || this._status === b.STATUS_WAITING_FOR_ACK ? (o.reply(200), this._ended("remote", o, _.causes.BYE)) : this._status === b.STATUS_INVITE_RECEIVED || this._status === b.STATUS_WAITING_FOR_ANSWER ? (o.reply(200), this._request.reply(487, "BYE Received"), this._ended("remote", o, _.causes.BYE)) : o.reply(403, "Wrong Status");
5682
5682
  break;
5683
5683
  case _.INVITE:
5684
- this._status === w.STATUS_CONFIRMED ? o.hasHeader("replaces") ? this._receiveReplaces(o) : this._receiveReinvite(o) : o.reply(403, "Wrong Status");
5684
+ this._status === b.STATUS_CONFIRMED ? o.hasHeader("replaces") ? this._receiveReplaces(o) : this._receiveReinvite(o) : o.reply(403, "Wrong Status");
5685
5685
  break;
5686
5686
  case _.INFO:
5687
- if (this._status === w.STATUS_1XX_RECEIVED || this._status === w.STATUS_WAITING_FOR_ANSWER || this._status === w.STATUS_ANSWERED || this._status === w.STATUS_WAITING_FOR_ACK || this._status === w.STATUS_CONFIRMED) {
5687
+ if (this._status === b.STATUS_1XX_RECEIVED || this._status === b.STATUS_WAITING_FOR_ANSWER || this._status === b.STATUS_ANSWERED || this._status === b.STATUS_WAITING_FOR_ACK || this._status === b.STATUS_CONFIRMED) {
5688
5688
  const f = o.hasHeader("Content-Type") ? o.getHeader("Content-Type").toLowerCase() : void 0;
5689
- f && f.match(/^application\/dtmf-relay/i) ? new A(this).init_incoming(o) : f !== void 0 ? new D(this).init_incoming(o) : o.reply(415);
5689
+ f && f.match(/^application\/dtmf-relay/i) ? new A(this).init_incoming(o) : f !== void 0 ? new U(this).init_incoming(o) : o.reply(415);
5690
5690
  } else
5691
5691
  o.reply(403, "Wrong Status");
5692
5692
  break;
5693
5693
  case _.UPDATE:
5694
- this._status === w.STATUS_CONFIRMED ? this._receiveUpdate(o) : o.reply(403, "Wrong Status");
5694
+ this._status === b.STATUS_CONFIRMED ? this._receiveUpdate(o) : o.reply(403, "Wrong Status");
5695
5695
  break;
5696
5696
  case _.REFER:
5697
- this._status === w.STATUS_CONFIRMED ? this._receiveRefer(o) : o.reply(403, "Wrong Status");
5697
+ this._status === b.STATUS_CONFIRMED ? this._receiveRefer(o) : o.reply(403, "Wrong Status");
5698
5698
  break;
5699
5699
  case _.NOTIFY:
5700
- this._status === w.STATUS_CONFIRMED ? this._receiveNotify(o) : o.reply(403, "Wrong Status");
5700
+ this._status === b.STATUS_CONFIRMED ? this._receiveNotify(o) : o.reply(403, "Wrong Status");
5701
5701
  break;
5702
5702
  default:
5703
5703
  o.reply(501);
@@ -5707,21 +5707,21 @@ function il() {
5707
5707
  * Session Callbacks
5708
5708
  */
5709
5709
  onTransportError() {
5710
- C.warn("onTransportError()"), this._status !== w.STATUS_TERMINATED && this.terminate({
5710
+ C.warn("onTransportError()"), this._status !== b.STATUS_TERMINATED && this.terminate({
5711
5711
  status_code: 500,
5712
5712
  reason_phrase: _.causes.CONNECTION_ERROR,
5713
5713
  cause: _.causes.CONNECTION_ERROR
5714
5714
  });
5715
5715
  }
5716
5716
  onRequestTimeout() {
5717
- C.warn("onRequestTimeout()"), this._status !== w.STATUS_TERMINATED && this.terminate({
5717
+ C.warn("onRequestTimeout()"), this._status !== b.STATUS_TERMINATED && this.terminate({
5718
5718
  status_code: 408,
5719
5719
  reason_phrase: _.causes.REQUEST_TIMEOUT,
5720
5720
  cause: _.causes.REQUEST_TIMEOUT
5721
5721
  });
5722
5722
  }
5723
5723
  onDialogError() {
5724
- C.warn("onDialogError()"), this._status !== w.STATUS_TERMINATED && this.terminate({
5724
+ C.warn("onDialogError()"), this._status !== b.STATUS_TERMINATED && this.terminate({
5725
5725
  status_code: 500,
5726
5726
  reason_phrase: _.causes.DIALOG_ERROR,
5727
5727
  cause: _.causes.DIALOG_ERROR
@@ -5742,8 +5742,8 @@ function il() {
5742
5742
  return this._rtcReady ? this._dialog ? this._dialog.uac_pending_reply === !0 || this._dialog.uas_pending_reply === !0 ? (C.debug("isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress"), !1) : !0 : (C.debug("isReadyToReOffer() | session not established yet"), !1) : (C.debug("isReadyToReOffer() | internal WebRTC status not ready"), !1);
5743
5743
  }
5744
5744
  _close() {
5745
- if (C.debug("close()"), this._localMediaStream && this._localMediaStreamLocallyGenerated && (C.debug("close() | closing local MediaStream"), d.closeMediaStream(this._localMediaStream)), this._status !== w.STATUS_TERMINATED) {
5746
- if (this._status = w.STATUS_TERMINATED, this._connection)
5745
+ if (C.debug("close()"), this._localMediaStream && this._localMediaStreamLocallyGenerated && (C.debug("close() | closing local MediaStream"), d.closeMediaStream(this._localMediaStream)), this._status !== b.STATUS_TERMINATED) {
5746
+ if (this._status = b.STATUS_TERMINATED, this._connection)
5747
5747
  try {
5748
5748
  this._connection.close();
5749
5749
  } catch (o) {
@@ -5770,7 +5770,7 @@ function il() {
5770
5770
  _setInvite2xxTimer(o, f) {
5771
5771
  let g = h.T1;
5772
5772
  function p() {
5773
- this._status === w.STATUS_WAITING_FOR_ACK && (o.reply(200, null, [`Contact: ${this._contact}`], f), g < h.T2 && (g = g * 2, g > h.T2 && (g = h.T2)), this._timers.invite2xxTimer = setTimeout(
5773
+ this._status === b.STATUS_WAITING_FOR_ACK && (o.reply(200, null, [`Contact: ${this._contact}`], f), g < h.T2 && (g = g * 2, g > h.T2 && (g = h.T2)), this._timers.invite2xxTimer = setTimeout(
5774
5774
  p.bind(this),
5775
5775
  g
5776
5776
  ));
@@ -5787,7 +5787,7 @@ function il() {
5787
5787
  */
5788
5788
  _setACKTimer() {
5789
5789
  this._timers.ackTimer = setTimeout(() => {
5790
- this._status === w.STATUS_WAITING_FOR_ACK && (C.debug("no ACK received, terminating the session"), clearTimeout(this._timers.invite2xxTimer), this.sendRequest(_.BYE), this._ended("remote", null, _.causes.NO_ACK));
5790
+ this._status === b.STATUS_WAITING_FOR_ACK && (C.debug("no ACK received, terminating the session"), clearTimeout(this._timers.invite2xxTimer), this.sendRequest(_.BYE), this._ended("remote", null, _.causes.NO_ACK));
5791
5791
  }, h.TIMER_H);
5792
5792
  }
5793
5793
  _createRTCConnection(o, f) {
@@ -5813,23 +5813,23 @@ function il() {
5813
5813
  return C.debug('emit "sdp"'), this.emit("sdp", S), Promise.resolve(S.sdp);
5814
5814
  }
5815
5815
  return new Promise((S) => {
5816
- let O = !1, E, b;
5816
+ let D = !1, E, w;
5817
5817
  this._iceReady = !1;
5818
- const U = () => {
5819
- if (O)
5818
+ const O = () => {
5819
+ if (D)
5820
5820
  return;
5821
- g.removeEventListener("icecandidate", E), g.removeEventListener("icegatheringstatechange", b), O = !0, this._rtcReady = !0, this._iceReady = !0;
5821
+ g.removeEventListener("icecandidate", E), g.removeEventListener("icegatheringstatechange", w), D = !0, this._rtcReady = !0, this._iceReady = !0;
5822
5822
  const P = { originator: "local", type: o, sdp: g.localDescription.sdp };
5823
5823
  C.debug('emit "sdp"'), this.emit("sdp", P), S(P.sdp);
5824
5824
  };
5825
5825
  g.addEventListener("icecandidate", E = (P) => {
5826
- const K = P.candidate;
5827
- K ? this.emit("icecandidate", {
5828
- candidate: K,
5829
- ready: U
5830
- }) : U();
5831
- }), g.addEventListener("icegatheringstatechange", b = () => {
5832
- g.iceGatheringState === "complete" && U();
5826
+ const z = P.candidate;
5827
+ z ? this.emit("icecandidate", {
5828
+ candidate: z,
5829
+ ready: O
5830
+ }) : O();
5831
+ }), g.addEventListener("icegatheringstatechange", w = () => {
5832
+ g.iceGatheringState === "complete" && O();
5833
5833
  });
5834
5834
  });
5835
5835
  });
@@ -5838,15 +5838,15 @@ function il() {
5838
5838
  * Dialog Management
5839
5839
  */
5840
5840
  _createDialog(o, f, g) {
5841
- const p = f === "UAS" ? o.to_tag : o.from_tag, S = f === "UAS" ? o.from_tag : o.to_tag, O = o.call_id + p + S;
5842
- let E = this._earlyDialogs[O];
5841
+ const p = f === "UAS" ? o.to_tag : o.from_tag, S = f === "UAS" ? o.from_tag : o.to_tag, D = o.call_id + p + S;
5842
+ let E = this._earlyDialogs[D];
5843
5843
  if (g)
5844
- return E ? !0 : (E = new T(this, o, f, T.C.STATUS_EARLY), E.error ? (C.debug(E.error), this._failed("remote", o, _.causes.INTERNAL_ERROR), !1) : (this._earlyDialogs[O] = E, !0));
5844
+ return E ? !0 : (E = new T(this, o, f, T.C.STATUS_EARLY), E.error ? (C.debug(E.error), this._failed("remote", o, _.causes.INTERNAL_ERROR), !1) : (this._earlyDialogs[D] = E, !0));
5845
5845
  {
5846
5846
  if (this._from_tag = o.from_tag, this._to_tag = o.to_tag, E)
5847
- return E.update(o, f), this._dialog = E, delete this._earlyDialogs[O], !0;
5848
- const b = new T(this, o, f);
5849
- return b.error ? (C.debug(b.error), this._failed("remote", o, _.causes.INTERNAL_ERROR), !1) : (this._dialog = b, !0);
5847
+ return E.update(o, f), this._dialog = E, delete this._earlyDialogs[D], !0;
5848
+ const w = new T(this, o, f);
5849
+ return w.error ? (C.debug(w.error), this._failed("remote", o, _.causes.INTERNAL_ERROR), !1) : (this._dialog = w, !0);
5850
5850
  }
5851
5851
  }
5852
5852
  /**
@@ -5862,18 +5862,18 @@ function il() {
5862
5862
  let p = !1;
5863
5863
  function S(E = {}) {
5864
5864
  p = !0;
5865
- const b = E.status_code || 403, U = E.reason_phrase || "", P = d.cloneArray(E.extraHeaders);
5866
- if (this._status !== w.STATUS_CONFIRMED)
5865
+ const w = E.status_code || 403, O = E.reason_phrase || "", P = d.cloneArray(E.extraHeaders);
5866
+ if (this._status !== b.STATUS_CONFIRMED)
5867
5867
  return !1;
5868
- if (b < 300 || b >= 700)
5869
- throw new TypeError(`Invalid status_code: ${b}`);
5870
- o.reply(b, U, P);
5868
+ if (w < 300 || w >= 700)
5869
+ throw new TypeError(`Invalid status_code: ${w}`);
5870
+ o.reply(w, O, P);
5871
5871
  }
5872
5872
  if (this.emit("reinvite", g), p)
5873
5873
  return;
5874
5874
  if (this._late_sdp = !1, !o.body) {
5875
5875
  this._late_sdp = !0, this._remoteHold && (this._remoteHold = !1, this._onunhold("remote")), this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._createLocalDescription("offer", this._rtcOfferConstraints)).then((E) => {
5876
- O.call(this, E);
5876
+ D.call(this, E);
5877
5877
  }).catch(() => {
5878
5878
  o.reply(500);
5879
5879
  });
@@ -5884,19 +5884,19 @@ function il() {
5884
5884
  return;
5885
5885
  }
5886
5886
  this._processInDialogSdpOffer(o).then((E) => {
5887
- this._status !== w.STATUS_TERMINATED && O.call(this, E);
5887
+ this._status !== b.STATUS_TERMINATED && D.call(this, E);
5888
5888
  }).catch((E) => {
5889
5889
  C.warn(E);
5890
5890
  });
5891
- function O(E) {
5892
- const b = [`Contact: ${this._contact}`];
5893
- this._handleSessionTimersInIncomingRequest(o, b), this._late_sdp && (E = this._mangleOffer(E)), o.reply(
5891
+ function D(E) {
5892
+ const w = [`Contact: ${this._contact}`];
5893
+ this._handleSessionTimersInIncomingRequest(o, w), this._late_sdp && (E = this._mangleOffer(E)), o.reply(
5894
5894
  200,
5895
5895
  null,
5896
- b,
5896
+ w,
5897
5897
  E,
5898
5898
  () => {
5899
- this._status = w.STATUS_WAITING_FOR_ACK, this._setInvite2xxTimer(o, E), this._setACKTimer();
5899
+ this._status = b.STATUS_WAITING_FOR_ACK, this._setInvite2xxTimer(o, E), this._setACKTimer();
5900
5900
  }
5901
5901
  ), typeof g.callback == "function" && g.callback();
5902
5902
  }
@@ -5914,17 +5914,17 @@ function il() {
5914
5914
  let p = !1;
5915
5915
  function S(E = {}) {
5916
5916
  p = !0;
5917
- const b = E.status_code || 403, U = E.reason_phrase || "", P = d.cloneArray(E.extraHeaders);
5918
- if (this._status !== w.STATUS_CONFIRMED)
5917
+ const w = E.status_code || 403, O = E.reason_phrase || "", P = d.cloneArray(E.extraHeaders);
5918
+ if (this._status !== b.STATUS_CONFIRMED)
5919
5919
  return !1;
5920
- if (b < 300 || b >= 700)
5921
- throw new TypeError(`Invalid status_code: ${b}`);
5922
- o.reply(b, U, P);
5920
+ if (w < 300 || w >= 700)
5921
+ throw new TypeError(`Invalid status_code: ${w}`);
5922
+ o.reply(w, O, P);
5923
5923
  }
5924
5924
  if (this.emit("update", g), p)
5925
5925
  return;
5926
5926
  if (!o.body) {
5927
- O.call(this, null);
5927
+ D.call(this, null);
5928
5928
  return;
5929
5929
  }
5930
5930
  if (f !== "application/sdp") {
@@ -5932,23 +5932,23 @@ function il() {
5932
5932
  return;
5933
5933
  }
5934
5934
  this._processInDialogSdpOffer(o).then((E) => {
5935
- this._status !== w.STATUS_TERMINATED && O.call(this, E);
5935
+ this._status !== b.STATUS_TERMINATED && D.call(this, E);
5936
5936
  }).catch((E) => {
5937
5937
  C.warn(E);
5938
5938
  });
5939
- function O(E) {
5940
- const b = [`Contact: ${this._contact}`];
5941
- this._handleSessionTimersInIncomingRequest(o, b), o.reply(200, null, b, E), typeof g.callback == "function" && g.callback();
5939
+ function D(E) {
5940
+ const w = [`Contact: ${this._contact}`];
5941
+ this._handleSessionTimersInIncomingRequest(o, w), o.reply(200, null, w, E), typeof g.callback == "function" && g.callback();
5942
5942
  }
5943
5943
  }
5944
5944
  _processInDialogSdpOffer(o) {
5945
5945
  C.debug("_processInDialogSdpOffer()");
5946
5946
  const f = o.parseSDP();
5947
5947
  let g = !1;
5948
- for (const O of f.media) {
5949
- if (F.indexOf(O.type) === -1)
5948
+ for (const D of f.media) {
5949
+ if (F.indexOf(D.type) === -1)
5950
5950
  continue;
5951
- const E = O.direction || f.direction || "sendrecv";
5951
+ const E = D.direction || f.direction || "sendrecv";
5952
5952
  if (E === "sendonly" || E === "inactive")
5953
5953
  g = !0;
5954
5954
  else {
@@ -5960,23 +5960,23 @@ function il() {
5960
5960
  C.debug('emit "sdp"'), this.emit("sdp", p);
5961
5961
  const S = new RTCSessionDescription({ type: "offer", sdp: p.sdp });
5962
5962
  return this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => {
5963
- if (this._status === w.STATUS_TERMINATED)
5963
+ if (this._status === b.STATUS_TERMINATED)
5964
5964
  throw new Error("terminated");
5965
- return this._connection.setRemoteDescription(S).catch((O) => {
5966
- throw o.reply(488), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', O), this.emit("peerconnection:setremotedescriptionfailed", O), O;
5965
+ return this._connection.setRemoteDescription(S).catch((D) => {
5966
+ throw o.reply(488), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', D), this.emit("peerconnection:setremotedescriptionfailed", D), D;
5967
5967
  });
5968
5968
  }).then(() => {
5969
- if (this._status === w.STATUS_TERMINATED)
5969
+ if (this._status === b.STATUS_TERMINATED)
5970
5970
  throw new Error("terminated");
5971
5971
  this._remoteHold === !0 && g === !1 ? (this._remoteHold = !1, this._onunhold("remote")) : this._remoteHold === !1 && g === !0 && (this._remoteHold = !0, this._onhold("remote"));
5972
5972
  }).then(() => {
5973
- if (this._status === w.STATUS_TERMINATED)
5973
+ if (this._status === b.STATUS_TERMINATED)
5974
5974
  throw new Error("terminated");
5975
- return this._createLocalDescription("answer", this._rtcAnswerConstraints).catch((O) => {
5976
- throw o.reply(500), C.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]', O), O;
5975
+ return this._createLocalDescription("answer", this._rtcAnswerConstraints).catch((D) => {
5976
+ throw o.reply(500), C.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]', D), D;
5977
5977
  });
5978
- }).catch((O) => {
5979
- C.warn("_processInDialogSdpOffer() failed [error: %o]", O);
5978
+ }).catch((D) => {
5979
+ C.warn("_processInDialogSdpOffer() failed [error: %o]", D);
5980
5980
  }), this._connectionPromiseQueue;
5981
5981
  }
5982
5982
  /**
@@ -5995,28 +5995,28 @@ function il() {
5995
5995
  const f = new v(this, o.cseq);
5996
5996
  C.debug('emit "refer"'), this.emit("refer", {
5997
5997
  request: o,
5998
- accept: (S, O) => {
5999
- g.call(this, S, O);
5998
+ accept: (S, D) => {
5999
+ g.call(this, S, D);
6000
6000
  },
6001
6001
  reject: () => {
6002
6002
  p.call(this);
6003
6003
  }
6004
6004
  });
6005
- function g(S, O = {}) {
6006
- if (S = typeof S == "function" ? S : null, this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED)
6005
+ function g(S, D = {}) {
6006
+ if (S = typeof S == "function" ? S : null, this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED)
6007
6007
  return !1;
6008
6008
  const E = new As(this._ua);
6009
- if (E.on("progress", ({ response: b }) => {
6010
- f.notify(b.status_code, b.reason_phrase);
6011
- }), E.on("accepted", ({ response: b }) => {
6012
- f.notify(b.status_code, b.reason_phrase);
6013
- }), E.on("_failed", ({ message: b, cause: U }) => {
6014
- b ? f.notify(b.status_code, b.reason_phrase) : f.notify(487, U);
6009
+ if (E.on("progress", ({ response: w }) => {
6010
+ f.notify(w.status_code, w.reason_phrase);
6011
+ }), E.on("accepted", ({ response: w }) => {
6012
+ f.notify(w.status_code, w.reason_phrase);
6013
+ }), E.on("_failed", ({ message: w, cause: O }) => {
6014
+ w ? f.notify(w.status_code, w.reason_phrase) : f.notify(487, O);
6015
6015
  }), o.refer_to.uri.hasHeader("replaces")) {
6016
- const b = decodeURIComponent(o.refer_to.uri.getHeader("replaces"));
6017
- O.extraHeaders = d.cloneArray(O.extraHeaders), O.extraHeaders.push(`Replaces: ${b}`);
6016
+ const w = decodeURIComponent(o.refer_to.uri.getHeader("replaces"));
6017
+ D.extraHeaders = d.cloneArray(D.extraHeaders), D.extraHeaders.push(`Replaces: ${w}`);
6018
6018
  }
6019
- E.connect(o.refer_to.uri.toAor(), O, S);
6019
+ E.connect(o.refer_to.uri.toAor(), D, S);
6020
6020
  }
6021
6021
  function p() {
6022
6022
  f.notify(603);
@@ -6054,7 +6054,7 @@ function il() {
6054
6054
  _receiveReplaces(o) {
6055
6055
  C.debug("receiveReplaces()");
6056
6056
  function f(p) {
6057
- if (this._status !== w.STATUS_WAITING_FOR_ACK && this._status !== w.STATUS_CONFIRMED)
6057
+ if (this._status !== b.STATUS_WAITING_FOR_ACK && this._status !== b.STATUS_CONFIRMED)
6058
6058
  return !1;
6059
6059
  const S = new As(this._ua);
6060
6060
  S.on("confirmed", () => {
@@ -6098,24 +6098,24 @@ function il() {
6098
6098
  return g;
6099
6099
  if (o.audio || o.video)
6100
6100
  return this._localMediaStreamLocallyGenerated = !0, navigator.mediaDevices.getUserMedia(o).catch((S) => {
6101
- throw this._status === w.STATUS_TERMINATED ? new Error("terminated") : (this._failed("local", null, _.causes.USER_DENIED_MEDIA_ACCESS), C.warn('emit "getusermediafailed" [error:%o]', S), this.emit("getusermediafailed", S), S);
6101
+ throw this._status === b.STATUS_TERMINATED ? new Error("terminated") : (this._failed("local", null, _.causes.USER_DENIED_MEDIA_ACCESS), C.warn('emit "getusermediafailed" [error:%o]', S), this.emit("getusermediafailed", S), S);
6102
6102
  });
6103
6103
  }).then((S) => {
6104
- if (this._status === w.STATUS_TERMINATED)
6104
+ if (this._status === b.STATUS_TERMINATED)
6105
6105
  throw new Error("terminated");
6106
- return this._localMediaStream = S, S && S.getTracks().forEach((O) => {
6107
- this._connection.addTrack(O, S);
6108
- }), this._connecting(this._request), this._createLocalDescription("offer", f).catch((O) => {
6109
- throw this._failed("local", null, _.causes.WEBRTC_ERROR), O;
6106
+ return this._localMediaStream = S, S && S.getTracks().forEach((D) => {
6107
+ this._connection.addTrack(D, S);
6108
+ }), this._connecting(this._request), this._createLocalDescription("offer", f).catch((D) => {
6109
+ throw this._failed("local", null, _.causes.WEBRTC_ERROR), D;
6110
6110
  });
6111
6111
  }).then((S) => {
6112
- if (this._is_canceled || this._status === w.STATUS_TERMINATED)
6112
+ if (this._is_canceled || this._status === b.STATUS_TERMINATED)
6113
6113
  throw new Error("terminated");
6114
- this._request.body = S, this._status = w.STATUS_INVITE_SENT, C.debug('emit "sending" [request:%o]', this._request), this.emit("sending", {
6114
+ this._request.body = S, this._status = b.STATUS_INVITE_SENT, C.debug('emit "sending" [request:%o]', this._request), this.emit("sending", {
6115
6115
  request: this._request
6116
6116
  }), p.send();
6117
6117
  }).catch((S) => {
6118
- this._status !== w.STATUS_TERMINATED && C.warn(S);
6118
+ this._status !== b.STATUS_TERMINATED && C.warn(S);
6119
6119
  });
6120
6120
  }
6121
6121
  /**
@@ -6150,10 +6150,10 @@ function il() {
6150
6150
  o.status_code >= 100 && o.status_code < 200 ? this._request.cancel(this._cancel_reason) : o.status_code >= 200 && o.status_code < 299 && this._acceptAndTerminate(o);
6151
6151
  return;
6152
6152
  }
6153
- if (!(this._status !== w.STATUS_INVITE_SENT && this._status !== w.STATUS_1XX_RECEIVED))
6153
+ if (!(this._status !== b.STATUS_INVITE_SENT && this._status !== b.STATUS_1XX_RECEIVED))
6154
6154
  switch (!0) {
6155
6155
  case /^100$/.test(o.status_code):
6156
- this._status = w.STATUS_1XX_RECEIVED;
6156
+ this._status = b.STATUS_1XX_RECEIVED;
6157
6157
  break;
6158
6158
  case /^1[0-9]{2}$/.test(o.status_code): {
6159
6159
  if (!o.to_tag) {
@@ -6162,7 +6162,7 @@ function il() {
6162
6162
  }
6163
6163
  if (o.hasHeader("contact") && !this._createDialog(o, "UAC", !0))
6164
6164
  break;
6165
- if (this._status = w.STATUS_1XX_RECEIVED, !o.body) {
6165
+ if (this._status = b.STATUS_1XX_RECEIVED, !o.body) {
6166
6166
  this._progress("remote", o);
6167
6167
  break;
6168
6168
  }
@@ -6175,7 +6175,7 @@ function il() {
6175
6175
  break;
6176
6176
  }
6177
6177
  case /^2[0-9]{2}$/.test(o.status_code): {
6178
- if (this._status = w.STATUS_CONFIRMED, !o.body) {
6178
+ if (this._status = b.STATUS_CONFIRMED, !o.body) {
6179
6179
  this._acceptAndTerminate(o, 400, _.causes.MISSING_SDP), this._failed("remote", o, _.causes.BAD_MEDIA_DESCRIPTION);
6180
6180
  break;
6181
6181
  }
@@ -6211,15 +6211,15 @@ function il() {
6211
6211
  C.debug("sendReinvite()");
6212
6212
  const f = d.cloneArray(o.extraHeaders), g = d.cloneObject(o.eventHandlers), p = o.rtcOfferConstraints || this._rtcOfferConstraints || null;
6213
6213
  let S = !1;
6214
- f.push(`Contact: ${this._contact}`), f.push("Content-Type: application/sdp"), this._sessionTimers.running && f.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher ? "uac" : "uas"}`), this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._createLocalDescription("offer", p)).then((b) => {
6215
- b = this._mangleOffer(b);
6216
- const U = { originator: "local", type: "offer", sdp: b };
6217
- C.debug('emit "sdp"'), this.emit("sdp", U), this.sendRequest(_.INVITE, {
6214
+ f.push(`Contact: ${this._contact}`), f.push("Content-Type: application/sdp"), this._sessionTimers.running && f.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher ? "uac" : "uas"}`), this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._createLocalDescription("offer", p)).then((w) => {
6215
+ w = this._mangleOffer(w);
6216
+ const O = { originator: "local", type: "offer", sdp: w };
6217
+ C.debug('emit "sdp"'), this.emit("sdp", O), this.sendRequest(_.INVITE, {
6218
6218
  extraHeaders: f,
6219
- body: b,
6219
+ body: w,
6220
6220
  eventHandlers: {
6221
6221
  onSuccessResponse: (P) => {
6222
- O.call(this, P), S = !0;
6222
+ D.call(this, P), S = !0;
6223
6223
  },
6224
6224
  onErrorResponse: (P) => {
6225
6225
  E.call(this, P);
@@ -6238,11 +6238,11 @@ function il() {
6238
6238
  }).catch(() => {
6239
6239
  E();
6240
6240
  });
6241
- function O(b) {
6242
- if (this._status === w.STATUS_TERMINATED || (this.sendRequest(_.ACK), S))
6241
+ function D(w) {
6242
+ if (this._status === b.STATUS_TERMINATED || (this.sendRequest(_.ACK), S))
6243
6243
  return;
6244
- if (this._handleSessionTimersInIncomingResponse(b), b.body) {
6245
- if (!b.hasHeader("Content-Type") || b.getHeader("Content-Type").toLowerCase() !== "application/sdp") {
6244
+ if (this._handleSessionTimersInIncomingResponse(w), w.body) {
6245
+ if (!w.hasHeader("Content-Type") || w.getHeader("Content-Type").toLowerCase() !== "application/sdp") {
6246
6246
  E.call(this);
6247
6247
  return;
6248
6248
  }
@@ -6250,17 +6250,17 @@ function il() {
6250
6250
  E.call(this);
6251
6251
  return;
6252
6252
  }
6253
- const U = { originator: "remote", type: "answer", sdp: b.body };
6254
- C.debug('emit "sdp"'), this.emit("sdp", U);
6255
- const P = new RTCSessionDescription({ type: "answer", sdp: U.sdp });
6253
+ const O = { originator: "remote", type: "answer", sdp: w.body };
6254
+ C.debug('emit "sdp"'), this.emit("sdp", O);
6255
+ const P = new RTCSessionDescription({ type: "answer", sdp: O.sdp });
6256
6256
  this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._connection.setRemoteDescription(P)).then(() => {
6257
- g.succeeded && g.succeeded(b);
6258
- }).catch((K) => {
6259
- E.call(this), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', K), this.emit("peerconnection:setremotedescriptionfailed", K);
6257
+ g.succeeded && g.succeeded(w);
6258
+ }).catch((z) => {
6259
+ E.call(this), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', z), this.emit("peerconnection:setremotedescriptionfailed", z);
6260
6260
  });
6261
6261
  }
6262
- function E(b) {
6263
- g.failed && g.failed(b);
6262
+ function E(w) {
6263
+ g.failed && g.failed(w);
6264
6264
  }
6265
6265
  }
6266
6266
  /**
@@ -6269,19 +6269,19 @@ function il() {
6269
6269
  _sendUpdate(o = {}) {
6270
6270
  C.debug("sendUpdate()");
6271
6271
  const f = d.cloneArray(o.extraHeaders), g = d.cloneObject(o.eventHandlers), p = o.rtcOfferConstraints || this._rtcOfferConstraints || null, S = o.sdpOffer || !1;
6272
- let O = !1;
6273
- f.push(`Contact: ${this._contact}`), this._sessionTimers.running && f.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher ? "uac" : "uas"}`), S ? (f.push("Content-Type: application/sdp"), this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._createLocalDescription("offer", p)).then((U) => {
6274
- U = this._mangleOffer(U);
6275
- const P = { originator: "local", type: "offer", sdp: U };
6272
+ let D = !1;
6273
+ f.push(`Contact: ${this._contact}`), this._sessionTimers.running && f.push(`Session-Expires: ${this._sessionTimers.currentExpires};refresher=${this._sessionTimers.refresher ? "uac" : "uas"}`), S ? (f.push("Content-Type: application/sdp"), this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._createLocalDescription("offer", p)).then((O) => {
6274
+ O = this._mangleOffer(O);
6275
+ const P = { originator: "local", type: "offer", sdp: O };
6276
6276
  C.debug('emit "sdp"'), this.emit("sdp", P), this.sendRequest(_.UPDATE, {
6277
6277
  extraHeaders: f,
6278
- body: U,
6278
+ body: O,
6279
6279
  eventHandlers: {
6280
- onSuccessResponse: (K) => {
6281
- E.call(this, K), O = !0;
6280
+ onSuccessResponse: (z) => {
6281
+ E.call(this, z), D = !0;
6282
6282
  },
6283
- onErrorResponse: (K) => {
6284
- b.call(this, K);
6283
+ onErrorResponse: (z) => {
6284
+ w.call(this, z);
6285
6285
  },
6286
6286
  onTransportError: () => {
6287
6287
  this.onTransportError();
@@ -6295,15 +6295,15 @@ function il() {
6295
6295
  }
6296
6296
  });
6297
6297
  }).catch(() => {
6298
- b.call(this);
6298
+ w.call(this);
6299
6299
  })) : this.sendRequest(_.UPDATE, {
6300
6300
  extraHeaders: f,
6301
6301
  eventHandlers: {
6302
- onSuccessResponse: (U) => {
6303
- E.call(this, U);
6302
+ onSuccessResponse: (O) => {
6303
+ E.call(this, O);
6304
6304
  },
6305
- onErrorResponse: (U) => {
6306
- b.call(this, U);
6305
+ onErrorResponse: (O) => {
6306
+ w.call(this, O);
6307
6307
  },
6308
6308
  onTransportError: () => {
6309
6309
  this.onTransportError();
@@ -6316,31 +6316,31 @@ function il() {
6316
6316
  }
6317
6317
  }
6318
6318
  });
6319
- function E(U) {
6320
- if (this._status !== w.STATUS_TERMINATED && !O)
6321
- if (this._handleSessionTimersInIncomingResponse(U), S) {
6322
- if (U.body) {
6323
- if (!U.hasHeader("Content-Type") || U.getHeader("Content-Type").toLowerCase() !== "application/sdp") {
6324
- b.call(this);
6319
+ function E(O) {
6320
+ if (this._status !== b.STATUS_TERMINATED && !D)
6321
+ if (this._handleSessionTimersInIncomingResponse(O), S) {
6322
+ if (O.body) {
6323
+ if (!O.hasHeader("Content-Type") || O.getHeader("Content-Type").toLowerCase() !== "application/sdp") {
6324
+ w.call(this);
6325
6325
  return;
6326
6326
  }
6327
6327
  } else {
6328
- b.call(this);
6328
+ w.call(this);
6329
6329
  return;
6330
6330
  }
6331
- const P = { originator: "remote", type: "answer", sdp: U.body };
6331
+ const P = { originator: "remote", type: "answer", sdp: O.body };
6332
6332
  C.debug('emit "sdp"'), this.emit("sdp", P);
6333
- const K = new RTCSessionDescription({ type: "answer", sdp: P.sdp });
6334
- this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._connection.setRemoteDescription(K)).then(() => {
6335
- g.succeeded && g.succeeded(U);
6333
+ const z = new RTCSessionDescription({ type: "answer", sdp: P.sdp });
6334
+ this._connectionPromiseQueue = this._connectionPromiseQueue.then(() => this._connection.setRemoteDescription(z)).then(() => {
6335
+ g.succeeded && g.succeeded(O);
6336
6336
  }).catch((q) => {
6337
- b.call(this), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', q), this.emit("peerconnection:setremotedescriptionfailed", q);
6337
+ w.call(this), C.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', q), this.emit("peerconnection:setremotedescriptionfailed", q);
6338
6338
  });
6339
6339
  } else
6340
- g.succeeded && g.succeeded(U);
6340
+ g.succeeded && g.succeeded(O);
6341
6341
  }
6342
- function b(U) {
6343
- g.failed && g.failed(U);
6342
+ function w(O) {
6343
+ g.failed && g.failed(O);
6344
6344
  }
6345
6345
  }
6346
6346
  _acceptAndTerminate(o, f, g) {
@@ -6348,7 +6348,7 @@ function il() {
6348
6348
  const p = [];
6349
6349
  f && (g = g || _.REASON_PHRASE[f] || "", p.push(`Reason: SIP ;cause=${f}; text="${g}"`)), (this._dialog || this._createDialog(o, "UAC")) && (this.sendRequest(_.ACK), this.sendRequest(_.BYE, {
6350
6350
  extraHeaders: p
6351
- })), this._status = w.STATUS_TERMINATED;
6351
+ })), this._status = b.STATUS_TERMINATED;
6352
6352
  }
6353
6353
  /**
6354
6354
  * Correctly set the SDP direction attributes if the call is on local hold
@@ -6399,9 +6399,9 @@ function il() {
6399
6399
  _runSessionTimer() {
6400
6400
  const o = this._sessionTimers.currentExpires;
6401
6401
  this._sessionTimers.running = !0, clearTimeout(this._sessionTimers.timer), this._sessionTimers.refresher ? this._sessionTimers.timer = setTimeout(() => {
6402
- this._status !== w.STATUS_TERMINATED && this.isReadyToReOffer() && (C.debug("runSessionTimer() | sending session refresh request"), this._sessionTimers.refreshMethod === _.UPDATE ? this._sendUpdate() : this._sendReinvite());
6402
+ this._status !== b.STATUS_TERMINATED && this.isReadyToReOffer() && (C.debug("runSessionTimer() | sending session refresh request"), this._sessionTimers.refreshMethod === _.UPDATE ? this._sendUpdate() : this._sendReinvite());
6403
6403
  }, o * 500) : this._sessionTimers.timer = setTimeout(() => {
6404
- this._status !== w.STATUS_TERMINATED && (C.warn("runSessionTimer() | timer expired, terminating the session"), this.terminate({
6404
+ this._status !== b.STATUS_TERMINATED && (C.warn("runSessionTimer() | timer expired, terminating the session"), this.terminate({
6405
6405
  cause: _.causes.REQUEST_TIMEOUT,
6406
6406
  status_code: 408,
6407
6407
  reason_phrase: "Session Timer Expired"
@@ -6494,7 +6494,7 @@ var fs, Wn;
6494
6494
  function di() {
6495
6495
  if (Wn) return fs;
6496
6496
  Wn = 1;
6497
- const y = Ne().EventEmitter, I = ce(), i = ue(), _ = Se(), R = fe(), t = ze(), d = ye(), h = Ie(), l = new I("Message");
6497
+ const y = Ne().EventEmitter, I = ce(), i = ue(), _ = Se(), R = fe(), t = Ke(), d = ye(), h = Ie(), l = new I("Message");
6498
6498
  return fs = class extends y {
6499
6499
  constructor(c) {
6500
6500
  super(), this._ua = c, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
@@ -6508,21 +6508,21 @@ function di() {
6508
6508
  get remote_identity() {
6509
6509
  return this._remote_identity;
6510
6510
  }
6511
- send(c, A, D = {}) {
6511
+ send(c, A, U = {}) {
6512
6512
  const v = c;
6513
6513
  if (c === void 0 || A === void 0)
6514
6514
  throw new TypeError("Not enough arguments");
6515
6515
  if (c = this._ua.normalizeTarget(c), !c)
6516
6516
  throw new TypeError(`Invalid target: ${v}`);
6517
- const x = R.cloneArray(D.extraHeaders), $ = R.cloneObject(D.eventHandlers), C = D.contentType || "text/plain", w = {};
6518
- D.fromUserName && (w.from_uri = new h("sip", D.fromUserName, this._ua.configuration.uri.host), x.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), D.fromDisplayName && (w.from_display_name = D.fromDisplayName);
6517
+ const x = R.cloneArray(U.extraHeaders), $ = R.cloneObject(U.eventHandlers), C = U.contentType || "text/plain", b = {};
6518
+ U.fromUserName && (b.from_uri = new h("sip", U.fromUserName, this._ua.configuration.uri.host), x.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), U.fromDisplayName && (b.from_display_name = U.fromDisplayName);
6519
6519
  for (const H in $)
6520
6520
  Object.prototype.hasOwnProperty.call($, H) && this.on(H, $[H]);
6521
6521
  x.push(`Content-Type: ${C}`), this._request = new _.OutgoingRequest(
6522
6522
  i.MESSAGE,
6523
6523
  c,
6524
6524
  this._ua,
6525
- w,
6525
+ b,
6526
6526
  x
6527
6527
  ), A && (this._request.body = A);
6528
6528
  const F = new t(this._ua, this._request, {
@@ -6546,26 +6546,26 @@ function di() {
6546
6546
  * Only valid for incoming Messages
6547
6547
  */
6548
6548
  accept(c = {}) {
6549
- const A = R.cloneArray(c.extraHeaders), D = c.body;
6549
+ const A = R.cloneArray(c.extraHeaders), U = c.body;
6550
6550
  if (this._direction !== "incoming")
6551
6551
  throw new d.NotSupportedError('"accept" not supported for outgoing Message');
6552
6552
  if (this._is_replied)
6553
6553
  throw new Error("incoming Message already replied");
6554
- this._is_replied = !0, this._request.reply(200, null, A, D);
6554
+ this._is_replied = !0, this._request.reply(200, null, A, U);
6555
6555
  }
6556
6556
  /**
6557
6557
  * Reject the incoming Message
6558
6558
  * Only valid for incoming Messages
6559
6559
  */
6560
6560
  reject(c = {}) {
6561
- const A = c.status_code || 480, D = c.reason_phrase, v = R.cloneArray(c.extraHeaders), x = c.body;
6561
+ const A = c.status_code || 480, U = c.reason_phrase, v = R.cloneArray(c.extraHeaders), x = c.body;
6562
6562
  if (this._direction !== "incoming")
6563
6563
  throw new d.NotSupportedError('"reject" not supported for outgoing Message');
6564
6564
  if (this._is_replied)
6565
6565
  throw new Error("incoming Message already replied");
6566
6566
  if (A < 300 || A >= 700)
6567
6567
  throw new TypeError(`Invalid status_code: ${A}`);
6568
- this._is_replied = !0, this._request.reply(A, D, v, x);
6568
+ this._is_replied = !0, this._request.reply(A, U, v, x);
6569
6569
  }
6570
6570
  _receiveResponse(c) {
6571
6571
  if (!this._closed)
@@ -6601,11 +6601,11 @@ function di() {
6601
6601
  request: A
6602
6602
  });
6603
6603
  }
6604
- _failed(c, A, D) {
6604
+ _failed(c, A, U) {
6605
6605
  l.debug("MESSAGE failed"), this._close(), l.debug('emit "failed"'), this.emit("failed", {
6606
6606
  originator: c,
6607
6607
  response: A || null,
6608
- cause: D
6608
+ cause: U
6609
6609
  });
6610
6610
  }
6611
6611
  _succeeded(c, A) {
@@ -6620,7 +6620,7 @@ var hs, Vn;
6620
6620
  function _i() {
6621
6621
  if (Vn) return hs;
6622
6622
  Vn = 1;
6623
- const y = Ne().EventEmitter, I = ce(), i = ue(), _ = Se(), R = fe(), t = ze(), d = ye(), h = new I("Options");
6623
+ const y = Ne().EventEmitter, I = ce(), i = ue(), _ = Se(), R = fe(), t = Ke(), d = ye(), h = new I("Options");
6624
6624
  return hs = class extends y {
6625
6625
  constructor(T) {
6626
6626
  super(), this._ua = T, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
@@ -6635,14 +6635,14 @@ function _i() {
6635
6635
  return this._remote_identity;
6636
6636
  }
6637
6637
  send(T, c, A = {}) {
6638
- const D = T;
6638
+ const U = T;
6639
6639
  if (T === void 0)
6640
6640
  throw new TypeError("A target is required for OPTIONS");
6641
6641
  if (T = this._ua.normalizeTarget(T), !T)
6642
- throw new TypeError(`Invalid target: ${D}`);
6642
+ throw new TypeError(`Invalid target: ${U}`);
6643
6643
  const v = R.cloneArray(A.extraHeaders), x = R.cloneObject(A.eventHandlers), $ = A.contentType || "application/sdp";
6644
- for (const w in x)
6645
- Object.prototype.hasOwnProperty.call(x, w) && this.on(w, x[w]);
6644
+ for (const b in x)
6645
+ Object.prototype.hasOwnProperty.call(x, b) && this.on(b, x[b]);
6646
6646
  v.push(`Content-Type: ${$}`), this._request = new _.OutgoingRequest(
6647
6647
  i.OPTIONS,
6648
6648
  T,
@@ -6657,8 +6657,8 @@ function _i() {
6657
6657
  onTransportError: () => {
6658
6658
  this._onTransportError();
6659
6659
  },
6660
- onReceiveResponse: (w) => {
6661
- this._receiveResponse(w);
6660
+ onReceiveResponse: (b) => {
6661
+ this._receiveResponse(b);
6662
6662
  }
6663
6663
  });
6664
6664
  this._newOptions("local", this._request), C.send();
@@ -6683,14 +6683,14 @@ function _i() {
6683
6683
  * Only valid for incoming Options
6684
6684
  */
6685
6685
  reject(T = {}) {
6686
- const c = T.status_code || 480, A = T.reason_phrase, D = R.cloneArray(T.extraHeaders), v = T.body;
6686
+ const c = T.status_code || 480, A = T.reason_phrase, U = R.cloneArray(T.extraHeaders), v = T.body;
6687
6687
  if (this._direction !== "incoming")
6688
6688
  throw new d.NotSupportedError('"reject" not supported for outgoing Options');
6689
6689
  if (this._is_replied)
6690
6690
  throw new Error("incoming Options already replied");
6691
6691
  if (c < 300 || c >= 700)
6692
6692
  throw new TypeError(`Invalid status_code: ${c}`);
6693
- this._is_replied = !0, this._request.reply(c, A, D, v);
6693
+ this._is_replied = !0, this._request.reply(c, A, U, v);
6694
6694
  }
6695
6695
  _receiveResponse(T) {
6696
6696
  if (!this._closed)
@@ -6952,11 +6952,11 @@ function mi() {
6952
6952
  return;
6953
6953
  }
6954
6954
  const A = d.substring(0, c);
6955
- let D = I.parse(A, "Request_Response");
6956
- if (D === -1) {
6955
+ let U = I.parse(A, "Request_Response");
6956
+ if (U === -1) {
6957
6957
  _.warn(`parseMessage() | error parsing first line of SIP message: "${A}"`);
6958
6958
  return;
6959
- } else D.status_code ? (l = new i.IncomingResponse(), l.status_code = D.status_code, l.reason_phrase = D.reason_phrase) : (l = new i.IncomingRequest(h), l.method = D.method, l.ruri = D.uri);
6959
+ } else U.status_code ? (l = new i.IncomingResponse(), l.status_code = U.status_code, l.reason_phrase = U.reason_phrase) : (l = new i.IncomingRequest(h), l.method = U.method, l.ruri = U.uri);
6960
6960
  l.data = d;
6961
6961
  let v = c + 2;
6962
6962
  for (; ; ) {
@@ -6967,8 +6967,8 @@ function mi() {
6967
6967
  _.warn("parseMessage() | malformed message");
6968
6968
  return;
6969
6969
  }
6970
- if (D = t(l, d, v, c), D !== !0) {
6971
- _.warn("parseMessage() |", D.error);
6970
+ if (U = t(l, d, v, c), U !== !0) {
6971
+ _.warn("parseMessage() |", U.error);
6972
6972
  return;
6973
6973
  }
6974
6974
  v = c + 2;
@@ -6994,8 +6994,8 @@ function mi() {
6994
6994
  }
6995
6995
  function t(d, h, l, T) {
6996
6996
  let c;
6997
- const A = h.indexOf(":", l), D = h.substring(l, A).trim(), v = h.substring(A + 1, T).trim();
6998
- switch (D.toLowerCase()) {
6997
+ const A = h.indexOf(":", l), U = h.substring(l, A).trim(), v = h.substring(A + 1, T).trim();
6998
+ switch (U.toLowerCase()) {
6999
6999
  case "via":
7000
7000
  case "v":
7001
7001
  d.addHeader("via", v), d.getHeaders("via").length === 1 ? (c = d.parseHeader("Via"), c && (d.via = c, d.via_branch = c.branch)) : c = 0;
@@ -7063,10 +7063,10 @@ function mi() {
7063
7063
  d.setHeader("event", v), c = d.parseHeader("event"), c && (d.event = c);
7064
7064
  break;
7065
7065
  default:
7066
- d.addHeader(D, v), c = 0;
7066
+ d.addHeader(U, v), c = 0;
7067
7067
  }
7068
7068
  return c === void 0 ? {
7069
- error: `error parsing header "${D}"`
7069
+ error: `error parsing header "${U}"`
7070
7070
  } : !0;
7071
7071
  }
7072
7072
  return ps;
@@ -7075,9 +7075,9 @@ var ms, Yn;
7075
7075
  function gi() {
7076
7076
  if (Yn) return ms;
7077
7077
  Yn = 1;
7078
- const y = ce(), I = ue(), i = Se(), _ = fe(), R = new y("sanityCheck"), t = [w], d = [
7078
+ const y = ce(), I = ue(), i = Se(), _ = fe(), R = new y("sanityCheck"), t = [b], d = [
7079
7079
  A,
7080
- D,
7080
+ U,
7081
7081
  v,
7082
7082
  x
7083
7083
  ], h = [
@@ -7105,7 +7105,7 @@ function gi() {
7105
7105
  if (l.s("to").uri.scheme !== "sip")
7106
7106
  return F(416), !1;
7107
7107
  }
7108
- function D() {
7108
+ function U() {
7109
7109
  if (!l.to_tag && l.call_id.substr(0, 5) === T.configuration.jssip_id)
7110
7110
  return F(482), !1;
7111
7111
  }
@@ -7141,7 +7141,7 @@ function gi() {
7141
7141
  if (H < o)
7142
7142
  return R.debug("message body length is lower than the value in Content-Length header field, dropping the response"), !1;
7143
7143
  }
7144
- function w() {
7144
+ function b() {
7145
7145
  const H = ["from", "to", "call_id", "cseq", "via"];
7146
7146
  for (const o of H)
7147
7147
  if (!l.hasHeader(o))
@@ -7356,7 +7356,7 @@ var gs, Xn;
7356
7356
  function Ci() {
7357
7357
  if (Xn) return gs;
7358
7358
  Xn = 1;
7359
- const y = Ne().EventEmitter, I = ce(), i = ue(), _ = ii(), R = il(), t = di(), d = _i(), h = je(), l = pi(), T = fe(), c = ye(), A = Ie(), D = mi(), v = Se(), x = gi(), $ = Ti(), C = new I("UA"), w = {
7359
+ const y = Ne().EventEmitter, I = ce(), i = ue(), _ = ii(), R = il(), t = di(), d = _i(), h = ze(), l = pi(), T = fe(), c = ye(), A = Ie(), U = mi(), v = Se(), x = gi(), $ = Ti(), C = new I("UA"), b = {
7360
7360
  // UA status codes.
7361
7361
  STATUS_INIT: 0,
7362
7362
  STATUS_READY: 1,
@@ -7369,7 +7369,7 @@ function Ci() {
7369
7369
  gs = class extends y {
7370
7370
  // Expose C object.
7371
7371
  static get C() {
7372
- return w;
7372
+ return b;
7373
7373
  }
7374
7374
  constructor(p) {
7375
7375
  if (!p)
@@ -7377,10 +7377,10 @@ function Ci() {
7377
7377
  const S = ["password", "ha1", "authorization_jwt"];
7378
7378
  C.debug(
7379
7379
  "new() [configuration:%o]",
7380
- Object.entries(p).filter(([O]) => !S.includes(O))
7380
+ Object.entries(p).filter(([D]) => !S.includes(D))
7381
7381
  ), super(), this._cache = {
7382
7382
  credentials: {}
7383
- }, this._configuration = Object.assign({}, $.settings), this._dynConfiguration = {}, this._dialogs = {}, this._applicants = {}, this._sessions = {}, this._transport = null, this._contact = null, this._status = w.STATUS_INIT, this._error = null, this._transactions = {
7383
+ }, this._configuration = Object.assign({}, $.settings), this._dynConfiguration = {}, this._dialogs = {}, this._applicants = {}, this._sessions = {}, this._transport = null, this._contact = null, this._status = b.STATUS_INIT, this._error = null, this._transactions = {
7384
7384
  nist: {},
7385
7385
  nict: {},
7386
7386
  ist: {},
@@ -7388,13 +7388,13 @@ function Ci() {
7388
7388
  }, this._data = {}, this._closeTimer = null;
7389
7389
  try {
7390
7390
  this._loadConfig(p);
7391
- } catch (O) {
7392
- throw this._status = w.STATUS_NOT_READY, this._error = w.CONFIGURATION_ERROR, O;
7391
+ } catch (D) {
7392
+ throw this._status = b.STATUS_NOT_READY, this._error = b.CONFIGURATION_ERROR, D;
7393
7393
  }
7394
7394
  this._registrator = new _(this);
7395
7395
  }
7396
7396
  get C() {
7397
- return w;
7397
+ return b;
7398
7398
  }
7399
7399
  get status() {
7400
7400
  return this._status;
@@ -7416,7 +7416,7 @@ function Ci() {
7416
7416
  * Resume UA after being closed.
7417
7417
  */
7418
7418
  start() {
7419
- C.debug("start()"), this._status === w.STATUS_INIT ? this._transport.connect() : this._status === w.STATUS_USER_CLOSED ? (C.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = w.STATUS_INIT, this._transport.connect()) : this._status === w.STATUS_READY ? C.debug("UA is in READY status, not restarted") : C.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
7419
+ C.debug("start()"), this._status === b.STATUS_INIT ? this._transport.connect() : this._status === b.STATUS_USER_CLOSED ? (C.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = b.STATUS_INIT, this._transport.connect()) : this._status === b.STATUS_READY ? C.debug("UA is in READY status, not restarted") : C.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
7420
7420
  }
7421
7421
  /**
7422
7422
  * Register.
@@ -7459,8 +7459,8 @@ function Ci() {
7459
7459
  */
7460
7460
  call(p, S) {
7461
7461
  C.debug("call()");
7462
- const O = new R(this);
7463
- return O.connect(p, S), O;
7462
+ const D = new R(this);
7463
+ return D.connect(p, S), D;
7464
7464
  }
7465
7465
  /**
7466
7466
  * Send a message.
@@ -7472,10 +7472,10 @@ function Ci() {
7472
7472
  * -throws {TypeError}
7473
7473
  *
7474
7474
  */
7475
- sendMessage(p, S, O) {
7475
+ sendMessage(p, S, D) {
7476
7476
  C.debug("sendMessage()");
7477
7477
  const E = new t(this);
7478
- return E.send(p, S, O), E;
7478
+ return E.send(p, S, D), E;
7479
7479
  }
7480
7480
  /**
7481
7481
  * Send a SIP OPTIONS.
@@ -7487,10 +7487,10 @@ function Ci() {
7487
7487
  * -throws {TypeError}
7488
7488
  *
7489
7489
  */
7490
- sendOptions(p, S, O) {
7490
+ sendOptions(p, S, D) {
7491
7491
  C.debug("sendOptions()");
7492
7492
  const E = new d(this);
7493
- return E.send(p, S, O), E;
7493
+ return E.send(p, S, D), E;
7494
7494
  }
7495
7495
  /**
7496
7496
  * Terminate ongoing sessions.
@@ -7505,27 +7505,27 @@ function Ci() {
7505
7505
  *
7506
7506
  */
7507
7507
  stop() {
7508
- if (C.debug("stop()"), this._dynConfiguration = {}, this._status === w.STATUS_USER_CLOSED) {
7508
+ if (C.debug("stop()"), this._dynConfiguration = {}, this._status === b.STATUS_USER_CLOSED) {
7509
7509
  C.debug("UA already closed");
7510
7510
  return;
7511
7511
  }
7512
7512
  this._registrator.close();
7513
7513
  const p = Object.keys(this._sessions).length;
7514
- for (const O in this._sessions)
7515
- if (Object.prototype.hasOwnProperty.call(this._sessions, O)) {
7516
- C.debug(`closing session ${O}`);
7514
+ for (const D in this._sessions)
7515
+ if (Object.prototype.hasOwnProperty.call(this._sessions, D)) {
7516
+ C.debug(`closing session ${D}`);
7517
7517
  try {
7518
- this._sessions[O].terminate();
7518
+ this._sessions[D].terminate();
7519
7519
  } catch {
7520
7520
  }
7521
7521
  }
7522
- for (const O in this._applicants)
7523
- if (Object.prototype.hasOwnProperty.call(this._applicants, O))
7522
+ for (const D in this._applicants)
7523
+ if (Object.prototype.hasOwnProperty.call(this._applicants, D))
7524
7524
  try {
7525
- this._applicants[O].close();
7525
+ this._applicants[D].close();
7526
7526
  } catch {
7527
7527
  }
7528
- this._status = w.STATUS_USER_CLOSED, Object.keys(this._transactions.nict).length + Object.keys(this._transactions.nist).length + Object.keys(this._transactions.ict).length + Object.keys(this._transactions.ist).length === 0 && p === 0 ? this._transport.disconnect() : this._closeTimer = setTimeout(() => {
7528
+ this._status = b.STATUS_USER_CLOSED, Object.keys(this._transactions.nict).length + Object.keys(this._transactions.nist).length + Object.keys(this._transactions.ict).length + Object.keys(this._transactions.ist).length === 0 && p === 0 ? this._transport.disconnect() : this._closeTimer = setTimeout(() => {
7529
7529
  this._closeTimer = null, this._transport.disconnect();
7530
7530
  }, 2e3);
7531
7531
  }
@@ -7707,20 +7707,20 @@ function Ci() {
7707
7707
  p.reply(405);
7708
7708
  return;
7709
7709
  }
7710
- let O, E;
7710
+ let D, E;
7711
7711
  if (p.to_tag)
7712
- O = this._findDialog(p.call_id, p.from_tag, p.to_tag), O ? O.receiveRequest(p) : S === i.NOTIFY ? (E = this._findSession(p), E ? E.receiveRequest(p) : (C.debug("received NOTIFY request for a non existent subscription"), p.reply(481, "Subscription does not exist"))) : S !== i.ACK && p.reply(481);
7712
+ D = this._findDialog(p.call_id, p.from_tag, p.to_tag), D ? D.receiveRequest(p) : S === i.NOTIFY ? (E = this._findSession(p), E ? E.receiveRequest(p) : (C.debug("received NOTIFY request for a non existent subscription"), p.reply(481, "Subscription does not exist"))) : S !== i.ACK && p.reply(481);
7713
7713
  else
7714
7714
  switch (S) {
7715
7715
  case i.INVITE:
7716
7716
  if (window.RTCPeerConnection)
7717
7717
  if (p.hasHeader("replaces")) {
7718
- const b = p.replaces;
7719
- O = this._findDialog(
7720
- b.call_id,
7721
- b.from_tag,
7722
- b.to_tag
7723
- ), O ? (E = O.owner, E.isEnded() ? p.reply(603) : E.receiveRequest(p)) : p.reply(481);
7718
+ const w = p.replaces;
7719
+ D = this._findDialog(
7720
+ w.call_id,
7721
+ w.from_tag,
7722
+ w.to_tag
7723
+ ), D ? (E = D.owner, E.isEnded() ? p.reply(603) : E.receiveRequest(p)) : p.reply(481);
7724
7724
  } else
7725
7725
  E = new R(this), E.init_incoming(p);
7726
7726
  else
@@ -7751,16 +7751,16 @@ function Ci() {
7751
7751
  /**
7752
7752
  * Get the session to which the request belongs to, if any.
7753
7753
  */
7754
- _findSession({ call_id: p, from_tag: S, to_tag: O }) {
7755
- const E = p + S, b = this._sessions[E], U = p + O, P = this._sessions[U];
7756
- return b || P || null;
7754
+ _findSession({ call_id: p, from_tag: S, to_tag: D }) {
7755
+ const E = p + S, w = this._sessions[E], O = p + D, P = this._sessions[O];
7756
+ return w || P || null;
7757
7757
  }
7758
7758
  /**
7759
7759
  * Get the dialog to which the request belongs to, if any.
7760
7760
  */
7761
- _findDialog(p, S, O) {
7762
- let E = p + S + O, b = this._dialogs[E];
7763
- return b || (E = p + O + S, b = this._dialogs[E], b || null);
7761
+ _findDialog(p, S, D) {
7762
+ let E = p + S + D, w = this._dialogs[E];
7763
+ return w || (E = p + D + S, w = this._dialogs[E], w || null);
7764
7764
  }
7765
7765
  _loadConfig(p) {
7766
7766
  try {
@@ -7789,12 +7789,12 @@ function Ci() {
7789
7789
  temp_gruu: null,
7790
7790
  uri: this._configuration.contact_uri,
7791
7791
  toString(E = {}) {
7792
- const b = E.anonymous || null, U = E.outbound || null;
7792
+ const w = E.anonymous || null, O = E.outbound || null;
7793
7793
  let P = "<";
7794
- return b ? P += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : P += this.pub_gruu || this.uri.toString(), U && (b ? !this.temp_gruu : !this.pub_gruu) && (P += ";ob"), P += ">", P;
7794
+ return w ? P += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : P += this.pub_gruu || this.uri.toString(), O && (w ? !this.temp_gruu : !this.pub_gruu) && (P += ";ob"), P += ">", P;
7795
7795
  }
7796
7796
  };
7797
- const O = [
7797
+ const D = [
7798
7798
  "authorization_user",
7799
7799
  "password",
7800
7800
  "realm",
@@ -7805,7 +7805,7 @@ function Ci() {
7805
7805
  "extra_headers"
7806
7806
  ];
7807
7807
  for (const E in this._configuration)
7808
- Object.prototype.hasOwnProperty.call(this._configuration, E) && (O.indexOf(E) !== -1 ? Object.defineProperty(this._configuration, E, {
7808
+ Object.prototype.hasOwnProperty.call(this._configuration, E) && (D.indexOf(E) !== -1 ? Object.defineProperty(this._configuration, E, {
7809
7809
  writable: !0,
7810
7810
  configurable: !1
7811
7811
  }) : Object.defineProperty(this._configuration, E, {
@@ -7834,31 +7834,31 @@ function Ci() {
7834
7834
  this.emit("connecting", g);
7835
7835
  }
7836
7836
  function H(g) {
7837
- this._status !== w.STATUS_USER_CLOSED && (this._status = w.STATUS_READY, this._error = null, this.emit("connected", g), this._dynConfiguration.register && this._registrator.register());
7837
+ this._status !== b.STATUS_USER_CLOSED && (this._status = b.STATUS_READY, this._error = null, this.emit("connected", g), this._dynConfiguration.register && this._registrator.register());
7838
7838
  }
7839
7839
  function o(g) {
7840
7840
  const p = ["nict", "ict", "nist", "ist"];
7841
7841
  for (const S of p)
7842
- for (const O in this._transactions[S])
7843
- Object.prototype.hasOwnProperty.call(this._transactions[S], O) && this._transactions[S][O].onTransportError();
7844
- this.emit("disconnected", g), this._registrator.onTransportClosed(), this._status !== w.STATUS_USER_CLOSED && (this._status = w.STATUS_NOT_READY, this._error = w.NETWORK_ERROR);
7842
+ for (const D in this._transactions[S])
7843
+ Object.prototype.hasOwnProperty.call(this._transactions[S], D) && this._transactions[S][D].onTransportError();
7844
+ this.emit("disconnected", g), this._registrator.onTransportClosed(), this._status !== b.STATUS_USER_CLOSED && (this._status = b.STATUS_NOT_READY, this._error = b.NETWORK_ERROR);
7845
7845
  }
7846
7846
  function f(g) {
7847
7847
  const p = g.transport;
7848
7848
  let S = g.message;
7849
- if (S = D.parseMessage(S, this), !!S && !(this._status === w.STATUS_USER_CLOSED && S instanceof v.IncomingRequest) && x(S, this, p)) {
7849
+ if (S = U.parseMessage(S, this), !!S && !(this._status === b.STATUS_USER_CLOSED && S instanceof v.IncomingRequest) && x(S, this, p)) {
7850
7850
  if (S instanceof v.IncomingRequest)
7851
7851
  S.transport = p, this.receiveRequest(S);
7852
7852
  else if (S instanceof v.IncomingResponse) {
7853
- let O;
7853
+ let D;
7854
7854
  switch (S.method) {
7855
7855
  case i.INVITE:
7856
- O = this._transactions.ict[S.via_branch], O && O.receiveResponse(S);
7856
+ D = this._transactions.ict[S.via_branch], D && D.receiveResponse(S);
7857
7857
  break;
7858
7858
  case i.ACK:
7859
7859
  break;
7860
7860
  default:
7861
- O = this._transactions.nict[S.via_branch], O && O.receiveResponse(S);
7861
+ D = this._transactions.nict[S.via_branch], D && D.receiveResponse(S);
7862
7862
  break;
7863
7863
  }
7864
7864
  }
@@ -7975,100 +7975,125 @@ function Ai({
7975
7975
  onCallEnd: _,
7976
7976
  onStatusChange: R
7977
7977
  }) {
7978
- const [t, d] = we(""), [h, l] = we("disconnected"), [T, c] = we(null), [A, D] = we(0), [v, x] = we([]), [$, C] = we(!1), [w, F] = we("disconnected"), H = ft(null), o = ft(null), f = ft(null), g = ft(null);
7978
+ const [t, d] = we(""), [h, l] = we("disconnected"), [T, c] = we(null), [A, U] = we(0), [v, x] = we([]), [$, C] = we(!1), [b, F] = we("disconnected"), H = je(null), o = je(null), f = je(null), g = je(null), p = je(!1);
7979
7979
  Me(() => {
7980
7980
  f.current = T;
7981
7981
  }, [T]), Me(() => {
7982
- H.current && (H.current.stop(), H.current = null), F("connecting");
7983
- const U = {
7984
- sockets: [new el.WebSocketInterface(y.websocketUrl)],
7985
- uri: y.sipUri,
7986
- password: y.password,
7987
- registrar_server: y.registrarServer,
7988
- display_name: y.displayName,
7989
- authorization_user: y.authorizationUser
7990
- }, P = new el.UA(U);
7991
- return H.current = P, P.on("connecting", () => {
7992
- F("connecting");
7982
+ if (p.current = !1, H.current) {
7983
+ try {
7984
+ H.current.stop();
7985
+ } catch (z) {
7986
+ console.warn("Error stopping previous UA:", z);
7987
+ }
7988
+ H.current = null;
7989
+ }
7990
+ F("connecting");
7991
+ let O, P;
7992
+ try {
7993
+ O = new el.WebSocketInterface(y.websocketUrl);
7994
+ const z = {
7995
+ sockets: [O],
7996
+ uri: y.sipUri,
7997
+ password: y.password,
7998
+ registrar_server: y.registrarServer,
7999
+ display_name: y.displayName,
8000
+ authorization_user: y.authorizationUser,
8001
+ connection_recovery_min_interval: 2,
8002
+ connection_recovery_max_interval: 30
8003
+ };
8004
+ P = new el.UA(z), H.current = P;
8005
+ } catch (z) {
8006
+ console.error("Failed to create JsSIP UA:", z), F("failed");
8007
+ return;
8008
+ }
8009
+ return P.on("connecting", () => {
8010
+ p.current || F("connecting");
7993
8011
  }), P.on("connected", () => {
7994
- F("connected");
8012
+ p.current || F("connected");
7995
8013
  }), P.on("disconnected", () => {
7996
- F("disconnected"), C(!1);
8014
+ p.current || (F("disconnected"), C(!1));
7997
8015
  }), P.on("registered", () => {
7998
- C(!0), F("connected");
8016
+ p.current || (C(!0), F("connected"));
7999
8017
  }), P.on("unregistered", () => {
8000
- C(!1);
8001
- }), P.on("registrationFailed", (K) => {
8002
- console.error("Registration failed:", K?.cause), C(!1), F("failed");
8003
- }), P.on("newRTCSession", (K) => {
8004
- const q = K.session;
8018
+ p.current || C(!1);
8019
+ }), P.on("registrationFailed", (z) => {
8020
+ p.current || (console.error("Registration failed:", z?.cause), C(!1), F("failed"));
8021
+ }), P.on("newRTCSession", (z) => {
8022
+ if (p.current) return;
8023
+ const q = z.session;
8005
8024
  q.direction === "outgoing" && (o.current = q, q.on("peerconnection", () => {
8006
- q.connection.addEventListener("track", (ne) => {
8007
- ne.streams && ne.streams[0] && (g.current || (g.current = document.createElement("audio"), g.current.autoplay = !0), g.current.srcObject = ne.streams[0], g.current.play().catch(console.error));
8025
+ q.connection.addEventListener("track", (te) => {
8026
+ te.streams && te.streams[0] && (g.current || (g.current = document.createElement("audio"), g.current.autoplay = !0), g.current.srcObject = te.streams[0], g.current.play().catch(console.error));
8008
8027
  });
8009
8028
  }));
8010
8029
  }), P.start(), () => {
8011
- g.current && (g.current.srcObject = null, g.current = null), P.stop(), H.current = null;
8030
+ if (p.current = !0, g.current && (g.current.srcObject = null, g.current = null), H.current) {
8031
+ try {
8032
+ H.current.stop();
8033
+ } catch {
8034
+ }
8035
+ H.current = null;
8036
+ }
8012
8037
  };
8013
8038
  }, [y.websocketUrl, y.sipUri, y.password, y.registrarServer, y.displayName, y.authorizationUser]), Me(() => {
8014
8039
  R?.(h);
8015
8040
  }, [h, R]), Me(() => {
8016
- const b = localStorage.getItem("tbi-phone-call-history");
8017
- if (b)
8041
+ const O = localStorage.getItem("tbi-phone-call-history");
8042
+ if (O)
8018
8043
  try {
8019
- x(JSON.parse(b));
8020
- } catch (U) {
8021
- console.error("Error loading call history", U);
8044
+ x(JSON.parse(O));
8045
+ } catch (P) {
8046
+ console.error("Error loading call history", P);
8022
8047
  }
8023
8048
  }, []), Me(() => {
8024
8049
  v.length > 0 && localStorage.setItem("tbi-phone-call-history", JSON.stringify(v));
8025
8050
  }, [v]), Me(() => {
8026
8051
  if (h === "confirmed" && T) {
8027
- const b = setInterval(() => {
8028
- D(Math.floor((Date.now() - T) / 1e3));
8052
+ const O = setInterval(() => {
8053
+ U(Math.floor((Date.now() - T) / 1e3));
8029
8054
  }, 1e3);
8030
- return () => clearInterval(b);
8055
+ return () => clearInterval(O);
8031
8056
  } else
8032
- D(0);
8057
+ U(0);
8033
8058
  }, [h, T]), Me(() => {
8034
- const b = (U) => {
8035
- const P = U.detail.number;
8036
- h === "disconnected" && O(P);
8059
+ const O = (P) => {
8060
+ const z = P.detail.number;
8061
+ h === "disconnected" && E(z);
8037
8062
  };
8038
- return window.addEventListener("StartCallEvent", b), () => {
8039
- window.removeEventListener("StartCallEvent", b);
8063
+ return window.addEventListener("StartCallEvent", O), () => {
8064
+ window.removeEventListener("StartCallEvent", O);
8040
8065
  };
8041
8066
  }, [h]);
8042
- const p = qt((b, U, P) => {
8043
- const K = {
8067
+ const S = qt((O, P, z) => {
8068
+ const q = {
8044
8069
  id: Date.now().toString(),
8045
- number: b,
8070
+ number: O,
8046
8071
  timestamp: Date.now(),
8047
- duration: U,
8048
- status: P
8072
+ duration: P,
8073
+ status: z
8049
8074
  };
8050
- x((q) => [K, ...q].slice(0, 50));
8051
- }, []), S = qt(() => {
8075
+ x((te) => [q, ...te].slice(0, 50));
8076
+ }, []), D = qt(() => {
8052
8077
  o.current && (o.current.terminate(), o.current = null);
8053
- }, []), O = qt((b) => {
8054
- if (!b.trim() || !H.current) return;
8078
+ }, []), E = qt((O) => {
8079
+ if (!O.trim() || !H.current) return;
8055
8080
  if (!$) {
8056
8081
  console.warn("Phone is not ready yet. Please wait for registration.");
8057
8082
  return;
8058
8083
  }
8059
- d(b), i?.(b);
8060
- const P = {
8084
+ d(O), i?.(O);
8085
+ const z = {
8061
8086
  eventHandlers: {
8062
8087
  progress: () => {
8063
8088
  l("progress");
8064
8089
  },
8065
- failed: (K) => {
8066
- console.error("Call failed:", K?.cause), l("failed"), p(b, 0, "failed"), _?.(b, 0, "failed"), o.current = null, setTimeout(() => l("disconnected"), 3e3);
8090
+ failed: (q) => {
8091
+ console.error("Call failed:", q?.cause), l("failed"), S(O, 0, "failed"), _?.(O, 0, "failed"), o.current = null, setTimeout(() => l("disconnected"), 3e3);
8067
8092
  },
8068
8093
  ended: () => {
8069
8094
  l("ended");
8070
- const K = f.current, q = K ? Math.floor((Date.now() - K) / 1e3) : 0;
8071
- p(b, q, "completed"), _?.(b, q, "completed"), o.current = null, setTimeout(() => {
8095
+ const q = f.current, te = q ? Math.floor((Date.now() - q) / 1e3) : 0;
8096
+ S(O, te, "completed"), _?.(O, te, "completed"), o.current = null, setTimeout(() => {
8072
8097
  l("disconnected"), c(null);
8073
8098
  }, 2e3);
8074
8099
  },
@@ -8080,23 +8105,23 @@ function Ai({
8080
8105
  };
8081
8106
  l("progress");
8082
8107
  try {
8083
- const K = H.current.call(b, P);
8084
- o.current = K;
8085
- } catch (K) {
8086
- console.error("Failed to start call:", K), l("failed"), p(b, 0, "failed"), setTimeout(() => l("disconnected"), 3e3);
8108
+ const q = H.current.call(O, z);
8109
+ o.current = q;
8110
+ } catch (q) {
8111
+ console.error("Failed to start call:", q), l("failed"), S(O, 0, "failed"), setTimeout(() => l("disconnected"), 3e3);
8087
8112
  }
8088
- }, [p, i, _, $]), E = {
8113
+ }, [S, i, _, $]), w = {
8089
8114
  status: h,
8090
8115
  callNumber: t,
8091
8116
  setCallNumber: d,
8092
8117
  callHistory: v,
8093
8118
  currentCallDuration: A,
8094
- startCall: O,
8095
- endCall: S,
8119
+ startCall: E,
8120
+ endCall: D,
8096
8121
  isReady: $,
8097
- connectionStatus: w
8122
+ connectionStatus: b
8098
8123
  };
8099
- return /* @__PURE__ */ W(ol.Provider, { value: E, children: I });
8124
+ return /* @__PURE__ */ W(ol.Provider, { value: w, children: I });
8100
8125
  }
8101
8126
  function Ri() {
8102
8127
  const y = Jl(ol);
@@ -8104,10 +8129,10 @@ function Ri() {
8104
8129
  throw new Error("usePhone must be used within a PhoneProvider");
8105
8130
  return y;
8106
8131
  }
8107
- const Rs = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z" }) }), bi = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M15.05 5A7 7 0 0 1 19 8.95M15.05 1A11 11 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" }) }), wi = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.12-.74-.03-1.02.24l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 12h2c0-4.97-4.03-9-9-9v2c3.87 0 7 3.13 7 7zm-4 0h2c0-2.76-2.24-5-5-5v2c1.66 0 3 1.34 3 3z" }) }), mt = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08a.956.956 0 0 1-.29-.7c0-.28.11-.53.29-.71C3.34 8.78 7.46 7 12 7s8.66 1.78 11.71 4.67c.18.18.29.43.29.71 0 .28-.11.53-.29.71l-2.48 2.48c-.18.18-.43.29-.71.29-.27 0-.52-.11-.7-.28a11.27 11.27 0 0 0-2.67-1.85.996.996 0 0 1-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z" }) }), ul = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M6.5 5.5 12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71s.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2.66-1.85.33-.16.56-.5.56-.9v-3.1c1.45-.48 3-.73 4.6-.73 1.6 0 3.15.25 4.6.72v3.1c0 .39.23.74.56.9.98.49 1.87 1.12 2.67 1.85.18.18.43.28.7.28.28 0 .53-.11.71-.29l2.48-2.48c.18-.18.29-.43.29-.71s-.12-.52-.3-.7z" }) }), yi = ({ className: y }) => /* @__PURE__ */ re("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: [
8132
+ const Rs = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z" }) }), bi = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M15.05 5A7 7 0 0 1 19 8.95M15.05 1A11 11 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" }) }), wi = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.12-.74-.03-1.02.24l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 12h2c0-4.97-4.03-9-9-9v2c3.87 0 7 3.13 7 7zm-4 0h2c0-2.76-2.24-5-5-5v2c1.66 0 3 1.34 3 3z" }) }), mt = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08a.956.956 0 0 1-.29-.7c0-.28.11-.53.29-.71C3.34 8.78 7.46 7 12 7s8.66 1.78 11.71 4.67c.18.18.29.43.29.71 0 .28-.11.53-.29.71l-2.48 2.48c-.18.18-.43.29-.71.29-.27 0-.52-.11-.7-.28a11.27 11.27 0 0 0-2.67-1.85.996.996 0 0 1-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z" }) }), ul = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M6.5 5.5 12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71s.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2.66-1.85.33-.16.56-.5.56-.9v-3.1c1.45-.48 3-.73 4.6-.73 1.6 0 3.15.25 4.6.72v3.1c0 .39.23.74.56.9.98.49 1.87 1.12 2.67 1.85.18.18.43.28.7.28.28 0 .53-.11.71-.29l2.48-2.48c.18-.18.29-.43.29-.71s-.12-.52-.3-.7z" }) }), yi = ({ className: y }) => /* @__PURE__ */ ne("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: [
8108
8133
  /* @__PURE__ */ W("path", { d: "M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z" }),
8109
8134
  /* @__PURE__ */ W("path", { d: "M16 3l-5 5-2-2-1.5 1.5L11 11l6.5-6.5z" })
8110
- ] }), Ii = ({ className: y }) => /* @__PURE__ */ re("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: [
8135
+ ] }), Ii = ({ className: y }) => /* @__PURE__ */ ne("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: [
8111
8136
  /* @__PURE__ */ W("path", { d: "M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z" }),
8112
8137
  /* @__PURE__ */ W("path", { d: "M19 6.41L17.59 5 15 7.59 12.41 5 11 6.41 13.59 9 11 11.59 12.41 13 15 10.41 17.59 13 19 11.59 16.41 9z" })
8113
8138
  ] }), Ni = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M13 3a9 9 0 0 0-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.954 8.954 0 0 0 13 21a9 9 0 0 0 0-18zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z" }) }), xi = ({ className: y }) => /* @__PURE__ */ W("svg", { className: y, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ W("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) });
@@ -8122,7 +8147,7 @@ function Oi({ className: y, labels: I }) {
8122
8147
  endCall: l,
8123
8148
  isReady: T,
8124
8149
  connectionStatus: c
8125
- } = Ri(), [A, D] = we(!1), v = { ...Xl, ...I }, $ = (() => {
8150
+ } = Ri(), [A, U] = we(!1), v = { ...Xl, ...I }, $ = (() => {
8126
8151
  switch (i) {
8127
8152
  case "progress":
8128
8153
  return { text: `${v.calling}...`, color: "text-yellow-500", Icon: bi };
@@ -8136,15 +8161,15 @@ function Oi({ className: y, labels: I }) {
8136
8161
  return { text: v.inactive, color: "text-gray-300", Icon: Rs };
8137
8162
  }
8138
8163
  })();
8139
- return /* @__PURE__ */ re("div", { className: vs(
8164
+ return /* @__PURE__ */ ne("div", { className: vs(
8140
8165
  "tbi-phone w-full max-w-md mx-auto bg-white rounded-2xl shadow-lg border border-gray-200 p-2",
8141
8166
  y
8142
8167
  ), children: [
8143
- i === "disconnected" && /* @__PURE__ */ re("div", { className: "flex gap-2 items-center", children: [
8168
+ i === "disconnected" && /* @__PURE__ */ ne("div", { className: "flex gap-2 items-center", children: [
8144
8169
  /* @__PURE__ */ W(
8145
8170
  "button",
8146
8171
  {
8147
- onClick: () => D(!0),
8172
+ onClick: () => U(!0),
8148
8173
  className: "h-8 w-8 flex items-center justify-center rounded-xl border border-gray-200 hover:bg-gray-50 transition-colors",
8149
8174
  type: "button",
8150
8175
  children: /* @__PURE__ */ W(Ni, { className: "w-4 h-4" })
@@ -8175,20 +8200,20 @@ function Oi({ className: y, labels: I }) {
8175
8200
  }
8176
8201
  )
8177
8202
  ] }),
8178
- i === "progress" && /* @__PURE__ */ re("div", { className: "flex flex-col items-center gap-3 py-6", children: [
8179
- /* @__PURE__ */ re("div", { className: "relative", children: [
8203
+ i === "progress" && /* @__PURE__ */ ne("div", { className: "flex flex-col items-center gap-3 py-6", children: [
8204
+ /* @__PURE__ */ ne("div", { className: "relative", children: [
8180
8205
  /* @__PURE__ */ W($.Icon, { className: "w-12 h-12 text-yellow-500 animate-pulse" }),
8181
8206
  /* @__PURE__ */ W("div", { className: "absolute inset-0 rounded-full border-4 border-yellow-500/30 animate-ping" })
8182
8207
  ] }),
8183
- /* @__PURE__ */ re("div", { className: "text-center", children: [
8184
- /* @__PURE__ */ re("p", { className: "text-base font-semibold", children: [
8208
+ /* @__PURE__ */ ne("div", { className: "text-center", children: [
8209
+ /* @__PURE__ */ ne("p", { className: "text-base font-semibold", children: [
8185
8210
  v.calling,
8186
8211
  " ",
8187
8212
  _
8188
8213
  ] }),
8189
8214
  /* @__PURE__ */ W("p", { className: "text-sm text-gray-500", children: v.waitingResponse })
8190
8215
  ] }),
8191
- /* @__PURE__ */ re(
8216
+ /* @__PURE__ */ ne(
8192
8217
  "button",
8193
8218
  {
8194
8219
  onClick: l,
@@ -8201,16 +8226,16 @@ function Oi({ className: y, labels: I }) {
8201
8226
  }
8202
8227
  )
8203
8228
  ] }),
8204
- i === "confirmed" && /* @__PURE__ */ re("div", { className: "flex flex-col items-center gap-4 py-6", children: [
8205
- /* @__PURE__ */ re("div", { className: "relative", children: [
8229
+ i === "confirmed" && /* @__PURE__ */ ne("div", { className: "flex flex-col items-center gap-4 py-6", children: [
8230
+ /* @__PURE__ */ ne("div", { className: "relative", children: [
8206
8231
  /* @__PURE__ */ W($.Icon, { className: "w-12 h-12 text-green-500" }),
8207
8232
  /* @__PURE__ */ W("div", { className: "absolute inset-0 rounded-full bg-green-500/20 animate-pulse" })
8208
8233
  ] }),
8209
- /* @__PURE__ */ re("div", { className: "text-center space-y-1", children: [
8234
+ /* @__PURE__ */ ne("div", { className: "text-center space-y-1", children: [
8210
8235
  /* @__PURE__ */ W("p", { className: "text-xl font-bold", children: _ }),
8211
8236
  /* @__PURE__ */ W("p", { className: "text-2xl font-mono text-green-600 tabular-nums", children: Es(d) })
8212
8237
  ] }),
8213
- /* @__PURE__ */ re(
8238
+ /* @__PURE__ */ ne(
8214
8239
  "button",
8215
8240
  {
8216
8241
  onClick: l,
@@ -8223,7 +8248,7 @@ function Oi({ className: y, labels: I }) {
8223
8248
  }
8224
8249
  )
8225
8250
  ] }),
8226
- (i === "failed" || i === "ended") && /* @__PURE__ */ re("div", { className: "flex flex-col items-center gap-3 py-6", children: [
8251
+ (i === "failed" || i === "ended") && /* @__PURE__ */ ne("div", { className: "flex flex-col items-center gap-3 py-6", children: [
8227
8252
  /* @__PURE__ */ W(
8228
8253
  $.Icon,
8229
8254
  {
@@ -8235,40 +8260,40 @@ function Oi({ className: y, labels: I }) {
8235
8260
  ),
8236
8261
  /* @__PURE__ */ W("div", { className: "text-center", children: /* @__PURE__ */ W("p", { className: "text-base font-semibold", children: $.text }) })
8237
8262
  ] }),
8238
- A && /* @__PURE__ */ re("div", { className: "fixed inset-0 z-50 flex", children: [
8263
+ A && /* @__PURE__ */ ne("div", { className: "fixed inset-0 z-50 flex", children: [
8239
8264
  /* @__PURE__ */ W(
8240
8265
  "div",
8241
8266
  {
8242
8267
  className: "fixed inset-0 bg-black/50",
8243
- onClick: () => D(!1)
8268
+ onClick: () => U(!1)
8244
8269
  }
8245
8270
  ),
8246
- /* @__PURE__ */ W("div", { className: "fixed right-0 top-0 h-full w-full max-w-md bg-white shadow-xl", children: /* @__PURE__ */ re("div", { className: "flex flex-col h-full", children: [
8247
- /* @__PURE__ */ re("div", { className: "flex items-center justify-between p-4 border-b", children: [
8248
- /* @__PURE__ */ re("div", { children: [
8271
+ /* @__PURE__ */ W("div", { className: "fixed right-0 top-0 h-full w-full max-w-md bg-white shadow-xl", children: /* @__PURE__ */ ne("div", { className: "flex flex-col h-full", children: [
8272
+ /* @__PURE__ */ ne("div", { className: "flex items-center justify-between p-4 border-b", children: [
8273
+ /* @__PURE__ */ ne("div", { children: [
8249
8274
  /* @__PURE__ */ W("h2", { className: "text-lg font-semibold", children: v.callHistory }),
8250
8275
  /* @__PURE__ */ W("p", { className: "text-sm text-gray-500", children: t.length === 0 ? v.noCallsRegistered : `${t.length} ${v.callsRegistered}` })
8251
8276
  ] }),
8252
8277
  /* @__PURE__ */ W(
8253
8278
  "button",
8254
8279
  {
8255
- onClick: () => D(!1),
8280
+ onClick: () => U(!1),
8256
8281
  className: "h-8 w-8 flex items-center justify-center rounded-lg hover:bg-gray-100 transition-colors",
8257
8282
  type: "button",
8258
8283
  children: /* @__PURE__ */ W(xi, { className: "w-5 h-5" })
8259
8284
  }
8260
8285
  )
8261
8286
  ] }),
8262
- /* @__PURE__ */ W("div", { className: "flex-1 overflow-y-auto p-4", children: t.length === 0 ? /* @__PURE__ */ re("div", { className: "text-center py-12 text-gray-500", children: [
8287
+ /* @__PURE__ */ W("div", { className: "flex-1 overflow-y-auto p-4", children: t.length === 0 ? /* @__PURE__ */ ne("div", { className: "text-center py-12 text-gray-500", children: [
8263
8288
  /* @__PURE__ */ W(mt, { className: "w-12 h-12 mx-auto mb-2 opacity-50" }),
8264
8289
  /* @__PURE__ */ W("p", { children: v.noCalls })
8265
- ] }) : /* @__PURE__ */ W("div", { className: "space-y-2", children: t.map((C, w) => /* @__PURE__ */ W(
8290
+ ] }) : /* @__PURE__ */ W("div", { className: "space-y-2", children: t.map((C, b) => /* @__PURE__ */ W(
8266
8291
  Di,
8267
8292
  {
8268
8293
  entry: C,
8269
- index: w,
8294
+ index: b,
8270
8295
  onCall: () => {
8271
- R(C.number), D(!1), h(C.number);
8296
+ R(C.number), U(!1), h(C.number);
8272
8297
  }
8273
8298
  },
8274
8299
  C.id
@@ -8301,7 +8326,7 @@ function Di({
8301
8326
  return "bg-yellow-100";
8302
8327
  }
8303
8328
  };
8304
- return /* @__PURE__ */ re(
8329
+ return /* @__PURE__ */ ne(
8305
8330
  "div",
8306
8331
  {
8307
8332
  className: "flex items-center gap-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200",
@@ -8311,16 +8336,16 @@ function Di({
8311
8336
  "w-9 h-9 rounded-full flex items-center justify-center shrink-0",
8312
8337
  R()
8313
8338
  ), children: _() }),
8314
- /* @__PURE__ */ re("div", { className: "flex-1 min-w-0", children: [
8339
+ /* @__PURE__ */ ne("div", { className: "flex-1 min-w-0", children: [
8315
8340
  /* @__PURE__ */ W("p", { className: "font-medium text-sm truncate", children: y.number }),
8316
- /* @__PURE__ */ re("div", { className: "flex items-center gap-2 text-xs text-gray-500", children: [
8341
+ /* @__PURE__ */ ne("div", { className: "flex items-center gap-2 text-xs text-gray-500", children: [
8317
8342
  /* @__PURE__ */ W("span", { children: new Date(y.timestamp).toLocaleString("es-ES", {
8318
8343
  day: "2-digit",
8319
8344
  month: "2-digit",
8320
8345
  hour: "2-digit",
8321
8346
  minute: "2-digit"
8322
8347
  }) }),
8323
- y.duration > 0 && /* @__PURE__ */ re(Kl, { children: [
8348
+ y.duration > 0 && /* @__PURE__ */ ne(Kl, { children: [
8324
8349
  /* @__PURE__ */ W("span", { children: "•" }),
8325
8350
  /* @__PURE__ */ W("span", { className: "font-mono tabular-nums", children: Es(y.duration) })
8326
8351
  ] })