@incodetech/web 0.0.0-dev-20260302-ad37d43 → 0.0.0-dev-20260302-e38ab90

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 (41) hide show
  1. package/dist/{Trans-Bdg0o_Cr.js → Trans-BHurUlNG.js} +3 -3
  2. package/dist/authentication/authentication.es.js +5 -5
  3. package/dist/base.css +41 -1
  4. package/dist/{baseTutorial-BgA1dpRi.js → baseTutorial-Bbadb04i.js} +5 -5
  5. package/dist/{chevronDown-C5Kn1woB.js → chevronDown-CIyU9-x9.js} +1 -1
  6. package/dist/countries-DDCxQhGs.js +3206 -0
  7. package/dist/curp-validation/curp-validation.es.js +182 -797
  8. package/dist/curp-validation/styles.css +4 -1
  9. package/dist/dateInputComposed-BwjWmZFc.js +172 -0
  10. package/dist/{documentUpload-h5GfSa2m.js → documentUpload-BnXvLmkL.js} +4 -4
  11. package/dist/dropdownComposed-vWK3dHjS.js +461 -0
  12. package/dist/ekyb/styles.css +107 -0
  13. package/dist/ekybModule-Dm04An2k.js +243 -0
  14. package/dist/ekyc/styles.css +274 -0
  15. package/dist/ekycModule-DQO4I6h1.js +451 -0
  16. package/dist/email/email.es.js +4 -4
  17. package/dist/{errorIcon-BT7Rf4z7.js → errorIcon-hyIEsKoP.js} +1 -1
  18. package/dist/{faceMatch-DL5ICOMJ.js → faceMatch-CTYWaJ2M.js} +4 -4
  19. package/dist/flow/flow.es.js +191 -161
  20. package/dist/flow/styles.css +536 -1
  21. package/dist/geolocation/geolocation.es.js +5 -5
  22. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  23. package/dist/id/id.es.js +7 -7
  24. package/dist/{incodeComponent-BUltqUSz.js → incodeComponent-DSqGVqSo.js} +3 -3
  25. package/dist/{incodeModule-BwGymwZT.js → incodeModule-_kfNnq5z.js} +1 -1
  26. package/dist/index.es.js +2 -2
  27. package/dist/{otpInput-B7TR21xE.js → otpInput-Bx16y6dR.js} +2 -2
  28. package/dist/phone/phone.es.js +133 -3332
  29. package/dist/{processing-B7fzlPZl.js → processing-BuaxyhmY.js} +3 -3
  30. package/dist/selfie/selfie.es.js +6 -6
  31. package/dist/{setup-CFo1IZlN.js → setup-B6jZts5S.js} +2 -2
  32. package/dist/{spinner-BiENeSCl.js → spinner-Ogo-u91P.js} +2 -2
  33. package/dist/{successIcon-CTA9p_2h.js → successIcon-Ci24t3I5.js} +1 -1
  34. package/dist/{tutorial-DGo0fw3f.js → tutorial-637lvO4s.js} +7 -7
  35. package/dist/types/ekyb/styles.d.ts +1 -0
  36. package/dist/types/ekyc/styles.d.ts +1 -0
  37. package/dist/{uiConfig-BG6lJ_HG.js → uiConfig-CbMyDWix.js} +1 -1
  38. package/dist/{useTranslation-Cm51-Wm-.js → useTranslation-B1jrtqlW.js} +1 -1
  39. package/dist/{vendor-preact-CM6KQyKc.js → vendor-preact-BDue3y7V.js} +1 -0
  40. package/dist/verificationResult-BMHBsZ8s.js +106 -0
  41. package/package.json +17 -3
@@ -1,3328 +1,129 @@
1
- import { u as s, S as $e, r as Ct, a as Pt, B as St } from "../incodeModule-BwGymwZT.js";
2
- import { createPhoneManager as It } from "@incodetech/core/phone";
3
- import { d as _, A as Et, y as re, k as Ce } from "../vendor-preact-CM6KQyKc.js";
1
+ import { u as n, S, r as R, a as W, B as F } from "../incodeModule-_kfNnq5z.js";
2
+ import { createPhoneManager as L } from "@incodetech/core/phone";
3
+ import { d as P, A as M, y as w, k } from "../vendor-preact-BDue3y7V.js";
4
4
  import "@incodetech/core";
