@nevuto/phone 0.0.0-stage → 0.0.36

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