@arkyn/server 3.0.1-beta.121 → 3.0.1-beta.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,12 +1,12 @@
1
- var k = Object.defineProperty;
2
- var w = (e, s, t) => s in e ? k(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
- var c = (e, s, t) => w(e, typeof s != "symbol" ? s + "" : s, t);
1
+ var Ge = Object.defineProperty;
2
+ var He = (t, e, d) => e in t ? Ge(t, e, { enumerable: !0, configurable: !0, writable: !0, value: d }) : t[e] = d;
3
+ var f = (t, e, d) => He(t, typeof e != "symbol" ? e + "" : e, d);
4
4
  import "zod";
5
- import { removeNonNumeric as R, ValidateDateService as j } from "@arkyn/shared";
6
- import J from "node:dns";
7
- import { countries as _ } from "@arkyn/templates";
8
- const I = {};
9
- class S {
5
+ import { removeNonNumeric as z, ValidateDateService as Ve } from "@arkyn/shared";
6
+ import Je from "node:dns";
7
+ import { countries as We } from "@arkyn/templates";
8
+ const Ke = {};
9
+ class Q {
10
10
  /**
11
11
  * Sets the file name to be ignored during stack trace analysis.
12
12
  *
@@ -22,8 +22,8 @@ class S {
22
22
  * DebugService.setIgnoreFile("httpAdapter.ts");
23
23
  * ```
24
24
  */
25
- static setIgnoreFile(s) {
26
- this.ignoreFiles.push(s);
25
+ static setIgnoreFile(e) {
26
+ this.ignoreFiles.push(e);
27
27
  }
28
28
  /**
29
29
  * Clears all configured ignore files.
@@ -52,27 +52,27 @@ class S {
52
52
  * - `callerInfo`: The file path of the caller relative to the project root, or "Unknown caller" if it cannot be determined.
53
53
  */
54
54
  static getCaller() {
55
- const s = process.cwd(), r = (new Error().stack || "").split(`
56
- `).map((l) => l.trim());
57
- let o = 2;
58
- for (; o < r.length && (r[o].includes("node:internal") || r[o].includes("/node_modules/")); )
59
- o++;
55
+ const e = process.cwd(), n = (new Error().stack || "").split(`
56
+ `).map((u) => u.trim());
57
+ let s = 2;
58
+ for (; s < n.length && (n[s].includes("node:internal") || n[s].includes("/node_modules/")); )
59
+ s++;
60
60
  if (this.ignoreFiles.length > 0)
61
- for (; o < r.length && this.ignoreFiles.some(
62
- (l) => r[o].includes(l)
61
+ for (; s < n.length && this.ignoreFiles.some(
62
+ (u) => n[s].includes(u)
63
63
  ); )
64
- o++;
65
- const a = r[o] || "";
66
- let u = "Unknown function", i = "Unknown caller";
67
- const h = a.match(/at\s+([^(\s]+)\s+\(([^)]+)\)/);
68
- if (h)
69
- u = h[1], i = h[2];
64
+ s++;
65
+ const $ = n[s] || "";
66
+ let o = "Unknown function", i = "Unknown caller";
67
+ const a = $.match(/at\s+([^(\s]+)\s+\(([^)]+)\)/);
68
+ if (a)
69
+ o = a[1], i = a[2];
70
70
  else {
71
- const l = a.match(/at\s+(.+)/);
72
- if (l) {
73
- i = l[1];
74
- const d = i.match(/at\s+([^(\s]+)\s+/);
75
- d && d[1] !== "new" && (u = d[1]);
71
+ const u = $.match(/at\s+(.+)/);
72
+ if (u) {
73
+ i = u[1];
74
+ const l = i.match(/at\s+([^(\s]+)\s+/);
75
+ l && l[1] !== "new" && (o = l[1]);
76
76
  }
77
77
  }
78
78
  i.includes("(") && (i = i.substring(
@@ -80,68 +80,68 @@ class S {
80
80
  i.lastIndexOf(")")
81
81
  )), i = i.split(":").slice(0, -2).join(":");
82
82
  try {
83
- i = I.relative(s, i);
83
+ i = Ke.relative(e, i);
84
84
  } catch {
85
85
  }
86
- return { functionName: u, callerInfo: i };
86
+ return { functionName: o, callerInfo: i };
87
87
  }
88
88
  }
89
89
  /**
90
90
  * The name of the file to ignore when analyzing the stack trace.
91
91
  * When set, the `getCaller` function will skip stack frames containing this file name.
92
92
  */
93
- c(S, "ignoreFiles", []);
94
- function p(e) {
95
- var t;
96
- if (process.env.NODE_ENV === "development" || ((t = process.env) == null ? void 0 : t.DEBUG_MODE) === "true") {
97
- const o = `${{
93
+ f(Q, "ignoreFiles", []);
94
+ function F(t) {
95
+ var d;
96
+ if (process.env.NODE_ENV === "development" || ((d = process.env) == null ? void 0 : d.DEBUG_MODE) === "true") {
97
+ const s = `${{
98
98
  yellow: "\x1B[33m",
99
99
  cyan: "\x1B[36m",
100
100
  red: "\x1B[31m",
101
101
  green: "\x1B[32m"
102
- }[e.scheme]}[${e.name}]\x1B[0m`;
103
- let a = `
102
+ }[t.scheme]}[${t.name}]\x1B[0m`;
103
+ let $ = `
104
104
  `;
105
- e.debugs.forEach((u) => {
106
- a += `${o} ${u.trim()}
105
+ t.debugs.forEach((o) => {
106
+ $ += `${s} ${o.trim()}
107
107
  `;
108
- }), console.log(a);
108
+ }), console.log($);
109
109
  }
110
110
  }
111
- class f {
111
+ class p {
112
112
  constructor() {
113
- c(this, "_cause");
114
- c(this, "_name", "BadResponse");
115
- c(this, "_status", 500);
116
- c(this, "_statusText", "Unknown error");
113
+ f(this, "_cause");
114
+ f(this, "_name", "BadResponse");
115
+ f(this, "_status", 500);
116
+ f(this, "_statusText", "Unknown error");
117
117
  }
118
118
  get cause() {
119
119
  return this._cause;
120
120
  }
121
- set cause(s) {
122
- this._cause = s;
121
+ set cause(e) {
122
+ this._cause = e;
123
123
  }
124
124
  get name() {
125
125
  return this._name;
126
126
  }
127
- set name(s) {
128
- this._name = s;
127
+ set name(e) {
128
+ this._name = e;
129
129
  }
130
130
  get status() {
131
131
  return this._status;
132
132
  }
133
- set status(s) {
134
- this._status = s;
133
+ set status(e) {
134
+ this._status = e;
135
135
  }
136
136
  get statusText() {
137
137
  return this._statusText;
138
138
  }
139
- set statusText(s) {
140
- this._statusText = s;
139
+ set statusText(e) {
140
+ this._statusText = e;
141
141
  }
142
142
  onDebug() {
143
- const s = [], { callerInfo: t, functionName: n } = S.getCaller();
144
- s.push(`Caller Function: ${n}`), s.push(`Caller Location: ${t}`), this._statusText && s.push(`Message: ${this._statusText}`), this._cause && s.push(`Cause: ${JSON.stringify(this._cause)}`), p({ scheme: "red", name: this._name, debugs: s });
143
+ const e = [], { callerInfo: d, functionName: r } = Q.getCaller();
144
+ e.push(`Caller Function: ${r}`), e.push(`Caller Location: ${d}`), this._statusText && e.push(`Message: ${this._statusText}`), this._cause && e.push(`Cause: ${JSON.stringify(this._cause)}`), F({ scheme: "red", name: this._name, debugs: e });
145
145
  }
146
146
  makeBody() {
147
147
  return {
@@ -151,15 +151,15 @@ class f {
151
151
  };
152
152
  }
153
153
  }
154
- class U extends f {
154
+ class Ze extends p {
155
155
  /**
156
156
  * Creates an instance of the `BadGateway` class.
157
157
  *
158
158
  * @param {string} message - A descriptive message explaining the cause of the error.
159
159
  * @param {any} cause - Optional additional information about the cause of the error.
160
160
  */
161
- constructor(s, t) {
162
- super(), this.name = "BadGateway", this.status = 502, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
161
+ constructor(e, d) {
162
+ super(), this.name = "BadGateway", this.status = 502, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
163
163
  }
164
164
  /**
165
165
  * Converts the `BadGateway` instance into a `Response` object with a JSON body.
@@ -168,12 +168,12 @@ class U extends f {
168
168
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
169
169
  */
170
170
  toResponse() {
171
- const s = {
171
+ const e = {
172
172
  headers: { "Content-Type": "application/json" },
173
173
  status: this.status,
174
174
  statusText: this.statusText
175
175
  };
176
- return new Response(JSON.stringify(this.makeBody()), s);
176
+ return new Response(JSON.stringify(this.makeBody()), e);
177
177
  }
178
178
  /**
179
179
  * Converts the `BadGateway` instance into a `Response` object using the `Response.json` method.
@@ -182,22 +182,22 @@ class U extends f {
182
182
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
183
183
  */
184
184
  toJson() {
185
- const s = {
185
+ const e = {
186
186
  status: this.status,
187
187
  statusText: this.statusText
188
188
  };
189
- return Response.json(this.makeBody(), s);
189
+ return Response.json(this.makeBody(), e);
190
190
  }
191
191
  }
192
- class T extends f {
192
+ class V extends p {
193
193
  /**
194
194
  * Creates an instance of the `BadRequest` class.
195
195
  *
196
196
  * @param {string} message - A descriptive message explaining the cause of the error.
197
197
  * @param {any} cause - Optional additional information about the cause of the error.
198
198
  */
199
- constructor(s, t) {
200
- super(), this.name = "BadRequest", this.status = 400, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
199
+ constructor(e, d) {
200
+ super(), this.name = "BadRequest", this.status = 400, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
201
201
  }
202
202
  /**
203
203
  * Converts the `BadRequest` instance into a `Response` object with a JSON body.
@@ -206,12 +206,12 @@ class T extends f {
206
206
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
207
207
  */
208
208
  toResponse() {
209
- const s = {
209
+ const e = {
210
210
  headers: { "Content-Type": "application/json" },
211
211
  status: this.status,
212
212
  statusText: this.statusText
213
213
  };
214
- return new Response(JSON.stringify(this.makeBody()), s);
214
+ return new Response(JSON.stringify(this.makeBody()), e);
215
215
  }
216
216
  /**
217
217
  * Converts the `BadRequest` instance into a `Response` object using the `Response.json` method.
@@ -220,22 +220,22 @@ class T extends f {
220
220
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
221
221
  */
222
222
  toJson() {
223
- const s = {
223
+ const e = {
224
224
  status: this.status,
225
225
  statusText: this.statusText
226
226
  };
227
- return Response.json(this.makeBody(), s);
227
+ return Response.json(this.makeBody(), e);
228
228
  }
229
229
  }
230
- class C extends f {
230
+ class qe extends p {
231
231
  /**
232
232
  * Creates an instance of the `Conflict` class.
233
233
  *
234
234
  * @param {string} message - A descriptive message explaining the cause of the conflict.
235
235
  * @param {any} cause - Optional additional information about the cause of the conflict.
236
236
  */
237
- constructor(s, t) {
238
- super(), this.name = "Conflict", this.status = 409, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
237
+ constructor(e, d) {
238
+ super(), this.name = "Conflict", this.status = 409, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
239
239
  }
240
240
  /**
241
241
  * Converts the `Conflict` instance into a `Response` object with a JSON body.
@@ -244,12 +244,12 @@ class C extends f {
244
244
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
245
245
  */
246
246
  toResponse() {
247
- const s = {
247
+ const e = {
248
248
  headers: { "Content-Type": "application/json" },
249
249
  status: this.status,
250
250
  statusText: this.statusText
251
251
  };
252
- return new Response(JSON.stringify(this.makeBody()), s);
252
+ return new Response(JSON.stringify(this.makeBody()), e);
253
253
  }
254
254
  /**
255
255
  * Converts the `Conflict` instance into a `Response` object using the `Response.json` method.
@@ -258,22 +258,22 @@ class C extends f {
258
258
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
259
259
  */
260
260
  toJson() {
261
- const s = {
261
+ const e = {
262
262
  status: this.status,
263
263
  statusText: this.statusText
264
264
  };
265
- return Response.json(this.makeBody(), s);
265
+ return Response.json(this.makeBody(), e);
266
266
  }
267
267
  }
268
- class A extends f {
268
+ class Xe extends p {
269
269
  /**
270
270
  * Creates an instance of the `Forbidden` class.
271
271
  *
272
272
  * @param {string} message - A descriptive message explaining why access is forbidden.
273
273
  * @param {any} cause - Optional additional information about the cause of the error.
274
274
  */
275
- constructor(s, t) {
276
- super(), this.name = "Forbidden", this.status = 403, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
275
+ constructor(e, d) {
276
+ super(), this.name = "Forbidden", this.status = 403, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
277
277
  }
278
278
  /**
279
279
  * Converts the `Forbidden` instance into a `Response` object with a JSON body.
@@ -282,12 +282,12 @@ class A extends f {
282
282
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
283
283
  */
284
284
  toResponse() {
285
- const s = {
285
+ const e = {
286
286
  headers: { "Content-Type": "application/json" },
287
287
  status: this.status,
288
288
  statusText: this.statusText
289
289
  };
290
- return new Response(JSON.stringify(this.makeBody()), s);
290
+ return new Response(JSON.stringify(this.makeBody()), e);
291
291
  }
292
292
  /**
293
293
  * Converts the `Forbidden` instance into a `Response` object using the `Response.json` method.
@@ -296,22 +296,22 @@ class A extends f {
296
296
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
297
297
  */
298
298
  toJson() {
299
- const s = {
299
+ const e = {
300
300
  status: this.status,
301
301
  statusText: this.statusText
302
302
  };
303
- return Response.json(this.makeBody(), s);
303
+ return Response.json(this.makeBody(), e);
304
304
  }
305
305
  }
306
- class q extends f {
306
+ class Ye extends p {
307
307
  /**
308
308
  * Creates an instance of the `NotFound` class.
309
309
  *
310
310
  * @param {string} message - A descriptive message explaining the reason the resource was not found.
311
311
  * @param {any} cause - Optional additional information about the cause of the error.
312
312
  */
313
- constructor(s, t) {
314
- super(), this.name = "NotFound", this.status = 404, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
313
+ constructor(e, d) {
314
+ super(), this.name = "NotFound", this.status = 404, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
315
315
  }
316
316
  /**
317
317
  * Converts the `NotFound` instance into a `Response` object with a JSON body.
@@ -320,12 +320,12 @@ class q extends f {
320
320
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
321
321
  */
322
322
  toResponse() {
323
- const s = {
323
+ const e = {
324
324
  headers: { "Content-Type": "application/json" },
325
325
  status: this.status,
326
326
  statusText: this.statusText
327
327
  };
328
- return new Response(JSON.stringify(this.makeBody()), s);
328
+ return new Response(JSON.stringify(this.makeBody()), e);
329
329
  }
330
330
  /**
331
331
  * Converts the `NotFound` instance into a `Response` object using the `Response.json` method.
@@ -334,22 +334,22 @@ class q extends f {
334
334
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
335
335
  */
336
336
  toJson() {
337
- const s = {
337
+ const e = {
338
338
  status: this.status,
339
339
  statusText: this.statusText
340
340
  };
341
- return Response.json(this.makeBody(), s);
341
+ return Response.json(this.makeBody(), e);
342
342
  }
343
343
  }
344
- class H extends f {
344
+ class ze extends p {
345
345
  /**
346
346
  * Creates an instance of the `NotImplemented` class.
347
347
  *
348
348
  * @param {string} message - A descriptive message explaining why the functionality is not implemented.
349
349
  * @param {any} cause - Optional additional information about the cause of the error.
350
350
  */
351
- constructor(s, t) {
352
- super(), this.name = "NotImplemented", this.status = 501, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
351
+ constructor(e, d) {
352
+ super(), this.name = "NotImplemented", this.status = 501, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
353
353
  }
354
354
  /**
355
355
  * Converts the `NotImplemented` instance into a `Response` object with a JSON body.
@@ -358,12 +358,12 @@ class H extends f {
358
358
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
359
359
  */
360
360
  toResponse() {
361
- const s = {
361
+ const e = {
362
362
  headers: { "Content-Type": "application/json" },
363
363
  status: this.status,
364
364
  statusText: this.statusText
365
365
  };
366
- return new Response(JSON.stringify(this.makeBody()), s);
366
+ return new Response(JSON.stringify(this.makeBody()), e);
367
367
  }
368
368
  /**
369
369
  * Converts the `NotImplemented` instance into a `Response` object using the `Response.json` method.
@@ -372,22 +372,22 @@ class H extends f {
372
372
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
373
373
  */
374
374
  toJson() {
375
- const s = {
375
+ const e = {
376
376
  status: this.status,
377
377
  statusText: this.statusText
378
378
  };
379
- return Response.json(this.makeBody(), s);
379
+ return Response.json(this.makeBody(), e);
380
380
  }
381
381
  }
382
- class x extends f {
382
+ class J extends p {
383
383
  /**
384
384
  * Creates an instance of the `ServerError` class.
385
385
  *
386
386
  * @param {string} message - A descriptive message explaining the cause of the server error.
387
387
  * @param {any} cause - Optional additional information about the cause of the error.
388
388
  */
389
- constructor(s, t) {
390
- super(), this.name = "ServerError", this.status = 500, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
389
+ constructor(e, d) {
390
+ super(), this.name = "ServerError", this.status = 500, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
391
391
  }
392
392
  /**
393
393
  * Converts the `ServerError` instance into a `Response` object with a JSON body.
@@ -396,12 +396,12 @@ class x extends f {
396
396
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
397
397
  */
398
398
  toResponse() {
399
- const s = {
399
+ const e = {
400
400
  headers: { "Content-Type": "application/json" },
401
401
  status: this.status,
402
402
  statusText: this.statusText
403
403
  };
404
- return new Response(JSON.stringify(this.makeBody()), s);
404
+ return new Response(JSON.stringify(this.makeBody()), e);
405
405
  }
406
406
  /**
407
407
  * Converts the `ServerError` instance into a `Response` object using the `Response.json` method.
@@ -410,22 +410,22 @@ class x extends f {
410
410
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
411
411
  */
412
412
  toJson() {
413
- const s = {
413
+ const e = {
414
414
  status: this.status,
415
415
  statusText: this.statusText
416
416
  };
417
- return Response.json(this.makeBody(), s);
417
+ return Response.json(this.makeBody(), e);
418
418
  }
419
419
  }
420
- class L extends f {
420
+ class Qe extends p {
421
421
  /**
422
422
  * Creates an instance of the `Unauthorized` class.
423
423
  *
424
424
  * @param message - A descriptive message explaining why the request is unauthorized.
425
425
  * @param cause - Optional additional information about the cause of the error.
426
426
  */
427
- constructor(s, t) {
428
- super(), this.name = "Unauthorized", this.status = 401, this.statusText = s, this.cause = t ? JSON.stringify(t) : void 0, this.onDebug();
427
+ constructor(e, d) {
428
+ super(), this.name = "Unauthorized", this.status = 401, this.statusText = e, this.cause = d ? JSON.stringify(d) : void 0, this.onDebug();
429
429
  }
430
430
  /**
431
431
  * Converts the `Unauthorized` instance into a `Response` object with a JSON body.
@@ -434,12 +434,12 @@ class L extends f {
434
434
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
435
435
  */
436
436
  toResponse() {
437
- const s = {
437
+ const e = {
438
438
  headers: { "Content-Type": "application/json" },
439
439
  status: this.status,
440
440
  statusText: this.statusText
441
441
  };
442
- return new Response(JSON.stringify(this.makeBody()), s);
442
+ return new Response(JSON.stringify(this.makeBody()), e);
443
443
  }
444
444
  /**
445
445
  * Converts the `Unauthorized` instance into a `Response` object using the `Response.json` method.
@@ -448,14 +448,14 @@ class L extends f {
448
448
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
449
449
  */
450
450
  toJson() {
451
- const s = {
451
+ const e = {
452
452
  status: this.status,
453
453
  statusText: this.statusText
454
454
  };
455
- return Response.json(this.makeBody(), s);
455
+ return Response.json(this.makeBody(), e);
456
456
  }
457
457
  }
458
- class b extends f {
458
+ class W extends p {
459
459
  /**
460
460
  * Creates an instance of the `UnprocessableEntity` class.
461
461
  *
@@ -465,11 +465,11 @@ class b extends f {
465
465
  * @param {Record<string, string>} [props.fields] - `fields`: A record of field values that caused the error.
466
466
  * @param {string} [props.message] - `message`: A descriptive message explaining the error.
467
467
  */
468
- constructor(s) {
469
- super(), this.name = "UnprocessableEntity", this.status = 422, this.statusText = s.message || "Unprocessable entity", this.cause = {
470
- data: s.data,
471
- fieldErrors: s.fieldErrors,
472
- fields: s.fields
468
+ constructor(e) {
469
+ super(), this.name = "UnprocessableEntity", this.status = 422, this.statusText = e.message || "Unprocessable entity", this.cause = {
470
+ data: e.data,
471
+ fieldErrors: e.fieldErrors,
472
+ fields: e.fields
473
473
  }, this.onDebug();
474
474
  }
475
475
  /**
@@ -479,12 +479,12 @@ class b extends f {
479
479
  * @returns {Response} A `Response` object with the serialized JSON body and response metadata.
480
480
  */
481
481
  toResponse() {
482
- const s = {
482
+ const e = {
483
483
  headers: { "Content-Type": "application/json" },
484
484
  status: this.status,
485
485
  statusText: this.statusText
486
486
  };
487
- return new Response(JSON.stringify(this.makeBody()), s);
487
+ return new Response(JSON.stringify(this.makeBody()), e);
488
488
  }
489
489
  /**
490
490
  * Converts the `UnprocessableEntity` instance into a `Response` object using the `Response.json` method.
@@ -493,43 +493,43 @@ class b extends f {
493
493
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
494
494
  */
495
495
  toJson() {
496
- const s = {
496
+ const e = {
497
497
  status: this.status,
498
498
  statusText: this.statusText
499
499
  };
500
- return Response.json(this.makeBody(), s);
500
+ return Response.json(this.makeBody(), e);
501
501
  }
502
502
  }
503
- class g {
503
+ class w {
504
504
  constructor() {
505
- c(this, "_body", null);
506
- c(this, "_name", "SuccessResponse");
507
- c(this, "_status", 200);
508
- c(this, "_statusText", "OK");
505
+ f(this, "_body", null);
506
+ f(this, "_name", "SuccessResponse");
507
+ f(this, "_status", 200);
508
+ f(this, "_statusText", "OK");
509
509
  }
510
510
  get body() {
511
511
  return this._body;
512
512
  }
513
- set body(s) {
514
- this._body = s ?? null;
513
+ set body(e) {
514
+ this._body = e ?? null;
515
515
  }
516
516
  get name() {
517
517
  return this._name;
518
518
  }
519
- set name(s) {
520
- this._name = s;
519
+ set name(e) {
520
+ this._name = e;
521
521
  }
522
522
  get status() {
523
523
  return this._status;
524
524
  }
525
- set status(s) {
526
- this._status = s;
525
+ set status(e) {
526
+ this._status = e;
527
527
  }
528
528
  get statusText() {
529
529
  return this._statusText;
530
530
  }
531
- set statusText(s) {
532
- this._statusText = s;
531
+ set statusText(e) {
532
+ this._statusText = e;
533
533
  }
534
534
  /**
535
535
  * Logs debug information for success responses including caller context and response details.
@@ -542,9 +542,9 @@ class g {
542
542
  * SuccessResponse.onDebug({ data: "Operation completed successfully" });
543
543
  * ```
544
544
  */
545
- onDebug(s) {
546
- const t = [], { callerInfo: n, functionName: r } = S.getCaller();
547
- t.push(`Caller Function: ${r}`), t.push(`Caller Location: ${n}`), this.statusText && t.push(`Message: ${this.statusText}`), s && t.push(`Body: ${JSON.stringify(s)}`), p({ scheme: "red", name: this.name, debugs: t });
545
+ onDebug(e) {
546
+ const d = [], { callerInfo: r, functionName: n } = Q.getCaller();
547
+ d.push(`Caller Function: ${n}`), d.push(`Caller Location: ${r}`), this.statusText && d.push(`Message: ${this.statusText}`), e && d.push(`Body: ${JSON.stringify(e)}`), F({ scheme: "red", name: this.name, debugs: d });
548
548
  }
549
549
  makeBody() {
550
550
  return {
@@ -554,27 +554,27 @@ class g {
554
554
  };
555
555
  }
556
556
  }
557
- class F extends g {
557
+ class et extends w {
558
558
  /**
559
559
  * Creates an instance of the `Created` class.
560
560
  *
561
561
  * @param {string} message - A message describing the creation status.
562
562
  * @param {any} body - The response body to be included in the HTTP response.
563
563
  */
564
- constructor(s, t) {
565
- super(), this.name = "Created", this.status = 201, this.statusText = s, this.body = t || void 0, this.onDebug();
564
+ constructor(e, d) {
565
+ super(), this.name = "Created", this.status = 201, this.statusText = e, this.body = d || void 0, this.onDebug();
566
566
  }
567
567
  /**
568
568
  * Converts the `Created` instance into a `Response` object.
569
569
  * @returns {Response} A `Response` object with the body and response metadata.
570
570
  */
571
571
  toResponse() {
572
- const s = {
572
+ const e = {
573
573
  headers: { "Content-Type": "application/json" },
574
574
  status: this.status,
575
575
  statusText: this.statusText
576
576
  };
577
- return new Response(JSON.stringify(this.body), s);
577
+ return new Response(JSON.stringify(this.body), e);
578
578
  }
579
579
  /**
580
580
  * Converts the `Created` instance into a `Response` object using the `Response.json` method.
@@ -582,34 +582,34 @@ class F extends g {
582
582
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
583
583
  */
584
584
  toJson() {
585
- const s = {
585
+ const e = {
586
586
  status: this.status,
587
587
  statusText: this.statusText
588
588
  };
589
- return Response.json(this.body, s);
589
+ return Response.json(this.body, e);
590
590
  }
591
591
  }
592
- class z extends g {
592
+ class tt extends w {
593
593
  /**
594
594
  * Creates an instance of the `Found` class.
595
595
  *
596
596
  * @param {string} message - A message describing the creation status.
597
597
  * @param {any} body - The response body to be included in the HTTP response.
598
598
  */
599
- constructor(s, t) {
600
- super(), this.name = "Found", this.status = 302, this.statusText = s, this.body = t || void 0, this.onDebug();
599
+ constructor(e, d) {
600
+ super(), this.name = "Found", this.status = 302, this.statusText = e, this.body = d || void 0, this.onDebug();
601
601
  }
602
602
  /**
603
603
  * Converts the `Found` instance into a `Response` object.
604
604
  * @returns {Response} A `Response` object with the body and response metadata.
605
605
  */
606
606
  toResponse() {
607
- const s = {
607
+ const e = {
608
608
  headers: { "Content-Type": "application/json" },
609
609
  status: this.status,
610
610
  statusText: this.statusText
611
611
  };
612
- return new Response(JSON.stringify(this.body), s);
612
+ return new Response(JSON.stringify(this.body), e);
613
613
  }
614
614
  /**
615
615
  * Converts the `Found` instance into a `Response` object using the `Response.json` method.
@@ -617,55 +617,55 @@ class z extends g {
617
617
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
618
618
  */
619
619
  toJson() {
620
- const s = {
620
+ const e = {
621
621
  status: this.status,
622
622
  statusText: this.statusText
623
623
  };
624
- return Response.json(this.body, s);
624
+ return Response.json(this.body, e);
625
625
  }
626
626
  }
627
- class M extends g {
627
+ class dt extends w {
628
628
  /**
629
629
  * Creates an instance of the `NoContent` class.
630
630
  * @param {string} message - A message describing the creation status.
631
631
  */
632
- constructor(s) {
633
- super(), this.name = "NoContent", this.status = 204, this.statusText = s, this.onDebug();
632
+ constructor(e) {
633
+ super(), this.name = "NoContent", this.status = 204, this.statusText = e, this.onDebug();
634
634
  }
635
635
  /**
636
636
  * Converts the `NoContent` instance into a `Response` object.
637
637
  * @returns {Response} A `Response` object with the body and response metadata.
638
638
  */
639
639
  toResponse() {
640
- const s = {
640
+ const e = {
641
641
  headers: { "Content-Type": "application/json" },
642
642
  status: this.status,
643
643
  statusText: this.statusText
644
644
  };
645
- return new Response(null, s);
645
+ return new Response(null, e);
646
646
  }
647
647
  }
648
- class V extends g {
648
+ class rt extends w {
649
649
  /**
650
650
  * Creates an instance of the `Success` class.
651
651
  *
652
652
  * @param {string} message - A message describing the creation status.
653
653
  * @param {any} body - The response body to be included in the HTTP response.
654
654
  */
655
- constructor(s, t) {
656
- super(), this.name = "Success", this.status = 200, this.statusText = s, this.body = t || void 0, this.onDebug();
655
+ constructor(e, d) {
656
+ super(), this.name = "Success", this.status = 200, this.statusText = e, this.body = d || void 0, this.onDebug();
657
657
  }
658
658
  /**
659
659
  * Converts the `Success` instance into a `Response` object.
660
660
  * @returns {Response} A `Response` object with the body and response metadata.
661
661
  */
662
662
  toResponse() {
663
- const s = {
663
+ const e = {
664
664
  headers: { "Content-Type": "application/json" },
665
665
  status: this.status,
666
666
  statusText: this.statusText
667
667
  };
668
- return new Response(JSON.stringify(this.body), s);
668
+ return new Response(JSON.stringify(this.body), e);
669
669
  }
670
670
  /**
671
671
  * Converts the `Success` instance into a `Response` object using the `Response.json` method.
@@ -673,34 +673,34 @@ class V extends g {
673
673
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
674
674
  */
675
675
  toJson() {
676
- const s = {
676
+ const e = {
677
677
  status: this.status,
678
678
  statusText: this.statusText
679
679
  };
680
- return Response.json(this.body, s);
680
+ return Response.json(this.body, e);
681
681
  }
682
682
  }
683
- class Z extends g {
683
+ class nt extends w {
684
684
  /**
685
685
  * Creates an instance of the `Updated` class.
686
686
  *
687
687
  * @param {string} message - A message describing the creation status.
688
688
  * @param {any} body - The response body to be included in the HTTP response.
689
689
  */
690
- constructor(s, t) {
691
- super(), this.name = "Updated", this.status = 200, this.statusText = s, this.body = t || void 0, this.onDebug();
690
+ constructor(e, d) {
691
+ super(), this.name = "Updated", this.status = 200, this.statusText = e, this.body = d || void 0, this.onDebug();
692
692
  }
693
693
  /**
694
694
  * Converts the `Updated` instance into a `Response` object.
695
695
  * @returns {Response} A `Response` object with the body and response metadata.
696
696
  */
697
697
  toResponse() {
698
- const s = {
698
+ const e = {
699
699
  headers: { "Content-Type": "application/json" },
700
700
  status: this.status,
701
701
  statusText: this.statusText
702
702
  };
703
- return new Response(JSON.stringify(this.body), s);
703
+ return new Response(JSON.stringify(this.body), e);
704
704
  }
705
705
  /**
706
706
  * Converts the `Updated` instance into a `Response` object using the `Response.json` method.
@@ -708,14 +708,14 @@ class Z extends g {
708
708
  * @returns {Response["json"]} A `Response` object with the JSON body and response metadata.
709
709
  */
710
710
  toJson() {
711
- const s = {
711
+ const e = {
712
712
  status: this.status,
713
713
  statusText: this.statusText
714
714
  };
715
- return Response.json(this.body, s);
715
+ return Response.json(this.body, e);
716
716
  }
717
717
  }
718
- class G {
718
+ class st {
719
719
  /**
720
720
  * Converts various header formats into a plain key-value object.
721
721
  *
@@ -723,9 +723,9 @@ class G {
723
723
  * @returns {Record<string, string>} A plain object with header key-value pairs.
724
724
  * @private
725
725
  */
726
- static mapHeaders(s) {
727
- return s instanceof Headers ? Object.fromEntries(s.entries()) : typeof s == "object" ? Object.entries(s).reduce(
728
- (t, [n, r]) => (typeof r == "string" ? t[n] = r : Array.isArray(r) ? t[n] = r.join(", ") : t[n] = JSON.stringify(r), t),
726
+ static mapHeaders(e) {
727
+ return e instanceof Headers ? Object.fromEntries(e.entries()) : typeof e == "object" ? Object.entries(e).reduce(
728
+ (d, [r, n]) => (typeof n == "string" ? d[r] = n : Array.isArray(n) ? d[r] = n.join(", ") : d[r] = JSON.stringify(n), d),
729
729
  {}
730
730
  ) : {};
731
731
  }
@@ -736,9 +736,9 @@ class G {
736
736
  * @returns {Record<string, string>} A plain object with query parameter key-value pairs.
737
737
  * @private
738
738
  */
739
- static mapQueryParams(s) {
740
- const t = {};
741
- return s.forEach((n, r) => t[r] = n), t;
739
+ static mapQueryParams(e) {
740
+ const d = {};
741
+ return e.forEach((r, n) => d[n] = r), d;
742
742
  }
743
743
  /**
744
744
  * Transforms raw HTTP request/response data into a standardized log output format.
@@ -746,25 +746,25 @@ class G {
746
746
  * @param {InputProps} props - The input properties containing request/response data.
747
747
  * @returns {OutputProps} The mapped output object ready for logging.
748
748
  */
749
- static handle(s) {
749
+ static handle(e) {
750
750
  return {
751
- rawUrl: s.rawUrl,
752
- status: s.status,
753
- method: s.method,
751
+ rawUrl: e.rawUrl,
752
+ status: e.status,
753
+ method: e.method,
754
754
  token: null,
755
- elapsedTime: s.elapsedTime,
756
- requestHeaders: this.mapHeaders(s.requestHeaders),
757
- requestBody: s.requestBody || null,
755
+ elapsedTime: e.elapsedTime,
756
+ requestHeaders: this.mapHeaders(e.requestHeaders),
757
+ requestBody: e.requestBody || null,
758
758
  queryParams: {
759
- ...this.mapQueryParams(s.queryParams),
760
- ...s.urlParams
759
+ ...this.mapQueryParams(e.queryParams),
760
+ ...e.urlParams
761
761
  },
762
- responseHeaders: this.mapHeaders(s.responseHeaders),
763
- responseBody: s.responseBody || null
762
+ responseHeaders: this.mapHeaders(e.responseHeaders),
763
+ responseBody: e.responseBody || null
764
764
  };
765
765
  }
766
766
  }
767
- class $ {
767
+ class Re {
768
768
  /**
769
769
  * Sets the log service configuration only once.
770
770
  * If the configuration is already set, the call is ignored.
@@ -774,10 +774,10 @@ class $ {
774
774
  * @param {string} config.userToken - User token for authentication.
775
775
  * @param {string} [config.logBaseApiUrl] - Optional base URL for the log service.
776
776
  */
777
- static setConfig(s) {
777
+ static setConfig(e) {
778
778
  if (this.config) return;
779
- const { trafficSourceId: t, userToken: n, logBaseApiUrl: r } = s, a = `${r || "http://95.216.190.158:8081"}/ingest-log`;
780
- this.config = { trafficSourceId: t, userToken: n, apiUrl: a };
779
+ const { trafficSourceId: d, userToken: r, logBaseApiUrl: n } = e, $ = `${n || "http://95.216.190.158:8081"}/ingest-log`;
780
+ this.config = { trafficSourceId: d, userToken: r, apiUrl: $ };
781
781
  }
782
782
  /**
783
783
  * Returns the current service configuration, if it exists.
@@ -793,60 +793,60 @@ class $ {
793
793
  this.config = void 0;
794
794
  }
795
795
  }
796
- c($, "config");
797
- async function W(e) {
798
- const s = $.getConfig();
799
- if (!s) return;
800
- const { userToken: t, apiUrl: n, trafficSourceId: r } = s, {
801
- elapsedTime: o,
802
- method: a,
803
- queryParams: u,
796
+ f(Re, "config");
797
+ async function $t(t) {
798
+ const e = Re.getConfig();
799
+ if (!e) return;
800
+ const { userToken: d, apiUrl: r, trafficSourceId: n } = e, {
801
+ elapsedTime: s,
802
+ method: $,
803
+ queryParams: o,
804
804
  requestBody: i,
805
- requestHeaders: h,
806
- responseBody: l,
807
- responseHeaders: d,
808
- status: v,
809
- token: xs,
810
- rawUrl: B
811
- } = e;
805
+ requestHeaders: a,
806
+ responseBody: u,
807
+ responseHeaders: l,
808
+ status: h,
809
+ token: b,
810
+ rawUrl: P
811
+ } = t;
812
812
  if (process.env.NODE_ENV !== "development")
813
813
  try {
814
- const m = new URL(B);
814
+ const v = new URL(P);
815
815
  let D = "https";
816
- m.protocol === "http:" && (D = "http");
817
- const O = JSON.stringify({
818
- domainUrl: m.protocol + "//" + m.host,
819
- pathnameUrl: m.pathname,
820
- trafficSourceId: r,
821
- status: v,
816
+ v.protocol === "http:" && (D = "http");
817
+ const k = JSON.stringify({
818
+ domainUrl: v.protocol + "//" + v.host,
819
+ pathnameUrl: v.pathname,
820
+ trafficSourceId: n,
821
+ status: h,
822
822
  protocol: D,
823
- method: a.toLowerCase(),
823
+ method: $.toLowerCase(),
824
824
  trafficUserId: null,
825
- elapsedTime: o,
826
- requestHeaders: JSON.stringify(h),
825
+ elapsedTime: s,
826
+ requestHeaders: JSON.stringify(a),
827
827
  requestBody: JSON.stringify(i),
828
- queryParams: JSON.stringify(u),
829
- responseHeaders: JSON.stringify(d),
830
- responseBody: JSON.stringify(l)
831
- }), P = {
828
+ queryParams: JSON.stringify(o),
829
+ responseHeaders: JSON.stringify(l),
830
+ responseBody: JSON.stringify(u)
831
+ }), U = {
832
832
  "Content-Type": "application/json",
833
- Authorization: `Bearer ${t}`
833
+ Authorization: `Bearer ${d}`
834
834
  };
835
- await fetch(n, { method: "POST", body: O, headers: P });
836
- } catch (m) {
837
- p({
838
- debugs: [`Error sending request: ${m}`],
835
+ await fetch(r, { method: "POST", body: k, headers: U });
836
+ } catch (v) {
837
+ F({
838
+ debugs: [`Error sending request: ${v}`],
839
839
  name: "LogError",
840
840
  scheme: "red"
841
841
  });
842
842
  }
843
843
  }
844
- async function y(e) {
845
- let s = e.url;
846
- e.urlParams && Object.entries(e.urlParams).forEach(([n, r]) => {
847
- s = s.replaceAll(`:${n}`, r);
844
+ async function A(t) {
845
+ let e = t.url;
846
+ t.urlParams && Object.entries(t.urlParams).forEach(([r, n]) => {
847
+ e = e.replaceAll(`:${r}`, n);
848
848
  });
849
- const t = {
849
+ const d = {
850
850
  POST: "Resource created successfully",
851
851
  PUT: "Resource updated successfully",
852
852
  DELETE: "Resource deleted successfully",
@@ -854,45 +854,45 @@ async function y(e) {
854
854
  GET: "Request successful"
855
855
  };
856
856
  try {
857
- const n = performance.now(), r = { ...e.headers, "Content-Type": "application/json" }, o = await fetch(s, {
858
- headers: r,
859
- method: e.method,
860
- body: e.body ? JSON.stringify(e.body) : void 0
861
- }), a = performance.now() - n, u = o.status;
857
+ const r = performance.now(), n = { ...t.headers, "Content-Type": "application/json" }, s = await fetch(e, {
858
+ headers: n,
859
+ method: t.method,
860
+ body: t.body ? JSON.stringify(t.body) : void 0
861
+ }), $ = performance.now() - r, o = s.status;
862
862
  let i = null;
863
863
  try {
864
- i = await o.json();
864
+ i = await s.json();
865
865
  } catch {
866
866
  i = null;
867
867
  }
868
- const h = G.handle({
869
- elapsedTime: a,
870
- method: e.method,
871
- queryParams: new URL(s).searchParams,
872
- requestHeaders: r,
873
- requestBody: e.body,
868
+ const a = st.handle({
869
+ elapsedTime: $,
870
+ method: t.method,
871
+ queryParams: new URL(e).searchParams,
872
+ requestHeaders: n,
873
+ requestBody: t.body,
874
874
  responseBody: i,
875
- responseHeaders: o.headers,
876
- status: u,
877
- rawUrl: e.url,
878
- urlParams: e.urlParams
875
+ responseHeaders: s.headers,
876
+ status: o,
877
+ rawUrl: t.url,
878
+ urlParams: t.urlParams
879
879
  });
880
- return W(h), o.ok ? {
880
+ return $t(a), s.ok ? {
881
881
  success: !0,
882
- status: u,
883
- message: (i == null ? void 0 : i.message) || t[e.method],
882
+ status: o,
883
+ message: (i == null ? void 0 : i.message) || d[t.method],
884
884
  response: i,
885
885
  cause: null
886
886
  } : {
887
887
  success: !1,
888
- status: u,
889
- message: (i == null ? void 0 : i.message) || o.statusText || "Request failed",
888
+ status: o,
889
+ message: (i == null ? void 0 : i.message) || s.statusText || "Request failed",
890
890
  response: i,
891
891
  cause: null
892
892
  };
893
- } catch (n) {
894
- return p({
895
- debugs: [`Network error or request failed: ${n}`],
893
+ } catch (r) {
894
+ return F({
895
+ debugs: [`Network error or request failed: ${r}`],
896
896
  name: "MakeRequestError",
897
897
  scheme: "red"
898
898
  }), {
@@ -900,71 +900,71 @@ async function y(e) {
900
900
  status: 0,
901
901
  message: "Network error or request failed",
902
902
  response: null,
903
- cause: n instanceof Error ? n.message : String(n)
903
+ cause: r instanceof Error ? r.message : String(r)
904
904
  };
905
905
  }
906
906
  }
907
- async function Y(e) {
908
- return y({
907
+ async function it(t) {
908
+ return A({
909
909
  method: "DELETE",
910
- url: e.url,
911
- urlParams: e.urlParams,
912
- headers: e.headers,
913
- body: e.body
910
+ url: t.url,
911
+ urlParams: t.urlParams,
912
+ headers: t.headers,
913
+ body: t.body
914
914
  });
915
915
  }
916
- async function K(e) {
917
- return y({
916
+ async function ot(t) {
917
+ return A({
918
918
  method: "GET",
919
- url: e.url,
920
- urlParams: e.urlParams,
921
- headers: e.headers
919
+ url: t.url,
920
+ urlParams: t.urlParams,
921
+ headers: t.headers
922
922
  });
923
923
  }
924
- async function Q(e) {
925
- return y({
924
+ async function at(t) {
925
+ return A({
926
926
  method: "PATCH",
927
- url: e.url,
928
- urlParams: e.urlParams,
929
- headers: e.headers,
930
- body: e.body
927
+ url: t.url,
928
+ urlParams: t.urlParams,
929
+ headers: t.headers,
930
+ body: t.body
931
931
  });
932
932
  }
933
- async function X(e) {
934
- return y({
933
+ async function ut(t) {
934
+ return A({
935
935
  method: "POST",
936
- url: e.url,
937
- urlParams: e.urlParams,
938
- headers: e.headers,
939
- body: e.body
936
+ url: t.url,
937
+ urlParams: t.urlParams,
938
+ headers: t.headers,
939
+ body: t.body
940
940
  });
941
941
  }
942
- async function ss(e) {
943
- return y({
942
+ async function lt(t) {
943
+ return A({
944
944
  method: "PUT",
945
- url: e.url,
946
- urlParams: e.urlParams,
947
- headers: e.headers,
948
- body: e.body
945
+ url: t.url,
946
+ urlParams: t.urlParams,
947
+ headers: t.headers,
948
+ body: t.body
949
949
  });
950
950
  }
951
- class Es {
952
- constructor(s) {
953
- c(this, "baseUrl");
954
- c(this, "baseHeaders");
955
- c(this, "baseToken");
956
- c(this, "enableDebug");
957
- this.baseUrl = s.baseUrl, this.baseHeaders = s.baseHeaders || void 0, this.baseToken = s.baseToken || void 0, this.enableDebug = s.enableDebug || !1;
958
- }
959
- onDebug(s, t, n) {
951
+ class X1 {
952
+ constructor(e) {
953
+ f(this, "baseUrl");
954
+ f(this, "baseHeaders");
955
+ f(this, "baseToken");
956
+ f(this, "enableDebug");
957
+ this.baseUrl = e.baseUrl, this.baseHeaders = e.baseHeaders || void 0, this.baseToken = e.baseToken || void 0, this.enableDebug = e.enableDebug || !1;
958
+ }
959
+ onDebug(e, d, r) {
960
960
  if (this.enableDebug) {
961
- const r = [], o = (a) => JSON.stringify(a, null, 2);
962
- r.push(`Base URL: ${this.baseUrl}`), r.push(`Endpoint: ${s}`), r.push(`Status/Method: ${t} => ${n.status}`), r.push(`Message: ${n.message}`), n.headers && r.push(`Headers: ${o(n.headers)}`), n.body && r.push(`Body: ${o(n.body)}`), p({ debugs: r, name: "ApiDebug", scheme: "yellow" });
961
+ const n = [], s = ($) => JSON.stringify($, null, 2);
962
+ n.push(`Base URL: ${this.baseUrl}`), n.push(`Endpoint: ${e}`), n.push(`Status/Method: ${d} => ${r.status}`), n.push(`Message: ${r.message}`), r.headers && n.push(`Headers: ${s(r.headers)}`), r.body && n.push(`Body: ${s(r.body)}`), F({ debugs: n, name: "ApiDebug", scheme: "yellow" });
963
963
  }
964
964
  }
965
- generateHeaders(s, t) {
966
- let n = {};
967
- return this.baseToken && (n = { Authorization: `Bearer ${this.baseToken}` }), this.baseHeaders && (n = { ...n, ...this.baseHeaders }), s && (n = { ...n, ...s }), t && (n = { ...n, Authorization: `Bearer ${t}` }), n;
965
+ generateHeaders(e, d) {
966
+ let r = {};
967
+ return this.baseToken && (r = { Authorization: `Bearer ${this.baseToken}` }), this.baseHeaders && (r = { ...r, ...this.baseHeaders }), e && (r = { ...r, ...e }), d && (r = { ...r, Authorization: `Bearer ${d}` }), r;
968
968
  }
969
969
  /**
970
970
  * Sends a get request to the specified endpoint.
@@ -972,17 +972,17 @@ class Es {
972
972
  * @param data - The request data, including optional headers and token.
973
973
  * @returns The API response data.
974
974
  */
975
- async get(s, t) {
976
- const n = this.generateHeaders((t == null ? void 0 : t.headers) || {}, t == null ? void 0 : t.token), r = await K({
977
- url: this.baseUrl + s,
978
- urlParams: (t == null ? void 0 : t.urlParams) || {},
979
- headers: n
975
+ async get(e, d) {
976
+ const r = this.generateHeaders((d == null ? void 0 : d.headers) || {}, d == null ? void 0 : d.token), n = await ot({
977
+ url: this.baseUrl + e,
978
+ urlParams: (d == null ? void 0 : d.urlParams) || {},
979
+ headers: r
980
980
  });
981
- return this.onDebug(s, "get", {
982
- headers: n,
983
- message: r.message,
984
- status: r.status
985
- }), r;
981
+ return this.onDebug(e, "get", {
982
+ headers: r,
983
+ message: n.message,
984
+ status: n.status
985
+ }), n;
986
986
  }
987
987
  /**
988
988
  * Sends a post request to the specified endpoint.
@@ -990,19 +990,19 @@ class Es {
990
990
  * @param data - The request data, including body, optional headers, and token.
991
991
  * @returns The API response data.
992
992
  */
993
- async post(s, t) {
994
- const n = this.generateHeaders((t == null ? void 0 : t.headers) || {}, t == null ? void 0 : t.token), r = t == null ? void 0 : t.body, o = await X({
995
- url: this.baseUrl + s,
996
- urlParams: (t == null ? void 0 : t.urlParams) || {},
997
- headers: n,
998
- body: r
993
+ async post(e, d) {
994
+ const r = this.generateHeaders((d == null ? void 0 : d.headers) || {}, d == null ? void 0 : d.token), n = d == null ? void 0 : d.body, s = await ut({
995
+ url: this.baseUrl + e,
996
+ urlParams: (d == null ? void 0 : d.urlParams) || {},
997
+ headers: r,
998
+ body: n
999
999
  });
1000
- return this.onDebug(s, "post", {
1001
- headers: n,
1002
- body: r,
1003
- message: o.message,
1004
- status: o.status
1005
- }), o;
1000
+ return this.onDebug(e, "post", {
1001
+ headers: r,
1002
+ body: n,
1003
+ message: s.message,
1004
+ status: s.status
1005
+ }), s;
1006
1006
  }
1007
1007
  /**
1008
1008
  * Sends a put request to the specified endpoint.
@@ -1010,19 +1010,19 @@ class Es {
1010
1010
  * @param data - The request data, including body, optional headers, and token.
1011
1011
  * @returns The API response data.
1012
1012
  */
1013
- async put(s, t) {
1014
- const n = this.generateHeaders((t == null ? void 0 : t.headers) || {}, t == null ? void 0 : t.token), r = t == null ? void 0 : t.body, o = await ss({
1015
- url: this.baseUrl + s,
1016
- urlParams: (t == null ? void 0 : t.urlParams) || {},
1017
- headers: n,
1018
- body: r
1013
+ async put(e, d) {
1014
+ const r = this.generateHeaders((d == null ? void 0 : d.headers) || {}, d == null ? void 0 : d.token), n = d == null ? void 0 : d.body, s = await lt({
1015
+ url: this.baseUrl + e,
1016
+ urlParams: (d == null ? void 0 : d.urlParams) || {},
1017
+ headers: r,
1018
+ body: n
1019
1019
  });
1020
- return this.onDebug(s, "put", {
1021
- headers: n,
1022
- body: r,
1023
- message: o.message,
1024
- status: o.status
1025
- }), o;
1020
+ return this.onDebug(e, "put", {
1021
+ headers: r,
1022
+ body: n,
1023
+ message: s.message,
1024
+ status: s.status
1025
+ }), s;
1026
1026
  }
1027
1027
  /**
1028
1028
  * Sends a patch request to the specified endpoint.
@@ -1030,19 +1030,19 @@ class Es {
1030
1030
  * @param data - The request data, including body, optional headers, and token.
1031
1031
  * @returns The API response data.
1032
1032
  */
1033
- async patch(s, t) {
1034
- const n = this.generateHeaders((t == null ? void 0 : t.headers) || {}, t == null ? void 0 : t.token), r = t == null ? void 0 : t.body, o = await Q({
1035
- url: this.baseUrl + s,
1036
- urlParams: (t == null ? void 0 : t.urlParams) || {},
1037
- headers: n,
1038
- body: r
1033
+ async patch(e, d) {
1034
+ const r = this.generateHeaders((d == null ? void 0 : d.headers) || {}, d == null ? void 0 : d.token), n = d == null ? void 0 : d.body, s = await at({
1035
+ url: this.baseUrl + e,
1036
+ urlParams: (d == null ? void 0 : d.urlParams) || {},
1037
+ headers: r,
1038
+ body: n
1039
1039
  });
1040
- return this.onDebug(s, "patch", {
1041
- headers: n,
1042
- body: r,
1043
- message: o.message,
1044
- status: o.status
1045
- }), o;
1040
+ return this.onDebug(e, "patch", {
1041
+ headers: r,
1042
+ body: n,
1043
+ message: s.message,
1044
+ status: s.status
1045
+ }), s;
1046
1046
  }
1047
1047
  /**
1048
1048
  * Sends a delete request to the specified endpoint.
@@ -1050,142 +1050,142 @@ class Es {
1050
1050
  * @param data - The request data, including body, optional headers, and token.
1051
1051
  * @returns The API response data.
1052
1052
  */
1053
- async delete(s, t) {
1054
- const n = this.generateHeaders((t == null ? void 0 : t.headers) || {}, t == null ? void 0 : t.token), r = t == null ? void 0 : t.body, o = await Y({
1055
- url: this.baseUrl + s,
1056
- urlParams: (t == null ? void 0 : t.urlParams) || {},
1057
- headers: n,
1058
- body: r
1053
+ async delete(e, d) {
1054
+ const r = this.generateHeaders((d == null ? void 0 : d.headers) || {}, d == null ? void 0 : d.token), n = d == null ? void 0 : d.body, s = await it({
1055
+ url: this.baseUrl + e,
1056
+ urlParams: (d == null ? void 0 : d.urlParams) || {},
1057
+ headers: r,
1058
+ body: n
1059
1059
  });
1060
- return this.onDebug(s, "delete", {
1061
- headers: n,
1062
- body: r,
1063
- message: o.message,
1064
- status: o.status
1065
- }), o;
1060
+ return this.onDebug(e, "delete", {
1061
+ headers: r,
1062
+ body: n,
1063
+ message: s.message,
1064
+ status: s.status
1065
+ }), s;
1066
1066
  }
1067
1067
  }
1068
- async function $s(e) {
1069
- let s;
1070
- const t = await e.arrayBuffer(), n = new TextDecoder().decode(t);
1068
+ async function Y1(t) {
1069
+ let e;
1070
+ const d = await t.arrayBuffer(), r = new TextDecoder().decode(d);
1071
1071
  try {
1072
- s = JSON.parse(n);
1072
+ e = JSON.parse(r);
1073
1073
  } catch {
1074
1074
  try {
1075
- if (n.includes("=")) {
1076
- const o = new URLSearchParams(n);
1077
- s = Object.fromEntries(o.entries());
1075
+ if (r.includes("=")) {
1076
+ const s = new URLSearchParams(r);
1077
+ e = Object.fromEntries(s.entries());
1078
1078
  } else
1079
- throw new T("Invalid URLSearchParams format");
1079
+ throw new V("Invalid URLSearchParams format");
1080
1080
  } catch {
1081
- throw new T("Failed to extract data from request");
1081
+ throw new V("Failed to extract data from request");
1082
1082
  }
1083
1083
  }
1084
- return s;
1084
+ return e;
1085
1085
  }
1086
- function vs(e, s) {
1087
- var t, n, r;
1088
- return e != null && e.message && typeof (e == null ? void 0 : e.message) == "string" ? e == null ? void 0 : e.message : e != null && e.error && typeof (e == null ? void 0 : e.error) == "string" ? e == null ? void 0 : e.error : (t = e == null ? void 0 : e.error) != null && t.message && typeof ((n = e == null ? void 0 : e.error) == null ? void 0 : n.message) == "string" ? (r = e == null ? void 0 : e.error) == null ? void 0 : r.message : s != null && s.statusText && typeof (s == null ? void 0 : s.statusText) == "string" ? s == null ? void 0 : s.statusText : "Missing error message";
1086
+ function z1(t, e) {
1087
+ var d, r, n;
1088
+ return t != null && t.message && typeof (t == null ? void 0 : t.message) == "string" ? t == null ? void 0 : t.message : t != null && t.error && typeof (t == null ? void 0 : t.error) == "string" ? t == null ? void 0 : t.error : (d = t == null ? void 0 : t.error) != null && d.message && typeof ((r = t == null ? void 0 : t.error) == null ? void 0 : r.message) == "string" ? (n = t == null ? void 0 : t.error) == null ? void 0 : n.message : e != null && e.statusText && typeof (e == null ? void 0 : e.statusText) == "string" ? e == null ? void 0 : e.statusText : "Missing error message";
1089
1089
  }
1090
- function Bs(e) {
1090
+ function Q1(t) {
1091
1091
  switch (!0) {
1092
- case e instanceof Response:
1093
- return e;
1094
- case e instanceof z:
1095
- return e.toResponse();
1096
- case e instanceof F:
1097
- return e.toResponse();
1098
- case e instanceof Z:
1099
- return e.toResponse();
1100
- case e instanceof V:
1101
- return e.toResponse();
1102
- case e instanceof M:
1103
- return e.toResponse();
1092
+ case t instanceof Response:
1093
+ return t;
1094
+ case t instanceof tt:
1095
+ return t.toResponse();
1096
+ case t instanceof et:
1097
+ return t.toResponse();
1098
+ case t instanceof nt:
1099
+ return t.toResponse();
1100
+ case t instanceof rt:
1101
+ return t.toResponse();
1102
+ case t instanceof dt:
1103
+ return t.toResponse();
1104
1104
  }
1105
1105
  switch (!0) {
1106
- case e instanceof U:
1107
- return e.toResponse();
1108
- case e instanceof T:
1109
- return e.toResponse();
1110
- case e instanceof C:
1111
- return e.toResponse();
1112
- case e instanceof A:
1113
- return e.toResponse();
1114
- case e instanceof q:
1115
- return e.toResponse();
1116
- case e instanceof H:
1117
- return e.toResponse();
1118
- case e instanceof x:
1119
- return e.toResponse();
1120
- case e instanceof L:
1121
- return e.toResponse();
1122
- case e instanceof b:
1123
- return e.toResponse();
1124
- }
1125
- return new x("Server error", e).toResponse();
1126
- }
1127
- async function es([
1128
- e,
1129
- s
1106
+ case t instanceof Ze:
1107
+ return t.toResponse();
1108
+ case t instanceof V:
1109
+ return t.toResponse();
1110
+ case t instanceof qe:
1111
+ return t.toResponse();
1112
+ case t instanceof Xe:
1113
+ return t.toResponse();
1114
+ case t instanceof Ye:
1115
+ return t.toResponse();
1116
+ case t instanceof ze:
1117
+ return t.toResponse();
1118
+ case t instanceof J:
1119
+ return t.toResponse();
1120
+ case t instanceof Qe:
1121
+ return t.toResponse();
1122
+ case t instanceof W:
1123
+ return t.toResponse();
1124
+ }
1125
+ return new J("Server error", t).toResponse();
1126
+ }
1127
+ async function ct([
1128
+ t,
1129
+ e
1130
1130
  ]) {
1131
- const t = await s.safeParseAsync(e);
1132
- if (t.success === !1) {
1133
- const n = Object.fromEntries(
1134
- t.error.issues.map((r) => [r.path.join("."), r.message])
1131
+ const d = await e.safeParseAsync(t);
1132
+ if (d.success === !1) {
1133
+ const r = Object.fromEntries(
1134
+ d.error.issues.map((n) => [n.path.join("."), n.message])
1135
1135
  );
1136
1136
  return {
1137
- success: t.success,
1138
- fieldErrors: n,
1139
- fields: e
1137
+ success: d.success,
1138
+ fieldErrors: r,
1139
+ fields: t
1140
1140
  };
1141
1141
  } else
1142
1142
  return {
1143
- success: t.success,
1144
- data: t.data
1143
+ success: d.success,
1144
+ data: d.data
1145
1145
  };
1146
1146
  }
1147
- function ts([
1148
- e,
1149
- s
1147
+ function ft([
1148
+ t,
1149
+ e
1150
1150
  ]) {
1151
- const t = s.safeParse(e);
1152
- if (t.success === !1) {
1153
- const n = Object.fromEntries(
1154
- t.error.issues.map((r) => [r.path.join("."), r.message])
1151
+ const d = e.safeParse(t);
1152
+ if (d.success === !1) {
1153
+ const r = Object.fromEntries(
1154
+ d.error.issues.map((n) => [n.path.join("."), n.message])
1155
1155
  );
1156
1156
  return {
1157
- success: t.success,
1158
- fieldErrors: n,
1159
- fields: e
1157
+ success: d.success,
1158
+ fieldErrors: r,
1159
+ fields: t
1160
1160
  };
1161
1161
  } else
1162
1162
  return {
1163
- success: t.success,
1164
- data: t.data
1163
+ success: d.success,
1164
+ data: d.data
1165
1165
  };
1166
1166
  }
1167
- function Os(e, s = "") {
1168
- const t = new URL(e.url);
1169
- if (s === "") return t.searchParams;
1170
- const n = Array.from(
1171
- t.searchParams.entries()
1172
- ).filter(([r]) => r.startsWith(`${s}:`)).map(([r, o]) => [r.replace(`${s}:`, ""), o]);
1173
- return new URLSearchParams(n);
1174
- }
1175
- function ns(e) {
1176
- const s = "Error validating:", t = e.issues.map(
1177
- ({ path: n, message: r }) => `-> ${n.join(".")}: ${r}`
1167
+ function ed(t, e = "") {
1168
+ const d = new URL(t.url);
1169
+ if (e === "") return d.searchParams;
1170
+ const r = Array.from(
1171
+ d.searchParams.entries()
1172
+ ).filter(([n]) => n.startsWith(`${e}:`)).map(([n, s]) => [n.replace(`${e}:`, ""), s]);
1173
+ return new URLSearchParams(r);
1174
+ }
1175
+ function ht(t) {
1176
+ const e = "Error validating:", d = t.issues.map(
1177
+ ({ path: r, message: n }) => `-> ${r.join(".")}: ${n}`
1178
1178
  );
1179
- return [s, ...t].join(`
1179
+ return [e, ...d].join(`
1180
1180
  `);
1181
1181
  }
1182
- class Ps {
1182
+ class td {
1183
1183
  /**
1184
1184
  * Creates a new SchemaValidator instance.
1185
1185
  * @param {T} schema - The Zod schema to use for validation.
1186
1186
  */
1187
- constructor(s) {
1188
- this.schema = s;
1187
+ constructor(e) {
1188
+ this.schema = e;
1189
1189
  }
1190
1190
  /**
1191
1191
  * Checks if the provided data is valid according to the schema without throwing errors.
@@ -1201,8 +1201,8 @@ class Ps {
1201
1201
  * console.log(isValid); // false
1202
1202
  * ```
1203
1203
  */
1204
- isValid(s) {
1205
- return this.schema.safeParse(s).success;
1204
+ isValid(e) {
1205
+ return this.schema.safeParse(e).success;
1206
1206
  }
1207
1207
  /**
1208
1208
  * Safely validates data and returns the complete parse result without throwing errors.
@@ -1222,8 +1222,8 @@ class Ps {
1222
1222
  * }
1223
1223
  * ```
1224
1224
  */
1225
- safeValidate(s) {
1226
- return this.schema.safeParse(s);
1225
+ safeValidate(e) {
1226
+ return this.schema.safeParse(e);
1227
1227
  }
1228
1228
  /**
1229
1229
  * Validates data and returns the parsed result, throwing a ServerError on validation failure.
@@ -1244,11 +1244,11 @@ class Ps {
1244
1244
  * }
1245
1245
  * ```
1246
1246
  */
1247
- validate(s) {
1247
+ validate(e) {
1248
1248
  try {
1249
- return this.schema.parse(s);
1250
- } catch (t) {
1251
- throw new x(ns(t));
1249
+ return this.schema.parse(e);
1250
+ } catch (d) {
1251
+ throw new J(ht(d));
1252
1252
  }
1253
1253
  }
1254
1254
  /**
@@ -1274,18 +1274,18 @@ class Ps {
1274
1274
  * }
1275
1275
  * ```
1276
1276
  */
1277
- formValidate(s, t) {
1278
- const n = ts([s, this.schema]);
1279
- if (!n.success) {
1280
- const r = Object.keys(n.fieldErrors)[0];
1281
- throw new b({
1282
- fields: n.fields,
1283
- fieldErrors: n.fieldErrors,
1284
- data: { scrollTo: r },
1285
- message: t
1277
+ formValidate(e, d) {
1278
+ const r = ft([e, this.schema]);
1279
+ if (!r.success) {
1280
+ const n = Object.keys(r.fieldErrors)[0];
1281
+ throw new W({
1282
+ fields: r.fields,
1283
+ fieldErrors: r.fieldErrors,
1284
+ data: { scrollTo: n },
1285
+ message: d
1286
1286
  });
1287
1287
  }
1288
- return n.data;
1288
+ return r.data;
1289
1289
  }
1290
1290
  /**
1291
1291
  * Asynchronously validates form data and returns the parsed result, throwing an UnprocessableEntity error on validation failure.
@@ -1310,209 +1310,1909 @@ class Ps {
1310
1310
  * }
1311
1311
  * ```
1312
1312
  */
1313
- async formAsyncValidate(s, t) {
1314
- const n = await es([s, this.schema]);
1315
- if (!n.success) {
1316
- const r = Object.keys(n.fieldErrors)[0];
1317
- throw new b({
1318
- fields: n.fields,
1319
- fieldErrors: n.fieldErrors,
1320
- data: { scrollTo: r },
1321
- message: t
1313
+ async formAsyncValidate(e, d) {
1314
+ const r = await ct([e, this.schema]);
1315
+ if (!r.success) {
1316
+ const n = Object.keys(r.fieldErrors)[0];
1317
+ throw new W({
1318
+ fields: r.fields,
1319
+ fieldErrors: r.fieldErrors,
1320
+ data: { scrollTo: n },
1321
+ message: d
1322
1322
  });
1323
1323
  }
1324
- return n.data;
1324
+ return r.data;
1325
1325
  }
1326
1326
  }
1327
- function ks(e) {
1328
- if (!(/^\d{5}-\d{3}$/.test(e) || /^\d{8}$/.test(e))) return !1;
1329
- const t = R(e), n = 8, r = /^\d{8}$/.test(t);
1330
- return t.length === n && r;
1327
+ function dd(t) {
1328
+ if (!(/^\d{5}-\d{3}$/.test(t) || /^\d{8}$/.test(t))) return !1;
1329
+ const d = z(t), r = 8, n = /^\d{8}$/.test(d);
1330
+ return d.length === r && n;
1331
1331
  }
1332
- function rs(e) {
1333
- return e.length !== 14;
1332
+ function yt(t) {
1333
+ return t.length !== 14;
1334
1334
  }
1335
- function os(e) {
1336
- const [s] = e;
1337
- return [...e].every((t) => t === s);
1335
+ function gt(t) {
1336
+ const [e] = t;
1337
+ return [...t].every((d) => d === e);
1338
1338
  }
1339
- function N(e, s) {
1340
- let t = 0;
1341
- for (let r = 0; r < s.length; r++)
1342
- t += parseInt(e[r]) * s[r];
1343
- const n = t % 11;
1344
- return n < 2 ? 0 : 11 - n;
1339
+ function $e(t, e) {
1340
+ let d = 0;
1341
+ for (let n = 0; n < e.length; n++)
1342
+ d += parseInt(t[n]) * e[n];
1343
+ const r = d % 11;
1344
+ return r < 2 ? 0 : 11 - r;
1345
1345
  }
1346
- function is(e) {
1347
- return e.slice(12);
1346
+ function mt(t) {
1347
+ return t.slice(12);
1348
1348
  }
1349
- function ws(e) {
1350
- if (!e || e.length > 18 || e.length < 14 || /\s/.test(e)) return !1;
1351
- const t = R(e);
1352
- if (rs(t) || os(t)) return !1;
1353
- const n = t.slice(0, 12), r = N(n, [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]), o = N(
1354
- n + r,
1349
+ function rd(t) {
1350
+ if (!t || t.length > 18 || t.length < 14 || /\s/.test(t)) return !1;
1351
+ const d = z(t);
1352
+ if (yt(d) || gt(d)) return !1;
1353
+ const r = d.slice(0, 12), n = $e(r, [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]), s = $e(
1354
+ r + n,
1355
1355
  [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]
1356
1356
  );
1357
- return is(t) === `${r}${o}`;
1358
- }
1359
- function as(e) {
1360
- return e.length !== 11;
1361
- }
1362
- function us(e) {
1363
- const [s] = e;
1364
- return [...e].every((t) => t === s);
1365
- }
1366
- function E(e, s) {
1367
- let t = 0;
1368
- for (const r of e)
1369
- s > 1 && (t += parseInt(r) * s--);
1370
- const n = t % 11;
1371
- return n < 2 ? 0 : 11 - n;
1372
- }
1373
- function cs(e) {
1374
- return e.slice(9);
1375
- }
1376
- function js(e) {
1377
- if (!e || e.length > 14 || e.length < 11 || /\s/.test(e)) return !1;
1378
- const t = R(e);
1379
- if (as(t) || us(t)) return !1;
1380
- const n = E(t, 10), r = E(t, 11);
1381
- return cs(t) === `${n}${r}`;
1382
- }
1383
- function Js(e, s) {
1384
- const t = (s == null ? void 0 : s.inputFormat) || "brazilianDate", n = (s == null ? void 0 : s.minYear) || 1900, r = (s == null ? void 0 : s.maxYear) || 3e3, o = new j();
1385
- o.validateInputFormat(t);
1386
- let a, u, i;
1387
- const h = e.split(/[-/]/).map(Number);
1388
- if (h.length !== 3) return !1;
1357
+ return mt(d) === `${n}${s}`;
1358
+ }
1359
+ function pt(t) {
1360
+ return t.length !== 11;
1361
+ }
1362
+ function bt(t) {
1363
+ const [e] = t;
1364
+ return [...t].every((d) => d === e);
1365
+ }
1366
+ function ie(t, e) {
1367
+ let d = 0;
1368
+ for (const n of t)
1369
+ e > 1 && (d += parseInt(n) * e--);
1370
+ const r = d % 11;
1371
+ return r < 2 ? 0 : 11 - r;
1372
+ }
1373
+ function vt(t) {
1374
+ return t.slice(9);
1375
+ }
1376
+ function nd(t) {
1377
+ if (!t || t.length > 14 || t.length < 11 || /\s/.test(t)) return !1;
1378
+ const d = z(t);
1379
+ if (pt(d) || bt(d)) return !1;
1380
+ const r = ie(d, 10), n = ie(d, 11);
1381
+ return vt(d) === `${r}${n}`;
1382
+ }
1383
+ function sd(t, e) {
1384
+ const d = (e == null ? void 0 : e.inputFormat) || "brazilianDate", r = (e == null ? void 0 : e.minYear) || 1900, n = (e == null ? void 0 : e.maxYear) || 3e3, s = new Ve();
1385
+ s.validateInputFormat(d);
1386
+ let $, o, i;
1387
+ const a = t.split(/[-/]/).map(Number);
1388
+ if (a.length !== 3) return !1;
1389
1389
  try {
1390
- switch (t) {
1390
+ switch (d) {
1391
1391
  case "brazilianDate":
1392
- [a, u, i] = h, o.validateDateParts(i, u, a);
1392
+ [$, o, i] = a, s.validateDateParts(i, o, $);
1393
1393
  break;
1394
1394
  case "isoDate":
1395
- [u, a, i] = h, o.validateDateParts(i, u, a);
1395
+ [o, $, i] = a, s.validateDateParts(i, o, $);
1396
1396
  break;
1397
1397
  case "timestamp":
1398
- [i, u, a] = h, o.validateDateParts(i, u, a);
1398
+ [i, o, $] = a, s.validateDateParts(i, o, $);
1399
1399
  break;
1400
1400
  }
1401
- return !(i < n || i > r);
1401
+ return !(i < r || i > n);
1402
1402
  } catch {
1403
1403
  return !1;
1404
1404
  }
1405
1405
  }
1406
- function hs(e) {
1407
- return /^[a-zA-Z0-9.!$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e);
1406
+ function Pt(t) {
1407
+ return /^[a-zA-Z0-9.!$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t);
1408
1408
  }
1409
- function ls(e) {
1410
- return !(e.length === 0 || e.length > 64 || e.startsWith(".") || e.endsWith(".") || e.includes("..") || !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+$/.test(e));
1409
+ function Nt(t) {
1410
+ return !(t.length === 0 || t.length > 64 || t.startsWith(".") || t.endsWith(".") || t.includes("..") || !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+$/.test(t));
1411
1411
  }
1412
- function fs(e) {
1413
- return !(e.length === 0 || e.length > 63 || e.startsWith("-") || e.endsWith("-") || !/^[a-zA-Z0-9-]+$/.test(e));
1412
+ function Tt(t) {
1413
+ return !(t.length === 0 || t.length > 63 || t.startsWith("-") || t.endsWith("-") || !/^[a-zA-Z0-9-]+$/.test(t));
1414
1414
  }
1415
- function ms(e) {
1416
- if (e.length === 0 || e.length > 253 || e.startsWith(".") || e.endsWith(".") || e.startsWith("-") || e.endsWith("-"))
1415
+ function Et(t) {
1416
+ if (t.length === 0 || t.length > 253 || t.startsWith(".") || t.endsWith(".") || t.startsWith("-") || t.endsWith("-"))
1417
1417
  return !1;
1418
- const s = e.split(".");
1419
- if (s.length < 2) return !1;
1420
- for (const n of s) if (!fs(n)) return !1;
1421
- const t = s[s.length - 1];
1422
- return !(t.length < 2 || !/^[a-zA-Z]+$/.test(t));
1423
- }
1424
- function ds(e) {
1425
- const s = e.split("@");
1426
- if (s.length !== 2) return !1;
1427
- const [t, n] = s;
1428
- return !(!ls(t) || !ms(n));
1429
- }
1430
- function ps(e) {
1431
- const s = e.split("@");
1432
- return s.length === 2 ? s[1].toLowerCase() : null;
1433
- }
1434
- const gs = ["MX", "A", "AAAA"];
1435
- async function ys(e, s) {
1436
- var t, n;
1418
+ const e = t.split(".");
1419
+ if (e.length < 2) return !1;
1420
+ for (const r of e) if (!Tt(r)) return !1;
1421
+ const d = e[e.length - 1];
1422
+ return !(d.length < 2 || !/^[a-zA-Z]+$/.test(d));
1423
+ }
1424
+ function Ct(t) {
1425
+ const e = t.split("@");
1426
+ if (e.length !== 2) return !1;
1427
+ const [d, r] = e;
1428
+ return !(!Nt(d) || !Et(r));
1429
+ }
1430
+ function Ot(t) {
1431
+ const e = t.split("@");
1432
+ return e.length === 2 ? e[1].toLowerCase() : null;
1433
+ }
1434
+ const xt = ["MX", "A", "AAAA"];
1435
+ async function _t(t, e) {
1436
+ var d, r;
1437
1437
  try {
1438
- return await ((n = (t = J) == null ? void 0 : t.promises) == null ? void 0 : n.resolve(e, s)), !0;
1438
+ return await ((r = (d = Je) == null ? void 0 : d.promises) == null ? void 0 : r.resolve(t, e)), !0;
1439
1439
  } catch {
1440
1440
  return !1;
1441
1441
  }
1442
1442
  }
1443
- async function Ts(e) {
1444
- for (const s of gs)
1445
- if (await ys(e, s)) return !0;
1443
+ async function St(t) {
1444
+ for (const e of xt)
1445
+ if (await _t(t, e)) return !0;
1446
1446
  return !1;
1447
1447
  }
1448
- async function _s(e) {
1449
- if (!e || typeof e != "string") return !1;
1450
- const s = e.trim();
1451
- if (!hs(s) || !ds(s)) return !1;
1452
- const t = ps(s);
1453
- return t ? await Ts(t) : !1;
1454
- }
1455
- function Is(e) {
1456
- if (!e) return !1;
1457
- const s = e.length >= 8, t = /[A-Z]/.test(e), n = /[a-z]/.test(e), r = /\d/.test(e), o = /[!@#$%^&*(),.?":;{}|<>_\-+=~`[\]\\\/]/.test(
1458
- e
1448
+ async function $d(t) {
1449
+ if (!t || typeof t != "string") return !1;
1450
+ const e = t.trim();
1451
+ if (!Pt(e) || !Ct(e)) return !1;
1452
+ const d = Ot(e);
1453
+ return d ? await St(d) : !1;
1454
+ }
1455
+ function id(t) {
1456
+ if (!t) return !1;
1457
+ const e = t.length >= 8, d = /[A-Z]/.test(t), r = /[a-z]/.test(t), n = /\d/.test(t), s = /[!@#$%^&*(),.?":;{}|<>_\-+=~`[\]\\\/]/.test(
1458
+ t
1459
1459
  );
1460
1460
  return [
1461
- s,
1462
- t,
1463
- n,
1461
+ e,
1462
+ d,
1464
1463
  r,
1465
- o
1466
- ].every((a) => a);
1464
+ n,
1465
+ s
1466
+ ].every(($) => $);
1467
+ }
1468
+ const Rt = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["20"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "[3489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
1469
+ function Ie(t, e) {
1470
+ var d = Array.prototype.slice.call(e);
1471
+ return d.push(Rt), t.apply(this, d);
1472
+ }
1473
+ function oe(t, e) {
1474
+ t = t.split("-"), e = e.split("-");
1475
+ for (var d = t[0].split("."), r = e[0].split("."), n = 0; n < 3; n++) {
1476
+ var s = Number(d[n]), $ = Number(r[n]);
1477
+ if (s > $) return 1;
1478
+ if ($ > s) return -1;
1479
+ if (!isNaN(s) && isNaN($)) return 1;
1480
+ if (isNaN(s) && !isNaN($)) return -1;
1481
+ }
1482
+ return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
1483
+ }
1484
+ var It = {}.constructor;
1485
+ function T(t) {
1486
+ return t != null && t.constructor === It;
1487
+ }
1488
+ function E(t) {
1489
+ "@babel/helpers - typeof";
1490
+ return E = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1491
+ return typeof e;
1492
+ } : function(e) {
1493
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1494
+ }, E(t);
1495
+ }
1496
+ function j(t, e) {
1497
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1498
+ }
1499
+ function Ft(t, e) {
1500
+ for (var d = 0; d < e.length; d++) {
1501
+ var r = e[d];
1502
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, wt(r.key), r);
1503
+ }
1504
+ }
1505
+ function B(t, e, d) {
1506
+ return e && Ft(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
1507
+ }
1508
+ function wt(t) {
1509
+ var e = At(t, "string");
1510
+ return E(e) == "symbol" ? e : e + "";
1511
+ }
1512
+ function At(t, e) {
1513
+ if (E(t) != "object" || !t) return t;
1514
+ var d = t[Symbol.toPrimitive];
1515
+ if (d !== void 0) {
1516
+ var r = d.call(t, e);
1517
+ if (E(r) != "object") return r;
1518
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1519
+ }
1520
+ return String(t);
1521
+ }
1522
+ var Dt = "1.2.0", Lt = "1.7.35", ae = " ext. ", Mt = /^\d+$/, c = /* @__PURE__ */ function() {
1523
+ function t(e) {
1524
+ j(this, t), Fe(e), this.metadata = e, we.call(this, e);
1525
+ }
1526
+ return B(t, [{
1527
+ key: "getCountries",
1528
+ value: function() {
1529
+ return Object.keys(this.metadata.countries).filter(function(d) {
1530
+ return d !== "001";
1531
+ });
1532
+ }
1533
+ }, {
1534
+ key: "getCountryMetadata",
1535
+ value: function(d) {
1536
+ return this.metadata.countries[d];
1537
+ }
1538
+ }, {
1539
+ key: "nonGeographic",
1540
+ value: function() {
1541
+ if (!(this.v1 || this.v2 || this.v3))
1542
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
1543
+ }
1544
+ }, {
1545
+ key: "hasCountry",
1546
+ value: function(d) {
1547
+ return this.getCountryMetadata(d) !== void 0;
1548
+ }
1549
+ }, {
1550
+ key: "hasCallingCode",
1551
+ value: function(d) {
1552
+ if (this.getCountryCodesForCallingCode(d))
1553
+ return !0;
1554
+ if (this.nonGeographic()) {
1555
+ if (this.nonGeographic()[d])
1556
+ return !0;
1557
+ } else {
1558
+ var r = this.countryCallingCodes()[d];
1559
+ if (r && r.length === 1 && r[0] === "001")
1560
+ return !0;
1561
+ }
1562
+ }
1563
+ }, {
1564
+ key: "isNonGeographicCallingCode",
1565
+ value: function(d) {
1566
+ return this.nonGeographic() ? !!this.nonGeographic()[d] : !this.getCountryCodesForCallingCode(d);
1567
+ }
1568
+ // Deprecated.
1569
+ }, {
1570
+ key: "country",
1571
+ value: function(d) {
1572
+ return this.selectNumberingPlan(d);
1573
+ }
1574
+ }, {
1575
+ key: "selectNumberingPlan",
1576
+ value: function(d, r) {
1577
+ if (d && Mt.test(d) && (r = d, d = null), d && d !== "001") {
1578
+ if (!this.hasCountry(d))
1579
+ throw new Error("Unknown country: ".concat(d));
1580
+ this.numberingPlan = new ue(this.getCountryMetadata(d), this);
1581
+ } else if (r) {
1582
+ if (!this.hasCallingCode(r))
1583
+ throw new Error("Unknown calling code: ".concat(r));
1584
+ this.numberingPlan = new ue(this.getNumberingPlanMetadata(r), this);
1585
+ } else
1586
+ this.numberingPlan = void 0;
1587
+ return this;
1588
+ }
1589
+ }, {
1590
+ key: "getCountryCodesForCallingCode",
1591
+ value: function(d) {
1592
+ var r = this.countryCallingCodes()[d];
1593
+ if (r)
1594
+ return r.length === 1 && r[0].length === 3 ? void 0 : r;
1595
+ }
1596
+ }, {
1597
+ key: "getCountryCodeForCallingCode",
1598
+ value: function(d) {
1599
+ var r = this.getCountryCodesForCallingCode(d);
1600
+ if (r)
1601
+ return r[0];
1602
+ }
1603
+ }, {
1604
+ key: "getNumberingPlanMetadata",
1605
+ value: function(d) {
1606
+ var r = this.getCountryCodeForCallingCode(d);
1607
+ if (r)
1608
+ return this.getCountryMetadata(r);
1609
+ if (this.nonGeographic()) {
1610
+ var n = this.nonGeographic()[d];
1611
+ if (n)
1612
+ return n;
1613
+ } else {
1614
+ var s = this.countryCallingCodes()[d];
1615
+ if (s && s.length === 1 && s[0] === "001")
1616
+ return this.metadata.countries["001"];
1617
+ }
1618
+ }
1619
+ // Deprecated.
1620
+ }, {
1621
+ key: "countryCallingCode",
1622
+ value: function() {
1623
+ return this.numberingPlan.callingCode();
1624
+ }
1625
+ // Deprecated.
1626
+ }, {
1627
+ key: "IDDPrefix",
1628
+ value: function() {
1629
+ return this.numberingPlan.IDDPrefix();
1630
+ }
1631
+ // Deprecated.
1632
+ }, {
1633
+ key: "defaultIDDPrefix",
1634
+ value: function() {
1635
+ return this.numberingPlan.defaultIDDPrefix();
1636
+ }
1637
+ // Deprecated.
1638
+ }, {
1639
+ key: "nationalNumberPattern",
1640
+ value: function() {
1641
+ return this.numberingPlan.nationalNumberPattern();
1642
+ }
1643
+ // Deprecated.
1644
+ }, {
1645
+ key: "possibleLengths",
1646
+ value: function() {
1647
+ return this.numberingPlan.possibleLengths();
1648
+ }
1649
+ // Deprecated.
1650
+ }, {
1651
+ key: "formats",
1652
+ value: function() {
1653
+ return this.numberingPlan.formats();
1654
+ }
1655
+ // Deprecated.
1656
+ }, {
1657
+ key: "nationalPrefixForParsing",
1658
+ value: function() {
1659
+ return this.numberingPlan.nationalPrefixForParsing();
1660
+ }
1661
+ // Deprecated.
1662
+ }, {
1663
+ key: "nationalPrefixTransformRule",
1664
+ value: function() {
1665
+ return this.numberingPlan.nationalPrefixTransformRule();
1666
+ }
1667
+ // Deprecated.
1668
+ }, {
1669
+ key: "leadingDigits",
1670
+ value: function() {
1671
+ return this.numberingPlan.leadingDigits();
1672
+ }
1673
+ // Deprecated.
1674
+ }, {
1675
+ key: "hasTypes",
1676
+ value: function() {
1677
+ return this.numberingPlan.hasTypes();
1678
+ }
1679
+ // Deprecated.
1680
+ }, {
1681
+ key: "type",
1682
+ value: function(d) {
1683
+ return this.numberingPlan.type(d);
1684
+ }
1685
+ // Deprecated.
1686
+ }, {
1687
+ key: "ext",
1688
+ value: function() {
1689
+ return this.numberingPlan.ext();
1690
+ }
1691
+ }, {
1692
+ key: "countryCallingCodes",
1693
+ value: function() {
1694
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
1695
+ }
1696
+ // Deprecated.
1697
+ }, {
1698
+ key: "chooseCountryByCountryCallingCode",
1699
+ value: function(d) {
1700
+ return this.selectNumberingPlan(d);
1701
+ }
1702
+ }, {
1703
+ key: "hasSelectedNumberingPlan",
1704
+ value: function() {
1705
+ return this.numberingPlan !== void 0;
1706
+ }
1707
+ }]);
1708
+ }(), ue = /* @__PURE__ */ function() {
1709
+ function t(e, d) {
1710
+ j(this, t), this.globalMetadataObject = d, this.metadata = e, we.call(this, d.metadata);
1711
+ }
1712
+ return B(t, [{
1713
+ key: "callingCode",
1714
+ value: function() {
1715
+ return this.metadata[0];
1716
+ }
1717
+ // Formatting information for regions which share
1718
+ // a country calling code is contained by only one region
1719
+ // for performance reasons. For example, for NANPA region
1720
+ // ("North American Numbering Plan Administration",
1721
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
1722
+ // it will be contained in the metadata for `US`.
1723
+ }, {
1724
+ key: "getDefaultCountryMetadataForRegion",
1725
+ value: function() {
1726
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
1727
+ }
1728
+ // Is always present.
1729
+ }, {
1730
+ key: "IDDPrefix",
1731
+ value: function() {
1732
+ if (!(this.v1 || this.v2))
1733
+ return this.metadata[1];
1734
+ }
1735
+ // Is only present when a country supports multiple IDD prefixes.
1736
+ }, {
1737
+ key: "defaultIDDPrefix",
1738
+ value: function() {
1739
+ if (!(this.v1 || this.v2))
1740
+ return this.metadata[12];
1741
+ }
1742
+ }, {
1743
+ key: "nationalNumberPattern",
1744
+ value: function() {
1745
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
1746
+ }
1747
+ // "possible length" data is always present in Google's metadata.
1748
+ }, {
1749
+ key: "possibleLengths",
1750
+ value: function() {
1751
+ if (!this.v1)
1752
+ return this.metadata[this.v2 ? 2 : 3];
1753
+ }
1754
+ }, {
1755
+ key: "_getFormats",
1756
+ value: function(d) {
1757
+ return d[this.v1 ? 2 : this.v2 ? 3 : 4];
1758
+ }
1759
+ // For countries of the same region (e.g. NANPA)
1760
+ // formats are all stored in the "main" country for that region.
1761
+ // E.g. "RU" and "KZ", "US" and "CA".
1762
+ }, {
1763
+ key: "formats",
1764
+ value: function() {
1765
+ var d = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
1766
+ return r.map(function(n) {
1767
+ return new jt(n, d);
1768
+ });
1769
+ }
1770
+ }, {
1771
+ key: "nationalPrefix",
1772
+ value: function() {
1773
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
1774
+ }
1775
+ }, {
1776
+ key: "_getNationalPrefixFormattingRule",
1777
+ value: function(d) {
1778
+ return d[this.v1 ? 4 : this.v2 ? 5 : 6];
1779
+ }
1780
+ // For countries of the same region (e.g. NANPA)
1781
+ // national prefix formatting rule is stored in the "main" country for that region.
1782
+ // E.g. "RU" and "KZ", "US" and "CA".
1783
+ }, {
1784
+ key: "nationalPrefixFormattingRule",
1785
+ value: function() {
1786
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
1787
+ }
1788
+ }, {
1789
+ key: "_nationalPrefixForParsing",
1790
+ value: function() {
1791
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
1792
+ }
1793
+ }, {
1794
+ key: "nationalPrefixForParsing",
1795
+ value: function() {
1796
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
1797
+ }
1798
+ }, {
1799
+ key: "nationalPrefixTransformRule",
1800
+ value: function() {
1801
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
1802
+ }
1803
+ }, {
1804
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
1805
+ value: function() {
1806
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
1807
+ }
1808
+ // For countries of the same region (e.g. NANPA)
1809
+ // "national prefix is optional when formatting" flag is
1810
+ // stored in the "main" country for that region.
1811
+ // E.g. "RU" and "KZ", "US" and "CA".
1812
+ }, {
1813
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
1814
+ value: function() {
1815
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
1816
+ }
1817
+ }, {
1818
+ key: "leadingDigits",
1819
+ value: function() {
1820
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
1821
+ }
1822
+ }, {
1823
+ key: "types",
1824
+ value: function() {
1825
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
1826
+ }
1827
+ }, {
1828
+ key: "hasTypes",
1829
+ value: function() {
1830
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
1831
+ }
1832
+ }, {
1833
+ key: "type",
1834
+ value: function(d) {
1835
+ if (this.hasTypes() && le(this.types(), d))
1836
+ return new kt(le(this.types(), d), this);
1837
+ }
1838
+ }, {
1839
+ key: "ext",
1840
+ value: function() {
1841
+ return this.v1 || this.v2 ? ae : this.metadata[13] || ae;
1842
+ }
1843
+ }]);
1844
+ }(), jt = /* @__PURE__ */ function() {
1845
+ function t(e, d) {
1846
+ j(this, t), this._format = e, this.metadata = d;
1847
+ }
1848
+ return B(t, [{
1849
+ key: "pattern",
1850
+ value: function() {
1851
+ return this._format[0];
1852
+ }
1853
+ }, {
1854
+ key: "format",
1855
+ value: function() {
1856
+ return this._format[1];
1857
+ }
1858
+ }, {
1859
+ key: "leadingDigitsPatterns",
1860
+ value: function() {
1861
+ return this._format[2] || [];
1862
+ }
1863
+ }, {
1864
+ key: "nationalPrefixFormattingRule",
1865
+ value: function() {
1866
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
1867
+ }
1868
+ }, {
1869
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
1870
+ value: function() {
1871
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
1872
+ }
1873
+ }, {
1874
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
1875
+ value: function() {
1876
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
1877
+ }
1878
+ // Checks whether national prefix formatting rule contains national prefix.
1879
+ }, {
1880
+ key: "usesNationalPrefix",
1881
+ value: function() {
1882
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
1883
+ !Bt.test(this.nationalPrefixFormattingRule()));
1884
+ }
1885
+ }, {
1886
+ key: "internationalFormat",
1887
+ value: function() {
1888
+ return this._format[5] || this.format();
1889
+ }
1890
+ }]);
1891
+ }(), Bt = /^\(?\$1\)?$/, kt = /* @__PURE__ */ function() {
1892
+ function t(e, d) {
1893
+ j(this, t), this.type = e, this.metadata = d;
1894
+ }
1895
+ return B(t, [{
1896
+ key: "pattern",
1897
+ value: function() {
1898
+ return this.metadata.v1 ? this.type : this.type[0];
1899
+ }
1900
+ }, {
1901
+ key: "possibleLengths",
1902
+ value: function() {
1903
+ if (!this.metadata.v1)
1904
+ return this.type[1] || this.metadata.possibleLengths();
1905
+ }
1906
+ }]);
1907
+ }();
1908
+ function le(t, e) {
1909
+ switch (e) {
1910
+ case "FIXED_LINE":
1911
+ return t[0];
1912
+ case "MOBILE":
1913
+ return t[1];
1914
+ case "TOLL_FREE":
1915
+ return t[2];
1916
+ case "PREMIUM_RATE":
1917
+ return t[3];
1918
+ case "PERSONAL_NUMBER":
1919
+ return t[4];
1920
+ case "VOICEMAIL":
1921
+ return t[5];
1922
+ case "UAN":
1923
+ return t[6];
1924
+ case "PAGER":
1925
+ return t[7];
1926
+ case "VOIP":
1927
+ return t[8];
1928
+ case "SHARED_COST":
1929
+ return t[9];
1930
+ }
1931
+ }
1932
+ function Fe(t) {
1933
+ if (!t)
1934
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
1935
+ if (!T(t) || !T(t.countries))
1936
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(T(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + Ut(t) + ": " + t, "."));
1937
+ }
1938
+ var Ut = function(e) {
1939
+ return E(e);
1940
+ };
1941
+ function ee(t, e) {
1942
+ if (e = new c(e), e.hasCountry(t))
1943
+ return e.selectNumberingPlan(t).countryCallingCode();
1944
+ throw new Error("Unknown country: ".concat(t));
1945
+ }
1946
+ function Gt(t, e) {
1947
+ return e.countries.hasOwnProperty(t);
1467
1948
  }
1468
- function Us(e) {
1469
- for (const s of _) {
1470
- const t = s.code, n = s.prefix ? `-${s.prefix}` : "", r = s.mask.replace(/[^_]/g, "").length;
1471
- if (s.iso === "BR") {
1472
- if (new RegExp(`^\\${t} \\d{2}9?\\d{8}$`).test(e)) return !0;
1473
- continue;
1949
+ function we(t) {
1950
+ var e = t.version;
1951
+ typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ? oe(e, Dt) === -1 ? this.v2 = !0 : oe(e, Lt) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
1952
+ }
1953
+ function te(t, e, d) {
1954
+ return Ht(t, e, void 0, d);
1955
+ }
1956
+ function Ht(t, e, d, r) {
1957
+ e && (r = new c(r.metadata), r.selectNumberingPlan(e));
1958
+ var n = r.type(d), s = n && n.possibleLengths() || r.possibleLengths();
1959
+ if (!s)
1960
+ return "IS_POSSIBLE";
1961
+ var $ = t.length, o = s[0];
1962
+ return o === $ ? "IS_POSSIBLE" : o > $ ? "TOO_SHORT" : s[s.length - 1] < $ ? "TOO_LONG" : s.indexOf($, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
1963
+ }
1964
+ function Vt(t, e, d) {
1965
+ if (e === void 0 && (e = {}), d = new c(d), e.v2) {
1966
+ if (!t.countryCallingCode)
1967
+ throw new Error("Invalid phone number object passed");
1968
+ d.selectNumberingPlan(t.countryCallingCode);
1969
+ } else {
1970
+ if (!t.phone)
1971
+ return !1;
1972
+ if (t.country) {
1973
+ if (!d.hasCountry(t.country))
1974
+ throw new Error("Unknown country: ".concat(t.country));
1975
+ d.selectNumberingPlan(t.country);
1976
+ } else {
1977
+ if (!t.countryCallingCode)
1978
+ throw new Error("Invalid phone number object passed");
1979
+ d.selectNumberingPlan(t.countryCallingCode);
1474
1980
  }
1475
- if (new RegExp(`^\\${t}${n} \\d{${r}}$`).test(e)) return !0;
1476
1981
  }
1477
- return !1;
1982
+ if (d.possibleLengths())
1983
+ return Ae(t.phone || t.nationalNumber, t.country, d);
1984
+ if (t.countryCallingCode && d.isNonGeographicCallingCode(t.countryCallingCode))
1985
+ return !0;
1986
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
1987
+ }
1988
+ function Ae(t, e, d) {
1989
+ switch (te(t, e, d)) {
1990
+ case "IS_POSSIBLE":
1991
+ return !0;
1992
+ default:
1993
+ return !1;
1994
+ }
1995
+ }
1996
+ function m(t, e) {
1997
+ return t = t || "", new RegExp("^(?:" + e + ")$").test(t);
1998
+ }
1999
+ function Jt(t, e) {
2000
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2001
+ if (d) return (d = d.call(t)).next.bind(d);
2002
+ if (Array.isArray(t) || (d = Wt(t)) || e) {
2003
+ d && (t = d);
2004
+ var r = 0;
2005
+ return function() {
2006
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
2007
+ };
2008
+ }
2009
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2010
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2011
+ }
2012
+ function Wt(t, e) {
2013
+ if (t) {
2014
+ if (typeof t == "string") return ce(t, e);
2015
+ var d = {}.toString.call(t).slice(8, -1);
2016
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? ce(t, e) : void 0;
2017
+ }
2018
+ }
2019
+ function ce(t, e) {
2020
+ (e == null || e > t.length) && (e = t.length);
2021
+ for (var d = 0, r = Array(e); d < e; d++) r[d] = t[d];
2022
+ return r;
2023
+ }
2024
+ var Kt = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
2025
+ function de(t, e, d) {
2026
+ if (e = e || {}, !(!t.country && !t.countryCallingCode)) {
2027
+ d = new c(d), d.selectNumberingPlan(t.country, t.countryCallingCode);
2028
+ var r = e.v2 ? t.nationalNumber : t.phone;
2029
+ if (m(r, d.nationalNumberPattern())) {
2030
+ if (G(r, "FIXED_LINE", d))
2031
+ return d.type("MOBILE") && d.type("MOBILE").pattern() === "" || !d.type("MOBILE") || G(r, "MOBILE", d) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
2032
+ for (var n = Jt(Kt), s; !(s = n()).done; ) {
2033
+ var $ = s.value;
2034
+ if (G(r, $, d))
2035
+ return $;
2036
+ }
2037
+ }
2038
+ }
2039
+ }
2040
+ function G(t, e, d) {
2041
+ var r = d.type(e);
2042
+ return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(t.length) < 0 ? !1 : m(t, r.pattern());
2043
+ }
2044
+ function Zt(t, e, d) {
2045
+ if (e = e || {}, d = new c(d), d.selectNumberingPlan(t.country, t.countryCallingCode), d.hasTypes())
2046
+ return de(t, e, d.metadata) !== void 0;
2047
+ var r = e.v2 ? t.nationalNumber : t.phone;
2048
+ return m(r, d.nationalNumberPattern());
2049
+ }
2050
+ function qt(t, e, d) {
2051
+ var r = new c(d), n = r.getCountryCodesForCallingCode(t);
2052
+ return n ? n.filter(function(s) {
2053
+ return Xt(e, s, d);
2054
+ }) : [];
2055
+ }
2056
+ function Xt(t, e, d) {
2057
+ var r = new c(d);
2058
+ return r.selectNumberingPlan(e), r.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
2059
+ }
2060
+ var re = 2, Yt = 17, zt = 3, y = "0-90-9٠-٩۰-۹", Qt = "-‐-―−ー-", e0 = "//", t0 = "..", d0 = "  ­​⁠ ", r0 = "()()[]\\[\\]", n0 = "~⁓∼~", L = "".concat(Qt).concat(e0).concat(t0).concat(d0).concat(r0).concat(n0), ne = "++", s0 = new RegExp("([" + y + "])");
2061
+ function $0(t, e, d, r) {
2062
+ if (e) {
2063
+ var n = new c(r);
2064
+ n.selectNumberingPlan(e, d);
2065
+ var s = new RegExp(n.IDDPrefix());
2066
+ if (t.search(s) === 0) {
2067
+ t = t.slice(t.match(s)[0].length);
2068
+ var $ = t.match(s0);
2069
+ if (!($ && $[1] != null && $[1].length > 0 && $[1] === "0"))
2070
+ return t;
2071
+ }
2072
+ }
2073
+ }
2074
+ function i0(t, e) {
2075
+ if (t && e.numberingPlan.nationalPrefixForParsing()) {
2076
+ var d = new RegExp("^(?:" + e.numberingPlan.nationalPrefixForParsing() + ")"), r = d.exec(t);
2077
+ if (r) {
2078
+ var n, s, $ = r.length - 1, o = $ > 0 && r[$];
2079
+ if (e.nationalPrefixTransformRule() && o)
2080
+ n = t.replace(d, e.nationalPrefixTransformRule()), $ > 1 && (s = r[1]);
2081
+ else {
2082
+ var i = r[0];
2083
+ n = t.slice(i.length), o && (s = r[1]);
2084
+ }
2085
+ var a;
2086
+ if (o) {
2087
+ var u = t.indexOf(r[1]), l = t.slice(0, u);
2088
+ l === e.numberingPlan.nationalPrefix() && (a = e.numberingPlan.nationalPrefix());
2089
+ } else
2090
+ a = r[0];
2091
+ return {
2092
+ nationalNumber: n,
2093
+ nationalPrefix: a,
2094
+ carrierCode: s
2095
+ };
2096
+ }
2097
+ }
2098
+ return {
2099
+ nationalNumber: t
2100
+ };
2101
+ }
2102
+ function o0(t, e) {
2103
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2104
+ if (d) return (d = d.call(t)).next.bind(d);
2105
+ if (Array.isArray(t) || (d = a0(t)) || e) {
2106
+ d && (t = d);
2107
+ var r = 0;
2108
+ return function() {
2109
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
2110
+ };
2111
+ }
2112
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2113
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2114
+ }
2115
+ function a0(t, e) {
2116
+ if (t) {
2117
+ if (typeof t == "string") return fe(t, e);
2118
+ var d = {}.toString.call(t).slice(8, -1);
2119
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? fe(t, e) : void 0;
2120
+ }
2121
+ }
2122
+ function fe(t, e) {
2123
+ (e == null || e > t.length) && (e = t.length);
2124
+ for (var d = 0, r = Array(e); d < e; d++) r[d] = t[d];
2125
+ return r;
2126
+ }
2127
+ function u0(t, e) {
2128
+ var d = e.countries, r = e.metadata;
2129
+ r = new c(r);
2130
+ for (var n = o0(d), s; !(s = n()).done; ) {
2131
+ var $ = s.value;
2132
+ if (r.selectNumberingPlan($), r.leadingDigits()) {
2133
+ if (t && t.search(r.leadingDigits()) === 0)
2134
+ return $;
2135
+ } else if (de({
2136
+ phone: t,
2137
+ country: $
2138
+ }, void 0, r.metadata))
2139
+ return $;
2140
+ }
2141
+ }
2142
+ function De(t, e) {
2143
+ var d = e.nationalNumber, r = e.metadata, n = r.getCountryCodesForCallingCode(t);
2144
+ if (n)
2145
+ return n.length === 1 ? n[0] : u0(d, {
2146
+ countries: n,
2147
+ metadata: r.metadata
2148
+ });
2149
+ }
2150
+ function K(t, e, d) {
2151
+ var r = i0(t, d), n = r.carrierCode, s = r.nationalNumber;
2152
+ if (s !== t) {
2153
+ if (!l0(t, s, d))
2154
+ return {
2155
+ nationalNumber: t
2156
+ };
2157
+ if (d.numberingPlan.possibleLengths() && (e || (e = De(d.numberingPlan.callingCode(), {
2158
+ nationalNumber: s,
2159
+ metadata: d
2160
+ })), !c0(s, e, d)))
2161
+ return {
2162
+ nationalNumber: t
2163
+ };
2164
+ }
2165
+ return {
2166
+ nationalNumber: s,
2167
+ carrierCode: n
2168
+ };
2169
+ }
2170
+ function l0(t, e, d) {
2171
+ return !(m(t, d.nationalNumberPattern()) && !m(e, d.nationalNumberPattern()));
2172
+ }
2173
+ function c0(t, e, d) {
2174
+ switch (te(t, e, d)) {
2175
+ case "TOO_SHORT":
2176
+ case "INVALID_LENGTH":
2177
+ return !1;
2178
+ default:
2179
+ return !0;
2180
+ }
2181
+ }
2182
+ function f0(t, e, d, r, n) {
2183
+ var s = d ? ee(d, n) : r;
2184
+ if (t.indexOf(s) === 0) {
2185
+ n = new c(n), n.selectNumberingPlan(d, s);
2186
+ var $ = t.slice(s.length), o = K($, e, n), i = o.nationalNumber, a = K(t, e, n), u = a.nationalNumber;
2187
+ if (!m(u, n.nationalNumberPattern()) && m(i, n.nationalNumberPattern()) || te(u, e, n) === "TOO_LONG")
2188
+ return {
2189
+ countryCallingCode: s,
2190
+ number: $
2191
+ };
2192
+ }
2193
+ return {
2194
+ number: t
2195
+ };
2196
+ }
2197
+ function Le(t, e, d, r, n) {
2198
+ if (!t)
2199
+ return {};
2200
+ var s;
2201
+ if (t[0] !== "+") {
2202
+ var $ = $0(t, d, r, n);
2203
+ if ($ && $ !== t)
2204
+ s = !0, t = "+" + $;
2205
+ else {
2206
+ if (d || r) {
2207
+ var o = f0(t, e, d, r, n), i = o.countryCallingCode, a = o.number;
2208
+ if (i)
2209
+ return {
2210
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
2211
+ countryCallingCode: i,
2212
+ number: a
2213
+ };
2214
+ }
2215
+ return {
2216
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
2217
+ // countryCallingCodeSource: 'UNSPECIFIED',
2218
+ number: t
2219
+ };
2220
+ }
2221
+ }
2222
+ if (t[1] === "0")
2223
+ return {};
2224
+ n = new c(n);
2225
+ for (var u = 2; u - 1 <= zt && u <= t.length; ) {
2226
+ var l = t.slice(1, u);
2227
+ if (n.hasCallingCode(l))
2228
+ return n.selectNumberingPlan(l), {
2229
+ countryCallingCodeSource: s ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
2230
+ countryCallingCode: l,
2231
+ number: t.slice(u)
2232
+ };
2233
+ u++;
2234
+ }
2235
+ return {};
2236
+ }
2237
+ function h0(t) {
2238
+ return t.replace(new RegExp("[".concat(L, "]+"), "g"), " ").trim();
2239
+ }
2240
+ var y0 = /(\$\d)/;
2241
+ function g0(t, e, d) {
2242
+ var r = d.useInternationalFormat, n = d.withNationalPrefix, s = t.replace(new RegExp(e.pattern()), r ? e.internationalFormat() : (
2243
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
2244
+ // because that one is only used when formatting phone numbers
2245
+ // for dialing from a mobile phone, and this is not a dialing library.
2246
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
2247
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
2248
+ // // Then, replace the $FG in the formatting rule with the first group
2249
+ // // and the carrier code combined in the appropriate way.
2250
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
2251
+ // : (
2252
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
2253
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
2254
+ // : format.format()
2255
+ // )
2256
+ n && e.nationalPrefixFormattingRule() ? e.format().replace(y0, e.nationalPrefixFormattingRule()) : e.format()
2257
+ ));
2258
+ return r ? h0(s) : s;
2259
+ }
2260
+ var m0 = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
2261
+ function p0(t, e, d) {
2262
+ var r = new c(d);
2263
+ if (r.selectNumberingPlan(t, e), r.defaultIDDPrefix())
2264
+ return r.defaultIDDPrefix();
2265
+ if (m0.test(r.IDDPrefix()))
2266
+ return r.IDDPrefix();
2267
+ }
2268
+ var b0 = ";ext=", N = function(e) {
2269
+ return "([".concat(y, "]{1,").concat(e, "})");
2270
+ };
2271
+ function Me(t) {
2272
+ var e = "20", d = "15", r = "9", n = "6", s = "[  \\t,]*", $ = "[:\\..]?[  \\t,-]*", o = "#?", i = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", a = "(?:[xx##~~]|int|int)", u = "[- ]+", l = "[  \\t]*", h = "(?:,{2}|;)", b = b0 + N(e), P = s + i + $ + N(e) + o, v = s + a + $ + N(r) + o, D = u + N(n) + "#", k = l + h + $ + N(d) + o, U = l + "(?:,)+" + $ + N(r) + o;
2273
+ return b + "|" + P + "|" + v + "|" + D + "|" + k + "|" + U;
2274
+ }
2275
+ var v0 = "[" + y + "]{" + re + "}", P0 = "[" + ne + "]{0,1}(?:[" + L + "]*[" + y + "]){3,}[" + L + y + "]*", N0 = new RegExp("^[" + ne + "]{0,1}(?:[" + L + "]*[" + y + "]){1,2}$", "i"), T0 = P0 + // Phone number extensions
2276
+ "(?:" + Me() + ")?", E0 = new RegExp(
2277
+ // Either a short two-digit-only phone number
2278
+ "^" + v0 + "$|^" + T0 + "$",
2279
+ "i"
2280
+ );
2281
+ function C0(t) {
2282
+ return t.length >= re && E0.test(t);
2283
+ }
2284
+ function O0(t) {
2285
+ return N0.test(t);
2286
+ }
2287
+ function x0(t) {
2288
+ var e = t.number, d = t.ext;
2289
+ if (!e)
2290
+ return "";
2291
+ if (e[0] !== "+")
2292
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
2293
+ return "tel:".concat(e).concat(d ? ";ext=" + d : "");
2294
+ }
2295
+ var he = {
2296
+ formatExtension: function(e, d, r) {
2297
+ return "".concat(e).concat(r.ext()).concat(d);
2298
+ }
2299
+ };
2300
+ function _0(t, e, d, r) {
2301
+ if (d ? d = I0({}, he, d) : d = he, r = new c(r), t.country && t.country !== "001") {
2302
+ if (!r.hasCountry(t.country))
2303
+ throw new Error("Unknown country: ".concat(t.country));
2304
+ r.selectNumberingPlan(t.country);
2305
+ } else if (t.countryCallingCode)
2306
+ r.selectNumberingPlan(t.countryCallingCode);
2307
+ else return t.phone || "";
2308
+ var n = r.countryCallingCode(), s = d.v2 ? t.nationalNumber : t.phone, $;
2309
+ switch (e) {
2310
+ case "NATIONAL":
2311
+ return s ? ($ = M(s, t.carrierCode, "NATIONAL", r, d), H($, t.ext, r, d.formatExtension)) : "";
2312
+ case "INTERNATIONAL":
2313
+ return s ? ($ = M(s, null, "INTERNATIONAL", r, d), $ = "+".concat(n, " ").concat($), H($, t.ext, r, d.formatExtension)) : "+".concat(n);
2314
+ case "E.164":
2315
+ return "+".concat(n).concat(s);
2316
+ case "RFC3966":
2317
+ return x0({
2318
+ number: "+".concat(n).concat(s),
2319
+ ext: t.ext
2320
+ });
2321
+ case "IDD":
2322
+ if (!d.fromCountry)
2323
+ return;
2324
+ var o = R0(s, t.carrierCode, n, d.fromCountry, r);
2325
+ return o ? H(o, t.ext, r, d.formatExtension) : void 0;
2326
+ default:
2327
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
2328
+ }
2329
+ }
2330
+ function M(t, e, d, r, n) {
2331
+ var s = S0(r.formats(), t);
2332
+ return s ? g0(t, s, {
2333
+ useInternationalFormat: d === "INTERNATIONAL",
2334
+ withNationalPrefix: !(s.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && n && n.nationalPrefix === !1)
2335
+ }) : t;
2336
+ }
2337
+ function S0(t, e) {
2338
+ return F0(t, function(d) {
2339
+ if (d.leadingDigitsPatterns().length > 0) {
2340
+ var r = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
2341
+ if (e.search(r) !== 0)
2342
+ return !1;
2343
+ }
2344
+ return m(e, d.pattern());
2345
+ });
2346
+ }
2347
+ function H(t, e, d, r) {
2348
+ return e ? r(t, e, d) : t;
2349
+ }
2350
+ function R0(t, e, d, r, n) {
2351
+ var s = ee(r, n.metadata);
2352
+ if (s === d) {
2353
+ var $ = M(t, e, "NATIONAL", n);
2354
+ return d === "1" ? d + " " + $ : $;
2355
+ }
2356
+ var o = p0(r, void 0, n.metadata);
2357
+ if (o)
2358
+ return "".concat(o, " ").concat(d, " ").concat(M(t, null, "INTERNATIONAL", n));
2359
+ }
2360
+ function I0() {
2361
+ for (var t = 1, e = arguments.length, d = new Array(e), r = 0; r < e; r++)
2362
+ d[r] = arguments[r];
2363
+ for (; t < d.length; ) {
2364
+ if (d[t])
2365
+ for (var n in d[t])
2366
+ d[0][n] = d[t][n];
2367
+ t++;
2368
+ }
2369
+ return d[0];
2370
+ }
2371
+ function F0(t, e) {
2372
+ for (var d = 0; d < t.length; ) {
2373
+ if (e(t[d]))
2374
+ return t[d];
2375
+ d++;
2376
+ }
2377
+ }
2378
+ function C(t) {
2379
+ "@babel/helpers - typeof";
2380
+ return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2381
+ return typeof e;
2382
+ } : function(e) {
2383
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2384
+ }, C(t);
2385
+ }
2386
+ function ye(t, e) {
2387
+ var d = Object.keys(t);
2388
+ if (Object.getOwnPropertySymbols) {
2389
+ var r = Object.getOwnPropertySymbols(t);
2390
+ e && (r = r.filter(function(n) {
2391
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
2392
+ })), d.push.apply(d, r);
2393
+ }
2394
+ return d;
2395
+ }
2396
+ function ge(t) {
2397
+ for (var e = 1; e < arguments.length; e++) {
2398
+ var d = arguments[e] != null ? arguments[e] : {};
2399
+ e % 2 ? ye(Object(d), !0).forEach(function(r) {
2400
+ w0(t, r, d[r]);
2401
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : ye(Object(d)).forEach(function(r) {
2402
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
2403
+ });
2404
+ }
2405
+ return t;
2406
+ }
2407
+ function w0(t, e, d) {
2408
+ return (e = je(e)) in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
2409
+ }
2410
+ function A0(t, e) {
2411
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2412
+ }
2413
+ function D0(t, e) {
2414
+ for (var d = 0; d < e.length; d++) {
2415
+ var r = e[d];
2416
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, je(r.key), r);
2417
+ }
2418
+ }
2419
+ function L0(t, e, d) {
2420
+ return e && D0(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2421
+ }
2422
+ function je(t) {
2423
+ var e = M0(t, "string");
2424
+ return C(e) == "symbol" ? e : e + "";
2425
+ }
2426
+ function M0(t, e) {
2427
+ if (C(t) != "object" || !t) return t;
2428
+ var d = t[Symbol.toPrimitive];
2429
+ if (d !== void 0) {
2430
+ var r = d.call(t, e);
2431
+ if (C(r) != "object") return r;
2432
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2433
+ }
2434
+ return String(t);
2435
+ }
2436
+ var j0 = /* @__PURE__ */ function() {
2437
+ function t(e, d, r) {
2438
+ if (A0(this, t), !e)
2439
+ throw new TypeError("First argument is required");
2440
+ if (typeof e != "string")
2441
+ throw new TypeError("First argument must be a string");
2442
+ if (e[0] === "+" && !d)
2443
+ throw new TypeError("`metadata` argument not passed");
2444
+ if (T(d) && T(d.countries)) {
2445
+ r = d;
2446
+ var n = e;
2447
+ if (!U0.test(n))
2448
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
2449
+ var s = Le(n, void 0, void 0, void 0, r), $ = s.countryCallingCode, o = s.number;
2450
+ if (d = o, e = $, !d)
2451
+ throw new Error("Invalid `number` argument passed: too short");
2452
+ }
2453
+ if (!d)
2454
+ throw new TypeError("`nationalNumber` argument is required");
2455
+ if (typeof d != "string")
2456
+ throw new TypeError("`nationalNumber` argument must be a string");
2457
+ Fe(r);
2458
+ var i = k0(e, r), a = i.country, u = i.countryCallingCode;
2459
+ this.country = a, this.countryCallingCode = u, this.nationalNumber = d, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
2460
+ return r;
2461
+ };
2462
+ }
2463
+ return L0(t, [{
2464
+ key: "setExt",
2465
+ value: function(d) {
2466
+ this.ext = d;
2467
+ }
2468
+ }, {
2469
+ key: "getPossibleCountries",
2470
+ value: function() {
2471
+ return this.country ? [this.country] : qt(this.countryCallingCode, this.nationalNumber, this.getMetadata());
2472
+ }
2473
+ }, {
2474
+ key: "isPossible",
2475
+ value: function() {
2476
+ return Vt(this, {
2477
+ v2: !0
2478
+ }, this.getMetadata());
2479
+ }
2480
+ }, {
2481
+ key: "isValid",
2482
+ value: function() {
2483
+ return Zt(this, {
2484
+ v2: !0
2485
+ }, this.getMetadata());
2486
+ }
2487
+ }, {
2488
+ key: "isNonGeographic",
2489
+ value: function() {
2490
+ var d = new c(this.getMetadata());
2491
+ return d.isNonGeographicCallingCode(this.countryCallingCode);
2492
+ }
2493
+ }, {
2494
+ key: "isEqual",
2495
+ value: function(d) {
2496
+ return this.number === d.number && this.ext === d.ext;
2497
+ }
2498
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
2499
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
2500
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
2501
+ // so eventually I simply commented out this method from the `PhoneNumber` class
2502
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
2503
+ // and additional step to also validate the actual country / calling code of the phone number.
2504
+ // validateLength() {
2505
+ // const metadata = new Metadata(this.getMetadata())
2506
+ // metadata.selectNumberingPlan(this.countryCallingCode)
2507
+ // const result = checkNumberLength(this.nationalNumber, metadata)
2508
+ // if (result !== 'IS_POSSIBLE') {
2509
+ // return result
2510
+ // }
2511
+ // }
2512
+ }, {
2513
+ key: "getType",
2514
+ value: function() {
2515
+ return de(this, {
2516
+ v2: !0
2517
+ }, this.getMetadata());
2518
+ }
2519
+ }, {
2520
+ key: "format",
2521
+ value: function(d, r) {
2522
+ return _0(this, d, r ? ge(ge({}, r), {}, {
2523
+ v2: !0
2524
+ }) : {
2525
+ v2: !0
2526
+ }, this.getMetadata());
2527
+ }
2528
+ }, {
2529
+ key: "formatNational",
2530
+ value: function(d) {
2531
+ return this.format("NATIONAL", d);
2532
+ }
2533
+ }, {
2534
+ key: "formatInternational",
2535
+ value: function(d) {
2536
+ return this.format("INTERNATIONAL", d);
2537
+ }
2538
+ }, {
2539
+ key: "getURI",
2540
+ value: function(d) {
2541
+ return this.format("RFC3966", d);
2542
+ }
2543
+ }]);
2544
+ }(), B0 = function(e) {
2545
+ return /^[A-Z]{2}$/.test(e);
2546
+ };
2547
+ function k0(t, e) {
2548
+ var d, r, n = new c(e);
2549
+ return B0(t) ? (d = t, n.selectNumberingPlan(d), r = n.countryCallingCode()) : r = t, {
2550
+ country: d,
2551
+ countryCallingCode: r
2552
+ };
2553
+ }
2554
+ var U0 = /^\+\d+$/;
2555
+ function Z(t) {
2556
+ "@babel/helpers - typeof";
2557
+ return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2558
+ return typeof e;
2559
+ } : function(e) {
2560
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2561
+ }, Z(t);
2562
+ }
2563
+ function G0(t, e, d) {
2564
+ return Object.defineProperty(t, "prototype", { writable: !1 }), t;
2565
+ }
2566
+ function H0(t, e) {
2567
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2568
+ }
2569
+ function V0(t, e, d) {
2570
+ return e = x(e), J0(t, se() ? Reflect.construct(e, d || [], x(t).constructor) : e.apply(t, d));
2571
+ }
2572
+ function J0(t, e) {
2573
+ if (e && (Z(e) == "object" || typeof e == "function")) return e;
2574
+ if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2575
+ return W0(t);
2576
+ }
2577
+ function W0(t) {
2578
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2579
+ return t;
2580
+ }
2581
+ function K0(t, e) {
2582
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
2583
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && O(t, e);
2584
+ }
2585
+ function q(t) {
2586
+ var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
2587
+ return q = function(r) {
2588
+ if (r === null || !q0(r)) return r;
2589
+ if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
2590
+ if (e !== void 0) {
2591
+ if (e.has(r)) return e.get(r);
2592
+ e.set(r, n);
2593
+ }
2594
+ function n() {
2595
+ return Z0(r, arguments, x(this).constructor);
2596
+ }
2597
+ return n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), O(n, r);
2598
+ }, q(t);
2599
+ }
2600
+ function Z0(t, e, d) {
2601
+ if (se()) return Reflect.construct.apply(null, arguments);
2602
+ var r = [null];
2603
+ r.push.apply(r, e);
2604
+ var n = new (t.bind.apply(t, r))();
2605
+ return d && O(n, d.prototype), n;
2606
+ }
2607
+ function se() {
2608
+ try {
2609
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2610
+ }));
2611
+ } catch {
2612
+ }
2613
+ return (se = function() {
2614
+ return !!t;
2615
+ })();
2616
+ }
2617
+ function q0(t) {
2618
+ try {
2619
+ return Function.toString.call(t).indexOf("[native code]") !== -1;
2620
+ } catch {
2621
+ return typeof t == "function";
2622
+ }
2623
+ }
2624
+ function O(t, e) {
2625
+ return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(d, r) {
2626
+ return d.__proto__ = r, d;
2627
+ }, O(t, e);
2628
+ }
2629
+ function x(t) {
2630
+ return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
2631
+ return e.__proto__ || Object.getPrototypeOf(e);
2632
+ }, x(t);
2633
+ }
2634
+ var g = /* @__PURE__ */ function(t) {
2635
+ function e(d) {
2636
+ var r;
2637
+ return H0(this, e), r = V0(this, e, [d]), Object.setPrototypeOf(r, e.prototype), r.name = r.constructor.name, r;
2638
+ }
2639
+ return K0(e, t), G0(e);
2640
+ }(/* @__PURE__ */ q(Error)), me = new RegExp("(?:" + Me() + ")$", "i");
2641
+ function X0(t) {
2642
+ var e = t.search(me);
2643
+ if (e < 0)
2644
+ return {};
2645
+ for (var d = t.slice(0, e), r = t.match(me), n = 1; n < r.length; ) {
2646
+ if (r[n])
2647
+ return {
2648
+ number: d,
2649
+ ext: r[n]
2650
+ };
2651
+ n++;
2652
+ }
2653
+ }
2654
+ var Y0 = {
2655
+ 0: "0",
2656
+ 1: "1",
2657
+ 2: "2",
2658
+ 3: "3",
2659
+ 4: "4",
2660
+ 5: "5",
2661
+ 6: "6",
2662
+ 7: "7",
2663
+ 8: "8",
2664
+ 9: "9",
2665
+ "0": "0",
2666
+ // Fullwidth digit 0
2667
+ "1": "1",
2668
+ // Fullwidth digit 1
2669
+ "2": "2",
2670
+ // Fullwidth digit 2
2671
+ "3": "3",
2672
+ // Fullwidth digit 3
2673
+ "4": "4",
2674
+ // Fullwidth digit 4
2675
+ "5": "5",
2676
+ // Fullwidth digit 5
2677
+ "6": "6",
2678
+ // Fullwidth digit 6
2679
+ "7": "7",
2680
+ // Fullwidth digit 7
2681
+ "8": "8",
2682
+ // Fullwidth digit 8
2683
+ "9": "9",
2684
+ // Fullwidth digit 9
2685
+ "٠": "0",
2686
+ // Arabic-indic digit 0
2687
+ "١": "1",
2688
+ // Arabic-indic digit 1
2689
+ "٢": "2",
2690
+ // Arabic-indic digit 2
2691
+ "٣": "3",
2692
+ // Arabic-indic digit 3
2693
+ "٤": "4",
2694
+ // Arabic-indic digit 4
2695
+ "٥": "5",
2696
+ // Arabic-indic digit 5
2697
+ "٦": "6",
2698
+ // Arabic-indic digit 6
2699
+ "٧": "7",
2700
+ // Arabic-indic digit 7
2701
+ "٨": "8",
2702
+ // Arabic-indic digit 8
2703
+ "٩": "9",
2704
+ // Arabic-indic digit 9
2705
+ "۰": "0",
2706
+ // Eastern-Arabic digit 0
2707
+ "۱": "1",
2708
+ // Eastern-Arabic digit 1
2709
+ "۲": "2",
2710
+ // Eastern-Arabic digit 2
2711
+ "۳": "3",
2712
+ // Eastern-Arabic digit 3
2713
+ "۴": "4",
2714
+ // Eastern-Arabic digit 4
2715
+ "۵": "5",
2716
+ // Eastern-Arabic digit 5
2717
+ "۶": "6",
2718
+ // Eastern-Arabic digit 6
2719
+ "۷": "7",
2720
+ // Eastern-Arabic digit 7
2721
+ "۸": "8",
2722
+ // Eastern-Arabic digit 8
2723
+ "۹": "9"
2724
+ // Eastern-Arabic digit 9
2725
+ };
2726
+ function z0(t) {
2727
+ return Y0[t];
2728
+ }
2729
+ function Q0(t, e) {
2730
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2731
+ if (d) return (d = d.call(t)).next.bind(d);
2732
+ if (Array.isArray(t) || (d = e1(t)) || e) {
2733
+ d && (t = d);
2734
+ var r = 0;
2735
+ return function() {
2736
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
2737
+ };
2738
+ }
2739
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2740
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2741
+ }
2742
+ function e1(t, e) {
2743
+ if (t) {
2744
+ if (typeof t == "string") return pe(t, e);
2745
+ var d = {}.toString.call(t).slice(8, -1);
2746
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? pe(t, e) : void 0;
2747
+ }
2748
+ }
2749
+ function pe(t, e) {
2750
+ (e == null || e > t.length) && (e = t.length);
2751
+ for (var d = 0, r = Array(e); d < e; d++) r[d] = t[d];
2752
+ return r;
2753
+ }
2754
+ function be(t) {
2755
+ for (var e = "", d = Q0(t.split("")), r; !(r = d()).done; ) {
2756
+ var n = r.value;
2757
+ e += t1(n, e) || "";
2758
+ }
2759
+ return e;
2760
+ }
2761
+ function t1(t, e, d) {
2762
+ return t === "+" ? e ? void 0 : "+" : z0(t);
2763
+ }
2764
+ var Be = "+", d1 = "[\\-\\.\\(\\)]?", ve = "([" + y + "]|" + d1 + ")", r1 = "^\\" + Be + ve + "*[" + y + "]" + ve + "*$", n1 = new RegExp(r1, "g"), X = y, s1 = "[" + X + "]+((\\-)*[" + X + "])*", $1 = "a-zA-Z", i1 = "[" + $1 + "]+((\\-)*[" + X + "])*", o1 = "^(" + s1 + "\\.)*" + i1 + "\\.?$", a1 = new RegExp(o1, "g"), Pe = "tel:", Y = ";phone-context=", u1 = ";isub=";
2765
+ function l1(t) {
2766
+ var e = t.indexOf(Y);
2767
+ if (e < 0)
2768
+ return null;
2769
+ var d = e + Y.length;
2770
+ if (d >= t.length)
2771
+ return "";
2772
+ var r = t.indexOf(";", d);
2773
+ return r >= 0 ? t.substring(d, r) : t.substring(d);
2774
+ }
2775
+ function c1(t) {
2776
+ return t === null ? !0 : t.length === 0 ? !1 : n1.test(t) || a1.test(t);
2777
+ }
2778
+ function f1(t, e) {
2779
+ var d = e.extractFormattedPhoneNumber, r = l1(t);
2780
+ if (!c1(r))
2781
+ throw new g("NOT_A_NUMBER");
2782
+ var n;
2783
+ if (r === null)
2784
+ n = d(t) || "";
2785
+ else {
2786
+ n = "", r.charAt(0) === Be && (n += r);
2787
+ var s = t.indexOf(Pe), $;
2788
+ s >= 0 ? $ = s + Pe.length : $ = 0;
2789
+ var o = t.indexOf(Y);
2790
+ n += t.substring($, o);
2791
+ }
2792
+ var i = n.indexOf(u1);
2793
+ if (i > 0 && (n = n.substring(0, i)), n !== "")
2794
+ return n;
2795
+ }
2796
+ var h1 = 250, y1 = new RegExp("[" + ne + y + "]"), g1 = new RegExp("[^" + y + "#]+$");
2797
+ function m1(t, e, d) {
2798
+ if (e = e || {}, d = new c(d), e.defaultCountry && !d.hasCountry(e.defaultCountry))
2799
+ throw e.v2 ? new g("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
2800
+ var r = b1(t, e.v2, e.extract), n = r.number, s = r.ext, $ = r.error;
2801
+ if (!n) {
2802
+ if (e.v2)
2803
+ throw $ === "TOO_SHORT" ? new g("TOO_SHORT") : new g("NOT_A_NUMBER");
2804
+ return {};
2805
+ }
2806
+ var o = P1(n, e.defaultCountry, e.defaultCallingCode, d), i = o.country, a = o.nationalNumber, u = o.countryCallingCode, l = o.countryCallingCodeSource, h = o.carrierCode;
2807
+ if (!d.hasSelectedNumberingPlan()) {
2808
+ if (e.v2)
2809
+ throw new g("INVALID_COUNTRY");
2810
+ return {};
2811
+ }
2812
+ if (!a || a.length < re) {
2813
+ if (e.v2)
2814
+ throw new g("TOO_SHORT");
2815
+ return {};
2816
+ }
2817
+ if (a.length > Yt) {
2818
+ if (e.v2)
2819
+ throw new g("TOO_LONG");
2820
+ return {};
2821
+ }
2822
+ if (e.v2) {
2823
+ var b = new j0(u, a, d.metadata);
2824
+ return i && (b.country = i), h && (b.carrierCode = h), s && (b.ext = s), b.__countryCallingCodeSource = l, b;
2825
+ }
2826
+ var P = (e.extended ? d.hasSelectedNumberingPlan() : i) ? m(a, d.nationalNumberPattern()) : !1;
2827
+ return e.extended ? {
2828
+ country: i,
2829
+ countryCallingCode: u,
2830
+ carrierCode: h,
2831
+ valid: P,
2832
+ possible: P ? !0 : !!(e.extended === !0 && d.possibleLengths() && Ae(a, i, d)),
2833
+ phone: a,
2834
+ ext: s
2835
+ } : P ? v1(i, a, s) : {};
2836
+ }
2837
+ function p1(t, e, d) {
2838
+ if (t) {
2839
+ if (t.length > h1) {
2840
+ if (d)
2841
+ throw new g("TOO_LONG");
2842
+ return;
2843
+ }
2844
+ if (e === !1)
2845
+ return t;
2846
+ var r = t.search(y1);
2847
+ if (!(r < 0))
2848
+ return t.slice(r).replace(g1, "");
2849
+ }
2850
+ }
2851
+ function b1(t, e, d) {
2852
+ var r = f1(t, {
2853
+ extractFormattedPhoneNumber: function($) {
2854
+ return p1($, d, e);
2855
+ }
2856
+ });
2857
+ if (!r)
2858
+ return {};
2859
+ if (!C0(r))
2860
+ return O0(r) ? {
2861
+ error: "TOO_SHORT"
2862
+ } : {};
2863
+ var n = X0(r);
2864
+ return n.ext ? n : {
2865
+ number: r
2866
+ };
2867
+ }
2868
+ function v1(t, e, d) {
2869
+ var r = {
2870
+ country: t,
2871
+ phone: e
2872
+ };
2873
+ return d && (r.ext = d), r;
2874
+ }
2875
+ function P1(t, e, d, r) {
2876
+ var n = Le(be(t), void 0, e, d, r.metadata), s = n.countryCallingCodeSource, $ = n.countryCallingCode, o = n.number, i;
2877
+ if ($)
2878
+ r.selectNumberingPlan($);
2879
+ else if (o && (e || d))
2880
+ r.selectNumberingPlan(e, d), e && (i = e), $ = d || ee(e, r.metadata);
2881
+ else return {};
2882
+ if (!o)
2883
+ return {
2884
+ countryCallingCodeSource: s,
2885
+ countryCallingCode: $
2886
+ };
2887
+ var a = K(be(o), i, r), u = a.nationalNumber, l = a.carrierCode, h = De($, {
2888
+ nationalNumber: u,
2889
+ metadata: r
2890
+ });
2891
+ return h && (i = h, h === "001" || r.selectNumberingPlan(i)), {
2892
+ country: i,
2893
+ countryCallingCode: $,
2894
+ countryCallingCodeSource: s,
2895
+ nationalNumber: u,
2896
+ carrierCode: l
2897
+ };
2898
+ }
2899
+ function _(t) {
2900
+ "@babel/helpers - typeof";
2901
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2902
+ return typeof e;
2903
+ } : function(e) {
2904
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2905
+ }, _(t);
2906
+ }
2907
+ function Ne(t, e) {
2908
+ var d = Object.keys(t);
2909
+ if (Object.getOwnPropertySymbols) {
2910
+ var r = Object.getOwnPropertySymbols(t);
2911
+ e && (r = r.filter(function(n) {
2912
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
2913
+ })), d.push.apply(d, r);
2914
+ }
2915
+ return d;
2916
+ }
2917
+ function Te(t) {
2918
+ for (var e = 1; e < arguments.length; e++) {
2919
+ var d = arguments[e] != null ? arguments[e] : {};
2920
+ e % 2 ? Ne(Object(d), !0).forEach(function(r) {
2921
+ N1(t, r, d[r]);
2922
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Ne(Object(d)).forEach(function(r) {
2923
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
2924
+ });
2925
+ }
2926
+ return t;
2927
+ }
2928
+ function N1(t, e, d) {
2929
+ return (e = T1(e)) in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
2930
+ }
2931
+ function T1(t) {
2932
+ var e = E1(t, "string");
2933
+ return _(e) == "symbol" ? e : e + "";
2934
+ }
2935
+ function E1(t, e) {
2936
+ if (_(t) != "object" || !t) return t;
2937
+ var d = t[Symbol.toPrimitive];
2938
+ if (d !== void 0) {
2939
+ var r = d.call(t, e);
2940
+ if (_(r) != "object") return r;
2941
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2942
+ }
2943
+ return (e === "string" ? String : Number)(t);
2944
+ }
2945
+ function ke(t, e, d) {
2946
+ return m1(t, Te(Te({}, e), {}, {
2947
+ v2: !0
2948
+ }), d);
2949
+ }
2950
+ function S(t) {
2951
+ "@babel/helpers - typeof";
2952
+ return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2953
+ return typeof e;
2954
+ } : function(e) {
2955
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2956
+ }, S(t);
2957
+ }
2958
+ function Ee(t, e) {
2959
+ var d = Object.keys(t);
2960
+ if (Object.getOwnPropertySymbols) {
2961
+ var r = Object.getOwnPropertySymbols(t);
2962
+ e && (r = r.filter(function(n) {
2963
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
2964
+ })), d.push.apply(d, r);
2965
+ }
2966
+ return d;
2967
+ }
2968
+ function C1(t) {
2969
+ for (var e = 1; e < arguments.length; e++) {
2970
+ var d = arguments[e] != null ? arguments[e] : {};
2971
+ e % 2 ? Ee(Object(d), !0).forEach(function(r) {
2972
+ O1(t, r, d[r]);
2973
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Ee(Object(d)).forEach(function(r) {
2974
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
2975
+ });
2976
+ }
2977
+ return t;
2978
+ }
2979
+ function O1(t, e, d) {
2980
+ return (e = x1(e)) in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
2981
+ }
2982
+ function x1(t) {
2983
+ var e = _1(t, "string");
2984
+ return S(e) == "symbol" ? e : e + "";
2985
+ }
2986
+ function _1(t, e) {
2987
+ if (S(t) != "object" || !t) return t;
2988
+ var d = t[Symbol.toPrimitive];
2989
+ if (d !== void 0) {
2990
+ var r = d.call(t, e);
2991
+ if (S(r) != "object") return r;
2992
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2993
+ }
2994
+ return (e === "string" ? String : Number)(t);
2995
+ }
2996
+ function S1(t, e) {
2997
+ return w1(t) || F1(t, e) || I1(t, e) || R1();
2998
+ }
2999
+ function R1() {
3000
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3001
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3002
+ }
3003
+ function I1(t, e) {
3004
+ if (t) {
3005
+ if (typeof t == "string") return Ce(t, e);
3006
+ var d = {}.toString.call(t).slice(8, -1);
3007
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? Ce(t, e) : void 0;
3008
+ }
3009
+ }
3010
+ function Ce(t, e) {
3011
+ (e == null || e > t.length) && (e = t.length);
3012
+ for (var d = 0, r = Array(e); d < e; d++) r[d] = t[d];
3013
+ return r;
3014
+ }
3015
+ function F1(t, e) {
3016
+ var d = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
3017
+ if (d != null) {
3018
+ var r, n, s, $, o = [], i = !0, a = !1;
3019
+ try {
3020
+ if (s = (d = d.call(t)).next, e !== 0) for (; !(i = (r = s.call(d)).done) && (o.push(r.value), o.length !== e); i = !0) ;
3021
+ } catch (u) {
3022
+ a = !0, n = u;
3023
+ } finally {
3024
+ try {
3025
+ if (!i && d.return != null && ($ = d.return(), Object($) !== $)) return;
3026
+ } finally {
3027
+ if (a) throw n;
3028
+ }
3029
+ }
3030
+ return o;
3031
+ }
3032
+ }
3033
+ function w1(t) {
3034
+ if (Array.isArray(t)) return t;
3035
+ }
3036
+ function Ue(t) {
3037
+ var e = Array.prototype.slice.call(t), d = S1(e, 4), r = d[0], n = d[1], s = d[2], $ = d[3], o, i, a;
3038
+ if (typeof r == "string")
3039
+ o = r;
3040
+ else throw new TypeError("A text for parsing must be a string.");
3041
+ if (!n || typeof n == "string")
3042
+ $ ? (i = s, a = $) : (i = void 0, a = s), n && (i = C1({
3043
+ defaultCountry: n
3044
+ }, i));
3045
+ else if (T(n))
3046
+ s ? (i = n, a = s) : a = n;
3047
+ else throw new Error("Invalid second argument: ".concat(n));
3048
+ return {
3049
+ text: o,
3050
+ options: i,
3051
+ metadata: a
3052
+ };
3053
+ }
3054
+ function A1() {
3055
+ var t = Ue(arguments), e = t.text, d = t.options, r = t.metadata;
3056
+ return ke(e, d, r);
3057
+ }
3058
+ function R(t) {
3059
+ "@babel/helpers - typeof";
3060
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3061
+ return typeof e;
3062
+ } : function(e) {
3063
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3064
+ }, R(t);
3065
+ }
3066
+ function Oe(t, e) {
3067
+ var d = Object.keys(t);
3068
+ if (Object.getOwnPropertySymbols) {
3069
+ var r = Object.getOwnPropertySymbols(t);
3070
+ e && (r = r.filter(function(n) {
3071
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
3072
+ })), d.push.apply(d, r);
3073
+ }
3074
+ return d;
3075
+ }
3076
+ function xe(t) {
3077
+ for (var e = 1; e < arguments.length; e++) {
3078
+ var d = arguments[e] != null ? arguments[e] : {};
3079
+ e % 2 ? Oe(Object(d), !0).forEach(function(r) {
3080
+ D1(t, r, d[r]);
3081
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Oe(Object(d)).forEach(function(r) {
3082
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
3083
+ });
3084
+ }
3085
+ return t;
3086
+ }
3087
+ function D1(t, e, d) {
3088
+ return (e = L1(e)) in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
3089
+ }
3090
+ function L1(t) {
3091
+ var e = M1(t, "string");
3092
+ return R(e) == "symbol" ? e : e + "";
3093
+ }
3094
+ function M1(t, e) {
3095
+ if (R(t) != "object" || !t) return t;
3096
+ var d = t[Symbol.toPrimitive];
3097
+ if (d !== void 0) {
3098
+ var r = d.call(t, e);
3099
+ if (R(r) != "object") return r;
3100
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3101
+ }
3102
+ return (e === "string" ? String : Number)(t);
3103
+ }
3104
+ function j1(t, e, d) {
3105
+ e && e.defaultCountry && !Gt(e.defaultCountry, d) && (e = xe(xe({}, e), {}, {
3106
+ defaultCountry: void 0
3107
+ }));
3108
+ try {
3109
+ return ke(t, e, d);
3110
+ } catch (r) {
3111
+ if (!(r instanceof g)) throw r;
3112
+ }
3113
+ }
3114
+ function I(t) {
3115
+ "@babel/helpers - typeof";
3116
+ return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3117
+ return typeof e;
3118
+ } : function(e) {
3119
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3120
+ }, I(t);
3121
+ }
3122
+ function _e(t, e) {
3123
+ var d = Object.keys(t);
3124
+ if (Object.getOwnPropertySymbols) {
3125
+ var r = Object.getOwnPropertySymbols(t);
3126
+ e && (r = r.filter(function(n) {
3127
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
3128
+ })), d.push.apply(d, r);
3129
+ }
3130
+ return d;
3131
+ }
3132
+ function Se(t) {
3133
+ for (var e = 1; e < arguments.length; e++) {
3134
+ var d = arguments[e] != null ? arguments[e] : {};
3135
+ e % 2 ? _e(Object(d), !0).forEach(function(r) {
3136
+ B1(t, r, d[r]);
3137
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : _e(Object(d)).forEach(function(r) {
3138
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
3139
+ });
3140
+ }
3141
+ return t;
3142
+ }
3143
+ function B1(t, e, d) {
3144
+ return (e = k1(e)) in t ? Object.defineProperty(t, e, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = d, t;
3145
+ }
3146
+ function k1(t) {
3147
+ var e = U1(t, "string");
3148
+ return I(e) == "symbol" ? e : e + "";
3149
+ }
3150
+ function U1(t, e) {
3151
+ if (I(t) != "object" || !t) return t;
3152
+ var d = t[Symbol.toPrimitive];
3153
+ if (d !== void 0) {
3154
+ var r = d.call(t, e);
3155
+ if (I(r) != "object") return r;
3156
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3157
+ }
3158
+ return (e === "string" ? String : Number)(t);
3159
+ }
3160
+ function G1() {
3161
+ var t = Ue(arguments), e = t.text, d = t.options, r = t.metadata;
3162
+ d = Se(Se({}, d), {}, {
3163
+ extract: !1
3164
+ });
3165
+ var n = j1(e, d, r);
3166
+ return n && n.isValid() || !1;
3167
+ }
3168
+ function H1() {
3169
+ return Ie(A1, arguments);
3170
+ }
3171
+ function V1() {
3172
+ return Ie(G1, arguments);
3173
+ }
3174
+ function od(t) {
3175
+ if (!V1(t)) return !1;
3176
+ const e = H1(t), d = e == null ? void 0 : e.country;
3177
+ return !(!d || !We.find((n) => n.iso === d));
1478
3178
  }
1479
- function Cs(e) {
1480
- if (!e || !/^[0-9a-zA-Z.-]+$/.test(e)) return !1;
1481
- const t = e.replace(/[^a-zA-Z0-9]/g, "");
1482
- return t.length < 7 || t.length > 9 ? !1 : /^[0-9]{7,8}[0-9Xx]?$/.test(t);
3179
+ function ad(t) {
3180
+ if (!t || !/^[0-9a-zA-Z.-]+$/.test(t)) return !1;
3181
+ const d = t.replace(/[^a-zA-Z0-9]/g, "");
3182
+ return d.length < 7 || d.length > 9 ? !1 : /^[0-9]{7,8}[0-9Xx]?$/.test(d);
1483
3183
  }
1484
3184
  export {
1485
- Es as ApiService,
1486
- U as BadGateway,
1487
- T as BadRequest,
1488
- C as Conflict,
1489
- F as Created,
1490
- S as DebugService,
1491
- A as Forbidden,
1492
- z as Found,
1493
- $ as LogService,
1494
- M as NoContent,
1495
- q as NotFound,
1496
- H as NotImplemented,
1497
- Ps as SchemaValidator,
1498
- x as ServerError,
1499
- V as Success,
1500
- L as Unauthorized,
1501
- b as UnprocessableEntity,
1502
- Z as Updated,
1503
- $s as decodeRequestBody,
1504
- vs as decodeRequestErrorMessage,
1505
- Bs as errorHandler,
1506
- p as flushDebugLogs,
1507
- es as formAsyncParse,
1508
- ts as formParse,
1509
- Os as getScopedParams,
1510
- ks as validateCep,
1511
- ws as validateCnpj,
1512
- js as validateCpf,
1513
- Js as validateDate,
1514
- _s as validateEmail,
1515
- Is as validatePassword,
1516
- Us as validatePhone,
1517
- Cs as validateRg
3185
+ X1 as ApiService,
3186
+ Ze as BadGateway,
3187
+ V as BadRequest,
3188
+ qe as Conflict,
3189
+ et as Created,
3190
+ Q as DebugService,
3191
+ Xe as Forbidden,
3192
+ tt as Found,
3193
+ Re as LogService,
3194
+ dt as NoContent,
3195
+ Ye as NotFound,
3196
+ ze as NotImplemented,
3197
+ td as SchemaValidator,
3198
+ J as ServerError,
3199
+ rt as Success,
3200
+ Qe as Unauthorized,
3201
+ W as UnprocessableEntity,
3202
+ nt as Updated,
3203
+ Y1 as decodeRequestBody,
3204
+ z1 as decodeRequestErrorMessage,
3205
+ Q1 as errorHandler,
3206
+ F as flushDebugLogs,
3207
+ ct as formAsyncParse,
3208
+ ft as formParse,
3209
+ ed as getScopedParams,
3210
+ dd as validateCep,
3211
+ rd as validateCnpj,
3212
+ nd as validateCpf,
3213
+ sd as validateDate,
3214
+ $d as validateEmail,
3215
+ id as validatePassword,
3216
+ od as validatePhone,
3217
+ ad as validateRg
1518
3218
  };