intl-tel-input 24.8.1 → 25.0.0

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
- import { mergeModels as i2, useModel as T2, ref as I1, onMounted as N2, watch as A2, onUnmounted as E2, withDirectives as D2, openBlock as M2, createElementBlock as P2, mergeProps as x2, vModelText as R2 } from "vue";
2
- const n2 = [
1
+ import { mergeModels as i2, useModel as A2, ref as I1, onMounted as E2, watch as D2, onUnmounted as M2, withDirectives as P2, openBlock as x2, createElementBlock as R2, mergeProps as B2, vModelText as k2 } from "vue";
2
+ const r2 = [
3
3
  [
4
4
  "af",
5
5
  // Afghanistan
@@ -1306,19 +1306,19 @@ const n2 = [
1306
1306
  "263"
1307
1307
  ]
1308
1308
  ], H = [];
1309
- for (let y = 0; y < n2.length; y++) {
1310
- const e = n2[y];
1309
+ for (let y = 0; y < r2.length; y++) {
1310
+ const $ = r2[y];
1311
1311
  H[y] = {
1312
1312
  name: "",
1313
1313
  // this is now populated in the plugin
1314
- iso2: e[0],
1315
- dialCode: e[1],
1316
- priority: e[2] || 0,
1317
- areaCodes: e[3] || null,
1314
+ iso2: $[0],
1315
+ dialCode: $[1],
1316
+ priority: $[2] || 0,
1317
+ areaCodes: $[3] || null,
1318
1318
  nodeById: {}
1319
1319
  };
1320
1320
  }
1321
- const B2 = {
1321
+ const O2 = {
1322
1322
  ad: "Andorra",
1323
1323
  ae: "United Arab Emirates",
1324
1324
  af: "Afghanistan",
@@ -1561,7 +1561,7 @@ const B2 = {
1561
1561
  za: "South Africa",
1562
1562
  zm: "Zambia",
1563
1563
  zw: "Zimbabwe"
1564
- }, k2 = {
1564
+ }, G2 = {
1565
1565
  selectedCountryAriaLabel: "Selected country",
1566
1566
  noCountrySelected: "No country selected",
1567
1567
  countryListAriaLabel: "List of countries",
@@ -1572,11 +1572,11 @@ const B2 = {
1572
1572
  // additional countries (not supported by country-list library)
1573
1573
  ac: "Ascension Island",
1574
1574
  xk: "Kosovo"
1575
- }, o2 = { ...B2, ...k2 };
1575
+ }, u2 = { ...O2, ...G2 };
1576
1576
  for (let y = 0; y < H.length; y++)
1577
- H[y].name = o2[H[y].iso2];
1578
- let O2 = 0;
1579
- const u2 = {
1577
+ H[y].name = u2[H[y].iso2];
1578
+ let F2 = 0;
1579
+ const l2 = {
1580
1580
  //* Whether or not to allow the dropdown.
1581
1581
  allowDropdown: !0,
1582
1582
  //* Add a placeholder in the input with an example number for the selected country.
@@ -1607,8 +1607,8 @@ const u2 = {
1607
1607
  i18n: {},
1608
1608
  //* Initial country.
1609
1609
  initialCountry: "",
1610
- //* Specify the path to the libphonenumber script to enable validation/formatting.
1611
- loadUtilsOnInit: "",
1610
+ //* A function to load the utils script.
1611
+ loadUtils: null,
1612
1612
  //* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
1613
1613
  nationalMode: !0,
1614
1614
  //* Display only these countries.
@@ -1629,11 +1629,9 @@ const u2 = {
1629
1629
  navigator.userAgent
1630
1630
  ) || window.innerWidth <= 500
1631
1631
  ) : !1,
1632
- //* Deprecated! Use `loadUtilsOnInit` instead.
1633
- utilsScript: "",
1634
1632
  //* The number type to enforce during validation.
1635
- validationNumberType: "MOBILE"
1636
- }, G2 = [
1633
+ validationNumberTypes: ["MOBILE"]
1634
+ }, U2 = [
1637
1635
  "800",
1638
1636
  "822",
1639
1637
  "833",
@@ -1651,46 +1649,46 @@ const u2 = {
1651
1649
  "887",
1652
1650
  "888",
1653
1651
  "889"
1654
- ], f1 = (y) => y.replace(/\D/g, ""), r2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), s2 = (y) => {
1655
- const e = f1(y);
1656
- if (e.charAt(0) === "1") {
1657
- const i = e.substr(1, 3);
1658
- return G2.indexOf(i) !== -1;
1652
+ ], c1 = (y) => y.replace(/\D/g, ""), s2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), o2 = (y) => {
1653
+ const $ = c1(y);
1654
+ if ($.charAt(0) === "1") {
1655
+ const n = $.substr(1, 3);
1656
+ return U2.indexOf(n) !== -1;
1659
1657
  }
1660
1658
  return !1;
1661
- }, U2 = (y, e, i, n) => {
1662
- if (i === 0 && !n)
1659
+ }, V2 = (y, $, n, i) => {
1660
+ if (n === 0 && !i)
1663
1661
  return 0;
1664
1662
  let o = 0;
1665
- for (let a = 0; a < e.length; a++) {
1666
- if (/[+0-9]/.test(e[a]) && o++, o === y && !n)
1663
+ for (let a = 0; a < $.length; a++) {
1664
+ if (/[+0-9]/.test($[a]) && o++, o === y && !i)
1667
1665
  return a + 1;
1668
- if (n && o === y + 1)
1666
+ if (i && o === y + 1)
1669
1667
  return a;
1670
1668
  }
1671
- return e.length;
1672
- }, A = (y, e, i) => {
1673
- const n = document.createElement(y);
1674
- return e && Object.entries(e).forEach(([o, a]) => n.setAttribute(o, a)), i && i.appendChild(n), n;
1675
- }, $1 = (y, ...e) => {
1676
- const { instances: i } = m;
1677
- Object.values(i).forEach((n) => n[y](...e));
1669
+ return $.length;
1670
+ }, A = (y, $, n) => {
1671
+ const i = document.createElement(y);
1672
+ return $ && Object.entries($).forEach(([o, a]) => i.setAttribute(o, a)), n && n.appendChild(i), i;
1673
+ }, e1 = (y, ...$) => {
1674
+ const { instances: n } = C;
1675
+ Object.values(n).forEach((i) => i[y](...$));
1678
1676
  };
1679
- class F2 {
1680
- constructor(e, i = {}) {
1681
- this.id = O2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, u2, i), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1677
+ class K2 {
1678
+ constructor($, n = {}) {
1679
+ this.id = F2++, this.telInput = $, this.highlightedItem = null, this.options = Object.assign({}, l2, n), this.hadInitialPlaceholder = !!$.getAttribute("placeholder");
1682
1680
  }
1683
1681
  //* Can't be private as it's called from intlTelInput convenience wrapper.
1684
1682
  _init() {
1685
1683
  this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
1686
- const e = this.options.allowDropdown || this.options.separateDialCode;
1687
- this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...o2, ...this.options.i18n };
1688
- const i = new Promise((o, a) => {
1684
+ const $ = this.options.allowDropdown || this.options.separateDialCode;
1685
+ this.showSelectedCountryOnLeft = this.isRTL ? !$ : $, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...u2, ...this.options.i18n };
1686
+ const n = new Promise((o, a) => {
1689
1687
  this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = a;
1690
- }), n = new Promise((o, a) => {
1688
+ }), i = new Promise((o, a) => {
1691
1689
  this.resolveUtilsScriptPromise = o, this.rejectUtilsScriptPromise = a;
1692
1690
  });
1693
- this.promise = Promise.all([i, n]), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
1691
+ this.promise = Promise.all([n, i]), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
1694
1692
  }
1695
1693
  //********************
1696
1694
  //* PRIVATE METHODS
@@ -1701,70 +1699,70 @@ class F2 {
1701
1699
  }
1702
1700
  //* Sort countries by countryOrder option (if present), then name.
1703
1701
  _sortCountries() {
1704
- this.options.countryOrder && (this.options.countryOrder = this.options.countryOrder.map((e) => e.toLowerCase())), this.countries.sort((e, i) => {
1705
- const { countryOrder: n } = this.options;
1706
- if (n) {
1707
- const o = n.indexOf(e.iso2), a = n.indexOf(i.iso2), c = o > -1, g = a > -1;
1702
+ this.options.countryOrder && (this.options.countryOrder = this.options.countryOrder.map(($) => $.toLowerCase())), this.countries.sort(($, n) => {
1703
+ const { countryOrder: i } = this.options;
1704
+ if (i) {
1705
+ const o = i.indexOf($.iso2), a = i.indexOf(n.iso2), c = o > -1, g = a > -1;
1708
1706
  if (c || g)
1709
1707
  return c && g ? o - a : c ? -1 : 1;
1710
1708
  }
1711
- return e.name.localeCompare(i.name);
1709
+ return $.name.localeCompare(n.name);
1712
1710
  });
1713
1711
  }
1714
1712
  //* Add a dial code to this.dialCodeToIso2Map.
1715
- _addToDialCodeMap(e, i, n) {
1716
- i.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = i.length), this.dialCodeToIso2Map.hasOwnProperty(i) || (this.dialCodeToIso2Map[i] = []);
1717
- for (let a = 0; a < this.dialCodeToIso2Map[i].length; a++)
1718
- if (this.dialCodeToIso2Map[i][a] === e)
1713
+ _addToDialCodeMap($, n, i) {
1714
+ n.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = n.length), this.dialCodeToIso2Map.hasOwnProperty(n) || (this.dialCodeToIso2Map[n] = []);
1715
+ for (let a = 0; a < this.dialCodeToIso2Map[n].length; a++)
1716
+ if (this.dialCodeToIso2Map[n][a] === $)
1719
1717
  return;
1720
- const o = n !== void 0 ? n : this.dialCodeToIso2Map[i].length;
1721
- this.dialCodeToIso2Map[i][o] = e;
1718
+ const o = i !== void 0 ? i : this.dialCodeToIso2Map[n].length;
1719
+ this.dialCodeToIso2Map[n][o] = $;
1722
1720
  }
1723
1721
  //* Process onlyCountries or excludeCountries array if present.
1724
1722
  _processAllCountries() {
1725
- const { onlyCountries: e, excludeCountries: i } = this.options;
1726
- if (e.length) {
1727
- const n = e.map(
1723
+ const { onlyCountries: $, excludeCountries: n } = this.options;
1724
+ if ($.length) {
1725
+ const i = $.map(
1728
1726
  (o) => o.toLowerCase()
1729
1727
  );
1730
1728
  this.countries = H.filter(
1731
- (o) => n.indexOf(o.iso2) > -1
1729
+ (o) => i.indexOf(o.iso2) > -1
1732
1730
  );
1733
- } else if (i.length) {
1734
- const n = i.map(
1731
+ } else if (n.length) {
1732
+ const i = n.map(
1735
1733
  (o) => o.toLowerCase()
1736
1734
  );
1737
1735
  this.countries = H.filter(
1738
- (o) => n.indexOf(o.iso2) === -1
1736
+ (o) => i.indexOf(o.iso2) === -1
1739
1737
  );
1740
1738
  } else
1741
1739
  this.countries = H;
1742
1740
  }
1743
1741
  //* Translate Countries by object literal provided on config.
1744
1742
  _translateCountryNames() {
1745
- for (let e = 0; e < this.countries.length; e++) {
1746
- const i = this.countries[e].iso2.toLowerCase();
1747
- this.options.i18n.hasOwnProperty(i) && (this.countries[e].name = this.options.i18n[i]);
1743
+ for (let $ = 0; $ < this.countries.length; $++) {
1744
+ const n = this.countries[$].iso2.toLowerCase();
1745
+ this.options.i18n.hasOwnProperty(n) && (this.countries[$].name = this.options.i18n[n]);
1748
1746
  }
1749
1747
  }
1750
1748
  //* Generate this.dialCodes and this.dialCodeToIso2Map.
1751
1749
  _processDialCodes() {
1752
1750
  this.dialCodes = {}, this.dialCodeMaxLen = 0, this.dialCodeToIso2Map = {};
1753
- for (let e = 0; e < this.countries.length; e++) {
1754
- const i = this.countries[e];
1755
- this.dialCodes[i.dialCode] || (this.dialCodes[i.dialCode] = !0), this._addToDialCodeMap(i.iso2, i.dialCode, i.priority);
1751
+ for (let $ = 0; $ < this.countries.length; $++) {
1752
+ const n = this.countries[$];
1753
+ this.dialCodes[n.dialCode] || (this.dialCodes[n.dialCode] = !0), this._addToDialCodeMap(n.iso2, n.dialCode, n.priority);
1756
1754
  }
1757
- for (let e = 0; e < this.countries.length; e++) {
1758
- const i = this.countries[e];
1759
- if (i.areaCodes) {
1760
- const n = this.dialCodeToIso2Map[i.dialCode][0];
1761
- for (let o = 0; o < i.areaCodes.length; o++) {
1762
- const a = i.areaCodes[o];
1755
+ for (let $ = 0; $ < this.countries.length; $++) {
1756
+ const n = this.countries[$];
1757
+ if (n.areaCodes) {
1758
+ const i = this.dialCodeToIso2Map[n.dialCode][0];
1759
+ for (let o = 0; o < n.areaCodes.length; o++) {
1760
+ const a = n.areaCodes[o];
1763
1761
  for (let c = 1; c < a.length; c++) {
1764
- const g = i.dialCode + a.substr(0, c);
1765
- this._addToDialCodeMap(n, g), this._addToDialCodeMap(i.iso2, g);
1762
+ const g = n.dialCode + a.substr(0, c);
1763
+ this._addToDialCodeMap(i, g), this._addToDialCodeMap(n.iso2, g);
1766
1764
  }
1767
- this._addToDialCodeMap(i.iso2, i.dialCode + a);
1765
+ this._addToDialCodeMap(n.iso2, n.dialCode + a);
1768
1766
  }
1769
1767
  }
1770
1768
  }
@@ -1774,9 +1772,9 @@ class F2 {
1774
1772
  var v;
1775
1773
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
1776
1774
  const {
1777
- allowDropdown: e,
1778
- separateDialCode: i,
1779
- showFlags: n,
1775
+ allowDropdown: $,
1776
+ separateDialCode: n,
1777
+ showFlags: i,
1780
1778
  containerClass: o,
1781
1779
  hiddenInput: a,
1782
1780
  dropdownContainer: c,
@@ -1786,14 +1784,14 @@ class F2 {
1786
1784
  i18n: _
1787
1785
  } = this.options;
1788
1786
  let I = "iti";
1789
- e && (I += " iti--allow-dropdown"), n && (I += " iti--show-flags"), o && (I += ` ${o}`), f || (I += " iti--inline-dropdown");
1787
+ $ && (I += " iti--allow-dropdown"), i && (I += " iti--show-flags"), o && (I += ` ${o}`), f || (I += " iti--inline-dropdown");
1790
1788
  const L = A("div", { class: I });
1791
- if ((v = this.telInput.parentNode) == null || v.insertBefore(L, this.telInput), e || n || i) {
1789
+ if ((v = this.telInput.parentNode) == null || v.insertBefore(L, this.telInput), $ || i || n) {
1792
1790
  this.countryContainer = A(
1793
1791
  "div",
1794
1792
  { class: "iti__country-container" },
1795
1793
  L
1796
- ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = A(
1794
+ ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", $ ? (this.selectedCountry = A(
1797
1795
  "button",
1798
1796
  {
1799
1797
  type: "button",
@@ -1810,20 +1808,20 @@ class F2 {
1810
1808
  { class: "iti__selected-country" },
1811
1809
  this.countryContainer
1812
1810
  );
1813
- const T = A("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1814
- if (this.selectedCountryInner = A("div", { class: "iti__flag" }, T), this.selectedCountryA11yText = A(
1811
+ const N = A("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1812
+ if (this.selectedCountryInner = A("div", { class: "iti__flag" }, N), this.selectedCountryA11yText = A(
1815
1813
  "span",
1816
1814
  { class: "iti__a11y-text" },
1817
1815
  this.selectedCountryInner
1818
- ), e && (this.dropdownArrow = A(
1816
+ ), $ && (this.dropdownArrow = A(
1819
1817
  "div",
1820
1818
  { class: "iti__arrow", "aria-hidden": "true" },
1821
- T
1822
- )), i && (this.selectedDialCode = A(
1819
+ N
1820
+ )), n && (this.selectedDialCode = A(
1823
1821
  "div",
1824
1822
  { class: "iti__selected-dial-code" },
1825
1823
  this.selectedCountry
1826
- )), e) {
1824
+ )), $) {
1827
1825
  const M = g ? "" : "iti--flexible-dropdown-width";
1828
1826
  if (this.dropdownContent = A("div", {
1829
1827
  id: `iti-${this.id}__dropdown-content`,
@@ -1863,7 +1861,7 @@ class F2 {
1863
1861
  }
1864
1862
  }
1865
1863
  if (L.appendChild(this.telInput), this._updateInputPadding(), a) {
1866
- const T = this.telInput.getAttribute("name") || "", M = a(T);
1864
+ const N = this.telInput.getAttribute("name") || "", M = a(N);
1867
1865
  M.phone && (this.hiddenInput = A("input", {
1868
1866
  type: "hidden",
1869
1867
  name: M.phone
@@ -1875,33 +1873,33 @@ class F2 {
1875
1873
  }
1876
1874
  //* For each country: add a country list item <li> to the countryList <ul> container.
1877
1875
  _appendListItems() {
1878
- for (let e = 0; e < this.countries.length; e++) {
1879
- const i = this.countries[e], n = e === 0 ? "iti__highlight" : "", o = A(
1876
+ for (let $ = 0; $ < this.countries.length; $++) {
1877
+ const n = this.countries[$], i = $ === 0 ? "iti__highlight" : "", o = A(
1880
1878
  "li",
1881
1879
  {
1882
- id: `iti-${this.id}__item-${i.iso2}`,
1883
- class: `iti__country ${n}`,
1880
+ id: `iti-${this.id}__item-${n.iso2}`,
1881
+ class: `iti__country ${i}`,
1884
1882
  tabindex: "-1",
1885
1883
  role: "option",
1886
- "data-dial-code": i.dialCode,
1887
- "data-country-code": i.iso2,
1884
+ "data-dial-code": n.dialCode,
1885
+ "data-country-code": n.iso2,
1888
1886
  "aria-selected": "false"
1889
1887
  },
1890
1888
  this.countryList
1891
1889
  );
1892
- i.nodeById[this.id] = o;
1890
+ n.nodeById[this.id] = o;
1893
1891
  let a = "";
1894
- this.options.showFlags && (a += `<div class='iti__flag iti__${i.iso2}'></div>`), a += `<span class='iti__country-name'>${i.name}</span>`, a += `<span class='iti__dial-code'>+${i.dialCode}</span>`, o.insertAdjacentHTML("beforeend", a);
1892
+ this.options.showFlags && (a += `<div class='iti__flag iti__${n.iso2}'></div>`), a += `<span class='iti__country-name'>${n.name}</span>`, a += `<span class='iti__dial-code'>+${n.dialCode}</span>`, o.insertAdjacentHTML("beforeend", a);
1895
1893
  }
1896
1894
  }
1897
1895
  //* Set the initial state of the input value and the selected country by:
1898
1896
  //* 1. Extracting a dial code from the given number
1899
1897
  //* 2. Using explicit initialCountry
1900
- _setInitialState(e = !1) {
1901
- const i = this.telInput.getAttribute("value"), n = this.telInput.value, a = i && i.charAt(0) === "+" && (!n || n.charAt(0) !== "+") ? i : n, c = this._getDialCode(a), g = s2(a), { initialCountry: f, geoIpLookup: b } = this.options, _ = f === "auto" && b;
1898
+ _setInitialState($ = !1) {
1899
+ const n = this.telInput.getAttribute("value"), i = this.telInput.value, a = n && n.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? n : i, c = this._getDialCode(a), g = o2(a), { initialCountry: f, geoIpLookup: b } = this.options, _ = f === "auto" && b;
1902
1900
  if (c && !g)
1903
1901
  this._updateCountryFromNumber(a);
1904
- else if (!_ || e) {
1902
+ else if (!_ || $) {
1905
1903
  const I = f ? f.toLowerCase() : "";
1906
1904
  I && this._getCountryData(I, !0) ? this._setCountry(I) : c && g ? this._setCountry("us") : this._setCountry();
1907
1905
  }
@@ -1913,24 +1911,24 @@ class F2 {
1913
1911
  }
1914
1912
  //* Update hidden input on form submit.
1915
1913
  _initHiddenInputListener() {
1916
- var e;
1914
+ var $;
1917
1915
  this._handleHiddenInputSubmit = () => {
1918
1916
  this.hiddenInput && (this.hiddenInput.value = this.getNumber()), this.hiddenInputCountry && (this.hiddenInputCountry.value = this.getSelectedCountryData().iso2 || "");
1919
- }, (e = this.telInput.form) == null || e.addEventListener(
1917
+ }, ($ = this.telInput.form) == null || $.addEventListener(
1920
1918
  "submit",
1921
1919
  this._handleHiddenInputSubmit
1922
1920
  );
1923
1921
  }
1924
1922
  //* initialise the dropdown listeners.
1925
1923
  _initDropdownListeners() {
1926
- this._handleLabelClick = (i) => {
1927
- this.dropdownContent.classList.contains("iti__hide") ? this.telInput.focus() : i.preventDefault();
1924
+ this._handleLabelClick = (n) => {
1925
+ this.dropdownContent.classList.contains("iti__hide") ? this.telInput.focus() : n.preventDefault();
1928
1926
  };
1929
- const e = this.telInput.closest("label");
1930
- e && e.addEventListener("click", this._handleLabelClick), this._handleClickSelectedCountry = () => {
1927
+ const $ = this.telInput.closest("label");
1928
+ $ && $.addEventListener("click", this._handleLabelClick), this._handleClickSelectedCountry = () => {
1931
1929
  this.dropdownContent.classList.contains("iti__hide") && !this.telInput.disabled && !this.telInput.readOnly && this._openDropdown();
1932
- }, this.selectedCountry.addEventListener("click", this._handleClickSelectedCountry), this._handleCountryContainerKeydown = (i) => {
1933
- this.dropdownContent.classList.contains("iti__hide") && ["ArrowUp", "ArrowDown", " ", "Enter"].includes(i.key) && (i.preventDefault(), i.stopPropagation(), this._openDropdown()), i.key === "Tab" && this._closeDropdown();
1930
+ }, this.selectedCountry.addEventListener("click", this._handleClickSelectedCountry), this._handleCountryContainerKeydown = (n) => {
1931
+ this.dropdownContent.classList.contains("iti__hide") && ["ArrowUp", "ArrowDown", " ", "Enter"].includes(n.key) && (n.preventDefault(), n.stopPropagation(), this._openDropdown()), n.key === "Tab" && this._closeDropdown();
1934
1932
  }, this.countryContainer.addEventListener(
1935
1933
  "keydown",
1936
1934
  this._handleCountryContainerKeydown
@@ -1938,22 +1936,22 @@ class F2 {
1938
1936
  }
1939
1937
  //* Init many requests: utils script / geo ip lookup.
1940
1938
  _initRequests() {
1941
- let { loadUtilsOnInit: e, utilsScript: i, initialCountry: n, geoIpLookup: o } = this.options;
1942
- !e && i && (console.warn("intl-tel-input: The `utilsScript` option is deprecated and will be removed in a future release! Please use the `loadUtilsOnInit` option instead."), e = i), e && !m.utils ? (this._handlePageLoad = () => {
1943
- var c;
1944
- window.removeEventListener("load", this._handlePageLoad), (c = m.loadUtils(e)) == null || c.catch(() => {
1939
+ let { loadUtils: $, initialCountry: n, geoIpLookup: i } = this.options;
1940
+ $ && !C.utils ? (this._handlePageLoad = () => {
1941
+ var a;
1942
+ window.removeEventListener("load", this._handlePageLoad), (a = C.attachUtils($)) == null || a.catch(() => {
1945
1943
  });
1946
- }, m.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), n === "auto" && o && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1944
+ }, C.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), n === "auto" && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1947
1945
  }
1948
1946
  //* Perform the geo ip lookup.
1949
1947
  _loadAutoCountry() {
1950
- m.autoCountry ? this.handleAutoCountry() : m.startedLoadingAutoCountry || (m.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1951
- (e = "") => {
1952
- const i = e.toLowerCase();
1953
- i && this._getCountryData(i, !0) ? (m.autoCountry = i, setTimeout(() => $1("handleAutoCountry"))) : (this._setInitialState(!0), $1("rejectAutoCountryPromise"));
1948
+ C.autoCountry ? this.handleAutoCountry() : C.startedLoadingAutoCountry || (C.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1949
+ ($ = "") => {
1950
+ const n = $.toLowerCase();
1951
+ n && this._getCountryData(n, !0) ? (C.autoCountry = n, setTimeout(() => e1("handleAutoCountry"))) : (this._setInitialState(!0), e1("rejectAutoCountryPromise"));
1954
1952
  },
1955
1953
  () => {
1956
- this._setInitialState(!0), $1("rejectAutoCountryPromise");
1954
+ this._setInitialState(!0), e1("rejectAutoCountryPromise");
1957
1955
  }
1958
1956
  ));
1959
1957
  }
@@ -1962,68 +1960,68 @@ class F2 {
1962
1960
  }
1963
1961
  //* Initialize the tel input listeners.
1964
1962
  _initTelInputListeners() {
1965
- const { strictMode: e, formatAsYouType: i, separateDialCode: n, formatOnDisplay: o, allowDropdown: a, countrySearch: c } = this.options;
1963
+ const { strictMode: $, formatAsYouType: n, separateDialCode: i, formatOnDisplay: o, allowDropdown: a, countrySearch: c } = this.options;
1966
1964
  let g = !1;
1967
1965
  new RegExp("\\p{L}", "u").test(this.telInput.value) && (g = !0), this._handleInputEvent = (f) => {
1968
- if (this.isAndroid && (f == null ? void 0 : f.data) === "+" && n && a && c) {
1969
- const L = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, L - 1), T = this.telInput.value.substring(L);
1970
- this.telInput.value = v + T, this._openDropdownWithPlus();
1966
+ if (this.isAndroid && (f == null ? void 0 : f.data) === "+" && i && a && c) {
1967
+ const L = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, L - 1), N = this.telInput.value.substring(L);
1968
+ this.telInput.value = v + N, this._openDropdownWithPlus();
1971
1969
  return;
1972
1970
  }
1973
1971
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
1974
1972
  const b = (f == null ? void 0 : f.data) && /[^+0-9]/.test(f.data), _ = (f == null ? void 0 : f.inputType) === "insertFromPaste" && this.telInput.value;
1975
- b || _ && !e ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
1973
+ b || _ && !$ ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
1976
1974
  const I = (f == null ? void 0 : f.detail) && f.detail.isSetNumber && !o;
1977
- if (i && !g && !I) {
1978
- const L = this.telInput.selectionStart || 0, T = this.telInput.value.substring(0, L).replace(/[^+0-9]/g, "").length, M = (f == null ? void 0 : f.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), Z = U2(T, O, L, M);
1975
+ if (n && !g && !I) {
1976
+ const L = this.telInput.selectionStart || 0, N = this.telInput.value.substring(0, L).replace(/[^+0-9]/g, "").length, M = (f == null ? void 0 : f.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), Z = V2(N, O, L, M);
1979
1977
  this.telInput.value = O, this.telInput.setSelectionRange(Z, Z);
1980
1978
  }
1981
- }, this.telInput.addEventListener("input", this._handleInputEvent), (e || n) && (this._handleKeydownEvent = (f) => {
1979
+ }, this.telInput.addEventListener("input", this._handleInputEvent), ($ || i) && (this._handleKeydownEvent = (f) => {
1982
1980
  if (f.key && f.key.length === 1 && !f.altKey && !f.ctrlKey && !f.metaKey) {
1983
- if (n && a && c && f.key === "+") {
1981
+ if (i && a && c && f.key === "+") {
1984
1982
  f.preventDefault(), this._openDropdownWithPlus();
1985
1983
  return;
1986
1984
  }
1987
- if (e) {
1988
- const b = this.telInput.value, _ = b.charAt(0) === "+", I = !_ && this.telInput.selectionStart === 0 && f.key === "+", L = /^[0-9]$/.test(f.key), v = n ? L : I || L, T = b.slice(0, this.telInput.selectionStart) + f.key + b.slice(this.telInput.selectionEnd), M = this._getFullNumber(T), O = m.utils.getCoreNumber(M, this.selectedCountryData.iso2), Z = this.maxCoreNumberLength && O.length > this.maxCoreNumberLength;
1989
- let i1 = !1;
1985
+ if ($) {
1986
+ const b = this.telInput.value, _ = b.charAt(0) === "+", I = !_ && this.telInput.selectionStart === 0 && f.key === "+", L = /^[0-9]$/.test(f.key), v = i ? L : I || L, N = b.slice(0, this.telInput.selectionStart) + f.key + b.slice(this.telInput.selectionEnd), M = this._getFullNumber(N), O = C.utils.getCoreNumber(M, this.selectedCountryData.iso2), Z = this.maxCoreNumberLength && O.length > this.maxCoreNumberLength;
1987
+ let $1 = !1;
1990
1988
  if (_) {
1991
- const p1 = this.selectedCountryData.iso2;
1992
- i1 = this._getCountryFromNumber(M) !== p1;
1989
+ const f1 = this.selectedCountryData.iso2;
1990
+ $1 = this._getCountryFromNumber(M) !== f1;
1993
1991
  }
1994
- (!v || Z && !i1 && !I) && f.preventDefault();
1992
+ (!v || Z && !$1 && !I) && f.preventDefault();
1995
1993
  }
1996
1994
  }
1997
1995
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
1998
1996
  }
1999
1997
  //* Adhere to the input's maxlength attr.
2000
- _cap(e) {
2001
- const i = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
2002
- return i && e.length > i ? e.substr(0, i) : e;
1998
+ _cap($) {
1999
+ const n = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
2000
+ return n && $.length > n ? $.substr(0, n) : $;
2003
2001
  }
2004
2002
  //* Trigger a custom event on the input.
2005
- _trigger(e, i = {}) {
2006
- const n = new CustomEvent(e, {
2003
+ _trigger($, n = {}) {
2004
+ const i = new CustomEvent($, {
2007
2005
  bubbles: !0,
2008
2006
  cancelable: !0,
2009
- detail: i
2007
+ detail: n
2010
2008
  });
2011
- this.telInput.dispatchEvent(n);
2009
+ this.telInput.dispatchEvent(i);
2012
2010
  }
2013
2011
  //* Open the dropdown.
2014
2012
  _openDropdown() {
2015
- const { fixDropdownWidth: e, countrySearch: i } = this.options;
2016
- if (e && (this.dropdownContent.style.width = `${this.telInput.offsetWidth}px`), this.dropdownContent.classList.remove("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), i) {
2017
- const n = this.countryList.firstElementChild;
2018
- n && (this._highlightListItem(n, !1), this.countryList.scrollTop = 0), this.searchInput.focus();
2013
+ const { fixDropdownWidth: $, countrySearch: n } = this.options;
2014
+ if ($ && (this.dropdownContent.style.width = `${this.telInput.offsetWidth}px`), this.dropdownContent.classList.remove("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), n) {
2015
+ const i = this.countryList.firstElementChild;
2016
+ i && (this._highlightListItem(i, !1), this.countryList.scrollTop = 0), this.searchInput.focus();
2019
2017
  }
2020
2018
  this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
2021
2019
  }
2022
2020
  //* Set the dropdown position
2023
2021
  _setDropdownPosition() {
2024
2022
  if (this.options.dropdownContainer && this.options.dropdownContainer.appendChild(this.dropdown), !this.options.useFullscreenPopup) {
2025
- const e = this.telInput.getBoundingClientRect(), i = this.telInput.offsetHeight;
2026
- this.options.dropdownContainer && (this.dropdown.style.top = `${e.top + i}px`, this.dropdown.style.left = `${e.left}px`, this._handleWindowScroll = () => this._closeDropdown(), window.addEventListener("scroll", this._handleWindowScroll));
2023
+ const $ = this.telInput.getBoundingClientRect(), n = this.telInput.offsetHeight;
2024
+ this.options.dropdownContainer && (this.dropdown.style.top = `${$.top + n}px`, this.dropdown.style.left = `${$.left}px`, this._handleWindowScroll = () => this._closeDropdown(), window.addEventListener("scroll", this._handleWindowScroll));
2027
2025
  }
2028
2026
  }
2029
2027
  //* We only bind dropdown listeners when the dropdown is open.
@@ -2040,17 +2038,17 @@ class F2 {
2040
2038
  const a = (c = o.target) == null ? void 0 : c.closest(".iti__country");
2041
2039
  a && this._selectListItem(a);
2042
2040
  }, this.countryList.addEventListener("click", this._handleClickCountryList);
2043
- let e = !0;
2041
+ let $ = !0;
2044
2042
  this._handleClickOffToClose = () => {
2045
- e || this._closeDropdown(), e = !1;
2043
+ $ || this._closeDropdown(), $ = !1;
2046
2044
  }, document.documentElement.addEventListener(
2047
2045
  "click",
2048
2046
  this._handleClickOffToClose
2049
2047
  );
2050
- let i = "", n = null;
2048
+ let n = "", i = null;
2051
2049
  if (this._handleKeydownOnDropdown = (o) => {
2052
- ["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.key === "ArrowUp" || o.key === "ArrowDown" ? this._handleUpDownKey(o.key) : o.key === "Enter" ? this._handleEnterKey() : o.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key) && (o.stopPropagation(), n && clearTimeout(n), i += o.key.toLowerCase(), this._searchForCountry(i), n = setTimeout(() => {
2053
- i = "";
2050
+ ["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.key === "ArrowUp" || o.key === "ArrowDown" ? this._handleUpDownKey(o.key) : o.key === "Enter" ? this._handleEnterKey() : o.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key) && (o.stopPropagation(), i && clearTimeout(i), n += o.key.toLowerCase(), this._searchForCountry(n), i = setTimeout(() => {
2051
+ n = "";
2054
2052
  }, 1e3));
2055
2053
  }, document.addEventListener("keydown", this._handleKeydownOnDropdown), this.options.countrySearch) {
2056
2054
  const o = () => {
@@ -2066,41 +2064,41 @@ class F2 {
2066
2064
  }
2067
2065
  }
2068
2066
  //* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
2069
- _searchForCountry(e) {
2070
- for (let i = 0; i < this.countries.length; i++) {
2071
- const n = this.countries[i];
2072
- if (n.name.substr(0, e.length).toLowerCase() === e) {
2073
- const a = n.nodeById[this.id];
2067
+ _searchForCountry($) {
2068
+ for (let n = 0; n < this.countries.length; n++) {
2069
+ const i = this.countries[n];
2070
+ if (i.name.substr(0, $.length).toLowerCase() === $) {
2071
+ const a = i.nodeById[this.id];
2074
2072
  this._highlightListItem(a, !1), this._scrollTo(a);
2075
2073
  break;
2076
2074
  }
2077
2075
  }
2078
2076
  }
2079
2077
  //* Country search enabled: Filter the countries according to the search query.
2080
- _filterCountries(e, i = !1) {
2081
- let n = !0;
2078
+ _filterCountries($, n = !1) {
2079
+ let i = !0;
2082
2080
  this.countryList.innerHTML = "";
2083
- const o = r2(e);
2081
+ const o = s2($);
2084
2082
  for (let a = 0; a < this.countries.length; a++) {
2085
- const c = this.countries[a], g = r2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), b = `+${c.dialCode}`;
2086
- if (i || g.includes(o) || b.includes(o) || c.iso2.includes(o) || f.includes(o)) {
2083
+ const c = this.countries[a], g = s2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), b = `+${c.dialCode}`;
2084
+ if (n || g.includes(o) || b.includes(o) || c.iso2.includes(o) || f.includes(o)) {
2087
2085
  const _ = c.nodeById[this.id];
2088
- _ && this.countryList.appendChild(_), n && (this._highlightListItem(_, !1), n = !1);
2086
+ _ && this.countryList.appendChild(_), i && (this._highlightListItem(_, !1), i = !1);
2089
2087
  }
2090
2088
  }
2091
- n && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
2089
+ i && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
2092
2090
  }
2093
2091
  //* Update search results text (for a11y).
2094
2092
  _updateSearchResultsText() {
2095
- const { i18n: e } = this.options, i = this.countryList.childElementCount;
2096
- let n;
2097
- i === 0 ? n = e.zeroSearchResults : i === 1 ? n = e.oneSearchResult : n = e.multipleSearchResults.replace("${count}", i.toString()), this.searchResultsA11yText.textContent = n;
2093
+ const { i18n: $ } = this.options, n = this.countryList.childElementCount;
2094
+ let i;
2095
+ n === 0 ? i = $.zeroSearchResults : n === 1 ? i = $.oneSearchResult : i = $.multipleSearchResults.replace("${count}", n.toString()), this.searchResultsA11yText.textContent = i;
2098
2096
  }
2099
2097
  //* Highlight the next/prev item in the list (and ensure it is visible).
2100
- _handleUpDownKey(e) {
2101
- var n, o;
2102
- let i = e === "ArrowUp" ? (n = this.highlightedItem) == null ? void 0 : n.previousElementSibling : (o = this.highlightedItem) == null ? void 0 : o.nextElementSibling;
2103
- !i && this.countryList.childElementCount > 1 && (i = e === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), i && (this._scrollTo(i), this._highlightListItem(i, !1));
2098
+ _handleUpDownKey($) {
2099
+ var i, o;
2100
+ let n = $ === "ArrowUp" ? (i = this.highlightedItem) == null ? void 0 : i.previousElementSibling : (o = this.highlightedItem) == null ? void 0 : o.nextElementSibling;
2101
+ !n && this.countryList.childElementCount > 1 && (n = $ === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), n && (this._scrollTo(n), this._highlightListItem(n, !1));
2104
2102
  }
2105
2103
  //* Select the currently highlighted item.
2106
2104
  _handleEnterKey() {
@@ -2108,110 +2106,110 @@ class F2 {
2108
2106
  }
2109
2107
  //* Update the input's value to the given val (format first if possible)
2110
2108
  //* NOTE: this is called from _setInitialState, handleUtils and setNumber.
2111
- _updateValFromNumber(e) {
2112
- let i = e;
2113
- if (this.options.formatOnDisplay && m.utils && this.selectedCountryData) {
2114
- const n = this.options.nationalMode || i.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: a } = m.utils.numberFormat, c = n ? o : a;
2115
- i = m.utils.formatNumber(
2116
- i,
2109
+ _updateValFromNumber($) {
2110
+ let n = $;
2111
+ if (this.options.formatOnDisplay && C.utils && this.selectedCountryData) {
2112
+ const i = this.options.nationalMode || n.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: a } = C.utils.numberFormat, c = i ? o : a;
2113
+ n = C.utils.formatNumber(
2114
+ n,
2117
2115
  this.selectedCountryData.iso2,
2118
2116
  c
2119
2117
  );
2120
2118
  }
2121
- i = this._beforeSetNumber(i), this.telInput.value = i;
2119
+ n = this._beforeSetNumber(n), this.telInput.value = n;
2122
2120
  }
2123
2121
  //* Check if need to select a new country based on the given number
2124
2122
  //* Note: called from _setInitialState, keyup handler, setNumber.
2125
- _updateCountryFromNumber(e) {
2126
- const i = this._getCountryFromNumber(e);
2127
- return i !== null ? this._setCountry(i) : !1;
2123
+ _updateCountryFromNumber($) {
2124
+ const n = this._getCountryFromNumber($);
2125
+ return n !== null ? this._setCountry(n) : !1;
2128
2126
  }
2129
- _getCountryFromNumber(e) {
2130
- const i = e.indexOf("+");
2131
- let n = i ? e.substring(i) : e;
2127
+ _getCountryFromNumber($) {
2128
+ const n = $.indexOf("+");
2129
+ let i = n ? $.substring(n) : $;
2132
2130
  const o = this.selectedCountryData.dialCode;
2133
- n && o === "1" && n.charAt(0) !== "+" && (n.charAt(0) !== "1" && (n = `1${n}`), n = `+${n}`), this.options.separateDialCode && o && n.charAt(0) !== "+" && (n = `+${o}${n}`);
2134
- const c = this._getDialCode(n, !0), g = f1(n);
2131
+ i && o === "1" && i.charAt(0) !== "+" && (i.charAt(0) !== "1" && (i = `1${i}`), i = `+${i}`), this.options.separateDialCode && o && i.charAt(0) !== "+" && (i = `+${o}${i}`);
2132
+ const c = this._getDialCode(i, !0), g = c1(i);
2135
2133
  if (c) {
2136
- const f = this.dialCodeToIso2Map[f1(c)], b = f.indexOf(this.selectedCountryData.iso2) !== -1 && g.length <= c.length - 1;
2137
- if (!(o === "1" && s2(g)) && !b) {
2134
+ const f = this.dialCodeToIso2Map[c1(c)], b = f.indexOf(this.selectedCountryData.iso2) !== -1 && g.length <= c.length - 1;
2135
+ if (!(o === "1" && o2(g)) && !b) {
2138
2136
  for (let I = 0; I < f.length; I++)
2139
2137
  if (f[I])
2140
2138
  return f[I];
2141
2139
  }
2142
2140
  } else {
2143
- if (n.charAt(0) === "+" && g.length)
2141
+ if (i.charAt(0) === "+" && g.length)
2144
2142
  return "";
2145
- if ((!n || n === "+") && !this.selectedCountryData.iso2)
2143
+ if ((!i || i === "+") && !this.selectedCountryData.iso2)
2146
2144
  return this.defaultCountry;
2147
2145
  }
2148
2146
  return null;
2149
2147
  }
2150
2148
  //* Remove highlighting from other list items and highlight the given item.
2151
- _highlightListItem(e, i) {
2152
- const n = this.highlightedItem;
2153
- if (n && (n.classList.remove("iti__highlight"), n.setAttribute("aria-selected", "false")), this.highlightedItem = e, this.highlightedItem) {
2149
+ _highlightListItem($, n) {
2150
+ const i = this.highlightedItem;
2151
+ if (i && (i.classList.remove("iti__highlight"), i.setAttribute("aria-selected", "false")), this.highlightedItem = $, this.highlightedItem) {
2154
2152
  this.highlightedItem.classList.add("iti__highlight"), this.highlightedItem.setAttribute("aria-selected", "true");
2155
2153
  const o = this.highlightedItem.getAttribute("id") || "";
2156
2154
  this.selectedCountry.setAttribute("aria-activedescendant", o), this.options.countrySearch && this.searchInput.setAttribute("aria-activedescendant", o);
2157
2155
  }
2158
- i && this.highlightedItem.focus();
2156
+ n && this.highlightedItem.focus();
2159
2157
  }
2160
2158
  //* Find the country data for the given iso2 code
2161
2159
  //* the ignoreOnlyCountriesOption is only used during init() while parsing the onlyCountries array
2162
- _getCountryData(e, i) {
2163
- for (let n = 0; n < this.countries.length; n++)
2164
- if (this.countries[n].iso2 === e)
2165
- return this.countries[n];
2166
- if (i)
2160
+ _getCountryData($, n) {
2161
+ for (let i = 0; i < this.countries.length; i++)
2162
+ if (this.countries[i].iso2 === $)
2163
+ return this.countries[i];
2164
+ if (n)
2167
2165
  return null;
2168
- throw new Error(`No country data for '${e}'`);
2166
+ throw new Error(`No country data for '${$}'`);
2169
2167
  }
2170
2168
  //* Update the selected country, dial code (if separateDialCode), placeholder, title, and active list item.
2171
2169
  //* Note: called from _setInitialState, _updateCountryFromNumber, _selectListItem, setCountry.
2172
- _setCountry(e) {
2173
- const { separateDialCode: i, showFlags: n, i18n: o } = this.options, a = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
2174
- if (this.selectedCountryData = e ? this._getCountryData(e, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountryInner) {
2170
+ _setCountry($) {
2171
+ const { separateDialCode: n, showFlags: i, i18n: o } = this.options, a = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
2172
+ if (this.selectedCountryData = $ ? this._getCountryData($, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountryInner) {
2175
2173
  let c = "", g = "";
2176
- e && n ? (c = `iti__flag iti__${e}`, g = `${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`) : (c = "iti__flag iti__globe", g = o.noCountrySelected), this.selectedCountryInner.className = c, this.selectedCountryA11yText.textContent = g;
2174
+ $ && i ? (c = `iti__flag iti__${$}`, g = `${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`) : (c = "iti__flag iti__globe", g = o.noCountrySelected), this.selectedCountryInner.className = c, this.selectedCountryA11yText.textContent = g;
2177
2175
  }
2178
- if (this._setSelectedCountryTitleAttribute(e, i), i) {
2176
+ if (this._setSelectedCountryTitleAttribute($, n), n) {
2179
2177
  const c = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
2180
2178
  this.selectedDialCode.innerHTML = c, this._updateInputPadding();
2181
2179
  }
2182
- return this._updatePlaceholder(), this._updateMaxLength(), a.iso2 !== e;
2180
+ return this._updatePlaceholder(), this._updateMaxLength(), a.iso2 !== $;
2183
2181
  }
2184
2182
  //* Update the input padding to make space for the selected country/dial code.
2185
2183
  _updateInputPadding() {
2186
2184
  if (this.selectedCountry) {
2187
- const i = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth()) + 6;
2188
- this.showSelectedCountryOnLeft ? this.telInput.style.paddingLeft = `${i}px` : this.telInput.style.paddingRight = `${i}px`;
2185
+ const n = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth()) + 6;
2186
+ this.showSelectedCountryOnLeft ? this.telInput.style.paddingLeft = `${n}px` : this.telInput.style.paddingRight = `${n}px`;
2189
2187
  }
2190
2188
  }
2191
2189
  //* Update the maximum valid number length for the currently selected country.
2192
2190
  _updateMaxLength() {
2193
- const { strictMode: e, placeholderNumberType: i, validationNumberType: n } = this.options, { iso2: o } = this.selectedCountryData;
2194
- if (e && m.utils)
2191
+ const { strictMode: $, placeholderNumberType: n, validationNumberTypes: i } = this.options, { iso2: o } = this.selectedCountryData;
2192
+ if ($ && C.utils)
2195
2193
  if (o) {
2196
- const a = m.utils.numberType[i];
2197
- let c = m.utils.getExampleNumber(
2194
+ const a = C.utils.numberType[n];
2195
+ let c = C.utils.getExampleNumber(
2198
2196
  o,
2199
2197
  !1,
2200
2198
  a,
2201
2199
  !0
2202
2200
  ), g = c;
2203
- for (; m.utils.isPossibleNumber(c, o, n); )
2201
+ for (; C.utils.isPossibleNumber(c, o, i); )
2204
2202
  g = c, c += "0";
2205
- const f = m.utils.getCoreNumber(g, o);
2203
+ const f = C.utils.getCoreNumber(g, o);
2206
2204
  this.maxCoreNumberLength = f.length, o === "by" && (this.maxCoreNumberLength = f.length + 1);
2207
2205
  } else
2208
2206
  this.maxCoreNumberLength = null;
2209
2207
  }
2210
- _setSelectedCountryTitleAttribute(e = null, i) {
2208
+ _setSelectedCountryTitleAttribute($ = null, n) {
2211
2209
  if (!this.selectedCountry)
2212
2210
  return;
2213
- let n;
2214
- e && !i ? n = `${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}` : e ? n = this.selectedCountryData.name : n = "Unknown", this.selectedCountry.setAttribute("title", n);
2211
+ let i;
2212
+ $ && !n ? i = `${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}` : $ ? i = this.selectedCountryData.name : i = "Unknown", this.selectedCountry.setAttribute("title", i);
2215
2213
  }
2216
2214
  //* When the input is in a hidden container during initialisation, we must inject some markup
2217
2215
  //* into the end of the DOM to calculate the correct offsetWidth.
@@ -2219,41 +2217,41 @@ class F2 {
2219
2217
  //* will definitely exist.
2220
2218
  _getHiddenSelectedCountryWidth() {
2221
2219
  if (this.telInput.parentNode) {
2222
- const e = this.telInput.parentNode.cloneNode(!1);
2223
- e.style.visibility = "hidden", document.body.appendChild(e);
2224
- const i = this.countryContainer.cloneNode();
2225
- e.appendChild(i);
2226
- const n = this.selectedCountry.cloneNode(!0);
2227
- i.appendChild(n);
2228
- const o = n.offsetWidth;
2229
- return document.body.removeChild(e), o;
2220
+ const $ = this.telInput.parentNode.cloneNode(!1);
2221
+ $.style.visibility = "hidden", document.body.appendChild($);
2222
+ const n = this.countryContainer.cloneNode();
2223
+ $.appendChild(n);
2224
+ const i = this.selectedCountry.cloneNode(!0);
2225
+ n.appendChild(i);
2226
+ const o = i.offsetWidth;
2227
+ return document.body.removeChild($), o;
2230
2228
  }
2231
2229
  return 0;
2232
2230
  }
2233
2231
  //* Update the input placeholder to an example number from the currently selected country.
2234
2232
  _updatePlaceholder() {
2235
2233
  const {
2236
- autoPlaceholder: e,
2237
- placeholderNumberType: i,
2238
- nationalMode: n,
2234
+ autoPlaceholder: $,
2235
+ placeholderNumberType: n,
2236
+ nationalMode: i,
2239
2237
  customPlaceholder: o
2240
- } = this.options, a = e === "aggressive" || !this.hadInitialPlaceholder && e === "polite";
2241
- if (m.utils && a) {
2242
- const c = m.utils.numberType[i];
2243
- let g = this.selectedCountryData.iso2 ? m.utils.getExampleNumber(
2238
+ } = this.options, a = $ === "aggressive" || !this.hadInitialPlaceholder && $ === "polite";
2239
+ if (C.utils && a) {
2240
+ const c = C.utils.numberType[n];
2241
+ let g = this.selectedCountryData.iso2 ? C.utils.getExampleNumber(
2244
2242
  this.selectedCountryData.iso2,
2245
- n,
2243
+ i,
2246
2244
  c
2247
2245
  ) : "";
2248
2246
  g = this._beforeSetNumber(g), typeof o == "function" && (g = o(g, this.selectedCountryData)), this.telInput.setAttribute("placeholder", g);
2249
2247
  }
2250
2248
  }
2251
2249
  //* Called when the user selects a list item from the dropdown.
2252
- _selectListItem(e) {
2253
- const i = this._setCountry(
2254
- e.getAttribute("data-country-code")
2250
+ _selectListItem($) {
2251
+ const n = this._setCountry(
2252
+ $.getAttribute("data-country-code")
2255
2253
  );
2256
- this._closeDropdown(), this._updateDialCode(e.getAttribute("data-dial-code")), this.telInput.focus(), i && this._triggerCountryChange();
2254
+ this._closeDropdown(), this._updateDialCode($.getAttribute("data-dial-code")), this.telInput.focus(), n && this._triggerCountryChange();
2257
2255
  }
2258
2256
  //* Close the dropdown and unbind any listeners.
2259
2257
  _closeDropdown() {
@@ -2266,38 +2264,38 @@ class F2 {
2266
2264
  ), this.countryList.removeEventListener("click", this._handleClickCountryList), this.options.dropdownContainer && (this.options.useFullscreenPopup || window.removeEventListener("scroll", this._handleWindowScroll), this.dropdown.parentNode && this.dropdown.parentNode.removeChild(this.dropdown)), this._handlePageLoad && window.removeEventListener("load", this._handlePageLoad), this._trigger("close:countrydropdown");
2267
2265
  }
2268
2266
  //* Check if an element is visible within it's container, else scroll until it is.
2269
- _scrollTo(e) {
2270
- const i = this.countryList, n = document.documentElement.scrollTop, o = i.offsetHeight, a = i.getBoundingClientRect().top + n, c = a + o, g = e.offsetHeight, f = e.getBoundingClientRect().top + n, b = f + g, _ = f - a + i.scrollTop;
2267
+ _scrollTo($) {
2268
+ const n = this.countryList, i = document.documentElement.scrollTop, o = n.offsetHeight, a = n.getBoundingClientRect().top + i, c = a + o, g = $.offsetHeight, f = $.getBoundingClientRect().top + i, b = f + g, _ = f - a + n.scrollTop;
2271
2269
  if (f < a)
2272
- i.scrollTop = _;
2270
+ n.scrollTop = _;
2273
2271
  else if (b > c) {
2274
2272
  const I = o - g;
2275
- i.scrollTop = _ - I;
2273
+ n.scrollTop = _ - I;
2276
2274
  }
2277
2275
  }
2278
2276
  //* Replace any existing dial code with the new one
2279
2277
  //* Note: called from _selectListItem and setCountry
2280
- _updateDialCode(e) {
2281
- const i = this.telInput.value, n = `+${e}`;
2278
+ _updateDialCode($) {
2279
+ const n = this.telInput.value, i = `+${$}`;
2282
2280
  let o;
2283
- if (i.charAt(0) === "+") {
2284
- const a = this._getDialCode(i);
2285
- a ? o = i.replace(a, n) : o = n, this.telInput.value = o;
2281
+ if (n.charAt(0) === "+") {
2282
+ const a = this._getDialCode(n);
2283
+ a ? o = n.replace(a, i) : o = i, this.telInput.value = o;
2286
2284
  }
2287
2285
  }
2288
2286
  //* Try and extract a valid international dial code from a full telephone number.
2289
2287
  //* Note: returns the raw string inc plus character and any whitespace/dots etc.
2290
- _getDialCode(e, i) {
2291
- let n = "";
2292
- if (e.charAt(0) === "+") {
2288
+ _getDialCode($, n) {
2289
+ let i = "";
2290
+ if ($.charAt(0) === "+") {
2293
2291
  let o = "";
2294
- for (let a = 0; a < e.length; a++) {
2295
- const c = e.charAt(a);
2292
+ for (let a = 0; a < $.length; a++) {
2293
+ const c = $.charAt(a);
2296
2294
  if (!isNaN(parseInt(c, 10))) {
2297
- if (o += c, i)
2298
- this.dialCodeToIso2Map[o] && (n = e.substr(0, a + 1));
2295
+ if (o += c, n)
2296
+ this.dialCodeToIso2Map[o] && (i = $.substr(0, a + 1));
2299
2297
  else if (this.dialCodes[o]) {
2300
- n = e.substr(0, a + 1);
2298
+ i = $.substr(0, a + 1);
2301
2299
  break;
2302
2300
  }
2303
2301
  if (o.length === this.dialCodeMaxLen)
@@ -2305,27 +2303,27 @@ class F2 {
2305
2303
  }
2306
2304
  }
2307
2305
  }
2308
- return n;
2306
+ return i;
2309
2307
  }
2310
2308
  //* Get the input val, adding the dial code if separateDialCode is enabled.
2311
- _getFullNumber(e) {
2312
- const i = e || this.telInput.value.trim(), { dialCode: n } = this.selectedCountryData;
2309
+ _getFullNumber($) {
2310
+ const n = $ || this.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
2313
2311
  let o;
2314
- const a = f1(i);
2315
- return this.options.separateDialCode && i.charAt(0) !== "+" && n && a ? o = `+${n}` : o = "", o + i;
2312
+ const a = c1(n);
2313
+ return this.options.separateDialCode && n.charAt(0) !== "+" && i && a ? o = `+${i}` : o = "", o + n;
2316
2314
  }
2317
2315
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
2318
- _beforeSetNumber(e) {
2319
- let i = e;
2316
+ _beforeSetNumber($) {
2317
+ let n = $;
2320
2318
  if (this.options.separateDialCode) {
2321
- let n = this._getDialCode(i);
2322
- if (n) {
2323
- n = `+${this.selectedCountryData.dialCode}`;
2324
- const o = i[n.length] === " " || i[n.length] === "-" ? n.length + 1 : n.length;
2325
- i = i.substr(o);
2319
+ let i = this._getDialCode(n);
2320
+ if (i) {
2321
+ i = `+${this.selectedCountryData.dialCode}`;
2322
+ const o = n[i.length] === " " || n[i.length] === "-" ? i.length + 1 : i.length;
2323
+ n = n.substr(o);
2326
2324
  }
2327
2325
  }
2328
- return this._cap(i);
2326
+ return this._cap(n);
2329
2327
  }
2330
2328
  //* Trigger the 'countrychange' event.
2331
2329
  _triggerCountryChange() {
@@ -2333,19 +2331,19 @@ class F2 {
2333
2331
  }
2334
2332
  //* Format the number as the user types.
2335
2333
  _formatNumberAsYouType() {
2336
- const e = this._getFullNumber(), i = m.utils ? m.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: n } = this.selectedCountryData;
2337
- return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && i.includes(`+${n}`) ? (i.split(`+${n}`)[1] || "").trim() : i;
2334
+ const $ = this._getFullNumber(), n = C.utils ? C.utils.formatNumberAsYouType($, this.selectedCountryData.iso2) : $, { dialCode: i } = this.selectedCountryData;
2335
+ return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && n.includes(`+${i}`) ? (n.split(`+${i}`)[1] || "").trim() : n;
2338
2336
  }
2339
2337
  //**************************
2340
2338
  //* SECRET PUBLIC METHODS
2341
2339
  //**************************
2342
2340
  //* This is called when the geoip call returns.
2343
2341
  handleAutoCountry() {
2344
- this.options.initialCountry === "auto" && m.autoCountry && (this.defaultCountry = m.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2342
+ this.options.initialCountry === "auto" && C.autoCountry && (this.defaultCountry = C.autoCountry, this.selectedCountryData.iso2 || this.selectedCountryInner.classList.contains("iti__globe") || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
2345
2343
  }
2346
2344
  //* This is called when the utils request completes.
2347
2345
  handleUtils() {
2348
- m.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2346
+ C.utils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
2349
2347
  }
2350
2348
  //********************
2351
2349
  //* PUBLIC METHODS
@@ -2353,8 +2351,8 @@ class F2 {
2353
2351
  //* Remove plugin.
2354
2352
  destroy() {
2355
2353
  var a, c;
2356
- const { allowDropdown: e, separateDialCode: i } = this.options;
2357
- if (e) {
2354
+ const { allowDropdown: $, separateDialCode: n } = this.options;
2355
+ if ($) {
2358
2356
  this._closeDropdown(), this.selectedCountry.removeEventListener(
2359
2357
  "click",
2360
2358
  this._handleClickSelectedCountry
@@ -2365,33 +2363,33 @@ class F2 {
2365
2363
  const g = this.telInput.closest("label");
2366
2364
  g && g.removeEventListener("click", this._handleLabelClick);
2367
2365
  }
2368
- const { form: n } = this.telInput;
2369
- this._handleHiddenInputSubmit && n && n.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), i && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2366
+ const { form: i } = this.telInput;
2367
+ this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), n && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2370
2368
  const o = this.telInput.parentNode;
2371
- (a = o == null ? void 0 : o.parentNode) == null || a.insertBefore(this.telInput, o), (c = o == null ? void 0 : o.parentNode) == null || c.removeChild(o), delete m.instances[this.id];
2369
+ (a = o == null ? void 0 : o.parentNode) == null || a.insertBefore(this.telInput, o), (c = o == null ? void 0 : o.parentNode) == null || c.removeChild(o), delete C.instances[this.id];
2372
2370
  }
2373
2371
  //* Get the extension from the current number.
2374
2372
  getExtension() {
2375
- return m.utils ? m.utils.getExtension(
2373
+ return C.utils ? C.utils.getExtension(
2376
2374
  this._getFullNumber(),
2377
2375
  this.selectedCountryData.iso2
2378
2376
  ) : "";
2379
2377
  }
2380
2378
  //* Format the number to the given format.
2381
- getNumber(e) {
2382
- if (m.utils) {
2383
- const { iso2: i } = this.selectedCountryData;
2384
- return m.utils.formatNumber(
2379
+ getNumber($) {
2380
+ if (C.utils) {
2381
+ const { iso2: n } = this.selectedCountryData;
2382
+ return C.utils.formatNumber(
2385
2383
  this._getFullNumber(),
2386
- i,
2387
- e
2384
+ n,
2385
+ $
2388
2386
  );
2389
2387
  }
2390
2388
  return "";
2391
2389
  }
2392
2390
  //* Get the type of the entered number e.g. landline/mobile.
2393
2391
  getNumberType() {
2394
- return m.utils ? m.utils.getNumberType(
2392
+ return C.utils ? C.utils.getNumberType(
2395
2393
  this._getFullNumber(),
2396
2394
  this.selectedCountryData.iso2
2397
2395
  ) : -99;
@@ -2402,9 +2400,9 @@ class F2 {
2402
2400
  }
2403
2401
  //* Get the validation error.
2404
2402
  getValidationError() {
2405
- if (m.utils) {
2406
- const { iso2: e } = this.selectedCountryData;
2407
- return m.utils.getValidationError(this._getFullNumber(), e);
2403
+ if (C.utils) {
2404
+ const { iso2: $ } = this.selectedCountryData;
2405
+ return C.utils.getValidationError(this._getFullNumber(), $);
2408
2406
  }
2409
2407
  return -99;
2410
2408
  }
@@ -2412,115 +2410,113 @@ class F2 {
2412
2410
  isValidNumber() {
2413
2411
  if (!this.selectedCountryData.iso2)
2414
2412
  return !1;
2415
- const e = this._getFullNumber(), i = e.search(new RegExp("\\p{L}", "u"));
2416
- if (i > -1) {
2417
- const n = e.substring(0, i), o = this._utilsIsPossibleNumber(n), a = this._utilsIsPossibleNumber(e);
2413
+ const $ = this._getFullNumber(), n = $.search(new RegExp("\\p{L}", "u"));
2414
+ if (n > -1) {
2415
+ const i = $.substring(0, n), o = this._utilsIsPossibleNumber(i), a = this._utilsIsPossibleNumber($);
2418
2416
  return o && a;
2419
2417
  }
2420
- return this._utilsIsPossibleNumber(e);
2418
+ return this._utilsIsPossibleNumber($);
2421
2419
  }
2422
- _utilsIsPossibleNumber(e) {
2423
- return m.utils ? m.utils.isPossibleNumber(e, this.selectedCountryData.iso2, this.options.validationNumberType) : null;
2420
+ _utilsIsPossibleNumber($) {
2421
+ return C.utils ? C.utils.isPossibleNumber($, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2424
2422
  }
2425
2423
  //* Validate the input val (precise)
2426
2424
  isValidNumberPrecise() {
2427
2425
  if (!this.selectedCountryData.iso2)
2428
2426
  return !1;
2429
- const e = this._getFullNumber(), i = e.search(new RegExp("\\p{L}", "u"));
2430
- if (i > -1) {
2431
- const n = e.substring(0, i), o = this._utilsIsValidNumber(n), a = this._utilsIsValidNumber(e);
2427
+ const $ = this._getFullNumber(), n = $.search(new RegExp("\\p{L}", "u"));
2428
+ if (n > -1) {
2429
+ const i = $.substring(0, n), o = this._utilsIsValidNumber(i), a = this._utilsIsValidNumber($);
2432
2430
  return o && a;
2433
2431
  }
2434
- return this._utilsIsValidNumber(e);
2432
+ return this._utilsIsValidNumber($);
2435
2433
  }
2436
- _utilsIsValidNumber(e) {
2437
- return m.utils ? m.utils.isValidNumber(e, this.selectedCountryData.iso2) : null;
2434
+ _utilsIsValidNumber($) {
2435
+ return C.utils ? C.utils.isValidNumber($, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
2438
2436
  }
2439
2437
  //* Update the selected country, and update the input val accordingly.
2440
- setCountry(e) {
2441
- const i = e == null ? void 0 : e.toLowerCase(), n = this.selectedCountryData.iso2;
2442
- (e && i !== n || !e && n) && (this._setCountry(i), this._updateDialCode(this.selectedCountryData.dialCode), this._triggerCountryChange());
2438
+ setCountry($) {
2439
+ const n = $ == null ? void 0 : $.toLowerCase(), i = this.selectedCountryData.iso2;
2440
+ ($ && n !== i || !$ && i) && (this._setCountry(n), this._updateDialCode(this.selectedCountryData.dialCode), this._triggerCountryChange());
2443
2441
  }
2444
2442
  //* Set the input value and update the country.
2445
- setNumber(e) {
2446
- const i = this._updateCountryFromNumber(e);
2447
- this._updateValFromNumber(e), i && this._triggerCountryChange(), this._trigger("input", { isSetNumber: !0 });
2443
+ setNumber($) {
2444
+ const n = this._updateCountryFromNumber($);
2445
+ this._updateValFromNumber($), n && this._triggerCountryChange(), this._trigger("input", { isSetNumber: !0 });
2448
2446
  }
2449
2447
  //* Set the placeholder number typ
2450
- setPlaceholderNumberType(e) {
2451
- this.options.placeholderNumberType = e, this._updatePlaceholder();
2448
+ setPlaceholderNumberType($) {
2449
+ this.options.placeholderNumberType = $, this._updatePlaceholder();
2452
2450
  }
2453
- setDisabled(e) {
2454
- this.telInput.disabled = e, e ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2451
+ setDisabled($) {
2452
+ this.telInput.disabled = $, $ ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2455
2453
  }
2456
2454
  }
2457
- const V2 = (y) => {
2458
- if (!m.utils && !m.startedLoadingUtilsScript) {
2459
- let e;
2460
- if (typeof y == "string")
2461
- e = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
2462
- else if (typeof y == "function")
2455
+ const H2 = (y) => {
2456
+ if (!C.utils && !C.startedLoadingUtilsScript) {
2457
+ let $;
2458
+ if (typeof y == "function")
2463
2459
  try {
2464
- e = Promise.resolve(y());
2465
- } catch (i) {
2466
- return Promise.reject(i);
2460
+ $ = Promise.resolve(y());
2461
+ } catch (n) {
2462
+ return Promise.reject(n);
2467
2463
  }
2468
2464
  else
2469
- return Promise.reject(new TypeError(`The argument passed to loadUtils must be a URL string or a function that returns a promise for the utilities module, not ${typeof y}`));
2470
- return m.startedLoadingUtilsScript = !0, e.then((i) => {
2471
- const n = i == null ? void 0 : i.default;
2472
- if (!n || typeof n != "object")
2473
- throw typeof y == "string" ? new TypeError(`The module loaded from ${y} did not set utils as its default export.`) : new TypeError("The loader function passed to loadUtils did not resolve to a module object with utils as its default export.");
2474
- return m.utils = n, $1("handleUtils"), !0;
2475
- }).catch((i) => {
2476
- throw $1("rejectUtilsScriptPromise", i), i;
2465
+ return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof y}`));
2466
+ return C.startedLoadingUtilsScript = !0, $.then((n) => {
2467
+ const i = n == null ? void 0 : n.default;
2468
+ if (!i || typeof i != "object")
2469
+ throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
2470
+ return C.utils = i, e1("handleUtils"), !0;
2471
+ }).catch((n) => {
2472
+ throw e1("rejectUtilsScriptPromise", n), n;
2477
2473
  });
2478
2474
  }
2479
2475
  return null;
2480
- }, m = Object.assign(
2481
- (y, e) => {
2482
- const i = new F2(y, e);
2483
- return i._init(), y.setAttribute("data-intl-tel-input-id", i.id.toString()), m.instances[i.id] = i, i;
2476
+ }, C = Object.assign(
2477
+ (y, $) => {
2478
+ const n = new K2(y, $);
2479
+ return n._init(), y.setAttribute("data-intl-tel-input-id", n.id.toString()), C.instances[n.id] = n, n;
2484
2480
  },
2485
2481
  {
2486
- defaults: u2,
2482
+ defaults: l2,
2487
2483
  //* Using a static var like this allows us to mock it in the tests.
2488
2484
  documentReady: () => document.readyState === "complete",
2489
2485
  //* Get the country data object.
2490
2486
  getCountryData: () => H,
2491
2487
  //* A getter for the plugin instance.
2492
2488
  getInstance: (y) => {
2493
- const e = y.getAttribute("data-intl-tel-input-id");
2494
- return e ? m.instances[e] : null;
2489
+ const $ = y.getAttribute("data-intl-tel-input-id");
2490
+ return $ ? C.instances[$] : null;
2495
2491
  },
2496
2492
  //* A map from instance ID to instance object.
2497
2493
  instances: {},
2498
- loadUtils: V2,
2494
+ attachUtils: H2,
2499
2495
  startedLoadingUtilsScript: !1,
2500
2496
  startedLoadingAutoCountry: !1,
2501
- version: "24.8.1"
2497
+ version: "25.0.0"
2502
2498
  }
2503
2499
  );
2504
2500
  (function() {
2505
2501
  var y = this || self;
2506
- function e(d, t) {
2502
+ function $(d, t) {
2507
2503
  d = d.split(".");
2508
- var $ = y;
2509
- d[0] in $ || typeof $.execScript > "u" || $.execScript("var " + d[0]);
2510
- for (var r; d.length && (r = d.shift()); ) d.length || t === void 0 ? $[r] && $[r] !== Object.prototype[r] ? $ = $[r] : $ = $[r] = {} : $[r] = t;
2504
+ var e = y;
2505
+ d[0] in e || typeof e.execScript > "u" || e.execScript("var " + d[0]);
2506
+ for (var r; d.length && (r = d.shift()); ) d.length || t === void 0 ? e[r] && e[r] !== Object.prototype[r] ? e = e[r] : e = e[r] = {} : e[r] = t;
2511
2507
  }
2512
- function i(d, t) {
2513
- function $() {
2508
+ function n(d, t) {
2509
+ function e() {
2514
2510
  }
2515
- $.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(r, s, u) {
2511
+ e.prototype = t.prototype, d.ma = t.prototype, d.prototype = new e(), d.prototype.constructor = d, d.sa = function(r, s, u) {
2516
2512
  for (var l = Array(arguments.length - 2), h = 2; h < arguments.length; h++) l[h - 2] = arguments[h];
2517
2513
  return t.prototype[s].apply(r, l);
2518
2514
  };
2519
2515
  }
2520
- function n(d) {
2516
+ function i(d) {
2521
2517
  const t = [];
2522
- let $ = 0;
2523
- for (const r in d) t[$++] = d[r];
2518
+ let e = 0;
2519
+ for (const r in d) t[e++] = d[r];
2524
2520
  return t;
2525
2521
  }
2526
2522
  var o = class {
@@ -2570,24 +2566,24 @@ const V2 = (y) => {
2570
2566
  case M:
2571
2567
  case O:
2572
2568
  case Z:
2573
- case i1:
2574
- case p1:
2575
- case T:
2569
+ case $1:
2570
+ case f1:
2571
+ case N:
2576
2572
  case v:
2577
2573
  this.o = !0;
2578
2574
  }
2579
2575
  this.j = t.defaultValue;
2580
2576
  }
2581
- var v = 1, T = 2, M = 3, O = 4, Z = 6, i1 = 16, p1 = 18;
2577
+ var v = 1, N = 2, M = 3, O = 4, Z = 6, $1 = 16, f1 = 18;
2582
2578
  function v1(d, t) {
2583
2579
  for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
2584
- var $ = t[d];
2585
- this.g[$.g] = $;
2580
+ var e = t[d];
2581
+ this.g[e.g] = e;
2586
2582
  }
2587
2583
  }
2588
- function l2(d) {
2589
- return d = n(d.g), d.sort(function(t, $) {
2590
- return t.g - $.g;
2584
+ function a2(d) {
2585
+ return d = i(d.g), d.sort(function(t, e) {
2586
+ return t.g - e.g;
2591
2587
  }), d;
2592
2588
  }
2593
2589
  function x() {
@@ -2603,8 +2599,8 @@ const V2 = (y) => {
2603
2599
  w1(this, d.g, t);
2604
2600
  };
2605
2601
  function S1(d, t) {
2606
- for (var $ = l2(d.m()), r = 0; r < $.length; r++) {
2607
- var s = $[r], u = s.g;
2602
+ for (var e = a2(d.m()), r = 0; r < e.length; r++) {
2603
+ var s = e[r], u = s.g;
2608
2604
  if (R(t, u)) {
2609
2605
  d.g && delete d.g[s.g];
2610
2606
  var l = s.h == 11 || s.h == 10;
@@ -2623,24 +2619,24 @@ const V2 = (y) => {
2623
2619
  return d.h[t] != null;
2624
2620
  }
2625
2621
  function n1(d, t) {
2626
- var $ = d.h[t];
2627
- if ($ == null) return null;
2622
+ var e = d.h[t];
2623
+ if (e == null) return null;
2628
2624
  if (d.l) {
2629
2625
  if (!(t in d.g)) {
2630
2626
  var r = d.l, s = d.j[t];
2631
- if ($ != null) if (s.l) {
2632
- for (var u = [], l = 0; l < $.length; l++) u[l] = r.h(s, $[l]);
2633
- $ = u;
2634
- } else $ = r.h(s, $);
2635
- return d.g[t] = $;
2627
+ if (e != null) if (s.l) {
2628
+ for (var u = [], l = 0; l < e.length; l++) u[l] = r.h(s, e[l]);
2629
+ e = u;
2630
+ } else e = r.h(s, e);
2631
+ return d.g[t] = e;
2636
2632
  }
2637
2633
  return d.g[t];
2638
2634
  }
2639
- return $;
2635
+ return e;
2640
2636
  }
2641
- function p(d, t, $) {
2637
+ function p(d, t, e) {
2642
2638
  var r = n1(d, t);
2643
- return d.j[t].l ? r[$ || 0] : r;
2639
+ return d.j[t].l ? r[e || 0] : r;
2644
2640
  }
2645
2641
  function S(d, t) {
2646
2642
  if (R(d, t)) d = p(d, t);
@@ -2659,25 +2655,25 @@ const V2 = (y) => {
2659
2655
  function P(d, t) {
2660
2656
  return n1(d, t) || [];
2661
2657
  }
2662
- function F(d, t) {
2658
+ function U(d, t) {
2663
2659
  return d.j[t].l ? R(d, t) ? d.h[t].length : 0 : R(d, t) ? 1 : 0;
2664
2660
  }
2665
- function E(d, t, $) {
2666
- d.h[t] = $, d.g && (d.g[t] = $);
2661
+ function E(d, t, e) {
2662
+ d.h[t] = e, d.g && (d.g[t] = e);
2667
2663
  }
2668
- function w1(d, t, $) {
2669
- d.h[t] || (d.h[t] = []), d.h[t].push($), d.g && delete d.g[t];
2664
+ function w1(d, t, e) {
2665
+ d.h[t] || (d.h[t] = []), d.h[t].push(e), d.g && delete d.g[t];
2670
2666
  }
2671
- function r1(d, t) {
2672
- var $ = [], r;
2673
- for (r in t) r != 0 && $.push(new L(r, t[r]));
2674
- return new v1(d, $);
2667
+ function i1(d, t) {
2668
+ var e = [], r;
2669
+ for (r in t) r != 0 && e.push(new L(r, t[r]));
2670
+ return new v1(d, e);
2675
2671
  }
2676
- function s1() {
2672
+ function r1() {
2677
2673
  }
2678
- s1.prototype.g = function(d) {
2674
+ r1.prototype.g = function(d) {
2679
2675
  throw new d.h(), Error("Unimplemented");
2680
- }, s1.prototype.h = function(d, t) {
2676
+ }, r1.prototype.h = function(d, t) {
2681
2677
  if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
2682
2678
  if (d.h == 14) return typeof t == "string" && b1.test(t) && (d = Number(t), 0 < d) ? d : t;
2683
2679
  if (!d.o) return t;
@@ -2687,57 +2683,57 @@ const V2 = (y) => {
2687
2683
  return t;
2688
2684
  };
2689
2685
  var b1 = /^-?[0-9]+$/;
2690
- function g1() {
2686
+ function p1() {
2691
2687
  }
2692
- i(g1, s1), g1.prototype.g = function(d, t) {
2688
+ n(p1, r1), p1.prototype.g = function(d, t) {
2693
2689
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
2694
2690
  };
2695
- function q() {
2691
+ function J() {
2696
2692
  }
2697
- i(q, g1), q.prototype.h = function(d, t) {
2698
- return d.h == 8 ? !!t : s1.prototype.h.apply(this, arguments);
2699
- }, q.prototype.g = function(d, t) {
2700
- return q.ma.g.call(this, d, t);
2693
+ n(J, p1), J.prototype.h = function(d, t) {
2694
+ return d.h == 8 ? !!t : r1.prototype.h.apply(this, arguments);
2695
+ }, J.prototype.g = function(d, t) {
2696
+ return J.ma.g.call(this, d, t);
2701
2697
  };
2702
- function N(d, t) {
2698
+ function T(d, t) {
2703
2699
  d != null && this.g.apply(this, arguments);
2704
2700
  }
2705
- N.prototype.h = "", N.prototype.set = function(d) {
2701
+ T.prototype.h = "", T.prototype.set = function(d) {
2706
2702
  this.h = "" + d;
2707
- }, N.prototype.g = function(d, t, $) {
2703
+ }, T.prototype.g = function(d, t, e) {
2708
2704
  if (this.h += String(d), t != null) for (let r = 1; r < arguments.length; r++) this.h += arguments[r];
2709
2705
  return this;
2710
2706
  };
2711
2707
  function B(d) {
2712
2708
  d.h = "";
2713
2709
  }
2714
- N.prototype.toString = function() {
2710
+ T.prototype.toString = function() {
2715
2711
  return this.h;
2716
2712
  };
2717
2713
  function j() {
2718
2714
  x.call(this);
2719
2715
  }
2720
- i(j, x);
2716
+ n(j, x);
2721
2717
  var L1 = null;
2722
2718
  function w() {
2723
2719
  x.call(this);
2724
2720
  }
2725
- i(w, x);
2726
- var T1 = null;
2721
+ n(w, x);
2722
+ var N1 = null;
2727
2723
  function W() {
2728
2724
  x.call(this);
2729
2725
  }
2730
- i(W, x);
2731
- var N1 = null;
2726
+ n(W, x);
2727
+ var T1 = null;
2732
2728
  j.prototype.m = function() {
2733
2729
  var d = L1;
2734
- return d || (L1 = d = r1(j, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
2730
+ return d || (L1 = d = i1(j, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
2735
2731
  }, j.m = j.prototype.m, w.prototype.m = function() {
2736
- var d = T1;
2737
- return d || (T1 = d = r1(w, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
2738
- }, w.m = w.prototype.m, W.prototype.m = function() {
2739
2732
  var d = N1;
2740
- return d || (N1 = d = r1(W, {
2733
+ return d || (N1 = d = i1(w, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
2734
+ }, w.m = w.prototype.m, W.prototype.m = function() {
2735
+ var d = T1;
2736
+ return d || (T1 = d = i1(W, {
2741
2737
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
2742
2738
  1: { name: "general_desc", i: 11, type: w },
2743
2739
  2: { name: "fixed_line", i: 11, type: w },
@@ -2778,17 +2774,17 @@ const V2 = (y) => {
2778
2774
  function V() {
2779
2775
  x.call(this);
2780
2776
  }
2781
- i(V, x);
2782
- var A1 = null, a2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2777
+ n(V, x);
2778
+ var A1 = null, h2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2783
2779
  V.prototype.m = function() {
2784
2780
  var d = A1;
2785
- return d || (A1 = d = r1(V, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: a2 }, 7: {
2781
+ return d || (A1 = d = i1(V, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: h2 }, 7: {
2786
2782
  name: "preferred_domestic_carrier_code",
2787
2783
  i: 9,
2788
2784
  type: String
2789
2785
  } })), d;
2790
2786
  }, V.ctor = V, V.ctor.m = V.prototype.m;
2791
- var X = {
2787
+ var q = {
2792
2788
  1: "US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),
2793
2789
  7: ["RU", "KZ"],
2794
2790
  20: ["EG"],
@@ -3792,10 +3788,10 @@ const V2 = (y) => {
3792
3788
  ,
3793
3789
  [7]
3794
3790
  ], [, , "0800\\d{7}", , , , "08001234123", , , [11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "BZ", 501, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], [, "(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
3795
- CA: [, [, , "(?:[2-8]\\d|90)\\d{8}|3\\d{6}", , , , , , , [7, 10]], [
3791
+ CA: [, [, , "[2-9]\\d{9}|3\\d{6}", , , , , , , [7, 10]], [
3796
3792
  ,
3797
3793
  ,
3798
- "(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",
3794
+ "(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",
3799
3795
  ,
3800
3796
  ,
3801
3797
  ,
@@ -3804,10 +3800,10 @@ const V2 = (y) => {
3804
3800
  ,
3805
3801
  [10],
3806
3802
  [7]
3807
- ], [, , "(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}", , , , "5062345678", , , [10], [7]], [, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002123456", , , [10]], [, , "900[2-9]\\d{6}", , , , "9002123456", , , [10]], [, , , , , , , , , [-1]], [
3803
+ ], [, , "(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", , , , "5062345678", , , [10], [7]], [, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002123456", , , [10]], [, , "900[2-9]\\d{6}", , , , "9002123456", , , [10]], [, , , , , , , , , [-1]], [
3808
3804
  ,
3809
3805
  ,
3810
- "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",
3806
+ "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",
3811
3807
  ,
3812
3808
  ,
3813
3809
  ,
@@ -4612,7 +4608,7 @@ const V2 = (y) => {
4612
4608
  GE: [, [, , "(?:[3-57]\\d\\d|800)\\d{6}", , , , , , , [9], [6, 7]], [, , "(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}", , , , "322123456", , , , [6, 7]], [
4613
4609
  ,
4614
4610
  ,
4615
- "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|111|22[02]|77\\d)|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
4611
+ "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
4616
4612
  ,
4617
4613
  ,
4618
4614
  ,
@@ -4621,7 +4617,7 @@ const V2 = (y) => {
4621
4617
  GF: [, [
4622
4618
  ,
4623
4619
  ,
4624
- "[56]94\\d{6}|(?:80|9\\d)\\d{7}",
4620
+ "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",
4625
4621
  ,
4626
4622
  ,
4627
4623
  ,
@@ -4629,7 +4625,7 @@ const V2 = (y) => {
4629
4625
  ,
4630
4626
  ,
4631
4627
  [9]
4632
- ], [, , "594(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)\\d{4}", , , , "594101234"], [, , "694(?:[0-249]\\d|3[0-8])\\d{4}", , , , "694201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:396|76\\d)\\d|476[0-5])\\d{4}", , , , "976012345"], "GF", 594, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[56]|9[47]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [
4628
+ ], [, , "594(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)\\d{4}", , , , "594101234"], [, , "(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}", , , , "694201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:396|76\\d)\\d|476[0-5])\\d{4}", , , , "976012345"], "GF", 594, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [
4633
4629
  ,
4634
4630
  ,
4635
4631
  ,
@@ -4640,71 +4636,71 @@ const V2 = (y) => {
4640
4636
  ,
4641
4637
  ,
4642
4638
  [-1]
4643
- ]],
4644
- GG: [, [, , "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", , , , , , , [7, 9, 10], [6]], [, , "1481[25-9]\\d{5}", , , , "1481256789", , , [10], [6]], [, , "7(?:(?:781|839)\\d|911[17])\\d{5}", , , , "7781123456", , , [10]], [, , "80[08]\\d{7}|800\\d{6}|8001111", , , , "8001234567"], [, , "(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", , , , "9012345678", , , [7, 10]], [, , , , , , , , , [-1]], [, , "70\\d{8}", , , , "7012345678", , , [10]], [, , "56\\d{8}", , , , "5612345678", , , [10]], "GG", 44, "00", "0", , , "([25-9]\\d{5})$|0", "1481$1", , , , , [
4645
- ,
4639
+ ], , , [, , , , , , , , , [-1]]],
4640
+ GG: [
4646
4641
  ,
4647
- "76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",
4642
+ [, , "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", , , , , , , [7, 9, 10], [6]],
4643
+ [, , "1481[25-9]\\d{5}", , , , "1481256789", , , [10], [6]],
4644
+ [, , "7(?:(?:781|839)\\d|911[17])\\d{5}", , , , "7781123456", , , [10]],
4645
+ [, , "80[08]\\d{7}|800\\d{6}|8001111", , , , "8001234567"],
4646
+ [, , "(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", , , , "9012345678", , , [7, 10]],
4647
+ [, , , , , , , , , [-1]],
4648
+ [, , "70\\d{8}", , , , "7012345678", , , [10]],
4649
+ [, , "56\\d{8}", , , , "5612345678", , , [10]],
4650
+ "GG",
4651
+ 44,
4652
+ "00",
4653
+ "0",
4648
4654
  ,
4649
4655
  ,
4656
+ "([25-9]\\d{5})$|0",
4657
+ "1481$1",
4650
4658
  ,
4651
- "7640123456",
4652
4659
  ,
4653
4660
  ,
4654
- [10]
4655
- ], , , [, , , , , , , , , [-1]], [, , "(?:3[0347]|55)\\d{8}", , , , "5512345678", , , [10]], , , [, , , , , , , , , [-1]]],
4656
- GH: [, [, , "(?:[235]\\d{3}|800)\\d{5}", , , , , , , [8, 9], [7]], [, , "3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}", , , , "302345678", , , [9], [7]], [, , "(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}", , , , "231234567", , , [9]], [
4657
4661
  ,
4662
+ [, , "76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", , , , "7640123456", , , [10]],
4658
4663
  ,
4659
- "800\\d{5}",
4660
4664
  ,
4665
+ [, , , , , , , , , [-1]],
4666
+ [, , "(?:3[0347]|55)\\d{8}", , , , "5512345678", , , [10]],
4661
4667
  ,
4662
4668
  ,
4663
- "80012345",
4669
+ [, , , , , , , , , [-1]]
4670
+ ],
4671
+ GH: [, [, , "(?:[235]\\d{3}|800)\\d{5}", , , , , , , [8, 9], [7]], [, , "3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}", , , , "302345678", , , [9], [7]], [
4664
4672
  ,
4665
4673
  ,
4666
- [8]
4667
- ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GH", 233, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[237]|8[0-2]"]], [, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], [[, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], [, , , , , , , , , [-1]], , , [, , "800\\d{5}", , , , , , , [8]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4668
- GI: [, [, , "(?:[25]\\d|60)\\d{6}", , , , , , , [8]], [
4674
+ "(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",
4669
4675
  ,
4670
4676
  ,
4671
- "2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}",
4672
4677
  ,
4678
+ "231234567",
4673
4679
  ,
4674
4680
  ,
4675
- "20012345"
4676
- ], [, , "5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}", , , , "57123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GI", 350, "00", , , , , , , , [[, "(\\d{3})(\\d{5})", "$1 $2", ["2"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4677
- GL: [
4681
+ [9]
4682
+ ], [, , "800\\d{5}", , , , "80012345", , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GH", 233, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[237]|8[0-2]"]], [, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], [[, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], [, , , , , , , , , [-1]], , , [, , "800\\d{5}", , , , , , , [8]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4683
+ GI: [, [
4678
4684
  ,
4679
- [, , "(?:19|[2-689]\\d|70)\\d{4}", , , , , , , [6]],
4680
- [, , "(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}", , , , "321000"],
4681
- [, , "[245]\\d{5}", , , , "221234"],
4682
- [, , "80\\d{4}", , , , "801234"],
4683
- [, , , , , , , , , [-1]],
4684
- [, , , , , , , , , [-1]],
4685
- [, , , , , , , , , [-1]],
4686
- [, , "3[89]\\d{4}", , , , "381234"],
4687
- "GL",
4688
- 299,
4689
- "00",
4690
4685
  ,
4686
+ "(?:[25]\\d|60)\\d{6}",
4691
4687
  ,
4692
4688
  ,
4693
4689
  ,
4694
4690
  ,
4695
4691
  ,
4696
4692
  ,
4697
- [[, "(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]],
4693
+ [8]
4694
+ ], [, , "2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}", , , , "20012345"], [, , "5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}", , , , "57123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GI", 350, "00", , , , , , , , [[, "(\\d{3})(\\d{5})", "$1 $2", ["2"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4695
+ GL: [, [, , "(?:19|[2-689]\\d|70)\\d{4}", , , , , , , [6]], [, , "(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}", , , , "321000"], [
4698
4696
  ,
4699
- [, , , , , , , , , [-1]],
4700
4697
  ,
4698
+ "[245]\\d{5}",
4701
4699
  ,
4702
- [, , , , , , , , , [-1]],
4703
- [, , , , , , , , , [-1]],
4704
4700
  ,
4705
4701
  ,
4706
- [, , , , , , , , , [-1]]
4707
- ],
4702
+ "221234"
4703
+ ], [, , "80\\d{4}", , , , "801234"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "3[89]\\d{4}", , , , "381234"], "GL", 299, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4708
4704
  GM: [
4709
4705
  ,
4710
4706
  [, , "[2-9]\\d{6}", , , , , , , [7]],
@@ -4736,33 +4732,55 @@ const V2 = (y) => {
4736
4732
  ,
4737
4733
  [, , , , , , , , , [-1]]
4738
4734
  ],
4739
- GN: [, [, , "722\\d{6}|(?:3|6\\d)\\d{7}", , , , , , , [8, 9]], [, , "3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}", , , , "30241234", , , [8]], [, , "6[0-356]\\d{7}", , , , "601123456", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "722\\d{6}", , , , "722123456", , , [9]], "GN", 224, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], [
4735
+ GN: [
4740
4736
  ,
4741
- "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
4742
- "$1 $2 $3 $4",
4743
- ["[67]"]
4744
- ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4745
- GP: [, [, , "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", , , , , , , [9]], [, , "590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}", , , , "590201234"], [, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
4737
+ [, , "722\\d{6}|(?:3|6\\d)\\d{7}", , , , , , , [8, 9]],
4738
+ [, , "3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}", , , , "30241234", , , [8]],
4739
+ [, , "6[0-356]\\d{7}", , , , "601123456", , , [9]],
4740
+ [, , , , , , , , , [-1]],
4741
+ [, , , , , , , , , [-1]],
4742
+ [, , , , , , , , , [-1]],
4743
+ [, , , , , , , , , [-1]],
4744
+ [, , "722\\d{6}", , , , "722123456", , , [9]],
4745
+ "GN",
4746
+ 224,
4747
+ "00",
4746
4748
  ,
4747
4749
  ,
4748
- "9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}",
4749
4750
  ,
4750
4751
  ,
4751
4752
  ,
4752
- "976012345"
4753
- ], "GP", 590, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4754
- GQ: [, [, , "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", , , , , , , [9]], [, , "33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}", , , , "333091234"], [, , "(?:222|55\\d)\\d{6}", , , , "222123456"], [, , "80\\d[1-9]\\d{5}", , , , "800123456"], [, , "90\\d[1-9]\\d{5}", , , , "900123456"], [
4755
4753
  ,
4756
4754
  ,
4755
+ [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]],
4757
4756
  ,
4757
+ [, , , , , , , , , [-1]],
4758
4758
  ,
4759
4759
  ,
4760
+ [, , , , , , , , , [-1]],
4761
+ [, , , , , , , , , [-1]],
4760
4762
  ,
4761
4763
  ,
4764
+ [, , , , , , , , , [-1]]
4765
+ ],
4766
+ GP: [, [, , "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", , , , , , , [9]], [, , "590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}", , , , "590201234"], [, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"], [
4762
4767
  ,
4763
4768
  ,
4764
- [-1]
4765
- ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GQ", 240, "00", , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], [, "(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4769
+ "80[0-5]\\d{6}",
4770
+ ,
4771
+ ,
4772
+ ,
4773
+ "800012345"
4774
+ ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}", , , , "976012345"], "GP", 590, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4775
+ GQ: [, [, , "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", , , , , , , [9]], [, , "33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}", , , , "333091234"], [
4776
+ ,
4777
+ ,
4778
+ "(?:222|55\\d)\\d{6}",
4779
+ ,
4780
+ ,
4781
+ ,
4782
+ "222123456"
4783
+ ], [, , "80\\d[1-9]\\d{5}", , , , "800123456"], [, , "90\\d[1-9]\\d{5}", , , , "900123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GQ", 240, "00", , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], [, "(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4766
4784
  GR: [, [, , "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", , , , , , , [10, 11, 12]], [
4767
4785
  ,
4768
4786
  ,
@@ -4786,10 +4804,10 @@ const V2 = (y) => {
4786
4804
  "$1 $2 $3",
4787
4805
  ["1"]
4788
4806
  ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4789
- GU: [, [, , "(?:[58]\\d\\d|671|900)\\d{7}", , , , , , , [10], [7]], [, , "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}", , , , "6713001234", , , , [7]], [
4807
+ GU: [, [, , "(?:[58]\\d\\d|671|900)\\d{7}", , , , , , , [10], [7]], [, , "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}", , , , "6713001234", , , , [7]], [
4790
4808
  ,
4791
4809
  ,
4792
- "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",
4810
+ "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",
4793
4811
  ,
4794
4812
  ,
4795
4813
  ,
@@ -4831,7 +4849,7 @@ const V2 = (y) => {
4831
4849
  ,
4832
4850
  ,
4833
4851
  [8]
4834
- ], [, , "(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4])|74[0-2])|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|7[05])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-49]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]], [, , "800\\d{6}", , , , "800123456", , , [9]], [
4852
+ ], [, , "(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4])|7(?:4[0-2]|6[0-5]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|7[05])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-49]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]], [, , "800\\d{6}", , , , "800123456", , , [9]], [
4835
4853
  ,
4836
4854
  ,
4837
4855
  "900(?:[0-24-9]\\d{7}|3\\d{1,4})",
@@ -4857,7 +4875,7 @@ const V2 = (y) => {
4857
4875
  HN: [, [, , "8\\d{10}|[237-9]\\d{7}", , , , , , , [8, 11]], [
4858
4876
  ,
4859
4877
  ,
4860
- "2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",
4878
+ "2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-7]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",
4861
4879
  ,
4862
4880
  ,
4863
4881
  ,
@@ -5962,7 +5980,7 @@ const V2 = (y) => {
5962
5980
  ,
5963
5981
  "5002345678"
5964
5982
  ], [, , , , , , , , , [-1]], "MP", 1, "011", "1", , , "([2-9]\\d{6})$|1", "670$1", , 1, , , [, , , , , , , , , [-1]], , "670", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
5965
- MQ: [, [, , "596\\d{6}|(?:69|[89]\\d)\\d{7}", , , , , , , [9]], [, , "(?:596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}", , , , "596301234"], [, , "69[67]\\d{6}", , , , "696201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
5983
+ MQ: [, [, , "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", , , , , , , [9]], [, , "(?:596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}", , , , "596301234"], [, , "(?:69[67]\\d\\d|7091[0-3])\\d{4}", , , , "696201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
5966
5984
  ,
5967
5985
  ,
5968
5986
  "9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}",
@@ -5970,7 +5988,7 @@ const V2 = (y) => {
5970
5988
  ,
5971
5989
  ,
5972
5990
  "976612345"
5973
- ], "MQ", 596, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]|8(?:0[6-9]|[36])"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
5991
+ ], "MQ", 596, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
5974
5992
  MR: [
5975
5993
  ,
5976
5994
  [, , "(?:[2-4]\\d\\d|800)\\d{5}", , , , , , , [8]],
@@ -6526,7 +6544,7 @@ const V2 = (y) => {
6526
6544
  [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]],
6527
6545
  [, "(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]
6528
6546
  ], , [, , "64\\d{4,7}", , , , "641234567", , , [6, 7, 8, 9]], , , [, , , , , , , , , [-1]], [, , "804\\d{6}", , , , "804123456", , , [9]], , , [, , , , , , , , , [-1]]],
6529
- PM: [, [, , "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", , , , , , , [6, 9]], [, , "(?:4[1-35-9]|5[0-47-9]|80[6-9]\\d\\d)\\d{4}", , , , "430123"], [, , "(?:4[02-489]|5[02-9]|708[45][0-5])\\d{4}", , , , "551234"], [, , "80[0-5]\\d{6}", , , , "800012345", , , [9]], [
6547
+ PM: [, [, , "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", , , , , , , [6, 9]], [, , "(?:4[1-35-9]|5[0-47-9]|80[6-9]\\d\\d)\\d{4}", , , , "430123"], [, , "(?:4[02-489]|5[02-9]|708(?:4[0-5]|5[0-6]))\\d{4}", , , , "551234"], [, , "80[0-5]\\d{6}", , , , "800012345", , , [9]], [
6530
6548
  ,
6531
6549
  ,
6532
6550
  "8[129]\\d{7}",
@@ -6631,15 +6649,15 @@ const V2 = (y) => {
6631
6649
  ,
6632
6650
  [8]
6633
6651
  ], [, , "[35-7]\\d{7}", , , , "33123456", , , [8]], [, , "800\\d{4}|(?:0080[01]|800)\\d{6}", , , , "8001234", , , [7, 9, 11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "QA", 974, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["2[16]|8"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]], , [, , "2[16]\\d{5}", , , , "2123456", , , [7]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
6634
- RE: [, [, , "(?:26|[689]\\d)\\d{7}", , , , , , , [9]], [, , "26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}", , , , "262161234"], [
6652
+ RE: [, [, , "709\\d{6}|(?:26|[689]\\d)\\d{7}", , , , , , , [9]], [, , "26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}", , , , "262161234"], [
6635
6653
  ,
6636
6654
  ,
6637
- "69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}",
6655
+ "(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}",
6638
6656
  ,
6639
6657
  ,
6640
6658
  ,
6641
6659
  "692123456"
6642
- ], [, , "80\\d{7}", , , , "801234567"], [, , "89[1-37-9]\\d{6}", , , , "891123456"], [, , "8(?:1[019]|2[0156]|84|90)\\d{6}", , , , "810123456"], [, , , , , , , , , [-1]], [, , "9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}", , , , "939901234"], "RE", 262, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
6660
+ ], [, , "80\\d{7}", , , , "801234567"], [, , "89[1-37-9]\\d{6}", , , , "891123456"], [, , "8(?:1[019]|2[0156]|84|90)\\d{6}", , , , "810123456"], [, , , , , , , , , [-1]], [, , "9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}", , , , "939901234"], "RE", 262, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
6643
6661
  RO: [, [, , "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", , , , , , , [6, 9]], [
6644
6662
  ,
6645
6663
  ,
@@ -6953,7 +6971,7 @@ const V2 = (y) => {
6953
6971
  SN: [, [, , "(?:[378]\\d|93)\\d{7}", , , , , , , [9]], [, , "3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}", , , , "301012345"], [
6954
6972
  ,
6955
6973
  ,
6956
- "7(?:(?:[06-8]\\d|[19]0|21)\\d|5(?:0[01]|[19]0|2[25]|[38]3|[4-7]\\d))\\d{5}",
6974
+ "7(?:(?:[06-8]\\d|[19]0|21)\\d|5(?:0[01]|[19]0|2[25]|3[36]|[4-7]\\d|8[35]))\\d{5}",
6957
6975
  ,
6958
6976
  ,
6959
6977
  ,
@@ -7050,11 +7068,11 @@ const V2 = (y) => {
7050
7068
  ,
7051
7069
  [, , , , , , , , , [-1]]
7052
7070
  ],
7053
- SY: [, [, , "[1-39]\\d{8}|[1-5]\\d{7}", , , , , , , [8, 9], [6, 7]], [, , "21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}", , , , "112345678", , , , [6, 7]], [, , "9[1-689]\\d{7}", , , , "944567890", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SY", 963, "00", "0", , , "0", , , , [[, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", , 1], [
7071
+ SY: [, [, , "[1-359]\\d{8}|[1-5]\\d{7}", , , , , , , [8, 9], [6, 7]], [, , "21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}", , , , "112345678", , , , [6, 7]], [, , "(?:50|9[1-689])\\d{7}", , , , "944567890", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SY", 963, "00", "0", , , "0", , , , [[, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", , 1], [
7054
7072
  ,
7055
7073
  "(\\d{3})(\\d{3})(\\d{3})",
7056
7074
  "$1 $2 $3",
7057
- ["9"],
7075
+ ["[59]"],
7058
7076
  "0$1",
7059
7077
  ,
7060
7078
  1
@@ -7072,37 +7090,70 @@ const V2 = (y) => {
7072
7090
  [8]
7073
7091
  ], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7074
7092
  TA: [, [, , "8\\d{3}", , , , , , , [4]], [, , "8\\d{3}", , , , "8999"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TA", 290, "00", , , , , , , , , , [, , , , , , , , , [-1]], , "8", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7075
- TC: [, [, , "(?:[58]\\d\\d|649|900)\\d{7}", , , , , , , [10], [7]], [, , "649(?:266|712|9(?:4\\d|50))\\d{4}", , , , "6497121234", , , , [7]], [, , "649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}", , , , "6492311234", , , , [7]], [
7093
+ TC: [
7076
7094
  ,
7095
+ [, , "(?:[58]\\d\\d|649|900)\\d{7}", , , , , , , [10], [7]],
7096
+ [, , "649(?:266|712|9(?:4\\d|50))\\d{4}", , , , "6497121234", , , , [7]],
7097
+ [, , "649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}", , , , "6492311234", , , , [7]],
7098
+ [, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002345678"],
7099
+ [, , "900[2-9]\\d{6}", , , , "9002345678"],
7100
+ [, , , , , , , , , [-1]],
7101
+ [, , "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}", , , , "5002345678"],
7102
+ [, , "649(?:71[01]|966)\\d{4}", , , , "6497101234", , , , [7]],
7103
+ "TC",
7104
+ 1,
7105
+ "011",
7106
+ "1",
7077
7107
  ,
7078
- "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",
7079
7108
  ,
7109
+ "([2-479]\\d{6})$|1",
7110
+ "649$1",
7080
7111
  ,
7081
7112
  ,
7082
- "8002345678"
7083
- ], [, , "900[2-9]\\d{6}", , , , "9002345678"], [, , , , , , , , , [-1]], [, , "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}", , , , "5002345678"], [, , "649(?:71[01]|966)\\d{4}", , , , "6497101234", , , , [7]], "TC", 1, "011", "1", , , "([2-479]\\d{6})$|1", "649$1", , , , , [, , , , , , , , , [-1]], , "649", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7113
+ ,
7114
+ ,
7115
+ [, , , , , , , , , [-1]],
7116
+ ,
7117
+ "649",
7118
+ [
7119
+ ,
7120
+ ,
7121
+ ,
7122
+ ,
7123
+ ,
7124
+ ,
7125
+ ,
7126
+ ,
7127
+ ,
7128
+ [-1]
7129
+ ],
7130
+ [, , , , , , , , , [-1]],
7131
+ ,
7132
+ ,
7133
+ [, , , , , , , , , [-1]]
7134
+ ],
7084
7135
  TD: [, [, , "(?:22|[689]\\d|77)\\d{6}", , , , , , , [8]], [, , "22(?:[37-9]0|5[0-5]|6[89])\\d{4}", , , , "22501234"], [, , "(?:[69]\\d|77|8[56])\\d{6}", , , , "63012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TD", 235, "00|16", , , , , , "00", , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7085
- TG: [, [, , "[279]\\d{7}", , , , , , , [8]], [, , "2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}", , , , "22212345"], [
7136
+ TG: [, [, , "[279]\\d{7}", , , , , , , [8]], [
7086
7137
  ,
7087
7138
  ,
7088
- "(?:7[019]|9[0-36-9])\\d{6}",
7139
+ "2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",
7089
7140
  ,
7090
7141
  ,
7091
7142
  ,
7092
- "90112345"
7093
- ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TG", 228, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7094
- TH: [, [, , "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", , , , , , , [8, 9, 10, 13]], [, , "(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}", , , , "21234567", , , [8]], [, , "67(?:1[0-8]|2[4-7])\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}", , , , "812345678", , , [9]], [
7143
+ "22212345"
7144
+ ], [, , "(?:7[0-29]|9[0-36-9])\\d{6}", , , , "90112345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TG", 228, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7145
+ TH: [, [, , "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", , , , , , , [8, 9, 10, 13]], [, , "(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}", , , , "21234567", , , [8]], [
7095
7146
  ,
7096
7147
  ,
7097
- "(?:001800\\d|1800)\\d{6}",
7148
+ "67(?:1[0-8]|2[4-7])\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",
7098
7149
  ,
7099
7150
  ,
7100
7151
  ,
7101
- "1800123456",
7152
+ "812345678",
7102
7153
  ,
7103
7154
  ,
7104
- [10, 13]
7105
- ], [, , "1900\\d{6}", , , , "1900123456", , , [10]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "6[08]\\d{7}", , , , "601234567", , , [9]], "TH", 66, "00[1-9]", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7155
+ [9]
7156
+ ], [, , "(?:001800\\d|1800)\\d{6}", , , , "1800123456", , , [10, 13]], [, , "1900\\d{6}", , , , "1900123456", , , [10]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "6[08]\\d{7}", , , , "601234567", , , [9]], "TH", 66, "00[1-9]", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7106
7157
  TJ: [, [, , "[0-57-9]\\d{8}", , , , , , , [9], [3, 5, 6, 7]], [
7107
7158
  ,
7108
7159
  ,
@@ -7328,7 +7379,7 @@ const V2 = (y) => {
7328
7379
  ], [
7329
7380
  ,
7330
7381
  ,
7331
- "(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",
7382
+ "(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",
7332
7383
  ,
7333
7384
  ,
7334
7385
  ,
@@ -7340,7 +7391,7 @@ const V2 = (y) => {
7340
7391
  ], [
7341
7392
  ,
7342
7393
  ,
7343
- "(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",
7394
+ "(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",
7344
7395
  ,
7345
7396
  ,
7346
7397
  ,
@@ -7633,18 +7684,37 @@ const V2 = (y) => {
7633
7684
  ["7"],
7634
7685
  "0$1"
7635
7686
  ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7636
- YT: [, [, , "(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", , , , , , , [9]], [, , "269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}", , , , "269601234"], [, , "639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}", , , , "639012345"], [, , "80\\d{7}", , , , "801234567"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:39|47)8[01]|769\\d)\\d{4}", , , , "939801234"], "YT", 262, "00", "0", , , "0", , , , , , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [
7687
+ YT: [
7637
7688
  ,
7689
+ [, , "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", , , , , , , [9]],
7690
+ [, , "269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}", , , , "269601234"],
7691
+ [, , "(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}", , , , "639012345"],
7692
+ [, , "80\\d{7}", , , , "801234567"],
7693
+ [, , , , , , , , , [-1]],
7694
+ [, , , , , , , , , [-1]],
7695
+ [, , , , , , , , , [-1]],
7696
+ [, , "9(?:(?:39|47)8[01]|769\\d)\\d{4}", , , , "939801234"],
7697
+ "YT",
7698
+ 262,
7699
+ "00",
7700
+ "0",
7638
7701
  ,
7639
7702
  ,
7703
+ "0",
7640
7704
  ,
7641
7705
  ,
7642
7706
  ,
7643
7707
  ,
7644
7708
  ,
7709
+ [, , , , , , , , , [-1]],
7645
7710
  ,
7646
- [-1]
7647
- ], , , [, , , , , , , , , [-1]]],
7711
+ ,
7712
+ [, , , , , , , , , [-1]],
7713
+ [, , , , , , , , , [-1]],
7714
+ ,
7715
+ ,
7716
+ [, , , , , , , , , [-1]]
7717
+ ],
7648
7718
  ZA: [, [, , "[1-79]\\d{8}|8\\d{4,9}", , , , , , , [5, 6, 7, 8, 9, 10]], [, , "(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}", , , , "101234567", , , [9]], [
7649
7719
  ,
7650
7720
  ,
@@ -7730,50 +7800,31 @@ const V2 = (y) => {
7730
7800
  [, , , , , , , , , [-1]]
7731
7801
  ],
7732
7802
  808: [, [, , "[1-9]\\d{7}", , , , , , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[1-9]\\d{7}", , , , "12345678"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 808, , , , , , , , 1, [[, "(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7733
- 870: [, [, , "7\\d{11}|[35-7]\\d{8}", , , , , , , [9, 12]], [, , , , , , , , , [-1]], [, , "(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}", , , , "301234567"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
7734
- ,
7803
+ 870: [, [, , "7\\d{11}|[235-7]\\d{8}", , , , , , , [9, 12]], [, , , , , , , , , [-1]], [, , "(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}", , , , "301234567"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
7735
7804
  ,
7736
7805
  ,
7806
+ "2\\d{8}",
7737
7807
  ,
7738
7808
  ,
7739
7809
  ,
7810
+ "201234567",
7740
7811
  ,
7741
7812
  ,
7742
- ,
7743
- [-1]
7744
- ], "001", 870, , , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7813
+ [9]
7814
+ ], "001", 870, , , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7745
7815
  878: [, [, , "10\\d{10}", , , , , , , [12]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "10\\d{10}", , , , "101234567890"], "001", 878, , , , , , , , 1, [[, "(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7746
- 881: [
7747
- ,
7748
- [, , "6\\d{9}|[0-36-9]\\d{8}", , , , , , , [9, 10]],
7749
- [, , , , , , , , , [-1]],
7750
- [, , "6\\d{9}|[0-36-9]\\d{8}", , , , "612345678"],
7751
- [, , , , , , , , , [-1]],
7752
- [, , , , , , , , , [-1]],
7753
- [, , , , , , , , , [-1]],
7754
- [, , , , , , , , , [-1]],
7755
- [, , , , , , , , , [-1]],
7756
- "001",
7757
- 881,
7816
+ 881: [, [
7758
7817
  ,
7759
7818
  ,
7819
+ "6\\d{9}|[0-36-9]\\d{8}",
7760
7820
  ,
7761
7821
  ,
7762
7822
  ,
7763
7823
  ,
7764
7824
  ,
7765
7825
  ,
7766
- [[, "(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], [, "(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]],
7767
- ,
7768
- [, , , , , , , , , [-1]],
7769
- ,
7770
- ,
7771
- [, , , , , , , , , [-1]],
7772
- [, , , , , , , , , [-1]],
7773
- ,
7774
- ,
7775
- [, , , , , , , , , [-1]]
7776
- ],
7826
+ [9, 10]
7827
+ ], [, , , , , , , , , [-1]], [, , "6\\d{9}|[0-36-9]\\d{8}", , , , "612345678"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 881, , , , , , , , , [[, "(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], [, "(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7777
7828
  882: [, [, , "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", , , , , , , [7, 8, 9, 10, 11, 12]], [, , , , , , , , , [-1]], [
7778
7829
  ,
7779
7830
  ,
@@ -7820,7 +7871,7 @@ const V2 = (y) => {
7820
7871
  D.h = void 0, D.g = function() {
7821
7872
  return D.h ? D.h : D.h = new D();
7822
7873
  };
7823
- var C1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, h2 = {
7874
+ var g1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, c2 = {
7824
7875
  0: "0",
7825
7876
  1: "1",
7826
7877
  2: "2",
@@ -7834,7 +7885,7 @@ const V2 = (y) => {
7834
7885
  "+": "+",
7835
7886
  "*": "*",
7836
7887
  "#": "#"
7837
- }, c2 = {
7888
+ }, f2 = {
7838
7889
  0: "0",
7839
7890
  1: "1",
7840
7891
  2: "2",
@@ -7901,54 +7952,54 @@ const V2 = (y) => {
7901
7952
  X: "9",
7902
7953
  Y: "9",
7903
7954
  Z: "9"
7904
- }, f2 = RegExp("[++]+"), Q = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), p2 = RegExp("[++0-90-9٠-٩۰-۹]"), g2 = /[\\\/] *x/, C2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), m2 = /(?:.*?[A-Za-z]){3}.*/, y2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), _2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
7955
+ }, p2 = RegExp("[++]+"), X = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), g2 = RegExp("[++0-90-9٠-٩۰-۹]"), C2 = /[\\\/] *x/, m2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), y2 = /(?:.*?[A-Za-z]){3}.*/, _2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), I2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
7905
7956
  function Y(d) {
7906
7957
  return "([0-90-9٠-٩۰-۹]{1," + d + "})";
7907
7958
  }
7908
7959
  function M1() {
7909
7960
  return ";ext=" + Y("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (Y("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (Y("9") + "#?|[- ]+") + (Y("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (Y("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (Y("9") + "#?");
7910
7961
  }
7911
- var P1 = new RegExp("(?:" + M1() + ")$", "i"), I2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + M1() + ")?$", "i"), v2 = /(\$\d)/, S2 = /^\(?\$1\)?$/;
7962
+ var P1 = new RegExp("(?:" + M1() + ")$", "i"), v2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + M1() + ")?$", "i"), S2 = /(\$\d)/, w2 = /^\(?\$1\)?$/;
7912
7963
  function x1(d) {
7913
- return 2 > d.length ? !1 : G(I2, d);
7964
+ return 2 > d.length ? !1 : G(v2, d);
7914
7965
  }
7915
7966
  function R1(d) {
7916
- return G(m2, d) ? o1(d, c2) : o1(d, C1);
7967
+ return G(y2, d) ? s1(d, f2) : s1(d, g1);
7917
7968
  }
7918
7969
  function B1(d) {
7919
7970
  var t = R1(d.toString());
7920
7971
  B(d), d.g(t);
7921
7972
  }
7922
7973
  function k1(d) {
7923
- return d != null && (F(d, 9) != 1 || P(d, 9)[0] != -1);
7974
+ return d != null && (U(d, 9) != 1 || P(d, 9)[0] != -1);
7924
7975
  }
7925
- function o1(d, t) {
7926
- for (var $ = new N(), r, s = d.length, u = 0; u < s; ++u) r = d.charAt(u), r = t[r.toUpperCase()], r != null && $.g(r);
7927
- return $.toString();
7976
+ function s1(d, t) {
7977
+ for (var e = new T(), r, s = d.length, u = 0; u < s; ++u) r = d.charAt(u), r = t[r.toUpperCase()], r != null && e.g(r);
7978
+ return e.toString();
7928
7979
  }
7929
7980
  function O1(d) {
7930
- return d.length == 0 || S2.test(d);
7981
+ return d.length == 0 || w2.test(d);
7931
7982
  }
7932
- function u1(d) {
7983
+ function o1(d) {
7933
7984
  return d != null && isNaN(d) && d.toUpperCase() in E1;
7934
7985
  }
7935
7986
  D.prototype.format = function(d, t) {
7936
7987
  if (p(d, 2) == 0 && R(d, 5)) {
7937
- var $ = S(d, 5);
7938
- if (0 < $.length) return $;
7988
+ var e = S(d, 5);
7989
+ if (0 < e.length) return e;
7939
7990
  }
7940
- $ = S(d, 1);
7941
- var r = t1(d);
7942
- if (t == 0) return G1($, 0, r, "");
7943
- if (!($ in X)) return r;
7944
- var s = d1(this, $, e1($));
7991
+ e = S(d, 1);
7992
+ var r = d1(d);
7993
+ if (t == 0) return G1(e, 0, r, "");
7994
+ if (!(e in q)) return r;
7995
+ var s = Q(this, e, t1(e));
7945
7996
  d = R(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : R(s, 13) ? p(s, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
7946
7997
  d: {
7947
7998
  s = P(s, 20).length == 0 || t == 2 ? P(s, 19) : P(s, 20);
7948
7999
  for (var u, l = s.length, h = 0; h < l; ++h) {
7949
8000
  u = s[h];
7950
- var C = F(u, 3);
7951
- if ((C == 0 || r.search(p(u, 3, C - 1)) == 0) && (C = new RegExp(p(u, 1)), G(C, r))) {
8001
+ var m = U(u, 3);
8002
+ if ((m == 0 || r.search(p(u, 3, m - 1)) == 0) && (m = new RegExp(p(u, 1)), G(m, r))) {
7952
8003
  s = u;
7953
8004
  break d;
7954
8005
  }
@@ -7958,29 +8009,29 @@ const V2 = (y) => {
7958
8009
  return s != null && (l = s, s = S(l, 2), u = new RegExp(p(l, 1)), S(
7959
8010
  l,
7960
8011
  5
7961
- ), l = S(l, 4), r = t == 2 && l != null && 0 < l.length ? r.replace(u, s.replace(v2, l)) : r.replace(u, s), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), G1($, t, r, d);
8012
+ ), l = S(l, 4), r = t == 2 && l != null && 0 < l.length ? r.replace(u, s.replace(S2, l)) : r.replace(u, s), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), G1(e, t, r, d);
7962
8013
  };
7963
- function d1(d, t, $) {
7964
- return $ == "001" ? K(d, "" + t) : K(d, $);
8014
+ function Q(d, t, e) {
8015
+ return e == "001" ? K(d, "" + t) : K(d, e);
7965
8016
  }
7966
- function t1(d) {
8017
+ function d1(d) {
7967
8018
  if (!R(d, 2)) return "";
7968
8019
  var t = "" + p(d, 2);
7969
8020
  return R(d, 4) && p(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
7970
8021
  }
7971
- function G1(d, t, $, r) {
8022
+ function G1(d, t, e, r) {
7972
8023
  switch (t) {
7973
8024
  case 0:
7974
- return "+" + d + $ + r;
8025
+ return "+" + d + e + r;
7975
8026
  case 1:
7976
- return "+" + d + " " + $ + r;
8027
+ return "+" + d + " " + e + r;
7977
8028
  case 3:
7978
- return "tel:+" + d + "-" + $ + r;
8029
+ return "tel:+" + d + "-" + e + r;
7979
8030
  default:
7980
- return $ + r;
8031
+ return e + r;
7981
8032
  }
7982
8033
  }
7983
- function l1(d, t) {
8034
+ function u1(d, t) {
7984
8035
  switch (t) {
7985
8036
  case 4:
7986
8037
  return p(d, 5);
@@ -8007,39 +8058,47 @@ const V2 = (y) => {
8007
8058
  return p(d, 1);
8008
8059
  }
8009
8060
  }
8010
- function m1(d, t) {
8061
+ function F1(d, t) {
8062
+ var e = U1(d, t);
8063
+ return d = Q(d, S(t, 1), e), d == null ? -1 : (t = d1(t), C1(t, d));
8064
+ }
8065
+ function C1(d, t) {
8011
8066
  return k(d, p(t, 1)) ? k(d, p(t, 5)) ? 4 : k(d, p(t, 4)) ? 3 : k(d, p(t, 6)) ? 5 : k(d, p(t, 8)) ? 6 : k(d, p(t, 7)) ? 7 : k(d, p(t, 21)) ? 8 : k(d, p(t, 25)) ? 9 : k(d, p(t, 28)) ? 10 : k(d, p(t, 2)) ? p(t, 18) || k(d, p(t, 3)) ? 2 : 0 : !p(t, 18) && k(d, p(t, 3)) ? 1 : -1 : -1;
8012
8067
  }
8013
8068
  function K(d, t) {
8014
8069
  if (t == null) return null;
8015
8070
  t = t.toUpperCase();
8016
- var $ = d.g[t];
8017
- if ($ == null) {
8018
- if ($ = E1[t], $ == null) return null;
8019
- $ = new q().g(W.m(), $), d.g[t] = $;
8071
+ var e = d.g[t];
8072
+ if (e == null) {
8073
+ if (e = E1[t], e == null) return null;
8074
+ e = new J().g(W.m(), e), d.g[t] = e;
8020
8075
  }
8021
- return $;
8076
+ return e;
8022
8077
  }
8023
8078
  function k(d, t) {
8024
- var $ = d.length;
8025
- return 0 < F(t, 9) && P(t, 9).indexOf($) == -1 ? !1 : G(S(t, 2), d);
8079
+ var e = d.length;
8080
+ return 0 < U(t, 9) && P(t, 9).indexOf(e) == -1 ? !1 : G(S(t, 2), d);
8081
+ }
8082
+ function b2(d, t) {
8083
+ var e = U1(d, t), r = S(t, 1), s = Q(d, r, e);
8084
+ return s == null || e != "001" && r != V1(d, e) ? s = !1 : (d = d1(t), s = C1(d, s) != -1), s;
8026
8085
  }
8027
8086
  function U1(d, t) {
8028
8087
  if (t == null) return null;
8029
- var $ = S(t, 1);
8030
- if ($ = X[$], $ == null) d = null;
8031
- else if ($.length == 1) d = $[0];
8088
+ var e = S(t, 1);
8089
+ if (e = q[e], e == null) d = null;
8090
+ else if (e.length == 1) d = e[0];
8032
8091
  else d: {
8033
- t = t1(t);
8034
- for (var r, s = $.length, u = 0; u < s; u++) {
8035
- r = $[u];
8092
+ t = d1(t);
8093
+ for (var r, s = e.length, u = 0; u < s; u++) {
8094
+ r = e[u];
8036
8095
  var l = K(d, r);
8037
8096
  if (R(l, 23)) {
8038
8097
  if (t.search(p(l, 23)) == 0) {
8039
8098
  d = r;
8040
8099
  break d;
8041
8100
  }
8042
- } else if (m1(t, l) != -1) {
8101
+ } else if (C1(t, l) != -1) {
8043
8102
  d = r;
8044
8103
  break d;
8045
8104
  }
@@ -8048,70 +8107,70 @@ const V2 = (y) => {
8048
8107
  }
8049
8108
  return d;
8050
8109
  }
8051
- function e1(d) {
8052
- return d = X[d], d == null ? "ZZ" : d[0];
8110
+ function t1(d) {
8111
+ return d = q[d], d == null ? "ZZ" : d[0];
8053
8112
  }
8054
- function F1(d, t) {
8113
+ function V1(d, t) {
8055
8114
  if (d = K(d, t), d == null) throw Error("Invalid region code: " + t);
8056
8115
  return S(d, 10);
8057
8116
  }
8058
- function a1(d, t, $, r) {
8059
- var s = l1($, r), u = F(s, 9) == 0 ? P(p($, 1), 9) : P(s, 9);
8060
- if (s = P(s, 10), r == 2) if (k1(l1($, 0))) d = l1($, 1), k1(d) && (u = u.concat(F(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), u.sort(), s.length == 0 ? s = P(d, 10) : (s = s.concat(P(d, 10)), s.sort()));
8061
- else return a1(d, t, $, 1);
8062
- return u[0] == -1 ? 5 : (t = t.length, -1 < s.indexOf(t) ? 4 : ($ = u[0], $ == t ? 0 : $ > t ? 2 : u[u.length - 1] < t ? 3 : -1 < u.indexOf(t, 1) ? 0 : 5));
8117
+ function l1(d, t, e, r) {
8118
+ var s = u1(e, r), u = U(s, 9) == 0 ? P(p(e, 1), 9) : P(s, 9);
8119
+ if (s = P(s, 10), r == 2) if (k1(u1(e, 0))) d = u1(e, 1), k1(d) && (u = u.concat(U(d, 9) == 0 ? P(p(e, 1), 9) : P(d, 9)), u.sort(), s.length == 0 ? s = P(d, 10) : (s = s.concat(P(d, 10)), s.sort()));
8120
+ else return l1(d, t, e, 1);
8121
+ return u[0] == -1 ? 5 : (t = t.length, -1 < s.indexOf(t) ? 4 : (e = u[0], e == t ? 0 : e > t ? 2 : u[u.length - 1] < t ? 3 : -1 < u.indexOf(t, 1) ? 0 : 5));
8063
8122
  }
8064
- function J(d, t, $) {
8065
- var r = t1(t);
8066
- return t = S(t, 1), t in X ? (t = d1(d, t, e1(t)), a1(d, r, t, $)) : 1;
8123
+ function a1(d, t, e) {
8124
+ var r = d1(t);
8125
+ return t = S(t, 1), t in q ? (t = Q(d, t, t1(t)), l1(d, r, t, e)) : 1;
8067
8126
  }
8068
- function V1(d, t) {
8127
+ function K1(d, t) {
8069
8128
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
8070
- for (var $, r = d.length, s = 1; 3 >= s && s <= r; ++s) if ($ = parseInt(d.substring(0, s), 10), $ in X) return t.g(d.substring(s)), $;
8129
+ for (var e, r = d.length, s = 1; 3 >= s && s <= r; ++s) if (e = parseInt(d.substring(0, s), 10), e in q) return t.g(d.substring(s)), e;
8071
8130
  return 0;
8072
8131
  }
8073
- function K1(d, t, $, r, s, u) {
8132
+ function H1(d, t, e, r, s, u) {
8074
8133
  if (t.length == 0) return 0;
8075
- t = new N(t);
8134
+ t = new T(t);
8076
8135
  var l;
8077
- $ != null && (l = p($, 11)), l == null && (l = "NonMatch");
8136
+ e != null && (l = p(e, 11)), l == null && (l = "NonMatch");
8078
8137
  var h = t.toString();
8079
8138
  if (h.length == 0) l = 20;
8080
- else if (Q.test(h)) h = h.replace(Q, ""), B(t), t.g(R1(h)), l = 1;
8139
+ else if (X.test(h)) h = h.replace(X, ""), B(t), t.g(R1(h)), l = 1;
8081
8140
  else {
8082
8141
  if (h = new RegExp(l), B1(t), l = t.toString(), l.search(h) == 0) {
8083
8142
  h = l.match(h)[0].length;
8084
- var C = l.substring(h).match(D1);
8085
- C && C[1] != null && 0 < C[1].length && o1(C[1], C1) == "0" ? l = !1 : (B(t), t.g(l.substring(h)), l = !0);
8143
+ var m = l.substring(h).match(D1);
8144
+ m && m[1] != null && 0 < m[1].length && s1(m[1], g1) == "0" ? l = !1 : (B(t), t.g(l.substring(h)), l = !0);
8086
8145
  } else l = !1;
8087
8146
  l = l ? 5 : 20;
8088
8147
  }
8089
8148
  if (s && E(u, 6, l), l != 20) {
8090
8149
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
8091
- if (d = V1(t, r), d != 0) return E(u, 1, d), d;
8150
+ if (d = K1(t, r), d != 0) return E(u, 1, d), d;
8092
8151
  throw Error("Invalid country calling code");
8093
8152
  }
8094
- return $ != null && (l = S($, 10), h = "" + l, C = t.toString(), C.lastIndexOf(h, 0) == 0 && (h = new N(C.substring(h.length)), C = p($, 1), C = new RegExp(S(C, 2)), H1(h, $, null), h = h.toString(), !G(C, t.toString()) && G(C, h) || a1(d, t.toString(), $, -1) == 3)) ? (r.g(h), s && E(u, 6, 10), E(u, 1, l), l) : (E(u, 1, 0), 0);
8153
+ return e != null && (l = S(e, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new T(m.substring(h.length)), m = p(e, 1), m = new RegExp(S(m, 2)), j1(h, e, null), h = h.toString(), !G(m, t.toString()) && G(m, h) || l1(d, t.toString(), e, -1) == 3)) ? (r.g(h), s && E(u, 6, 10), E(u, 1, l), l) : (E(u, 1, 0), 0);
8095
8154
  }
8096
- function H1(d, t, $) {
8155
+ function j1(d, t, e) {
8097
8156
  var r = d.toString(), s = r.length, u = p(t, 15);
8098
8157
  if (s != 0 && u != null && u.length != 0) {
8099
8158
  var l = new RegExp("^(?:" + u + ")");
8100
8159
  if (s = l.exec(r)) {
8101
8160
  u = new RegExp(S(p(t, 1), 2));
8102
- var h = G(u, r), C = s.length - 1;
8103
- t = p(t, 16), t == null || t.length == 0 || s[C] == null || s[C].length == 0 ? (!h || G(u, r.substring(s[0].length))) && ($ != null && 0 < C && s[C] != null && $.g(s[1]), d.set(r.substring(s[0].length))) : (r = r.replace(l, t), (!h || G(u, r)) && ($ != null && 0 < C && $.g(s[1]), d.set(r)));
8161
+ var h = G(u, r), m = s.length - 1;
8162
+ t = p(t, 16), t == null || t.length == 0 || s[m] == null || s[m].length == 0 ? (!h || G(u, r.substring(s[0].length))) && (e != null && 0 < m && s[m] != null && e.g(s[1]), d.set(r.substring(s[0].length))) : (r = r.replace(l, t), (!h || G(u, r)) && (e != null && 0 < m && e.g(s[1]), d.set(r)));
8104
8163
  }
8105
8164
  }
8106
8165
  }
8107
- function z(d, t, $) {
8108
- if (!u1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8109
- return j1(d, t, $, !0);
8166
+ function z(d, t, e) {
8167
+ if (!o1(e) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8168
+ return W1(d, t, e, !0);
8110
8169
  }
8111
- function j1(d, t, $, r) {
8170
+ function W1(d, t, e, r) {
8112
8171
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
8113
8172
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
8114
- var s = new N(), u = t.indexOf(";phone-context=");
8173
+ var s = new T(), u = t.indexOf(";phone-context=");
8115
8174
  if (u === -1) u = null;
8116
8175
  else if (u += 15, u >= t.length) u = "";
8117
8176
  else {
@@ -8119,32 +8178,32 @@ const V2 = (y) => {
8119
8178
  u = l !== -1 ? t.substring(u, l) : t.substring(u);
8120
8179
  }
8121
8180
  var h = u;
8122
- if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = y2.exec(h), h = _2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && s.g(u), u = t.indexOf("tel:"), s.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = s.g, l = t ?? "", h = l.search(p2), 0 <= h ? (l = l.substring(h), l = l.replace(C2, ""), h = l.search(g2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(s, l)), u = s.toString(), l = u.indexOf(";isub="), 0 < l && (B(s), s.g(u.substring(0, l))), !x1(s.toString()))) throw Error("The string supplied did not seem to be a phone number");
8123
- if (u = s.toString(), !(u1($) || u != null && 0 < u.length && Q.test(u))) throw Error("Invalid country calling code");
8181
+ if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = _2.exec(h), h = I2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && s.g(u), u = t.indexOf("tel:"), s.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = s.g, l = t ?? "", h = l.search(g2), 0 <= h ? (l = l.substring(h), l = l.replace(m2, ""), h = l.search(C2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(s, l)), u = s.toString(), l = u.indexOf(";isub="), 0 < l && (B(s), s.g(u.substring(0, l))), !x1(s.toString()))) throw Error("The string supplied did not seem to be a phone number");
8182
+ if (u = s.toString(), !(o1(e) || u != null && 0 < u.length && X.test(u))) throw Error("Invalid country calling code");
8124
8183
  u = new V(), r && E(u, 5, t);
8125
8184
  d: {
8126
8185
  if (t = s.toString(), l = t.search(P1), 0 <= l && x1(t.substring(0, l))) {
8127
8186
  h = t.match(P1);
8128
- for (var C = h.length, U = 1; U < C; ++U) if (h[U] != null && 0 < h[U].length) {
8129
- B(s), s.g(t.substring(0, l)), t = h[U];
8187
+ for (var m = h.length, F = 1; F < m; ++F) if (h[F] != null && 0 < h[F].length) {
8188
+ B(s), s.g(t.substring(0, l)), t = h[F];
8130
8189
  break d;
8131
8190
  }
8132
8191
  }
8133
8192
  t = "";
8134
8193
  }
8135
- 0 < t.length && E(u, 3, t), l = K(d, $), t = new N(), h = 0, C = s.toString();
8194
+ 0 < t.length && E(u, 3, t), l = K(d, e), t = new T(), h = 0, m = s.toString();
8136
8195
  try {
8137
- h = K1(d, C, l, t, r, u);
8196
+ h = H1(d, m, l, t, r, u);
8138
8197
  } catch (_1) {
8139
- if (_1.message == "Invalid country calling code" && Q.test(C)) {
8140
- if (C = C.replace(Q, ""), h = K1(d, C, l, t, r, u), h == 0) throw _1;
8198
+ if (_1.message == "Invalid country calling code" && X.test(m)) {
8199
+ if (m = m.replace(X, ""), h = H1(d, m, l, t, r, u), h == 0) throw _1;
8141
8200
  } else throw _1;
8142
8201
  }
8143
- if (h != 0 ? (s = e1(h), s != $ && (l = d1(d, h, s))) : (B1(s), t.g(s.toString()), $ != null ? (h = S(l, 10), E(
8202
+ if (h != 0 ? (s = t1(h), s != e && (l = Q(d, h, s))) : (B1(s), t.g(s.toString()), e != null ? (h = S(l, 10), E(
8144
8203
  u,
8145
8204
  1,
8146
8205
  h
8147
- )) : r && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new N(), s = new N(t.toString()), H1(s, l, $), d = a1(d, s.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = s, r && 0 < $.toString().length && E(u, 7, $.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8206
+ )) : r && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && (e = new T(), s = new T(t.toString()), j1(s, l, e), d = l1(d, s.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = s, r && 0 < e.toString().length && E(u, 7, e.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8148
8207
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
8149
8208
  if (1 < r.length && r.charAt(0) == "0") {
8150
8209
  for (E(u, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
@@ -8155,44 +8214,44 @@ const V2 = (y) => {
8155
8214
  function G(d, t) {
8156
8215
  return !!((d = typeof d == "string" ? t.match("^(?:" + d + ")$") : t.match(d)) && d[0].length == t.length);
8157
8216
  }
8158
- function w2(d) {
8159
- this.fa = RegExp(" "), this.ja = "", this.v = new N(), this.da = "", this.s = new N(), this.ba = new N(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new N(), this.ha = !1, this.o = "", this.g = new N(), this.j = [], this.ka = d, this.l = Z1(this, this.ka);
8217
+ function L2(d) {
8218
+ this.fa = RegExp(" "), this.ja = "", this.v = new T(), this.da = "", this.s = new T(), this.ba = new T(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new T(), this.ha = !1, this.o = "", this.g = new T(), this.j = [], this.ka = d, this.l = Y1(this, this.ka);
8160
8219
  }
8161
- var W1 = new W();
8162
- E(W1, 11, "NA");
8163
- var b2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), z1 = /[- ]/;
8164
- function Z1(d, t) {
8165
- var $ = d.ga;
8166
- return t = u1(t) ? F1($, t) : 0, d = K(d.ga, e1(t)), d ?? W1;
8220
+ var z1 = new W();
8221
+ E(z1, 11, "NA");
8222
+ var N2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), Z1 = /[- ]/;
8223
+ function Y1(d, t) {
8224
+ var e = d.ga;
8225
+ return t = o1(t) ? V1(e, t) : 0, d = K(d.ga, t1(t)), d ?? z1;
8167
8226
  }
8168
- function Y1(d) {
8169
- for (var t = d.j.length, $ = 0; $ < t; ++$) {
8170
- var r = d.j[$], s = S(r, 1);
8227
+ function J1(d) {
8228
+ for (var t = d.j.length, e = 0; e < t; ++e) {
8229
+ var r = d.j[e], s = S(r, 1);
8171
8230
  if (d.da == s) return !1;
8172
8231
  var u = d, l = r, h = S(l, 1);
8173
8232
  B(u.v);
8174
- var C = u;
8233
+ var m = u;
8175
8234
  l = S(l, 2);
8176
- var U = "999999999999999".match(h)[0];
8177
- if (U.length < C.g.h.length ? C = "" : (C = U.replace(new RegExp(h, "g"), l), C = C.replace(RegExp("9", "g"), " ")), 0 < C.length ? (u.v.g(C), u = !0) : u = !1, u) return d.da = s, d.ha = z1.test(p(r, 4)), d.$ = 0, !0;
8235
+ var F = "999999999999999".match(h)[0];
8236
+ if (F.length < m.g.h.length ? m = "" : (m = F.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da = s, d.ha = Z1.test(p(r, 4)), d.$ = 0, !0;
8178
8237
  }
8179
8238
  return d.u = !1;
8180
8239
  }
8181
- function J1(d, t) {
8182
- for (var $ = [], r = t.length - 3, s = d.j.length, u = 0; u < s; ++u) {
8240
+ function q1(d, t) {
8241
+ for (var e = [], r = t.length - 3, s = d.j.length, u = 0; u < s; ++u) {
8183
8242
  var l = d.j[u];
8184
- F(l, 3) == 0 ? $.push(d.j[u]) : (l = p(l, 3, Math.min(r, F(l, 3) - 1)), t.search(l) == 0 && $.push(d.j[u]));
8243
+ U(l, 3) == 0 ? e.push(d.j[u]) : (l = p(l, 3, Math.min(r, U(l, 3) - 1)), t.search(l) == 0 && e.push(d.j[u]));
8185
8244
  }
8186
- d.j = $;
8245
+ d.j = e;
8187
8246
  }
8188
- function L2(d, t) {
8247
+ function T2(d, t) {
8189
8248
  d.s.g(t);
8190
- var $ = t;
8191
- if (D1.test($) || d.s.h.length == 1 && f2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = C1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
8249
+ var e = t;
8250
+ if (D1.test(e) || d.s.h.length == 1 && p2.test(e) ? (t == "+" ? (e = t, d.ba.g(t)) : (e = g1[t], d.ba.g(e), d.g.g(e)), t = e) : (d.u = !1, d.la = !0), !d.u) {
8192
8251
  if (!d.la) {
8193
- if (t2(d)) {
8194
- if (e2(d)) return q1(d);
8195
- } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, $))), d.o != d2(d)) return d.h.g(" "), q1(d);
8252
+ if (e2(d)) {
8253
+ if ($2(d)) return X1(d);
8254
+ } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), e = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, e))), d.o != t2(d)) return d.h.g(" "), X1(d);
8196
8255
  }
8197
8256
  return d.s.toString();
8198
8257
  }
@@ -8202,96 +8261,96 @@ const V2 = (y) => {
8202
8261
  case 2:
8203
8262
  return d.s.toString();
8204
8263
  case 3:
8205
- if (t2(d)) d.ea = !0;
8206
- else return d.o = d2(d), y1(d);
8264
+ if (e2(d)) d.ea = !0;
8265
+ else return d.o = t2(d), m1(d);
8207
8266
  default:
8208
- return d.ea ? (e2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = $2(d, t), $ = X1(d), 0 < $.length ? $ : (J1(d, d.g.toString()), Y1(d) ? Q1(d) : d.u ? h1(d, t) : d.s.toString())) : y1(d);
8267
+ return d.ea ? ($2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = n2(d, t), e = Q1(d), 0 < e.length ? e : (q1(d, d.g.toString()), J1(d) ? d2(d) : d.u ? h1(d, t) : d.s.toString())) : m1(d);
8209
8268
  }
8210
8269
  }
8211
- function q1(d) {
8212
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", y1(d);
8213
- }
8214
8270
  function X1(d) {
8215
- for (var t = d.g.toString(), $ = d.j.length, r = 0; r < $; ++r) {
8271
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", m1(d);
8272
+ }
8273
+ function Q1(d) {
8274
+ for (var t = d.g.toString(), e = d.j.length, r = 0; r < e; ++r) {
8216
8275
  var s = d.j[r], u = S(s, 1);
8217
- if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = z1.test(p(s, 4)), s = t.replace(new RegExp(u, "g"), p(s, 2)), s = h1(d, s), o1(s, h2) == d.ba)) return s;
8276
+ if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = Z1.test(p(s, 4)), s = t.replace(new RegExp(u, "g"), p(s, 2)), s = h1(d, s), s1(s, c2) == d.ba)) return s;
8218
8277
  }
8219
8278
  return "";
8220
8279
  }
8221
8280
  function h1(d, t) {
8222
- var $ = d.h.h.length;
8223
- return d.ha && 0 < $ && d.h.toString().charAt($ - 1) != " " ? d.h + " " + t : d.h + t;
8281
+ var e = d.h.h.length;
8282
+ return d.ha && 0 < e && d.h.toString().charAt(e - 1) != " " ? d.h + " " + t : d.h + t;
8224
8283
  }
8225
- function y1(d) {
8284
+ function m1(d) {
8226
8285
  var t = d.g.toString();
8227
8286
  if (3 <= t.length) {
8228
- for (var $ = d.ca && d.o.length == 0 && 0 < F(d.l, 20) ? P(d.l, 20) : P(d.l, 19), r = $.length, s = 0; s < r; ++s) {
8229
- var u = $[s];
8230
- 0 < d.o.length && O1(S(u, 4)) && !p(u, 6) && !R(u, 5) || (d.o.length != 0 || d.ca || O1(S(u, 4)) || p(u, 6)) && b2.test(S(u, 2)) && d.j.push(u);
8287
+ for (var e = d.ca && d.o.length == 0 && 0 < U(d.l, 20) ? P(d.l, 20) : P(d.l, 19), r = e.length, s = 0; s < r; ++s) {
8288
+ var u = e[s];
8289
+ 0 < d.o.length && O1(S(u, 4)) && !p(u, 6) && !R(u, 5) || (d.o.length != 0 || d.ca || O1(S(u, 4)) || p(u, 6)) && N2.test(S(u, 2)) && d.j.push(u);
8231
8290
  }
8232
- return J1(d, t), t = X1(d), 0 < t.length ? t : Y1(d) ? Q1(d) : d.s.toString();
8291
+ return q1(d, t), t = Q1(d), 0 < t.length ? t : J1(d) ? d2(d) : d.s.toString();
8233
8292
  }
8234
8293
  return h1(d, t);
8235
8294
  }
8236
- function Q1(d) {
8237
- var t = d.g.toString(), $ = t.length;
8238
- if (0 < $) {
8239
- for (var r = "", s = 0; s < $; s++) r = $2(d, t.charAt(s));
8295
+ function d2(d) {
8296
+ var t = d.g.toString(), e = t.length;
8297
+ if (0 < e) {
8298
+ for (var r = "", s = 0; s < e; s++) r = n2(d, t.charAt(s));
8240
8299
  return d.u ? h1(d, r) : d.s.toString();
8241
8300
  }
8242
8301
  return d.h.toString();
8243
8302
  }
8244
- function d2(d) {
8245
- var t = d.g.toString(), $ = 0;
8303
+ function t2(d) {
8304
+ var t = d.g.toString(), e = 0;
8246
8305
  if (p(d.l, 10) != 1) var r = !1;
8247
8306
  else r = d.g.toString(), r = r.charAt(0) == "1" && r.charAt(1) != "0" && r.charAt(1) != "1";
8248
- return r ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (r = new RegExp("^(?:" + p(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, $ = r[0].length, d.h.g(t.substring(0, $)))), B(d.g), d.g.g(t.substring($)), t.substring(0, $);
8249
- }
8250
- function t2(d) {
8251
- var t = d.ba.toString(), $ = new RegExp("^(?:\\+|" + p(d.l, 11) + ")");
8252
- return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length, B(d.g), d.g.g(t.substring($)), B(d.h), d.h.g(t.substring(0, $)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8307
+ return r ? (e = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (r = new RegExp("^(?:" + p(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, e = r[0].length, d.h.g(t.substring(0, e)))), B(d.g), d.g.g(t.substring(e)), t.substring(0, e);
8253
8308
  }
8254
8309
  function e2(d) {
8310
+ var t = d.ba.toString(), e = new RegExp("^(?:\\+|" + p(d.l, 11) + ")");
8311
+ return e = t.match(e), e != null && e[0] != null && 0 < e[0].length ? (d.ca = !0, e = e[0].length, B(d.g), d.g.g(t.substring(e)), B(d.h), d.h.g(t.substring(0, e)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8312
+ }
8313
+ function $2(d) {
8255
8314
  if (d.g.h.length == 0) return !1;
8256
- var t = new N(), $ = V1(d.g, t);
8257
- return $ == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = e1($), t == "001" ? d.l = K(d.ga, "" + $) : t != d.ka && (d.l = Z1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
8258
- }
8259
- function $2(d, t) {
8260
- var $ = d.v.toString();
8261
- if (0 <= $.substring(d.$).search(d.fa)) {
8262
- var r = $.search(d.fa);
8263
- return t = $.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
8315
+ var t = new T(), e = K1(d.g, t);
8316
+ return e == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = t1(e), t == "001" ? d.l = K(d.ga, "" + e) : t != d.ka && (d.l = Y1(d, t)), d.h.g("" + e).g(" "), d.o = "", !0);
8317
+ }
8318
+ function n2(d, t) {
8319
+ var e = d.v.toString();
8320
+ if (0 <= e.substring(d.$).search(d.fa)) {
8321
+ var r = e.search(d.fa);
8322
+ return t = e.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
8264
8323
  }
8265
8324
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
8266
8325
  }
8267
- const c1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
8268
- e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
8326
+ const y1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
8327
+ $("intlTelInputUtilsTemp", {}), $("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
8269
8328
  try {
8270
- const $ = d.replace(/[^+0-9]/g, ""), r = new w2(t);
8329
+ const e = d.replace(/[^+0-9]/g, ""), r = new L2(t);
8271
8330
  t = "";
8272
- for (let s = 0; s < $.length; s++) r.ja = L2(r, $.charAt(s)), t = r.ja;
8331
+ for (let s = 0; s < e.length; s++) r.ja = T2(r, e.charAt(s)), t = r.ja;
8273
8332
  return t;
8274
8333
  } catch {
8275
8334
  return d;
8276
8335
  }
8277
- }), e("intlTelInputUtilsTemp.formatNumber", (d, t, $) => {
8336
+ }), $("intlTelInputUtilsTemp.formatNumber", (d, t, e) => {
8278
8337
  try {
8279
8338
  const s = D.g(), u = z(s, d, t);
8280
- var r = J(s, u, -1);
8281
- return r == 0 || r == 4 ? s.format(u, typeof $ > "u" ? 0 : $) : d;
8339
+ var r = a1(s, u, -1);
8340
+ return r == 0 || r == 4 ? s.format(u, typeof e > "u" ? 0 : e) : d;
8282
8341
  } catch {
8283
8342
  return d;
8284
8343
  }
8285
- }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, $, r) => {
8344
+ }), $("intlTelInputUtilsTemp.getExampleNumber", (d, t, e, r) => {
8286
8345
  try {
8287
- const C = D.g();
8346
+ const m = D.g();
8288
8347
  d: {
8289
- var s = C;
8290
- if (u1(d)) {
8291
- var u = l1(K(s, d), $);
8348
+ var s = m;
8349
+ if (o1(d)) {
8350
+ var u = u1(K(s, d), e);
8292
8351
  try {
8293
8352
  if (R(u, 6)) {
8294
- var l = p(u, 6), h = j1(s, l, d, !1);
8353
+ var l = p(u, 6), h = W1(s, l, d, !1);
8295
8354
  break d;
8296
8355
  }
8297
8356
  } catch {
@@ -8299,79 +8358,66 @@ const V2 = (y) => {
8299
8358
  }
8300
8359
  h = null;
8301
8360
  }
8302
- return C.format(h, r ? 0 : t ? 2 : 1);
8361
+ return m.format(h, r ? 0 : t ? 2 : 1);
8303
8362
  } catch {
8304
8363
  return "";
8305
8364
  }
8306
- }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
8365
+ }), $("intlTelInputUtilsTemp.getExtension", (d, t) => {
8307
8366
  try {
8308
8367
  return p(z(D.g(), d, t), 3);
8309
8368
  } catch {
8310
8369
  return "";
8311
8370
  }
8312
- }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
8371
+ }), $("intlTelInputUtilsTemp.getNumberType", (d, t) => {
8313
8372
  try {
8314
- const l = D.g(), h = z(l, d, t);
8315
- var $ = U1(l, h), r = d1(l, S(h, 1), $);
8316
- if (r == null) var s = -1;
8317
- else {
8318
- var u = t1(h);
8319
- s = m1(u, r);
8320
- }
8321
- return s;
8373
+ const e = D.g(), r = z(e, d, t);
8374
+ return F1(e, r);
8322
8375
  } catch {
8323
8376
  return -99;
8324
8377
  }
8325
- }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
8378
+ }), $("intlTelInputUtilsTemp.getValidationError", (d, t) => {
8326
8379
  if (!t) return 1;
8327
8380
  try {
8328
- const $ = D.g(), r = z($, d, t);
8329
- return J($, r, -1);
8330
- } catch ($) {
8331
- return $.message === "Invalid country calling code" ? 1 : 3 >= d.length || $.message === "Phone number too short after IDD" || $.message === "The string supplied is too short to be a phone number" ? 2 : $.message === "The string supplied is too long to be a phone number" ? 3 : -99;
8381
+ const e = D.g(), r = z(e, d, t);
8382
+ return a1(e, r, -1);
8383
+ } catch (e) {
8384
+ return e.message === "Invalid country calling code" ? 1 : 3 >= d.length || e.message === "Phone number too short after IDD" || e.message === "The string supplied is too short to be a phone number" ? 2 : e.message === "The string supplied is too long to be a phone number" ? 3 : -99;
8332
8385
  }
8333
- }), e("intlTelInputUtilsTemp.isValidNumber", (d, t) => {
8386
+ }), $("intlTelInputUtilsTemp.isValidNumber", (d, t, e) => {
8334
8387
  try {
8335
- const C = D.g();
8336
- var $ = z(C, d, t), r = U1(C, $);
8337
- d = C;
8338
- var s = S($, 1), u = d1(d, s, r);
8339
- if (u == null || r != "001" && s != F1(d, r)) var l = !1;
8340
- else {
8341
- var h = t1($);
8342
- l = m1(h, u) != -1;
8388
+ const r = D.g(), s = z(r, d, t), u = b2(r, s);
8389
+ if (e) {
8390
+ const l = e.map((h) => y1[h]);
8391
+ return u && l.includes(F1(r, s));
8343
8392
  }
8344
- return l;
8393
+ return u;
8345
8394
  } catch {
8346
8395
  return !1;
8347
8396
  }
8348
- }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, $) => {
8397
+ }), $("intlTelInputUtilsTemp.isPossibleNumber", (d, t, e) => {
8349
8398
  try {
8350
8399
  const r = D.g(), s = z(r, d, t);
8351
- if ($) {
8352
- const u = J(r, s, c1[$]) === 0;
8353
- if ($ === "FIXED_LINE_OR_MOBILE") {
8354
- const l = J(r, s, c1.MOBILE) === 0, h = J(r, s, c1.FIXED_LINE) === 0;
8355
- return l || h || u;
8356
- }
8357
- return u;
8400
+ if (e) {
8401
+ e.includes("FIXED_LINE_OR_MOBILE") && (e.includes("MOBILE") || e.push("MOBILE"), e.includes("FIXED_LINE") || e.push("FIXED_LINE"));
8402
+ for (let u of e) if (a1(r, s, y1[u]) === 0) return !0;
8403
+ return !1;
8358
8404
  }
8359
- return J(r, s, -1) === 0;
8405
+ return a1(r, s, -1) === 0;
8360
8406
  } catch {
8361
8407
  return !1;
8362
8408
  }
8363
- }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
8409
+ }), $("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
8364
8410
  try {
8365
8411
  return p(z(D.g(), d, t), 2).toString();
8366
8412
  } catch {
8367
8413
  return "";
8368
8414
  }
8369
- }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", c1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8415
+ }), $("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), $("intlTelInputUtilsTemp.numberType", y1), $("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8370
8416
  })();
8371
- const K2 = window.intlTelInputUtilsTemp;
8417
+ const j2 = window.intlTelInputUtilsTemp;
8372
8418
  delete window.intlTelInputUtilsTemp;
8373
- m.utils = K2;
8374
- const j2 = {
8419
+ C.utils = j2;
8420
+ const z2 = {
8375
8421
  __name: "IntlTelInputWithUtils",
8376
8422
  props: /* @__PURE__ */ i2({
8377
8423
  disabled: {
@@ -8403,8 +8449,8 @@ const j2 = {
8403
8449
  "changeValidity",
8404
8450
  "changeErrorCode"
8405
8451
  ], ["update:modelValue"]),
8406
- setup(y, { expose: e, emit: i }) {
8407
- const n = T2(y, "modelValue"), o = y, a = i, c = I1(), g = I1(), f = I1(!1), b = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, _ = () => {
8452
+ setup(y, { expose: $, emit: n }) {
8453
+ const i = A2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1), b = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, _ = () => {
8408
8454
  let v = b();
8409
8455
  f.value !== v && (f.value = v, a("changeValidity", !!v), a(
8410
8456
  "changeErrorCode",
@@ -8417,29 +8463,29 @@ const j2 = {
8417
8463
  var v;
8418
8464
  a("changeCountry", ((v = g.value) == null ? void 0 : v.getSelectedCountryData().iso2) ?? ""), I(), _();
8419
8465
  };
8420
- return N2(() => {
8421
- c.value && (g.value = m(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled));
8422
- }), A2(
8466
+ return E2(() => {
8467
+ c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled));
8468
+ }), D2(
8423
8469
  () => o.disabled,
8424
8470
  (v) => {
8425
- var T;
8426
- return (T = g.value) == null ? void 0 : T.setDisabled(v);
8471
+ var N;
8472
+ return (N = g.value) == null ? void 0 : N.setDisabled(v);
8427
8473
  }
8428
- ), E2(() => {
8474
+ ), M2(() => {
8429
8475
  var v;
8430
8476
  return (v = g.value) == null ? void 0 : v.destroy();
8431
- }), e({ instance: g, input: c }), (v, T) => D2((M2(), P2("input", x2({
8477
+ }), $({ instance: g, input: c }), (v, N) => P2((x2(), R2("input", B2({
8432
8478
  ref_key: "input",
8433
8479
  ref: c,
8434
- "onUpdate:modelValue": T[0] || (T[0] = (M) => n.value = M),
8480
+ "onUpdate:modelValue": N[0] || (N[0] = (M) => i.value = M),
8435
8481
  type: "tel",
8436
8482
  onCountrychange: L,
8437
8483
  onInput: I
8438
8484
  }, y.inputProps), null, 16)), [
8439
- [R2, n.value]
8485
+ [k2, i.value]
8440
8486
  ]);
8441
8487
  }
8442
8488
  };
8443
8489
  export {
8444
- j2 as default
8490
+ z2 as default
8445
8491
  };