@alfalab/core-components-intl-phone-input 6.4.0 → 6.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/{component-7d88f33a.d.ts → component-fbf58e08.d.ts} +0 -0
  3. package/dist/{component-7d88f33a.js → component-fbf58e08.js} +1 -1
  4. package/dist/component.d.ts +9 -0
  5. package/dist/component.js +133 -64
  6. package/dist/components/flag-icon/component.js +1 -1
  7. package/dist/components/flag-icon/index.css +261 -261
  8. package/dist/components/index.js +1 -1
  9. package/dist/components/select/component.js +2 -2
  10. package/dist/components/select/index.css +6 -6
  11. package/dist/components/select/index.js +1 -1
  12. package/dist/components/select-field/component.js +1 -1
  13. package/dist/components/select-field/index.css +8 -8
  14. package/dist/components/select-field/index.d.ts +1 -1
  15. package/dist/components/select-field/index.js +1 -1
  16. package/dist/cssm/component.d.ts +9 -0
  17. package/dist/cssm/component.js +131 -62
  18. package/dist/cssm/index.js +1 -1
  19. package/dist/cssm/{libphonenumber-js.min-d3a9d490.d.ts → libphonenumber-js.min-903db150.d.ts} +0 -0
  20. package/dist/cssm/libphonenumber-js.min-903db150.js +2227 -0
  21. package/dist/cssm/useCaretAvoidCountryCode.js +24 -20
  22. package/dist/cssm/utils/calculateCaretPos.d.ts +7 -0
  23. package/dist/cssm/utils/calculateCaretPos.js +27 -0
  24. package/dist/esm/{component-32da0c87.d.ts → component-25b3eb47.d.ts} +0 -0
  25. package/dist/esm/{component-32da0c87.js → component-25b3eb47.js} +1 -1
  26. package/dist/esm/component.d.ts +9 -0
  27. package/dist/esm/component.js +134 -65
  28. package/dist/esm/components/flag-icon/component.js +1 -1
  29. package/dist/esm/components/flag-icon/index.css +261 -261
  30. package/dist/esm/components/index.js +1 -1
  31. package/dist/esm/components/select/component.js +2 -2
  32. package/dist/esm/components/select/index.css +6 -6
  33. package/dist/esm/components/select/index.js +1 -1
  34. package/dist/esm/components/select-field/component.js +1 -1
  35. package/dist/esm/components/select-field/index.css +8 -8
  36. package/dist/esm/components/select-field/index.d.ts +1 -1
  37. package/dist/esm/components/select-field/index.js +1 -1
  38. package/dist/esm/index.css +3 -3
  39. package/dist/esm/index.js +2 -2
  40. package/dist/esm/{libphonenumber-js.min-c49027d7.d.ts → libphonenumber-js.min-24f2609b.d.ts} +0 -0
  41. package/dist/esm/libphonenumber-js.min-24f2609b.js +2225 -0
  42. package/dist/esm/useCaretAvoidCountryCode.js +25 -21
  43. package/dist/esm/utils/calculateCaretPos.d.ts +7 -0
  44. package/dist/esm/utils/calculateCaretPos.js +23 -0
  45. package/dist/index.css +3 -3
  46. package/dist/index.js +2 -2
  47. package/dist/{libphonenumber-js.min-13d3dc00.d.ts → libphonenumber-js.min-6d8f77f6.d.ts} +0 -0
  48. package/dist/libphonenumber-js.min-6d8f77f6.js +2227 -0
  49. package/dist/modern/component.d.ts +9 -0
  50. package/dist/modern/component.js +131 -61
  51. package/dist/modern/components/flag-icon/component.js +1 -1
  52. package/dist/modern/components/flag-icon/index.css +261 -261
  53. package/dist/modern/components/select/component.js +1 -1
  54. package/dist/modern/components/select/index.css +6 -6
  55. package/dist/modern/components/select-field/component.js +1 -1
  56. package/dist/modern/components/select-field/index.css +8 -8
  57. package/dist/modern/index.css +3 -3
  58. package/dist/modern/index.js +1 -1
  59. package/dist/modern/{libphonenumber-js.min-c49027d7.d.ts → libphonenumber-js.min-24f2609b.d.ts} +0 -0
  60. package/dist/modern/libphonenumber-js.min-24f2609b.js +2225 -0
  61. package/dist/modern/useCaretAvoidCountryCode.js +25 -21
  62. package/dist/modern/utils/calculateCaretPos.d.ts +7 -0
  63. package/dist/modern/utils/calculateCaretPos.js +23 -0
  64. package/dist/useCaretAvoidCountryCode.js +24 -20
  65. package/dist/utils/calculateCaretPos.d.ts +7 -0
  66. package/dist/utils/calculateCaretPos.js +27 -0
  67. package/package.json +6 -6
  68. package/dist/cssm/libphonenumber-js.min-d3a9d490.js +0 -1569
  69. package/dist/cssm/usePreventCaretReset.d.ts +0 -8
  70. package/dist/cssm/usePreventCaretReset.js +0 -36
  71. package/dist/esm/libphonenumber-js.min-c49027d7.js +0 -1567
  72. package/dist/esm/usePreventCaretReset.d.ts +0 -8
  73. package/dist/esm/usePreventCaretReset.js +0 -32
  74. package/dist/libphonenumber-js.min-13d3dc00.js +0 -1569
  75. package/dist/modern/libphonenumber-js.min-c49027d7.js +0 -1567
  76. package/dist/modern/usePreventCaretReset.d.ts +0 -8
  77. package/dist/modern/usePreventCaretReset.js +0 -31
  78. package/dist/usePreventCaretReset.d.ts +0 -8
  79. package/dist/usePreventCaretReset.js +0 -36