5
- import { I as xt, P as Pe } from "../incodeComponent-BUltqUSz.js";
6
- import { O as Tt } from "../otpInput-B7TR21xE.js";
7
- import { C as At } from "../chevronDown-C5Kn1woB.js";
8
- const rt = { 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, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "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|[89]\\d\\d)\\d{8}|[2368]\\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{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\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, "([267]\\d{6})$|1", "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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|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}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\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, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|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-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\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(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "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[45]|46", "1[28]|2|365(?:4|5[02])|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, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [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(?:[15]|28|4[14])|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]|2[23]"], "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|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\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[02-4679]"]]]], 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", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\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, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], 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-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["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(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|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(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\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{2})(\\d{4})", "$1 $2 $3", ["2"], "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"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "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)(\\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, 12], [["(\\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]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], 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{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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{8}|88\\d{6,7}", [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]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "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, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\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", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [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", ["[56]"], "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}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|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(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "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, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\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(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [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{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "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, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|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", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "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-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "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{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "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", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\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|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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[0-3]))|(?: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-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|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, "([2-9]\\d{6})$|1", "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\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "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-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|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", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], 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\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], 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}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\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]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [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", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{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", ["6|7[245]"], "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-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], 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]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\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, "([25-8]\\d{5})$|0|180020", "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|8(?:28[235-7]|3))|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])\\d|8(?:[14-6]\\d|2[0-79]))|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,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\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[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[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(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\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", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 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-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\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-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|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|427|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", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-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)|9(?: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])|9(?: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])|9(?: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", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "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[0459]|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[26-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]|9[29])|5(?:2|3(?:[045]|9[0-8])|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[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|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]))|(?: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]|9(?:[0-58]|6[4-9]|7[0-35689]))|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]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|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]"], "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", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], 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-9]\\d{8}", [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, "([2-7]\\d{6})$|1", "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", ["[36]0|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\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|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", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-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-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], 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", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "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]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 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|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|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{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"], "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(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|[67]\\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", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "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\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "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|34[47]|4(?:[37]7|5[47]|64)"], "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", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "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}|[5-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", ["[5-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", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "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, "([34]\\d{6})$|1", "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])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 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", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [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]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 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]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-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(?:[367]|80)"]], ["(\\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", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-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[0467]"]]]], 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", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "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}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\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-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["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", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 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-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "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)|[589]"], "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"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [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", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\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", "00|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, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], 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", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["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|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|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", ["21|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}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "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", "1693\\d{5}|(?:[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", ["16|[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-7])"], "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", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\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", ["[236-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", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|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", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "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", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [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{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\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, 12], [["(\\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|9)"], "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-9]|[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}|(?:[489]\\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", "(?:[237-9]\\d|66)\\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|93)\\d{7}", [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", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\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-9]"]]]], 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", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\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, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "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, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 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]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\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", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 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|71)\\d{6}", [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", ["[67]"], "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\\d|999)\\d)\\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-9]"]]]], 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[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "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, "([2-46-8]\\d{6})$|1", "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]", "(?:[25-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{2})(\\d{7})", "$1 $2", ["5"]], ["(\\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{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "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}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|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[125-9]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], 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, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "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, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "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", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "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", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\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", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\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", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "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-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], 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", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "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, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 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, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 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, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 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})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 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}"]]] } };
9
- function dt(e, t) {
10
- var n = Array.prototype.slice.call(t);
11
- return n.push(rt), e.apply(this, n);
12
- }
13
- function Se(e, t) {
14
- e = e.split("-"), t = t.split("-");
15
- for (var n = e[0].split("."), r = t[0].split("."), d = 0; d < 3; d++) {
16
- var i = Number(n[d]), a = Number(r[d]);
17
- if (i > a) return 1;
18
- if (a > i) return -1;
19
- if (!isNaN(i) && isNaN(a)) return 1;
20
- if (isNaN(i) && !isNaN(a)) return -1;
21
- }
22
- return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
23
- }
24
- var Ft = {}.constructor;
25
- function x(e) {
26
- return e != null && e.constructor === Ft;
27
- }
28
- function F(e) {
29
- "@babel/helpers - typeof";
30
- return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
31
- return typeof t;
32
- } : function(t) {
33
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
34
- }, F(e);
35
- }
36
- function Z(e, t) {
37
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
38
- }
39
- function _t(e, t) {
40
- for (var n = 0; n < t.length; n++) {
41
- var r = t[n];
42
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, wt(r.key), r);
43
- }
44
- }
45
- function J(e, t, n) {
46
- return t && _t(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
47
- }
48
- function wt(e) {
49
- var t = Ot(e, "string");
50
- return F(t) == "symbol" ? t : t + "";
51
- }
52
- function Ot(e, t) {
53
- if (F(e) != "object" || !e) return e;
54
- var n = e[Symbol.toPrimitive];
55
- if (n !== void 0) {
56
- var r = n.call(e, t);
57
- if (F(r) != "object") return r;
58
- throw new TypeError("@@toPrimitive must return a primitive value.");
59
- }
60
- return String(e);
61
- }
62
- var Rt = "1.2.0", Dt = "1.7.35", Ie = " ext. ", jt = /^\d+$/, g = /* @__PURE__ */ (function() {
63
- function e(t) {
64
- Z(this, e), it(t), this.metadata = t, at.call(this, t);
65
- }
66
- return J(e, [{
67
- key: "getCountries",
68
- value: function() {
69
- return Object.keys(this.metadata.countries).filter(function(n) {
70
- return n !== "001";
71
- });
72
- }
73
- }, {
74
- key: "getCountryMetadata",
75
- value: function(n) {
76
- return this.metadata.countries[n];
77
- }
78
- }, {
79
- key: "nonGeographic",
80
- value: function() {
81
- if (!(this.v1 || this.v2 || this.v3))
82
- return this.metadata.nonGeographic || this.metadata.nonGeographical;
83
- }
84
- }, {
85
- key: "hasCountry",
86
- value: function(n) {
87
- return this.getCountryMetadata(n) !== void 0;
88
- }
89
- }, {
90
- key: "hasCallingCode",
91
- value: function(n) {
92
- if (this.getCountryCodesForCallingCode(n))
93
- return !0;
94
- if (this.nonGeographic()) {
95
- if (this.nonGeographic()[n])
96
- return !0;
97
- } else {
98
- var r = this.countryCallingCodes()[n];
99
- if (r && r.length === 1 && r[0] === "001")
100
- return !0;
101
- }
102
- }
103
- }, {
104
- key: "isNonGeographicCallingCode",
105
- value: function(n) {
106
- return this.nonGeographic() ? !!this.nonGeographic()[n] : !this.getCountryCodesForCallingCode(n);
107
- }
108
- // Deprecated.
109
- }, {
110
- key: "country",
111
- value: function(n) {
112
- return this.selectNumberingPlan(n);
113
- }
114
- }, {
115
- key: "selectNumberingPlan",
116
- value: function(n, r) {
117
- if (n && jt.test(n) && (r = n, n = null), n && n !== "001") {
118
- if (!this.hasCountry(n))
119
- throw new Error("Unknown country: ".concat(n));
120
- this.numberingPlan = new Ee(this.getCountryMetadata(n), this);
121
- } else if (r) {
122
- if (!this.hasCallingCode(r))
123
- throw new Error("Unknown calling code: ".concat(r));
124
- this.numberingPlan = new Ee(this.getNumberingPlanMetadata(r), this);
125
- } else
126
- this.numberingPlan = void 0;
127
- return this;
128
- }
129
- }, {
130
- key: "getCountryCodesForCallingCode",
131
- value: function(n) {
132
- var r = this.countryCallingCodes()[n];
133
- if (r)
134
- return r.length === 1 && r[0].length === 3 ? void 0 : r;
135
- }
136
- }, {
137
- key: "getCountryCodeForCallingCode",
138
- value: function(n) {
139
- var r = this.getCountryCodesForCallingCode(n);
140
- if (r)
141
- return r[0];
142
- }
143
- }, {
144
- key: "getNumberingPlanMetadata",
145
- value: function(n) {
146
- var r = this.getCountryCodeForCallingCode(n);
147
- if (r)
148
- return this.getCountryMetadata(r);
149
- if (this.nonGeographic()) {
150
- var d = this.nonGeographic()[n];
151
- if (d)
152
- return d;
153
- } else {
154
- var i = this.countryCallingCodes()[n];
155
- if (i && i.length === 1 && i[0] === "001")
156
- return this.metadata.countries["001"];
157
- }
158
- }
159
- // Deprecated.
160
- }, {
161
- key: "countryCallingCode",
162
- value: function() {
163
- return this.numberingPlan.callingCode();
164
- }
165
- // Deprecated.
166
- }, {
167
- key: "IDDPrefix",
168
- value: function() {
169
- return this.numberingPlan.IDDPrefix();
170
- }
171
- // Deprecated.
172
- }, {
173
- key: "defaultIDDPrefix",
174
- value: function() {
175
- return this.numberingPlan.defaultIDDPrefix();
176
- }
177
- // Deprecated.
178
- }, {
179
- key: "nationalNumberPattern",
180
- value: function() {
181
- return this.numberingPlan.nationalNumberPattern();
182
- }
183
- // Deprecated.
184
- }, {
185
- key: "possibleLengths",
186
- value: function() {
187
- return this.numberingPlan.possibleLengths();
188
- }
189
- // Deprecated.
190
- }, {
191
- key: "formats",
192
- value: function() {
193
- return this.numberingPlan.formats();
194
- }
195
- // Deprecated.
196
- }, {
197
- key: "nationalPrefixForParsing",
198
- value: function() {
199
- return this.numberingPlan.nationalPrefixForParsing();
200
- }
201
- // Deprecated.
202
- }, {
203
- key: "nationalPrefixTransformRule",
204
- value: function() {
205
- return this.numberingPlan.nationalPrefixTransformRule();
206
- }
207
- // Deprecated.
208
- }, {
209
- key: "leadingDigits",
210
- value: function() {
211
- return this.numberingPlan.leadingDigits();
212
- }
213
- // Deprecated.
214
- }, {
215
- key: "hasTypes",
216
- value: function() {
217
- return this.numberingPlan.hasTypes();
218
- }
219
- // Deprecated.
220
- }, {
221
- key: "type",
222
- value: function(n) {
223
- return this.numberingPlan.type(n);
224
- }
225
- // Deprecated.
226
- }, {
227
- key: "ext",
228
- value: function() {
229
- return this.numberingPlan.ext();
230
- }
231
- }, {
232
- key: "countryCallingCodes",
233
- value: function() {
234
- return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
235
- }
236
- // Deprecated.
237
- }, {
238
- key: "chooseCountryByCountryCallingCode",
239
- value: function(n) {
240
- return this.selectNumberingPlan(n);
241
- }
242
- }, {
243
- key: "hasSelectedNumberingPlan",
244
- value: function() {
245
- return this.numberingPlan !== void 0;
246
- }
247
- }]);
248
- })(), Ee = /* @__PURE__ */ (function() {
249
- function e(t, n) {
250
- Z(this, e), this.globalMetadataObject = n, this.metadata = t, at.call(this, n.metadata);
251
- }
252
- return J(e, [{
253
- key: "callingCode",
254
- value: function() {
255
- return this.metadata[0];
256
- }
257
- // Formatting information for regions which share
258
- // a country calling code is contained by only one region
259
- // for performance reasons. For example, for NANPA region
260
- // ("North American Numbering Plan Administration",
261
- // which includes USA, Canada, Cayman Islands, Bahamas, etc)
262
- // it will be contained in the metadata for `US`.
263
- }, {
264
- key: "getDefaultCountryMetadataForRegion",
265
- value: function() {
266
- return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
267
- }
268
- // Is always present.
269
- }, {
270
- key: "IDDPrefix",
271
- value: function() {
272
- if (!(this.v1 || this.v2))
273
- return this.metadata[1];
274
- }
275
- // Is only present when a country supports multiple IDD prefixes.
276
- }, {
277
- key: "defaultIDDPrefix",
278
- value: function() {
279
- if (!(this.v1 || this.v2))
280
- return this.metadata[12];
281
- }
282
- }, {
283
- key: "nationalNumberPattern",
284
- value: function() {
285
- return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
286
- }
287
- // "possible length" data is always present in Google's metadata.
288
- }, {
289
- key: "possibleLengths",
290
- value: function() {
291
- if (!this.v1)
292
- return this.metadata[this.v2 ? 2 : 3];
293
- }
294
- }, {
295
- key: "_getFormats",
296
- value: function(n) {
297
- return n[this.v1 ? 2 : this.v2 ? 3 : 4];
298
- }
299
- // For countries of the same region (e.g. NANPA)
300
- // formats are all stored in the "main" country for that region.
301
- // E.g. "RU" and "KZ", "US" and "CA".
302
- }, {
303
- key: "formats",
304
- value: function() {
305
- var n = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
306
- return r.map(function(d) {
307
- return new Lt(d, n);
308
- });
309
- }
310
- }, {
311
- key: "nationalPrefix",
312
- value: function() {
313
- return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
314
- }
315
- }, {
316
- key: "_getNationalPrefixFormattingRule",
317
- value: function(n) {
318
- return n[this.v1 ? 4 : this.v2 ? 5 : 6];
319
- }
320
- // For countries of the same region (e.g. NANPA)
321
- // national prefix formatting rule is stored in the "main" country for that region.
322
- // E.g. "RU" and "KZ", "US" and "CA".
323
- }, {
324
- key: "nationalPrefixFormattingRule",
325
- value: function() {
326
- return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
327
- }
328
- }, {
329
- key: "_nationalPrefixForParsing",
330
- value: function() {
331
- return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
332
- }
333
- }, {
334
- key: "nationalPrefixForParsing",
335
- value: function() {
336
- return this._nationalPrefixForParsing() || this.nationalPrefix();
337
- }
338
- }, {
339
- key: "nationalPrefixTransformRule",
340
- value: function() {
341
- return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
342
- }
343
- }, {
344
- key: "_getNationalPrefixIsOptionalWhenFormatting",
345
- value: function() {
346
- return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
347
- }
348
- // For countries of the same region (e.g. NANPA)
349
- // "national prefix is optional when formatting" flag is
350
- // stored in the "main" country for that region.
351
- // E.g. "RU" and "KZ", "US" and "CA".
352
- }, {
353
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
354
- value: function() {
355
- return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
356
- }
357
- }, {
358
- key: "leadingDigits",
359
- value: function() {
360
- return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
361
- }
362
- }, {
363
- key: "types",
364
- value: function() {
365
- return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
366
- }
367
- }, {
368
- key: "hasTypes",
369
- value: function() {
370
- return this.types() && this.types().length === 0 ? !1 : !!this.types();
371
- }
372
- }, {
373
- key: "type",
374
- value: function(n) {
375
- if (this.hasTypes() && xe(this.types(), n))
376
- return new kt(xe(this.types(), n), this);
377
- }
378
- }, {
379
- key: "ext",
380
- value: function() {
381
- return this.v1 || this.v2 ? Ie : this.metadata[13] || Ie;
382
- }
383
- }]);
384
- })(), Lt = /* @__PURE__ */ (function() {
385
- function e(t, n) {
386
- Z(this, e), this._format = t, this.metadata = n;
387
- }
388
- return J(e, [{
389
- key: "pattern",
390
- value: function() {
391
- return this._format[0];
392
- }
393
- }, {
394
- key: "format",
395
- value: function() {
396
- return this._format[1];
397
- }
398
- }, {
399
- key: "leadingDigitsPatterns",
400
- value: function() {
401
- return this._format[2] || [];
402
- }
403
- }, {
404
- key: "nationalPrefixFormattingRule",
405
- value: function() {
406
- return this._format[3] || this.metadata.nationalPrefixFormattingRule();
407
- }
408
- }, {
409
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
410
- value: function() {
411
- return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
412
- }
413
- }, {
414
- key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
415
- value: function() {
416
- return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
417
- }
418
- // Checks whether national prefix formatting rule contains national prefix.
419
- }, {
420
- key: "usesNationalPrefix",
421
- value: function() {
422
- return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
423
- !Mt.test(this.nationalPrefixFormattingRule()));
424
- }
425
- }, {
426
- key: "internationalFormat",
427
- value: function() {
428
- return this._format[5] || this.format();
429
- }
430
- }]);
431
- })(), Mt = /^\(?\$1\)?$/, kt = /* @__PURE__ */ (function() {
432
- function e(t, n) {
433
- Z(this, e), this.type = t, this.metadata = n;
434
- }
435
- return J(e, [{
436
- key: "pattern",
437
- value: function() {
438
- return this.metadata.v1 ? this.type : this.type[0];
439
- }
440
- }, {
441
- key: "possibleLengths",
442
- value: function() {
443
- if (!this.metadata.v1)
444
- return this.type[1] || this.metadata.possibleLengths();
445
- }
446
- }]);
447
- })();
448
- function xe(e, t) {
449
- switch (t) {
450
- case "FIXED_LINE":
451
- return e[0];
452
- case "MOBILE":
453
- return e[1];
454
- case "TOLL_FREE":
455
- return e[2];
456
- case "PREMIUM_RATE":
457
- return e[3];
458
- case "PERSONAL_NUMBER":
459
- return e[4];
460
- case "VOICEMAIL":
461
- return e[5];
462
- case "UAN":
463
- return e[6];
464
- case "PAGER":
465
- return e[7];
466
- case "VOIP":
467
- return e[8];
468
- case "SHARED_COST":
469
- return e[9];
470
- }
471
- }
472
- function it(e) {
473
- if (!e)
474
- throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
475
- if (!x(e) || !x(e.countries))
476
- 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(x(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + Gt(e) + ": " + e, "."));
477
- }
478
- var Gt = function(t) {
479
- return F(t);
480
- };
481
- function Q(e, t) {
482
- if (t = new g(t), t.hasCountry(e))
483
- return t.selectNumberingPlan(e).countryCallingCode();
484
- throw new Error("Unknown country: ".concat(e));
485
- }
486
- function Bt(e, t) {
487
- return t.countries.hasOwnProperty(e);
488
- }
489
- function at(e) {
490
- var t = e.version;
491
- typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Se(t, Rt) === -1 ? this.v2 = !0 : Se(t, Dt) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
492
- }
493
- function z(e, t, n) {
494
- return Ut(e, t, void 0, n);
495
- }
496
- function Ut(e, t, n, r) {
497
- t && (r = new g(r.metadata), r.selectNumberingPlan(t));
498
- var d = r.type(n), i = d && d.possibleLengths() || r.possibleLengths();
499
- if (!i)
500
- return "IS_POSSIBLE";
501
- var a = e.length, o = i[0];
502
- return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : i[i.length - 1] < a ? "TOO_LONG" : i.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
503
- }
504
- function Ht(e, t, n) {
505
- if (t === void 0 && (t = {}), n = new g(n), t.v2) {
506
- if (!e.countryCallingCode)
507
- throw new Error("Invalid phone number object passed");
508
- n.selectNumberingPlan(e.countryCallingCode);
509
- } else {
510
- if (!e.phone)
511
- return !1;
512
- if (e.country) {
513
- if (!n.hasCountry(e.country))
514
- throw new Error("Unknown country: ".concat(e.country));
515
- n.selectNumberingPlan(e.country);
516
- } else {
517
- if (!e.countryCallingCode)
518
- throw new Error("Invalid phone number object passed");
519
- n.selectNumberingPlan(e.countryCallingCode);
520
- }
521
- }
522
- if (n.possibleLengths())
523
- return ot(e.phone || e.nationalNumber, e.country, n);
524
- if (e.countryCallingCode && n.isNonGeographicCallingCode(e.countryCallingCode))
525
- return !0;
526
- throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
527
- }
528
- function ot(e, t, n) {
529
- switch (z(e, t, n)) {
530
- case "IS_POSSIBLE":
531
- return !0;
532
- // This library ignores "local-only" phone numbers (for simplicity).
533
- // See the readme for more info on what are "local-only" phone numbers.
534
- // case 'IS_POSSIBLE_LOCAL_ONLY':
535
- // return !isInternational
536
- default:
537
- return !1;
538
- }
539
- }
540
- function E(e, t) {
541
- return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
542
- }
543
- function Wt(e, t) {
544
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
545
- if (n) return (n = n.call(e)).next.bind(n);
546
- if (Array.isArray(e) || (n = Vt(e)) || t) {
547
- n && (e = n);
548
- var r = 0;
549
- return function() {
550
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
551
- };
552
- }
553
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
554
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
555
- }
556
- function Vt(e, t) {
557
- if (e) {
558
- if (typeof e == "string") return Te(e, t);
559
- var n = {}.toString.call(e).slice(8, -1);
560
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Te(e, t) : void 0;
561
- }
562
- }
563
- function Te(e, t) {
564
- (t == null || t > e.length) && (t = e.length);
565
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
566
- return r;
567
- }
568
- var Kt = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
569
- function ye(e, t, n) {
570
- if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
571
- n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
572
- var r = t.v2 ? e.nationalNumber : e.phone;
573
- if (E(r, n.nationalNumberPattern())) {
574
- if (de(r, "FIXED_LINE", n))
575
- return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || de(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
576
- for (var d = Wt(Kt), i; !(i = d()).done; ) {
577
- var a = i.value;
578
- if (de(r, a, n))
579
- return a;
580
- }
581
- }
582
- }
583
- }
584
- function de(e, t, n) {
585
- return t = n.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : E(e, t.pattern());
586
- }
587
- function Yt(e, t, n) {
588
- if (t = t || {}, n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes())
589
- return ye(e, t, n.metadata) !== void 0;
590
- var r = t.v2 ? e.nationalNumber : e.phone;
591
- return E(r, n.nationalNumberPattern());
592
- }
593
- function Xt(e, t, n) {
594
- var r = new g(n), d = r.getCountryCodesForCallingCode(e);
595
- return d ? d.filter(function(i) {
596
- return Zt(t, i, n);
597
- }) : [];
598
- }
599
- function Zt(e, t, n) {
600
- var r = new g(n);
601
- return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
602
- }
603
- var pe = 2, Jt = 17, Qt = 3, v = "0-90-9٠-٩۰-۹", zt = "-‐-―−ー-", qt = "//", en = "..", tn = "  ­​⁠ ", nn = "()()[]\\[\\]", rn = "~⁓∼~", S = "".concat(zt).concat(qt).concat(en).concat(tn).concat(nn).concat(rn), q = "++", dn = new RegExp("([" + v + "])");
604
- function $t(e, t, n, r) {
605
- if (t) {
606
- var d = new g(r);
607
- d.selectNumberingPlan(t, n);
608
- var i = new RegExp(d.IDDPrefix());
609
- if (e.search(i) === 0) {
610
- e = e.slice(e.match(i)[0].length);
611
- var a = e.match(dn);
612
- if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
613
- return e;
614
- }
615
- }
616
- }
617
- function ue(e, t) {
618
- if (e && t.numberingPlan.nationalPrefixForParsing()) {
619
- var n = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
620
- if (r) {
621
- var d, i, a = r.length - 1, o = a > 0 && r[a];
622
- if (t.nationalPrefixTransformRule() && o)
623
- d = e.replace(n, t.nationalPrefixTransformRule()), a > 1 && (i = r[1]);
624
- else {
625
- var $ = r[0];
626
- d = e.slice($.length), o && (i = r[1]);
627
- }
628
- var u;
629
- if (o) {
630
- var l = e.indexOf(r[1]), c = e.slice(0, l);
631
- c === t.numberingPlan.nationalPrefix() && (u = t.numberingPlan.nationalPrefix());
632
- } else
633
- u = r[0];
634
- return {
635
- nationalNumber: d,
636
- nationalPrefix: u,
637
- carrierCode: i
638
- };
639
- }
640
- }
641
- return {
642
- nationalNumber: e
643
- };
644
- }
645
- function an(e, t) {
646
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
647
- if (n) return (n = n.call(e)).next.bind(n);
648
- if (Array.isArray(e) || (n = on(e)) || t) {
649
- n && (e = n);
650
- var r = 0;
651
- return function() {
652
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
653
- };
654
- }
655
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
656
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
657
- }
658
- function on(e, t) {
659
- if (e) {
660
- if (typeof e == "string") return Ae(e, t);
661
- var n = {}.toString.call(e).slice(8, -1);
662
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ae(e, t) : void 0;
663
- }
664
- }
665
- function Ae(e, t) {
666
- (t == null || t > e.length) && (t = e.length);
667
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
668
- return r;
669
- }
670
- function ut(e, t) {
671
- var n = t.countries, r = t.metadata;
672
- r = new g(r);
673
- for (var d = an(n), i; !(i = d()).done; ) {
674
- var a = i.value;
675
- if (r.selectNumberingPlan(a), r.leadingDigits()) {
676
- if (e && e.search(r.leadingDigits()) === 0)
677
- return a;
678
- } else if (ye({
679
- phone: e,
680
- country: a
681
- }, void 0, r.metadata))
682
- return a;
683
- }
684
- }
685
- function ve(e, t) {
686
- var n = t.nationalNumber, r = t.metadata, d = r.getCountryCodesForCallingCode(e);
687
- if (d)
688
- return d.length === 1 ? d[0] : ut(n, {
689
- countries: d,
690
- metadata: r.metadata
691
- });
692
- }
693
- function le(e, t, n) {
694
- var r = ue(e, n), d = r.carrierCode, i = r.nationalNumber;
695
- if (i !== e) {
696
- if (!$n(e, i, n))
697
- return {
698
- nationalNumber: e
699
- };
700
- if (n.numberingPlan.possibleLengths() && (t || (t = ve(n.numberingPlan.callingCode(), {
701
- nationalNumber: i,
702
- metadata: n
703
- })), !un(i, t, n)))
704
- return {
705
- nationalNumber: e
706
- };
707
- }
708
- return {
709
- nationalNumber: i,
710
- carrierCode: d
711
- };
712
- }
713
- function $n(e, t, n) {
714
- return !(E(e, n.nationalNumberPattern()) && !E(t, n.nationalNumberPattern()));
715
- }
716
- function un(e, t, n) {
717
- switch (z(e, t, n)) {
718
- case "TOO_SHORT":
719
- case "INVALID_LENGTH":
720
- return !1;
721
- default:
722
- return !0;
723
- }
724
- }
725
- function lt(e, t, n, r, d) {
726
- var i = t || n ? Q(t || n, d) : r;
727
- if (e.indexOf(i) === 0) {
728
- d = new g(d), d.selectNumberingPlan(t || n, i);
729
- var a = e.slice(i.length), o = le(a, t, d), $ = o.nationalNumber, u = le(e, t, d), l = u.nationalNumber;
730
- if (!E(l, d.nationalNumberPattern()) && E($, d.nationalNumberPattern()) || z(l, t, d) === "TOO_LONG")
731
- return {
732
- countryCallingCode: i,
733
- number: a
734
- };
735
- }
736
- return {
737
- number: e
738
- };
739
- }
740
- function be(e, t, n, r, d) {
741
- if (!e)
742
- return {};
743
- var i;
744
- if (e[0] !== "+") {
745
- var a = $t(e, t || n, r, d);
746
- if (a && a !== e)
747
- i = !0, e = "+" + a;
748
- else {
749
- if (t || n || r) {
750
- var o = lt(e, t, n, r, d), $ = o.countryCallingCode, u = o.number;
751
- if ($)
752
- return {
753
- countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
754
- countryCallingCode: $,
755
- number: u
756
- };
757
- }
758
- return {
759
- // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
760
- // countryCallingCodeSource: 'UNSPECIFIED',
761
- number: e
762
- };
763
- }
764
- }
765
- if (e[1] === "0")
766
- return {};
767
- d = new g(d);
768
- for (var l = 2; l - 1 <= Qt && l <= e.length; ) {
769
- var c = e.slice(1, l);
770
- if (d.hasCallingCode(c))
771
- return d.selectNumberingPlan(c), {
772
- countryCallingCodeSource: i ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
773
- countryCallingCode: c,
774
- number: e.slice(l)
775
- };
776
- l++;
777
- }
778
- return {};
779
- }
780
- function st(e) {
781
- return e.replace(new RegExp("[".concat(S, "]+"), "g"), " ").trim();
782
- }
783
- var ft = /(\$\d)/;
784
- function ct(e, t, n) {
785
- var r = n.useInternationalFormat, d = n.withNationalPrefix;
786
- n.carrierCode, n.metadata;
787
- var i = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : (
788
- // This library doesn't use `domestic_carrier_code_formatting_rule`,
789
- // because that one is only used when formatting phone numbers
790
- // for dialing from a mobile phone, and this is not a dialing library.
791
- // carrierCode && format.domesticCarrierCodeFormattingRule()
792
- // // First, replace the $CC in the formatting rule with the desired carrier code.
793
- // // Then, replace the $FG in the formatting rule with the first group
794
- // // and the carrier code combined in the appropriate way.
795
- // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
796
- // : (
797
- // withNationalPrefix && format.nationalPrefixFormattingRule()
798
- // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
799
- // : format.format()
800
- // )
801
- d && t.nationalPrefixFormattingRule() ? t.format().replace(ft, t.nationalPrefixFormattingRule()) : t.format()
802
- ));
803
- return r ? st(i) : i;
804
- }
805
- var ln = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
806
- function sn(e, t, n) {
807
- var r = new g(n);
808
- if (r.selectNumberingPlan(e, t), r.defaultIDDPrefix())
809
- return r.defaultIDDPrefix();
810
- if (ln.test(r.IDDPrefix()))
811
- return r.IDDPrefix();
812
- }
813
- var fn = ";ext=", A = function(t) {
814
- return "([".concat(v, "]{1,").concat(t, "})");
815
- };
816
- function mt(e) {
817
- var t = "20", n = "15", r = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", $ = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", l = "[- ]+", c = "[  \\t]*", f = "(?:,{2}|;)", h = fn + A(t), y = i + $ + a + A(t) + o, N = i + u + a + A(r) + o, b = l + A(d) + "#", ee = c + f + a + A(n) + o, te = c + "(?:,)+" + a + A(r) + o;
818
- return h + "|" + y + "|" + N + "|" + b + "|" + ee + "|" + te;
819
- }
820
- var cn = "[" + v + "]{" + pe + "}", mn = "[" + q + "]{0,1}(?:[" + S + "]*[" + v + "]){3,}[" + S + v + "]*", hn = new RegExp("^[" + q + "]{0,1}(?:[" + S + "]*[" + v + "]){1,2}$", "i"), gn = mn + // Phone number extensions
821
- "(?:" + mt() + ")?", yn = new RegExp(
822
- // Either a short two-digit-only phone number
823
- "^" + cn + "$|^" + gn + "$",
824
- "i"
825
- );
826
- function pn(e) {
827
- return e.length >= pe && yn.test(e);
828
- }
829
- function vn(e) {
830
- return hn.test(e);
831
- }
832
- function bn(e) {
833
- var t = e.number, n = e.ext;
834
- if (!t)
835
- return "";
836
- if (t[0] !== "+")
837
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
838
- return "tel:".concat(t).concat(n ? ";ext=" + n : "");
839
- }
840
- var Fe = {
841
- formatExtension: function(t, n, r) {
842
- return "".concat(t).concat(r.ext()).concat(n);
843
- }
844
- };
845
- function Nn(e, t, n, r) {
846
- if (n ? n = Sn({}, Fe, n) : n = Fe, r = new g(r), e.country && e.country !== "001") {
847
- if (!r.hasCountry(e.country))
848
- throw new Error("Unknown country: ".concat(e.country));
849
- r.selectNumberingPlan(e.country);
850
- } else if (e.countryCallingCode)
851
- r.selectNumberingPlan(e.countryCallingCode);
852
- else return e.phone || "";
853
- var d = r.countryCallingCode(), i = n.v2 ? e.nationalNumber : e.phone, a;
854
- switch (t) {
855
- case "NATIONAL":
856
- return i ? (a = Y(i, e.carrierCode, "NATIONAL", r, n), ie(a, e.ext, r, n.formatExtension)) : "";
857
- case "INTERNATIONAL":
858
- return i ? (a = Y(i, null, "INTERNATIONAL", r, n), a = "+".concat(d, " ").concat(a), ie(a, e.ext, r, n.formatExtension)) : "+".concat(d);
859
- case "E.164":
860
- return "+".concat(d).concat(i);
861
- case "RFC3966":
862
- return bn({
863
- number: "+".concat(d).concat(i),
864
- ext: e.ext
865
- });
866
- // For reference, here's Google's IDD formatter:
867
- // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
868
- // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
869
- // Who would even need to format phone numbers in IDD format anyway?
870
- case "IDD":
871
- if (!n.fromCountry)
872
- return;
873
- var o = Pn(i, e.carrierCode, d, n.fromCountry, r);
874
- return ie(o, e.ext, r, n.formatExtension);
875
- default:
876
- throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
877
- }
878
- }
879
- function Y(e, t, n, r, d) {
880
- var i = Cn(r.formats(), e);
881
- return i ? ct(e, i, {
882
- useInternationalFormat: n === "INTERNATIONAL",
883
- withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
884
- carrierCode: t,
885
- metadata: r
886
- }) : e;
887
- }
888
- function Cn(e, t) {
889
- return In(e, function(n) {
890
- if (n.leadingDigitsPatterns().length > 0) {
891
- var r = n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length - 1];
892
- if (t.search(r) !== 0)
893
- return !1;
894
- }
895
- return E(t, n.pattern());
896
- });
897
- }
898
- function ie(e, t, n, r) {
899
- return t ? r(e, t, n) : e;
900
- }
901
- function Pn(e, t, n, r, d) {
902
- var i = Q(r, d.metadata);
903
- if (i === n) {
904
- var a = Y(e, t, "NATIONAL", d);
905
- return n === "1" ? n + " " + a : a;
906
- }
907
- var o = sn(r, void 0, d.metadata);
908
- if (o)
909
- return "".concat(o, " ").concat(n, " ").concat(Y(e, null, "INTERNATIONAL", d));
910
- }
911
- function Sn() {
912
- for (var e = 1, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
913
- n[r] = arguments[r];
914
- for (; e < n.length; ) {
915
- if (n[e])
916
- for (var d in n[e])
917
- n[0][d] = n[e][d];
918
- e++;
919
- }
920
- return n[0];
921
- }
922
- function In(e, t) {
923
- for (var n = 0; n < e.length; ) {
924
- if (t(e[n]))
925
- return e[n];
926
- n++;
927
- }
928
- }
929
- function w(e) {
930
- "@babel/helpers - typeof";
931
- return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
932
- return typeof t;
933
- } : function(t) {
934
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
935
- }, w(e);
936
- }
937
- function _e(e, t) {
938
- var n = Object.keys(e);
939
- if (Object.getOwnPropertySymbols) {
940
- var r = Object.getOwnPropertySymbols(e);
941
- t && (r = r.filter(function(d) {
942
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
943
- })), n.push.apply(n, r);
944
- }
945
- return n;
946
- }
947
- function we(e) {
948
- for (var t = 1; t < arguments.length; t++) {
949
- var n = arguments[t] != null ? arguments[t] : {};
950
- t % 2 ? _e(Object(n), !0).forEach(function(r) {
951
- En(e, r, n[r]);
952
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _e(Object(n)).forEach(function(r) {
953
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
954
- });
955
- }
956
- return e;
957
- }
958
- function En(e, t, n) {
959
- return (t = ht(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
960
- }
961
- function xn(e, t) {
962
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
963
- }
964
- function Tn(e, t) {
965
- for (var n = 0; n < t.length; n++) {
966
- var r = t[n];
967
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ht(r.key), r);
968
- }
969
- }
970
- function An(e, t, n) {
971
- return t && Tn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
972
- }
973
- function ht(e) {
974
- var t = Fn(e, "string");
975
- return w(t) == "symbol" ? t : t + "";
976
- }
977
- function Fn(e, t) {
978
- if (w(e) != "object" || !e) return e;
979
- var n = e[Symbol.toPrimitive];
980
- if (n !== void 0) {
981
- var r = n.call(e, t);
982
- if (w(r) != "object") return r;
983
- throw new TypeError("@@toPrimitive must return a primitive value.");
984
- }
985
- return String(e);
986
- }
987
- var gt = /* @__PURE__ */ (function() {
988
- function e(t, n, r) {
989
- if (xn(this, e), !t)
990
- throw new TypeError("First argument is required");
991
- if (typeof t != "string")
992
- throw new TypeError("First argument must be a string");
993
- if (t[0] === "+" && !n)
994
- throw new TypeError("`metadata` argument not passed");
995
- if (x(n) && x(n.countries)) {
996
- r = n;
997
- var d = t;
998
- if (!On.test(d))
999
- throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
1000
- var i = be(d, void 0, void 0, void 0, r), a = i.countryCallingCode, o = i.number;
1001
- if (n = o, t = a, !n)
1002
- throw new Error("Invalid `number` argument passed: too short");
1003
- }
1004
- if (!n)
1005
- throw new TypeError("`nationalNumber` argument is required");
1006
- if (typeof n != "string")
1007
- throw new TypeError("`nationalNumber` argument must be a string");
1008
- it(r);
1009
- var $ = wn(t, r), u = $.country, l = $.countryCallingCode;
1010
- this.country = u, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1011
- return r;
1012
- };
1013
- }
1014
- return An(e, [{
1015
- key: "setExt",
1016
- value: function(n) {
1017
- this.ext = n;
1018
- }
1019
- }, {
1020
- key: "getPossibleCountries",
1021
- value: function() {
1022
- return this.country ? [this.country] : Xt(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1023
- }
1024
- }, {
1025
- key: "isPossible",
1026
- value: function() {
1027
- return Ht(this, {
1028
- v2: !0
1029
- }, this.getMetadata());
1030
- }
1031
- }, {
1032
- key: "isValid",
1033
- value: function() {
1034
- return Yt(this, {
1035
- v2: !0
1036
- }, this.getMetadata());
1037
- }
1038
- }, {
1039
- key: "isNonGeographic",
1040
- value: function() {
1041
- var n = new g(this.getMetadata());
1042
- return n.isNonGeographicCallingCode(this.countryCallingCode);
1043
- }
1044
- }, {
1045
- key: "isEqual",
1046
- value: function(n) {
1047
- return this.number === n.number && this.ext === n.ext;
1048
- }
1049
- // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1050
- // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1051
- // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1052
- // so eventually I simply commented out this method from the `PhoneNumber` class
1053
- // and just left the `validatePhoneNumberLength()` function, even though that one would require
1054
- // and additional step to also validate the actual country / calling code of the phone number.
1055
- // validateLength() {
1056
- // const metadata = new Metadata(this.getMetadata())
1057
- // metadata.selectNumberingPlan(this.countryCallingCode)
1058
- // const result = checkNumberLength(this.nationalNumber, metadata)
1059
- // if (result !== 'IS_POSSIBLE') {
1060
- // return result
1061
- // }
1062
- // }
1063
- }, {
1064
- key: "getType",
1065
- value: function() {
1066
- return ye(this, {
1067
- v2: !0
1068
- }, this.getMetadata());
1069
- }
1070
- }, {
1071
- key: "format",
1072
- value: function(n, r) {
1073
- return Nn(this, n, r ? we(we({}, r), {}, {
1074
- v2: !0
1075
- }) : {
1076
- v2: !0
1077
- }, this.getMetadata());
1078
- }
1079
- }, {
1080
- key: "formatNational",
1081
- value: function(n) {
1082
- return this.format("NATIONAL", n);
1083
- }
1084
- }, {
1085
- key: "formatInternational",
1086
- value: function(n) {
1087
- return this.format("INTERNATIONAL", n);
1088
- }
1089
- }, {
1090
- key: "getURI",
1091
- value: function(n) {
1092
- return this.format("RFC3966", n);
1093
- }
1094
- }]);
1095
- })(), _n = function(t) {
1096
- return /^[A-Z]{2}$/.test(t);
1097
- };
1098
- function wn(e, t) {
1099
- var n, r, d = new g(t);
1100
- return _n(e) ? (n = e, d.selectNumberingPlan(n), r = d.countryCallingCode()) : r = e, {
1101
- country: n,
1102
- countryCallingCode: r
1103
- };
1104
- }
1105
- var On = /^\+\d+$/;
1106
- function se(e) {
1107
- "@babel/helpers - typeof";
1108
- return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1109
- return typeof t;
1110
- } : function(t) {
1111
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1112
- }, se(e);
1113
- }
1114
- function Rn(e, t, n) {
1115
- return Object.defineProperty(e, "prototype", { writable: !1 }), e;
1116
- }
1117
- function Dn(e, t) {
1118
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1119
- }
1120
- function jn(e, t, n) {
1121
- return t = R(t), Ln(e, Ne() ? Reflect.construct(t, n || [], R(e).constructor) : t.apply(e, n));
1122
- }
1123
- function Ln(e, t) {
1124
- if (t && (se(t) == "object" || typeof t == "function")) return t;
1125
- if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1126
- return Mn(e);
1127
- }
1128
- function Mn(e) {
1129
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1130
- return e;
1131
- }
1132
- function kn(e, t) {
1133
- if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1134
- e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && O(e, t);
1135
- }
1136
- function fe(e) {
1137
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1138
- return fe = function(r) {
1139
- if (r === null || !Bn(r)) return r;
1140
- if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
1141
- if (t !== void 0) {
1142
- if (t.has(r)) return t.get(r);
1143
- t.set(r, d);
1144
- }
1145
- function d() {
1146
- return Gn(r, arguments, R(this).constructor);
1147
- }
1148
- return d.prototype = Object.create(r.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), O(d, r);
1149
- }, fe(e);
1150
- }
1151
- function Gn(e, t, n) {
1152
- if (Ne()) return Reflect.construct.apply(null, arguments);
1153
- var r = [null];
1154
- r.push.apply(r, t);
1155
- var d = new (e.bind.apply(e, r))();
1156
- return n && O(d, n.prototype), d;
1157
- }
1158
- function Ne() {
1159
- try {
1160
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1161
- }));
1162
- } catch {
1163
- }
1164
- return (Ne = function() {
1165
- return !!e;
1166
- })();
1167
- }
1168
- function Bn(e) {
1169
- try {
1170
- return Function.toString.call(e).indexOf("[native code]") !== -1;
1171
- } catch {
1172
- return typeof e == "function";
1173
- }
1174
- }
1175
- function O(e, t) {
1176
- return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1177
- return n.__proto__ = r, n;
1178
- }, O(e, t);
1179
- }
1180
- function R(e) {
1181
- return R = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1182
- return t.__proto__ || Object.getPrototypeOf(t);
1183
- }, R(e);
1184
- }
1185
- var I = /* @__PURE__ */ (function(e) {
1186
- function t(n) {
1187
- var r;
1188
- return Dn(this, t), r = jn(this, t, [n]), Object.setPrototypeOf(r, t.prototype), r.name = r.constructor.name, r;
1189
- }
1190
- return kn(t, e), Rn(t);
1191
- })(/* @__PURE__ */ fe(Error)), Oe = new RegExp("(?:" + mt() + ")$", "i");
1192
- function Un(e) {
1193
- var t = e.search(Oe);
1194
- if (t < 0)
1195
- return {};
1196
- for (var n = e.slice(0, t), r = e.match(Oe), d = 1; d < r.length; ) {
1197
- if (r[d])
1198
- return {
1199
- number: n,
1200
- ext: r[d]
1201
- };
1202
- d++;
1203
- }
1204
- }
1205
- function Hn(e, t) {
1206
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1207
- if (n) return (n = n.call(e)).next.bind(n);
1208
- if (Array.isArray(e) || (n = Wn(e)) || t) {
1209
- n && (e = n);
1210
- var r = 0;
1211
- return function() {
1212
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1213
- };
1214
- }
1215
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1216
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1217
- }
1218
- function Wn(e, t) {
1219
- if (e) {
1220
- if (typeof e == "string") return Re(e, t);
1221
- var n = {}.toString.call(e).slice(8, -1);
1222
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Re(e, t) : void 0;
1223
- }
1224
- }
1225
- function Re(e, t) {
1226
- (t == null || t > e.length) && (t = e.length);
1227
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1228
- return r;
1229
- }
1230
- var Vn = {
1231
- 0: "0",
1232
- 1: "1",
1233
- 2: "2",
1234
- 3: "3",
1235
- 4: "4",
1236
- 5: "5",
1237
- 6: "6",
1238
- 7: "7",
1239
- 8: "8",
1240
- 9: "9",
1241
- "0": "0",
1242
- // Fullwidth digit 0
1243
- "1": "1",
1244
- // Fullwidth digit 1
1245
- "2": "2",
1246
- // Fullwidth digit 2
1247
- "3": "3",
1248
- // Fullwidth digit 3
1249
- "4": "4",
1250
- // Fullwidth digit 4
1251
- "5": "5",
1252
- // Fullwidth digit 5
1253
- "6": "6",
1254
- // Fullwidth digit 6
1255
- "7": "7",
1256
- // Fullwidth digit 7
1257
- "8": "8",
1258
- // Fullwidth digit 8
1259
- "9": "9",
1260
- // Fullwidth digit 9
1261
- "٠": "0",
1262
- // Arabic-indic digit 0
1263
- "١": "1",
1264
- // Arabic-indic digit 1
1265
- "٢": "2",
1266
- // Arabic-indic digit 2
1267
- "٣": "3",
1268
- // Arabic-indic digit 3
1269
- "٤": "4",
1270
- // Arabic-indic digit 4
1271
- "٥": "5",
1272
- // Arabic-indic digit 5
1273
- "٦": "6",
1274
- // Arabic-indic digit 6
1275
- "٧": "7",
1276
- // Arabic-indic digit 7
1277
- "٨": "8",
1278
- // Arabic-indic digit 8
1279
- "٩": "9",
1280
- // Arabic-indic digit 9
1281
- "۰": "0",
1282
- // Eastern-Arabic digit 0
1283
- "۱": "1",
1284
- // Eastern-Arabic digit 1
1285
- "۲": "2",
1286
- // Eastern-Arabic digit 2
1287
- "۳": "3",
1288
- // Eastern-Arabic digit 3
1289
- "۴": "4",
1290
- // Eastern-Arabic digit 4
1291
- "۵": "5",
1292
- // Eastern-Arabic digit 5
1293
- "۶": "6",
1294
- // Eastern-Arabic digit 6
1295
- "۷": "7",
1296
- // Eastern-Arabic digit 7
1297
- "۸": "8",
1298
- // Eastern-Arabic digit 8
1299
- "۹": "9"
1300
- // Eastern-Arabic digit 9
1301
- };
1302
- function yt(e) {
1303
- return Vn[e];
1304
- }
1305
- function X(e) {
1306
- for (var t = "", n = Hn(e.split("")), r; !(r = n()).done; ) {
1307
- var d = r.value, i = yt(d);
1308
- i && (t += i);
1309
- }
1310
- return t;
1311
- }
1312
- function Kn(e, t) {
1313
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1314
- if (n) return (n = n.call(e)).next.bind(n);
1315
- if (Array.isArray(e) || (n = Yn(e)) || t) {
1316
- n && (e = n);
1317
- var r = 0;
1318
- return function() {
1319
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1320
- };
1321
- }
1322
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1323
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1324
- }
1325
- function Yn(e, t) {
1326
- if (e) {
1327
- if (typeof e == "string") return De(e, t);
1328
- var n = {}.toString.call(e).slice(8, -1);
1329
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? De(e, t) : void 0;
1330
- }
1331
- }
1332
- function De(e, t) {
1333
- (t == null || t > e.length) && (t = e.length);
1334
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1335
- return r;
1336
- }
1337
- function je(e) {
1338
- for (var t = "", n = Kn(e.split("")), r; !(r = n()).done; ) {
1339
- var d = r.value;
1340
- t += Xn(d, t) || "";
1341
- }
1342
- return t;
1343
- }
1344
- function Xn(e, t, n) {
1345
- return e === "+" ? t ? void 0 : "+" : yt(e);
1346
- }
1347
- var pt = "+", Zn = "[\\-\\.\\(\\)]?", Le = "([" + v + "]|" + Zn + ")", Jn = "^\\" + pt + Le + "*[" + v + "]" + Le + "*$", Qn = new RegExp(Jn, "g"), ce = v, zn = "[" + ce + "]+((\\-)*[" + ce + "])*", qn = "a-zA-Z", er = "[" + qn + "]+((\\-)*[" + ce + "])*", tr = "^(" + zn + "\\.)*" + er + "\\.?$", nr = new RegExp(tr, "g"), Me = "tel:", me = ";phone-context=", rr = ";isub=";
1348
- function dr(e) {
1349
- var t = e.indexOf(me);
1350
- if (t < 0)
1351
- return null;
1352
- var n = t + me.length;
1353
- if (n >= e.length)
1354
- return "";
1355
- var r = e.indexOf(";", n);
1356
- return r >= 0 ? e.substring(n, r) : e.substring(n);
1357
- }
1358
- function ir(e) {
1359
- return e === null ? !0 : e.length === 0 ? !1 : Qn.test(e) || nr.test(e);
1360
- }
1361
- function ar(e, t) {
1362
- var n = t.extractFormattedPhoneNumber, r = dr(e);
1363
- if (!ir(r))
1364
- throw new I("NOT_A_NUMBER");
1365
- var d;
1366
- if (r === null)
1367
- d = n(e) || "";
1368
- else {
1369
- d = "", r.charAt(0) === pt && (d += r);
1370
- var i = e.indexOf(Me), a;
1371
- i >= 0 ? a = i + Me.length : a = 0;
1372
- var o = e.indexOf(me);
1373
- d += e.substring(a, o);
1374
- }
1375
- var $ = d.indexOf(rr);
1376
- if ($ > 0 && (d = d.substring(0, $)), d !== "")
1377
- return d;
1378
- }
1379
- var or = 250, $r = new RegExp("[" + q + v + "]"), ur = new RegExp("[^" + v + "#]+$");
1380
- function lr(e, t, n) {
1381
- if (t = t || {}, n = new g(n), t.defaultCountry && !n.hasCountry(t.defaultCountry))
1382
- throw t.v2 ? new I("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
1383
- var r = fr(e, t.v2, t.extract), d = r.number, i = r.ext, a = r.error;
1384
- if (!d) {
1385
- if (t.v2)
1386
- throw a === "TOO_SHORT" ? new I("TOO_SHORT") : new I("NOT_A_NUMBER");
1387
- return {};
1388
- }
1389
- var o = mr(d, t.defaultCountry, t.defaultCallingCode, n), $ = o.country, u = o.nationalNumber, l = o.countryCallingCode, c = o.countryCallingCodeSource, f = o.carrierCode;
1390
- if (!n.hasSelectedNumberingPlan()) {
1391
- if (t.v2)
1392
- throw new I("INVALID_COUNTRY");
1393
- return {};
1394
- }
1395
- if (!u || u.length < pe) {
1396
- if (t.v2)
1397
- throw new I("TOO_SHORT");
1398
- return {};
1399
- }
1400
- if (u.length > Jt) {
1401
- if (t.v2)
1402
- throw new I("TOO_LONG");
1403
- return {};
1404
- }
1405
- if (t.v2) {
1406
- var h = new gt(l, u, n.metadata);
1407
- return $ && (h.country = $), f && (h.carrierCode = f), i && (h.ext = i), h.__countryCallingCodeSource = c, h;
1408
- }
1409
- var y = (t.extended ? n.hasSelectedNumberingPlan() : $) ? E(u, n.nationalNumberPattern()) : !1;
1410
- return t.extended ? {
1411
- country: $,
1412
- countryCallingCode: l,
1413
- carrierCode: f,
1414
- valid: y,
1415
- possible: y ? !0 : !!(t.extended === !0 && n.possibleLengths() && ot(u, $, n)),
1416
- phone: u,
1417
- ext: i
1418
- } : y ? cr($, u, i) : {};
1419
- }
1420
- function sr(e, t, n) {
1421
- if (e) {
1422
- if (e.length > or) {
1423
- if (n)
1424
- throw new I("TOO_LONG");
1425
- return;
1426
- }
1427
- if (t === !1)
1428
- return e;
1429
- var r = e.search($r);
1430
- if (!(r < 0))
1431
- return e.slice(r).replace(ur, "");
1432
- }
1433
- }
1434
- function fr(e, t, n) {
1435
- var r = ar(e, {
1436
- extractFormattedPhoneNumber: function(a) {
1437
- return sr(a, n, t);
1438
- }
1439
- });
1440
- if (!r)
1441
- return {};
1442
- if (!pn(r))
1443
- return vn(r) ? {
1444
- error: "TOO_SHORT"
1445
- } : {};
1446
- var d = Un(r);
1447
- return d.ext ? d : {
1448
- number: r
1449
- };
1450
- }
1451
- function cr(e, t, n) {
1452
- var r = {
1453
- country: e,
1454
- phone: t
1455
- };
1456
- return n && (r.ext = n), r;
1457
- }
1458
- function mr(e, t, n, r) {
1459
- var d = be(je(e), void 0, t, n, r.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, $;
1460
- if (a)
1461
- r.selectNumberingPlan(a);
1462
- else if (o && (t || n))
1463
- r.selectNumberingPlan(t, n), t && ($ = t), a = n || Q(t, r.metadata);
1464
- else return {};
1465
- if (!o)
1466
- return {
1467
- countryCallingCodeSource: i,
1468
- countryCallingCode: a
1469
- };
1470
- var u = le(je(o), $, r), l = u.nationalNumber, c = u.carrierCode, f = ve(a, {
1471
- nationalNumber: l,
1472
- metadata: r
1473
- });
1474
- return f && ($ = f, f === "001" || r.selectNumberingPlan($)), {
1475
- country: $,
1476
- countryCallingCode: a,
1477
- countryCallingCodeSource: i,
1478
- nationalNumber: l,
1479
- carrierCode: c
1480
- };
1481
- }
1482
- function D(e) {
1483
- "@babel/helpers - typeof";
1484
- return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1485
- return typeof t;
1486
- } : function(t) {
1487
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1488
- }, D(e);
1489
- }
1490
- function ke(e, t) {
1491
- var n = Object.keys(e);
1492
- if (Object.getOwnPropertySymbols) {
1493
- var r = Object.getOwnPropertySymbols(e);
1494
- t && (r = r.filter(function(d) {
1495
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1496
- })), n.push.apply(n, r);
1497
- }
1498
- return n;
1499
- }
1500
- function Ge(e) {
1501
- for (var t = 1; t < arguments.length; t++) {
1502
- var n = arguments[t] != null ? arguments[t] : {};
1503
- t % 2 ? ke(Object(n), !0).forEach(function(r) {
1504
- hr(e, r, n[r]);
1505
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ke(Object(n)).forEach(function(r) {
1506
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1507
- });
1508
- }
1509
- return e;
1510
- }
1511
- function hr(e, t, n) {
1512
- return (t = gr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1513
- }
1514
- function gr(e) {
1515
- var t = yr(e, "string");
1516
- return D(t) == "symbol" ? t : t + "";
1517
- }
1518
- function yr(e, t) {
1519
- if (D(e) != "object" || !e) return e;
1520
- var n = e[Symbol.toPrimitive];
1521
- if (n !== void 0) {
1522
- var r = n.call(e, t);
1523
- if (D(r) != "object") return r;
1524
- throw new TypeError("@@toPrimitive must return a primitive value.");
1525
- }
1526
- return (t === "string" ? String : Number)(e);
1527
- }
1528
- function pr(e, t, n) {
1529
- return lr(e, Ge(Ge({}, t), {}, {
1530
- v2: !0
1531
- }), n);
1532
- }
1533
- function j(e) {
1534
- "@babel/helpers - typeof";
1535
- return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1536
- return typeof t;
1537
- } : function(t) {
1538
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1539
- }, j(e);
1540
- }
1541
- function Be(e, t) {
1542
- var n = Object.keys(e);
1543
- if (Object.getOwnPropertySymbols) {
1544
- var r = Object.getOwnPropertySymbols(e);
1545
- t && (r = r.filter(function(d) {
1546
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1547
- })), n.push.apply(n, r);
1548
- }
1549
- return n;
1550
- }
1551
- function vr(e) {
1552
- for (var t = 1; t < arguments.length; t++) {
1553
- var n = arguments[t] != null ? arguments[t] : {};
1554
- t % 2 ? Be(Object(n), !0).forEach(function(r) {
1555
- br(e, r, n[r]);
1556
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Be(Object(n)).forEach(function(r) {
1557
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1558
- });
1559
- }
1560
- return e;
1561
- }
1562
- function br(e, t, n) {
1563
- return (t = Nr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1564
- }
1565
- function Nr(e) {
1566
- var t = Cr(e, "string");
1567
- return j(t) == "symbol" ? t : t + "";
1568
- }
1569
- function Cr(e, t) {
1570
- if (j(e) != "object" || !e) return e;
1571
- var n = e[Symbol.toPrimitive];
1572
- if (n !== void 0) {
1573
- var r = n.call(e, t);
1574
- if (j(r) != "object") return r;
1575
- throw new TypeError("@@toPrimitive must return a primitive value.");
1576
- }
1577
- return (t === "string" ? String : Number)(e);
1578
- }
1579
- function Pr(e, t) {
1580
- return xr(e) || Er(e, t) || Ir(e, t) || Sr();
1581
- }
1582
- function Sr() {
1583
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1584
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1585
- }
1586
- function Ir(e, t) {
1587
- if (e) {
1588
- if (typeof e == "string") return Ue(e, t);
1589
- var n = {}.toString.call(e).slice(8, -1);
1590
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ue(e, t) : void 0;
1591
- }
1592
- }
1593
- function Ue(e, t) {
1594
- (t == null || t > e.length) && (t = e.length);
1595
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1596
- return r;
1597
- }
1598
- function Er(e, t) {
1599
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1600
- if (n != null) {
1601
- var r, d, i, a, o = [], $ = !0, u = !1;
1602
- try {
1603
- if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
1604
- } catch (l) {
1605
- u = !0, d = l;
1606
- } finally {
1607
- try {
1608
- if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
1609
- } finally {
1610
- if (u) throw d;
1611
- }
1612
- }
1613
- return o;
1614
- }
1615
- }
1616
- function xr(e) {
1617
- if (Array.isArray(e)) return e;
1618
- }
1619
- function Tr(e) {
1620
- var t = Array.prototype.slice.call(e), n = Pr(t, 4), r = n[0], d = n[1], i = n[2], a = n[3], o, $, u;
1621
- if (typeof r == "string")
1622
- o = r;
1623
- else throw new TypeError("A text for parsing must be a string.");
1624
- if (!d || typeof d == "string")
1625
- a ? ($ = i, u = a) : ($ = void 0, u = i), d && ($ = vr({
1626
- defaultCountry: d
1627
- }, $));
1628
- else if (x(d))
1629
- i ? ($ = d, u = i) : u = d;
1630
- else throw new Error("Invalid second argument: ".concat(d));
1631
- return {
1632
- text: o,
1633
- options: $,
1634
- metadata: u
1635
- };
1636
- }
1637
- function L(e) {
1638
- "@babel/helpers - typeof";
1639
- return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1640
- return typeof t;
1641
- } : function(t) {
1642
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1643
- }, L(e);
1644
- }
1645
- function He(e, t) {
1646
- var n = Object.keys(e);
1647
- if (Object.getOwnPropertySymbols) {
1648
- var r = Object.getOwnPropertySymbols(e);
1649
- t && (r = r.filter(function(d) {
1650
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1651
- })), n.push.apply(n, r);
1652
- }
1653
- return n;
1654
- }
1655
- function We(e) {
1656
- for (var t = 1; t < arguments.length; t++) {
1657
- var n = arguments[t] != null ? arguments[t] : {};
1658
- t % 2 ? He(Object(n), !0).forEach(function(r) {
1659
- Ar(e, r, n[r]);
1660
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : He(Object(n)).forEach(function(r) {
1661
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1662
- });
1663
- }
1664
- return e;
1665
- }
1666
- function Ar(e, t, n) {
1667
- return (t = Fr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1668
- }
1669
- function Fr(e) {
1670
- var t = _r(e, "string");
1671
- return L(t) == "symbol" ? t : t + "";
1672
- }
1673
- function _r(e, t) {
1674
- if (L(e) != "object" || !e) return e;
1675
- var n = e[Symbol.toPrimitive];
1676
- if (n !== void 0) {
1677
- var r = n.call(e, t);
1678
- if (L(r) != "object") return r;
1679
- throw new TypeError("@@toPrimitive must return a primitive value.");
1680
- }
1681
- return (t === "string" ? String : Number)(e);
1682
- }
1683
- function wr(e, t, n) {
1684
- t && t.defaultCountry && !Bt(t.defaultCountry, n) && (t = We(We({}, t), {}, {
1685
- defaultCountry: void 0
1686
- }));
1687
- try {
1688
- return pr(e, t, n);
1689
- } catch (r) {
1690
- if (!(r instanceof I)) throw r;
1691
- }
1692
- }
1693
- function Or() {
1694
- var e = Tr(arguments), t = e.text, n = e.options, r = e.metadata;
1695
- return wr(t, n, r);
1696
- }
1697
- function M(e) {
1698
- "@babel/helpers - typeof";
1699
- return M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1700
- return typeof t;
1701
- } : function(t) {
1702
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1703
- }, M(e);
1704
- }
1705
- function Rr(e, t) {
1706
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1707
- }
1708
- function Dr(e, t) {
1709
- for (var n = 0; n < t.length; n++) {
1710
- var r = t[n];
1711
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Lr(r.key), r);
1712
- }
1713
- }
1714
- function jr(e, t, n) {
1715
- return t && Dr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1716
- }
1717
- function Lr(e) {
1718
- var t = Mr(e, "string");
1719
- return M(t) == "symbol" ? t : t + "";
1720
- }
1721
- function Mr(e, t) {
1722
- if (M(e) != "object" || !e) return e;
1723
- var n = e[Symbol.toPrimitive];
1724
- if (n !== void 0) {
1725
- var r = n.call(e, t);
1726
- if (M(r) != "object") return r;
1727
- throw new TypeError("@@toPrimitive must return a primitive value.");
1728
- }
1729
- return String(e);
1730
- }
1731
- var kr = /* @__PURE__ */ (function() {
1732
- function e(t) {
1733
- var n = t.onCountryChange, r = t.onCallingCodeChange;
1734
- Rr(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
1735
- }
1736
- return jr(e, [{
1737
- key: "reset",
1738
- value: function(n) {
1739
- var r = n.country, d = n.callingCode;
1740
- this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(r, d);
1741
- }
1742
- }, {
1743
- key: "resetNationalSignificantNumber",
1744
- value: function() {
1745
- this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
1746
- }
1747
- }, {
1748
- key: "update",
1749
- value: function(n) {
1750
- for (var r = 0, d = Object.keys(n); r < d.length; r++) {
1751
- var i = d[r];
1752
- this[i] = n[i];
1753
- }
1754
- }
1755
- }, {
1756
- key: "initCountryAndCallingCode",
1757
- value: function(n, r) {
1758
- this.setCountry(n), this.setCallingCode(r);
1759
- }
1760
- }, {
1761
- key: "setCountry",
1762
- value: function(n) {
1763
- this.country = n, this.onCountryChange(n);
1764
- }
1765
- }, {
1766
- key: "setCallingCode",
1767
- value: function(n) {
1768
- this.callingCode = n, this.onCallingCodeChange(n, this.country);
1769
- }
1770
- }, {
1771
- key: "startInternationalNumber",
1772
- value: function(n, r) {
1773
- this.international = !0, this.initCountryAndCallingCode(n, r);
1774
- }
1775
- }, {
1776
- key: "appendDigits",
1777
- value: function(n) {
1778
- this.digits += n;
1779
- }
1780
- }, {
1781
- key: "appendNationalSignificantNumberDigits",
1782
- value: function(n) {
1783
- this.nationalSignificantNumber += n;
1784
- }
1785
- /**
1786
- * Returns the part of `this.digits` that corresponds to the national number.
1787
- * Basically, all digits that have been input by the user, except for the
1788
- * international prefix and the country calling code part
1789
- * (if the number is an international one).
1790
- * @return {string}
1791
- */
1792
- }, {
1793
- key: "getNationalDigits",
1794
- value: function() {
1795
- return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1796
- }
1797
- }, {
1798
- key: "getDigitsWithoutInternationalPrefix",
1799
- value: function() {
1800
- return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1801
- }
1802
- }]);
1803
- })();
1804
- function Gr(e, t) {
1805
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1806
- if (n) return (n = n.call(e)).next.bind(n);
1807
- if (Array.isArray(e) || (n = Br(e)) || t) {
1808
- n && (e = n);
1809
- var r = 0;
1810
- return function() {
1811
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1812
- };
1813
- }
1814
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1815
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1816
- }
1817
- function Br(e, t) {
1818
- if (e) {
1819
- if (typeof e == "string") return Ve(e, t);
1820
- var n = {}.toString.call(e).slice(8, -1);
1821
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ve(e, t) : void 0;
1822
- }
1823
- }
1824
- function Ve(e, t) {
1825
- (t == null || t > e.length) && (t = e.length);
1826
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1827
- return r;
1828
- }
1829
- var P = "x", ae = new RegExp(P);
1830
- function V(e, t) {
1831
- if (t < 1)
1832
- return "";
1833
- for (var n = ""; t > 1; )
1834
- t & 1 && (n += e), t >>= 1, e += e;
1835
- return n + e;
1836
- }
1837
- function Ke(e, t) {
1838
- return e[t] === ")" && t++, Ur(e.slice(0, t));
1839
- }
1840
- function Ur(e) {
1841
- for (var t = [], n = 0; n < e.length; )
1842
- e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
1843
- var r = 0, d = "";
1844
- t.push(e.length);
1845
- for (var i = 0, a = t; i < a.length; i++) {
1846
- var o = a[i];
1847
- d += e.slice(r, o), r = o + 1;
1848
- }
1849
- return d;
1850
- }
1851
- function Hr(e, t, n) {
1852
- for (var r = Gr(n.split("")), d; !(d = r()).done; ) {
1853
- var i = d.value;
1854
- if (e.slice(t + 1).search(ae) < 0)
1855
- return;
1856
- t = e.search(ae), e = e.replace(ae, i);
1857
- }
1858
- return [e, t];
1859
- }
1860
- function Wr(e, t, n) {
1861
- var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
1862
- if (a.test(e.nationalSignificantNumber))
1863
- return Kr(e, t, {
1864
- metadata: r,
1865
- shouldTryNationalPrefixFormattingRule: d,
1866
- getSeparatorAfterNationalPrefix: i
1867
- });
1868
- }
1869
- function Vr(e, t, n) {
1870
- return z(e, t, n) === "IS_POSSIBLE";
1871
- }
1872
- function Kr(e, t, n) {
1873
- var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1874
- if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(t)) {
1875
- var a = Ye(e, t, {
1876
- useNationalPrefixFormattingRule: !0,
1877
- getSeparatorAfterNationalPrefix: i,
1878
- metadata: r
1879
- });
1880
- if (a)
1881
- return a;
1882
- }
1883
- return Ye(e, t, {
1884
- useNationalPrefixFormattingRule: !1,
1885
- getSeparatorAfterNationalPrefix: i,
1886
- metadata: r
1887
- });
1888
- }
1889
- function Ye(e, t, n) {
1890
- var r = n.metadata, d = n.useNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = ct(e.nationalSignificantNumber, t, {
1891
- carrierCode: e.carrierCode,
1892
- useInternationalFormat: e.international,
1893
- withNationalPrefix: d,
1894
- metadata: r
1895
- });
1896
- if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(t) + a : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (a = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + a)), Yr(a, e))
1897
- return a;
1898
- }
1899
- function Yr(e, t) {
1900
- return X(e) === t.getNationalDigits();
1901
- }
1902
- function k(e) {
1903
- "@babel/helpers - typeof";
1904
- return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1905
- return typeof t;
1906
- } : function(t) {
1907
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1908
- }, k(e);
1909
- }
1910
- function Xr(e, t) {
1911
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1912
- }
1913
- function Zr(e, t) {
1914
- for (var n = 0; n < t.length; n++) {
1915
- var r = t[n];
1916
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Qr(r.key), r);
1917
- }
1918
- }
1919
- function Jr(e, t, n) {
1920
- return t && Zr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1921
- }
1922
- function Qr(e) {
1923
- var t = zr(e, "string");
1924
- return k(t) == "symbol" ? t : t + "";
1925
- }
1926
- function zr(e, t) {
1927
- if (k(e) != "object" || !e) return e;
1928
- var n = e[Symbol.toPrimitive];
1929
- if (n !== void 0) {
1930
- var r = n.call(e, t);
1931
- if (k(r) != "object") return r;
1932
- throw new TypeError("@@toPrimitive must return a primitive value.");
1933
- }
1934
- return String(e);
1935
- }
1936
- var qr = /* @__PURE__ */ (function() {
1937
- function e() {
1938
- Xr(this, e);
1939
- }
1940
- return Jr(e, [{
1941
- key: "parse",
1942
- value: function(n) {
1943
- if (this.context = [{
1944
- or: !0,
1945
- instructions: []
1946
- }], this.parsePattern(n), this.context.length !== 1)
1947
- throw new Error("Non-finalized contexts left when pattern parse ended");
1948
- var r = this.context[0], d = r.branches, i = r.instructions;
1949
- if (d)
1950
- return {
1951
- op: "|",
1952
- args: d.concat([oe(i)])
1953
- };
1954
- if (i.length === 0)
1955
- throw new Error("Pattern is required");
1956
- return i.length === 1 ? i[0] : i;
1957
- }
1958
- }, {
1959
- key: "startContext",
1960
- value: function(n) {
1961
- this.context.push(n);
1962
- }
1963
- }, {
1964
- key: "endContext",
1965
- value: function() {
1966
- this.context.pop();
1967
- }
1968
- }, {
1969
- key: "getContext",
1970
- value: function() {
1971
- return this.context[this.context.length - 1];
1972
- }
1973
- }, {
1974
- key: "parsePattern",
1975
- value: function(n) {
1976
- if (!n)
1977
- throw new Error("Pattern is required");
1978
- var r = n.match(nd);
1979
- if (!r) {
1980
- if (td.test(n))
1981
- throw new Error("Illegal characters found in a pattern: ".concat(n));
1982
- this.getContext().instructions = this.getContext().instructions.concat(n.split(""));
1983
- return;
1984
- }
1985
- var d = r[1], i = n.slice(0, r.index), a = n.slice(r.index + d.length);
1986
- switch (d) {
1987
- case "(?:":
1988
- i && this.parsePattern(i), this.startContext({
1989
- or: !0,
1990
- instructions: [],
1991
- branches: []
1992
- });
1993
- break;
1994
- case ")":
1995
- if (!this.getContext().or)
1996
- throw new Error('")" operator must be preceded by "(?:" operator');
1997
- if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
1998
- throw new Error('No instructions found after "|" operator in an "or" group');
1999
- var o = this.getContext(), $ = o.branches;
2000
- $.push(oe(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
2001
- op: "|",
2002
- args: $
2003
- });
2004
- break;
2005
- case "|":
2006
- if (!this.getContext().or)
2007
- throw new Error('"|" operator can only be used inside "or" groups');
2008
- if (i && this.parsePattern(i), !this.getContext().branches)
2009
- if (this.context.length === 1)
2010
- this.getContext().branches = [];
2011
- else
2012
- throw new Error('"branches" not found in an "or" group context');
2013
- this.getContext().branches.push(oe(this.getContext().instructions)), this.getContext().instructions = [];
2014
- break;
2015
- case "[":
2016
- i && this.parsePattern(i), this.startContext({
2017
- oneOfSet: !0
2018
- });
2019
- break;
2020
- case "]":
2021
- if (!this.getContext().oneOfSet)
2022
- throw new Error('"]" operator must be preceded by "[" operator');
2023
- this.endContext(), this.getContext().instructions.push({
2024
- op: "[]",
2025
- args: ed(i)
2026
- });
2027
- break;
2028
- /* istanbul ignore next */
2029
- default:
2030
- throw new Error("Unknown operator: ".concat(d));
2031
- }
2032
- a && this.parsePattern(a);
2033
- }
2034
- }]);
2035
- })();
2036
- function ed(e) {
2037
- for (var t = [], n = 0; n < e.length; ) {
2038
- if (e[n] === "-") {
2039
- if (n === 0 || n === e.length - 1)
2040
- throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
2041
- for (var r = e[n - 1].charCodeAt(0) + 1, d = e[n + 1].charCodeAt(0) - 1, i = r; i <= d; )
2042
- t.push(String.fromCharCode(i)), i++;
2043
- } else
2044
- t.push(e[n]);
2045
- n++;
2046
- }
2047
- return t;
2048
- }
2049
- var td = /[\(\)\[\]\?\:\|]/, nd = new RegExp(
2050
- // any of:
2051
- "(\\||\\(\\?\\:|\\)|\\[|\\])"
2052
- );
2053
- function oe(e) {
2054
- return e.length === 1 ? e[0] : e;
2055
- }
2056
- function Xe(e, t) {
2057
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2058
- if (n) return (n = n.call(e)).next.bind(n);
2059
- if (Array.isArray(e) || (n = rd(e)) || t) {
2060
- n && (e = n);
2061
- var r = 0;
2062
- return function() {
2063
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
2064
- };
2065
- }
2066
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2067
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2068
- }
2069
- function rd(e, t) {
2070
- if (e) {
2071
- if (typeof e == "string") return Ze(e, t);
2072
- var n = {}.toString.call(e).slice(8, -1);
2073
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ze(e, t) : void 0;
2074
- }
2075
- }
2076
- function Ze(e, t) {
2077
- (t == null || t > e.length) && (t = e.length);
2078
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2079
- return r;
2080
- }
2081
- function G(e) {
2082
- "@babel/helpers - typeof";
2083
- return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2084
- return typeof t;
2085
- } : function(t) {
2086
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2087
- }, G(e);
2088
- }
2089
- function dd(e, t) {
2090
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2091
- }
2092
- function id(e, t) {
2093
- for (var n = 0; n < t.length; n++) {
2094
- var r = t[n];
2095
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, od(r.key), r);
2096
- }
2097
- }
2098
- function ad(e, t, n) {
2099
- return t && id(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2100
- }
2101
- function od(e) {
2102
- var t = $d(e, "string");
2103
- return G(t) == "symbol" ? t : t + "";
2104
- }
2105
- function $d(e, t) {
2106
- if (G(e) != "object" || !e) return e;
2107
- var n = e[Symbol.toPrimitive];
2108
- if (n !== void 0) {
2109
- var r = n.call(e, t);
2110
- if (G(r) != "object") return r;
2111
- throw new TypeError("@@toPrimitive must return a primitive value.");
2112
- }
2113
- return String(e);
2114
- }
2115
- var ud = /* @__PURE__ */ (function() {
2116
- function e(t) {
2117
- dd(this, e), this.matchTree = new qr().parse(t);
2118
- }
2119
- return ad(e, [{
2120
- key: "match",
2121
- value: function(n) {
2122
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = r.allowOverflow;
2123
- if (!n)
2124
- throw new Error("String is required");
2125
- var i = he(n.split(""), this.matchTree, !0);
2126
- if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2127
- return i;
2128
- }
2129
- }]);
2130
- })();
2131
- function he(e, t, n) {
2132
- if (typeof t == "string") {
2133
- var r = e.join("");
2134
- return t.indexOf(r) === 0 ? e.length === t.length ? {
2135
- match: !0,
2136
- matchedChars: e
2137
- } : {
2138
- partialMatch: !0
2139
- // matchedChars: characters
2140
- } : r.indexOf(t) === 0 ? n && e.length > t.length ? {
2141
- overflow: !0
2142
- } : {
2143
- match: !0,
2144
- matchedChars: e.slice(0, t.length)
2145
- } : void 0;
2146
- }
2147
- if (Array.isArray(t)) {
2148
- for (var d = e.slice(), i = 0; i < t.length; ) {
2149
- var a = t[i], o = he(d, a, n && i === t.length - 1);
2150
- if (o) {
2151
- if (o.overflow)
2152
- return o;
2153
- if (o.match) {
2154
- if (d = d.slice(o.matchedChars.length), d.length === 0)
2155
- return i === t.length - 1 ? {
2156
- match: !0,
2157
- matchedChars: e
2158
- } : {
2159
- partialMatch: !0
2160
- // matchedChars: characters
2161
- };
2162
- } else {
2163
- if (o.partialMatch)
2164
- return {
2165
- partialMatch: !0
2166
- // matchedChars: characters
2167
- };
2168
- throw new Error(`Unsupported match result:
2169
- `.concat(JSON.stringify(o, null, 2)));
2170
- }
2171
- } else return;
2172
- i++;
2173
- }
2174
- return n ? {
2175
- overflow: !0
2176
- } : {
2177
- match: !0,
2178
- matchedChars: e.slice(0, e.length - d.length)
2179
- };
2180
- }
2181
- switch (t.op) {
2182
- case "|":
2183
- for (var $, u = Xe(t.args), l; !(l = u()).done; ) {
2184
- var c = l.value, f = he(e, c, n);
2185
- if (f) {
2186
- if (f.overflow)
2187
- return f;
2188
- if (f.match)
2189
- return {
2190
- match: !0,
2191
- matchedChars: f.matchedChars
2192
- };
2193
- if (f.partialMatch)
2194
- $ = !0;
2195
- else
2196
- throw new Error(`Unsupported match result:
2197
- `.concat(JSON.stringify(f, null, 2)));
2198
- }
2199
- }
2200
- return $ ? {
2201
- partialMatch: !0
2202
- // matchedChars: ...
2203
- } : void 0;
2204
- case "[]":
2205
- for (var h = Xe(t.args), y; !(y = h()).done; ) {
2206
- var N = y.value;
2207
- if (e[0] === N)
2208
- return e.length === 1 ? {
2209
- match: !0,
2210
- matchedChars: e
2211
- } : n ? {
2212
- overflow: !0
2213
- } : {
2214
- match: !0,
2215
- matchedChars: [N]
2216
- };
2217
- }
2218
- return;
2219
- /* istanbul ignore next */
2220
- default:
2221
- throw new Error("Unsupported instruction tree: ".concat(t));
2222
- }
2223
- }
2224
- function B(e) {
2225
- "@babel/helpers - typeof";
2226
- return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2227
- return typeof t;
2228
- } : function(t) {
2229
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2230
- }, B(e);
2231
- }
2232
- function Je(e, t) {
2233
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2234
- if (n) return (n = n.call(e)).next.bind(n);
2235
- if (Array.isArray(e) || (n = ld(e)) || t) {
2236
- n && (e = n);
2237
- var r = 0;
2238
- return function() {
2239
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
2240
- };
2241
- }
2242
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2243
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2244
- }
2245
- function ld(e, t) {
2246
- if (e) {
2247
- if (typeof e == "string") return Qe(e, t);
2248
- var n = {}.toString.call(e).slice(8, -1);
2249
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Qe(e, t) : void 0;
2250
- }
2251
- }
2252
- function Qe(e, t) {
2253
- (t == null || t > e.length) && (t = e.length);
2254
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2255
- return r;
2256
- }
2257
- function sd(e, t) {
2258
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2259
- }
2260
- function fd(e, t) {
2261
- for (var n = 0; n < t.length; n++) {
2262
- var r = t[n];
2263
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, md(r.key), r);
2264
- }
2265
- }
2266
- function cd(e, t, n) {
2267
- return t && fd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2268
- }
2269
- function md(e) {
2270
- var t = hd(e, "string");
2271
- return B(t) == "symbol" ? t : t + "";
2272
- }
2273
- function hd(e, t) {
2274
- if (B(e) != "object" || !e) return e;
2275
- var n = e[Symbol.toPrimitive];
2276
- if (n !== void 0) {
2277
- var r = n.call(e, t);
2278
- if (B(r) != "object") return r;
2279
- throw new TypeError("@@toPrimitive must return a primitive value.");
2280
- }
2281
- return String(e);
2282
- }
2283
- var ge = "9", gd = 15, yd = V(ge, gd), pd = /[- ]/, vd = function() {
2284
- return /\[([^\[\]])*\]/g;
2285
- }, bd = function() {
2286
- return /\d(?=[^,}][^,}])/g;
2287
- }, Nd = new RegExp("[" + S + "]*\\$1[" + S + "]*(\\$\\d[" + S + "]*)*$"), ze = 3, Cd = /* @__PURE__ */ (function() {
2288
- function e(t) {
2289
- t.state;
2290
- var n = t.metadata;
2291
- sd(this, e), this.metadata = n, this.resetFormat();
2292
- }
2293
- return cd(e, [{
2294
- key: "resetFormat",
2295
- value: function() {
2296
- this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2297
- }
2298
- }, {
2299
- key: "reset",
2300
- value: function(n, r) {
2301
- this.resetFormat(), n ? (this.isNANP = n.callingCode() === "1", this.matchingFormats = n.formats(), r.nationalSignificantNumber && this.narrowDownMatchingFormats(r)) : (this.isNANP = void 0, this.matchingFormats = []);
2302
- }
2303
- /**
2304
- * Formats an updated phone number.
2305
- * @param {string} nextDigits — Additional phone number digits.
2306
- * @param {object} state — `AsYouType` state.
2307
- * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2308
- */
2309
- }, {
2310
- key: "format",
2311
- value: function(n, r) {
2312
- var d = this;
2313
- if (Vr(r.nationalSignificantNumber, r.country, this.metadata))
2314
- for (var i = Je(this.matchingFormats), a; !(a = i()).done; ) {
2315
- var o = a.value, $ = Wr(r, o, {
2316
- metadata: this.metadata,
2317
- shouldTryNationalPrefixFormattingRule: function(l) {
2318
- return d.shouldTryNationalPrefixFormattingRule(l, {
2319
- international: r.international,
2320
- nationalPrefix: r.nationalPrefix
2321
- });
2322
- },
2323
- getSeparatorAfterNationalPrefix: function(l) {
2324
- return d.getSeparatorAfterNationalPrefix(l);
2325
- }
2326
- });
2327
- if ($)
2328
- return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate($.replace(/\d/g, P), r), this.populatedNationalNumberTemplate = $, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(P), $;
2329
- }
2330
- return this.formatNationalNumberWithNextDigits(n, r);
2331
- }
2332
- // Formats the next phone number digits.
2333
- }, {
2334
- key: "formatNationalNumberWithNextDigits",
2335
- value: function(n, r) {
2336
- var d = this.chosenFormat, i = this.chooseFormat(r);
2337
- if (i)
2338
- return i === d ? this.formatNextNationalNumberDigits(n) : this.formatNextNationalNumberDigits(r.getNationalDigits());
2339
- }
2340
- }, {
2341
- key: "narrowDownMatchingFormats",
2342
- value: function(n) {
2343
- var r = this, d = n.nationalSignificantNumber, i = n.nationalPrefix, a = n.international, o = d, $ = o.length - ze;
2344
- $ < 0 && ($ = 0), this.matchingFormats = this.matchingFormats.filter(function(u) {
2345
- return r.formatSuits(u, a, i) && r.formatMatches(u, o, $);
2346
- }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2347
- }
2348
- }, {
2349
- key: "formatSuits",
2350
- value: function(n, r, d) {
2351
- return !(d && !n.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2352
- !n.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !r && !d && n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2353
- }
2354
- }, {
2355
- key: "formatMatches",
2356
- value: function(n, r, d) {
2357
- var i = n.leadingDigitsPatterns().length;
2358
- if (i === 0)
2359
- return !0;
2360
- d = Math.min(d, i - 1);
2361
- var a = n.leadingDigitsPatterns()[d];
2362
- if (r.length < ze)
2363
- try {
2364
- return new ud(a).match(r, {
2365
- allowOverflow: !0
2366
- }) !== void 0;
2367
- } catch (o) {
2368
- return console.error(o), !0;
2369
- }
2370
- return new RegExp("^(".concat(a, ")")).test(r);
2371
- }
2372
- }, {
2373
- key: "getFormatFormat",
2374
- value: function(n, r) {
2375
- return r ? n.internationalFormat() : n.format();
2376
- }
2377
- }, {
2378
- key: "chooseFormat",
2379
- value: function(n) {
2380
- for (var r = this, d = function() {
2381
- var u = o.value;
2382
- return r.chosenFormat === u ? 0 : Nd.test(r.getFormatFormat(u, n.international)) ? r.createTemplateForFormat(u, n) ? (r.chosenFormat = u, 0) : (r.matchingFormats = r.matchingFormats.filter(function(l) {
2383
- return l !== u;
2384
- }), 1) : 1;
2385
- }, i, a = Je(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
2386
- ;
2387
- return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2388
- }
2389
- }, {
2390
- key: "createTemplateForFormat",
2391
- value: function(n, r) {
2392
- if (!(n.pattern().indexOf("|") >= 0)) {
2393
- var d = this.getTemplateForFormat(n, r);
2394
- if (d)
2395
- return this.setNationalNumberTemplate(d, r), !0;
2396
- }
2397
- }
2398
- }, {
2399
- key: "getSeparatorAfterNationalPrefix",
2400
- value: function(n) {
2401
- return this.isNANP || n && n.nationalPrefixFormattingRule() && pd.test(n.nationalPrefixFormattingRule()) ? " " : "";
2402
- }
2403
- }, {
2404
- key: "getInternationalPrefixBeforeCountryCallingCode",
2405
- value: function(n, r) {
2406
- var d = n.IDDPrefix, i = n.missingPlus;
2407
- return d ? r && r.spacing === !1 ? d : d + " " : i ? "" : "+";
2408
- }
2409
- }, {
2410
- key: "getTemplate",
2411
- value: function(n) {
2412
- if (this.template) {
2413
- for (var r = -1, d = 0, i = n.international ? this.getInternationalPrefixBeforeCountryCallingCode(n, {
2414
- spacing: !1
2415
- }) : ""; d < i.length + n.getDigitsWithoutInternationalPrefix().length; )
2416
- r = this.template.indexOf(P, r + 1), d++;
2417
- return Ke(this.template, r + 1);
2418
- }
2419
- }
2420
- }, {
2421
- key: "setNationalNumberTemplate",
2422
- value: function(n, r) {
2423
- this.nationalNumberTemplate = n, this.populatedNationalNumberTemplate = n, this.populatedNationalNumberTemplatePosition = -1, r.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g, P) + V(P, r.callingCode.length) + " " + n : this.template = n;
2424
- }
2425
- /**
2426
- * Generates formatting template for a national phone number,
2427
- * optionally containing a national prefix, for a format.
2428
- * @param {Format} format
2429
- * @param {string} nationalPrefix
2430
- * @return {string}
2431
- */
2432
- }, {
2433
- key: "getTemplateForFormat",
2434
- value: function(n, r) {
2435
- var d = r.nationalSignificantNumber, i = r.international, a = r.nationalPrefix, o = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, $ = n.pattern();
2436
- $ = $.replace(vd(), "\\d").replace(bd(), "\\d");
2437
- var u = yd.match($)[0];
2438
- if (!(d.length > u.length)) {
2439
- var l = new RegExp("^" + $ + "$"), c = d.replace(/\d/g, ge);
2440
- l.test(c) && (u = c);
2441
- var f = this.getFormatFormat(n, i), h;
2442
- if (this.shouldTryNationalPrefixFormattingRule(n, {
2443
- international: i,
2444
- nationalPrefix: a
2445
- })) {
2446
- var y = f.replace(ft, n.nationalPrefixFormattingRule());
2447
- if (X(n.nationalPrefixFormattingRule()) === (a || "") + X("$1") && (f = y, h = !0, a))
2448
- for (var N = a.length; N > 0; )
2449
- f = f.replace(/\d/, P), N--;
2450
- }
2451
- var b = u.replace(new RegExp($), f).replace(new RegExp(ge, "g"), P);
2452
- return h || (o ? b = V(P, o.length) + " " + b : a && (b = V(P, a.length) + this.getSeparatorAfterNationalPrefix(n) + b)), i && (b = st(b)), b;
2453
- }
2454
- }
2455
- }, {
2456
- key: "formatNextNationalNumberDigits",
2457
- value: function(n) {
2458
- var r = Hr(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, n);
2459
- if (!r) {
2460
- this.resetFormat();
2461
- return;
2462
- }
2463
- return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1], Ke(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2464
- }
2465
- }, {
2466
- key: "shouldTryNationalPrefixFormattingRule",
2467
- value: function(n, r) {
2468
- var d = r.international, i = r.nationalPrefix;
2469
- if (n.nationalPrefixFormattingRule()) {
2470
- var a = n.usesNationalPrefix();
2471
- if (a && i || !a && !d)
2472
- return !0;
2473
- }
2474
- }
2475
- }]);
2476
- })();
2477
- function U(e) {
2478
- "@babel/helpers - typeof";
2479
- return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2480
- return typeof t;
2481
- } : function(t) {
2482
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2483
- }, U(e);
2484
- }
2485
- function vt(e, t) {
2486
- return Ed(e) || Id(e, t) || Sd(e, t) || Pd();
2487
- }
2488
- function Pd() {
2489
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2490
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2491
- }
2492
- function Sd(e, t) {
2493
- if (e) {
2494
- if (typeof e == "string") return qe(e, t);
2495
- var n = {}.toString.call(e).slice(8, -1);
2496
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? qe(e, t) : void 0;
2497
- }
2498
- }
2499
- function qe(e, t) {
2500
- (t == null || t > e.length) && (t = e.length);
2501
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2502
- return r;
2503
- }
2504
- function Id(e, t) {
2505
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2506
- if (n != null) {
2507
- var r, d, i, a, o = [], $ = !0, u = !1;
2508
- try {
2509
- if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
2510
- } catch (l) {
2511
- u = !0, d = l;
2512
- } finally {
2513
- try {
2514
- if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
2515
- } finally {
2516
- if (u) throw d;
2517
- }
2518
- }
2519
- return o;
2520
- }
2521
- }
2522
- function Ed(e) {
2523
- if (Array.isArray(e)) return e;
2524
- }
2525
- function xd(e, t) {
2526
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2527
- }
2528
- function Td(e, t) {
2529
- for (var n = 0; n < t.length; n++) {
2530
- var r = t[n];
2531
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Fd(r.key), r);
2532
- }
2533
- }
2534
- function Ad(e, t, n) {
2535
- return t && Td(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2536
- }
2537
- function Fd(e) {
2538
- var t = _d(e, "string");
2539
- return U(t) == "symbol" ? t : t + "";
2540
- }
2541
- function _d(e, t) {
2542
- if (U(e) != "object" || !e) return e;
2543
- var n = e[Symbol.toPrimitive];
2544
- if (n !== void 0) {
2545
- var r = n.call(e, t);
2546
- if (U(r) != "object") return r;
2547
- throw new TypeError("@@toPrimitive must return a primitive value.");
2548
- }
2549
- return String(e);
2550
- }
2551
- var wd = "[" + S + v + "]+", Od = new RegExp("^" + wd + "$", "i"), Rd = "(?:[" + q + "][" + S + v + "]*|[" + S + v + "]+)", Dd = new RegExp("[^" + S + v + "]+.*$"), jd = /[^\d\[\]]/, Ld = /* @__PURE__ */ (function() {
2552
- function e(t) {
2553
- var n = t.defaultCountry, r = t.defaultCallingCode, d = t.metadata, i = t.onNationalSignificantNumberChange;
2554
- xd(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = d, this.onNationalSignificantNumberChange = i;
2555
- }
2556
- return Ad(e, [{
2557
- key: "input",
2558
- value: function(n, r) {
2559
- var d = Gd(n), i = vt(d, 2), a = i[0], o = i[1], $ = X(a), u;
2560
- return o && (r.digits || (r.startInternationalNumber(void 0, void 0), $ || (u = !0))), $ && this.inputDigits($, r), {
2561
- digits: $,
2562
- justLeadingPlus: u
2563
- };
2564
- }
2565
- /**
2566
- * Inputs "next" phone number digits.
2567
- * @param {string} digits
2568
- * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
2569
- */
2570
- }, {
2571
- key: "inputDigits",
2572
- value: function(n, r) {
2573
- var d = r.digits, i = d.length < 3 && d.length + n.length >= 3;
2574
- if (r.appendDigits(n), i && this.extractIddPrefix(r), this.isWaitingForCountryCallingCode(r)) {
2575
- if (!this.extractCountryCallingCode(r))
2576
- return;
2577
- } else
2578
- r.appendNationalSignificantNumberDigits(n);
2579
- r.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(r.getNationalDigits(), function(a) {
2580
- return r.update(a);
2581
- });
2582
- }
2583
- }, {
2584
- key: "isWaitingForCountryCallingCode",
2585
- value: function(n) {
2586
- var r = n.international, d = n.callingCode;
2587
- return r && !d;
2588
- }
2589
- // Extracts a country calling code from a number
2590
- // being entered in internatonal format.
2591
- }, {
2592
- key: "extractCountryCallingCode",
2593
- value: function(n) {
2594
- var r = be("+" + n.getDigitsWithoutInternationalPrefix(), n.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode, i = r.number;
2595
- if (d)
2596
- return n.setCallingCode(d), n.update({
2597
- nationalSignificantNumber: i
2598
- }), !0;
2599
- }
2600
- }, {
2601
- key: "reset",
2602
- value: function(n) {
2603
- if (n) {
2604
- this.hasSelectedNumberingPlan = !0;
2605
- var r = n._nationalPrefixForParsing();
2606
- this.couldPossiblyExtractAnotherNationalSignificantNumber = r && jd.test(r);
2607
- } else
2608
- this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2609
- }
2610
- /**
2611
- * Extracts a national (significant) number from user input.
2612
- * Google's library is different in that it only applies `national_prefix_for_parsing`
2613
- * and doesn't apply `national_prefix_transform_rule` after that.
2614
- * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2615
- * @return {boolean} [extracted]
2616
- */
2617
- }, {
2618
- key: "extractNationalSignificantNumber",
2619
- value: function(n, r) {
2620
- if (this.hasSelectedNumberingPlan) {
2621
- var d = ue(n, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2622
- if (a !== n)
2623
- return this.onExtractedNationalNumber(i, o, a, n, r), !0;
2624
- }
2625
- }
2626
- /**
2627
- * In Google's code this function is called "attempt to extract longer NDD".
2628
- * "Some national prefixes are a substring of others", they say.
2629
- * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2630
- */
2631
- }, {
2632
- key: "extractAnotherNationalSignificantNumber",
2633
- value: function(n, r, d) {
2634
- if (!this.hasExtractedNationalSignificantNumber)
2635
- return this.extractNationalSignificantNumber(n, d);
2636
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2637
- var i = ue(n, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, $ = i.carrierCode;
2638
- if (o !== r)
2639
- return this.onExtractedNationalNumber(a, $, o, n, d), !0;
2640
- }
2641
- }
2642
- }, {
2643
- key: "onExtractedNationalNumber",
2644
- value: function(n, r, d, i, a) {
2645
- var o = !1, $, u = i.lastIndexOf(d);
2646
- if (u < 0 || u !== i.length - d.length)
2647
- o = !0;
2648
- else {
2649
- var l = i.slice(0, u);
2650
- l && l !== n && ($ = l);
2651
- }
2652
- a({
2653
- nationalPrefix: n,
2654
- carrierCode: r,
2655
- nationalSignificantNumber: d,
2656
- nationalSignificantNumberIsModified: o,
2657
- prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: $
2658
- }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2659
- }
2660
- }, {
2661
- key: "reExtractNationalSignificantNumber",
2662
- value: function(n) {
2663
- if (this.extractAnotherNationalSignificantNumber(n.getNationalDigits(), n.nationalSignificantNumber, function(r) {
2664
- return n.update(r);
2665
- }))
2666
- return !0;
2667
- if (this.extractIddPrefix(n))
2668
- return this.extractCallingCodeAndNationalSignificantNumber(n), !0;
2669
- if (this.fixMissingPlus(n))
2670
- return this.extractCallingCodeAndNationalSignificantNumber(n), !0;
2671
- }
2672
- }, {
2673
- key: "extractIddPrefix",
2674
- value: function(n) {
2675
- var r = n.international, d = n.IDDPrefix, i = n.digits;
2676
- if (n.nationalSignificantNumber, !(r || d)) {
2677
- var a = $t(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2678
- if (a !== void 0 && a !== i)
2679
- return n.update({
2680
- IDDPrefix: i.slice(0, i.length - a.length)
2681
- }), this.startInternationalNumber(n, {
2682
- country: void 0,
2683
- callingCode: void 0
2684
- }), !0;
2685
- }
2686
- }
2687
- }, {
2688
- key: "fixMissingPlus",
2689
- value: function(n) {
2690
- if (!n.international) {
2691
- var r = lt(n.digits, n.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode;
2692
- if (d)
2693
- return n.update({
2694
- missingPlus: !0
2695
- }), this.startInternationalNumber(n, {
2696
- country: n.country,
2697
- callingCode: d
2698
- }), !0;
2699
- }
2700
- }
2701
- }, {
2702
- key: "startInternationalNumber",
2703
- value: function(n, r) {
2704
- var d = r.country, i = r.callingCode;
2705
- n.startInternationalNumber(d, i), n.nationalSignificantNumber && (n.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2706
- }
2707
- }, {
2708
- key: "extractCallingCodeAndNationalSignificantNumber",
2709
- value: function(n) {
2710
- this.extractCountryCallingCode(n) && this.extractNationalSignificantNumber(n.getNationalDigits(), function(r) {
2711
- return n.update(r);
2712
- });
2713
- }
2714
- }]);
2715
- })();
2716
- function Md(e) {
2717
- var t = e.search(Rd);
2718
- if (!(t < 0)) {
2719
- e = e.slice(t);
2720
- var n;
2721
- return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(Dd, ""), n && (e = "+" + e), e;
2722
- }
2723
- }
2724
- function kd(e) {
2725
- var t = Md(e) || "";
2726
- return t[0] === "+" ? [t.slice(1), !0] : [t];
2727
- }
2728
- function Gd(e) {
2729
- var t = kd(e), n = vt(t, 2), r = n[0], d = n[1];
2730
- return Od.test(r) || (r = ""), [r, d];
2731
- }
2732
- function H(e) {
2733
- "@babel/helpers - typeof";
2734
- return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2735
- return typeof t;
2736
- } : function(t) {
2737
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2738
- }, H(e);
2739
- }
2740
- function Bd(e, t) {
2741
- return Vd(e) || Wd(e, t) || Hd(e, t) || Ud();
2742
- }
2743
- function Ud() {
2744
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2745
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2746
- }
2747
- function Hd(e, t) {
2748
- if (e) {
2749
- if (typeof e == "string") return et(e, t);
2750
- var n = {}.toString.call(e).slice(8, -1);
2751
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? et(e, t) : void 0;
2752
- }
2753
- }
2754
- function et(e, t) {
2755
- (t == null || t > e.length) && (t = e.length);
2756
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2757
- return r;
2758
- }
2759
- function Wd(e, t) {
2760
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2761
- if (n != null) {
2762
- var r, d, i, a, o = [], $ = !0, u = !1;
2763
- try {
2764
- if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
2765
- } catch (l) {
2766
- u = !0, d = l;
2767
- } finally {
2768
- try {
2769
- if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
2770
- } finally {
2771
- if (u) throw d;
2772
- }
2773
- }
2774
- return o;
2775
- }
2776
- }
2777
- function Vd(e) {
2778
- if (Array.isArray(e)) return e;
2779
- }
2780
- function Kd(e, t) {
2781
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2782
- }
2783
- function Yd(e, t) {
2784
- for (var n = 0; n < t.length; n++) {
2785
- var r = t[n];
2786
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Zd(r.key), r);
2787
- }
2788
- }
2789
- function Xd(e, t, n) {
2790
- return t && Yd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2791
- }
2792
- function Zd(e) {
2793
- var t = Jd(e, "string");
2794
- return H(t) == "symbol" ? t : t + "";
2795
- }
2796
- function Jd(e, t) {
2797
- if (H(e) != "object" || !e) return e;
2798
- var n = e[Symbol.toPrimitive];
2799
- if (n !== void 0) {
2800
- var r = n.call(e, t);
2801
- if (H(r) != "object") return r;
2802
- throw new TypeError("@@toPrimitive must return a primitive value.");
2803
- }
2804
- return String(e);
2805
- }
2806
- var bt = /* @__PURE__ */ (function() {
2807
- function e(t, n) {
2808
- Kd(this, e), this.metadata = new g(n);
2809
- var r = this.getCountryAndCallingCode(t), d = Bd(r, 2), i = d[0], a = d[1];
2810
- this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2811
- }
2812
- return Xd(e, [{
2813
- key: "getCountryAndCallingCode",
2814
- value: function(n) {
2815
- var r, d;
2816
- return n && (x(n) ? (r = n.defaultCountry, d = n.defaultCallingCode) : r = n), r && !this.metadata.hasCountry(r) && (r = void 0), [r, d];
2817
- }
2818
- /**
2819
- * Inputs "next" phone number characters.
2820
- * @param {string} text
2821
- * @return {string} Formatted phone number characters that have been input so far.
2822
- */
2823
- }, {
2824
- key: "input",
2825
- value: function(n) {
2826
- var r = this.parser.input(n, this.state), d = r.digits, i = r.justLeadingPlus;
2827
- if (i)
2828
- this.formattedOutput = "+";
2829
- else if (d) {
2830
- this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2831
- var a;
2832
- if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2833
- this.determineTheCountryIfNeeded();
2834
- var o = this.state.getNationalDigits();
2835
- o && (a = this.formatter.format(o, this.state));
2836
- }
2837
- this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2838
- }
2839
- return this.formattedOutput;
2840
- }
2841
- }, {
2842
- key: "reset",
2843
- value: function() {
2844
- var n = this;
2845
- return this.state = new kr({
2846
- onCountryChange: function(d) {
2847
- n.country = d;
2848
- },
2849
- onCallingCodeChange: function(d, i) {
2850
- n.metadata.selectNumberingPlan(i, d), n.formatter.reset(n.metadata.numberingPlan, n.state), n.parser.reset(n.metadata.numberingPlan);
2851
- }
2852
- }), this.formatter = new Cd({
2853
- state: this.state,
2854
- metadata: this.metadata
2855
- }), this.parser = new Ld({
2856
- defaultCountry: this.defaultCountry,
2857
- defaultCallingCode: this.defaultCallingCode,
2858
- metadata: this.metadata,
2859
- state: this.state,
2860
- onNationalSignificantNumberChange: function() {
2861
- n.determineTheCountryIfNeeded(), n.formatter.reset(n.metadata.numberingPlan, n.state);
2862
- }
2863
- }), this.state.reset({
2864
- country: this.defaultCountry,
2865
- callingCode: this.defaultCallingCode
2866
- }), this.formattedOutput = "", this;
2867
- }
2868
- /**
2869
- * Returns `true` if the phone number is being input in international format.
2870
- * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
2871
- * @return {boolean}
2872
- */
2873
- }, {
2874
- key: "isInternational",
2875
- value: function() {
2876
- return this.state.international;
2877
- }
2878
- /**
2879
- * Returns the "calling code" part of the phone number when it's being input
2880
- * in an international format.
2881
- * If no valid calling code has been entered so far, returns `undefined`.
2882
- * @return {string} [callingCode]
2883
- */
2884
- }, {
2885
- key: "getCallingCode",
2886
- value: function() {
2887
- if (this.isInternational())
2888
- return this.state.callingCode;
2889
- }
2890
- // A legacy alias.
2891
- }, {
2892
- key: "getCountryCallingCode",
2893
- value: function() {
2894
- return this.getCallingCode();
2895
- }
2896
- /**
2897
- * Returns a two-letter country code of the phone number.
2898
- * Returns `undefined` for "non-geographic" phone numbering plans.
2899
- * Returns `undefined` if no phone number has been input yet.
2900
- * @return {string} [country]
2901
- */
2902
- }, {
2903
- key: "getCountry",
2904
- value: function() {
2905
- var n = this.state.digits;
2906
- if (n)
2907
- return this._getCountry();
2908
- }
2909
- /**
2910
- * Returns a two-letter country code of the phone number.
2911
- * Returns `undefined` for "non-geographic" phone numbering plans.
2912
- * @return {string} [country]
2913
- */
2914
- }, {
2915
- key: "_getCountry",
2916
- value: function() {
2917
- var n = this.state.country;
2918
- return n;
2919
- }
2920
- }, {
2921
- key: "determineTheCountryIfNeeded",
2922
- value: function() {
2923
- (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
2924
- }
2925
- // Prepends `+CountryCode ` in case of an international phone number
2926
- }, {
2927
- key: "getFullNumber",
2928
- value: function(n) {
2929
- var r = this;
2930
- if (this.isInternational()) {
2931
- var d = function(o) {
2932
- return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state, {
2933
- spacing: !!o
2934
- }) + o;
2935
- }, i = this.state.callingCode;
2936
- return d(i ? n ? "".concat(i, " ").concat(n) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
2937
- }
2938
- return n;
2939
- }
2940
- }, {
2941
- key: "getNonFormattedNationalNumberWithPrefix",
2942
- value: function() {
2943
- var n = this.state, r = n.nationalSignificantNumber, d = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, i = n.nationalPrefix, a = r, o = d || i;
2944
- return o && (a = o + a), a;
2945
- }
2946
- }, {
2947
- key: "getNonFormattedNumber",
2948
- value: function() {
2949
- var n = this.state.nationalSignificantNumberIsModified;
2950
- return this.getFullNumber(n ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
2951
- }
2952
- }, {
2953
- key: "getNonFormattedTemplate",
2954
- value: function() {
2955
- var n = this.getNonFormattedNumber();
2956
- if (n)
2957
- return n.replace(/[\+\d]/g, P);
2958
- }
2959
- }, {
2960
- key: "isCountryCallingCodeAmbiguous",
2961
- value: function() {
2962
- var n = this.state.callingCode, r = this.metadata.getCountryCodesForCallingCode(n);
2963
- return r && r.length > 1;
2964
- }
2965
- // Determines the exact country of the phone number
2966
- // entered so far based on the country phone code
2967
- // and the national phone number.
2968
- }, {
2969
- key: "determineTheCountry",
2970
- value: function() {
2971
- this.state.setCountry(ve(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
2972
- nationalNumber: this.state.nationalSignificantNumber,
2973
- metadata: this.metadata
2974
- }));
2975
- }
2976
- /**
2977
- * Returns a E.164 phone number value for the user's input.
2978
- *
2979
- * For example, for country `"US"` and input `"(222) 333-4444"`
2980
- * it will return `"+12223334444"`.
2981
- *
2982
- * For international phone number input, it will also auto-correct
2983
- * some minor errors such as using a national prefix when writing
2984
- * an international phone number. For example, if the user inputs
2985
- * `"+44 0 7400 000000"` then it will return an auto-corrected
2986
- * `"+447400000000"` phone number value.
2987
- *
2988
- * Will return `undefined` if no digits have been input,
2989
- * or when inputting a phone number in national format and no
2990
- * default country or default "country calling code" have been set.
2991
- *
2992
- * @return {string} [value]
2993
- */
2994
- }, {
2995
- key: "getNumberValue",
2996
- value: function() {
2997
- var n = this.state, r = n.digits, d = n.callingCode, i = n.country, a = n.nationalSignificantNumber;
2998
- if (r) {
2999
- if (this.isInternational())
3000
- return d ? "+" + d + a : "+" + r;
3001
- if (i || d) {
3002
- var o = i ? this.metadata.countryCallingCode() : d;
3003
- return "+" + o + a;
3004
- }
3005
- }
3006
- }
3007
- /**
3008
- * Returns an instance of `PhoneNumber` class.
3009
- * Will return `undefined` if no national (significant) number
3010
- * digits have been entered so far, or if no `defaultCountry` has been
3011
- * set and the user enters a phone number not in international format.
3012
- */
3013
- }, {
3014
- key: "getNumber",
3015
- value: function() {
3016
- var n = this.state, r = n.nationalSignificantNumber, d = n.carrierCode, i = n.callingCode, a = this._getCountry();
3017
- if (r && !(!a && !i)) {
3018
- if (a && a === this.defaultCountry) {
3019
- var o = new g(this.metadata.metadata);
3020
- o.selectNumberingPlan(a);
3021
- var $ = o.numberingPlan.callingCode(), u = this.metadata.getCountryCodesForCallingCode($);
3022
- if (u.length > 1) {
3023
- var l = ut(r, {
3024
- countries: u,
3025
- metadata: this.metadata.metadata
3026
- });
3027
- l && (a = l);
3028
- }
3029
- }
3030
- var c = new gt(a || i, r, this.metadata.metadata);
3031
- return d && (c.carrierCode = d), c;
3032
- }
3033
- }
3034
- /**
3035
- * Returns `true` if the phone number is "possible".
3036
- * Is just a shortcut for `PhoneNumber.isPossible()`.
3037
- * @return {boolean}
3038
- */
3039
- }, {
3040
- key: "isPossible",
3041
- value: function() {
3042
- var n = this.getNumber();
3043
- return n ? n.isPossible() : !1;
3044
- }
3045
- /**
3046
- * Returns `true` if the phone number is "valid".
3047
- * Is just a shortcut for `PhoneNumber.isValid()`.
3048
- * @return {boolean}
3049
- */
3050
- }, {
3051
- key: "isValid",
3052
- value: function() {
3053
- var n = this.getNumber();
3054
- return n ? n.isValid() : !1;
3055
- }
3056
- /**
3057
- * @deprecated
3058
- * This method is used in `react-phone-number-input/source/input-control.js`
3059
- * in versions before `3.0.16`.
3060
- */
3061
- }, {
3062
- key: "getNationalNumber",
3063
- value: function() {
3064
- return this.state.nationalSignificantNumber;
3065
- }
3066
- /**
3067
- * Returns the phone number characters entered by the user.
3068
- * @return {string}
3069
- */
3070
- }, {
3071
- key: "getChars",
3072
- value: function() {
3073
- return (this.state.international ? "+" : "") + this.state.digits;
3074
- }
3075
- /**
3076
- * Returns the template for the formatted phone number.
3077
- * @return {string}
3078
- */
3079
- }, {
3080
- key: "getTemplate",
3081
- value: function() {
3082
- return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
3083
- }
3084
- }]);
3085
- })();
3086
- function tt() {
3087
- return dt(Or, arguments);
3088
- }
3089
- function W(e) {
3090
- return bt.call(this, e, rt);
3091
- }
3092
- W.prototype = Object.create(bt.prototype, {});
3093
- W.prototype.constructor = W;
3094
- function Qd() {
3095
- return dt(Q, arguments);
3096
- }
3097
- const zd = {
3098
- MX: { emoji: "🇲🇽", name: "Mexico" },
3099
- US: { emoji: "🇺🇸", name: "United States" },
3100
- CA: { emoji: "🇨🇦", name: "Canada" },
3101
- GB: { emoji: "🇬🇧", name: "United Kingdom" },
3102
- DE: { emoji: "🇩🇪", name: "Germany" },
3103
- FR: { emoji: "🇫🇷", name: "France" },
3104
- ES: { emoji: "🇪🇸", name: "Spain" },
3105
- IT: { emoji: "🇮🇹", name: "Italy" },
3106
- BR: { emoji: "🇧🇷", name: "Brazil" },
3107
- AR: { emoji: "🇦🇷", name: "Argentina" },
3108
- CO: { emoji: "🇨🇴", name: "Colombia" },
3109
- CL: { emoji: "🇨🇱", name: "Chile" },
3110
- PE: { emoji: "🇵🇪", name: "Peru" },
3111
- AU: { emoji: "🇦🇺", name: "Australia" },
3112
- NZ: { emoji: "🇳🇿", name: "New Zealand" },
3113
- JP: { emoji: "🇯🇵", name: "Japan" },
3114
- KR: { emoji: "🇰🇷", name: "South Korea" },
3115
- CN: { emoji: "🇨🇳", name: "China" },
3116
- IN: { emoji: "🇮🇳", name: "India" },
3117
- RU: { emoji: "🇷🇺", name: "Russia" },
3118
- ZA: { emoji: "🇿🇦", name: "South Africa" },
3119
- NG: { emoji: "🇳🇬", name: "Nigeria" },
3120
- EG: { emoji: "🇪🇬", name: "Egypt" },
3121
- AE: { emoji: "🇦🇪", name: "United Arab Emirates" },
3122
- SA: { emoji: "🇸🇦", name: "Saudi Arabia" },
3123
- IL: { emoji: "🇮🇱", name: "Israel" },
3124
- TR: { emoji: "🇹🇷", name: "Turkey" },
3125
- NL: { emoji: "🇳🇱", name: "Netherlands" },
3126
- BE: { emoji: "🇧🇪", name: "Belgium" },
3127
- CH: { emoji: "🇨🇭", name: "Switzerland" },
3128
- AT: { emoji: "🇦🇹", name: "Austria" },
3129
- SE: { emoji: "🇸🇪", name: "Sweden" },
3130
- NO: { emoji: "🇳🇴", name: "Norway" },
3131
- DK: { emoji: "🇩🇰", name: "Denmark" },
3132
- FI: { emoji: "🇫🇮", name: "Finland" },
3133
- PL: { emoji: "🇵🇱", name: "Poland" },
3134
- PT: { emoji: "🇵🇹", name: "Portugal" },
3135
- IE: { emoji: "🇮🇪", name: "Ireland" },
3136
- GR: { emoji: "🇬🇷", name: "Greece" },
3137
- CZ: { emoji: "🇨🇿", name: "Czechia" },
3138
- HU: { emoji: "🇭🇺", name: "Hungary" },
3139
- RO: { emoji: "🇷🇴", name: "Romania" },
3140
- UA: { emoji: "🇺🇦", name: "Ukraine" },
3141
- PH: { emoji: "🇵🇭", name: "Philippines" },
3142
- ID: { emoji: "🇮🇩", name: "Indonesia" },
3143
- MY: { emoji: "🇲🇾", name: "Malaysia" },
3144
- SG: { emoji: "🇸🇬", name: "Singapore" },
3145
- TH: { emoji: "🇹🇭", name: "Thailand" },
3146
- VN: { emoji: "🇻🇳", name: "Vietnam" },
3147
- PK: { emoji: "🇵🇰", name: "Pakistan" },
3148
- BD: { emoji: "🇧🇩", name: "Bangladesh" },
3149
- HK: { emoji: "🇭🇰", name: "Hong Kong" },
3150
- TW: { emoji: "🇹🇼", name: "Taiwan" },
3151
- VE: { emoji: "🇻🇪", name: "Venezuela" },
3152
- EC: { emoji: "🇪🇨", name: "Ecuador" },
3153
- GT: { emoji: "🇬🇹", name: "Guatemala" },
3154
- CR: { emoji: "🇨🇷", name: "Costa Rica" },
3155
- PA: { emoji: "🇵🇦", name: "Panama" },
3156
- DO: { emoji: "🇩🇴", name: "Dominican Republic" },
3157
- PR: { emoji: "🇵🇷", name: "Puerto Rico" },
3158
- CU: { emoji: "🇨🇺", name: "Cuba" },
3159
- JM: { emoji: "🇯🇲", name: "Jamaica" },
3160
- HN: { emoji: "🇭🇳", name: "Honduras" },
3161
- SV: { emoji: "🇸🇻", name: "El Salvador" },
3162
- NI: { emoji: "🇳🇮", name: "Nicaragua" },
3163
- BO: { emoji: "🇧🇴", name: "Bolivia" },
3164
- PY: { emoji: "🇵🇾", name: "Paraguay" },
3165
- UY: { emoji: "🇺🇾", name: "Uruguay" },
3166
- KE: { emoji: "🇰🇪", name: "Kenya" },
3167
- GH: { emoji: "🇬🇭", name: "Ghana" },
3168
- MA: { emoji: "🇲🇦", name: "Morocco" },
3169
- TN: { emoji: "🇹🇳", name: "Tunisia" },
3170
- KW: { emoji: "🇰🇼", name: "Kuwait" },
3171
- QA: { emoji: "🇶🇦", name: "Qatar" },
3172
- BH: { emoji: "🇧🇭", name: "Bahrain" },
3173
- OM: { emoji: "🇴🇲", name: "Oman" },
3174
- JO: { emoji: "🇯🇴", name: "Jordan" },
3175
- LB: { emoji: "🇱🇧", name: "Lebanon" },
3176
- RS: { emoji: "🇷🇸", name: "Serbia" },
3177
- HR: { emoji: "🇭🇷", name: "Croatia" },
3178
- SK: { emoji: "🇸🇰", name: "Slovakia" },
3179
- SI: { emoji: "🇸🇮", name: "Slovenia" },
3180
- BG: { emoji: "🇧🇬", name: "Bulgaria" },
3181
- LT: { emoji: "🇱🇹", name: "Lithuania" },
3182
- LV: { emoji: "🇱🇻", name: "Latvia" },
3183
- EE: { emoji: "🇪🇪", name: "Estonia" },
3184
- IS: { emoji: "🇮🇸", name: "Iceland" },
3185
- LU: { emoji: "🇱🇺", name: "Luxembourg" },
3186
- MT: { emoji: "🇲🇹", name: "Malta" },
3187
- CY: { emoji: "🇨🇾", name: "Cyprus" }
3188
- };
3189
- function qd(e) {
3190
- try {
3191
- return `+${Qd(e)}`;
3192
- } catch {
3193
- return "";
3194
- }
3195
- }
3196
- const K = Object.entries(zd).map(([e, t]) => ({
3197
- code: e,
3198
- emoji: t.emoji,
3199
- name: t.name,
3200
- callingCode: qd(e)
3201
- })).filter((e) => e.callingCode !== "").sort((e, t) => e.name.localeCompare(t.name));
3202
- function nt(e) {
3203
- if (e)
3204
- return K.find(
3205
- (t) => t.code === e || t.code === e.toUpperCase()
3206
- );
3207
- }
3208
- const ei = ({
3209
- countryCode: e,
3210
- prefilledPhone: t,
3211
- phoneError: n,
3212
- optinEnabled: r = !1,
3213
- disabled: d = !1,
3214
- onPhoneChange: i,
3215
- onOptInChange: a
5
+ import { I as T, P as D } from "../incodeComponent-DSqGVqSo.js";
6
+ import { O as G } from "../otpInput-Bx16y6dR.js";
7
+ import { g as $, c as b, p as N, A as V } from "../countries-DDCxQhGs.js";
8
+ import { C as U } from "../chevronDown-CIyU9-x9.js";
9
+ const j = ({
10
+ countryCode: i,
11
+ prefilledPhone: d,
12
+ phoneError: u,
13
+ optinEnabled: e = !1,
14
+ disabled: s = !1,
15
+ onPhoneChange: p,
16
+ onOptInChange: y
3216
17
  }) => {
3217
- const [o, $] = _(
18
+ const [c, l] = P(
3218
19
  null
3219
- ), [u, l] = _(!1), [c, f] = _(""), [h, y] = _(!1), N = Et(null);
3220
- re(() => {
3221
- const m = nt(e);
3222
- $(m || K.find((p) => p.code === "US") || K[0]);
3223
- }, [e]), re(() => {
3224
- if (t && o) {
3225
- const m = t.startsWith("+") ? t : `+${t}`, p = tt(m);
3226
- if (p?.isValid()) {
3227
- if (p.country && p.country !== o.code) {
3228
- const T = nt(p.country);
3229
- T && $(T);
20
+ ), [r, I] = P(!1), [f, m] = P(""), [g, C] = P(!1), O = M(null);
21
+ w(() => {
22
+ const t = $(i);
23
+ l(t || b.find((o) => o.code === "US") || b[0]);
24
+ }, [i]), w(() => {
25
+ if (d && c) {
26
+ const t = d.startsWith("+") ? d : `+${d}`, o = N(t);
27
+ if (o?.isValid()) {
28
+ if (o.country && o.country !== c.code) {
29
+ const h = $(o.country);
30
+ h && l(h);
3230
31
  }
3231
- const ne = new W(p.country).input(p.nationalNumber);
3232
- f(ne), i(m, !0);
32
+ const v = new V(o.country).input(o.nationalNumber);
33
+ m(v), p(t, !0);
3233
34
  }
3234
35
  }
3235
- }, [t, o, i]), re(() => {
3236
- const m = (p) => {
3237
- N.current && !N.current.contains(p.target) && l(!1);
36
+ }, [d, c, p]), w(() => {
37
+ const t = (o) => {
38
+ O.current && !O.current.contains(o.target) && I(!1);
3238
39
  };
3239
- return u && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
3240
- }, [u]);
3241
- const b = (m, p) => {
3242
- const C = `${p.callingCode}${m.replace(/\D/g, "")}`;
40
+ return r && document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
41
+ }, [r]);
42
+ const E = (t, o) => {
43
+ const a = `${o.callingCode}${t.replace(/\D/g, "")}`;
3243
44
  try {
3244
- const T = tt(
3245
- C,
3246
- p.code
45
+ const h = N(
46
+ a,
47
+ o.code
3247
48
  )?.isValid() ?? !1;
3248
- i(C, T);
49
+ p(a, h);
3249
50
  } catch {
3250
- i(C, !1);
51
+ p(a, !1);
3251
52
  }
3252
- }, ee = (m) => {
3253
- const C = m.target.value;
3254
- if (o) {
3255
- const T = new W(o.code).input(C);
3256
- f(T), b(C, o);
53
+ }, x = (t) => {
54
+ const a = t.target.value;
55
+ if (c) {
56
+ const h = new V(c.code).input(a);
57
+ m(h), E(a, c);
3257
58
  } else
3258
- f(C);
3259
- }, te = (m) => {
3260
- $(m), l(!1), c && b(c, m);
3261
- }, Nt = (m) => {
3262
- const C = m.target.checked;
3263
- y(C), a?.(C);
59
+ m(a);
60
+ }, A = (t) => {
61
+ l(t), I(!1), f && E(f, t);
62
+ }, B = (t) => {
63
+ const a = t.target.checked;
64
+ C(a), y?.(a);
3264
65
  };
3265
- return /* @__PURE__ */ s("div", { class: "IncodePhoneInput", children: /* @__PURE__ */ s("div", { class: "IncodePhoneInputContainer", children: [
3266
- /* @__PURE__ */ s("div", { class: "IncodePhoneInputRow", children: [
3267
- /* @__PURE__ */ s(
66
+ return /* @__PURE__ */ n("div", { class: "IncodePhoneInput", children: /* @__PURE__ */ n("div", { class: "IncodePhoneInputContainer", children: [
67
+ /* @__PURE__ */ n("div", { class: "IncodePhoneInputRow", children: [
68
+ /* @__PURE__ */ n(
3268
69
  "div",
3269
70
  {
3270
- class: `IncodePhoneCountrySelector ${u ? "IncodePhoneCountrySelectorOpen" : ""} ${d ? "IncodePhoneCountrySelectorDisabled" : ""}`,
3271
- ref: N,
71
+ class: `IncodePhoneCountrySelector ${r ? "IncodePhoneCountrySelectorOpen" : ""} ${s ? "IncodePhoneCountrySelectorDisabled" : ""}`,
72
+ ref: O,
3272
73
  children: [
3273
- /* @__PURE__ */ s(
74
+ /* @__PURE__ */ n(
3274
75
  "button",
3275
76
  {
3276
77
  type: "button",
3277
78
  class: "IncodePhoneCountryButton",
3278
79
  onClick: () => {
3279
- d || l(!u);
80
+ s || I(!r);
3280
81
  },
3281
- disabled: d,
3282
- "aria-expanded": u,
82
+ disabled: s,
83
+ "aria-expanded": r,
3283
84
  "aria-haspopup": "listbox",
3284
85
  "data-testid": "phone-country-selector",
3285
86
  children: [
3286
- /* @__PURE__ */ s("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: o?.emoji }),
3287
- /* @__PURE__ */ s("span", { class: "IncodePhoneCountryCode", children: o?.callingCode }),
3288
- /* @__PURE__ */ s(
3289
- At,
87
+ /* @__PURE__ */ n("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: c?.emoji }),
88
+ /* @__PURE__ */ n("span", { class: "IncodePhoneCountryCode", children: c?.callingCode }),
89
+ /* @__PURE__ */ n(
90
+ U,
3290
91
  {
3291
- class: `IncodePhoneCountryArrow ${u ? "IncodePhoneCountryArrowUp" : ""}`
92
+ class: `IncodePhoneCountryArrow ${r ? "IncodePhoneCountryArrowUp" : ""}`
3292
93
  }
3293
94
  )
3294
95
  ]
3295
96
  }
3296
97
  ),
3297
- u && /* @__PURE__ */ s("div", { class: "IncodePhoneCountryDropdown", children: K.map((m) => /* @__PURE__ */ s(
98
+ r && /* @__PURE__ */ n("div", { class: "IncodePhoneCountryDropdown", children: b.map((t) => /* @__PURE__ */ n(
3298
99
  "button",
3299
100
  {
3300
101
  type: "button",
3301
- class: `IncodePhoneCountryOption ${o?.code === m.code ? "IncodePhoneCountryOptionSelected" : ""}`,
3302
- onClick: () => te(m),
102
+ class: `IncodePhoneCountryOption ${c?.code === t.code ? "IncodePhoneCountryOptionSelected" : ""}`,
103
+ onClick: () => A(t),
3303
104
  children: [
3304
- /* @__PURE__ */ s("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: m.emoji }),
3305
- /* @__PURE__ */ s("span", { class: "IncodePhoneCountryOptionCode", children: m.callingCode }),
3306
- /* @__PURE__ */ s("span", { class: "IncodePhoneCountryOptionName", children: m.name })
105
+ /* @__PURE__ */ n("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: t.emoji }),
106
+ /* @__PURE__ */ n("span", { class: "IncodePhoneCountryOptionCode", children: t.callingCode }),
107
+ /* @__PURE__ */ n("span", { class: "IncodePhoneCountryOptionName", children: t.name })
3307
108
  ]
3308
109
  },
3309
- m.code
110
+ t.code
3310
111
  )) })
3311
112
  ]
3312
113
  }
3313
114
  ),
3314
- /* @__PURE__ */ s(
115
+ /* @__PURE__ */ n(
3315
116
  "div",
3316
117
  {
3317
- class: `IncodePhoneInputWrapper ${n ? "IncodePhoneInputWrapperError" : ""} ${d ? "IncodePhoneInputWrapperDisabled" : ""}`,
3318
- children: /* @__PURE__ */ s(
118
+ class: `IncodePhoneInputWrapper ${u ? "IncodePhoneInputWrapperError" : ""} ${s ? "IncodePhoneInputWrapperDisabled" : ""}`,
119
+ children: /* @__PURE__ */ n(
3319
120
  "input",
3320
121
  {
3321
122
  type: "tel",
3322
- value: c,
3323
- onInput: ee,
123
+ value: f,
124
+ onInput: x,
3324
125
  placeholder: "(123) 456-7890",
3325
- disabled: d,
126
+ disabled: s,
3326
127
  class: "IncodePhoneInputField",
3327
128
  "data-testid": "phone-input"
3328
129
  }
@@ -3330,63 +131,63 @@ const ei = ({
3330
131
  }
3331
132
  )
3332
133
  ] }),
3333
- n && /* @__PURE__ */ s(Ce, { children: [
3334
- /* @__PURE__ */ s($e, { size: 8 }),
3335
- /* @__PURE__ */ s("p", { class: "IncodePhoneInputError", "data-testid": "phone-error", children: n })
134
+ u && /* @__PURE__ */ n(k, { children: [
135
+ /* @__PURE__ */ n(S, { size: 8 }),
136
+ /* @__PURE__ */ n("p", { class: "IncodePhoneInputError", "data-testid": "phone-error", children: u })
3336
137
  ] }),
3337
- r && /* @__PURE__ */ s(Ce, { children: [
3338
- /* @__PURE__ */ s($e, { size: 16 }),
3339
- /* @__PURE__ */ s("label", { class: "IncodePhoneInputOptIn", children: [
3340
- /* @__PURE__ */ s(
138
+ e && /* @__PURE__ */ n(k, { children: [
139
+ /* @__PURE__ */ n(S, { size: 16 }),
140
+ /* @__PURE__ */ n("label", { class: "IncodePhoneInputOptIn", children: [
141
+ /* @__PURE__ */ n(
3341
142
  "input",
3342
143
  {
3343
144
  type: "checkbox",
3344
- checked: h,
3345
- onChange: Nt,
145
+ checked: g,
146
+ onChange: B,
3346
147
  "data-testid": "phone-optin"
3347
148
  }
3348
149
  ),
3349
- /* @__PURE__ */ s("span", { children: "I agree to receive SMS notifications" })
150
+ /* @__PURE__ */ n("span", { children: "I agree to receive SMS notifications" })
3350
151
  ] })
3351
152
  ] })
3352
153
  ] }) });
3353
- }, ti = ({ config: e, onFinish: t, onError: n }) => {
3354
- const [r, d] = Pt(() => {
3355
- if (!e)
154
+ }, z = ({ config: i, onFinish: d, onError: u }) => {
155
+ const [e, s] = W(() => {
156
+ if (!i)
3356
157
  throw new Error("Phone config is required");
3357
- return It({ config: e });
3358
- }), [i, a] = _(!1);
3359
- if (r.status === "idle" || r.status === "loadingPrefill" || r.status === "inputting" || r.status === "submitting" || r.status === "sendingOtp") {
3360
- const $ = r.status === "idle" || r.status === "loadingPrefill" || r.status === "submitting" || r.status === "sendingOtp", u = r.status === "inputting" ? r.countryCode : "US", l = r.status === "inputting" ? r.phonePrefix : "+1", c = r.status === "inputting" ? r.prefilledPhone : void 0, f = r.status === "inputting" ? r.phoneError : void 0;
3361
- return /* @__PURE__ */ s(
3362
- Pe,
158
+ return L({ config: i });
159
+ }), [p, y] = P(!1);
160
+ if (e.status === "idle" || e.status === "loadingPrefill" || e.status === "inputting" || e.status === "submitting" || e.status === "sendingOtp") {
161
+ const l = e.status === "idle" || e.status === "loadingPrefill" || e.status === "submitting" || e.status === "sendingOtp", r = e.status === "inputting" ? e.countryCode : "US", I = e.status === "inputting" ? e.phonePrefix : "+1", f = e.status === "inputting" ? e.prefilledPhone : void 0, m = e.status === "inputting" ? e.phoneError : void 0;
162
+ return /* @__PURE__ */ n(
163
+ D,
3363
164
  {
3364
165
  className: "IncodePhonePage",
3365
166
  title: "Verify Phone",
3366
- subtitle: e.otpVerification ? "We will send you a verification code" : void 0,
167
+ subtitle: i.otpVerification ? "We will send you a verification code" : void 0,
3367
168
  children: [
3368
- /* @__PURE__ */ s(
3369
- ei,
169
+ /* @__PURE__ */ n(
170
+ j,
3370
171
  {
3371
- countryCode: u,
3372
- phonePrefix: l,
3373
- prefilledPhone: c,
3374
- phoneError: f,
3375
- optinEnabled: e.optinEnabled,
3376
- disabled: $,
3377
- onPhoneChange: (h, y) => {
3378
- d.setPhoneNumber(h, y), a(y);
172
+ countryCode: r,
173
+ phonePrefix: I,
174
+ prefilledPhone: f,
175
+ phoneError: m,
176
+ optinEnabled: i.optinEnabled,
177
+ disabled: l,
178
+ onPhoneChange: (g, C) => {
179
+ s.setPhoneNumber(g, C), y(C);
3379
180
  },
3380
- onOptInChange: (h) => d.setOptInGranted(h)
181
+ onOptInChange: (g) => s.setOptInGranted(g)
3381
182
  }
3382
183
  ),
3383
- /* @__PURE__ */ s($e, {}),
3384
- /* @__PURE__ */ s(
3385
- St,
184
+ /* @__PURE__ */ n(S, {}),
185
+ /* @__PURE__ */ n(
186
+ F,
3386
187
  {
3387
- onClick: () => d.submit(),
3388
- disabled: !i,
3389
- isLoading: $,
188
+ onClick: () => s.submit(),
189
+ disabled: !p,
190
+ isLoading: l,
3390
191
  "data-testid": "phone-submit",
3391
192
  children: "Continue"
3392
193
  }
@@ -3395,31 +196,31 @@ const ei = ({
3395
196
  }
3396
197
  );
3397
198
  }
3398
- if (r.status === "awaitingOtp" || r.status === "verifyingOtp" || r.status === "otpError") {
3399
- const $ = r.status === "verifyingOtp";
3400
- return /* @__PURE__ */ s(
3401
- Pe,
199
+ if (e.status === "awaitingOtp" || e.status === "verifyingOtp" || e.status === "otpError") {
200
+ const l = e.status === "verifyingOtp";
201
+ return /* @__PURE__ */ n(
202
+ D,
3402
203
  {
3403
204
  className: "IncodePhonePage IncodePhoneOtpPage",
3404
205
  title: "Enter Verification Code",
3405
- children: /* @__PURE__ */ s(
3406
- Tt,
206
+ children: /* @__PURE__ */ n(
207
+ G,
3407
208
  {
3408
- resendTimer: r.status === "awaitingOtp" ? r.resendTimer : 0,
3409
- canResend: r.status === "awaitingOtp" ? r.canResend : !1,
3410
- error: r.status === "otpError" ? r.error : void 0,
3411
- onSubmit: (u) => d.submitOtp(u),
3412
- onResend: () => d.resendOtp(),
3413
- onBack: () => d.back(),
3414
- isLoading: $
209
+ resendTimer: e.status === "awaitingOtp" ? e.resendTimer : 0,
210
+ canResend: e.status === "awaitingOtp" ? e.canResend : !1,
211
+ error: e.status === "otpError" ? e.error : void 0,
212
+ onSubmit: (r) => s.submitOtp(r),
213
+ onResend: () => s.resendOtp(),
214
+ onBack: () => s.back(),
215
+ isLoading: l
3415
216
  }
3416
217
  )
3417
218
  }
3418
219
  );
3419
220
  }
3420
- return r.status === "finished" ? (t?.(), null) : (r.status === "error" && n?.(r.error), null);
3421
- }, ni = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(xt, { children: e ? /* @__PURE__ */ s(ti, { config: e, onFinish: t, onError: n }) : null });
3422
- Ct(ni, "incode-phone");
221
+ return e.status === "finished" ? (d?.(), null) : (e.status === "error" && u?.(e.error), null);
222
+ }, q = ({ config: i, onFinish: d, onError: u }) => /* @__PURE__ */ n(T, { children: i ? /* @__PURE__ */ n(z, { config: i, onFinish: d, onError: u }) : null });
223
+ R(q, "incode-phone");
3423
224
  export {
3424
- ni as Phone
225
+ q as Phone
3425
226
  };