intl-tel-input 25.10.9 → 25.10.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,45 @@
1
- import { mergeModels as r2, useModel as P2, ref as I1, onMounted as x2, watch as B2, onUnmounted as R2, withDirectives as k2, createElementBlock as O2, openBlock as G2, mergeProps as U2, vModelText as F2 } from "vue";
2
- const K2 = [
1
+ import { mergeModels as r0, useModel as P0, ref as I1, onMounted as x0, watch as B0, onUnmounted as R0, withDirectives as k0, createElementBlock as O0, openBlock as G0, mergeProps as U0, vModelText as F0 } from "vue";
2
+ const K0 = [
3
3
  [
4
4
  "af",
5
5
  // Afghanistan
6
- "93"
6
+ "93",
7
+ 0,
8
+ null,
9
+ "0"
7
10
  ],
8
11
  [
9
12
  "ax",
10
13
  // Åland Islands
11
14
  "358",
12
- 1
15
+ 1,
16
+ ["18", "4"],
17
+ // (4 is a mobile range shared with FI)
18
+ "0"
13
19
  ],
14
20
  [
15
21
  "al",
16
22
  // Albania
17
- "355"
23
+ "355",
24
+ 0,
25
+ null,
26
+ "0"
18
27
  ],
19
28
  [
20
29
  "dz",
21
30
  // Algeria
22
- "213"
31
+ "213",
32
+ 0,
33
+ null,
34
+ "0"
23
35
  ],
24
36
  [
25
37
  "as",
26
38
  // American Samoa
27
39
  "1",
28
40
  5,
29
- ["684"]
41
+ ["684"],
42
+ "1"
30
43
  ],
31
44
  [
32
45
  "ad",
@@ -43,24 +56,32 @@ const K2 = [
43
56
  // Anguilla
44
57
  "1",
45
58
  6,
46
- ["264"]
59
+ ["264"],
60
+ "1"
47
61
  ],
48
62
  [
49
63
  "ag",
50
64
  // Antigua and Barbuda
51
65
  "1",
52
66
  7,
53
- ["268"]
67
+ ["268"],
68
+ "1"
54
69
  ],
55
70
  [
56
71
  "ar",
57
72
  // Argentina
58
- "54"
73
+ "54",
74
+ 0,
75
+ null,
76
+ "0"
59
77
  ],
60
78
  [
61
79
  "am",
62
80
  // Armenia
63
- "374"
81
+ "374",
82
+ 0,
83
+ null,
84
+ "0"
64
85
  ],
65
86
  [
66
87
  "aw",
@@ -77,25 +98,33 @@ const K2 = [
77
98
  // Australia
78
99
  "61",
79
100
  0,
80
- null,
101
+ ["4"],
102
+ // (mobile range shared with CX and CC)
81
103
  "0"
82
104
  ],
83
105
  [
84
106
  "at",
85
107
  // Austria
86
- "43"
108
+ "43",
109
+ 0,
110
+ null,
111
+ "0"
87
112
  ],
88
113
  [
89
114
  "az",
90
115
  // Azerbaijan
91
- "994"
116
+ "994",
117
+ 0,
118
+ null,
119
+ "0"
92
120
  ],
93
121
  [
94
122
  "bs",
95
123
  // Bahamas
96
124
  "1",
97
125
  8,
98
- ["242"]
126
+ ["242"],
127
+ "1"
99
128
  ],
100
129
  [
101
130
  "bh",
@@ -105,24 +134,34 @@ const K2 = [
105
134
  [
106
135
  "bd",
107
136
  // Bangladesh
108
- "880"
137
+ "880",
138
+ 0,
139
+ null,
140
+ "0"
109
141
  ],
110
142
  [
111
143
  "bb",
112
144
  // Barbados
113
145
  "1",
114
146
  9,
115
- ["246"]
147
+ ["246"],
148
+ "1"
116
149
  ],
117
150
  [
118
151
  "by",
119
152
  // Belarus
120
- "375"
153
+ "375",
154
+ 0,
155
+ null,
156
+ "8"
121
157
  ],
122
158
  [
123
159
  "be",
124
160
  // Belgium
125
- "32"
161
+ "32",
162
+ 0,
163
+ null,
164
+ "0"
126
165
  ],
127
166
  [
128
167
  "bz",
@@ -139,7 +178,8 @@ const K2 = [
139
178
  // Bermuda
140
179
  "1",
141
180
  10,
142
- ["441"]
181
+ ["441"],
182
+ "1"
143
183
  ],
144
184
  [
145
185
  "bt",
@@ -149,12 +189,18 @@ const K2 = [
149
189
  [
150
190
  "bo",
151
191
  // Bolivia
152
- "591"
192
+ "591",
193
+ 0,
194
+ null,
195
+ "0"
153
196
  ],
154
197
  [
155
198
  "ba",
156
199
  // Bosnia and Herzegovina
157
- "387"
200
+ "387",
201
+ 0,
202
+ null,
203
+ "0"
158
204
  ],
159
205
  [
160
206
  "bw",
@@ -164,7 +210,10 @@ const K2 = [
164
210
  [
165
211
  "br",
166
212
  // Brazil
167
- "55"
213
+ "55",
214
+ 0,
215
+ null,
216
+ "0"
168
217
  ],
169
218
  [
170
219
  "io",
@@ -176,7 +225,8 @@ const K2 = [
176
225
  // British Virgin Islands
177
226
  "1",
178
227
  11,
179
- ["284"]
228
+ ["284"],
229
+ "1"
180
230
  ],
181
231
  [
182
232
  "bn",
@@ -186,7 +236,10 @@ const K2 = [
186
236
  [
187
237
  "bg",
188
238
  // Bulgaria
189
- "359"
239
+ "359",
240
+ 0,
241
+ null,
242
+ "0"
190
243
  ],
191
244
  [
192
245
  "bf",
@@ -201,7 +254,10 @@ const K2 = [
201
254
  [
202
255
  "kh",
203
256
  // Cambodia
204
- "855"
257
+ "855",
258
+ 0,
259
+ null,
260
+ "0"
205
261
  ],
206
262
  [
207
263
  "cm",
@@ -213,7 +269,8 @@ const K2 = [
213
269
  // Canada
214
270
  "1",
215
271
  1,
216
- ["204", "226", "236", "249", "250", "263", "289", "306", "343", "354", "365", "367", "368", "382", "387", "403", "416", "418", "428", "431", "437", "438", "450", "584", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905"]
272
+ ["204", "226", "236", "249", "250", "257", "263", "289", "306", "343", "354", "365", "367", "368", "382", "403", "416", "418", "428", "431", "437", "438", "450", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905", "942"],
273
+ "1"
217
274
  ],
218
275
  [
219
276
  "cv",
@@ -232,7 +289,8 @@ const K2 = [
232
289
  // Cayman Islands
233
290
  "1",
234
291
  12,
235
- ["345"]
292
+ ["345"],
293
+ "1"
236
294
  ],
237
295
  [
238
296
  "cf",
@@ -252,14 +310,18 @@ const K2 = [
252
310
  [
253
311
  "cn",
254
312
  // China
255
- "86"
313
+ "86",
314
+ 0,
315
+ null,
316
+ "0"
256
317
  ],
257
318
  [
258
319
  "cx",
259
320
  // Christmas Island
260
321
  "61",
261
322
  2,
262
- ["89164"],
323
+ ["4", "89164"],
324
+ // (4 is a mobile range shared with AU and CC)
263
325
  "0"
264
326
  ],
265
327
  [
@@ -267,13 +329,17 @@ const K2 = [
267
329
  // Cocos (Keeling) Islands
268
330
  "61",
269
331
  1,
270
- ["89162"],
332
+ ["4", "89162"],
333
+ // (4 is a mobile range shared with AU and CX)
271
334
  "0"
272
335
  ],
273
336
  [
274
337
  "co",
275
338
  // Colombia
276
- "57"
339
+ "57",
340
+ 0,
341
+ null,
342
+ "0"
277
343
  ],
278
344
  [
279
345
  "km",
@@ -288,7 +354,10 @@ const K2 = [
288
354
  [
289
355
  "cd",
290
356
  // Congo (Kinshasa)
291
- "243"
357
+ "243",
358
+ 0,
359
+ null,
360
+ "0"
292
361
  ],
293
362
  [
294
363
  "ck",
@@ -308,12 +377,18 @@ const K2 = [
308
377
  [
309
378
  "hr",
310
379
  // Croatia
311
- "385"
380
+ "385",
381
+ 0,
382
+ null,
383
+ "0"
312
384
  ],
313
385
  [
314
386
  "cu",
315
387
  // Cuba
316
- "53"
388
+ "53",
389
+ 0,
390
+ null,
391
+ "0"
317
392
  ],
318
393
  [
319
394
  "cw",
@@ -346,24 +421,32 @@ const K2 = [
346
421
  // Dominica
347
422
  "1",
348
423
  13,
349
- ["767"]
424
+ ["767"],
425
+ "1"
350
426
  ],
351
427
  [
352
428
  "do",
353
429
  // Dominican Republic
354
430
  "1",
355
431
  2,
356
- ["809", "829", "849"]
432
+ ["809", "829", "849"],
433
+ "1"
357
434
  ],
358
435
  [
359
436
  "ec",
360
437
  // Ecuador
361
- "593"
438
+ "593",
439
+ 0,
440
+ null,
441
+ "0"
362
442
  ],
363
443
  [
364
444
  "eg",
365
445
  // Egypt
366
- "20"
446
+ "20",
447
+ 0,
448
+ null,
449
+ "0"
367
450
  ],
368
451
  [
369
452
  "sv",
@@ -378,7 +461,10 @@ const K2 = [
378
461
  [
379
462
  "er",
380
463
  // Eritrea
381
- "291"
464
+ "291",
465
+ 0,
466
+ null,
467
+ "0"
382
468
  ],
383
469
  [
384
470
  "ee",
@@ -393,7 +479,10 @@ const K2 = [
393
479
  [
394
480
  "et",
395
481
  // Ethiopia
396
- "251"
482
+ "251",
483
+ 0,
484
+ null,
485
+ "0"
397
486
  ],
398
487
  [
399
488
  "fk",
@@ -414,17 +503,26 @@ const K2 = [
414
503
  "fi",
415
504
  // Finland
416
505
  "358",
417
- 0
506
+ 0,
507
+ ["4"],
508
+ // (mobile range shared with AX)
509
+ "0"
418
510
  ],
419
511
  [
420
512
  "fr",
421
513
  // France
422
- "33"
514
+ "33",
515
+ 0,
516
+ null,
517
+ "0"
423
518
  ],
424
519
  [
425
520
  "gf",
426
521
  // French Guiana
427
- "594"
522
+ "594",
523
+ 0,
524
+ null,
525
+ "0"
428
526
  ],
429
527
  [
430
528
  "pf",
@@ -444,17 +542,26 @@ const K2 = [
444
542
  [
445
543
  "ge",
446
544
  // Georgia
447
- "995"
545
+ "995",
546
+ 0,
547
+ null,
548
+ "0"
448
549
  ],
449
550
  [
450
551
  "de",
451
552
  // Germany
452
- "49"
553
+ "49",
554
+ 0,
555
+ null,
556
+ "0"
453
557
  ],
454
558
  [
455
559
  "gh",
456
560
  // Ghana
457
- "233"
561
+ "233",
562
+ 0,
563
+ null,
564
+ "0"
458
565
  ],
459
566
  [
460
567
  "gi",
@@ -476,20 +583,24 @@ const K2 = [
476
583
  // Grenada
477
584
  "1",
478
585
  14,
479
- ["473"]
586
+ ["473"],
587
+ "1"
480
588
  ],
481
589
  [
482
590
  "gp",
483
591
  // Guadeloupe
484
592
  "590",
485
- 0
593
+ 0,
594
+ null,
595
+ "0"
486
596
  ],
487
597
  [
488
598
  "gu",
489
599
  // Guam
490
600
  "1",
491
601
  15,
492
- ["671"]
602
+ ["671"],
603
+ "1"
493
604
  ],
494
605
  [
495
606
  "gt",
@@ -537,7 +648,10 @@ const K2 = [
537
648
  [
538
649
  "hu",
539
650
  // Hungary
540
- "36"
651
+ "36",
652
+ 0,
653
+ null,
654
+ "06"
541
655
  ],
542
656
  [
543
657
  "is",
@@ -547,58 +661,82 @@ const K2 = [
547
661
  [
548
662
  "in",
549
663
  // India
550
- "91"
664
+ "91",
665
+ 0,
666
+ null,
667
+ "0"
551
668
  ],
552
669
  [
553
670
  "id",
554
671
  // Indonesia
555
- "62"
672
+ "62",
673
+ 0,
674
+ null,
675
+ "0"
556
676
  ],
557
677
  [
558
678
  "ir",
559
679
  // Iran
560
- "98"
680
+ "98",
681
+ 0,
682
+ null,
683
+ "0"
561
684
  ],
562
685
  [
563
686
  "iq",
564
687
  // Iraq
565
- "964"
688
+ "964",
689
+ 0,
690
+ null,
691
+ "0"
566
692
  ],
567
693
  [
568
694
  "ie",
569
695
  // Ireland
570
- "353"
696
+ "353",
697
+ 0,
698
+ null,
699
+ "0"
571
700
  ],
572
701
  [
573
702
  "im",
574
703
  // Isle of Man
575
704
  "44",
576
705
  2,
577
- ["1624", "74576", "7524", "7924", "7624"],
706
+ ["1624", "74576", "7524", "7624", "7924"],
578
707
  "0"
579
708
  ],
580
709
  [
581
710
  "il",
582
711
  // Israel
583
- "972"
712
+ "972",
713
+ 0,
714
+ null,
715
+ "0"
584
716
  ],
585
717
  [
586
718
  "it",
587
719
  // Italy
588
720
  "39",
589
- 0
721
+ 0,
722
+ ["3"]
723
+ // (mobile range shared with VA)
590
724
  ],
591
725
  [
592
726
  "jm",
593
727
  // Jamaica
594
728
  "1",
595
729
  4,
596
- ["876", "658"]
730
+ ["658", "876"],
731
+ "1"
597
732
  ],
598
733
  [
599
734
  "jp",
600
735
  // Japan
601
- "81"
736
+ "81",
737
+ 0,
738
+ null,
739
+ "0"
602
740
  ],
603
741
  [
604
742
  "je",
@@ -611,7 +749,10 @@ const K2 = [
611
749
  [
612
750
  "jo",
613
751
  // Jordan
614
- "962"
752
+ "962",
753
+ 0,
754
+ null,
755
+ "0"
615
756
  ],
616
757
  [
617
758
  "kz",
@@ -619,22 +760,32 @@ const K2 = [
619
760
  "7",
620
761
  1,
621
762
  ["33", "7"],
763
+ // (33 is shared with RU)
622
764
  "8"
623
765
  ],
624
766
  [
625
767
  "ke",
626
768
  // Kenya
627
- "254"
769
+ "254",
770
+ 0,
771
+ null,
772
+ "0"
628
773
  ],
629
774
  [
630
775
  "ki",
631
776
  // Kiribati
632
- "686"
777
+ "686",
778
+ 0,
779
+ null,
780
+ "0"
633
781
  ],
634
782
  [
635
783
  "xk",
636
784
  // Kosovo
637
- "383"
785
+ "383",
786
+ 0,
787
+ null,
788
+ "0"
638
789
  ],
639
790
  [
640
791
  "kw",
@@ -644,12 +795,18 @@ const K2 = [
644
795
  [
645
796
  "kg",
646
797
  // Kyrgyzstan
647
- "996"
798
+ "996",
799
+ 0,
800
+ null,
801
+ "0"
648
802
  ],
649
803
  [
650
804
  "la",
651
805
  // Laos
652
- "856"
806
+ "856",
807
+ 0,
808
+ null,
809
+ "0"
653
810
  ],
654
811
  [
655
812
  "lv",
@@ -659,7 +816,10 @@ const K2 = [
659
816
  [
660
817
  "lb",
661
818
  // Lebanon
662
- "961"
819
+ "961",
820
+ 0,
821
+ null,
822
+ "0"
663
823
  ],
664
824
  [
665
825
  "ls",
@@ -669,22 +829,34 @@ const K2 = [
669
829
  [
670
830
  "lr",
671
831
  // Liberia
672
- "231"
832
+ "231",
833
+ 0,
834
+ null,
835
+ "0"
673
836
  ],
674
837
  [
675
838
  "ly",
676
839
  // Libya
677
- "218"
840
+ "218",
841
+ 0,
842
+ null,
843
+ "0"
678
844
  ],
679
845
  [
680
846
  "li",
681
847
  // Liechtenstein
682
- "423"
848
+ "423",
849
+ 0,
850
+ null,
851
+ "0"
683
852
  ],
684
853
  [
685
854
  "lt",
686
855
  // Lithuania
687
- "370"
856
+ "370",
857
+ 0,
858
+ null,
859
+ "0"
688
860
  ],
689
861
  [
690
862
  "lu",
@@ -699,17 +871,26 @@ const K2 = [
699
871
  [
700
872
  "mg",
701
873
  // Madagascar
702
- "261"
874
+ "261",
875
+ 0,
876
+ null,
877
+ "0"
703
878
  ],
704
879
  [
705
880
  "mw",
706
881
  // Malawi
707
- "265"
882
+ "265",
883
+ 0,
884
+ null,
885
+ "0"
708
886
  ],
709
887
  [
710
888
  "my",
711
889
  // Malaysia
712
- "60"
890
+ "60",
891
+ 0,
892
+ null,
893
+ "0"
713
894
  ],
714
895
  [
715
896
  "mv",
@@ -729,12 +910,18 @@ const K2 = [
729
910
  [
730
911
  "mh",
731
912
  // Marshall Islands
732
- "692"
913
+ "692",
914
+ 0,
915
+ null,
916
+ "1"
733
917
  ],
734
918
  [
735
919
  "mq",
736
920
  // Martinique
737
- "596"
921
+ "596",
922
+ 0,
923
+ null,
924
+ "0"
738
925
  ],
739
926
  [
740
927
  "mr",
@@ -767,36 +954,50 @@ const K2 = [
767
954
  [
768
955
  "md",
769
956
  // Moldova
770
- "373"
957
+ "373",
958
+ 0,
959
+ null,
960
+ "0"
771
961
  ],
772
962
  [
773
963
  "mc",
774
964
  // Monaco
775
- "377"
965
+ "377",
966
+ 0,
967
+ null,
968
+ "0"
776
969
  ],
777
970
  [
778
971
  "mn",
779
972
  // Mongolia
780
- "976"
973
+ "976",
974
+ 0,
975
+ null,
976
+ "0"
781
977
  ],
782
978
  [
783
979
  "me",
784
980
  // Montenegro
785
- "382"
981
+ "382",
982
+ 0,
983
+ null,
984
+ "0"
786
985
  ],
787
986
  [
788
987
  "ms",
789
988
  // Montserrat
790
989
  "1",
791
990
  16,
792
- ["664"]
991
+ ["664"],
992
+ "1"
793
993
  ],
794
994
  [
795
995
  "ma",
796
996
  // Morocco
797
997
  "212",
798
998
  0,
799
- null,
999
+ ["6", "7"],
1000
+ // (mobile ranges shared with EH)
800
1001
  "0"
801
1002
  ],
802
1003
  [
@@ -807,12 +1008,18 @@ const K2 = [
807
1008
  [
808
1009
  "mm",
809
1010
  // Myanmar (Burma)
810
- "95"
1011
+ "95",
1012
+ 0,
1013
+ null,
1014
+ "0"
811
1015
  ],
812
1016
  [
813
1017
  "na",
814
1018
  // Namibia
815
- "264"
1019
+ "264",
1020
+ 0,
1021
+ null,
1022
+ "0"
816
1023
  ],
817
1024
  [
818
1025
  "nr",
@@ -822,12 +1029,18 @@ const K2 = [
822
1029
  [
823
1030
  "np",
824
1031
  // Nepal
825
- "977"
1032
+ "977",
1033
+ 0,
1034
+ null,
1035
+ "0"
826
1036
  ],
827
1037
  [
828
1038
  "nl",
829
1039
  // Netherlands
830
- "31"
1040
+ "31",
1041
+ 0,
1042
+ null,
1043
+ "0"
831
1044
  ],
832
1045
  [
833
1046
  "nc",
@@ -837,7 +1050,10 @@ const K2 = [
837
1050
  [
838
1051
  "nz",
839
1052
  // New Zealand
840
- "64"
1053
+ "64",
1054
+ 0,
1055
+ null,
1056
+ "0"
841
1057
  ],
842
1058
  [
843
1059
  "ni",
@@ -852,7 +1068,10 @@ const K2 = [
852
1068
  [
853
1069
  "ng",
854
1070
  // Nigeria
855
- "234"
1071
+ "234",
1072
+ 0,
1073
+ null,
1074
+ "0"
856
1075
  ],
857
1076
  [
858
1077
  "nu",
@@ -867,25 +1086,34 @@ const K2 = [
867
1086
  [
868
1087
  "kp",
869
1088
  // North Korea
870
- "850"
1089
+ "850",
1090
+ 0,
1091
+ null,
1092
+ "0"
871
1093
  ],
872
1094
  [
873
1095
  "mk",
874
1096
  // North Macedonia
875
- "389"
1097
+ "389",
1098
+ 0,
1099
+ null,
1100
+ "0"
876
1101
  ],
877
1102
  [
878
1103
  "mp",
879
1104
  // Northern Mariana Islands
880
1105
  "1",
881
1106
  17,
882
- ["670"]
1107
+ ["670"],
1108
+ "1"
883
1109
  ],
884
1110
  [
885
1111
  "no",
886
1112
  // Norway
887
1113
  "47",
888
- 0
1114
+ 0,
1115
+ ["4", "9"]
1116
+ // (mobile ranges shared with SJ)
889
1117
  ],
890
1118
  [
891
1119
  "om",
@@ -895,7 +1123,10 @@ const K2 = [
895
1123
  [
896
1124
  "pk",
897
1125
  // Pakistan
898
- "92"
1126
+ "92",
1127
+ 0,
1128
+ null,
1129
+ "0"
899
1130
  ],
900
1131
  [
901
1132
  "pw",
@@ -905,7 +1136,10 @@ const K2 = [
905
1136
  [
906
1137
  "ps",
907
1138
  // Palestinian Territories
908
- "970"
1139
+ "970",
1140
+ 0,
1141
+ null,
1142
+ "0"
909
1143
  ],
910
1144
  [
911
1145
  "pa",
@@ -920,17 +1154,26 @@ const K2 = [
920
1154
  [
921
1155
  "py",
922
1156
  // Paraguay
923
- "595"
1157
+ "595",
1158
+ 0,
1159
+ null,
1160
+ "0"
924
1161
  ],
925
1162
  [
926
1163
  "pe",
927
1164
  // Peru
928
- "51"
1165
+ "51",
1166
+ 0,
1167
+ null,
1168
+ "0"
929
1169
  ],
930
1170
  [
931
1171
  "ph",
932
1172
  // Philippines
933
- "63"
1173
+ "63",
1174
+ 0,
1175
+ null,
1176
+ "0"
934
1177
  ],
935
1178
  [
936
1179
  "pl",
@@ -947,7 +1190,8 @@ const K2 = [
947
1190
  // Puerto Rico
948
1191
  "1",
949
1192
  3,
950
- ["787", "939"]
1193
+ ["787", "939"],
1194
+ "1"
951
1195
  ],
952
1196
  [
953
1197
  "qa",
@@ -965,20 +1209,27 @@ const K2 = [
965
1209
  [
966
1210
  "ro",
967
1211
  // Romania
968
- "40"
1212
+ "40",
1213
+ 0,
1214
+ null,
1215
+ "0"
969
1216
  ],
970
1217
  [
971
1218
  "ru",
972
1219
  // Russia
973
1220
  "7",
974
1221
  0,
975
- null,
1222
+ ["33"],
1223
+ // (shared with KZ)
976
1224
  "8"
977
1225
  ],
978
1226
  [
979
1227
  "rw",
980
1228
  // Rwanda
981
- "250"
1229
+ "250",
1230
+ 0,
1231
+ null,
1232
+ "0"
982
1233
  ],
983
1234
  [
984
1235
  "ws",
@@ -998,7 +1249,10 @@ const K2 = [
998
1249
  [
999
1250
  "sa",
1000
1251
  // Saudi Arabia
1001
- "966"
1252
+ "966",
1253
+ 0,
1254
+ null,
1255
+ "0"
1002
1256
  ],
1003
1257
  [
1004
1258
  "sn",
@@ -1008,7 +1262,10 @@ const K2 = [
1008
1262
  [
1009
1263
  "rs",
1010
1264
  // Serbia
1011
- "381"
1265
+ "381",
1266
+ 0,
1267
+ null,
1268
+ "0"
1012
1269
  ],
1013
1270
  [
1014
1271
  "sc",
@@ -1018,7 +1275,10 @@ const K2 = [
1018
1275
  [
1019
1276
  "sl",
1020
1277
  // Sierra Leone
1021
- "232"
1278
+ "232",
1279
+ 0,
1280
+ null,
1281
+ "0"
1022
1282
  ],
1023
1283
  [
1024
1284
  "sg",
@@ -1030,17 +1290,24 @@ const K2 = [
1030
1290
  // Sint Maarten
1031
1291
  "1",
1032
1292
  21,
1033
- ["721"]
1293
+ ["721"],
1294
+ "1"
1034
1295
  ],
1035
1296
  [
1036
1297
  "sk",
1037
1298
  // Slovakia
1038
- "421"
1299
+ "421",
1300
+ 0,
1301
+ null,
1302
+ "0"
1039
1303
  ],
1040
1304
  [
1041
1305
  "si",
1042
1306
  // Slovenia
1043
- "386"
1307
+ "386",
1308
+ 0,
1309
+ null,
1310
+ "0"
1044
1311
  ],
1045
1312
  [
1046
1313
  "sb",
@@ -1050,22 +1317,34 @@ const K2 = [
1050
1317
  [
1051
1318
  "so",
1052
1319
  // Somalia
1053
- "252"
1320
+ "252",
1321
+ 0,
1322
+ null,
1323
+ "0"
1054
1324
  ],
1055
1325
  [
1056
1326
  "za",
1057
1327
  // South Africa
1058
- "27"
1328
+ "27",
1329
+ 0,
1330
+ null,
1331
+ "0"
1059
1332
  ],
1060
1333
  [
1061
1334
  "kr",
1062
1335
  // South Korea
1063
- "82"
1336
+ "82",
1337
+ 0,
1338
+ null,
1339
+ "0"
1064
1340
  ],
1065
1341
  [
1066
1342
  "ss",
1067
1343
  // South Sudan
1068
- "211"
1344
+ "211",
1345
+ 0,
1346
+ null,
1347
+ "0"
1069
1348
  ],
1070
1349
  [
1071
1350
  "es",
@@ -1075,13 +1354,18 @@ const K2 = [
1075
1354
  [
1076
1355
  "lk",
1077
1356
  // Sri Lanka
1078
- "94"
1357
+ "94",
1358
+ 0,
1359
+ null,
1360
+ "0"
1079
1361
  ],
1080
1362
  [
1081
1363
  "bl",
1082
1364
  // St. Barthélemy
1083
1365
  "590",
1084
- 1
1366
+ 1,
1367
+ null,
1368
+ "0"
1085
1369
  ],
1086
1370
  [
1087
1371
  "sh",
@@ -1093,37 +1377,48 @@ const K2 = [
1093
1377
  // St. Kitts & Nevis
1094
1378
  "1",
1095
1379
  18,
1096
- ["869"]
1380
+ ["869"],
1381
+ "1"
1097
1382
  ],
1098
1383
  [
1099
1384
  "lc",
1100
1385
  // St. Lucia
1101
1386
  "1",
1102
1387
  19,
1103
- ["758"]
1388
+ ["758"],
1389
+ "1"
1104
1390
  ],
1105
1391
  [
1106
1392
  "mf",
1107
1393
  // St. Martin
1108
1394
  "590",
1109
- 2
1395
+ 2,
1396
+ null,
1397
+ "0"
1110
1398
  ],
1111
1399
  [
1112
1400
  "pm",
1113
1401
  // St. Pierre & Miquelon
1114
- "508"
1402
+ "508",
1403
+ 0,
1404
+ null,
1405
+ "0"
1115
1406
  ],
1116
1407
  [
1117
1408
  "vc",
1118
1409
  // St. Vincent & Grenadines
1119
1410
  "1",
1120
1411
  20,
1121
- ["784"]
1412
+ ["784"],
1413
+ "1"
1122
1414
  ],
1123
1415
  [
1124
1416
  "sd",
1125
1417
  // Sudan
1126
- "249"
1418
+ "249",
1419
+ 0,
1420
+ null,
1421
+ "0"
1127
1422
  ],
1128
1423
  [
1129
1424
  "sr",
@@ -1135,27 +1430,40 @@ const K2 = [
1135
1430
  // Svalbard & Jan Mayen
1136
1431
  "47",
1137
1432
  1,
1138
- ["79"]
1433
+ ["4", "79", "9"]
1434
+ // (4 and 9 are mobile ranges shared with NO)
1139
1435
  ],
1140
1436
  [
1141
1437
  "se",
1142
1438
  // Sweden
1143
- "46"
1439
+ "46",
1440
+ 0,
1441
+ null,
1442
+ "0"
1144
1443
  ],
1145
1444
  [
1146
1445
  "ch",
1147
1446
  // Switzerland
1148
- "41"
1447
+ "41",
1448
+ 0,
1449
+ null,
1450
+ "0"
1149
1451
  ],
1150
1452
  [
1151
1453
  "sy",
1152
1454
  // Syria
1153
- "963"
1455
+ "963",
1456
+ 0,
1457
+ null,
1458
+ "0"
1154
1459
  ],
1155
1460
  [
1156
1461
  "tw",
1157
1462
  // Taiwan
1158
- "886"
1463
+ "886",
1464
+ 0,
1465
+ null,
1466
+ "0"
1159
1467
  ],
1160
1468
  [
1161
1469
  "tj",
@@ -1165,12 +1473,18 @@ const K2 = [
1165
1473
  [
1166
1474
  "tz",
1167
1475
  // Tanzania
1168
- "255"
1476
+ "255",
1477
+ 0,
1478
+ null,
1479
+ "0"
1169
1480
  ],
1170
1481
  [
1171
1482
  "th",
1172
1483
  // Thailand
1173
- "66"
1484
+ "66",
1485
+ 0,
1486
+ null,
1487
+ "0"
1174
1488
  ],
1175
1489
  [
1176
1490
  "tl",
@@ -1197,7 +1511,8 @@ const K2 = [
1197
1511
  // Trinidad & Tobago
1198
1512
  "1",
1199
1513
  22,
1200
- ["868"]
1514
+ ["868"],
1515
+ "1"
1201
1516
  ],
1202
1517
  [
1203
1518
  "tn",
@@ -1207,19 +1522,26 @@ const K2 = [
1207
1522
  [
1208
1523
  "tr",
1209
1524
  // Turkey
1210
- "90"
1525
+ "90",
1526
+ 0,
1527
+ null,
1528
+ "0"
1211
1529
  ],
1212
1530
  [
1213
1531
  "tm",
1214
1532
  // Turkmenistan
1215
- "993"
1533
+ "993",
1534
+ 0,
1535
+ null,
1536
+ "8"
1216
1537
  ],
1217
1538
  [
1218
1539
  "tc",
1219
1540
  // Turks & Caicos Islands
1220
1541
  "1",
1221
1542
  23,
1222
- ["649"]
1543
+ ["649"],
1544
+ "1"
1223
1545
  ],
1224
1546
  [
1225
1547
  "tv",
@@ -1231,22 +1553,32 @@ const K2 = [
1231
1553
  // U.S. Virgin Islands
1232
1554
  "1",
1233
1555
  24,
1234
- ["340"]
1556
+ ["340"],
1557
+ "1"
1235
1558
  ],
1236
1559
  [
1237
1560
  "ug",
1238
1561
  // Uganda
1239
- "256"
1562
+ "256",
1563
+ 0,
1564
+ null,
1565
+ "0"
1240
1566
  ],
1241
1567
  [
1242
1568
  "ua",
1243
1569
  // Ukraine
1244
- "380"
1570
+ "380",
1571
+ 0,
1572
+ null,
1573
+ "0"
1245
1574
  ],
1246
1575
  [
1247
1576
  "ae",
1248
1577
  // United Arab Emirates
1249
- "971"
1578
+ "971",
1579
+ 0,
1580
+ null,
1581
+ "0"
1250
1582
  ],
1251
1583
  [
1252
1584
  "gb",
@@ -1260,12 +1592,17 @@ const K2 = [
1260
1592
  "us",
1261
1593
  // United States
1262
1594
  "1",
1263
- 0
1595
+ 0,
1596
+ null,
1597
+ "1"
1264
1598
  ],
1265
1599
  [
1266
1600
  "uy",
1267
1601
  // Uruguay
1268
- "598"
1602
+ "598",
1603
+ 0,
1604
+ null,
1605
+ "0"
1269
1606
  ],
1270
1607
  [
1271
1608
  "uz",
@@ -1282,17 +1619,24 @@ const K2 = [
1282
1619
  // Vatican City
1283
1620
  "39",
1284
1621
  1,
1285
- ["06698"]
1622
+ ["06698", "3"]
1623
+ // (3 is a mobile range shared with IT)
1286
1624
  ],
1287
1625
  [
1288
1626
  "ve",
1289
1627
  // Venezuela
1290
- "58"
1628
+ "58",
1629
+ 0,
1630
+ null,
1631
+ "0"
1291
1632
  ],
1292
1633
  [
1293
1634
  "vn",
1294
1635
  // Vietnam
1295
- "84"
1636
+ "84",
1637
+ 0,
1638
+ null,
1639
+ "0"
1296
1640
  ],
1297
1641
  [
1298
1642
  "wf",
@@ -1304,27 +1648,37 @@ const K2 = [
1304
1648
  // Western Sahara
1305
1649
  "212",
1306
1650
  1,
1307
- ["5288", "5289"],
1651
+ ["5288", "5289", "6", "7"],
1652
+ // (6 and 7 are mobile ranges shared with MA)
1308
1653
  "0"
1309
1654
  ],
1310
1655
  [
1311
1656
  "ye",
1312
1657
  // Yemen
1313
- "967"
1658
+ "967",
1659
+ 0,
1660
+ null,
1661
+ "0"
1314
1662
  ],
1315
1663
  [
1316
1664
  "zm",
1317
1665
  // Zambia
1318
- "260"
1666
+ "260",
1667
+ 0,
1668
+ null,
1669
+ "0"
1319
1670
  ],
1320
1671
  [
1321
1672
  "zw",
1322
1673
  // Zimbabwe
1323
- "263"
1674
+ "263",
1675
+ 0,
1676
+ null,
1677
+ "0"
1324
1678
  ]
1325
- ], Z = [];
1326
- for (const f of K2)
1327
- Z.push({
1679
+ ], Y = [];
1680
+ for (const f of K0)
1681
+ Y.push({
1328
1682
  name: "",
1329
1683
  // populated in the plugin
1330
1684
  iso2: f[0],
@@ -1335,7 +1689,7 @@ for (const f of K2)
1335
1689
  // populated by the plugin
1336
1690
  nationalPrefix: f[4] || null
1337
1691
  });
1338
- const V2 = {
1692
+ const V0 = {
1339
1693
  ad: "Andorra",
1340
1694
  ae: "United Arab Emirates",
1341
1695
  af: "Afghanistan",
@@ -1578,7 +1932,7 @@ const V2 = {
1578
1932
  za: "South Africa",
1579
1933
  zm: "Zambia",
1580
1934
  zw: "Zimbabwe"
1581
- }, H2 = {
1935
+ }, H0 = {
1582
1936
  selectedCountryAriaLabel: "Change country, selected ${countryName} (${dialCode})",
1583
1937
  noCountrySelected: "Select country",
1584
1938
  countryListAriaLabel: "List of countries",
@@ -1590,13 +1944,13 @@ const V2 = {
1590
1944
  // additional countries (not supported by country-list library)
1591
1945
  ac: "Ascension Island",
1592
1946
  xk: "Kosovo"
1593
- }, a2 = { ...V2, ...H2 }, v1 = (f) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(f).matches, j2 = () => {
1947
+ }, l0 = { ...V0, ...H0 }, v1 = (f) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(f).matches, j0 = () => {
1594
1948
  if (typeof navigator < "u" && typeof window < "u") {
1595
1949
  const f = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), e = v1("(max-width: 500px)"), $ = v1("(max-height: 600px)"), i = v1("(pointer: coarse)");
1596
1950
  return f || e || i && $;
1597
1951
  }
1598
1952
  return !1;
1599
- }, u2 = {
1953
+ }, u0 = {
1600
1954
  // Allow alphanumeric "phonewords" (e.g. +1 800 FLOWERS) as valid numbers
1601
1955
  allowPhonewords: !1,
1602
1956
  //* Whether or not to allow the dropdown.
@@ -1644,81 +1998,87 @@ const V2 = {
1644
1998
  //* Only allow certain chars e.g. a plus followed by numeric digits, and cap at max valid length.
1645
1999
  strictMode: !1,
1646
2000
  //* Use full screen popup instead of dropdown for country list.
1647
- useFullscreenPopup: j2(),
2001
+ useFullscreenPopup: j0(),
1648
2002
  //* The number type to enforce during validation.
1649
2003
  validationNumberTypes: ["MOBILE"]
1650
2004
  };
1651
- function W2(f) {
1652
- f.useFullscreenPopup && (f.fixDropdownWidth = !1), f.onlyCountries.length === 1 && (f.initialCountry = f.onlyCountries[0]), f.separateDialCode && (f.nationalMode = !1), f.allowDropdown && !f.showFlags && !f.separateDialCode && (f.nationalMode = !1), f.useFullscreenPopup && !f.dropdownContainer && (f.dropdownContainer = document.body), f.i18n = { ...a2, ...f.i18n };
2005
+ function W0(f) {
2006
+ f.useFullscreenPopup && (f.fixDropdownWidth = !1), f.onlyCountries.length === 1 && (f.initialCountry = f.onlyCountries[0]), f.separateDialCode && (f.nationalMode = !1), f.allowDropdown && !f.showFlags && !f.separateDialCode && (f.nationalMode = !1), f.useFullscreenPopup && !f.dropdownContainer && (f.dropdownContainer = document.body), f.i18n = { ...l0, ...f.i18n };
1653
2007
  }
1654
- const h1 = (f) => f.replace(/\D/g, ""), l2 = (f = "") => f.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), L = (f, e, $) => {
2008
+ const c1 = (f) => f.replace(/\D/g, ""), a0 = (f = "") => f.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), L = (f, e, $) => {
1655
2009
  const i = document.createElement(f);
1656
2010
  return e && Object.entries(e).forEach(([s, u]) => i.setAttribute(s, u)), $ && $.appendChild(i), i;
1657
2011
  };
1658
- function z2(f) {
2012
+ function z0(f) {
1659
2013
  const { onlyCountries: e, excludeCountries: $ } = f;
1660
2014
  if (e.length) {
1661
2015
  const i = e.map((s) => s.toLowerCase());
1662
- return Z.filter((s) => i.includes(s.iso2));
2016
+ return Y.filter((s) => i.includes(s.iso2));
1663
2017
  } else if ($.length) {
1664
2018
  const i = $.map((s) => s.toLowerCase());
1665
- return Z.filter((s) => !i.includes(s.iso2));
2019
+ return Y.filter((s) => !i.includes(s.iso2));
1666
2020
  }
1667
- return Z;
2021
+ return Y;
1668
2022
  }
1669
- function Z2(f, e) {
2023
+ function Z0(f, e) {
1670
2024
  for (const $ of f) {
1671
2025
  const i = $.iso2.toLowerCase();
1672
2026
  e.i18n[i] && ($.name = e.i18n[i]);
1673
2027
  }
1674
2028
  }
1675
- function Y2(f, e) {
2029
+ function Y0(f, e) {
1676
2030
  const $ = /* @__PURE__ */ new Set();
1677
2031
  let i = 0;
1678
- const s = {}, u = (h, c, C) => {
2032
+ const s = {}, u = (h, c, m) => {
1679
2033
  if (!h || !c)
1680
2034
  return;
1681
2035
  c.length > i && (i = c.length), s.hasOwnProperty(c) || (s[c] = []);
1682
2036
  const g = s[c];
1683
2037
  if (g.includes(h))
1684
2038
  return;
1685
- const I = C !== void 0 ? C : g.length;
2039
+ const I = m !== void 0 ? m : g.length;
1686
2040
  g[I] = h;
1687
2041
  };
1688
- for (const h of f)
1689
- $.has(h.dialCode) || $.add(h.dialCode), u(h.iso2, h.dialCode, h.priority);
2042
+ for (const h of f) {
2043
+ $.has(h.dialCode) || $.add(h.dialCode);
2044
+ for (let c = 1; c < h.dialCode.length; c++) {
2045
+ const m = h.dialCode.substring(0, c);
2046
+ u(h.iso2, m);
2047
+ }
2048
+ u(h.iso2, h.dialCode, h.priority);
2049
+ }
1690
2050
  (e.onlyCountries.length || e.excludeCountries.length) && $.forEach((h) => {
1691
2051
  s[h] = s[h].filter(Boolean);
1692
2052
  });
1693
2053
  for (const h of f)
1694
2054
  if (h.areaCodes) {
1695
2055
  const c = s[h.dialCode][0];
1696
- for (const C of h.areaCodes) {
1697
- for (let g = 1; g < C.length; g++) {
1698
- const I = C.substring(0, g), S = h.dialCode + I;
1699
- u(c, S), u(h.iso2, S);
2056
+ for (const m of h.areaCodes) {
2057
+ for (let g = 1; g < m.length; g++) {
2058
+ const I = m.substring(0, g), w = h.dialCode + I;
2059
+ u(c, w), u(h.iso2, w);
1700
2060
  }
1701
- u(h.iso2, h.dialCode + C);
2061
+ u(h.iso2, h.dialCode + m);
1702
2062
  }
1703
2063
  }
1704
2064
  return { dialCodes: $, dialCodeMaxLen: i, dialCodeToIso2Map: s };
1705
2065
  }
1706
- function J2(f, e) {
2066
+ function J0(f, e) {
1707
2067
  e.countryOrder && (e.countryOrder = e.countryOrder.map(($) => $.toLowerCase())), f.sort(($, i) => {
1708
2068
  const { countryOrder: s } = e;
1709
2069
  if (s) {
1710
- const u = s.indexOf($.iso2), h = s.indexOf(i.iso2), c = u > -1, C = h > -1;
1711
- if (c || C)
1712
- return c && C ? u - h : c ? -1 : 1;
2070
+ const u = s.indexOf($.iso2), h = s.indexOf(i.iso2), c = u > -1, m = h > -1;
2071
+ if (c || m)
2072
+ return c && m ? u - h : c ? -1 : 1;
1713
2073
  }
1714
2074
  return $.name.localeCompare(i.name);
1715
2075
  });
1716
2076
  }
1717
- function q2(f) {
2077
+ function q0(f) {
1718
2078
  for (const e of f)
1719
- e.normalisedName = l2(e.name), e.initials = e.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map(($) => $[0]).join("").toLowerCase(), e.dialCodePlus = `+${e.dialCode}`;
2079
+ e.normalisedName = a0(e.name), e.initials = e.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map(($) => $[0]).join("").toLowerCase(), e.dialCodePlus = `+${e.dialCode}`;
1720
2080
  }
1721
- function X2(f, e, $, i) {
2081
+ function X0(f, e, $, i) {
1722
2082
  let s = f;
1723
2083
  if ($ && e) {
1724
2084
  e = `+${i.dialCode}`;
@@ -1727,11 +2087,11 @@ function X2(f, e, $, i) {
1727
2087
  }
1728
2088
  return s;
1729
2089
  }
1730
- function Q2(f, e, $, i, s) {
2090
+ function Q0(f, e, $, i, s) {
1731
2091
  const u = $ ? $.formatNumberAsYouType(f, i.iso2) : f, { dialCode: h } = i;
1732
2092
  return s && e.charAt(0) !== "+" && u.includes(`+${h}`) ? (u.split(`+${h}`)[1] || "").trim() : u;
1733
2093
  }
1734
- function d0(f, e, $, i) {
2094
+ function d2(f, e, $, i) {
1735
2095
  if ($ === 0 && !i)
1736
2096
  return 0;
1737
2097
  let s = 0;
@@ -1743,7 +2103,7 @@ function d0(f, e, $, i) {
1743
2103
  }
1744
2104
  return e.length;
1745
2105
  }
1746
- const t0 = [
2106
+ const t2 = [
1747
2107
  "800",
1748
2108
  "822",
1749
2109
  "833",
@@ -1761,22 +2121,22 @@ const t0 = [
1761
2121
  "887",
1762
2122
  "888",
1763
2123
  "889"
1764
- ], o2 = (f) => {
1765
- const e = h1(f);
2124
+ ], o0 = (f) => {
2125
+ const e = c1(f);
1766
2126
  if (e.charAt(0) === "1") {
1767
2127
  const $ = e.substring(1, 4);
1768
- return t0.includes($);
2128
+ return t2.includes($);
1769
2129
  }
1770
2130
  return !1;
1771
2131
  };
1772
- for (const f of Z)
1773
- f.name = a2[f.iso2];
1774
- let e0 = 0;
1775
- const $0 = new Set(Z.map((f) => f.iso2)), w1 = (f) => $0.has(f), e1 = (f, ...e) => {
2132
+ for (const f of Y)
2133
+ f.name = l0[f.iso2];
2134
+ let e2 = 0;
2135
+ const $2 = new Set(Y.map((f) => f.iso2)), w1 = (f) => $2.has(f), $1 = (f, ...e) => {
1776
2136
  const { instances: $ } = y;
1777
2137
  Object.values($).forEach((i) => i[f](...e));
1778
2138
  };
1779
- class c1 {
2139
+ class f1 {
1780
2140
  /**
1781
2141
  * Build a space-delimited class string from an object map of className -> truthy/falsey.
1782
2142
  * Only keys with truthy values are included.
@@ -1785,7 +2145,7 @@ class c1 {
1785
2145
  return Object.keys(e).filter(($) => !!e[$]).join(" ");
1786
2146
  }
1787
2147
  constructor(e, $ = {}) {
1788
- this.id = e0++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, u2, $), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
2148
+ this.id = e2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, u0, $), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1789
2149
  }
1790
2150
  _detectEnvironmentAndLayout() {
1791
2151
  this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.telInput.dir = "ltr";
@@ -1802,16 +2162,16 @@ class c1 {
1802
2162
  }
1803
2163
  //* Can't be private as it's called from intlTelInput convenience wrapper.
1804
2164
  _init() {
1805
- W2(this.options), this._detectEnvironmentAndLayout(), this._createInitPromises(), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
2165
+ W0(this.options), this._detectEnvironmentAndLayout(), this._createInitPromises(), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
1806
2166
  }
1807
2167
  //********************
1808
2168
  //* PRIVATE METHODS
1809
2169
  //********************
1810
2170
  //* Prepare all of the country data, including onlyCountries, excludeCountries, countryOrder options.
1811
2171
  _processCountryData() {
1812
- this.countries = z2(this.options);
1813
- const e = Y2(this.countries, this.options);
1814
- this.dialCodes = e.dialCodes, this.dialCodeMaxLen = e.dialCodeMaxLen, this.dialCodeToIso2Map = e.dialCodeToIso2Map, Z2(this.countries, this.options), J2(this.countries, this.options), this.countryByIso2 = new Map(this.countries.map(($) => [$.iso2, $])), q2(this.countries);
2172
+ this.countries = z0(this.options);
2173
+ const e = Y0(this.countries, this.options);
2174
+ this.dialCodes = e.dialCodes, this.dialCodeMaxLen = e.dialCodeMaxLen, this.dialCodeToIso2Map = e.dialCodeToIso2Map, Z0(this.countries, this.options), J0(this.countries, this.options), this.countryByIso2 = new Map(this.countries.map(($) => [$.iso2, $])), q0(this.countries);
1815
2175
  }
1816
2176
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
1817
2177
  _generateMarkup() {
@@ -1829,7 +2189,7 @@ class c1 {
1829
2189
  showFlags: $,
1830
2190
  containerClass: i,
1831
2191
  useFullscreenPopup: s
1832
- } = this.options, u = c1._buildClassNames({
2192
+ } = this.options, u = f1._buildClassNames({
1833
2193
  iti: !0,
1834
2194
  "iti--allow-dropdown": e,
1835
2195
  "iti--show-flags": $,
@@ -1910,14 +2270,14 @@ class c1 {
1910
2270
  },
1911
2271
  this.dropdownContent
1912
2272
  ), this._appendListItems(), i && this._updateSearchResultsA11yText(), u) {
1913
- const C = c1._buildClassNames({
2273
+ const m = f1._buildClassNames({
1914
2274
  iti: !0,
1915
2275
  "iti--container": !0,
1916
2276
  "iti--fullscreen-popup": $,
1917
2277
  "iti--inline-dropdown": !$,
1918
2278
  [h]: !!h
1919
2279
  });
1920
- this.dropdown = L("div", { class: C }), this.dropdown.appendChild(this.dropdownContent);
2280
+ this.dropdown = L("div", { class: m }), this.dropdown.appendChild(this.dropdownContent);
1921
2281
  } else
1922
2282
  this.countryContainer.appendChild(this.dropdownContent);
1923
2283
  }
@@ -2036,12 +2396,12 @@ class c1 {
2036
2396
  //* 1. Extracting a dial code from the given number
2037
2397
  //* 2. Using explicit initialCountry
2038
2398
  _setInitialState(e = !1) {
2039
- const $ = this.telInput.getAttribute("value"), i = this.telInput.value, u = $ && $.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? $ : i, h = this._getDialCode(u), c = o2(u), { initialCountry: C, geoIpLookup: g } = this.options, I = C === "auto" && g;
2399
+ const $ = this.telInput.getAttribute("value"), i = this.telInput.value, u = $ && $.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? $ : i, h = this._getDialCode(u), c = o0(u), { initialCountry: m, geoIpLookup: g } = this.options, I = m === "auto" && g;
2040
2400
  if (h && !c)
2041
2401
  this._updateCountryFromNumber(u);
2042
2402
  else if (!I || e) {
2043
- const S = C ? C.toLowerCase() : "";
2044
- w1(S) ? this._setCountry(S) : h && c ? this._setCountry("us") : this._setCountry("");
2403
+ const w = m ? m.toLowerCase() : "";
2404
+ w1(w) ? this._setCountry(w) : h && c ? this._setCountry("us") : this._setCountry("");
2045
2405
  }
2046
2406
  u && this._updateValFromNumber(u);
2047
2407
  }
@@ -2077,21 +2437,23 @@ class c1 {
2077
2437
  //* Init many requests: utils script / geo ip lookup.
2078
2438
  _initRequests() {
2079
2439
  let { loadUtils: e, initialCountry: $, geoIpLookup: i } = this.options;
2080
- e && !y.utils ? (this._handlePageLoad = () => {
2440
+ e && !y.utils ? (this._doAttachUtils = () => {
2081
2441
  var u;
2082
- window.removeEventListener("load", this._handlePageLoad), (u = y.attachUtils(e)) == null || u.catch(() => {
2442
+ (u = y.attachUtils(e)) == null || u.catch(() => {
2083
2443
  });
2084
- }, y.documentReady() ? this._handlePageLoad() : window.addEventListener("load", this._handlePageLoad)) : this.resolveUtilsScriptPromise(), $ === "auto" && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2444
+ }, y.documentReady() ? this._doAttachUtils() : (this._handlePageLoad = () => {
2445
+ this._doAttachUtils();
2446
+ }, window.addEventListener("load", this._handlePageLoad))) : this.resolveUtilsScriptPromise(), $ === "auto" && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2085
2447
  }
2086
2448
  //* Perform the geo ip lookup.
2087
2449
  _loadAutoCountry() {
2088
2450
  y.autoCountry ? this.handleAutoCountry() : y.startedLoadingAutoCountry || (y.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
2089
2451
  (e = "") => {
2090
2452
  const $ = e.toLowerCase();
2091
- w1($) ? (y.autoCountry = $, setTimeout(() => e1("handleAutoCountry"))) : (this._setInitialState(!0), e1("rejectAutoCountryPromise"));
2453
+ w1($) ? (y.autoCountry = $, setTimeout(() => $1("handleAutoCountry"))) : (this._setInitialState(!0), $1("rejectAutoCountryPromise"));
2092
2454
  },
2093
2455
  () => {
2094
- this._setInitialState(!0), e1("rejectAutoCountryPromise");
2456
+ this._setInitialState(!0), $1("rejectAutoCountryPromise");
2095
2457
  }
2096
2458
  ));
2097
2459
  }
@@ -2107,23 +2469,23 @@ class c1 {
2107
2469
  let h = !1;
2108
2470
  new RegExp("\\p{L}", "u").test(this.telInput.value) && (h = !0), this._handleInputEvent = (c) => {
2109
2471
  if (this.isAndroid && (c == null ? void 0 : c.data) === "+" && i && s && u) {
2110
- const S = this.telInput.selectionStart || 0, R = this.telInput.value.substring(0, S - 1), v = this.telInput.value.substring(S);
2111
- this.telInput.value = R + v, this._openDropdownWithPlus();
2472
+ const w = this.telInput.selectionStart || 0, k = this.telInput.value.substring(0, w - 1), v = this.telInput.value.substring(w);
2473
+ this.telInput.value = k + v, this._openDropdownWithPlus();
2112
2474
  return;
2113
2475
  }
2114
2476
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
2115
- const C = (c == null ? void 0 : c.data) && /[^+0-9]/.test(c.data), g = (c == null ? void 0 : c.inputType) === "insertFromPaste" && this.telInput.value;
2116
- C || g && !e ? h = !0 : /[^+0-9]/.test(this.telInput.value) || (h = !1);
2477
+ const m = (c == null ? void 0 : c.data) && /[^+0-9]/.test(c.data), g = (c == null ? void 0 : c.inputType) === "insertFromPaste" && this.telInput.value;
2478
+ m || g && !e ? h = !0 : /[^+0-9]/.test(this.telInput.value) || (h = !1);
2117
2479
  const I = (c == null ? void 0 : c.detail) && c.detail.isSetNumber;
2118
2480
  if ($ && !h && !I) {
2119
- const S = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, S).replace(/[^+0-9]/g, "").length, D = (c == null ? void 0 : c.inputType) === "deleteContentForward", A = this._getFullNumber(), k = Q2(
2120
- A,
2481
+ const w = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, w).replace(/[^+0-9]/g, "").length, E = (c == null ? void 0 : c.inputType) === "deleteContentForward", N = this._getFullNumber(), P = Q0(
2482
+ N,
2121
2483
  this.telInput.value,
2122
2484
  y.utils,
2123
2485
  this.selectedCountryData,
2124
2486
  this.options.separateDialCode
2125
- ), H = d0(v, k, S, D);
2126
- this.telInput.value = k, this.telInput.setSelectionRange(H, H);
2487
+ ), G = d2(v, P, w, E);
2488
+ this.telInput.value = P, this.telInput.setSelectionRange(G, G);
2127
2489
  }
2128
2490
  }, this.telInput.addEventListener("input", this._handleInputEvent);
2129
2491
  }
@@ -2136,8 +2498,8 @@ class c1 {
2136
2498
  return;
2137
2499
  }
2138
2500
  if (e) {
2139
- const h = this.telInput.value, C = !(h.charAt(0) === "+") && this.telInput.selectionStart === 0 && u.key === "+", g = /^[0-9]$/.test(u.key), I = $ ? g : C || g, S = h.slice(0, this.telInput.selectionStart) + u.key + h.slice(this.telInput.selectionEnd), R = this._getFullNumber(S), v = y.utils.getCoreNumber(R, this.selectedCountryData.iso2), D = this.maxCoreNumberLength && v.length > this.maxCoreNumberLength, k = this._getNewCountryFromNumber(R) !== null;
2140
- (!I || D && !k && !C) && u.preventDefault();
2501
+ const h = this.telInput.value, m = !(h.charAt(0) === "+") && this.telInput.selectionStart === 0 && u.key === "+", g = /^[0-9]$/.test(u.key), I = $ ? g : m || g, w = h.slice(0, this.telInput.selectionStart) + u.key + h.slice(this.telInput.selectionEnd), k = this._getFullNumber(w), v = y.utils.getCoreNumber(k, this.selectedCountryData.iso2), E = this.maxCoreNumberLength && v.length > this.maxCoreNumberLength, P = this._getNewCountryFromNumber(k) !== null;
2502
+ (!I || E && !P && !m) && u.preventDefault();
2141
2503
  }
2142
2504
  }
2143
2505
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
@@ -2145,21 +2507,21 @@ class c1 {
2145
2507
  _maybeBindPasteListener() {
2146
2508
  this.options.strictMode && (this._handlePasteEvent = (e) => {
2147
2509
  e.preventDefault();
2148
- const $ = this.telInput, i = $.selectionStart, s = $.selectionEnd, u = $.value.slice(0, i), h = $.value.slice(s), c = this.selectedCountryData.iso2, C = e.clipboardData.getData("text"), g = i === 0 && s > 0, I = !$.value.startsWith("+") || g, S = C.replace(/[^0-9+]/g, ""), R = S.startsWith("+"), v = S.replace(/\+/g, ""), D = R && I ? `+${v}` : v;
2149
- let A = u + D + h, k = y.utils.getCoreNumber(A, c);
2150
- for (; k.length === 0 && A.length > 0; )
2151
- A = A.slice(0, -1), k = y.utils.getCoreNumber(A, c);
2152
- if (!k)
2510
+ const $ = this.telInput, i = $.selectionStart, s = $.selectionEnd, u = $.value.slice(0, i), h = $.value.slice(s), c = this.selectedCountryData.iso2, m = e.clipboardData.getData("text"), g = i === 0 && s > 0, I = !$.value.startsWith("+") || g, w = m.replace(/[^0-9+]/g, ""), k = w.startsWith("+"), v = w.replace(/\+/g, ""), E = k && I ? `+${v}` : v;
2511
+ let N = u + E + h, P = y.utils.getCoreNumber(N, c);
2512
+ for (; P.length === 0 && N.length > 0; )
2513
+ N = N.slice(0, -1), P = y.utils.getCoreNumber(N, c);
2514
+ if (!P)
2153
2515
  return;
2154
- if (this.maxCoreNumberLength && k.length > this.maxCoreNumberLength)
2516
+ if (this.maxCoreNumberLength && P.length > this.maxCoreNumberLength)
2155
2517
  if ($.selectionEnd === $.value.length) {
2156
- const f1 = k.length - this.maxCoreNumberLength;
2157
- A = A.slice(0, A.length - f1);
2518
+ const j = P.length - this.maxCoreNumberLength;
2519
+ N = N.slice(0, N.length - j);
2158
2520
  } else
2159
2521
  return;
2160
- $.value = A;
2161
- const H = i + D.length;
2162
- $.setSelectionRange(H, H), $.dispatchEvent(new InputEvent("input", { bubbles: !0 }));
2522
+ $.value = N;
2523
+ const G = i + E.length;
2524
+ $.setSelectionRange(G, G), $.dispatchEvent(new InputEvent("input", { bubbles: !0 }));
2163
2525
  }, this.telInput.addEventListener("paste", this._handlePasteEvent));
2164
2526
  }
2165
2527
  //* Adhere to the input's maxlength attr.
@@ -2255,16 +2617,16 @@ class c1 {
2255
2617
  i ? (this._highlightListItem(null, !1), this.searchNoResults && this.searchNoResults.classList.remove("iti__hide")) : this.searchNoResults && this.searchNoResults.classList.add("iti__hide"), this.countryList.scrollTop = 0, this._updateSearchResultsA11yText();
2256
2618
  }
2257
2619
  _getMatchedCountries(e) {
2258
- const $ = l2(e), i = [], s = [], u = [], h = [], c = [], C = [];
2620
+ const $ = a0(e), i = [], s = [], u = [], h = [], c = [], m = [];
2259
2621
  for (const g of this.countries)
2260
- g.iso2 === $ ? i.push(g) : g.normalisedName.startsWith($) ? s.push(g) : g.normalisedName.includes($) ? u.push(g) : $ === g.dialCode || $ === g.dialCodePlus ? h.push(g) : g.dialCodePlus.includes($) ? c.push(g) : g.initials.includes($) && C.push(g);
2622
+ g.iso2 === $ ? i.push(g) : g.normalisedName.startsWith($) ? s.push(g) : g.normalisedName.includes($) ? u.push(g) : $ === g.dialCode || $ === g.dialCodePlus ? h.push(g) : g.dialCodePlus.includes($) ? c.push(g) : g.initials.includes($) && m.push(g);
2261
2623
  return [
2262
2624
  ...i.sort((g, I) => g.priority - I.priority),
2263
2625
  ...s.sort((g, I) => g.priority - I.priority),
2264
2626
  ...u.sort((g, I) => g.priority - I.priority),
2265
2627
  ...h.sort((g, I) => g.priority - I.priority),
2266
2628
  ...c.sort((g, I) => g.priority - I.priority),
2267
- ...C.sort((g, I) => g.priority - I.priority)
2629
+ ...m.sort((g, I) => g.priority - I.priority)
2268
2630
  ];
2269
2631
  }
2270
2632
  //* Update search results text (for a11y).
@@ -2303,6 +2665,7 @@ class c1 {
2303
2665
  const $ = this._getNewCountryFromNumber(e);
2304
2666
  return $ !== null ? this._setCountry($) : !1;
2305
2667
  }
2668
+ // if there is a selected country, and the number doesn't start with a dial code, then add it
2306
2669
  _ensureHasDialCode(e) {
2307
2670
  const { dialCode: $, nationalPrefix: i } = this.selectedCountryData;
2308
2671
  if (e.charAt(0) === "+" || !$)
@@ -2318,17 +2681,24 @@ class c1 {
2318
2681
  let i = $ ? e.substring($) : e;
2319
2682
  const s = this.selectedCountryData.iso2, u = this.selectedCountryData.dialCode;
2320
2683
  i = this._ensureHasDialCode(i);
2321
- const h = this._getDialCode(i, !0), c = h1(i);
2684
+ const h = this._getDialCode(i, !0), c = c1(i);
2322
2685
  if (h) {
2323
- const C = h1(h), g = this.dialCodeToIso2Map[C];
2686
+ const m = c1(h), g = this.dialCodeToIso2Map[m];
2324
2687
  if (g.length === 1)
2325
2688
  return g[0] === s ? null : g[0];
2326
2689
  if (!s && this.defaultCountry && g.includes(this.defaultCountry))
2327
2690
  return this.defaultCountry;
2328
- if (u === "1" && o2(c))
2691
+ if (u === "1" && o0(c))
2329
2692
  return null;
2330
- const S = this.selectedCountryData.areaCodes && c.length > C.length;
2331
- if (!(s && g.includes(s) && !S))
2693
+ const { areaCodes: w, priority: k } = this.selectedCountryData;
2694
+ if (w) {
2695
+ const G = w.map((j) => `${u}${j}`);
2696
+ for (const j of G)
2697
+ if (c.startsWith(j))
2698
+ return null;
2699
+ }
2700
+ const E = w && !(k === 0) && c.length > m.length, N = s && g.includes(s) && !E, P = s === g[0];
2701
+ if (!N && !P)
2332
2702
  return g[0];
2333
2703
  } else {
2334
2704
  if (i.charAt(0) === "+" && c.length)
@@ -2353,13 +2723,13 @@ class c1 {
2353
2723
  const { separateDialCode: $, showFlags: i, i18n: s } = this.options, u = this.selectedCountryData.iso2 || "";
2354
2724
  if (this.selectedCountryData = e ? this.countryByIso2.get(e) : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountry) {
2355
2725
  const h = e && i ? `iti__flag iti__${e}` : "iti__flag iti__globe";
2356
- let c, C;
2726
+ let c, m;
2357
2727
  if (e) {
2358
2728
  const { name: g, dialCode: I } = this.selectedCountryData;
2359
- C = g, c = s.selectedCountryAriaLabel.replace("${countryName}", g).replace("${dialCode}", `+${I}`);
2729
+ m = g, c = s.selectedCountryAriaLabel.replace("${countryName}", g).replace("${dialCode}", `+${I}`);
2360
2730
  } else
2361
- C = s.noCountrySelected, c = s.noCountrySelected;
2362
- this.selectedCountryInner.className = h, this.selectedCountry.setAttribute("title", C), this.selectedCountry.setAttribute("aria-label", c);
2731
+ m = s.noCountrySelected, c = s.noCountrySelected;
2732
+ this.selectedCountryInner.className = h, this.selectedCountry.setAttribute("title", m), this.selectedCountry.setAttribute("aria-label", c);
2363
2733
  }
2364
2734
  if ($) {
2365
2735
  const h = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
@@ -2388,8 +2758,8 @@ class c1 {
2388
2758
  ), c = h;
2389
2759
  for (; y.utils.isPossibleNumber(h, s, i); )
2390
2760
  c = h, h += "0";
2391
- const C = y.utils.getCoreNumber(c, s);
2392
- this.maxCoreNumberLength = C.length, s === "by" && (this.maxCoreNumberLength = C.length + 1);
2761
+ const m = y.utils.getCoreNumber(c, s);
2762
+ this.maxCoreNumberLength = m.length, s === "by" && (this.maxCoreNumberLength = m.length + 1);
2393
2763
  } else
2394
2764
  this.maxCoreNumberLength = null;
2395
2765
  }
@@ -2443,22 +2813,22 @@ class c1 {
2443
2813
  }
2444
2814
  //* Close the dropdown and unbind any listeners.
2445
2815
  _closeDropdown() {
2446
- this.dropdownContent.classList.add("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "false"), this.highlightedItem && this.highlightedItem.setAttribute("aria-selected", "false"), this.options.countrySearch && this.searchInput.removeAttribute("aria-activedescendant"), this.dropdownArrow.classList.remove("iti__arrow--up"), this.options.countrySearch && (this.searchInput.removeEventListener("input", this._handleSearchChange), this.searchClearButton.removeEventListener("click", this._handleSearchClear)), document.documentElement.removeEventListener(
2816
+ this.dropdownContent.classList.add("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "false"), this.highlightedItem && this.highlightedItem.setAttribute("aria-selected", "false"), this.options.countrySearch && this.searchInput.removeAttribute("aria-activedescendant"), this.dropdownArrow.classList.remove("iti__arrow--up"), this.options.countrySearch && (this.searchInput.removeEventListener("input", this._handleSearchChange), this.searchClearButton.removeEventListener("click", this._handleSearchClear)), document.removeEventListener("keydown", this._handleKeydownOnDropdown), document.documentElement.removeEventListener(
2447
2817
  "click",
2448
2818
  this._handleClickOffToClose
2449
2819
  ), this.countryList.removeEventListener(
2450
2820
  "mouseover",
2451
2821
  this._handleMouseoverCountryList
2452
- ), this.countryList.removeEventListener("click", this._handleClickCountryList), this.options.dropdownContainer && (this.options.useFullscreenPopup || window.removeEventListener("scroll", this._handleWindowScroll), this.dropdown.parentNode && this.dropdown.parentNode.removeChild(this.dropdown)), this._handlePageLoad && window.removeEventListener("load", this._handlePageLoad), this._trigger("close:countrydropdown");
2822
+ ), this.countryList.removeEventListener("click", this._handleClickCountryList), this.options.dropdownContainer && (this.options.useFullscreenPopup || window.removeEventListener("scroll", this._handleWindowScroll), this.dropdown.parentNode && this.dropdown.parentNode.removeChild(this.dropdown)), this._trigger("close:countrydropdown");
2453
2823
  }
2454
2824
  //* Check if an element is visible within it's container, else scroll until it is.
2455
2825
  _scrollTo(e) {
2456
- const $ = this.countryList, i = document.documentElement.scrollTop, s = $.offsetHeight, u = $.getBoundingClientRect().top + i, h = u + s, c = e.offsetHeight, C = e.getBoundingClientRect().top + i, g = C + c, I = C - u + $.scrollTop;
2457
- if (C < u)
2826
+ const $ = this.countryList, i = document.documentElement.scrollTop, s = $.offsetHeight, u = $.getBoundingClientRect().top + i, h = u + s, c = e.offsetHeight, m = e.getBoundingClientRect().top + i, g = m + c, I = m - u + $.scrollTop;
2827
+ if (m < u)
2458
2828
  $.scrollTop = I;
2459
2829
  else if (g > h) {
2460
- const S = s - c;
2461
- $.scrollTop = I - S;
2830
+ const w = s - c;
2831
+ $.scrollTop = I - w;
2462
2832
  }
2463
2833
  }
2464
2834
  //* Replace any existing dial code with the new one
@@ -2480,8 +2850,10 @@ class c1 {
2480
2850
  for (let u = 0; u < e.length; u++) {
2481
2851
  const h = e.charAt(u);
2482
2852
  if (/[0-9]/.test(h)) {
2483
- if (s += h, $)
2484
- this.dialCodeToIso2Map[s] && (i = e.substring(0, u + 1));
2853
+ if (s += h, !!!this.dialCodeToIso2Map[s])
2854
+ break;
2855
+ if ($)
2856
+ i = e.substring(0, u + 1);
2485
2857
  else if (this.dialCodes.has(s)) {
2486
2858
  i = e.substring(0, u + 1);
2487
2859
  break;
@@ -2497,12 +2869,12 @@ class c1 {
2497
2869
  _getFullNumber(e) {
2498
2870
  const $ = e || this.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
2499
2871
  let s;
2500
- const u = h1($);
2872
+ const u = c1($);
2501
2873
  return this.options.separateDialCode && $.charAt(0) !== "+" && i && u ? s = `+${i}` : s = "", s + $;
2502
2874
  }
2503
2875
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
2504
2876
  _beforeSetNumber(e) {
2505
- const $ = this._getDialCode(e), i = X2(
2877
+ const $ = this._getDialCode(e), i = X0(
2506
2878
  e,
2507
2879
  $,
2508
2880
  this.options.separateDialCode,
@@ -2545,7 +2917,7 @@ class c1 {
2545
2917
  c && c.removeEventListener("click", this._handleLabelClick);
2546
2918
  }
2547
2919
  const { form: i } = this.telInput;
2548
- this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this._handlePasteEvent && this.telInput.removeEventListener("paste", this._handlePasteEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), $ && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2920
+ this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this._handlePasteEvent && this.telInput.removeEventListener("paste", this._handlePasteEvent), this._handlePageLoad && window.removeEventListener("load", this._handlePageLoad), this.telInput.removeAttribute("data-intl-tel-input-id"), $ && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2549
2921
  const s = this.telInput.parentNode;
2550
2922
  (u = s == null ? void 0 : s.parentNode) == null || u.insertBefore(this.telInput, s), (h = s == null ? void 0 : s.parentNode) == null || h.removeChild(s), delete y.instances[this.id];
2551
2923
  }
@@ -2604,8 +2976,8 @@ class c1 {
2604
2976
  return !1;
2605
2977
  const $ = (h) => e ? this._utilsIsValidNumber(h) : this._utilsIsPossibleNumber(h), i = this._getFullNumber(), s = i.search(new RegExp("\\p{L}", "u"));
2606
2978
  if (s > -1 && !this.options.allowPhonewords) {
2607
- const h = i.substring(0, s), c = $(h), C = $(i);
2608
- return c && C;
2979
+ const h = i.substring(0, s), c = $(h), m = $(i);
2980
+ return c && m;
2609
2981
  }
2610
2982
  return $(i);
2611
2983
  }
@@ -2633,7 +3005,7 @@ class c1 {
2633
3005
  this.telInput.disabled = e, e ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2634
3006
  }
2635
3007
  }
2636
- const n0 = (f) => {
3008
+ const n2 = (f) => {
2637
3009
  if (!y.utils && !y.startedLoadingUtilsScript) {
2638
3010
  let e;
2639
3011
  if (typeof f == "function")
@@ -2648,23 +3020,23 @@ const n0 = (f) => {
2648
3020
  const i = $ == null ? void 0 : $.default;
2649
3021
  if (!i || typeof i != "object")
2650
3022
  throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
2651
- return y.utils = i, e1("handleUtils"), !0;
3023
+ return y.utils = i, $1("handleUtils"), !0;
2652
3024
  }).catch(($) => {
2653
- throw e1("rejectUtilsScriptPromise", $), $;
3025
+ throw $1("rejectUtilsScriptPromise", $), $;
2654
3026
  });
2655
3027
  }
2656
3028
  return null;
2657
3029
  }, y = Object.assign(
2658
3030
  (f, e) => {
2659
- const $ = new c1(f, e);
3031
+ const $ = new f1(f, e);
2660
3032
  return $._init(), f.setAttribute("data-intl-tel-input-id", $.id.toString()), y.instances[$.id] = $, f.iti = $, $;
2661
3033
  },
2662
3034
  {
2663
- defaults: u2,
3035
+ defaults: u0,
2664
3036
  //* Using a static var like this allows us to mock it in the tests.
2665
3037
  documentReady: () => document.readyState === "complete",
2666
3038
  //* Get the country data object.
2667
- getCountryData: () => Z,
3039
+ getCountryData: () => Y,
2668
3040
  //* A getter for the plugin instance.
2669
3041
  getInstance: (f) => {
2670
3042
  const e = f.getAttribute("data-intl-tel-input-id");
@@ -2672,10 +3044,10 @@ const n0 = (f) => {
2672
3044
  },
2673
3045
  //* A map from instance ID to instance object.
2674
3046
  instances: {},
2675
- attachUtils: n0,
3047
+ attachUtils: n2,
2676
3048
  startedLoadingUtilsScript: !1,
2677
3049
  startedLoadingAutoCountry: !1,
2678
- version: "25.10.9"
3050
+ version: "25.10.11"
2679
3051
  }
2680
3052
  );
2681
3053
  (function() {
@@ -2689,9 +3061,9 @@ const n0 = (f) => {
2689
3061
  function $(d, t) {
2690
3062
  function n() {
2691
3063
  }
2692
- n.prototype = t.prototype, d.ma = t.prototype, d.prototype = new n(), d.prototype.constructor = d, d.sa = function(r, o, a) {
2693
- for (var l = Array(arguments.length - 2), p = 2; p < arguments.length; p++) l[p - 2] = arguments[p];
2694
- return t.prototype[o].apply(r, l);
3064
+ n.prototype = t.prototype, d.ma = t.prototype, d.prototype = new n(), d.prototype.constructor = d, d.sa = function(r, o, l) {
3065
+ for (var a = Array(arguments.length - 2), p = 2; p < arguments.length; p++) a[p - 2] = arguments[p];
3066
+ return t.prototype[o].apply(r, a);
2695
3067
  };
2696
3068
  }
2697
3069
  function i(d) {
@@ -2720,10 +3092,10 @@ const n0 = (f) => {
2720
3092
  }
2721
3093
  }
2722
3094
  new c();
2723
- const C = {};
3095
+ const m = {};
2724
3096
  class g {
2725
3097
  constructor() {
2726
- if (C !== C) throw Error("SafeStyleSheet is not meant to be built directly");
3098
+ if (m !== m) throw Error("SafeStyleSheet is not meant to be built directly");
2727
3099
  }
2728
3100
  toString() {
2729
3101
  return "";
@@ -2731,7 +3103,7 @@ const n0 = (f) => {
2731
3103
  }
2732
3104
  new g();
2733
3105
  const I = {};
2734
- class S {
3106
+ class w {
2735
3107
  constructor() {
2736
3108
  var t = f.trustedTypes && f.trustedTypes.emptyHTML || "";
2737
3109
  if (I !== I) throw Error("SafeHtml is not meant to be built directly");
@@ -2741,73 +3113,73 @@ const n0 = (f) => {
2741
3113
  return this.g.toString();
2742
3114
  }
2743
3115
  }
2744
- new S();
2745
- function R(d, t) {
3116
+ new w();
3117
+ function k(d, t) {
2746
3118
  switch (this.g = d, this.l = !!t.aa, this.h = t.i, this.s = t.type, this.o = !1, this.h) {
2747
- case A:
2748
- case k:
2749
- case H:
2750
- case f1:
2751
- case c2:
2752
- case D:
3119
+ case N:
3120
+ case P:
3121
+ case G:
3122
+ case j:
3123
+ case c0:
3124
+ case E:
2753
3125
  case v:
2754
3126
  this.o = !0;
2755
3127
  }
2756
3128
  this.j = t.defaultValue;
2757
3129
  }
2758
- var v = 1, D = 2, A = 3, k = 4, H = 6, f1 = 16, c2 = 18;
2759
- function f2(d, t) {
3130
+ var v = 1, E = 2, N = 3, P = 4, G = 6, j = 16, c0 = 18;
3131
+ function f0(d, t) {
2760
3132
  for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
2761
3133
  var n = t[d];
2762
3134
  this.g[n.g] = n;
2763
3135
  }
2764
3136
  }
2765
- function p2(d) {
3137
+ function p0(d) {
2766
3138
  return d = i(d.g), d.sort(function(t, n) {
2767
3139
  return t.g - n.g;
2768
3140
  }), d;
2769
3141
  }
2770
- function P() {
3142
+ function x() {
2771
3143
  this.h = {}, this.j = this.m().g, this.g = this.l = null;
2772
3144
  }
2773
- P.prototype.has = function(d) {
2774
- return x(this, d.g);
2775
- }, P.prototype.get = function(d, t) {
2776
- return m(this, d.g, t);
2777
- }, P.prototype.set = function(d, t) {
2778
- E(this, d.g, t);
2779
- }, P.prototype.add = function(d, t) {
3145
+ x.prototype.has = function(d) {
3146
+ return B(this, d.g);
3147
+ }, x.prototype.get = function(d, t) {
3148
+ return C(this, d.g, t);
3149
+ }, x.prototype.set = function(d, t) {
3150
+ T(this, d.g, t);
3151
+ }, x.prototype.add = function(d, t) {
2780
3152
  b1(this, d.g, t);
2781
3153
  };
2782
3154
  function S1(d, t) {
2783
- for (var n = p2(d.m()), r = 0; r < n.length; r++) {
2784
- var o = n[r], a = o.g;
2785
- if (x(t, a)) {
3155
+ for (var n = p0(d.m()), r = 0; r < n.length; r++) {
3156
+ var o = n[r], l = o.g;
3157
+ if (B(t, l)) {
2786
3158
  d.g && delete d.g[o.g];
2787
- var l = o.h == 11 || o.h == 10;
3159
+ var a = o.h == 11 || o.h == 10;
2788
3160
  if (o.l) {
2789
- o = M(t, a);
2790
- for (var p = 0; p < o.length; p++) b1(d, a, l ? o[p].clone() : o[p]);
2791
- } else o = $1(t, a), l ? (l = $1(d, a)) ? S1(l, o) : E(d, a, o.clone()) : E(d, a, o);
3161
+ o = D(t, l);
3162
+ for (var p = 0; p < o.length; p++) b1(d, l, a ? o[p].clone() : o[p]);
3163
+ } else o = n1(t, l), a ? (a = n1(d, l)) ? S1(a, o) : T(d, l, o.clone()) : T(d, l, o);
2792
3164
  }
2793
3165
  }
2794
3166
  }
2795
- P.prototype.clone = function() {
3167
+ x.prototype.clone = function() {
2796
3168
  var d = new this.constructor();
2797
3169
  return d != this && (d.h = {}, d.g && (d.g = {}), S1(d, this)), d;
2798
3170
  };
2799
- function x(d, t) {
3171
+ function B(d, t) {
2800
3172
  return d.h[t] != null;
2801
3173
  }
2802
- function $1(d, t) {
3174
+ function n1(d, t) {
2803
3175
  var n = d.h[t];
2804
3176
  if (n == null) return null;
2805
3177
  if (d.l) {
2806
3178
  if (!(t in d.g)) {
2807
3179
  var r = d.l, o = d.j[t];
2808
3180
  if (n != null) if (o.l) {
2809
- for (var a = [], l = 0; l < n.length; l++) a[l] = r.h(o, n[l]);
2810
- n = a;
3181
+ for (var l = [], a = 0; a < n.length; a++) l[a] = r.h(o, n[a]);
3182
+ n = l;
2811
3183
  } else n = r.h(o, n);
2812
3184
  return d.g[t] = n;
2813
3185
  }
@@ -2815,12 +3187,12 @@ const n0 = (f) => {
2815
3187
  }
2816
3188
  return n;
2817
3189
  }
2818
- function m(d, t, n) {
2819
- var r = $1(d, t);
3190
+ function C(d, t, n) {
3191
+ var r = n1(d, t);
2820
3192
  return d.j[t].l ? r[n || 0] : r;
2821
3193
  }
2822
- function w(d, t) {
2823
- if (x(d, t)) d = m(d, t);
3194
+ function S(d, t) {
3195
+ if (B(d, t)) d = C(d, t);
2824
3196
  else d: {
2825
3197
  if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
2826
3198
  else if (t === Number) d.j = 0;
@@ -2833,29 +3205,29 @@ const n0 = (f) => {
2833
3205
  }
2834
3206
  return d;
2835
3207
  }
2836
- function M(d, t) {
2837
- return $1(d, t) || [];
3208
+ function D(d, t) {
3209
+ return n1(d, t) || [];
2838
3210
  }
2839
- function F(d, t) {
2840
- return d.j[t].l ? x(d, t) ? d.h[t].length : 0 : x(d, t) ? 1 : 0;
3211
+ function K(d, t) {
3212
+ return d.j[t].l ? B(d, t) ? d.h[t].length : 0 : B(d, t) ? 1 : 0;
2841
3213
  }
2842
- function E(d, t, n) {
3214
+ function T(d, t, n) {
2843
3215
  d.h[t] = n, d.g && (d.g[t] = n);
2844
3216
  }
2845
3217
  function b1(d, t, n) {
2846
3218
  d.h[t] || (d.h[t] = []), d.h[t].push(n), d.g && delete d.g[t];
2847
3219
  }
2848
- function n1(d, t) {
3220
+ function i1(d, t) {
2849
3221
  var n = [], r;
2850
- for (r in t) r != 0 && n.push(new R(r, t[r]));
2851
- return new f2(d, n);
3222
+ for (r in t) r != 0 && n.push(new k(r, t[r]));
3223
+ return new f0(d, n);
2852
3224
  }
2853
- function i1() {
3225
+ function s1() {
2854
3226
  }
2855
- i1.prototype.g = function(d) {
3227
+ s1.prototype.g = function(d) {
2856
3228
  throw new d.h(), Error("Unimplemented");
2857
- }, i1.prototype.h = function(d, t) {
2858
- if (d.h == 11 || d.h == 10) return t instanceof P ? t : this.g(d.s.prototype.m(), t);
3229
+ }, s1.prototype.h = function(d, t) {
3230
+ if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
2859
3231
  if (d.h == 14) return typeof t == "string" && L1.test(t) && (d = Number(t), 0 < d) ? d : t;
2860
3232
  if (!d.o) return t;
2861
3233
  if (d = d.s, d === String) {
@@ -2866,55 +3238,55 @@ const n0 = (f) => {
2866
3238
  var L1 = /^-?[0-9]+$/;
2867
3239
  function p1() {
2868
3240
  }
2869
- $(p1, i1), p1.prototype.g = function(d, t) {
3241
+ $(p1, s1), p1.prototype.g = function(d, t) {
2870
3242
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
2871
3243
  };
2872
- function J() {
3244
+ function q() {
2873
3245
  }
2874
- $(J, p1), J.prototype.h = function(d, t) {
2875
- return d.h == 8 ? !!t : i1.prototype.h.apply(this, arguments);
2876
- }, J.prototype.g = function(d, t) {
2877
- return J.ma.g.call(this, d, t);
3246
+ $(q, p1), q.prototype.h = function(d, t) {
3247
+ return d.h == 8 ? !!t : s1.prototype.h.apply(this, arguments);
3248
+ }, q.prototype.g = function(d, t) {
3249
+ return q.ma.g.call(this, d, t);
2878
3250
  };
2879
- function N(d, t) {
3251
+ function A(d, t) {
2880
3252
  d != null && this.g.apply(this, arguments);
2881
3253
  }
2882
- N.prototype.h = "", N.prototype.set = function(d) {
3254
+ A.prototype.h = "", A.prototype.set = function(d) {
2883
3255
  this.h = "" + d;
2884
- }, N.prototype.g = function(d, t, n) {
3256
+ }, A.prototype.g = function(d, t, n) {
2885
3257
  if (this.h += String(d), t != null) for (let r = 1; r < arguments.length; r++) this.h += arguments[r];
2886
3258
  return this;
2887
3259
  };
2888
- function B(d) {
3260
+ function R(d) {
2889
3261
  d.h = "";
2890
3262
  }
2891
- N.prototype.toString = function() {
3263
+ A.prototype.toString = function() {
2892
3264
  return this.h;
2893
3265
  };
2894
- function j() {
2895
- P.call(this);
3266
+ function W() {
3267
+ x.call(this);
2896
3268
  }
2897
- $(j, P);
3269
+ $(W, x);
2898
3270
  var N1 = null;
2899
3271
  function b() {
2900
- P.call(this);
3272
+ x.call(this);
2901
3273
  }
2902
- $(b, P);
3274
+ $(b, x);
2903
3275
  var A1 = null;
2904
- function W() {
2905
- P.call(this);
3276
+ function z() {
3277
+ x.call(this);
2906
3278
  }
2907
- $(W, P);
3279
+ $(z, x);
2908
3280
  var E1 = null;
2909
- j.prototype.m = function() {
3281
+ W.prototype.m = function() {
2910
3282
  var d = N1;
2911
- return d || (N1 = d = n1(j, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
2912
- }, j.m = j.prototype.m, b.prototype.m = function() {
3283
+ return d || (N1 = d = i1(W, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
3284
+ }, W.m = W.prototype.m, b.prototype.m = function() {
2913
3285
  var d = A1;
2914
- return d || (A1 = d = n1(b, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
2915
- }, b.m = b.prototype.m, W.prototype.m = function() {
3286
+ return d || (A1 = d = i1(b, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
3287
+ }, b.m = b.prototype.m, z.prototype.m = function() {
2916
3288
  var d = E1;
2917
- return d || (E1 = d = n1(W, {
3289
+ return d || (E1 = d = i1(z, {
2918
3290
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
2919
3291
  1: { name: "general_desc", i: 11, type: b },
2920
3292
  2: { name: "fixed_line", i: 11, type: b },
@@ -2946,26 +3318,26 @@ const n0 = (f) => {
2946
3318
  },
2947
3319
  16: { name: "national_prefix_transform_rule", i: 9, type: String },
2948
3320
  18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: !1, type: Boolean },
2949
- 19: { name: "number_format", aa: !0, i: 11, type: j },
2950
- 20: { name: "intl_number_format", aa: !0, i: 11, type: j },
3321
+ 19: { name: "number_format", aa: !0, i: 11, type: W },
3322
+ 20: { name: "intl_number_format", aa: !0, i: 11, type: W },
2951
3323
  22: { name: "main_country_for_code", i: 8, defaultValue: !1, type: Boolean },
2952
3324
  23: { name: "leading_digits", i: 9, type: String }
2953
3325
  })), d;
2954
- }, W.m = W.prototype.m;
2955
- function K() {
2956
- P.call(this);
3326
+ }, z.m = z.prototype.m;
3327
+ function V() {
3328
+ x.call(this);
2957
3329
  }
2958
- $(K, P);
2959
- var T1 = null, g2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2960
- K.prototype.m = function() {
3330
+ $(V, x);
3331
+ var T1 = null, g0 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
3332
+ V.prototype.m = function() {
2961
3333
  var d = T1;
2962
- return d || (T1 = d = n1(K, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: g2 }, 7: {
3334
+ return d || (T1 = d = i1(V, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: g0 }, 7: {
2963
3335
  name: "preferred_domestic_carrier_code",
2964
3336
  i: 9,
2965
3337
  type: String
2966
3338
  } })), d;
2967
- }, K.ctor = K, K.ctor.m = K.prototype.m;
2968
- var q = {
3339
+ }, V.ctor = V, V.ctor.m = V.prototype.m;
3340
+ var X = {
2969
3341
  1: "US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),
2970
3342
  7: ["RU", "KZ"],
2971
3343
  20: ["EG"],
@@ -8315,13 +8687,13 @@ const n0 = (f) => {
8315
8687
  ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
8316
8688
  979: [, [, , "[1359]\\d{8}", , , , , , , [9], [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[1359]\\d{8}", , , , "123456789", , , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 979, , , , , , , , 1, [[, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]]
8317
8689
  };
8318
- function T() {
8690
+ function M() {
8319
8691
  this.g = {};
8320
8692
  }
8321
- T.h = void 0, T.g = function() {
8322
- return T.h ? T.h : T.h = new T();
8693
+ M.h = void 0, M.g = function() {
8694
+ return M.h ? M.h : M.h = new M();
8323
8695
  };
8324
- var g1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, m2 = {
8696
+ var g1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, C0 = {
8325
8697
  0: "0",
8326
8698
  1: "1",
8327
8699
  2: "2",
@@ -8335,7 +8707,7 @@ const n0 = (f) => {
8335
8707
  "+": "+",
8336
8708
  "*": "*",
8337
8709
  "#": "#"
8338
- }, C2 = {
8710
+ }, m0 = {
8339
8711
  0: "0",
8340
8712
  1: "1",
8341
8713
  2: "2",
@@ -8402,72 +8774,72 @@ const n0 = (f) => {
8402
8774
  X: "9",
8403
8775
  Y: "9",
8404
8776
  Z: "9"
8405
- }, y2 = RegExp("[++]+"), X = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), _2 = RegExp("[++0-90-9٠-٩۰-۹]"), I2 = /[\\\/] *x/, v2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), w2 = /(?:.*?[A-Za-z]){3}.*/, S2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), b2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8406
- function Y(d) {
8777
+ }, y0 = RegExp("[++]+"), Q = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), _0 = RegExp("[++0-90-9٠-٩۰-۹]"), I0 = /[\\\/] *x/, v0 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), w0 = /(?:.*?[A-Za-z]){3}.*/, S0 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), b0 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8778
+ function J(d) {
8407
8779
  return "([0-90-9٠-٩۰-۹]{1," + d + "})";
8408
8780
  }
8409
8781
  function P1() {
8410
- return ";ext=" + Y("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (Y("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (Y("9") + "#?|[- ]+") + (Y("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (Y("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (Y("9") + "#?");
8782
+ return ";ext=" + J("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (J("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (J("9") + "#?|[- ]+") + (J("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (J("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (J("9") + "#?");
8411
8783
  }
8412
- var x1 = new RegExp("(?:" + P1() + ")$", "i"), L2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + P1() + ")?$", "i"), N2 = /(\$\d)/, A2 = /^\(?\$1\)?$/;
8784
+ var x1 = new RegExp("(?:" + P1() + ")$", "i"), L0 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + P1() + ")?$", "i"), N0 = /(\$\d)/, A0 = /^\(?\$1\)?$/;
8413
8785
  function B1(d) {
8414
- return 2 > d.length ? !1 : G(L2, d);
8786
+ return 2 > d.length ? !1 : U(L0, d);
8415
8787
  }
8416
8788
  function R1(d) {
8417
- return G(w2, d) ? s1(d, C2) : s1(d, g1);
8789
+ return U(w0, d) ? r1(d, m0) : r1(d, g1);
8418
8790
  }
8419
8791
  function k1(d) {
8420
8792
  var t = R1(d.toString());
8421
- B(d), d.g(t);
8793
+ R(d), d.g(t);
8422
8794
  }
8423
8795
  function O1(d) {
8424
- return d != null && (F(d, 9) != 1 || M(d, 9)[0] != -1);
8796
+ return d != null && (K(d, 9) != 1 || D(d, 9)[0] != -1);
8425
8797
  }
8426
- function s1(d, t) {
8427
- for (var n = new N(), r, o = d.length, a = 0; a < o; ++a) r = d.charAt(a), r = t[r.toUpperCase()], r != null && n.g(r);
8798
+ function r1(d, t) {
8799
+ for (var n = new A(), r, o = d.length, l = 0; l < o; ++l) r = d.charAt(l), r = t[r.toUpperCase()], r != null && n.g(r);
8428
8800
  return n.toString();
8429
8801
  }
8430
8802
  function G1(d) {
8431
- return d.length == 0 || A2.test(d);
8803
+ return d.length == 0 || A0.test(d);
8432
8804
  }
8433
- function r1(d) {
8805
+ function o1(d) {
8434
8806
  return d != null && isNaN(d) && d.toUpperCase() in M1;
8435
8807
  }
8436
- T.prototype.format = function(d, t) {
8437
- if (m(d, 2) == 0 && x(d, 5)) {
8438
- var n = w(d, 5);
8808
+ M.prototype.format = function(d, t) {
8809
+ if (C(d, 2) == 0 && B(d, 5)) {
8810
+ var n = S(d, 5);
8439
8811
  if (0 < n.length) return n;
8440
8812
  }
8441
- n = w(d, 1);
8442
- var r = d1(d);
8813
+ n = S(d, 1);
8814
+ var r = t1(d);
8443
8815
  if (t == 0) return U1(n, 0, r, "");
8444
- if (!(n in q)) return r;
8445
- var o = Q(this, n, t1(n));
8446
- d = x(d, 3) && m(d, 3).length != 0 ? t == 3 ? ";ext=" + m(d, 3) : x(o, 13) ? m(o, 13) + w(d, 3) : " ext. " + w(d, 3) : "";
8816
+ if (!(n in X)) return r;
8817
+ var o = d1(this, n, e1(n));
8818
+ d = B(d, 3) && C(d, 3).length != 0 ? t == 3 ? ";ext=" + C(d, 3) : B(o, 13) ? C(o, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
8447
8819
  d: {
8448
- o = M(o, 20).length == 0 || t == 2 ? M(o, 19) : M(o, 20);
8449
- for (var a, l = o.length, p = 0; p < l; ++p) {
8450
- a = o[p];
8451
- var _ = F(a, 3);
8452
- if ((_ == 0 || r.search(m(a, 3, _ - 1)) == 0) && (_ = new RegExp(m(a, 1)), G(_, r))) {
8453
- o = a;
8820
+ o = D(o, 20).length == 0 || t == 2 ? D(o, 19) : D(o, 20);
8821
+ for (var l, a = o.length, p = 0; p < a; ++p) {
8822
+ l = o[p];
8823
+ var _ = K(l, 3);
8824
+ if ((_ == 0 || r.search(C(l, 3, _ - 1)) == 0) && (_ = new RegExp(C(l, 1)), U(_, r))) {
8825
+ o = l;
8454
8826
  break d;
8455
8827
  }
8456
8828
  }
8457
8829
  o = null;
8458
8830
  }
8459
- return o != null && (l = o, o = w(l, 2), a = new RegExp(m(l, 1)), w(
8460
- l,
8831
+ return o != null && (a = o, o = S(a, 2), l = new RegExp(C(a, 1)), S(
8832
+ a,
8461
8833
  5
8462
- ), l = w(l, 4), r = t == 2 && l != null && 0 < l.length ? r.replace(a, o.replace(N2, l)) : r.replace(a, o), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), U1(n, t, r, d);
8834
+ ), a = S(a, 4), r = t == 2 && a != null && 0 < a.length ? r.replace(l, o.replace(N0, a)) : r.replace(l, o), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), U1(n, t, r, d);
8463
8835
  };
8464
- function Q(d, t, n) {
8465
- return n == "001" ? V(d, "" + t) : V(d, n);
8836
+ function d1(d, t, n) {
8837
+ return n == "001" ? H(d, "" + t) : H(d, n);
8466
8838
  }
8467
- function d1(d) {
8468
- if (!x(d, 2)) return "";
8469
- var t = "" + m(d, 2);
8470
- return x(d, 4) && m(d, 4) && 0 < w(d, 8) ? Array(w(d, 8) + 1).join("0") + t : t;
8839
+ function t1(d) {
8840
+ if (!B(d, 2)) return "";
8841
+ var t = "" + C(d, 2);
8842
+ return B(d, 4) && C(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
8471
8843
  }
8472
8844
  function U1(d, t, n, r) {
8473
8845
  switch (t) {
@@ -8481,74 +8853,74 @@ const n0 = (f) => {
8481
8853
  return n + r;
8482
8854
  }
8483
8855
  }
8484
- function o1(d, t) {
8856
+ function l1(d, t) {
8485
8857
  switch (t) {
8486
8858
  case 4:
8487
- return m(d, 5);
8859
+ return C(d, 5);
8488
8860
  case 3:
8489
- return m(d, 4);
8861
+ return C(d, 4);
8490
8862
  case 1:
8491
- return m(d, 3);
8863
+ return C(d, 3);
8492
8864
  case 0:
8493
8865
  case 2:
8494
- return m(d, 2);
8866
+ return C(d, 2);
8495
8867
  case 5:
8496
- return m(d, 6);
8868
+ return C(d, 6);
8497
8869
  case 6:
8498
- return m(d, 8);
8870
+ return C(d, 8);
8499
8871
  case 7:
8500
- return m(d, 7);
8872
+ return C(d, 7);
8501
8873
  case 8:
8502
- return m(d, 21);
8874
+ return C(d, 21);
8503
8875
  case 9:
8504
- return m(d, 25);
8876
+ return C(d, 25);
8505
8877
  case 10:
8506
- return m(d, 28);
8878
+ return C(d, 28);
8507
8879
  default:
8508
- return m(d, 1);
8880
+ return C(d, 1);
8509
8881
  }
8510
8882
  }
8511
8883
  function F1(d, t) {
8512
8884
  var n = K1(d, t);
8513
- return d = Q(d, w(t, 1), n), d == null ? -1 : (t = d1(t), m1(t, d));
8885
+ return d = d1(d, S(t, 1), n), d == null ? -1 : (t = t1(t), C1(t, d));
8514
8886
  }
8515
- function m1(d, t) {
8516
- return O(d, m(t, 1)) ? O(d, m(t, 5)) ? 4 : O(d, m(t, 4)) ? 3 : O(d, m(t, 6)) ? 5 : O(d, m(t, 8)) ? 6 : O(d, m(t, 7)) ? 7 : O(d, m(t, 21)) ? 8 : O(d, m(t, 25)) ? 9 : O(d, m(t, 28)) ? 10 : O(d, m(t, 2)) ? m(t, 18) || O(d, m(t, 3)) ? 2 : 0 : !m(t, 18) && O(d, m(t, 3)) ? 1 : -1 : -1;
8887
+ function C1(d, t) {
8888
+ return O(d, C(t, 1)) ? O(d, C(t, 5)) ? 4 : O(d, C(t, 4)) ? 3 : O(d, C(t, 6)) ? 5 : O(d, C(t, 8)) ? 6 : O(d, C(t, 7)) ? 7 : O(d, C(t, 21)) ? 8 : O(d, C(t, 25)) ? 9 : O(d, C(t, 28)) ? 10 : O(d, C(t, 2)) ? C(t, 18) || O(d, C(t, 3)) ? 2 : 0 : !C(t, 18) && O(d, C(t, 3)) ? 1 : -1 : -1;
8517
8889
  }
8518
- function V(d, t) {
8890
+ function H(d, t) {
8519
8891
  if (t == null) return null;
8520
8892
  t = t.toUpperCase();
8521
8893
  var n = d.g[t];
8522
8894
  if (n == null) {
8523
8895
  if (n = M1[t], n == null) return null;
8524
- n = new J().g(W.m(), n), d.g[t] = n;
8896
+ n = new q().g(z.m(), n), d.g[t] = n;
8525
8897
  }
8526
8898
  return n;
8527
8899
  }
8528
8900
  function O(d, t) {
8529
8901
  var n = d.length;
8530
- return 0 < F(t, 9) && M(t, 9).indexOf(n) == -1 ? !1 : G(w(t, 2), d);
8902
+ return 0 < K(t, 9) && D(t, 9).indexOf(n) == -1 ? !1 : U(S(t, 2), d);
8531
8903
  }
8532
- function E2(d, t) {
8533
- var n = K1(d, t), r = w(t, 1), o = Q(d, r, n);
8534
- return o == null || n != "001" && r != V1(d, n) ? o = !1 : (d = d1(t), o = m1(d, o) != -1), o;
8904
+ function E0(d, t) {
8905
+ var n = K1(d, t), r = S(t, 1), o = d1(d, r, n);
8906
+ return o == null || n != "001" && r != V1(d, n) ? o = !1 : (d = t1(t), o = C1(d, o) != -1), o;
8535
8907
  }
8536
8908
  function K1(d, t) {
8537
8909
  if (t == null) return null;
8538
- var n = w(t, 1);
8539
- if (n = q[n], n == null) d = null;
8910
+ var n = S(t, 1);
8911
+ if (n = X[n], n == null) d = null;
8540
8912
  else if (n.length == 1) d = n[0];
8541
8913
  else d: {
8542
- t = d1(t);
8543
- for (var r, o = n.length, a = 0; a < o; a++) {
8544
- r = n[a];
8545
- var l = V(d, r);
8546
- if (x(l, 23)) {
8547
- if (t.search(m(l, 23)) == 0) {
8914
+ t = t1(t);
8915
+ for (var r, o = n.length, l = 0; l < o; l++) {
8916
+ r = n[l];
8917
+ var a = H(d, r);
8918
+ if (B(a, 23)) {
8919
+ if (t.search(C(a, 23)) == 0) {
8548
8920
  d = r;
8549
8921
  break d;
8550
8922
  }
8551
- } else if (m1(t, l) != -1) {
8923
+ } else if (C1(t, a) != -1) {
8552
8924
  d = r;
8553
8925
  break d;
8554
8926
  }
@@ -8557,151 +8929,151 @@ const n0 = (f) => {
8557
8929
  }
8558
8930
  return d;
8559
8931
  }
8560
- function t1(d) {
8561
- return d = q[d], d == null ? "ZZ" : d[0];
8932
+ function e1(d) {
8933
+ return d = X[d], d == null ? "ZZ" : d[0];
8562
8934
  }
8563
8935
  function V1(d, t) {
8564
- if (d = V(d, t), d == null) throw Error("Invalid region code: " + t);
8565
- return w(d, 10);
8936
+ if (d = H(d, t), d == null) throw Error("Invalid region code: " + t);
8937
+ return S(d, 10);
8566
8938
  }
8567
- function a1(d, t, n, r) {
8568
- var o = o1(n, r), a = F(o, 9) == 0 ? M(m(n, 1), 9) : M(o, 9);
8569
- if (o = M(o, 10), r == 2) if (O1(o1(n, 0))) d = o1(n, 1), O1(d) && (a = a.concat(F(d, 9) == 0 ? M(m(n, 1), 9) : M(d, 9)), a.sort(), o.length == 0 ? o = M(d, 10) : (o = o.concat(M(d, 10)), o.sort()));
8570
- else return a1(d, t, n, 1);
8571
- return a[0] == -1 ? 5 : (t = t.length, -1 < o.indexOf(t) ? 4 : (n = a[0], n == t ? 0 : n > t ? 2 : a[a.length - 1] < t ? 3 : -1 < a.indexOf(t, 1) ? 0 : 5));
8939
+ function u1(d, t, n, r) {
8940
+ var o = l1(n, r), l = K(o, 9) == 0 ? D(C(n, 1), 9) : D(o, 9);
8941
+ if (o = D(o, 10), r == 2) if (O1(l1(n, 0))) d = l1(n, 1), O1(d) && (l = l.concat(K(d, 9) == 0 ? D(C(n, 1), 9) : D(d, 9)), l.sort(), o.length == 0 ? o = D(d, 10) : (o = o.concat(D(d, 10)), o.sort()));
8942
+ else return u1(d, t, n, 1);
8943
+ return l[0] == -1 ? 5 : (t = t.length, -1 < o.indexOf(t) ? 4 : (n = l[0], n == t ? 0 : n > t ? 2 : l[l.length - 1] < t ? 3 : -1 < l.indexOf(t, 1) ? 0 : 5));
8572
8944
  }
8573
- function u1(d, t, n) {
8574
- var r = d1(t);
8575
- return t = w(t, 1), t in q ? (t = Q(d, t, t1(t)), a1(d, r, t, n)) : 1;
8945
+ function a1(d, t, n) {
8946
+ var r = t1(t);
8947
+ return t = S(t, 1), t in X ? (t = d1(d, t, e1(t)), u1(d, r, t, n)) : 1;
8576
8948
  }
8577
8949
  function H1(d, t) {
8578
8950
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
8579
- for (var n, r = d.length, o = 1; 3 >= o && o <= r; ++o) if (n = parseInt(d.substring(0, o), 10), n in q) return t.g(d.substring(o)), n;
8951
+ for (var n, r = d.length, o = 1; 3 >= o && o <= r; ++o) if (n = parseInt(d.substring(0, o), 10), n in X) return t.g(d.substring(o)), n;
8580
8952
  return 0;
8581
8953
  }
8582
- function j1(d, t, n, r, o, a) {
8954
+ function j1(d, t, n, r, o, l) {
8583
8955
  if (t.length == 0) return 0;
8584
- t = new N(t);
8585
- var l;
8586
- n != null && (l = m(n, 11)), l == null && (l = "NonMatch");
8956
+ t = new A(t);
8957
+ var a;
8958
+ n != null && (a = C(n, 11)), a == null && (a = "NonMatch");
8587
8959
  var p = t.toString();
8588
- if (p.length == 0) l = 20;
8589
- else if (X.test(p)) p = p.replace(X, ""), B(t), t.g(R1(p)), l = 1;
8960
+ if (p.length == 0) a = 20;
8961
+ else if (Q.test(p)) p = p.replace(Q, ""), R(t), t.g(R1(p)), a = 1;
8590
8962
  else {
8591
- if (p = new RegExp(l), k1(t), l = t.toString(), l.search(p) == 0) {
8592
- p = l.match(p)[0].length;
8593
- var _ = l.substring(p).match(D1);
8594
- _ && _[1] != null && 0 < _[1].length && s1(_[1], g1) == "0" ? l = !1 : (B(t), t.g(l.substring(p)), l = !0);
8595
- } else l = !1;
8596
- l = l ? 5 : 20;
8963
+ if (p = new RegExp(a), k1(t), a = t.toString(), a.search(p) == 0) {
8964
+ p = a.match(p)[0].length;
8965
+ var _ = a.substring(p).match(D1);
8966
+ _ && _[1] != null && 0 < _[1].length && r1(_[1], g1) == "0" ? a = !1 : (R(t), t.g(a.substring(p)), a = !0);
8967
+ } else a = !1;
8968
+ a = a ? 5 : 20;
8597
8969
  }
8598
- if (o && E(a, 6, l), l != 20) {
8970
+ if (o && T(l, 6, a), a != 20) {
8599
8971
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
8600
- if (d = H1(t, r), d != 0) return E(a, 1, d), d;
8972
+ if (d = H1(t, r), d != 0) return T(l, 1, d), d;
8601
8973
  throw Error("Invalid country calling code");
8602
8974
  }
8603
- return n != null && (l = w(n, 10), p = "" + l, _ = t.toString(), _.lastIndexOf(p, 0) == 0 && (p = new N(_.substring(p.length)), _ = m(n, 1), _ = new RegExp(w(_, 2)), W1(p, n, null), p = p.toString(), !G(_, t.toString()) && G(_, p) || a1(d, t.toString(), n, -1) == 3)) ? (r.g(p), o && E(a, 6, 10), E(a, 1, l), l) : (E(a, 1, 0), 0);
8975
+ return n != null && (a = S(n, 10), p = "" + a, _ = t.toString(), _.lastIndexOf(p, 0) == 0 && (p = new A(_.substring(p.length)), _ = C(n, 1), _ = new RegExp(S(_, 2)), W1(p, n, null), p = p.toString(), !U(_, t.toString()) && U(_, p) || u1(d, t.toString(), n, -1) == 3)) ? (r.g(p), o && T(l, 6, 10), T(l, 1, a), a) : (T(l, 1, 0), 0);
8604
8976
  }
8605
8977
  function W1(d, t, n) {
8606
- var r = d.toString(), o = r.length, a = m(t, 15);
8607
- if (o != 0 && a != null && a.length != 0) {
8608
- var l = new RegExp("^(?:" + a + ")");
8609
- if (o = l.exec(r)) {
8610
- a = new RegExp(w(m(t, 1), 2));
8611
- var p = G(a, r), _ = o.length - 1;
8612
- t = m(t, 16), t == null || t.length == 0 || o[_] == null || o[_].length == 0 ? (!p || G(a, r.substring(o[0].length))) && (n != null && 0 < _ && o[_] != null && n.g(o[1]), d.set(r.substring(o[0].length))) : (r = r.replace(l, t), (!p || G(a, r)) && (n != null && 0 < _ && n.g(o[1]), d.set(r)));
8978
+ var r = d.toString(), o = r.length, l = C(t, 15);
8979
+ if (o != 0 && l != null && l.length != 0) {
8980
+ var a = new RegExp("^(?:" + l + ")");
8981
+ if (o = a.exec(r)) {
8982
+ l = new RegExp(S(C(t, 1), 2));
8983
+ var p = U(l, r), _ = o.length - 1;
8984
+ t = C(t, 16), t == null || t.length == 0 || o[_] == null || o[_].length == 0 ? (!p || U(l, r.substring(o[0].length))) && (n != null && 0 < _ && o[_] != null && n.g(o[1]), d.set(r.substring(o[0].length))) : (r = r.replace(a, t), (!p || U(l, r)) && (n != null && 0 < _ && n.g(o[1]), d.set(r)));
8613
8985
  }
8614
8986
  }
8615
8987
  }
8616
- function z(d, t, n) {
8617
- if (!r1(n) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8988
+ function Z(d, t, n) {
8989
+ if (!o1(n) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8618
8990
  return z1(d, t, n, !0);
8619
8991
  }
8620
8992
  function z1(d, t, n, r) {
8621
8993
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
8622
8994
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
8623
- var o = new N(), a = t.indexOf(";phone-context=");
8624
- if (a === -1) a = null;
8625
- else if (a += 15, a >= t.length) a = "";
8995
+ var o = new A(), l = t.indexOf(";phone-context=");
8996
+ if (l === -1) l = null;
8997
+ else if (l += 15, l >= t.length) l = "";
8626
8998
  else {
8627
- var l = t.indexOf(";", a);
8628
- a = l !== -1 ? t.substring(a, l) : t.substring(a);
8999
+ var a = t.indexOf(";", l);
9000
+ l = a !== -1 ? t.substring(l, a) : t.substring(l);
8629
9001
  }
8630
- var p = a;
8631
- if (p == null ? l = !0 : p.length === 0 ? l = !1 : (l = S2.exec(p), p = b2.exec(p), l = l !== null || p !== null), !l || (a != null ? (a.charAt(0) === "+" && o.g(a), a = t.indexOf("tel:"), o.g(t.substring(0 <= a ? a + 4 : 0, t.indexOf(";phone-context=")))) : (a = o.g, l = t ?? "", p = l.search(_2), 0 <= p ? (l = l.substring(p), l = l.replace(v2, ""), p = l.search(I2), 0 <= p && (l = l.substring(0, p))) : l = "", a.call(o, l)), a = o.toString(), l = a.indexOf(";isub="), 0 < l && (B(o), o.g(a.substring(0, l))), !B1(o.toString()))) throw Error("The string supplied did not seem to be a phone number");
8632
- if (a = o.toString(), !(r1(n) || a != null && 0 < a.length && X.test(a))) throw Error("Invalid country calling code");
8633
- a = new K(), r && E(a, 5, t);
9002
+ var p = l;
9003
+ if (p == null ? a = !0 : p.length === 0 ? a = !1 : (a = S0.exec(p), p = b0.exec(p), a = a !== null || p !== null), !a || (l != null ? (l.charAt(0) === "+" && o.g(l), l = t.indexOf("tel:"), o.g(t.substring(0 <= l ? l + 4 : 0, t.indexOf(";phone-context=")))) : (l = o.g, a = t ?? "", p = a.search(_0), 0 <= p ? (a = a.substring(p), a = a.replace(v0, ""), p = a.search(I0), 0 <= p && (a = a.substring(0, p))) : a = "", l.call(o, a)), l = o.toString(), a = l.indexOf(";isub="), 0 < a && (R(o), o.g(l.substring(0, a))), !B1(o.toString()))) throw Error("The string supplied did not seem to be a phone number");
9004
+ if (l = o.toString(), !(o1(n) || l != null && 0 < l.length && Q.test(l))) throw Error("Invalid country calling code");
9005
+ l = new V(), r && T(l, 5, t);
8634
9006
  d: {
8635
- if (t = o.toString(), l = t.search(x1), 0 <= l && B1(t.substring(0, l))) {
9007
+ if (t = o.toString(), a = t.search(x1), 0 <= a && B1(t.substring(0, a))) {
8636
9008
  p = t.match(x1);
8637
- for (var _ = p.length, U = 1; U < _; ++U) if (p[U] != null && 0 < p[U].length) {
8638
- B(o), o.g(t.substring(0, l)), t = p[U];
9009
+ for (var _ = p.length, F = 1; F < _; ++F) if (p[F] != null && 0 < p[F].length) {
9010
+ R(o), o.g(t.substring(0, a)), t = p[F];
8639
9011
  break d;
8640
9012
  }
8641
9013
  }
8642
9014
  t = "";
8643
9015
  }
8644
- 0 < t.length && E(a, 3, t), l = V(d, n), t = new N(), p = 0, _ = o.toString();
9016
+ 0 < t.length && T(l, 3, t), a = H(d, n), t = new A(), p = 0, _ = o.toString();
8645
9017
  try {
8646
- p = j1(d, _, l, t, r, a);
9018
+ p = j1(d, _, a, t, r, l);
8647
9019
  } catch (_1) {
8648
- if (_1.message == "Invalid country calling code" && X.test(_)) {
8649
- if (_ = _.replace(X, ""), p = j1(d, _, l, t, r, a), p == 0) throw _1;
9020
+ if (_1.message == "Invalid country calling code" && Q.test(_)) {
9021
+ if (_ = _.replace(Q, ""), p = j1(d, _, a, t, r, l), p == 0) throw _1;
8650
9022
  } else throw _1;
8651
9023
  }
8652
- if (p != 0 ? (o = t1(p), o != n && (l = Q(d, p, o))) : (k1(o), t.g(o.toString()), n != null ? (p = w(l, 10), E(
8653
- a,
9024
+ if (p != 0 ? (o = e1(p), o != n && (a = d1(d, p, o))) : (k1(o), t.g(o.toString()), n != null ? (p = S(a, 10), T(
9025
+ l,
8654
9026
  1,
8655
9027
  p
8656
- )) : r && (delete a.h[6], a.g && delete a.g[6])), 2 > t.h.length || (l != null && (n = new N(), o = new N(t.toString()), W1(o, l, n), d = a1(d, o.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = o, r && 0 < n.toString().length && E(a, 7, n.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
9028
+ )) : r && (delete l.h[6], l.g && delete l.g[6])), 2 > t.h.length || (a != null && (n = new A(), o = new A(t.toString()), W1(o, a, n), d = u1(d, o.toString(), a, -1), d != 2 && d != 4 && d != 5 && (t = o, r && 0 < n.toString().length && T(l, 7, n.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8657
9029
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
8658
9030
  if (1 < r.length && r.charAt(0) == "0") {
8659
- for (E(a, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
8660
- d != 1 && E(a, 8, d);
9031
+ for (T(l, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
9032
+ d != 1 && T(l, 8, d);
8661
9033
  }
8662
- return E(a, 2, parseInt(r, 10)), a;
9034
+ return T(l, 2, parseInt(r, 10)), l;
8663
9035
  }
8664
- function G(d, t) {
9036
+ function U(d, t) {
8665
9037
  return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
8666
9038
  }
8667
- function T2(d) {
8668
- this.fa = RegExp(" "), this.ja = "", this.v = new N(), this.da = "", this.s = new N(), this.ba = new N(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = T.g(), this.$ = 0, this.h = new N(), this.ha = !1, this.o = "", this.g = new N(), this.j = [], this.ka = d, this.l = J1(this, this.ka);
9039
+ function T0(d) {
9040
+ this.fa = RegExp(" "), this.ja = "", this.v = new A(), this.da = "", this.s = new A(), this.ba = new A(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = M.g(), this.$ = 0, this.h = new A(), this.ha = !1, this.o = "", this.g = new A(), this.j = [], this.ka = d, this.l = J1(this, this.ka);
8669
9041
  }
8670
- var Z1 = new W();
8671
- E(Z1, 11, "NA");
8672
- var M2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), Y1 = /[- ]/;
9042
+ var Z1 = new z();
9043
+ T(Z1, 11, "NA");
9044
+ var M0 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), Y1 = /[- ]/;
8673
9045
  function J1(d, t) {
8674
9046
  var n = d.ga;
8675
- return t = r1(t) ? V1(n, t) : 0, d = V(d.ga, t1(t)), d ?? Z1;
9047
+ return t = o1(t) ? V1(n, t) : 0, d = H(d.ga, e1(t)), d ?? Z1;
8676
9048
  }
8677
9049
  function q1(d) {
8678
9050
  for (var t = d.j.length, n = 0; n < t; ++n) {
8679
- var r = d.j[n], o = w(r, 1);
9051
+ var r = d.j[n], o = S(r, 1);
8680
9052
  if (d.da == o) return !1;
8681
- var a = d, l = r, p = w(l, 1);
8682
- B(a.v);
8683
- var _ = a;
8684
- l = w(l, 2);
8685
- var U = "999999999999999".match(p)[0];
8686
- if (U.length < _.g.h.length ? _ = "" : (_ = U.replace(new RegExp(p, "g"), l), _ = _.replace(RegExp("9", "g"), " ")), 0 < _.length ? (a.v.g(_), a = !0) : a = !1, a) return d.da = o, d.ha = Y1.test(m(r, 4)), d.$ = 0, !0;
9053
+ var l = d, a = r, p = S(a, 1);
9054
+ R(l.v);
9055
+ var _ = l;
9056
+ a = S(a, 2);
9057
+ var F = "999999999999999".match(p)[0];
9058
+ if (F.length < _.g.h.length ? _ = "" : (_ = F.replace(new RegExp(p, "g"), a), _ = _.replace(RegExp("9", "g"), " ")), 0 < _.length ? (l.v.g(_), l = !0) : l = !1, l) return d.da = o, d.ha = Y1.test(C(r, 4)), d.$ = 0, !0;
8687
9059
  }
8688
9060
  return d.u = !1;
8689
9061
  }
8690
9062
  function X1(d, t) {
8691
- for (var n = [], r = t.length - 3, o = d.j.length, a = 0; a < o; ++a) {
8692
- var l = d.j[a];
8693
- F(l, 3) == 0 ? n.push(d.j[a]) : (l = m(l, 3, Math.min(r, F(l, 3) - 1)), t.search(l) == 0 && n.push(d.j[a]));
9063
+ for (var n = [], r = t.length - 3, o = d.j.length, l = 0; l < o; ++l) {
9064
+ var a = d.j[l];
9065
+ K(a, 3) == 0 ? n.push(d.j[l]) : (a = C(a, 3, Math.min(r, K(a, 3) - 1)), t.search(a) == 0 && n.push(d.j[l]));
8694
9066
  }
8695
9067
  d.j = n;
8696
9068
  }
8697
- function D2(d, t) {
9069
+ function D0(d, t) {
8698
9070
  d.s.g(t);
8699
9071
  var n = t;
8700
- if (D1.test(n) || d.s.h.length == 1 && y2.test(n) ? (t == "+" ? (n = t, d.ba.g(t)) : (n = g1[t], d.ba.g(n), d.g.g(n)), t = n) : (d.u = !1, d.la = !0), !d.u) {
9072
+ if (D1.test(n) || d.s.h.length == 1 && y0.test(n) ? (t == "+" ? (n = t, d.ba.g(t)) : (n = g1[t], d.ba.g(n), d.g.g(n)), t = n) : (d.u = !1, d.la = !0), !d.u) {
8701
9073
  if (!d.la) {
8702
- if ($2(d)) {
8703
- if (n2(d)) return Q1(d);
8704
- } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), n = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, n))), d.o != e2(d)) return d.h.g(" "), Q1(d);
9074
+ if ($0(d)) {
9075
+ if (n0(d)) return Q1(d);
9076
+ } else if (0 < d.o.length && (t = d.g.toString(), R(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), n = t.lastIndexOf(d.o), R(d.h), d.h.g(t.substring(0, n))), d.o != e0(d)) return d.h.g(" "), Q1(d);
8705
9077
  }
8706
9078
  return d.s.toString();
8707
9079
  }
@@ -8711,99 +9083,99 @@ const n0 = (f) => {
8711
9083
  case 2:
8712
9084
  return d.s.toString();
8713
9085
  case 3:
8714
- if ($2(d)) d.ea = !0;
8715
- else return d.o = e2(d), C1(d);
9086
+ if ($0(d)) d.ea = !0;
9087
+ else return d.o = e0(d), m1(d);
8716
9088
  default:
8717
- return d.ea ? (n2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = i2(d, t), n = d2(d), 0 < n.length ? n : (X1(d, d.g.toString()), q1(d) ? t2(d) : d.u ? l1(d, t) : d.s.toString())) : C1(d);
9089
+ return d.ea ? (n0(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = i0(d, t), n = d0(d), 0 < n.length ? n : (X1(d, d.g.toString()), q1(d) ? t0(d) : d.u ? h1(d, t) : d.s.toString())) : m1(d);
8718
9090
  }
8719
9091
  }
8720
9092
  function Q1(d) {
8721
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", C1(d);
9093
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, R(d.v), d.da = "", m1(d);
8722
9094
  }
8723
- function d2(d) {
9095
+ function d0(d) {
8724
9096
  for (var t = d.g.toString(), n = d.j.length, r = 0; r < n; ++r) {
8725
- var o = d.j[r], a = w(o, 1);
8726
- if (new RegExp("^(?:" + a + ")$").test(t) && (d.ha = Y1.test(m(o, 4)), o = t.replace(new RegExp(a, "g"), m(o, 2)), o = l1(d, o), s1(o, m2) == d.ba)) return o;
9097
+ var o = d.j[r], l = S(o, 1);
9098
+ if (new RegExp("^(?:" + l + ")$").test(t) && (d.ha = Y1.test(C(o, 4)), o = t.replace(new RegExp(l, "g"), C(o, 2)), o = h1(d, o), r1(o, C0) == d.ba)) return o;
8727
9099
  }
8728
9100
  return "";
8729
9101
  }
8730
- function l1(d, t) {
9102
+ function h1(d, t) {
8731
9103
  var n = d.h.h.length;
8732
9104
  return d.ha && 0 < n && d.h.toString().charAt(n - 1) != " " ? d.h + " " + t : d.h + t;
8733
9105
  }
8734
- function C1(d) {
9106
+ function m1(d) {
8735
9107
  var t = d.g.toString();
8736
9108
  if (3 <= t.length) {
8737
- for (var n = d.ca && d.o.length == 0 && 0 < F(d.l, 20) ? M(d.l, 20) : M(d.l, 19), r = n.length, o = 0; o < r; ++o) {
8738
- var a = n[o];
8739
- 0 < d.o.length && G1(w(a, 4)) && !m(a, 6) && !x(a, 5) || (d.o.length != 0 || d.ca || G1(w(a, 4)) || m(a, 6)) && M2.test(w(a, 2)) && d.j.push(a);
9109
+ for (var n = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? D(d.l, 20) : D(d.l, 19), r = n.length, o = 0; o < r; ++o) {
9110
+ var l = n[o];
9111
+ 0 < d.o.length && G1(S(l, 4)) && !C(l, 6) && !B(l, 5) || (d.o.length != 0 || d.ca || G1(S(l, 4)) || C(l, 6)) && M0.test(S(l, 2)) && d.j.push(l);
8740
9112
  }
8741
- return X1(d, t), t = d2(d), 0 < t.length ? t : q1(d) ? t2(d) : d.s.toString();
9113
+ return X1(d, t), t = d0(d), 0 < t.length ? t : q1(d) ? t0(d) : d.s.toString();
8742
9114
  }
8743
- return l1(d, t);
9115
+ return h1(d, t);
8744
9116
  }
8745
- function t2(d) {
9117
+ function t0(d) {
8746
9118
  var t = d.g.toString(), n = t.length;
8747
9119
  if (0 < n) {
8748
- for (var r = "", o = 0; o < n; o++) r = i2(d, t.charAt(o));
8749
- return d.u ? l1(d, r) : d.s.toString();
9120
+ for (var r = "", o = 0; o < n; o++) r = i0(d, t.charAt(o));
9121
+ return d.u ? h1(d, r) : d.s.toString();
8750
9122
  }
8751
9123
  return d.h.toString();
8752
9124
  }
8753
- function e2(d) {
9125
+ function e0(d) {
8754
9126
  var t = d.g.toString(), n = 0;
8755
- if (m(d.l, 10) != 1) var r = !1;
9127
+ if (C(d.l, 10) != 1) var r = !1;
8756
9128
  else r = d.g.toString(), r = r.charAt(0) == "1" && r.charAt(1) != "0" && r.charAt(1) != "1";
8757
- return r ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : x(d.l, 15) && (r = new RegExp("^(?:" + m(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, n = r[0].length, d.h.g(t.substring(0, n)))), B(d.g), d.g.g(t.substring(n)), t.substring(0, n);
9129
+ return r ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : B(d.l, 15) && (r = new RegExp("^(?:" + C(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, n = r[0].length, d.h.g(t.substring(0, n)))), R(d.g), d.g.g(t.substring(n)), t.substring(0, n);
8758
9130
  }
8759
- function $2(d) {
8760
- var t = d.ba.toString(), n = new RegExp("^(?:\\+|" + m(d.l, 11) + ")");
8761
- return n = t.match(n), n != null && n[0] != null && 0 < n[0].length ? (d.ca = !0, n = n[0].length, B(d.g), d.g.g(t.substring(n)), B(d.h), d.h.g(t.substring(0, n)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
9131
+ function $0(d) {
9132
+ var t = d.ba.toString(), n = new RegExp("^(?:\\+|" + C(d.l, 11) + ")");
9133
+ return n = t.match(n), n != null && n[0] != null && 0 < n[0].length ? (d.ca = !0, n = n[0].length, R(d.g), d.g.g(t.substring(n)), R(d.h), d.h.g(t.substring(0, n)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8762
9134
  }
8763
- function n2(d) {
9135
+ function n0(d) {
8764
9136
  if (d.g.h.length == 0) return !1;
8765
- var t = new N(), n = H1(d.g, t);
8766
- return n == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = t1(n), t == "001" ? d.l = V(d.ga, "" + n) : t != d.ka && (d.l = J1(d, t)), d.h.g("" + n).g(" "), d.o = "", !0);
9137
+ var t = new A(), n = H1(d.g, t);
9138
+ return n == 0 ? !1 : (R(d.g), d.g.g(t.toString()), t = e1(n), t == "001" ? d.l = H(d.ga, "" + n) : t != d.ka && (d.l = J1(d, t)), d.h.g("" + n).g(" "), d.o = "", !0);
8767
9139
  }
8768
- function i2(d, t) {
9140
+ function i0(d, t) {
8769
9141
  var n = d.v.toString();
8770
9142
  if (0 <= n.substring(d.$).search(d.fa)) {
8771
9143
  var r = n.search(d.fa);
8772
- return t = n.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
9144
+ return t = n.replace(d.fa, t), R(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
8773
9145
  }
8774
9146
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
8775
9147
  }
8776
- const s2 = (d) => {
9148
+ const s0 = (d) => {
8777
9149
  const t = [];
8778
9150
  return d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || t.push("MOBILE"), d.includes("FIXED_LINE") || t.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && t.push("FIXED_LINE_OR_MOBILE"), d.concat(t);
8779
9151
  }, y1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
8780
9152
  e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
8781
9153
  try {
8782
- const n = d.replace(/[^+0-9]/g, ""), r = new T2(t);
9154
+ const n = d.replace(/[^+0-9]/g, ""), r = new T0(t);
8783
9155
  t = "";
8784
- for (let o = 0; o < n.length; o++) r.ja = D2(r, n.charAt(o)), t = r.ja;
9156
+ for (let o = 0; o < n.length; o++) r.ja = D0(r, n.charAt(o)), t = r.ja;
8785
9157
  return t;
8786
9158
  } catch {
8787
9159
  return d;
8788
9160
  }
8789
9161
  }), e("intlTelInputUtilsTemp.formatNumber", (d, t, n) => {
8790
9162
  try {
8791
- const o = T.g(), a = z(o, d, t);
8792
- var r = u1(o, a, -1);
8793
- return r == 0 || r == 4 ? o.format(a, typeof n > "u" ? 0 : n) : d;
9163
+ const o = M.g(), l = Z(o, d, t);
9164
+ var r = a1(o, l, -1);
9165
+ return r == 0 || r == 4 ? o.format(l, typeof n > "u" ? 0 : n) : d;
8794
9166
  } catch {
8795
9167
  return d;
8796
9168
  }
8797
9169
  }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, n, r) => {
8798
9170
  try {
8799
- const _ = T.g();
9171
+ const _ = M.g();
8800
9172
  d: {
8801
9173
  var o = _;
8802
- if (r1(d)) {
8803
- var a = o1(V(o, d), n);
9174
+ if (o1(d)) {
9175
+ var l = l1(H(o, d), n);
8804
9176
  try {
8805
- if (x(a, 6)) {
8806
- var l = m(a, 6), p = z1(o, l, d, !1);
9177
+ if (B(l, 6)) {
9178
+ var a = C(l, 6), p = z1(o, a, d, !1);
8807
9179
  break d;
8808
9180
  }
8809
9181
  } catch {
@@ -8817,13 +9189,13 @@ const n0 = (f) => {
8817
9189
  }
8818
9190
  }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
8819
9191
  try {
8820
- return m(z(T.g(), d, t), 3);
9192
+ return C(Z(M.g(), d, t), 3);
8821
9193
  } catch {
8822
9194
  return "";
8823
9195
  }
8824
9196
  }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
8825
9197
  try {
8826
- const n = T.g(), r = z(n, d, t);
9198
+ const n = M.g(), r = Z(n, d, t);
8827
9199
  return F1(n, r);
8828
9200
  } catch {
8829
9201
  return -99;
@@ -8831,48 +9203,48 @@ const n0 = (f) => {
8831
9203
  }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
8832
9204
  if (!t) return 1;
8833
9205
  try {
8834
- const n = T.g(), r = z(n, d, t);
8835
- return u1(n, r, -1);
9206
+ const n = M.g(), r = Z(n, d, t);
9207
+ return a1(n, r, -1);
8836
9208
  } catch (n) {
8837
9209
  return n.message === "Invalid country calling code" ? 1 : 3 >= d.length || n.message === "Phone number too short after IDD" || n.message === "The string supplied is too short to be a phone number" ? 2 : n.message === "The string supplied is too long to be a phone number" ? 3 : -99;
8838
9210
  }
8839
9211
  }), e("intlTelInputUtilsTemp.isValidNumber", (d, t, n) => {
8840
9212
  try {
8841
- const r = T.g(), o = z(r, d, t), a = E2(r, o);
9213
+ const r = M.g(), o = Z(r, d, t), l = E0(r, o);
8842
9214
  if (n) {
8843
- const l = s2(n).map((p) => y1[p]);
8844
- return a && l.includes(F1(r, o));
9215
+ const a = s0(n).map((p) => y1[p]);
9216
+ return l && a.includes(F1(r, o));
8845
9217
  }
8846
- return a;
9218
+ return l;
8847
9219
  } catch {
8848
9220
  return !1;
8849
9221
  }
8850
9222
  }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, n) => {
8851
9223
  try {
8852
- const r = T.g(), o = z(r, d, t);
9224
+ const r = M.g(), o = Z(r, d, t);
8853
9225
  if (n) {
8854
- const a = s2(n);
8855
- for (let l of a) if (u1(r, o, y1[l]) === 0) return !0;
9226
+ const l = s0(n);
9227
+ for (let a of l) if (a1(r, o, y1[a]) === 0) return !0;
8856
9228
  return !1;
8857
9229
  }
8858
- return u1(r, o, -1) === 0;
9230
+ return a1(r, o, -1) === 0;
8859
9231
  } catch {
8860
9232
  return !1;
8861
9233
  }
8862
9234
  }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
8863
9235
  try {
8864
- return m(z(T.g(), d, t), 2).toString();
9236
+ return C(Z(M.g(), d, t), 2).toString();
8865
9237
  } catch {
8866
9238
  return "";
8867
9239
  }
8868
9240
  }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", y1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8869
9241
  })();
8870
- const h2 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, i0 = h2.intlTelInputUtilsTemp;
8871
- delete h2.intlTelInputUtilsTemp;
8872
- y.utils = i0;
8873
- const r0 = {
9242
+ const h0 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, i2 = h0.intlTelInputUtilsTemp;
9243
+ delete h0.intlTelInputUtilsTemp;
9244
+ y.utils = i2;
9245
+ const r2 = {
8874
9246
  __name: "IntlTelInputWithUtils",
8875
- props: /* @__PURE__ */ r2({
9247
+ props: /* @__PURE__ */ r0({
8876
9248
  disabled: {
8877
9249
  type: Boolean,
8878
9250
  default: !1
@@ -8896,47 +9268,47 @@ const r0 = {
8896
9268
  },
8897
9269
  modelModifiers: {}
8898
9270
  }),
8899
- emits: /* @__PURE__ */ r2([
9271
+ emits: /* @__PURE__ */ r0([
8900
9272
  "changeNumber",
8901
9273
  "changeCountry",
8902
9274
  "changeValidity",
8903
9275
  "changeErrorCode"
8904
9276
  ], ["update:modelValue"]),
8905
9277
  setup(f, { expose: e, emit: $ }) {
8906
- const i = P2(f, "modelValue"), s = f, u = $, h = I1(), c = I1(), C = I1(!1), g = () => c.value ? s.options.strictMode ? c.value.isValidNumberPrecise() : c.value.isValidNumber() : null, I = () => {
9278
+ const i = P0(f, "modelValue"), s = f, u = $, h = I1(), c = I1(), m = I1(!1), g = () => c.value ? s.options.strictMode ? c.value.isValidNumberPrecise() : c.value.isValidNumber() : null, I = () => {
8907
9279
  let v = g();
8908
- C.value !== v && (C.value = v, u("changeValidity", !!v), u(
9280
+ m.value !== v && (m.value = v, u("changeValidity", !!v), u(
8909
9281
  "changeErrorCode",
8910
9282
  v ? null : c.value.getValidationError()
8911
9283
  ));
8912
- }, S = () => {
9284
+ }, w = () => {
8913
9285
  var v;
8914
9286
  u("changeNumber", ((v = c.value) == null ? void 0 : v.getNumber()) ?? ""), I();
8915
- }, R = () => {
9287
+ }, k = () => {
8916
9288
  var v;
8917
- u("changeCountry", ((v = c.value) == null ? void 0 : v.getSelectedCountryData().iso2) ?? ""), S(), I();
9289
+ u("changeCountry", ((v = c.value) == null ? void 0 : v.getSelectedCountryData().iso2) ?? ""), w(), I();
8918
9290
  };
8919
- return x2(() => {
8920
- h.value && (c.value = y(h.value, s.options), s.value && c.value.setNumber(s.value), s.disabled && c.value.setDisabled(s.disabled), C.value = g());
8921
- }), B2(
9291
+ return x0(() => {
9292
+ h.value && (c.value = y(h.value, s.options), s.value && c.value.setNumber(s.value), s.disabled && c.value.setDisabled(s.disabled), m.value = g());
9293
+ }), B0(
8922
9294
  () => s.disabled,
8923
9295
  (v) => {
8924
- var D;
8925
- return (D = c.value) == null ? void 0 : D.setDisabled(v);
9296
+ var E;
9297
+ return (E = c.value) == null ? void 0 : E.setDisabled(v);
8926
9298
  }
8927
- ), R2(() => {
9299
+ ), R0(() => {
8928
9300
  var v;
8929
9301
  return (v = c.value) == null ? void 0 : v.destroy();
8930
- }), e({ instance: c, input: h }), (v, D) => k2((G2(), O2("input", U2({
9302
+ }), e({ instance: c, input: h }), (v, E) => k0((G0(), O0("input", U0({
8931
9303
  ref_key: "input",
8932
9304
  ref: h,
8933
- "onUpdate:modelValue": D[0] || (D[0] = (A) => i.value = A),
9305
+ "onUpdate:modelValue": E[0] || (E[0] = (N) => i.value = N),
8934
9306
  type: "tel",
8935
- onCountrychange: R,
8936
- onInput: S
9307
+ onCountrychange: k,
9308
+ onInput: w
8937
9309
  }, f.inputProps), null, 16)), [
8938
9310
  [
8939
- F2,
9311
+ F0,
8940
9312
  i.value,
8941
9313
  void 0,
8942
9314
  { lazy: !0 }
@@ -8945,5 +9317,5 @@ const r0 = {
8945
9317
  }
8946
9318
  };
8947
9319
  export {
8948
- r0 as default
9320
+ r2 as default
8949
9321
  };