@@ -1,1569 +0,0 @@
1
- 'use strict';
2
-
3
- !function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = t || self).libphonenumber = {}); }(undefined, (function (t) {
4
- var e = { version: 4, country_calling_codes: { 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"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([457]\\d{6})$", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2457]\\d{6})$", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "11\\d{8}|(?:[2368]|9\\d)\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "1|([267]\\d{6})$", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "0|(183[12])", 0, 0, 0, [["8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-7]|3[2-4]|[4-6]\\d))|91(?:[0-57-9]\\d|6[0135-9])\\d)\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}", [6, 8, 10]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365|46", "1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "246$1", 0, "246"], BD: ["880", "00", "1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[047]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:[2689]\\d|51)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[25689]"]]]], BL: ["590", "00", "(?:590|69\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"], 0, 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([3-8]\\d{6})$", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "90\\d{5}|(?:0800|[2-6]|7\\d)\\d{6}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[2-6]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "(?:[2-8]\\d|90)\\d{8}", [10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["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[12]|33|44|66|77|88)|622)[2-9]\\d{6}"], 0, 0, 0, ["600[2-9]\\d{6}"]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}", [6, 8, 10]]], "0011"], CD: ["243", "00", "[189]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["801"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[02-9]"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-3]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "(?:[26]\\d\\d|88)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "(?:10|2[0-57-9])(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "0|(1(?:[12]\\d|79)\\d\\d)", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:1\\d|3)\\d{9}|[124-8]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1 $2", ["[14][2-9]|[25-8]"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["5"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|235)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}", [6, 8, 10]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[05]\\d{10}|[46][1-8]\\d{4,9})|49(?:[0-25]\\d|3[1-689]|7[1-7])\\d{4,8}|49(?:[0-2579]\\d|[34][1-9]|6[0-8])\\d{3}|49\\d{3,4}|(?:1|[368]\\d|4[0-8])\\d{3,13}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[189]"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-59]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-59]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]]], 0, 0, "0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[03])|(?:4[0-5]|5[0-26-9]|6[0-4]|[78][0-49])\\d\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[02]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "0|([25-9]\\d{5})$", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "[256]\\d{7}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-689]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\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]"]]]], GP: ["590", "00", "(?:590|69\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"], 0, 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|(?:[2689]\\d|70)\\d{8}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]]]], GT: ["502", "00", "(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "1|([3-9]\\d{6})$", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-489]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-489]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([5-8]\\d{5})$", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[245])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1[4679]|[38]"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], 0, 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([0-24-8]\\d{5})$", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"]], "0"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|(?:[235-8]\\d|99)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "(?:18|[2569]\\d\\d)\\d{5}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[25]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "345$1", 0, "345"], KZ: ["7", "810", "33622\\d{5}|(?:7\\d|80)\\d{8}", [10], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[013-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[7-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "758$1", 0, "758"], LI: ["423", "00", "90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[237-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "0|(1001)"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{5})(\\d{4})", "$1-$2", ["5(?:29|38)", "5(?:29|38)[89]", "5(?:29|38)[89]0"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-489]|3[5-9]|9)|892", "5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[015-7]\\d|2[02-9]|3[0-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-8]|6[1267]|7[0-37]))\\d{6}"], ["80\\d{7}"], ["89\\d{7}"], 0, 0, 0, 0, ["592(?:4[0-2]|93)\\d{4}"]]], MC: ["377", "00", "870\\d{5}|(?:[349]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[39]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590|69\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}"], 0, 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "0|([24-9]\\d{6})$", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[57-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[57-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "(?:28|[68]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "670$1", 0, "670"], MQ: ["596", "00", "69\\d{7}|(?:59|97)6\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "1|([34]\\d{6})$", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[2-468]|5\\d)\\d{6}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["5"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[3467]|9[13-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "1\\d{6}(?:\\d{2})?|(?:[23]1|77|88|99)\\d{7}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "(?:1(?:[01467]\\d|[2359][1-9]|8[1-79])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9])|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1[36-8]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "[2-57-9]\\d{5}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[2-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[04]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-57-9]"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[489]|5[89]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-7]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-579]|6[2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[47]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-579]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|[89]0", "50(?:[0367]|88)|[89]0"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[59]|80"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7|86"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|8007\\d{4,5}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "8\\d{9}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, 0, " Anexo "], PF: ["689", "00", "[48]\\d{7}|4\\d{5}", [6, 8], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[48]"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "1800\\d{7,9}|(?:2|[89]\\d{4})\\d{5}|[2-8]\\d{8}|[28]\\d{7}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-6])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["2[126]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]]]], RE: ["262", "00", "9769\\d{5}|(?:26|[68]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, "26[23]|69|[89]"], RO: ["40", "00", "(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[237-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "[347-9]\\d{9}", [10], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[3489]"], "8 ($1)", 1]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "8000\\d{3}|(?:[249]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-3]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[4589]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[2378]\\d|66|99)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d{4}|93330)\\d{4}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["24|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3478]|64|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[1-35-9]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|(5\\d{6})$", "721$1", 0, "721"], SY: ["963", "00", "[1-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "1|([2-479]\\d{6})$", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "1\\d{9}|[1689]\\d{8}|[1-57]\\d{7}", [8, 9, 10], [["(\\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"]]], "0"], TJ: ["992", "810", "(?:[02]0|11|[3-57-9]\\d)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"], 0, 1], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[34]7|91[78]"], 0, 1], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3"], 0, 1], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02457-9]|11"], 0, 1]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "[1-6]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["6"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|[5-8]\\d{3})\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-8]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[0589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|616)", "5(?:[0-59]|6161)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-46-8]\\d{6})$", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[26-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]", "4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["[3-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}", [10], [["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["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[12]|33|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "4\\d{9}|[249]\\d{7}|(?:[49]\\d|80)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["405|8|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[24]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["4"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "810", "55501\\d{4}|(?:33|[679]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[35-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-578]\\d{6})$", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[69]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3578]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "(?:[23]\\d|[48]8)\\d{3}|(?:[57]\\d|90)\\d{5}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[579]"]]]], WF: ["681", "00", "(?:[45]0|68|72|8\\d)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[4-8]"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[23]"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7[24-68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "80\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, "269|63"], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["[1-9]\\d{7}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "[35-7]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]\\d|7[6-8])\\d{7}"]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "[0-36-9]\\d{8}", [9], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-36-9]"]]], 0, 0, 0, 0, 0, 0, [0, ["[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|[19]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[19]"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["34[57]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-3]"]]], 0, 0, 0, 0, 0, 0, [0, ["3(?:37\\d\\d|42)\\d{4}|3(?:2|47|7\\d{3})\\d{7}", [7, 9, 10, 12]], 0, 0, 0, 0, 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]], 883: ["883", 0, "51\\d{7}(?:\\d{3})?", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["510"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["5"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["51[013]0\\d{8}|5100\\d{5}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
5
- function n(t, n) { var d = Array.prototype.slice.call(n); return d.push(e), t.apply(this, d); }
6
- var d = function t(e) {
7
- !function (t, e) {
8
- if (!(t instanceof e))
9
- throw new TypeError("Cannot call a class as a function");
10
- }(this, t), this.name = this.constructor.name, this.message = e, this.stack = new Error(e).stack;
11
- };
12
- (d.prototype = Object.create(Error.prototype)).constructor = d;
13
- var r = "".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~");
14
- function i(t, e) {
15
- t = t.split("-"), e = e.split("-");
16
- for (var n = t[0].split("."), d = e[0].split("."), r = 0; r < 3; r++) {
17
- var i = Number(n[r]), a = Number(d[r]);
18
- if (i > a)
19
- return 1;
20
- if (a > i)
21
- return -1;
22
- if (!isNaN(i) && isNaN(a))
23
- return 1;
24
- if (isNaN(i) && !isNaN(a))
25
- return -1;
26
- }
27
- return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
28
- }
29
- function a(t) { return (a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
30
- function $(t, e) {
31
- if (!(t instanceof e))
32
- throw new TypeError("Cannot call a class as a function");
33
- }
34
- function o(t, e) {
35
- for (var n = 0; n < e.length; n++) {
36
- var d = e[n];
37
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
38
- }
39
- }
40
- function u(t, e, n) { return e && o(t.prototype, e), n && o(t, n), t; }
41
- var l = /^\d+$/, s = function () {
42
- function t(e) {
43
- $(this, t), function (t) {
44
- if (!t)
45
- throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
46
- if (!y(t) || !y(t.countries))
47
- throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(y(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + v(t) + ": " + t, "."));
48
- }(e), this.metadata = e, N.call(this, e);
49
- }
50
- return u(t, [{ key: "getCountries", value: function () { return Object.keys(this.metadata.countries).filter((function (t) { return "001" !== t; })); } }, { key: "getCountryMetadata", value: function (t) { return this.metadata.countries[t]; } }, { key: "nonGeographic", value: function () {
51
- if (!(this.v1 || this.v2 || this.v3))
52
- return this.metadata.nonGeographic || this.metadata.nonGeographical;
53
- } }, { key: "hasCountry", value: function (t) { return void 0 !== this.getCountryMetadata(t); } }, { key: "hasCallingCode", value: function (t) {
54
- if (this.getCountryCodesForCallingCode(t))
55
- return !0;
56
- if (this.nonGeographic()) {
57
- if (this.nonGeographic()[t])
58
- return !0;
59
- }
60
- else {
61
- var e = this.countryCallingCodes()[t];
62
- if (e && 1 === e.length && "001" === e[0])
63
- return !0;
64
- }
65
- } }, { key: "isNonGeographicCallingCode", value: function (t) { return this.nonGeographic() ? !!this.nonGeographic()[t] : !this.getCountryCodesForCallingCode(t); } }, { key: "country", value: function (t) { return this.selectNumberingPlan(t); } }, { key: "selectNumberingPlan", value: function (t, e) {
66
- if (t && l.test(t) && (e = t, t = null), t && "001" !== t) {
67
- if (!this.hasCountry(t))
68
- throw new Error("Unknown country: ".concat(t));
69
- this.numberingPlan = new f(this.getCountryMetadata(t), this);
70
- }
71
- else if (e) {
72
- if (!this.hasCallingCode(e))
73
- throw new Error("Unknown calling code: ".concat(e));
74
- this.numberingPlan = new f(this.getNumberingPlanMetadata(e), this);
75
- }
76
- else
77
- this.numberingPlan = void 0;
78
- return this;
79
- } }, { key: "getCountryCodesForCallingCode", value: function (t) {
80
- var e = this.countryCallingCodes()[t];
81
- if (e) {
82
- if (1 === e.length && 3 === e[0].length)
83
- return;
84
- return e;
85
- }
86
- } }, { key: "getCountryCodeForCallingCode", value: function (t) {
87
- var e = this.getCountryCodesForCallingCode(t);
88
- if (e)
89
- return e[0];
90
- } }, { key: "getNumberingPlanMetadata", value: function (t) {
91
- var e = this.getCountryCodeForCallingCode(t);
92
- if (e)
93
- return this.getCountryMetadata(e);
94
- if (this.nonGeographic()) {
95
- var n = this.nonGeographic()[t];
96
- if (n)
97
- return n;
98
- }
99
- else {
100
- var d = this.countryCallingCodes()[t];
101
- if (d && 1 === d.length && "001" === d[0])
102
- return this.metadata.countries["001"];
103
- }
104
- } }, { key: "countryCallingCode", value: function () { return this.numberingPlan.callingCode(); } }, { key: "IDDPrefix", value: function () { return this.numberingPlan.IDDPrefix(); } }, { key: "defaultIDDPrefix", value: function () { return this.numberingPlan.defaultIDDPrefix(); } }, { key: "nationalNumberPattern", value: function () { return this.numberingPlan.nationalNumberPattern(); } }, { key: "possibleLengths", value: function () { return this.numberingPlan.possibleLengths(); } }, { key: "formats", value: function () { return this.numberingPlan.formats(); } }, { key: "nationalPrefixForParsing", value: function () { return this.numberingPlan.nationalPrefixForParsing(); } }, { key: "nationalPrefixTransformRule", value: function () { return this.numberingPlan.nationalPrefixTransformRule(); } }, { key: "leadingDigits", value: function () { return this.numberingPlan.leadingDigits(); } }, { key: "hasTypes", value: function () { return this.numberingPlan.hasTypes(); } }, { key: "type", value: function (t) { return this.numberingPlan.type(t); } }, { key: "ext", value: function () { return this.numberingPlan.ext(); } }, { key: "countryCallingCodes", value: function () { return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes; } }, { key: "chooseCountryByCountryCallingCode", value: function (t) { return this.selectNumberingPlan(t); } }, { key: "hasSelectedNumberingPlan", value: function () { return void 0 !== this.numberingPlan; } }]), t;
105
- }(), f = function () {
106
- function t(e, n) { $(this, t), this.globalMetadataObject = n, this.metadata = e, N.call(this, n.metadata); }
107
- return u(t, [{ key: "callingCode", value: function () { return this.metadata[0]; } }, { key: "getDefaultCountryMetadataForRegion", value: function () { return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode()); } }, { key: "IDDPrefix", value: function () {
108
- if (!this.v1 && !this.v2)
109
- return this.metadata[1];
110
- } }, { key: "defaultIDDPrefix", value: function () {
111
- if (!this.v1 && !this.v2)
112
- return this.metadata[12];
113
- } }, { key: "nationalNumberPattern", value: function () { return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2]; } }, { key: "possibleLengths", value: function () {
114
- if (!this.v1)
115
- return this.metadata[this.v2 ? 2 : 3];
116
- } }, { key: "_getFormats", value: function (t) { return t[this.v1 ? 2 : this.v2 ? 3 : 4]; } }, { key: "formats", value: function () { var t = this, e = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || []; return e.map((function (e) { return new c(e, t); })); } }, { key: "nationalPrefix", value: function () { return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5]; } }, { key: "_getNationalPrefixFormattingRule", value: function (t) { return t[this.v1 ? 4 : this.v2 ? 5 : 6]; } }, { key: "nationalPrefixFormattingRule", value: function () { return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion()); } }, { key: "_nationalPrefixForParsing", value: function () { return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7]; } }, { key: "nationalPrefixForParsing", value: function () { return this._nationalPrefixForParsing() || this.nationalPrefix(); } }, { key: "nationalPrefixTransformRule", value: function () { return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8]; } }, { key: "_getNationalPrefixIsOptionalWhenFormatting", value: function () { return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9]; } }, { key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat", value: function () { return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion()); } }, { key: "leadingDigits", value: function () { return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10]; } }, { key: "types", value: function () { return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11]; } }, { key: "hasTypes", value: function () { return (!this.types() || 0 !== this.types().length) && !!this.types(); } }, { key: "type", value: function (t) {
117
- if (this.hasTypes() && m(this.types(), t))
118
- return new g(m(this.types(), t), this);
119
- } }, { key: "ext", value: function () { return this.v1 || this.v2 ? " ext. " : this.metadata[13] || " ext. "; } }]), t;
120
- }(), c = function () { function t(e, n) { $(this, t), this._format = e, this.metadata = n; } return u(t, [{ key: "pattern", value: function () { return this._format[0]; } }, { key: "format", value: function () { return this._format[1]; } }, { key: "leadingDigitsPatterns", value: function () { return this._format[2] || []; } }, { key: "nationalPrefixFormattingRule", value: function () { return this._format[3] || this.metadata.nationalPrefixFormattingRule(); } }, { key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat", value: function () { return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat(); } }, { key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat", value: function () { return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat(); } }, { key: "usesNationalPrefix", value: function () { return !(!this.nationalPrefixFormattingRule() || h.test(this.nationalPrefixFormattingRule())); } }, { key: "internationalFormat", value: function () { return this._format[5] || this.format(); } }]), t; }(), h = /^\(?\$1\)?$/, g = function () {
121
- function t(e, n) { $(this, t), this.type = e, this.metadata = n; }
122
- return u(t, [{ key: "pattern", value: function () { return this.metadata.v1 ? this.type : this.type[0]; } }, { key: "possibleLengths", value: function () {
123
- if (!this.metadata.v1)
124
- return this.type[1] || this.metadata.possibleLengths();
125
- } }]), t;
126
- }();
127
- function m(t, e) {
128
- switch (e) {
129
- case "FIXED_LINE": return t[0];
130
- case "MOBILE": return t[1];
131
- case "TOLL_FREE": return t[2];
132
- case "PREMIUM_RATE": return t[3];
133
- case "PERSONAL_NUMBER": return t[4];
134
- case "VOICEMAIL": return t[5];
135
- case "UAN": return t[6];
136
- case "PAGER": return t[7];
137
- case "VOIP": return t[8];
138
- case "SHARED_COST": return t[9];
139
- }
140
- }
141
- var y = function (t) { return "object" === a(t); }, v = function (t) { return a(t); };
142
- function p(t, e) { return (e = new s(e)).hasCountry(t) ? e.country(t).ext() : " ext. "; }
143
- function b(t, e) {
144
- if ((e = new s(e)).hasCountry(t))
145
- return e.country(t).countryCallingCode();
146
- throw new Error("Unknown country: ".concat(t));
147
- }
148
- function C(t, e) { return void 0 !== e.countries[t]; }
149
- function N(t) { var e = t.version; "number" == typeof e ? (this.v1 = 1 === e, this.v2 = 2 === e, this.v3 = 3 === e, this.v4 = 4 === e) : e ? -1 === i(e, "1.2.0") ? this.v2 = !0 : -1 === i(e, "1.7.35") ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0; }
150
- var x = function (t) { return "([".concat("0-90-9٠-٩۰-۹", "]{1,").concat(t, "})"); };
151
- function P(t) { return ";ext=" + x("20") + "|" + ("[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + x("20") + "#?") + "|" + ("[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*" + x("9") + "#?") + "|" + ("[- ]+" + x("6") + "#") + "|" + ("[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*" + x("15") + "#?") + "|" + ("[  \\t]*(?:,)+[:\\..]?[  \\t,-]*" + x("9") + "#?"); }
152
- var S = "[++]{0,1}(?:[" + r + "]*[0-90-9٠-٩۰-۹]){3,}[" + r + "0-90-9٠-٩۰-۹]*" + "(?:" + P() + ")?", E = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^" + S + "$", "i");
153
- function w(t) { return t.length >= 2 && E.test(t); }
154
- var O = new RegExp("(?:" + P() + ")$", "i");
155
- var I = { 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" };
156
- function T(t) { return I[t]; }
157
- function A(t) {
158
- var e = "", n = t.split(""), d = Array.isArray(n), r = 0;
159
- for (n = d ? n : n[Symbol.iterator]();;) {
160
- var i;
161
- if (d) {
162
- if (r >= n.length)
163
- break;
164
- i = n[r++];
165
- }
166
- else {
167
- if ((r = n.next()).done)
168
- break;
169
- i = r.value;
170
- }
171
- var a = T(i);
172
- a && (e += a);
173
- }
174
- return e;
175
- }
176
- function F(t) {
177
- var e = "", n = t.split(""), d = Array.isArray(n), r = 0;
178
- for (n = d ? n : n[Symbol.iterator]();;) {
179
- var i;
180
- if (d) {
181
- if (r >= n.length)
182
- break;
183
- i = n[r++];
184
- }
185
- else {
186
- if ((r = n.next()).done)
187
- break;
188
- i = r.value;
189
- }
190
- e += k(i, e) || "";
191
- }
192
- return e;
193
- }
194
- function k(t, e) {
195
- if ("+" === t) {
196
- if (e)
197
- return;
198
- return "+";
199
- }
200
- return T(t);
201
- }
202
- function R(t, e) {
203
- return function t(e, n, d) {
204
- var r = d.type(n), i = r && r.possibleLengths() || d.possibleLengths();
205
- if (!i)
206
- return "IS_POSSIBLE";
207
- if ("FIXED_LINE_OR_MOBILE" === n) {
208
- if (!d.type("FIXED_LINE"))
209
- return t(e, "MOBILE", d);
210
- var a = d.type("MOBILE");
211
- a && (i = function (t, e) {
212
- var n = t.slice(), d = e, r = Array.isArray(d), i = 0;
213
- for (d = r ? d : d[Symbol.iterator]();;) {
214
- var a;
215
- if (r) {
216
- if (i >= d.length)
217
- break;
218
- a = d[i++];
219
- }
220
- else {
221
- if ((i = d.next()).done)
222
- break;
223
- a = i.value;
224
- }
225
- var $ = a;
226
- t.indexOf($) < 0 && n.push($);
227
- }
228
- return n.sort((function (t, e) { return t - e; }));
229
- }(i, a.possibleLengths()));
230
- }
231
- else if (n && !r)
232
- return "INVALID_LENGTH";
233
- var $ = e.length, o = i[0];
234
- if (o === $)
235
- return "IS_POSSIBLE";
236
- if (o > $)
237
- return "TOO_SHORT";
238
- if (i[i.length - 1] < $)
239
- return "TOO_LONG";
240
- return i.indexOf($, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
241
- }(t, void 0, e);
242
- }
243
- function D(t, e, n) {
244
- if (void 0 === e && (e = {}), n = new s(n), e.v2) {
245
- if (!t.countryCallingCode)
246
- throw new Error("Invalid phone number object passed");
247
- n.selectNumberingPlan(t.countryCallingCode);
248
- }
249
- else {
250
- if (!t.phone)
251
- return !1;
252
- if (t.country) {
253
- if (!n.hasCountry(t.country))
254
- throw new Error("Unknown country: ".concat(t.country));
255
- n.country(t.country);
256
- }
257
- else {
258
- if (!t.countryCallingCode)
259
- throw new Error("Invalid phone number object passed");
260
- n.selectNumberingPlan(t.countryCallingCode);
261
- }
262
- }
263
- if (n.possibleLengths())
264
- return M(t.phone || t.nationalNumber, n);
265
- if (t.countryCallingCode && n.isNonGeographicCallingCode(t.countryCallingCode))
266
- return !0;
267
- throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
268
- }
269
- function M(t, e) {
270
- switch (R(t, e)) {
271
- case "IS_POSSIBLE": return !0;
272
- default: return !1;
273
- }
274
- }
275
- function L(t, e) {
276
- return function (t) {
277
- if (Array.isArray(t))
278
- return t;
279
- }(t) || function (t, e) {
280
- var n = [], d = !0, r = !1, i = void 0;
281
- try {
282
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
283
- ;
284
- }
285
- catch (t) {
286
- r = !0, i = t;
287
- }
288
- finally {
289
- try {
290
- d || null == $.return || $.return();
291
- }
292
- finally {
293
- if (r)
294
- throw i;
295
- }
296
- }
297
- return n;
298
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
299
- }
300
- function _(t) {
301
- var e, n, d = (t = t.replace(/^tel:/, "tel=")).split(";"), r = Array.isArray(d), i = 0;
302
- for (d = r ? d : d[Symbol.iterator]();;) {
303
- var a;
304
- if (r) {
305
- if (i >= d.length)
306
- break;
307
- a = d[i++];
308
- }
309
- else {
310
- if ((i = d.next()).done)
311
- break;
312
- a = i.value;
313
- }
314
- var $ = L(a.split("="), 2), o = $[0], u = $[1];
315
- switch (o) {
316
- case "tel":
317
- e = u;
318
- break;
319
- case "ext":
320
- n = u;
321
- break;
322
- case "phone-context": "+" === u[0] && (e = u + e);
323
- }
324
- }
325
- if (!w(e))
326
- return {};
327
- var l = { number: e };
328
- return n && (l.ext = n), l;
329
- }
330
- function G(t) {
331
- var e = t.number, n = t.ext;
332
- if (!e)
333
- return "";
334
- if ("+" !== e[0])
335
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
336
- return "tel:".concat(e).concat(n ? ";ext=" + n : "");
337
- }
338
- function B(t, e) { return t = t || "", new RegExp("^(?:" + e + ")$").test(t); }
339
- var j = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
340
- function U(t, e, n) {
341
- if (e = e || {}, t.country) {
342
- (n = new s(n)).selectNumberingPlan(t.country, t.countryCallingCode);
343
- var d = e.v2 ? t.nationalNumber : t.phone;
344
- if (B(d, n.nationalNumberPattern())) {
345
- if (W(d, "FIXED_LINE", n))
346
- return n.type("MOBILE") && "" === n.type("MOBILE").pattern() ? "FIXED_LINE_OR_MOBILE" : n.type("MOBILE") ? W(d, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE" : "FIXED_LINE_OR_MOBILE";
347
- for (var r = 0, i = j; r < i.length; r++) {
348
- var a = i[r];
349
- if (W(d, a, n))
350
- return a;
351
- }
352
- }
353
- }
354
- }
355
- function W(t, e, n) { return !(!(e = n.type(e)) || !e.pattern()) && (!(e.possibleLengths() && e.possibleLengths().indexOf(t.length) < 0) && B(t, e.pattern())); }
356
- function V(t, e, n) { return e = e || {}, n = new s(n), !!t.country && (n.selectNumberingPlan(t.country, t.countryCallingCode), n.hasTypes() ? void 0 !== U(t, e, n.metadata) : B(e.v2 ? t.nationalNumber : t.phone, n.nationalNumberPattern())); }
357
- function K(t) { return t.replace(new RegExp("[".concat(r, "]+"), "g"), " ").trim(); }
358
- var H = /(\$\d)/;
359
- function Y(t, e, n) { var d = n.useInternationalFormat, r = n.withNationalPrefix, i = (n.carrierCode, n.metadata, t.replace(new RegExp(e.pattern()), d ? e.internationalFormat() : r && e.nationalPrefixFormattingRule() ? e.format().replace(H, e.nationalPrefixFormattingRule()) : e.format())); return d ? K(i) : i; }
360
- var Z = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
361
- function X(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
362
- var J = { formatExtension: function (t, e, n) { return "".concat(t).concat(n.ext()).concat(e); } };
363
- function Q(t, e, n, d) {
364
- if (n = n ? function (t) {
365
- for (var e = 1; e < arguments.length; e++) {
366
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
367
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { X(t, e, n[e]); }));
368
- }
369
- return t;
370
- }({}, J, n) : J, d = new s(d), t.country && "001" !== t.country) {
371
- if (!d.hasCountry(t.country))
372
- throw new Error("Unknown country: ".concat(t.country));
373
- d.country(t.country);
374
- }
375
- else {
376
- if (!t.countryCallingCode)
377
- return t.phone || "";
378
- d.selectNumberingPlan(t.countryCallingCode);
379
- }
380
- var r, i = d.countryCallingCode(), a = n.v2 ? t.nationalNumber : t.phone;
381
- switch (e) {
382
- case "NATIONAL": return a ? q(r = z(a, t.carrierCode, "NATIONAL", d, n), t.ext, d, n.formatExtension) : "";
383
- case "INTERNATIONAL": return a ? (r = z(a, null, "INTERNATIONAL", d, n), q(r = "+".concat(i, " ").concat(r), t.ext, d, n.formatExtension)) : "+".concat(i);
384
- case "E.164": return "+".concat(i).concat(a);
385
- case "RFC3966": return G({ number: "+".concat(i).concat(a), ext: t.ext });
386
- case "IDD":
387
- if (!n.fromCountry)
388
- return;
389
- return q(function (t, e, n, d, r) {
390
- if (b(d, r.metadata) === n) {
391
- var i = z(t, e, "NATIONAL", r);
392
- return "1" === n ? n + " " + i : i;
393
- }
394
- var a = function (t, e, n) { var d = new s(n); return d.selectNumberingPlan(t, e), Z.test(d.IDDPrefix()) ? d.IDDPrefix() : d.defaultIDDPrefix(); }(d, void 0, r.metadata);
395
- if (a)
396
- return "".concat(a, " ").concat(n, " ").concat(z(t, null, "INTERNATIONAL", r));
397
- }(a, t.carrierCode, i, n.fromCountry, d), t.ext, d, n.formatExtension);
398
- default: throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
399
- }
400
- }
401
- function z(t, e, n, d, r) {
402
- var i = function (t, e) {
403
- var n = t, d = Array.isArray(n), r = 0;
404
- for (n = d ? n : n[Symbol.iterator]();;) {
405
- var i;
406
- if (d) {
407
- if (r >= n.length)
408
- break;
409
- i = n[r++];
410
- }
411
- else {
412
- if ((r = n.next()).done)
413
- break;
414
- i = r.value;
415
- }
416
- var a = i;
417
- if (a.leadingDigitsPatterns().length > 0) {
418
- var $ = a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length - 1];
419
- if (0 !== e.search($))
420
- continue;
421
- }
422
- if (B(e, a.pattern()))
423
- return a;
424
- }
425
- }(d.formats(), t);
426
- return i ? Y(t, i, { useInternationalFormat: "INTERNATIONAL" === n, withNationalPrefix: !i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !r || !1 !== r.nationalPrefix, carrierCode: e, metadata: d }) : t;
427
- }
428
- function q(t, e, n, d) { return e ? d(t, e, n) : t; }
429
- function tt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
430
- function et(t, e) {
431
- for (var n = 0; n < e.length; n++) {
432
- var d = e[n];
433
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
434
- }
435
- }
436
- var nt = function () {
437
- function t(e, n, d) {
438
- if (function (t, e) {
439
- if (!(t instanceof e))
440
- throw new TypeError("Cannot call a class as a function");
441
- }(this, t), !e)
442
- throw new TypeError("`country` or `countryCallingCode` not passed");
443
- if (!n)
444
- throw new TypeError("`nationalNumber` not passed");
445
- var r = new s(d);
446
- dt(e) && (this.country = e, r.country(e), e = r.countryCallingCode()), this.countryCallingCode = e, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.metadata = d;
447
- }
448
- var e, n;
449
- return e = t, (n = [{ key: "isPossible", value: function () { return D(this, { v2: !0 }, this.metadata); } }, { key: "isValid", value: function () { return V(this, { v2: !0 }, this.metadata); } }, { key: "isNonGeographic", value: function () { return new s(this.metadata).isNonGeographicCallingCode(this.countryCallingCode); } }, { key: "isEqual", value: function (t) { return this.number === t.number && this.ext === t.ext; } }, { key: "getType", value: function () { return U(this, { v2: !0 }, this.metadata); } }, { key: "format", value: function (t, e) {
450
- return Q(this, t, e ? function (t) {
451
- for (var e = 1; e < arguments.length; e++) {
452
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
453
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { tt(t, e, n[e]); }));
454
- }
455
- return t;
456
- }({}, e, { v2: !0 }) : { v2: !0 }, this.metadata);
457
- } }, { key: "formatNational", value: function (t) { return this.format("NATIONAL", t); } }, { key: "formatInternational", value: function (t) { return this.format("INTERNATIONAL", t); } }, { key: "getURI", value: function (t) { return this.format("RFC3966", t); } }]) && et(e.prototype, n), t;
458
- }(), dt = function (t) { return /^[A-Z]{2}$/.test(t); }, rt = new RegExp("([0-90-9٠-٩۰-۹])");
459
- function it(t, e, n, d) {
460
- if (e) {
461
- var r = new s(d);
462
- r.selectNumberingPlan(e, n);
463
- var i = new RegExp(r.IDDPrefix());
464
- if (0 === t.search(i)) {
465
- var a = (t = t.slice(t.match(i)[0].length)).match(rt);
466
- if (!(a && null != a[1] && a[1].length > 0 && "0" === a[1]))
467
- return t;
468
- }
469
- }
470
- }
471
- function at(t, e) {
472
- if (t && e.numberingPlan.nationalPrefixForParsing()) {
473
- var n = new RegExp("^(?:" + e.numberingPlan.nationalPrefixForParsing() + ")"), d = n.exec(t);
474
- if (d) {
475
- var r, i, a, $ = d.length - 1, o = $ > 0 && d[$];
476
- if (e.nationalPrefixTransformRule() && o)
477
- r = t.replace(n, e.nationalPrefixTransformRule()), $ > 1 && (i = d[1]);
478
- else {
479
- var u = d[0];
480
- r = t.slice(u.length), o && (i = d[1]);
481
- }
482
- if (o) {
483
- var l = t.indexOf(d[1]);
484
- t.slice(0, l) === e.numberingPlan.nationalPrefix() && (a = e.numberingPlan.nationalPrefix());
485
- }
486
- else
487
- a = d[0];
488
- return { nationalNumber: r, nationalPrefix: a, carrierCode: i };
489
- }
490
- }
491
- return { nationalNumber: t };
492
- }
493
- function $t(t, e) {
494
- var n = at(t, e), d = n.nationalNumber, r = n.carrierCode;
495
- if (!function (t, e, n) {
496
- if (B(t, n.nationalNumberPattern()) && !B(e, n.nationalNumberPattern()))
497
- return !1;
498
- return !0;
499
- }(t, d, e))
500
- return { nationalNumber: t };
501
- if (t.length !== d.length + (r ? r.length : 0) && e.possibleLengths())
502
- switch (R(d, e)) {
503
- case "TOO_SHORT":
504
- case "INVALID_LENGTH": return { nationalNumber: t };
505
- }
506
- return { nationalNumber: d, carrierCode: r };
507
- }
508
- function ot(t, e, n, d) {
509
- var r = e ? b(e, d) : n;
510
- if (0 === t.indexOf(r)) {
511
- (d = new s(d)).selectNumberingPlan(e, n);
512
- var i = t.slice(r.length), a = $t(i, d).nationalNumber, $ = $t(t, d).nationalNumber;
513
- if (!B($, d.nationalNumberPattern()) && B(a, d.nationalNumberPattern()) || "TOO_LONG" === R($, d))
514
- return { countryCallingCode: r, number: i };
515
- }
516
- return { number: t };
517
- }
518
- function ut(t, e, n, d) {
519
- if (!t)
520
- return {};
521
- if ("+" !== t[0]) {
522
- var r = it(t, e, n, d);
523
- if (!r || r === t) {
524
- if (e || n) {
525
- var i = ot(t, e, n, d), a = i.countryCallingCode, $ = i.number;
526
- if (a)
527
- return { countryCallingCode: a, number: $ };
528
- }
529
- return { number: t };
530
- }
531
- t = "+" + r;
532
- }
533
- if ("0" === t[1])
534
- return {};
535
- d = new s(d);
536
- for (var o = 2; o - 1 <= 3 && o <= t.length;) {
537
- var u = t.slice(1, o);
538
- if (d.hasCallingCode(u))
539
- return d.selectNumberingPlan(u), { countryCallingCode: u, number: t.slice(o) };
540
- o++;
541
- }
542
- return {};
543
- }
544
- function lt(t, e, n) {
545
- var d = n.getCountryCodesForCallingCode(t);
546
- if (d)
547
- return 1 === d.length ? d[0] : function (t, e, n) {
548
- n = new s(n);
549
- var d = t, r = Array.isArray(d), i = 0;
550
- for (d = r ? d : d[Symbol.iterator]();;) {
551
- var a;
552
- if (r) {
553
- if (i >= d.length)
554
- break;
555
- a = d[i++];
556
- }
557
- else {
558
- if ((i = d.next()).done)
559
- break;
560
- a = i.value;
561
- }
562
- var $ = a;
563
- if (n.country($), n.leadingDigits()) {
564
- if (e && 0 === e.search(n.leadingDigits()))
565
- return $;
566
- }
567
- else if (U({ phone: e, country: $ }, void 0, n.metadata))
568
- return $;
569
- }
570
- }(d, e, n.metadata);
571
- }
572
- var st = new RegExp("[++0-90-9٠-٩۰-۹]"), ft = new RegExp("[^0-90-9٠-٩۰-۹#]+$");
573
- function ct(t, e, n) {
574
- if (e = e || {}, n = new s(n), e.defaultCountry && !n.hasCountry(e.defaultCountry)) {
575
- if (e.v2)
576
- throw new d("INVALID_COUNTRY");
577
- throw new Error("Unknown country: ".concat(e.defaultCountry));
578
- }
579
- var r = function (t, e) {
580
- if (t && 0 === t.indexOf("tel:"))
581
- return _(t);
582
- var n = function (t, e) {
583
- if (!t)
584
- return;
585
- if (t.length > 250) {
586
- if (e)
587
- throw new d("TOO_LONG");
588
- return;
589
- }
590
- var n = t.search(st);
591
- if (n < 0)
592
- return;
593
- return t.slice(n).replace(ft, "");
594
- }(t, e);
595
- if (!n || !w(n))
596
- return {};
597
- var r = function (t) {
598
- var e = t.search(O);
599
- if (e < 0)
600
- return {};
601
- for (var n = t.slice(0, e), d = t.match(O), r = 1; r < d.length;) {
602
- if (d[r])
603
- return { number: n, ext: d[r] };
604
- r++;
605
- }
606
- }(n);
607
- if (r.ext)
608
- return r;
609
- return { number: n };
610
- }(t, e.v2), i = r.number, a = r.ext;
611
- if (!i) {
612
- if (e.v2)
613
- throw new d("NOT_A_NUMBER");
614
- return {};
615
- }
616
- var $ = function (t, e, n, d) {
617
- var r, i = ut(F(t), e, n, d.metadata), a = i.countryCallingCode, $ = i.number;
618
- if (a)
619
- d.selectNumberingPlan(a);
620
- else {
621
- if (!$ || !e && !n)
622
- return {};
623
- d.selectNumberingPlan(e, n), e && (r = e), a = n || b(e, d.metadata);
624
- }
625
- if (!$)
626
- return { countryCallingCode: a };
627
- var o = $t(F($), d), u = o.nationalNumber, l = o.carrierCode, s = lt(a, u, d);
628
- s && (r = s, "001" === s || d.country(r));
629
- return { country: r, countryCallingCode: a, nationalNumber: u, carrierCode: l };
630
- }(i, e.defaultCountry, e.defaultCallingCode, n), o = $.country, u = $.nationalNumber, l = $.countryCallingCode, f = $.carrierCode;
631
- if (!n.hasSelectedNumberingPlan()) {
632
- if (e.v2)
633
- throw new d("INVALID_COUNTRY");
634
- return {};
635
- }
636
- if (!u || u.length < 2) {
637
- if (e.v2)
638
- throw new d("TOO_SHORT");
639
- return {};
640
- }
641
- if (u.length > 17) {
642
- if (e.v2)
643
- throw new d("TOO_LONG");
644
- return {};
645
- }
646
- if (e.v2) {
647
- var c = new nt(l, u, n.metadata);
648
- return o && (c.country = o), f && (c.carrierCode = f), a && (c.ext = a), c;
649
- }
650
- var h = !(e.extended ? !n.hasSelectedNumberingPlan() : !o) && B(u, n.nationalNumberPattern());
651
- return e.extended ? { country: o, countryCallingCode: l, carrierCode: f, valid: h, possible: !!h || !(!0 !== e.extended || !n.possibleLengths() || !M(u, n)), phone: u, ext: a } : h ? function (t, e, n) { var d = { country: t, phone: e }; n && (d.ext = n); return d; }(o, u, a) : {};
652
- }
653
- function ht(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
654
- function gt(t, e, n) {
655
- return ct(t, function (t) {
656
- for (var e = 1; e < arguments.length; e++) {
657
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
658
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { ht(t, e, n[e]); }));
659
- }
660
- return t;
661
- }({}, e, { v2: !0 }), n);
662
- }
663
- function mt(t) { return (mt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
664
- function yt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
665
- function vt(t, e) {
666
- return function (t) {
667
- if (Array.isArray(t))
668
- return t;
669
- }(t) || function (t, e) {
670
- var n = [], d = !0, r = !1, i = void 0;
671
- try {
672
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
673
- ;
674
- }
675
- catch (t) {
676
- r = !0, i = t;
677
- }
678
- finally {
679
- try {
680
- d || null == $.return || $.return();
681
- }
682
- finally {
683
- if (r)
684
- throw i;
685
- }
686
- }
687
- return n;
688
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
689
- }
690
- function pt() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return gt(e, n, d); }
691
- function bt(t) {
692
- var e, n, d, r = vt(Array.prototype.slice.call(t), 4), i = r[0], a = r[1], $ = r[2], o = r[3];
693
- if ("string" != typeof i)
694
- throw new TypeError("A text for parsing must be a string.");
695
- if (e = i, a && "string" != typeof a) {
696
- if (!Ct(a))
697
- throw new Error("Invalid second argument: ".concat(a));
698
- $ ? (n = a, d = $) : d = a;
699
- }
700
- else
701
- o ? (n = $, d = o) : (n = void 0, d = $), a && (n = function (t) {
702
- for (var e = 1; e < arguments.length; e++) {
703
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
704
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { yt(t, e, n[e]); }));
705
- }
706
- return t;
707
- }({ defaultCountry: a }, n));
708
- return { text: e, options: n, metadata: d };
709
- }
710
- var Ct = function (t) { return "object" === mt(t); };
711
- function Nt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
712
- function xt(t, e, n) {
713
- e && e.defaultCountry && !C(e.defaultCountry, n) && (e = function (t) {
714
- for (var e = 1; e < arguments.length; e++) {
715
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
716
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { Nt(t, e, n[e]); }));
717
- }
718
- return t;
719
- }({}, e, { defaultCountry: void 0 }));
720
- try {
721
- return gt(t, e, n);
722
- }
723
- catch (t) {
724
- if (!(t instanceof d))
725
- throw t;
726
- }
727
- }
728
- function Pt() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return xt(e, n, d); }
729
- function St(t, e) {
730
- for (var n = 0; n < e.length; n++) {
731
- var d = e[n];
732
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
733
- }
734
- }
735
- function Et(t, e) {
736
- if (!(t instanceof e))
737
- throw new TypeError("Cannot call a class as a function");
738
- }
739
- var wt = function t(e, n) { var d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null, r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null; Et(this, t), this.key = e, this.value = n, this.next = d, this.prev = r; }, Ot = function () {
740
- function t() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 10; Et(this, t), this.size = 0, this.limit = e, this.head = null, this.tail = null, this.cache = {}; }
741
- var e, n;
742
- return e = t, (n = [{ key: "put", value: function (t, e) {
743
- if (this.ensureLimit(), this.head) {
744
- var n = new wt(t, e, this.head);
745
- this.head.prev = n, this.head = n;
746
- }
747
- else
748
- this.head = this.tail = new wt(t, e);
749
- this.cache[t] = this.head, this.size++;
750
- } }, { key: "get", value: function (t) {
751
- if (this.cache[t]) {
752
- var e = this.cache[t].value;
753
- return this.remove(t), this.put(t, e), e;
754
- }
755
- console.log("Item not available in cache for key ".concat(t));
756
- } }, { key: "ensureLimit", value: function () { this.size === this.limit && this.remove(this.tail.key); } }, { key: "remove", value: function (t) { var e = this.cache[t]; null !== e.prev ? e.prev.next = e.next : this.head = e.next, null !== e.next ? e.next.prev = e.prev : this.tail = e.prev, delete this.cache[t], this.size--; } }, { key: "clear", value: function () { this.head = null, this.tail = null, this.size = 0, this.cache = {}; } }]) && St(e.prototype, n), t;
757
- }();
758
- function It(t, e) {
759
- for (var n = 0; n < e.length; n++) {
760
- var d = e[n];
761
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
762
- }
763
- }
764
- var Tt = function () {
765
- function t(e) {
766
- !function (t, e) {
767
- if (!(t instanceof e))
768
- throw new TypeError("Cannot call a class as a function");
769
- }(this, t), this.cache = new Ot(e);
770
- }
771
- var e, n;
772
- return e = t, (n = [{ key: "getPatternForRegExp", value: function (t) { var e = this.cache.get(t); return e || (e = new RegExp("^" + t), this.cache.put(t, e)), e; } }]) && It(e.prototype, n), t;
773
- }();
774
- function At(t, e) {
775
- if (t < 0 || e <= 0 || e < t)
776
- throw new TypeError;
777
- return "{".concat(t, ",").concat(e, "}");
778
- }
779
- function Ft(t, e) { var n = e.search(t); return n >= 0 ? e.slice(0, n) : e; }
780
- var kt = "   ᠎ - \u2028\u2029   ", Rt = "[".concat(kt, "]"), Dt = "[^".concat(kt, "]"), Mt = "[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9", "]"), Lt = "A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", _t = "[".concat(Lt, "]"), Gt = new RegExp(_t), Bt = "[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩", "]"), jt = new RegExp(Bt), Ut = "[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦", "]"), Wt = new RegExp(Ut), Vt = new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");
781
- function Kt(t) { return !(!Gt.test(t) && !Wt.test(t)) && Vt.test(t); }
782
- function Ht(t) { return "%" === t || jt.test(t); }
783
- var Yt = { POSSIBLE: function (t, e, n) { return !0; }, VALID: function (t, e, n) { return !(!V(t, void 0, n) || !Zt(t, e.toString())); }, STRICT_GROUPING: function (t, e, n, d) { var r = e.toString(); return !(!V(t, void 0, n) || !Zt(t, r) || Jt(t, r) || !Xt(t)) && Qt(t, e, n, te, d); }, EXACT_GROUPING: function (t, e, n, d) { var r = e.toString(); return !(!V(t, void 0, n) || !Zt(t, r) || Jt(t, r) || !Xt(t)) && Qt(t, e, n, qt, d); } };
784
- function Zt(t, e, n) {
785
- for (var d = 0; d < e.length - 1; d++) {
786
- var r = e.charAt(d);
787
- if ("x" === r || "X" === r) {
788
- var i = e.charAt(d + 1);
789
- if ("x" === i || "X" === i) {
790
- if (d++, util.isNumberMatch(t, e.substring(d)) != MatchType.NSN_MATCH)
791
- return !1;
792
- }
793
- else if (A(e.substring(d)) !== t.ext)
794
- return !1;
795
- }
796
- }
797
- return !0;
798
- }
799
- function Xt(t, e) {
800
- if ("FROM_DEFAULT_COUNTRY" != t.getCountryCodeSource())
801
- return !0;
802
- var n = util.getRegionCodeForCountryCode(t.getCountryCode()), d = util.getMetadataForRegion(n);
803
- if (null == d)
804
- return !0;
805
- var r = util.getNationalSignificantNumber(t), i = util.chooseFormattingPatternForNumber(d.numberFormats(), r);
806
- if (i && i.getNationalPrefixFormattingRule().length > 0) {
807
- if (i.getNationalPrefixOptionalWhenFormatting())
808
- return !0;
809
- if (PhoneNumberUtil.formattingRuleHasFirstGroupOnly(i.getNationalPrefixFormattingRule()))
810
- return !0;
811
- var a = PhoneNumberUtil.normalizeDigitsOnly(t.getRawInput());
812
- return util.maybeStripNationalPrefixAndCarrierCode(a, d, null);
813
- }
814
- return !0;
815
- }
816
- function Jt(t, e) {
817
- var n = e.indexOf("/");
818
- if (n < 0)
819
- return !1;
820
- var d = e.indexOf("/", n + 1);
821
- return !(d < 0) && (!(t.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN || t.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN) || PhoneNumberUtil.normalizeDigitsOnly(e.substring(0, n)) !== String(t.getCountryCode()) || e.slice(d + 1).indexOf("/") >= 0);
822
- }
823
- function Qt(t, e, n, d, r) {
824
- var i = normalizeDigits(e, !0), a = zt(n, t, null);
825
- if (d(n, t, i, a))
826
- return !0;
827
- var $ = MetadataManager.getAlternateFormatsForCountry(t.getCountryCode()), o = util.getNationalSignificantNumber(t);
828
- if ($) {
829
- var u = $.numberFormats(), l = Array.isArray(u), s = 0;
830
- for (u = l ? u : u[Symbol.iterator]();;) {
831
- var f;
832
- if (l) {
833
- if (s >= u.length)
834
- break;
835
- f = u[s++];
836
- }
837
- else {
838
- if ((s = u.next()).done)
839
- break;
840
- f = s.value;
841
- }
842
- var c = f;
843
- if (c.leadingDigitsPatterns().length > 0)
844
- if (!r.getPatternForRegExp("^" + c.leadingDigitsPatterns()[0]).test(o))
845
- continue;
846
- if (d(n, t, i, a = zt(n, t, c)))
847
- return !0;
848
- }
849
- }
850
- return !1;
851
- }
852
- function zt(t, e, n) {
853
- if (n) {
854
- var d = util.getNationalSignificantNumber(e);
855
- return util.formatNsnUsingPattern(d, n, "RFC3966", t).split("-");
856
- }
857
- var r = formatNumber(e, "RFC3966", t), i = r.indexOf(";");
858
- i < 0 && (i = r.length);
859
- var a = r.indexOf("-") + 1;
860
- return r.slice(a, i).split("-");
861
- }
862
- function qt(t, e, n, d) {
863
- var r = n.split(NON_DIGITS_PATTERN), i = e.hasExtension() ? r.length - 2 : r.length - 1;
864
- if (1 == r.length || r[i].contains(util.getNationalSignificantNumber(e)))
865
- return !0;
866
- for (var a, $, o = d.length - 1; o > 0 && i >= 0;) {
867
- if (r[i] !== d[o])
868
- return !1;
869
- o--, i--;
870
- }
871
- return i >= 0 && (a = r[i], $ = d[0], a.indexOf($, a.length - $.length) === a.length - $.length);
872
- }
873
- function te(t, e, n, d) {
874
- var r, i, a = 0;
875
- if (e.getCountryCodeSource() !== CountryCodeSource.FROM_DEFAULT_COUNTRY) {
876
- var $ = String(e.getCountryCode());
877
- a = n.indexOf($) + $.length();
878
- }
879
- for (var o = 0; o < d.length; o++) {
880
- if ((a = n.indexOf(d[o], a)) < 0)
881
- return !1;
882
- if (a += d[o].length(), 0 == o && a < n.length()) {
883
- var u = util.getRegionCodeForCountryCode(e.getCountryCode());
884
- if (null != util.getNddPrefixForRegion(u, !0) && Character.isDigit(n.charAt(a))) {
885
- var l = util.getNationalSignificantNumber(e);
886
- return r = n.slice(a - d[o].length), i = l, 0 === r.indexOf(i);
887
- }
888
- }
889
- }
890
- return n.slice(a).contains(e.getExtension());
891
- }
892
- var ee = /[\\/] *x/;
893
- function ne(t) { return Ft(ee, t); }
894
- var de = /(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/, re = /[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/, ie = /^:[0-5]\d/;
895
- function ae(t, e, n) {
896
- if (de.test(t))
897
- return !1;
898
- if (re.test(t)) {
899
- var d = n.slice(e + t.length);
900
- if (ie.test(d))
901
- return !1;
902
- }
903
- return !0;
904
- }
905
- var $e = "[^".concat("(\\[([").concat(")\\])]", "]"), oe = "[".concat("(\\[([").concat("++", "]"), ue = new RegExp("^" + oe), le = At(0, 3), se = new RegExp("^(?:[(\\[([])?(?:" + $e + "+[)\\])]])?" + $e + "+(?:[(\\[([]" + $e + "+[)\\])]])" + le + $e + "*$"), fe = /\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;
906
- function ce(t, e, n, d) {
907
- if (se.test(t) && !fe.test(t)) {
908
- if ("POSSIBLE" !== d) {
909
- if (e > 0 && !ue.test(t)) {
910
- var r = n[e - 1];
911
- if (Ht(r) || Kt(r))
912
- return !1;
913
- }
914
- var i = e + t.length;
915
- if (i < n.length) {
916
- var a = n[i];
917
- if (Ht(a) || Kt(a))
918
- return !1;
919
- }
920
- }
921
- return !0;
922
- }
923
- }
924
- function he(t) {
925
- for (var e = 1; e < arguments.length; e++) {
926
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
927
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { ye(t, e, n[e]); }));
928
- }
929
- return t;
930
- }
931
- function ge(t, e) {
932
- if (!(t instanceof e))
933
- throw new TypeError("Cannot call a class as a function");
934
- }
935
- function me(t, e) {
936
- for (var n = 0; n < e.length; n++) {
937
- var d = e[n];
938
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
939
- }
940
- }
941
- function ye(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
942
- var ve = P(), pe = ["\\/+(.*)/", "(\\([^(]*)", "(?:".concat(Rt, "-|-").concat(Rt, ")").concat(Rt, "*(.+)"), "[‒-―-]".concat(Rt, "*(.+)"), "\\.+".concat(Rt, "*([^.]+)"), "".concat(Rt, "+(").concat(Dt, "+)")], be = At(0, 2), Ce = At(0, 4), Ne = At(0, 20), xe = "[".concat(r, "]") + Ce, Pe = Mt + At(1, 20), Se = "(?:" + oe + xe + ")" + be + Pe + "(?:" + xe + Pe + ")" + Ne + "(?:" + ve + ")?", Ee = new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9").concat(Lt, "#]+$")), we = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, Oe = function () {
943
- function t() {
944
- var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, d = arguments.length > 2 ? arguments[2] : void 0;
945
- if (ge(this, t), ye(this, "state", "NOT_READY"), ye(this, "searchIndex", 0), ye(this, "regExpCache", new Tt(32)), !(n = he({}, n, { defaultCallingCode: n.defaultCallingCode, defaultCountry: n.defaultCountry && C(n.defaultCountry, d) ? n.defaultCountry : void 0, leniency: n.leniency || n.extended ? "POSSIBLE" : "VALID", maxTries: n.maxTries || we })).leniency)
946
- throw new TypeError("`Leniency` not supplied");
947
- if (n.maxTries < 0)
948
- throw new TypeError("`maxTries` not supplied");
949
- if (this.text = e, this.options = n, this.metadata = d, this.leniency = Yt[n.leniency], !this.leniency)
950
- throw new TypeError("Unknown leniency: ".concat(n.leniency, "."));
951
- this.maxTries = n.maxTries, this.PATTERN = new RegExp(Se, "ig");
952
- }
953
- var e, n;
954
- return e = t, (n = [{ key: "find", value: function () {
955
- for (var t; this.maxTries > 0 && null !== (t = this.PATTERN.exec(this.text));) {
956
- var e = t[0], n = t.index;
957
- if (ae(e = ne(e), n, this.text)) {
958
- var d = this.parseAndVerify(e, n, this.text) || this.extractInnerMatch(e, n, this.text);
959
- if (d) {
960
- if (this.options.v2) {
961
- var r = new nt(d.country || d.countryCallingCode, d.phone, this.metadata);
962
- return d.ext && (r.ext = d.ext), { startsAt: d.startsAt, endsAt: d.endsAt, number: r };
963
- }
964
- return d;
965
- }
966
- }
967
- this.maxTries--;
968
- }
969
- } }, { key: "extractInnerMatch", value: function (t, e, n) {
970
- for (var d = 0, r = pe; d < r.length; d++)
971
- for (var i = !0, a = void 0, $ = new RegExp(r[d], "g"); this.maxTries > 0 && null !== (a = $.exec(t));) {
972
- if (i) {
973
- var o = Ft(Ee, t.slice(0, a.index)), u = this.parseAndVerify(o, e, n);
974
- if (u)
975
- return u;
976
- this.maxTries--, i = !1;
977
- }
978
- var l = Ft(Ee, a[1]), s = t.indexOf(l, a.index), f = this.parseAndVerify(l, e + s, n);
979
- if (f)
980
- return f;
981
- this.maxTries--;
982
- }
983
- } }, { key: "parseAndVerify", value: function (t, e, n) {
984
- if (ce(t, e, n, this.options.leniency)) {
985
- var d = ct(t, { extended: !0, defaultCountry: this.options.defaultCountry, defaultCallingCode: this.options.defaultCallingCode }, this.metadata);
986
- if (d.possible && this.leniency(d, t, this.metadata, this.regExpCache)) {
987
- var r = { startsAt: e, endsAt: e + t.length, phone: d.phone };
988
- return d.country && "001" !== d.country ? r.country = d.country : r.countryCallingCode = d.countryCallingCode, d.ext && (r.ext = d.ext), r;
989
- }
990
- }
991
- } }, { key: "hasNext", value: function () { return "NOT_READY" === this.state && (this.lastMatch = this.find(), this.lastMatch ? this.state = "READY" : this.state = "DONE"), "READY" === this.state; } }, { key: "next", value: function () {
992
- if (!this.hasNext())
993
- throw new Error("No next element");
994
- var t = this.lastMatch;
995
- return this.lastMatch = null, this.state = "NOT_READY", t;
996
- } }]) && me(e.prototype, n), t;
997
- }();
998
- function Ie(t, e, n) {
999
- for (var d = new Oe(t, e, n), r = []; d.hasNext();)
1000
- r.push(d.next());
1001
- return r;
1002
- }
1003
- function Te() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return Ie(e, n, d); }
1004
- function Ae(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1005
- function Fe() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata, r = new Oe(e, n, d); return Ae({}, Symbol.iterator, (function () { return { next: function () { return r.hasNext() ? { done: !1, value: r.next() } : { done: !0 }; } }; })); }
1006
- function ke(t) { return (ke = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
1007
- function Re(t) {
1008
- for (var e = 1; e < arguments.length; e++) {
1009
- var n = null != arguments[e] ? arguments[e] : {}, d = Object.keys(n);
1010
- "function" == typeof Object.getOwnPropertySymbols && (d = d.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), d.forEach((function (e) { De(t, e, n[e]); }));
1011
- }
1012
- return t;
1013
- }
1014
- function De(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1015
- function Me(t, e, n, d) { var r = Le(e, n, d); return Te(t, r.options, r.metadata); }
1016
- function Le(t, e, n) { return n ? t && (e = Re({}, e, { defaultCountry: t })) : e ? (n = e, e = t ? _e(t) ? t : { defaultCountry: t } : void 0) : (n = t, e = void 0), { options: Re({}, e, { v2: !0 }), metadata: n }; }
1017
- var _e = function (t) { return "object" === ke(t); };
1018
- function Ge(t, e, n, d) { var r = Le(e, n, d); return Fe(t, r.options, r.metadata); }
1019
- function Be(t, e) {
1020
- for (var n = 0; n < e.length; n++) {
1021
- var d = e[n];
1022
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
1023
- }
1024
- }
1025
- var je = function () {
1026
- function t(e) {
1027
- var n = this, d = e.onCountryChange, r = e.onCallingCodeChange;
1028
- !function (t, e) {
1029
- if (!(t instanceof e))
1030
- throw new TypeError("Cannot call a class as a function");
1031
- }(this, t), function (t, e, n) { e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n; }(this, "update", (function (t) {
1032
- for (var e = 0, d = Object.keys(t); e < d.length; e++) {
1033
- var r = d[e];
1034
- n[r] = t[r];
1035
- }
1036
- })), this.onCountryChange = d, this.onCallingCodeChange = r;
1037
- }
1038
- var e, n;
1039
- return e = t, (n = [{ key: "reset", value: function (t, e) { this.international = !1, this.IDDPrefix = void 0, this.missingPlus = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(t, e); } }, { key: "resetNationalSignificantNumber", value: function () { this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberMatchesInput = !0, this.nationalPrefix = void 0, this.carrierCode = void 0, this.complexPrefixBeforeNationalSignificantNumber = void 0; } }, { key: "initCountryAndCallingCode", value: function (t, e) { this.setCountry(t), this.setCallingCode(e); } }, { key: "setCountry", value: function (t) { this.country = t, this.onCountryChange(t); } }, { key: "setCallingCode", value: function (t) { return this.callingCode = t, this.onCallingCodeChange(this.country, t); } }, { key: "startInternationalNumber", value: function () { this.international = !0, this.initCountryAndCallingCode(); } }, { key: "appendDigits", value: function (t) { this.digits += t; } }, { key: "appendNationalSignificantNumberDigits", value: function (t) { this.nationalSignificantNumber += t; } }, { key: "getNationalDigits", value: function () { return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits; } }, { key: "getDigitsWithoutInternationalPrefix", value: function () { return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits; } }]) && Be(e.prototype, n), t;
1040
- }(), Ue = new RegExp("x");
1041
- function We(t, e) {
1042
- if (e < 1)
1043
- return "";
1044
- for (var n = ""; e > 1;)
1045
- 1 & e && (n += t), e >>= 1, t += t;
1046
- return n + t;
1047
- }
1048
- function Ve(t, e) {
1049
- return ")" === t[e] && e++, function (t) {
1050
- var e = [], n = 0;
1051
- for (; n < t.length;)
1052
- "(" === t[n] ? e.push(n) : ")" === t[n] && e.pop(), n++;
1053
- var d = 0, r = "";
1054
- e.push(t.length);
1055
- for (var i = 0, a = e; i < a.length; i++) {
1056
- var $ = a[i];
1057
- r += t.slice(d, $), d = $ + 1;
1058
- }
1059
- return r;
1060
- }(t.slice(0, e));
1061
- }
1062
- function Ke(t, e, n) {
1063
- var d = n.metadata, r = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1064
- if (new RegExp("^(?:".concat(e.pattern(), ")$")).test(t.nationalSignificantNumber))
1065
- return function (t, e, n) {
1066
- var d = n.metadata, r = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1067
- t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode;
1068
- if (r(e)) {
1069
- var a = He(t, e, { useNationalPrefixFormattingRule: !0, getSeparatorAfterNationalPrefix: i, metadata: d });
1070
- if (a)
1071
- return a;
1072
- }
1073
- return He(t, e, { useNationalPrefixFormattingRule: !1, getSeparatorAfterNationalPrefix: i, metadata: d });
1074
- }(t, e, { metadata: d, shouldTryNationalPrefixFormattingRule: r, getSeparatorAfterNationalPrefix: i });
1075
- }
1076
- function He(t, e, n) {
1077
- var d = n.metadata, r = n.useNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = Y(t.nationalSignificantNumber, e, { carrierCode: t.carrierCode, useInternationalFormat: t.international, withNationalPrefix: r, metadata: d });
1078
- if (r || (t.nationalPrefix ? a = t.nationalPrefix + i(e) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)), function (t, e) { return A(t) === e.getNationalDigits(); }(a, t))
1079
- return a;
1080
- }
1081
- function Ye(t, e) {
1082
- for (var n = 0; n < e.length; n++) {
1083
- var d = e[n];
1084
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
1085
- }
1086
- }
1087
- function Ze(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1088
- var Xe = We("9", 15), Je = /[- ]/, Qe = new RegExp("^[" + r + "]*(\\$\\d[" + r + "]*)+$"), ze = function () {
1089
- function t(e) {
1090
- var n = this, d = (e.state, e.metadata);
1091
- !function (t, e) {
1092
- if (!(t instanceof e))
1093
- throw new TypeError("Cannot call a class as a function");
1094
- }(this, t), Ze(this, "getSeparatorAfterNationalPrefix", (function (t) { return n.isNANP ? " " : t && t.nationalPrefixFormattingRule() && Je.test(t.nationalPrefixFormattingRule()) ? " " : ""; })), Ze(this, "shouldTryNationalPrefixFormattingRule", (function (t, e) {
1095
- var n = e.international, d = e.nationalPrefix;
1096
- if (t.nationalPrefixFormattingRule()) {
1097
- var r = t.usesNationalPrefix();
1098
- if (r && d || !r && !n)
1099
- return !0;
1100
- }
1101
- })), this.metadata = d, this.resetFormat();
1102
- }
1103
- var e, n;
1104
- return e = t, (n = [{ key: "resetFormat", value: function () { this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1; } }, { key: "reset", value: function (t, e) { this.resetFormat(), t ? (this.isNANP = "1" === t.callingCode(), this.matchingFormats = t.formats(), e.nationalSignificantNumber && this.narrowDownMatchingFormats(e)) : (this.isNANP = void 0, this.matchingFormats = []); } }, { key: "format", value: function (t, e) {
1105
- var n = this;
1106
- if (function (t, e) { return "IS_POSSIBLE" === R(t, e); }(e.nationalSignificantNumber, this.metadata)) {
1107
- var d = this.matchingFormats, r = Array.isArray(d), i = 0;
1108
- for (d = r ? d : d[Symbol.iterator]();;) {
1109
- var a;
1110
- if (r) {
1111
- if (i >= d.length)
1112
- break;
1113
- a = d[i++];
1114
- }
1115
- else {
1116
- if ((i = d.next()).done)
1117
- break;
1118
- a = i.value;
1119
- }
1120
- var $ = a, o = Ke(e, $, { metadata: this.metadata, shouldTryNationalPrefixFormattingRule: function (t) { return n.shouldTryNationalPrefixFormattingRule(t, { international: e.international, nationalPrefix: e.nationalPrefix }); }, getSeparatorAfterNationalPrefix: this.getSeparatorAfterNationalPrefix });
1121
- if (o)
1122
- return this.resetFormat(), this.chosenFormat = $, this.setNationalNumberTemplate(o.replace(/\d/g, "x"), e), this.populatedNationalNumberTemplate = o, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf("x"), o;
1123
- }
1124
- }
1125
- return this.formatNationalNumberWithNextDigits(t, e);
1126
- } }, { key: "formatNationalNumberWithNextDigits", value: function (t, e) {
1127
- var n = this.chosenFormat, d = this.chooseFormat(e);
1128
- if (d)
1129
- return d === n ? this.formatNextNationalNumberDigits(t) : this.formatNextNationalNumberDigits(e.getNationalDigits());
1130
- } }, { key: "narrowDownMatchingFormats", value: function (t) { var e = this, n = t.nationalSignificantNumber, d = t.nationalPrefix, r = t.international, i = n, a = i.length - 3; a < 0 && (a = 0), this.matchingFormats = this.matchingFormats.filter((function (t) { return e.formatSuits(t, r, d) && e.formatMatches(t, i, a); })), this.chosenFormat && -1 === this.matchingFormats.indexOf(this.chosenFormat) && this.resetFormat(); } }, { key: "formatSuits", value: function (t, e, n) { return !(n && !t.usesNationalPrefix() && !t.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !e && !n && t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()); } }, { key: "formatMatches", value: function (t, e, n) {
1131
- var d = t.leadingDigitsPatterns().length;
1132
- if (0 === d)
1133
- return !0;
1134
- if (e.length < 3)
1135
- return !0;
1136
- n = Math.min(n, d - 1);
1137
- var r = t.leadingDigitsPatterns()[n];
1138
- return new RegExp("^(".concat(r, ")")).test(e);
1139
- } }, { key: "getFormatFormat", value: function (t, e) { return e ? t.internationalFormat() : t.format(); } }, { key: "chooseFormat", value: function (t) {
1140
- var e = this, n = function () {
1141
- if (r) {
1142
- if (i >= d.length)
1143
- return "break";
1144
- a = d[i++];
1145
- }
1146
- else {
1147
- if ((i = d.next()).done)
1148
- return "break";
1149
- a = i.value;
1150
- }
1151
- var n = a;
1152
- return e.chosenFormat === n ? "break" : Qe.test(e.getFormatFormat(n, t.international)) ? e.createTemplateForFormat(n, t) ? (e.chosenFormat = n, "break") : (e.matchingFormats = e.matchingFormats.filter((function (t) { return t !== n; })), "continue") : "continue";
1153
- }, d = this.matchingFormats.slice(), r = Array.isArray(d), i = 0;
1154
- t: for (d = r ? d : d[Symbol.iterator]();;) {
1155
- var a;
1156
- switch (n()) {
1157
- case "break": break t;
1158
- case "continue": continue;
1159
- }
1160
- }
1161
- return this.chosenFormat || this.resetFormat(), this.chosenFormat;
1162
- } }, { key: "createTemplateForFormat", value: function (t, e) {
1163
- if (!(t.pattern().indexOf("|") >= 0)) {
1164
- var n = this.getTemplateForFormat(t, e);
1165
- return n ? (this.setNationalNumberTemplate(n, e), !0) : void 0;
1166
- }
1167
- } }, { key: "getInternationalPrefixBeforeCountryCallingCode", value: function (t, e) { var n = t.IDDPrefix, d = t.missingPlus; return n ? e && !1 === e.spacing ? n : n + " " : d ? "" : "+"; } }, { key: "getTemplate", value: function (t) {
1168
- if (this.template) {
1169
- for (var e = -1, n = 0, d = t.international ? this.getInternationalPrefixBeforeCountryCallingCode(t, { spacing: !1 }) : ""; n < d.length + t.getDigitsWithoutInternationalPrefix().length;)
1170
- e = this.template.indexOf("x", e + 1), n++;
1171
- return Ve(this.template, e + 1);
1172
- }
1173
- } }, { key: "setNationalNumberTemplate", value: function (t, e) { this.nationalNumberTemplate = t, this.populatedNationalNumberTemplate = t, this.populatedNationalNumberTemplatePosition = -1, e.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(e).replace(/[\d\+]/g, "x") + We("x", e.callingCode.length) + " " + t : this.template = t; } }, { key: "getTemplateForFormat", value: function (t, e) {
1174
- var n = e.nationalSignificantNumber, d = e.international, r = e.nationalPrefix, i = e.complexPrefixBeforeNationalSignificantNumber, a = t.pattern();
1175
- a = a.replace(/\[([^\[\]])*\]/g, "\\d").replace(/\d(?=[^,}][^,}])/g, "\\d");
1176
- var $ = Xe.match(a)[0];
1177
- if (!(n.length > $.length)) {
1178
- var o = new RegExp("^" + a + "$"), u = n.replace(/\d/g, "9");
1179
- o.test(u) && ($ = u);
1180
- var l, s = this.getFormatFormat(t, d);
1181
- if (this.shouldTryNationalPrefixFormattingRule(t, { international: d, nationalPrefix: r })) {
1182
- var f = s.replace(H, t.nationalPrefixFormattingRule());
1183
- if (A(t.nationalPrefixFormattingRule()) === (r || "") + A("$1") && (s = f, l = !0, r))
1184
- for (var c = r.length; c > 0;)
1185
- s = s.replace(/\d/, "x"), c--;
1186
- }
1187
- var h = $.replace(new RegExp(a), s).replace(new RegExp("9", "g"), "x");
1188
- return l || (i ? h = We("x", i.length) + " " + h : r && (h = We("x", r.length) + this.getSeparatorAfterNationalPrefix(t) + h)), d && (h = K(h)), h;
1189
- }
1190
- } }, { key: "formatNextNationalNumberDigits", value: function (t) {
1191
- var e = function (t, e, n) {
1192
- var d = n.split(""), r = Array.isArray(d), i = 0;
1193
- for (d = r ? d : d[Symbol.iterator]();;) {
1194
- var a;
1195
- if (r) {
1196
- if (i >= d.length)
1197
- break;
1198
- a = d[i++];
1199
- }
1200
- else {
1201
- if ((i = d.next()).done)
1202
- break;
1203
- a = i.value;
1204
- }
1205
- var $ = a;
1206
- if (t.slice(e + 1).search(Ue) < 0)
1207
- return;
1208
- e = t.search(Ue), t = t.replace(Ue, $);
1209
- }
1210
- return [t, e];
1211
- }(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, t);
1212
- if (e)
1213
- return this.populatedNationalNumberTemplate = e[0], this.populatedNationalNumberTemplatePosition = e[1], Ve(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
1214
- this.resetFormat();
1215
- } }]) && Ye(e.prototype, n), t;
1216
- }();
1217
- function qe(t, e) {
1218
- return function (t) {
1219
- if (Array.isArray(t))
1220
- return t;
1221
- }(t) || function (t, e) {
1222
- var n = [], d = !0, r = !1, i = void 0;
1223
- try {
1224
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
1225
- ;
1226
- }
1227
- catch (t) {
1228
- r = !0, i = t;
1229
- }
1230
- finally {
1231
- try {
1232
- d || null == $.return || $.return();
1233
- }
1234
- finally {
1235
- if (r)
1236
- throw i;
1237
- }
1238
- }
1239
- return n;
1240
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
1241
- }
1242
- function tn(t, e) {
1243
- for (var n = 0; n < e.length; n++) {
1244
- var d = e[n];
1245
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
1246
- }
1247
- }
1248
- var en = new RegExp("^" + ("[" + r + "0-90-9٠-٩۰-۹]+") + "$", "i"), nn = "(?:[++][" + r + "0-90-9٠-٩۰-۹]*|[" + r + "0-90-9٠-٩۰-۹]+)", dn = new RegExp("[^" + r + "0-90-9٠-٩۰-۹]+.*$"), rn = /[^\d\[\]]/, an = function () {
1249
- function t(e) {
1250
- var n = e.defaultCountry, d = e.defaultCallingCode, r = e.metadata, i = e.onNationalSignificantNumberChange;
1251
- !function (t, e) {
1252
- if (!(t instanceof e))
1253
- throw new TypeError("Cannot call a class as a function");
1254
- }(this, t), this.defaultCountry = n, this.defaultCallingCode = d, this.metadata = r, this.onNationalSignificantNumberChange = i;
1255
- }
1256
- var e, n;
1257
- return e = t, (n = [{ key: "input", value: function (t, e) {
1258
- var n, d = function (t) {
1259
- var e = qe(function (t) {
1260
- var e = function (t) {
1261
- var e, n = t.search(nn);
1262
- if (!(n < 0))
1263
- return "+" === (t = t.slice(n))[0] && (e = !0, t = t.slice("+".length)), t = t.replace(dn, ""), e && (t = "+" + t), t;
1264
- }(t) || "";
1265
- return "+" === e[0] ? [e.slice("+".length), !0] : [e];
1266
- }(t), 2), n = e[0], d = e[1];
1267
- return en.test(n) || (n = ""), [n, d];
1268
- }(t), r = qe(d, 2), i = r[0], a = r[1], $ = A(i);
1269
- return a && (e.digits || (e.startInternationalNumber(), $ || (n = !0))), $ && this.inputDigits($, e), { digits: $, justLeadingPlus: n };
1270
- } }, { key: "inputDigits", value: function (t, e) {
1271
- var n = e.digits, d = n.length < 3 && n.length + t.length >= 3;
1272
- if (e.appendDigits(t), d && this.extractIddPrefix(e), this.isWaitingForCountryCallingCode(e)) {
1273
- if (!this.extractCountryCallingCode(e))
1274
- return;
1275
- }
1276
- else
1277
- e.appendNationalSignificantNumberDigits(t);
1278
- e.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(e.getNationalDigits(), e.update);
1279
- } }, { key: "isWaitingForCountryCallingCode", value: function (t) { var e = t.international, n = t.callingCode; return e && !n; } }, { key: "extractCountryCallingCode", value: function (t) {
1280
- var e = ut("+" + t.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = e.countryCallingCode, d = e.number;
1281
- if (n)
1282
- return t.setCallingCode(n), t.update({ nationalSignificantNumber: d }), !0;
1283
- } }, { key: "reset", value: function (t) {
1284
- if (t) {
1285
- this.hasSelectedNumberingPlan = !0;
1286
- var e = t._nationalPrefixForParsing();
1287
- this.couldPossiblyExtractAnotherNationalSignificantNumber = e && rn.test(e);
1288
- }
1289
- else
1290
- this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
1291
- } }, { key: "extractNationalSignificantNumber", value: function (t, e) {
1292
- if (this.hasSelectedNumberingPlan) {
1293
- var n = at(t, this.metadata), d = n.nationalPrefix, r = n.nationalNumber, i = n.carrierCode;
1294
- if (r !== t)
1295
- return this.onExtractedNationalNumber(d, i, r, t, e), !0;
1296
- }
1297
- } }, { key: "extractAnotherNationalSignificantNumber", value: function (t, e, n) {
1298
- if (!this.hasExtractedNationalSignificantNumber)
1299
- return this.extractNationalSignificantNumber(t, n);
1300
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
1301
- var d = at(t, this.metadata), r = d.nationalPrefix, i = d.nationalNumber, a = d.carrierCode;
1302
- if (i !== e)
1303
- return this.onExtractedNationalNumber(r, a, i, t, n), !0;
1304
- }
1305
- } }, { key: "onExtractedNationalNumber", value: function (t, e, n, d, r) {
1306
- var i, a, $ = d.lastIndexOf(n);
1307
- if ($ >= 0 && $ === d.length - n.length) {
1308
- a = !0;
1309
- var o = d.slice(0, $);
1310
- o !== t && (i = o);
1311
- }
1312
- r({ nationalPrefix: t, carrierCode: e, nationalSignificantNumber: n, nationalSignificantNumberMatchesInput: a, complexPrefixBeforeNationalSignificantNumber: i }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
1313
- } }, { key: "reExtractNationalSignificantNumber", value: function (t) { return !!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(), t.nationalSignificantNumber, t.update) || (this.extractIddPrefix(t) ? (this.extractCallingCodeAndNationalSignificantNumber(t), !0) : this.fixMissingPlus(t) ? (this.extractCallingCodeAndNationalSignificantNumber(t), !0) : void 0); } }, { key: "extractIddPrefix", value: function (t) {
1314
- var e = t.international, n = t.IDDPrefix, d = t.digits;
1315
- if (t.nationalSignificantNumber, !e && !n) {
1316
- var r = it(d, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
1317
- return void 0 !== r && r !== d ? (t.update({ IDDPrefix: d.slice(0, d.length - r.length) }), this.startInternationalNumber(t), !0) : void 0;
1318
- }
1319
- } }, { key: "fixMissingPlus", value: function (t) {
1320
- if (!t.international) {
1321
- var e = ot(t.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = e.countryCallingCode;
1322
- if (e.number, n)
1323
- return t.update({ missingPlus: !0 }), this.startInternationalNumber(t), !0;
1324
- }
1325
- } }, { key: "startInternationalNumber", value: function (t) { t.startInternationalNumber(), t.nationalSignificantNumber && (t.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0); } }, { key: "extractCallingCodeAndNationalSignificantNumber", value: function (t) { this.extractCountryCallingCode(t) && this.extractNationalSignificantNumber(t.getNationalDigits(), t.update); } }]) && tn(e.prototype, n), t;
1326
- }();
1327
- function $n(t) { return ($n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
1328
- function on(t, e) {
1329
- return function (t) {
1330
- if (Array.isArray(t))
1331
- return t;
1332
- }(t) || function (t, e) {
1333
- var n = [], d = !0, r = !1, i = void 0;
1334
- try {
1335
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
1336
- ;
1337
- }
1338
- catch (t) {
1339
- r = !0, i = t;
1340
- }
1341
- finally {
1342
- try {
1343
- d || null == $.return || $.return();
1344
- }
1345
- finally {
1346
- if (r)
1347
- throw i;
1348
- }
1349
- }
1350
- return n;
1351
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
1352
- }
1353
- function un(t, e) {
1354
- for (var n = 0; n < e.length; n++) {
1355
- var d = e[n];
1356
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
1357
- }
1358
- }
1359
- var ln = function () {
1360
- function t(e, n) {
1361
- !function (t, e) {
1362
- if (!(t instanceof e))
1363
- throw new TypeError("Cannot call a class as a function");
1364
- }(this, t), this.metadata = new s(n);
1365
- var d = on(this.getCountryAndCallingCode(e), 2), r = d[0], i = d[1];
1366
- this.defaultCountry = r, this.defaultCallingCode = i, this.reset();
1367
- }
1368
- var e, n;
1369
- return e = t, (n = [{ key: "getCountryAndCallingCode", value: function (t) { var e, n; return t && ("object" === $n(t) ? (e = t.defaultCountry, n = t.defaultCallingCode) : e = t), e && !this.metadata.hasCountry(e) && (e = void 0), [e, n]; } }, { key: "input", value: function (t) {
1370
- var e = this.parser.input(t, this.state), n = e.digits;
1371
- if (e.justLeadingPlus)
1372
- this.formattedOutput = "+";
1373
- else if (n) {
1374
- var d;
1375
- if (this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state), this.metadata.hasSelectedNumberingPlan() && (d = this.formatter.format(n, this.state)), void 0 === d && this.parser.reExtractNationalSignificantNumber(this.state)) {
1376
- this.determineTheCountryIfNeeded();
1377
- var r = this.state.getNationalDigits();
1378
- r && (d = this.formatter.format(r, this.state));
1379
- }
1380
- this.formattedOutput = d ? this.getFullNumber(d) : this.getNonFormattedNumber();
1381
- }
1382
- return this.formattedOutput;
1383
- } }, { key: "reset", value: function () { var t = this; return this.state = new je({ onCountryChange: function (e) { t.country = e; }, onCallingCodeChange: function (e, n) { t.metadata.selectNumberingPlan(e, n), t.formatter.reset(t.metadata.numberingPlan, t.state), t.parser.reset(t.metadata.numberingPlan); } }), this.formatter = new ze({ state: this.state, metadata: this.metadata }), this.parser = new an({ defaultCountry: this.defaultCountry, defaultCallingCode: this.defaultCallingCode, metadata: this.metadata, state: this.state, onNationalSignificantNumberChange: function () { t.determineTheCountryIfNeeded(), t.formatter.reset(t.metadata.numberingPlan, t.state); } }), this.state.reset(this.defaultCountry, this.defaultCallingCode), this.formattedOutput = "", this; } }, { key: "isInternational", value: function () { return this.state.international; } }, { key: "getCallingCode", value: function () { return this.state.callingCode; } }, { key: "getCountryCallingCode", value: function () { return this.getCallingCode(); } }, { key: "getCountry", value: function () {
1384
- var t = this.state, e = t.digits, n = t.country;
1385
- if (e)
1386
- return n;
1387
- } }, { key: "determineTheCountryIfNeeded", value: function () { this.state.country && !this.isCountryCallingCodeAmbiguous() || this.determineTheCountry(); } }, { key: "getFullNumber", value: function (t) {
1388
- var e = this;
1389
- if (this.isInternational()) {
1390
- var n = function (t) { return e.formatter.getInternationalPrefixBeforeCountryCallingCode(e.state, { spacing: !!t }) + t; }, d = this.state.callingCode;
1391
- return n(d ? t ? "".concat(d, " ").concat(t) : d : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
1392
- }
1393
- return t;
1394
- } }, { key: "getNonFormattedNationalNumberWithPrefix", value: function () { var t = this.state, e = t.nationalSignificantNumber, n = t.complexPrefixBeforeNationalSignificantNumber, d = t.nationalPrefix, r = e, i = n || d; return i && (r = i + r), r; } }, { key: "getNonFormattedNumber", value: function () { var t = this.state.nationalSignificantNumberMatchesInput; return this.getFullNumber(t ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits()); } }, { key: "getNonFormattedTemplate", value: function () {
1395
- var t = this.getNonFormattedNumber();
1396
- if (t)
1397
- return t.replace(/[\+\d]/g, "x");
1398
- } }, { key: "isCountryCallingCodeAmbiguous", value: function () { var t = this.state.callingCode, e = this.metadata.getCountryCodesForCallingCode(t); return e && e.length > 1; } }, { key: "determineTheCountry", value: function () { this.state.setCountry(lt(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, this.state.nationalSignificantNumber, this.metadata)); } }, { key: "getNumber", value: function () {
1399
- var t = this.state, e = t.nationalSignificantNumber, n = t.carrierCode;
1400
- if (this.isInternational()) {
1401
- if (!this.state.callingCode)
1402
- return;
1403
- }
1404
- else if (!this.state.country && !this.defaultCallingCode)
1405
- return;
1406
- if (e) {
1407
- var d = this.getCountry(), r = this.getCountryCallingCode() || this.defaultCallingCode, i = new nt(d || r, e, this.metadata.metadata);
1408
- return n && (i.carrierCode = n), i;
1409
- }
1410
- } }, { key: "isPossible", value: function () { var t = this.getNumber(); return !!t && t.isPossible(); } }, { key: "isValid", value: function () { var t = this.getNumber(); return !!t && t.isValid(); } }, { key: "getNationalNumber", value: function () { return this.state.nationalSignificantNumber; } }, { key: "getChars", value: function () { return (this.state.international ? "+" : "") + this.state.digits; } }, { key: "getTemplate", value: function () { return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || ""; } }]) && un(e.prototype, n), t;
1411
- }();
1412
- function sn(t) { return new s(t).getCountries(); }
1413
- function fn(t, e, n) {
1414
- if (e[t])
1415
- return new nt(t, e[t], n);
1416
- }
1417
- function cn(t, e, n) { return n || (n = e, e = void 0), new ln(e, n).input(t); }
1418
- function hn() { return n(pt, arguments); }
1419
- function gn() { return n(Pt, arguments); }
1420
- function mn(t, n) { return Oe.call(this, t, n, e); }
1421
- function yn(t) { return ln.call(this, t, e); }
1422
- function vn() { return n(b, arguments); }
1423
- function pn() { return s.call(this, e); }
1424
- function bn() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return ct(e, n, d); }
1425
- function Cn() { return n(bn, arguments); }
1426
- function Nn(t) { return (Nn = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
1427
- function xn(t, e) {
1428
- return function (t) {
1429
- if (Array.isArray(t))
1430
- return t;
1431
- }(t) || function (t, e) {
1432
- var n = [], d = !0, r = !1, i = void 0;
1433
- try {
1434
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
1435
- ;
1436
- }
1437
- catch (t) {
1438
- r = !0, i = t;
1439
- }
1440
- finally {
1441
- try {
1442
- d || null == $.return || $.return();
1443
- }
1444
- finally {
1445
- if (r)
1446
- throw i;
1447
- }
1448
- }
1449
- return n;
1450
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
1451
- }
1452
- function Pn() { var t = Sn(arguments), e = t.input, n = t.format, d = t.options, r = t.metadata; return Q(e, n, d, r); }
1453
- function Sn(t) {
1454
- var e, n, d, r, i = xn(Array.prototype.slice.call(t), 5), a = i[0], $ = i[1], o = i[2], u = i[3], l = i[4];
1455
- if ("string" == typeof a)
1456
- if ("string" == typeof o)
1457
- n = o, l ? (d = u, r = l) : r = u, e = ct(a, { defaultCountry: $, extended: !0 }, r);
1458
- else {
1459
- if ("string" != typeof $)
1460
- throw new Error("`format` argument not passed to `formatNumber(number, format)`");
1461
- n = $, u ? (d = o, r = u) : r = o, e = ct(a, { extended: !0 }, r);
1462
- }
1463
- else {
1464
- if (!En(a))
1465
- throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");
1466
- e = a, n = $, u ? (d = o, r = u) : r = o;
1467
- }
1468
- return "International" === n ? n = "INTERNATIONAL" : "National" === n && (n = "NATIONAL"), { input: e, format: n, options: d, metadata: r };
1469
- }
1470
- mn.prototype = Object.create(Oe.prototype, {}), mn.prototype.constructor = mn, yn.prototype = Object.create(ln.prototype, {}), yn.prototype.constructor = yn, pn.prototype = Object.create(s.prototype, {}), pn.prototype.constructor = pn;
1471
- var En = function (t) { return "object" === Nn(t); };
1472
- function wn() { return n(Pn, arguments); }
1473
- function On(t) { return (On = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; })(t); }
1474
- function In(t, e) {
1475
- return function (t) {
1476
- if (Array.isArray(t))
1477
- return t;
1478
- }(t) || function (t, e) {
1479
- var n = [], d = !0, r = !1, i = void 0;
1480
- try {
1481
- for (var a, $ = t[Symbol.iterator](); !(d = (a = $.next()).done) && (n.push(a.value), !e || n.length !== e); d = !0)
1482
- ;
1483
- }
1484
- catch (t) {
1485
- r = !0, i = t;
1486
- }
1487
- finally {
1488
- try {
1489
- d || null == $.return || $.return();
1490
- }
1491
- finally {
1492
- if (r)
1493
- throw i;
1494
- }
1495
- }
1496
- return n;
1497
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }();
1498
- }
1499
- function Tn() { var t = An(arguments), e = t.input, n = t.options, d = t.metadata; return U(e, n, d); }
1500
- function An(t) {
1501
- var e, n, d = In(Array.prototype.slice.call(t), 4), r = d[0], i = d[1], a = d[2], $ = d[3], o = {};
1502
- if ("string" == typeof r)
1503
- "object" !== On(i) ? ($ ? (o = a, n = $) : n = a, e = w(r) ? ct(r, { defaultCountry: i }, n) : {}) : (a ? (o = i, n = a) : n = i, e = w(r) ? ct(r, void 0, n) : {});
1504
- else {
1505
- if (!Fn(r))
1506
- throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");
1507
- e = r, a ? (o = i, n = a) : n = i;
1508
- }
1509
- return { input: e, options: o, metadata: n };
1510
- }
1511
- var Fn = function (t) { return "object" === On(t); };
1512
- function kn() { var t = An(arguments), e = t.input, n = t.options, d = t.metadata; return D(e, n, d); }
1513
- function Rn() { var t = An(arguments), e = t.input, n = t.options, d = t.metadata; return V(e, n, d); }
1514
- function Dn(t, e, n) {
1515
- if ("string" != typeof t)
1516
- throw new TypeError("number must be a string");
1517
- if ("string" != typeof e)
1518
- throw new TypeError("country must be a string");
1519
- return function (t, e, n, d) { return n = n || {}, t.country === e && V(t, n, d); }(w(t) ? ct(t, { defaultCountry: e }, n) : {}, e, void 0, n);
1520
- }
1521
- function Mn(t, e) {
1522
- for (var n = 0; n < e.length; n++) {
1523
- var d = e[n];
1524
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
1525
- }
1526
- }
1527
- function Ln(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1528
- var _n = new RegExp("^[  ­​⁠ ]+"), Gn = new RegExp("[" + r + "]+$");
1529
- function Bn(t, e, n) {
1530
- void 0 === e && (e = {});
1531
- for (var d = new Un(t, e, n), r = []; d.hasNext();)
1532
- r.push(d.next());
1533
- return r;
1534
- }
1535
- function jn(t, e, n) { void 0 === e && (e = {}); var d = new Un(t, e, n); return Ln({}, Symbol.iterator, (function () { return { next: function () { return d.hasNext() ? { done: !1, value: d.next() } : { done: !0 }; } }; })); }
1536
- var Un = function () {
1537
- function t(e, n, d) {
1538
- !function (t, e) {
1539
- if (!(t instanceof e))
1540
- throw new TypeError("Cannot call a class as a function");
1541
- }(this, t), Ln(this, "state", "NOT_READY"), this.text = e, this.options = n || {}, this.metadata = d, this.regexp = new RegExp(S, "ig");
1542
- }
1543
- var e, n;
1544
- return e = t, (n = [{ key: "find", value: function () {
1545
- var t = this.regexp.exec(this.text);
1546
- if (t) {
1547
- var e = t[0], n = t.index;
1548
- e = e.replace(_n, ""), n += t[0].length - e.length, e = ne(e = e.replace(Gn, ""));
1549
- var d = this.parseCandidate(e, n);
1550
- return d || this.find();
1551
- }
1552
- } }, { key: "parseCandidate", value: function (t, e) {
1553
- if (ae(t, e, this.text) && ce(t, e, this.text, this.options.extended ? "POSSIBLE" : "VALID")) {
1554
- var n = ct(t, this.options, this.metadata);
1555
- if (n.phone)
1556
- return n.startsAt = e, n.endsAt = e + t.length, n;
1557
- }
1558
- } }, { key: "hasNext", value: function () { return "NOT_READY" === this.state && (this.last_match = this.find(), this.last_match ? this.state = "READY" : this.state = "DONE"), "READY" === this.state; } }, { key: "next", value: function () {
1559
- if (!this.hasNext())
1560
- throw new Error("No next element");
1561
- var t = this.last_match;
1562
- return this.last_match = null, this.state = "NOT_READY", t;
1563
- } }]) && Mn(e.prototype, n), t;
1564
- }();
1565
- function Wn() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return Bn(e, n, d); }
1566
- function Vn() { var t = bt(arguments), e = t.text, n = t.options, d = t.metadata; return jn(e, n, d); }
1567
- function Kn(t, n) { Un.call(this, t, n, e); }
1568
- Kn.prototype = Object.create(Un.prototype, {}), Kn.prototype.constructor = Kn, t.AsYouType = yn, t.AsYouTypeCustom = ln, t.DIGITS = I, t.DIGIT_PLACEHOLDER = "x", t.Metadata = pn, t.ParseError = d, t.PhoneNumberMatcher = mn, t.PhoneNumberSearch = Kn, t.PhoneNumberSearchCustom = Un, t.default = gn, t.findNumbers = function () { return n(Te, arguments); }, t.findPhoneNumbers = function () { return n(Wn, arguments); }, t.findPhoneNumbersCustom = Wn, t.findPhoneNumbersInText = function () { return n(Me, arguments); }, t.format = wn, t.formatCustom = Pn, t.formatIncompletePhoneNumber = function () { return n(cn, arguments); }, t.formatNumber = wn, t.formatRFC3966 = G, t.getCountries = function () { return n(sn, arguments); }, t.getCountryCallingCode = vn, t.getCountryCallingCodeCustom = b, t.getExampleNumber = function () { return n(fn, arguments); }, t.getExtPrefix = function () { return n(p, arguments); }, t.getNumberType = function () { return n(Tn, arguments); }, t.getNumberTypeCustom = Tn, t.getPhoneCode = vn, t.getPhoneCodeCustom = b, t.isPossibleNumber = function () { return n(kn, arguments); }, t.isSupportedCountry = function () { return n(C, arguments); }, t.isValidNumber = function () { return n(Rn, arguments); }, t.isValidNumberCustom = Rn, t.isValidNumberForRegion = function () { return n(Dn, arguments); }, t.parse = Cn, t.parseCustom = bn, t.parseDigits = A, t.parseIncompletePhoneNumber = F, t.parseNumber = Cn, t.parsePhoneNumber = hn, t.parsePhoneNumberCharacter = k, t.parsePhoneNumberFromString = gn, t.parsePhoneNumberWithError = hn, t.parseRFC3966 = _, t.searchNumbers = function () { return n(Fe, arguments); }, t.searchPhoneNumbers = function () { return n(Vn, arguments); }, t.searchPhoneNumbersCustom = Vn, t.searchPhoneNumbersInText = function () { return n(Ge, arguments); }, Object.defineProperty(t, "__esModule", { value: !0 });
1569
- }));