intl-tel-input 23.0.5 → 23.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v23.0.5
2
+ * International Telephone Input v23.0.7
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -2778,7 +2778,7 @@ var factoryOutput = (() => {
2778
2778
  //* A map from instance ID to instance object.
2779
2779
  instances: {},
2780
2780
  loadUtils,
2781
- version: "23.0.5"
2781
+ version: "23.0.7"
2782
2782
  }
2783
2783
  );
2784
2784
  var intl_tel_input_default = intlTelInput;
@@ -2790,8 +2790,7 @@ var factoryOutput = (() => {
2790
2790
  a = a.split(".");
2791
2791
  var c = k;
2792
2792
  a[0] in c || "undefined" == typeof c.execScript || c.execScript("var " + a[0]);
2793
- for (var d; a.length && (d = a.shift()); )
2794
- a.length || void 0 === b ? c[d] && c[d] !== Object.prototype[d] ? c = c[d] : c = c[d] = {} : c[d] = b;
2793
+ for (var d; a.length && (d = a.shift()); ) a.length || void 0 === b ? c[d] && c[d] !== Object.prototype[d] ? c = c[d] : c = c[d] = {} : c[d] = b;
2795
2794
  }
2796
2795
  function n(a, b) {
2797
2796
  function c() {
@@ -2801,8 +2800,7 @@ var factoryOutput = (() => {
2801
2800
  a.prototype = new c();
2802
2801
  a.prototype.constructor = a;
2803
2802
  a.sa = function(d, e, f) {
2804
- for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++)
2805
- g[h - 2] = arguments[h];
2803
+ for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++) g[h - 2] = arguments[h];
2806
2804
  return b.prototype[e].apply(d, g);
2807
2805
  };
2808
2806
  }
@@ -2810,15 +2808,13 @@ var factoryOutput = (() => {
2810
2808
  function aa(a) {
2811
2809
  const b = [];
2812
2810
  let c = 0;
2813
- for (const d in a)
2814
- b[c++] = a[d];
2811
+ for (const d in a) b[c++] = a[d];
2815
2812
  return b;
2816
2813
  }
2817
2814
  ;
2818
2815
  var da = class {
2819
2816
  constructor(a) {
2820
- if (ba !== ba)
2821
- throw Error("SafeUrl is not meant to be built directly");
2817
+ if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
2822
2818
  this.g = a;
2823
2819
  }
2824
2820
  toString() {
@@ -2830,8 +2826,7 @@ var factoryOutput = (() => {
2830
2826
  const ea = {};
2831
2827
  class fa {
2832
2828
  constructor() {
2833
- if (ea !== ea)
2834
- throw Error("SafeStyle is not meant to be built directly");
2829
+ if (ea !== ea) throw Error("SafeStyle is not meant to be built directly");
2835
2830
  }
2836
2831
  toString() {
2837
2832
  return "".toString();
@@ -2841,8 +2836,7 @@ var factoryOutput = (() => {
2841
2836
  const ha = {};
2842
2837
  class ia {
2843
2838
  constructor() {
2844
- if (ha !== ha)
2845
- throw Error("SafeStyleSheet is not meant to be built directly");
2839
+ if (ha !== ha) throw Error("SafeStyleSheet is not meant to be built directly");
2846
2840
  }
2847
2841
  toString() {
2848
2842
  return "".toString();
@@ -2853,8 +2847,7 @@ var factoryOutput = (() => {
2853
2847
  class ka {
2854
2848
  constructor() {
2855
2849
  var a = k.trustedTypes && k.trustedTypes.emptyHTML || "";
2856
- if (ja !== ja)
2857
- throw Error("SafeHtml is not meant to be built directly");
2850
+ if (ja !== ja) throw Error("SafeHtml is not meant to be built directly");
2858
2851
  this.g = a;
2859
2852
  }
2860
2853
  toString() {
@@ -2922,10 +2915,8 @@ var factoryOutput = (() => {
2922
2915
  var g = 11 == e.h || 10 == e.h;
2923
2916
  if (e.l) {
2924
2917
  e = u(b, f);
2925
- for (var h = 0; h < e.length; h++)
2926
- va(a, f, g ? e[h].clone() : e[h]);
2927
- } else
2928
- e = v(b, f), g ? (g = v(a, f)) ? wa(g, e) : t(a, f, e.clone()) : t(a, f, e);
2918
+ for (var h = 0; h < e.length; h++) va(a, f, g ? e[h].clone() : e[h]);
2919
+ } else e = v(b, f), g ? (g = v(a, f)) ? wa(g, e) : t(a, f, e.clone()) : t(a, f, e);
2929
2920
  }
2930
2921
  }
2931
2922
  }
@@ -2939,18 +2930,14 @@ var factoryOutput = (() => {
2939
2930
  }
2940
2931
  function v(a, b) {
2941
2932
  var c = a.h[b];
2942
- if (null == c)
2943
- return null;
2933
+ if (null == c) return null;
2944
2934
  if (a.l) {
2945
2935
  if (!(b in a.g)) {
2946
2936
  var d = a.l, e = a.j[b];
2947
- if (null != c)
2948
- if (e.l) {
2949
- for (var f = [], g = 0; g < c.length; g++)
2950
- f[g] = d.h(e, c[g]);
2951
- c = f;
2952
- } else
2953
- c = d.h(e, c);
2937
+ if (null != c) if (e.l) {
2938
+ for (var f = [], g = 0; g < c.length; g++) f[g] = d.h(e, c[g]);
2939
+ c = f;
2940
+ } else c = d.h(e, c);
2954
2941
  return a.g[b] = c;
2955
2942
  }
2956
2943
  return a.g[b];
@@ -2962,24 +2949,18 @@ var factoryOutput = (() => {
2962
2949
  return a.j[b].l ? d[c || 0] : d;
2963
2950
  }
2964
2951
  function w(a, b) {
2965
- if (q(a, b))
2966
- a = r(a, b);
2967
- else
2968
- a: {
2969
- a = a.j[b];
2970
- if (void 0 === a.j)
2971
- if (b = a.s, b === Boolean)
2972
- a.j = false;
2973
- else if (b === Number)
2974
- a.j = 0;
2975
- else if (b === String)
2976
- a.j = a.o ? "0" : "";
2977
- else {
2978
- a = new b();
2979
- break a;
2980
- }
2981
- a = a.j;
2952
+ if (q(a, b)) a = r(a, b);
2953
+ else a: {
2954
+ a = a.j[b];
2955
+ if (void 0 === a.j) if (b = a.s, b === Boolean) a.j = false;
2956
+ else if (b === Number) a.j = 0;
2957
+ else if (b === String) a.j = a.o ? "0" : "";
2958
+ else {
2959
+ a = new b();
2960
+ break a;
2982
2961
  }
2962
+ a = a.j;
2963
+ }
2983
2964
  return a;
2984
2965
  }
2985
2966
  function u(a, b) {
@@ -2999,8 +2980,7 @@ var factoryOutput = (() => {
2999
2980
  }
3000
2981
  function y(a, b) {
3001
2982
  var c = [], d;
3002
- for (d in b)
3003
- 0 != d && c.push(new la(d, b[d]));
2983
+ for (d in b) 0 != d && c.push(new la(d, b[d]));
3004
2984
  return new ta(a, c);
3005
2985
  }
3006
2986
  ;
@@ -3011,18 +2991,13 @@ var factoryOutput = (() => {
3011
2991
  throw Error("Unimplemented");
3012
2992
  };
3013
2993
  z.prototype.h = function(a, b) {
3014
- if (11 == a.h || 10 == a.h)
3015
- return b instanceof p ? b : this.g(a.s.prototype.m(), b);
3016
- if (14 == a.h)
3017
- return "string" === typeof b && xa.test(b) && (a = Number(b), 0 < a) ? a : b;
3018
- if (!a.o)
3019
- return b;
2994
+ if (11 == a.h || 10 == a.h) return b instanceof p ? b : this.g(a.s.prototype.m(), b);
2995
+ if (14 == a.h) return "string" === typeof b && xa.test(b) && (a = Number(b), 0 < a) ? a : b;
2996
+ if (!a.o) return b;
3020
2997
  a = a.s;
3021
2998
  if (a === String) {
3022
- if ("number" === typeof b)
3023
- return String(b);
3024
- } else if (a === Number && "string" === typeof b && ("Infinity" === b || "-Infinity" === b || "NaN" === b || xa.test(b)))
3025
- return Number(b);
2999
+ if ("number" === typeof b) return String(b);
3000
+ } else if (a === Number && "string" === typeof b && ("Infinity" === b || "-Infinity" === b || "NaN" === b || xa.test(b))) return Number(b);
3026
3001
  return b;
3027
3002
  };
3028
3003
  var xa = /^-?[0-9]+$/;
@@ -3054,9 +3029,7 @@ var factoryOutput = (() => {
3054
3029
  };
3055
3030
  D.prototype.g = function(a, b, c) {
3056
3031
  this.h += String(a);
3057
- if (null != b)
3058
- for (let d = 1; d < arguments.length; d++)
3059
- this.h += arguments[d];
3032
+ if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
3060
3033
  return this;
3061
3034
  };
3062
3035
  function E(a) {
@@ -8442,8 +8415,7 @@ var factoryOutput = (() => {
8442
8415
  return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
8443
8416
  }
8444
8417
  function O(a, b) {
8445
- for (var c = new D(), d, e = a.length, f = 0; f < e; ++f)
8446
- d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
8418
+ for (var c = new D(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
8447
8419
  return c.toString();
8448
8420
  }
8449
8421
  function Ya(a) {
@@ -8455,15 +8427,12 @@ var factoryOutput = (() => {
8455
8427
  K.prototype.format = function(a, b) {
8456
8428
  if (0 == r(a, 2) && q(a, 5)) {
8457
8429
  var c = w(a, 5);
8458
- if (0 < c.length)
8459
- return c;
8430
+ if (0 < c.length) return c;
8460
8431
  }
8461
8432
  c = w(a, 1);
8462
8433
  var d = Q(a);
8463
- if (0 == b)
8464
- return Za(c, 0, d, "");
8465
- if (!(c in J))
8466
- return d;
8434
+ if (0 == b) return Za(c, 0, d, "");
8435
+ if (!(c in J)) return d;
8467
8436
  var e = R(this, c, S(c));
8468
8437
  a = q(a, 3) && 0 != r(a, 3).length ? 3 == b ? ";ext=" + r(a, 3) : q(e, 13) ? r(e, 13) + w(a, 3) : " ext. " + w(a, 3) : "";
8469
8438
  a: {
@@ -8490,8 +8459,7 @@ var factoryOutput = (() => {
8490
8459
  return "001" == c ? T(a, "" + b) : T(a, c);
8491
8460
  }
8492
8461
  function Q(a) {
8493
- if (!q(a, 2))
8494
- return "";
8462
+ if (!q(a, 2)) return "";
8495
8463
  var b = "" + r(a, 2);
8496
8464
  return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
8497
8465
  }
@@ -8538,14 +8506,12 @@ var factoryOutput = (() => {
8538
8506
  return V(a, r(b, 1)) ? V(a, r(b, 5)) ? 4 : V(a, r(b, 4)) ? 3 : V(a, r(b, 6)) ? 5 : V(a, r(b, 8)) ? 6 : V(a, r(b, 7)) ? 7 : V(a, r(b, 21)) ? 8 : V(a, r(b, 25)) ? 9 : V(a, r(b, 28)) ? 10 : V(a, r(b, 2)) ? r(b, 18) || V(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && V(a, r(b, 3)) ? 1 : -1 : -1;
8539
8507
  }
8540
8508
  function T(a, b) {
8541
- if (null == b)
8542
- return null;
8509
+ if (null == b) return null;
8543
8510
  b = b.toUpperCase();
8544
8511
  var c = a.g[b];
8545
8512
  if (null == c) {
8546
8513
  c = Da[b];
8547
- if (null == c)
8548
- return null;
8514
+ if (null == c) return null;
8549
8515
  c = new C().g(H.m(), c);
8550
8516
  a.g[b] = c;
8551
8517
  }
@@ -8556,32 +8522,28 @@ var factoryOutput = (() => {
8556
8522
  return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : N(w(b, 2), a);
8557
8523
  }
8558
8524
  function ab(a, b) {
8559
- if (null == b)
8560
- return null;
8525
+ if (null == b) return null;
8561
8526
  var c = w(b, 1);
8562
8527
  c = J[c];
8563
- if (null == c)
8564
- a = null;
8565
- else if (1 == c.length)
8566
- a = c[0];
8567
- else
8568
- a: {
8569
- b = Q(b);
8570
- for (var d, e = c.length, f = 0; f < e; f++) {
8571
- d = c[f];
8572
- var g = T(a, d);
8573
- if (q(g, 23)) {
8574
- if (0 == b.search(r(g, 23))) {
8575
- a = d;
8576
- break a;
8577
- }
8578
- } else if (-1 != $a(b, g)) {
8528
+ if (null == c) a = null;
8529
+ else if (1 == c.length) a = c[0];
8530
+ else a: {
8531
+ b = Q(b);
8532
+ for (var d, e = c.length, f = 0; f < e; f++) {
8533
+ d = c[f];
8534
+ var g = T(a, d);
8535
+ if (q(g, 23)) {
8536
+ if (0 == b.search(r(g, 23))) {
8579
8537
  a = d;
8580
8538
  break a;
8581
8539
  }
8540
+ } else if (-1 != $a(b, g)) {
8541
+ a = d;
8542
+ break a;
8582
8543
  }
8583
- a = null;
8584
8544
  }
8545
+ a = null;
8546
+ }
8585
8547
  return a;
8586
8548
  }
8587
8549
  function S(a) {
@@ -8590,55 +8552,42 @@ var factoryOutput = (() => {
8590
8552
  }
8591
8553
  function bb(a, b) {
8592
8554
  a = T(a, b);
8593
- if (null == a)
8594
- throw Error("Invalid region code: " + b);
8555
+ if (null == a) throw Error("Invalid region code: " + b);
8595
8556
  return w(a, 10);
8596
8557
  }
8597
8558
  function W(a, b, c, d) {
8598
8559
  var e = U(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
8599
8560
  e = u(e, 10);
8600
- if (2 == d)
8601
- if (Xa(U(c, 0)))
8602
- a = U(c, 1), Xa(a) && (f = f.concat(0 == x(a, 9) ? u(r(c, 1), 9) : u(a, 9)), f.sort(), 0 == e.length ? e = u(a, 10) : (e = e.concat(u(a, 10)), e.sort()));
8603
- else
8604
- return W(a, b, c, 1);
8605
- if (-1 == f[0])
8606
- return 5;
8561
+ if (2 == d) if (Xa(U(c, 0))) a = U(c, 1), Xa(a) && (f = f.concat(0 == x(a, 9) ? u(r(c, 1), 9) : u(a, 9)), f.sort(), 0 == e.length ? e = u(a, 10) : (e = e.concat(u(a, 10)), e.sort()));
8562
+ else return W(a, b, c, 1);
8563
+ if (-1 == f[0]) return 5;
8607
8564
  b = b.length;
8608
- if (-1 < e.indexOf(b))
8609
- return 4;
8565
+ if (-1 < e.indexOf(b)) return 4;
8610
8566
  c = f[0];
8611
8567
  return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
8612
8568
  }
8613
8569
  function X(a, b, c) {
8614
8570
  var d = Q(b);
8615
8571
  b = w(b, 1);
8616
- if (!(b in J))
8617
- return 1;
8572
+ if (!(b in J)) return 1;
8618
8573
  b = R(a, b, S(b));
8619
8574
  return W(a, d, b, c);
8620
8575
  }
8621
8576
  function cb(a, b) {
8622
8577
  a = a.toString();
8623
- if (0 == a.length || "0" == a.charAt(0))
8624
- return 0;
8625
- for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e)
8626
- if (c = parseInt(a.substring(0, e), 10), c in J)
8627
- return b.g(a.substring(e)), c;
8578
+ if (0 == a.length || "0" == a.charAt(0)) return 0;
8579
+ for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in J) return b.g(a.substring(e)), c;
8628
8580
  return 0;
8629
8581
  }
8630
8582
  function db(a, b, c, d, e, f) {
8631
- if (0 == b.length)
8632
- return 0;
8583
+ if (0 == b.length) return 0;
8633
8584
  b = new D(b);
8634
8585
  var g;
8635
8586
  null != c && (g = r(c, 11));
8636
8587
  null == g && (g = "NonMatch");
8637
8588
  var h = b.toString();
8638
- if (0 == h.length)
8639
- g = 20;
8640
- else if (L.test(h))
8641
- h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
8589
+ if (0 == h.length) g = 20;
8590
+ else if (L.test(h)) h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
8642
8591
  else {
8643
8592
  h = new RegExp(g);
8644
8593
  Wa(b);
@@ -8647,21 +8596,17 @@ var factoryOutput = (() => {
8647
8596
  h = g.match(h)[0].length;
8648
8597
  var l = g.substring(h).match(Ia);
8649
8598
  l && null != l[1] && 0 < l[1].length && "0" == O(l[1], Ea) ? g = false : (E(b), b.g(g.substring(h)), g = true);
8650
- } else
8651
- g = false;
8599
+ } else g = false;
8652
8600
  g = g ? 5 : 20;
8653
8601
  }
8654
8602
  e && t(f, 6, g);
8655
8603
  if (20 != g) {
8656
- if (2 >= b.h.length)
8657
- throw Error("Phone number too short after IDD");
8604
+ if (2 >= b.h.length) throw Error("Phone number too short after IDD");
8658
8605
  a = cb(b, d);
8659
- if (0 != a)
8660
- return t(f, 1, a), a;
8606
+ if (0 != a) return t(f, 1, a), a;
8661
8607
  throw Error("Invalid country calling code");
8662
8608
  }
8663
- if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), eb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1))))
8664
- return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
8609
+ if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), eb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
8665
8610
  t(f, 1, 0);
8666
8611
  return 0;
8667
8612
  }
@@ -8674,46 +8619,36 @@ var factoryOutput = (() => {
8674
8619
  var h = N(f, d), l = e.length - 1;
8675
8620
  b = r(b, 16);
8676
8621
  if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
8677
- if (!h || N(f, d.substring(e[0].length)))
8678
- null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
8679
- } else if (d = d.replace(g, b), !h || N(f, d))
8680
- null != c && 0 < l && c.g(e[1]), a.set(d);
8622
+ if (!h || N(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
8623
+ } else if (d = d.replace(g, b), !h || N(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
8681
8624
  }
8682
8625
  }
8683
8626
  }
8684
8627
  function Y(a, b, c) {
8685
- if (!P(c) && 0 < b.length && "+" != b.charAt(0))
8686
- throw Error("Invalid country calling code");
8628
+ if (!P(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
8687
8629
  return fb(a, b, c, true);
8688
8630
  }
8689
8631
  function fb(a, b, c, d) {
8690
- if (null == b)
8691
- throw Error("The string supplied did not seem to be a phone number");
8692
- if (250 < b.length)
8693
- throw Error("The string supplied is too long to be a phone number");
8632
+ if (null == b) throw Error("The string supplied did not seem to be a phone number");
8633
+ if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
8694
8634
  var e = new D();
8695
8635
  var f = b.indexOf(";phone-context=");
8696
- if (-1 === f)
8697
- f = null;
8698
- else if (f += 15, f >= b.length)
8699
- f = "";
8636
+ if (-1 === f) f = null;
8637
+ else if (f += 15, f >= b.length) f = "";
8700
8638
  else {
8701
8639
  var g = b.indexOf(";", f);
8702
8640
  f = -1 !== g ? b.substring(f, g) : b.substring(f);
8703
8641
  }
8704
8642
  var h = f;
8705
8643
  null == h ? g = true : 0 === h.length ? g = false : (g = Na.exec(h), h = Oa.exec(h), g = null !== g || null !== h);
8706
- if (!g)
8707
- throw Error("The string supplied did not seem to be a phone number");
8644
+ if (!g) throw Error("The string supplied did not seem to be a phone number");
8708
8645
  null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(Ja), 0 <= h ? (g = g.substring(h), g = g.replace(La, ""), h = g.search(Ka), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
8709
8646
  f = e.toString();
8710
8647
  g = f.indexOf(";isub=");
8711
8648
  0 < g && (E(e), e.g(f.substring(0, g)));
8712
- if (!Ua(e.toString()))
8713
- throw Error("The string supplied did not seem to be a phone number");
8649
+ if (!Ua(e.toString())) throw Error("The string supplied did not seem to be a phone number");
8714
8650
  f = e.toString();
8715
- if (!(P(c) || null != f && 0 < f.length && L.test(f)))
8716
- throw Error("Invalid country calling code");
8651
+ if (!(P(c) || null != f && 0 < f.length && L.test(f))) throw Error("Invalid country calling code");
8717
8652
  f = new I();
8718
8653
  d && t(f, 5, b);
8719
8654
  a: {
@@ -8721,13 +8656,12 @@ var factoryOutput = (() => {
8721
8656
  g = b.search(Qa);
8722
8657
  if (0 <= g && Ua(b.substring(0, g))) {
8723
8658
  h = b.match(Qa);
8724
- for (var l = h.length, A = 1; A < l; ++A)
8725
- if (null != h[A] && 0 < h[A].length) {
8726
- E(e);
8727
- e.g(b.substring(0, g));
8728
- b = h[A];
8729
- break a;
8730
- }
8659
+ for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
8660
+ E(e);
8661
+ e.g(b.substring(0, g));
8662
+ b = h[A];
8663
+ break a;
8664
+ }
8731
8665
  }
8732
8666
  b = "";
8733
8667
  }
@@ -8740,29 +8674,23 @@ var factoryOutput = (() => {
8740
8674
  h = db(a, l, g, b, d, f);
8741
8675
  } catch (ca) {
8742
8676
  if ("Invalid country calling code" == ca.message && L.test(l)) {
8743
- if (l = l.replace(L, ""), h = db(a, l, g, b, d, f), 0 == h)
8744
- throw ca;
8745
- } else
8746
- throw ca;
8677
+ if (l = l.replace(L, ""), h = db(a, l, g, b, d, f), 0 == h) throw ca;
8678
+ } else throw ca;
8747
8679
  }
8748
8680
  0 != h ? (e = S(h), e != c && (g = R(a, h, e))) : (Wa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
8749
8681
  f,
8750
8682
  1,
8751
8683
  h
8752
8684
  )) : d && (delete f.h[6], f.g && delete f.g[6]));
8753
- if (2 > b.h.length)
8754
- throw Error("The string supplied is too short to be a phone number");
8685
+ if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
8755
8686
  null != g && (c = new D(), e = new D(b.toString()), eb(e, g, c), a = W(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
8756
8687
  d = b.toString();
8757
8688
  a = d.length;
8758
- if (2 > a)
8759
- throw Error("The string supplied is too short to be a phone number");
8760
- if (17 < a)
8761
- throw Error("The string supplied is too long to be a phone number");
8689
+ if (2 > a) throw Error("The string supplied is too short to be a phone number");
8690
+ if (17 < a) throw Error("The string supplied is too long to be a phone number");
8762
8691
  if (1 < d.length && "0" == d.charAt(0)) {
8763
8692
  t(f, 4, true);
8764
- for (a = 1; a < d.length - 1 && "0" == d.charAt(a); )
8765
- a++;
8693
+ for (a = 1; a < d.length - 1 && "0" == d.charAt(a); ) a++;
8766
8694
  1 != a && t(f, 8, a);
8767
8695
  }
8768
8696
  t(f, 2, parseInt(d, 10));
@@ -8803,8 +8731,7 @@ var factoryOutput = (() => {
8803
8731
  function lb(a) {
8804
8732
  for (var b = a.j.length, c = 0; c < b; ++c) {
8805
8733
  var d = a.j[c], e = w(d, 1);
8806
- if (a.da == e)
8807
- return false;
8734
+ if (a.da == e) return false;
8808
8735
  var f = a;
8809
8736
  var g = d, h = w(g, 1);
8810
8737
  E(f.v);
@@ -8813,8 +8740,7 @@ var factoryOutput = (() => {
8813
8740
  var A = "999999999999999".match(h)[0];
8814
8741
  A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
8815
8742
  0 < l.length ? (f.v.g(l), f = true) : f = false;
8816
- if (f)
8817
- return a.da = e, a.ha = kb.test(r(d, 4)), a.$ = 0, true;
8743
+ if (f) return a.da = e, a.ha = kb.test(r(d, 4)), a.$ = 0, true;
8818
8744
  }
8819
8745
  return a.u = false;
8820
8746
  }
@@ -8832,10 +8758,8 @@ var factoryOutput = (() => {
8832
8758
  if (!a.u) {
8833
8759
  if (!a.la) {
8834
8760
  if (ob(a)) {
8835
- if (pb(a))
8836
- return qb(a);
8837
- } else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != rb(a))
8838
- return a.h.g(" "), qb(a);
8761
+ if (pb(a)) return qb(a);
8762
+ } else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != rb(a)) return a.h.g(" "), qb(a);
8839
8763
  }
8840
8764
  return a.s.toString();
8841
8765
  }
@@ -8845,18 +8769,14 @@ var factoryOutput = (() => {
8845
8769
  case 2:
8846
8770
  return a.s.toString();
8847
8771
  case 3:
8848
- if (ob(a))
8849
- a.ea = true;
8850
- else
8851
- return a.o = rb(a), sb(a);
8772
+ if (ob(a)) a.ea = true;
8773
+ else return a.o = rb(a), sb(a);
8852
8774
  default:
8853
- if (a.ea)
8854
- return pb(a) && (a.ea = false), a.h.toString() + a.g.toString();
8775
+ if (a.ea) return pb(a) && (a.ea = false), a.h.toString() + a.g.toString();
8855
8776
  if (0 < a.j.length) {
8856
8777
  b = tb(a, b);
8857
8778
  c = ub(a);
8858
- if (0 < c.length)
8859
- return c;
8779
+ if (0 < c.length) return c;
8860
8780
  mb(a, a.g.toString());
8861
8781
  return lb(a) ? vb(a) : a.u ? Z(a, b) : a.s.toString();
8862
8782
  }
@@ -8875,8 +8795,7 @@ var factoryOutput = (() => {
8875
8795
  function ub(a) {
8876
8796
  for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
8877
8797
  var e = a.j[d], f = w(e, 1);
8878
- if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = kb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba))
8879
- return e;
8798
+ if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = kb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba)) return e;
8880
8799
  }
8881
8800
  return "";
8882
8801
  }
@@ -8900,18 +8819,15 @@ var factoryOutput = (() => {
8900
8819
  function vb(a) {
8901
8820
  var b = a.g.toString(), c = b.length;
8902
8821
  if (0 < c) {
8903
- for (var d = "", e = 0; e < c; e++)
8904
- d = tb(a, b.charAt(e));
8822
+ for (var d = "", e = 0; e < c; e++) d = tb(a, b.charAt(e));
8905
8823
  return a.u ? Z(a, d) : a.s.toString();
8906
8824
  }
8907
8825
  return a.h.toString();
8908
8826
  }
8909
8827
  function rb(a) {
8910
8828
  var b = a.g.toString(), c = 0;
8911
- if (1 != r(a.l, 10))
8912
- var d = false;
8913
- else
8914
- d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
8829
+ if (1 != r(a.l, 10)) var d = false;
8830
+ else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
8915
8831
  d ? (c = 1, a.h.g("1").g(" "), a.ca = true) : q(a.l, 15) && (d = new RegExp("^(?:" + r(a.l, 15) + ")"), d = b.match(d), null != d && null != d[0] && 0 < d[0].length && (a.ca = true, c = d[0].length, a.h.g(b.substring(0, c))));
8916
8832
  E(a.g);
8917
8833
  a.g.g(b.substring(c));
@@ -8923,11 +8839,9 @@ var factoryOutput = (() => {
8923
8839
  return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, E(a.g), a.g.g(b.substring(c)), E(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
8924
8840
  }
8925
8841
  function pb(a) {
8926
- if (0 == a.g.h.length)
8927
- return false;
8842
+ if (0 == a.g.h.length) return false;
8928
8843
  var b = new D(), c = cb(a.g, b);
8929
- if (0 == c)
8930
- return false;
8844
+ if (0 == c) return false;
8931
8845
  E(a.g);
8932
8846
  a.g.g(b.toString());
8933
8847
  b = S(c);
@@ -8957,8 +8871,7 @@ var factoryOutput = (() => {
8957
8871
  try {
8958
8872
  const c = a.replace(/[^+0-9]/g, ""), d = new gb(b);
8959
8873
  b = "";
8960
- for (let e = 0; e < c.length; e++)
8961
- d.ja = nb(d, c.charAt(e)), b = d.ja;
8874
+ for (let e = 0; e < c.length; e++) d.ja = nb(d, c.charAt(e)), b = d.ja;
8962
8875
  return b;
8963
8876
  } catch (c) {
8964
8877
  return a;
@@ -9007,8 +8920,7 @@ var factoryOutput = (() => {
9007
8920
  try {
9008
8921
  const g = K.g(), h = Y(g, a, b);
9009
8922
  var c = ab(g, h), d = R(g, w(h, 1), c);
9010
- if (null == d)
9011
- var e = -1;
8923
+ if (null == d) var e = -1;
9012
8924
  else {
9013
8925
  var f = Q(h);
9014
8926
  e = $a(f, d);
@@ -9032,8 +8944,7 @@ var factoryOutput = (() => {
9032
8944
  var c = Y(l, a, b), d = ab(l, c);
9033
8945
  a = l;
9034
8946
  var e = w(c, 1), f = R(a, e, d);
9035
- if (null == f || "001" != d && e != bb(a, d))
9036
- var g = false;
8947
+ if (null == f || "001" != d && e != bb(a, d)) var g = false;
9037
8948
  else {
9038
8949
  var h = Q(c);
9039
8950
  g = -1 != $a(h, f);