fullstack-phone 1.140.0 → 1.142.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +765 -0
- package/README.md +1 -1
- package/client/index.js +46 -51
- package/package.json +6 -6
- package/server/metadata/metadata.json +18 -29
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.142.0
|
|
4
|
+
|
|
5
|
+
* Upgraded to Google Closure Compiler and Library 20230802.0.0
|
|
6
|
+
* Client: Replaced global scope modification with proper CJS support using module.exports
|
|
7
|
+
|
|
8
|
+
## 1.141.0
|
|
9
|
+
|
|
10
|
+
* Metadata:
|
|
11
|
+
* Updated to libphonenumber v8.13.26
|
|
12
|
+
|
|
13
|
+
## 1.140.0
|
|
14
|
+
|
|
15
|
+
* Metadata:
|
|
16
|
+
* Updated to libphonenumber v8.13.25
|
|
17
|
+
|
|
18
|
+
## 1.139.0
|
|
19
|
+
|
|
20
|
+
* Metadata:
|
|
21
|
+
* Updated to libphonenumber v8.13.24
|
|
22
|
+
|
|
23
|
+
## 1.138.0
|
|
24
|
+
|
|
25
|
+
* Metadata:
|
|
26
|
+
* Updated to libphonenumber v8.13.23
|
|
27
|
+
|
|
28
|
+
## 1.137.0
|
|
29
|
+
|
|
30
|
+
* Metadata:
|
|
31
|
+
* Updated to libphonenumber v8.13.22
|
|
32
|
+
|
|
33
|
+
## 1.136.0
|
|
34
|
+
|
|
35
|
+
* Metadata:
|
|
36
|
+
* Updated to libphonenumber v8.13.21
|
|
37
|
+
|
|
38
|
+
## 1.135.0
|
|
39
|
+
|
|
40
|
+
* Metadata:
|
|
41
|
+
* Updated to libphonenumber v8.13.20
|
|
42
|
+
|
|
43
|
+
## 1.134.0
|
|
44
|
+
|
|
45
|
+
* Metadata:
|
|
46
|
+
* Updated to libphonenumber v8.13.19
|
|
47
|
+
|
|
48
|
+
## 1.133.0
|
|
49
|
+
|
|
50
|
+
* Metadata:
|
|
51
|
+
* Updated to libphonenumber v8.13.18
|
|
52
|
+
|
|
53
|
+
## 1.132.0
|
|
54
|
+
|
|
55
|
+
* Metadata:
|
|
56
|
+
* Updated to libphonenumber v8.13.17
|
|
57
|
+
|
|
58
|
+
## 1.131.0
|
|
59
|
+
|
|
60
|
+
* Metadata:
|
|
61
|
+
* Updated to libphonenumber v8.13.16
|
|
62
|
+
|
|
63
|
+
## 1.130.0
|
|
64
|
+
|
|
65
|
+
* Metadata:
|
|
66
|
+
* Updated to libphonenumber v8.13.15
|
|
67
|
+
|
|
68
|
+
## 1.129.0
|
|
69
|
+
|
|
70
|
+
* Metadata:
|
|
71
|
+
* Updated to libphonenumber v8.13.14
|
|
72
|
+
|
|
73
|
+
## 1.128.0
|
|
74
|
+
|
|
75
|
+
* Metadata:
|
|
76
|
+
* Updated to libphonenumber v8.13.13
|
|
77
|
+
|
|
78
|
+
## 1.127.0
|
|
79
|
+
|
|
80
|
+
* Metadata:
|
|
81
|
+
* Updated to libphonenumber v8.13.11
|
|
82
|
+
|
|
83
|
+
## 1.126.0
|
|
84
|
+
|
|
85
|
+
* Metadata:
|
|
86
|
+
* Updated to libphonenumber v8.13.10
|
|
87
|
+
|
|
88
|
+
## 1.125.0
|
|
89
|
+
|
|
90
|
+
* Metadata:
|
|
91
|
+
* Updated to libphonenumber v8.13.9
|
|
92
|
+
|
|
93
|
+
## 1.124.0
|
|
94
|
+
|
|
95
|
+
* Metadata:
|
|
96
|
+
* Updated to libphonenumber v8.13.8
|
|
97
|
+
|
|
98
|
+
## 1.123.0
|
|
99
|
+
|
|
100
|
+
* Metadata:
|
|
101
|
+
* Updated to libphonenumber v8.13.7
|
|
102
|
+
|
|
103
|
+
## 1.122.0
|
|
104
|
+
|
|
105
|
+
* Metadata:
|
|
106
|
+
* Updated to libphonenumber v8.13.6
|
|
107
|
+
|
|
108
|
+
## 1.121.0
|
|
109
|
+
|
|
110
|
+
* Metadata:
|
|
111
|
+
* Updated to libphonenumber v8.13.5
|
|
112
|
+
|
|
113
|
+
## 1.120.0
|
|
114
|
+
|
|
115
|
+
* Metadata:
|
|
116
|
+
* Updated to libphonenumber v8.13.4
|
|
117
|
+
|
|
118
|
+
## 1.119.0
|
|
119
|
+
|
|
120
|
+
* Metadata:
|
|
121
|
+
* Updated to libphonenumber v8.13.3
|
|
122
|
+
|
|
123
|
+
## 1.118.0
|
|
124
|
+
|
|
125
|
+
* Metadata:
|
|
126
|
+
* Updated to libphonenumber v8.13.2
|
|
127
|
+
|
|
128
|
+
## 1.117.0
|
|
129
|
+
|
|
130
|
+
* Metadata:
|
|
131
|
+
* Updated to libphonenumber v8.13.1
|
|
132
|
+
|
|
133
|
+
## 1.116.0
|
|
134
|
+
|
|
135
|
+
* Metadata:
|
|
136
|
+
* Updated to libphonenumber v8.13.0
|
|
137
|
+
|
|
138
|
+
## 1.115.0
|
|
139
|
+
|
|
140
|
+
* Metadata:
|
|
141
|
+
* Updated to libphonenumber v8.12.57
|
|
142
|
+
|
|
143
|
+
## 1.114.0
|
|
144
|
+
|
|
145
|
+
* Metadata:
|
|
146
|
+
* Updated to libphonenumber v8.12.56
|
|
147
|
+
|
|
148
|
+
## 1.113.0
|
|
149
|
+
|
|
150
|
+
* Metadata:
|
|
151
|
+
* Updated to libphonenumber v8.12.55
|
|
152
|
+
|
|
153
|
+
## 1.112.0
|
|
154
|
+
|
|
155
|
+
* Metadata:
|
|
156
|
+
* Updated to libphonenumber v8.12.54
|
|
157
|
+
|
|
158
|
+
## 1.111.0
|
|
159
|
+
|
|
160
|
+
* Metadata:
|
|
161
|
+
* Updated to libphonenumber v8.12.53
|
|
162
|
+
|
|
163
|
+
## 1.110.0
|
|
164
|
+
|
|
165
|
+
* Metadata:
|
|
166
|
+
* Updated to libphonenumber v8.12.52
|
|
167
|
+
|
|
168
|
+
## 1.109.0
|
|
169
|
+
|
|
170
|
+
* Metadata:
|
|
171
|
+
* Updated to libphonenumber v8.12.51
|
|
172
|
+
|
|
173
|
+
## 1.108.0
|
|
174
|
+
|
|
175
|
+
* Metadata:
|
|
176
|
+
* Updated to libphonenumber v8.12.50
|
|
177
|
+
|
|
178
|
+
## 1.107.0
|
|
179
|
+
|
|
180
|
+
* Metadata:
|
|
181
|
+
* Updated to libphonenumber v8.12.49
|
|
182
|
+
|
|
183
|
+
## 1.106.0
|
|
184
|
+
|
|
185
|
+
* Metadata:
|
|
186
|
+
* Updated to libphonenumber v8.12.48
|
|
187
|
+
|
|
188
|
+
## 1.105.0
|
|
189
|
+
|
|
190
|
+
* Metadata:
|
|
191
|
+
* Updated to libphonenumber v8.12.47
|
|
192
|
+
|
|
193
|
+
## 1.104.0
|
|
194
|
+
|
|
195
|
+
* Metadata:
|
|
196
|
+
* Updated to libphonenumber v8.12.46
|
|
197
|
+
|
|
198
|
+
## 1.103.0
|
|
199
|
+
|
|
200
|
+
* Metadata:
|
|
201
|
+
* Updated to libphonenumber v8.12.45
|
|
202
|
+
|
|
203
|
+
## 1.102.0
|
|
204
|
+
|
|
205
|
+
* Metadata:
|
|
206
|
+
* Updated to libphonenumber v8.12.44
|
|
207
|
+
|
|
208
|
+
## 1.101.0
|
|
209
|
+
|
|
210
|
+
* Metadata:
|
|
211
|
+
* Updated to libphonenumber v8.12.43
|
|
212
|
+
|
|
213
|
+
## 1.100.0
|
|
214
|
+
|
|
215
|
+
* Metadata:
|
|
216
|
+
* Updated to libphonenumber v8.12.42
|
|
217
|
+
|
|
218
|
+
## 1.99.0
|
|
219
|
+
|
|
220
|
+
* Metadata:
|
|
221
|
+
* Updated to libphonenumber v8.12.41
|
|
222
|
+
|
|
223
|
+
## 1.98.0
|
|
224
|
+
|
|
225
|
+
* Metadata:
|
|
226
|
+
* Updated to libphonenumber v8.12.40
|
|
227
|
+
|
|
228
|
+
## 1.97.0
|
|
229
|
+
|
|
230
|
+
* Metadata:
|
|
231
|
+
* Updated to libphonenumber v8.12.39
|
|
232
|
+
|
|
233
|
+
## 1.96.0
|
|
234
|
+
|
|
235
|
+
* Metadata:
|
|
236
|
+
* Updated to libphonenumber v8.12.38
|
|
237
|
+
|
|
238
|
+
## 1.95.0
|
|
239
|
+
|
|
240
|
+
* Metadata:
|
|
241
|
+
* Updated to libphonenumber v8.12.37
|
|
242
|
+
|
|
243
|
+
## 1.94.0
|
|
244
|
+
|
|
245
|
+
* Metadata:
|
|
246
|
+
* Updated to libphonenumber v8.12.36
|
|
247
|
+
|
|
248
|
+
## 1.93.0
|
|
249
|
+
|
|
250
|
+
* Metadata:
|
|
251
|
+
* Updated to libphonenumber v8.12.35
|
|
252
|
+
|
|
253
|
+
## 1.92.0
|
|
254
|
+
|
|
255
|
+
* Metadata:
|
|
256
|
+
* Updated to libphonenumber v8.12.34
|
|
257
|
+
|
|
258
|
+
## 1.91.0
|
|
259
|
+
|
|
260
|
+
* Metadata:
|
|
261
|
+
* Updated to libphonenumber v8.12.33
|
|
262
|
+
|
|
263
|
+
## 1.90.0
|
|
264
|
+
|
|
265
|
+
* Metadata:
|
|
266
|
+
* Updated to libphonenumber v8.12.32
|
|
267
|
+
|
|
268
|
+
## 1.89.0
|
|
269
|
+
|
|
270
|
+
* API:
|
|
271
|
+
* Updated [`validatePhoneNumber`](./README.md#validatephonenumber) and [`parsePhoneNumber`](./README.md#parsephonenumber) to make `regionCode` parameter optional
|
|
272
|
+
* `validatePhoneNumber`: If `regionCode` is omitted, the phone number is validated based on the region inferred from the phone number itself
|
|
273
|
+
* `parsePhoneNumber`: The `regionCode` can be safely omitted if the phone number string contains "+" followed by the country code (e.g., international, E.164, or RFC3966 formats)
|
|
274
|
+
* Note that the handler needs to have already been instantiated with metadata for the expected region(s)
|
|
275
|
+
* Added [`inferPhoneNumberType`](./README.md#inferphonenumbertype) and [`inferPhoneNumberRegion`](./README.md#inferphonenumberregion) methods
|
|
276
|
+
* Added [`validateLength`](./README.md#validatelength) method to perform length-only validations
|
|
277
|
+
* Added [`inputDigitAndRememberPosition`](./README.md#inputdigitandrememberposition) and [`getRememberedPosition`](./README.md#getrememberedposition) methods to the AsYouTypeFormatter
|
|
278
|
+
|
|
279
|
+
## 1.88.0
|
|
280
|
+
|
|
281
|
+
* Metadata:
|
|
282
|
+
* Updated to libphonenumber v8.12.31
|
|
283
|
+
|
|
284
|
+
## 1.87.0
|
|
285
|
+
|
|
286
|
+
* Metadata:
|
|
287
|
+
* Updated to libphonenumber v8.12.30
|
|
288
|
+
|
|
289
|
+
## 1.86.0
|
|
290
|
+
|
|
291
|
+
* Metadata:
|
|
292
|
+
* Updated to libphonenumber v8.12.28
|
|
293
|
+
|
|
294
|
+
## 1.85.0
|
|
295
|
+
|
|
296
|
+
* Metadata:
|
|
297
|
+
* Updated to libphonenumber v8.12.27
|
|
298
|
+
|
|
299
|
+
## 1.84.0
|
|
300
|
+
|
|
301
|
+
* Metadata:
|
|
302
|
+
* Updated to libphonenumber v8.12.26
|
|
303
|
+
|
|
304
|
+
## 1.83.0
|
|
305
|
+
|
|
306
|
+
* Metadata:
|
|
307
|
+
* Updated to libphonenumber v8.12.25
|
|
308
|
+
|
|
309
|
+
## 1.82.0
|
|
310
|
+
|
|
311
|
+
* Metadata:
|
|
312
|
+
* Updated to libphonenumber v8.12.24
|
|
313
|
+
|
|
314
|
+
## 1.80.0
|
|
315
|
+
|
|
316
|
+
* Metadata:
|
|
317
|
+
* Updated to libphonenumber v8.12.23
|
|
318
|
+
|
|
319
|
+
## 1.79.0
|
|
320
|
+
|
|
321
|
+
* Metadata:
|
|
322
|
+
* Updated to libphonenumber v8.12.22
|
|
323
|
+
|
|
324
|
+
## 1.78.0
|
|
325
|
+
|
|
326
|
+
* Metadata:
|
|
327
|
+
* Updated to libphonenumber v8.12.21
|
|
328
|
+
|
|
329
|
+
## 1.77.0
|
|
330
|
+
|
|
331
|
+
* Metadata:
|
|
332
|
+
* Updated to libphonenumber v8.12.18
|
|
333
|
+
|
|
334
|
+
## 1.76.0
|
|
335
|
+
|
|
336
|
+
* Metadata:
|
|
337
|
+
* Updated to libphonenumber v8.12.17
|
|
338
|
+
|
|
339
|
+
## 1.75.0
|
|
340
|
+
|
|
341
|
+
* Metadata:
|
|
342
|
+
* Updated to libphonenumber v8.12.16
|
|
343
|
+
|
|
344
|
+
## 1.74.0
|
|
345
|
+
|
|
346
|
+
* Switched build from Google Closure Compiler Service to [google-closure-compiler npm package](https://www.npmjs.com/package/google-closure-compiler)
|
|
347
|
+
|
|
348
|
+
## 1.73.0
|
|
349
|
+
|
|
350
|
+
* Metadata:
|
|
351
|
+
* Updated to libphonenumber v8.12.15
|
|
352
|
+
|
|
353
|
+
## 1.72.0
|
|
354
|
+
|
|
355
|
+
* Metadata:
|
|
356
|
+
* Updated to libphonenumber v8.12.14
|
|
357
|
+
|
|
358
|
+
## 1.71.0
|
|
359
|
+
|
|
360
|
+
* Metadata:
|
|
361
|
+
* Updated to libphonenumber v8.12.13
|
|
362
|
+
|
|
363
|
+
## 1.70.0
|
|
364
|
+
|
|
365
|
+
* Metadata:
|
|
366
|
+
* Updated to libphonenumber v8.12.12
|
|
367
|
+
|
|
368
|
+
## 1.69.0
|
|
369
|
+
|
|
370
|
+
* Metadata:
|
|
371
|
+
* Updated to libphonenumber v8.12.11
|
|
372
|
+
|
|
373
|
+
## 1.68.0
|
|
374
|
+
|
|
375
|
+
* Metadata:
|
|
376
|
+
* Updated to libphonenumber v8.12.10
|
|
377
|
+
|
|
378
|
+
## 1.67.0
|
|
379
|
+
|
|
380
|
+
* Metadata:
|
|
381
|
+
* Updated to libphonenumber v8.12.9
|
|
382
|
+
|
|
383
|
+
## 1.66.0
|
|
384
|
+
|
|
385
|
+
* Metadata:
|
|
386
|
+
* Updated to libphonenumber v8.12.8
|
|
387
|
+
|
|
388
|
+
## 1.65.0
|
|
389
|
+
|
|
390
|
+
* Metadata:
|
|
391
|
+
* Updated to libphonenumber v8.12.7
|
|
392
|
+
|
|
393
|
+
## 1.64.0
|
|
394
|
+
|
|
395
|
+
* Metadata:
|
|
396
|
+
* Updated to libphonenumber v8.12.6
|
|
397
|
+
|
|
398
|
+
## 1.63.0
|
|
399
|
+
|
|
400
|
+
* Metadata:
|
|
401
|
+
* Updated to libphonenumber v8.12.5
|
|
402
|
+
|
|
403
|
+
## 1.62.0
|
|
404
|
+
|
|
405
|
+
* Metadata:
|
|
406
|
+
* Updated to libphonenumber v8.12.4
|
|
407
|
+
|
|
408
|
+
## 1.61.0
|
|
409
|
+
|
|
410
|
+
* Metadata:
|
|
411
|
+
* Updated to libphonenumber v8.12.3
|
|
412
|
+
|
|
413
|
+
## 1.60.0
|
|
414
|
+
|
|
415
|
+
* Metadata:
|
|
416
|
+
* Updated to libphonenumber v8.12.2
|
|
417
|
+
|
|
418
|
+
## 1.59.0
|
|
419
|
+
|
|
420
|
+
* Metadata:
|
|
421
|
+
* Updated to libphonenumber v8.12.1
|
|
422
|
+
|
|
423
|
+
## 1.58.0
|
|
424
|
+
|
|
425
|
+
* Metadata:
|
|
426
|
+
* Updated to libphonenumber v8.11.5
|
|
427
|
+
|
|
428
|
+
## 1.57.0
|
|
429
|
+
|
|
430
|
+
* Metadata:
|
|
431
|
+
* Updated to libphonenumber v8.11.4
|
|
432
|
+
|
|
433
|
+
## 1.56.0
|
|
434
|
+
|
|
435
|
+
* Metadata:
|
|
436
|
+
* Updated to libphonenumber v8.11.3
|
|
437
|
+
|
|
438
|
+
## 1.55.0
|
|
439
|
+
|
|
440
|
+
* Metadata:
|
|
441
|
+
* Updated to libphonenumber v8.11.2
|
|
442
|
+
|
|
443
|
+
## 1.54.0
|
|
444
|
+
|
|
445
|
+
* Metadata:
|
|
446
|
+
* Updated to libphonenumber v8.11.1
|
|
447
|
+
|
|
448
|
+
## 1.53.0
|
|
449
|
+
|
|
450
|
+
* Metadata:
|
|
451
|
+
* Updated to libphonenumber v8.11.0
|
|
452
|
+
|
|
453
|
+
## 1.52.0
|
|
454
|
+
|
|
455
|
+
* Metadata:
|
|
456
|
+
* Updated to libphonenumber v8.10.23
|
|
457
|
+
|
|
458
|
+
## 1.51.0
|
|
459
|
+
|
|
460
|
+
* Client: Expanded support for finding global scope ([@rxaviers](https://github.com/rxaviers), [#11](https://github.com/paypal/fullstack-phone/pull/11))
|
|
461
|
+
|
|
462
|
+
## 1.50.0
|
|
463
|
+
|
|
464
|
+
* Metadata:
|
|
465
|
+
* Updated to libphonenumber v8.10.22
|
|
466
|
+
|
|
467
|
+
## 1.49.0
|
|
468
|
+
|
|
469
|
+
* Metadata:
|
|
470
|
+
* Updated to libphonenumber v8.10.21
|
|
471
|
+
|
|
472
|
+
## 1.48.0
|
|
473
|
+
|
|
474
|
+
* Metadata:
|
|
475
|
+
* Updated to libphonenumber v8.10.20
|
|
476
|
+
|
|
477
|
+
## 1.47.0
|
|
478
|
+
|
|
479
|
+
* Metadata:
|
|
480
|
+
* Updated to libphonenumber v8.10.19
|
|
481
|
+
|
|
482
|
+
## 1.46.0
|
|
483
|
+
|
|
484
|
+
* Metadata:
|
|
485
|
+
* Updated to libphonenumber v8.10.18
|
|
486
|
+
|
|
487
|
+
## 1.45.0
|
|
488
|
+
|
|
489
|
+
* Metadata:
|
|
490
|
+
* Updated to libphonenumber v8.10.16
|
|
491
|
+
|
|
492
|
+
## 1.44.0
|
|
493
|
+
|
|
494
|
+
* Metadata:
|
|
495
|
+
* Updated to libphonenumber v8.10.15
|
|
496
|
+
|
|
497
|
+
## 1.43.0
|
|
498
|
+
|
|
499
|
+
* Metadata:
|
|
500
|
+
* Updated to libphonenumber v8.10.14
|
|
501
|
+
|
|
502
|
+
## 1.42.0
|
|
503
|
+
|
|
504
|
+
* Metadata:
|
|
505
|
+
* Updated to libphonenumber v8.10.13
|
|
506
|
+
|
|
507
|
+
## 1.41.0
|
|
508
|
+
|
|
509
|
+
* Metadata:
|
|
510
|
+
* Updated to libphonenumber v8.10.12
|
|
511
|
+
|
|
512
|
+
## 1.40.0
|
|
513
|
+
|
|
514
|
+
* Metadata:
|
|
515
|
+
* Updated to libphonenumber v8.10.11
|
|
516
|
+
|
|
517
|
+
## 1.39.0
|
|
518
|
+
|
|
519
|
+
* Metadata:
|
|
520
|
+
* Updated to libphonenumber v8.10.10
|
|
521
|
+
|
|
522
|
+
## 1.38.0
|
|
523
|
+
|
|
524
|
+
* Metadata:
|
|
525
|
+
* Updated to libphonenumber v8.10.9
|
|
526
|
+
* Development:
|
|
527
|
+
* Add `publishConfig` for public registry
|
|
528
|
+
|
|
529
|
+
## 1.37.0
|
|
530
|
+
|
|
531
|
+
* Metadata:
|
|
532
|
+
* Updated to libphonenumber v8.10.8
|
|
533
|
+
|
|
534
|
+
## 1.36.0
|
|
535
|
+
|
|
536
|
+
* Metadata:
|
|
537
|
+
* Updated to libphonenumber v8.10.7
|
|
538
|
+
|
|
539
|
+
## 1.35.0
|
|
540
|
+
|
|
541
|
+
* Metadata:
|
|
542
|
+
* Updated to libphonenumber v8.10.6
|
|
543
|
+
|
|
544
|
+
## 1.34.0
|
|
545
|
+
|
|
546
|
+
* Metadata:
|
|
547
|
+
* Updated to libphonenumber v8.10.5
|
|
548
|
+
|
|
549
|
+
## 1.33.0
|
|
550
|
+
|
|
551
|
+
* Metadata:
|
|
552
|
+
* Updated to libphonenumber v8.10.4
|
|
553
|
+
|
|
554
|
+
## 1.32.0
|
|
555
|
+
|
|
556
|
+
* Metadata:
|
|
557
|
+
* Updated to libphonenumber v8.10.3
|
|
558
|
+
|
|
559
|
+
## 1.31.0
|
|
560
|
+
|
|
561
|
+
* Metadata:
|
|
562
|
+
* Updated to libphonenumber v8.10.2
|
|
563
|
+
|
|
564
|
+
## 1.30.0
|
|
565
|
+
|
|
566
|
+
* Metadata:
|
|
567
|
+
* Updated to libphonenumber v8.10.1
|
|
568
|
+
|
|
569
|
+
## 1.29.0
|
|
570
|
+
|
|
571
|
+
* Metadata:
|
|
572
|
+
* Updated to libphonenumber v8.10.0
|
|
573
|
+
|
|
574
|
+
## 1.28.0
|
|
575
|
+
|
|
576
|
+
* Metadata:
|
|
577
|
+
* Updated to libphonenumber v8.9.16
|
|
578
|
+
|
|
579
|
+
## 1.27.0
|
|
580
|
+
|
|
581
|
+
* Metadata:
|
|
582
|
+
* Updated to libphonenumber v8.9.15
|
|
583
|
+
|
|
584
|
+
## 1.26.0
|
|
585
|
+
|
|
586
|
+
* Metadata:
|
|
587
|
+
* Updated to libphonenumber v8.9.14
|
|
588
|
+
|
|
589
|
+
## 1.25.0
|
|
590
|
+
|
|
591
|
+
* Metadata:
|
|
592
|
+
* Updated to libphonenumber v8.9.13
|
|
593
|
+
|
|
594
|
+
## 1.24.0
|
|
595
|
+
|
|
596
|
+
* Metadata:
|
|
597
|
+
* Updated to libphonenumber v8.9.12
|
|
598
|
+
|
|
599
|
+
## 1.23.0
|
|
600
|
+
|
|
601
|
+
* Metadata:
|
|
602
|
+
* Updated to libphonenumber v8.9.10
|
|
603
|
+
|
|
604
|
+
## 1.22.0
|
|
605
|
+
|
|
606
|
+
* Recompiled with [Google Closure Compiler Service](https://developers.google.com/closure/compiler/docs/api-ref)
|
|
607
|
+
|
|
608
|
+
## 1.21.0
|
|
609
|
+
|
|
610
|
+
* Metadata:
|
|
611
|
+
* Updated to libphonenumber v8.9.9
|
|
612
|
+
|
|
613
|
+
## 1.20.0
|
|
614
|
+
|
|
615
|
+
* Metadata:
|
|
616
|
+
* Updated to libphonenumber v8.9.8
|
|
617
|
+
|
|
618
|
+
## 1.19.0
|
|
619
|
+
|
|
620
|
+
* Metadata:
|
|
621
|
+
* Updated to libphonenumber v8.9.7
|
|
622
|
+
|
|
623
|
+
## 1.18.0
|
|
624
|
+
|
|
625
|
+
* Metadata:
|
|
626
|
+
* Updated to libphonenumber v8.9.6
|
|
627
|
+
|
|
628
|
+
## 1.17.0
|
|
629
|
+
|
|
630
|
+
* Metadata:
|
|
631
|
+
* Updated to libphonenumber v8.9.5
|
|
632
|
+
|
|
633
|
+
## 1.16.0
|
|
634
|
+
|
|
635
|
+
* Metadata:
|
|
636
|
+
* Updated to libphonenumber v8.9.4
|
|
637
|
+
|
|
638
|
+
## 1.15.0
|
|
639
|
+
|
|
640
|
+
* Metadata:
|
|
641
|
+
* Updated to libphonenumber v8.9.3
|
|
642
|
+
|
|
643
|
+
## 1.14.0
|
|
644
|
+
|
|
645
|
+
* Metadata:
|
|
646
|
+
* Updated to libphonenumber v8.9.2
|
|
647
|
+
* Updated to Closure library v20180204
|
|
648
|
+
|
|
649
|
+
## 1.13.0
|
|
650
|
+
|
|
651
|
+
* Metadata:
|
|
652
|
+
* Updated to libphonenumber v8.9.1
|
|
653
|
+
|
|
654
|
+
## 1.12.0
|
|
655
|
+
|
|
656
|
+
* Metadata:
|
|
657
|
+
* Updated to libphonenumber v8.8.11
|
|
658
|
+
* Includes new metadata for XK with country code +383 (no longer copied from MC +377)
|
|
659
|
+
|
|
660
|
+
## 1.11.0
|
|
661
|
+
|
|
662
|
+
* Metadata:
|
|
663
|
+
* Updated to libphonenumber v8.8.10
|
|
664
|
+
* Updated to Closure library v20171203
|
|
665
|
+
|
|
666
|
+
## 1.10.0
|
|
667
|
+
|
|
668
|
+
* Metadata:
|
|
669
|
+
* Updated to libphonenumber v8.8.9
|
|
670
|
+
|
|
671
|
+
## 1.9.0
|
|
672
|
+
|
|
673
|
+
* Metadata:
|
|
674
|
+
* Updated to libphonenumber v8.8.8
|
|
675
|
+
|
|
676
|
+
## 1.8.0
|
|
677
|
+
|
|
678
|
+
* Metadata:
|
|
679
|
+
* Updated to libphonenumber v8.8.7
|
|
680
|
+
|
|
681
|
+
## 1.7.0
|
|
682
|
+
|
|
683
|
+
* Metadata:
|
|
684
|
+
* Updated to libphonenumber v8.8.6
|
|
685
|
+
|
|
686
|
+
## 1.6.0
|
|
687
|
+
|
|
688
|
+
* Metadata:
|
|
689
|
+
* Updated to libphonenumber v8.8.5
|
|
690
|
+
|
|
691
|
+
## 1.5.0
|
|
692
|
+
|
|
693
|
+
* Metadata:
|
|
694
|
+
* Updated to libphonenumber v8.8.4
|
|
695
|
+
|
|
696
|
+
## 1.4.0
|
|
697
|
+
|
|
698
|
+
* Metadata:
|
|
699
|
+
* Updated to libphonenumber v8.8.3
|
|
700
|
+
|
|
701
|
+
## 1.3.0
|
|
702
|
+
|
|
703
|
+
* Metadata:
|
|
704
|
+
* Updated to libphonenumber v8.8.2
|
|
705
|
+
|
|
706
|
+
## 1.2.0
|
|
707
|
+
|
|
708
|
+
* Metadata:
|
|
709
|
+
* Updated to libphonenumber v8.8.1
|
|
710
|
+
|
|
711
|
+
## 1.1.0
|
|
712
|
+
|
|
713
|
+
* Metadata:
|
|
714
|
+
* Updated to libphonenumber v8.8.0
|
|
715
|
+
|
|
716
|
+
## 1.0.0
|
|
717
|
+
|
|
718
|
+
* API:
|
|
719
|
+
* Fixed truncation of phone numbers with multiple leading zeros (e.g., KR `00798 123 4567` and JP `0077-7012`)
|
|
720
|
+
* Tightened handling of `phoneObj` with improper leading zeros in `nationalNumber` property
|
|
721
|
+
* A `phoneObj` with a leading zero in the `nationalNumber` property is technically an invalid `phoneObj` (unless it's an [Italian leading zero](https://github.com/googlei18n/libphonenumber/blob/6ce5ca99bb86b040e74267adcbbac48b19908776/resources/phonenumber.proto#L57-L73)). In previous versions of fullstack-phone, such phone objects were handled leniently by using the `isLeadingZeroPossible` API of libphonenumber during conversion to protocol buffer format. Due to the [removal of isLeadingZeroPossible](https://github.com/googlei18n/libphonenumber/blob/b58ef8b8a607074845534cb2ebe19b208521747f/release_notes.txt#L56-L63), it is no longer possible to maintain this leniency. All leading zeros are thus passed to libphonenumber as-is.
|
|
722
|
+
* For example, GB `{ countryCode: '44', nationalNumber: '01212345678' }` should not have the leading 0 (national prefix) in `nationalNumber`, and will no longer format properly or pass validation.
|
|
723
|
+
* To convert phone objects with invalid leading zeros to the proper format, convert them to strings as follows and pass them through `parsePhoneNumber` (with any `regionCode`). This should have no effect on valid phone objects:
|
|
724
|
+
|
|
725
|
+
```javascript
|
|
726
|
+
var invalidPhoneObj = {
|
|
727
|
+
countryCode: '44',
|
|
728
|
+
nationalNumber: '01212345678', // GB number improperly including national prefix 0
|
|
729
|
+
extension: '123'
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
var phoneString = '+' +
|
|
733
|
+
invalidPhoneObj.countryCode +
|
|
734
|
+
invalidPhoneObj.nationalNumber +
|
|
735
|
+
(invalidPhoneObj.extension ? ';' + invalidPhoneObj.extension : ''); // add extension if it exists
|
|
736
|
+
|
|
737
|
+
var validPhoneObj = phoneHandler.parsePhoneNumber(phoneString, 'US'); // regionCode is irrelevant if string starts with '+'
|
|
738
|
+
// > { countryCode: '44', nationalNumber: '1212345678', extension: '123' } // valid GB phoneObj without leading 0
|
|
739
|
+
```
|
|
740
|
+
* Metadata:
|
|
741
|
+
* Updated to libphonenumber v8.7.1
|
|
742
|
+
|
|
743
|
+
## 0.1.0
|
|
744
|
+
|
|
745
|
+
* API:
|
|
746
|
+
* Refactored into server & client modules for easy inclusion
|
|
747
|
+
* Made handler instantiable instead of a singleton
|
|
748
|
+
* Changed `loadMeta` to return full metadata when called with no arguments
|
|
749
|
+
* Switched parameter order of `getExampleNumberForType` to match other APIs (`regionCode` last)
|
|
750
|
+
* Changed `PHONE_INVALID_FOR_COUNTRY` error message to `PHONE_INVALID_FOR_REGION` (for clarity)
|
|
751
|
+
* Renamed `createHandler` to `createPhoneHandler` to make it more distinct in case anyone uses a `<script>` tag to load `client/index.js` and it gets added to the `window` object
|
|
752
|
+
* Metadata:
|
|
753
|
+
* Updated to libphonenumber v8.5.2
|
|
754
|
+
* Updated to Closure library v20170626
|
|
755
|
+
|
|
756
|
+
## 0.0.2
|
|
757
|
+
|
|
758
|
+
* Backported API changes from 0.1.0 but based on libphonenumber v7.7.5
|
|
759
|
+
* Metadata:
|
|
760
|
+
* libphonenumber v7.7.5
|
|
761
|
+
* Closure library v20170626
|
|
762
|
+
|
|
763
|
+
## 0.0.1 (Unpublished)
|
|
764
|
+
|
|
765
|
+
* Initial version that requires copying generated files and modifying paths
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ fullstack-phone ☎️
|
|
|
3
3
|
|
|
4
4
|
| npm | Libphonenumber version |
|
|
5
5
|
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
6
|
-
| [](https://www.npmjs.com/package/fullstack-phone) | [v8.13.
|
|
6
|
+
| [](https://www.npmjs.com/package/fullstack-phone) | [v8.13.26](https://github.com/googlei18n/libphonenumber/blob/master/release_notes.txt) |
|
|
7
7
|
|
|
8
8
|
**fullstack-phone** provides formatting, validation, and parsing of phone numbers per-region. The system is optimized for use as two modules:
|
|
9
9
|
|
package/client/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*
|
|
1
|
+
(function(){/*
|
|
2
2
|
|
|
3
3
|
Copyright The Closure Library Authors.
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
function
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function ha(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return ha(this,function(b){return b})}});var ia=this||self;
|
|
11
|
-
function h(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.wa=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}};function l(a,b){null!=a&&this.g.apply(this,arguments)}l.prototype.h="";l.prototype.set=function(a){this.h=""+a};l.prototype.g=function(a,b,c){this.h+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.h+=arguments[d];return this};function n(a){a.h=""}l.prototype.toString=function(){return this.h};function ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function ka(a,b){this.h=a;this.g={};for(a=0;a<b.length;a++){var c=b[a];this.g[c.g]=c}}function la(a){a=ja(a.g);a.sort(function(b,c){return b.g-c.g});return a};function ma(a,b){this.g=a;this.l=!!b.ga;this.h=b.i;this.s=b.type;this.o=!1;switch(this.h){case na:case oa:case pa:case qa:case ra:case sa:case ta:this.o=!0}this.j=b.defaultValue}var ta=1,sa=2,na=3,oa=4,pa=6,qa=16,ra=18;function p(){this.u={};this.h=this.m().g;this.g=this.j=null}p.prototype.has=function(a){return q(this,a.g)};p.prototype.get=function(a,b){return r(this,a.g,b)};p.prototype.set=function(a,b){t(this,a.g,b)};p.prototype.add=function(a,b){ua(this,a.g,b)};
|
|
12
|
-
function va(a,b){for(var c=la(a.m()),d=0;d<c.length;d++){var e=c[d],f=e.g;if(q(b,f)){a.g&&delete a.g[e.g];var g=11==e.h||10==e.h;if(e.l){e=u(b,f);for(var k=0;k<e.length;k++)ua(a,f,g?e[k].clone():e[k])}else e=v(b,f),g?(g=v(a,f))?va(g,e):t(a,f,e.clone()):t(a,f,e)}}}p.prototype.clone=function(){var a=new this.constructor;a!=this&&(a.u={},a.g&&(a.g={}),va(a,this));return a};function q(a,b){return null!=a.u[b]}
|
|
13
|
-
function v(a,b){var c=a.u[b];if(null==c)return null;if(a.j){if(!(b in a.g)){var d=a.j,e=a.h[b];if(null!=c)if(e.l){for(var f=[],g=0;g<c.length;g++)f[g]=d.h(e,c[g]);c=f}else c=d.h(e,c);return a.g[b]=c}return a.g[b]}return c}function r(a,b,c){var d=v(a,b);return a.h[b].l?d[c||0]:d}function w(a,b){if(q(a,b))a=r(a,b,void 0);else a:{a=a.h[b];if(void 0===a.j)if(b=a.s,b===Boolean)a.j=!1;else if(b===Number)a.j=0;else if(b===String)a.j=a.o?"0":"";else{a=new b;break a}a=a.j}return a}
|
|
14
|
-
function u(a,b){return v(a,b)||[]}function x(a,b){return a.h[b].l?q(a,b)?a.u[b].length:0:q(a,b)?1:0}function t(a,b,c){a.u[b]=c;a.g&&(a.g[b]=c)}function ua(a,b,c){a.u[b]||(a.u[b]=[]);a.u[b].push(c);a.g&&delete a.g[b]}function y(a,b){var c=[],d;for(d in b)0!=d&&c.push(new ma(d,b[d]));return new ka(a,c)};/*
|
|
6
|
+
var aa=this||self;function h(a,b){function c(){}c.prototype=b.prototype;a.qa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.wa=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}};function l(a,b){null!=a&&this.g.apply(this,arguments)}l.prototype.h="";l.prototype.set=function(a){this.h=""+a};l.prototype.g=function(a,b,c){this.h+=String(a);if(null!=b)for(let d=1;d<arguments.length;d++)this.h+=arguments[d];return this};function n(a){a.h=""}l.prototype.toString=function(){return this.h};function ba(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b};var da=class{constructor(a){if(ca!==ca)throw Error("SafeUrl is not meant to be built directly");this.g=a}toString(){return this.g.toString()}},ca={};new da("about:invalid#zClosurez");new da("about:blank");const ea={};class fa{constructor(){if(ea!==ea)throw Error("SafeStyle is not meant to be built directly");}toString(){return"".toString()}}new fa;const ha={};class ia{constructor(){if(ha!==ha)throw Error("SafeStyleSheet is not meant to be built directly");}toString(){return"".toString()}}new ia;const ja={};class ka{constructor(){var a=aa.trustedTypes&&aa.trustedTypes.emptyHTML||"";if(ja!==ja)throw Error("SafeHtml is not meant to be built directly");this.g=a}toString(){return this.g.toString()}}new ka;function la(a,b){this.h=a;this.g={};for(a=0;a<b.length;a++){var c=b[a];this.g[c.g]=c}}function ma(a){a=ba(a.g);a.sort(function(b,c){return b.g-c.g});return a};function na(a,b){this.g=a;this.l=!!b.ga;this.h=b.i;this.s=b.type;this.o=!1;switch(this.h){case oa:case pa:case qa:case ra:case sa:case ta:case ua:this.o=!0}this.j=b.defaultValue}var ua=1,ta=2,oa=3,pa=4,qa=6,ra=16,sa=18;function p(){this.u={};this.h=this.m().g;this.g=this.j=null}p.prototype.has=function(a){return q(this,a.g)};p.prototype.get=function(a,b){return r(this,a.g,b)};p.prototype.set=function(a,b){t(this,a.g,b)};p.prototype.add=function(a,b){va(this,a.g,b)};
|
|
7
|
+
function wa(a,b){for(var c=ma(a.m()),d=0;d<c.length;d++){var e=c[d],f=e.g;if(q(b,f)){a.g&&delete a.g[e.g];var g=11==e.h||10==e.h;if(e.l){e=u(b,f);for(var k=0;k<e.length;k++)va(a,f,g?e[k].clone():e[k])}else e=v(b,f),g?(g=v(a,f))?wa(g,e):t(a,f,e.clone()):t(a,f,e)}}}p.prototype.clone=function(){var a=new this.constructor;a!=this&&(a.u={},a.g&&(a.g={}),wa(a,this));return a};function q(a,b){return null!=a.u[b]}
|
|
8
|
+
function v(a,b){var c=a.u[b];if(null==c)return null;if(a.j){if(!(b in a.g)){var d=a.j,e=a.h[b];if(null!=c)if(e.l){for(var f=[],g=0;g<c.length;g++)f[g]=d.h(e,c[g]);c=f}else c=d.h(e,c);return a.g[b]=c}return a.g[b]}return c}function r(a,b,c){var d=v(a,b);return a.h[b].l?d[c||0]:d}function w(a,b){if(q(a,b))a=r(a,b);else a:{a=a.h[b];if(void 0===a.j)if(b=a.s,b===Boolean)a.j=!1;else if(b===Number)a.j=0;else if(b===String)a.j=a.o?"0":"";else{a=new b;break a}a=a.j}return a}
|
|
9
|
+
function u(a,b){return v(a,b)||[]}function x(a,b){return a.h[b].l?q(a,b)?a.u[b].length:0:q(a,b)?1:0}function t(a,b,c){a.u[b]=c;a.g&&(a.g[b]=c)}function va(a,b,c){a.u[b]||(a.u[b]=[]);a.u[b].push(c);a.g&&delete a.g[b]}function y(a,b){var c=[],d;for(d in b)0!=d&&c.push(new na(d,b[d]));return new la(a,c)};/*
|
|
15
10
|
|
|
16
11
|
Protocol Buffer 2 Copyright 2008 Google Inc.
|
|
17
12
|
All other code copyright its respective owners.
|
|
@@ -29,14 +24,14 @@ function u(a,b){return v(a,b)||[]}function x(a,b){return a.h[b].l?q(a,b)?a.u[b].
|
|
|
29
24
|
See the License for the specific language governing permissions and
|
|
30
25
|
limitations under the License.
|
|
31
26
|
*/
|
|
32
|
-
function z(){p.call(this)}h(z,p);var
|
|
33
|
-
z.prototype.m=function(){var a=
|
|
34
|
-
A.prototype.m=function(){var a=
|
|
35
|
-
B.prototype.m=function(){var a=
|
|
27
|
+
function z(){p.call(this)}h(z,p);var xa=null;function A(){p.call(this)}h(A,p);var ya=null;function B(){p.call(this)}h(B,p);var za=null;
|
|
28
|
+
z.prototype.m=function(){var a=xa;a||(xa=a=y(z,{0:{name:"NumberFormat",ka:"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",ga:!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}}));return a};z.m=z.prototype.m;
|
|
29
|
+
A.prototype.m=function(){var a=ya;a||(ya=a=y(A,{0:{name:"PhoneNumberDesc",ka:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",i:9,type:String},9:{name:"possible_length",ga:!0,i:5,type:Number},10:{name:"possible_length_local_only",ga:!0,i:5,type:Number},6:{name:"example_number",i:9,type:String}}));return a};A.m=A.prototype.m;
|
|
30
|
+
B.prototype.m=function(){var a=za;a||(za=a=y(B,{0:{name:"PhoneMetadata",ka:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",i:11,type:A},2:{name:"fixed_line",i:11,type:A},3:{name:"mobile",i:11,type:A},4:{name:"toll_free",i:11,type:A},5:{name:"premium_rate",i:11,type:A},6:{name:"shared_cost",i:11,type:A},7:{name:"personal_number",i:11,type:A},8:{name:"voip",i:11,type:A},21:{name:"pager",i:11,type:A},25:{name:"uan",i:11,type:A},27:{name:"emergency",i:11,type:A},28:{name:"voicemail",i:11,type:A},
|
|
36
31
|
29:{name:"short_code",i:11,type:A},30:{name:"standard_rate",i:11,type:A},31:{name:"carrier_specific",i:11,type:A},33:{name:"sms_services",i:11,type:A},24:{name:"no_international_dialling",i:11,type:A},9:{name:"id",required:!0,i:9,type:String},10:{name:"country_code",i:5,type:Number},11:{name:"international_prefix",i:9,type:String},17:{name:"preferred_international_prefix",i:9,type:String},12:{name:"national_prefix",i:9,type:String},13:{name:"preferred_extn_prefix",i:9,type:String},15:{name:"national_prefix_for_parsing",
|
|
37
|
-
i:9,type:String},16:{name:"national_prefix_transform_rule",i:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",i:8,defaultValue:!1,type:Boolean},19:{name:"number_format",ga:!0,i:11,type:z},20:{name:"intl_number_format",ga:!0,i:11,type:z},22:{name:"main_country_for_code",i:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",i:9,type:String}}));return a};B.m=B.prototype.m;function
|
|
38
|
-
|
|
39
|
-
i:9,type:String}}));return a};
|
|
32
|
+
i:9,type:String},16:{name:"national_prefix_transform_rule",i:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",i:8,defaultValue:!1,type:Boolean},19:{name:"number_format",ga:!0,i:11,type:z},20:{name:"intl_number_format",ga:!0,i:11,type:z},22:{name:"main_country_for_code",i:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",i:9,type:String}}));return a};B.m=B.prototype.m;function C(){}C.prototype.g=function(a){new a.h;throw Error("Unimplemented");};C.prototype.h=function(a,b){if(11==a.h||10==a.h)return b instanceof p?b:this.g(a.s.prototype.m(),b);if(14==a.h)return"string"===typeof b&&Aa.test(b)&&(a=Number(b),0<a)?a:b;if(!a.o)return b;a=a.s;if(a===String){if("number"===typeof b)return String(b)}else if(a===Number&&"string"===typeof b&&("Infinity"===b||"-Infinity"===b||"NaN"===b||Aa.test(b)))return Number(b);return b};var Aa=/^-?[0-9]+$/;function Ba(){}h(Ba,C);Ba.prototype.g=function(a,b){a=new a.h;a.j=this;a.u=b;a.g={};return a};function D(){}h(D,Ba);D.prototype.h=function(a,b){return 8==a.h?!!b:C.prototype.h.apply(this,arguments)};D.prototype.g=function(a,b){return D.qa.g.call(this,a,b)};function E(){p.call(this)}h(E,p);var Ca=null,Da={va:0,ua:1,ta:5,sa:10,ra:20};
|
|
33
|
+
E.prototype.m=function(){var a=Ca;a||(Ca=a=y(E,{0:{name:"PhoneNumber",ka:"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:Da},7:{name:"preferred_domestic_carrier_code",
|
|
34
|
+
i:9,type:String}}));return a};E.ctor=E;E.ctor.m=E.prototype.m;var F,Ea;function G(a){F=a.countryCodeToRegionCodeMap;Ea=a.countryToMetadata};/*
|
|
40
35
|
|
|
41
36
|
Copyright (C) 2010 The Libphonenumber Authors.
|
|
42
37
|
|
|
@@ -52,48 +47,48 @@ i:9,type:String}}));return a};D.ctor=D;D.ctor.m=D.prototype.m;var E,Ea;function
|
|
|
52
47
|
See the License for the specific language governing permissions and
|
|
53
48
|
limitations under the License.
|
|
54
49
|
*/
|
|
55
|
-
function
|
|
50
|
+
function H(){this.g={}}H.g=void 0;H.h=function(){return H.g?H.g:H.g=new H};
|
|
56
51
|
var Fa={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},Ga={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",
|
|
57
52
|
7:"7",8:"8",9:"9","+":"+","*":"*","#":"#"},Ha={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9",A:"2",
|
|
58
|
-
B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},Ia
|
|
59
|
-
Pa
|
|
60
|
-
function Qa(){return";ext="+
|
|
53
|
+
B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},Ia=RegExp("[+\uff0b]+"),I=RegExp("^[+\uff0b]+"),Ja=RegExp("([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])"),Ka=RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),La=/[\\\/] *x/,Ma=RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9A-Za-z#]+$"),Na=/(?:.*?[A-Za-z]){3}.*/,Oa=RegExp("^\\+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]|[\\-\\.\\(\\)]?)*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]|[\\-\\.\\(\\)]?)*$"),
|
|
54
|
+
Pa=RegExp("^([A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+((\\-)*[A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])*\\.?$");function J(a){return"([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,"+a+"})"}
|
|
55
|
+
function Qa(){return";ext="+J("20")+"|[ \u00a0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)[:\\.\uff0e]?[ \u00a0\\t,-]*"+(J("20")+"#?|[ \u00a0\\t,]*(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \u00a0\\t,-]*")+(J("9")+"#?|[- ]+")+(J("6")+"#|[ \u00a0\\t]*(?:,{2}|;)[:\\.\uff0e]?[ \u00a0\\t,-]*")+(J("15")+"#?|[ \u00a0\\t]*(?:,)+[:\\.\uff0e]?[ \u00a0\\t,-]*")+(J("9")+"#?")}
|
|
61
56
|
var Ra=new RegExp("(?:"+Qa()+")$","i"),Sa=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]*(?:[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+Qa()+")?$","i"),Ta=/(\$\d)/,
|
|
62
|
-
Ua=/^\(?\$1\)?$/;function Va(a){return 2>a.length?!1:
|
|
63
|
-
function
|
|
64
|
-
function bb(a,b){var c=
|
|
65
|
-
2==b&&null!=g&&0<g.length?e.replace(f,c.replace(Ta,g)):e.replace(f,c),3==b&&(e=e.replace(
|
|
66
|
-
function
|
|
67
|
-
function db(a,b){switch(b){case 4:return r(a,5);case 3:return r(a,4);case 1:return r(a,3);case 0:case 2:return r(a,2);case 5:return r(a,6);case 6:return r(a,8);case 7:return r(a,7);case 8:return r(a,21);case 9:return r(a,25);case 10:return r(a,28);default:return r(a,1)}}function eb(a,b){return
|
|
68
|
-
function
|
|
69
|
-
function gb(a,b){if(null==b)return null;var c=w(b,1);c=
|
|
70
|
-
function hb(a,b,c,d){var e=db(c,d),f=0==x(e,9)?u(r(c,1),9):u(e,9);e=u(e,10);if(2==d)if($a(db(c,0)))a=db(c,1),$a(a)&&(f=f.concat(0==x(a,9)?u(r(c,1),9):u(a,9)),f.sort(),0==e.length?e=u(a,10):(e=e.concat(u(a,10)),e.sort()));else return hb(a,b,c,1);if(-1==f[0])return 5;b=b.length;if(-1<e.indexOf(b))return 4;c=f[0];return c==b?0:c>b?2:f[f.length-1]<b?3:-1<f.indexOf(b,1)?0:5}function ib(a){var b=
|
|
71
|
-
function jb(a,b){a=a.toString();if(0==a.length||"0"==a.charAt(0))return 0;for(var c,d=a.length,e=1;3>=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in
|
|
72
|
-
function kb(a,b,c,d,e){if(0==b.length)return 0;b=new l(b);var f;null!=c&&(f=r(c,11));null==f&&(f="NonMatch");var g=b.toString();if(0==g.length)f=20;else if(
|
|
73
|
-
d);if(0!=a)return t(e,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(f=w(c,10),g=""+f,k=b.toString(),0==k.lastIndexOf(g,0)&&(g=new l(k.substring(g.length)),k=r(c,1),k=new RegExp(w(k,2)),lb(g,c,null),g=g.toString(),!
|
|
74
|
-
function lb(a,b,c){var d=a.toString(),e=d.length,f=r(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(w(r(b,1),2));var k=
|
|
57
|
+
Ua=/^\(?\$1\)?$/;function Va(a){return 2>a.length?!1:K(Sa,a)}function Wa(a){return K(Na,a)?Xa(a,Ha):Xa(a,Fa)}function Ya(a){var b=Wa(a.toString());n(a);a.g(b)}function Za(){return Object.keys(Ea).filter(function(a){return isNaN(a)})}function $a(a){return null!=a&&(1!=x(a,9)||-1!=u(a,9)[0])}function Xa(a,b){for(var c=new l,d,e=a.length,f=0;f<e;++f)d=a.charAt(f),d=b[d.toUpperCase()],null!=d&&c.g(d);return c.toString()}function ab(a){return 0==a.length||Ua.test(a)}
|
|
58
|
+
function L(a){return null!=a&&isNaN(a)&&a.toUpperCase()in Ea}
|
|
59
|
+
function bb(a,b){var c=N;if(0==r(a,2)&&q(a,5)){var d=w(a,5);if(0<d.length)return d}d=w(a,1);var e=O(a);if(0==b)return cb(d,0,e,"");if(!(d in F))return e;c=P(c,d,Q(d));a=q(a,3)&&0!=r(a,3).length?3==b?";ext="+r(a,3):q(c,13)?r(c,13)+w(a,3):" ext. "+w(a,3):"";a:{c=0==u(c,20).length||2==b?u(c,19):u(c,20);for(var f,g=c.length,k=0;k<g;++k){f=c[k];var m=x(f,3);if(0==m||0==e.search(r(f,3,m-1)))if(m=new RegExp(r(f,1)),K(m,e)){c=f;break a}}c=null}null!=c&&(g=c,c=w(g,2),f=new RegExp(r(g,1)),w(g,5),g=w(g,4),e=
|
|
60
|
+
2==b&&null!=g&&0<g.length?e.replace(f,c.replace(Ta,g)):e.replace(f,c),3==b&&(e=e.replace(RegExp("^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+"),""),e=e.replace(RegExp("[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+","g"),"-")));return cb(d,b,e,a)}function P(a,b,c){return"001"==c?R(a,""+b):R(a,c)}
|
|
61
|
+
function O(a){if(!q(a,2))return"";var b=""+r(a,2);return q(a,4)&&r(a,4)&&0<w(a,8)?Array(w(a,8)+1).join("0")+b:b}function cb(a,b,c,d){switch(b){case 0:return"+"+a+c+d;case 1:return"+"+a+" "+c+d;case 3:return"tel:+"+a+"-"+c+d;default:return c+d}}
|
|
62
|
+
function db(a,b){switch(b){case 4:return r(a,5);case 3:return r(a,4);case 1:return r(a,3);case 0:case 2:return r(a,2);case 5:return r(a,6);case 6:return r(a,8);case 7:return r(a,7);case 8:return r(a,21);case 9:return r(a,25);case 10:return r(a,28);default:return r(a,1)}}function eb(a,b){return S(a,r(b,1))?S(a,r(b,5))?4:S(a,r(b,4))?3:S(a,r(b,6))?5:S(a,r(b,8))?6:S(a,r(b,7))?7:S(a,r(b,21))?8:S(a,r(b,25))?9:S(a,r(b,28))?10:S(a,r(b,2))?r(b,18)||S(a,r(b,3))?2:0:!r(b,18)&&S(a,r(b,3))?1:-1:-1}
|
|
63
|
+
function R(a,b){if(null==b)return null;b=b.toUpperCase();var c=a.g[b];if(null==c){c=Ea[b];if(null==c)return null;c=(new D).g(B.m(),c);a.g[b]=c}return c}function S(a,b){var c=a.length;return 0<x(b,9)&&-1==u(b,9).indexOf(c)?!1:K(w(b,2),a)}function fb(a,b,c){var d=w(b,1),e=P(a,d,c);if(null==e||"001"!=c&&d!=T(a,c))return!1;a=O(b);return-1!=eb(a,e)}
|
|
64
|
+
function gb(a,b){if(null==b)return null;var c=w(b,1);c=F[c];if(null==c)a=null;else if(1==c.length)a=c[0];else a:{b=O(b);for(var d,e=c.length,f=0;f<e;f++){d=c[f];var g=R(a,d);if(q(g,23)){if(0==b.search(r(g,23))){a=d;break a}}else if(-1!=eb(b,g)){a=d;break a}}a=null}return a}function Q(a){a=F[a];return null==a?"ZZ":a[0]}function T(a,b){a=R(a,b);if(null==a)throw Error("Invalid region code: "+b);return w(a,10)}
|
|
65
|
+
function hb(a,b,c,d){var e=db(c,d),f=0==x(e,9)?u(r(c,1),9):u(e,9);e=u(e,10);if(2==d)if($a(db(c,0)))a=db(c,1),$a(a)&&(f=f.concat(0==x(a,9)?u(r(c,1),9):u(a,9)),f.sort(),0==e.length?e=u(a,10):(e=e.concat(u(a,10)),e.sort()));else return hb(a,b,c,1);if(-1==f[0])return 5;b=b.length;if(-1<e.indexOf(b))return 4;c=f[0];return c==b?0:c>b?2:f[f.length-1]<b?3:-1<f.indexOf(b,1)?0:5}function ib(a){var b=O(a);a=w(a,1);a in F?(a=P(N,a,Q(a)),b=hb(N,b,a,-1)):b=1;return b}
|
|
66
|
+
function jb(a,b){a=a.toString();if(0==a.length||"0"==a.charAt(0))return 0;for(var c,d=a.length,e=1;3>=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in F)return b.g(a.substring(e)),c;return 0}
|
|
67
|
+
function kb(a,b,c,d,e){if(0==b.length)return 0;b=new l(b);var f;null!=c&&(f=r(c,11));null==f&&(f="NonMatch");var g=b.toString();if(0==g.length)f=20;else if(I.test(g))g=g.replace(I,""),n(b),b.g(Wa(g)),f=1;else{g=new RegExp(f);Ya(b);f=b.toString();if(0==f.search(g)){g=f.match(g)[0].length;var k=f.substring(g).match(Ja);k&&null!=k[1]&&0<k[1].length&&"0"==Xa(k[1],Fa)?f=!1:(n(b),b.g(f.substring(g)),f=!0)}else f=!1;f=f?5:20}if(20!=f){if(2>=b.h.length)throw Error("Phone number too short after IDD");a=jb(b,
|
|
68
|
+
d);if(0!=a)return t(e,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(f=w(c,10),g=""+f,k=b.toString(),0==k.lastIndexOf(g,0)&&(g=new l(k.substring(g.length)),k=r(c,1),k=new RegExp(w(k,2)),lb(g,c,null),g=g.toString(),!K(k,b.toString())&&K(k,g)||3==hb(a,b.toString(),c,-1))))return d.g(g),t(e,1,f),f;t(e,1,0);return 0}
|
|
69
|
+
function lb(a,b,c){var d=a.toString(),e=d.length,f=r(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(w(r(b,1),2));var k=K(f,d),m=e.length-1;b=r(b,16);if(null==b||0==b.length||null==e[m]||0==e[m].length){if(!k||K(f,d.substring(e[0].length)))null!=c&&0<m&&null!=e[m]&&c.g(e[1]),a.set(d.substring(e[0].length))}else if(d=d.replace(g,b),!k||K(f,d))null!=c&&0<m&&c.g(e[1]),a.set(d)}}}
|
|
75
70
|
function mb(a,b,c){if(null==b)throw Error("The string supplied did not seem to be a phone number");if(250<b.length)throw Error("The string supplied is too long to be a phone number");var d=new l;var e=b.indexOf(";phone-context=");if(-1===e)e=null;else if(e+=15,e>=b.length)e="";else{var f=b.indexOf(";",e);e=-1!==f?b.substring(e,f):b.substring(e)}var g=e;null==g?f=!0:0===g.length?f=!1:(f=Oa.exec(g),g=Pa.exec(g),f=null!==f||null!==g);if(!f)throw Error("The string supplied did not seem to be a phone number");
|
|
76
|
-
null!=e?("+"===e.charAt(0)&&d.g(e),e=b.indexOf("tel:"),d.g(b.substring(0<=e?e+4:0,b.indexOf(";phone-context=")))):(e=d.g,b=
|
|
77
|
-
b=new
|
|
71
|
+
null!=e?("+"===e.charAt(0)&&d.g(e),e=b.indexOf("tel:"),d.g(b.substring(0<=e?e+4:0,b.indexOf(";phone-context=")))):(e=d.g,b=b??"",f=b.search(Ka),0<=f?(b=b.substring(f),b=b.replace(Ma,""),f=b.search(La),0<=f&&(b=b.substring(0,f))):b="",e.call(d,b));b=d.toString();e=b.indexOf(";isub=");0<e&&(n(d),d.g(b.substring(0,e)));if(!Va(d.toString()))throw Error("The string supplied did not seem to be a phone number");b=d.toString();if(!(L(c)||null!=b&&0<b.length&&I.test(b)))throw Error("Invalid country calling code");
|
|
72
|
+
b=new E;a:{e=d.toString();f=e.search(Ra);if(0<=f&&Va(e.substring(0,f))){g=e.match(Ra);for(var k=g.length,m=1;m<k;++m)if(null!=g[m]&&0<g[m].length){n(d);d.g(e.substring(0,f));e=g[m];break a}}e=""}0<e.length&&t(b,3,e);f=R(a,c);e=new l;g=0;k=d.toString();try{g=kb(a,k,f,e,b)}catch(M){if("Invalid country calling code"==M.message&&I.test(k)){if(k=k.replace(I,""),g=kb(a,k,f,e,b),0==g)throw M;}else throw M;}0!=g?(d=Q(g),d!=c&&(f=P(a,g,d))):(Ya(d),e.g(d.toString()),null!=c&&(g=w(f,10),t(b,1,g)));if(2>e.h.length)throw Error("The string supplied is too short to be a phone number");
|
|
78
73
|
null!=f&&(c=new l(e.toString()),lb(c,f,new l),a=hb(a,c.toString(),f,-1),2!=a&&4!=a&&5!=a&&(e=c));a=e.toString();c=a.length;if(2>c)throw Error("The string supplied is too short to be a phone number");if(17<c)throw Error("The string supplied is too long to be a phone number");if(1<a.length&&"0"==a.charAt(0)){t(b,4,!0);for(c=1;c<a.length-1&&"0"==a.charAt(c);)c++;1!=c&&t(b,8,c)}t(b,2,parseInt(a,10));return b}
|
|
79
|
-
function
|
|
80
|
-
var qb
|
|
81
|
-
function sb(a){for(var b=a.j.length,c=0;c<b;++c){var d=a.j[c],e=w(d,1);if(a.ea==e)return!1;var f=a;var g=d,k=w(g,1);n(f.aa);var m=f;g=w(g,2);var M="999999999999999".match(k)[0];M.length<m.g.h.length?m="":(m=M.replace(new RegExp(k,"g"),g),m=m.replace(
|
|
74
|
+
function K(a,b){return(a="string"==typeof a?b.match("^(?:"+a+")$"):b.match(a))&&a[0].length==b.length?!0:!1};function nb(a){this.ia=RegExp("\u2008");this.da="";this.aa=new l;this.ea="";this.o=new l;this.$=new l;this.v=!0;this.fa=this.ba=this.la=!1;this.na=H.h();this.oa=this.ma=this.ca=0;this.h=new l;this.ha=!1;this.s="";this.g=new l;this.j=[];this.ja=a;this.pa=this.l=ob(this,this.ja)}var pb=new B;t(pb,11,"NA");
|
|
75
|
+
var qb=RegExp("^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*\\$1[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*(\\$\\d[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*)*$"),rb=/[- ]/;function ob(a,b){b=L(b)?T(a.na,b):0;a=R(a.na,Q(b));return null!=a?a:pb}
|
|
76
|
+
function sb(a){for(var b=a.j.length,c=0;c<b;++c){var d=a.j[c],e=w(d,1);if(a.ea==e)return!1;var f=a;var g=d,k=w(g,1);n(f.aa);var m=f;g=w(g,2);var M="999999999999999".match(k)[0];M.length<m.g.h.length?m="":(m=M.replace(new RegExp(k,"g"),g),m=m.replace(RegExp("9","g"),"\u2008"));0<m.length?(f.aa.g(m),f=!0):f=!1;if(f)return a.ea=e,a.ha=rb.test(r(d,4)),a.ca=0,!0}return a.v=!1}
|
|
82
77
|
function tb(a,b){for(var c=[],d=b.length-3,e=a.j.length,f=0;f<e;++f){var g=a.j[f];0==x(g,3)?c.push(a.j[f]):(g=r(g,3,Math.min(d,x(g,3)-1)),0==b.search(g)&&c.push(a.j[f]))}a.j=c}
|
|
83
78
|
function ub(a,b,c){a.o.g(b);c&&(a.ma=a.o.h.length);var d=b;Ja.test(d)||1==a.o.h.length&&Ia.test(d)?("+"==b?(d=b,a.$.g(b)):(d=Fa[b],a.$.g(d),a.g.g(d)),c&&(a.oa=a.$.h.length),b=d):(a.v=!1,a.la=!0);if(!a.v){if(!a.la)if(vb(a)){if(wb(a))return xb(a)}else if(0<a.s.length&&(c=a.g.toString(),n(a.g),a.g.g(a.s),a.g.g(c),c=a.h.toString(),b=c.lastIndexOf(a.s),n(a.h),a.h.g(c.substring(0,b))),a.s!=yb(a))return a.h.g(" "),xb(a);return a.o.toString()}switch(a.$.h.length){case 0:case 1:case 2:return a.o.toString();
|
|
84
79
|
case 3:if(vb(a))a.fa=!0;else return a.s=yb(a),zb(a);default:if(a.fa)return wb(a)&&(a.fa=!1),a.h.toString()+a.g.toString();if(0<a.j.length){c=Ab(a,b);b=Bb(a);if(0<b.length)return b;tb(a,a.g.toString());return sb(a)?Cb(a):a.v?Db(a,c):a.o.toString()}return zb(a)}}function xb(a){a.v=!0;a.fa=!1;a.j=[];a.ca=0;n(a.aa);a.ea="";return zb(a)}
|
|
85
80
|
function Bb(a){for(var b=a.g.toString(),c=a.j.length,d=0;d<c;++d){var e=a.j[d],f=w(e,1);if((new RegExp("^(?:"+f+")$")).test(b)&&(a.ha=rb.test(r(e,4)),e=b.replace(new RegExp(f,"g"),r(e,2)),e=Db(a,e),Xa(e,Ga)==a.$))return e}return""}function Db(a,b){var c=a.h.h.length;return a.ha&&0<c&&" "!=a.h.toString().charAt(c-1)?a.h+" "+b:a.h+b}
|
|
86
81
|
function zb(a){var b=a.g.toString();if(3<=b.length){for(var c=a.ba&&0==a.s.length&&0<x(a.l,20)?u(a.l,20):u(a.l,19),d=c.length,e=0;e<d;++e){var f=c[e];0<a.s.length&&ab(w(f,4))&&!r(f,6)&&!q(f,5)||(0!=a.s.length||a.ba||ab(w(f,4))||r(f,6))&&qb.test(w(f,2))&&a.j.push(f)}tb(a,b);b=Bb(a);return 0<b.length?b:sb(a)?Cb(a):a.o.toString()}return Db(a,b)}function Cb(a){var b=a.g.toString(),c=b.length;if(0<c){for(var d="",e=0;e<c;e++)d=Ab(a,b.charAt(e));return a.v?Db(a,d):a.o.toString()}return a.h.toString()}
|
|
87
82
|
function yb(a){var b=a.g.toString(),c=0;if(1!=r(a.l,10))var d=!1;else d=a.g.toString(),d="1"==d.charAt(0)&&"0"!=d.charAt(1)&&"1"!=d.charAt(1);d?(c=1,a.h.g("1").g(" "),a.ba=!0):q(a.l,15)&&(d=new RegExp("^(?:"+r(a.l,15)+")"),d=b.match(d),null!=d&&null!=d[0]&&0<d[0].length&&(a.ba=!0,c=d[0].length,a.h.g(b.substring(0,c))));n(a.g);a.g.g(b.substring(c));return b.substring(0,c)}
|
|
88
|
-
function vb(a){var b=a.$.toString(),c=new RegExp("^(?:\\+|"+r(a.l,11)+")");c=b.match(c);return null!=c&&null!=c[0]&&0<c[0].length?(a.ba=!0,c=c[0].length,n(a.g),a.g.g(b.substring(c)),n(a.h),a.h.g(b.substring(0,c)),"+"!=b.charAt(0)&&a.h.g(" "),!0):!1}function wb(a){if(0==a.g.h.length)return!1;var b=new l,c=jb(a.g,b);if(0==c)return!1;n(a.g);a.g.g(b.toString());b=
|
|
89
|
-
function Ab(a,b){var c=a.aa.toString();if(0<=c.substring(a.ca).search(a.ia)){var d=c.search(a.ia);b=c.replace(a.ia,b);n(a.aa);a.aa.g(b);a.ca=d;return b.substring(0,a.ca+1)}1==a.j.length&&(a.v=!1);a.ea="";return a.o.toString()};
|
|
90
|
-
|
|
91
|
-
function Jb(a){if(!Ib(a))throw Error("Invalid metadata");
|
|
92
|
-
function Kb(a){if(null===a)return null;
|
|
93
|
-
function W(a){try{
|
|
94
|
-
function Lb(a){Jb(a);return{getSupportedRegions:function(){
|
|
95
|
-
c.style);return bb(b,d).toString()},validatePhoneNumber:function(b,c){
|
|
96
|
-
a);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
for(var Z;X.length&&(Z=X.shift());)X.length||void 0===Lb?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Lb;
|
|
83
|
+
function vb(a){var b=a.$.toString(),c=new RegExp("^(?:\\+|"+r(a.l,11)+")");c=b.match(c);return null!=c&&null!=c[0]&&0<c[0].length?(a.ba=!0,c=c[0].length,n(a.g),a.g.g(b.substring(c)),n(a.h),a.h.g(b.substring(0,c)),"+"!=b.charAt(0)&&a.h.g(" "),!0):!1}function wb(a){if(0==a.g.h.length)return!1;var b=new l,c=jb(a.g,b);if(0==c)return!1;n(a.g);a.g.g(b.toString());b=Q(c);"001"==b?a.l=R(a.na,""+c):b!=a.ja&&(a.l=ob(a,b));a.h.g(""+c).g(" ");a.s="";return!0}
|
|
84
|
+
function Ab(a,b){var c=a.aa.toString();if(0<=c.substring(a.ca).search(a.ia)){var d=c.search(a.ia);b=c.replace(a.ia,b);n(a.aa);a.aa.g(b);a.ca=d;return b.substring(0,a.ca+1)}1==a.j.length&&(a.v=!1);a.ea="";return a.o.toString()};const N=H.h(),Eb={e164:0,international:1,national:2,rfc3966:3},Fb={["Invalid country calling code"]:"PHONE_INVALID_COUNTRY_CODE",["The string supplied is too short to be a phone number"]:"PHONE_NUMBER_TOO_SHORT",["The string supplied is too long to be a phone number"]:"PHONE_NUMBER_TOO_LONG",["The string supplied did not seem to be a phone number"]:"PHONE_NOT_A_NUMBER",["Phone number too short after IDD"]:"PHONE_TOO_SHORT_AFTER_IDD"},Gb={FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,
|
|
85
|
+
SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1},Hb=Object.keys(Gb).reduce(function(a,b){a[Gb[b]]=b;return a},{});function U(a){if(!Ib(a)||void 0===a.countryCode||void 0===a.nationalNumber||"string"!==typeof a.countryCode&&"number"!==typeof a.countryCode||"string"!==typeof a.nationalNumber&&"number"!==typeof a.nationalNumber||null!=a.extension&&"string"!==typeof a.extension&&"number"!==typeof a.extension)throw Error("Phone object conversion failed");}
|
|
86
|
+
function Jb(a){if(!Ib(a))throw Error("Invalid metadata");const b=a.regionCodes;if(!b||!Array.isArray(b)||!b.length)throw Error("Invalid metadata");if(!Ib(a.countryCodeToRegionCodeMap)||!Ib(a.countryToMetadata))throw Error("Invalid metadata");}function Ib(a){return null!==a&&"[object Object]"===""+a&&a.constructor===Object}function V(a,b){if(-1===b.regionCodes.indexOf(a))throw Error("Metadata not loaded for region: "+a);}
|
|
87
|
+
function Kb(a){if(null===a)return null;const b={countryCode:a.u[1].toString(),nationalNumber:a.u[2].toString()};if(q(a,4)){const c=w(a,8);for(let d=0;d<c;d++)b.nationalNumber="0"+b.nationalNumber}void 0!==a.u[3]&&(b.extension=a.u[3]);return b}
|
|
88
|
+
function W(a){try{const b=new E;let c,d,e=!1;t(b,1,Number(a.countryCode));c=a.nationalNumber;if("string"===typeof c){let f=0;for(;"0"===c.charAt(f);)e=!0,f++;e&&(t(b,4,!0),t(b,8,f));c=Number(c)}t(b,2,c);void 0!==a.extension&&null!==a.extension&&(d=a.extension.toString(),t(b,3,d));return b}catch(b){throw Error("Phone object conversion failed: "+b.message);}}
|
|
89
|
+
function Lb(a){Jb(a);return{getSupportedRegions:function(){G(a);return Za()},getCountryCodeForRegion:function(b){G(a);V(b,a);return L(b)?T(N,b):0},countryCodeToRegionCodeMap:function(){G(a);return F},inferPhoneNumberType:function(b){G(a);U(b);b=W(b);var c=N,d=gb(c,b);c=P(c,w(b,1),d);null==c?b=-1:(b=O(b),b=eb(b,c));return Hb[b]},inferPhoneNumberRegion:function(b){G(a);U(b);b=W(b);return gb(N,b)},formatPhoneNumber:function(b,c){G(a);U(b);b=W(b);c=c||{};const d=Eb[c.style];if(void 0===d)throw Error("Invalid style property: "+
|
|
90
|
+
c.style);return bb(b,d).toString()},validatePhoneNumber:function(b,c){G(a);U(b);if(void 0!==c){V(c,a);var d=L(c)?T(N,c):0;if(`${b.countryCode}`!==`${d}`)return Error("PHONE_INVALID_COUNTRY_CODE")}b=W(b);void 0===c?(c=N,d=gb(c,b),c=fb(c,b,d)):c=fb(N,b,c);if(c)return!0;b=ib(b);return Error(1===b?"PHONE_INVALID_COUNTRY_CODE":2===b?"PHONE_NUMBER_TOO_SHORT":3===b?"PHONE_NUMBER_TOO_LONG":5===b?"PHONE_NUMBER_INVALID_LENGTH":"PHONE_INVALID_FOR_REGION")},validateLength:function(b,c){G(a);U(b);if(void 0!==
|
|
91
|
+
c){V(c,a);const d=L(c)?T(N,c):0;if(`${b.countryCode}`!==`${d}`)return Error("PHONE_INVALID_COUNTRY_CODE");c={regionCodes:[c],countryCodeToRegionCodeMap:{[d]:[c]},countryToMetadata:{[c]:a.countryToMetadata[c]}};Jb(c);G(c)}b=W(b);b=ib(b);return 0===b?!0:Error(1===b?"PHONE_INVALID_COUNTRY_CODE":2===b?"PHONE_NUMBER_TOO_SHORT":3===b?"PHONE_NUMBER_TOO_LONG":5===b?"PHONE_NUMBER_INVALID_LENGTH":4===b?"PHONE_NUMBER_POSSIBLE_LOCAL_ONLY":"PHONE_INVALID_FOR_REGION")},parsePhoneNumber:function(b,c){G(a);void 0!==
|
|
92
|
+
c&&V(c,a);let d;try{d=mb(N,b,c)}catch(e){return Error(Fb[e.message])}return Kb(d)},getExampleNumberForType:function(b,c){G(a);V(c,a);b=Gb[b];void 0===b&&(b=-1);a:{var d=b;b=N;if(L(c)){d=db(R(b,c),d);try{if(q(d,6)){var e=r(d,6);var f=mb(b,e,c);break a}}catch(g){}}f=null}return Kb(f)},getAsYouTypeFormatter:function(b){G(a);V(b,a);const c=new nb(b);return{inputDigit:function(d){c.da=ub(c,d,!1);return c.da},clear:function(){c.da="";n(c.o);n(c.$);n(c.aa);c.ca=0;c.ea="";n(c.h);c.s="";n(c.g);c.v=!0;c.la=
|
|
93
|
+
!1;c.oa=0;c.ma=0;c.ba=!1;c.fa=!1;c.j=[];c.ha=!1;c.l!=c.pa&&(c.l=ob(c,c.ja))},inputDigitAndRememberPosition:function(d){c.da=ub(c,d,!0);return c.da},getRememberedPosition:function(){var d;if(c.v){for(var e=d=0,f=c.$.toString(),g=c.da.toString();d<c.oa&&e<g.length;)f.charAt(d)==g.charAt(e)&&d++,e++;d=e}else d=c.ma;return d}}}}}var X=["createPhoneHandler"],Y=aa;X[0]in Y||"undefined"==typeof Y.execScript||Y.execScript("var "+X[0]);
|
|
94
|
+
for(var Z;X.length&&(Z=X.shift());)X.length||void 0===Lb?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Lb;}).call(module.exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fullstack-phone",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"libphonenumber": "v8.13.
|
|
3
|
+
"version": "1.142.0-0",
|
|
4
|
+
"libphonenumber": "v8.13.26",
|
|
5
5
|
"description": "A dual-module phone number system with dynamic regional metadata",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"libphonenumber",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/paypal/fullstack-phone.git"
|
|
27
|
+
"url": "git+https://github.com/paypal/fullstack-phone.git"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"node": ">=4.0.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
|
+
"CHANGELOG.md",
|
|
44
45
|
"client/",
|
|
45
46
|
"server/"
|
|
46
47
|
],
|
|
@@ -50,11 +51,10 @@
|
|
|
50
51
|
"build": "./bin/build.sh",
|
|
51
52
|
"test": "mocha test/ -R dot"
|
|
52
53
|
},
|
|
53
|
-
"dependencies": {},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"chai": "^4.3.4",
|
|
56
|
-
"google-closure-compiler": "^
|
|
57
|
-
"google-closure-library": "^
|
|
56
|
+
"google-closure-compiler": "^20230802.0.0",
|
|
57
|
+
"google-closure-library": "^20230802.0.0",
|
|
58
58
|
"husky": "^1.3.1",
|
|
59
59
|
"mocha": "^5.2.0",
|
|
60
60
|
"semver": "^5.6.0"
|
|
@@ -15124,7 +15124,7 @@
|
|
|
15124
15124
|
[
|
|
15125
15125
|
null,
|
|
15126
15126
|
null,
|
|
15127
|
-
"80\\d{
|
|
15127
|
+
"80[0-7]\\d{6}",
|
|
15128
15128
|
null,
|
|
15129
15129
|
null,
|
|
15130
15130
|
null,
|
|
@@ -15170,7 +15170,7 @@
|
|
|
15170
15170
|
[
|
|
15171
15171
|
null,
|
|
15172
15172
|
null,
|
|
15173
|
-
"592(?:4[0-2]|93)\\d{4}",
|
|
15173
|
+
"(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",
|
|
15174
15174
|
null,
|
|
15175
15175
|
null,
|
|
15176
15176
|
null,
|
|
@@ -21021,7 +21021,7 @@
|
|
|
21021
21021
|
[
|
|
21022
21022
|
null,
|
|
21023
21023
|
null,
|
|
21024
|
-
"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:[
|
|
21024
|
+
"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[59]\\d|6[01]))|58(?:0[1-9]|1[2-9]))\\d{4}",
|
|
21025
21025
|
null,
|
|
21026
21026
|
null,
|
|
21027
21027
|
null,
|
|
@@ -21035,7 +21035,7 @@
|
|
|
21035
21035
|
[
|
|
21036
21036
|
null,
|
|
21037
21037
|
null,
|
|
21038
|
-
"(?:4(?:44[5-9]|6(?:1[0-
|
|
21038
|
+
"(?:4(?:44[5-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-6]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[02357-9])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",
|
|
21039
21039
|
null,
|
|
21040
21040
|
null,
|
|
21041
21041
|
null,
|
|
@@ -21506,7 +21506,7 @@
|
|
|
21506
21506
|
[
|
|
21507
21507
|
null,
|
|
21508
21508
|
null,
|
|
21509
|
-
"9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[
|
|
21509
|
+
"9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[5-7])))\\d{4}|98\\d{6}",
|
|
21510
21510
|
null,
|
|
21511
21511
|
null,
|
|
21512
21512
|
null,
|
|
@@ -30980,7 +30980,7 @@
|
|
|
30980
30980
|
[
|
|
30981
30981
|
null,
|
|
30982
30982
|
null,
|
|
30983
|
-
"
|
|
30983
|
+
"5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",
|
|
30984
30984
|
null,
|
|
30985
30985
|
null,
|
|
30986
30986
|
null,
|
|
@@ -30998,7 +30998,7 @@
|
|
|
30998
30998
|
[
|
|
30999
30999
|
null,
|
|
31000
31000
|
null,
|
|
31001
|
-
"80\\d{
|
|
31001
|
+
"80[0-7]\\d{6}",
|
|
31002
31002
|
null,
|
|
31003
31003
|
null,
|
|
31004
31004
|
null,
|
|
@@ -31044,7 +31044,7 @@
|
|
|
31044
31044
|
[
|
|
31045
31045
|
null,
|
|
31046
31046
|
null,
|
|
31047
|
-
"592(?:4[0-2]|93)\\d{4}",
|
|
31047
|
+
"(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",
|
|
31048
31048
|
null,
|
|
31049
31049
|
null,
|
|
31050
31050
|
null,
|
|
@@ -31061,17 +31061,6 @@
|
|
|
31061
31061
|
null,
|
|
31062
31062
|
null,
|
|
31063
31063
|
[
|
|
31064
|
-
[
|
|
31065
|
-
null,
|
|
31066
|
-
"(\\d{5})(\\d{4})",
|
|
31067
|
-
"$1-$2",
|
|
31068
|
-
[
|
|
31069
|
-
"5(?:29|38)",
|
|
31070
|
-
"5(?:29[1289]|389)",
|
|
31071
|
-
"529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"
|
|
31072
|
-
],
|
|
31073
|
-
"0$1"
|
|
31074
|
-
],
|
|
31075
31064
|
[
|
|
31076
31065
|
null,
|
|
31077
31066
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -31086,8 +31075,8 @@
|
|
|
31086
31075
|
"(\\d{4})(\\d{5})",
|
|
31087
31076
|
"$1-$2",
|
|
31088
31077
|
[
|
|
31089
|
-
"5(?:2[2-489]|3[5-9]|9)|
|
|
31090
|
-
"5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|
|
|
31078
|
+
"5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)",
|
|
31079
|
+
"5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"
|
|
31091
31080
|
],
|
|
31092
31081
|
"0$1"
|
|
31093
31082
|
],
|
|
@@ -32458,7 +32447,7 @@
|
|
|
32458
32447
|
[
|
|
32459
32448
|
null,
|
|
32460
32449
|
null,
|
|
32461
|
-
"7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|
|
|
32450
|
+
"7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|6[01]|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}",
|
|
32462
32451
|
null,
|
|
32463
32452
|
null,
|
|
32464
32453
|
null,
|
|
@@ -40295,7 +40284,7 @@
|
|
|
40295
40284
|
[
|
|
40296
40285
|
null,
|
|
40297
40286
|
null,
|
|
40298
|
-
"3(?:[0-
|
|
40287
|
+
"3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",
|
|
40299
40288
|
null,
|
|
40300
40289
|
null,
|
|
40301
40290
|
null,
|
|
@@ -42505,7 +42494,7 @@
|
|
|
42505
42494
|
[
|
|
42506
42495
|
null,
|
|
42507
42496
|
null,
|
|
42508
|
-
"(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",
|
|
42497
|
+
"(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",
|
|
42509
42498
|
null,
|
|
42510
42499
|
null,
|
|
42511
42500
|
null,
|
|
@@ -42529,7 +42518,7 @@
|
|
|
42529
42518
|
[
|
|
42530
42519
|
null,
|
|
42531
42520
|
null,
|
|
42532
|
-
"7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-
|
|
42521
|
+
"7020\\d{5}|(?:62\\d|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",
|
|
42533
42522
|
null,
|
|
42534
42523
|
null,
|
|
42535
42524
|
null,
|
|
@@ -42654,7 +42643,7 @@
|
|
|
42654
42643
|
"(\\d{3})(\\d{3})(\\d{3})",
|
|
42655
42644
|
"$1 $2 $3",
|
|
42656
42645
|
[
|
|
42657
|
-
"[
|
|
42646
|
+
"[236-9]"
|
|
42658
42647
|
],
|
|
42659
42648
|
"0$1"
|
|
42660
42649
|
]
|
|
@@ -49390,7 +49379,7 @@
|
|
|
49390
49379
|
[
|
|
49391
49380
|
null,
|
|
49392
49381
|
null,
|
|
49393
|
-
"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:
|
|
49382
|
+
"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",
|
|
49394
49383
|
null,
|
|
49395
49384
|
null,
|
|
49396
49385
|
null,
|
|
@@ -49408,7 +49397,7 @@
|
|
|
49408
49397
|
[
|
|
49409
49398
|
null,
|
|
49410
49399
|
null,
|
|
49411
|
-
"(?:
|
|
49400
|
+
"(?:4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[0178]|8[078]|9\\d)\\d{7}",
|
|
49412
49401
|
null,
|
|
49413
49402
|
null,
|
|
49414
49403
|
null,
|
|
@@ -49509,7 +49498,7 @@
|
|
|
49509
49498
|
"(\\d{3})(\\d{2})(\\d{4})",
|
|
49510
49499
|
"$1 $2 $3",
|
|
49511
49500
|
[
|
|
49512
|
-
"44[
|
|
49501
|
+
"44[02-479]|[34]7"
|
|
49513
49502
|
]
|
|
49514
49503
|
],
|
|
49515
49504
|
[
|