1(function webpackUniversalModuleDefinition(root, factory) { 2 if (typeof exports === 'object' && typeof module === 'object') { 3 const vue = require('../vue.min'); 4 module.exports = factory(vue); 5 } else if (typeof define === 'function' && define.amd) { 6 define([], factory); 7 } else if (typeof exports === 'object') { 8 const vue = require('../vue.min'); 9 exports['vue-phone-number-input'] = factory(vue); 10 } else { 11 root['vue-phone-number-input'] = factory(root['Vue']); 12 } 13})( 14 typeof self !== 'undefined' ? self : this, 15 function (__WEBPACK_EXTERNAL_MODULE__8bbf__) { 16 return /******/ (function (modules) { 17 // webpackBootstrap 18 /******/ // The module cache 19 /******/ var installedModules = {}; 20 /******/ 21 /******/ // The require function 22 /******/ function __webpack_require__(moduleId) { 23 /******/ 24 /******/ // Check if module is in cache 25 /******/ if (installedModules[moduleId]) { 26 /******/ return installedModules[moduleId].exports; 27 /******/ 28 } 29 /******/ // Create a new module (and put it into the cache) 30 /******/ var module = (installedModules[moduleId] = { 31 /******/ i: moduleId, 32 /******/ l: false, 33 /******/ exports: {}, 34 /******/ 35 }); 36 /******/ 37 /******/ // Execute the module function 38 /******/ modules[moduleId].call( 39 module.exports, 40 module, 41 module.exports, 42 __webpack_require__ 43 ); 44 /******/ 45 /******/ // Flag the module as loaded 46 /******/ module.l = true; 47 /******/ 48 /******/ // Return the exports of the module 49 /******/ return module.exports; 50 /******/ 51 } 52 /******/ 53 /******/ 54 /******/ // expose the modules object (__webpack_modules__) 55 /******/ __webpack_require__.m = modules; 56 /******/ 57 /******/ // expose the module cache 58 /******/ __webpack_require__.c = installedModules; 59 /******/ 60 /******/ // define getter function for harmony exports 61 /******/ __webpack_require__.d = function (exports, name, getter) { 62 /******/ if (!__webpack_require__.o(exports, name)) { 63 /******/ Object.defineProperty(exports, name, { 64 enumerable: true, 65 get: getter, 66 }); 67 /******/ 68 } 69 /******/ 70 }; 71 /******/ 72 /******/ // define __esModule on exports 73 /******/ __webpack_require__.r = function (exports) { 74 /******/ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { 75 /******/ Object.defineProperty(exports, Symbol.toStringTag, { 76 value: 'Module', 77 }); 78 /******/ 79 } 80 /******/ Object.defineProperty(exports, '__esModule', { value: true }); 81 /******/ 82 }; 83 /******/ 84 /******/ // create a fake namespace object 85 /******/ // mode & 1: value is a module id, require it 86 /******/ // mode & 2: merge all properties of value into the ns 87 /******/ // mode & 4: return value when already ns object 88 /******/ // mode & 8|1: behave like require 89 /******/ __webpack_require__.t = function (value, mode) { 90 /******/ if (mode & 1) value = __webpack_require__(value); 91 /******/ if (mode & 8) return value; 92 /******/ if ( 93 mode & 4 && 94 typeof value === 'object' && 95 value && 96 value.__esModule 97 ) 98 return value; 99 /******/ var ns = Object.create(null); 100 /******/ __webpack_require__.r(ns); 101 /******/ Object.defineProperty(ns, 'default', { 102 enumerable: true, 103 value: value, 104 }); 105 /******/ if (mode & 2 && typeof value != 'string') 106 for (var key in value) 107 __webpack_require__.d( 108 ns, 109 key, 110 function (key) { 111 return value[key]; 112 }.bind(null, key) 113 ); 114 /******/ return ns; 115 /******/ 116 }; 117 /******/ 118 /******/ // getDefaultExport function for compatibility with non-harmony modules 119 /******/ __webpack_require__.n = function (module) { 120 /******/ var getter =
vendor: 9,713 bytes, lines 121-378
121 module && module.__esModule 122 ? /******/ function getDefault() { 123 return module['default']; 124 } 125 : /******/ function getModuleExports() { 126 return module; 127 }; 128 /******/ __webpack_require__.d(getter, 'a', getter); 129 /******/ return getter; 130 /******/ 131 }; 132 /******/ 133 /******/ // Object.prototype.hasOwnProperty.call 134 /******/ __webpack_require__.o = function (object, property) { 135 return Object.prototype.hasOwnProperty.call(object, property); 136 }; 137 /******/ 138 /******/ // __webpack_public_path__ 139 /******/ __webpack_require__.p = ''; 140 /******/ 141 /******/ 142 /******/ // Load entry module and return exports 143 /******/ return __webpack_require__((__webpack_require__.s = 'fb15')); 144 /******/ 145 })( 146 /************************************************************************/ 147 /******/ { 148 /***/ '014b': /***/ function (module, exports, __webpack_require__) { 149 'use strict'; 150 151 // ECMAScript 6 symbols shim 152 var global = __webpack_require__('e53d'); 153 var has = __webpack_require__('07e3'); 154 var DESCRIPTORS = __webpack_require__('8e60'); 155 var $export = __webpack_require__('63b6'); 156 var redefine = __webpack_require__('9138'); 157 var META = __webpack_require__('ebfd').KEY; 158 var $fails = __webpack_require__('294c'); 159 var shared = __webpack_require__('dbdb'); 160 var setToStringTag = __webpack_require__('45f2'); 161 var uid = __webpack_require__('62a0'); 162 var wks = __webpack_require__('5168'); 163 var wksExt = __webpack_require__('ccb9'); 164 var wksDefine = __webpack_require__('6718'); 165 var enumKeys = __webpack_require__('47ee'); 166 var isArray = __webpack_require__('9003'); 167 var anObject = __webpack_require__('e4ae'); 168 var isObject = __webpack_require__('f772'); 169 var toObject = __webpack_require__('241e'); 170 var toIObject = __webpack_require__('36c3'); 171 var toPrimitive = __webpack_require__('1bc3'); 172 var createDesc = __webpack_require__('aebd'); 173 var _create = __webpack_require__('a159'); 174 var gOPNExt = __webpack_require__('0395'); 175 var $GOPD = __webpack_require__('bf0b'); 176 var $GOPS = __webpack_require__('9aa9'); 177 var $DP = __webpack_require__('d9f6'); 178 var $keys = __webpack_require__('c3a1'); 179 var gOPD = $GOPD.f; 180 var dP = $DP.f; 181 var gOPN = gOPNExt.f; 182 var $Symbol = global.Symbol; 183 var $JSON = global.JSON; 184 var _stringify = $JSON && $JSON.stringify; 185 var PROTOTYPE = 'prototype'; 186 var HIDDEN = wks('_hidden'); 187 var TO_PRIMITIVE = wks('toPrimitive'); 188 var isEnum = {}.propertyIsEnumerable; 189 var SymbolRegistry = shared('symbol-registry'); 190 var AllSymbols = shared('symbols'); 191 var OPSymbols = shared('op-symbols'); 192 var ObjectProto = Object[PROTOTYPE]; 193 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; 194 var QObject = global.QObject; 195 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 196 var setter = 197 !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; 198 199 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 200 var setSymbolDesc = 201 DESCRIPTORS && 202 $fails(function () { 203 return ( 204 _create( 205 dP({}, 'a', { 206 get: function () { 207 return dP(this, 'a', { value: 7 }).a; 208 }, 209 }) 210 ).a != 7 211 ); 212 }) 213 ? function (it, key, D) { 214 var protoDesc = gOPD(ObjectProto, key); 215 if (protoDesc) delete ObjectProto[key]; 216 dP(it, key, D); 217 if (protoDesc && it !== ObjectProto) 218 dP(ObjectProto, key, protoDesc); 219 } 220 : dP; 221 222 var wrap = function (tag) { 223 var sym = (AllSymbols[tag] = _create($Symbol[PROTOTYPE])); 224 sym._k = tag; 225 return sym; 226 }; 227 228 var isSymbol = 229 USE_NATIVE && typeof $Symbol.iterator == 'symbol' 230 ? function (it) { 231 return typeof it == 'symbol'; 232 } 233 : function (it) { 234 return it instanceof $Symbol; 235 }; 236 237 var $defineProperty = function defineProperty(it, key, D) { 238 if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 239 anObject(it); 240 key = toPrimitive(key, true); 241 anObject(D); 242 if (has(AllSymbols, key)) { 243 if (!D.enumerable) { 244 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 245 it[HIDDEN][key] = true; 246 } else { 247 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 248 D = _create(D, { enumerable: createDesc(0, false) }); 249 } 250 return setSymbolDesc(it, key, D); 251 } 252 return dP(it, key, D); 253 }; 254 var $defineProperties = function defineProperties(it, P) { 255 anObject(it); 256 var keys = enumKeys((P = toIObject(P))); 257 var i = 0; 258 var l = keys.length; 259 var key; 260 while (l > i) $defineProperty(it, (key = keys[i++]), P[key]); 261 return it; 262 }; 263 var $create = function create(it, P) { 264 return P === undefined 265 ? _create(it) 266 : $defineProperties(_create(it), P); 267 }; 268 var $propertyIsEnumerable = function propertyIsEnumerable(key) { 269 var E = isEnum.call(this, (key = toPrimitive(key, true))); 270 if ( 271 this === ObjectProto && 272 has(AllSymbols, key) && 273 !has(OPSymbols, key) 274 ) 275 return false; 276 return E || 277 !has(this, key) || 278 !has(AllSymbols, key) || 279 (has(this, HIDDEN) && this[HIDDEN][key]) 280 ? E 281 : true; 282 }; 283 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor( 284 it, 285 key 286 ) { 287 it = toIObject(it); 288 key = toPrimitive(key, true); 289 if ( 290 it === ObjectProto && 291 has(AllSymbols, key) && 292 !has(OPSymbols, key) 293 ) 294 return; 295 var D = gOPD(it, key); 296 if ( 297 D && 298 has(AllSymbols, key) && 299 !(has(it, HIDDEN) && it[HIDDEN][key]) 300 ) 301 D.enumerable = true; 302 return D; 303 }; 304 var $getOwnPropertyNames = function getOwnPropertyNames(it) { 305 var names = gOPN(toIObject(it)); 306 var result = []; 307 var i = 0; 308 var key; 309 while (names.length > i) { 310 if ( 311 !has(AllSymbols, (key = names[i++])) && 312 key != HIDDEN && 313 key != META 314 ) 315 result.push(key); 316 } 317 return result; 318 }; 319 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 320 var IS_OP = it === ObjectProto; 321 var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 322 var result = []; 323 var i = 0; 324 var key; 325 while (names.length > i) { 326 if ( 327 has(AllSymbols, (key = names[i++])) && 328 (IS_OP ? has(ObjectProto, key) : true) 329 ) 330 result.push(AllSymbols[key]); 331 } 332 return result; 333 }; 334 335 // 19.4.1.1 Symbol([description]) 336 if (!USE_NATIVE) { 337 $Symbol = function Symbol() { 338 if (this instanceof $Symbol) 339 throw TypeError('Symbol is not a constructor!'); 340 var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 341 var $set = function (value) { 342 if (this === ObjectProto) $set.call(OPSymbols, value); 343 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) 344 this[HIDDEN][tag] = false; 345 setSymbolDesc(this, tag, createDesc(1, value)); 346 }; 347 if (DESCRIPTORS && setter) 348 setSymbolDesc(ObjectProto, tag, { 349 configurable: true, 350 set: $set, 351 }); 352 return wrap(tag); 353 }; 354 redefine($Symbol[PROTOTYPE], 'toString', function toString() { 355 return this._k; 356 }); 357 358 $GOPD.f = $getOwnPropertyDescriptor; 359 $DP.f = $defineProperty; 360 __webpack_require__('6abf').f = gOPNExt.f = $getOwnPropertyNames; 361 __webpack_require__('355d').f = $propertyIsEnumerable; 362 $GOPS.f = $getOwnPropertySymbols; 363 364 if (DESCRIPTORS && !__webpack_require__('b8e3')) { 365 redefine( 366 ObjectProto, 367 'propertyIsEnumerable', 368 $propertyIsEnumerable, 369 true 370 ); 371 } 372 373 wksExt.f = function (name) { 374 return wrap(wks(name)); 375 }; 376 } 377 378 $export($export.G + $export.W + $export.F * !USE_NATIVE, {
379 Symbol: $Symbol, 380 }); 381 382 for ( 383 var es6Symbols = 384 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 385 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( 386 ',' 387 ), 388 j = 0; 389 es6Symbols.length > j; 390 391 ) 392 wks(es6Symbols[j++]); 393 394 for ( 395 var wellKnownSymbols = $keys(wks.store), k = 0; 396 wellKnownSymbols.length > k; 397 398 ) 399 wksDefine(wellKnownSymbols[k++]); 400 401 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 402 // 19.4.2.1 Symbol.for(key) 403 for: function (key) { 404 return has(SymbolRegistry, (key += '')) 405 ? SymbolRegistry[key] 406 : (SymbolRegistry[key] = $Symbol(key)); 407 }, 408 // 19.4.2.5 Symbol.keyFor(sym) 409 keyFor: function keyFor(sym) { 410 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 411 for (var key in SymbolRegistry) 412 if (SymbolRegistry[key] === sym) return key; 413 }, 414 useSetter: function () { 415 setter = true; 416 }, 417 useSimple: function () { 418 setter = false; 419 }, 420 }); 421 422 $export($export.S + $export.F * !USE_NATIVE, 'Object', { 423 // 19.1.2.2 Object.create(O [, Properties]) 424 create: $create, 425 // 19.1.2.4 Object.defineProperty(O, P, Attributes) 426 defineProperty: $defineProperty, 427 // 19.1.2.3 Object.defineProperties(O, Properties) 428 defineProperties: $defineProperties, 429 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 430 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 431 // 19.1.2.7 Object.getOwnPropertyNames(O) 432 getOwnPropertyNames: $getOwnPropertyNames, 433 // 19.1.2.8 Object.getOwnPropertySymbols(O) 434 getOwnPropertySymbols: $getOwnPropertySymbols, 435 }); 436 437 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives 438 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
vendor: 4,357 bytes, lines 439-554
439 var FAILS_ON_PRIMITIVES = $fails(function () { 440 $GOPS.f(1); 441 }); 442 443 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { 444 getOwnPropertySymbols: function getOwnPropertySymbols(it) { 445 return $GOPS.f(toObject(it)); 446 }, 447 }); 448 449 // 24.3.2 JSON.stringify(value [, replacer [, space]]) 450 $JSON && 451 $export( 452 $export.S + 453 $export.F * 454 (!USE_NATIVE || 455 $fails(function () { 456 var S = $Symbol(); 457 // MS Edge converts symbol values to JSON as {} 458 // WebKit converts symbol values to JSON as null 459 // V8 throws on boxed symbols 460 return ( 461 _stringify([S]) != '[null]' || 462 _stringify({ a: S }) != '{}' || 463 _stringify(Object(S)) != '{}' 464 ); 465 })), 466 'JSON', 467 { 468 stringify: function stringify(it) { 469 var args = [it]; 470 var i = 1; 471 var replacer, $replacer; 472 while (arguments.length > i) args.push(arguments[i++]); 473 $replacer = replacer = args[1]; 474 if ((!isObject(replacer) && it === undefined) || isSymbol(it)) 475 return; // IE8 returns string on undefined 476 if (!isArray(replacer)) 477 replacer = function (key, value) { 478 if (typeof $replacer == 'function') 479 value = $replacer.call(this, key, value); 480 if (!isSymbol(value)) return value; 481 }; 482 args[1] = replacer; 483 return _stringify.apply($JSON, args); 484 }, 485 } 486 ); 487 488 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 489 $Symbol[PROTOTYPE][TO_PRIMITIVE] || 490 __webpack_require__('35e8')( 491 $Symbol[PROTOTYPE], 492 TO_PRIMITIVE, 493 $Symbol[PROTOTYPE].valueOf 494 ); 495 // 19.4.3.5 Symbol.prototype[@@toStringTag] 496 setToStringTag($Symbol, 'Symbol'); 497 // 20.2.1.9 Math[@@toStringTag] 498 setToStringTag(Math, 'Math', true); 499 // 24.3.3 JSON[@@toStringTag] 500 setToStringTag(global.JSON, 'JSON', true); 501 502 /***/ 503 }, 504 505 /***/ '01f9': /***/ function (module, exports, __webpack_require__) { 506 'use strict'; 507 508 var LIBRARY = __webpack_require__('2d00'); 509 var $export = __webpack_require__('5ca1'); 510 var redefine = __webpack_require__('2aba'); 511 var hide = __webpack_require__('32e9'); 512 var Iterators = __webpack_require__('84f2'); 513 var $iterCreate = __webpack_require__('41a0'); 514 var setToStringTag = __webpack_require__('7f20'); 515 var getPrototypeOf = __webpack_require__('38fd'); 516 var ITERATOR = __webpack_require__('2b4c')('iterator'); 517 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 518 var FF_ITERATOR = '@@iterator'; 519 var KEYS = 'keys'; 520 var VALUES = 'values'; 521 522 var returnThis = function () { 523 return this; 524 }; 525 526 module.exports = function ( 527 Base, 528 NAME, 529 Constructor, 530 next, 531 DEFAULT, 532 IS_SET, 533 FORCED 534 ) { 535 $iterCreate(Constructor, NAME, next); 536 var getMethod = function (kind) { 537 if (!BUGGY && kind in proto) return proto[kind]; 538 switch (kind) { 539 case KEYS: 540 return function keys() { 541 return new Constructor(this, kind); 542 }; 543 case VALUES: 544 return function values() { 545 return new Constructor(this, kind); 546 }; 547 } 548 return function entries() { 549 return new Constructor(this, kind); 550 }; 551 }; 552 var TAG = NAME + ' Iterator'; 553 var DEF_VALUES = DEFAULT == VALUES; 554 var VALUES_BUG = false;
vendor: 5,239 bytes, lines 555-706
555 var proto = Base.prototype; 556 var $native = 557 proto[ITERATOR] || 558 proto[FF_ITERATOR] || 559 (DEFAULT && proto[DEFAULT]); 560 var $default = $native || getMethod(DEFAULT); 561 var $entries = DEFAULT 562 ? !DEF_VALUES 563 ? $default 564 : getMethod('entries') 565 : undefined; 566 var $anyNative = 567 NAME == 'Array' ? proto.entries || $native : $native; 568 var methods, key, IteratorPrototype; 569 // Fix native 570 if ($anyNative) { 571 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 572 if ( 573 IteratorPrototype !== Object.prototype && 574 IteratorPrototype.next 575 ) { 576 // Set @@toStringTag to native iterators 577 setToStringTag(IteratorPrototype, TAG, true); 578 // fix for some old engines 579 if ( 580 !LIBRARY && 581 typeof IteratorPrototype[ITERATOR] != 'function' 582 ) 583 hide(IteratorPrototype, ITERATOR, returnThis); 584 } 585 } 586 // fix Array#{values, @@iterator}.name in V8 / FF 587 if (DEF_VALUES && $native && $native.name !== VALUES) { 588 VALUES_BUG = true; 589 $default = function values() { 590 return $native.call(this); 591 }; 592 } 593 // Define iterator 594 if ( 595 (!LIBRARY || FORCED) && 596 (BUGGY || VALUES_BUG || !proto[ITERATOR]) 597 ) { 598 hide(proto, ITERATOR, $default); 599 } 600 // Plug for library 601 Iterators[NAME] = $default; 602 Iterators[TAG] = returnThis; 603 if (DEFAULT) { 604 methods = { 605 values: DEF_VALUES ? $default : getMethod(VALUES), 606 keys: IS_SET ? $default : getMethod(KEYS), 607 entries: $entries, 608 }; 609 if (FORCED) 610 for (key in methods) { 611 if (!(key in proto)) redefine(proto, key, methods[key]); 612 } 613 else 614 $export( 615 $export.P + $export.F * (BUGGY || VALUES_BUG), 616 NAME, 617 methods 618 ); 619 } 620 return methods; 621 }; 622 623 /***/ 624 }, 625 626 /***/ '0395': /***/ function (module, exports, __webpack_require__) { 627 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 628 var toIObject = __webpack_require__('36c3'); 629 var gOPN = __webpack_require__('6abf').f; 630 var toString = {}.toString; 631 632 var windowNames = 633 typeof window == 'object' && window && Object.getOwnPropertyNames 634 ? Object.getOwnPropertyNames(window) 635 : []; 636 637 var getWindowNames = function (it) { 638 try { 639 return gOPN(it); 640 } catch (e) { 641 return windowNames.slice(); 642 } 643 }; 644 645 module.exports.f = function getOwnPropertyNames(it) { 646 return windowNames && toString.call(it) == '[object Window]' 647 ? getWindowNames(it) 648 : gOPN(toIObject(it)); 649 }; 650 651 /***/ 652 }, 653 654 /***/ '0750': /***/ function (module, exports, __webpack_require__) { 655 'use strict'; 656 657 Object.defineProperty(exports, '__esModule', { value: true }); 658 exports.default = { 659 aliceblue: '#f0f8ff', 660 antiquewhite: '#faebd7', 661 aqua: '#00ffff', 662 aquamarine: '#7fffd4', 663 azure: '#f0ffff', 664 beige: '#f5f5dc', 665 bisque: '#ffe4c4', 666 black: '#000000', 667 blanchedalmond: '#ffebcd', 668 blue: '#0000ff', 669 blueviolet: '#8a2be2', 670 brown: '#a52a2a', 671 burlywood: '#deb887', 672 cadetblue: '#5f9ea0', 673 chartreuse: '#7fff00', 674 chocolate: '#d2691e', 675 coral: '#ff7f50', 676 cornflowerblue: '#6495ed', 677 cornsilk: '#fff8dc', 678 crimson: '#dc143c', 679 cyan: '#00ffff', 680 darkblue: '#00008b', 681 darkcyan: '#008b8b', 682 darkgoldenrod: '#b8860b', 683 darkgray: '#a9a9a9', 684 darkgreen: '#006400', 685 darkkhaki: '#bdb76b', 686 darkmagenta: '#8b008b', 687 darkolivegreen: '#556b2f', 688 darkorange: '#ff8c00', 689 darkorchid: '#9932cc', 690 darkred: '#8b0000', 691 darksalmon: '#e9967a', 692 darkseagreen: '#8fbc8f', 693 darkslateblue: '#483d8b', 694 darkslategray: '#2f4f4f', 695 darkturquoise: '#00ced1', 696 darkviolet: '#9400d3', 697 deeppink: '#ff1493', 698 deepskyblue: '#00bfff', 699 dimgray: '#696969', 700 dodgerblue: '#1e90ff', 701 firebrick: '#b22222', 702 floralwhite: '#fffaf0', 703 forestgreen: '#228b22', 704 fuchsia: '#ff00ff', 705 gainsboro: '#dcdcdc', 706 ghostwhite: '#f8f8ff',
vendor: 7,653 bytes, lines 707-937
707 gold: '#ffd700', 708 goldenrod: '#daa520', 709 gray: '#808080', 710 green: '#008000', 711 greenyellow: '#adff2f', 712 honeydew: '#f0fff0', 713 hotpink: '#ff69b4', 714 indianred: '#cd5c5c', 715 indigo: '#4b0082', 716 ivory: '#fffff0', 717 khaki: '#f0e68c', 718 lavender: '#e6e6fa', 719 lavenderblush: '#fff0f5', 720 lawngreen: '#7cfc00', 721 lemonchiffon: '#fffacd', 722 lightblue: '#add8e6', 723 lightcoral: '#f08080', 724 lightcyan: '#e0ffff', 725 lightgoldenrodyellow: '#fafad2', 726 lightgrey: '#d3d3d3', 727 lightgreen: '#90ee90', 728 lightpink: '#ffb6c1', 729 lightsalmon: '#ffa07a', 730 lightseagreen: '#20b2aa', 731 lightskyblue: '#87cefa', 732 lightslategray: '#778899', 733 lightsteelblue: '#b0c4de', 734 lightyellow: '#ffffe0', 735 lime: '#00ff00', 736 limegreen: '#32cd32', 737 linen: '#faf0e6', 738 magenta: '#ff00ff', 739 maroon: '#800000', 740 mediumaquamarine: '#66cdaa', 741 mediumblue: '#0000cd', 742 mediumorchid: '#ba55d3', 743 mediumpurple: '#9370d8', 744 mediumseagreen: '#3cb371', 745 mediumslateblue: '#7b68ee', 746 mediumspringgreen: '#00fa9a', 747 mediumturquoise: '#48d1cc', 748 mediumvioletred: '#c71585', 749 midnightblue: '#191970', 750 mintcream: '#f5fffa', 751 mistyrose: '#ffe4e1', 752 moccasin: '#ffe4b5', 753 navajowhite: '#ffdead', 754 navy: '#000080', 755 oldlace: '#fdf5e6', 756 olive: '#808000', 757 olivedrab: '#6b8e23', 758 orange: '#ffa500', 759 orangered: '#ff4500', 760 orchid: '#da70d6', 761 palegoldenrod: '#eee8aa', 762 palegreen: '#98fb98', 763 paleturquoise: '#afeeee', 764 palevioletred: '#d87093', 765 papayawhip: '#ffefd5', 766 peachpuff: '#ffdab9', 767 peru: '#cd853f', 768 pink: '#ffc0cb', 769 plum: '#dda0dd', 770 powderblue: '#b0e0e6', 771 purple: '#800080', 772 rebeccapurple: '#663399', 773 red: '#ff0000', 774 rosybrown: '#bc8f8f', 775 royalblue: '#4169e1', 776 saddlebrown: '#8b4513', 777 salmon: '#fa8072', 778 sandybrown: '#f4a460', 779 seagreen: '#2e8b57', 780 seashell: '#fff5ee', 781 sienna: '#a0522d', 782 silver: '#c0c0c0', 783 skyblue: '#87ceeb', 784 slateblue: '#6a5acd', 785 slategray: '#708090', 786 snow: '#fffafa', 787 springgreen: '#00ff7f', 788 steelblue: '#4682b4', 789 tan: '#d2b48c', 790 teal: '#008080', 791 thistle: '#d8bfd8', 792 tomato: '#ff6347', 793 turquoise: '#40e0d0', 794 violet: '#ee82ee', 795 wheat: '#f5deb3', 796 white: '#ffffff', 797 whitesmoke: '#f5f5f5', 798 yellow: '#ffff00', 799 yellowgreen: '#9acd32', 800 transparent: 'transparent', 801 }; 802 //# sourceMappingURL=index.js.map 803 804 /***/ 805 }, 806 807 /***/ '07e3': /***/ function (module, exports) { 808 var hasOwnProperty = {}.hasOwnProperty; 809 module.exports = function (it, key) { 810 return hasOwnProperty.call(it, key); 811 }; 812 813 /***/ 814 }, 815 816 /***/ '0a49': /***/ function (module, exports, __webpack_require__) { 817 // 0 -> Array#forEach 818 // 1 -> Array#map 819 // 2 -> Array#filter 820 // 3 -> Array#some 821 // 4 -> Array#every 822 // 5 -> Array#find 823 // 6 -> Array#findIndex 824 var ctx = __webpack_require__('9b43'); 825 var IObject = __webpack_require__('626a'); 826 var toObject = __webpack_require__('4bf8'); 827 var toLength = __webpack_require__('9def'); 828 var asc = __webpack_require__('cd1c'); 829 module.exports = function (TYPE, $create) { 830 var IS_MAP = TYPE == 1; 831 var IS_FILTER = TYPE == 2; 832 var IS_SOME = TYPE == 3; 833 var IS_EVERY = TYPE == 4; 834 var IS_FIND_INDEX = TYPE == 6; 835 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; 836 var create = $create || asc; 837 return function ($this, callbackfn, that) { 838 var O = toObject($this); 839 var self = IObject(O); 840 var f = ctx(callbackfn, that, 3); 841 var length = toLength(self.length); 842 var index = 0; 843 var result = IS_MAP 844 ? create($this, length) 845 : IS_FILTER 846 ? create($this, 0) 847 : undefined; 848 var val, res; 849 for (; length > index; index++) 850 if (NO_HOLES || index in self) { 851 val = self[index]; 852 res = f(val, index, O); 853 if (TYPE) { 854 if (IS_MAP) 855 result[index] = res; // map 856 else if (res) 857 switch (TYPE) { 858 case 3: 859 return true; // some 860 case 5: 861 return val; // find 862 case 6: 863 return index; // findIndex 864 case 2: 865 result.push(val); // filter 866 } 867 else if (IS_EVERY) return false; // every 868 } 869 } 870 return IS_FIND_INDEX 871 ? -1 872 : IS_SOME || IS_EVERY 873 ? IS_EVERY 874 : result; 875 }; 876 }; 877 878 /***/ 879 }, 880 881 /***/ '0bfb': /***/ function (module, exports, __webpack_require__) { 882 'use strict'; 883 884 // 21.2.5.3 get RegExp.prototype.flags 885 var anObject = __webpack_require__('cb7c'); 886 module.exports = function () { 887 var that = anObject(this); 888 var result = ''; 889 if (that.global) result += 'g'; 890 if (that.ignoreCase) result += 'i'; 891 if (that.multiline) result += 'm'; 892 if (that.unicode) result += 'u'; 893 if (that.sticky) result += 'y'; 894 return result; 895 }; 896 897 /***/ 898 }, 899 900 /***/ '0d58': /***/ function (module, exports, __webpack_require__) { 901 // 19.1.2.14 / 15.2.3.14 Object.keys(O) 902 var $keys = __webpack_require__('ce10'); 903 var enumBugKeys = __webpack_require__('e11e'); 904 905 module.exports = 906 Object.keys || 907 function keys(O) { 908 return $keys(O, enumBugKeys); 909 }; 910 911 /***/ 912 }, 913 914 /***/ '0fc9': /***/ function (module, exports, __webpack_require__) { 915 var toInteger = __webpack_require__('3a38'); 916 var max = Math.max; 917 var min = Math.min; 918 module.exports = function (index, length) { 919 index = toInteger(index); 920 return index < 0 ? max(index + length, 0) : min(index, length); 921 }; 922 923 /***/ 924 }, 925 926 /***/ 1169: /***/ function (module, exports, __webpack_require__) { 927 // 7.2.2 IsArray(argument) 928 var cof = __webpack_require__('2d95'); 929 module.exports = 930 Array.isArray || 931 function isArray(arg) { 932 return cof(arg) == 'Array'; 933 }; 934 935 /***/ 936 }, 937
vendor: 6,390 bytes, lines 938-1121
938 /***/ 1173: /***/ function (module, exports) { 939 module.exports = function (it, Constructor, name, forbiddenField) { 940 if ( 941 !(it instanceof Constructor) || 942 (forbiddenField !== undefined && forbiddenField in it) 943 ) { 944 throw TypeError(name + ': incorrect invocation!'); 945 } 946 return it; 947 }; 948 949 /***/ 950 }, 951 952 /***/ '11e9': /***/ function (module, exports, __webpack_require__) { 953 var pIE = __webpack_require__('52a7'); 954 var createDesc = __webpack_require__('4630'); 955 var toIObject = __webpack_require__('6821'); 956 var toPrimitive = __webpack_require__('6a99'); 957 var has = __webpack_require__('69a8'); 958 var IE8_DOM_DEFINE = __webpack_require__('c69a'); 959 var gOPD = Object.getOwnPropertyDescriptor; 960 961 exports.f = __webpack_require__('9e1e') 962 ? gOPD 963 : function getOwnPropertyDescriptor(O, P) { 964 O = toIObject(O); 965 P = toPrimitive(P, true); 966 if (IE8_DOM_DEFINE) 967 try { 968 return gOPD(O, P); 969 } catch (e) { 970 /* empty */ 971 } 972 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 973 }; 974 975 /***/ 976 }, 977 978 /***/ 1495: /***/ function (module, exports, __webpack_require__) { 979 var dP = __webpack_require__('86cc'); 980 var anObject = __webpack_require__('cb7c'); 981 var getKeys = __webpack_require__('0d58'); 982 983 module.exports = __webpack_require__('9e1e') 984 ? Object.defineProperties 985 : function defineProperties(O, Properties) { 986 anObject(O); 987 var keys = getKeys(Properties); 988 var length = keys.length; 989 var i = 0; 990 var P; 991 while (length > i) dP.f(O, (P = keys[i++]), Properties[P]); 992 return O; 993 }; 994 995 /***/ 996 }, 997 998 /***/ 1654: /***/ function (module, exports, __webpack_require__) { 999 'use strict'; 1000 1001 var $at = __webpack_require__('71c1')(true); 1002 1003 // 21.1.3.27 String.prototype[@@iterator]() 1004 __webpack_require__('30f1')( 1005 String, 1006 'String', 1007 function (iterated) { 1008 this._t = String(iterated); // target 1009 this._i = 0; // next index 1010 // 21.1.5.2.1 %StringIteratorPrototype%.next() 1011 }, 1012 function () { 1013 var O = this._t; 1014 var index = this._i; 1015 var point; 1016 if (index >= O.length) return { value: undefined, done: true }; 1017 point = $at(O, index); 1018 this._i += point.length; 1019 return { value: point, done: false }; 1020 } 1021 ); 1022 1023 /***/ 1024 }, 1025 1026 /***/ 1691: /***/ function (module, exports) { 1027 // IE 8- don't enum bug keys 1028 module.exports = 1029 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( 1030 ',' 1031 ); 1032 1033 /***/ 1034 }, 1035 1036 /***/ '1af6': /***/ function (module, exports, __webpack_require__) { 1037 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) 1038 var $export = __webpack_require__('63b6'); 1039 1040 $export($export.S, 'Array', { isArray: __webpack_require__('9003') }); 1041 1042 /***/ 1043 }, 1044 1045 /***/ '1bc3': /***/ function (module, exports, __webpack_require__) { 1046 // 7.1.1 ToPrimitive(input [, PreferredType]) 1047 var isObject = __webpack_require__('f772'); 1048 // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1049 // and the second argument - flag - preferred type is a string 1050 module.exports = function (it, S) { 1051 if (!isObject(it)) return it; 1052 var fn, val; 1053 if ( 1054 S && 1055 typeof (fn = it.toString) == 'function' && 1056 !isObject((val = fn.call(it))) 1057 ) 1058 return val; 1059 if ( 1060 typeof (fn = it.valueOf) == 'function' && 1061 !isObject((val = fn.call(it))) 1062 ) 1063 return val; 1064 if ( 1065 !S && 1066 typeof (fn = it.toString) == 'function' && 1067 !isObject((val = fn.call(it))) 1068 ) 1069 return val; 1070 throw TypeError("Can't convert object to primitive value"); 1071 }; 1072 1073 /***/ 1074 }, 1075 1076 /***/ '1c15': /***/ function (module, exports, __webpack_require__) { 1077 'use strict'; 1078 1079 Object.defineProperty(exports, '__esModule', { value: true }); 1080 exports.default = (hex, coef = 1) => { 1081 if (/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) { 1082 let c = hex.substring(1).split(''); 1083 if (c.length === 3) c = [c[0], c[0], c[1], c[1], c[2], c[2]]; 1084 const color = `0x${c.join('')}`; // eslint-disable-line 1085 return `rgba(${[ 1086 (color >> 16) & 255, 1087 (color >> 8) & 255, 1088 color & 255, 1089 ].join(', ')}, ${coef})`; 1090 } 1091 throw new Error('Bad Hex'); 1092 }; 1093 //# sourceMappingURL=index.js.map 1094 1095 /***/ 1096 }, 1097 1098 /***/ '1ec9': /***/ function (module, exports, __webpack_require__) { 1099 var isObject = __webpack_require__('f772'); 1100 var document = __webpack_require__('e53d').document; 1101 // typeof document.createElement is 'object' in old IE 1102 var is = isObject(document) && isObject(document.createElement); 1103 module.exports = function (it) { 1104 return is ? document.createElement(it) : {}; 1105 }; 1106 1107 /***/ 1108 }, 1109 1110 /***/ '20d6': /***/ function (module, exports, __webpack_require__) { 1111 'use strict'; 1112 1113 // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) 1114 var $export = __webpack_require__('5ca1'); 1115 var $find = __webpack_require__('0a49')(6); 1116 var KEY = 'findIndex'; 1117 var forced = true; 1118 // Shouldn't skip holes 1119 if (KEY in []) 1120 Array(1)[KEY](function () { 1121 forced = false;
vendor: 13,972 bytes, lines 1122-1472
1122 }); 1123 $export($export.P + $export.F * forced, 'Array', { 1124 findIndex: function findIndex(callbackfn /* , that = undefined */) { 1125 return $find( 1126 this, 1127 callbackfn, 1128 arguments.length > 1 ? arguments[1] : undefined 1129 ); 1130 }, 1131 }); 1132 __webpack_require__('9c6c')(KEY); 1133 1134 /***/ 1135 }, 1136 1137 /***/ '20fd': /***/ function (module, exports, __webpack_require__) { 1138 'use strict'; 1139 1140 var $defineProperty = __webpack_require__('d9f6'); 1141 var createDesc = __webpack_require__('aebd'); 1142 1143 module.exports = function (object, index, value) { 1144 if (index in object) 1145 $defineProperty.f(object, index, createDesc(0, value)); 1146 else object[index] = value; 1147 }; 1148 1149 /***/ 1150 }, 1151 1152 /***/ '230e': /***/ function (module, exports, __webpack_require__) { 1153 var isObject = __webpack_require__('d3f4'); 1154 var document = __webpack_require__('7726').document; 1155 // typeof document.createElement is 'object' in old IE 1156 var is = isObject(document) && isObject(document.createElement); 1157 module.exports = function (it) { 1158 return is ? document.createElement(it) : {}; 1159 }; 1160 1161 /***/ 1162 }, 1163 1164 /***/ '241e': /***/ function (module, exports, __webpack_require__) { 1165 // 7.1.13 ToObject(argument) 1166 var defined = __webpack_require__('25eb'); 1167 module.exports = function (it) { 1168 return Object(defined(it)); 1169 }; 1170 1171 /***/ 1172 }, 1173 1174 /***/ '24c5': /***/ function (module, exports, __webpack_require__) { 1175 'use strict'; 1176 1177 var LIBRARY = __webpack_require__('b8e3'); 1178 var global = __webpack_require__('e53d'); 1179 var ctx = __webpack_require__('d864'); 1180 var classof = __webpack_require__('40c3'); 1181 var $export = __webpack_require__('63b6'); 1182 var isObject = __webpack_require__('f772'); 1183 var aFunction = __webpack_require__('79aa'); 1184 var anInstance = __webpack_require__('1173'); 1185 var forOf = __webpack_require__('a22a'); 1186 var speciesConstructor = __webpack_require__('f201'); 1187 var task = __webpack_require__('4178').set; 1188 var microtask = __webpack_require__('aba2')(); 1189 var newPromiseCapabilityModule = __webpack_require__('656e'); 1190 var perform = __webpack_require__('4439'); 1191 var userAgent = __webpack_require__('bc13'); 1192 var promiseResolve = __webpack_require__('cd78'); 1193 var PROMISE = 'Promise'; 1194 var TypeError = global.TypeError; 1195 var process = global.process; 1196 var versions = process && process.versions; 1197 var v8 = (versions && versions.v8) || ''; 1198 var $Promise = global[PROMISE]; 1199 var isNode = classof(process) == 'process'; 1200 var empty = function () { 1201 /* empty */ 1202 }; 1203 var Internal, 1204 newGenericPromiseCapability, 1205 OwnPromiseCapability, 1206 Wrapper; 1207 var newPromiseCapability = (newGenericPromiseCapability = 1208 newPromiseCapabilityModule.f); 1209 1210 var USE_NATIVE = !!(function () { 1211 try { 1212 // correct subclassing with @@species support 1213 var promise = $Promise.resolve(1); 1214 var FakePromise = ((promise.constructor = {})[ 1215 __webpack_require__('5168')('species') 1216 ] = function (exec) { 1217 exec(empty, empty); 1218 }); 1219 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test 1220 return ( 1221 (isNode || typeof PromiseRejectionEvent == 'function') && 1222 promise.then(empty) instanceof FakePromise && 1223 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables 1224 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 1225 // we can't detect it synchronously, so just check versions 1226 v8.indexOf('6.6') !== 0 && 1227 userAgent.indexOf('Chrome/66') === -1 1228 ); 1229 } catch (e) { 1230 /* empty */ 1231 } 1232 })(); 1233 1234 // helpers 1235 var isThenable = function (it) { 1236 var then; 1237 return isObject(it) && typeof (then = it.then) == 'function' 1238 ? then 1239 : false; 1240 }; 1241 var notify = function (promise, isReject) { 1242 if (promise._n) return; 1243 promise._n = true; 1244 var chain = promise._c; 1245 microtask(function () { 1246 var value = promise._v; 1247 var ok = promise._s == 1; 1248 var i = 0; 1249 var run = function (reaction) { 1250 var handler = ok ? reaction.ok : reaction.fail; 1251 var resolve = reaction.resolve; 1252 var reject = reaction.reject; 1253 var domain = reaction.domain; 1254 var result, then, exited; 1255 try { 1256 if (handler) { 1257 if (!ok) { 1258 if (promise._h == 2) onHandleUnhandled(promise); 1259 promise._h = 1; 1260 } 1261 if (handler === true) result = value; 1262 else { 1263 if (domain) domain.enter(); 1264 result = handler(value); // may throw 1265 if (domain) { 1266 domain.exit(); 1267 exited = true; 1268 } 1269 } 1270 if (result === reaction.promise) { 1271 reject(TypeError('Promise-chain cycle')); 1272 } else if ((then = isThenable(result))) { 1273 then.call(result, resolve, reject); 1274 } else resolve(result); 1275 } else reject(value); 1276 } catch (e) { 1277 if (domain && !exited) domain.exit(); 1278 reject(e); 1279 } 1280 }; 1281 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach 1282 promise._c = []; 1283 promise._n = false; 1284 if (isReject && !promise._h) onUnhandled(promise); 1285 }); 1286 }; 1287 var onUnhandled = function (promise) { 1288 task.call(global, function () { 1289 var value = promise._v; 1290 var unhandled = isUnhandled(promise); 1291 var result, handler, console; 1292 if (unhandled) { 1293 result = perform(function () { 1294 if (isNode) { 1295 process.emit('unhandledRejection', value, promise); 1296 } else if ((handler = global.onunhandledrejection)) { 1297 handler({ promise: promise, reason: value }); 1298 } else if ((console = global.console) && console.error) { 1299 console.error('Unhandled promise rejection', value); 1300 } 1301 }); 1302 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should 1303 promise._h = isNode || isUnhandled(promise) ? 2 : 1; 1304 } 1305 promise._a = undefined; 1306 if (unhandled && result.e) throw result.v; 1307 }); 1308 }; 1309 var isUnhandled = function (promise) { 1310 return promise._h !== 1 && (promise._a || promise._c).length === 0; 1311 }; 1312 var onHandleUnhandled = function (promise) { 1313 task.call(global, function () { 1314 var handler; 1315 if (isNode) { 1316 process.emit('rejectionHandled', promise); 1317 } else if ((handler = global.onrejectionhandled)) { 1318 handler({ promise: promise, reason: promise._v }); 1319 } 1320 }); 1321 }; 1322 var $reject = function (value) { 1323 var promise = this; 1324 if (promise._d) return; 1325 promise._d = true; 1326 promise = promise._w || promise; // unwrap 1327 promise._v = value; 1328 promise._s = 2; 1329 if (!promise._a) promise._a = promise._c.slice(); 1330 notify(promise, true); 1331 }; 1332 var $resolve = function (value) { 1333 var promise = this; 1334 var then; 1335 if (promise._d) return; 1336 promise._d = true; 1337 promise = promise._w || promise; // unwrap 1338 try { 1339 if (promise === value) 1340 throw TypeError("Promise can't be resolved itself"); 1341 if ((then = isThenable(value))) { 1342 microtask(function () { 1343 var wrapper = { _w: promise, _d: false }; // wrap 1344 try { 1345 then.call( 1346 value, 1347 ctx($resolve, wrapper, 1), 1348 ctx($reject, wrapper, 1) 1349 ); 1350 } catch (e) { 1351 $reject.call(wrapper, e); 1352 } 1353 }); 1354 } else { 1355 promise._v = value; 1356 promise._s = 1; 1357 notify(promise, false); 1358 } 1359 } catch (e) { 1360 $reject.call({ _w: promise, _d: false }, e); // wrap 1361 } 1362 }; 1363 1364 // constructor polyfill 1365 if (!USE_NATIVE) { 1366 // 25.4.3.1 Promise(executor) 1367 $Promise = function Promise(executor) { 1368 anInstance(this, $Promise, PROMISE, '_h'); 1369 aFunction(executor); 1370 Internal.call(this); 1371 try { 1372 executor(ctx($resolve, this, 1), ctx($reject, this, 1)); 1373 } catch (err) { 1374 $reject.call(this, err); 1375 } 1376 }; 1377 // eslint-disable-next-line no-unused-vars 1378 Internal = function Promise(executor) { 1379 this._c = []; // <- awaiting reactions 1380 this._a = undefined; // <- checked in isUnhandled reactions 1381 this._s = 0; // <- state 1382 this._d = false; // <- done 1383 this._v = undefined; // <- value 1384 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled 1385 this._n = false; // <- notify 1386 }; 1387 Internal.prototype = __webpack_require__('5c95')( 1388 $Promise.prototype, 1389 { 1390 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) 1391 then: function then(onFulfilled, onRejected) { 1392 var reaction = newPromiseCapability( 1393 speciesConstructor(this, $Promise) 1394 ); 1395 reaction.ok = 1396 typeof onFulfilled == 'function' ? onFulfilled : true; 1397 reaction.fail = typeof onRejected == 'function' && onRejected; 1398 reaction.domain = isNode ? process.domain : undefined; 1399 this._c.push(reaction); 1400 if (this._a) this._a.push(reaction); 1401 if (this._s) notify(this, false); 1402 return reaction.promise; 1403 }, 1404 // 25.4.5.1 Promise.prototype.catch(onRejected) 1405 catch: function (onRejected) { 1406 return this.then(undefined, onRejected); 1407 }, 1408 } 1409 ); 1410 OwnPromiseCapability = function () { 1411 var promise = new Internal(); 1412 this.promise = promise; 1413 this.resolve = ctx($resolve, promise, 1); 1414 this.reject = ctx($reject, promise, 1); 1415 }; 1416 newPromiseCapabilityModule.f = newPromiseCapability = function (C) { 1417 return C === $Promise || C === Wrapper 1418 ? new OwnPromiseCapability(C) 1419 : newGenericPromiseCapability(C); 1420 }; 1421 } 1422 1423 $export($export.G + $export.W + $export.F * !USE_NATIVE, { 1424 Promise: $Promise, 1425 }); 1426 __webpack_require__('45f2')($Promise, PROMISE); 1427 __webpack_require__('4c95')(PROMISE); 1428 Wrapper = __webpack_require__('584a')[PROMISE]; 1429 1430 // statics 1431 $export($export.S + $export.F * !USE_NATIVE, PROMISE, { 1432 // 25.4.4.5 Promise.reject(r) 1433 reject: function reject(r) { 1434 var capability = newPromiseCapability(this); 1435 var $$reject = capability.reject; 1436 $$reject(r); 1437 return capability.promise; 1438 }, 1439 }); 1440 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { 1441 // 25.4.4.6 Promise.resolve(x) 1442 resolve: function resolve(x) { 1443 return promiseResolve( 1444 LIBRARY && this === Wrapper ? $Promise : this, 1445 x 1446 ); 1447 }, 1448 }); 1449 $export( 1450 $export.S + 1451 $export.F * 1452 !( 1453 USE_NATIVE && 1454 __webpack_require__('4ee1')(function (iter) { 1455 $Promise.all(iter)['catch'](empty); 1456 }) 1457 ), 1458 PROMISE, 1459 { 1460 // 25.4.4.1 Promise.all(iterable) 1461 all: function all(iterable) { 1462 var C = this; 1463 var capability = newPromiseCapability(C); 1464 var resolve = capability.resolve; 1465 var reject = capability.reject; 1466 var result = perform(function () { 1467 var values = []; 1468 var index = 0; 1469 var remaining = 1; 1470 forOf(iterable, false, function (promise) { 1471 var $index = index++; 1472 var alreadyCalled = false;
vendor: 11,089 bytes, lines 1473-1788
1473 values.push(undefined); 1474 remaining++; 1475 C.resolve(promise).then(function (value) { 1476 if (alreadyCalled) return; 1477 alreadyCalled = true; 1478 values[$index] = value; 1479 --remaining || resolve(values); 1480 }, reject); 1481 }); 1482 --remaining || resolve(values); 1483 }); 1484 if (result.e) reject(result.v); 1485 return capability.promise; 1486 }, 1487 // 25.4.4.4 Promise.race(iterable) 1488 race: function race(iterable) { 1489 var C = this; 1490 var capability = newPromiseCapability(C); 1491 var reject = capability.reject; 1492 var result = perform(function () { 1493 forOf(iterable, false, function (promise) { 1494 C.resolve(promise).then(capability.resolve, reject); 1495 }); 1496 }); 1497 if (result.e) reject(result.v); 1498 return capability.promise; 1499 }, 1500 } 1501 ); 1502 1503 /***/ 1504 }, 1505 1506 /***/ '252c': /***/ function ( 1507 module, 1508 __webpack_exports__, 1509 __webpack_require__ 1510 ) { 1511 'use strict'; 1512 /* WEBPACK VAR INJECTION */ (function (global) { 1513 /* unused harmony export install */ 1514 /* harmony export (binding) */ __webpack_require__.d( 1515 __webpack_exports__, 1516 'a', 1517 function () { 1518 return ResizeObserver; 1519 } 1520 ); 1521 function getInternetExplorerVersion() { 1522 var ua = window.navigator.userAgent; 1523 1524 var msie = ua.indexOf('MSIE '); 1525 if (msie > 0) { 1526 // IE 10 or older => return version number 1527 return parseInt( 1528 ua.substring(msie + 5, ua.indexOf('.', msie)), 1529 10 1530 ); 1531 } 1532 1533 var trident = ua.indexOf('Trident/'); 1534 if (trident > 0) { 1535 // IE 11 => return version number 1536 var rv = ua.indexOf('rv:'); 1537 return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); 1538 } 1539 1540 var edge = ua.indexOf('Edge/'); 1541 if (edge > 0) { 1542 // Edge (IE 12+) => return version number 1543 return parseInt( 1544 ua.substring(edge + 5, ua.indexOf('.', edge)), 1545 10 1546 ); 1547 } 1548 1549 // other browser 1550 return -1; 1551 } 1552 1553 var isIE = void 0; 1554 1555 function initCompat() { 1556 if (!initCompat.init) { 1557 initCompat.init = true; 1558 isIE = getInternetExplorerVersion() !== -1; 1559 } 1560 } 1561 1562 var ResizeObserver = { 1563 render: function render() { 1564 var _vm = this; 1565 var _h = _vm.$createElement; 1566 var _c = _vm._self._c || _h; 1567 return _c('div', { 1568 staticClass: 'resize-observer', 1569 attrs: { tabindex: '-1' }, 1570 }); 1571 }, 1572 staticRenderFns: [], 1573 _scopeId: 'data-v-b329ee4c', 1574 name: 'resize-observer', 1575 1576 methods: { 1577 compareAndNotify: function compareAndNotify() { 1578 if ( 1579 this._w !== this.$el.offsetWidth || 1580 this._h !== this.$el.offsetHeight 1581 ) { 1582 this._w = this.$el.offsetWidth; 1583 this._h = this.$el.offsetHeight; 1584 this.$emit('notify'); 1585 } 1586 }, 1587 addResizeHandlers: function addResizeHandlers() { 1588 this._resizeObject.contentDocument.defaultView.addEventListener( 1589 'resize', 1590 this.compareAndNotify 1591 ); 1592 this.compareAndNotify(); 1593 }, 1594 removeResizeHandlers: function removeResizeHandlers() { 1595 if (this._resizeObject && this._resizeObject.onload) { 1596 if (!isIE && this._resizeObject.contentDocument) { 1597 this._resizeObject.contentDocument.defaultView.removeEventListener( 1598 'resize', 1599 this.compareAndNotify 1600 ); 1601 } 1602 delete this._resizeObject.onload; 1603 } 1604 }, 1605 }, 1606 1607 mounted: function mounted() { 1608 var _this = this; 1609 1610 initCompat(); 1611 this.$nextTick(function () { 1612 _this._w = _this.$el.offsetWidth; 1613 _this._h = _this.$el.offsetHeight; 1614 }); 1615 var object = document.createElement('object'); 1616 this._resizeObject = object; 1617 object.setAttribute('aria-hidden', 'true'); 1618 object.setAttribute('tabindex', -1); 1619 object.onload = this.addResizeHandlers; 1620 object.type = 'text/html'; 1621 if (isIE) { 1622 this.$el.appendChild(object); 1623 } 1624 object.data = 'about:blank'; 1625 if (!isIE) { 1626 this.$el.appendChild(object); 1627 } 1628 }, 1629 beforeDestroy: function beforeDestroy() { 1630 this.removeResizeHandlers(); 1631 }, 1632 }; 1633 1634 // Install the components 1635 function install(Vue) { 1636 Vue.component('resize-observer', ResizeObserver); 1637 Vue.component('ResizeObserver', ResizeObserver); 1638 } 1639 1640 // Plugin 1641 var plugin = { 1642 // eslint-disable-next-line no-undef 1643 version: '0.4.5', 1644 install: install, 1645 }; 1646 1647 // Auto-install 1648 var GlobalVue = null; 1649 if (typeof window !== 'undefined') { 1650 GlobalVue = window.Vue; 1651 } else if (typeof global !== 'undefined') { 1652 GlobalVue = global.Vue; 1653 } 1654 if (GlobalVue) { 1655 GlobalVue.use(plugin); 1656 } 1657 1658 /* unused harmony default export */ var _unused_webpack_default_export = 1659 plugin; 1660 1661 /* WEBPACK VAR INJECTION */ 1662 }).call(this, __webpack_require__('c8ba')); 1663 1664 /***/ 1665 }, 1666 1667 /***/ '25eb': /***/ function (module, exports) { 1668 // 7.2.1 RequireObjectCoercible(argument) 1669 module.exports = function (it) { 1670 if (it == undefined) throw TypeError("Can't call method on " + it); 1671 return it; 1672 }; 1673 1674 /***/ 1675 }, 1676 1677 /***/ 2621: /***/ function (module, exports) { 1678 exports.f = Object.getOwnPropertySymbols; 1679 1680 /***/ 1681 }, 1682 1683 /***/ '292a': /***/ function (module, exports, __webpack_require__) { 1684 'use strict'; 1685 1686 Object.defineProperty(exports, '__esModule', { value: true }); 1687 exports.default = (color, percent) => { 1688 if (color.length < 7) 1689 throw new Error( 1690 `[shade-color] color must be formatted "#FFFFFF" not like this "#FFF" - (${color})` 1691 ); 1692 if (!color.includes('#')) 1693 throw new Error( 1694 `[shade-color] color must be an HEX - ex: "#FFFFFF" - (${color})` 1695 ); 1696 let R = parseInt(color.substring(1, 3), 16); 1697 let G = parseInt(color.substring(3, 5), 16); 1698 let B = parseInt(color.substring(5, 7), 16); 1699 R = parseInt(String((R * (100 + percent)) / 100)); 1700 G = parseInt(String((G * (100 + percent)) / 100)); 1701 B = parseInt(String((B * (100 + percent)) / 100)); 1702 R = R < 255 ? R : 255; 1703 G = G < 255 ? G : 255; 1704 B = B < 255 ? B : 255; 1705 const RR = 1706 R.toString(16).length === 1 1707 ? '0' + R.toString(16) 1708 : R.toString(16); 1709 const GG = 1710 G.toString(16).length === 1 1711 ? '0' + G.toString(16) 1712 : G.toString(16); 1713 const BB = 1714 B.toString(16).length === 1 1715 ? '0' + B.toString(16) 1716 : B.toString(16); 1717 return '#' + RR + GG + BB; 1718 }; 1719 //# sourceMappingURL=index.js.map 1720 1721 /***/ 1722 }, 1723 1724 /***/ '294c': /***/ function (module, exports) { 1725 module.exports = function (exec) { 1726 try { 1727 return !!exec(); 1728 } catch (e) { 1729 return true; 1730 } 1731 }; 1732 1733 /***/ 1734 }, 1735 1736 /***/ '2aba': /***/ function (module, exports, __webpack_require__) { 1737 var global = __webpack_require__('7726'); 1738 var hide = __webpack_require__('32e9'); 1739 var has = __webpack_require__('69a8'); 1740 var SRC = __webpack_require__('ca5a')('src'); 1741 var $toString = __webpack_require__('fa5b'); 1742 var TO_STRING = 'toString'; 1743 var TPL = ('' + $toString).split(TO_STRING); 1744 1745 __webpack_require__('8378').inspectSource = function (it) { 1746 return $toString.call(it); 1747 }; 1748 1749 (module.exports = function (O, key, val, safe) { 1750 var isFunction = typeof val == 'function'; 1751 if (isFunction) has(val, 'name') || hide(val, 'name', key); 1752 if (O[key] === val) return; 1753 if (isFunction) 1754 has(val, SRC) || 1755 hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 1756 if (O === global) { 1757 O[key] = val; 1758 } else if (!safe) { 1759 delete O[key]; 1760 hide(O, key, val); 1761 } else if (O[key]) { 1762 O[key] = val; 1763 } else { 1764 hide(O, key, val); 1765 } 1766 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 1767 })(Function.prototype, TO_STRING, function toString() { 1768 return ( 1769 (typeof this == 'function' && this[SRC]) || $toString.call(this) 1770 ); 1771 }); 1772 1773 /***/ 1774 }, 1775 1776 /***/ '2aeb': /***/ function (module, exports, __webpack_require__) { 1777 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1778 var anObject = __webpack_require__('cb7c'); 1779 var dPs = __webpack_require__('1495'); 1780 var enumBugKeys = __webpack_require__('e11e'); 1781 var IE_PROTO = __webpack_require__('613b')('IE_PROTO'); 1782 var Empty = function () { 1783 /* empty */ 1784 }; 1785 var PROTOTYPE = 'prototype'; 1786 1787 // Create object with fake `null` prototype: use iframe Object with cleared prototype 1788 var createDict = function () {
vendor: 12,658 bytes, lines 1789-2156
1789 // Thrash, waste and sodomy: IE GC bug 1790 var iframe = __webpack_require__('230e')('iframe'); 1791 var i = enumBugKeys.length; 1792 var lt = '<'; 1793 var gt = '>'; 1794 var iframeDocument; 1795 iframe.style.display = 'none'; 1796 __webpack_require__('fab2').appendChild(iframe); 1797 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1798 // createDict = iframe.contentWindow.Object; 1799 // html.removeChild(iframe); 1800 iframeDocument = iframe.contentWindow.document; 1801 iframeDocument.open(); 1802 iframeDocument.write( 1803 lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt 1804 ); 1805 iframeDocument.close(); 1806 createDict = iframeDocument.F; 1807 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1808 return createDict(); 1809 }; 1810 1811 module.exports = 1812 Object.create || 1813 function create(O, Properties) { 1814 var result; 1815 if (O !== null) { 1816 Empty[PROTOTYPE] = anObject(O); 1817 result = new Empty(); 1818 Empty[PROTOTYPE] = null; 1819 // add "__proto__" for Object.getPrototypeOf polyfill 1820 result[IE_PROTO] = O; 1821 } else result = createDict(); 1822 return Properties === undefined 1823 ? result 1824 : dPs(result, Properties); 1825 }; 1826 1827 /***/ 1828 }, 1829 1830 /***/ '2b4c': /***/ function (module, exports, __webpack_require__) { 1831 var store = __webpack_require__('5537')('wks'); 1832 var uid = __webpack_require__('ca5a'); 1833 var Symbol = __webpack_require__('7726').Symbol; 1834 var USE_SYMBOL = typeof Symbol == 'function'; 1835 1836 var $exports = (module.exports = function (name) { 1837 return ( 1838 store[name] || 1839 (store[name] = 1840 (USE_SYMBOL && Symbol[name]) || 1841 (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) 1842 ); 1843 }); 1844 1845 $exports.store = store; 1846 1847 /***/ 1848 }, 1849 1850 /***/ '2d00': /***/ function (module, exports) { 1851 module.exports = false; 1852 1853 /***/ 1854 }, 1855 1856 /***/ '2d95': /***/ function (module, exports) { 1857 var toString = {}.toString; 1858 1859 module.exports = function (it) { 1860 return toString.call(it).slice(8, -1); 1861 }; 1862 1863 /***/ 1864 }, 1865 1866 /***/ '2fdb': /***/ function (module, exports, __webpack_require__) { 1867 'use strict'; 1868 // 21.1.3.7 String.prototype.includes(searchString, position = 0) 1869 1870 var $export = __webpack_require__('5ca1'); 1871 var context = __webpack_require__('d2c8'); 1872 var INCLUDES = 'includes'; 1873 1874 $export( 1875 $export.P + $export.F * __webpack_require__('5147')(INCLUDES), 1876 'String', 1877 { 1878 includes: function includes(searchString /* , position = 0 */) { 1879 return !!~context(this, searchString, INCLUDES).indexOf( 1880 searchString, 1881 arguments.length > 1 ? arguments[1] : undefined 1882 ); 1883 }, 1884 } 1885 ); 1886 1887 /***/ 1888 }, 1889 1890 /***/ 3024: /***/ function (module, exports) { 1891 // fast apply, http://jsperf.lnkit.com/fast-apply/5 1892 module.exports = function (fn, args, that) { 1893 var un = that === undefined; 1894 switch (args.length) { 1895 case 0: 1896 return un ? fn() : fn.call(that); 1897 case 1: 1898 return un ? fn(args[0]) : fn.call(that, args[0]); 1899 case 2: 1900 return un 1901 ? fn(args[0], args[1]) 1902 : fn.call(that, args[0], args[1]); 1903 case 3: 1904 return un 1905 ? fn(args[0], args[1], args[2]) 1906 : fn.call(that, args[0], args[1], args[2]); 1907 case 4: 1908 return un 1909 ? fn(args[0], args[1], args[2], args[3]) 1910 : fn.call(that, args[0], args[1], args[2], args[3]); 1911 } 1912 return fn.apply(that, args); 1913 }; 1914 1915 /***/ 1916 }, 1917 1918 /***/ '30f1': /***/ function (module, exports, __webpack_require__) { 1919 'use strict'; 1920 1921 var LIBRARY = __webpack_require__('b8e3'); 1922 var $export = __webpack_require__('63b6'); 1923 var redefine = __webpack_require__('9138'); 1924 var hide = __webpack_require__('35e8'); 1925 var Iterators = __webpack_require__('481b'); 1926 var $iterCreate = __webpack_require__('8f60'); 1927 var setToStringTag = __webpack_require__('45f2'); 1928 var getPrototypeOf = __webpack_require__('53e2'); 1929 var ITERATOR = __webpack_require__('5168')('iterator'); 1930 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 1931 var FF_ITERATOR = '@@iterator'; 1932 var KEYS = 'keys'; 1933 var VALUES = 'values'; 1934 1935 var returnThis = function () { 1936 return this; 1937 }; 1938 1939 module.exports = function ( 1940 Base, 1941 NAME, 1942 Constructor, 1943 next, 1944 DEFAULT, 1945 IS_SET, 1946 FORCED 1947 ) { 1948 $iterCreate(Constructor, NAME, next); 1949 var getMethod = function (kind) { 1950 if (!BUGGY && kind in proto) return proto[kind]; 1951 switch (kind) { 1952 case KEYS: 1953 return function keys() { 1954 return new Constructor(this, kind); 1955 }; 1956 case VALUES: 1957 return function values() { 1958 return new Constructor(this, kind); 1959 }; 1960 } 1961 return function entries() { 1962 return new Constructor(this, kind); 1963 }; 1964 }; 1965 var TAG = NAME + ' Iterator'; 1966 var DEF_VALUES = DEFAULT == VALUES; 1967 var VALUES_BUG = false; 1968 var proto = Base.prototype; 1969 var $native = 1970 proto[ITERATOR] || 1971 proto[FF_ITERATOR] || 1972 (DEFAULT && proto[DEFAULT]); 1973 var $default = $native || getMethod(DEFAULT); 1974 var $entries = DEFAULT 1975 ? !DEF_VALUES 1976 ? $default 1977 : getMethod('entries') 1978 : undefined; 1979 var $anyNative = 1980 NAME == 'Array' ? proto.entries || $native : $native; 1981 var methods, key, IteratorPrototype; 1982 // Fix native 1983 if ($anyNative) { 1984 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 1985 if ( 1986 IteratorPrototype !== Object.prototype && 1987 IteratorPrototype.next 1988 ) { 1989 // Set @@toStringTag to native iterators 1990 setToStringTag(IteratorPrototype, TAG, true); 1991 // fix for some old engines 1992 if ( 1993 !LIBRARY && 1994 typeof IteratorPrototype[ITERATOR] != 'function' 1995 ) 1996 hide(IteratorPrototype, ITERATOR, returnThis); 1997 } 1998 } 1999 // fix Array#{values, @@iterator}.name in V8 / FF 2000 if (DEF_VALUES && $native && $native.name !== VALUES) { 2001 VALUES_BUG = true; 2002 $default = function values() { 2003 return $native.call(this); 2004 }; 2005 } 2006 // Define iterator 2007 if ( 2008 (!LIBRARY || FORCED) && 2009 (BUGGY || VALUES_BUG || !proto[ITERATOR]) 2010 ) { 2011 hide(proto, ITERATOR, $default); 2012 } 2013 // Plug for library 2014 Iterators[NAME] = $default; 2015 Iterators[TAG] = returnThis; 2016 if (DEFAULT) { 2017 methods = { 2018 values: DEF_VALUES ? $default : getMethod(VALUES), 2019 keys: IS_SET ? $default : getMethod(KEYS), 2020 entries: $entries, 2021 }; 2022 if (FORCED) 2023 for (key in methods) { 2024 if (!(key in proto)) redefine(proto, key, methods[key]); 2025 } 2026 else 2027 $export( 2028 $export.P + $export.F * (BUGGY || VALUES_BUG), 2029 NAME, 2030 methods 2031 ); 2032 } 2033 return methods; 2034 }; 2035 2036 /***/ 2037 }, 2038 2039 /***/ '32e9': /***/ function (module, exports, __webpack_require__) { 2040 var dP = __webpack_require__('86cc'); 2041 var createDesc = __webpack_require__('4630'); 2042 module.exports = __webpack_require__('9e1e') 2043 ? function (object, key, value) { 2044 return dP.f(object, key, createDesc(1, value)); 2045 } 2046 : function (object, key, value) { 2047 object[key] = value; 2048 return object; 2049 }; 2050 2051 /***/ 2052 }, 2053 2054 /***/ '32fc': /***/ function (module, exports, __webpack_require__) { 2055 var document = __webpack_require__('e53d').document; 2056 module.exports = document && document.documentElement; 2057 2058 /***/ 2059 }, 2060 2061 /***/ '335c': /***/ function (module, exports, __webpack_require__) { 2062 // fallback for non-array-like ES3 and non-enumerable old V8 strings 2063 var cof = __webpack_require__('6b4c'); 2064 // eslint-disable-next-line no-prototype-builtins 2065 module.exports = Object('z').propertyIsEnumerable(0) 2066 ? Object 2067 : function (it) { 2068 return cof(it) == 'String' ? it.split('') : Object(it); 2069 }; 2070 2071 /***/ 2072 }, 2073 2074 /***/ '355d': /***/ function (module, exports) { 2075 exports.f = {}.propertyIsEnumerable; 2076 2077 /***/ 2078 }, 2079 2080 /***/ '35e8': /***/ function (module, exports, __webpack_require__) { 2081 var dP = __webpack_require__('d9f6'); 2082 var createDesc = __webpack_require__('aebd'); 2083 module.exports = __webpack_require__('8e60') 2084 ? function (object, key, value) { 2085 return dP.f(object, key, createDesc(1, value)); 2086 } 2087 : function (object, key, value) { 2088 object[key] = value; 2089 return object; 2090 }; 2091 2092 /***/ 2093 }, 2094 2095 /***/ '36c3': /***/ function (module, exports, __webpack_require__) { 2096 // to indexed object, toObject with fallback for non-array-like ES3 strings 2097 var IObject = __webpack_require__('335c'); 2098 var defined = __webpack_require__('25eb'); 2099 module.exports = function (it) { 2100 return IObject(defined(it)); 2101 }; 2102 2103 /***/ 2104 }, 2105 2106 /***/ 3702: /***/ function (module, exports, __webpack_require__) { 2107 // check on default Array iterator 2108 var Iterators = __webpack_require__('481b'); 2109 var ITERATOR = __webpack_require__('5168')('iterator'); 2110 var ArrayProto = Array.prototype; 2111 2112 module.exports = function (it) { 2113 return ( 2114 it !== undefined && 2115 (Iterators.Array === it || ArrayProto[ITERATOR] === it) 2116 ); 2117 }; 2118 2119 /***/ 2120 }, 2121 2122 /***/ 3846: /***/ function (module, exports, __webpack_require__) { 2123 // 21.2.5.3 get RegExp.prototype.flags() 2124 if (__webpack_require__('9e1e') && /./g.flags != 'g') 2125 __webpack_require__('86cc').f(RegExp.prototype, 'flags', { 2126 configurable: true, 2127 get: __webpack_require__('0bfb'), 2128 }); 2129 2130 /***/ 2131 }, 2132 2133 /***/ '38fd': /***/ function (module, exports, __webpack_require__) { 2134 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 2135 var has = __webpack_require__('69a8'); 2136 var toObject = __webpack_require__('4bf8'); 2137 var IE_PROTO = __webpack_require__('613b')('IE_PROTO'); 2138 var ObjectProto = Object.prototype; 2139 2140 module.exports = 2141 Object.getPrototypeOf || 2142 function (O) { 2143 O = toObject(O); 2144 if (has(O, IE_PROTO)) return O[IE_PROTO]; 2145 if ( 2146 typeof O.constructor == 'function' && 2147 O instanceof O.constructor 2148 ) { 2149 return O.constructor.prototype; 2150 } 2151 return O instanceof Object ? ObjectProto : null; 2152 }; 2153 2154 /***/ 2155 }, 2156
vendor: 8,109 bytes, lines 2157-2388
2157 /***/ '3a38': /***/ function (module, exports) { 2158 // 7.1.4 ToInteger 2159 var ceil = Math.ceil; 2160 var floor = Math.floor; 2161 module.exports = function (it) { 2162 return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 2163 }; 2164 2165 /***/ 2166 }, 2167 2168 /***/ '3c11': /***/ function (module, exports, __webpack_require__) { 2169 'use strict'; 2170 // https://github.com/tc39/proposal-promise-finally 2171 2172 var $export = __webpack_require__('63b6'); 2173 var core = __webpack_require__('584a'); 2174 var global = __webpack_require__('e53d'); 2175 var speciesConstructor = __webpack_require__('f201'); 2176 var promiseResolve = __webpack_require__('cd78'); 2177 2178 $export($export.P + $export.R, 'Promise', { 2179 finally: function (onFinally) { 2180 var C = speciesConstructor(this, core.Promise || global.Promise); 2181 var isFunction = typeof onFinally == 'function'; 2182 return this.then( 2183 isFunction 2184 ? function (x) { 2185 return promiseResolve(C, onFinally()).then(function () { 2186 return x; 2187 }); 2188 } 2189 : onFinally, 2190 isFunction 2191 ? function (e) { 2192 return promiseResolve(C, onFinally()).then(function () { 2193 throw e; 2194 }); 2195 } 2196 : onFinally 2197 ); 2198 }, 2199 }); 2200 2201 /***/ 2202 }, 2203 2204 /***/ '40c3': /***/ function (module, exports, __webpack_require__) { 2205 // getting tag from 19.1.3.6 Object.prototype.toString() 2206 var cof = __webpack_require__('6b4c'); 2207 var TAG = __webpack_require__('5168')('toStringTag'); 2208 // ES3 wrong here 2209 var ARG = 2210 cof( 2211 (function () { 2212 return arguments; 2213 })() 2214 ) == 'Arguments'; 2215 2216 // fallback for IE11 Script Access Denied error 2217 var tryGet = function (it, key) { 2218 try { 2219 return it[key]; 2220 } catch (e) { 2221 /* empty */ 2222 } 2223 }; 2224 2225 module.exports = function (it) { 2226 var O, T, B; 2227 return it === undefined 2228 ? 'Undefined' 2229 : it === null 2230 ? 'Null' 2231 : // @@toStringTag case 2232 typeof (T = tryGet((O = Object(it)), TAG)) == 'string' 2233 ? T 2234 : // builtinTag case 2235 ARG 2236 ? cof(O) 2237 : // ES3 arguments fallback 2238 (B = cof(O)) == 'Object' && typeof O.callee == 'function' 2239 ? 'Arguments' 2240 : B; 2241 }; 2242 2243 /***/ 2244 }, 2245 2246 /***/ 4178: /***/ function (module, exports, __webpack_require__) { 2247 var ctx = __webpack_require__('d864'); 2248 var invoke = __webpack_require__('3024'); 2249 var html = __webpack_require__('32fc'); 2250 var cel = __webpack_require__('1ec9'); 2251 var global = __webpack_require__('e53d'); 2252 var process = global.process; 2253 var setTask = global.setImmediate; 2254 var clearTask = global.clearImmediate; 2255 var MessageChannel = global.MessageChannel; 2256 var Dispatch = global.Dispatch; 2257 var counter = 0; 2258 var queue = {}; 2259 var ONREADYSTATECHANGE = 'onreadystatechange'; 2260 var defer, channel, port; 2261 var run = function () { 2262 var id = +this; 2263 // eslint-disable-next-line no-prototype-builtins 2264 if (queue.hasOwnProperty(id)) { 2265 var fn = queue[id]; 2266 delete queue[id]; 2267 fn(); 2268 } 2269 }; 2270 var listener = function (event) { 2271 run.call(event.data); 2272 }; 2273 // Node.js 0.9+ & IE10+ has setImmediate, otherwise: 2274 if (!setTask || !clearTask) { 2275 setTask = function setImmediate(fn) { 2276 var args = []; 2277 var i = 1; 2278 while (arguments.length > i) args.push(arguments[i++]); 2279 queue[++counter] = function () { 2280 // eslint-disable-next-line no-new-func 2281 invoke(typeof fn == 'function' ? fn : Function(fn), args); 2282 }; 2283 defer(counter); 2284 return counter; 2285 }; 2286 clearTask = function clearImmediate(id) { 2287 delete queue[id]; 2288 }; 2289 // Node.js 0.8- 2290 if (__webpack_require__('6b4c')(process) == 'process') { 2291 defer = function (id) { 2292 process.nextTick(ctx(run, id, 1)); 2293 }; 2294 // Sphere (JS game engine) Dispatch API 2295 } else if (Dispatch && Dispatch.now) { 2296 defer = function (id) { 2297 Dispatch.now(ctx(run, id, 1)); 2298 }; 2299 // Browsers with MessageChannel, includes WebWorkers 2300 } else if (MessageChannel) { 2301 channel = new MessageChannel(); 2302 port = channel.port2; 2303 channel.port1.onmessage = listener; 2304 defer = ctx(port.postMessage, port, 1); 2305 // Browsers with postMessage, skip WebWorkers 2306 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' 2307 } else if ( 2308 global.addEventListener && 2309 typeof postMessage == 'function' && 2310 !global.importScripts 2311 ) { 2312 defer = function (id) { 2313 global.postMessage(id + '', '*'); 2314 }; 2315 global.addEventListener('message', listener, false); 2316 // IE8- 2317 } else if (ONREADYSTATECHANGE in cel('script')) { 2318 defer = function (id) { 2319 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = 2320 function () { 2321 html.removeChild(this); 2322 run.call(id); 2323 }; 2324 }; 2325 // Rest old browsers 2326 } else { 2327 defer = function (id) { 2328 setTimeout(ctx(run, id, 1), 0); 2329 }; 2330 } 2331 } 2332 module.exports = { 2333 set: setTask, 2334 clear: clearTask, 2335 }; 2336 2337 /***/ 2338 }, 2339 2340 /***/ '41a0': /***/ function (module, exports, __webpack_require__) { 2341 'use strict'; 2342 2343 var create = __webpack_require__('2aeb'); 2344 var descriptor = __webpack_require__('4630'); 2345 var setToStringTag = __webpack_require__('7f20'); 2346 var IteratorPrototype = {}; 2347 2348 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 2349 __webpack_require__('32e9')( 2350 IteratorPrototype, 2351 __webpack_require__('2b4c')('iterator'), 2352 function () { 2353 return this; 2354 } 2355 ); 2356 2357 module.exports = function (Constructor, NAME, next) { 2358 Constructor.prototype = create(IteratorPrototype, { 2359 next: descriptor(1, next), 2360 }); 2361 setToStringTag(Constructor, NAME + ' Iterator'); 2362 }; 2363 2364 /***/ 2365 }, 2366 2367 /***/ '43fc': /***/ function (module, exports, __webpack_require__) { 2368 'use strict'; 2369 2370 // https://github.com/tc39/proposal-promise-try 2371 var $export = __webpack_require__('63b6'); 2372 var newPromiseCapability = __webpack_require__('656e'); 2373 var perform = __webpack_require__('4439'); 2374 2375 $export($export.S, 'Promise', { 2376 try: function (callbackfn) { 2377 var promiseCapability = newPromiseCapability.f(this); 2378 var result = perform(callbackfn); 2379 (result.e ? promiseCapability.reject : promiseCapability.resolve)( 2380 result.v 2381 ); 2382 return promiseCapability.promise; 2383 }, 2384 }); 2385 2386 /***/ 2387 }, 2388
2389 /***/ 4439: /***/ function (module, exports) { 2390 module.exports = function (exec) { 2391 try { 2392 return { e: false, v: exec() }; 2393 } catch (e) { 2394 return { e: true, v: e }; 2395 } 2396 }; 2397 2398 /***/ 2399 }, 2400 2401 /***/ '454f': /***/ function (module, exports, __webpack_require__) { 2402 __webpack_require__('46a7'); 2403 var $Object = __webpack_require__('584a').Object; 2404 module.exports = function defineProperty(it, key, desc) { 2405 return $Object.defineProperty(it, key, desc); 2406 }; 2407 2408 /***/ 2409 }, 2410 2411 /***/ '456d': /***/ function (module, exports, __webpack_require__) { 2412 // 19.1.2.14 Object.keys(O) 2413 var toObject = __webpack_require__('4bf8'); 2414 var $keys = __webpack_require__('0d58'); 2415 2416 __webpack_require__('5eda')('keys', function () { 2417 return function keys(it) { 2418 return $keys(toObject(it)); 2419 }; 2420 }); 2421 2422 /***/ 2423 }, 2424 2425 /***/ 4588: /***/ function (module, exports) { 2426 // 7.1.4 ToInteger 2427 var ceil = Math.ceil; 2428 var floor = Math.floor; 2429 module.exports = function (it) { 2430 return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 2431 }; 2432 2433 /***/ 2434 }, 2435 2436 /***/ '45d0': /***/ function (module, exports, __webpack_require__) { 2437 'use strict'; 2438 2439 var __importDefault = 2440 (this && this.__importDefault) || 2441 function (mod) { 2442 return mod && mod.__esModule ? mod : { default: mod }; 2443 }; 2444 Object.defineProperty(exports, '__esModule', { value: true }); 2445 const _constantes_1 = __importDefault(__webpack_require__('0750')); 2446 exports.default = (color) => { 2447 if (!color) throw new Error('is-color-name: No color provided'); 2448 const colorsList = Object.keys(_constantes_1.default); 2449 return colorsList.includes(color); 2450 }; 2451 //# sourceMappingURL=index.js.map 2452 2453 /***/ 2454 }, 2455 2456 /***/ '45f2': /***/ function (module, exports, __webpack_require__) { 2457 var def = __webpack_require__('d9f6').f; 2458 var has = __webpack_require__('07e3'); 2459 var TAG = __webpack_require__('5168')('toStringTag'); 2460 2461 module.exports = function (it, tag, stat) { 2462 if (it && !has((it = stat ? it : it.prototype), TAG)) 2463 def(it, TAG, { configurable: true, value: tag }); 2464 }; 2465 2466 /***/ 2467 }, 2468 2469 /***/ 4630: /***/ function (module, exports) { 2470 module.exports = function (bitmap, value) { 2471 return { 2472 enumerable: !(bitmap & 1), 2473 configurable: !(bitmap & 2), 2474 writable: !(bitmap & 4), 2475 value: value, 2476 }; 2477 }; 2478 2479 /***/ 2480 }, 2481 2482 /***/ '46a7': /***/ function (module, exports, __webpack_require__) { 2483 var $export = __webpack_require__('63b6'); 2484 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 2485 $export( 2486 $export.S + $export.F * !__webpack_require__('8e60'), 2487 'Object', 2488 { defineProperty: __webpack_require__('d9f6').f } 2489 ); 2490 2491 /***/ 2492 }, 2493 2494 /***/ '47ee': /***/ function (module, exports, __webpack_require__) { 2495 // all enumerable object keys, includes symbols 2496 var getKeys = __webpack_require__('c3a1'); 2497 var gOPS = __webpack_require__('9aa9'); 2498 var pIE = __webpack_require__('355d'); 2499 module.exports = function (it) { 2500 var result = getKeys(it); 2501 var getSymbols = gOPS.f; 2502 if (getSymbols) { 2503 var symbols = getSymbols(it); 2504 var isEnum = pIE.f; 2505 var i = 0; 2506 var key; 2507 while (symbols.length > i) 2508 if (isEnum.call(it, (key = symbols[i++]))) result.push(key); 2509 } 2510 return result; 2511 }; 2512 2513 /***/ 2514 }, 2515
vendor: 7,751 bytes, lines 2516-2753
2516 /***/ '481b': /***/ function (module, exports) { 2517 module.exports = {}; 2518 2519 /***/ 2520 }, 2521 2522 /***/ '4bf8': /***/ function (module, exports, __webpack_require__) { 2523 // 7.1.13 ToObject(argument) 2524 var defined = __webpack_require__('be13'); 2525 module.exports = function (it) { 2526 return Object(defined(it)); 2527 }; 2528 2529 /***/ 2530 }, 2531 2532 /***/ '4c95': /***/ function (module, exports, __webpack_require__) { 2533 'use strict'; 2534 2535 var global = __webpack_require__('e53d'); 2536 var core = __webpack_require__('584a'); 2537 var dP = __webpack_require__('d9f6'); 2538 var DESCRIPTORS = __webpack_require__('8e60'); 2539 var SPECIES = __webpack_require__('5168')('species'); 2540 2541 module.exports = function (KEY) { 2542 var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; 2543 if (DESCRIPTORS && C && !C[SPECIES]) 2544 dP.f(C, SPECIES, { 2545 configurable: true, 2546 get: function () { 2547 return this; 2548 }, 2549 }); 2550 }; 2551 2552 /***/ 2553 }, 2554 2555 /***/ '4ee1': /***/ function (module, exports, __webpack_require__) { 2556 var ITERATOR = __webpack_require__('5168')('iterator'); 2557 var SAFE_CLOSING = false; 2558 2559 try { 2560 var riter = [7][ITERATOR](); 2561 riter['return'] = function () { 2562 SAFE_CLOSING = true; 2563 }; 2564 // eslint-disable-next-line no-throw-literal 2565 Array.from(riter, function () { 2566 throw 2; 2567 }); 2568 } catch (e) { 2569 /* empty */ 2570 } 2571 2572 module.exports = function (exec, skipClosing) { 2573 if (!skipClosing && !SAFE_CLOSING) return false; 2574 var safe = false; 2575 try { 2576 var arr = [7]; 2577 var iter = arr[ITERATOR](); 2578 iter.next = function () { 2579 return { done: (safe = true) }; 2580 }; 2581 arr[ITERATOR] = function () { 2582 return iter; 2583 }; 2584 exec(arr); 2585 } catch (e) { 2586 /* empty */ 2587 } 2588 return safe; 2589 }; 2590 2591 /***/ 2592 }, 2593 2594 /***/ '50ed': /***/ function (module, exports) { 2595 module.exports = function (done, value) { 2596 return { value: value, done: !!done }; 2597 }; 2598 2599 /***/ 2600 }, 2601 2602 /***/ 5147: /***/ function (module, exports, __webpack_require__) { 2603 var MATCH = __webpack_require__('2b4c')('match'); 2604 module.exports = function (KEY) { 2605 var re = /./; 2606 try { 2607 '/./'[KEY](re); 2608 } catch (e) { 2609 try { 2610 re[MATCH] = false; 2611 return !'/./'[KEY](re); 2612 } catch (f) { 2613 /* empty */ 2614 } 2615 } 2616 return true; 2617 }; 2618 2619 /***/ 2620 }, 2621 2622 /***/ 5168: /***/ function (module, exports, __webpack_require__) { 2623 var store = __webpack_require__('dbdb')('wks'); 2624 var uid = __webpack_require__('62a0'); 2625 var Symbol = __webpack_require__('e53d').Symbol; 2626 var USE_SYMBOL = typeof Symbol == 'function'; 2627 2628 var $exports = (module.exports = function (name) { 2629 return ( 2630 store[name] || 2631 (store[name] = 2632 (USE_SYMBOL && Symbol[name]) || 2633 (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) 2634 ); 2635 }); 2636 2637 $exports.store = store; 2638 2639 /***/ 2640 }, 2641 2642 /***/ '52a7': /***/ function (module, exports) { 2643 exports.f = {}.propertyIsEnumerable; 2644 2645 /***/ 2646 }, 2647 2648 /***/ '53e2': /***/ function (module, exports, __webpack_require__) { 2649 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 2650 var has = __webpack_require__('07e3'); 2651 var toObject = __webpack_require__('241e'); 2652 var IE_PROTO = __webpack_require__('5559')('IE_PROTO'); 2653 var ObjectProto = Object.prototype; 2654 2655 module.exports = 2656 Object.getPrototypeOf || 2657 function (O) { 2658 O = toObject(O); 2659 if (has(O, IE_PROTO)) return O[IE_PROTO]; 2660 if ( 2661 typeof O.constructor == 'function' && 2662 O instanceof O.constructor 2663 ) { 2664 return O.constructor.prototype; 2665 } 2666 return O instanceof Object ? ObjectProto : null; 2667 }; 2668 2669 /***/ 2670 }, 2671 2672 /***/ '549b': /***/ function (module, exports, __webpack_require__) { 2673 'use strict'; 2674 2675 var ctx = __webpack_require__('d864'); 2676 var $export = __webpack_require__('63b6'); 2677 var toObject = __webpack_require__('241e'); 2678 var call = __webpack_require__('b0dc'); 2679 var isArrayIter = __webpack_require__('3702'); 2680 var toLength = __webpack_require__('b447'); 2681 var createProperty = __webpack_require__('20fd'); 2682 var getIterFn = __webpack_require__('7cd6'); 2683 2684 $export( 2685 $export.S + 2686 $export.F * 2687 !__webpack_require__('4ee1')(function (iter) { 2688 Array.from(iter); 2689 }), 2690 'Array', 2691 { 2692 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) 2693 from: function from( 2694 arrayLike /* , mapfn = undefined, thisArg = undefined */ 2695 ) { 2696 var O = toObject(arrayLike); 2697 var C = typeof this == 'function' ? this : Array; 2698 var aLen = arguments.length; 2699 var mapfn = aLen > 1 ? arguments[1] : undefined; 2700 var mapping = mapfn !== undefined; 2701 var index = 0; 2702 var iterFn = getIterFn(O); 2703 var length, result, step, iterator; 2704 if (mapping) 2705 mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); 2706 // if object isn't iterable or it's array with default iterator - use simple case 2707 if ( 2708 iterFn != undefined && 2709 !(C == Array && isArrayIter(iterFn)) 2710 ) { 2711 for ( 2712 iterator = iterFn.call(O), result = new C(); 2713 !(step = iterator.next()).done; 2714 index++ 2715 ) { 2716 createProperty( 2717 result, 2718 index, 2719 mapping 2720 ? call(iterator, mapfn, [step.value, index], true) 2721 : step.value 2722 ); 2723 } 2724 } else { 2725 length = toLength(O.length); 2726 for (result = new C(length); length > index; index++) { 2727 createProperty( 2728 result, 2729 index, 2730 mapping ? mapfn(O[index], index) : O[index] 2731 ); 2732 } 2733 } 2734 result.length = index; 2735 return result; 2736 }, 2737 } 2738 ); 2739 2740 /***/ 2741 }, 2742 2743 /***/ '54a1': /***/ function (module, exports, __webpack_require__) { 2744 __webpack_require__('6c1c'); 2745 __webpack_require__('1654'); 2746 module.exports = __webpack_require__('95d5'); 2747 2748 /***/ 2749 }, 2750 2751 /***/ 5537: /***/ function (module, exports, __webpack_require__) { 2752 var core = __webpack_require__('8378'); 2753 var global = __webpack_require__('7726');
vendor: 7,929 bytes, lines 2754-2966
2754 var SHARED = '__core-js_shared__'; 2755 var store = global[SHARED] || (global[SHARED] = {}); 2756 2757 (module.exports = function (key, value) { 2758 return ( 2759 store[key] || (store[key] = value !== undefined ? value : {}) 2760 ); 2761 })('versions', []).push({ 2762 version: core.version, 2763 mode: __webpack_require__('2d00') ? 'pure' : 'global', 2764 copyright: '© 2019 Denis Pushkarev (zloirock.ru)', 2765 }); 2766 2767 /***/ 2768 }, 2769 2770 /***/ 5559: /***/ function (module, exports, __webpack_require__) { 2771 var shared = __webpack_require__('dbdb')('keys'); 2772 var uid = __webpack_require__('62a0'); 2773 module.exports = function (key) { 2774 return shared[key] || (shared[key] = uid(key)); 2775 }; 2776 2777 /***/ 2778 }, 2779 2780 /***/ '584a': /***/ function (module, exports) { 2781 var core = (module.exports = { version: '2.6.11' }); 2782 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 2783 2784 /***/ 2785 }, 2786 2787 /***/ '5b4e': /***/ function (module, exports, __webpack_require__) { 2788 // false -> Array#indexOf 2789 // true -> Array#includes 2790 var toIObject = __webpack_require__('36c3'); 2791 var toLength = __webpack_require__('b447'); 2792 var toAbsoluteIndex = __webpack_require__('0fc9'); 2793 module.exports = function (IS_INCLUDES) { 2794 return function ($this, el, fromIndex) { 2795 var O = toIObject($this); 2796 var length = toLength(O.length); 2797 var index = toAbsoluteIndex(fromIndex, length); 2798 var value; 2799 // Array#includes uses SameValueZero equality algorithm 2800 // eslint-disable-next-line no-self-compare 2801 if (IS_INCLUDES && el != el) 2802 while (length > index) { 2803 value = O[index++]; 2804 // eslint-disable-next-line no-self-compare 2805 if (value != value) return true; 2806 // Array#indexOf ignores holes, Array#includes - not 2807 } 2808 else 2809 for (; length > index; index++) 2810 if (IS_INCLUDES || index in O) { 2811 if (O[index] === el) return IS_INCLUDES || index || 0; 2812 } 2813 return !IS_INCLUDES && -1; 2814 }; 2815 }; 2816 2817 /***/ 2818 }, 2819 2820 /***/ '5c95': /***/ function (module, exports, __webpack_require__) { 2821 var hide = __webpack_require__('35e8'); 2822 module.exports = function (target, src, safe) { 2823 for (var key in src) { 2824 if (safe && target[key]) target[key] = src[key]; 2825 else hide(target, key, src[key]); 2826 } 2827 return target; 2828 }; 2829 2830 /***/ 2831 }, 2832 2833 /***/ '5ca1': /***/ function (module, exports, __webpack_require__) { 2834 var global = __webpack_require__('7726'); 2835 var core = __webpack_require__('8378'); 2836 var hide = __webpack_require__('32e9'); 2837 var redefine = __webpack_require__('2aba'); 2838 var ctx = __webpack_require__('9b43'); 2839 var PROTOTYPE = 'prototype'; 2840 2841 var $export = function (type, name, source) { 2842 var IS_FORCED = type & $export.F; 2843 var IS_GLOBAL = type & $export.G; 2844 var IS_STATIC = type & $export.S; 2845 var IS_PROTO = type & $export.P; 2846 var IS_BIND = type & $export.B; 2847 var target = IS_GLOBAL 2848 ? global 2849 : IS_STATIC 2850 ? global[name] || (global[name] = {}) 2851 : (global[name] || {})[PROTOTYPE]; 2852 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 2853 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 2854 var key, own, out, exp; 2855 if (IS_GLOBAL) source = name; 2856 for (key in source) { 2857 // contains in native 2858 own = !IS_FORCED && target && target[key] !== undefined; 2859 // export native or passed 2860 out = (own ? target : source)[key]; 2861 // bind timers to global for call from export context 2862 exp = 2863 IS_BIND && own 2864 ? ctx(out, global) 2865 : IS_PROTO && typeof out == 'function' 2866 ? ctx(Function.call, out) 2867 : out; 2868 // extend global 2869 if (target) redefine(target, key, out, type & $export.U); 2870 // export 2871 if (exports[key] != out) hide(exports, key, exp); 2872 if (IS_PROTO && expProto[key] != out) expProto[key] = out; 2873 } 2874 }; 2875 global.core = core; 2876 // type bitmap 2877 $export.F = 1; // forced 2878 $export.G = 2; // global 2879 $export.S = 4; // static 2880 $export.P = 8; // proto 2881 $export.B = 16; // bind 2882 $export.W = 32; // wrap 2883 $export.U = 64; // safe 2884 $export.R = 128; // real proto method for `library` 2885 module.exports = $export; 2886 2887 /***/ 2888 }, 2889 2890 /***/ '5dbc': /***/ function (module, exports, __webpack_require__) { 2891 var isObject = __webpack_require__('d3f4'); 2892 var setPrototypeOf = __webpack_require__('8b97').set; 2893 module.exports = function (that, target, C) { 2894 var S = target.constructor; 2895 var P; 2896 if ( 2897 S !== C && 2898 typeof S == 'function' && 2899 (P = S.prototype) !== C.prototype && 2900 isObject(P) && 2901 setPrototypeOf 2902 ) { 2903 setPrototypeOf(that, P); 2904 } 2905 return that; 2906 }; 2907 2908 /***/ 2909 }, 2910 2911 /***/ '5eda': /***/ function (module, exports, __webpack_require__) { 2912 // most Object methods by ES6 should accept primitives 2913 var $export = __webpack_require__('5ca1'); 2914 var core = __webpack_require__('8378'); 2915 var fails = __webpack_require__('79e5'); 2916 module.exports = function (KEY, exec) { 2917 var fn = (core.Object || {})[KEY] || Object[KEY]; 2918 var exp = {}; 2919 exp[KEY] = exec(fn); 2920 $export( 2921 $export.S + 2922 $export.F * 2923 fails(function () { 2924 fn(1); 2925 }), 2926 'Object', 2927 exp 2928 ); 2929 }; 2930 2931 /***/ 2932 }, 2933 2934 /***/ 6038: /***/ function (module, exports, __webpack_require__) { 2935 'use strict'; 2936 2937 var __importDefault = 2938 (this && this.__importDefault) || 2939 function (mod) { 2940 return mod && mod.__esModule ? mod : { default: mod }; 2941 }; 2942 Object.defineProperty(exports, '__esModule', { value: true }); 2943 exports.hexToRgba = 2944 exports.colorNameToHex = 2945 exports.isColorName = 2946 exports.shadeColor = 2947 void 0; 2948 const shade_color_1 = __importDefault(__webpack_require__('292a')); 2949 exports.shadeColor = shade_color_1.default; 2950 const is_color_name_1 = __importDefault(__webpack_require__('45d0')); 2951 exports.isColorName = is_color_name_1.default; 2952 const hex_to_rgba_1 = __importDefault(__webpack_require__('1c15')); 2953 exports.hexToRgba = hex_to_rgba_1.default; 2954 const color_name_to_hex_1 = __importDefault( 2955 __webpack_require__('c3b0') 2956 ); 2957 exports.colorNameToHex = color_name_to_hex_1.default; 2958 //# sourceMappingURL=app.js.map 2959 2960 /***/ 2961 }, 2962 2963 /***/ '613b': /***/ function (module, exports, __webpack_require__) { 2964 var shared = __webpack_require__('5537')('keys'); 2965 var uid = __webpack_require__('ca5a'); 2966 module.exports = function (key) {
vendor: 4,365 bytes, lines 2967-3074
2967 return shared[key] || (shared[key] = uid(key)); 2968 }; 2969 2970 /***/ 2971 }, 2972 2973 /***/ '626a': /***/ function (module, exports, __webpack_require__) { 2974 // fallback for non-array-like ES3 and non-enumerable old V8 strings 2975 var cof = __webpack_require__('2d95'); 2976 // eslint-disable-next-line no-prototype-builtins 2977 module.exports = Object('z').propertyIsEnumerable(0) 2978 ? Object 2979 : function (it) { 2980 return cof(it) == 'String' ? it.split('') : Object(it); 2981 }; 2982 2983 /***/ 2984 }, 2985 2986 /***/ '62a0': /***/ function (module, exports) { 2987 var id = 0; 2988 var px = Math.random(); 2989 module.exports = function (key) { 2990 return 'Symbol('.concat( 2991 key === undefined ? '' : key, 2992 ')_', 2993 (++id + px).toString(36) 2994 ); 2995 }; 2996 2997 /***/ 2998 }, 2999 3000 /***/ '63b6': /***/ function (module, exports, __webpack_require__) { 3001 var global = __webpack_require__('e53d'); 3002 var core = __webpack_require__('584a'); 3003 var ctx = __webpack_require__('d864'); 3004 var hide = __webpack_require__('35e8'); 3005 var has = __webpack_require__('07e3'); 3006 var PROTOTYPE = 'prototype'; 3007 3008 var $export = function (type, name, source) { 3009 var IS_FORCED = type & $export.F; 3010 var IS_GLOBAL = type & $export.G; 3011 var IS_STATIC = type & $export.S; 3012 var IS_PROTO = type & $export.P; 3013 var IS_BIND = type & $export.B; 3014 var IS_WRAP = type & $export.W; 3015 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 3016 var expProto = exports[PROTOTYPE]; 3017 var target = IS_GLOBAL 3018 ? global 3019 : IS_STATIC 3020 ? global[name] 3021 : (global[name] || {})[PROTOTYPE]; 3022 var key, own, out; 3023 if (IS_GLOBAL) source = name; 3024 for (key in source) { 3025 // contains in native 3026 own = !IS_FORCED && target && target[key] !== undefined; 3027 if (own && has(exports, key)) continue; 3028 // export native or passed 3029 out = own ? target[key] : source[key]; 3030 // prevent global pollution for namespaces 3031 exports[key] = 3032 IS_GLOBAL && typeof target[key] != 'function' 3033 ? source[key] 3034 : // bind timers to global for call from export context 3035 IS_BIND && own 3036 ? ctx(out, global) 3037 : // wrap global constructors for prevent change them in library 3038 IS_WRAP && target[key] == out 3039 ? (function (C) { 3040 var F = function (a, b, c) { 3041 if (this instanceof C) { 3042 switch (arguments.length) { 3043 case 0: 3044 return new C(); 3045 case 1: 3046 return new C(a); 3047 case 2: 3048 return new C(a, b); 3049 } 3050 return new C(a, b, c); 3051 } 3052 return C.apply(this, arguments); 3053 }; 3054 F[PROTOTYPE] = C[PROTOTYPE]; 3055 return F; 3056 // make static versions for prototype methods 3057 })(out) 3058 : IS_PROTO && typeof out == 'function' 3059 ? ctx(Function.call, out) 3060 : out; 3061 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 3062 if (IS_PROTO) { 3063 (exports.virtual || (exports.virtual = {}))[key] = out; 3064 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 3065 if (type & $export.R && expProto && !expProto[key]) 3066 hide(expProto, key, out); 3067 } 3068 } 3069 }; 3070 // type bitmap 3071 $export.F = 1; // forced 3072 $export.G = 2; // global 3073 $export.S = 4; // static 3074 $export.P = 8; // proto
vendor: 5,314 bytes, lines 3075-3238
3075 $export.B = 16; // bind 3076 $export.W = 32; // wrap 3077 $export.U = 64; // safe 3078 $export.R = 128; // real proto method for `library` 3079 module.exports = $export; 3080 3081 /***/ 3082 }, 3083 3084 /***/ '656e': /***/ function (module, exports, __webpack_require__) { 3085 'use strict'; 3086 3087 // 25.4.1.5 NewPromiseCapability(C) 3088 var aFunction = __webpack_require__('79aa'); 3089 3090 function PromiseCapability(C) { 3091 var resolve, reject; 3092 this.promise = new C(function ($$resolve, $$reject) { 3093 if (resolve !== undefined || reject !== undefined) 3094 throw TypeError('Bad Promise constructor'); 3095 resolve = $$resolve; 3096 reject = $$reject; 3097 }); 3098 this.resolve = aFunction(resolve); 3099 this.reject = aFunction(reject); 3100 } 3101 3102 module.exports.f = function (C) { 3103 return new PromiseCapability(C); 3104 }; 3105 3106 /***/ 3107 }, 3108 3109 /***/ 6718: /***/ function (module, exports, __webpack_require__) { 3110 var global = __webpack_require__('e53d'); 3111 var core = __webpack_require__('584a'); 3112 var LIBRARY = __webpack_require__('b8e3'); 3113 var wksExt = __webpack_require__('ccb9'); 3114 var defineProperty = __webpack_require__('d9f6').f; 3115 module.exports = function (name) { 3116 var $Symbol = 3117 core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 3118 if (name.charAt(0) != '_' && !(name in $Symbol)) 3119 defineProperty($Symbol, name, { value: wksExt.f(name) }); 3120 }; 3121 3122 /***/ 3123 }, 3124 3125 /***/ 6762: /***/ function (module, exports, __webpack_require__) { 3126 'use strict'; 3127 3128 // https://github.com/tc39/Array.prototype.includes 3129 var $export = __webpack_require__('5ca1'); 3130 var $includes = __webpack_require__('c366')(true); 3131 3132 $export($export.P, 'Array', { 3133 includes: function includes(el /* , fromIndex = 0 */) { 3134 return $includes( 3135 this, 3136 el, 3137 arguments.length > 1 ? arguments[1] : undefined 3138 ); 3139 }, 3140 }); 3141 3142 __webpack_require__('9c6c')('includes'); 3143 3144 /***/ 3145 }, 3146 3147 /***/ '67bb': /***/ function (module, exports, __webpack_require__) { 3148 module.exports = __webpack_require__('f921'); 3149 3150 /***/ 3151 }, 3152 3153 /***/ 6821: /***/ function (module, exports, __webpack_require__) { 3154 // to indexed object, toObject with fallback for non-array-like ES3 strings 3155 var IObject = __webpack_require__('626a'); 3156 var defined = __webpack_require__('be13'); 3157 module.exports = function (it) { 3158 return IObject(defined(it)); 3159 }; 3160 3161 /***/ 3162 }, 3163 3164 /***/ '696e': /***/ function (module, exports, __webpack_require__) { 3165 __webpack_require__('c207'); 3166 __webpack_require__('1654'); 3167 __webpack_require__('6c1c'); 3168 __webpack_require__('24c5'); 3169 __webpack_require__('3c11'); 3170 __webpack_require__('43fc'); 3171 module.exports = __webpack_require__('584a').Promise; 3172 3173 /***/ 3174 }, 3175 3176 /***/ '69a8': /***/ function (module, exports) { 3177 var hasOwnProperty = {}.hasOwnProperty; 3178 module.exports = function (it, key) { 3179 return hasOwnProperty.call(it, key); 3180 }; 3181 3182 /***/ 3183 }, 3184 3185 /***/ '69d3': /***/ function (module, exports, __webpack_require__) { 3186 __webpack_require__('6718')('asyncIterator'); 3187 3188 /***/ 3189 }, 3190 3191 /***/ '6a99': /***/ function (module, exports, __webpack_require__) { 3192 // 7.1.1 ToPrimitive(input [, PreferredType]) 3193 var isObject = __webpack_require__('d3f4'); 3194 // instead of the ES6 spec version, we didn't implement @@toPrimitive case 3195 // and the second argument - flag - preferred type is a string 3196 module.exports = function (it, S) { 3197 if (!isObject(it)) return it; 3198 var fn, val; 3199 if ( 3200 S && 3201 typeof (fn = it.toString) == 'function' && 3202 !isObject((val = fn.call(it))) 3203 ) 3204 return val; 3205 if ( 3206 typeof (fn = it.valueOf) == 'function' && 3207 !isObject((val = fn.call(it))) 3208 ) 3209 return val; 3210 if ( 3211 !S && 3212 typeof (fn = it.toString) == 'function' && 3213 !isObject((val = fn.call(it))) 3214 ) 3215 return val; 3216 throw TypeError("Can't convert object to primitive value"); 3217 }; 3218 3219 /***/ 3220 }, 3221 3222 /***/ '6abf': /***/ function (module, exports, __webpack_require__) { 3223 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 3224 var $keys = __webpack_require__('e6f3'); 3225 var hiddenKeys = __webpack_require__('1691').concat( 3226 'length', 3227 'prototype' 3228 ); 3229 3230 exports.f = 3231 Object.getOwnPropertyNames || 3232 function getOwnPropertyNames(O) { 3233 return $keys(O, hiddenKeys); 3234 }; 3235 3236 /***/ 3237 }, 3238
vendor: 4,420 bytes, lines 3239-3359
3239 /***/ '6b4c': /***/ function (module, exports) { 3240 var toString = {}.toString; 3241 3242 module.exports = function (it) { 3243 return toString.call(it).slice(8, -1); 3244 }; 3245 3246 /***/ 3247 }, 3248 3249 /***/ '6b54': /***/ function (module, exports, __webpack_require__) { 3250 'use strict'; 3251 3252 __webpack_require__('3846'); 3253 var anObject = __webpack_require__('cb7c'); 3254 var $flags = __webpack_require__('0bfb'); 3255 var DESCRIPTORS = __webpack_require__('9e1e'); 3256 var TO_STRING = 'toString'; 3257 var $toString = /./[TO_STRING]; 3258 3259 var define = function (fn) { 3260 __webpack_require__('2aba')(RegExp.prototype, TO_STRING, fn, true); 3261 }; 3262 3263 // 21.2.5.14 RegExp.prototype.toString() 3264 if ( 3265 __webpack_require__('79e5')(function () { 3266 return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; 3267 }) 3268 ) { 3269 define(function toString() { 3270 var R = anObject(this); 3271 return '/'.concat( 3272 R.source, 3273 '/', 3274 'flags' in R 3275 ? R.flags 3276 : !DESCRIPTORS && R instanceof RegExp 3277 ? $flags.call(R) 3278 : undefined 3279 ); 3280 }); 3281 // FF44- RegExp#toString has a wrong name 3282 } else if ($toString.name != TO_STRING) { 3283 define(function toString() { 3284 return $toString.call(this); 3285 }); 3286 } 3287 3288 /***/ 3289 }, 3290 3291 /***/ '6c1c': /***/ function (module, exports, __webpack_require__) { 3292 __webpack_require__('c367'); 3293 var global = __webpack_require__('e53d'); 3294 var hide = __webpack_require__('35e8'); 3295 var Iterators = __webpack_require__('481b'); 3296 var TO_STRING_TAG = __webpack_require__('5168')('toStringTag'); 3297 3298 var DOMIterables = ( 3299 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 3300 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 3301 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 3302 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 3303 'TextTrackList,TouchList' 3304 ).split(','); 3305 3306 for (var i = 0; i < DOMIterables.length; i++) { 3307 var NAME = DOMIterables[i]; 3308 var Collection = global[NAME]; 3309 var proto = Collection && Collection.prototype; 3310 if (proto && !proto[TO_STRING_TAG]) 3311 hide(proto, TO_STRING_TAG, NAME); 3312 Iterators[NAME] = Iterators.Array; 3313 } 3314 3315 /***/ 3316 }, 3317 3318 /***/ '71c1': /***/ function (module, exports, __webpack_require__) { 3319 var toInteger = __webpack_require__('3a38'); 3320 var defined = __webpack_require__('25eb'); 3321 // true -> String#at 3322 // false -> String#codePointAt 3323 module.exports = function (TO_STRING) { 3324 return function (that, pos) { 3325 var s = String(defined(that)); 3326 var i = toInteger(pos); 3327 var l = s.length; 3328 var a, b; 3329 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 3330 a = s.charCodeAt(i); 3331 return a < 0xd800 || 3332 a > 0xdbff || 3333 i + 1 === l || 3334 (b = s.charCodeAt(i + 1)) < 0xdc00 || 3335 b > 0xdfff 3336 ? TO_STRING 3337 ? s.charAt(i) 3338 : a 3339 : TO_STRING 3340 ? s.slice(i, i + 2) 3341 : ((a - 0xd800) << 10) + (b - 0xdc00) + 0x10000; 3342 }; 3343 }; 3344 3345 /***/ 3346 }, 3347 3348 /***/ 7514: /***/ function (module, exports, __webpack_require__) { 3349 'use strict'; 3350 3351 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) 3352 var $export = __webpack_require__('5ca1'); 3353 var $find = __webpack_require__('0a49')(5); 3354 var KEY = 'find'; 3355 var forced = true; 3356 // Shouldn't skip holes 3357 if (KEY in []) 3358 Array(1)[KEY](function () { 3359 forced = false;
vendor: 5,440 bytes, lines 3360-3532
3360 }); 3361 $export($export.P + $export.F * forced, 'Array', { 3362 find: function find(callbackfn /* , that = undefined */) { 3363 return $find( 3364 this, 3365 callbackfn, 3366 arguments.length > 1 ? arguments[1] : undefined 3367 ); 3368 }, 3369 }); 3370 __webpack_require__('9c6c')(KEY); 3371 3372 /***/ 3373 }, 3374 3375 /***/ '765d': /***/ function (module, exports, __webpack_require__) { 3376 __webpack_require__('6718')('observable'); 3377 3378 /***/ 3379 }, 3380 3381 /***/ 7726: /***/ function (module, exports) { 3382 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 3383 var global = (module.exports = 3384 typeof window != 'undefined' && window.Math == Math 3385 ? window 3386 : typeof self != 'undefined' && self.Math == Math 3387 ? self 3388 : // eslint-disable-next-line no-new-func 3389 Function('return this')()); 3390 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 3391 3392 /***/ 3393 }, 3394 3395 /***/ '774e': /***/ function (module, exports, __webpack_require__) { 3396 module.exports = __webpack_require__('d2d5'); 3397 3398 /***/ 3399 }, 3400 3401 /***/ '77f1': /***/ function (module, exports, __webpack_require__) { 3402 var toInteger = __webpack_require__('4588'); 3403 var max = Math.max; 3404 var min = Math.min; 3405 module.exports = function (index, length) { 3406 index = toInteger(index); 3407 return index < 0 ? max(index + length, 0) : min(index, length); 3408 }; 3409 3410 /***/ 3411 }, 3412 3413 /***/ '794b': /***/ function (module, exports, __webpack_require__) { 3414 module.exports = 3415 !__webpack_require__('8e60') && 3416 !__webpack_require__('294c')(function () { 3417 return ( 3418 Object.defineProperty(__webpack_require__('1ec9')('div'), 'a', { 3419 get: function () { 3420 return 7; 3421 }, 3422 }).a != 7 3423 ); 3424 }); 3425 3426 /***/ 3427 }, 3428 3429 /***/ '795b': /***/ function (module, exports, __webpack_require__) { 3430 module.exports = __webpack_require__('696e'); 3431 3432 /***/ 3433 }, 3434 3435 /***/ '79aa': /***/ function (module, exports) { 3436 module.exports = function (it) { 3437 if (typeof it != 'function') 3438 throw TypeError(it + ' is not a function!'); 3439 return it; 3440 }; 3441 3442 /***/ 3443 }, 3444 3445 /***/ '79e5': /***/ function (module, exports) { 3446 module.exports = function (exec) { 3447 try { 3448 return !!exec(); 3449 } catch (e) { 3450 return true; 3451 } 3452 }; 3453 3454 /***/ 3455 }, 3456 3457 /***/ '7cd6': /***/ function (module, exports, __webpack_require__) { 3458 var classof = __webpack_require__('40c3'); 3459 var ITERATOR = __webpack_require__('5168')('iterator'); 3460 var Iterators = __webpack_require__('481b'); 3461 module.exports = __webpack_require__('584a').getIteratorMethod = 3462 function (it) { 3463 if (it != undefined) 3464 return ( 3465 it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)] 3466 ); 3467 }; 3468 3469 /***/ 3470 }, 3471 3472 /***/ '7e90': /***/ function (module, exports, __webpack_require__) { 3473 var dP = __webpack_require__('d9f6'); 3474 var anObject = __webpack_require__('e4ae'); 3475 var getKeys = __webpack_require__('c3a1'); 3476 3477 module.exports = __webpack_require__('8e60') 3478 ? Object.defineProperties 3479 : function defineProperties(O, Properties) { 3480 anObject(O); 3481 var keys = getKeys(Properties); 3482 var length = keys.length; 3483 var i = 0; 3484 var P; 3485 while (length > i) dP.f(O, (P = keys[i++]), Properties[P]); 3486 return O; 3487 }; 3488 3489 /***/ 3490 }, 3491 3492 /***/ '7f20': /***/ function (module, exports, __webpack_require__) { 3493 var def = __webpack_require__('86cc').f; 3494 var has = __webpack_require__('69a8'); 3495 var TAG = __webpack_require__('2b4c')('toStringTag'); 3496 3497 module.exports = function (it, tag, stat) { 3498 if (it && !has((it = stat ? it : it.prototype), TAG)) 3499 def(it, TAG, { configurable: true, value: tag }); 3500 }; 3501 3502 /***/ 3503 }, 3504 3505 /***/ '7f7f': /***/ function (module, exports, __webpack_require__) { 3506 var dP = __webpack_require__('86cc').f; 3507 var FProto = Function.prototype; 3508 var nameRE = /^\s*function ([^ (]*)/; 3509 var NAME = 'name'; 3510 3511 // 19.2.4.2 name 3512 NAME in FProto || 3513 (__webpack_require__('9e1e') && 3514 dP(FProto, NAME, { 3515 configurable: true, 3516 get: function () { 3517 try { 3518 return ('' + this).match(nameRE)[1]; 3519 } catch (e) { 3520 return ''; 3521 } 3522 }, 3523 })); 3524 3525 /***/ 3526 }, 3527 3528 /***/ '7f9a': /***/ function (module, exports, __webpack_require__) { 3529 // extracted by mini-css-extract-plugin 3530 /***/ 3531 }, 3532
vendor: 26,527 bytes, lines 3533-4301
3533 /***/ 8378: /***/ function (module, exports) { 3534 var core = (module.exports = { version: '2.6.11' }); 3535 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 3536 3537 /***/ 3538 }, 3539 3540 /***/ 8436: /***/ function (module, exports) { 3541 module.exports = function () { 3542 /* empty */ 3543 }; 3544 3545 /***/ 3546 }, 3547 3548 /***/ '84f2': /***/ function (module, exports) { 3549 module.exports = {}; 3550 3551 /***/ 3552 }, 3553 3554 /***/ '85f2': /***/ function (module, exports, __webpack_require__) { 3555 module.exports = __webpack_require__('454f'); 3556 3557 /***/ 3558 }, 3559 3560 /***/ '85fe': /***/ function ( 3561 module, 3562 __webpack_exports__, 3563 __webpack_require__ 3564 ) { 3565 'use strict'; 3566 /* WEBPACK VAR INJECTION */ (function (global) { 3567 /* harmony export (binding) */ __webpack_require__.d( 3568 __webpack_exports__, 3569 'a', 3570 function () { 3571 return ObserveVisibility; 3572 } 3573 ); 3574 /* unused harmony export install */ 3575 function _typeof(obj) { 3576 if ( 3577 typeof Symbol === 'function' && 3578 typeof Symbol.iterator === 'symbol' 3579 ) { 3580 _typeof = function (obj) { 3581 return typeof obj; 3582 }; 3583 } else { 3584 _typeof = function (obj) { 3585 return obj && 3586 typeof Symbol === 'function' && 3587 obj.constructor === Symbol && 3588 obj !== Symbol.prototype 3589 ? 'symbol' 3590 : typeof obj; 3591 }; 3592 } 3593 3594 return _typeof(obj); 3595 } 3596 3597 function _classCallCheck(instance, Constructor) { 3598 if (!(instance instanceof Constructor)) { 3599 throw new TypeError('Cannot call a class as a function'); 3600 } 3601 } 3602 3603 function _defineProperties(target, props) { 3604 for (var i = 0; i < props.length; i++) { 3605 var descriptor = props[i]; 3606 descriptor.enumerable = descriptor.enumerable || false; 3607 descriptor.configurable = true; 3608 if ('value' in descriptor) descriptor.writable = true; 3609 Object.defineProperty(target, descriptor.key, descriptor); 3610 } 3611 } 3612 3613 function _createClass(Constructor, protoProps, staticProps) { 3614 if (protoProps) 3615 _defineProperties(Constructor.prototype, protoProps); 3616 if (staticProps) _defineProperties(Constructor, staticProps); 3617 return Constructor; 3618 } 3619 3620 function _toConsumableArray(arr) { 3621 return ( 3622 _arrayWithoutHoles(arr) || 3623 _iterableToArray(arr) || 3624 _nonIterableSpread() 3625 ); 3626 } 3627 3628 function _arrayWithoutHoles(arr) { 3629 if (Array.isArray(arr)) { 3630 for ( 3631 var i = 0, arr2 = new Array(arr.length); 3632 i < arr.length; 3633 i++ 3634 ) 3635 arr2[i] = arr[i]; 3636 3637 return arr2; 3638 } 3639 } 3640 3641 function _iterableToArray(iter) { 3642 if ( 3643 Symbol.iterator in Object(iter) || 3644 Object.prototype.toString.call(iter) === '[object Arguments]' 3645 ) 3646 return Array.from(iter); 3647 } 3648 3649 function _nonIterableSpread() { 3650 throw new TypeError( 3651 'Invalid attempt to spread non-iterable instance' 3652 ); 3653 } 3654 3655 function processOptions(value) { 3656 var options; 3657 3658 if (typeof value === 'function') { 3659 // Simple options (callback-only) 3660 options = { 3661 callback: value, 3662 }; 3663 } else { 3664 // Options object 3665 options = value; 3666 } 3667 3668 return options; 3669 } 3670 function throttle(callback, delay) { 3671 var options = 3672 arguments.length > 2 && arguments[2] !== undefined 3673 ? arguments[2] 3674 : {}; 3675 var timeout; 3676 var lastState; 3677 var currentArgs; 3678 3679 var throttled = function throttled(state) { 3680 for ( 3681 var _len = arguments.length, 3682 args = new Array(_len > 1 ? _len - 1 : 0), 3683 _key = 1; 3684 _key < _len; 3685 _key++ 3686 ) { 3687 args[_key - 1] = arguments[_key]; 3688 } 3689 3690 currentArgs = args; 3691 if (timeout && state === lastState) return; 3692 var leading = options.leading; 3693 3694 if (typeof leading === 'function') { 3695 leading = leading(state, lastState); 3696 } 3697 3698 if ((!timeout || state !== lastState) && leading) { 3699 callback.apply( 3700 void 0, 3701 [state].concat(_toConsumableArray(currentArgs)) 3702 ); 3703 } 3704 3705 lastState = state; 3706 clearTimeout(timeout); 3707 timeout = setTimeout(function () { 3708 callback.apply( 3709 void 0, 3710 [state].concat(_toConsumableArray(currentArgs)) 3711 ); 3712 timeout = 0; 3713 }, delay); 3714 }; 3715 3716 throttled._clear = function () { 3717 clearTimeout(timeout); 3718 timeout = null; 3719 }; 3720 3721 return throttled; 3722 } 3723 function deepEqual(val1, val2) { 3724 if (val1 === val2) return true; 3725 3726 if (_typeof(val1) === 'object') { 3727 for (var key in val1) { 3728 if (!deepEqual(val1[key], val2[key])) { 3729 return false; 3730 } 3731 } 3732 3733 return true; 3734 } 3735 3736 return false; 3737 } 3738 3739 var VisibilityState = 3740 /*#__PURE__*/ 3741 (function () { 3742 function VisibilityState(el, options, vnode) { 3743 _classCallCheck(this, VisibilityState); 3744 3745 this.el = el; 3746 this.observer = null; 3747 this.frozen = false; 3748 this.createObserver(options, vnode); 3749 } 3750 3751 _createClass(VisibilityState, [ 3752 { 3753 key: 'createObserver', 3754 value: function createObserver(options, vnode) { 3755 var _this = this; 3756 3757 if (this.observer) { 3758 this.destroyObserver(); 3759 } 3760 3761 if (this.frozen) return; 3762 this.options = processOptions(options); 3763 3764 this.callback = function (result, entry) { 3765 _this.options.callback(result, entry); 3766 3767 if (result && _this.options.once) { 3768 _this.frozen = true; 3769 3770 _this.destroyObserver(); 3771 } 3772 }; // Throttle 3773 3774 if (this.callback && this.options.throttle) { 3775 var _ref = this.options.throttleOptions || {}, 3776 _leading = _ref.leading; 3777 3778 this.callback = throttle( 3779 this.callback, 3780 this.options.throttle, 3781 { 3782 leading: function leading(state) { 3783 return ( 3784 _leading === 'both' || 3785 (_leading === 'visible' && state) || 3786 (_leading === 'hidden' && !state) 3787 ); 3788 }, 3789 } 3790 ); 3791 } 3792 3793 this.oldResult = undefined; 3794 this.observer = new IntersectionObserver(function ( 3795 entries 3796 ) { 3797 var entry = entries[0]; 3798 3799 if (entries.length > 1) { 3800 var intersectingEntry = entries.find(function (e) { 3801 return e.isIntersecting; 3802 }); 3803 3804 if (intersectingEntry) { 3805 entry = intersectingEntry; 3806 } 3807 } 3808 3809 if (_this.callback) { 3810 // Use isIntersecting if possible because browsers can report isIntersecting as true, but intersectionRatio as 0, when something very slowly enters the viewport. 3811 var result = 3812 entry.isIntersecting && 3813 entry.intersectionRatio >= _this.threshold; 3814 if (result === _this.oldResult) return; 3815 _this.oldResult = result; 3816 3817 _this.callback(result, entry); 3818 } 3819 }, this.options.intersection); // Wait for the element to be in document 3820 3821 vnode.context.$nextTick(function () { 3822 if (_this.observer) { 3823 _this.observer.observe(_this.el); 3824 } 3825 }); 3826 }, 3827 }, 3828 { 3829 key: 'destroyObserver', 3830 value: function destroyObserver() { 3831 if (this.observer) { 3832 this.observer.disconnect(); 3833 this.observer = null; 3834 } // Cancel throttled call 3835 3836 if (this.callback && this.callback._clear) { 3837 this.callback._clear(); 3838 3839 this.callback = null; 3840 } 3841 }, 3842 }, 3843 { 3844 key: 'threshold', 3845 get: function get() { 3846 return ( 3847 (this.options.intersection && 3848 this.options.intersection.threshold) || 3849 0 3850 ); 3851 }, 3852 }, 3853 ]); 3854 3855 return VisibilityState; 3856 })(); 3857 3858 function bind(el, _ref2, vnode) { 3859 var value = _ref2.value; 3860 if (!value) return; 3861 3862 if (typeof IntersectionObserver === 'undefined') { 3863 console.warn( 3864 '[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill' 3865 ); 3866 } else { 3867 var state = new VisibilityState(el, value, vnode); 3868 el._vue_visibilityState = state; 3869 } 3870 } 3871 3872 function update(el, _ref3, vnode) { 3873 var value = _ref3.value, 3874 oldValue = _ref3.oldValue; 3875 if (deepEqual(value, oldValue)) return; 3876 var state = el._vue_visibilityState; 3877 3878 if (!value) { 3879 unbind(el); 3880 return; 3881 } 3882 3883 if (state) { 3884 state.createObserver(value, vnode); 3885 } else { 3886 bind( 3887 el, 3888 { 3889 value: value, 3890 }, 3891 vnode 3892 ); 3893 } 3894 } 3895 3896 function unbind(el) { 3897 var state = el._vue_visibilityState; 3898 3899 if (state) { 3900 state.destroyObserver(); 3901 delete el._vue_visibilityState; 3902 } 3903 } 3904 3905 var ObserveVisibility = { 3906 bind: bind, 3907 update: update, 3908 unbind: unbind, 3909 }; 3910 3911 function install(Vue) { 3912 Vue.directive('observe-visibility', ObserveVisibility); 3913 /* -- Add more components here -- */ 3914 } 3915 /* -- Plugin definition & Auto-install -- */ 3916 3917 /* You shouldn't have to modify the code below */ 3918 // Plugin 3919 3920 var plugin = { 3921 // eslint-disable-next-line no-undef 3922 version: '0.4.6', 3923 install: install, 3924 }; 3925 3926 var GlobalVue = null; 3927 3928 if (typeof window !== 'undefined') { 3929 GlobalVue = window.Vue; 3930 } else if (typeof global !== 'undefined') { 3931 GlobalVue = global.Vue; 3932 } 3933 3934 if (GlobalVue) { 3935 GlobalVue.use(plugin); 3936 } 3937 3938 /* unused harmony default export */ var _unused_webpack_default_export = 3939 plugin; 3940 3941 /* WEBPACK VAR INJECTION */ 3942 }).call(this, __webpack_require__('c8ba')); 3943 3944 /***/ 3945 }, 3946 3947 /***/ '86cc': /***/ function (module, exports, __webpack_require__) { 3948 var anObject = __webpack_require__('cb7c'); 3949 var IE8_DOM_DEFINE = __webpack_require__('c69a'); 3950 var toPrimitive = __webpack_require__('6a99'); 3951 var dP = Object.defineProperty; 3952 3953 exports.f = __webpack_require__('9e1e') 3954 ? Object.defineProperty 3955 : function defineProperty(O, P, Attributes) { 3956 anObject(O); 3957 P = toPrimitive(P, true); 3958 anObject(Attributes); 3959 if (IE8_DOM_DEFINE) 3960 try { 3961 return dP(O, P, Attributes); 3962 } catch (e) { 3963 /* empty */ 3964 } 3965 if ('get' in Attributes || 'set' in Attributes) 3966 throw TypeError('Accessors not supported!'); 3967 if ('value' in Attributes) O[P] = Attributes.value; 3968 return O; 3969 }; 3970 3971 /***/ 3972 }, 3973 3974 /***/ 8875: /***/ function (module, exports, __webpack_require__) { 3975 var __WEBPACK_AMD_DEFINE_FACTORY__, 3976 __WEBPACK_AMD_DEFINE_ARRAY__, 3977 __WEBPACK_AMD_DEFINE_RESULT__; // addapted from the document.currentScript polyfill by Adam Miller 3978 // MIT license 3979 // source: https://github.com/amiller-gh/currentScript-polyfill 3980 3981 // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 3982 3983 (function (root, factory) { 3984 if (true) { 3985 !((__WEBPACK_AMD_DEFINE_ARRAY__ = []), 3986 (__WEBPACK_AMD_DEFINE_FACTORY__ = factory), 3987 (__WEBPACK_AMD_DEFINE_RESULT__ = 3988 typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' 3989 ? __WEBPACK_AMD_DEFINE_FACTORY__.apply( 3990 exports, 3991 __WEBPACK_AMD_DEFINE_ARRAY__ 3992 ) 3993 : __WEBPACK_AMD_DEFINE_FACTORY__), 3994 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && 3995 (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 3996 } else { 3997 } 3998 })(typeof self !== 'undefined' ? self : this, function () { 3999 function getCurrentScript() { 4000 if (document.currentScript) { 4001 return document.currentScript; 4002 } 4003 4004 // IE 8-10 support script readyState 4005 // IE 11+ & Firefox support stack trace 4006 try { 4007 throw new Error(); 4008 } catch (err) { 4009 // Find the second match for the "at" string to get file src url from stack. 4010 var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/gi, 4011 ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/gi, 4012 stackDetails = 4013 ieStackRegExp.exec(err.stack) || 4014 ffStackRegExp.exec(err.stack), 4015 scriptLocation = (stackDetails && stackDetails[1]) || false, 4016 line = (stackDetails && stackDetails[2]) || false, 4017 currentLocation = document.location.href.replace( 4018 document.location.hash, 4019 '' 4020 ), 4021 pageSource, 4022 inlineScriptSourceRegExp, 4023 inlineScriptSource, 4024 scripts = document.getElementsByTagName('script'); // Live NodeList collection 4025 4026 if (scriptLocation === currentLocation) { 4027 pageSource = document.documentElement.outerHTML; 4028 inlineScriptSourceRegExp = new RegExp( 4029 '(?:[^\\n]+?\\n){0,' + 4030 (line - 2) + 4031 '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 4032 'i' 4033 ); 4034 inlineScriptSource = pageSource 4035 .replace(inlineScriptSourceRegExp, '$1') 4036 .trim(); 4037 } 4038 4039 for (var i = 0; i < scripts.length; i++) { 4040 // If ready state is interactive, return the script tag 4041 if (scripts[i].readyState === 'interactive') { 4042 return scripts[i]; 4043 } 4044 4045 // If src matches, return the script tag 4046 if (scripts[i].src === scriptLocation) { 4047 return scripts[i]; 4048 } 4049 4050 // If inline source matches, return the script tag 4051 if ( 4052 scriptLocation === currentLocation && 4053 scripts[i].innerHTML && 4054 scripts[i].innerHTML.trim() === inlineScriptSource 4055 ) { 4056 return scripts[i]; 4057 } 4058 } 4059 4060 // If no match, return null 4061 return null; 4062 } 4063 } 4064 4065 return getCurrentScript; 4066 }); 4067 4068 /***/ 4069 }, 4070 4071 /***/ '8b97': /***/ function (module, exports, __webpack_require__) { 4072 // Works with __proto__ only. Old v8 can't work with null proto objects. 4073 /* eslint-disable no-proto */ 4074 var isObject = __webpack_require__('d3f4'); 4075 var anObject = __webpack_require__('cb7c'); 4076 var check = function (O, proto) { 4077 anObject(O); 4078 if (!isObject(proto) && proto !== null) 4079 throw TypeError(proto + ": can't set as prototype!"); 4080 }; 4081 module.exports = { 4082 set: 4083 Object.setPrototypeOf || 4084 ('__proto__' in {} // eslint-disable-line 4085 ? (function (test, buggy, set) { 4086 try { 4087 set = __webpack_require__('9b43')( 4088 Function.call, 4089 __webpack_require__('11e9').f( 4090 Object.prototype, 4091 '__proto__' 4092 ).set, 4093 2 4094 ); 4095 set(test, []); 4096 buggy = !(test instanceof Array); 4097 } catch (e) { 4098 buggy = true; 4099 } 4100 return function setPrototypeOf(O, proto) { 4101 check(O, proto); 4102 if (buggy) O.__proto__ = proto; 4103 else set(O, proto); 4104 return O; 4105 }; 4106 })({}, false) 4107 : undefined), 4108 check: check, 4109 }; 4110 4111 /***/ 4112 }, 4113 4114 /***/ '8bbf': /***/ function (module, exports) { 4115 module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__; 4116 4117 /***/ 4118 }, 4119 4120 /***/ '8e60': /***/ function (module, exports, __webpack_require__) { 4121 // Thank's IE8 for his funny defineProperty 4122 module.exports = !__webpack_require__('294c')(function () { 4123 return ( 4124 Object.defineProperty({}, 'a', { 4125 get: function () { 4126 return 7; 4127 }, 4128 }).a != 7 4129 ); 4130 }); 4131 4132 /***/ 4133 }, 4134 4135 /***/ '8e6e': /***/ function (module, exports, __webpack_require__) { 4136 // https://github.com/tc39/proposal-object-getownpropertydescriptors 4137 var $export = __webpack_require__('5ca1'); 4138 var ownKeys = __webpack_require__('990b'); 4139 var toIObject = __webpack_require__('6821'); 4140 var gOPD = __webpack_require__('11e9'); 4141 var createProperty = __webpack_require__('f1ae'); 4142 4143 $export($export.S, 'Object', { 4144 getOwnPropertyDescriptors: function getOwnPropertyDescriptors( 4145 object 4146 ) { 4147 var O = toIObject(object); 4148 var getDesc = gOPD.f; 4149 var keys = ownKeys(O); 4150 var result = {}; 4151 var i = 0; 4152 var key, desc; 4153 while (keys.length > i) { 4154 desc = getDesc(O, (key = keys[i++])); 4155 if (desc !== undefined) createProperty(result, key, desc); 4156 } 4157 return result; 4158 }, 4159 }); 4160 4161 /***/ 4162 }, 4163 4164 /***/ '8f60': /***/ function (module, exports, __webpack_require__) { 4165 'use strict'; 4166 4167 var create = __webpack_require__('a159'); 4168 var descriptor = __webpack_require__('aebd'); 4169 var setToStringTag = __webpack_require__('45f2'); 4170 var IteratorPrototype = {}; 4171 4172 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 4173 __webpack_require__('35e8')( 4174 IteratorPrototype, 4175 __webpack_require__('5168')('iterator'), 4176 function () { 4177 return this; 4178 } 4179 ); 4180 4181 module.exports = function (Constructor, NAME, next) { 4182 Constructor.prototype = create(IteratorPrototype, { 4183 next: descriptor(1, next), 4184 }); 4185 setToStringTag(Constructor, NAME + ' Iterator'); 4186 }; 4187 4188 /***/ 4189 }, 4190 4191 /***/ 9003: /***/ function (module, exports, __webpack_require__) { 4192 // 7.2.2 IsArray(argument) 4193 var cof = __webpack_require__('6b4c'); 4194 module.exports = 4195 Array.isArray || 4196 function isArray(arg) { 4197 return cof(arg) == 'Array'; 4198 }; 4199 4200 /***/ 4201 }, 4202 4203 /***/ 9093: /***/ function (module, exports, __webpack_require__) { 4204 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 4205 var $keys = __webpack_require__('ce10'); 4206 var hiddenKeys = __webpack_require__('e11e').concat( 4207 'length', 4208 'prototype' 4209 ); 4210 4211 exports.f = 4212 Object.getOwnPropertyNames || 4213 function getOwnPropertyNames(O) { 4214 return $keys(O, hiddenKeys); 4215 }; 4216 4217 /***/ 4218 }, 4219 4220 /***/ 9138: /***/ function (module, exports, __webpack_require__) { 4221 module.exports = __webpack_require__('35e8'); 4222 4223 /***/ 4224 }, 4225 4226 /***/ '95d5': /***/ function (module, exports, __webpack_require__) { 4227 var classof = __webpack_require__('40c3'); 4228 var ITERATOR = __webpack_require__('5168')('iterator'); 4229 var Iterators = __webpack_require__('481b'); 4230 module.exports = __webpack_require__('584a').isIterable = function ( 4231 it 4232 ) { 4233 var O = Object(it); 4234 return ( 4235 O[ITERATOR] !== undefined || 4236 '@@iterator' in O || 4237 // eslint-disable-next-line no-prototype-builtins 4238 Iterators.hasOwnProperty(classof(O)) 4239 ); 4240 }; 4241 4242 /***/ 4243 }, 4244 4245 /***/ '96cf': /***/ function (module, exports, __webpack_require__) { 4246 /** 4247 * Copyright (c) 2014-present, Facebook, Inc. 4248 * 4249 * This source code is licensed under the MIT license found in the 4250 * LICENSE file in the root directory of this source tree. 4251 */ 4252 4253 var runtime = (function (exports) { 4254 'use strict'; 4255 4256 var Op = Object.prototype; 4257 var hasOwn = Op.hasOwnProperty; 4258 var undefined; // More compressible than void 0. 4259 var $Symbol = typeof Symbol === 'function' ? Symbol : {}; 4260 var iteratorSymbol = $Symbol.iterator || '@@iterator'; 4261 var asyncIteratorSymbol = 4262 $Symbol.asyncIterator || '@@asyncIterator'; 4263 var toStringTagSymbol = $Symbol.toStringTag || '@@toStringTag'; 4264 4265 function define(obj, key, value) { 4266 Object.defineProperty(obj, key, { 4267 value: value, 4268 enumerable: true, 4269 configurable: true, 4270 writable: true, 4271 }); 4272 return obj[key]; 4273 } 4274 try { 4275 // IE 8 has a broken Object.defineProperty that only works on DOM objects. 4276 define({}, ''); 4277 } catch (err) { 4278 define = function (obj, key, value) { 4279 return (obj[key] = value); 4280 }; 4281 } 4282 4283 function wrap(innerFn, outerFn, self, tryLocsList) { 4284 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. 4285 var protoGenerator = 4286 outerFn && outerFn.prototype instanceof Generator 4287 ? outerFn 4288 : Generator; 4289 var generator = Object.create(protoGenerator.prototype); 4290 var context = new Context(tryLocsList || []); 4291 4292 // The ._invoke method unifies the implementations of the .next, 4293 // .throw, and .return methods. 4294 generator._invoke = makeInvokeMethod(innerFn, self, context); 4295 4296 return generator; 4297 } 4298 exports.wrap = wrap; 4299 4300 // Try/catch helper to minimize deoptimizations. Returns a completion 4301 // record like context.tryEntries[i].completion. This interface could
vendor: 24,757 bytes, lines 4302-4912
4302 // have been (and was previously) designed to take a closure to be 4303 // invoked without arguments, but in all the cases we care about we 4304 // already have an existing method we want to call, so there's no need 4305 // to create a new function object. We can even get away with assuming 4306 // the method takes exactly one argument, since that happens to be true 4307 // in every case, so we don't have to touch the arguments object. The 4308 // only additional allocation required is the completion record, which 4309 // has a stable shape and so hopefully should be cheap to allocate. 4310 function tryCatch(fn, obj, arg) { 4311 try { 4312 return { type: 'normal', arg: fn.call(obj, arg) }; 4313 } catch (err) { 4314 return { type: 'throw', arg: err }; 4315 } 4316 } 4317 4318 var GenStateSuspendedStart = 'suspendedStart'; 4319 var GenStateSuspendedYield = 'suspendedYield'; 4320 var GenStateExecuting = 'executing'; 4321 var GenStateCompleted = 'completed'; 4322 4323 // Returning this object from the innerFn has the same effect as 4324 // breaking out of the dispatch switch statement. 4325 var ContinueSentinel = {}; 4326 4327 // Dummy constructor functions that we use as the .constructor and 4328 // .constructor.prototype properties for functions that return Generator 4329 // objects. For full spec compliance, you may wish to configure your 4330 // minifier not to mangle the names of these two functions. 4331 function Generator() {} 4332 function GeneratorFunction() {} 4333 function GeneratorFunctionPrototype() {} 4334 4335 // This is a polyfill for %IteratorPrototype% for environments that 4336 // don't natively support it. 4337 var IteratorPrototype = {}; 4338 define(IteratorPrototype, iteratorSymbol, function () { 4339 return this; 4340 }); 4341 4342 var getProto = Object.getPrototypeOf; 4343 var NativeIteratorPrototype = 4344 getProto && getProto(getProto(values([]))); 4345 if ( 4346 NativeIteratorPrototype && 4347 NativeIteratorPrototype !== Op && 4348 hasOwn.call(NativeIteratorPrototype, iteratorSymbol) 4349 ) { 4350 // This environment has a native %IteratorPrototype%; use it instead 4351 // of the polyfill. 4352 IteratorPrototype = NativeIteratorPrototype; 4353 } 4354 4355 var Gp = 4356 (GeneratorFunctionPrototype.prototype = 4357 Generator.prototype = 4358 Object.create(IteratorPrototype)); 4359 GeneratorFunction.prototype = GeneratorFunctionPrototype; 4360 define(Gp, 'constructor', GeneratorFunctionPrototype); 4361 define( 4362 GeneratorFunctionPrototype, 4363 'constructor', 4364 GeneratorFunction 4365 ); 4366 GeneratorFunction.displayName = define( 4367 GeneratorFunctionPrototype, 4368 toStringTagSymbol, 4369 'GeneratorFunction' 4370 ); 4371 4372 // Helper for defining the .next, .throw, and .return methods of the 4373 // Iterator interface in terms of a single ._invoke method. 4374 function defineIteratorMethods(prototype) { 4375 ['next', 'throw', 'return'].forEach(function (method) { 4376 define(prototype, method, function (arg) { 4377 return this._invoke(method, arg); 4378 }); 4379 }); 4380 } 4381 4382 exports.isGeneratorFunction = function (genFun) { 4383 var ctor = typeof genFun === 'function' && genFun.constructor; 4384 return ctor 4385 ? ctor === GeneratorFunction || 4386 // For the native GeneratorFunction constructor, the best we can 4387 // do is to check its .name property. 4388 (ctor.displayName || ctor.name) === 'GeneratorFunction' 4389 : false; 4390 }; 4391 4392 exports.mark = function (genFun) { 4393 if (Object.setPrototypeOf) { 4394 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); 4395 } else { 4396 genFun.__proto__ = GeneratorFunctionPrototype; 4397 define(genFun, toStringTagSymbol, 'GeneratorFunction'); 4398 } 4399 genFun.prototype = Object.create(Gp); 4400 return genFun; 4401 }; 4402 4403 // Within the body of any async function, `await x` is transformed to 4404 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test 4405 // `hasOwn.call(value, "__await")` to determine if the yielded value is 4406 // meant to be awaited. 4407 exports.awrap = function (arg) { 4408 return { __await: arg }; 4409 }; 4410 4411 function AsyncIterator(generator, PromiseImpl) { 4412 function invoke(method, arg, resolve, reject) { 4413 var record = tryCatch(generator[method], generator, arg); 4414 if (record.type === 'throw') { 4415 reject(record.arg); 4416 } else { 4417 var result = record.arg; 4418 var value = result.value; 4419 if ( 4420 value && 4421 typeof value === 'object' && 4422 hasOwn.call(value, '__await') 4423 ) { 4424 return PromiseImpl.resolve(value.__await).then( 4425 function (value) { 4426 invoke('next', value, resolve, reject); 4427 }, 4428 function (err) { 4429 invoke('throw', err, resolve, reject); 4430 } 4431 ); 4432 } 4433 4434 return PromiseImpl.resolve(value).then( 4435 function (unwrapped) { 4436 // When a yielded Promise is resolved, its final value becomes 4437 // the .value of the Promise<{value,done}> result for the 4438 // current iteration. 4439 result.value = unwrapped; 4440 resolve(result); 4441 }, 4442 function (error) { 4443 // If a rejected Promise was yielded, throw the rejection back 4444 // into the async generator function so it can be handled there. 4445 return invoke('throw', error, resolve, reject); 4446 } 4447 ); 4448 } 4449 } 4450 4451 var previousPromise; 4452 4453 function enqueue(method, arg) { 4454 function callInvokeWithMethodAndArg() { 4455 return new PromiseImpl(function (resolve, reject) { 4456 invoke(method, arg, resolve, reject); 4457 }); 4458 } 4459 4460 return (previousPromise = 4461 // If enqueue has been called before, then we want to wait until 4462 // all previous Promises have been resolved before calling invoke, 4463 // so that results are always delivered in the correct order. If 4464 // enqueue has not been called before, then it is important to 4465 // call invoke immediately, without waiting on a callback to fire, 4466 // so that the async generator function has the opportunity to do 4467 // any necessary setup in a predictable way. This predictability 4468 // is why the Promise constructor synchronously invokes its 4469 // executor callback, and why async functions synchronously 4470 // execute code before the first await. Since we implement simple 4471 // async functions in terms of async generators, it is especially 4472 // important to get this right, even though it requires care. 4473 previousPromise 4474 ? previousPromise.then( 4475 callInvokeWithMethodAndArg, 4476 // Avoid propagating failures to Promises returned by later 4477 // invocations of the iterator. 4478 callInvokeWithMethodAndArg 4479 ) 4480 : callInvokeWithMethodAndArg()); 4481 } 4482 4483 // Define the unified helper method that is used to implement .next, 4484 // .throw, and .return (see defineIteratorMethods). 4485 this._invoke = enqueue; 4486 } 4487 4488 defineIteratorMethods(AsyncIterator.prototype); 4489 define(AsyncIterator.prototype, asyncIteratorSymbol, function () { 4490 return this; 4491 }); 4492 exports.AsyncIterator = AsyncIterator; 4493 4494 // Note that simple async functions are implemented on top of 4495 // AsyncIterator objects; they just return a Promise for the value of 4496 // the final result produced by the iterator. 4497 exports.async = function ( 4498 innerFn, 4499 outerFn, 4500 self, 4501 tryLocsList, 4502 PromiseImpl 4503 ) { 4504 if (PromiseImpl === void 0) PromiseImpl = Promise; 4505 4506 var iter = new AsyncIterator( 4507 wrap(innerFn, outerFn, self, tryLocsList), 4508 PromiseImpl 4509 ); 4510 4511 return exports.isGeneratorFunction(outerFn) 4512 ? iter // If outerFn is a generator, return the full iterator. 4513 : iter.next().then(function (result) { 4514 return result.done ? result.value : iter.next(); 4515 }); 4516 }; 4517 4518 function makeInvokeMethod(innerFn, self, context) { 4519 var state = GenStateSuspendedStart; 4520 4521 return function invoke(method, arg) { 4522 if (state === GenStateExecuting) { 4523 throw new Error('Generator is already running'); 4524 } 4525 4526 if (state === GenStateCompleted) { 4527 if (method === 'throw') { 4528 throw arg; 4529 } 4530 4531 // Be forgiving, per 25.3.3.3.3 of the spec: 4532 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume 4533 return doneResult(); 4534 } 4535 4536 context.method = method; 4537 context.arg = arg; 4538 4539 while (true) { 4540 var delegate = context.delegate; 4541 if (delegate) { 4542 var delegateResult = maybeInvokeDelegate(delegate, context); 4543 if (delegateResult) { 4544 if (delegateResult === ContinueSentinel) continue; 4545 return delegateResult; 4546 } 4547 } 4548 4549 if (context.method === 'next') { 4550 // Setting context._sent for legacy support of Babel's 4551 // function.sent implementation. 4552 context.sent = context._sent = context.arg; 4553 } else if (context.method === 'throw') { 4554 if (state === GenStateSuspendedStart) { 4555 state = GenStateCompleted; 4556 throw context.arg; 4557 } 4558 4559 context.dispatchException(context.arg); 4560 } else if (context.method === 'return') { 4561 context.abrupt('return', context.arg); 4562 } 4563 4564 state = GenStateExecuting; 4565 4566 var record = tryCatch(innerFn, self, context); 4567 if (record.type === 'normal') { 4568 // If an exception is thrown from innerFn, we leave state === 4569 // GenStateExecuting and loop back for another invocation. 4570 state = context.done 4571 ? GenStateCompleted 4572 : GenStateSuspendedYield; 4573 4574 if (record.arg === ContinueSentinel) { 4575 continue; 4576 } 4577 4578 return { 4579 value: record.arg, 4580 done: context.done, 4581 }; 4582 } else if (record.type === 'throw') { 4583 state = GenStateCompleted; 4584 // Dispatch the exception by looping back around to the 4585 // context.dispatchException(context.arg) call above. 4586 context.method = 'throw'; 4587 context.arg = record.arg; 4588 } 4589 } 4590 }; 4591 } 4592 4593 // Call delegate.iterator[context.method](context.arg) and handle the 4594 // result, either by returning a { value, done } result from the 4595 // delegate iterator, or by modifying context.method and context.arg, 4596 // setting context.delegate to null, and returning the ContinueSentinel. 4597 function maybeInvokeDelegate(delegate, context) { 4598 var method = delegate.iterator[context.method]; 4599 if (method === undefined) { 4600 // A .throw or .return when the delegate iterator has no .throw 4601 // method always terminates the yield* loop. 4602 context.delegate = null; 4603 4604 if (context.method === 'throw') { 4605 // Note: ["return"] must be used for ES3 parsing compatibility. 4606 if (delegate.iterator['return']) { 4607 // If the delegate iterator has a return method, give it a 4608 // chance to clean up. 4609 context.method = 'return'; 4610 context.arg = undefined; 4611 maybeInvokeDelegate(delegate, context); 4612 4613 if (context.method === 'throw') { 4614 // If maybeInvokeDelegate(context) changed context.method from 4615 // "return" to "throw", let that override the TypeError below. 4616 return ContinueSentinel; 4617 } 4618 } 4619 4620 context.method = 'throw'; 4621 context.arg = new TypeError( 4622 "The iterator does not provide a 'throw' method" 4623 ); 4624 } 4625 4626 return ContinueSentinel; 4627 } 4628 4629 var record = tryCatch(method, delegate.iterator, context.arg); 4630 4631 if (record.type === 'throw') { 4632 context.method = 'throw'; 4633 context.arg = record.arg; 4634 context.delegate = null; 4635 return ContinueSentinel; 4636 } 4637 4638 var info = record.arg; 4639 4640 if (!info) { 4641 context.method = 'throw'; 4642 context.arg = new TypeError('iterator result is not an object'); 4643 context.delegate = null; 4644 return ContinueSentinel; 4645 } 4646 4647 if (info.done) { 4648 // Assign the result of the finished delegate to the temporary 4649 // variable specified by delegate.resultName (see delegateYield). 4650 context[delegate.resultName] = info.value; 4651 4652 // Resume execution at the desired location (see delegateYield). 4653 context.next = delegate.nextLoc; 4654 4655 // If context.method was "throw" but the delegate handled the 4656 // exception, let the outer generator proceed normally. If 4657 // context.method was "next", forget context.arg since it has been 4658 // "consumed" by the delegate iterator. If context.method was 4659 // "return", allow the original .return call to continue in the 4660 // outer generator. 4661 if (context.method !== 'return') { 4662 context.method = 'next'; 4663 context.arg = undefined; 4664 } 4665 } else { 4666 // Re-yield the result returned by the delegate method. 4667 return info; 4668 } 4669 4670 // The delegate iterator is finished, so forget it and continue with 4671 // the outer generator. 4672 context.delegate = null; 4673 return ContinueSentinel; 4674 } 4675 4676 // Define Generator.prototype.{next,throw,return} in terms of the 4677 // unified ._invoke helper method. 4678 defineIteratorMethods(Gp); 4679 4680 define(Gp, toStringTagSymbol, 'Generator'); 4681 4682 // A Generator should always return itself as the iterator object when the 4683 // @@iterator function is called on it. Some browsers' implementations of the 4684 // iterator prototype chain incorrectly implement this, causing the Generator 4685 // object to not be returned from this call. This ensures that doesn't happen. 4686 // See https://github.com/facebook/regenerator/issues/274 for more details. 4687 define(Gp, iteratorSymbol, function () { 4688 return this; 4689 }); 4690 4691 define(Gp, 'toString', function () { 4692 return '[object Generator]'; 4693 }); 4694 4695 function pushTryEntry(locs) { 4696 var entry = { tryLoc: locs[0] }; 4697 4698 if (1 in locs) { 4699 entry.catchLoc = locs[1]; 4700 } 4701 4702 if (2 in locs) { 4703 entry.finallyLoc = locs[2]; 4704 entry.afterLoc = locs[3]; 4705 } 4706 4707 this.tryEntries.push(entry); 4708 } 4709 4710 function resetTryEntry(entry) { 4711 var record = entry.completion || {}; 4712 record.type = 'normal'; 4713 delete record.arg; 4714 entry.completion = record; 4715 } 4716 4717 function Context(tryLocsList) { 4718 // The root entry object (effectively a try statement without a catch 4719 // or a finally block) gives us a place to store values thrown from 4720 // locations where there is no enclosing try statement. 4721 this.tryEntries = [{ tryLoc: 'root' }]; 4722 tryLocsList.forEach(pushTryEntry, this); 4723 this.reset(true); 4724 } 4725 4726 exports.keys = function (object) { 4727 var keys = []; 4728 for (var key in object) { 4729 keys.push(key); 4730 } 4731 keys.reverse(); 4732 4733 // Rather than returning an object with a next method, we keep 4734 // things simple and return the next function itself. 4735 return function next() { 4736 while (keys.length) { 4737 var key = keys.pop(); 4738 if (key in object) { 4739 next.value = key; 4740 next.done = false; 4741 return next; 4742 } 4743 } 4744 4745 // To avoid creating an additional object, we just hang the .value 4746 // and .done properties off the next function object itself. This 4747 // also ensures that the minifier will not anonymize the function. 4748 next.done = true; 4749 return next; 4750 }; 4751 }; 4752 4753 function values(iterable) { 4754 if (iterable) { 4755 var iteratorMethod = iterable[iteratorSymbol]; 4756 if (iteratorMethod) { 4757 return iteratorMethod.call(iterable); 4758 } 4759 4760 if (typeof iterable.next === 'function') { 4761 return iterable; 4762 } 4763 4764 if (!isNaN(iterable.length)) { 4765 var i = -1, 4766 next = function next() { 4767 while (++i < iterable.length) { 4768 if (hasOwn.call(iterable, i)) { 4769 next.value = iterable[i]; 4770 next.done = false; 4771 return next; 4772 } 4773 } 4774 4775 next.value = undefined; 4776 next.done = true; 4777 4778 return next; 4779 }; 4780 4781 return (next.next = next); 4782 } 4783 } 4784 4785 // Return an iterator with no values. 4786 return { next: doneResult }; 4787 } 4788 exports.values = values; 4789 4790 function doneResult() { 4791 return { value: undefined, done: true }; 4792 } 4793 4794 Context.prototype = { 4795 constructor: Context, 4796 4797 reset: function (skipTempReset) { 4798 this.prev = 0; 4799 this.next = 0; 4800 // Resetting context._sent for legacy support of Babel's 4801 // function.sent implementation. 4802 this.sent = this._sent = undefined; 4803 this.done = false; 4804 this.delegate = null; 4805 4806 this.method = 'next'; 4807 this.arg = undefined; 4808 4809 this.tryEntries.forEach(resetTryEntry); 4810 4811 if (!skipTempReset) { 4812 for (var name in this) { 4813 // Not sure about the optimal order of these conditions: 4814 if ( 4815 name.charAt(0) === 't' && 4816 hasOwn.call(this, name) && 4817 !isNaN(+name.slice(1)) 4818 ) { 4819 this[name] = undefined; 4820 } 4821 } 4822 } 4823 }, 4824 4825 stop: function () { 4826 this.done = true; 4827 4828 var rootEntry = this.tryEntries[0]; 4829 var rootRecord = rootEntry.completion; 4830 if (rootRecord.type === 'throw') { 4831 throw rootRecord.arg; 4832 } 4833 4834 return this.rval; 4835 }, 4836 4837 dispatchException: function (exception) { 4838 if (this.done) { 4839 throw exception; 4840 } 4841 4842 var context = this; 4843 function handle(loc, caught) { 4844 record.type = 'throw'; 4845 record.arg = exception; 4846 context.next = loc; 4847 4848 if (caught) { 4849 // If the dispatched exception was caught by a catch block, 4850 // then let that catch block handle the exception normally. 4851 context.method = 'next'; 4852 context.arg = undefined; 4853 } 4854 4855 return !!caught; 4856 } 4857 4858 for (var i = this.tryEntries.length - 1; i >= 0; --i) { 4859 var entry = this.tryEntries[i]; 4860 var record = entry.completion; 4861 4862 if (entry.tryLoc === 'root') { 4863 // Exception thrown outside of any try block that could handle 4864 // it, so set the completion value of the entire function to 4865 // throw the exception. 4866 return handle('end'); 4867 } 4868 4869 if (entry.tryLoc <= this.prev) { 4870 var hasCatch = hasOwn.call(entry, 'catchLoc'); 4871 var hasFinally = hasOwn.call(entry, 'finallyLoc'); 4872 4873 if (hasCatch && hasFinally) { 4874 if (this.prev < entry.catchLoc) { 4875 return handle(entry.catchLoc, true); 4876 } else if (this.prev < entry.finallyLoc) { 4877 return handle(entry.finallyLoc); 4878 } 4879 } else if (hasCatch) { 4880 if (this.prev < entry.catchLoc) { 4881 return handle(entry.catchLoc, true); 4882 } 4883 } else if (hasFinally) { 4884 if (this.prev < entry.finallyLoc) { 4885 return handle(entry.finallyLoc); 4886 } 4887 } else { 4888 throw new Error('try statement without catch or finally'); 4889 } 4890 } 4891 } 4892 }, 4893 4894 abrupt: function (type, arg) { 4895 for (var i = this.tryEntries.length - 1; i >= 0; --i) { 4896 var entry = this.tryEntries[i]; 4897 if ( 4898 entry.tryLoc <= this.prev && 4899 hasOwn.call(entry, 'finallyLoc') && 4900 this.prev < entry.finallyLoc 4901 ) { 4902 var finallyEntry = entry; 4903 break; 4904 } 4905 } 4906 4907 if ( 4908 finallyEntry && 4909 (type === 'break' || type === 'continue') && 4910 finallyEntry.tryLoc <= arg && 4911 arg <= finallyEntry.finallyLoc 4912 ) {
vendor: 4,502 bytes, lines 4913-5018
4913 // Ignore the finally entry if control is not jumping to a 4914 // location outside the try/catch block. 4915 finallyEntry = null; 4916 } 4917 4918 var record = finallyEntry ? finallyEntry.completion : {}; 4919 record.type = type; 4920 record.arg = arg; 4921 4922 if (finallyEntry) { 4923 this.method = 'next'; 4924 this.next = finallyEntry.finallyLoc; 4925 return ContinueSentinel; 4926 } 4927 4928 return this.complete(record); 4929 }, 4930 4931 complete: function (record, afterLoc) { 4932 if (record.type === 'throw') { 4933 throw record.arg; 4934 } 4935 4936 if (record.type === 'break' || record.type === 'continue') { 4937 this.next = record.arg; 4938 } else if (record.type === 'return') { 4939 this.rval = this.arg = record.arg; 4940 this.method = 'return'; 4941 this.next = 'end'; 4942 } else if (record.type === 'normal' && afterLoc) { 4943 this.next = afterLoc; 4944 } 4945 4946 return ContinueSentinel; 4947 }, 4948 4949 finish: function (finallyLoc) { 4950 for (var i = this.tryEntries.length - 1; i >= 0; --i) { 4951 var entry = this.tryEntries[i]; 4952 if (entry.finallyLoc === finallyLoc) { 4953 this.complete(entry.completion, entry.afterLoc); 4954 resetTryEntry(entry); 4955 return ContinueSentinel; 4956 } 4957 } 4958 }, 4959 4960 catch: function (tryLoc) { 4961 for (var i = this.tryEntries.length - 1; i >= 0; --i) { 4962 var entry = this.tryEntries[i]; 4963 if (entry.tryLoc === tryLoc) { 4964 var record = entry.completion; 4965 if (record.type === 'throw') { 4966 var thrown = record.arg; 4967 resetTryEntry(entry); 4968 } 4969 return thrown; 4970 } 4971 } 4972 4973 // The context.catch method must only be called with a location 4974 // argument that corresponds to a known catch block. 4975 throw new Error('illegal catch attempt'); 4976 }, 4977 4978 delegateYield: function (iterable, resultName, nextLoc) { 4979 this.delegate = { 4980 iterator: values(iterable), 4981 resultName: resultName, 4982 nextLoc: nextLoc, 4983 }; 4984 4985 if (this.method === 'next') { 4986 // Deliberately forget the last sent value so that we don't 4987 // accidentally pass it on to the delegate. 4988 this.arg = undefined; 4989 } 4990 4991 return ContinueSentinel; 4992 }, 4993 }; 4994 4995 // Regardless of whether this script is executing as a CommonJS module 4996 // or not, return the runtime object so that we can declare the variable 4997 // regeneratorRuntime in the outer scope, which allows this module to be 4998 // injected easily by `bin/regenerator --include-runtime script.js`. 4999 return exports; 5000 })( 5001 // If this script is executing as a CommonJS module, use module.exports 5002 // as the regeneratorRuntime namespace. Otherwise create a new empty 5003 // object. Either way, the resulting object will be used to initialize 5004 // the regeneratorRuntime variable at the top of this file. 5005 true ? module.exports : undefined 5006 ); 5007 5008 try { 5009 regeneratorRuntime = runtime; 5010 } catch (accidentalStrictMode) { 5011 // This module should not be running in strict mode, so the above 5012 // assignment should always work unless something is misconfigured. Just 5013 // in case runtime.js accidentally runs in strict mode, in modern engines 5014 // we can explicitly access globalThis. In older engines we can escape 5015 // strict mode using a global Function call. This could conceivably fail 5016 // if a Content Security Policy forbids using Function, but in that case 5017 // the proper solution is to fix the accidental strict mode problem. If 5018 // you've misconfigured your bundler to force strict mode and applied a
vendor: 27,101 bytes, lines 5019-5771
5019 // CSP to forbid Function, and you're not willing to fix either of those 5020 // problems, please detail your unique predicament in a GitHub issue. 5021 if (typeof globalThis === 'object') { 5022 globalThis.regeneratorRuntime = runtime; 5023 } else { 5024 Function('r', 'regeneratorRuntime = r')(runtime); 5025 } 5026 } 5027 5028 /***/ 5029 }, 5030 5031 /***/ '990b': /***/ function (module, exports, __webpack_require__) { 5032 // all object keys, includes non-enumerable and symbols 5033 var gOPN = __webpack_require__('9093'); 5034 var gOPS = __webpack_require__('2621'); 5035 var anObject = __webpack_require__('cb7c'); 5036 var Reflect = __webpack_require__('7726').Reflect; 5037 module.exports = 5038 (Reflect && Reflect.ownKeys) || 5039 function ownKeys(it) { 5040 var keys = gOPN.f(anObject(it)); 5041 var getSymbols = gOPS.f; 5042 return getSymbols ? keys.concat(getSymbols(it)) : keys; 5043 }; 5044 5045 /***/ 5046 }, 5047 5048 /***/ '9aa9': /***/ function (module, exports) { 5049 exports.f = Object.getOwnPropertySymbols; 5050 5051 /***/ 5052 }, 5053 5054 /***/ '9b43': /***/ function (module, exports, __webpack_require__) { 5055 // optional / simple context binding 5056 var aFunction = __webpack_require__('d8e8'); 5057 module.exports = function (fn, that, length) { 5058 aFunction(fn); 5059 if (that === undefined) return fn; 5060 switch (length) { 5061 case 1: 5062 return function (a) { 5063 return fn.call(that, a); 5064 }; 5065 case 2: 5066 return function (a, b) { 5067 return fn.call(that, a, b); 5068 }; 5069 case 3: 5070 return function (a, b, c) { 5071 return fn.call(that, a, b, c); 5072 }; 5073 } 5074 return function (/* ...args */) { 5075 return fn.apply(that, arguments); 5076 }; 5077 }; 5078 5079 /***/ 5080 }, 5081 5082 /***/ '9c6c': /***/ function (module, exports, __webpack_require__) { 5083 // 22.1.3.31 Array.prototype[@@unscopables] 5084 var UNSCOPABLES = __webpack_require__('2b4c')('unscopables'); 5085 var ArrayProto = Array.prototype; 5086 if (ArrayProto[UNSCOPABLES] == undefined) 5087 __webpack_require__('32e9')(ArrayProto, UNSCOPABLES, {}); 5088 module.exports = function (key) { 5089 ArrayProto[UNSCOPABLES][key] = true; 5090 }; 5091 5092 /***/ 5093 }, 5094 5095 /***/ '9def': /***/ function (module, exports, __webpack_require__) { 5096 // 7.1.15 ToLength 5097 var toInteger = __webpack_require__('4588'); 5098 var min = Math.min; 5099 module.exports = function (it) { 5100 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 5101 }; 5102 5103 /***/ 5104 }, 5105 5106 /***/ '9e1e': /***/ function (module, exports, __webpack_require__) { 5107 // Thank's IE8 for his funny defineProperty 5108 module.exports = !__webpack_require__('79e5')(function () { 5109 return ( 5110 Object.defineProperty({}, 'a', { 5111 get: function () { 5112 return 7; 5113 }, 5114 }).a != 7 5115 ); 5116 }); 5117 5118 /***/ 5119 }, 5120 5121 /***/ a159: /***/ function (module, exports, __webpack_require__) { 5122 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 5123 var anObject = __webpack_require__('e4ae'); 5124 var dPs = __webpack_require__('7e90'); 5125 var enumBugKeys = __webpack_require__('1691'); 5126 var IE_PROTO = __webpack_require__('5559')('IE_PROTO'); 5127 var Empty = function () { 5128 /* empty */ 5129 }; 5130 var PROTOTYPE = 'prototype'; 5131 5132 // Create object with fake `null` prototype: use iframe Object with cleared prototype 5133 var createDict = function () { 5134 // Thrash, waste and sodomy: IE GC bug 5135 var iframe = __webpack_require__('1ec9')('iframe'); 5136 var i = enumBugKeys.length; 5137 var lt = '<'; 5138 var gt = '>'; 5139 var iframeDocument; 5140 iframe.style.display = 'none'; 5141 __webpack_require__('32fc').appendChild(iframe); 5142 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 5143 // createDict = iframe.contentWindow.Object; 5144 // html.removeChild(iframe); 5145 iframeDocument = iframe.contentWindow.document; 5146 iframeDocument.open(); 5147 iframeDocument.write( 5148 lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt 5149 ); 5150 iframeDocument.close(); 5151 createDict = iframeDocument.F; 5152 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 5153 return createDict(); 5154 }; 5155 5156 module.exports = 5157 Object.create || 5158 function create(O, Properties) { 5159 var result; 5160 if (O !== null) { 5161 Empty[PROTOTYPE] = anObject(O); 5162 result = new Empty(); 5163 Empty[PROTOTYPE] = null; 5164 // add "__proto__" for Object.getPrototypeOf polyfill 5165 result[IE_PROTO] = O; 5166 } else result = createDict(); 5167 return Properties === undefined 5168 ? result 5169 : dPs(result, Properties); 5170 }; 5171 5172 /***/ 5173 }, 5174 5175 /***/ a22a: /***/ function (module, exports, __webpack_require__) { 5176 var ctx = __webpack_require__('d864'); 5177 var call = __webpack_require__('b0dc'); 5178 var isArrayIter = __webpack_require__('3702'); 5179 var anObject = __webpack_require__('e4ae'); 5180 var toLength = __webpack_require__('b447'); 5181 var getIterFn = __webpack_require__('7cd6'); 5182 var BREAK = {}; 5183 var RETURN = {}; 5184 var exports = (module.exports = function ( 5185 iterable, 5186 entries, 5187 fn, 5188 that, 5189 ITERATOR 5190 ) { 5191 var iterFn = ITERATOR 5192 ? function () { 5193 return iterable; 5194 } 5195 : getIterFn(iterable); 5196 var f = ctx(fn, that, entries ? 2 : 1); 5197 var index = 0; 5198 var length, step, iterator, result; 5199 if (typeof iterFn != 'function') 5200 throw TypeError(iterable + ' is not iterable!'); 5201 // fast case for arrays with default iterator 5202 if (isArrayIter(iterFn)) 5203 for ( 5204 length = toLength(iterable.length); 5205 length > index; 5206 index++ 5207 ) { 5208 result = entries 5209 ? f(anObject((step = iterable[index]))[0], step[1]) 5210 : f(iterable[index]); 5211 if (result === BREAK || result === RETURN) return result; 5212 } 5213 else 5214 for ( 5215 iterator = iterFn.call(iterable); 5216 !(step = iterator.next()).done; 5217 5218 ) { 5219 result = call(iterator, f, step.value, entries); 5220 if (result === BREAK || result === RETURN) return result; 5221 } 5222 }); 5223 exports.BREAK = BREAK; 5224 exports.RETURN = RETURN; 5225 5226 /***/ 5227 }, 5228 5229 /***/ a745: /***/ function (module, exports, __webpack_require__) { 5230 module.exports = __webpack_require__('f410'); 5231 5232 /***/ 5233 }, 5234 5235 /***/ aa77: /***/ function (module, exports, __webpack_require__) { 5236 var $export = __webpack_require__('5ca1'); 5237 var defined = __webpack_require__('be13'); 5238 var fails = __webpack_require__('79e5'); 5239 var spaces = __webpack_require__('fdef'); 5240 var space = '[' + spaces + ']'; 5241 var non = '\u200b\u0085'; 5242 var ltrim = RegExp('^' + space + space + '*'); 5243 var rtrim = RegExp(space + space + '*$'); 5244 5245 var exporter = function (KEY, exec, ALIAS) { 5246 var exp = {}; 5247 var FORCE = fails(function () { 5248 return !!spaces[KEY]() || non[KEY]() != non; 5249 }); 5250 var fn = (exp[KEY] = FORCE ? exec(trim) : spaces[KEY]); 5251 if (ALIAS) exp[ALIAS] = fn; 5252 $export($export.P + $export.F * FORCE, 'String', exp); 5253 }; 5254 5255 // 1 -> String#trimLeft 5256 // 2 -> String#trimRight 5257 // 3 -> String#trim 5258 var trim = (exporter.trim = function (string, TYPE) { 5259 string = String(defined(string)); 5260 if (TYPE & 1) string = string.replace(ltrim, ''); 5261 if (TYPE & 2) string = string.replace(rtrim, ''); 5262 return string; 5263 }); 5264 5265 module.exports = exporter; 5266 5267 /***/ 5268 }, 5269 5270 /***/ aae3: /***/ function (module, exports, __webpack_require__) { 5271 // 7.2.8 IsRegExp(argument) 5272 var isObject = __webpack_require__('d3f4'); 5273 var cof = __webpack_require__('2d95'); 5274 var MATCH = __webpack_require__('2b4c')('match'); 5275 module.exports = function (it) { 5276 var isRegExp; 5277 return ( 5278 isObject(it) && 5279 ((isRegExp = it[MATCH]) !== undefined 5280 ? !!isRegExp 5281 : cof(it) == 'RegExp') 5282 ); 5283 }; 5284 5285 /***/ 5286 }, 5287 5288 /***/ aba2: /***/ function (module, exports, __webpack_require__) { 5289 var global = __webpack_require__('e53d'); 5290 var macrotask = __webpack_require__('4178').set; 5291 var Observer = 5292 global.MutationObserver || global.WebKitMutationObserver; 5293 var process = global.process; 5294 var Promise = global.Promise; 5295 var isNode = __webpack_require__('6b4c')(process) == 'process'; 5296 5297 module.exports = function () { 5298 var head, last, notify; 5299 5300 var flush = function () { 5301 var parent, fn; 5302 if (isNode && (parent = process.domain)) parent.exit(); 5303 while (head) { 5304 fn = head.fn; 5305 head = head.next; 5306 try { 5307 fn(); 5308 } catch (e) { 5309 if (head) notify(); 5310 else last = undefined; 5311 throw e; 5312 } 5313 } 5314 last = undefined; 5315 if (parent) parent.enter(); 5316 }; 5317 5318 // Node.js 5319 if (isNode) { 5320 notify = function () { 5321 process.nextTick(flush); 5322 }; 5323 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 5324 } else if ( 5325 Observer && 5326 !(global.navigator && global.navigator.standalone) 5327 ) { 5328 var toggle = true; 5329 var node = document.createTextNode(''); 5330 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new 5331 notify = function () { 5332 node.data = toggle = !toggle; 5333 }; 5334 // environments with maybe non-completely correct, but existent Promise 5335 } else if (Promise && Promise.resolve) { 5336 // Promise.resolve without an argument throws an error in LG WebOS 2 5337 var promise = Promise.resolve(undefined); 5338 notify = function () { 5339 promise.then(flush); 5340 }; 5341 // for other environments - macrotask based on: 5342 // - setImmediate 5343 // - MessageChannel 5344 // - window.postMessag 5345 // - onreadystatechange 5346 // - setTimeout 5347 } else { 5348 notify = function () { 5349 // strange IE + webpack dev server bug - use .call(global) 5350 macrotask.call(global, flush); 5351 }; 5352 } 5353 5354 return function (fn) { 5355 var task = { fn: fn, next: undefined }; 5356 if (last) last.next = task; 5357 if (!head) { 5358 head = task; 5359 notify(); 5360 } 5361 last = task; 5362 }; 5363 }; 5364 5365 /***/ 5366 }, 5367 5368 /***/ ac6a: /***/ function (module, exports, __webpack_require__) { 5369 var $iterators = __webpack_require__('cadf'); 5370 var getKeys = __webpack_require__('0d58'); 5371 var redefine = __webpack_require__('2aba'); 5372 var global = __webpack_require__('7726'); 5373 var hide = __webpack_require__('32e9'); 5374 var Iterators = __webpack_require__('84f2'); 5375 var wks = __webpack_require__('2b4c'); 5376 var ITERATOR = wks('iterator'); 5377 var TO_STRING_TAG = wks('toStringTag'); 5378 var ArrayValues = Iterators.Array; 5379 5380 var DOMIterables = { 5381 CSSRuleList: true, // TODO: Not spec compliant, should be false. 5382 CSSStyleDeclaration: false, 5383 CSSValueList: false, 5384 ClientRectList: false, 5385 DOMRectList: false, 5386 DOMStringList: false, 5387 DOMTokenList: true, 5388 DataTransferItemList: false, 5389 FileList: false, 5390 HTMLAllCollection: false, 5391 HTMLCollection: false, 5392 HTMLFormElement: false, 5393 HTMLSelectElement: false, 5394 MediaList: true, // TODO: Not spec compliant, should be false. 5395 MimeTypeArray: false, 5396 NamedNodeMap: false, 5397 NodeList: true, 5398 PaintRequestList: false, 5399 Plugin: false, 5400 PluginArray: false, 5401 SVGLengthList: false, 5402 SVGNumberList: false, 5403 SVGPathSegList: false, 5404 SVGPointList: false, 5405 SVGStringList: false, 5406 SVGTransformList: false, 5407 SourceBufferList: false, 5408 StyleSheetList: true, // TODO: Not spec compliant, should be false. 5409 TextTrackCueList: false, 5410 TextTrackList: false, 5411 TouchList: false, 5412 }; 5413 5414 for ( 5415 var collections = getKeys(DOMIterables), i = 0; 5416 i < collections.length; 5417 i++ 5418 ) { 5419 var NAME = collections[i]; 5420 var explicit = DOMIterables[NAME]; 5421 var Collection = global[NAME]; 5422 var proto = Collection && Collection.prototype; 5423 var key; 5424 if (proto) { 5425 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 5426 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 5427 Iterators[NAME] = ArrayValues; 5428 if (explicit) 5429 for (key in $iterators) 5430 if (!proto[key]) redefine(proto, key, $iterators[key], true); 5431 } 5432 } 5433 5434 /***/ 5435 }, 5436 5437 /***/ aebd: /***/ function (module, exports) { 5438 module.exports = function (bitmap, value) { 5439 return { 5440 enumerable: !(bitmap & 1), 5441 configurable: !(bitmap & 2), 5442 writable: !(bitmap & 4), 5443 value: value, 5444 }; 5445 }; 5446 5447 /***/ 5448 }, 5449 5450 /***/ b0dc: /***/ function (module, exports, __webpack_require__) { 5451 // call something on iterator step with safe closing on error 5452 var anObject = __webpack_require__('e4ae'); 5453 module.exports = function (iterator, fn, value, entries) { 5454 try { 5455 return entries ? fn(anObject(value)[0], value[1]) : fn(value); 5456 // 7.4.6 IteratorClose(iterator, completion) 5457 } catch (e) { 5458 var ret = iterator['return']; 5459 if (ret !== undefined) anObject(ret.call(iterator)); 5460 throw e; 5461 } 5462 }; 5463 5464 /***/ 5465 }, 5466 5467 /***/ b447: /***/ function (module, exports, __webpack_require__) { 5468 // 7.1.15 ToLength 5469 var toInteger = __webpack_require__('3a38'); 5470 var min = Math.min; 5471 module.exports = function (it) { 5472 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 5473 }; 5474 5475 /***/ 5476 }, 5477 5478 /***/ b8e3: /***/ function (module, exports) { 5479 module.exports = true; 5480 5481 /***/ 5482 }, 5483 5484 /***/ bc13: /***/ function (module, exports, __webpack_require__) { 5485 var global = __webpack_require__('e53d'); 5486 var navigator = global.navigator; 5487 5488 module.exports = (navigator && navigator.userAgent) || ''; 5489 5490 /***/ 5491 }, 5492 5493 /***/ be13: /***/ function (module, exports) { 5494 // 7.2.1 RequireObjectCoercible(argument) 5495 module.exports = function (it) { 5496 if (it == undefined) throw TypeError("Can't call method on " + it); 5497 return it; 5498 }; 5499 5500 /***/ 5501 }, 5502 5503 /***/ bf0b: /***/ function (module, exports, __webpack_require__) { 5504 var pIE = __webpack_require__('355d'); 5505 var createDesc = __webpack_require__('aebd'); 5506 var toIObject = __webpack_require__('36c3'); 5507 var toPrimitive = __webpack_require__('1bc3'); 5508 var has = __webpack_require__('07e3'); 5509 var IE8_DOM_DEFINE = __webpack_require__('794b'); 5510 var gOPD = Object.getOwnPropertyDescriptor; 5511 5512 exports.f = __webpack_require__('8e60') 5513 ? gOPD 5514 : function getOwnPropertyDescriptor(O, P) { 5515 O = toIObject(O); 5516 P = toPrimitive(P, true); 5517 if (IE8_DOM_DEFINE) 5518 try { 5519 return gOPD(O, P); 5520 } catch (e) { 5521 /* empty */ 5522 } 5523 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 5524 }; 5525 5526 /***/ 5527 }, 5528 5529 /***/ c207: /***/ function (module, exports) { 5530 /***/ 5531 }, 5532 5533 /***/ c366: /***/ function (module, exports, __webpack_require__) { 5534 // false -> Array#indexOf 5535 // true -> Array#includes 5536 var toIObject = __webpack_require__('6821'); 5537 var toLength = __webpack_require__('9def'); 5538 var toAbsoluteIndex = __webpack_require__('77f1'); 5539 module.exports = function (IS_INCLUDES) { 5540 return function ($this, el, fromIndex) { 5541 var O = toIObject($this); 5542 var length = toLength(O.length); 5543 var index = toAbsoluteIndex(fromIndex, length); 5544 var value; 5545 // Array#includes uses SameValueZero equality algorithm 5546 // eslint-disable-next-line no-self-compare 5547 if (IS_INCLUDES && el != el) 5548 while (length > index) { 5549 value = O[index++]; 5550 // eslint-disable-next-line no-self-compare 5551 if (value != value) return true; 5552 // Array#indexOf ignores holes, Array#includes - not 5553 } 5554 else 5555 for (; length > index; index++) 5556 if (IS_INCLUDES || index in O) { 5557 if (O[index] === el) return IS_INCLUDES || index || 0; 5558 } 5559 return !IS_INCLUDES && -1; 5560 }; 5561 }; 5562 5563 /***/ 5564 }, 5565 5566 /***/ c367: /***/ function (module, exports, __webpack_require__) { 5567 'use strict'; 5568 5569 var addToUnscopables = __webpack_require__('8436'); 5570 var step = __webpack_require__('50ed'); 5571 var Iterators = __webpack_require__('481b'); 5572 var toIObject = __webpack_require__('36c3'); 5573 5574 // 22.1.3.4 Array.prototype.entries() 5575 // 22.1.3.13 Array.prototype.keys() 5576 // 22.1.3.29 Array.prototype.values() 5577 // 22.1.3.30 Array.prototype[@@iterator]() 5578 module.exports = __webpack_require__('30f1')( 5579 Array, 5580 'Array', 5581 function (iterated, kind) { 5582 this._t = toIObject(iterated); // target 5583 this._i = 0; // next index 5584 this._k = kind; // kind 5585 // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 5586 }, 5587 function () { 5588 var O = this._t; 5589 var kind = this._k; 5590 var index = this._i++; 5591 if (!O || index >= O.length) { 5592 this._t = undefined; 5593 return step(1); 5594 } 5595 if (kind == 'keys') return step(0, index); 5596 if (kind == 'values') return step(0, O[index]); 5597 return step(0, [index, O[index]]); 5598 }, 5599 'values' 5600 ); 5601 5602 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 5603 Iterators.Arguments = Iterators.Array; 5604 5605 addToUnscopables('keys'); 5606 addToUnscopables('values'); 5607 addToUnscopables('entries'); 5608 5609 /***/ 5610 }, 5611 5612 /***/ c3a1: /***/ function (module, exports, __webpack_require__) { 5613 // 19.1.2.14 / 15.2.3.14 Object.keys(O) 5614 var $keys = __webpack_require__('e6f3'); 5615 var enumBugKeys = __webpack_require__('1691'); 5616 5617 module.exports = 5618 Object.keys || 5619 function keys(O) { 5620 return $keys(O, enumBugKeys); 5621 }; 5622 5623 /***/ 5624 }, 5625 5626 /***/ c3b0: /***/ function (module, exports, __webpack_require__) { 5627 'use strict'; 5628 5629 var __importDefault = 5630 (this && this.__importDefault) || 5631 function (mod) { 5632 return mod && mod.__esModule ? mod : { default: mod }; 5633 }; 5634 Object.defineProperty(exports, '__esModule', { value: true }); 5635 const _constantes_1 = __importDefault(__webpack_require__('0750')); 5636 exports.default = (color) => { 5637 if (!color) 5638 throw new Error('color-name-to-hex: No color name provided'); 5639 const colorFound = _constantes_1.default[color.toLowerCase()]; 5640 if (typeof colorFound !== 'undefined') return colorFound; 5641 throw new Error(`No hex found for ${color}`); 5642 }; 5643 //# sourceMappingURL=index.js.map 5644 5645 /***/ 5646 }, 5647 5648 /***/ c50b: /***/ function (module, exports, __webpack_require__) { 5649 // extracted by mini-css-extract-plugin 5650 /***/ 5651 }, 5652 5653 /***/ c5f6: /***/ function (module, exports, __webpack_require__) { 5654 'use strict'; 5655 5656 var global = __webpack_require__('7726'); 5657 var has = __webpack_require__('69a8'); 5658 var cof = __webpack_require__('2d95'); 5659 var inheritIfRequired = __webpack_require__('5dbc'); 5660 var toPrimitive = __webpack_require__('6a99'); 5661 var fails = __webpack_require__('79e5'); 5662 var gOPN = __webpack_require__('9093').f; 5663 var gOPD = __webpack_require__('11e9').f; 5664 var dP = __webpack_require__('86cc').f; 5665 var $trim = __webpack_require__('aa77').trim; 5666 var NUMBER = 'Number'; 5667 var $Number = global[NUMBER]; 5668 var Base = $Number; 5669 var proto = $Number.prototype; 5670 // Opera ~12 has broken Object#toString 5671 var BROKEN_COF = cof(__webpack_require__('2aeb')(proto)) == NUMBER; 5672 var TRIM = 'trim' in String.prototype; 5673 5674 // 7.1.3 ToNumber(argument) 5675 var toNumber = function (argument) { 5676 var it = toPrimitive(argument, false); 5677 if (typeof it == 'string' && it.length > 2) { 5678 it = TRIM ? it.trim() : $trim(it, 3); 5679 var first = it.charCodeAt(0); 5680 var third, radix, maxCode; 5681 if (first === 43 || first === 45) { 5682 third = it.charCodeAt(2); 5683 if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 5684 } else if (first === 48) { 5685 switch (it.charCodeAt(1)) { 5686 case 66: 5687 case 98: 5688 radix = 2; 5689 maxCode = 49; 5690 break; // fast equal /^0b[01]+$/i 5691 case 79: 5692 case 111: 5693 radix = 8; 5694 maxCode = 55; 5695 break; // fast equal /^0o[0-7]+$/i 5696 default: 5697 return +it; 5698 } 5699 for ( 5700 var digits = it.slice(2), i = 0, l = digits.length, code; 5701 i < l; 5702 i++ 5703 ) { 5704 code = digits.charCodeAt(i); 5705 // parseInt parses a string to a first unavailable symbol 5706 // but ToNumber should return NaN if a string contains unavailable symbols 5707 if (code < 48 || code > maxCode) return NaN; 5708 } 5709 return parseInt(digits, radix); 5710 } 5711 } 5712 return +it; 5713 }; 5714 5715 if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { 5716 $Number = function Number(value) { 5717 var it = arguments.length < 1 ? 0 : value; 5718 var that = this; 5719 return that instanceof $Number && 5720 // check on 1..constructor(foo) case 5721 (BROKEN_COF 5722 ? fails(function () { 5723 proto.valueOf.call(that); 5724 }) 5725 : cof(that) != NUMBER) 5726 ? inheritIfRequired(new Base(toNumber(it)), that, $Number) 5727 : toNumber(it); 5728 }; 5729 for ( 5730 var keys = __webpack_require__('9e1e') 5731 ? gOPN(Base) 5732 : // ES3: 5733 ( 5734 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 5735 // ES6 (in case, if modules with ES6 Number statics required before): 5736 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 5737 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' 5738 ).split(','), 5739 j = 0, 5740 key; 5741 keys.length > j; 5742 j++ 5743 ) { 5744 if (has(Base, (key = keys[j])) && !has($Number, key)) { 5745 dP($Number, key, gOPD(Base, key)); 5746 } 5747 } 5748 $Number.prototype = proto; 5749 proto.constructor = $Number; 5750 __webpack_require__('2aba')(global, NUMBER, $Number); 5751 } 5752 5753 /***/ 5754 }, 5755 5756 /***/ c69a: /***/ function (module, exports, __webpack_require__) { 5757 module.exports = 5758 !__webpack_require__('9e1e') && 5759 !__webpack_require__('79e5')(function () { 5760 return ( 5761 Object.defineProperty(__webpack_require__('230e')('div'), 'a', { 5762 get: function () { 5763 return 7; 5764 }, 5765 }).a != 7 5766 ); 5767 }); 5768 5769 /***/ 5770 }, 5771
vendor: 7,968 bytes, lines 5772-5954
5772 /***/ c8ba: /***/ function (module, exports) { 5773 var g; 5774 5775 // This works in non-strict mode 5776 g = (function () { 5777 return this; 5778 })(); 5779 5780 try { 5781 // This works if eval is allowed (see CSP) 5782 g = g || new Function('return this')(); 5783 } catch (e) { 5784 // This works if the window reference is available 5785 if (typeof window === 'object') g = window; 5786 } 5787 5788 // g can still be undefined, but nothing to do about it... 5789 // We return undefined, instead of nothing here, so it's 5790 // easier to handle this case. if(!global) { ...} 5791 5792 module.exports = g; 5793 5794 /***/ 5795 }, 5796 5797 /***/ c8bb: /***/ function (module, exports, __webpack_require__) { 5798 module.exports = __webpack_require__('54a1'); 5799 5800 /***/ 5801 }, 5802 5803 /***/ ca5a: /***/ function (module, exports) { 5804 var id = 0; 5805 var px = Math.random(); 5806 module.exports = function (key) { 5807 return 'Symbol('.concat( 5808 key === undefined ? '' : key, 5809 ')_', 5810 (++id + px).toString(36) 5811 ); 5812 }; 5813 5814 /***/ 5815 }, 5816 5817 /***/ cadf: /***/ function (module, exports, __webpack_require__) { 5818 'use strict'; 5819 5820 var addToUnscopables = __webpack_require__('9c6c'); 5821 var step = __webpack_require__('d53b'); 5822 var Iterators = __webpack_require__('84f2'); 5823 var toIObject = __webpack_require__('6821'); 5824 5825 // 22.1.3.4 Array.prototype.entries() 5826 // 22.1.3.13 Array.prototype.keys() 5827 // 22.1.3.29 Array.prototype.values() 5828 // 22.1.3.30 Array.prototype[@@iterator]() 5829 module.exports = __webpack_require__('01f9')( 5830 Array, 5831 'Array', 5832 function (iterated, kind) { 5833 this._t = toIObject(iterated); // target 5834 this._i = 0; // next index 5835 this._k = kind; // kind 5836 // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 5837 }, 5838 function () { 5839 var O = this._t; 5840 var kind = this._k; 5841 var index = this._i++; 5842 if (!O || index >= O.length) { 5843 this._t = undefined; 5844 return step(1); 5845 } 5846 if (kind == 'keys') return step(0, index); 5847 if (kind == 'values') return step(0, O[index]); 5848 return step(0, [index, O[index]]); 5849 }, 5850 'values' 5851 ); 5852 5853 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 5854 Iterators.Arguments = Iterators.Array; 5855 5856 addToUnscopables('keys'); 5857 addToUnscopables('values'); 5858 addToUnscopables('entries'); 5859 5860 /***/ 5861 }, 5862 5863 /***/ cb7c: /***/ function (module, exports, __webpack_require__) { 5864 var isObject = __webpack_require__('d3f4'); 5865 module.exports = function (it) { 5866 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 5867 return it; 5868 }; 5869 5870 /***/ 5871 }, 5872 5873 /***/ ccb9: /***/ function (module, exports, __webpack_require__) { 5874 exports.f = __webpack_require__('5168'); 5875 5876 /***/ 5877 }, 5878 5879 /***/ cd1c: /***/ function (module, exports, __webpack_require__) { 5880 // 9.4.2.3 ArraySpeciesCreate(originalArray, length) 5881 var speciesConstructor = __webpack_require__('e853'); 5882 5883 module.exports = function (original, length) { 5884 return new (speciesConstructor(original))(length); 5885 }; 5886 5887 /***/ 5888 }, 5889 5890 /***/ cd78: /***/ function (module, exports, __webpack_require__) { 5891 var anObject = __webpack_require__('e4ae'); 5892 var isObject = __webpack_require__('f772'); 5893 var newPromiseCapability = __webpack_require__('656e'); 5894 5895 module.exports = function (C, x) { 5896 anObject(C); 5897 if (isObject(x) && x.constructor === C) return x; 5898 var promiseCapability = newPromiseCapability.f(C); 5899 var resolve = promiseCapability.resolve; 5900 resolve(x); 5901 return promiseCapability.promise; 5902 }; 5903 5904 /***/ 5905 }, 5906 5907 /***/ ce10: /***/ function (module, exports, __webpack_require__) { 5908 var has = __webpack_require__('69a8'); 5909 var toIObject = __webpack_require__('6821'); 5910 var arrayIndexOf = __webpack_require__('c366')(false); 5911 var IE_PROTO = __webpack_require__('613b')('IE_PROTO'); 5912 5913 module.exports = function (object, names) { 5914 var O = toIObject(object); 5915 var i = 0; 5916 var result = []; 5917 var key; 5918 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 5919 // Don't enum bug & hidden keys 5920 while (names.length > i) 5921 if (has(O, (key = names[i++]))) { 5922 ~arrayIndexOf(result, key) || result.push(key); 5923 } 5924 return result; 5925 }; 5926 5927 /***/ 5928 }, 5929 5930 /***/ d2c8: /***/ function (module, exports, __webpack_require__) { 5931 // helper for String#{startsWith, endsWith, includes} 5932 var isRegExp = __webpack_require__('aae3'); 5933 var defined = __webpack_require__('be13'); 5934 5935 module.exports = function (that, searchString, NAME) { 5936 if (isRegExp(searchString)) 5937 throw TypeError('String#' + NAME + " doesn't accept regex!"); 5938 return String(defined(that)); 5939 }; 5940 5941 /***/ 5942 }, 5943 5944 /***/ d2d5: /***/ function (module, exports, __webpack_require__) { 5945 __webpack_require__('1654'); 5946 __webpack_require__('549b'); 5947 module.exports = __webpack_require__('584a').Array.from; 5948 5949 /***/ 5950 }, 5951 5952 /***/ d391: /***/ function (module) { 5953 module.exports = JSON.parse( 5954 '{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"90011234","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"0123456789","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"32123456","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"
59541020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"12221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"821234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}' 5955 ); 5956 5957 /***/ 5958 }, 5959 5960 /***/ d3f4: /***/ function (module, exports) { 5961 module.exports = function (it) { 5962 return typeof it === 'object' 5963 ? it !== null 5964 : typeof it === 'function'; 5965 }; 5966 5967 /***/ 5968 }, 5969 5970 /***/ d499: /***/ function ( 5971 module, 5972 __webpack_exports__, 5973 __webpack_require__ 5974 ) { 5975 'use strict'; 5976 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e59be3b4_prod_lang_scss_
5976scoped_true___WEBPACK_IMPORTED_MODULE_0__ = 5977 __webpack_require__('7f9a'); 5978 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e59be3b4_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = 5979 /*#__PURE__*/ __webpack_require__.n( 5980 _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e59be3b4_prod_lang_scss_
vendor: 4,265 bytes, lines 5980-6100
5980scoped_true___WEBPACK_IMPORTED_MODULE_0__ 5981 ); 5982 /* unused harmony reexport * */ 5983 5984 /***/ 5985 }, 5986 5987 /***/ d53b: /***/ function (module, exports) { 5988 module.exports = function (done, value) { 5989 return { value: value, done: !!done }; 5990 }; 5991 5992 /***/ 5993 }, 5994 5995 /***/ d864: /***/ function (module, exports, __webpack_require__) { 5996 // optional / simple context binding 5997 var aFunction = __webpack_require__('79aa'); 5998 module.exports = function (fn, that, length) { 5999 aFunction(fn); 6000 if (that === undefined) return fn; 6001 switch (length) { 6002 case 1: 6003 return function (a) { 6004 return fn.call(that, a); 6005 }; 6006 case 2: 6007 return function (a, b) { 6008 return fn.call(that, a, b); 6009 }; 6010 case 3: 6011 return function (a, b, c) { 6012 return fn.call(that, a, b, c); 6013 }; 6014 } 6015 return function (/* ...args */) { 6016 return fn.apply(that, arguments); 6017 }; 6018 }; 6019 6020 /***/ 6021 }, 6022 6023 /***/ d8e8: /***/ function (module, exports) { 6024 module.exports = function (it) { 6025 if (typeof it != 'function') 6026 throw TypeError(it + ' is not a function!'); 6027 return it; 6028 }; 6029 6030 /***/ 6031 }, 6032 6033 /***/ d9f6: /***/ function (module, exports, __webpack_require__) { 6034 var anObject = __webpack_require__('e4ae'); 6035 var IE8_DOM_DEFINE = __webpack_require__('794b'); 6036 var toPrimitive = __webpack_require__('1bc3'); 6037 var dP = Object.defineProperty; 6038 6039 exports.f = __webpack_require__('8e60') 6040 ? Object.defineProperty 6041 : function defineProperty(O, P, Attributes) { 6042 anObject(O); 6043 P = toPrimitive(P, true); 6044 anObject(Attributes); 6045 if (IE8_DOM_DEFINE) 6046 try { 6047 return dP(O, P, Attributes); 6048 } catch (e) { 6049 /* empty */ 6050 } 6051 if ('get' in Attributes || 'set' in Attributes) 6052 throw TypeError('Accessors not supported!'); 6053 if ('value' in Attributes) O[P] = Attributes.value; 6054 return O; 6055 }; 6056 6057 /***/ 6058 }, 6059 6060 /***/ db06: /***/ function (module, exports, __webpack_require__) { 6061 // extracted by mini-css-extract-plugin 6062 /***/ 6063 }, 6064 6065 /***/ dbdb: /***/ function (module, exports, __webpack_require__) { 6066 var core = __webpack_require__('584a'); 6067 var global = __webpack_require__('e53d'); 6068 var SHARED = '__core-js_shared__'; 6069 var store = global[SHARED] || (global[SHARED] = {}); 6070 6071 (module.exports = function (key, value) { 6072 return ( 6073 store[key] || (store[key] = value !== undefined ? value : {}) 6074 ); 6075 })('versions', []).push({ 6076 version: core.version, 6077 mode: __webpack_require__('b8e3') ? 'pure' : 'global', 6078 copyright: '© 2019 Denis Pushkarev (zloirock.ru)', 6079 }); 6080 6081 /***/ 6082 }, 6083 6084 /***/ e11e: /***/ function (module, exports) { 6085 // IE 8- don't enum bug keys 6086 module.exports = 6087 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( 6088 ',' 6089 ); 6090 6091 /***/ 6092 }, 6093 6094 /***/ e214: /***/ function ( 6095 module, 6096 __webpack_exports__, 6097 __webpack_require__ 6098 ) { 6099 'use strict'; 6100 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_19351537_prod_lang_scss_
6100scoped_true___WEBPACK_IMPORTED_MODULE_0__ = 6101 __webpack_require__('db06'); 6102 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_19351537_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = 6103 /*#__PURE__*/ __webpack_require__.n( 6104 _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_19351537_prod_lang_scss_
vendor: 4,300 bytes, lines 6104-6227
6104scoped_true___WEBPACK_IMPORTED_MODULE_0__ 6105 ); 6106 /* unused harmony reexport * */ 6107 6108 /***/ 6109 }, 6110 6111 /***/ e4ae: /***/ function (module, exports, __webpack_require__) { 6112 var isObject = __webpack_require__('f772'); 6113 module.exports = function (it) { 6114 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 6115 return it; 6116 }; 6117 6118 /***/ 6119 }, 6120 6121 /***/ e508: /***/ function ( 6122 module, 6123 __webpack_exports__, 6124 __webpack_require__ 6125 ) { 6126 'use strict'; 6127 /* WEBPACK VAR INJECTION */ (function (global) { 6128 /* unused harmony export DynamicScroller */ 6129 /* unused harmony export DynamicScrollerItem */ 6130 /* unused harmony export IdState */ 6131 /* harmony export (binding) */ __webpack_require__.d( 6132 __webpack_exports__, 6133 'a', 6134 function () { 6135 return __vue_component__; 6136 } 6137 ); 6138 /* harmony import */ var vue_resize__WEBPACK_IMPORTED_MODULE_0__ = 6139 __webpack_require__('252c'); 6140 /* harmony import */ var vue_observe_visibility__WEBPACK_IMPORTED_MODULE_1__ = 6141 __webpack_require__('85fe'); 6142 /* harmony import */ var scrollparent__WEBPACK_IMPORTED_MODULE_2__ = 6143 __webpack_require__('ed83'); 6144 /* harmony import */ var scrollparent__WEBPACK_IMPORTED_MODULE_2___default = 6145 /*#__PURE__*/ __webpack_require__.n( 6146 scrollparent__WEBPACK_IMPORTED_MODULE_2__ 6147 ); 6148 /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = 6149 __webpack_require__('8bbf'); 6150 /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = 6151 /*#__PURE__*/ __webpack_require__.n( 6152 vue__WEBPACK_IMPORTED_MODULE_3__ 6153 ); 6154 6155 var config = { 6156 itemsLimit: 1000, 6157 }; 6158 6159 function _typeof(obj) { 6160 '@babel/helpers - typeof'; 6161 6162 if ( 6163 typeof Symbol === 'function' && 6164 typeof Symbol.iterator === 'symbol' 6165 ) { 6166 _typeof = function (obj) { 6167 return typeof obj; 6168 }; 6169 } else { 6170 _typeof = function (obj) { 6171 return obj && 6172 typeof Symbol === 'function' && 6173 obj.constructor === Symbol && 6174 obj !== Symbol.prototype 6175 ? 'symbol' 6176 : typeof obj; 6177 }; 6178 } 6179 6180 return _typeof(obj); 6181 } 6182 6183 function _defineProperty(obj, key, value) { 6184 if (key in obj) { 6185 Object.defineProperty(obj, key, { 6186 value: value, 6187 enumerable: true, 6188 configurable: true, 6189 writable: true, 6190 }); 6191 } else { 6192 obj[key] = value; 6193 } 6194 6195 return obj; 6196 } 6197 6198 function ownKeys(object, enumerableOnly) { 6199 var keys = Object.keys(object); 6200 6201 if (Object.getOwnPropertySymbols) { 6202 var symbols = Object.getOwnPropertySymbols(object); 6203 if (enumerableOnly) 6204 symbols = symbols.filter(function (sym) { 6205 return Object.getOwnPropertyDescriptor(object, sym) 6206 .enumerable; 6207 }); 6208 keys.push.apply(keys, symbols); 6209 } 6210 6211 return keys; 6212 } 6213 6214 function _objectSpread2(target) { 6215 for (var i = 1; i < arguments.length; i++) { 6216 var source = arguments[i] != null ? arguments[i] : {}; 6217 6218 if (i % 2) { 6219 ownKeys(Object(source), true).forEach(function (key) { 6220 _defineProperty(target, key, source[key]); 6221 }); 6222 } else if (Object.getOwnPropertyDescriptors) { 6223 Object.defineProperties( 6224 target, 6225 Object.getOwnPropertyDescriptors(source) 6226 ); 6227 } else {
6228 ownKeys(Object(source)).forEach(function (key) { 6229 Object.defineProperty( 6230 target, 6231 key, 6232 Object.getOwnPropertyDescriptor(source, key) 6233 ); 6234 }); 6235 } 6236 } 6237 6238 return target; 6239 } 6240 6241 function _unsupportedIterableToArray(o, minLen) { 6242 if (!o) return; 6243 if (typeof o === 'string') return _arrayLikeToArray(o, minLen); 6244 var n = Object.prototype.toString.call(o).slice(8, -1); 6245 if (n === 'Object' && o.constructor) n = o.constructor.name; 6246 if (n === 'Map' || n === 'Set') return Array.from(n); 6247 if ( 6248 n === 'Arguments' || 6249 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 6250 ) 6251 return _arrayLikeToArray(o, minLen); 6252 } 6253 6254 function _arrayLikeToArray(arr, len) { 6255 if (len == null || len > arr.length) len = arr.length; 6256 6257 for (var i = 0, arr2 = new Array(len); i < len; i++) 6258 arr2[i] = arr[i]; 6259 6260 return arr2; 6261 } 6262 6263 function _createForOfIteratorHelper(o) { 6264 if (typeof Symbol === 'undefined' || o[Symbol.iterator] == null) { 6265 if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { 6266 var i = 0; 6267 6268 var F = function () {}; 6269 6270 return { 6271 s: F, 6272 n: function () { 6273 if (i >= o.length) 6274 return { 6275 done: true, 6276 }; 6277 return { 6278 done: false, 6279 value: o[i++], 6280 }; 6281 }, 6282 e: function (e) { 6283 throw e; 6284 }, 6285 f: F, 6286 }; 6287 } 6288 6289 throw new TypeError( 6290 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 6291 ); 6292 } 6293 6294 var it, 6295 normalCompletion = true, 6296 didErr = false, 6297 err; 6298 return { 6299 s: function () { 6300 it = o[Symbol.iterator](); 6301 }, 6302 n: function () { 6303 var step = it.next(); 6304 normalCompletion = step.done; 6305 return step; 6306 }, 6307 e: function (e) { 6308 didErr = true; 6309 err = e; 6310 }, 6311 f: function () { 6312 try { 6313 if (!normalCompletion && it.return != null) it.return(); 6314 } finally { 6315 if (didErr) throw err; 6316 } 6317 }, 6318 }; 6319 } 6320 6321 var props = { 6322 items: { 6323 type: Array, 6324 required: true, 6325 }, 6326 keyField: { 6327 type: String, 6328 default: 'id', 6329 }, 6330 direction: { 6331 type: String, 6332 default: 'vertical', 6333 validator: function validator(value) { 6334 return ['vertical', 'horizontal'].includes(value); 6335 }, 6336 }, 6337 }; 6338 function simpleArray() { 6339 return this.items.length && _typeof(this.items[0]) !== 'object'; 6340 } 6341 6342 var supportsPassive = false; 6343 6344 if (typeof window !== 'undefined') { 6345 supportsPassive = false; 6346 6347 try { 6348 var opts = Object.defineProperty({}, 'passive', { 6349 get: function get() { 6350 supportsPassive = true; 6351 }, 6352 }); 6353 window.addEventListener('test', null, opts); 6354 } catch (e) {} 6355 } 6356 6357 var uid = 0; 6358 var script = { 6359 name: 'RecycleScroller', 6360 components: { 6361 ResizeObserver: 6362 vue_resize__WEBPACK_IMPORTED_MODULE_0__[ 6363 /* ResizeObserver */ 'a' 6364 ], 6365 }, 6366 directives: { 6367 ObserveVisibility: 6368 vue_observe_visibility__WEBPACK_IMPORTED_MODULE_1__[ 6369 /* ObserveVisibility */ 'a' 6370 ], 6371 },
6372 props: _objectSpread2({}, props, { 6373 itemSize: { 6374 type: Number, 6375 default: null, 6376 }, 6377 minItemSize: { 6378 type: [Number, String], 6379 default: null, 6380 }, 6381 sizeField: { 6382 type: String, 6383 default: 'size', 6384 }, 6385 typeField: { 6386 type: String, 6387 default: 'type', 6388 }, 6389 buffer: { 6390 type: Number, 6391 default: 200, 6392 }, 6393 pageMode: { 6394 type: Boolean, 6395 default: false, 6396 }, 6397 prerender: { 6398 type: Number, 6399 default: 0, 6400 }, 6401 emitUpdate: { 6402 type: Boolean, 6403 default: false, 6404 }, 6405 }), 6406 data: function data() { 6407 return { 6408 pool: [], 6409 totalSize: 0, 6410 ready: false, 6411 hoverKey: null, 6412 }; 6413 }, 6414 computed: { 6415 sizes: function sizes() { 6416 if (this.itemSize === null) { 6417 var sizes = { 6418 '-1': { 6419 accumulator: 0, 6420 }, 6421 }; 6422 var items = this.items; 6423 var field = this.sizeField; 6424 var minItemSize = this.minItemSize; 6425 var computedMinSize = 10000; 6426 var accumulator = 0; 6427 var current; 6428 6429 for (var i = 0, l = items.length; i < l; i++) { 6430 current = items[i][field] || minItemSize; 6431 6432 if (current < computedMinSize) { 6433 computedMinSize = current; 6434 } 6435 6436 accumulator += current; 6437 sizes[i] = { 6438 accumulator: accumulator, 6439 size: current, 6440 }; 6441 } // eslint-disable-next-line 6442 6443 this.$_computedMinItemSize = computedMinSize; 6444 return sizes; 6445 } 6446 6447 return []; 6448 }, 6449 simpleArray: simpleArray, 6450 }, 6451 watch: { 6452 items: function items() { 6453 this.updateVisibleItems(true); 6454 }, 6455 pageMode: function pageMode() { 6456 this.applyPageMode(); 6457 this.updateVisibleItems(false); 6458 }, 6459 sizes: { 6460 handler: function handler() { 6461 this.updateVisibleItems(false); 6462 }, 6463 deep: true, 6464 }, 6465 }, 6466 created: function created() { 6467 this.$_startIndex = 0; 6468 this.$_endIndex = 0; 6469 this.$_views = new Map(); 6470 this.$_unusedViews = new Map(); 6471 this.$_scrollDirty = false; 6472 this.$_lastUpdateScrollPosition = 0; // In SSR mode, we also prerender the same number of item for the first render 6473 // to avoir mismatch between server and client templates 6474 6475 if (this.prerender) { 6476 this.$_prerender = true; 6477 this.updateVisibleItems(false); 6478 } 6479 }, 6480 mounted: function mounted() { 6481 var _this = this; 6482 6483 this.applyPageMode(); 6484 this.$nextTick(function () { 6485 // In SSR mode, render the real number of visible items 6486 _this.$_prerender = false;
vendor: 26,250 bytes, lines 6487-7175
6487 6488 _this.updateVisibleItems(true); 6489 6490 _this.ready = true; 6491 }); 6492 }, 6493 beforeDestroy: function beforeDestroy() { 6494 this.removeListeners(); 6495 }, 6496 methods: { 6497 addView: function addView(pool, index, item, key, type) { 6498 var view = { 6499 item: item, 6500 position: 0, 6501 }; 6502 var nonReactive = { 6503 id: uid++, 6504 index: index, 6505 used: true, 6506 key: key, 6507 type: type, 6508 }; 6509 Object.defineProperty(view, 'nr', { 6510 configurable: false, 6511 value: nonReactive, 6512 }); 6513 pool.push(view); 6514 return view; 6515 }, 6516 unuseView: function unuseView(view) { 6517 var fake = 6518 arguments.length > 1 && arguments[1] !== undefined 6519 ? arguments[1] 6520 : false; 6521 var unusedViews = this.$_unusedViews; 6522 var type = view.nr.type; 6523 var unusedPool = unusedViews.get(type); 6524 6525 if (!unusedPool) { 6526 unusedPool = []; 6527 unusedViews.set(type, unusedPool); 6528 } 6529 6530 unusedPool.push(view); 6531 6532 if (!fake) { 6533 view.nr.used = false; 6534 view.position = -9999; 6535 this.$_views.delete(view.nr.key); 6536 } 6537 }, 6538 handleResize: function handleResize() { 6539 this.$emit('resize'); 6540 if (this.ready) this.updateVisibleItems(false); 6541 }, 6542 handleScroll: function handleScroll(event) { 6543 var _this2 = this; 6544 6545 if (!this.$_scrollDirty) { 6546 this.$_scrollDirty = true; 6547 requestAnimationFrame(function () { 6548 _this2.$_scrollDirty = false; 6549 6550 var _this2$updateVisibleI = _this2.updateVisibleItems( 6551 false, 6552 true 6553 ), 6554 continuous = _this2$updateVisibleI.continuous; // It seems sometimes chrome doesn't fire scroll event :/ 6555 // When non continous scrolling is ending, we force a refresh 6556 6557 if (!continuous) { 6558 clearTimeout(_this2.$_refreshTimout); 6559 _this2.$_refreshTimout = setTimeout( 6560 _this2.handleScroll, 6561 100 6562 ); 6563 } 6564 }); 6565 } 6566 }, 6567 handleVisibilityChange: function handleVisibilityChange( 6568 isVisible, 6569 entry 6570 ) { 6571 var _this3 = this; 6572 6573 if (this.ready) { 6574 if ( 6575 isVisible || 6576 entry.boundingClientRect.width !== 0 || 6577 entry.boundingClientRect.height !== 0 6578 ) { 6579 this.$emit('visible'); 6580 requestAnimationFrame(function () { 6581 _this3.updateVisibleItems(false); 6582 }); 6583 } else { 6584 this.$emit('hidden'); 6585 } 6586 } 6587 }, 6588 updateVisibleItems: function updateVisibleItems(checkItem) { 6589 var checkPositionDiff = 6590 arguments.length > 1 && arguments[1] !== undefined 6591 ? arguments[1] 6592 : false; 6593 var itemSize = this.itemSize; 6594 var minItemSize = this.$_computedMinItemSize; 6595 var typeField = this.typeField; 6596 var keyField = this.simpleArray ? null : this.keyField; 6597 var items = this.items; 6598 var count = items.length; 6599 var sizes = this.sizes; 6600 var views = this.$_views; 6601 var unusedViews = this.$_unusedViews; 6602 var pool = this.pool; 6603 var startIndex, endIndex; 6604 var totalSize; 6605 6606 if (!count) { 6607 startIndex = endIndex = totalSize = 0; 6608 } else if (this.$_prerender) { 6609 startIndex = 0; 6610 endIndex = this.prerender; 6611 totalSize = null; 6612 } else { 6613 var scroll = this.getScroll(); // Skip update if use hasn't scrolled enough 6614 6615 if (checkPositionDiff) { 6616 var positionDiff = 6617 scroll.start - this.$_lastUpdateScrollPosition; 6618 if (positionDiff < 0) positionDiff = -positionDiff; 6619 6620 if ( 6621 (itemSize === null && positionDiff < minItemSize) || 6622 positionDiff < itemSize 6623 ) { 6624 return { 6625 continuous: true, 6626 }; 6627 } 6628 } 6629 6630 this.$_lastUpdateScrollPosition = scroll.start; 6631 var buffer = this.buffer; 6632 scroll.start -= buffer; 6633 scroll.end += buffer; // Variable size mode 6634 6635 if (itemSize === null) { 6636 var h; 6637 var a = 0; 6638 var b = count - 1; 6639 var i = ~~(count / 2); 6640 var oldI; // Searching for startIndex 6641 6642 do { 6643 oldI = i; 6644 h = sizes[i].accumulator; 6645 6646 if (h < scroll.start) { 6647 a = i; 6648 } else if ( 6649 i < count - 1 && 6650 sizes[i + 1].accumulator > scroll.start 6651 ) { 6652 b = i; 6653 } 6654 6655 i = ~~((a + b) / 2); 6656 } while (i !== oldI); 6657 6658 i < 0 && (i = 0); 6659 startIndex = i; // For container style 6660 6661 totalSize = sizes[count - 1].accumulator; // Searching for endIndex 6662 6663 for ( 6664 endIndex = i; 6665 endIndex < count && 6666 sizes[endIndex].accumulator < scroll.end; 6667 endIndex++ 6668 ) {} 6669 6670 if (endIndex === -1) { 6671 endIndex = items.length - 1; 6672 } else { 6673 endIndex++; // Bounds 6674 6675 endIndex > count && (endIndex = count); 6676 } 6677 } else { 6678 // Fixed size mode 6679 startIndex = ~~(scroll.start / itemSize); 6680 endIndex = Math.ceil(scroll.end / itemSize); // Bounds 6681 6682 startIndex < 0 && (startIndex = 0); 6683 endIndex > count && (endIndex = count); 6684 totalSize = count * itemSize; 6685 } 6686 } 6687 6688 if (endIndex - startIndex > config.itemsLimit) { 6689 this.itemsLimitError(); 6690 } 6691 6692 this.totalSize = totalSize; 6693 var view; 6694 var continuous = 6695 startIndex <= this.$_endIndex && 6696 endIndex >= this.$_startIndex; 6697 6698 if (this.$_continuous !== continuous) { 6699 if (continuous) { 6700 views.clear(); 6701 unusedViews.clear(); 6702 6703 for (var _i = 0, l = pool.length; _i < l; _i++) { 6704 view = pool[_i]; 6705 this.unuseView(view); 6706 } 6707 } 6708 6709 this.$_continuous = continuous; 6710 } else if (continuous) { 6711 for (var _i2 = 0, _l = pool.length; _i2 < _l; _i2++) { 6712 view = pool[_i2]; 6713 6714 if (view.nr.used) { 6715 // Update view item index 6716 if (checkItem) { 6717 view.nr.index = items.findIndex(function (item) { 6718 return keyField 6719 ? item[keyField] === view.item[keyField] 6720 : item === view.item; 6721 }); 6722 } // Check if index is still in visible range 6723 6724 if ( 6725 view.nr.index === -1 || 6726 view.nr.index < startIndex || 6727 view.nr.index >= endIndex 6728 ) { 6729 this.unuseView(view); 6730 } 6731 } 6732 } 6733 } 6734 6735 var unusedIndex = continuous ? null : new Map(); 6736 var item, type, unusedPool; 6737 var v; 6738 6739 for (var _i3 = startIndex; _i3 < endIndex; _i3++) { 6740 item = items[_i3]; 6741 var key = keyField ? item[keyField] : item; 6742 6743 if (key == null) { 6744 throw new Error( 6745 'Key is ' 6746 .concat(key, " on item (keyField is '") 6747 .concat(keyField, "')") 6748 ); 6749 } 6750 6751 view = views.get(key); 6752 6753 if (!itemSize && !sizes[_i3].size) { 6754 if (view) this.unuseView(view); 6755 continue; 6756 } // No view assigned to item 6757 6758 if (!view) { 6759 type = item[typeField]; 6760 unusedPool = unusedViews.get(type); 6761 6762 if (continuous) { 6763 // Reuse existing view 6764 if (unusedPool && unusedPool.length) { 6765 view = unusedPool.pop(); 6766 view.item = item; 6767 view.nr.used = true; 6768 view.nr.index = _i3; 6769 view.nr.key = key; 6770 view.nr.type = type; 6771 } else { 6772 view = this.addView(pool, _i3, item, key, type); 6773 } 6774 } else { 6775 // Use existing view 6776 // We don't care if they are already used 6777 // because we are not in continous scrolling 6778 v = unusedIndex.get(type) || 0; 6779 6780 if (!unusedPool || v >= unusedPool.length) { 6781 view = this.addView(pool, _i3, item, key, type); 6782 this.unuseView(view, true); 6783 unusedPool = unusedViews.get(type); 6784 } 6785 6786 view = unusedPool[v]; 6787 view.item = item; 6788 view.nr.used = true; 6789 view.nr.index = _i3; 6790 view.nr.key = key; 6791 view.nr.type = type; 6792 unusedIndex.set(type, v + 1); 6793 v++; 6794 } 6795 6796 views.set(key, view); 6797 } else { 6798 view.nr.used = true; 6799 view.item = item; 6800 } // Update position 6801 6802 if (itemSize === null) { 6803 view.position = sizes[_i3 - 1].accumulator; 6804 } else { 6805 view.position = _i3 * itemSize; 6806 } 6807 } 6808 6809 this.$_startIndex = startIndex; 6810 this.$_endIndex = endIndex; 6811 if (this.emitUpdate) 6812 this.$emit('update', startIndex, endIndex); // After the user has finished scrolling 6813 // Sort views so text selection is correct 6814 6815 clearTimeout(this.$_sortTimer); 6816 this.$_sortTimer = setTimeout(this.sortViews, 300); 6817 return { 6818 continuous: continuous, 6819 }; 6820 }, 6821 getListenerTarget: function getListenerTarget() { 6822 var target = 6823 scrollparent__WEBPACK_IMPORTED_MODULE_2___default()( 6824 this.$el 6825 ); // Fix global scroll target for Chrome and Safari 6826 6827 if ( 6828 window.document && 6829 (target === window.document.documentElement || 6830 target === window.document.body) 6831 ) { 6832 target = window; 6833 } 6834 6835 return target; 6836 }, 6837 getScroll: function getScroll() { 6838 var el = this.$el, 6839 direction = this.direction; 6840 var isVertical = direction === 'vertical'; 6841 var scrollState; 6842 6843 if (this.pageMode) { 6844 var bounds = el.getBoundingClientRect(); 6845 var boundsSize = isVertical ? bounds.height : bounds.width; 6846 var start = -(isVertical ? bounds.top : bounds.left); 6847 var size = isVertical 6848 ? window.innerHeight 6849 : window.innerWidth; 6850 6851 if (start < 0) { 6852 size += start; 6853 start = 0; 6854 } 6855 6856 if (start + size > boundsSize) { 6857 size = boundsSize - start; 6858 } 6859 6860 scrollState = { 6861 start: start, 6862 end: start + size, 6863 }; 6864 } else if (isVertical) { 6865 scrollState = { 6866 start: el.scrollTop, 6867 end: el.scrollTop + el.clientHeight, 6868 }; 6869 } else { 6870 scrollState = { 6871 start: el.scrollLeft, 6872 end: el.scrollLeft + el.clientWidth, 6873 }; 6874 } 6875 6876 return scrollState; 6877 }, 6878 applyPageMode: function applyPageMode() { 6879 if (this.pageMode) { 6880 this.addListeners(); 6881 } else { 6882 this.removeListeners(); 6883 } 6884 }, 6885 addListeners: function addListeners() { 6886 this.listenerTarget = this.getListenerTarget(); 6887 this.listenerTarget.addEventListener( 6888 'scroll', 6889 this.handleScroll, 6890 supportsPassive 6891 ? { 6892 passive: true, 6893 } 6894 : false 6895 ); 6896 this.listenerTarget.addEventListener( 6897 'resize', 6898 this.handleResize 6899 ); 6900 }, 6901 removeListeners: function removeListeners() { 6902 if (!this.listenerTarget) { 6903 return; 6904 } 6905 6906 this.listenerTarget.removeEventListener( 6907 'scroll', 6908 this.handleScroll 6909 ); 6910 this.listenerTarget.removeEventListener( 6911 'resize', 6912 this.handleResize 6913 ); 6914 this.listenerTarget = null; 6915 }, 6916 scrollToItem: function scrollToItem(index) { 6917 var scroll; 6918 6919 if (this.itemSize === null) { 6920 scroll = index > 0 ? this.sizes[index - 1].accumulator : 0; 6921 } else { 6922 scroll = index * this.itemSize; 6923 } 6924 6925 this.scrollToPosition(scroll); 6926 }, 6927 scrollToPosition: function scrollToPosition(position) { 6928 if (this.direction === 'vertical') { 6929 this.$el.scrollTop = position; 6930 } else { 6931 this.$el.scrollLeft = position; 6932 } 6933 }, 6934 itemsLimitError: function itemsLimitError() { 6935 var _this4 = this; 6936 6937 setTimeout(function () { 6938 console.log( 6939 "It seems the scroller element isn't scrolling, so it tries to render all the items at once.", 6940 'Scroller:', 6941 _this4.$el 6942 ); 6943 console.log( 6944 "Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport." 6945 ); 6946 }); 6947 throw new Error('Rendered items limit reached'); 6948 }, 6949 sortViews: function sortViews() { 6950 this.pool.sort(function (viewA, viewB) { 6951 return viewA.nr.index - viewB.nr.index; 6952 }); 6953 }, 6954 }, 6955 }; 6956 6957 function normalizeComponent( 6958 template, 6959 style, 6960 script, 6961 scopeId, 6962 isFunctionalTemplate, 6963 moduleIdentifier /* server only */, 6964 shadowMode, 6965 createInjector, 6966 createInjectorSSR, 6967 createInjectorShadow 6968 ) { 6969 if (typeof shadowMode !== 'boolean') { 6970 createInjectorSSR = createInjector; 6971 createInjector = shadowMode; 6972 shadowMode = false; 6973 } 6974 // Vue.extend constructor export interop. 6975 const options = 6976 typeof script === 'function' ? script.options : script; 6977 // render functions 6978 if (template && template.render) { 6979 options.render = template.render; 6980 options.staticRenderFns = template.staticRenderFns; 6981 options._compiled = true; 6982 // functional template 6983 if (isFunctionalTemplate) { 6984 options.functional = true; 6985 } 6986 } 6987 // scopedId 6988 if (scopeId) { 6989 options._scopeId = scopeId; 6990 } 6991 let hook; 6992 if (moduleIdentifier) { 6993 // server build 6994 hook = function (context) { 6995 // 2.3 injection 6996 context = 6997 context || // cached call 6998 (this.$vnode && this.$vnode.ssrContext) || // stateful 6999 (this.parent && 7000 this.parent.$vnode && 7001 this.parent.$vnode.ssrContext); // functional 7002 // 2.2 with runInNewContext: true 7003 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 7004 context = __VUE_SSR_CONTEXT__; 7005 } 7006 // inject component styles 7007 if (style) { 7008 style.call(this, createInjectorSSR(context)); 7009 } 7010 // register component module identifier for async chunk inference 7011 if (context && context._registeredComponents) { 7012 context._registeredComponents.add(moduleIdentifier); 7013 } 7014 }; 7015 // used by ssr in case component is cached and beforeCreate 7016 // never gets called 7017 options._ssrRegister = hook; 7018 } else if (style) { 7019 hook = shadowMode 7020 ? function (context) { 7021 style.call( 7022 this, 7023 createInjectorShadow( 7024 context, 7025 this.$root.$options.shadowRoot 7026 ) 7027 ); 7028 } 7029 : function (context) { 7030 style.call(this, createInjector(context)); 7031 }; 7032 } 7033 if (hook) { 7034 if (options.functional) { 7035 // register for functional component in vue file 7036 const originalRender = options.render; 7037 options.render = function renderWithStyleInjection( 7038 h, 7039 context 7040 ) { 7041 hook.call(context); 7042 return originalRender(h, context); 7043 }; 7044 } else { 7045 // inject component registration as beforeCreate hook 7046 const existing = options.beforeCreate; 7047 options.beforeCreate = existing 7048 ? [].concat(existing, hook) 7049 : [hook]; 7050 } 7051 } 7052 return script; 7053 } 7054 7055 /* script */ 7056 const __vue_script__ = script; 7057 /* template */ 7058 var __vue_render__ = function () { 7059 var _obj, _obj$1; 7060 var _vm = this; 7061 var _h = _vm.$createElement; 7062 var _c = _vm._self._c || _h; 7063 return _c( 7064 'div', 7065 { 7066 directives: [ 7067 { 7068 name: 'observe-visibility', 7069 rawName: 'v-observe-visibility', 7070 value: _vm.handleVisibilityChange, 7071 expression: 'handleVisibilityChange', 7072 }, 7073 ], 7074 staticClass: 'vue-recycle-scroller', 7075 class: 7076 ((_obj = { 7077 ready: _vm.ready, 7078 'page-mode': _vm.pageMode, 7079 }), 7080 (_obj['direction-' + _vm.direction] = true), 7081 _obj), 7082 on: { 7083 '&scroll': function ($event) { 7084 return _vm.handleScroll($event); 7085 }, 7086 }, 7087 }, 7088 [ 7089 _vm.$slots.before 7090 ? _c( 7091 'div', 7092 { staticClass: 'vue-recycle-scroller__slot' }, 7093 [_vm._t('before')], 7094 2 7095 ) 7096 : _vm._e(), 7097 _vm._v(' '), 7098 _c( 7099 'div', 7100 { 7101 ref: 'wrapper', 7102 staticClass: 'vue-recycle-scroller__item-wrapper', 7103 style: 7104 ((_obj$1 = {}), 7105 (_obj$1[ 7106 _vm.direction === 'vertical' 7107 ? 'minHeight' 7108 : 'minWidth' 7109 ] = _vm.totalSize + 'px'), 7110 _obj$1), 7111 }, 7112 _vm._l(_vm.pool, function (view) { 7113 return _c( 7114 'div', 7115 { 7116 key: view.nr.id, 7117 staticClass: 'vue-recycle-scroller__item-view', 7118 class: { hover: _vm.hoverKey === view.nr.key }, 7119 style: _vm.ready 7120 ? { 7121 transform: 7122 'translate' + 7123 (_vm.direction === 'vertical' ? 'Y' : 'X') + 7124 '(' + 7125 view.position + 7126 'px)', 7127 } 7128 : null, 7129 on: { 7130 mouseenter: function ($event) { 7131 _vm.hoverKey = view.nr.key; 7132 }, 7133 mouseleave: function ($event) { 7134 _vm.hoverKey = null; 7135 }, 7136 }, 7137 }, 7138 [ 7139 _vm._t('default', null, { 7140 item: view.item, 7141 index: view.nr.index, 7142 active: view.nr.used, 7143 }), 7144 ], 7145 2 7146 ); 7147 }), 7148 0 7149 ), 7150 _vm._v(' '), 7151 _vm.$slots.after 7152 ? _c( 7153 'div', 7154 { staticClass: 'vue-recycle-scroller__slot' }, 7155 [_vm._t('after')], 7156 2 7157 ) 7158 : _vm._e(), 7159 _vm._v(' '), 7160 _c('ResizeObserver', { on: { notify: _vm.handleResize } }), 7161 ], 7162 1 7163 ); 7164 }; 7165 var __vue_staticRenderFns__ = []; 7166 __vue_render__._withStripped = true; 7167 7168 /* style */ 7169 const __vue_inject_styles__ = undefined; 7170 /* scoped */ 7171 const __vue_scope_id__ = undefined; 7172 /* module identifier */ 7173 const __vue_module_identifier__ = undefined; 7174 /* functional template */ 7175 const __vue_is_functional_template__ = false;
7176 /* style inject */ 7177 7178 /* style inject SSR */ 7179 7180 /* style inject shadow dom */ 7181 7182 const __vue_component__ = normalizeComponent( 7183 { 7184 render: __vue_render__, 7185 staticRenderFns: __vue_staticRenderFns__, 7186 }, 7187 __vue_inject_styles__, 7188 __vue_script__, 7189 __vue_scope_id__, 7190 __vue_is_functional_template__, 7191 __vue_module_identifier__, 7192 false, 7193 undefined, 7194 undefined, 7195 undefined 7196 ); 7197 7198 var script$1 = { 7199 name: 'DynamicScroller', 7200 components: { 7201 RecycleScroller: __vue_component__, 7202 }, 7203 inheritAttrs: false, 7204 provide: function provide() { 7205 if (typeof ResizeObserver !== 'undefined') { 7206 this.$_resizeObserver = new ResizeObserver(function ( 7207 entries 7208 ) { 7209 var _iterator = _createForOfIteratorHelper(entries), 7210 _step; 7211 7212 try { 7213 for (_iterator.s(); !(_step = _iterator.n()).done; ) { 7214 var entry = _step.value; 7215 7216 if (entry.target) { 7217 var event = new CustomEvent('resize', { 7218 detail: { 7219 contentRect: entry.contentRect, 7220 }, 7221 }); 7222 entry.target.dispatchEvent(event); 7223 } 7224 } 7225 } catch (err) { 7226 _iterator.e(err); 7227 } finally { 7228 _iterator.f(); 7229 } 7230 }); 7231 } 7232 7233 return { 7234 vscrollData: this.vscrollData, 7235 vscrollParent: this, 7236 vscrollResizeObserver: this.$_resizeObserver, 7237 }; 7238 }, 7239 props: _objectSpread2({}, props, { 7240 minItemSize: { 7241 type: [Number, String], 7242 required: true, 7243 }, 7244 }), 7245 data: function data() { 7246 return { 7247 vscrollData: { 7248 active: true, 7249 sizes: {}, 7250 validSizes: {}, 7251 keyField: this.keyField, 7252 simpleArray: false, 7253 }, 7254 }; 7255 }, 7256 computed: { 7257 simpleArray: simpleArray, 7258 itemsWithSize: function itemsWithSize() { 7259 var result = []; 7260 var items = this.items, 7261 keyField = this.keyField, 7262 simpleArray = this.simpleArray; 7263 var sizes = this.vscrollData.sizes; 7264 7265 for (var i = 0; i < items.length; i++) { 7266 var item = items[i]; 7267 var id = simpleArray ? i : item[keyField]; 7268 var size = sizes[id]; 7269 7270 if ( 7271 typeof size === 'undefined' && 7272 !this.$_undefinedMap[id] 7273 ) { 7274 size = 0; 7275 } 7276 7277 result.push({ 7278 item: item, 7279 id: id, 7280 size: size, 7281 }); 7282 } 7283 7284 return result; 7285 }, 7286 listeners: function listeners() { 7287 var listeners = {}; 7288 7289 for (var key in this.$listeners) { 7290 if (key !== 'resize' && key !== 'visible') { 7291 listeners[key] = this.$listeners[key]; 7292 } 7293 } 7294 7295 return listeners; 7296 }, 7297 }, 7298 watch: { 7299 items: function items() { 7300 this.forceUpdate(false); 7301 }, 7302 simpleArray: { 7303 handler: function handler(value) { 7304 this.vscrollData.simpleArray = value; 7305 }, 7306 immediate: true, 7307 }, 7308 direction: function direction(value) { 7309 this.forceUpdate(true); 7310 }, 7311 }, 7312 created: function created() { 7313 this.$_updates = []; 7314 this.$_undefinedSizes = 0; 7315 this.$_undefinedMap = {}; 7316 }, 7317 activated: function activated() { 7318 this.vscrollData.active = true; 7319 }, 7320 deactivated: function deactivated() { 7321 this.vscrollData.active = false;
vendor: 21,498 bytes, lines 7322-7938
7322 }, 7323 methods: { 7324 onScrollerResize: function onScrollerResize() { 7325 var scroller = this.$refs.scroller; 7326 7327 if (scroller) { 7328 this.forceUpdate(); 7329 } 7330 7331 this.$emit('resize'); 7332 }, 7333 onScrollerVisible: function onScrollerVisible() { 7334 this.$emit('vscroll:update', { 7335 force: false, 7336 }); 7337 this.$emit('visible'); 7338 }, 7339 forceUpdate: function forceUpdate() { 7340 var clear = 7341 arguments.length > 0 && arguments[0] !== undefined 7342 ? arguments[0] 7343 : true; 7344 7345 if (clear || this.simpleArray) { 7346 this.vscrollData.validSizes = {}; 7347 } 7348 7349 this.$emit('vscroll:update', { 7350 force: true, 7351 }); 7352 }, 7353 scrollToItem: function scrollToItem(index) { 7354 var scroller = this.$refs.scroller; 7355 if (scroller) scroller.scrollToItem(index); 7356 }, 7357 getItemSize: function getItemSize(item) { 7358 var index = 7359 arguments.length > 1 && arguments[1] !== undefined 7360 ? arguments[1] 7361 : undefined; 7362 var id = this.simpleArray 7363 ? index != null 7364 ? index 7365 : this.items.indexOf(item) 7366 : item[this.keyField]; 7367 return this.vscrollData.sizes[id] || 0; 7368 }, 7369 scrollToBottom: function scrollToBottom() { 7370 var _this = this; 7371 7372 if (this.$_scrollingToBottom) return; 7373 this.$_scrollingToBottom = true; 7374 var el = this.$el; // Item is inserted to the DOM 7375 7376 this.$nextTick(function () { 7377 el.scrollTop = el.scrollHeight + 5000; // Item sizes are computed 7378 7379 var cb = function cb() { 7380 el.scrollTop = el.scrollHeight + 5000; 7381 requestAnimationFrame(function () { 7382 el.scrollTop = el.scrollHeight + 5000; 7383 7384 if (_this.$_undefinedSizes === 0) { 7385 _this.$_scrollingToBottom = false; 7386 } else { 7387 requestAnimationFrame(cb); 7388 } 7389 }); 7390 }; 7391 7392 requestAnimationFrame(cb); 7393 }); 7394 }, 7395 }, 7396 }; 7397 7398 /* script */ 7399 const __vue_script__$1 = script$1; 7400 7401 /* template */ 7402 var __vue_render__$1 = function () { 7403 var _vm = this; 7404 var _h = _vm.$createElement; 7405 var _c = _vm._self._c || _h; 7406 return _c( 7407 'RecycleScroller', 7408 _vm._g( 7409 _vm._b( 7410 { 7411 ref: 'scroller', 7412 attrs: { 7413 items: _vm.itemsWithSize, 7414 'min-item-size': _vm.minItemSize, 7415 direction: _vm.direction, 7416 'key-field': 'id', 7417 }, 7418 on: { 7419 resize: _vm.onScrollerResize, 7420 visible: _vm.onScrollerVisible, 7421 }, 7422 scopedSlots: _vm._u( 7423 [ 7424 { 7425 key: 'default', 7426 fn: function (ref) { 7427 var itemWithSize = ref.item; 7428 var index = ref.index; 7429 var active = ref.active; 7430 return [ 7431 _vm._t('default', null, null, { 7432 item: itemWithSize.item, 7433 index: index, 7434 active: active, 7435 itemWithSize: itemWithSize, 7436 }), 7437 ]; 7438 }, 7439 }, 7440 ], 7441 null, 7442 true 7443 ), 7444 }, 7445 'RecycleScroller', 7446 _vm.$attrs, 7447 false 7448 ), 7449 _vm.listeners 7450 ), 7451 [ 7452 _vm._v(' '), 7453 _c('template', { slot: 'before' }, [_vm._t('before')], 2), 7454 _vm._v(' '), 7455 _c('template', { slot: 'after' }, [_vm._t('after')], 2), 7456 ], 7457 2 7458 ); 7459 }; 7460 var __vue_staticRenderFns__$1 = []; 7461 __vue_render__$1._withStripped = true; 7462 7463 /* style */ 7464 const __vue_inject_styles__$1 = undefined; 7465 /* scoped */ 7466 const __vue_scope_id__$1 = undefined; 7467 /* module identifier */ 7468 const __vue_module_identifier__$1 = undefined; 7469 /* functional template */ 7470 const __vue_is_functional_template__$1 = false; 7471 /* style inject */ 7472 7473 /* style inject SSR */ 7474 7475 /* style inject shadow dom */ 7476 7477 const __vue_component__$1 = normalizeComponent( 7478 { 7479 render: __vue_render__$1, 7480 staticRenderFns: __vue_staticRenderFns__$1, 7481 }, 7482 __vue_inject_styles__$1, 7483 __vue_script__$1, 7484 __vue_scope_id__$1, 7485 __vue_is_functional_template__$1, 7486 __vue_module_identifier__$1, 7487 false, 7488 undefined, 7489 undefined, 7490 undefined 7491 ); 7492 7493 var script$2 = { 7494 name: 'DynamicScrollerItem', 7495 inject: ['vscrollData', 'vscrollParent', 'vscrollResizeObserver'], 7496 props: { 7497 // eslint-disable-next-line vue/require-prop-types 7498 item: { 7499 required: true, 7500 }, 7501 watchData: { 7502 type: Boolean, 7503 default: false, 7504 }, 7505 7506 /** 7507 * Indicates if the view is actively used to display an item. 7508 */ 7509 active: { 7510 type: Boolean, 7511 required: true, 7512 }, 7513 index: { 7514 type: Number, 7515 default: undefined, 7516 }, 7517 sizeDependencies: { 7518 type: [Array, Object], 7519 default: null, 7520 }, 7521 emitResize: { 7522 type: Boolean, 7523 default: false, 7524 }, 7525 tag: { 7526 type: String, 7527 default: 'div', 7528 }, 7529 }, 7530 computed: { 7531 id: function id() { 7532 return this.vscrollData.simpleArray 7533 ? this.index 7534 : this.item[this.vscrollData.keyField]; 7535 }, 7536 size: function size() { 7537 return ( 7538 (this.vscrollData.validSizes[this.id] && 7539 this.vscrollData.sizes[this.id]) || 7540 0 7541 ); 7542 }, 7543 finalActive: function finalActive() { 7544 return this.active && this.vscrollData.active; 7545 }, 7546 }, 7547 watch: { 7548 watchData: 'updateWatchData', 7549 id: function id() { 7550 if (!this.size) { 7551 this.onDataUpdate(); 7552 } 7553 }, 7554 finalActive: function finalActive(value) { 7555 if (!this.size) { 7556 if (value) { 7557 if (!this.vscrollParent.$_undefinedMap[this.id]) { 7558 this.vscrollParent.$_undefinedSizes++; 7559 this.vscrollParent.$_undefinedMap[this.id] = true; 7560 } 7561 } else { 7562 if (this.vscrollParent.$_undefinedMap[this.id]) { 7563 this.vscrollParent.$_undefinedSizes--; 7564 this.vscrollParent.$_undefinedMap[this.id] = false; 7565 } 7566 } 7567 } 7568 7569 if (this.vscrollResizeObserver) { 7570 if (value) { 7571 this.observeSize(); 7572 } else { 7573 this.unobserveSize(); 7574 } 7575 } else if (value && this.$_pendingVScrollUpdate === this.id) { 7576 this.updateSize(); 7577 } 7578 }, 7579 }, 7580 created: function created() { 7581 var _this = this; 7582 7583 if (this.$isServer) return; 7584 this.$_forceNextVScrollUpdate = null; 7585 this.updateWatchData(); 7586 7587 if (!this.vscrollResizeObserver) { 7588 var _loop = function _loop(k) { 7589 _this.$watch(function () { 7590 return _this.sizeDependencies[k]; 7591 }, _this.onDataUpdate); 7592 }; 7593 7594 for (var k in this.sizeDependencies) { 7595 _loop(k); 7596 } 7597 7598 this.vscrollParent.$on( 7599 'vscroll:update', 7600 this.onVscrollUpdate 7601 ); 7602 this.vscrollParent.$on( 7603 'vscroll:update-size', 7604 this.onVscrollUpdateSize 7605 ); 7606 } 7607 }, 7608 mounted: function mounted() { 7609 if (this.vscrollData.active) { 7610 this.updateSize(); 7611 this.observeSize(); 7612 } 7613 }, 7614 beforeDestroy: function beforeDestroy() { 7615 this.vscrollParent.$off('vscroll:update', this.onVscrollUpdate); 7616 this.vscrollParent.$off( 7617 'vscroll:update-size', 7618 this.onVscrollUpdateSize 7619 ); 7620 this.unobserveSize(); 7621 }, 7622 methods: { 7623 updateSize: function updateSize() { 7624 if (this.finalActive) { 7625 if (this.$_pendingSizeUpdate !== this.id) { 7626 this.$_pendingSizeUpdate = this.id; 7627 this.$_forceNextVScrollUpdate = null; 7628 this.$_pendingVScrollUpdate = null; 7629 this.computeSize(this.id); 7630 } 7631 } else { 7632 this.$_forceNextVScrollUpdate = this.id; 7633 } 7634 }, 7635 updateWatchData: function updateWatchData() { 7636 var _this2 = this; 7637 7638 if (this.watchData) { 7639 this.$_watchData = this.$watch( 7640 'data', 7641 function () { 7642 _this2.onDataUpdate(); 7643 }, 7644 { 7645 deep: true, 7646 } 7647 ); 7648 } else if (this.$_watchData) { 7649 this.$_watchData(); 7650 this.$_watchData = null; 7651 } 7652 }, 7653 onVscrollUpdate: function onVscrollUpdate(_ref) { 7654 var force = _ref.force; 7655 7656 // If not active, sechedule a size update when it becomes active 7657 if (!this.finalActive && force) { 7658 this.$_pendingVScrollUpdate = this.id; 7659 } 7660 7661 if ( 7662 this.$_forceNextVScrollUpdate === this.id || 7663 force || 7664 !this.size 7665 ) { 7666 this.updateSize(); 7667 } 7668 }, 7669 onDataUpdate: function onDataUpdate() { 7670 this.updateSize(); 7671 }, 7672 computeSize: function computeSize(id) { 7673 var _this3 = this; 7674 7675 this.$nextTick(function () { 7676 if (_this3.id === id) { 7677 var width = _this3.$el.offsetWidth; 7678 var height = _this3.$el.offsetHeight; 7679 7680 _this3.applySize(width, height); 7681 } 7682 7683 _this3.$_pendingSizeUpdate = null; 7684 }); 7685 }, 7686 applySize: function applySize(width, height) { 7687 var size = Math.round( 7688 this.vscrollParent.direction === 'vertical' ? height : width 7689 ); 7690 7691 if (size && this.size !== size) { 7692 if (this.vscrollParent.$_undefinedMap[this.id]) { 7693 this.vscrollParent.$_undefinedSizes--; 7694 this.vscrollParent.$_undefinedMap[this.id] = undefined; 7695 } 7696 7697 this.$set(this.vscrollData.sizes, this.id, size); 7698 this.$set(this.vscrollData.validSizes, this.id, true); 7699 if (this.emitResize) this.$emit('resize', this.id); 7700 } 7701 }, 7702 observeSize: function observeSize() { 7703 if (!this.vscrollResizeObserver) return; 7704 this.vscrollResizeObserver.observe(this.$el.parentNode); 7705 this.$el.parentNode.addEventListener('resize', this.onResize); 7706 }, 7707 unobserveSize: function unobserveSize() { 7708 if (!this.vscrollResizeObserver) return; 7709 this.vscrollResizeObserver.unobserve(this.$el.parentNode); 7710 this.$el.parentNode.removeEventListener( 7711 'resize', 7712 this.onResize 7713 ); 7714 }, 7715 onResize: function onResize(event) { 7716 var _event$detail$content = event.detail.contentRect, 7717 width = _event$detail$content.width, 7718 height = _event$detail$content.height; 7719 this.applySize(width, height); 7720 }, 7721 }, 7722 render: function render(h) { 7723 return h(this.tag, this.$slots.default); 7724 }, 7725 }; 7726 7727 /* script */ 7728 const __vue_script__$2 = script$2; 7729 7730 /* template */ 7731 7732 /* style */ 7733 const __vue_inject_styles__$2 = undefined; 7734 /* scoped */ 7735 const __vue_scope_id__$2 = undefined; 7736 /* module identifier */ 7737 const __vue_module_identifier__$2 = undefined; 7738 /* functional template */ 7739 const __vue_is_functional_template__$2 = undefined; 7740 /* style inject */ 7741 7742 /* style inject SSR */ 7743 7744 /* style inject shadow dom */ 7745 7746 const __vue_component__$2 = normalizeComponent( 7747 {}, 7748 __vue_inject_styles__$2, 7749 __vue_script__$2, 7750 __vue_scope_id__$2, 7751 __vue_is_functional_template__$2, 7752 __vue_module_identifier__$2, 7753 false, 7754 undefined, 7755 undefined, 7756 undefined 7757 ); 7758 7759 function IdState() { 7760 var _ref = 7761 arguments.length > 0 && arguments[0] !== undefined 7762 ? arguments[0] 7763 : {}, 7764 _ref$idProp = _ref.idProp, 7765 idProp = 7766 _ref$idProp === void 0 7767 ? function (vm) { 7768 return vm.item.id; 7769 } 7770 : _ref$idProp; 7771 7772 var store = {}; 7773 var vm = new vue__WEBPACK_IMPORTED_MODULE_3___default.a({ 7774 data: function data() { 7775 return { 7776 store: store, 7777 }; 7778 }, 7779 }); // @vue/component 7780 7781 return { 7782 data: function data() { 7783 return { 7784 idState: null, 7785 }; 7786 }, 7787 created: function created() { 7788 var _this = this; 7789 7790 this.$_id = null; 7791 7792 if (typeof idProp === 'function') { 7793 this.$_getId = function () { 7794 return idProp.call(_this, _this); 7795 }; 7796 } else { 7797 this.$_getId = function () { 7798 return _this[idProp]; 7799 }; 7800 } 7801 7802 this.$watch(this.$_getId, { 7803 handler: function handler(value) { 7804 var _this2 = this; 7805 7806 this.$nextTick(function () { 7807 _this2.$_id = value; 7808 }); 7809 }, 7810 immediate: true, 7811 }); 7812 this.$_updateIdState(); 7813 }, 7814 beforeUpdate: function beforeUpdate() { 7815 this.$_updateIdState(); 7816 }, 7817 methods: { 7818 /** 7819 * Initialize an idState 7820 * @param {number|string} id Unique id for the data 7821 */ 7822 $_idStateInit: function $_idStateInit(id) { 7823 var factory = this.$options.idState; 7824 7825 if (typeof factory === 'function') { 7826 var data = factory.call(this, this); 7827 vm.$set(store, id, data); 7828 this.$_id = id; 7829 return data; 7830 } else { 7831 throw new Error( 7832 '[mixin IdState] Missing `idState` function on component definition.' 7833 ); 7834 } 7835 }, 7836 7837 /** 7838 * Ensure idState is created and up-to-date 7839 */ 7840 $_updateIdState: function $_updateIdState() { 7841 var id = this.$_getId(); 7842 7843 if (id == null) { 7844 console.warn( 7845 "No id found for IdState with idProp: '".concat( 7846 idProp, 7847 "'." 7848 ) 7849 ); 7850 } 7851 7852 if (id !== this.$_id) { 7853 if (!store[id]) { 7854 this.$_idStateInit(id); 7855 } 7856 7857 this.idState = store[id]; 7858 } 7859 }, 7860 }, 7861 }; 7862 } 7863 7864 function registerComponents(Vue, prefix) { 7865 Vue.component( 7866 ''.concat(prefix, 'recycle-scroller'), 7867 __vue_component__ 7868 ); 7869 Vue.component( 7870 ''.concat(prefix, 'RecycleScroller'), 7871 __vue_component__ 7872 ); 7873 Vue.component( 7874 ''.concat(prefix, 'dynamic-scroller'), 7875 __vue_component__$1 7876 ); 7877 Vue.component( 7878 ''.concat(prefix, 'DynamicScroller'), 7879 __vue_component__$1 7880 ); 7881 Vue.component( 7882 ''.concat(prefix, 'dynamic-scroller-item'), 7883 __vue_component__$2 7884 ); 7885 Vue.component( 7886 ''.concat(prefix, 'DynamicScrollerItem'), 7887 __vue_component__$2 7888 ); 7889 } 7890 7891 var plugin = { 7892 // eslint-disable-next-line no-undef 7893 version: '1.0.10', 7894 install: function install(Vue, options) { 7895 var finalOptions = Object.assign( 7896 {}, 7897 { 7898 installComponents: true, 7899 componentsPrefix: '', 7900 }, 7901 options 7902 ); 7903 7904 for (var key in finalOptions) { 7905 if (typeof finalOptions[key] !== 'undefined') { 7906 config[key] = finalOptions[key]; 7907 } 7908 } 7909 7910 if (finalOptions.installComponents) { 7911 registerComponents(Vue, finalOptions.componentsPrefix); 7912 } 7913 }, 7914 }; 7915 7916 var GlobalVue = null; 7917 7918 if (typeof window !== 'undefined') { 7919 GlobalVue = window.Vue; 7920 } else if (typeof global !== 'undefined') { 7921 GlobalVue = global.Vue; 7922 } 7923 7924 if (GlobalVue) { 7925 GlobalVue.use(plugin); 7926 } 7927 7928 /* unused harmony default export */ var _unused_webpack_default_export = 7929 plugin; 7930 7931 //# sourceMappingURL=vue-virtual-scroller.esm.js.map 7932 7933 /* WEBPACK VAR INJECTION */ 7934 }).call(this, __webpack_require__('c8ba')); 7935 7936 /***/ 7937 }, 7938
vendor: 2,041 bytes, lines 7939-7982
7939 /***/ e53d: /***/ function (module, exports) { 7940 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 7941 var global = (module.exports = 7942 typeof window != 'undefined' && window.Math == Math 7943 ? window 7944 : typeof self != 'undefined' && self.Math == Math 7945 ? self 7946 : // eslint-disable-next-line no-new-func 7947 Function('return this')()); 7948 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 7949 7950 /***/ 7951 }, 7952 7953 /***/ e6f3: /***/ function (module, exports, __webpack_require__) { 7954 var has = __webpack_require__('07e3'); 7955 var toIObject = __webpack_require__('36c3'); 7956 var arrayIndexOf = __webpack_require__('5b4e')(false); 7957 var IE_PROTO = __webpack_require__('5559')('IE_PROTO'); 7958 7959 module.exports = function (object, names) { 7960 var O = toIObject(object); 7961 var i = 0; 7962 var result = []; 7963 var key; 7964 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 7965 // Don't enum bug & hidden keys 7966 while (names.length > i) 7967 if (has(O, (key = names[i++]))) { 7968 ~arrayIndexOf(result, key) || result.push(key); 7969 } 7970 return result; 7971 }; 7972 7973 /***/ 7974 }, 7975 7976 /***/ e71e: /***/ function ( 7977 module, 7978 __webpack_exports__, 7979 __webpack_require__ 7980 ) { 7981 'use strict'; 7982 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_46e105de_prod_lang_scss_
7982scoped_true___WEBPACK_IMPORTED_MODULE_0__ = 7983 __webpack_require__('c50b'); 7984 /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_46e105de_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = 7985 /*#__PURE__*/ __webpack_require__.n( 7986 _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_46e105de_prod_lang_scss_
vendor: 8,063 bytes, lines 7986-8229
7986scoped_true___WEBPACK_IMPORTED_MODULE_0__ 7987 ); 7988 /* unused harmony reexport * */ 7989 7990 /***/ 7991 }, 7992 7993 /***/ e853: /***/ function (module, exports, __webpack_require__) { 7994 var isObject = __webpack_require__('d3f4'); 7995 var isArray = __webpack_require__('1169'); 7996 var SPECIES = __webpack_require__('2b4c')('species'); 7997 7998 module.exports = function (original) { 7999 var C; 8000 if (isArray(original)) { 8001 C = original.constructor; 8002 // cross-realm fallback 8003 if ( 8004 typeof C == 'function' && 8005 (C === Array || isArray(C.prototype)) 8006 ) 8007 C = undefined; 8008 if (isObject(C)) { 8009 C = C[SPECIES]; 8010 if (C === null) C = undefined; 8011 } 8012 } 8013 return C === undefined ? Array : C; 8014 }; 8015 8016 /***/ 8017 }, 8018 8019 /***/ ebfd: /***/ function (module, exports, __webpack_require__) { 8020 var META = __webpack_require__('62a0')('meta'); 8021 var isObject = __webpack_require__('f772'); 8022 var has = __webpack_require__('07e3'); 8023 var setDesc = __webpack_require__('d9f6').f; 8024 var id = 0; 8025 var isExtensible = 8026 Object.isExtensible || 8027 function () { 8028 return true; 8029 }; 8030 var FREEZE = !__webpack_require__('294c')(function () { 8031 return isExtensible(Object.preventExtensions({})); 8032 }); 8033 var setMeta = function (it) { 8034 setDesc(it, META, { 8035 value: { 8036 i: 'O' + ++id, // object ID 8037 w: {}, // weak collections IDs 8038 }, 8039 }); 8040 }; 8041 var fastKey = function (it, create) { 8042 // return primitive with prefix 8043 if (!isObject(it)) 8044 return typeof it == 'symbol' 8045 ? it 8046 : (typeof it == 'string' ? 'S' : 'P') + it; 8047 if (!has(it, META)) { 8048 // can't set metadata to uncaught frozen object 8049 if (!isExtensible(it)) return 'F'; 8050 // not necessary to add metadata 8051 if (!create) return 'E'; 8052 // add missing metadata 8053 setMeta(it); 8054 // return object ID 8055 } 8056 return it[META].i; 8057 }; 8058 var getWeak = function (it, create) { 8059 if (!has(it, META)) { 8060 // can't set metadata to uncaught frozen object 8061 if (!isExtensible(it)) return true; 8062 // not necessary to add metadata 8063 if (!create) return false; 8064 // add missing metadata 8065 setMeta(it); 8066 // return hash weak collections IDs 8067 } 8068 return it[META].w; 8069 }; 8070 // add metadata on freeze-family methods calling 8071 var onFreeze = function (it) { 8072 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) 8073 setMeta(it); 8074 return it; 8075 }; 8076 var meta = (module.exports = { 8077 KEY: META, 8078 NEED: false, 8079 fastKey: fastKey, 8080 getWeak: getWeak, 8081 onFreeze: onFreeze, 8082 }); 8083 8084 /***/ 8085 }, 8086 8087 /***/ ed83: /***/ function (module, exports, __webpack_require__) { 8088 var __WEBPACK_AMD_DEFINE_FACTORY__, 8089 __WEBPACK_AMD_DEFINE_ARRAY__, 8090 __WEBPACK_AMD_DEFINE_RESULT__; 8091 (function (root, factory) { 8092 if (true) { 8093 !((__WEBPACK_AMD_DEFINE_ARRAY__ = []), 8094 (__WEBPACK_AMD_DEFINE_FACTORY__ = factory), 8095 (__WEBPACK_AMD_DEFINE_RESULT__ = 8096 typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' 8097 ? __WEBPACK_AMD_DEFINE_FACTORY__.apply( 8098 exports, 8099 __WEBPACK_AMD_DEFINE_ARRAY__ 8100 ) 8101 : __WEBPACK_AMD_DEFINE_FACTORY__), 8102 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && 8103 (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 8104 } else { 8105 } 8106 })(this, function () { 8107 var regex = /(auto|scroll)/; 8108 8109 var parents = function (node, ps) { 8110 if (node.parentNode === null) { 8111 return ps; 8112 } 8113 8114 return parents(node.parentNode, ps.concat([node])); 8115 }; 8116 8117 var style = function (node, prop) { 8118 return getComputedStyle(node, null).getPropertyValue(prop); 8119 }; 8120 8121 var overflow = function (node) { 8122 return ( 8123 style(node, 'overflow') + 8124 style(node, 'overflow-y') + 8125 style(node, 'overflow-x') 8126 ); 8127 }; 8128 8129 var scroll = function (node) { 8130 return regex.test(overflow(node)); 8131 }; 8132 8133 var scrollParent = function (node) { 8134 if ( 8135 !(node instanceof HTMLElement || node instanceof SVGElement) 8136 ) { 8137 return; 8138 } 8139 8140 var ps = parents(node.parentNode, []); 8141 8142 for (var i = 0; i < ps.length; i += 1) { 8143 if (scroll(ps[i])) { 8144 return ps[i]; 8145 } 8146 } 8147 8148 return document.scrollingElement || document.documentElement; 8149 }; 8150 8151 return scrollParent; 8152 }); 8153 8154 /***/ 8155 }, 8156 8157 /***/ f1ae: /***/ function (module, exports, __webpack_require__) { 8158 'use strict'; 8159 8160 var $defineProperty = __webpack_require__('86cc'); 8161 var createDesc = __webpack_require__('4630'); 8162 8163 module.exports = function (object, index, value) { 8164 if (index in object) 8165 $defineProperty.f(object, index, createDesc(0, value)); 8166 else object[index] = value; 8167 }; 8168 8169 /***/ 8170 }, 8171 8172 /***/ f201: /***/ function (module, exports, __webpack_require__) { 8173 // 7.3.20 SpeciesConstructor(O, defaultConstructor) 8174 var anObject = __webpack_require__('e4ae'); 8175 var aFunction = __webpack_require__('79aa'); 8176 var SPECIES = __webpack_require__('5168')('species'); 8177 module.exports = function (O, D) { 8178 var C = anObject(O).constructor; 8179 var S; 8180 return C === undefined || (S = anObject(C)[SPECIES]) == undefined 8181 ? D 8182 : aFunction(S); 8183 }; 8184 8185 /***/ 8186 }, 8187 8188 /***/ f410: /***/ function (module, exports, __webpack_require__) { 8189 __webpack_require__('1af6'); 8190 module.exports = __webpack_require__('584a').Array.isArray; 8191 8192 /***/ 8193 }, 8194 8195 /***/ f559: /***/ function (module, exports, __webpack_require__) { 8196 'use strict'; 8197 // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) 8198 8199 var $export = __webpack_require__('5ca1'); 8200 var toLength = __webpack_require__('9def'); 8201 var context = __webpack_require__('d2c8'); 8202 var STARTS_WITH = 'startsWith'; 8203 var $startsWith = ''[STARTS_WITH]; 8204 8205 $export( 8206 $export.P + $export.F * __webpack_require__('5147')(STARTS_WITH), 8207 'String', 8208 { 8209 startsWith: function startsWith( 8210 searchString /* , position = 0 */ 8211 ) { 8212 var that = context(this, searchString, STARTS_WITH); 8213 var index = toLength( 8214 Math.min( 8215 arguments.length > 1 ? arguments[1] : undefined, 8216 that.length 8217 ) 8218 ); 8219 var search = String(searchString); 8220 return $startsWith 8221 ? $startsWith.call(that, search, index) 8222 : that.slice(index, index + search.length) === search; 8223 }, 8224 } 8225 ); 8226 8227 /***/ 8228 }, 8229
8230 /***/ f772: /***/ function (module, exports) { 8231 module.exports = function (it) { 8232 return typeof it === 'object' 8233 ? it !== null 8234 : typeof it === 'function'; 8235 }; 8236 8237 /***/ 8238 }, 8239 8240 /***/ f921: /***/ function (module, exports, __webpack_require__) { 8241 __webpack_require__('014b'); 8242 __webpack_require__('c207'); 8243 __webpack_require__('69d3'); 8244 __webpack_require__('765d'); 8245 module.exports = __webpack_require__('584a').Symbol; 8246 8247 /***/ 8248 }, 8249 8250 /***/ fa5b: /***/ function (module, exports, __webpack_require__) { 8251 module.exports = __webpack_require__('5537')( 8252 'native-function-to-string', 8253 Function.toString 8254 ); 8255 8256 /***/ 8257 }, 8258 8259 /***/ fab2: /***/ function (module, exports, __webpack_require__) { 8260 var document = __webpack_require__('7726').document; 8261 module.exports = document && document.documentElement; 8262 8263 /***/ 8264 }, 8265 8266 /***/ fb15: /***/ function ( 8267 module, 8268 __webpack_exports__, 8269 __webpack_require__ 8270 ) { 8271 'use strict'; 8272 // ESM COMPAT FLAG 8273 __webpack_require__.r(__webpack_exports__); 8274 8275 // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 8276 // This file is imported into lib/wc client bundles. 8277 8278 if (typeof window !== 'undefined') { 8279 var currentScript = window.document.currentScript; 8280 if (true) { 8281 var getCurrentScript = __webpack_require__('8875'); 8282 currentScript = getCurrentScript(); 8283 8284 // for backward compatibility, because previously we directly included the polyfill 8285 if (!('currentScript' in document)) { 8286 Object.defineProperty(document, 'currentScript', { 8287 get: getCurrentScript, 8288 }); 8289 } 8290 } 8291 8292 var src = 8293 currentScript && 8294 currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/); 8295 if (src) { 8296 __webpack_require__.p = src[1]; // eslint-disable-line 8297 } 8298 } 8299 8300 // Indicate to webpack that this file can be concatenated 8301 /* harmony default export */ var setPublicPath = null; 8302 8303 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"23eda527-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/index.vue?vue&type=template&id=19351537&scoped=true& 8304 var render = function () { 8305 var _vm = this; 8306 var _h = _vm.$createElement; 8307 var _c = _vm._self._c || _h; 8308 return _c( 8309 'div', 8310 { 8311 staticClass: 'vue-phone-number-input flex',
8312 class: [{ dark: _vm.dark }, _vm.size], 8313 attrs: { id: _vm.id }, 8314 }, 8315 [ 8316 !_vm.noCountrySelector 8317 ? _c( 8318 'div', 8319 { staticClass: 'select-country-container' }, 8320 [ 8321 _c( 8322 'CountrySelector', 8323 { 8324 ref: 'CountrySelector', 8325 staticClass: 'input-country-selector', 8326 attrs: { 8327 id: _vm.uniqueId + '_country_selector', 8328 items: _vm.codesCountries, 8329 'countries-height': _vm.countriesHeight, 8330 error: _vm.shouldChooseCountry, 8331 hint: _vm.shouldChooseCountry 8332 ? _vm.t.countrySelectorError 8333 : null, 8334 disabled: _vm.disabled, 8335 valid: _vm.isValid && !_vm.noValidatorState, 8336 'preferred-countries': _vm.preferredCountries, 8337 'only-countries': _vm.onlyCountries, 8338 'ignored-countries': _vm.ignoredCountries, 8339 label: _vm.t.countrySelectorLabel, 8340 'no-flags': _vm.noFlags, 8341 'show-code-on-list': _vm.showCodeOnList, 8342 size: _vm.size,
8343 dark: _vm.dark, 8344 theme: _vm.theme, 8345 }, 8346 model: { 8347 value: _vm.countryCode, 8348 callback: function ($$v) { 8349 _vm.countryCode = $$v; 8350 }, 8351 expression: 'countryCode', 8352 }, 8353 }, 8354 [_vm._t('arrow', null, { slot: 'arrow' })], 8355 2 8356 ), 8357 ], 8358 1 8359 ) 8360 : _vm._e(), 8361 _c( 8362 'div', 8363 { staticClass: 'flex-1' }, 8364 [ 8365 _c( 8366 'InputTel', 8367 _vm._b( 8368 { 8369 ref: 'PhoneNumberInput', 8370 staticClass: 'input-phone-number', 8371 attrs: { 8372 id: _vm.uniqueId + '_phone_number', 8373 label: _vm.t.phoneNumberLabel, 8374 hint: _vm.hintValue,
8375 dark: _vm.dark, 8376 disabled: _vm.disabled, 8377 size: _vm.size, 8378 error: _vm.error, 8379 valid: _vm.isValid && !_vm.noValidatorState, 8380 required: _vm.required, 8381 'no-country-selector': _vm.noCountrySelector, 8382 theme: _vm.theme, 8383 }, 8384 on: { 8385 keydown: function (e) { 8386 _vm.lastKeyPressed = e.keyCode; 8387 }, 8388 focus: function ($event) { 8389 return _vm.$emit('phone-number-focused'); 8390 }, 8391 blur: function ($event) { 8392 return _vm.$emit('phone-number-blur'); 8393 }, 8394 }, 8395 model: { 8396 value: _vm.phoneNumber, 8397 callback: function ($$v) { 8398 _vm.phoneNumber = $$v; 8399 }, 8400 expression: 'phoneNumber', 8401 }, 8402 }, 8403 'InputTel', 8404 _vm.$attrs, 8405 false 8406 ) 8407 ), 8408 ], 8409 1 8410 ), 8411 ] 8412 ); 8413 }; 8414 var staticRenderFns = []; 8415 8416 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/index.vue?vue&type=template&id=19351537&scoped=true& 8417 8418 // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js 8419 var es7_object_get_own_property_descriptors = 8420 __webpack_require__('8e6e'); 8421 8422 // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 8423 var web_dom_iterable = __webpack_require__('ac6a'); 8424 8425 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js 8426 var es6_array_iterator = __webpack_require__('cadf'); 8427 8428 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js 8429 var es6_object_keys = __webpack_require__('456d'); 8430 8431 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js 8432 var es6_regexp_to_string = __webpack_require__('6b54'); 8433 8434 // EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js 8435 var runtime = __webpack_require__('96cf'); 8436 8437 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/promise.js 8438 var promise = __webpack_require__('795b'); 8439 var promise_default = /*#__PURE__*/ __webpack_require__.n(promise); 8440 8441 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js 8442 8443 function asyncGeneratorStep( 8444 gen, 8445 resolve, 8446 reject, 8447 _next, 8448 _throw, 8449 key, 8450 arg 8451 ) { 8452 try { 8453 var info = gen[key](arg); 8454 var value = info.value; 8455 } catch (error) { 8456 reject(error); 8457 return; 8458 } 8459 8460 if (info.done) { 8461 resolve(value); 8462 } else { 8463 promise_default.a.resolve(value).then(_next, _throw); 8464 } 8465 } 8466 8467 function _asyncToGenerator(fn) { 8468 return function () { 8469 var self = this, 8470 args = arguments; 8471 return new promise_default.a(function (resolve, reject) { 8472 var gen = fn.apply(self, args); 8473 8474 function _next(value) { 8475 asyncGeneratorStep( 8476 gen, 8477 resolve, 8478 reject, 8479 _next, 8480 _throw, 8481 'next', 8482 value 8483 ); 8484 } 8485 8486 function _throw(err) { 8487 asyncGeneratorStep( 8488 gen, 8489 resolve, 8490 reject, 8491 _next, 8492 _throw, 8493 'throw', 8494 err 8495 ); 8496 } 8497 8498 _next(undefined); 8499 }); 8500 }; 8501 } 8502 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js 8503 var define_property = __webpack_require__('85f2'); 8504 var define_property_default = 8505 /*#__PURE__*/ __webpack_require__.n(define_property); 8506 8507 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js 8508 8509 function _defineProperty(obj, key, value) { 8510 if (key in obj) { 8511 define_property_default()(obj, key, { 8512 value: value, 8513 enumerable: true, 8514 configurable: true, 8515 writable: true, 8516 }); 8517 } else { 8518 obj[key] = value; 8519 } 8520 8521 return obj; 8522 } 8523 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js 8524 var es6_number_constructor = __webpack_require__('c5f6'); 8525 8526 // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js 8527 var es7_array_includes = __webpack_require__('6762'); 8528 8529 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js 8530 var es6_string_includes = __webpack_require__('2fdb'); 8531 8532 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/assets/js/phoneCodeCountries.js 8533 var allCountries = [ 8534 ['Afghanistan (â«Ø§ÙØºØ§ÙØ³ØªØ§Ùâ¬â)', 'af', '93'], 8535 ['Albania (Shqipëri)', 'al', '355'], 8536 ['Algeria (â«Ø§Ùجزائرâ¬â)', 'dz', '213'], 8537 ['American Samoa', 'as', '1684'], 8538 ['Andorra', 'ad', '376'], 8539 ['Angola', 'ao', '244'], 8540 ['Anguilla', 'ai', '1264'], 8541 ['Antigua and Barbuda', 'ag', '1268'], 8542 ['Argentina', 'ar', '54'], 8543 ['Armenia (ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)', 'am', '374'], 8544 ['Aruba', 'aw', '297'], 8545 ['Australia', 'au', '61', 0], 8546 ['Austria (Ãsterreich)', 'at', '43'], 8547 ['Azerbaijan (AzÉrbaycan)', 'az', '994'], 8548 ['Bahamas', 'bs', '1242'], 8549 ['Bahrain (â«Ø§ÙØ¨ØØ±ÙÙâ¬â)', 'bh', '973'], 8550 ['Bangladesh (বাà¦à¦²à¦¾à¦¦à§à¦¶)', 'bd', '880'], 8551 ['Barbados', 'bb', '1246'], 8552 ['Belarus (ÐелаÑÑÑÑ)', 'by', '375'], 8553 ['Belgium (België)', 'be', '32'], 8554 ['Belize', 'bz', '501'], 8555 ['Benin (Bénin)', 'bj', '229'], 8556 ['Bermuda', 'bm', '1441'], 8557 ['Bhutan (འà½à¾²à½´à½)', 'bt', '975'], 8558 ['Bolivia', 'bo', '591'], 8559 ['Bosnia and Herzegovina (ÐоÑна и ХеÑÑеговина)', 'ba', '387'], 8560 ['Botswana', 'bw', '267'], 8561 ['Brazil (Brasil)', 'br', '55'], 8562 ['British Indian Ocean Territory', 'io', '246'], 8563 ['British Virgin Islands', 'vg', '1284'], 8564 ['Brunei', 'bn', '673'], 8565 ['Bulgaria (ÐÑлгаÑиÑ)', 'bg', '359'], 8566 ['Burkina Faso', 'bf', '226'], 8567 ['Burundi (Uburundi)', 'bi', '257'], 8568 ['Cambodia (ááááá»áá¶)', 'kh', '855'], 8569 ['Cameroon (Cameroun)', 'cm', '237'], 8570 [ 8571 'Canada', 8572 'ca', 8573 '1', 8574 1, 8575 [ 8576 '204', 8577 '226', 8578 '236', 8579 '249', 8580 '250', 8581 '289', 8582 '306', 8583 '343', 8584 '365', 8585 '387', 8586 '403', 8587 '416', 8588 '418', 8589 '431', 8590 '437', 8591 '438', 8592 '450', 8593 '506', 8594 '514', 8595 '519', 8596 '548', 8597 '579', 8598 '581', 8599 '587', 8600 '604', 8601 '613', 8602 '639', 8603 '647', 8604 '672', 8605 '705', 8606 '709', 8607 '742', 8608 '778', 8609 '780', 8610 '782', 8611 '807', 8612 '819', 8613 '825', 8614 '867', 8615 '873', 8616 '902', 8617 '905', 8618 ], 8619 ], 8620 ['Cape Verde (Kabu Verdi)', 'cv', '238'], 8621 ['Caribbean Netherlands', 'bq', '599', 1], 8622 ['Cayman Islands', 'ky', '1345'], 8623 [ 8624 'Central African Republic (République centrafricaine)', 8625 'cf', 8626 '236', 8627 ], 8628 ['Chad (Tchad)', 'td', '235'], 8629 ['Chile', 'cl', '56'], 8630 ['China (ä¸å½)', 'cn', '86'], 8631 ['Christmas Island', 'cx', '61', 2], 8632 ['Cocos (Keeling) Islands', 'cc', '61', 1], 8633 ['Colombia', 'co', '57'], 8634 ['Comoros (â«Ø¬Ø²Ø± اÙÙ٠رâ¬â)', 'km', '269'], 8635 ['Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)', 'cd', '243'], 8636 ['Congo (Republic) (Congo-Brazzaville)', 'cg', '242'], 8637 ['Cook Islands', 'ck', '682'], 8638 ['Costa Rica', 'cr', '506'], 8639 ['Côte dâIvoire', 'ci', '225'], 8640 ['Croatia (Hrvatska)', 'hr', '385'], 8641 ['Cuba', 'cu', '53'], 8642 ['Curaçao', 'cw', '599', 0], 8643 ['Cyprus (ÎÏÏÏοÏ)', 'cy', '357'], 8644 ['Czech Republic (Äeská republika)', 'cz', '420'], 8645 ['Denmark (Danmark)', 'dk', '45'], 8646 ['Djibouti', 'dj', '253'], 8647 ['Dominica', 'dm', '1767'], 8648 [ 8649 'Dominican Republic (República Dominicana)', 8650 'do', 8651 '1', 8652 2, 8653 ['809', '829', '849'],
8654 ], 8655 ['Ecuador', 'ec', '593'], 8656 ['Egypt (â«Ù صرâ¬â)', 'eg', '20'], 8657 ['El Salvador', 'sv', '503'], 8658 ['Equatorial Guinea (Guinea Ecuatorial)', 'gq', '240'], 8659 ['Eritrea', 'er', '291'], 8660 ['Estonia (Eesti)', 'ee', '372'], 8661 ['Ethiopia', 'et', '251'], 8662 ['Falkland Islands (Islas Malvinas)', 'fk', '500'], 8663 ['Faroe Islands (Føroyar)', 'fo', '298'], 8664 ['Fiji', 'fj', '679'], 8665 ['Finland (Suomi)', 'fi', '358', 0], 8666 ['France', 'fr', '33'], 8667 ['French Guiana (Guyane française)', 'gf', '594'], 8668 ['French Polynesia (Polynésie française)', 'pf', '689'], 8669 ['Gabon', 'ga', '241'], 8670 ['Gambia', 'gm', '220'], 8671 ['Georgia (á¡áá¥áá ááááá)', 'ge', '995'], 8672 ['Germany (Deutschland)', 'de', '49'], 8673 ['Ghana (Gaana)', 'gh', '233'], 8674 ['Gibraltar', 'gi', '350'], 8675 ['Greece (Îλλάδα)', 'gr', '30'], 8676 ['Greenland (Kalaallit Nunaat)', 'gl', '299'], 8677 ['Grenada', 'gd', '1473'], 8678 ['Guadeloupe', 'gp', '590', 0], 8679 ['Guam', 'gu', '1671'], 8680 ['Guatemala', 'gt', '502'], 8681 ['Guernsey', 'gg', '44', 1], 8682 ['Guinea (Guinée)', 'gn', '224'], 8683 ['Guinea-Bissau (Guiné Bissau)', 'gw', '245'], 8684 ['Guyana', 'gy', '592'], 8685 ['Haiti', 'ht', '509'], 8686 ['Honduras', 'hn', '504'], 8687 ['Hong Kong (馿¸¯)', 'hk', '852'], 8688 ['Hungary (Magyarország)', 'hu', '36'], 8689 ['Iceland (Ãsland)', 'is', '354'], 8690 ['India (à¤à¤¾à¤°à¤¤)', 'in', '91'], 8691 ['Indonesia', 'id', '62'], 8692 ['Iran (â«Ø§ÛراÙâ¬â)', 'ir', '98'], 8693 ['Iraq (â«Ø§ÙعراÙâ¬â)', 'iq', '964'], 8694 ['Ireland', 'ie', '353'], 8695 ['Isle of Man', 'im', '44', 2], 8696 ['Israel (â«×שר××â¬â)', 'il', '972'], 8697 ['Italy (Italia)', 'it', '39', 0], 8698 ['Jamaica', 'jm', '1876'], 8699 ['Japan (æ¥æ¬)', 'jp', '81'], 8700 ['Jersey', 'je', '44', 3], 8701 ['Jordan (â«Ø§ÙأردÙâ¬â)', 'jo', '962'], 8702 ['Kazakhstan (ÐÐ°Ð·Ð°Ñ ÑÑан)', 'kz', '7', 1], 8703 ['Kenya', 'ke', '254'], 8704 ['Kiribati', 'ki', '686'], 8705 ['Kosovo', 'xk', '383'], 8706 ['Kuwait (â«Ø§ÙÙÙÙØªâ¬â)', 'kw', '965'], 8707 ['Kyrgyzstan (ÐÑÑгÑзÑÑан)', 'kg', '996'], 8708 ['Laos (ລາວ)', 'la', '856'], 8709 ['Latvia (Latvija)', 'lv', '371'], 8710 ['Lebanon (â«ÙØ¨ÙØ§Ùâ¬â)', 'lb', '961'], 8711 ['Lesotho', 'ls', '266'], 8712 ['Liberia', 'lr', '231'], 8713 ['Libya (â«ÙÙØ¨Ùاâ¬â)', 'ly', '218'], 8714 ['Liechtenstein', 'li', '423'], 8715 ['Lithuania (Lietuva)', 'lt', '370'], 8716 ['Luxembourg', 'lu', '352'], 8717 ['Macau (æ¾³é)', 'mo', '853'], 8718 ['Macedonia (FYROM) (ÐакедониÑа)', 'mk', '389'], 8719 ['Madagascar (Madagasikara)', 'mg', '261'], 8720 ['Malawi', 'mw', '265'], 8721 ['Malaysia', 'my', '60'], 8722 ['Maldives', 'mv', '960'], 8723 ['Mali', 'ml', '223'], 8724 ['Malta', 'mt', '356'], 8725 ['Marshall Islands', 'mh', '692'], 8726 ['Martinique', 'mq', '596'], 8727 ['Mauritania (â«Ù ÙØ±ÙتاÙÙØ§â¬â)', 'mr', '222'], 8728 ['Mauritius (Moris)', 'mu', '230'], 8729 ['Mayotte', 'yt', '262', 1], 8730 ['Mexico (México)', 'mx', '52'], 8731 ['Micronesia', 'fm', '691'], 8732 ['Moldova (Republica Moldova)', 'md', '373'], 8733 ['Monaco', 'mc', '377'], 8734 ['Mongolia (Ðонгол)', 'mn', '976'], 8735 ['Montenegro (Crna Gora)', 'me', '382'], 8736 ['Montserrat', 'ms', '1664'], 8737 ['Morocco (â«Ø§Ù٠غربâ¬â)', 'ma', '212', 0], 8738 ['Mozambique (Moçambique)', 'mz', '258'], 8739 ['Myanmar (Burma) (áá¼ááºáá¬)', 'mm', '95'], 8740 ['Namibia (Namibië)', 'na', '264'],
vendor: 10,537 bytes, lines 8741-9036
8741 ['Nauru', 'nr', '674'], 8742 ['Nepal (नà¥à¤ªà¤¾à¤²)', 'np', '977'], 8743 ['Netherlands (Nederland)', 'nl', '31'], 8744 ['New Caledonia (Nouvelle-Calédonie)', 'nc', '687'], 8745 ['New Zealand', 'nz', '64'], 8746 ['Nicaragua', 'ni', '505'], 8747 ['Niger (Nijar)', 'ne', '227'], 8748 ['Nigeria', 'ng', '234'], 8749 ['Niue', 'nu', '683'], 8750 ['Norfolk Island', 'nf', '672'], 8751 ['North Korea (ì¡°ì 민주주ì ì¸ë¯¼ ê³µíêµ)', 'kp', '850'], 8752 ['Northern Mariana Islands', 'mp', '1670'], 8753 ['Norway (Norge)', 'no', '47', 0], 8754 ['Oman (â«Ø¹Ù٠اÙâ¬â)', 'om', '968'], 8755 ['Pakistan (â«Ù¾Ø§Ú©Ø³ØªØ§Ùâ¬â)', 'pk', '92'], 8756 ['Palau', 'pw', '680'], 8757 ['Palestine (â«ÙÙØ³Ø·ÙÙâ¬â)', 'ps', '970'], 8758 ['Panama (Panamá)', 'pa', '507'], 8759 ['Papua New Guinea', 'pg', '675'], 8760 ['Paraguay', 'py', '595'], 8761 ['Peru (Perú)', 'pe', '51'], 8762 ['Philippines', 'ph', '63'], 8763 ['Poland (Polska)', 'pl', '48'], 8764 ['Portugal', 'pt', '351'], 8765 ['Puerto Rico', 'pr', '1', 3, ['787', '939']], 8766 ['Qatar (â«Ùطرâ¬â)', 'qa', '974'], 8767 ['Réunion (La Réunion)', 're', '262', 0], 8768 ['Romania (România)', 'ro', '40'], 8769 ['Russia (РоÑÑиÑ)', 'ru', '7', 0], 8770 ['Rwanda', 'rw', '250'], 8771 ['Saint Barthélemy', 'bl', '590', 1], 8772 ['Saint Helena', 'sh', '290'], 8773 ['Saint Kitts and Nevis', 'kn', '1869'], 8774 ['Saint Lucia', 'lc', '1758'], 8775 ['Saint Martin (Saint-Martin (partie française))', 'mf', '590', 2], 8776 [ 8777 'Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)', 8778 'pm', 8779 '508', 8780 ], 8781 ['Saint Vincent and the Grenadines', 'vc', '1784'], 8782 ['Samoa', 'ws', '685'], 8783 ['San Marino', 'sm', '378'], 8784 ['São Tomé and PrÃncipe (São Tomé e PrÃncipe)', 'st', '239'], 8785 ['Saudi Arabia (â«Ø§ÙÙ Ù ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©â¬â)', 'sa', '966'], 8786 ['Senegal (Sénégal)', 'sn', '221'], 8787 ['Serbia (СÑбиÑа)', 'rs', '381'], 8788 ['Seychelles', 'sc', '248'], 8789 ['Sierra Leone', 'sl', '232'], 8790 ['Singapore', 'sg', '65'], 8791 ['Sint Maarten', 'sx', '1721'], 8792 ['Slovakia (Slovensko)', 'sk', '421'], 8793 ['Slovenia (Slovenija)', 'si', '386'], 8794 ['Solomon Islands', 'sb', '677'], 8795 ['Somalia (Soomaaliya)', 'so', '252'], 8796 ['South Africa', 'za', '27'], 8797 ['South Korea (ëí민êµ)', 'kr', '82'], 8798 ['South Sudan (â«Ø¬ÙÙØ¨ Ø§ÙØ³ÙداÙâ¬â)', 'ss', '211'], 8799 ['Spain (España)', 'es', '34'], 8800 ['Sri Lanka (à·à·âර෠ලà¶à¶à·à·)', 'lk', '94'], 8801 ['Sudan (â«Ø§ÙØ³ÙØ¯Ø§Ùâ¬â)', 'sd', '249'], 8802 ['Suriname', 'sr', '597'], 8803 ['Svalbard and Jan Mayen', 'sj', '47', 1], 8804 ['Swaziland', 'sz', '268'], 8805 ['Sweden (Sverige)', 'se', '46'], 8806 ['Switzerland (Schweiz)', 'ch', '41'], 8807 ['Syria (â«Ø³ÙØ±ÙØ§â¬â)', 'sy', '963'], 8808 ['Taiwan (å°ç£)', 'tw', '886'], 8809 ['Tajikistan', 'tj', '992'], 8810 ['Tanzania', 'tz', '255'], 8811 ['Thailand (à¹à¸à¸¢)', 'th', '66'], 8812 ['Timor-Leste', 'tl', '670'], 8813 ['Togo', 'tg', '228'], 8814 ['Tokelau', 'tk', '690'], 8815 ['Tonga', 'to', '676'], 8816 ['Trinidad and Tobago', 'tt', '1868'], 8817 ['Tunisia (â«ØªÙÙØ³â¬â)', 'tn', '216'], 8818 ['Turkey (Türkiye)', 'tr', '90'], 8819 ['Turkmenistan', 'tm', '993'], 8820 ['Turks and Caicos Islands', 'tc', '1649'], 8821 ['Tuvalu', 'tv', '688'], 8822 ['U.S. Virgin Islands', 'vi', '1340'], 8823 ['Uganda', 'ug', '256'], 8824 ['Ukraine (УкÑаÑна)', 'ua', '380'], 8825 ['United Arab Emirates (â«Ø§Ùإ٠ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ ØªØØ¯Ø©â¬â)', 'ae', '971'], 8826 ['United Kingdom', 'gb', '44', 0], 8827 ['United States', 'us', '1', 0], 8828 ['Uruguay', 'uy', '598'], 8829 ['Uzbekistan (OÊ»zbekiston)', 'uz', '998'], 8830 ['Vanuatu', 'vu', '678'], 8831 ['Vatican City (Città del Vaticano)', 'va', '39', 1], 8832 ['Venezuela', 've', '58'], 8833 ['Vietnam (Viá»t Nam)', 'vn', '84'], 8834 ['Wallis and Futuna (Wallis-et-Futuna)', 'wf', '681'], 8835 ['Western Sahara (â«Ø§ÙØµØØ±Ø§Ø¡ Ø§ÙØºØ±Ø¨ÙØ©â¬â)', 'eh', '212', 1], 8836 ['Yemen (â«Ø§ÙÙÙ Ùâ¬â)', 'ye', '967'], 8837 ['Zambia', 'zm', '260'], 8838 ['Zimbabwe', 'zw', '263'], 8839 ['à land Islands', 'ax', '358', 1], 8840 ]; 8841 var countriesIso = allCountries.map(function (country) { 8842 return country[1].toUpperCase(); 8843 }); 8844 var countries = allCountries.map(function (country) { 8845 return { 8846 name: country[0], 8847 iso2: country[1].toUpperCase(), 8848 dialCode: country[2], 8849 priority: country[3] || 0, 8850 areaCodes: country[4] || null, 8851 }; 8852 }); 8853 // EXTERNAL MODULE: ./node_modules/libphonenumber-js/examples.mobile.json 8854 var examples_mobile = __webpack_require__('d391'); 8855 8856 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/metadata.min.json.js 8857 // This file is a workaround for a bug in web browsers' "native" 8858 // ES6 importing system which is uncapable of importing "*.json" files. 8859 // https://github.com/catamphetamine/libphonenumber-js/issues/239 8860 /* harmony default export */ var metadata_min_json = { 8861 version: 4, 8862 country_calling_codes: { 8863 1: [ 8864 'US', 8865 'AG', 8866 'AI', 8867 'AS', 8868 'BB', 8869 'BM', 8870 'BS', 8871 'CA', 8872 'DM', 8873 'DO', 8874 'GD', 8875 'GU', 8876 'JM', 8877 'KN', 8878 'KY', 8879 'LC', 8880 'MP', 8881 'MS', 8882 'PR', 8883 'SX', 8884 'TC', 8885 'TT', 8886 'VC', 8887 'VG', 8888 'VI', 8889 ], 8890 7: ['RU', 'KZ'], 8891 20: ['EG'], 8892 27: ['ZA'], 8893 30: ['GR'], 8894 31: ['NL'], 8895 32: ['BE'], 8896 33: ['FR'], 8897 34: ['ES'], 8898 36: ['HU'], 8899 39: ['IT', 'VA'], 8900 40: ['RO'], 8901 41: ['CH'], 8902 43: ['AT'], 8903 44: ['GB', 'GG', 'IM', 'JE'], 8904 45: ['DK'], 8905 46: ['SE'], 8906 47: ['NO', 'SJ'], 8907 48: ['PL'], 8908 49: ['DE'], 8909 51: ['PE'], 8910 52: ['MX'], 8911 53: ['CU'], 8912 54: ['AR'], 8913 55: ['BR'], 8914 56: ['CL'], 8915 57: ['CO'], 8916 58: ['VE'], 8917 60: ['MY'], 8918 61: ['AU', 'CC', 'CX'], 8919 62: ['ID'], 8920 63: ['PH'], 8921 64: ['NZ'], 8922 65: ['SG'], 8923 66: ['TH'], 8924 81: ['JP'], 8925 82: ['KR'], 8926 84: ['VN'], 8927 86: ['CN'], 8928 90: ['TR'], 8929 91: ['IN'], 8930 92: ['PK'], 8931 93: ['AF'], 8932 94: ['LK'], 8933 95: ['MM'], 8934 98: ['IR'], 8935 211: ['SS'], 8936 212: ['MA', 'EH'], 8937 213: ['DZ'], 8938 216: ['TN'], 8939 218: ['LY'], 8940 220: ['GM'], 8941 221: ['SN'], 8942 222: ['MR'], 8943 223: ['ML'], 8944 224: ['GN'], 8945 225: ['CI'], 8946 226: ['BF'], 8947 227: ['NE'], 8948 228: ['TG'], 8949 229: ['BJ'], 8950 230: ['MU'], 8951 231: ['LR'], 8952 232: ['SL'], 8953 233: ['GH'], 8954 234: ['NG'], 8955 235: ['TD'], 8956 236: ['CF'], 8957 237: ['CM'], 8958 238: ['CV'], 8959 239: ['ST'], 8960 240: ['GQ'], 8961 241: ['GA'], 8962 242: ['CG'], 8963 243: ['CD'], 8964 244: ['AO'], 8965 245: ['GW'], 8966 246: ['IO'], 8967 247: ['AC'], 8968 248: ['SC'], 8969 249: ['SD'], 8970 250: ['RW'], 8971 251: ['ET'], 8972 252: ['SO'], 8973 253: ['DJ'], 8974 254: ['KE'], 8975 255: ['TZ'], 8976 256: ['UG'], 8977 257: ['BI'], 8978 258: ['MZ'], 8979 260: ['ZM'], 8980 261: ['MG'], 8981 262: ['RE', 'YT'], 8982 263: ['ZW'], 8983 264: ['NA'], 8984 265: ['MW'], 8985 266: ['LS'], 8986 267: ['BW'], 8987 268: ['SZ'], 8988 269: ['KM'], 8989 290: ['SH', 'TA'], 8990 291: ['ER'], 8991 297: ['AW'], 8992 298: ['FO'], 8993 299: ['GL'], 8994 350: ['GI'], 8995 351: ['PT'], 8996 352: ['LU'], 8997 353: ['IE'], 8998 354: ['IS'], 8999 355: ['AL'], 9000 356: ['MT'], 9001 357: ['CY'], 9002 358: ['FI', 'AX'], 9003 359: ['BG'], 9004 370: ['LT'], 9005 371: ['LV'], 9006 372: ['EE'], 9007 373: ['MD'], 9008 374: ['AM'], 9009 375: ['BY'], 9010 376: ['AD'], 9011 377: ['MC'], 9012 378: ['SM'], 9013 380: ['UA'], 9014 381: ['RS'], 9015 382: ['ME'], 9016 383: ['XK'], 9017 385: ['HR'], 9018 386: ['SI'], 9019 387: ['BA'], 9020 389: ['MK'], 9021 420: ['CZ'], 9022 421: ['SK'], 9023 423: ['LI'], 9024 500: ['FK'], 9025 501: ['BZ'], 9026 502: ['GT'], 9027 503: ['SV'], 9028 504: ['HN'], 9029 505: ['NI'], 9030 506: ['CR'], 9031 507: ['PA'], 9032 508: ['PM'], 9033 509: ['HT'], 9034 590: ['GP', 'BL', 'MF'], 9035 591: ['BO'], 9036 592: ['GY'],
9037 593: ['EC'], 9038 594: ['GF'], 9039 595: ['PY'], 9040 596: ['MQ'], 9041 597: ['SR'], 9042 598: ['UY'], 9043 599: ['CW', 'BQ'], 9044 670: ['TL'], 9045 672: ['NF'], 9046 673: ['BN'], 9047 674: ['NR'], 9048 675: ['PG'], 9049 676: ['TO'], 9050 677: ['SB'], 9051 678: ['VU'], 9052 679: ['FJ'], 9053 680: ['PW'], 9054 681: ['WF'], 9055 682: ['CK'], 9056 683: ['NU'], 9057 685: ['WS'], 9058 686: ['KI'], 9059 687: ['NC'], 9060 688: ['TV'], 9061 689: ['PF'], 9062 690: ['TK'], 9063 691: ['FM'], 9064 692: ['MH'], 9065 850: ['KP'], 9066 852: ['HK'], 9067 853: ['MO'], 9068 855: ['KH'], 9069 856: ['LA'], 9070 880: ['BD'], 9071 886: ['TW'], 9072 960: ['MV'], 9073 961: ['LB'], 9074 962: ['JO'], 9075 963: ['SY'], 9076 964: ['IQ'], 9077 965: ['KW'], 9078 966: ['SA'], 9079 967: ['YE'], 9080 968: ['OM'], 9081 970: ['PS'], 9082 971: ['AE'], 9083 972: ['IL'], 9084 973: ['BH'], 9085 974: ['QA'], 9086 975: ['BT'], 9087 976: ['MN'], 9088 977: ['NP'], 9089 992: ['TJ'], 9090 993: ['TM'], 9091 994: ['AZ'], 9092 995: ['GE'], 9093 996: ['KG'], 9094 998: ['UZ'], 9095 }, 9096 countries: { 9097 AC: ['247', '00', '(?:[01589]\\d|[46])\\d{4}', [5, 6]], 9098 AD: [ 9099 '376', 9100 '00', 9101 '(?:1|6\\d)\\d{7}|[135-9]\\d{5}', 9102 [6, 8, 9], 9103 [ 9104 ['(\\d{3})(\\d{3})', '$1 $2', ['[135-9]']], 9105 ['(\\d{4})(\\d{4})', '$1 $2', ['1']], 9106 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['6']], 9107 ], 9108 ], 9109 AE: [ 9110 '971', 9111 '00', 9112 '(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}', 9113 [5, 6, 7, 8, 9, 10, 11, 12], 9114 [ 9115 ['(\\d{3})(\\d{2,9})', '$1 $2', ['60|8']], 9116 [ 9117 '(\\d)(\\d{3})(\\d{4})', 9118 '$1 $2 $3', 9119 ['[236]|[479][2-8]'], 9120 '0$1', 9121 ], 9122 ['(\\d{3})(\\d)(\\d{5})', '$1 $2 $3', ['[479]']], 9123 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['5'], '0$1'], 9124 ], 9125 '0', 9126 ], 9127 AF: [ 9128 '93', 9129 '00', 9130 '[2-7]\\d{8}', 9131 [9], 9132 [['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[2-7]'], '0$1']], 9133 '0', 9134 ], 9135 AG: [ 9136 '1', 9137 '011', 9138 '(?:268|[58]\\d\\d|900)\\d{7}', 9139 [10], 9140 0, 9141 '1', 9142 0, 9143 '1|([457]\\d{6})$', 9144 '268$1', 9145 0, 9146 '268', 9147 ], 9148 AI: [ 9149 '1', 9150 '011', 9151 '(?:264|[58]\\d\\d|900)\\d{7}', 9152 [10], 9153 0, 9154 '1', 9155 0, 9156 '1|([2457]\\d{6})$', 9157 '264$1', 9158 0, 9159 '264', 9160 ], 9161 AL: [ 9162 '355', 9163 '00', 9164 '(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}', 9165 [6, 7, 8, 9], 9166 [ 9167 ['(\\d{3})(\\d{3,4})', '$1 $2', ['80|9'], '0$1'], 9168 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['4[2-6]'], '0$1'], 9169 [ 9170 '(\\d{2})(\\d{3})(\\d{3})', 9171 '$1 $2 $3', 9172 ['[2358][2-5]|4'], 9173 '0$1', 9174 ], 9175 ['(\\d{3})(\\d{5})', '$1 $2', ['[23578]'], '0$1'], 9176 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['6'], '0$1'], 9177 ], 9178 '0', 9179 ], 9180 AM: [ 9181 '374', 9182 '00', 9183 '(?:[1-489]\\d|55|60|77)\\d{6}', 9184 [8], 9185 [ 9186 ['(\\d{3})(\\d{2})(\\d{3})', '$1 $2 $3', ['[89]0'], '0 $1'], 9187 ['(\\d{3})(\\d{5})', '$1 $2', ['2|3[12]'], '(0$1)'], 9188 ['(\\d{2})(\\d{6})', '$1 $2', ['1|47'], '(0$1)'], 9189 ['(\\d{2})(\\d{6})', '$1 $2', ['[3-9]'], '0$1'], 9190 ], 9191 '0', 9192 ], 9193 AO: [ 9194 '244', 9195 '00', 9196 '[29]\\d{8}', 9197 [9], 9198 [['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[29]']]], 9199 ], 9200 AR: [ 9201 '54', 9202 '00', 9203 '(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}', 9204 [10, 11], 9205 [ 9206 [ 9207 '(\\d{4})(\\d{2})(\\d{4})', 9208 '$1 $2-$3', 9209 [ 9210 '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])', 9211 '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)', 9212 '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]', 9213 '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]', 9214 ], 9215 '0$1', 9216 1, 9217 ], 9218 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2-$3', ['1'], '0$1', 1], 9219 ['(\\d{3})(\\d{3})(\\d{4})', '$1-$2-$3', ['[68]'], '0$1'], 9220 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2-$3', ['[23]'], '0$1', 1], 9221 [ 9222 '(\\d)(\\d{4})(\\d{2})(\\d{4})', 9223 '$2 15-$3-$4', 9224 [ 9225 '9(?:2[2-469]|3[3-578])', 9226 '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]))', 9227 '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)', 9228 '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]', 9229 '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]', 9230 ], 9231 '0$1', 9232 0, 9233 '$1 $2 $3-$4', 9234 ], 9235 [ 9236 '(\\d)(\\d{2})(\\d{4})(\\d{4})', 9237 '$2 15-$3-$4', 9238 ['91'], 9239 '0$1', 9240 0, 9241 '$1 $2 $3-$4', 9242 ], 9243 ['(\\d{3})(\\d{3})(\\d{5})', '$1-$2-$3', ['8'], '0$1'], 9244 [ 9245 '(\\d)(\\d{3})(\\d{3})(\\d{4})', 9246 '$2 15-$3-$4', 9247 ['9'], 9248 '0$1', 9249 0, 9250 '$1 $2 $3-$4', 9251 ], 9252 ], 9253 '0', 9254 0, 9255 '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-4
92556-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)?', 9256 '9$1', 9257 ], 9258 AS: [ 9259 '1', 9260 '011', 9261 '(?:[58]\\d\\d|684|900)\\d{7}', 9262 [10], 9263 0, 9264 '1', 9265 0, 9266 '1|([267]\\d{6})$', 9267 '684$1', 9268 0, 9269 '684', 9270 ], 9271 AT: [ 9272 '43', 9273 '00', 9274 '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}', 9275 [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 9276 [ 9277 ['(\\d)(\\d{3,12})', '$1 $2', ['1(?:11|[2-9])'], '0$1'], 9278 ['(\\d{3})(\\d{2})', '$1 $2', ['517'], '0$1'], 9279 ['(\\d{2})(\\d{3,5})', '$1 $2', ['5[079]'], '0$1'], 9280 [ 9281 '(\\d{3})(\\d{3,10})', 9282 '$1 $2', 9283 ['(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]'], 9284 '0$1', 9285 ], 9286 ['(\\d{4})(\\d{3,9})', '$1 $2', ['[2-467]|5[2-6]'], '0$1'], 9287 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['5'], '0$1'], 9288 ['(\\d{2})(\\d{4})(\\d{4,7})', '$1 $2 $3', ['5'], '0$1'], 9289 ], 9290 '0', 9291 ], 9292 AU: [ 9293 '61', 9294 '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011', 9295 '1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}', 9296 [5, 6, 7, 8, 9, 10, 12], 9297 [ 9298 ['(\\d{2})(\\d{3,4})', '$1 $2', ['16'], '0$1'], 9299 ['(\\d{2})(\\d{3})(\\d{2,4})', '$1 $2 $3', ['16'], '0$1'], 9300 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['14|4'], '0$1'], 9301 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['[2378]'], '(0$1)'], 9302 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['1(?:30|[89])']], 9303 ], 9304 '0', 9305 0, 9306 '0|(183[12])', 9307 0, 9308 0, 9309 0, 9310 [ 9311 [ 9312 '(?:(?: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]))\\d{3}|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]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}', 9313 [9], 9314 ], 9315 [ 9316 '4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}', 9317 [9], 9318 ], 9319 ['180(?:0\\d{3}|2)\\d{3}', [7, 10]], 9320 ['190[0-26]\\d{6}', [10]], 9321 0, 9322 0, 9323 0, 9324 ['163\\d{2,6}', [5, 6, 7, 8, 9]], 9325 ['14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}', [9]], 9326 [ 9327 '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', 9328 [6, 8, 10, 12], 9329 ], 9330 ], 9331 '0011', 9332 ], 9333 AW: [ 9334 '297', 9335 '00', 9336 '(?:[25-79]\\d\\d|800)\\d{4}', 9337 [7], 9338 [['(\\d{3})(\\d{4})', '$1 $2', ['[25-9]']]], 9339 ], 9340 AX: [ 9341 '358', 9342 '00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))', 9343 '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}', 9344 [5, 6, 7, 8, 9, 10, 11, 12], 9345 0, 9346 '0', 9347 0, 9348 0, 9349 0, 9350 0, 9351 '18', 9352 0, 9353 '00', 9354 ], 9355 AZ: [ 9356 '994', 9357 '00', 9358 '365\\d{6}|(?:[124579]\\d|60|88)\\d{7}', 9359 [9], 9360 [ 9361 [ 9362 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 9363 '$1 $2 $3 $4', 9364 ['90'], 9365 '0$1', 9366 ], 9367 [ 9368 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 9369 '$1 $2 $3 $4', 9370 [ 9371 '1[28]|2|365|46', 9372 '1[28]|2|365[45]|46', 9373 '1[28]|2|365(?:4|5[02])|46', 9374 ], 9375 '(0$1)', 9376 ], 9377 [ 9378 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 9379 '$1 $2 $3 $4', 9380 ['[13-9]'], 9381 '0$1', 9382 ], 9383 ], 9384 '0', 9385 ], 9386 BA: [ 9387 '387', 9388 '00', 9389 '6\\d{8}|(?:[35689]\\d|49|70)\\d{6}', 9390 [8, 9], 9391 [ 9392 [ 9393 '(\\d{2})(\\d{3})(\\d{3})', 9394 '$1 $2 $3', 9395 ['6[1-3]|[7-9]'], 9396 '0$1', 9397 ], 9398 [ 9399 '(\\d{2})(\\d{3})(\\d{3})', 9400 '$1 $2-$3', 9401 ['[3-5]|6[56]'], 9402 '0$1', 9403 ], 9404 [ 9405 '(\\d{2})(\\d{2})(\\d{2})(\\d{3})', 9406 '$1 $2 $3 $4', 9407 ['6'], 9408 '0$1', 9409 ], 9410 ], 9411 '0', 9412 ], 9413 BB: [ 9414 '1', 9415 '011', 9416 '(?:246|[58]\\d\\d|900)\\d{7}', 9417 [10], 9418 0, 9419 '1', 9420 0, 9421 '1|([2-9]\\d{6})$', 9422 '246$1', 9423 0, 9424 '246', 9425 ], 9426 BD: [ 9427 '880', 9428 '00', 9429 '[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}', 9430 [6, 7, 8, 9, 10], 9431 [ 9432 ['(\\d{2})(\\d{4,6})', '$1-$2', ['31[5-8]|[459]1'], '0$1'], 9433 [ 9434 '(\\d{3})(\\d{3,7})', 9435 '$1-$2', 9436 [ 9437 '3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|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]', 9438 ], 9439 '0$1', 9440 ], 9441 ['(\\d{4})(\\d{3,6})', '$1-$2', ['[13-9]|22'], '0$1'], 9442 ['(\\d)(\\d{7,8})', '$1-$2', ['2'], '0$1'], 9443 ], 9444 '0', 9445 ], 9446 BE: [ 9447 '32', 9448 '00', 9449 '4\\d{8}|[1-9]\\d{7}', 9450 [8, 9], 9451 [ 9452 [ 9453 '(\\d{3})(\\d{2})(\\d{3})', 9454 '$1 $2 $3', 9455 ['(?:80|9)0'], 9456 '0$1', 9457 ], 9458 [ 9459 '(\\d)(\\d{3})(\\d{2})(\\d{2})', 9460 '$1 $2 $3 $4', 9461 ['[239]|4[23]'], 9462 '0$1', 9463 ], 9464 [ 9465 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9466 '$1 $2 $3 $4', 9467 ['[15-8]'], 9468 '0$1', 9469 ], 9470 [ 9471 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 9472 '$1 $2 $3 $4', 9473 ['4'], 9474 '0$1', 9475 ], 9476 ], 9477 '0', 9478 ], 9479 BF: [ 9480 '226', 9481 '00', 9482 '[025-7]\\d{7}', 9483 [8], 9484 [ 9485 [ 9486 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9487 '$1 $2 $3 $4', 9488 ['[025-7]'], 9489 ], 9490 ], 9491 ], 9492 BG: [ 9493 '359', 9494 '00', 9495 '[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}', 9496 [6, 7, 8, 9], 9497 [ 9498 ['(\\d)(\\d)(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['2'], '0$1'], 9499 ['(\\d{3})(\\d{4})', '$1 $2', ['43[1-6]|70[1-9]'], '0$1'], 9500 ['(\\d)(\\d{3})(\\d{3,4})', '$1 $2 $3', ['2'], '0$1'], 9501 [ 9502 '(\\d{2})(\\d{3})(\\d{2,3})', 9503 '$1 $2 $3', 9504 ['[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]'], 9505 '0$1', 9506 ], 9507 [ 9508 '(\\d{3})(\\d{2})(\\d{3})', 9509 '$1 $2 $3', 9510 ['(?:70|8)0'], 9511 '0$1', 9512 ], 9513 [ 9514 '(\\d{3})(\\d{3})(\\d{2})', 9515 '$1 $2 $3', 9516 ['43[1-7]|7'], 9517 '0$1', 9518 ], 9519 [ 9520 '(\\d{2})(\\d{3})(\\d{3,4})', 9521 '$1 $2 $3', 9522 ['[48]|9[08]'], 9523 '0$1', 9524 ], 9525 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['9'], '0$1'], 9526 ], 9527 '0', 9528 ], 9529 BH: [ 9530 '973', 9531 '00', 9532 '[136-9]\\d{7}', 9533 [8], 9534 [['(\\d{4})(\\d{4})', '$1 $2', ['[13679]|8[047]']]], 9535 ], 9536 BI: [ 9537 '257', 9538 '00', 9539 '(?:[267]\\d|31)\\d{6}', 9540 [8], 9541 [ 9542 [ 9543 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9544 '$1 $2 $3 $4', 9545 ['[2367]'], 9546 ], 9547 ], 9548 ], 9549 BJ: [ 9550 '229', 9551 '00', 9552 '(?:[25689]\\d|40)\\d{6}', 9553 [8], 9554 [ 9555 [ 9556 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9557 '$1 $2 $3 $4', 9558 ['[24-689]'], 9559 ], 9560 ], 9561 ], 9562 BL: [ 9563 '590', 9564 '00', 9565 '(?:590|(?:69|80)\\d|976)\\d{6}', 9566 [9], 9567 0, 9568 '0', 9569 0, 9570 0, 9571 0, 9572 0, 9573 0, 9574 [ 9575 ['590(?:2[7-9]|5[12]|87)\\d{4}'], 9576 ['69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}'], 9577 ['80[0-5]\\d{6}'], 9578 0, 9579 0, 9580 0, 9581 0, 9582 0, 9583 ['976[01]\\d{5}'], 9584 ], 9585 ], 9586 BM: [ 9587 '1', 9588 '011', 9589 '(?:441|[58]\\d\\d|900)\\d{7}', 9590 [10], 9591 0, 9592 '1', 9593 0, 9594 '1|([2-8]\\d{6})$', 9595 '441$1', 9596 0, 9597 '441', 9598 ], 9599 BN: [ 9600 '673', 9601 '00', 9602 '[2-578]\\d{6}', 9603 [7], 9604 [['(\\d{3})(\\d{4})', '$1 $2', ['[2-578]']]], 9605 ], 9606 BO: [ 9607 '591', 9608 '00(?:1\\d)?', 9609 '(?:[2-467]\\d\\d|8001)\\d{5}', 9610 [8, 9], 9611 [ 9612 ['(\\d)(\\d{7})', '$1 $2', ['[23]|4[46]']], 9613 ['(\\d{8})', '$1', ['[67]']], 9614 ['(\\d{3})(\\d{2})(\\d{4})', '$1 $2 $3', ['8']], 9615 ], 9616 '0', 9617 0, 9618 '0(1\\d)?', 9619 ], 9620 BQ: [ 9621 '599', 9622 '00', 9623 '(?:[34]1|7\\d)\\d{5}', 9624 [7], 9625 0, 9626 0, 9627 0, 9628 0, 9629 0, 9630 0, 9631 '[347]', 9632 ], 9633 BR: [ 9634 '55', 9635 '00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)', 9636 '(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}', 9637 [8, 9, 10, 11], 9638 [ 9639 [ 9640 '(\\d{4})(\\d{4})', 9641 '$1-$2', 9642 ['300|4(?:0[02]|37)', '4(?:02|37)0|[34]00'], 9643 ], 9644 [ 9645 '(\\d{3})(\\d{2,3})(\\d{4})', 9646 '$1 $2 $3', 9647 ['(?:[358]|90)0'], 9648 '0$1', 9649 ], 9650 [ 9651 '(\\d{2})(\\d{4})(\\d{4})', 9652 '$1 $2-$3', 9653 [ 9654 '(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]', 9655 ], 9656 '($1)', 9657 ], 9658 [ 9659 '(\\d{2})(\\d{5})(\\d{4})', 9660 '$1 $2-$3', 9661 ['[16][1-9]|[2-57-9]'], 9662 '($1)', 9663 ], 9664 ], 9665 '0', 9666 0, 9667 '(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?', 9668 '$2', 9669 ], 9670 BS: [ 9671 '1', 9672 '011', 9673 '(?:242|[58]\\d\\d|900)\\d{7}', 9674 [10], 9675 0, 9676 '1', 9677 0, 9678 '1|([3-8]\\d{6})$', 9679 '242$1', 9680 0, 9681 '242', 9682 ], 9683 BT: [ 9684 '975', 9685 '00', 9686 '[17]\\d{7}|[2-8]\\d{6}', 9687 [7, 8], 9688 [ 9689 ['(\\d)(\\d{3})(\\d{3}
9689)', '$1 $2 $3', ['[2-68]|7[246]']], 9690 [ 9691 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9692 '$1 $2 $3 $4', 9693 ['1[67]|7'], 9694 ], 9695 ], 9696 ], 9697 BW: [ 9698 '267', 9699 '00', 9700 '(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}', 9701 [7, 8, 10], 9702 [ 9703 ['(\\d{2})(\\d{5})', '$1 $2', ['90']], 9704 ['(\\d{3})(\\d{4})', '$1 $2', ['[24-6]|3[15-79]']], 9705 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[37]']], 9706 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['0']], 9707 ['(\\d{3})(\\d{4})(\\d{3})', '$1 $2 $3', ['8']], 9708 ], 9709 ], 9710 BY: [ 9711 '375', 9712 '810', 9713 '(?:[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}', 9714 [6, 7, 8, 9, 10, 11], 9715 [ 9716 ['(\\d{3})(\\d{3})', '$1 $2', ['800'], '8 $1'], 9717 ['(\\d{3})(\\d{2})(\\d{2,4})', '$1 $2 $3', ['800'], '8 $1'], 9718 [ 9719 '(\\d{4})(\\d{2})(\\d{3})', 9720 '$1 $2-$3', 9721 [ 9722 '1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])', 9723 '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])', 9724 ], 9725 '8 0$1', 9726 ], 9727 [ 9728 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 9729 '$1 $2-$3-$4', 9730 ['1(?:[56]|7[467])|2[1-3]'], 9731 '8 0$1', 9732 ], 9733 [ 9734 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 9735 '$1 $2-$3-$4', 9736 ['[1-4]'], 9737 '8 0$1', 9738 ], 9739 ['(\\d{3})(\\d{3,4})(\\d{4})', '$1 $2 $3', ['[89]'], '8 $1'], 9740 ], 9741 '8', 9742 0, 9743 '0|80?', 9744 0, 9745 0, 9746 0, 9747 0, 9748 '8~10', 9749 ], 9750 BZ: [ 9751 '501', 9752 '00', 9753 '(?:0800\\d|[2-8])\\d{6}', 9754 [7, 11], 9755 [ 9756 ['(\\d{3})(\\d{4})', '$1-$2', ['[2-8]']], 9757 ['(\\d)(\\d{3})(\\d{4})(\\d{3})', '$1-$2-$3-$4', ['0']], 9758 ], 9759 ], 9760 CA: [ 9761 '1', 9762 '011', 9763 '(?:[2-8]\\d|90)\\d{8}|3\\d{6}', 9764 [7, 10], 9765 0, 9766 '1', 9767 0, 9768 0, 9769 0, 9770 0, 9771 0, 9772 [ 9773 [ 9774 '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}', 9775 [10], 9776 ], 9777 ['', [10]], 9778 ['8(?:00|33|44|55|66|77|88)[2-9]\\d{6}', [10]], 9779 ['900[2-9]\\d{6}', [10]], 9780 [ 9781 '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-7]|33|44|66|77|88)|622)[2-9]\\d{6}', 9782 [10], 9783 ], 9784 0, 9785 ['310\\d{4}', [7]], 9786 0, 9787 ['600[2-9]\\d{6}', [10]], 9788 ], 9789 ], 9790 CC: [ 9791 '61', 9792 '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011', 9793 '1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', 9794 [6, 7, 8, 9, 10, 12], 9795 0, 9796 '0', 9797 0, 9798 '0|([59]\\d{7})$', 9799 '8$1', 9800 0, 9801 0, 9802 [ 9803 [ 9804 '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}', 9805 [9], 9806 ], 9807 [ 9808 '4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}', 9809 [9], 9810 ], 9811 ['180(?:0\\d{3}|2)\\d{3}', [7, 10]], 9812 ['190[0-26]\\d{6}', [10]], 9813 0, 9814 0, 9815 0, 9816 0, 9817 ['14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}', [9]], 9818 [ 9819 '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', 9820 [6, 8, 10, 12], 9821 ], 9822 ], 9823 '0011', 9824 ], 9825 CD: [ 9826 '243', 9827 '00', 9828 '[189]\\d{8}|[1-68]\\d{6}', 9829 [7, 9], 9830 [ 9831 ['(\\d{2})(\\d{2})(\\d{3})', '$1 $2 $3', ['88'], '0$1'], 9832 ['(\\d{2})(\\d{5})', '$1 $2', ['[1-6]'], '0$1'], 9833 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['1'], '0$1'], 9834 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[89]'], '0$1'], 9835 ], 9836 '0', 9837 ], 9838 CF: [ 9839 '236', 9840 '00', 9841 '(?:[27]\\d{3}|8776)\\d{4}', 9842 [8], 9843 [ 9844 [ 9845 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9846 '$1 $2 $3 $4', 9847 ['[278]'], 9848 ], 9849 ], 9850 ], 9851 CG: [ 9852 '242', 9853 '00', 9854 '222\\d{6}|(?:0\\d|80)\\d{7}', 9855 [9], 9856 [ 9857 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['8']], 9858 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[02]']], 9859 ], 9860 ], 9861 CH: [ 9862 '41', 9863 '00', 9864 '8\\d{11}|[2-9]\\d{8}', 9865 [9], 9866 [ 9867 [ 9868 '(\\d{3})(\\d{3})(\\d{3})', 9869 '$1 $2 $3', 9870 ['8[047]|90'], 9871 '0$1', 9872 ], 9873 [ 9874 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 9875 '$1 $2 $3 $4', 9876 ['[2-79]|81'], 9877 '0$1', 9878 ], 9879 [ 9880 '(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 9881 '$1 $2 $3 $4 $5', 9882 ['8'], 9883 '0$1', 9884 ], 9885 ], 9886 '0', 9887 ], 9888 CI: [ 9889 '225', 9890 '00', 9891 '[02]\\d{9}', 9892 [10], 9893 [ 9894 ['(\\d{2})(\\d{2})(\\d)(\\d{5})', '$1 $2 $3 $4', ['2']], 9895 ['(\\d{2})(\\d{2})(\\d{2})(\\d{4})', '$1 $2 $3 $4', ['0']], 9896 ], 9897 ], 9898 CK: [ 9899 '682', 9900 '00', 9901 '[2-578]\\d{4}', 9902 [5], 9903 [['(\\d{2})(\\d{3})', '$1 $2', ['[2-578]']]], 9904 ], 9905 CL: [ 9906 '56', 9907 '(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0', 9908 '12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}', 9909 [9, 10, 11], 9910 [ 9911 ['(\\d{5})(\\d{4})', '$1 $2', ['219', '2196'], '($1)'], 9912 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['44']], 9913 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['2[1-36]'], '($1)'], 9914 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['9[2-9]']], 9915 [ 9916 '(\\d{2})(\\d{3})(\\d{4})', 9917 '$1 $2 $3', 9918 ['3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])'], 9919 '($1)', 9920 ], 9921 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['60|8']], 9922 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['1']], 9923 ['(\\d{3})(\\d{3})(\\d{2})(\\d{3})', '$1 $2 $3 $4', ['60']], 9924 ], 9925 ], 9926 CM: [ 9927 '237', 9928 '00', 9929 '[26]\\d{8}|88\\d{6,7}', 9930 [8, 9], 9931 [ 9932 ['(\\d{2})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['88']], 9933 [ 9934 '(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 9935 '$1 $2 $3 $4 $5', 9936 ['[26]|88'], 9937 ], 9938 ], 9939 ], 9940 CN: [ 9941 '86', 9942 '00|1(?:[12]\\d|79)\\d\\d00', 9943 '1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}', 9944 [7, 8, 9, 10, 11, 12], 9945 [ 9946 [ 9947 '(\\d{2})(\\d{5,6})', 9948 '$1 $2', 9949 [ 9950 '(?:10|2[0-57-9])[19]', 9951 '(?:10|2[0-57-9])(?:10|9[56])', 9952 '(?:10|2[0-57-9])(?:100|9[56])', 9953 ], 9954 '0$1', 9955 ], 9956 [ 9957 '(\\d{3})(\\d{5,6})', 9958 '$1 $2', 9959 [ 9960 '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]', 9961 '(?: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]', 9962 '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])', 9963 '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])', 9964 ], 9965 '0$1', 9966 ], 9967 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['(?:4|80)0']], 9968 [ 9969 '(\\d{2})(\\d{4})(\\d{4})', 9970 '$1 $2 $3', 9971 [ 9972 '10|2(?:[02-57-9]|1[1-9])', 9973 '10|2(?:[02-57-9]|1[1-9])', 9974 '10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])', 9975 ], 9976 '0$1', 9977 1, 9978 ], 9979 [ 9980 '(\\d{3})(\\d{3})(\\d{4})', 9981 '$1 $2 $3', 9982 [ 9983 '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]', 9984 ], 9985 '0$1', 9986 1, 9987 ], 9988 ['(\\d{3})(\\d{7,8})', '$1 $2', ['9']], 9989 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['80'], '0$1', 1], 9990 [ 9991 '(\\d{3})(\\d{4})(\\d{4})', 9992 '$1 $2 $3', 9993 ['[3-578]'], 9994 '0$1', 9995 1, 9996 ], 9997 ['(\\d{3})(\\d{4})(\\d{4})', '$1 $2 $3', ['1[3-9]']], 9998 [ 9999 '(\\d{2})(\\d{3})(\\d{3})(\\d{4})', 10000 '$1 $2 $3 $4', 10001 ['[12]'], 10002 '0$1', 10003 1, 10004 ], 10005 ], 10006 '0', 10007 0, 10008 '0|(1(?:[12]\\d|79)\\d\\d)', 10009 0, 10010 0, 10011 0, 10012 0, 10013 '00', 10014 ], 10015 CO: [ 10016 '57', 10017 '00(?:4(?:[14]4|56)|[579])', 10018 '(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}', 10019 [10, 11], 10020 [ 10021 ['(\\d{3})(\\d{7})', '$1 $2', ['6'], '($1)'], 10022 ['(\\d{3})(\\d{7})', '$1 $2', ['[39]']], 10023 [ 10024 '(\\d)(\\d{3})(\\d{7})', 10025 '$1-$2-$3', 10026 ['1'], 10027 '0$1', 10028 0, 10029 '$1 $2 $3', 10030 ], 10031 ], 10032 '0', 10033 0, 10034 '0(4(?:[14]4|56)|[579])?', 10035 ], 10036 CR: [ 10037 '506', 10038 '00', 10039 '(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}', 10040 [8, 10], 10041 [ 10042 ['(\\d{4})(\\d{4})', '$1 $2', ['[2-7]|8[3-9]']], 10043 ['(\\d{3})(\\d{3})(\\d{4})', '$1-$2-$3', ['[89]']], 10044 ], 10045 0, 10046 0, 10047 '(19(?:0[0-2468]|1[09]|20|66|77|99))', 10048 ], 10049 CU: [ 10050 '53', 10051 '119', 10052 '[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}', 10053 [6, 7, 8, 10], 10054 [ 10055 ['(\\d{2})(\\d{4,6})', '$1 $2', ['2[1-4]|[34]'], '(0$1)'], 10056 ['(\\d)(\\d{6,7})', '$1 $2', ['7'], '(0$1)'], 10057 ['(\\d)(\\d{7})', '$1 $2', ['5'], '0$1'], 10058 ['(\\d{3})(\\d{7})', '$1 $2', ['8'], '0$1'], 10059 ], 10060 '0', 10061 ], 10062 CV: [ 10063 '238', 10064 '0', 10065 '(?:[2-59]\\d\\d|800)\\d{4}', 10066 [7], 10067 [['(\\d{3})(\\d{2})(\\d{2})', '$1 $2 $3', ['[2-589]']]], 10068 ], 10069 CW: [ 10070 '599', 10071 '00', 10072 '(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}', 10073 [7, 8], 10074 [ 10075 ['(\\d{3})(\\d{4})', '$1 $2', ['[3467]']], 10076 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['9[4-8]']], 10077 ], 10078 0, 10079 0, 10080 0, 10081 0, 10082 0, 10083 '[69]', 10084 ], 10085 CX: [ 10086 '61', 10087 '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011', 10088 '1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', 10089 [6, 7, 8, 9, 10, 12], 10090 0, 10091 '0', 10092 0, 10093 '0|([59]\\d{7})$', 10094 '8$1', 10095 0, 10096 0, 10097 [ 10098 [ 10099 '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}', 10100 [9], 10101 ], 10102 [ 10103 '4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}', 10104 [9], 10105 ], 10106 ['180(?:0\\d{3}|2)\\d{3}', [7, 10]], 10107 ['190[0-26]\\d{6}', [10]], 10108 0, 10109 0, 10110 0, 10111 0, 10112 ['14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}', [9]], 10113 [ 10114 '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', 10115 [6, 8, 10, 12], 10116 ], 10117 ], 10118 '0011', 10119
10119 ], 10120 CY: [ 10121 '357', 10122 '00', 10123 '(?:[279]\\d|[58]0)\\d{6}', 10124 [8], 10125 [['(\\d{2})(\\d{6})', '$1 $2', ['[257-9]']]], 10126 ], 10127 CZ: [ 10128 '420', 10129 '00', 10130 '(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}', 10131 [9], 10132 [ 10133 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[2-8]|9[015-7]']], 10134 ['(\\d{2})(\\d{3})(\\d{3})(\\d{2})', '$1 $2 $3 $4', ['96']], 10135 ['(\\d{2})(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3 $4', ['9']], 10136 ['(\\d{3})(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3 $4', ['9']], 10137 ], 10138 ], 10139 DE: [ 10140 '49', 10141 '00', 10142 '[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[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|[23]1|[46][1-8])\\d{1,9}', 10143 [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 10144 [ 10145 ['(\\d{2})(\\d{3,13})', '$1 $2', ['3[02]|40|[68]9'], '0$1'], 10146 [ 10147 '(\\d{3})(\\d{3,12})', 10148 '$1 $2', 10149 [ 10150 '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', 10151 '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', 10152 ], 10153 '0$1', 10154 ], 10155 [ 10156 '(\\d{4})(\\d{2,11})', 10157 '$1 $2', 10158 [ 10159 '[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]', 10160 '[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]', 10161 ], 10162 '0$1', 10163 ], 10164 ['(\\d{3})(\\d{4})', '$1 $2', ['138'], '0$1'], 10165 ['(\\d{5})(\\d{2,10})', '$1 $2', ['3'], '0$1'], 10166 ['(\\d{3})(\\d{5,11})', '$1 $2', ['181'], '0$1'], 10167 [ 10168 '(\\d{3})(\\d)(\\d{4,10})', 10169 '$1 $2 $3', 10170 ['1(?:3|80)|9'], 10171 '0$1', 10172 ], 10173 ['(\\d{3})(\\d{7,8})', '$1 $2', ['1[67]'], '0$1'], 10174 ['(\\d{3})(\\d{7,12})', '$1 $2', ['8'], '0$1'], 10175 [ 10176 '(\\d{5})(\\d{6})', 10177 '$1 $2', 10178 ['185', '1850', '18500'], 10179 '0$1', 10180 ], 10181 ['(\\d{3})(\\d{4})(\\d{4})', '$1 $2 $3', ['7'], '0$1'], 10182 ['(\\d{4})(\\d{7})', '$1 $2', ['18[68]'], '0$1'], 10183 ['(\\d{5})(\\d{6})', '$1 $2', ['15[0568]'], '0$1'], 10184 ['(\\d{4})(\\d{7})', '$1 $2', ['15[1279]'], '0$1'], 10185 ['(\\d{3})(\\d{8})', '$1 $2', ['18'], '0$1'], 10186 [ 10187 '(\\d{3})(\\d{2})(\\d{7,8})', 10188 '$1 $2 $3', 10189 ['1(?:6[023]|7)'], 10190 '0$1', 10191 ], 10192 ['(\\d{4})(\\d{2})(\\d{7})', '$1 $2 $3', ['15[279]'], '0$1'], 10193 ['(\\d{3})(\\d{2})(\\d{8})', '$1 $2 $3', ['15'], '0$1'], 10194 ], 10195 '0', 10196 ], 10197 DJ: [ 10198 '253', 10199 '00', 10200 '(?:2\\d|77)\\d{6}', 10201 [8], 10202 [['(\\d{2})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['[27]']]], 10203 ], 10204 DK: [ 10205 '45', 10206 '00', 10207 '[2-9]\\d{7}', 10208 [8], 10209 [ 10210 [ 10211 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 10212 '$1 $2 $3 $4', 10213 ['[2-9]'], 10214 ], 10215 ], 10216 ], 10217 DM: [ 10218 '1', 10219 '011', 10220 '(?:[58]\\d\\d|767|900)\\d{7}', 10221 [10], 10222 0, 10223 '1', 10224 0, 10225 '1|([2-7]\\d{6})$', 10226 '767$1', 10227 0, 10228 '767', 10229 ], 10230 DO: [ 10231 '1', 10232 '011', 10233 '(?:[58]\\d\\d|900)\\d{7}', 10234 [10], 10235 0, 10236 '1', 10237 0, 10238 0, 10239 0, 10240 0, 10241 '8001|8[024]9', 10242 ], 10243 DZ: [ 10244 '213', 10245 '00', 10246 '(?:[1-4]|[5-79]\\d|80)\\d{7}', 10247 [8, 9], 10248 [ 10249 [ 10250 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 10251 '$1 $2 $3 $4', 10252 ['[1-4]'], 10253 '0$1', 10254 ], 10255 [ 10256 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 10257 '$1 $2 $3 $4', 10258 ['9'], 10259 '0$1', 10260 ], 10261 [ 10262 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10263 '$1 $2 $3 $4', 10264 ['[5-8]'], 10265 '0$1', 10266 ], 10267 ], 10268 '0', 10269 ], 10270 EC: [ 10271 '593', 10272 '00', 10273 '1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}', 10274 [8, 9, 10, 11], 10275 [ 10276 [ 10277 '(\\d)(\\d{3})(\\d{4})', 10278 '$1 $2-$3', 10279 ['[2-7]'], 10280 '(0$1)', 10281 0, 10282 '$1-$2-$3', 10283 ], 10284 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['9'], '0$1'], 10285 ['(\\d{4})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['1']], 10286 ], 10287 '0', 10288 ], 10289 EE: [ 10290 '372', 10291 '00', 10292 '8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}', 10293 [7, 8, 10], 10294 [ 10295 [ 10296 '(\\d{3})(\\d{4})', 10297 '$1 $2', 10298 [ 10299 '[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88', 10300 '[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88', 10301 ], 10302 ], 10303 [ 10304 '(\\d{4})(\\d{3,4})', 10305 '$1 $2', 10306 ['[45]|8(?:00|[1-49])', '[45]|8(?:00[1-9]|[1-49])'], 10307 ], 10308 ['(\\d{2})(\\d{2})(\\d{4})', '$1 $2 $3', ['7']], 10309 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['8']], 10310 ], 10311 ], 10312 EG: [ 10313 '20', 10314 '00', 10315 '[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}', 10316 [8, 9, 10], 10317 [ 10318 ['(\\d)(\\d{7,8})', '$1 $2', ['[23]'], '0$1'], 10319 [ 10320 '(\\d{2})(\\d{6,7})', 10321 '$1 $2', 10322 ['1[35]|[4-6]|8[2468]|9[235-7]'], 10323 '0$1', 10324 ], 10325 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[189]'], '0$1'], 10326 ], 10327 '0', 10328 ], 10329 EH: [ 10330 '212', 10331 '00', 10332 '[5-8]\\d{8}', 10333 [9], 10334 0, 10335 '0', 10336 0, 10337 0, 10338 0, 10339 0, 10340 '528[89]', 10341 ], 10342 ER: [ 10343 '291', 10344 '00', 10345 '[178]\\d{6}', 10346 [7], 10347 [['(\\d)(\\d{3})(\\d{3})', '$1 $2 $3', ['[178]'], '0$1']], 10348 '0', 10349 ], 10350 ES: [ 10351 '34', 10352 '00', 10353 '[5-9]\\d{8}', 10354 [9], 10355 [ 10356 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[89]00']], 10357 [ 10358 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10359 '$1 $2 $3 $4', 10360 ['[5-9]'], 10361 ], 10362 ], 10363 ], 10364 ET: [ 10365 '251', 10366 '00', 10367 '(?:11|[2-579]\\d)\\d{7}', 10368 [9], 10369 [['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[1-579]'], '0$1']], 10370 '0', 10371 ], 10372 FI: [ 10373 '358', 10374 '00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))', 10375 '[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}', 10376 [5, 6, 7, 8, 9, 10, 11, 12], 10377 [ 10378 [ 10379 '(\\d)(\\d{4,9})', 10380 '$1 $2', 10381 ['[2568][1-8]|3(?:0[1-9]|[1-9])|9'], 10382 '0$1', 10383 ], 10384 [ 10385 '(\\d{3})(\\d{3,7})', 10386 '$1 $2', 10387 ['[12]00|[368]|70[07-9]'], 10388 '0$1', 10389 ], 10390 ['(\\d{2})(\\d{4,8})', '$1 $2', ['[1245]|7[135]'], '0$1'], 10391 ['(\\d{2})(\\d{6,10})', '$1 $2', ['7'], '0$1'], 10392 ], 10393 '0', 10394 0, 10395 0, 10396 0, 10397 0, 10398 '1[03-79]|[2-9]', 10399 0, 10400 '00', 10401 ], 10402 FJ: [ 10403 '679', 10404 '0(?:0|52)', 10405 '45\\d{5}|(?:0800\\d|[235-9])\\d{6}', 10406 [7, 11], 10407 [ 10408 ['(\\d{3})(\\d{4})', '$1 $2', ['[235-9]|45']], 10409 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['0']], 10410 ], 10411 0, 10412 0, 10413 0, 10414 0, 10415 0, 10416 0, 10417 0, 10418 '00', 10419 ], 10420 FK: ['500', '00', '[2-7]\\d{4}', [5]], 10421 FM: [ 10422 '691', 10423 '00', 10424 '(?:[39]\\d\\d|820)\\d{4}', 10425 [7], 10426 [['(\\d{3})(\\d{4})', '$1 $2', ['[389]']]], 10427 ], 10428 FO: [ 10429 '298', 10430 '00', 10431 '[2-9]\\d{5}', 10432 [6], 10433 [['(\\d{6})', '$1', ['[2-9]']]], 10434 0, 10435 0, 10436 '(10(?:01|[12]0|88))', 10437 ], 10438 FR: [ 10439 '33', 10440 '00', 10441 '[1-9]\\d{8}', 10442 [9], 10443 [ 10444 [ 10445 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10446 '$1 $2 $3 $4', 10447 ['8'], 10448 '0 $1', 10449 ], 10450 [ 10451 '(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 10452 '$1 $2 $3 $4 $5', 10453 ['[1-79]'], 10454 '0$1', 10455 ], 10456 ], 10457 '0', 10458 ], 10459 GA: [ 10460 '241', 10461 '00', 10462 '(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}', 10463 [7, 8], 10464 [ 10465 [ 10466 '(\\d)(\\d{2})(\\d{2})(\\d{2})', 10467 '$1 $2 $3 $4', 10468 ['[2-7]'], 10469 '0$1', 10470 ], 10471 ['(\\d{2})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['0']], 10472 [ 10473 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 10474 '$1 $2 $3 $4', 10475 ['11|[67]'], 10476 '0$1', 10477 ], 10478 ], 10479 0, 10480 0, 10481 '0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})', 10482 '$1', 10483 ], 10484 GB: [ 10485 '44', 10486 '00', 10487 '[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}', 10488 [7, 9, 10], 10489 [ 10490 [ 10491 '(\\d{3})(\\d{4})', 10492 '$1 $2', 10493 ['800', '8001', '80011', '800111', '8001111'], 10494 '0$1', 10495 ], 10496 [ 10497 '(\\d{3})(\\d{2})(\\d{2})', 10498 '$1 $2 $3', 10499 ['845', '8454', '84546', '845464'], 10500 '0$1', 10501 ], 10502 ['(\\d{3})(\\d{6})', '$1 $2', ['800'], '0$1'], 10503 [ 10504 '(\\d{5})(\\d{4,5})', 10505 '$1 $2', 10506 [ 10507 '1(?:38|5[23]|69|76|94)', 10508 '1(?:(?:38|69)7|5(?:24|39)|768|946)', 10509 '1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)', 10510 ], 10511 '0$1', 10512 ], 10513 [ 10514 '(\\d{4})(\\d{5,6})', 10515 '$1 $2', 10516 ['1(?:[2-69][02-9]|[78])'], 10517 '0$1', 10518 ], 10519 [ 10520 '(\\d{2})(\\d{4})(\\d{4})', 10521 '$1 $2 $3', 10522 ['[25]|7(?:0|6[02-9])', '[25]|7(?:0|6(?:[03-9]|2[356]))'], 10523 '0$1', 10524 ], 10525 ['(\\d{4})(\\d{6})', '$1 $2', ['7'], '0$1'], 10526 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[1389]'], '0$1'], 10527 ], 10528 '0', 10529 0, 10530 0, 10531 0, 10532 0, 10533 0, 10534 [ 10535 [ 10536 '(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?: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])
10536))|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}', 10537 [9, 10], 10538 ], 10539 [ 10540 '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}', 10541 [10], 10542 ], 10543 ['80[08]\\d{7}|800\\d{6}|8001111'], 10544 [ 10545 '(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d', 10546 [7, 10], 10547 ], 10548 ['70\\d{8}', [10]], 10549 0, 10550 ['(?:3[0347]|55)\\d{8}', [10]], 10551 [ 10552 '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 10553 [10], 10554 ], 10555 ['56\\d{8}', [10]], 10556 ], 10557 0, 10558 ' x', 10559 ], 10560 GD: [ 10561 '1', 10562 '011', 10563 '(?:473|[58]\\d\\d|900)\\d{7}', 10564 [10], 10565 0, 10566 '1', 10567 0, 10568 '1|([2-9]\\d{6})$', 10569 '473$1', 10570 0, 10571 '473', 10572 ], 10573 GE: [ 10574 '995', 10575 '00', 10576 '(?:[3-57]\\d\\d|800)\\d{6}', 10577 [9], 10578 [ 10579 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['70'], '0$1'], 10580 [ 10581 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 10582 '$1 $2 $3 $4', 10583 ['32'], 10584 '0$1', 10585 ], 10586 ['(\\d{3})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['[57]']], 10587 [ 10588 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10589 '$1 $2 $3 $4', 10590 ['[348]'], 10591 '0$1', 10592 ], 10593 ], 10594 '0', 10595 ], 10596 GF: [ 10597 '594', 10598 '00', 10599 '(?:[56]94|80\\d|976)\\d{6}', 10600 [9], 10601 [ 10602 [ 10603 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10604 '$1 $2 $3 $4', 10605 ['[569]'], 10606 '0$1', 10607 ], 10608 [ 10609 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10610 '$1 $2 $3 $4', 10611 ['8'], 10612 '0$1', 10613 ], 10614 ], 10615 '0', 10616 ], 10617 GG: [ 10618 '44', 10619 '00', 10620 '(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?', 10621 [7, 9, 10], 10622 0, 10623 '0', 10624 0, 10625 '0|([25-9]\\d{5})$', 10626 '1481$1', 10627 0, 10628 0, 10629 [ 10630 ['1481[25-9]\\d{5}', [10]], 10631 ['7(?:(?:781|839)\\d|911[17])\\d{5}', [10]], 10632 ['80[08]\\d{7}|800\\d{6}|8001111'], 10633 [ 10634 '(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d', 10635 [7, 10], 10636 ], 10637 ['70\\d{8}', [10]], 10638 0, 10639 ['(?:3[0347]|55)\\d{8}', [10]], 10640 [ 10641 '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 10642 [10], 10643 ], 10644 ['56\\d{8}', [10]], 10645 ], 10646 ], 10647 GH: [ 10648 '233', 10649 '00', 10650 '(?:[235]\\d{3}|800)\\d{5}', 10651 [8, 9], 10652 [ 10653 ['(\\d{3})(\\d{5})', '$1 $2', ['8'], '0$1'], 10654 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[235]'], '0$1'], 10655 ], 10656 '0', 10657 ], 10658 GI: [ 10659 '350', 10660 '00', 10661 '(?:[25]\\d\\d|606)\\d{5}', 10662 [8], 10663 [['(\\d{3})(\\d{5})', '$1 $2', ['2']]], 10664 ], 10665 GL: [ 10666 '299', 10667 '00', 10668 '(?:19|[2-689]\\d|70)\\d{4}', 10669 [6], 10670 [['(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3', ['19|[2-9]']]], 10671 ], 10672 GM: [ 10673 '220', 10674 '00', 10675 '[2-9]\\d{6}', 10676 [7], 10677 [['(\\d{3})(\\d{4})', '$1 $2', ['[2-9]']]], 10678 ], 10679 GN: [ 10680 '224', 10681 '00', 10682 '722\\d{6}|(?:3|6\\d)\\d{7}', 10683 [8, 9], 10684 [ 10685 ['(\\d{2})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['3']], 10686 ['(\\d{3})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['[67]']], 10687 ], 10688 ], 10689 GP: [ 10690 '590', 10691 '00', 10692 '(?:590|(?:69|80)\\d|976)\\d{6}', 10693 [9], 10694 [ 10695 [ 10696 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10697 '$1 $2 $3 $4', 10698 ['[569]'], 10699 '0$1', 10700 ], 10701 [ 10702 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 10703 '$1 $2 $3 $4', 10704 ['8'], 10705 '0$1', 10706 ], 10707 ], 10708 '0', 10709 0, 10710 0, 10711 0, 10712 0, 10713 0, 10714 [ 10715 [ 10716 '590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|9\\d)\\d{4}', 10717 ], 10718 ['69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}'], 10719 ['80[0-5]\\d{6}'], 10720 0, 10721 0, 10722 0, 10723 0, 10724 0, 10725 ['976[01]\\d{5}'], 10726 ], 10727 ], 10728 GQ: [ 10729 '240', 10730 '00', 10731 '222\\d{6}|(?:3\\d|55|[89]0)\\d{7}', 10732 [9], 10733 [ 10734 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[235]']], 10735 ['(\\d{3})(\\d{6})', '$1 $2', ['[89]']], 10736 ], 10737 ], 10738 GR: [ 10739 '30', 10740 '00', 10741 '5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}', 10742 [10, 11, 12], 10743 [ 10744 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2 $3', ['21|7']], 10745 [ 10746 '(\\d{4})(\\d{6})', 10747 '$1 $2', 10748 [ 10749 '2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5', 10750 ], 10751 ], 10752 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[2689]']], 10753 ['(\\d{3})(\\d{3,4})(\\d{5})', '$1 $2 $3', ['8']], 10754 ], 10755 ], 10756 GT: [ 10757 '502', 10758 '00', 10759 '(?:1\\d{3}|[2-7])\\d{7}', 10760 [8, 11], 10761 [ 10762 ['(\\d{4})(\\d{4})', '$1 $2', ['[2-7]']], 10763 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['1']], 10764 ], 10765 ], 10766 GU: [ 10767 '1', 10768 '011', 10769 '(?:[58]\\d\\d|671|900)\\d{7}', 10770 [10], 10771 0, 10772 '1', 10773 0, 10774 '1|([3-9]\\d{6})$', 10775 '671$1', 10776 0, 10777 '671', 10778 ], 10779 GW: [ 10780 '245', 10781 '00', 10782 '[49]\\d{8}|4\\d{6}', 10783 [7, 9], 10784 [ 10785 ['(\\d{3})(\\d{4})', '$1 $2', ['40']], 10786 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[49]']], 10787 ], 10788 ], 10789 GY: [ 10790 '592', 10791 '001', 10792 '9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}', 10793 [7], 10794 [['(\\d{3})(\\d{4})', '$1 $2', ['[2-46-9]']]], 10795 ], 10796 HK: [ 10797 '852', 10798 '00(?:30|5[09]|[126-9]?)', 10799 '8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}', 10800 [5, 6, 7, 8, 9, 11], 10801 [ 10802 ['(\\d{3})(\\d{2,5})', '$1 $2', ['900', '9003']], 10803 [ 10804 '(\\d{4})(\\d{4})', 10805 '$1 $2', 10806 ['[2-7]|8[1-4]|9(?:0[1-9]|[1-8])'], 10807 ], 10808 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['8']], 10809 ['(\\d{3})(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3 $4', ['9']], 10810 ], 10811 0, 10812 0, 10813 0, 10814 0, 10815 0, 10816 0, 10817 0, 10818 '00', 10819 ], 10820 HN: [ 10821 '504', 10822 '00', 10823 '8\\d{10}|[237-9]\\d{7}', 10824 [8, 11], 10825 [['(\\d{4})(\\d{4})', '$1-$2', ['[237-9]']]], 10826 ], 10827 HR: [ 10828 '385', 10829 '00', 10830 '(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}', 10831 [6, 7, 8, 9], 10832 [ 10833 ['(\\d{2})(\\d{2})(\\d{2,3})', '$1 $2 $3', ['6[01]'], '0$1'], 10834 ['(\\d{3})(\\d{2})(\\d{2,3})', '$1 $2 $3', ['8'], '0$1'], 10835 ['(\\d)(\\d{4})(\\d{3})', '$1 $2 $3', ['1'], '0$1'], 10836 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[67]'], '0$1'], 10837 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['9'], '0$1'], 10838 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[2-5]'], '0$1'], 10839 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['8'], '0$1'], 10840 ], 10841 '0', 10842 ], 10843 HT: [ 10844 '509', 10845 '00', 10846 '[2-489]\\d{7}', 10847 [8], 10848 [['(\\d{2})(\\d{2})(\\d{4})', '$1 $2 $3', ['[2-489]']]], 10849 ], 10850 HU: [ 10851 '36', 10852 '00', 10853 '[235-7]\\d{8}|[1-9]\\d{7}', 10854 [8, 9], 10855 [ 10856 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['1'], '(06 $1)'], 10857 [ 10858 '(\\d{2})(\\d{3})(\\d{3})', 10859 '$1 $2 $3', 10860 ['[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]'], 10861 '(06 $1)', 10862 ], 10863 [ 10864 '(\\d{2})(\\d{3})(\\d{3,4})', 10865 '$1 $2 $3', 10866 ['[2-9]'], 10867 '06 $1', 10868 ], 10869 ], 10870 '06', 10871 ], 10872 ID: [ 10873 '62', 10874 '00[89]', 10875 '(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}', 10876 [7, 8, 9, 10, 11, 12, 13],
10877 [ 10878 ['(\\d)(\\d{3})(\\d{3})', '$1 $2 $3', ['15']], 10879 ['(\\d{2})(\\d{5,9})', '$1 $2', ['2[124]|[36]1'], '(0$1)'], 10880 ['(\\d{3})(\\d{5,7})', '$1 $2', ['800'], '0$1'], 10881 ['(\\d{3})(\\d{5,8})', '$1 $2', ['[2-79]'], '(0$1)'], 10882 [ 10883 '(\\d{3})(\\d{3,4})(\\d{3})', 10884 '$1-$2-$3', 10885 ['8[1-35-9]'], 10886 '0$1', 10887 ], 10888 ['(\\d{3})(\\d{6,8})', '$1 $2', ['1'], '0$1'], 10889 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['804'], '0$1'], 10890 [ 10891 '(\\d{3})(\\d)(\\d{3})(\\d{3})', 10892 '$1 $2 $3 $4', 10893 ['80'], 10894 '0$1', 10895 ], 10896 ['(\\d{3})(\\d{4})(\\d{4,5})', '$1-$2-$3', ['8'], '0$1'], 10897 ], 10898 '0', 10899 ], 10900 IE: [ 10901 '353', 10902 '00', 10903 '(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}', 10904 [7, 8, 9, 10], 10905 [ 10906 [ 10907 '(\\d{2})(\\d{5})', 10908 '$1 $2', 10909 ['2[24-9]|47|58|6[237-9]|9[35-9]'], 10910 '(0$1)', 10911 ], 10912 ['(\\d{3})(\\d{5})', '$1 $2', ['[45]0'], '(0$1)'], 10913 ['(\\d)(\\d{3,4})(\\d{4})', '$1 $2 $3', ['1'], '(0$1)'], 10914 [ 10915 '(\\d{2})(\\d{3})(\\d{3,4})', 10916 '$1 $2 $3', 10917 ['[2569]|4[1-69]|7[14]'], 10918 '(0$1)', 10919 ], 10920 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['70'], '0$1'], 10921 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['81'], '(0$1)'], 10922 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[78]'], '0$1'], 10923 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['1']], 10924 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2 $3', ['4'], '(0$1)'], 10925 [ 10926 '(\\d{2})(\\d)(\\d{3})(\\d{4})', 10927 '$1 $2 $3 $4', 10928 ['8'], 10929 '0$1', 10930 ], 10931 ], 10932 '0', 10933 ], 10934 IL: [ 10935 '972', 10936 '0(?:0|1[2-9])', 10937 '1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}', 10938 [7, 8, 9, 10, 11, 12], 10939 [ 10940 ['(\\d{4})(\\d{3})', '$1-$2', ['125']], 10941 ['(\\d{4})(\\d{2})(\\d{2})', '$1-$2-$3', ['121']], 10942 ['(\\d)(\\d{3})(\\d{4})', '$1-$2-$3', ['[2-489]'], '0$1'], 10943 ['(\\d{2})(\\d{3})(\\d{4})', '$1-$2-$3', ['[57]'], '0$1'], 10944 ['(\\d{4})(\\d{3})(\\d{3})', '$1-$2-$3', ['12']], 10945 ['(\\d{4})(\\d{6})', '$1-$2', ['159']], 10946 ['(\\d)(\\d{3})(\\d{3})(\\d{3})', '$1-$2-$3-$4', ['1[7-9]']], 10947 ['(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})', '$1-$2 $3-$4', ['15']], 10948 ], 10949 '0', 10950 ], 10951 IM: [ 10952 '44', 10953 '00', 10954 '1624\\d{6}|(?:[3578]\\d|90)\\d{8}', 10955 [10], 10956 0, 10957 '0', 10958 0, 10959 '0|([25-8]\\d{5})$', 10960 '1624$1', 10961 0, 10962 '74576|(?:16|7[56])24', 10963 ], 10964 IN: [ 10965 '91', 10966 '00', 10967 '(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}', 10968 [8, 9, 10, 11, 12, 13], 10969 [ 10970 [ 10971 '(\\d{8})', 10972 '$1', 10973 [ 10974 '5(?:0|2[23]|3[03]|[67]1|88)', 10975 '5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)', 10976 '5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)', 10977 ], 10978 0, 10979 1, 10980 ], 10981 ['(\\d{4})(\\d{4,5})', '$1 $2', ['180', '1800'], 0, 1], 10982 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['140'], 0, 1], 10983 [ 10984 '(\\d{2})(\\d{4})(\\d{4})', 10985 '$1 $2 $3', 10986 [ 10987 '11|2[02]|33|4[04]|79[1-7]|80[2-46]', 10988 '11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])', 10989 '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])', 10990 ], 10991 '0$1', 10992 1, 10993 ], 10994 [ 10995 '(\\d{3})(\\d{3})(\\d{4})', 10996 '$1 $2 $3', 10997 [ 10998 '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]', 10999 '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]', 11000 '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]', 11001 ], 11002 '0$1', 11003 1, 11004 ], 11005 [ 11006 '(\\d{4})(\\d{3})(\\d{3})', 11007 '$1 $2 $3', 11008 [ 11009 '1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2
11009-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', 11010 '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]', 11011 '1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|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]|8[124-6])\\d|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]', 11012 ], 11013 '0$1', 11014 1, 11015 ], 11016 ['(\\d{5})(\\d{5})', '$1 $2', ['[6-9]'], '0$1', 1], 11017 [ 11018 '(\\d{4})(\\d{2,4})(\\d{4})', 11019 '$1 $2 $3', 11020 ['1(?:6|8[06])', '1(?:6|8[06]0)'], 11021 0, 11022 1, 11023 ], 11024 [ 11025 '(\\d{4})(\\d{3})(\\d{3})(\\d{3})', 11026 '$1 $2 $3 $4', 11027 ['18'], 11028 0, 11029 1, 11030 ], 11031 ], 11032 '0', 11033 ], 11034 IO: [ 11035 '246', 11036 '00', 11037 '3\\d{6}', 11038 [7], 11039 [['(\\d{3})(\\d{4})', '$1 $2', ['3']]], 11040 ], 11041 IQ: [ 11042 '964', 11043 '00', 11044 '(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}', 11045 [8, 9, 10], 11046 [ 11047 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['1'], '0$1'], 11048 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[2-6]'], '0$1'], 11049 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['7'], '0$1'], 11050 ], 11051 '0', 11052 ], 11053 IR: [ 11054 '98', 11055 '00', 11056 '[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}', 11057 [4, 5, 6, 7, 10], 11058 [ 11059 ['(\\d{4,5})', '$1', ['96'], '0$1'], 11060 [ 11061 '(\\d{2})(\\d{4,5})', 11062 '$1 $2', 11063 [ 11064 '(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]', 11065 ], 11066 '0$1', 11067 ], 11068 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['9'], '0$1'], 11069 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2 $3', ['[1-8]'], '0$1'], 11070 ], 11071 '0', 11072 ], 11073 IS: [ 11074 '354', 11075 '00|1(?:0(?:01|[12]0)|100)', 11076 '(?:38\\d|[4-9])\\d{6}', 11077 [7, 9], 11078 [ 11079 ['(\\d{3})(\\d{4})', '$1 $2', ['[4-9]']], 11080 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['3']], 11081 ], 11082 0, 11083 0, 11084 0, 11085 0, 11086 0, 11087 0, 11088 0, 11089 '00', 11090 ], 11091 IT: [ 11092 '39', 11093 '00', 11094 '0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?', 11095 [6, 7, 8, 9, 10, 11], 11096 [ 11097 ['(\\d{2})(\\d{4,6})', '$1 $2', ['0[26]']], 11098 [ 11099 '(\\d{3})(\\d{3,6})', 11100 '$1 $2', 11101 [ 11102 '0[13-57-9][0159]|8(?:03|4[17]|9[2-5])', 11103 '0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))', 11104 ], 11105 ], 11106 [ 11107 '(\\d{4})(\\d{2,6})', 11108 '$1 $2', 11109 ['0(?:[13-579][2-46-8]|8[236-8])'], 11110 ], 11111 ['(\\d{4})(\\d{4})', '$1 $2', ['894']], 11112 ['(\\d{2})(\\d{3,4})(\\d{4})', '$1 $2 $3', ['0[26]|5']], 11113 [ 11114 '(\\d{3})(\\d{3})(\\d{3,4})', 11115 '$1 $2 $3', 11116 ['1(?:44|[679])|[378]'], 11117 ], 11118 [ 11119 '(\\d{3})(\\d{3,4})(\\d{4})', 11120 '$1 $2 $3', 11121 ['0[13-57-9][0159]|14'], 11122 ], 11123 ['(\\d{2})(\\d{4})(\\d{5})', '$1 $2 $3', ['0[26]']], 11124 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['0']], 11125 ['(\\d{3})(\\d{4})(\\d{4,5})', '$1 $2 $3', ['3']], 11126 ], 11127 0, 11128 0, 11129 0, 11130 0, 11131 0, 11132 0, 11133 [ 11134 [ 11135 '0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}', 11136 ], 11137 ['3[1-9]\\d{8}|3[2-9]\\d{7}', [9, 10]],
11138 ['80(?:0\\d{3}|3)\\d{3}', [6, 9]], 11139 [ 11140 '(?: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}', 11141 [6, 8, 9, 10], 11142 ], 11143 ['1(?:78\\d|99)\\d{6}', [9, 10]], 11144 0, 11145 0, 11146 0, 11147 ['55\\d{8}', [10]], 11148 ['84(?:[08]\\d{3}|[17])\\d{3}', [6, 9]], 11149 ], 11150 ], 11151 JE: [ 11152 '44', 11153 '00', 11154 '1534\\d{6}|(?:[3578]\\d|90)\\d{8}', 11155 [10], 11156 0, 11157 '0', 11158 0, 11159 '0|([0-24-8]\\d{5})$', 11160 '1534$1', 11161 0, 11162 0, 11163 [ 11164 ['1534[0-24-8]\\d{5}'], 11165 ['7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}'], 11166 ['80(?:07(?:35|81)|8901)\\d{4}'], 11167 [ 11168 '(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}', 11169 ], 11170 ['701511\\d{4}'], 11171 0, 11172 [ 11173 '(?: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}', 11174 ], 11175 [ 11176 '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 11177 ], 11178 ['56\\d{8}'], 11179 ], 11180 ], 11181 JM: [ 11182 '1', 11183 '011', 11184 '(?:[58]\\d\\d|658|900)\\d{7}', 11185 [10], 11186 0, 11187 '1', 11188 0, 11189 0, 11190 0, 11191 0, 11192 '658|876', 11193 ], 11194 JO: [ 11195 '962', 11196 '00', 11197 '(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}', 11198 [8, 9], 11199 [ 11200 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['[2356]|87'], '(0$1)'], 11201 ['(\\d{3})(\\d{5,6})', '$1 $2', ['[89]'], '0$1'], 11202 ['(\\d{2})(\\d{7})', '$1 $2', ['70'], '0$1'], 11203 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['7'], '0$1'], 11204 ], 11205 '0', 11206 ], 11207 JP: [ 11208 '81', 11209 '010', 11210 '00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}', 11211 [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], 11212 [ 11213 [ 11214 '(\\d{3})(\\d{3})(\\d{3})', 11215 '$1-$2-$3', 11216 ['(?:12|57|99)0'], 11217 '0$1', 11218 ], 11219 [ 11220 '(\\d{4})(\\d)(\\d{4})', 11221 '$1-$2-$3', 11222 [ 11223 '1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])', 11224 '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]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]', 11225 '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]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]', 11226 ], 11227 '0$1', 11228 ], 11229 ['(\\d{2})(\\d{3})(\\d{4})', '$1-$2-$3', ['60'], '0$1'], 11230 [ 11231 '(\\d)(\\d{4})(\\d{4})', 11232 '$1-$2-$3', 11233 [ 11234 '[36]|4(?:2[09]|7[01])', 11235 '[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))', 11236 ], 11237 '0$1', 11238 ], 11239 [ 11240 '(\\d{2})(\\d{3})(\\d{4})', 11241 '$1-$2-$3', 11242 [ 11243 '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
11243-579]|9[29])|5(?:2|3[045]|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[27-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])', 11244 '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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]', 11245 '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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]', 11246 '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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]', 11247 ], 11248 '0$1', 11249 ], 11250 [ 11251 '(\\d{3})(\\d{2})(\\d{4})', 11252 '$1-$2-$3', 11253 ['[14]|[289][2-9]|5[3-9]|7[2-4679]'], 11254 '0$1', 11255 ], 11256 ['(\\d{3})(\\d{3})(\\d{4})', '$1-$2-$3', ['800'], '0$1'], 11257 ['(\\d{2})(\\d{4})(\\d{4})', '$1-$2-$3', ['[257-9]'], '0$1'], 11258 ], 11259 '0', 11260 ], 11261 KE: [ 11262 '254', 11263 '000', 11264 '(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}', 11265 [7, 8, 9, 10], 11266 [ 11267 ['(\\d{2})(\\d{5,7})', '$1 $2', ['[24-6]'], '0$1'], 11268 ['(\\d{3})(\\d{6})', '$1 $2', ['[17]'], '0$1'], 11269 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[89]'], '0$1'], 11270 ], 11271 '0', 11272 ], 11273 KG: [ 11274 '996', 11275 '00', 11276 '8\\d{9}|(?:[235-8]\\d|99)\\d{7}', 11277 [9, 10], 11278 [ 11279 ['(\\d{4})(\\d{5})', '$1 $2', ['3(?:1[346]|[24-79])'], '0$1'], 11280 [ 11281 '(\\d{3})(\\d{3})(\\d{3})', 11282 '$1 $2 $3', 11283 ['[235-79]|88'], 11284 '0$1', 11285 ], 11286 [ 11287 '(\\d{3})(\\d{3})(\\d)(\\d{2,3})', 11288 '$1 $2 $3 $4', 11289 ['8'], 11290 '0$1', 11291 ], 11292 ], 11293 '0', 11294 ], 11295 KH: [ 11296 '855', 11297 '00[14-9]', 11298 '1\\d{9}|[1-9]\\d{7,8}', 11299 [8, 9, 10], 11300 [ 11301 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[1-9]'], '0$1'], 11302 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['1']], 11303 ], 11304 '0', 11305 ], 11306 KI: [ 11307 '686', 11308 '00', 11309 '(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}', 11310 [5, 8], 11311 0, 11312 '0', 11313 ], 11314 KM: [ 11315 '269', 11316 '00', 11317 '[3478]\\d{6}', 11318 [7], 11319 [['(\\d{3})(\\d{2})(\\d{2})', '$1 $2 $3', ['[3478]']]], 11320 ], 11321 KN: [ 11322 '1', 11323 '011', 11324 '(?:[58]\\d\\d|900)\\d{7}', 11325 [10], 11326 0, 11327 '1', 11328 0, 11329 '1|([2-7]\\d{6})$', 11330 '869$1', 11331 0, 11332 '869', 11333 ], 11334 KP: [ 11335 '850', 11336 '00|99', 11337 '85\\d{6}|(?:19\\d|[2-7])\\d{7}', 11338 [8, 10], 11339 [ 11340 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['8'], '0$1'], 11341 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['[2-7]'], '0$1'], 11342 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['1'], '0$1'], 11343 ], 11344 '0', 11345 ], 11346 KR: [ 11347 '82', 11348 '00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))', 11349 '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}', 11350 [5, 6, 8, 9, 10, 11, 12, 13, 14], 11351 [ 11352 [ 11353 '(\\d{2})(\\d{3,4})', 11354 '$1-$2', 11355 ['(?:3[1-3]|[46][1-4]|5[1-5])1'], 11356 '0$1', 11357 ], 11358 ['(\\d{4})(\\d{4})', '$1-$2', ['1']], 11359 ['(\\d)(\\d{3,4})(\\d{4})', '$1-$2-$3', ['2'], '0$1'], 11360 ['(\\d{2})(\\d{3})(\\d{4})', '$1-$2-$3', ['60|8'], '0$1'], 11361 [ 11362 '(\\d{2})(\\d{3,4})(\\d{4})', 11363 '$1-$2-$3', 11364 ['[1346]|5[1-5]'], 11365 '0$1', 11366 ], 11367 ['(\\d{2})(\\d{4})(\\d{4})', '$1-$2-$3', ['[57]'], '0$1'], 11368 ['(\\d{2})(\\d{5})(\\d{4})', '$1-$2-$3', ['5'], '0$1'], 11369 ], 11370 '0', 11371 0, 11372 '0(8(?:[1-46-8]|5\\d\\d))?', 11373 ], 11374 KW: [ 11375 '965', 11376 '00', 11377 '18\\d{5}|(?:[2569]\\d|41)\\d{6}', 11378 [7, 8], 11379 [ 11380 [ 11381 '(\\d{4})(\\d{3,4})', 11382 '$1 $2', 11383 ['[169]|2(?:[235]|4[1-35-9])|52'], 11384 ], 11385 ['(\\d{3})(\\d{5})', '$1 $2', ['[245]']], 11386 ], 11387 ], 11388 KY: [ 11389 '1', 11390 '011', 11391 '(?:345|[58]\\d\\d|900)\\d{7}', 11392 [10], 11393 0, 11394 '1', 11395 0, 11396 '1|([2-9]\\d{6})$', 11397 '345$1', 11398 0, 11399 '345', 11400 ], 11401 KZ: [ 11402 '7', 11403 '810', 11404 '(?:33622|8\\d{8})\\d{5}|[78]\\d{9}', 11405 [10, 14], 11406 0, 11407 '8', 11408 0, 11409 0, 11410 0, 11411 0, 11412 '33|7', 11413 0, 11414 '8~10', 11415 ], 11416 LA: [ 11417 '856', 11418 '00', 11419 '[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}', 11420 [8, 9, 10], 11421 [ 11422 [ 11423 '(\\d{2})(\\d{3})(\\d{3})', 11424 '$1 $2 $3', 11425 ['2[13]|3[14]|[4-8]'], 11426 '0$1', 11427 ], 11428 [ 11429 '(\\d{2})(\\d{2})(\\d{2})(\\d{3})', 11430 '$1 $2 $3 $4', 11431 ['30[013-9]'], 11432 '0$1', 11433 ], 11434 [ 11435 '(\\d{2})(\\d{2})(\\d{3})(\\d{3})', 11436 '$1 $2 $3 $4', 11437 ['[23]'], 11438 '0$1', 11439 ], 11440 ], 11441 '0', 11442 ], 11443 LB: [ 11444 '961', 11445 '00', 11446 '[27-9]\\d{7}|[13-9]\\d{6}', 11447 [7, 8], 11448 [ 11449 [ 11450 '(\\d)(\\d{3})(\\d{3})', 11451 '$1 $2 $3', 11452 ['[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]'], 11453 '0$1', 11454 ], 11455 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[27-9]']], 11456 ], 11457 '0', 11458 ], 11459 LC: [ 11460 '1', 11461 '011', 11462 '(?:[58]\\d\\d|758|900)\\d{7}', 11463 [10], 11464 0, 11465 '1', 11466 0, 11467 '1|([2-8]\\d{6})$', 11468 '758$1', 11469 0, 11470 '758', 11471 ], 11472 LI: [ 11473 '423', 11474 '00', 11475 '[68]\\d{8}|(?:[2378]\\d|90)\\d{5}', 11476 [7, 9], 11477 [ 11478 [ 11479 '(\\d{3})(\\d{2})(\\d{2})', 11480 '$1 $2 $3', 11481 ['[2379]|8(?:0[09]|7)', '[2379]|8(?:0(?:02|9)|7)'], 11482 ], 11483 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['8']], 11484 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['69']], 11485 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['6']], 11486 ], 11487 '0', 11488 0, 11489 '0|(1001)', 11490 ], 11491 LK: [ 11492 '94', 11493 '00', 11494 '[1-9]\\d{8}', 11495 [9], 11496 [ 11497 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['7'], '0$1'], 11498 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[1-689]'], '0$1'], 11499 ], 11500 '0', 11501 ], 11502 LR: [ 11503 '231', 11504 '00', 11505 '(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}', 11506 [7, 8, 9], 11507 [ 11508 ['(\\d)(\\d{3})(\\d{3})', '$1 $2 $3', ['[4-6]'], '0$1'], 11509 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['2'], '0$1'], 11510 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[3578]'], '0$1'], 11511 ], 11512 '0', 11513 ], 11514 LS: [ 11515 '266', 11516 '00', 11517 '(?:[256]\\d\\d|800)\\d{5}', 11518 [8], 11519 [['(\\d{4})(\\d{4})', '$1 $2', ['[2568]']]], 11520 ], 11521 LT: [ 11522 '370', 11523 '00', 11524 '(?:[3469]\\d|52|[78]0)\\d{6}', 11525 [8], 11526 [ 11527 [ 11528 '(\\d)(\\d{3})(\\d{4})', 11529 '$1 $2 $3', 11530 ['52[0-7]'], 11531 '(8-$1)', 11532 1, 11533 ], 11534 [ 11535 '(\\d{3})(\\d{2})(\\d{3})', 11536 '$1 $2 $3', 11537 ['[7-9]'], 11538 '8 $1', 11539 1, 11540 ], 11541 [ 11542 '(\\d{2})(\\d{6})', 11543 '$1 $2', 11544 ['37|4(?:[15]|6[1-8])'], 11545 '(8-$1)', 11546 1, 11547 ], 11548 ['(\\d{3})(\\d{5})', '$1 $2', ['[3-6]'], '(8-$1)', 1], 11549 ], 11550 '8', 11551 0, 11552 '[08]', 11553 ], 11554 LU: [ 11555 '352', 11556 '00', 11557 '35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}', 11558 [4, 5, 6, 7, 8, 9, 10, 11], 11559 [ 11560 [ 11561 '(\\d{2})(\\d{3})', 11562 '$1 $2', 11563 [ 11564 '2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])', 11565 ], 11566 ], 11567 [ 11568 '(\\d{2})(\\d{2})(\\d{2})', 11569 '$1 $2 $3', 11570 [ 11571 '2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])', 11572 ], 11573 ], 11574 ['(\\d{2})(\\d{2})(\\d{3})', '$1 $2 $3', ['20[2-689]']], 11575 [ 11576 '(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})', 11577 '$1 $2 $3 $4', 11578 ['2(?:[0367]|4[3-8])'], 11579 ], 11580 ['(\\d{3})(\\d{2})(\\d{3})', '$1 $2 $3', ['80[01]|90[015]']], 11581 ['(\\d{2})(\\d{2})(\\d{2})(\\d{3})', '$1 $2 $3 $4', ['20']], 11582 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['6']], 11583 [ 11584 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})', 11585 '$1 $2 $3 $4 $5', 11586 ['2(?:[0367]|4[3-8])'], 11587 ], 11588 [ 11589 '(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})', 11590 '$1 $2 $3 $4', 11591 ['[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]'], 11592 ], 11593 ], 11594 0, 11595 0, 11596 '(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)', 11597 ], 11598 LV: [ 11599 '371', 11600 '00', 11601 '(?:[268]\\d|90)\\d{6}', 11602 [8], 11603 [['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[269]|8[01]']]], 11604 ], 11605 LY: [ 11606 '218', 11607 '00', 11608 '[2-9]\\d{8}', 11609 [9], 11610 [['(\\d{2})(\\d{7})', '$1-$2', ['[2-9]'], '0$1']], 11611 '0', 11612 ], 11613 MA: [ 11614 '212', 11615 '00', 11616 '[5-8]\\d{8}', 11617 [9], 11618 [ 11619 [ 11620 '(\\d{5})(\\d{4})', 11621 '$1-$2', 11622 ['5(?:29|38)', '5(?:29[89]|389)', '5(?:29[89]|389)0'], 11623 '0$1', 11624 ], 11625 [ 11626 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 11627 '$1 $2 $3 $4', 11628 ['5[45]'], 11629 '0$1', 11630 ], 11631 [ 11632 '(\\d{4})(\\d{5})', 11633 '$1-$2', 11634 [ 11635 '5(?:2[2-489]|3[5-9]|9)|892', 11636 '5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892', 11637 ], 11638 '0$1', 11639 ], 11640 ['(\\d{2})(\\d{7})', '$1-$2', ['8'], '0$1'], 11641 ['(\\d{3})(\\d{6})', '$1-$2', ['[5-7]'], '0$1'], 11642 ], 11643 '0', 11644 0, 11645 0, 11646 0, 11647 0, 11648 0, 11649 [ 11650 [ 11651 '5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}', 11652 ], 11653 [ 11654 '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}', 11655 ], 11656 ['80\\d{7}'], 11657 ['89\\d{7}'], 11658 0, 11659 0, 11660 0, 11661 0, 11662 ['592(?:4[0-2]|93)\\d{4}'], 11663 ], 11664 ], 11665 MC: [ 11666 '377', 11667 '00', 11668 '(?:[3489]|6\\d)\\d{7}', 11669 [8, 9], 11670 [ 11671 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['4'], '0$1'], 11672 [ 11673 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 11674 '$1 $2 $3 $4', 11675 ['[389]'], 11676 ], 11677 [ 11678 '(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 11679 '$1 $2 $3 $4 $5', 11680 ['6
11680'], 11681 '0$1', 11682 ], 11683 ], 11684 '0', 11685 ], 11686 MD: [ 11687 '373', 11688 '00', 11689 '(?:[235-7]\\d|[89]0)\\d{6}', 11690 [8], 11691 [ 11692 ['(\\d{3})(\\d{5})', '$1 $2', ['[89]'], '0$1'], 11693 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['22|3'], '0$1'], 11694 ['(\\d{3})(\\d{2})(\\d{3})', '$1 $2 $3', ['[25-7]'], '0$1'], 11695 ], 11696 '0', 11697 ], 11698 ME: [ 11699 '382', 11700 '00', 11701 '(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}', 11702 [8, 9], 11703 [['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[2-9]'], '0$1']], 11704 '0', 11705 ], 11706 MF: [ 11707 '590', 11708 '00', 11709 '(?:590|(?:69|80)\\d|976)\\d{6}', 11710 [9], 11711 0, 11712 '0', 11713 0, 11714 0, 11715 0, 11716 0, 11717 0, 11718 [ 11719 ['590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}'], 11720 ['69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}'], 11721 ['80[0-5]\\d{6}'], 11722 0, 11723 0, 11724 0, 11725 0, 11726 0, 11727 ['976[01]\\d{5}'], 11728 ], 11729 ], 11730 MG: [ 11731 '261', 11732 '00', 11733 '[23]\\d{8}', 11734 [9], 11735 [ 11736 [ 11737 '(\\d{2})(\\d{2})(\\d{3})(\\d{2})', 11738 '$1 $2 $3 $4', 11739 ['[23]'], 11740 '0$1', 11741 ], 11742 ], 11743 '0', 11744 0, 11745 '0|([24-9]\\d{6})$', 11746 '20$1', 11747 ], 11748 MH: [ 11749 '692', 11750 '011', 11751 '329\\d{4}|(?:[256]\\d|45)\\d{5}', 11752 [7], 11753 [['(\\d{3})(\\d{4})', '$1-$2', ['[2-6]']]], 11754 '1', 11755 ], 11756 MK: [ 11757 '389', 11758 '00', 11759 '[2-578]\\d{7}', 11760 [8], 11761 [ 11762 [ 11763 '(\\d)(\\d{3})(\\d{4})', 11764 '$1 $2 $3', 11765 ['2|34[47]|4(?:[37]7|5[47]|64)'], 11766 '0$1', 11767 ], 11768 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[347]'], '0$1'], 11769 [ 11770 '(\\d{3})(\\d)(\\d{2})(\\d{2})', 11771 '$1 $2 $3 $4', 11772 ['[58]'], 11773 '0$1', 11774 ], 11775 ], 11776 '0', 11777 ], 11778 ML: [ 11779 '223', 11780 '00', 11781 '[24-9]\\d{7}', 11782 [8], 11783 [ 11784 [ 11785 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 11786 '$1 $2 $3 $4', 11787 ['[24-9]'], 11788 ], 11789 ], 11790 ], 11791 MM: [ 11792 '95', 11793 '00', 11794 '1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}', 11795 [6, 7, 8, 9, 10], 11796 [ 11797 ['(\\d)(\\d{2})(\\d{3})', '$1 $2 $3', ['16|2'], '0$1'], 11798 [ 11799 '(\\d{2})(\\d{2})(\\d{3})', 11800 '$1 $2 $3', 11801 [ 11802 '[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]', 11803 ], 11804 '0$1', 11805 ], 11806 ['(\\d)(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[12]'], '0$1'], 11807 [ 11808 '(\\d{2})(\\d{3})(\\d{3,4})', 11809 '$1 $2 $3', 11810 ['[4-7]|8[1-35]'], 11811 '0$1', 11812 ], 11813 [ 11814 '(\\d)(\\d{3})(\\d{4,6})', 11815 '$1 $2 $3', 11816 ['9(?:2[0-4]|[35-9]|4[137-9])'], 11817 '0$1', 11818 ], 11819 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['2'], '0$1'], 11820 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['8'], '0$1'], 11821 [ 11822 '(\\d)(\\d{3})(\\d{3})(\\d{3})', 11823 '$1 $2 $3 $4', 11824 ['92'], 11825 '0$1', 11826 ], 11827 ['(\\d)(\\d{5})(\\d{4})', '$1 $2 $3', ['9'], '0$1'], 11828 ], 11829 '0', 11830 ], 11831 MN: [ 11832 '976', 11833 '001', 11834 '[12]\\d{7,9}|[5-9]\\d{7}', 11835 [8, 9, 10], 11836 [ 11837 ['(\\d{2})(\\d{2})(\\d{4})', '$1 $2 $3', ['[12]1'], '0$1'], 11838 ['(\\d{4})(\\d{4})', '$1 $2', ['[5-9]']], 11839 ['(\\d{3})(\\d{5,6})', '$1 $2', ['[12]2[1-3]'], '0$1'], 11840 [ 11841 '(\\d{4})(\\d{5,6})', 11842 '$1 $2', 11843 [ 11844 '[12](?:27|3[2-8]|4[2-68]|5[1-4689])', 11845 '[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]', 11846 ], 11847 '0$1', 11848 ], 11849 ['(\\d{5})(\\d{4,5})', '$1 $2', ['[12]'], '0$1'], 11850 ], 11851 '0', 11852 ], 11853 MO: [ 11854 '853', 11855 '00', 11856 '0800\\d{3}|(?:28|[68]\\d)\\d{6}', 11857 [7, 8], 11858 [ 11859 ['(\\d{4})(\\d{3})', '$1 $2', ['0']], 11860 ['(\\d{4})(\\d{4})', '$1 $2', ['[268]']], 11861 ], 11862 ], 11863 MP: [ 11864 '1', 11865 '011', 11866 '[58]\\d{9}|(?:67|90)0\\d{7}', 11867 [10], 11868 0, 11869 '1', 11870 0, 11871 '1|([2-9]\\d{6})$', 11872 '670$1', 11873 0, 11874 '670', 11875 ], 11876 MQ: [ 11877 '596', 11878 '00', 11879 '(?:69|80)\\d{7}|(?:59|97)6\\d{6}', 11880 [9], 11881 [ 11882 [ 11883 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 11884 '$1 $2 $3 $4', 11885 ['[569]'], 11886 '0$1', 11887 ], 11888 [ 11889 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 11890 '$1 $2 $3 $4', 11891 ['8'], 11892 '0$1', 11893 ], 11894 ], 11895 '0', 11896 ], 11897 MR: [ 11898 '222', 11899 '00', 11900 '(?:[2-4]\\d\\d|800)\\d{5}', 11901 [8], 11902 [ 11903 [ 11904 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 11905 '$1 $2 $3 $4', 11906 ['[2-48]'], 11907 ], 11908 ], 11909 ], 11910 MS: [ 11911 '1', 11912 '011', 11913 '(?:[58]\\d\\d|664|900)\\d{7}', 11914 [10], 11915 0, 11916 '1', 11917 0, 11918 '1|([34]\\d{6})$', 11919 '664$1', 11920 0, 11921 '664', 11922 ], 11923 MT: [ 11924 '356', 11925 '00', 11926 '3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}', 11927 [8], 11928 [['(\\d{4})(\\d{4})', '$1 $2', ['[2357-9]']]], 11929 ], 11930 MU: [ 11931 '230', 11932 '0(?:0|[24-7]0|3[03])', 11933 '(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}', 11934 [7, 8, 10], 11935 [ 11936 ['(\\d{3})(\\d{4})', '$1 $2', ['[2-46]|8[013]']], 11937 ['(\\d{4})(\\d{4})', '$1 $2', ['5']], 11938 ['(\\d{5})(\\d{5})', '$1 $2', ['8']], 11939 ], 11940 0, 11941 0, 11942 0, 11943 0, 11944 0, 11945 0, 11946 0, 11947 '020', 11948 ], 11949 MV: [ 11950 '960', 11951 '0(?:0|19)', 11952 '(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}', 11953 [7, 10], 11954 [ 11955 ['(\\d{3})(\\d{4})', '$1-$2', ['[3467]|9[13-9]']], 11956 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[89]']], 11957 ], 11958 0, 11959 0, 11960 0, 11961 0, 11962 0, 11963 0, 11964 0, 11965 '00', 11966 ], 11967 MW: [ 11968 '265', 11969 '00', 11970 '(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}', 11971 [7, 9], 11972 [ 11973 ['(\\d)(\\d{3})(\\d{3})', '$1 $2 $3', ['1[2-9]'], '0$1'], 11974 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['2'], '0$1'], 11975 [ 11976 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 11977 '$1 $2 $3 $4', 11978 ['[137-9]'], 11979 '0$1', 11980 ], 11981 ], 11982 '0', 11983 ], 11984 MX: [ 11985 '52', 11986 '0[09]', 11987 '1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}', 11988 [10, 11], 11989 [ 11990 [ 11991 '(\\d{2})(\\d{4})(\\d{4})', 11992 '$1 $2 $3', 11993 ['33|5[56]|81'], 11994 0, 11995 1, 11996 ], 11997 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[2-9]'], 0, 1], 11998 [ 11999 '(\\d)(\\d{2})(\\d{4})(\\d{4})', 12000 '$2 $3 $4', 12001 ['1(?:33|5[56]|81)'], 12002 0, 12003 1, 12004 ], 12005 ['(\\d)(\\d{3})(\\d{3})(\\d{4})', '$2 $3 $4', ['1'], 0, 1], 12006 ], 12007 '01', 12008 0, 12009 '0(?:[12]|4[45])|1', 12010 0, 12011 0, 12012 0, 12013 0, 12014 '00', 12015 ], 12016 MY: [ 12017 '60', 12018 '00', 12019 '1\\d{8,9}|(?:3\\d|[4-9])\\d{7}', 12020 [8, 9, 10], 12021 [ 12022 ['(\\d)(\\d{3})(\\d{4})', '$1-$2 $3', ['[4-79]'], '0$1'], 12023 [ 12024 '(\\d{2})(\\d{3})(\\d{3,4})', 12025 '$1-$2 $3', 12026 [ 12027 '1(?:[02469]|[378][1-9]|53)|8', 12028 '1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8', 12029 ], 12030 '0$1', 12031 ], 12032 ['(\\d)(\\d{4})(\\d{4})', '$1-$2 $3', ['3'], '0$1'], 12033 [ 12034 '(\\d)(\\d{3})(\\d{2})(\\d{4})', 12035 '$1-$2-$3-$4', 12036 ['1(?:[367]|80)'], 12037 ], 12038 ['(\\d{3})(\\d{3})(\\d{4})', '$1-$2 $3', ['15'], '0$1'], 12039 ['(\\d{2})(\\d{4})(\\d{4})', '$1-$2 $3', ['1'], '0$1'], 12040 ], 12041 '0', 12042 ], 12043 MZ: [ 12044 '258', 12045 '00', 12046 '(?:2|8\\d)\\d{7}', 12047 [8, 9], 12048 [ 12049 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['2|8[2-79]']], 12050 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['8']], 12051 ], 12052 ], 12053 NA: [ 12054 '264', 12055 '00', 12056 '[68]\\d{7,8}', 12057 [8, 9], 12058 [ 12059 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['88'], '0$1'], 12060 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['6'], '0$1'], 12061 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['87'], '0$1'], 12062 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['8'], '0$1'], 12063 ], 12064 '0', 12065 ], 12066 NC: [ 12067 '687', 12068 '00', 12069 '(?:050|[2-57-9]\\d\\d)\\d{3}', 12070 [6], 12071 [['(\\d{2})(\\d{2})(\\d{2})', '$1.$2.$3', ['[02-57-9]']]], 12072 ], 12073 NE: [ 12074 '227', 12075 '00', 12076 '[027-9]\\d{7}', 12077 [8], 12078 [ 12079 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['08']], 12080 [ 12081 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 12082 '$1 $2 $3 $4', 12083 ['[089]|2[013]|7[04]'], 12084 ], 12085 ], 12086 ], 12087 NF: [ 12088 '672', 12089 '00', 12090 '[13]\\d{5}', 12091 [6], 12092 [ 12093 ['(\\d{2})(\\d{4})', '$1 $2', ['1[0-3]']], 12094 ['(\\d)(\\d{5})', '$1 $2', ['[13]']], 12095 ], 12096 0, 12097 0, 12098 '([0-258]\\d{4})$', 12099 '3$1', 12100 ], 12101 NG: [ 12102 '234', 12103 '009', 12104 '(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}', 12105 [7, 8, 10, 11, 12, 13, 14], 12106 [ 12107 ['(\\d{2})(\\d{2})(\\d{3})', '$1 $2 $3', ['78'], '0$1'], 12108 [ 12109 '(\\d)(\\d{3})(\\d{3,4})', 12110 '$1 $2 $3', 12111 ['[12]|9(?:0[3-9]|[1-9])'], 12112 '0$1', 12113 ], 12114 [ 12115 '(\\d{2})(\\d{3})(\\d{2,3})', 12116 '$1 $2 $3', 12117 ['[3-7]|8[2-9]'], 12118 '0$1', 12119 ], 12120 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[7-9]'], '0$1'], 12121 ['(\\d{3})(\\d{4})(\\d{4,5})', '$1 $2 $3', ['[78]'], '0$1'], 12122 ['(\\d{3})(\\d{5})(\\d{5,6})', '$1 $2 $3', ['[78]'], '0$1'], 12123 ], 12124 '0', 12125 ], 12126 NI: [ 12127 '505', 12128 '00', 12129 '(?:1800|[25-8]\\d{3})\\d{4}', 12130 [8], 12131 [['(\\d{4})(\\d{4})', '$1 $2', ['[125-8]']]], 12132 ], 12133 NL: [ 12134 '31', 12135 '00', 12136 '(?:[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}', 12137 [5, 6, 7, 8, 9, 10, 11], 12138 [ 12139 ['(\\d{3})(\\d{4,7})', '$1 $2', ['[89]0'], '0$1'], 12140 ['(\\d{2})(\\d{7})', '$1 $2', ['66'], '0$1'], 12141 ['(\\d)(\\d{8})', '$1 $2', ['6'], '0$1'], 12142 [ 12143 '(\\d{3})(\\d{3})(\\d{3})', 12144 '$1 $2 $3', 12145 ['1[16-8]|2[259]|3[124]|4[17-9]|5[124679]'], 12146 '0$1', 12147 ], 12148 [ 12149 '(\\d{2})(\\d{3})(\\d{4})', 12150 '$1 $2 $3', 12151 ['[1-578]|91'], 12152 '0$1', 12153 ], 12154 ['(\\d{3})(\\d{3})(\\d{5})', '$1 $2 $3', ['9'], '0$1'], 12155 ], 12156 '0', 12157 ], 12158 NO: [ 12159 '47', 12160 '00', 12161 '(?:0|[2-9]\\d{3})\\d{4}', 12162 [5, 8], 12163 [ 12164 ['(\\d{3})(\\d{2})(\\d{3})', '$1 $2 $3', ['[489]|59']], 12165 [ 12166 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 12167 '$1 $2 $3 $4', 12168 ['[235-7]'], 12169 ], 12170 ], 12171 0, 12172 0, 12173 0, 12174 0, 12175 0, 12176 '[02-689]|7[0-8]', 12177 ], 12178 NP: [ 12179 '977', 12180 '00', 12181 '(?:1\\d|9)\\d{9}|[1-9]\\d{7}', 12182 [8, 10, 11], 12183 [ 12184 ['(\\d)(\\d{7})', '$1-$2', ['1[2-6]'], '0$1'], 12185 [ 12186 '(\\d{2})(\\d{6})', 12187 '$1-$2', 12188 ['1[01]|[2-8]|9(?:[1-59]|[67][2-6])'], 12189 '0$1', 12190 ], 12191 ['(\\d{3})(\\d{7})', '$1-$2', ['9']], 12192 ], 12193 '0', 12194 ], 12195 NR: [ 12196 '674', 12197 '00',
12198 '(?:444|(?:55|8\\d)\\d|666)\\d{4}', 12199 [7], 12200 [['(\\d{3})(\\d{4})', '$1 $2', ['[4-68]']]], 12201 ], 12202 NU: [ 12203 '683', 12204 '00', 12205 '(?:[47]|888\\d)\\d{3}', 12206 [4, 7], 12207 [['(\\d{3})(\\d{4})', '$1 $2', ['8']]], 12208 ], 12209 NZ: [ 12210 '64', 12211 '0(?:0|161)', 12212 '[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}', 12213 [5, 6, 7, 8, 9, 10], 12214 [ 12215 ['(\\d{2})(\\d{3,8})', '$1 $2', ['8[1-579]'], '0$1'], 12216 [ 12217 '(\\d{3})(\\d{2})(\\d{2,3})', 12218 '$1 $2 $3', 12219 ['50[036-8]|[89]0', '50(?:[0367]|88)|[89]0'], 12220 '0$1', 12221 ], 12222 [ 12223 '(\\d)(\\d{3})(\\d{4})', 12224 '$1 $2 $3', 12225 ['24|[346]|7[2-57-9]|9[2-9]'], 12226 '0$1', 12227 ], 12228 [ 12229 '(\\d{3})(\\d{3})(\\d{3,4})', 12230 '$1 $2 $3', 12231 ['2(?:10|74)|[59]|80'], 12232 '0$1', 12233 ], 12234 [ 12235 '(\\d{2})(\\d{3,4})(\\d{4})', 12236 '$1 $2 $3', 12237 ['1|2[028]'], 12238 '0$1', 12239 ], 12240 [ 12241 '(\\d{2})(\\d{3})(\\d{3,5})', 12242 '$1 $2 $3', 12243 ['2(?:[169]|7[0-35-9])|7|86'], 12244 '0$1', 12245 ], 12246 ], 12247 '0', 12248 0, 12249 0, 12250 0, 12251 0, 12252 0, 12253 0, 12254 '00', 12255 ], 12256 OM: [ 12257 '968', 12258 '00', 12259 '(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}', 12260 [7, 8, 9], 12261 [ 12262 ['(\\d{3})(\\d{4,6})', '$1 $2', ['[58]']], 12263 ['(\\d{2})(\\d{6})', '$1 $2', ['2']], 12264 ['(\\d{4})(\\d{4})', '$1 $2', ['[179]']], 12265 ], 12266 ], 12267 PA: [ 12268 '507', 12269 '00', 12270 '(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}', 12271 [7, 8, 10, 11], 12272 [ 12273 ['(\\d{3})(\\d{4})', '$1-$2', ['[1-57-9]']], 12274 ['(\\d{4})(\\d{4})', '$1-$2', ['[68]']], 12275 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['8']], 12276 ], 12277 ], 12278 PE: [ 12279 '51', 12280 '00|19(?:1[124]|77|90)00', 12281 '(?:[14-8]|9\\d)\\d{7}', 12282 [8, 9], 12283 [ 12284 ['(\\d{3})(\\d{5})', '$1 $2', ['80'], '(0$1)'], 12285 ['(\\d)(\\d{7})', '$1 $2', ['1'], '(0$1)'], 12286 ['(\\d{2})(\\d{6})', '$1 $2', ['[4-8]'], '(0$1)'], 12287 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['9']], 12288 ], 12289 '0', 12290 0, 12291 0, 12292 0, 12293 0, 12294 0, 12295 0, 12296 '00', 12297 ' Anexo ', 12298 ], 12299 PF: [ 12300 '689', 12301 '00', 12302 '4\\d{5}(?:\\d{2})?|8\\d{7,8}', 12303 [6, 8, 9], 12304 [ 12305 ['(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3', ['44']], 12306 [ 12307 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 12308 '$1 $2 $3 $4', 12309 ['4|8[7-9]'], 12310 ], 12311 ['(\\d{3})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['8']], 12312 ], 12313 ], 12314 PG: [ 12315 '675', 12316 '00|140[1-3]', 12317 '(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}', 12318 [7, 8], 12319 [ 12320 ['(\\d{3})(\\d{4})', '$1 $2', ['18|[2-69]|85']], 12321 ['(\\d{4})(\\d{4})', '$1 $2', ['[78]']], 12322 ], 12323 0, 12324 0, 12325 0, 12326 0, 12327 0, 12328 0, 12329 0, 12330 '00', 12331 ], 12332 PH: [ 12333 '63', 12334 '00', 12335 '(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}', 12336 [6, 8, 9, 10, 11, 12, 13],
12337 [ 12338 ['(\\d)(\\d{5})', '$1 $2', ['2'], '(0$1)'], 12339 [ 12340 '(\\d{4})(\\d{4,6})', 12341 '$1 $2', 12342 [ 12343 '3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2', 12344 '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]))', 12345 ], 12346 '(0$1)', 12347 ], 12348 [ 12349 '(\\d{5})(\\d{4})', 12350 '$1 $2', 12351 ['346|4(?:27|9[35])|883', '3469|4(?:279|9(?:30|56))|8834'], 12352 '(0$1)', 12353 ], 12354 ['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['2'], '(0$1)'], 12355 [ 12356 '(\\d{2})(\\d{3})(\\d{4})', 12357 '$1 $2 $3', 12358 ['[3-7]|8[2-8]'], 12359 '(0$1)', 12360 ], 12361 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['[89]'], '0$1'], 12362 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['1']], 12363 ['(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})', '$1 $2 $3 $4', ['1']], 12364 ], 12365 '0', 12366 ], 12367 PK: [ 12368 '92', 12369 '00', 12370 '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}', 12371 [8, 9, 10, 11, 12], 12372 [ 12373 ['(\\d{3})(\\d{3})(\\d{2,7})', '$1 $2 $3', ['[89]0'], '0$1'], 12374 ['(\\d{4})(\\d{5})', '$1 $2', ['1']], 12375 [ 12376 '(\\d{3})(\\d{6,7})', 12377 '$1 $2', 12378 [ 12379 '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])', 12380 '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]', 12381 ], 12382 '(0$1)', 12383 ], 12384 [ 12385 '(\\d{2})(\\d{7,8})', 12386 '$1 $2', 12387 [ 12388 '(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]', 12389 ], 12390 '(0$1)', 12391 ], 12392 ['(\\d{5})(\\d{5})', '$1 $2', ['58'], '(0$1)'], 12393 ['(\\d{3})(\\d{7})', '$1 $2', ['3'], '0$1'], 12394 [ 12395 '(\\d{2})(\\d{3})(\\d{3})(\\d{3})', 12396 '$1 $2 $3 $4', 12397 ['2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91'], 12398 '(0$1)', 12399 ], 12400 [ 12401 '(\\d{3})(\\d{3})(\\d{3})(\\d{3})', 12402 '$1 $2 $3 $4', 12403 ['[24-9]'], 12404 '(0$1)', 12405 ], 12406 ], 12407 '0', 12408 ], 12409 PL: [ 12410 '48', 12411 '00', 12412 '6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?', 12413 [6, 7, 8, 9, 10], 12414 [ 12415 ['(\\d{5})', '$1', ['19']], 12416 ['(\\d{3})(\\d{3})', '$1 $2', ['11|64']], 12417 [ 12418 '(\\d{2})(\\d{2})(\\d{3})', 12419 '$1 $2 $3', 12420 [ 12421 '(?: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', 12422 '(?: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', 12423 ], 12424 ], 12425 ['(\\d{3})(\\d{2})(\\d{2,3})', '$1 $2 $3', ['64']], 12426 [ 12427 '(\\d{3})(\\d{3})(\\d{3})', 12428 '$1 $2 $3', 12429 ['21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)'], 12430 ], 12431 [ 12432 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 12433 '$1 $2 $3 $4', 12434 ['1[2-8]|[2-7]|8[1-79]|9[145]'], 12435 ], 12436 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['8']], 12437 ], 12438 ], 12439 PM: [ 12440 '508', 12441 '00', 12442 '(?:[45]|80\\d\\d)\\d{5}', 12443 [6, 9], 12444 [ 12445 ['(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3', ['[45]'], '0$1'], 12446 [ 12447 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 12448 '$1 $2 $3 $4', 12449 ['8'], 12450 '0$1', 12451 ], 12452 ], 12453 '0', 12454 ], 12455 PR: [ 12456 '1', 12457 '011', 12458 '(?:[589]\\d\\d|787)\\d{7}', 12459 [10], 12460 0, 12461 '1', 12462 0, 12463 0, 12464 0, 12465 0, 12466 '787|939', 12467 ], 12468 PS: [ 12469 '970', 12470 '00', 12471 '[2489]2\\d{6}|(?:1\\d|5)\\d{8}', 12472 [8, 9, 10], 12473 [ 12474 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['[2489]'], '0$1'], 12475 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['5'], '0$1'], 12476 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['1']], 12477 ], 12478 '0', 12479 ], 12480 PT: [ 12481 '351', 12482 '00', 12483 '1693\\d{5}|(?:[26-9]\\d|30)\\d{7}', 12484 [9], 12485 [ 12486 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['2[12]']], 12487 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['16|[236-9]']], 12488 ], 12489 ], 12490 PW: [ 12491 '680', 12492 '01[12]', 12493 '(?:[24-8]\\d\\d|345|900)\\d{4}', 12494 [7], 12495 [['(\\d{3})(\\d{4})', '$1 $2', ['[2-9]']]], 12496 ], 12497 PY: [ 12498 '595', 12499 '00', 12500 '59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}', 12501 [6, 7, 8, 9, 10, 11], 12502 [ 12503 ['(\\d{3})(\\d{3,6})', '$1 $2', ['[2-9]0'], '0$1'], 12504 [ 12505 '(\\d{2})(\\d{5})', 12506 '$1 $2', 12507 ['[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]'], 12508 '(0$1)', 12509 ], 12510 [ 12511 '(\\d{3})(\\d{4,5})', 12512 '$1 $2', 12513 ['2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85'], 12514 '(0$1)', 12515 ], 12516 [ 12517 '(\\d{2})(\\d{3})(\\d{3,4})', 12518 '$1 $2 $3', 12519 ['2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]'], 12520 '(0$1)', 12521 ], 12522 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['87']], 12523 ['(\\d{3})(\\d{6})', '$1 $2', ['9(?:[5-79]|8[1-6])'], '0$1'], 12524 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[2-8]'], '0$1'], 12525 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['9']], 12526 ], 12527 '0', 12528 ], 12529 QA: [ 12530 '974', 12531 '00', 12532 '[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}', 12533 [7, 8, 9], 12534 [ 12535 ['(\\d{3})(\\d{4})', '$1 $2', ['2[126]|8']], 12536 ['(\\d{4})(\\d{4})', '$1 $2', ['[2-7]']], 12537 ], 12538 ], 12539 RE: [ 12540 '262', 12541 '00', 12542 '976\\d{6}|(?:26|[68]\\d)\\d{7}', 12543 [9], 12544 [ 12545 [ 12546 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 12547 '$1 $2 $3 $4', 12548 ['[2689]'], 12549 '0$1', 12550 ], 12551 ], 12552 '0', 12553 0, 12554 0, 12555 0, 12556 0, 12557 '26[23]|69|[89]', 12558 ], 12559 RO: [ 12560 '40', 12561 '00', 12562 '(?:[2378]\\d|90)\\d{7}|[23]\\d{5}', 12563 [6, 9], 12564 [ 12565 [ 12566 '(\\d{3})(\\d{3})', 12567 '$1 $2', 12568 ['2[3-6]', '2[3-6]\\d9'], 12569 '0$1', 12570 ], 12571 ['(\\d{2})(\\d{4})', '$1 $2', ['219|31'], '0$1'], 12572 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[23]1'], '0$1'], 12573 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[237-9]'], '0$1'], 12574 ], 12575 '0', 12576 0, 12577 0, 12578 0, 12579 0, 12580 0, 12581 0, 12582 0, 12583 ' int ', 12584 ], 12585 RS: [ 12586 '381', 12587 '00', 12588 '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}', 12589 [6, 7, 8, 9, 10, 11, 12], 12590 [ 12591 [ 12592 '(\\d{3})(\\d{3,9})', 12593 '$1 $2', 12594 ['(?:2[389]|39)0|[7-9]'], 12595 '0$1', 12596 ], 12597 ['(\\d{2})(\\d{5,10})', '$1 $2', ['[1-36]'], '0$1'], 12598 ], 12599 '0', 12600 ], 12601 RU: [ 12602 '7', 12603 '810', 12604 '8\\d{13}|[347-9]\\d{9}', 12605 [10, 14], 12606 [ 12607 [ 12608 '(\\d{4})(\\d{2})(\\d{2})(\\d{2})', 12609 '$1 $2 $3 $4', 12610 [ 12611 '7(?:1[0-8]|2[1-9])', 12612 '7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))', 12613 '7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2', 12614 ], 12615 '8 ($1)', 12616 1, 12617 ], 12618 [ 12619 '(\\d{5})(\\d)(\\d{2})(\\d{2})', 12620 '$1 $2 $3 $4', 12621 [ 12622 '7(?:1[0-68]|2[1-9])', 12623 '7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))', 12624 '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]', 12625 ], 12626 '8 ($1)', 12627 1, 12628 ], 12629 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['7'], '8 ($1)', 1], 12630 [ 12631 '(\\d{3})(\\d{3})(\\d{2})(\\d{2})', 12632 '$1 $2-$3-$4', 12633 ['[349]|8(?:[02-7]|1[1-8])'], 12634 '8 ($1)', 12635 1, 12636 ], 12637 [ 12638 '(\\d{4})(\\d{4})(\\d{3})(\\d{3})', 12639 '$1 $2 $3 $4', 12640 ['8'], 12641 '8 ($1)', 12642 ], 12643 ], 12644 '8', 12645 0, 12646 0, 12647 0, 12648 0, 12649 '3[04-689]|[489]', 12650 0, 12651 '8~10', 12652 ], 12653 RW: [ 12654 '250', 12655 '00', 12656 '(?:06|[27]\\d\\d|[89]00)\\d{6}', 12657 [8, 9], 12658 [ 12659 ['(\\d{2})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['0']], 12660 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[7-9]'], '0$1'], 12661 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['2']], 12662 ], 12663 '0', 12664 ], 12665 SA: [ 12666 '966', 12667 '00', 12668 '92\\d{7}|(?:[15]|8\\d)\\d{8}', 12669 [9, 10], 12670 [ 12671 ['(\\d{4})(\\d{5})', '$1 $2', ['9']], 12672 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['1'], '0$1'], 12673 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['5'], '0$1'], 12674 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['81'], '0$1'], 12675 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['8']], 12676 ], 12677 '0', 12678 ], 12679 SB: [ 12680 '677', 12681 '0[01]', 12682 '(?:[1-6]|[7-9]\\d\\d)\\d{4}', 12683 [5, 7], 12684 [['(\\d{2})(\\d{5})', '$1 $2', ['7|8[4-9]|9(?:[1-8]|9[0-8])']]], 12685 ], 12686 SC: [ 12687 '248', 12688 '010|0[0-2]', 12689 '800\\d{4}|(?:[249]\\d|64)\\d{5}', 12690 [7], 12691 [['(\\d)(\\d{3})(\\d{3})', '$1 $2 $3', ['[246]|9[57]']]], 12692 0, 12693 0, 12694 0, 12695 0, 12696 0, 12697 0, 12698 0, 12699 '00', 12700 ], 12701 SD: [ 12702 '249', 12703 '00', 12704 '[19]\\d{8}', 12705 [9], 12706 [['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[19]'], '0$1']], 12707 '0', 12708 ], 12709 SE: [ 12710 '46', 12711 '00', 12712 '(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}', 12713 [6, 7, 8, 9, 10], 12714 [ 12715 [ 12716 '(\\d{2})(\\d{2,3})(\\d{2})', 12717 '$1-$2 $3', 12718 ['20'], 12719 '0$1', 12720 0, 12721 '$1 $2 $3', 12722 ], 12723 [ 12724 '(\\d{3})(\\d{4})', 12725 '$1-$2', 12726 ['9(?:00|39|44|9)'], 12727 '0$1', 12728 0, 12729 '$1 $2', 12730 ], 12731 [ 12732 '(\\d{2})(\\d{3})(\\d{2})', 12733 '$1-$2 $3', 12734 ['[12][136]|3[356]|4[0246]|6[03]|90[1-9]'], 12735 '0$1', 12736 0, 12737 '$1 $2 $3', 12738 ], 12739 [ 12740 '(\\d)(\\d{2,3})(\\d{2})(\\d{2})', 12741 '$1-$2 $3 $4', 12742 ['8'], 12743 '0$1', 12744 0, 12745 '$1 $2 $3 $4', 12746 ], 12747 [ 12748 '(\\d{3})(\\d{2,3})(\\d{2})', 12749 '$1-$2 $3', 12750 [ 12751 '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])', 12752 ], 12753 '0$1', 12754 0, 12755 '$1 $2 $3', 12756 ], 12757 [ 12758 '(\\d{3})(\\d{2,3})(\\d{3})', 12759 '$1-$2 $3', 12760 ['9(?:00|39|44)'], 12761 '0$1', 12762 0, 12763 '$1 $2 $3', 12764 ], 12765 [ 12766 '(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})', 12767 '$1-$2 $3 $4', 12768 ['1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]'], 12769 '0$1', 12770 0, 12771 '$1 $2 $3 $4', 12772 ], 12773 [ 12774 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 12775 '$1-$2 $3 $4', 12776 ['10|7'], 12777 '0$1', 12778 0, 12779 '$1 $2 $3 $4', 12780 ], 12781 [ 12782 '(\\d)(\\d{3})(\\d{3})(\\d{2})', 12783 '$1-$2 $3 $4', 12784 ['8'], 12785 '0$1', 12786 0, 12787 '$1 $2 $3 $4', 12788 ], 12789 [ 12790 '(\\d{3})(\\d{2})(\\d{2})(\\d{2})', 12791 '$1-$2 $3 $4', 12792 [ 12793 '[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])', 12794 ], 12795 '0$1', 12796 0, 12797 '$1 $2 $3 $4', 12798 ], 12799 [ 12800 '(\\d{3})(\\d{2})(\\d{2})(\\d{3})', 12801 '$1-$2 $3 $4', 12802 ['9'], 12803
12803 '0$1', 12804 0, 12805 '$1 $2 $3 $4', 12806 ], 12807 [ 12808 '(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 12809 '$1-$2 $3 $4 $5', 12810 ['[26]'], 12811 '0$1', 12812 0, 12813 '$1 $2 $3 $4 $5', 12814 ], 12815 ], 12816 '0', 12817 ], 12818 SG: [ 12819 '65', 12820 '0[0-3]\\d', 12821 '(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}', 12822 [8, 10, 11], 12823 [ 12824 ['(\\d{4})(\\d{4})', '$1 $2', ['[369]|8(?:0[1-5]|[1-9])']], 12825 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['8']], 12826 ['(\\d{4})(\\d{4})(\\d{3})', '$1 $2 $3', ['7']], 12827 ['(\\d{4})(\\d{3})(\\d{4})', '$1 $2 $3', ['1']], 12828 ], 12829 ], 12830 SH: [ 12831 '290', 12832 '00', 12833 '(?:[256]\\d|8)\\d{3}', 12834 [4, 5], 12835 0, 12836 0, 12837 0, 12838 0, 12839 0, 12840 0, 12841 '[256]', 12842 ], 12843 SI: [ 12844 '386', 12845 '00|10(?:22|66|88|99)', 12846 '[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}', 12847 [5, 6, 7, 8], 12848 [ 12849 ['(\\d{2})(\\d{3,6})', '$1 $2', ['8[09]|9'], '0$1'], 12850 ['(\\d{3})(\\d{5})', '$1 $2', ['59|8'], '0$1'], 12851 [ 12852 '(\\d{2})(\\d{3})(\\d{3})', 12853 '$1 $2 $3', 12854 ['[37][01]|4[0139]|51|6'], 12855 '0$1', 12856 ], 12857 [ 12858 '(\\d)(\\d{3})(\\d{2})(\\d{2})', 12859 '$1 $2 $3 $4', 12860 ['[1-57]'], 12861 '(0$1)', 12862 ], 12863 ], 12864 '0', 12865 0, 12866 0, 12867 0, 12868 0, 12869 0, 12870 0, 12871 '00', 12872 ], 12873 SJ: [ 12874 '47', 12875 '00', 12876 '0\\d{4}|(?:[489]\\d|[57]9)\\d{6}', 12877 [5, 8], 12878 0, 12879 0, 12880 0, 12881 0, 12882 0, 12883 0, 12884 '79', 12885 ], 12886 SK: [ 12887 '421', 12888 '00', 12889 '[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}', 12890 [6, 7, 9], 12891 [ 12892 ['(\\d)(\\d{2})(\\d{3,4})', '$1 $2 $3', ['21'], '0$1'], 12893 [ 12894 '(\\d{2})(\\d{2})(\\d{2,3})', 12895 '$1 $2 $3', 12896 ['[3-5][1-8]1', '[3-5][1-8]1[67]'], 12897 '0$1', 12898 ], 12899 [ 12900 '(\\d)(\\d{3})(\\d{3})(\\d{2})', 12901 '$1/$2 $3 $4', 12902 ['2'], 12903 '0$1', 12904 ], 12905 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[689]'], '0$1'], 12906 [ 12907 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 12908 '$1/$2 $3 $4', 12909 ['[3-5]'], 12910 '0$1', 12911 ], 12912 ], 12913 '0', 12914 ], 12915 SL: [ 12916 '232', 12917 '00', 12918 '(?:[237-9]\\d|66)\\d{6}', 12919 [8], 12920 [['(\\d{2})(\\d{6})', '$1 $2', ['[236-9]'], '(0$1)']], 12921 '0', 12922 ], 12923 SM: [ 12924 '378', 12925 '00', 12926 '(?:0549|[5-7]\\d)\\d{6}', 12927 [8, 10], 12928 [ 12929 [ 12930 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 12931 '$1 $2 $3 $4', 12932 ['[5-7]'], 12933 ], 12934 ['(\\d{4})(\\d{6})', '$1 $2', ['0']], 12935 ], 12936 0, 12937 0, 12938 '([89]\\d{5})$', 12939 '0549$1', 12940 ], 12941 SN: [ 12942 '221', 12943 '00', 12944 '(?:[378]\\d|93)\\d{7}', 12945 [9], 12946 [ 12947 ['(\\d{3})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['8']], 12948 [ 12949 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 12950 '$1 $2 $3 $4', 12951 ['[379]'], 12952 ], 12953 ], 12954 ], 12955 SO: [ 12956 '252', 12957 '00', 12958 '[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}', 12959 [6, 7, 8, 9], 12960 [ 12961 ['(\\d{2})(\\d{4})', '$1 $2', ['8[125]']], 12962 ['(\\d{6})', '$1', ['[134]']], 12963 ['(\\d)(\\d{6})', '$1 $2', ['[15]|2[0-79]|3[0-46-8]|4[0-7]']], 12964 ['(\\d)(\\d{7})', '$1 $2', ['24|[67]']], 12965 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[3478]|64|90']], 12966 [ 12967 '(\\d{2})(\\d{5,7})', 12968 '$1 $2', 12969 ['1|28|6(?:0[5-7]|[1-35-9])|9[2-9]'], 12970 ], 12971 ], 12972 '0', 12973 ], 12974 SR: [ 12975 '597', 12976 '00', 12977 '(?:[2-5]|68|[78]\\d)\\d{5}', 12978 [6, 7], 12979 [ 12980 ['(\\d{2})(\\d{2})(\\d{2})', '$1-$2-$3', ['56']], 12981 ['(\\d{3})(\\d{3})', '$1-$2', ['[2-5]']], 12982 ['(\\d{3})(\\d{4})', '$1-$2', ['[6-8]']], 12983 ], 12984 ], 12985 SS: [ 12986 '211', 12987 '00', 12988 '[19]\\d{8}', 12989 [9], 12990 [['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[19]'], '0$1']], 12991 '0', 12992 ], 12993 ST: [ 12994 '239', 12995 '00', 12996 '(?:22|9\\d)\\d{5}', 12997 [7], 12998 [['(\\d{3})(\\d{4})', '$1 $2', ['[29]']]], 12999 ], 13000 SV: [ 13001 '503', 13002 '00', 13003 '[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?', 13004 [7, 8, 11], 13005 [ 13006 ['(\\d{3})(\\d{4})', '$1 $2', ['[89]']], 13007 ['(\\d{4})(\\d{4})', '$1 $2', ['[267]']], 13008 ['(\\d{3})(\\d{4})(\\d{4})', '$1 $2 $3', ['[89]']], 13009 ], 13010 ], 13011 SX: [ 13012 '1', 13013 '011', 13014 '7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}', 13015 [10], 13016 0, 13017 '1', 13018 0, 13019 '1|(5\\d{6})$', 13020 '721$1', 13021 0, 13022 '721', 13023 ], 13024 SY: [ 13025 '963', 13026 '00', 13027 '[1-39]\\d{8}|[1-5]\\d{7}', 13028 [8, 9], 13029 [ 13030 [ 13031 '(\\d{2})(\\d{3})(\\d{3,4})', 13032 '$1 $2 $3', 13033 ['[1-5]'], 13034 '0$1', 13035 1, 13036 ], 13037 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['9'], '0$1', 1], 13038 ], 13039 '0', 13040 ], 13041 SZ: [ 13042 '268', 13043 '00', 13044 '0800\\d{4}|(?:[237]\\d|900)\\d{6}', 13045 [8, 9], 13046 [ 13047 ['(\\d{4})(\\d{4})', '$1 $2', ['[0237]']], 13048 ['(\\d{5})(\\d{4})', '$1 $2', ['9']], 13049 ], 13050 ], 13051 TA: ['290', '00', '8\\d{3}', [4], 0, 0, 0, 0, 0, 0, '8'], 13052 TC: [ 13053 '1', 13054 '011', 13055 '(?:[58]\\d\\d|649|900)\\d{7}', 13056 [10], 13057 0, 13058 '1', 13059 0, 13060 '1|([2-479]\\d{6})$', 13061 '649$1', 13062 0, 13063 '649', 13064 ], 13065 TD: [ 13066 '235', 13067 '00|16', 13068 '(?:22|[69]\\d|77)\\d{6}', 13069 [8], 13070 [ 13071 [ 13072 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 13073 '$1 $2 $3 $4', 13074 ['[2679]'], 13075 ], 13076 ], 13077 0, 13078 0, 13079 0, 13080 0, 13081 0, 13082 0, 13083 0, 13084 '00', 13085 ], 13086 TG: [ 13087 '228', 13088 '00', 13089 '[279]\\d{7}', 13090 [8], 13091 [ 13092 [ 13093 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 13094 '$1 $2 $3 $4', 13095 ['[279]'], 13096 ], 13097 ], 13098 ], 13099 TH: [ 13100 '66', 13101 '00[1-9]', 13102 '(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}', 13103 [8, 9, 10, 13], 13104 [ 13105 ['(\\d)(\\d{3})(\\d{4})', '$1 $2 $3', ['2'], '0$1'], 13106 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[13-9]'], '0$1'], 13107 ['(\\d{4})(\\d{3})(\\d{3})', '$1 $2 $3', ['1']], 13108 ], 13109 '0', 13110 ], 13111 TJ: [ 13112 '992', 13113 '810', 13114 '(?:00|[1-57-9]\\d)\\d{7}', 13115 [9], 13116 [ 13117 ['(\\d{6})(\\d)(\\d{2})', '$1 $2 $3', ['331', '3317']], 13118 ['(\\d{3})(\\d{2})(\\d{4})', '$1 $2 $3', ['[34]7|91[78]']], 13119 ['(\\d{4})(\\d)(\\d{4})', '$1 $2 $3', ['3[1-5]']], 13120 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[0-57-9]']], 13121 ], 13122 0, 13123 0, 13124 0, 13125 0, 13126 0, 13127 0, 13128 0, 13129 '8~10', 13130 ], 13131 TK: ['690', '00', '[2-47]\\d{3,6}', [4, 5, 6, 7]], 13132 TL: [ 13133 '670', 13134 '00', 13135 '7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}', 13136 [7, 8], 13137 [ 13138 ['(\\d{3})(\\d{4})', '$1 $2', ['[2-489]|70']], 13139 ['(\\d{4})(\\d{4})', '$1 $2', ['7']], 13140 ], 13141 ], 13142 TM: [ 13143 '993', 13144 '810', 13145 '[1-6]\\d{7}', 13146 [8], 13147 [ 13148 [ 13149 '(\\d{2})(\\d{2})(\\d{2})(\\d{2})', 13150 '$1 $2-$3-$4', 13151 ['12'], 13152 '(8 $1)', 13153 ], 13154 [ 13155 '(\\d{3})(\\d)(\\d{2})(\\d{2})', 13156 '$1 $2-$3-$4', 13157 ['[1-5]'], 13158 '(8 $1)', 13159 ], 13160 ['(\\d{2})(\\d{6})', '$1 $2', ['6'], '8 $1'], 13161 ], 13162 '8', 13163 0, 13164 0, 13165 0, 13166 0, 13167 0, 13168 0, 13169 '8~10', 13170 ], 13171 TN: [ 13172 '216', 13173 '00', 13174 '[2-57-9]\\d{7}', 13175 [8], 13176 [['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[2-57-9]']]], 13177 ], 13178 TO: [ 13179 '676', 13180 '00', 13181 '(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}', 13182 [5, 7], 13183 [ 13184 [ 13185 '(\\d{2})(\\d{3})', 13186 '$1-$2', 13187 ['[2-4]|50|6[09]|7[0-24-69]|8[05]'], 13188 ], 13189 ['(\\d{4})(\\d{3})', '$1 $2', ['0']], 13190 ['(\\d{3})(\\d{4})', '$1 $2', ['[5-9]']], 13191 ], 13192 ], 13193 TR: [ 13194 '90', 13195 '00', 13196 '4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}', 13197 [7, 10, 12, 13],
13198 [ 13199 [ 13200 '(\\d{3})(\\d{3})(\\d{4})', 13201 '$1 $2 $3', 13202 ['512|8[01589]|90'], 13203 '0$1', 13204 1, 13205 ], 13206 [ 13207 '(\\d{3})(\\d{3})(\\d{2})(\\d{2})', 13208 '$1 $2 $3 $4', 13209 ['5(?:[0-59]|61)', '5(?:[0-59]|616)', '5(?:[0-59]|6161)'], 13210 '0$1', 13211 1, 13212 ], 13213 [ 13214 '(\\d{3})(\\d{3})(\\d{2})(\\d{2})', 13215 '$1 $2 $3 $4', 13216 ['[24][1-8]|3[1-9]'], 13217 '(0$1)', 13218 1, 13219 ], 13220 ['(\\d{3})(\\d{3})(\\d{6,7})', '$1 $2 $3', ['80'], '0$1', 1], 13221 ], 13222 '0', 13223 ], 13224 TT: [ 13225 '1', 13226 '011', 13227 '(?:[58]\\d\\d|900)\\d{7}', 13228 [10], 13229 0, 13230 '1', 13231 0, 13232 '1|([2-46-8]\\d{6})$', 13233 '868$1', 13234 0, 13235 '868', 13236 ], 13237 TV: [ 13238 '688', 13239 '00', 13240 '(?:2|7\\d\\d|90)\\d{4}', 13241 [5, 6, 7], 13242 [ 13243 ['(\\d{2})(\\d{3})', '$1 $2', ['2']], 13244 ['(\\d{2})(\\d{4})', '$1 $2', ['90']], 13245 ['(\\d{2})(\\d{5})', '$1 $2', ['7']], 13246 ], 13247 ], 13248 TW: [ 13249 '886', 13250 '0(?:0[25-79]|19)', 13251 '[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}', 13252 [7, 8, 9, 10, 11], 13253 [ 13254 ['(\\d{2})(\\d)(\\d{4})', '$1 $2 $3', ['202'], '0$1'], 13255 ['(\\d{2})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[258]0'], '0$1'], 13256 [ 13257 '(\\d)(\\d{3,4})(\\d{4})', 13258 '$1 $2 $3', 13259 [ 13260 '[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]', 13261 '[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]', 13262 ], 13263 '0$1', 13264 ], 13265 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[49]'], '0$1'], 13266 ['(\\d{2})(\\d{4})(\\d{4,5})', '$1 $2 $3', ['7'], '0$1'], 13267 ], 13268 '0', 13269 0, 13270 0, 13271 0, 13272 0, 13273 0, 13274 0, 13275 0, 13276 '#', 13277 ], 13278 TZ: [ 13279 '255', 13280 '00[056]', 13281 '(?:[26-8]\\d|41|90)\\d{7}', 13282 [9], 13283 [ 13284 ['(\\d{3})(\\d{2})(\\d{4})', '$1 $2 $3', ['[89]'], '0$1'], 13285 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[24]'], '0$1'], 13286 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[67]'], '0$1'], 13287 ], 13288 '0', 13289 ], 13290 UA: [ 13291 '380', 13292 '00', 13293 '[89]\\d{9}|[3-9]\\d{8}', 13294 [9, 10], 13295 [ 13296 [ 13297 '(\\d{3})(\\d{3})(\\d{3})', 13298 '$1 $2 $3', 13299 [ 13300 '6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]', 13301 '6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]', 13302 ], 13303 '0$1', 13304 ], 13305 [ 13306 '(\\d{4})(\\d{5})', 13307 '$1 $2', 13308 [ 13309 '3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])', 13310 '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])', 13311 ], 13312 '0$1', 13313 ], 13314 [ 13315 '(\\d{2})(\\d{3})(\\d{4})', 13316 '$1 $2 $3', 13317 ['[3-7]|89|9[1-9]'], 13318 '0$1', 13319 ], 13320 ['(\\d{3})(\\d{3})(\\d{3,4})', '$1 $2 $3', ['[89]'], '0$1'], 13321 ], 13322 '0', 13323 0, 13324 0, 13325 0, 13326 0, 13327 0, 13328 0, 13329 '0~0', 13330 ], 13331 UG: [ 13332 '256', 13333 '00[057]', 13334 '800\\d{6}|(?:[29]0|[347]\\d)\\d{7}', 13335 [9], 13336 [ 13337 ['(\\d{4})(\\d{5})', '$1 $2', ['202', '2024'], '0$1'], 13338 [ 13339 '(\\d{3})(\\d{6})', 13340 '$1 $2', 13341 ['[27-9]|4(?:6[45]|[7-9])'], 13342 '0$1', 13343 ], 13344 ['(\\d{2})(\\d{7})', '$1 $2', ['[34]'], '0$1'], 13345 ], 13346 '0', 13347 ], 13348 US: [ 13349 '1', 13350 '011', 13351 '[2-9]\\d{9}|3\\d{6}', 13352 [10], 13353 [ 13354 ['(\\d{3})(\\d{4})', '$1-$2', ['310'], 0, 1], 13355 [ 13356 '(\\d{3})(\\d{3})(\\d{4})', 13357 '($1) $2-$3', 13358 ['[2-9]'], 13359 0, 13360 1, 13361 '$1-$2-$3', 13362 ], 13363 ], 13364 '1', 13365 0, 13366 0, 13367 0, 13368 0, 13369 0, 13370 [ 13371 [ 13372 '5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3
13372(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|5[25]|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|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-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-289]|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-389]|8[04-69]))[2-9]\\d{6}', 13373 ], 13374 [''], 13375 ['8(?:00|33|44|55|66|77|88)[2-9]\\d{6}'], 13376 ['900[2-9]\\d{6}'], 13377 [ 13378 '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-7]|33|44|66|77|88)[2-9]\\d{6}', 13379 ], 13380 ], 13381 ], 13382 UY: [ 13383 '598', 13384 '0(?:0|1[3-9]\\d)', 13385 '4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}', 13386 [7, 8, 10], 13387 [ 13388 ['(\\d{3})(\\d{4})', '$1 $2', ['405|8|90'], '0$1'], 13389 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['9'], '0$1'], 13390 ['(\\d{4})(\\d{4})', '$1 $2', ['[124]']], 13391 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['4'], '0$1'], 13392 ], 13393 '0', 13394 0, 13395 0, 13396 0, 13397 0, 13398 0, 13399 0, 13400 '00', 13401 ' int. ', 13402 ], 13403 UZ: [ 13404 '998', 13405 '810', 13406 '(?:33|55|[679]\\d|88)\\d{7}', 13407 [9], 13408 [ 13409 [ 13410 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 13411 '$1 $2 $3 $4', 13412 ['[35-9]'], 13413 '8 $1', 13414 ], 13415 ], 13416 '8', 13417 0, 13418 0, 13419 0, 13420 0, 13421 0, 13422 0, 13423 '8~10', 13424 ], 13425 VA: [ 13426 '39', 13427 '00', 13428 '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}', 13429 [6, 7, 8, 9, 10, 11], 13430 0, 13431 0, 13432 0, 13433 0, 13434 0, 13435 0, 13436 '06698', 13437 ], 13438 VC: [ 13439 '1', 13440 '011', 13441 '(?:[58]\\d\\d|784|900)\\d{7}', 13442 [10], 13443 0, 13444 '1', 13445 0, 13446 '1|([2-7]\\d{6})$', 13447 '784$1', 13448 0, 13449 '784', 13450 ], 13451 VE: [ 13452 '58', 13453 '00', 13454 '[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}', 13455 [10], 13456 [['(\\d{3})(\\d{7})', '$1-$2', ['[24-689]'], '0$1']], 13457 '0', 13458 ], 13459 VG: [ 13460 '1', 13461 '011', 13462 '(?:284|[58]\\d\\d|900)\\d{7}', 13463 [10], 13464 0, 13465 '1', 13466 0, 13467 '1|([2-578]\\d{6})$', 13468 '284$1', 13469 0, 13470 '284', 13471 ], 13472 VI: [ 13473 '1', 13474 '011', 13475 '[58]\\d{9}|(?:34|90)0\\d{7}', 13476 [10], 13477 0, 13478 '1', 13479 0, 13480 '1|([2-9]\\d{6})$', 13481 '340$1', 13482 0, 13483 '340', 13484 ], 13485 VN: [ 13486 '84', 13487 '00', 13488 '[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}', 13489 [7, 8, 9, 10], 13490 [ 13491 ['(\\d{2})(\\d{5})', '$1 $2', ['80'], '0$1', 1], 13492 ['(\\d{4})(\\d{4,6})', '$1 $2', ['1'], 0, 1], 13493 [ 13494 '(\\d{2})(\\d{3})(\\d{2})(\\d{2})', 13495 '$1 $2 $3 $4', 13496 ['[69]'], 13497 '0$1', 13498 1, 13499 ], 13500 [ 13501 '(\\d{3})(\\d{3})(\\d{3})', 13502 '$1 $2 $3', 13503 ['[3578]'], 13504 '0$1', 13505 1, 13506 ], 13507 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2 $3', ['2[48]'], '0$1', 1], 13508 ['(\\d{3})(\\d{4})(\\d{3})', '$1 $2 $3', ['2'], '0$1', 1], 13509 ], 13510 '0', 13511 ], 13512 VU: [ 13513 '678', 13514 '00', 13515 '[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}', 13516 [5, 7], 13517 [['(\\d{3})(\\d{4})', '$1 $2', ['[57-9]']]], 13518 ], 13519 WF: [ 13520 '681', 13521 '00', 13522 '(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?', 13523 [6, 9], 13524 [ 13525 ['(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3', ['[478]']], 13526 ['(\\d{3})(\\d{2})(\\d{2})(\\d{2})', '$1 $2 $3 $4', ['8']], 13527 ], 13528 ], 13529 WS: [ 13530 '685', 13531 '0', 13532 '(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}', 13533 [5, 6, 7, 10], 13534 [ 13535 ['(\\d{5})', '$1', ['[2-5]|6[1-9]']], 13536 ['(\\d{3})(\\d{3,7})', '$1 $2', ['[68]']], 13537 ['(\\d{2})(\\d{5})', '$1 $2', ['7']], 13538 ], 13539 ], 13540 XK: [ 13541 '383', 13542 '00', 13543 '[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}', 13544 [8, 9], 13545 [ 13546 ['(\\d{3})(\\d{5})', '$1 $2', ['[89]'], '0$1'], 13547 ['(\\d{2})(\\d{3})(\\d{3})', '$1 $2 $3', ['[2-4]'], '0$1'], 13548 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[23]'], '0$1'], 13549 ], 13550 '0', 13551 ], 13552 YE: [ 13553 '967', 13554 '00', 13555 '(?:1|7\\d)\\d{7}|[1-7]\\d{6}', 13556 [7, 8, 9], 13557 [ 13558 [ 13559 '(\\d)(\\d{3})(\\d{3,4})', 13560 '$1 $2 $3', 13561 ['[1-6]|7[24-68]'], 13562 '0$1', 13563 ], 13564 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['7'], '0$1'], 13565 ], 13566 '0', 13567 ], 13568 YT: [ 13569 '262', 13570 '00', 13571 '80\\d{7}|(?:26|63)9\\d{6}', 13572 [9], 13573 0, 13574 '0', 13575 0, 13576 0, 13577 0, 13578 0, 13579 '269|63', 13580 ], 13581 ZA: [ 13582 '27', 13583 '00', 13584 '[1-79]\\d{8}|8\\d{4,9}', 13585 [5, 6, 7, 8, 9, 10], 13586 [ 13587 ['(\\d{2})(\\d{3,4})', '$1 $2', ['8[1-4]'], '0$1'], 13588 ['(\\d{2})(\\d{3})(\\d{2,3})', '$1 $2 $3', ['8[1-4]'], '0$1'], 13589 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['860'], '0$1'], 13590 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['[1-9]'], '0$1'], 13591 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['8'], '0$1'], 13592 ], 13593 '0', 13594 ], 13595 ZM: [ 13596 '260', 13597 '00', 13598 '800\\d{6}|(?:21|63|[79]\\d)\\d{7}', 13599 [9], 13600 [ 13601 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[28]'], '0$1'], 13602 ['(\\d{2})(\\d{7})', '$1 $2', ['[79]'], '0$1'], 13603 ], 13604 '0', 13605 ], 13606 ZW: [ 13607 '263', 13608 '00', 13609 '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}', 13610 [5, 6, 7, 8, 9, 10], 13611 [ 13612 [ 13613 '(\\d{3})(\\d{3,5})', 13614 '$1 $2', 13615 [ 13616 '2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]', 13617 ], 13618 '0$1', 13619 ], 13620 ['(\\d)(\\d{3})(\\d{2,4})', '$1 $2 $3', ['[49]'], '0$1'], 13621 ['(\\d{3})(\\d{4})', '$1 $2', ['80'], '0$1'], 13622 [ 13623 '(\\d{2})(\\d{7})', 13624 '$1 $2', 13625 [ 13626 '24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2', 13627 '2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]', 13628 ], 13629 '(0$1)', 13630 ], 13631 ['(\\d{2})(\\d{3})(\\d{4})', '$1 $2 $3', ['7'], '0$1'], 13632 [ 13633 '(\\d{3})(\\d{3})(\\d{3,4})', 13634 '$1 $2 $3', 13635 [ 13636 '2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)', 13637 '2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)', 13638 ], 13639 '0$1', 13640 ], 13641 ['(\\d{4})(\\d{6})', '$1 $2', ['8'], '0$1'], 13642 [ 13643 '(\\d{2})(\\d{3,5})', 13644 '$1 $2', 13645 [ 13646 '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]', 13647 ], 13648 '0$1', 13649 ], 13650 [ 13651 '(\\d{2})(\\d{3})(\\d{3,4})', 13652 '$1 $2 $3', 13653 ['29[013-9]|39|54'], 13654 '0$1', 13655 ], 13656 [ 13657 '(\\d{4})(\\d{3,5})', 13658 '$1 $2', 13659 ['(?:25|54)8', '258|5483'], 13660 '0$1', 13661 ], 13662 ], 13663 '0', 13664 ], 13665 }, 13666 nonGeographic: { 13667 800: [ 13668 '800', 13669 0, 13670 '(?:00|[1-9]\\d)\\d{6}', 13671 [8], 13672 [['(\\d{4})(\\d{4})', '$1 $2', ['\\d']]], 13673 0, 13674 0, 13675 0, 13676 0, 13677 0, 13678 0, 13679 [0, 0, ['(?:00|[1-9]\\d)\\d{6}']], 13680 ], 13681 808: [ 13682 '808', 13683 0, 13684 '[1-9]\\d{7}', 13685 [8], 13686 [['(\\d{4})(\\d{4})', '$1 $2', ['[1-9]']]], 13687 0, 13688 0, 13689 0, 13690 0, 13691 0, 13692 0, 13693 [0, 0, 0, 0, 0, 0, 0, 0, 0, ['[1-9]\\d{7}']], 13694 ], 13695 870: [ 13696 '870', 13697 0, 13698 '7\\d{11}|[35-7]\\d{8}', 13699 [9, 12], 13700 [['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['[35-7]']]], 13701 0, 13702 0, 13703 0, 13704 0, 13705 0, 13706 0, 13707 [0, ['(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}']], 13708 ], 13709 878: [ 13710 '878', 13711 0, 13712 '10\\d{10}', 13713 [12], 13714 [['(\\d{2})(\\d{5})(\\d{5})', '$1 $2 $3', ['1']]], 13715 0, 13716 0, 13717 0, 13718 0, 13719 0, 13720 0, 13721 [0, 0, 0, 0, 0, 0, 0, 0, ['10\\d{10}']], 13722 ], 13723 881: [ 13724 '881', 13725 0, 13726 '[0-36-9]\\d{8}', 13727 [9], 13728 [['(\\d)(\\d{3})(\\d{5})', '$1 $2 $3', ['[0-36-9]']]], 13729 0, 13730 0, 13731 0, 13732 0, 13733 0, 13734 0, 13735 [0, ['[0-36-9]\\d{8}']], 13736 ], 13737 882: [ 13738 '882', 13739 0, 13740 '[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}', 13741 [7, 8, 9, 10, 11, 12], 13742 [ 13743 ['(\\d{2})(\\d{5})', '$1 $2', ['16|342']], 13744 ['(\\d{2})(\\d{6})', '$1 $2', ['4']], 13745 ['(\\d{2})(\\d{2})(\\d{4})', '$1 $2 $3', ['[19]']], 13746 ['(\\d{2})(\\d{4})(\\d{3})', '$1 $2 $3', ['3[23]']], 13747 ['(\\d{2})(\\d{3,4})(\\d{4})', '$1 $2 $3', ['1']], 13748 ['(\\d{2})(\\d{4})(\\d{4})', '$1 $2 $3', ['34[57]']], 13749 ['(\\d{3})(\\d{4})(\\d{4})', '$1 $2 $3', ['34']], 13750 ['(\\d{2})(\\d{4,5})(\\d{5})', '$1 $2 $3', ['[1-3]']], 13751 ], 13752 0, 13753 0, 13754 0, 13755 0, 13756 0, 13757 0, 13758 [ 13759 0, 13760 [ 13761 '342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}', 13762 [7, 8, 9, 10, 12], 13763 ], 13764 0, 13765 0, 13766 0, 13767 0, 13768 0, 13769 0, 13770 [ 13771 '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})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}', 13772 ], 13773 ], 13774 ], 13775 883: [ 13776 '883', 13777 0, 13778 '(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?', 13779 [9, 10, 12], 13780 [ 13781 ['(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3', ['510']], 13782 ['(\\d{3})(\\d{3})(\\d{4})', '$1 $2 $3', ['2']], 13783 ['(\\d{4})(\\d{4})(\\d{4})', '$1 $2 $3', ['51[13]']], 13784 ['(\\d{3})(\\d{3})(\\d{3})(\\d{3})', '$1 $2 $3 $4', ['[35]']], 13785 ], 13786 0, 13787 0, 13788 0, 13789 0, 13790 0, 13791 0, 13792 [ 13793 0, 13794 0, 13795 0, 13796 0, 13797 0, 13798 0, 13799 0, 13800 0, 13801 ['(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}'], 13802 ], 13803 ], 13804 888: [ 13805 '888', 13806 0, 13807 '\\d{11}', 13808 [11], 13809 [['(\\d{3})(\\d{3})(\\d{5})', '$1 $2 $3']], 13810 0, 13811 0, 13812 0, 13813 0, 13814 0, 13815 0, 13816 [0, 0, 0, 0, 0, 0, ['\\d{11}']], 13817 ], 13818 979: [ 13819 '979', 13820 0, 13821 '[1359]\\d{8}', 13822 [9], 13823 [['(\\d)(\\d{4})(\\d{4})', '$1 $2 $3', ['[1359]']]], 13824 0, 13825 0, 13826 0, 13827 0, 13828 0, 13829 0, 13830 [0, 0, 0, ['[1359]\\d{8}']], 13831 ], 13832 }, 13833 }; 13834 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/min/exports/withMetadataArgument.js 13835 // Importing from a ".js" file is a workaround for Node.js "ES Modules" 13836 // importing system which is even uncapable of importing "*.json" files. 13837 13838 function withMetadataArgument(func, _arguments) { 13839 var args = Array.prototype.slice.call(_arguments); 13840 args.push(metadata_min_json); 13841 return func.apply(this, args); 13842 } 13843 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/tools/semver-compare.js 13844 // Copy-pasted from: 13845 // https://github.com/substack/semver-compare/blob/master/index.js 13846 // 13847 // Inlining this function because some users reported issues with 13848 // importing from `semver-compare` in a browser with ES6 "native" modules. 13849 // 13850 // Fixes `semver-compare` not being able to compare versions with alpha/beta/etc "tags". 13851 // https://github.com/catamphetamine/libphonenumber-js/issues/381 13852 /* harmony default export */ var se
vendor: 5,882 bytes, lines 13852-14009
13852mver_compare = function (a, b) { 13853 a = a.split('-'); 13854 b = b.split('-'); 13855 var pa = a[0].split('.'); 13856 var pb = b[0].split('.'); 13857 13858 for (var i = 0; i < 3; i++) { 13859 var na = Number(pa[i]); 13860 var nb = Number(pb[i]); 13861 if (na > nb) return 1; 13862 if (nb > na) return -1; 13863 if (!isNaN(na) && isNaN(nb)) return 1; 13864 if (isNaN(na) && !isNaN(nb)) return -1; 13865 } 13866 13867 if (a[1] && b[1]) { 13868 return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0; 13869 } 13870 13871 return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0; 13872 }; 13873 //# sourceMappingURL=semver-compare.js.map 13874 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/metadata.js 13875 function _typeof(obj) { 13876 '@babel/helpers - typeof'; 13877 return ( 13878 (_typeof = 13879 'function' == typeof Symbol && 13880 'symbol' == typeof Symbol.iterator 13881 ? function (obj) { 13882 return typeof obj; 13883 } 13884 : function (obj) { 13885 return obj && 13886 'function' == typeof Symbol && 13887 obj.constructor === Symbol && 13888 obj !== Symbol.prototype 13889 ? 'symbol' 13890 : typeof obj; 13891 }), 13892 _typeof(obj) 13893 ); 13894 } 13895 13896 function _classCallCheck(instance, Constructor) { 13897 if (!(instance instanceof Constructor)) { 13898 throw new TypeError('Cannot call a class as a function'); 13899 } 13900 } 13901 13902 function _defineProperties(target, props) { 13903 for (var i = 0; i < props.length; i++) { 13904 var descriptor = props[i]; 13905 descriptor.enumerable = descriptor.enumerable || false; 13906 descriptor.configurable = true; 13907 if ('value' in descriptor) descriptor.writable = true; 13908 Object.defineProperty(target, descriptor.key, descriptor); 13909 } 13910 } 13911 13912 function _createClass(Constructor, protoProps, staticProps) { 13913 if (protoProps) 13914 _defineProperties(Constructor.prototype, protoProps); 13915 if (staticProps) _defineProperties(Constructor, staticProps); 13916 Object.defineProperty(Constructor, 'prototype', { 13917 writable: false, 13918 }); 13919 return Constructor; 13920 } 13921 13922 // Added "possibleLengths" and renamed 13923 // "country_phone_code_to_countries" to "country_calling_codes". 13924 13925 var V2 = '1.0.18'; // Added "idd_prefix" and "default_idd_prefix". 13926 13927 var V3 = '1.2.0'; // Moved `001` country code to "nonGeographic" section of metadata. 13928 13929 var V4 = '1.7.35'; 13930 var DEFAULT_EXT_PREFIX = ' ext. '; 13931 var CALLING_CODE_REG_EXP = /^\d+$/; 13932 /** 13933 * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md 13934 */ 13935 13936 var Metadata = /*#__PURE__*/ (function () { 13937 function Metadata(metadata) { 13938 _classCallCheck(this, Metadata); 13939 13940 validateMetadata(metadata); 13941 this.metadata = metadata; 13942 setVersion.call(this, metadata); 13943 } 13944 13945 _createClass(Metadata, [ 13946 { 13947 key: 'getCountries', 13948 value: function getCountries() { 13949 return Object.keys(this.metadata.countries).filter( 13950 function (_) { 13951 return _ !== '001'; 13952 } 13953 ); 13954 }, 13955 }, 13956 { 13957 key: 'getCountryMetadata', 13958 value: function getCountryMetadata(countryCode) { 13959 return this.metadata.countries[countryCode]; 13960 }, 13961 }, 13962 { 13963 key: 'nonGeographic', 13964 value: function nonGeographic() { 13965 if (this.v1 || this.v2 || this.v3) return; // `nonGeographical` was a typo. 13966 // It's present in metadata generated from `1.7.35` to `1.7.37`. 13967 // The test case could be found by searching for "nonGeographical". 13968 13969 return ( 13970 this.metadata.nonGeographic || this.metadata.nonGeographical 13971 ); 13972 }, 13973 }, 13974 { 13975 key: 'hasCountry', 13976 value: function hasCountry(country) { 13977 return this.getCountryMetadata(country) !== undefined; 13978 }, 13979 }, 13980 { 13981 key: 'hasCallingCode', 13982 value: function hasCallingCode(callingCode) { 13983 if (this.getCountryCodesForCallingCode(callingCode)) { 13984 return true; 13985 } 13986 13987 if (this.nonGeographic()) { 13988 if (this.nonGeographic()[callingCode]) { 13989 return true; 13990 } 13991 } else { 13992 // A hacky workaround for old custom metadata (generated before V4). 13993 var countryCodes = this.countryCallingCodes()[callingCode]; 13994 13995 if ( 13996 countryCodes && 13997 countryCodes.length === 1 && 13998 countryCodes[0] === '001' 13999 ) { 14000 return true; 14001 } 14002 } 14003 }, 14004 }, 14005 { 14006 key: 'isNonGeographicCallingCode', 14007 value: function isNonGeographicCallingCode(callingCode) { 14008 if (this.nonGeographic()) { 14009 return this.nonGeographic()[callingCode] ? true : false;
14010 } else { 14011 return this.getCountryCodesForCallingCode(callingCode) 14012 ? false 14013 : true; 14014 } 14015 }, // Deprecated. 14016 }, 14017 { 14018 key: 'country', 14019 value: function country(countryCode) { 14020 return this.selectNumberingPlan(countryCode); 14021 }, 14022 }, 14023 { 14024 key: 'selectNumberingPlan', 14025 value: function selectNumberingPlan(countryCode, callingCode) { 14026 // Supports just passing `callingCode` as the first argument. 14027 if (countryCode && CALLING_CODE_REG_EXP.test(countryCode)) { 14028 callingCode = countryCode; 14029 countryCode = null; 14030 } 14031 14032 if (countryCode && countryCode !== '001') { 14033 if (!this.hasCountry(countryCode)) { 14034 throw new Error('Unknown country: '.concat(countryCode)); 14035 } 14036 14037 this.numberingPlan = new NumberingPlan( 14038 this.getCountryMetadata(countryCode), 14039 this 14040 ); 14041 } else if (callingCode) { 14042 if (!this.hasCallingCode(callingCode)) { 14043 throw new Error( 14044 'Unknown calling code: '.concat(callingCode) 14045 ); 14046 } 14047 14048 this.numberingPlan = new NumberingPlan( 14049 this.getNumberingPlanMetadata(callingCode), 14050 this 14051 ); 14052 } else { 14053 this.numberingPlan = undefined; 14054 } 14055 14056 return this; 14057 }, 14058 }, 14059 { 14060 key: 'getCountryCodesForCallingCode', 14061 value: function getCountryCodesForCallingCode(callingCode) { 14062 var countryCodes = this.countryCallingCodes()[callingCode]; 14063 14064 if (countryCodes) { 14065 // Metadata before V4 included "non-geographic entity" calling codes 14066 // inside `country_calling_codes` (for example, `"881":["001"]`). 14067 // Now the semantics of `country_calling_codes` has changed: 14068 // it's specifically for "countries" now. 14069 // Older versions of custom metadata will simply skip parsing 14070 // "non-geographic entity" phone numbers with new versions 14071 // of this library: it's not considered a bug, 14072 // because such numbers are extremely rare, 14073 // and developers extremely rarely use custom metadata. 14074 if ( 14075 countryCodes.length === 1 && 14076 countryCodes[0].length === 3 14077 ) { 14078 return; 14079 } 14080 14081 return countryCodes; 14082 } 14083 }, 14084 }, 14085 { 14086 key: 'getCountryCodeForCallingCode', 14087 value: function getCountryCodeForCallingCode(callingCode) { 14088 var countryCodes = 14089 this.getCountryCodesForCallingCode(callingCode); 14090 14091 if (countryCodes) { 14092 return countryCodes[0]; 14093 } 14094 }, 14095 }, 14096 { 14097 key: 'getNumberingPlanMetadata', 14098 value: function getNumberingPlanMetadata(callingCode) { 14099 var countryCode = 14100 this.getCountryCodeForCallingCode(callingCode); 14101 14102 if (countryCode) { 14103 return this.getCountryMetadata(countryCode); 14104 } 14105 14106 if (this.nonGeographic()) { 14107 var metadata = this.nonGeographic()[callingCode]; 14108 14109 if (metadata) { 14110 return metadata; 14111 } 14112 } else { 14113 // A hacky workaround for old custom metadata (generated before V4). 14114 // In that metadata, there was no concept of "non-geographic" metadata 14115 // so metadata for `001` country code was stored along with other countries. 14116 // The test case can be found by searching for: 14117 // "should work around `nonGeographic` metadata not existing". 14118 var countryCodes = this.countryCallingCodes()[callingCode]; 14119 14120 if ( 14121 countryCodes && 14122 countryCodes.length === 1 && 14123 countryCodes[0] === '001' 14124 ) { 14125 return this.metadata.countries['001']; 14126 } 14127 } 14128 }, // Deprecated. 14129 }, 14130 { 14131 key: 'countryCallingCode', 14132 value: function countryCallingCode() { 14133 return this.numberingPlan.callingCode(); 14134 }, // Deprecated. 14135 }, 14136 { 14137 key: 'IDDPrefix', 14138 value: function IDDPrefix() { 14139 return this.numberingPlan.IDDPrefix(); 14140 }, // Deprecated. 14141 }, 14142 { 14143 key: 'defaultIDDPrefix', 14144 value: function defaultIDDPrefix() { 14145 return this.numberingPlan.defaultIDDPrefix(); 14146 }, // Deprecated. 14147 }, 14148 { 14149 key: 'nationalNumberPattern', 14150 value: function nationalNumberPattern() { 14151 return this.numberingPlan.nationalNumberPattern(); 14152 }, // Deprecated. 14153 }, 14154 { 14155 key: 'possibleLengths', 14156 value: function possibleLengths() { 14157 return this.numberingPlan.possibleLengths(); 14158 }, // Deprecated. 14159 }, 14160 { 14161 key: 'formats', 14162 value: function formats() { 14163 return this.numberingPlan.formats(); 14164 }, // Deprecated. 14165 }, 14166 { 14167 key: 'nationalPrefixForParsing', 14168 value: function nationalPrefixForParsing() { 14169 return this.numberingPlan.nationalPrefixForParsing(); 14170 }, // Deprecated. 14171 }, 14172 { 14173 key: 'nationalPrefixTransformRule', 14174 value: function nationalPrefixTransformRule() { 14175 return this.numberingPlan.nationalPrefixTransformRule(); 14176 }, // Deprecated. 14177 }, 14178 { 14179 key: 'leadingDigits', 14180 value: function leadingDigits() { 14181 return this.numberingPlan.leadingDigits(); 14182 }, // Deprecated. 14183 }, 14184 { 14185 key: 'hasTypes', 14186 value: function hasTypes() { 14187 return this.numberingPlan.hasTypes(); 14188 }, // Deprecated. 14189 }, 14190 { 14191 key: 'type', 14192 value: function type(_type) { 14193 return this.numberingPlan.type(_type); 14194 }, // Deprecated. 14195 }, 14196 { 14197 key: 'ext', 14198 value: function ext() { 14199 return this.numberingPlan.ext(); 14200 }, 14201 }, 14202 { 14203 key: 'countryCallingCodes', 14204 value: function countryCallingCodes() { 14205 if (this.v1) 14206 return this.metadata.country_phone_code_to_countries; 14207 return this.metadata.country_calling_codes; 14208 }, // Deprecated. 14209 }, 14210 { 14211 key: 'chooseCountryByCountryCallingCode', 14212 value: function chooseCountryByCountryCallingCode(callingCode) { 14213 return this.selectNumberingPlan(callingCode); 14214 }, 14215 }, 14216 { 14217 key: 'hasSelectedNumberingPlan', 14218 value: function hasSelectedNumberingPlan() { 14219 return this.numberingPlan !== undefined; 14220 }, 14221 }, 14222 ]); 14223 14224 return Metadata; 14225 })(); 14226 14227 var NumberingPlan = /*#__PURE__*/ (function () { 14228 function NumberingPlan(metadata, globalMetadataObject) { 14229 _classCallCheck(this, NumberingPlan); 14230 14231 this.globalMetadataObject = globalMetadataObject; 14232 this.metadata = metadata; 14233 setVersion.call(this, globalMetadataObject.metadata); 14234 } 14235 14236 _createClass(NumberingPlan, [ 14237 { 14238 key: 'callingCode', 14239 value: function callingCode() { 14240 return this.metadata[0]; 14241 }, // Formatting information for regions which share 14242 // a country calling code is contained by only one region 14243 // for performance reasons. For example, for NANPA region 14244 // ("North American Numbering Plan Administration", 14245 // which includes USA, Canada, Cayman Islands, Bahamas, etc) 14246 // it will be contained in the metadata for `US`. 14247 }, 14248 { 14249 key: 'getDefaultCountryMetadataForRegion', 14250 value: function getDefaultCountryMetadataForRegion() { 14251 return this.globalMetadataObject.getNumberingPlanMetadata( 14252 this.callingCode() 14253 ); 14254 }, // Is always present. 14255 }, 14256 { 14257 key: 'IDDPrefix', 14258 value: function IDDPrefix() { 14259 if (this.v1 || this.v2) return; 14260 return this.metadata[1]; 14261 }, // Is only present when a country supports multiple IDD prefixes. 14262 }, 14263 { 14264 key: 'defaultIDDPrefix', 14265 value: function defaultIDDPrefix() { 14266 if (this.v1 || this.v2) return; 14267 return this.metadata[12]; 14268 }, 14269 }, 14270 { 14271 key: 'nationalNumberPattern', 14272 value: function nationalNumberPattern() { 14273 if (this.v1 || this.v2) return this.metadata[1]; 14274 return this.metadata[2]; 14275 }, // "possible length" data is always present in Google's metadata. 14276 }, 14277 { 14278 key: 'possibleLengths', 14279 value: function possibleLengths() { 14280 if (this.v1) return; 14281 return this.metadata[this.v2 ? 2 : 3]; 14282 }, 14283 }, 14284 { 14285 key: '_getFormats', 14286 value: function _getFormats(metadata) { 14287 return metadata[this.v1 ? 2 : this.v2 ? 3 : 4]; 14288 }, // For countries of the same region (e.g. NANPA) 14289 // formats are all stored in the "main" country for that region.
14290 // E.g. "RU" and "KZ", "US" and "CA". 14291 }, 14292 { 14293 key: 'formats', 14294 value: function formats() { 14295 var _this = this; 14296 14297 var formats = 14298 this._getFormats(this.metadata) || 14299 this._getFormats( 14300 this.getDefaultCountryMetadataForRegion() 14301 ) || 14302 []; 14303 return formats.map(function (_) { 14304 return new Format(_, _this); 14305 }); 14306 }, 14307 }, 14308 { 14309 key: 'nationalPrefix', 14310 value: function nationalPrefix() { 14311 return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5]; 14312 }, 14313 }, 14314 { 14315 key: '_getNationalPrefixFormattingRule', 14316 value: function _getNationalPrefixFormattingRule(metadata) { 14317 return metadata[this.v1 ? 4 : this.v2 ? 5 : 6]; 14318 }, // For countries of the same region (e.g. NANPA) 14319 // national prefix formatting rule is stored in the "main" country for that region. 14320 // E.g. "RU" and "KZ", "US" and "CA". 14321 }, 14322 { 14323 key: 'nationalPrefixFormattingRule', 14324 value: function nationalPrefixFormattingRule() { 14325 return ( 14326 this._getNationalPrefixFormattingRule(this.metadata) || 14327 this._getNationalPrefixFormattingRule( 14328 this.getDefaultCountryMetadataForRegion() 14329 ) 14330 ); 14331 }, 14332 }, 14333 { 14334 key: '_nationalPrefixForParsing', 14335 value: function _nationalPrefixForParsing() { 14336 return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7]; 14337 }, 14338 }, 14339 { 14340 key: 'nationalPrefixForParsing', 14341 value: function nationalPrefixForParsing() { 14342 // If `national_prefix_for_parsing` is not set explicitly, 14343 // then infer it from `national_prefix` (if any) 14344 return ( 14345 this._nationalPrefixForParsing() || this.nationalPrefix() 14346 ); 14347 }, 14348 }, 14349 { 14350 key: 'nationalPrefixTransformRule', 14351 value: function nationalPrefixTransformRule() { 14352 return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8]; 14353 }, 14354 }, 14355 { 14356 key: '_getNationalPrefixIsOptionalWhenFormatting', 14357 value: function _getNationalPrefixIsOptionalWhenFormatting() { 14358 return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9]; 14359 }, // For countries of the same region (e.g. NANPA) 14360 // "national prefix is optional when formatting" flag is 14361 // stored in the "main" country for that region. 14362 // E.g. "RU" and "KZ", "US" and "CA". 14363 }, 14364 { 14365 key: 'nationalPrefixIsOptionalWhenFormattingInNationalFormat', 14366 value: 14367 function nationalPrefixIsOptionalWhenFormattingInNationalFormat() { 14368 return ( 14369 this._getNationalPrefixIsOptionalWhenFormatting( 14370 this.metadata 14371 ) || 14372 this._getNationalPrefixIsOptionalWhenFormatting( 14373 this.getDefaultCountryMetadataForRegion() 14374 ) 14375 ); 14376 }, 14377 }, 14378 { 14379 key: 'leadingDigits', 14380 value: function leadingDigits() { 14381 return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10]; 14382 }, 14383 }, 14384 { 14385 key: 'types', 14386 value: function types() { 14387 return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11]; 14388 }, 14389 }, 14390 { 14391 key: 'hasTypes', 14392 value: function hasTypes() { 14393 // Versions 1.2.0 - 1.2.4: can be `[]`. 14394 14395 /* istanbul ignore next */
14396 if (this.types() && this.types().length === 0) { 14397 return false; 14398 } // Versions <= 1.2.4: can be `undefined`. 14399 // Version >= 1.2.5: can be `0`. 14400 14401 return !!this.types(); 14402 }, 14403 }, 14404 { 14405 key: 'type', 14406 value: function type(_type2) { 14407 if ( 14408 this.hasTypes() && 14409 metadata_getType(this.types(), _type2) 14410 ) { 14411 return new Type( 14412 metadata_getType(this.types(), _type2), 14413 this 14414 ); 14415 } 14416 }, 14417 }, 14418 { 14419 key: 'ext', 14420 value: function ext() { 14421 if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX; 14422 return this.metadata[13] || DEFAULT_EXT_PREFIX; 14423 }, 14424 }, 14425 ]); 14426 14427 return NumberingPlan; 14428 })(); 14429 14430 var Format = /*#__PURE__*/ (function () { 14431 function Format(format, metadata) { 14432 _classCallCheck(this, Format); 14433 14434 this._format = format; 14435 this.metadata = metadata; 14436 } 14437 14438 _createClass(Format, [ 14439 { 14440 key: 'pattern', 14441 value: function pattern() { 14442 return this._format[0]; 14443 }, 14444 }, 14445 { 14446 key: 'format', 14447 value: function format() { 14448 return this._format[1]; 14449 }, 14450 }, 14451 { 14452 key: 'leadingDigitsPatterns', 14453 value: function leadingDigitsPatterns() { 14454 return this._format[2] || []; 14455 }, 14456 }, 14457 { 14458 key: 'nationalPrefixFormattingRule', 14459 value: function nationalPrefixFormattingRule() { 14460 return ( 14461 this._format[3] || 14462 this.metadata.nationalPrefixFormattingRule() 14463 ); 14464 }, 14465 }, 14466 { 14467 key: 'nationalPrefixIsOptionalWhenFormattingInNationalFormat', 14468 value: 14469 function nationalPrefixIsOptionalWhenFormattingInNationalFormat() { 14470 return ( 14471 !!this._format[4] || 14472 this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat() 14473 ); 14474 }, 14475 }, 14476 { 14477 key: 'nationalPrefixIsMandatoryWhenFormattingInNationalFormat', 14478 value: 14479 function nationalPrefixIsMandatoryWhenFormattingInNationalFormat() { 14480 // National prefix is omitted if there's no national prefix formatting rule 14481 // set for this country, or when the national prefix formatting rule 14482 // contains no national prefix itself, or when this rule is set but 14483 // national prefix is optional for this phone number format 14484 // (and it is not enforced explicitly) 14485 return ( 14486 this.usesNationalPrefix() && 14487 !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat() 14488 ); 14489 }, // Checks whether national prefix formatting rule contains national prefix. 14490 }, 14491 { 14492 key: 'usesNationalPrefix', 14493 value: function usesNationalPrefix() { 14494 return this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one. 14495 !FIRST_GROUP_ONLY_PREFIX_PATTERN.test( 14496 this.nationalPrefixFormattingRule() 14497 ) // In compressed metadata, `this.nationalPrefixFormattingRule()` is `0` 14498 ? // when `national_prefix_formatting_rule` is not present. 14499 // So, `true` or `false` are returned explicitly here, so that 14500 // `0` number isn't returned. 14501 true 14502 : false;
vendor: 8,507 bytes, lines 14503-14756
14503 }, 14504 }, 14505 { 14506 key: 'internationalFormat', 14507 value: function internationalFormat() { 14508 return this._format[5] || this.format(); 14509 }, 14510 }, 14511 ]); 14512 14513 return Format; 14514 })(); 14515 /** 14516 * A pattern that is used to determine if the national prefix formatting rule 14517 * has the first group only, i.e., does not start with the national prefix. 14518 * Note that the pattern explicitly allows for unbalanced parentheses. 14519 */ 14520 14521 var FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/; 14522 14523 var Type = /*#__PURE__*/ (function () { 14524 function Type(type, metadata) { 14525 _classCallCheck(this, Type); 14526 14527 this.type = type; 14528 this.metadata = metadata; 14529 } 14530 14531 _createClass(Type, [ 14532 { 14533 key: 'pattern', 14534 value: function pattern() { 14535 if (this.metadata.v1) return this.type; 14536 return this.type[0]; 14537 }, 14538 }, 14539 { 14540 key: 'possibleLengths', 14541 value: function possibleLengths() { 14542 if (this.metadata.v1) return; 14543 return this.type[1] || this.metadata.possibleLengths(); 14544 }, 14545 }, 14546 ]); 14547 14548 return Type; 14549 })(); 14550 14551 function metadata_getType(types, type) { 14552 switch (type) { 14553 case 'FIXED_LINE': 14554 return types[0]; 14555 14556 case 'MOBILE': 14557 return types[1]; 14558 14559 case 'TOLL_FREE': 14560 return types[2]; 14561 14562 case 'PREMIUM_RATE': 14563 return types[3]; 14564 14565 case 'PERSONAL_NUMBER': 14566 return types[4]; 14567 14568 case 'VOICEMAIL': 14569 return types[5]; 14570 14571 case 'UAN': 14572 return types[6]; 14573 14574 case 'PAGER': 14575 return types[7]; 14576 14577 case 'VOIP': 14578 return types[8]; 14579 14580 case 'SHARED_COST': 14581 return types[9]; 14582 } 14583 } 14584 14585 function validateMetadata(metadata) { 14586 if (!metadata) { 14587 throw new Error( 14588 '[libphonenumber-js] `metadata` argument not passed. Check your arguments.' 14589 ); 14590 } // `country_phone_code_to_countries` was renamed to 14591 // `country_calling_codes` in `1.0.18`. 14592 14593 if (!is_object(metadata) || !is_object(metadata.countries)) { 14594 throw new Error( 14595 "[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat( 14596 is_object(metadata) 14597 ? 'an object of shape: { ' + 14598 Object.keys(metadata).join(', ') + 14599 ' }' 14600 : 'a ' + type_of(metadata) + ': ' + metadata, 14601 '.' 14602 ) 14603 ); 14604 } 14605 } // Babel transforms `typeof` into some "branches" 14606 // so istanbul will show this as "branch not covered". 14607 14608 /* istanbul ignore next */ 14609 14610 var is_object = function is_object(_) { 14611 return _typeof(_) === 'object'; 14612 }; // Babel transforms `typeof` into some "branches" 14613 // so istanbul will show this as "branch not covered". 14614 14615 /* istanbul ignore next */ 14616 14617 var type_of = function type_of(_) { 14618 return _typeof(_); 14619 }; 14620 /** 14621 * Returns extension prefix for a country. 14622 * @param {string} country 14623 * @param {object} metadata 14624 * @return {string?} 14625 * @example 14626 * // Returns " ext. " 14627 * getExtPrefix("US") 14628 */ 14629 14630 function getExtPrefix(country, metadata) { 14631 metadata = new Metadata(metadata); 14632 14633 if (metadata.hasCountry(country)) { 14634 return metadata.country(country).ext(); 14635 } 14636 14637 return DEFAULT_EXT_PREFIX; 14638 } 14639 /** 14640 * Returns "country calling code" for a country. 14641 * Throws an error if the country doesn't exist or isn't supported by this library. 14642 * @param {string} country 14643 * @param {object} metadata 14644 * @return {string} 14645 * @example 14646 * // Returns "44" 14647 * getCountryCallingCode("GB") 14648 */ 14649 14650 function getCountryCallingCode(country, metadata) { 14651 metadata = new Metadata(metadata); 14652 14653 if (metadata.hasCountry(country)) { 14654 return metadata.country(country).countryCallingCode(); 14655 } 14656 14657 throw new Error('Unknown country: '.concat(country)); 14658 } 14659 function isSupportedCountry(country, metadata) { 14660 // metadata = new Metadata(metadata) 14661 // return metadata.hasCountry(country) 14662 return metadata.countries[country] !== undefined; 14663 } 14664 14665 function setVersion(metadata) { 14666 var version = metadata.version; 14667 14668 if (typeof version === 'number') { 14669 this.v1 = version === 1; 14670 this.v2 = version === 2; 14671 this.v3 = version === 3; 14672 this.v4 = version === 4; 14673 } else { 14674 if (!version) { 14675 this.v1 = true; 14676 } else if (semver_compare(version, V3) === -1) { 14677 this.v2 = true; 14678 } else if (semver_compare(version, V4) === -1) { 14679 this.v3 = true; 14680 } else { 14681 this.v4 = true; 14682 } 14683 } 14684 } // const ISO_COUNTRY_CODE = /^[A-Z]{2}$/ 14685 // function isCountryCode(countryCode) { 14686 // return ISO_COUNTRY_CODE.test(countryCodeOrCountryCallingCode) 14687 // } 14688 //# sourceMappingURL=metadata.js.map 14689 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/mergeArrays.js 14690 function _createForOfIteratorHelperLoose(o, allowArrayLike) { 14691 var it = 14692 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 14693 o['@@iterator']; 14694 if (it) return (it = it.call(o)).next.bind(it); 14695 if ( 14696 Array.isArray(o) || 14697 (it = _unsupportedIterableToArray(o)) || 14698 (allowArrayLike && o && typeof o.length === 'number') 14699 ) { 14700 if (it) o = it; 14701 var i = 0; 14702 return function () { 14703 if (i >= o.length) return { done: true }; 14704 return { done: false, value: o[i++] }; 14705 }; 14706 } 14707 throw new TypeError( 14708 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 14709 ); 14710 } 14711 14712 function _unsupportedIterableToArray(o, minLen) { 14713 if (!o) return; 14714 if (typeof o === 'string') return _arrayLikeToArray(o, minLen); 14715 var n = Object.prototype.toString.call(o).slice(8, -1); 14716 if (n === 'Object' && o.constructor) n = o.constructor.name; 14717 if (n === 'Map' || n === 'Set') return Array.from(o); 14718 if ( 14719 n === 'Arguments' || 14720 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 14721 ) 14722 return _arrayLikeToArray(o, minLen); 14723 } 14724 14725 function _arrayLikeToArray(arr, len) { 14726 if (len == null || len > arr.length) len = arr.length; 14727 for (var i = 0, arr2 = new Array(len); i < len; i++) { 14728 arr2[i] = arr[i]; 14729 } 14730 return arr2; 14731 } 14732 14733 /** 14734 * Merges two arrays. 14735 * @param {*} a 14736 * @param {*} b 14737 * @return {*} 14738 */ 14739 function mergeArrays(a, b) { 14740 var merged = a.slice(); 14741 14742 for ( 14743 var _iterator = _createForOfIteratorHelperLoose(b), _step; 14744 !(_step = _iterator()).done; 14745 14746 ) { 14747 var element = _step.value; 14748 14749 if (a.indexOf(element) < 0) { 14750 merged.push(element); 14751 } 14752 } 14753 14754 return merged.sort(function (a, b) { 14755 return a - b; 14756 }); // ES6 version, requires Set polyfill.
vendor: 5,445 bytes, lines 14757-14877
14757 // let merged = new Set(a) 14758 // for (const element of b) { 14759 // merged.add(i) 14760 // } 14761 // return Array.from(merged).sort((a, b) => a - b) 14762 } 14763 //# sourceMappingURL=mergeArrays.js.map 14764 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js 14765 14766 function checkNumberLength(nationalNumber, metadata) { 14767 return checkNumberLengthForType( 14768 nationalNumber, 14769 undefined, 14770 metadata 14771 ); 14772 } // Checks whether a number is possible for the country based on its length. 14773 // Should only be called for the "new" metadata which has "possible lengths". 14774 14775 function checkNumberLengthForType(nationalNumber, type, metadata) { 14776 var type_info = metadata.type(type); // There should always be "<possiblePengths/>" set for every type element. 14777 // This is declared in the XML schema. 14778 // For size efficiency, where a sub-description (e.g. fixed-line) 14779 // has the same "<possiblePengths/>" as the "general description", this is missing, 14780 // so we fall back to the "general description". Where no numbers of the type 14781 // exist at all, there is one possible length (-1) which is guaranteed 14782 // not to match the length of any real phone number. 14783 14784 var possible_lengths = 14785 (type_info && type_info.possibleLengths()) || 14786 metadata.possibleLengths(); // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal() 14787 // Metadata before version `1.0.18` didn't contain `possible_lengths`. 14788 14789 if (!possible_lengths) { 14790 return 'IS_POSSIBLE'; 14791 } 14792 14793 if (type === 'FIXED_LINE_OR_MOBILE') { 14794 // No such country in metadata. 14795 14796 /* istanbul ignore next */ 14797 if (!metadata.type('FIXED_LINE')) { 14798 // The rare case has been encountered where no fixedLine data is available 14799 // (true for some non-geographic entities), so we just check mobile. 14800 return checkNumberLengthForType( 14801 nationalNumber, 14802 'MOBILE', 14803 metadata 14804 ); 14805 } 14806 14807 var mobile_type = metadata.type('MOBILE'); 14808 14809 if (mobile_type) { 14810 // Merge the mobile data in if there was any. "Concat" creates a new 14811 // array, it doesn't edit possible_lengths in place, so we don't need a copy. 14812 // Note that when adding the possible lengths from mobile, we have 14813 // to again check they aren't empty since if they are this indicates 14814 // they are the same as the general desc and should be obtained from there. 14815 possible_lengths = mergeArrays( 14816 possible_lengths, 14817 mobile_type.possibleLengths() 14818 ); // The current list is sorted; we need to merge in the new list and 14819 // re-sort (duplicates are okay). Sorting isn't so expensive because 14820 // the lists are very small. 14821 // if (local_lengths) { 14822 // local_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal()) 14823 // } else { 14824 // local_lengths = mobile_type.possibleLengthsLocal() 14825 // } 14826 } 14827 } // If the type doesn't exist then return 'INVALID_LENGTH'. 14828 else if (type && !type_info) { 14829 return 'INVALID_LENGTH'; 14830 } 14831 14832 var actual_length = nationalNumber.length; // In `libphonenumber-js` all "local-only" formats are dropped for simplicity. 14833 // // This is safe because there is never an overlap beween the possible lengths 14834 // // and the local-only lengths; this is checked at build time. 14835 // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0) 14836 // { 14837 // return 'IS_POSSIBLE_LOCAL_ONLY' 14838 // } 14839 14840 var minimum_length = possible_lengths[0]; 14841 14842 if (minimum_length === actual_length) { 14843 return 'IS_POSSIBLE'; 14844 } 14845 14846 if (minimum_length > actual_length) { 14847 return 'TOO_SHORT'; 14848 } 14849 14850 if (possible_lengths[possible_lengths.length - 1] < actual_length) { 14851 return 'TOO_LONG'; 14852 } // We skip the first element since we've already checked it. 14853 14854 return possible_lengths.indexOf(actual_length, 1) >= 0 14855 ? 'IS_POSSIBLE' 14856 : 'INVALID_LENGTH'; 14857 } 14858 //# sourceMappingURL=checkNumberLength.js.map 14859 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/isPossibleNumber_.js 14860 14861 function isPossiblePhoneNumber(input, options, metadata) { 14862 /* istanbul ignore if */ 14863 if (options === undefined) { 14864 options = {}; 14865 } 14866 14867 metadata = new Metadata(metadata); 14868 14869 if (options.v2) { 14870 if (!input.countryCallingCode) { 14871 throw new Error('Invalid phone number object passed'); 14872 } 14873 14874 metadata.selectNumberingPlan(input.countryCallingCode); 14875 } else { 14876 if (!input.phone) { 14877 return false;
vendor: 8,664 bytes, lines 14878-15087
14878 } 14879 14880 if (input.country) { 14881 if (!metadata.hasCountry(input.country)) { 14882 throw new Error('Unknown country: '.concat(input.country)); 14883 } 14884 14885 metadata.country(input.country); 14886 } else { 14887 if (!input.countryCallingCode) { 14888 throw new Error('Invalid phone number object passed'); 14889 } 14890 14891 metadata.selectNumberingPlan(input.countryCallingCode); 14892 } 14893 } // Old metadata (< 1.0.18) had no "possible length" data. 14894 14895 if (metadata.possibleLengths()) { 14896 return isPossibleNumber( 14897 input.phone || input.nationalNumber, 14898 metadata 14899 ); 14900 } else { 14901 // There was a bug between `1.7.35` and `1.7.37` where "possible_lengths" 14902 // were missing for "non-geographical" numbering plans. 14903 // Just assume the number is possible in such cases: 14904 // it's unlikely that anyone generated their custom metadata 14905 // in that short period of time (one day). 14906 // This code can be removed in some future major version update. 14907 if ( 14908 input.countryCallingCode && 14909 metadata.isNonGeographicCallingCode(input.countryCallingCode) 14910 ) { 14911 // "Non-geographic entities" did't have `possibleLengths` 14912 // due to a bug in metadata generation process. 14913 return true; 14914 } else { 14915 throw new Error( 14916 'Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.' 14917 ); 14918 } 14919 } 14920 } 14921 function isPossibleNumber(nationalNumber, metadata) { 14922 //, isInternational) { 14923 switch (checkNumberLength(nationalNumber, metadata)) { 14924 case 'IS_POSSIBLE': 14925 return true; 14926 // This library ignores "local-only" phone numbers (for simplicity). 14927 // See the readme for more info on what are "local-only" phone numbers. 14928 // case 'IS_POSSIBLE_LOCAL_ONLY': 14929 // return !isInternational 14930 14931 default: 14932 return false; 14933 } 14934 } 14935 //# sourceMappingURL=isPossibleNumber_.js.map 14936 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js 14937 /** 14938 * Checks whether the entire input sequence can be matched 14939 * against the regular expression. 14940 * @return {boolean} 14941 */ 14942 function matchesEntirely(text, regular_expression) { 14943 // If assigning the `''` default value is moved to the arguments above, 14944 // code coverage would decrease for some weird reason. 14945 text = text || ''; 14946 return new RegExp('^(?:' + regular_expression + ')$').test(text); 14947 } 14948 //# sourceMappingURL=matchesEntirely.js.map 14949 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/getNumberType.js 14950 function getNumberType_createForOfIteratorHelperLoose( 14951 o, 14952 allowArrayLike 14953 ) { 14954 var it = 14955 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 14956 o['@@iterator']; 14957 if (it) return (it = it.call(o)).next.bind(it); 14958 if ( 14959 Array.isArray(o) || 14960 (it = getNumberType_unsupportedIterableToArray(o)) || 14961 (allowArrayLike && o && typeof o.length === 'number') 14962 ) { 14963 if (it) o = it; 14964 var i = 0; 14965 return function () { 14966 if (i >= o.length) return { done: true }; 14967 return { done: false, value: o[i++] }; 14968 }; 14969 } 14970 throw new TypeError( 14971 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 14972 ); 14973 } 14974 14975 function getNumberType_unsupportedIterableToArray(o, minLen) { 14976 if (!o) return; 14977 if (typeof o === 'string') 14978 return getNumberType_arrayLikeToArray(o, minLen); 14979 var n = Object.prototype.toString.call(o).slice(8, -1); 14980 if (n === 'Object' && o.constructor) n = o.constructor.name; 14981 if (n === 'Map' || n === 'Set') return Array.from(o); 14982 if ( 14983 n === 'Arguments' || 14984 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 14985 ) 14986 return getNumberType_arrayLikeToArray(o, minLen); 14987 } 14988 14989 function getNumberType_arrayLikeToArray(arr, len) { 14990 if (len == null || len > arr.length) len = arr.length; 14991 for (var i = 0, arr2 = new Array(len); i < len; i++) { 14992 arr2[i] = arr[i]; 14993 } 14994 return arr2; 14995 } 14996 14997 var NON_FIXED_LINE_PHONE_TYPES = [ 14998 'MOBILE', 14999 'PREMIUM_RATE', 15000 'TOLL_FREE', 15001 'SHARED_COST', 15002 'VOIP', 15003 'PERSONAL_NUMBER', 15004 'PAGER', 15005 'UAN', 15006 'VOICEMAIL', 15007 ]; // Finds out national phone number type (fixed line, mobile, etc) 15008 15009 function getNumberType(input, options, metadata) { 15010 // If assigning the `{}` default value is moved to the arguments above, 15011 // code coverage would decrease for some weird reason. 15012 options = options || {}; // When `parse()` returned `{}` 15013 // meaning that the phone number is not a valid one. 15014 15015 if (!input.country) { 15016 return; 15017 } 15018 15019 metadata = new Metadata(metadata); 15020 metadata.selectNumberingPlan( 15021 input.country, 15022 input.countryCallingCode 15023 ); 15024 var nationalNumber = options.v2 15025 ? input.nationalNumber 15026 : input.phone; // The following is copy-pasted from the original function: 15027 // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835 15028 // Is this national number even valid for this country 15029 15030 if ( 15031 !matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) 15032 ) { 15033 return; 15034 } // Is it fixed line number 15035 15036 if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) { 15037 // Because duplicate regular expressions are removed 15038 // to reduce metadata size, if "mobile" pattern is "" 15039 // then it means it was removed due to being a duplicate of the fixed-line pattern. 15040 // 15041 if ( 15042 metadata.type('MOBILE') && 15043 metadata.type('MOBILE').pattern() === '' 15044 ) { 15045 return 'FIXED_LINE_OR_MOBILE'; 15046 } // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one. 15047 // For example, for "US" country. 15048 // Old metadata (< `1.0.18`) had a specific "types" data structure 15049 // that happened to be `undefined` for `MOBILE` in that case. 15050 // Newer metadata (>= `1.0.18`) has another data structure that is 15051 // not `undefined` for `MOBILE` in that case (it's just an empty array). 15052 // So this `if` is just for backwards compatibility with old metadata. 15053 15054 if (!metadata.type('MOBILE')) { 15055 return 'FIXED_LINE_OR_MOBILE'; 15056 } // Check if the number happens to qualify as both fixed line and mobile. 15057 // (no such country in the minimal metadata set) 15058 15059 /* istanbul ignore if */ 15060 15061 if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) { 15062 return 'FIXED_LINE_OR_MOBILE'; 15063 } 15064 15065 return 'FIXED_LINE'; 15066 } 15067 15068 for ( 15069 var _iterator = getNumberType_createForOfIteratorHelperLoose( 15070 NON_FIXED_LINE_PHONE_TYPES 15071 ), 15072 _step; 15073 !(_step = _iterator()).done; 15074 15075 ) { 15076 var type = _step.value; 15077 15078 if (isNumberTypeEqualTo(nationalNumber, type, metadata)) { 15079 return type; 15080 } 15081 } 15082 } 15083 function isNumberTypeEqualTo(nationalNumber, type, metadata) { 15084 type = metadata.type(type); 15085 15086 if (!type || !type.pattern()) { 15087 return false;
15088 } // Check if any possible number lengths are present; 15089 // if so, we use them to avoid checking 15090 // the validation pattern if they don't match. 15091 // If they are absent, this means they match 15092 // the general description, which we have 15093 // already checked before a specific number type. 15094 15095 if ( 15096 type.possibleLengths() && 15097 type.possibleLengths().indexOf(nationalNumber.length) < 0 15098 ) { 15099 return false; 15100 } 15101 15102 return matchesEntirely(nationalNumber, type.pattern()); 15103 } 15104 //# sourceMappingURL=getNumberType.js.map 15105 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/validate_.js 15106 15107 /** 15108 * Checks if a given phone number is valid. 15109 * 15110 * If the `number` is a string, it will be parsed to an object, 15111 * but only if it contains only valid phone number characters (including punctuation). 15112 * If the `number` is an object, it is used as is. 15113 * 15114 * The optional `defaultCountry` argument is the default country. 15115 * I.e. it does not restrict to just that country, 15116 * e.g. in those cases where several countries share 15117 * the same phone numbering rules (NANPA, Britain, etc). 15118 * For example, even though the number `07624 369230` 15119 * belongs to the Isle of Man ("IM" country code) 15120 * calling `isValidNumber('07624369230', 'GB', metadata)` 15121 * still returns `true` because the country is not restricted to `GB`, 15122 * it's just that `GB` is the default one for the phone numbering rules. 15123 * For restricting the country see `isValidNumberForRegion()` 15124 * though restricting a country might not be a good idea. 15125 * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion 15126 * 15127 * Examples: 15128 * 15129 * ```js 15130 * isValidNumber('+78005553535', metadata) 15131 * isValidNumber('8005553535', 'RU', metadata) 15132 * isValidNumber('88005553535', 'RU', metadata) 15133 * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata) 15134 * ``` 15135 */ 15136 15137 function isValidNumber(input, options, metadata) { 15138 // If assigning the `{}` default value is moved to the arguments above, 15139 // code coverage would decrease for some weird reason. 15140 options = options || {}; 15141 metadata = new Metadata(metadata);
15141 // This is just to support `isValidNumber({})` 15142 // for cases when `parseNumber()` returns `{}`. 15143 15144 if (!input.country) { 15145 return false; 15146 } 15147 15148 metadata.selectNumberingPlan( 15149 input.country, 15150 input.countryCallingCode 15151 ); // By default, countries only have type regexps when it's required for 15152 // distinguishing different countries having the same `countryCallingCode`. 15153 15154 if (metadata.hasTypes()) { 15155 return ( 15156 getNumberType(input, options, metadata.metadata) !== undefined 15157 ); 15158 } // If there are no type regexps for this country in metadata then use 15159 // `nationalNumberPattern` as a "better than nothing" replacement. 15160 15161 var national_number = options.v2 15162 ? input.nationalNumber 15163 : input.phone; 15164 return matchesEntirely( 15165 national_number, 15166 metadata.nationalNumberPattern() 15167 ); 15168 } 15169 //# sourceMappingURL=validate_.js.map 15170 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/constants.js 15171 // The minimum length of the national significant number. 15172 var MIN_LENGTH_FOR_NSN = 2; // The ITU says the maximum length should be 15, 15173 // but one can find longer numbers in Germany. 15174 15175 var MAX_LENGTH_FOR_NSN = 17; // The maximum length of the country calling code. 15176 15177 var MAX_LENGTH_COUNTRY_CODE = 3; // Digits accepted in phone numbers 15178 // (ascii, fullwidth, arabic-indic, and eastern arabic digits). 15179 15180 var VALID_DIGITS = '0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9'; // `DASHES` will be right after the opening square bracket of the "character class" 15181 15182 var DASHES = '-\u2010-\u2015\u2212\u30FC\uFF0D'; 15183 var SLASHES = '\uFF0F/'; 15184 var DOTS = '\uFF0E.'; 15185 var WHITESPACE = ' \xA0\xAD\u200B\u2060\u3000'; 15186 var BRACKETS = '()\uFF08\uFF09\uFF3B\uFF3D\\[\\]'; // export const OPENING_BRACKETS = '(\uFF08\uFF3B\\\[' 15187 15188 var TILDES = '~\u2053\u223C\uFF5E'; // Regular expression of acceptable punctuation found in phone numbers. This 15189 // excludes punctuation found as a leading character only. This consists of dash 15190 // characters, white space characters, full stops, slashes, square brackets, 15191 // parentheses and tildes. Full-width variants are also present. 15192 15193 var VALID_PUNCTUATION = '' 15194 .concat(DASHES) 15195 .concat(SLASHES) 15196 .concat(DOTS) 15197 .concat(WHITESPACE) 15198 .concat(BRACKETS) 15199 .concat(TILDES); 15200 var PLUS_CHARS = '+\uFF0B'; // const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+') 15201 //# sourceMappingURL=constants.js.map 15202 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js 15203 // Removes brackets and replaces dashes with spaces. 15204 // 15205 // E.g. "(999) 111-22-33" -> "999 111 22 33" 15206 // 15207 // For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes. 15208 // Meanwhile, there's no single opinion about using punctuation in international phone numbers. 15209 // 15210 // For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`. 15211 // And here's a quote from WikiPedia's "North American Numbering Plan" page: 15212 // https://en.wikipedia.org/wiki/North_American_Numbering_Plan 15213 // 15214 // "The country calling code for all countries participating in the NANP is 1. 15215 // In international format, an NANP number should be listed as +1 301 555 01 00, 15216 // where 301 is an area code (Maryland)." 15217 // 15218 // I personally prefer the international format without any punctuation. 15219 // For example, brackets are remnants of the old age, meaning that the 15220 // phone number part in brackets (so called "area code") can be omitted 15221 // if dialing within the same "area". 15222 // And hyphens were clearly introduced for splitting local numbers into memorizable groups. 15223 // For example, remembering "5553535" is difficult but "555-35-35" is much simpler. 15224 // Imagine a man taking a bus from home to work and seeing an ad with a phone number. 15225 // He has a couple of seconds to memorize that number until it passes by. 15226 // If it were spaces instead of hyphens the man wouldn't necessarily get it,
vendor: 6,865 bytes, lines 15227-15359
15227 // but with hyphens instead of spaces the grouping is more explicit. 15228 // I personally think that hyphens introduce visual clutter, 15229 // so I prefer replacing them with spaces in international numbers. 15230 // In the modern age all output is done on displays where spaces are clearly distinguishable 15231 // so hyphens can be safely replaced with spaces without losing any legibility. 15232 // 15233 15234 function applyInternationalSeparatorStyle(formattedNumber) { 15235 return formattedNumber 15236 .replace( 15237 new RegExp('['.concat(VALID_PUNCTUATION, ']+'), 'g'), 15238 ' ' 15239 ) 15240 .trim(); 15241 } 15242 //# sourceMappingURL=applyInternationalSeparatorStyle.js.map 15243 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js 15244 // This was originally set to $1 but there are some countries for which the 15245 // first group is not used in the national pattern (e.g. Argentina) so the $1 15246 // group does not match correctly. Therefore, we use `\d`, so that the first 15247 // group actually used in the pattern will be matched. 15248 15249 var FIRST_GROUP_PATTERN = /(\$\d)/; 15250 function formatNationalNumberUsingFormat(number, format, _ref) { 15251 var useInternationalFormat = _ref.useInternationalFormat, 15252 withNationalPrefix = _ref.withNationalPrefix, 15253 carrierCode = _ref.carrierCode, 15254 metadata = _ref.metadata; 15255 var formattedNumber = number.replace( 15256 new RegExp(format.pattern()), 15257 useInternationalFormat 15258 ? format.internationalFormat() // This library doesn't use `domestic_carrier_code_formatting_rule`, 15259 : // because that one is only used when formatting phone numbers 15260 // for dialing from a mobile phone, and this is not a dialing library. 15261 // carrierCode && format.domesticCarrierCodeFormattingRule() 15262 // // First, replace the $CC in the formatting rule with the desired carrier code. 15263 // // Then, replace the $FG in the formatting rule with the first group 15264 // // and the carrier code combined in the appropriate way. 15265 // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode)) 15266 // : ( 15267 // withNationalPrefix && format.nationalPrefixFormattingRule() 15268 // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) 15269 // : format.format() 15270 // ) 15271 withNationalPrefix && format.nationalPrefixFormattingRule() 15272 ? format 15273 .format() 15274 .replace( 15275 FIRST_GROUP_PATTERN, 15276 format.nationalPrefixFormattingRule() 15277 ) 15278 : format.format() 15279 ); 15280 15281 if (useInternationalFormat) { 15282 return applyInternationalSeparatorStyle(formattedNumber); 15283 } 15284 15285 return formattedNumber; 15286 } 15287 //# sourceMappingURL=formatNationalNumberUsingFormat.js.map 15288 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js 15289 15290 /** 15291 * Pattern that makes it easy to distinguish whether a region has a single 15292 * international dialing prefix or not. If a region has a single international 15293 * prefix (e.g. 011 in USA), it will be represented as a string that contains 15294 * a sequence of ASCII digits, and possibly a tilde, which signals waiting for 15295 * the tone. If there are multiple available international prefixes in a 15296 * region, they will be represented as a regex string that always contains one 15297 * or more characters that are not ASCII digits or a tilde. 15298 */ 15299 15300 var SINGLE_IDD_PREFIX_REG_EXP = 15301 /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/; // For regions that have multiple IDD prefixes 15302 // a preferred IDD prefix is returned. 15303 15304 function getIddPrefix(country, callingCode, metadata) { 15305 var countryMetadata = new Metadata(metadata); 15306 countryMetadata.selectNumberingPlan(country, callingCode); 15307 15308 if (countryMetadata.defaultIDDPrefix()) { 15309 return countryMetadata.defaultIDDPrefix(); 15310 } 15311 15312 if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) { 15313 return countryMetadata.IDDPrefix(); 15314 } 15315 } 15316 //# sourceMappingURL=getIddPrefix.js.map 15317 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js 15318 // The RFC 3966 format for extensions. 15319 15320 var RFC3966_EXTN_PREFIX = ';ext='; 15321 /** 15322 * Helper method for constructing regular expressions for parsing. Creates 15323 * an expression that captures up to max_length digits. 15324 * @return {string} RegEx pattern to capture extension digits. 15325 */ 15326 15327 var createExtensionPattern_getExtensionDigitsPattern = 15328 function getExtensionDigitsPattern(maxLength) { 15329 return '(['.concat(VALID_DIGITS, ']{1,').concat(maxLength, '})'); 15330 }; 15331 /** 15332 * Helper initialiser method to create the regular-expression pattern to match 15333 * extensions. 15334 * Copy-pasted from Google's `libphonenumber`: 15335 * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766 15336 * @return {string} RegEx pattern to capture extensions. 15337 */ 15338 15339 function createExtensionPattern(purpose) { 15340 // We cap the maximum length of an extension based on the ambiguity of the way 15341 // the extension is prefixed. As per ITU, the officially allowed length for 15342 // extensions is actually 40, but we don't support this since we haven't seen real 15343 // examples and this introduces many false interpretations as the extension labels 15344 // are not standardized. 15345 15346 /** @type {string} */ 15347 var extLimitAfterExplicitLabel = '20'; 15348 /** @type {string} */ 15349 15350 var extLimitAfterLikelyLabel = '15'; 15351 /** @type {string} */ 15352 15353 var extLimitAfterAmbiguousChar = '9'; 15354 /** @type {string} */ 15355 15356 var extLimitWhenNotSure = '6'; 15357 /** @type {string} */ 15358 15359 var possibleSeparatorsBetweenNumberAndExtLabel = '[ \xA0\\t,]*'; // Optional full stop (.) or colon, followed by zero or more space
15359s/tabs/commas. 15360 15361 /** @type {string} */ 15362 15363 var possibleCharsAfterExtLabel = '[:\\.\uFF0E]?[ \xA0\\t,-]*'; 15364 /** @type {string} */ 15365 15366 var optionalExtnSuffix = '#?'; // Here the extension is called out in more explicit way, i.e mentioning it obvious 15367 // patterns like "ext.". 15368 15369 /** @type {string} */ 15370 15371 var explicitExtLabels = 15372 '(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)'; // One-character symbols that can be used to indicate an extension, and less 15373 // commonly used or more ambiguous extension labels. 15374 15375 /** @type {string} */ 15376 15377 var ambiguousExtLabels = 15378 '(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)'; // When extension is not separated clearly. 15379 15380 /** @type {string} */ 15381 15382 var ambiguousSeparator = '[- ]+'; // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching 15383 // comma as extension label may have it. 15384 15385 /** @type {string} */ 15386 15387 var possibleSeparatorsNumberExtLabelNoComma = '[ \xA0\\t]*'; // ",," is commonly used for auto dialling the extension when connected. First 15388 // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do 15389 // not repeat it here. Semi-colon works in Iphone and Android also to pop up a 15390 // button with the extension number following. 15391 15392 /** @type {string} */ 15393 15394 var autoDiallingAndExtLabelsFound = '(?:,{2}|;)'; 15395 /** @type {string} */ 15396 15397 var rfcExtn = 15398 RFC3966_EXTN_PREFIX + 15399 createExtensionPattern_getExtensionDigitsPattern( 15400 extLimitAfterExplicitLabel 15401 ); 15402 /** @type {string} */ 15403 15404 var explicitExtn = 15405 possibleSeparatorsBetweenNumberAndExtLabel + 15406 explicitExtLabels + 15407 possibleCharsAfterExtLabel + 15408 createExtensionPattern_getExtensionDigitsPattern( 15409 extLimitAfterExplicitLabel 15410 ) + 15411 optionalExtnSuffix; 15412 /** @type {string} */ 15413 15414 var ambiguousExtn = 15415 possibleSeparatorsBetweenNumberAndExtLabel + 15416 ambiguousExtLabels + 15417 possibleCharsAfterExtLabel + 15418 createExtensionPattern_getExtensionDigitsPattern( 15419 extLimitAfterAmbiguousChar 15420 ) + 15421 optionalExtnSuffix; 15422 /** @type {string} */ 15423 15424 var americanStyleExtnWithSuffix = 15425 ambiguousSeparator + 15426 createExtensionPattern_getExtensionDigitsPattern( 15427 extLimitWhenNotSure 15428 ) + 15429 '#'; 15430 /** @type {string} */ 15431 15432 var autoDiallingExtn = 15433 possibleSeparatorsNumberExtLabelNoComma + 15434 autoDiallingAndExtLabelsFound + 15435 possibleCharsAfterExtLabel + 15436 createExtensionPattern_getExtensionDigitsPattern( 15437 extLimitAfterLikelyLabel 15438 ) + 15439 optionalExtnSuffix; 15440 /** @type {string} */ 15441 15442 var onlyCommasExtn = 15443 possibleSeparatorsNumberExtLabelNoComma + 15444 '(?:,)+' + 15445 possibleCharsAfterExtLabel + 15446 createExtensionPattern_getExtensionDigitsPattern( 15447 extLimitAfterAmbiguousChar 15448 ) + 15449 optionalExtnSuffix; // The first regular expression covers RFC 3966 format, where the extension is added 15450 // using ";ext=". The second more generic where extension is mentioned with explicit 15451 // labels like "ext:". In both the above cases we allow more numbers in extension than 15452 // any other extension labels. The third one captures when single character extension 15453 // labels or less commonly used labels are used. In such cases we capture fewer 15454 // extension digits in order to reduce the chance of falsely interpreting two 15455 // numbers beside each other as a number + extension. The fourth one covers the 15456 // special case of American numbers where the extension is written with a hash 15457 // at the end, such as "- 503#". The fifth one is exclusively for extension 15458 // autodialling formats which are used when dialling and in this case we accept longer 15459 // extensions. The last one is more liberal on the number of commas that acts as 15460 // extension labels, so we have a strict cap on the number of digits in such extensions. 15461 15462 return ( 15463 rfcExtn + 15464 '|' + 15465 explicitExtn + 15466 '|' + 15467 ambiguousExtn + 15468 '|' + 15469 americanStyleExtnWithSuffix + 15470 '|' + 15471 autoDiallingExtn + 15472 '|' + 15473 onlyCommasExtn 15474 ); 15475 } 15476 //# sourceMappingURL=createExtensionPattern.js.map 15477 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js 15478 15479 // Regular expression of viable phone numbers. This is location independent. 15480 // Checks we have at least three leading digits, and only valid punctuation, 15481 // alpha characters and digits in the phone number. Does not include extension 15482 // data. The symbol 'x' is allowed here as valid punctuation since it is often 15483 // used as a placeholder for carrier codes, for example in Brazilian phone 15484 // numbers. We also allow multiple '+' characters at the start. 15485 // 15486 // Corresponds to the following: 15487 // [digits]{minLengthNsn}| 15488 // plus_sign* 15489 // (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])* 15490 // 15491 // The first reg-ex is to allow short numbers (two digits long) to be parsed if 15492 // they are entered as "15" etc, but only if there is no punctuation in them. 15493 // The second expression restricts the number of digits to three or more, but 15494 // then allows them to be in international form, and to have alpha-characters 15495 // and punctuation. We split up the two reg-exes here and combine them when
vendor: 4,504 bytes, lines 15496-15602
15496 // creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it 15497 // with ^ and append $ to each branch. 15498 // 15499 // "Note VALID_PUNCTUATION starts with a -, 15500 // so must be the first in the range" (c) Google devs. 15501 // (wtf did they mean by saying that; probably nothing) 15502 // 15503 15504 var MIN_LENGTH_PHONE_NUMBER_PATTERN = 15505 '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}'; // 15506 // And this is the second reg-exp: 15507 // (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp) 15508 // 15509 15510 var VALID_PHONE_NUMBER = 15511 '[' + 15512 PLUS_CHARS + 15513 ']{0,1}' + 15514 '(?:' + 15515 '[' + 15516 VALID_PUNCTUATION + 15517 ']*' + 15518 '[' + 15519 VALID_DIGITS + 15520 ']' + 15521 '){3,}' + 15522 '[' + 15523 VALID_PUNCTUATION + 15524 VALID_DIGITS + 15525 ']*'; // This regular expression isn't present in Google's `libphonenumber` 15526 // and is only used to determine whether the phone number being input 15527 // is too short for it to even consider it a "valid" number. 15528 // This is just a way to differentiate between a really invalid phone 15529 // number like "abcde" and a valid phone number that a user has just 15530 // started inputting, like "+1" or "1": both these cases would be 15531 // considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this 15532 // library can provide a more detailed error message â whether it's 15533 // really "not a number", or is it just a start of a valid phone number. 15534 15535 var VALID_PHONE_NUMBER_START_REG_EXP = new RegExp( 15536 '^' + 15537 '[' + 15538 PLUS_CHARS + 15539 ']{0,1}' + 15540 '(?:' + 15541 '[' + 15542 VALID_PUNCTUATION + 15543 ']*' + 15544 '[' + 15545 VALID_DIGITS + 15546 ']' + 15547 '){1,2}' + 15548 '$', 15549 'i' 15550 ); 15551 var VALID_PHONE_NUMBER_WITH_EXTENSION = 15552 VALID_PHONE_NUMBER + // Phone number extensions 15553 '(?:' + 15554 createExtensionPattern() + 15555 ')?'; // The combined regular expression for valid phone numbers: 15556 // 15557 15558 var VALID_PHONE_NUMBER_PATTERN = new RegExp( // Either a short two-digit-only phone number 15559 '^' + 15560 MIN_LENGTH_PHONE_NUMBER_PATTERN + 15561 '$' + 15562 '|' + // Or a longer fully parsed phone number (min 3 characters) 15563 '^' + 15564 VALID_PHONE_NUMBER_WITH_EXTENSION + 15565 '$', 15566 'i' 15567 ); // Checks to see if the string of characters could possibly be a phone number at 15568 // all. At the moment, checks to see that the string begins with at least 2 15569 // digits, ignoring any punctuation commonly found in phone numbers. This method 15570 // does not require the number to be normalized in advance - but does assume 15571 // that leading non-number symbols have been removed, such as by the method 15572 // `extract_possible_number`. 15573 // 15574 15575 function isViablePhoneNumber(number) { 15576 return ( 15577 number.length >= MIN_LENGTH_FOR_NSN && 15578 VALID_PHONE_NUMBER_PATTERN.test(number) 15579 ); 15580 } // This is just a way to differentiate between a really invalid phone 15581 // number like "abcde" and a valid phone number that a user has just 15582 // started inputting, like "+1" or "1": both these cases would be 15583 // considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this 15584 // library can provide a more detailed error message â whether it's 15585 // really "not a number", or is it just a start of a valid phone number. 15586 15587 function isViablePhoneNumberStart(number) { 15588 return VALID_PHONE_NUMBER_START_REG_EXP.test(number); 15589 } 15590 //# sourceMappingURL=isViablePhoneNumber.js.map 15591 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/RFC3966.js 15592 function _slicedToArray(arr, i) { 15593 return ( 15594 _arrayWithHoles(arr) || 15595 _iterableToArrayLimit(arr, i) || 15596 RFC3966_unsupportedIterableToArray(arr, i) || 15597 _nonIterableRest() 15598 ); 15599 } 15600 15601 function _nonIterableRest() { 15602 throw new TypeError(
vendor: 7,895 bytes, lines 15603-15834
15603 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 15604 ); 15605 } 15606 15607 function _iterableToArrayLimit(arr, i) { 15608 var _i = 15609 arr == null 15610 ? null 15611 : (typeof Symbol !== 'undefined' && arr[Symbol.iterator]) || 15612 arr['@@iterator']; 15613 if (_i == null) return; 15614 var _arr = []; 15615 var _n = true; 15616 var _d = false; 15617 var _s, _e; 15618 try { 15619 for ( 15620 _i = _i.call(arr); 15621 !(_n = (_s = _i.next()).done); 15622 _n = true 15623 ) { 15624 _arr.push(_s.value); 15625 if (i && _arr.length === i) break; 15626 } 15627 } catch (err) { 15628 _d = true; 15629 _e = err; 15630 } finally { 15631 try { 15632 if (!_n && _i['return'] != null) _i['return'](); 15633 } finally { 15634 if (_d) throw _e; 15635 } 15636 } 15637 return _arr; 15638 } 15639 15640 function _arrayWithHoles(arr) { 15641 if (Array.isArray(arr)) return arr; 15642 } 15643 15644 function RFC3966_createForOfIteratorHelperLoose(o, allowArrayLike) { 15645 var it = 15646 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 15647 o['@@iterator']; 15648 if (it) return (it = it.call(o)).next.bind(it); 15649 if ( 15650 Array.isArray(o) || 15651 (it = RFC3966_unsupportedIterableToArray(o)) || 15652 (allowArrayLike && o && typeof o.length === 'number') 15653 ) { 15654 if (it) o = it; 15655 var i = 0; 15656 return function () { 15657 if (i >= o.length) return { done: true }; 15658 return { done: false, value: o[i++] }; 15659 }; 15660 } 15661 throw new TypeError( 15662 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 15663 ); 15664 } 15665 15666 function RFC3966_unsupportedIterableToArray(o, minLen) { 15667 if (!o) return; 15668 if (typeof o === 'string') 15669 return RFC3966_arrayLikeToArray(o, minLen); 15670 var n = Object.prototype.toString.call(o).slice(8, -1); 15671 if (n === 'Object' && o.constructor) n = o.constructor.name; 15672 if (n === 'Map' || n === 'Set') return Array.from(o); 15673 if ( 15674 n === 'Arguments' || 15675 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 15676 ) 15677 return RFC3966_arrayLikeToArray(o, minLen); 15678 } 15679 15680 function RFC3966_arrayLikeToArray(arr, len) { 15681 if (len == null || len > arr.length) len = arr.length; 15682 for (var i = 0, arr2 = new Array(len); i < len; i++) { 15683 arr2[i] = arr[i]; 15684 } 15685 return arr2; 15686 } 15687 15688 // https://www.ietf.org/rfc/rfc3966.txt 15689 15690 /** 15691 * @param {string} text - Phone URI (RFC 3966). 15692 * @return {object} `{ ?number, ?ext }`. 15693 */ 15694 15695 function parseRFC3966(text) { 15696 var number; 15697 var ext; // Replace "tel:" with "tel=" for parsing convenience. 15698 15699 text = text.replace(/^tel:/, 'tel='); 15700 15701 for ( 15702 var _iterator = RFC3966_createForOfIteratorHelperLoose( 15703 text.split(';') 15704 ), 15705 _step; 15706 !(_step = _iterator()).done; 15707 15708 ) { 15709 var part = _step.value; 15710 15711 var _part$split = part.split('='), 15712 _part$split2 = _slicedToArray(_part$split, 2), 15713 name = _part$split2[0], 15714 value = _part$split2[1]; 15715 15716 switch (name) { 15717 case 'tel': 15718 number = value; 15719 break; 15720 15721 case 'ext': 15722 ext = value; 15723 break; 15724 15725 case 'phone-context': 15726 // Only "country contexts" are supported. 15727 // "Domain contexts" are ignored. 15728 if (value[0] === '+') { 15729 number = value + number; 15730 } 15731 15732 break; 15733 } 15734 } // If the phone number is not viable, then abort. 15735 15736 if (!isViablePhoneNumber(number)) { 15737 return {}; 15738 } 15739 15740 var result = { 15741 number: number, 15742 }; 15743 15744 if (ext) { 15745 result.ext = ext; 15746 } 15747 15748 return result; 15749 } 15750 /** 15751 * @param {object} - `{ ?number, ?extension }`. 15752 * @return {string} Phone URI (RFC 3966). 15753 */ 15754 15755 function formatRFC3966(_ref) { 15756 var number = _ref.number, 15757 ext = _ref.ext; 15758 15759 if (!number) { 15760 return ''; 15761 } 15762 15763 if (number[0] !== '+') { 15764 throw new Error( 15765 '"formatRFC3966()" expects "number" to be in E.164 format.' 15766 ); 15767 } 15768 15769 return 'tel:'.concat(number).concat(ext ? ';ext=' + ext : ''); 15770 } 15771 //# sourceMappingURL=RFC3966.js.map 15772 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/format_.js 15773 function format_createForOfIteratorHelperLoose(o, allowArrayLike) { 15774 var it = 15775 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 15776 o['@@iterator']; 15777 if (it) return (it = it.call(o)).next.bind(it); 15778 if ( 15779 Array.isArray(o) || 15780 (it = format_unsupportedIterableToArray(o)) || 15781 (allowArrayLike && o && typeof o.length === 'number') 15782 ) { 15783 if (it) o = it; 15784 var i = 0; 15785 return function () { 15786 if (i >= o.length) return { done: true }; 15787 return { done: false, value: o[i++] }; 15788 }; 15789 } 15790 throw new TypeError( 15791 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 15792 ); 15793 } 15794 15795 function format_unsupportedIterableToArray(o, minLen) { 15796 if (!o) return; 15797 if (typeof o === 'string') 15798 return format_arrayLikeToArray(o, minLen); 15799 var n = Object.prototype.toString.call(o).slice(8, -1); 15800 if (n === 'Object' && o.constructor) n = o.constructor.name; 15801 if (n === 'Map' || n === 'Set') return Array.from(o); 15802 if ( 15803 n === 'Arguments' || 15804 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 15805 ) 15806 return format_arrayLikeToArray(o, minLen); 15807 } 15808 15809 function format_arrayLikeToArray(arr, len) { 15810 if (len == null || len > arr.length) len = arr.length; 15811 for (var i = 0, arr2 = new Array(len); i < len; i++) { 15812 arr2[i] = arr[i]; 15813 } 15814 return arr2; 15815 } 15816 15817 function ownKeys(object, enumerableOnly) { 15818 var keys = Object.keys(object); 15819 if (Object.getOwnPropertySymbols) { 15820 var symbols = Object.getOwnPropertySymbols(object); 15821 enumerableOnly && 15822 (symbols = symbols.filter(function (sym) { 15823 return Object.getOwnPropertyDescriptor(object, sym) 15824 .enumerable; 15825 })), 15826 keys.push.apply(keys, symbols); 15827 } 15828 return keys; 15829 } 15830 15831 function _objectSpread(target) { 15832 for (var i = 1; i < arguments.length; i++) { 15833 var source = null != arguments[i] ? arguments[i] : {}; 15834 i % 2
vendor: 10,224 bytes, lines 15835-16112
15835 ? ownKeys(Object(source), !0).forEach(function (key) { 15836 format_defineProperty(target, key, source[key]); 15837 }) 15838 : Object.getOwnPropertyDescriptors 15839 ? Object.defineProperties( 15840 target, 15841 Object.getOwnPropertyDescriptors(source) 15842 ) 15843 : ownKeys(Object(source)).forEach(function (key) { 15844 Object.defineProperty( 15845 target, 15846 key, 15847 Object.getOwnPropertyDescriptor(source, key) 15848 ); 15849 }); 15850 } 15851 return target; 15852 } 15853 15854 function format_defineProperty(obj, key, value) { 15855 if (key in obj) { 15856 Object.defineProperty(obj, key, { 15857 value: value, 15858 enumerable: true, 15859 configurable: true, 15860 writable: true, 15861 }); 15862 } else { 15863 obj[key] = value; 15864 } 15865 return obj; 15866 } 15867 15868 // This is a port of Google Android `libphonenumber`'s 15869 // `phonenumberutil.js` of December 31th, 2018. 15870 // 15871 // https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js 15872 15873 var DEFAULT_OPTIONS = { 15874 formatExtension: function formatExtension( 15875 formattedNumber, 15876 extension, 15877 metadata 15878 ) { 15879 return '' 15880 .concat(formattedNumber) 15881 .concat(metadata.ext()) 15882 .concat(extension); 15883 }, 15884 }; // Formats a phone number 15885 // 15886 // Example use cases: 15887 // 15888 // ```js 15889 // formatNumber('8005553535', 'RU', 'INTERNATIONAL') 15890 // formatNumber('8005553535', 'RU', 'INTERNATIONAL', metadata) 15891 // formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL') 15892 // formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', metadata) 15893 // formatNumber('+78005553535', 'NATIONAL') 15894 // formatNumber('+78005553535', 'NATIONAL', metadata) 15895 // ``` 15896 // 15897 15898 function formatNumber(input, format, options, metadata) { 15899 // Apply default options. 15900 if (options) { 15901 options = _objectSpread( 15902 _objectSpread({}, DEFAULT_OPTIONS), 15903 options 15904 ); 15905 } else { 15906 options = DEFAULT_OPTIONS; 15907 } 15908 15909 metadata = new Metadata(metadata); 15910 15911 if (input.country && input.country !== '001') { 15912 // Validate `input.country`. 15913 if (!metadata.hasCountry(input.country)) { 15914 throw new Error('Unknown country: '.concat(input.country)); 15915 } 15916 15917 metadata.country(input.country); 15918 } else if (input.countryCallingCode) { 15919 metadata.selectNumberingPlan(input.countryCallingCode); 15920 } else return input.phone || ''; 15921 15922 var countryCallingCode = metadata.countryCallingCode(); 15923 var nationalNumber = options.v2 15924 ? input.nationalNumber 15925 : input.phone; // This variable should have been declared inside `case`s 15926 // but Babel has a bug and it says "duplicate variable declaration". 15927 15928 var number; 15929 15930 switch (format) { 15931 case 'NATIONAL': 15932 // Legacy argument support. 15933 // (`{ country: ..., phone: '' }`) 15934 if (!nationalNumber) { 15935 return ''; 15936 } 15937 15938 number = formatNationalNumber( 15939 nationalNumber, 15940 input.carrierCode, 15941 'NATIONAL', 15942 metadata, 15943 options 15944 ); 15945 return addExtension( 15946 number, 15947 input.ext, 15948 metadata, 15949 options.formatExtension 15950 ); 15951 15952 case 'INTERNATIONAL': 15953 // Legacy argument support. 15954 // (`{ country: ..., phone: '' }`) 15955 if (!nationalNumber) { 15956 return '+'.concat(countryCallingCode); 15957 } 15958 15959 number = formatNationalNumber( 15960 nationalNumber, 15961 null, 15962 'INTERNATIONAL', 15963 metadata, 15964 options 15965 ); 15966 number = '+'.concat(countryCallingCode, ' ').concat(number); 15967 return addExtension( 15968 number, 15969 input.ext, 15970 metadata, 15971 options.formatExtension 15972 ); 15973 15974 case 'E.164': 15975 // `E.164` doesn't define "phone number extensions". 15976 return '+'.concat(countryCallingCode).concat(nationalNumber); 15977 15978 case 'RFC3966': 15979 return formatRFC3966({ 15980 number: '+'.concat(countryCallingCode).concat(nationalNumber), 15981 ext: input.ext, 15982 }); 15983 // For reference, here's Google's IDD formatter: 15984 // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546 15985 // Not saying that this IDD formatter replicates it 1:1, but it seems to work. 15986 // Who would even need to format phone numbers in IDD format anyway? 15987 15988 case 'IDD': 15989 if (!options.fromCountry) { 15990 return; // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.') 15991 } 15992 15993 var formattedNumber = formatIDD( 15994 nationalNumber, 15995 input.carrierCode, 15996 countryCallingCode, 15997 options.fromCountry, 15998 metadata 15999 ); 16000 return addExtension( 16001 formattedNumber, 16002 input.ext, 16003 metadata, 16004 options.formatExtension 16005 ); 16006 16007 default: 16008 throw new Error( 16009 'Unknown "format" argument passed to "formatNumber()": "'.concat( 16010 format, 16011 '"' 16012 ) 16013 ); 16014 } 16015 } 16016 16017 function formatNationalNumber( 16018 number, 16019 carrierCode, 16020 formatAs, 16021 metadata, 16022 options 16023 ) { 16024 var format = chooseFormatForNumber(metadata.formats(), number); 16025 16026 if (!format) { 16027 return number; 16028 } 16029 16030 return formatNationalNumberUsingFormat(number, format, { 16031 useInternationalFormat: formatAs === 'INTERNATIONAL', 16032 withNationalPrefix: 16033 format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && 16034 options && 16035 options.nationalPrefix === false 16036 ? false 16037 : true, 16038 carrierCode: carrierCode, 16039 metadata: metadata, 16040 }); 16041 } 16042 16043 function chooseFormatForNumber(availableFormats, nationalNnumber) { 16044 for ( 16045 var _iterator = 16046 format_createForOfIteratorHelperLoose(availableFormats), 16047 _step; 16048 !(_step = _iterator()).done; 16049 16050 ) { 16051 var format = _step.value; 16052 16053 // Validate leading digits. 16054 // The test case for "else path" could be found by searching for 16055 // "format.leadingDigitsPatterns().length === 0". 16056 if (format.leadingDigitsPatterns().length > 0) { 16057 // The last leading_digits_pattern is used here, as it is the most detailed 16058 var lastLeadingDigitsPattern = 16059 format.leadingDigitsPatterns()[ 16060 format.leadingDigitsPatterns().length - 1 16061 ]; // If leading digits don't match then move on to the next phone number format 16062 16063 if (nationalNnumber.search(lastLeadingDigitsPattern) !== 0) { 16064 continue; 16065 } 16066 } // Check that the national number matches the phone number format regular expression 16067 16068 if (matchesEntirely(nationalNnumber, format.pattern())) { 16069 return format; 16070 } 16071 } 16072 } 16073 16074 function addExtension( 16075 formattedNumber, 16076 ext, 16077 metadata, 16078 formatExtension 16079 ) { 16080 return ext 16081 ? formatExtension(formattedNumber, ext, metadata) 16082 : formattedNumber; 16083 } 16084 16085 function formatIDD( 16086 nationalNumber, 16087 carrierCode, 16088 countryCallingCode, 16089 fromCountry, 16090 metadata 16091 ) { 16092 var fromCountryCallingCode = getCountryCallingCode( 16093 fromCountry, 16094 metadata.metadata 16095 ); // When calling within the same country calling code. 16096 16097 if (fromCountryCallingCode === countryCallingCode) { 16098 var formattedNumber = formatNationalNumber( 16099 nationalNumber, 16100 carrierCode, 16101 'NATIONAL', 16102 metadata 16103 ); // For NANPA regions, return the national format for these regions 16104 // but prefix it with the country calling code. 16105 16106 if (countryCallingCode === '1') { 16107 return countryCallingCode + ' ' + formattedNumber; 16108 } // If regions share a country calling code, the country calling code need 16109 // not be dialled. This also applies when dialling within a region, so this 16110 // if clause covers both these cases. Technically this is the case for 16111 // dialling from La Reunion to other overseas departments of France (French 16112 // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover
16113 // this edge case for now and for those cases return the version including 16114 // country calling code. Details here: 16115 // http://www.petitfute.com/voyage/225-info-pratiques-reunion 16116 // 16117 16118 return formattedNumber; 16119 } 16120 16121 var iddPrefix = getIddPrefix( 16122 fromCountry, 16123 undefined, 16124 metadata.metadata 16125 ); 16126 16127 if (iddPrefix) { 16128 return '' 16129 .concat(iddPrefix, ' ') 16130 .concat(countryCallingCode, ' ') 16131 .concat( 16132 formatNationalNumber( 16133 nationalNumber, 16134 null, 16135 'INTERNATIONAL', 16136 metadata 16137 ) 16138 ); 16139 } 16140 } 16141 //# sourceMappingURL=format_.js.map 16142 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/PhoneNumber.js 16143 function PhoneNumber_ownKeys(object, enumerableOnly) { 16144 var keys = Object.keys(object); 16145 if (Object.getOwnPropertySymbols) { 16146 var symbols = Object.getOwnPropertySymbols(object); 16147 enumerableOnly && 16148 (symbols = symbols.filter(function (sym) { 16149 return Object.getOwnPropertyDescriptor(object, sym) 16150 .enumerable; 16151 })), 16152 keys.push.apply(keys, symbols); 16153 } 16154 return keys; 16155 } 16156 16157 function PhoneNumber_objectSpread(target) { 16158 for (var i = 1; i < arguments.length; i++) { 16159 var source = null != arguments[i] ? arguments[i] : {}; 16160 i % 2 16161 ? PhoneNumber_ownKeys(Object(source), !0).forEach( 16162 function (key) { 16163 PhoneNumber_defineProperty(target, key, source[key]); 16164 } 16165 ) 16166 : Object.getOwnPropertyDescriptors 16167 ? Object.defineProperties( 16168 target, 16169 Object.getOwnPropertyDescriptors(source) 16170 ) 16171 : PhoneNumber_ownKeys(Object(source)).forEach(function (key) { 16172 Object.defineProperty( 16173 target, 16174 key, 16175 Object.getOwnPropertyDescriptor(source, key) 16176 ); 16177 }); 16178 } 16179 return target; 16180 } 16181 16182 function PhoneNumber_defineProperty(obj, key, value) { 16183 if (key in obj) { 16184 Object.defineProperty(obj, key, { 16185 value: value, 16186 enumerable: true, 16187 configurable: true, 16188 writable: true, 16189 }); 16190 } else { 16191 obj[key] = value; 16192 } 16193 return obj; 16194 } 16195 16196 function PhoneNumber_classCallCheck(instance, Constructor) { 16197 if (!(instance instanceof Constructor)) { 16198 throw new TypeError('Cannot call a class as a function'); 16199 } 16200 } 16201 16202 function PhoneNumber_defineProperties(target, props) { 16203 for (var i = 0; i < props.length; i++) { 16204 var descriptor = props[i]; 16205 descriptor.enumerable = descriptor.enumerable || false; 16206 descriptor.configurable = true; 16207 if ('value' in descriptor) descriptor.writable = true; 16208 Object.defineProperty(target, descriptor.key, descriptor); 16209 } 16210 } 16211 16212 function PhoneNumber_createClass( 16213 Constructor, 16214 protoProps, 16215 staticProps 16216 ) { 16217 if (protoProps) 16218 PhoneNumber_defineProperties(Constructor.prototype, protoProps); 16219 if (staticProps) 16220 PhoneNumber_defineProperties(Constructor, staticProps); 16221 Object.defineProperty(Constructor, 'prototype', { 16222 writable: false, 16223 }); 16224 return Constructor; 16225 } 16226 16227 var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
16228 16229 var PhoneNumber_PhoneNumber = /*#__PURE__*/ (function () { 16230 function PhoneNumber(countryCallingCode, nationalNumber, metadata) { 16231 PhoneNumber_classCallCheck(this, PhoneNumber); 16232 16233 if (!countryCallingCode) { 16234 throw new TypeError( 16235 '`country` or `countryCallingCode` not passed' 16236 ); 16237 } 16238 16239 if (!nationalNumber) { 16240 throw new TypeError('`nationalNumber` not passed'); 16241 } 16242 16243 if (!metadata) { 16244 throw new TypeError('`metadata` not passed'); 16245 } 16246 16247 var _metadata = new Metadata(metadata); // If country code is passed then derive `countryCallingCode` from it. 16248 // Also store the country code as `.country`. 16249 16250 if (isCountryCode(countryCallingCode)) { 16251 this.country = countryCallingCode; 16252 16253 _metadata.country(countryCallingCode); 16254 16255 countryCallingCode = _metadata.countryCallingCode(); 16256 } else { 16257 /* istanbul ignore if */ 16258 if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) { 16259 if ( 16260 _metadata.isNonGeographicCallingCode(countryCallingCode) 16261 ) { 16262 this.country = '001'; 16263 } 16264 } 16265 } 16266 16267 this.countryCallingCode = countryCallingCode; 16268 this.nationalNumber = nationalNumber; 16269 this.number = '+' + this.countryCallingCode + this.nationalNumber; 16270 this.metadata = metadata; 16271 } 16272 16273 PhoneNumber_createClass(PhoneNumber, [ 16274 { 16275 key: 'setExt', 16276 value: function setExt(ext) { 16277 this.ext = ext; 16278 }, 16279 }, 16280 { 16281 key: 'isPossible', 16282 value: function isPossible() { 16283 return isPossiblePhoneNumber( 16284 this, 16285 { 16286 v2: true, 16287 }, 16288 this.metadata 16289 ); 16290 }, 16291 }, 16292 { 16293 key: 'isValid', 16294 value: function isValid() { 16295 return isValidNumber( 16296 this, 16297 { 16298 v2: true, 16299 }, 16300 this.metadata 16301 ); 16302 }, 16303 }, 16304 { 16305 key: 'isNonGeographic', 16306 value: function isNonGeographic() { 16307 var metadata = new Metadata(this.metadata); 16308 return metadata.isNonGeographicCallingCode( 16309 this.countryCallingCode 16310 ); 16311 }, 16312 }, 16313 { 16314 key: 'isEqual', 16315 value: function isEqual(phoneNumber) { 16316 return ( 16317 this.number === phoneNumber.number && 16318 this.ext === phoneNumber.ext 16319 ); 16320 }, // // Is just an alias for `this.isValid() && this.country === country`. 16321 // // https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion 16322 // isValidForRegion(country) { 16323 // return isValidNumberForRegion(this, country, { v2: true }, this.metadata) 16324 // } 16325 }, 16326 { 16327 key: 'getType', 16328 value: function getType() { 16329 return getNumberType( 16330 this, 16331 { 16332 v2: true, 16333 }, 16334 this.metadata 16335 ); 16336 }, 16337 }, 16338 { 16339 key: 'format', 16340 value: function format(_format, options) { 16341 return formatNumber( 16342 this, 16343 _format, 16344 options 16345 ? PhoneNumber_objectSpread( 16346 PhoneNumber_objectSpread({}, options), 16347 {}, 16348 { 16349 v2: true, 16350 } 16351 ) 16352 : { 16353 v2: true, 16354 }, 16355 this.metadata 16356 ); 16357 }, 16358 }, 16359 { 16360 key: 'formatNational', 16361 value: function formatNational(options) { 16362 return this.format('NATIONAL', options); 16363 }, 16364 }, 16365 { 16366 key: 'formatInternational', 16367 value: function formatInternational(options) { 16368 return this.format('INTERNATIONAL', options); 16369 }, 16370 }, 16371 { 16372 key: 'getURI', 16373 value: function getURI(options) { 16374 return this.format('RFC3966', options); 16375 }, 16376 }, 16377 ]); 16378 16379 return PhoneNumber; 16380 })(); 16381 16382 var isCountryCode = function isCountryCode(value) { 16383 return /^[A-Z]{2}$/.test(value); 16384 }; 16385 //# sourceMappingURL=PhoneNumber.js.map 16386 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/getExampleNumber.js 16387 16388 function getExampleNumber(country, examples, metadata) { 16389 if (examples[country]) { 16390 return new PhoneNumber_PhoneNumber( 16391 country, 16392 examples[country], 16393 metadata 16394 ); 16395 } 16396 } 16397 //# sourceMappingURL=getExampleNumber.js.map 16398 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/min/exports/getExampleNumber.js 16399 16400 function getExampleNumber_getExampleNumber() { 16401 return withMetadataArgument(getExampleNumber, arguments); 16402 } 16403 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/ParseError.js 16404 function ParseError_typeof(obj) { 16405 '@babel/helpers - typeof'; 16406 return ( 16407 (ParseError_typeof = 16408 'function' == typeof Symbol && 16409 'symbol' == typeof Symbol.iterator 16410 ? function (obj) { 16411 return typeof obj; 16412 } 16413 : function (obj) { 16414 return obj && 16415 'function' == typeof Symbol && 16416 obj.constructor === Symbol && 16417 obj !== Symbol.prototype 16418 ? 'symbol' 16419 : typeof obj; 16420 }), 16421 ParseError_typeof(obj) 16422 ); 16423 } 16424 16425 function ParseError_defineProperties(target, props) { 16426 for (var i = 0; i < props.length; i++) { 16427 var descriptor = props[i]; 16428 descriptor.enumerable = descriptor.enumerable || false; 16429 descriptor.configurable = true; 16430 if ('value' in descriptor) descriptor.writable = true; 16431 Object.defineProperty(target, descriptor.key, descriptor); 16432 } 16433 } 16434 16435 function ParseError_createClass( 16436 Constructor, 16437 protoProps, 16438 staticProps 16439 ) { 16440 if (protoProps) 16441 ParseError_defineProperties(Constructor.prototype, protoProps); 16442 if (staticProps) 16443 ParseError_defineProperties(Constructor, staticProps); 16444 Object.defineProperty(Constructor, 'prototype', { 16445 writable: false, 16446 }); 16447 return Constructor; 16448 } 16449 16450 function ParseError_classCallCheck(instance, Constructor) { 16451 if (!(instance instanceof Constructor)) { 16452 throw new TypeError('Cannot call a class as a function'); 16453 } 16454 } 16455 16456 function _inherits(subClass, superClass) { 16457 if (typeof superClass !== 'function' && superClass !== null) { 16458 throw new TypeError( 16459 'Super expression must either be null or a function' 16460 ); 16461 } 16462 subClass.prototype = Object.create( 16463 superClass && superClass.prototype, 16464 { 16465 constructor: { 16466 value: subClass, 16467 writable: true, 16468 configurable: true, 16469 }, 16470 } 16471 ); 16472 Object.defineProperty(subClass, 'prototype', { writable: false }); 16473 if (superClass) _setPrototypeOf(subClass, superClass); 16474 } 16475 16476 function _createSuper(Derived) { 16477 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 16478 return function _createSuperInternal() { 16479 var Super = _getPrototypeOf(Derived), 16480 result; 16481 if (hasNativeReflectConstruct) { 16482 var NewTarget = _getPrototypeOf(this).constructor; 16483 result = Reflect.construct(Super, arguments, NewTarget); 16484 } else { 16485 result = Super.apply(this, arguments); 16486 } 16487 return _possibleConstructorReturn(this, result); 16488 }; 16489 } 16490 16491 function _possibleConstructorReturn(self, call) { 16492 if ( 16493 call && 16494 (ParseError_typeof(call) === 'object' || 16495 typeof call === 'function') 16496 ) { 16497 return call; 16498 } else if (call !== void 0) { 16499 throw new TypeError( 16500 'Derived constructors may only return object or undefined' 16501 ); 16502 } 16503 return _assertThisInitialized(self); 16504 } 16505 16506 function _assertThisInitialized(self) { 16507 if (self === void 0) { 16508 throw new ReferenceError( 16509 "this hasn't been initialised - super() hasn't been called" 16510 ); 16511 } 16512 return self; 16513 } 16514 16515 function _wrapNativeSuper(Class) { 16516 var _cache = typeof Map === 'function' ? new Map() : undefined; 16517 _wrapNativeSuper = function _wrapNativeSuper(Class) { 16518 if (Class === null || !_isNativeFunction(Class)) return Class; 16519 if (typeof Class !== 'function') { 16520 throw new TypeError( 16521 'Super expression must either be null or a function' 16522 ); 16523 }
vendor: 7,256 bytes, lines 16524-16714
16524 if (typeof _cache !== 'undefined') { 16525 if (_cache.has(Class)) return _cache.get(Class); 16526 _cache.set(Class, Wrapper); 16527 } 16528 function Wrapper() { 16529 return _construct( 16530 Class, 16531 arguments, 16532 _getPrototypeOf(this).constructor 16533 ); 16534 } 16535 Wrapper.prototype = Object.create(Class.prototype, { 16536 constructor: { 16537 value: Wrapper, 16538 enumerable: false, 16539 writable: true, 16540 configurable: true, 16541 }, 16542 }); 16543 return _setPrototypeOf(Wrapper, Class); 16544 }; 16545 return _wrapNativeSuper(Class); 16546 } 16547 16548 function _construct(Parent, args, Class) { 16549 if (_isNativeReflectConstruct()) { 16550 _construct = Reflect.construct; 16551 } else { 16552 _construct = function _construct(Parent, args, Class) { 16553 var a = [null]; 16554 a.push.apply(a, args); 16555 var Constructor = Function.bind.apply(Parent, a); 16556 var instance = new Constructor(); 16557 if (Class) _setPrototypeOf(instance, Class.prototype); 16558 return instance; 16559 }; 16560 } 16561 return _construct.apply(null, arguments); 16562 } 16563 16564 function _isNativeReflectConstruct() { 16565 if (typeof Reflect === 'undefined' || !Reflect.construct) 16566 return false; 16567 if (Reflect.construct.sham) return false; 16568 if (typeof Proxy === 'function') return true; 16569 try { 16570 Boolean.prototype.valueOf.call( 16571 Reflect.construct(Boolean, [], function () {}) 16572 ); 16573 return true; 16574 } catch (e) { 16575 return false; 16576 } 16577 } 16578 16579 function _isNativeFunction(fn) { 16580 return Function.toString.call(fn).indexOf('[native code]') !== -1; 16581 } 16582 16583 function _setPrototypeOf(o, p) { 16584 _setPrototypeOf = 16585 Object.setPrototypeOf || 16586 function _setPrototypeOf(o, p) { 16587 o.__proto__ = p; 16588 return o; 16589 }; 16590 return _setPrototypeOf(o, p); 16591 } 16592 16593 function _getPrototypeOf(o) { 16594 _getPrototypeOf = Object.setPrototypeOf 16595 ? Object.getPrototypeOf 16596 : function _getPrototypeOf(o) { 16597 return o.__proto__ || Object.getPrototypeOf(o); 16598 }; 16599 return _getPrototypeOf(o); 16600 } 16601 16602 // https://stackoverflow.com/a/46971044/970769 16603 // "Breaking changes in Typescript 2.1" 16604 // "Extending built-ins like Error, Array, and Map may no longer work." 16605 // "As a recommendation, you can manually adjust the prototype immediately after any super(...) calls." 16606 // https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work 16607 var ParseError = /*#__PURE__*/ (function (_Error) { 16608 _inherits(ParseError, _Error); 16609 16610 var _super = _createSuper(ParseError); 16611 16612 function ParseError(code) { 16613 var _this; 16614 16615 ParseError_classCallCheck(this, ParseError); 16616 16617 _this = _super.call(this, code); // Set the prototype explicitly. 16618 // Any subclass of FooError will have to manually set the prototype as well. 16619 16620 Object.setPrototypeOf( 16621 _assertThisInitialized(_this), 16622 ParseError.prototype 16623 ); 16624 _this.name = _this.constructor.name; 16625 return _this; 16626 } 16627 16628 return ParseError_createClass(ParseError); 16629 })(/*#__PURE__*/ _wrapNativeSuper(Error)); 16630 16631 //# sourceMappingURL=ParseError.js.map 16632 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js 16633 // Regexp of all known extension prefixes used by different regions followed by 16634 // 1 or more valid digits, for use when parsing. 16635 16636 var EXTN_PATTERN = new RegExp( 16637 '(?:' + createExtensionPattern() + ')$', 16638 'i' 16639 ); // Strips any extension (as in, the part of the number dialled after the call is 16640 // connected, usually indicated with extn, ext, x or similar) from the end of 16641 // the number, and returns it. 16642 16643 function extractExtension(number) { 16644 var start = number.search(EXTN_PATTERN); 16645 16646 if (start < 0) { 16647 return {}; 16648 } // If we find a potential extension, and the number preceding this is a viable 16649 // number, we assume it is an extension. 16650 16651 var numberWithoutExtension = number.slice(0, start); 16652 var matches = number.match(EXTN_PATTERN); 16653 var i = 1; 16654 16655 while (i < matches.length) { 16656 if (matches[i]) { 16657 return { 16658 number: numberWithoutExtension, 16659 ext: matches[i], 16660 }; 16661 } 16662 16663 i++; 16664 } 16665 } 16666 //# sourceMappingURL=extractExtension.js.map 16667 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/parseDigits.js 16668 function parseDigits_createForOfIteratorHelperLoose( 16669 o, 16670 allowArrayLike 16671 ) { 16672 var it = 16673 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 16674 o['@@iterator']; 16675 if (it) return (it = it.call(o)).next.bind(it); 16676 if ( 16677 Array.isArray(o) || 16678 (it = parseDigits_unsupportedIterableToArray(o)) || 16679 (allowArrayLike && o && typeof o.length === 'number') 16680 ) { 16681 if (it) o = it; 16682 var i = 0; 16683 return function () { 16684 if (i >= o.length) return { done: true }; 16685 return { done: false, value: o[i++] }; 16686 }; 16687 } 16688 throw new TypeError( 16689 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 16690 ); 16691 } 16692 16693 function parseDigits_unsupportedIterableToArray(o, minLen) { 16694 if (!o) return; 16695 if (typeof o === 'string') 16696 return parseDigits_arrayLikeToArray(o, minLen); 16697 var n = Object.prototype.toString.call(o).slice(8, -1); 16698 if (n === 'Object' && o.constructor) n = o.constructor.name; 16699 if (n === 'Map' || n === 'Set') return Array.from(o); 16700 if ( 16701 n === 'Arguments' || 16702 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 16703 ) 16704 return parseDigits_arrayLikeToArray(o, minLen); 16705 } 16706 16707 function parseDigits_arrayLikeToArray(arr, len) { 16708 if (len == null || len > arr.length) len = arr.length; 16709 for (var i = 0, arr2 = new Array(len); i < len; i++) { 16710 arr2[i] = arr[i]; 16711 } 16712 return arr2; 16713 } 16714
16715 // These mappings map a character (key) to a specific digit that should 16716 // replace it for normalization purposes. Non-European digits that 16717 // may be used in phone numbers are mapped to a European equivalent. 16718 // 16719 // E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`. 16720 // 16721 var DIGITS = { 16722 0: '0', 16723 1: '1', 16724 2: '2', 16725 3: '3', 16726 4: '4', 16727 5: '5', 16728 6: '6', 16729 7: '7', 16730 8: '8', 16731 9: '9', 16732 '\uFF10': '0', 16733 // Fullwidth digit 0 16734 '\uFF11': '1', 16735 // Fullwidth digit 1 16736 '\uFF12': '2', 16737 // Fullwidth digit 2 16738 '\uFF13': '3', 16739 // Fullwidth digit 3 16740 '\uFF14': '4', 16741 // Fullwidth digit 4 16742 '\uFF15': '5', 16743 // Fullwidth digit 5 16744 '\uFF16': '6', 16745 // Fullwidth digit 6 16746 '\uFF17': '7', 16747 // Fullwidth digit 7 16748 '\uFF18': '8', 16749 // Fullwidth digit 8 16750 '\uFF19': '9', 16751 // Fullwidth digit 9 16752 '\u0660': '0', 16753 // Arabic-indic digit 0 16754 '\u0661': '1', 16755 // Arabic-indic digit 1 16756 '\u0662': '2', 16757 // Arabic-indic digit 2 16758 '\u0663': '3', 16759 // Arabic-indic digit 3 16760 '\u0664': '4', 16761 // Arabic-indic digit 4 16762 '\u0665': '5', 16763 // Arabic-indic digit 5 16764 '\u0666': '6', 16765 // Arabic-indic digit 6 16766 '\u0667': '7', 16767 // Arabic-indic digit 7 16768 '\u0668': '8', 16769 // Arabic-indic digit 8 16770 '\u0669': '9', 16771 // Arabic-indic digit 9 16772 '\u06F0': '0', 16773 // Eastern-Arabic digit 0 16774 '\u06F1': '1', 16775 // Eastern-Arabic digit 1 16776 '\u06F2': '2', 16777 // Eastern-Arabic digit 2 16778 '\u06F3': '3', 16779 // Eastern-Arabic digit 3 16780 '\u06F4': '4', 16781 // Eastern-Arabic digit 4 16782 '\u06F5': '5', 16783 // Eastern-Arabic digit 5 16784 '\u06F6': '6', 16785 // Eastern-Arabic digit 6 16786 '\u06F7': '7', 16787 // Eastern-Arabic digit 7 16788 '\u06F8': '8', 16789 // Eastern-Arabic digit 8 16790 '\u06F9': '9', // Eastern-Arabic digit 9 16791 }; 16792 function parseDigit(character) { 16793 return DIGITS[character]; 16794 } 16795 /** 16796 * Parses phone number digits from a string. 16797 * Drops all punctuation leaving only digits. 16798 * Also converts wide-ascii and arabic-indic numerals to conventional numerals. 16799 * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`. 16800 * @param {string} string 16801 * @return {string} 16802 * @example 16803 * ```js 16804 * parseDigits('8 (800) 555') 16805 * // Outputs '8800555'. 16806 * ``` 16807 */ 16808 16809 function parseDigits(string) { 16810 var result = ''; // Using `.split('')` here instead of normal `for ... of` 16811 // because the importing application doesn't neccessarily include an ES6 polyfill. 16812 // The `.split('')` approach discards "exotic" UTF-8 characters 16813 // (the ones consisting of four bytes) but digits 16814 // (including non-European ones) don't fall into that range 16815 // so such "exotic" characters would be discarded anyway. 16816 16817 for ( 16818 var _iterator = parseDigits_createForOfIteratorHelperLoose( 16819 string.split('') 16820 ), 16821 _step; 16822 !(_step = _iterator()).done; 16823 16824 ) { 16825 var character = _step.value; 16826 var digit = parseDigit(character); 16827 16828 if (digit) { 16829 result += digit; 16830 } 16831 } 16832 16833 return result; 16834 } 16835 //# sourceMappingURL=parseDigits.js.map 16836 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js 16837 function parseIncompletePhoneNumber_createForOfIteratorHelperLoose( 16838 o, 16839 allowArrayLike 16840 ) { 16841 var it = 16842 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 16843 o['@@iterator']; 16844 if (it) return (it = it.call(o)).next.bind(it); 16845 if ( 16846 Array.isArray(o) || 16847 (it = parseIncompletePhoneNumber_unsupportedIterableToArray(o)) || 16848 (allowArrayLike && o && typeof o.length === 'number') 16849 ) { 16850 if (it) o = it; 16851 var i = 0; 16852 return function () { 16853 if (i >= o.length) return { done: true }; 16854 return { done: false, value: o[i++] }; 16855 }; 16856 } 16857 throw new TypeError( 16858 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 16859 ); 16860 } 16861 16862 function parseIncompletePhoneNumber_unsupportedIterableToArray( 16863 o, 16864 minLen 16865 ) { 16866 if (!o) return; 16867 if (typeof o === 'string') 16868 return parseIncompletePhoneNumber_arrayLikeToArray(o, minLen); 16869 var n = Object.prototype.toString.call(o).slice(8, -1); 16870 if (n === 'Object' && o.constructor) n = o.constructor.name; 16871 if (n === 'Map' || n === 'Set') return Array.from(o); 16872 if ( 16873 n === 'Arguments' || 16874 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 16875 ) 16876 return parseIncompletePhoneNumber_arrayLikeToArray(o, minLen); 16877 } 16878 16879 function parseIncompletePhoneNumber_arrayLikeToArray(arr, len) { 16880 if (len == null || len > arr.length) len = arr.length; 16881 for (var i = 0, arr2 = new Array(len); i < len; i++) { 16882 arr2[i] = arr[i]; 16883 } 16884 return arr2; 16885 } 16886 16887 /** 16888 * Parses phone number characters from a string. 16889 * Drops all punctuation leaving only digits and the leading `+` sign (if any). 16890 * Also converts wide-ascii and arabic-indic numerals to conventional numerals. 16891 * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`. 16892 * @param {string} string 16893 * @return {string} 16894 * @example 16895 * ```js 16896 * // Outputs '8800555'. 16897 * parseIncompletePhoneNumber('8 (800) 555') 16898 * // Outputs '+7800555'. 16899 * parseIncompletePhoneNumber('+7 800 555') 16900 * ``` 16901 */ 16902 16903 function parseIncompletePhoneNumber(string) { 16904 var result = ''; // Using `.split('')` here instead of normal `for ... of` 16905 // because the importing application doesn't neccessarily include an ES6 polyfill. 16906 // The `.split('')` approach discards "exotic" UTF-8 characters 16907 // (the ones consisting of four bytes) but digits 16908 // (including non-European ones) don't fall into that range 16909 // so such "exotic" characters would be discarded anyway. 16910 16911 for ( 16912 var _iterator = 16913 parseIncompletePhoneNumber_createForOfIteratorHelperLoose(
vendor: 11,012 bytes, lines 16914-17133
16914 string.split('') 16915 ), 16916 _step; 16917 !(_step = _iterator()).done; 16918 16919 ) { 16920 var character = _step.value; 16921 result += parsePhoneNumberCharacter(character, result) || ''; 16922 } 16923 16924 return result; 16925 } 16926 /** 16927 * Parses next character while parsing phone number digits (including a `+`) 16928 * from text: discards everything except `+` and digits, and `+` is only allowed 16929 * at the start of a phone number. 16930 * For example, is used in `react-phone-number-input` where it uses 16931 * [`input-format`](https://gitlab.com/catamphetamine/input-format). 16932 * @param {string} character - Yet another character from raw input string. 16933 * @param {string?} prevParsedCharacters - Previous parsed characters. 16934 * @param {object} meta - Optional custom use-case-specific metadata. 16935 * @return {string?} The parsed character. 16936 */ 16937 16938 function parsePhoneNumberCharacter(character, prevParsedCharacters) { 16939 // Only allow a leading `+`. 16940 if (character === '+') { 16941 // If this `+` is not the first parsed character 16942 // then discard it. 16943 if (prevParsedCharacters) { 16944 return; 16945 } 16946 16947 return '+'; 16948 } // Allow digits. 16949 16950 return parseDigit(character); 16951 } 16952 //# sourceMappingURL=parseIncompletePhoneNumber.js.map 16953 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js 16954 16955 var CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])'); 16956 function stripIddPrefix(number, country, callingCode, metadata) { 16957 if (!country) { 16958 return; 16959 } // Check if the number is IDD-prefixed. 16960 16961 var countryMetadata = new Metadata(metadata); 16962 countryMetadata.selectNumberingPlan(country, callingCode); 16963 var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix()); 16964 16965 if (number.search(IDDPrefixPattern) !== 0) { 16966 return; 16967 } // Strip IDD prefix. 16968 16969 number = number.slice(number.match(IDDPrefixPattern)[0].length); // If there're any digits after an IDD prefix, 16970 // then those digits are a country calling code. 16971 // Since no country code starts with a `0`, 16972 // the code below validates that the next digit (if present) is not `0`. 16973 16974 var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN); 16975 16976 if ( 16977 matchedGroups && 16978 matchedGroups[1] != null && 16979 matchedGroups[1].length > 0 16980 ) { 16981 if (matchedGroups[1] === '0') { 16982 return; 16983 } 16984 } 16985 16986 return number; 16987 } 16988 //# sourceMappingURL=stripIddPrefix.js.map 16989 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js 16990 /** 16991 * Strips any national prefix (such as 0, 1) present in a 16992 * (possibly incomplete) number provided. 16993 * "Carrier codes" are only used in Colombia and Brazil, 16994 * and only when dialing within those countries from a mobile phone to a fixed line number. 16995 * Sometimes it won't actually strip national prefix 16996 * and will instead prepend some digits to the `number`: 16997 * for example, when number `2345678` is passed with `VI` country selected, 16998 * it will return `{ number: "3402345678" }`, because `340` area code is prepended. 16999 * @param {string} number â National number digits. 17000 * @param {object} metadata â Metadata with country selected. 17001 * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not. 17002 */ 17003 function extractNationalNumberFromPossiblyIncompleteNumber( 17004 number, 17005 metadata 17006 ) { 17007 if (number && metadata.numberingPlan.nationalPrefixForParsing()) { 17008 // See METADATA.md for the description of 17009 // `national_prefix_for_parsing` and `national_prefix_transform_rule`. 17010 // Attempt to parse the first digits as a national prefix. 17011 var prefixPattern = new RegExp( 17012 '^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')' 17013 ); 17014 var prefixMatch = prefixPattern.exec(number); 17015 17016 if (prefixMatch) { 17017 var nationalNumber; 17018 var carrierCode; // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule 17019 // If a `national_prefix_for_parsing` has any "capturing groups" 17020 // then it means that the national (significant) number is equal to 17021 // those "capturing groups" transformed via `national_prefix_transform_rule`, 17022 // and nothing could be said about the actual national prefix: 17023 // what is it and was it even there. 17024 // If a `national_prefix_for_parsing` doesn't have any "capturing groups", 17025 // then everything it matches is a national prefix. 17026 // To determine whether `national_prefix_for_parsing` matched any 17027 // "capturing groups", the value of the result of calling `.exec()` 17028 // is looked at, and if it has non-undefined values where there're 17029 // "capturing groups" in the regular expression, then it means 17030 // that "capturing groups" have been matched. 17031 // It's not possible to tell whether there'll be any "capturing gropus" 17032 // before the matching process, because a `national_prefix_for_parsing` 17033 // could exhibit both behaviors. 17034 17035 var capturedGroupsCount = prefixMatch.length - 1; 17036 var hasCapturedGroups = 17037 capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount]; 17038 17039 if ( 17040 metadata.nationalPrefixTransformRule() && 17041 hasCapturedGroups 17042 ) { 17043 nationalNumber = number.replace( 17044 prefixPattern, 17045 metadata.nationalPrefixTransformRule() 17046 ); // If there's more than one captured group, 17047 // then carrier code is the second one. 17048 17049 if (capturedGroupsCount > 1) { 17050 carrierCode = prefixMatch[1]; 17051 } 17052 } // If there're no "capturing groups", 17053 // or if there're "capturing groups" but no 17054 // `national_prefix_transform_rule`, 17055 // then just strip the national prefix from the number, 17056 // and possibly a carrier code. 17057 // Seems like there could be more. 17058 else { 17059 // `prefixBeforeNationalNumber` is the whole substring matched by 17060 // the `national_prefix_for_parsing` regular expression. 17061 // There seem to be no guarantees that it's just a national prefix. 17062 // For example, if there's a carrier code, it's gonna be a 17063 // part of `prefixBeforeNationalNumber` too. 17064 var prefixBeforeNationalNumber = prefixMatch[0]; 17065 nationalNumber = number.slice( 17066 prefixBeforeNationalNumber.length 17067 ); // If there's at least one captured group, 17068 // then carrier code is the first one. 17069 17070 if (hasCapturedGroups) { 17071 carrierCode = prefixMatch[1]; 17072 } 17073 } // Tries to guess whether a national prefix was present in the input. 17074 // This is not something copy-pasted from Google's library: 17075 // they don't seem to have an equivalent for that. 17076 // So this isn't an "officially approved" way of doing something like that. 17077 // But since there seems no other existing method, this library uses it. 17078 17079 var nationalPrefix; 17080 17081 if (hasCapturedGroups) { 17082 var possiblePositionOfTheFirstCapturedGroup = number.indexOf( 17083 prefixMatch[1] 17084 ); 17085 var possibleNationalPrefix = number.slice( 17086 0, 17087 possiblePositionOfTheFirstCapturedGroup 17088 ); // Example: an Argentinian (AR) phone number `0111523456789`. 17089 // `prefixMatch[0]` is `01115`, and `$1` is `11`, 17090 // and the rest of the phone number is `23456789`. 17091 // The national number is transformed via `9$1` to `91123456789`. 17092 // National prefix `0` is detected being present at the start. 17093 // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) { 17094 17095 if ( 17096 possibleNationalPrefix === 17097 metadata.numberingPlan.nationalPrefix() 17098 ) { 17099 nationalPrefix = metadata.numberingPlan.nationalPrefix(); 17100 } 17101 } else { 17102 nationalPrefix = prefixMatch[0]; 17103 } 17104 17105 return { 17106 nationalNumber: nationalNumber, 17107 nationalPrefix: nationalPrefix, 17108 carrierCode: carrierCode, 17109 }; 17110 } 17111 } 17112 17113 return { 17114 nationalNumber: number, 17115 }; 17116 } 17117 //# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map 17118 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js 17119 17120 /** 17121 * Strips national prefix and carrier code from a complete phone number. 17122 * The difference from the non-"FromCompleteNumber" function is that 17123 * it won't extract national prefix if the resultant number is too short 17124 * to be a complete number for the selected phone numbering plan. 17125 * @param {string} number â Complete phone number digits. 17126 * @param {Metadata} metadata â Metadata with a phone numbering plan selected. 17127 * @return {object} `{ nationalNumber: string, carrierCode: string? }`. 17128 */ 17129 17130 function extractNationalNumber(number, metadata) { 17131 // Parsing national prefixes and carrier codes 17132 // is only required for local phone numbers 17133 // but some people don't understand that
17134 // and sometimes write international phone numbers 17135 // with national prefixes (or maybe even carrier codes). 17136 // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html 17137 // Google's original library forgives such mistakes 17138 // and so does this library, because it has been requested: 17139 // https://github.com/catamphetamine/libphonenumber-js/issues/127 17140 var _extractNationalNumbe = 17141 extractNationalNumberFromPossiblyIncompleteNumber( 17142 number, 17143 metadata 17144 ), 17145 carrierCode = _extractNationalNumbe.carrierCode, 17146 nationalNumber = _extractNationalNumbe.nationalNumber; 17147 17148 if (nationalNumber !== number) { 17149 if ( 17150 !shouldHaveExtractedNationalPrefix( 17151 number, 17152 nationalNumber, 17153 metadata 17154 ) 17155 ) { 17156 // Don't strip the national prefix. 17157 return { 17158 nationalNumber: number, 17159 }; 17160 } // Check the national (significant) number length after extracting national prefix and carrier code. 17161 // Legacy generated metadata (before `1.0.18`) didn't support the "possible lengths" feature. 17162 17163 if (metadata.possibleLengths()) { 17164 // The number remaining after stripping the national prefix and carrier code 17165 // should be long enough to have a possible length for the country. 17166 // Otherwise, don't strip the national prefix and carrier code, 17167 // since the original number could be a valid number. 17168 // This check has been copy-pasted "as is" from Google's original library: 17169 // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250 17170 // It doesn't check for the "possibility" of the original `number`. 17171 // I guess it's fine not checking that one. It works as is anyway. 17172 if ( 17173 !isPossibleIncompleteNationalNumber(nationalNumber, metadata) 17174 ) { 17175 // Don't strip the national prefix. 17176 return { 17177 nationalNumber: number, 17178 }; 17179 } 17180 } 17181 } 17182 17183 return { 17184 nationalNumber: nationalNumber, 17185 carrierCode: carrierCode, 17186 }; 17187 } // In some countries, the same digit could be a national prefix 17188 // or a leading digit of a valid phone number. 17189 // For example, in Russia, national prefix is `8`, 17190 // and also `800 555 35 35` is a valid number 17191 // in which `8` is not a national prefix, but the first digit 17192 // of a national (significant) number. 17193 // Same's with Belarus: 17194 // `82004910060` is a valid national (significant) number, 17195 // but `2004910060` is not. 17196 // To support such cases (to prevent the code from always stripping 17197 // national prefix), a condition is imposed: a national prefix 17198 // is not extracted when the original number is "viable" and the 17199 // resultant number is not, a "viable" national number being the one 17200 // that matches `national_number_pattern`. 17201 17202 function shouldHaveExtractedNationalPrefix( 17203 nationalNumberBefore, 17204 nationalNumberAfter, 17205 metadata 17206 ) { 17207 // The equivalent in Google's code is: 17208 // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004 17209 if ( 17210 matchesEntirely( 17211 nationalNumberBefore, 17212 metadata.nationalNumberPattern() 17213 ) && 17214 !matchesEntirely( 17215 nationalNumberAfter, 17216 metadata.nationalNumberPattern() 17217 ) 17218 ) { 17219 return false;
vendor: 25,419 bytes, lines 17220-17864
17220 } // This "is possible" national number (length) check has been commented out 17221 // because it's superceded by the (effectively) same check done in the 17222 // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`. 17223 // In other words, why run the same check twice if it could only be run once. 17224 // // Check the national (significant) number length after extracting national prefix and carrier code. 17225 // // Fixes a minor "weird behavior" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57 17226 // // (Legacy generated metadata (before `1.0.18`) didn't support the "possible lengths" feature). 17227 // if (metadata.possibleLengths()) { 17228 // if (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) && 17229 // !isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) { 17230 // return false 17231 // } 17232 // } 17233 17234 return true; 17235 } 17236 17237 function isPossibleIncompleteNationalNumber( 17238 nationalNumber, 17239 metadata 17240 ) { 17241 switch (checkNumberLength(nationalNumber, metadata)) { 17242 case 'TOO_SHORT': 17243 case 'INVALID_LENGTH': 17244 // This library ignores "local-only" phone numbers (for simplicity). 17245 // See the readme for more info on what are "local-only" phone numbers. 17246 // case 'IS_POSSIBLE_LOCAL_ONLY': 17247 return false; 17248 17249 default: 17250 return true; 17251 } 17252 } 17253 //# sourceMappingURL=extractNationalNumber.js.map 17254 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js 17255 17256 /** 17257 * Sometimes some people incorrectly input international phone numbers 17258 * without the leading `+`. This function corrects such input. 17259 * @param {string} number â Phone number digits. 17260 * @param {string?} country 17261 * @param {string?} callingCode 17262 * @param {object} metadata 17263 * @return {object} `{ countryCallingCode: string?, number: string }`. 17264 */ 17265 17266 function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign( 17267 number, 17268 country, 17269 callingCode, 17270 metadata 17271 ) { 17272 var countryCallingCode = country 17273 ? getCountryCallingCode(country, metadata) 17274 : callingCode; 17275 17276 if (number.indexOf(countryCallingCode) === 0) { 17277 metadata = new Metadata(metadata); 17278 metadata.selectNumberingPlan(country, callingCode); 17279 var possibleShorterNumber = number.slice( 17280 countryCallingCode.length 17281 ); 17282 17283 var _extractNationalNumbe = extractNationalNumber( 17284 possibleShorterNumber, 17285 metadata 17286 ), 17287 possibleShorterNationalNumber = 17288 _extractNationalNumbe.nationalNumber; 17289 17290 var _extractNationalNumbe2 = extractNationalNumber( 17291 number, 17292 metadata 17293 ), 17294 nationalNumber = _extractNationalNumbe2.nationalNumber; // If the number was not valid before but is valid now, 17295 // or if it was too long before, we consider the number 17296 // with the country calling code stripped to be a better result 17297 // and keep that instead. 17298 // For example, in Germany (+49), `49` is a valid area code, 17299 // so if a number starts with `49`, it could be both a valid 17300 // national German number or an international number without 17301 // a leading `+`. 17302 17303 if ( 17304 (!matchesEntirely( 17305 nationalNumber, 17306 metadata.nationalNumberPattern() 17307 ) && 17308 matchesEntirely( 17309 possibleShorterNationalNumber, 17310 metadata.nationalNumberPattern() 17311 )) || 17312 checkNumberLength(nationalNumber, metadata) === 'TOO_LONG' 17313 ) { 17314 return { 17315 countryCallingCode: countryCallingCode, 17316 number: possibleShorterNumber, 17317 }; 17318 } 17319 } 17320 17321 return { 17322 number: number, 17323 }; 17324 } 17325 //# sourceMappingURL=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map 17326 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js 17327 17328 /** 17329 * Converts a phone number digits (possibly with a `+`) 17330 * into a calling code and the rest phone number digits. 17331 * The "rest phone number digits" could include 17332 * a national prefix, carrier code, and national 17333 * (significant) number. 17334 * @param {string} number â Phone number digits (possibly with a `+`). 17335 * @param {string} [country] â Default country. 17336 * @param {string} [callingCode] â Default calling code (some phone numbering plans are non-geographic). 17337 * @param {object} metadata 17338 * @return {object} `{ countryCallingCode: string?, number: string }` 17339 * @example 17340 * // Returns `{ countryCallingCode: "1", number: "2133734253" }`. 17341 * extractCountryCallingCode('2133734253', 'US', null, metadata) 17342 * extractCountryCallingCode('2133734253', null, '1', metadata) 17343 * extractCountryCallingCode('+12133734253', null, null, metadata) 17344 * extractCountryCallingCode('+12133734253', 'RU', null, metadata) 17345 */ 17346 17347 function extractCountryCallingCode_extractCountryCallingCode( 17348 number, 17349 country, 17350 callingCode, 17351 metadata 17352 ) { 17353 if (!number) { 17354 return {}; 17355 } // If this is not an international phone number, 17356 // then either extract an "IDD" prefix, or extract a 17357 // country calling code from a number by autocorrecting it 17358 // by prepending a leading `+` in cases when it starts 17359 // with the country calling code. 17360 // https://wikitravel.org/en/International_dialling_prefix 17361 // https://github.com/catamphetamine/libphonenumber-js/issues/376 17362 17363 if (number[0] !== '+') { 17364 // Convert an "out-of-country" dialing phone number 17365 // to a proper international phone number. 17366 var numberWithoutIDD = stripIddPrefix( 17367 number, 17368 country, 17369 callingCode, 17370 metadata 17371 ); // If an IDD prefix was stripped then 17372 // convert the number to international one 17373 // for subsequent parsing. 17374 17375 if (numberWithoutIDD && numberWithoutIDD !== number) { 17376 number = '+' + numberWithoutIDD; 17377 } else { 17378 // Check to see if the number starts with the country calling code 17379 // for the default country. If so, we remove the country calling code, 17380 // and do some checks on the validity of the number before and after. 17381 // https://github.com/catamphetamine/libphonenumber-js/issues/376 17382 if (country || callingCode) { 17383 var _extractCountryCallin = 17384 extractCountryCallingCodeFromInternationalNumberWithoutPlusSign( 17385 number, 17386 country, 17387 callingCode, 17388 metadata 17389 ), 17390 countryCallingCode = 17391 _extractCountryCallin.countryCallingCode, 17392 shorterNumber = _extractCountryCallin.number; 17393 17394 if (countryCallingCode) { 17395 return { 17396 countryCallingCode: countryCallingCode, 17397 number: shorterNumber, 17398 }; 17399 } 17400 } 17401 17402 return { 17403 number: number, 17404 }; 17405 } 17406 } // Fast abortion: country codes do not begin with a '0' 17407 17408 if (number[1] === '0') { 17409 return {}; 17410 } 17411 17412 metadata = new Metadata(metadata); // The thing with country phone codes 17413 // is that they are orthogonal to each other 17414 // i.e. there's no such country phone code A 17415 // for which country phone code B exists 17416 // where B starts with A. 17417 // Therefore, while scanning digits, 17418 // if a valid country code is found, 17419 // that means that it is the country code. 17420 // 17421 17422 var i = 2; 17423 17424 while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) { 17425 var _countryCallingCode = number.slice(1, i); 17426 17427 if (metadata.hasCallingCode(_countryCallingCode)) { 17428 metadata.selectNumberingPlan(_countryCallingCode); 17429 return { 17430 countryCallingCode: _countryCallingCode, 17431 number: number.slice(i), 17432 }; 17433 } 17434 17435 i++; 17436 } 17437 17438 return {}; 17439 } 17440 //# sourceMappingURL=extractCountryCallingCode.js.map 17441 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js 17442 function getCountryByCallingCode_createForOfIteratorHelperLoose( 17443 o, 17444 allowArrayLike 17445 ) { 17446 var it = 17447 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 17448 o['@@iterator']; 17449 if (it) return (it = it.call(o)).next.bind(it); 17450 if ( 17451 Array.isArray(o) || 17452 (it = getCountryByCallingCode_unsupportedIterableToArray(o)) || 17453 (allowArrayLike && o && typeof o.length === 'number') 17454 ) { 17455 if (it) o = it; 17456 var i = 0; 17457 return function () { 17458 if (i >= o.length) return { done: true }; 17459 return { done: false, value: o[i++] }; 17460 }; 17461 } 17462 throw new TypeError( 17463 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 17464 ); 17465 } 17466 17467 function getCountryByCallingCode_unsupportedIterableToArray( 17468 o, 17469 minLen 17470 ) { 17471 if (!o) return; 17472 if (typeof o === 'string') 17473 return getCountryByCallingCode_arrayLikeToArray(o, minLen); 17474 var n = Object.prototype.toString.call(o).slice(8, -1); 17475 if (n === 'Object' && o.constructor) n = o.constructor.name; 17476 if (n === 'Map' || n === 'Set') return Array.from(o); 17477 if ( 17478 n === 'Arguments' || 17479 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 17480 ) 17481 return getCountryByCallingCode_arrayLikeToArray(o, minLen); 17482 } 17483 17484 function getCountryByCallingCode_arrayLikeToArray(arr, len) { 17485 if (len == null || len > arr.length) len = arr.length; 17486 for (var i = 0, arr2 = new Array(len); i < len; i++) { 17487 arr2[i] = arr[i]; 17488 } 17489 return arr2; 17490 } 17491 17492 var getCountryByCallingCode_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; 17493 function getCountryByCallingCode( 17494 callingCode, 17495 nationalPhoneNumber, 17496 metadata 17497 ) { 17498 /* istanbul ignore if */ 17499 if (getCountryByCallingCode_USE_NON_GEOGRAPHIC_COUNTRY_CODE) { 17500 if (metadata.isNonGeographicCallingCode(callingCode)) { 17501 return '001'; 17502 } 17503 } // Is always non-empty, because `callingCode` is always valid 17504 17505 var possibleCountries = 17506 metadata.getCountryCodesForCallingCode(callingCode); 17507 17508 if (!possibleCountries) { 17509 return; 17510 } // If there's just one country corresponding to the country code, 17511 // then just return it, without further phone number digits validation. 17512 17513 if (possibleCountries.length === 1) { 17514 return possibleCountries[0]; 17515 } 17516 17517 return selectCountryFromList( 17518 possibleCountries, 17519 nationalPhoneNumber, 17520 metadata.metadata 17521 ); 17522 } 17523 17524 function selectCountryFromList( 17525 possibleCountries, 17526 nationalPhoneNumber, 17527 metadata 17528 ) { 17529 // Re-create `metadata` because it will be selecting a `country`. 17530 metadata = new Metadata(metadata); 17531 17532 for ( 17533 var _iterator = 17534 getCountryByCallingCode_createForOfIteratorHelperLoose( 17535 possibleCountries 17536 ), 17537 _step; 17538 !(_step = _iterator()).done; 17539 17540 ) { 17541 var country = _step.value; 17542 metadata.country(country); // Leading digits check would be the simplest and fastest one. 17543 // Leading digits patterns are only defined for about 20% of all countries. 17544 // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits 17545 // Matching "leading digits" is a sufficient but not necessary condition. 17546 17547 if (metadata.leadingDigits()) { 17548 if ( 17549 nationalPhoneNumber && 17550 nationalPhoneNumber.search(metadata.leadingDigits()) === 0 17551 ) { 17552 return country; 17553 } 17554 } // Else perform full validation with all of those 17555 // fixed-line/mobile/etc regular expressions. 17556 else if ( 17557 getNumberType( 17558 { 17559 phone: nationalPhoneNumber, 17560 country: country, 17561 }, 17562 undefined, 17563 metadata.metadata 17564 ) 17565 ) { 17566 return country; 17567 } 17568 } 17569 } 17570 //# sourceMappingURL=getCountryByCallingCode.js.map 17571 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parse_.js 17572 // This is a port of Google Android `libphonenumber`'s 17573 // `phonenumberutil.js` of December 31th, 2018. 17574 // 17575 // https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js 17576 17577 // We don't allow input strings for parsing to be longer than 250 chars. 17578 // This prevents malicious input from consuming CPU. 17579 17580 var MAX_INPUT_STRING_LENGTH = 250; // This consists of the plus symbol, digits, and arabic-indic digits. 17581 17582 var PHONE_NUMBER_START_PATTERN = new RegExp( 17583 '[' + PLUS_CHARS + VALID_DIGITS + ']' 17584 ); // Regular expression of trailing characters that we want to remove. 17585 // A trailing `#` is sometimes used when writing phone numbers with extensions in US. 17586 // Example: "+1 (645) 123 1234-910#" number has extension "910". 17587 17588 var AFTER_PHONE_NUMBER_END_PATTERN = new RegExp( 17589 '[^' + VALID_DIGITS + '#' + ']+$' 17590 ); 17591 var parse_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; // Examples: 17592 // 17593 // ```js 17594 // parse('8 (800) 555-35-35', 'RU') 17595 // parse('8 (800) 555-35-35', 'RU', metadata) 17596 // parse('8 (800) 555-35-35', { country: { default: 'RU' } }) 17597 // parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata) 17598 // parse('+7 800 555 35 35') 17599 // parse('+7 800 555 35 35', metadata) 17600 // ``` 17601 // 17602 17603 function parse(text, options, metadata) { 17604 // If assigning the `{}` default value is moved to the arguments above, 17605 // code coverage would decrease for some weird reason. 17606 options = options || {}; 17607 metadata = new Metadata(metadata); // Validate `defaultCountry`. 17608 17609 if ( 17610 options.defaultCountry && 17611 !metadata.hasCountry(options.defaultCountry) 17612 ) { 17613 if (options.v2) { 17614 throw new ParseError('INVALID_COUNTRY'); 17615 } 17616 17617 throw new Error( 17618 'Unknown country: '.concat(options.defaultCountry) 17619 ); 17620 } // Parse the phone number. 17621 17622 var _parseInput = parseInput(text, options.v2, options.extract), 17623 formattedPhoneNumber = _parseInput.number, 17624 ext = _parseInput.ext, 17625 error = _parseInput.error; // If the phone number is not viable then return nothing. 17626 17627 if (!formattedPhoneNumber) { 17628 if (options.v2) { 17629 if (error === 'TOO_SHORT') { 17630 throw new ParseError('TOO_SHORT'); 17631 } 17632 17633 throw new ParseError('NOT_A_NUMBER'); 17634 } 17635 17636 return {}; 17637 } 17638 17639 var _parsePhoneNumber = parsePhoneNumber( 17640 formattedPhoneNumber, 17641 options.defaultCountry, 17642 options.defaultCallingCode, 17643 metadata 17644 ), 17645 country = _parsePhoneNumber.country, 17646 nationalNumber = _parsePhoneNumber.nationalNumber, 17647 countryCallingCode = _parsePhoneNumber.countryCallingCode, 17648 carrierCode = _parsePhoneNumber.carrierCode; 17649 17650 if (!metadata.hasSelectedNumberingPlan()) { 17651 if (options.v2) { 17652 throw new ParseError('INVALID_COUNTRY'); 17653 } 17654 17655 return {}; 17656 } // Validate national (significant) number length. 17657 17658 if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) { 17659 // Won't throw here because the regexp already demands length > 1. 17660 17661 /* istanbul ignore if */ 17662 if (options.v2) { 17663 throw new ParseError('TOO_SHORT'); 17664 } // Google's demo just throws an error in this case. 17665 17666 return {}; 17667 } // Validate national (significant) number length. 17668 // 17669 // A sidenote: 17670 // 17671 // They say that sometimes national (significant) numbers 17672 // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany). 17673 // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36 17674 // Such numbers will just be discarded. 17675 // 17676 17677 if (nationalNumber.length > MAX_LENGTH_FOR_NSN) { 17678 if (options.v2) { 17679 throw new ParseError('TOO_LONG'); 17680 } // Google's demo just throws an error in this case. 17681 17682 return {}; 17683 } 17684 17685 if (options.v2) { 17686 var phoneNumber = new PhoneNumber_PhoneNumber( 17687 countryCallingCode, 17688 nationalNumber, 17689 metadata.metadata 17690 ); 17691 17692 if (country) { 17693 phoneNumber.country = country; 17694 } 17695 17696 if (carrierCode) { 17697 phoneNumber.carrierCode = carrierCode; 17698 } 17699 17700 if (ext) { 17701 phoneNumber.ext = ext; 17702 } 17703 17704 return phoneNumber; 17705 } // Check if national phone number pattern matches the number. 17706 // National number pattern is different for each country, 17707 // even for those ones which are part of the "NANPA" group. 17708 17709 var valid = ( 17710 options.extended ? metadata.hasSelectedNumberingPlan() : country 17711 ) 17712 ? matchesEntirely( 17713 nationalNumber, 17714 metadata.nationalNumberPattern() 17715 ) 17716 : false; 17717 17718 if (!options.extended) { 17719 return valid ? parse_result(country, nationalNumber, ext) : {}; 17720 } // isInternational: countryCallingCode !== undefined 17721 17722 return { 17723 country: country, 17724 countryCallingCode: countryCallingCode, 17725 carrierCode: carrierCode, 17726 valid: valid, 17727 possible: valid 17728 ? true 17729 : options.extended === true && 17730 metadata.possibleLengths() && 17731 isPossibleNumber(nationalNumber, metadata) 17732 ? true 17733 : false, 17734 phone: nationalNumber, 17735 ext: ext, 17736 }; 17737 } 17738 /** 17739 * Extracts a formatted phone number from text. 17740 * Doesn't guarantee that the extracted phone number 17741 * is a valid phone number (for example, doesn't validate its length). 17742 * @param {string} text 17743 * @param {boolean} [extract] â If `false`, then will parse the entire `text` as a phone number. 17744 * @param {boolean} [throwOnError] â By default, it won't throw if the text is too long. 17745 * @return {string} 17746 * @example 17747 * // Returns "(213) 373-4253". 17748 * extractFormattedPhoneNumber("Call (213) 373-4253 for assistance.") 17749 */ 17750 17751 function extractFormattedPhoneNumber(text, extract, throwOnError) { 17752 if (!text) { 17753 return; 17754 } 17755 17756 if (text.length > MAX_INPUT_STRING_LENGTH) { 17757 if (throwOnError) { 17758 throw new ParseError('TOO_LONG'); 17759 } 17760 17761 return; 17762 } 17763 17764 if (extract === false) { 17765 return text; 17766 } // Attempt to extract a possible number from the string passed in 17767 17768 var startsAt = text.search(PHONE_NUMBER_START_PATTERN); 17769 17770 if (startsAt < 0) { 17771 return; 17772 } 17773 17774 return text // Trim everything to the left of the phone number 17775 .slice(startsAt) // Remove trailing non-numerical characters 17776 .replace(AFTER_PHONE_NUMBER_END_PATTERN, ''); 17777 } 17778 /** 17779 * @param {string} text - Input. 17780 * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag. 17781 * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number. 17782 * @return {object} `{ ?number, ?ext }`. 17783 */ 17784 17785 function parseInput(text, v2, extract) { 17786 // Parse RFC 3966 phone number URI. 17787 if (text && text.indexOf('tel:') === 0) { 17788 return parseRFC3966(text); 17789 } 17790 17791 var number = extractFormattedPhoneNumber(text, extract, v2); // If the phone number is not viable, then abort. 17792 17793 if (!number) { 17794 return {}; 17795 } 17796 17797 if (!isViablePhoneNumber(number)) { 17798 if (isViablePhoneNumberStart(number)) { 17799 return { 17800 error: 'TOO_SHORT', 17801 }; 17802 } 17803 17804 return {}; 17805 } // Attempt to parse extension first, since it doesn't require region-specific 17806 // data and we want to have the non-normalised number here. 17807 17808 var withExtensionStripped = extractExtension(number); 17809 17810 if (withExtensionStripped.ext) { 17811 return withExtensionStripped; 17812 } 17813 17814 return { 17815 number: number, 17816 }; 17817 } 17818 /** 17819 * Creates `parse()` result object. 17820 */ 17821 17822 function parse_result(country, nationalNumber, ext) { 17823 var result = { 17824 country: country, 17825 phone: nationalNumber, 17826 }; 17827 17828 if (ext) { 17829 result.ext = ext; 17830 } 17831 17832 return result; 17833 } 17834 /** 17835 * Parses a viable phone number. 17836 * @param {string} formattedPhoneNumber â Example: "(213) 373-4253". 17837 * @param {string} [defaultCountry] 17838 * @param {string} [defaultCallingCode] 17839 * @param {Metadata} metadata 17840 * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`. 17841 */ 17842 17843 function parsePhoneNumber( 17844 formattedPhoneNumber, 17845 defaultCountry, 17846 defaultCallingCode, 17847 metadata 17848 ) { 17849 // Extract calling code from phone number. 17850 var _extractCountryCallin = 17851 extractCountryCallingCode_extractCountryCallingCode( 17852 parseIncompletePhoneNumber(formattedPhoneNumber), 17853 defaultCountry, 17854 defaultCallingCode, 17855 metadata.metadata 17856 ), 17857 countryCallingCode = _extractCountryCallin.countryCallingCode, 17858 number = _extractCountryCallin.number; // Choose a country by `countryCallingCode`. 17859 17860 var country; 17861 17862 if (countryCallingCode) { 17863 metadata.selectNumberingPlan(countryCallingCode); 17864 } // If `formattedPhoneNumber` is in "national" format
17865 // then `number` is defined and `countryCallingCode` isn't. 17866 else if (number && (defaultCountry || defaultCallingCode)) { 17867 metadata.selectNumberingPlan(defaultCountry, defaultCallingCode); 17868 17869 if (defaultCountry) { 17870 country = defaultCountry; 17871 } else { 17872 /* istanbul ignore if */ 17873 if (parse_USE_NON_GEOGRAPHIC_COUNTRY_CODE) { 17874 if (metadata.isNonGeographicCallingCode(defaultCallingCode)) { 17875 country = '001'; 17876 } 17877 } 17878 } 17879 17880 countryCallingCode = 17881 defaultCallingCode || 17882 getCountryCallingCode(defaultCountry, metadata.metadata); 17883 } else return {}; 17884 17885 if (!number) { 17886 return { 17887 countryCallingCode: countryCallingCode, 17888 }; 17889 } 17890 17891 var _extractNationalNumbe = extractNationalNumber( 17892 parseIncompletePhoneNumber(number), 17893 metadata 17894 ), 17895 nationalNumber = _extractNationalNumbe.nationalNumber, 17896 carrierCode = _extractNationalNumbe.carrierCode; // Sometimes there are several countries 17897 // corresponding to the same country phone code 17898 // (e.g. NANPA countries all having `1` country phone code). 17899 // Therefore, to reliably determine the exact country, 17900 // national (significant) number should have been parsed first. 17901 // 17902 // When `metadata.json` is generated, all "ambiguous" country phone codes 17903 // get their countries populated with the full set of 17904 // "phone number type" regular expressions. 17905 // 17906 17907 var exactCountry = getCountryByCallingCode( 17908 countryCallingCode, 17909 nationalNumber, 17910 metadata 17911 ); 17912 17913 if (exactCountry) { 17914 country = exactCountry; 17915 /* istanbul ignore if */ 17916 17917 if (exactCountry === '001') { 17918 // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`. 17919 // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason, 17920 // then remove the "istanbul ignore if". 17921 } else { 17922 metadata.country(country); 17923 } 17924 } 17925 17926 return { 17927 country: country, 17928 countryCallingCode: countryCallingCode, 17929 nationalNumber: nationalNumber, 17930 carrierCode: carrierCode, 17931 }; 17932 } 17933 //# sourceMappingURL=parse_.js.map 17934 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parsePhoneNumber_.js 17935 function parsePhoneNumber_ownKeys(object, enumerableOnly) { 17936 var keys = Object.keys(object); 17937 if (Object.getOwnPropertySymbols) { 17938 var symbols = Object.getOwnPropertySymbols(object); 17939 enumerableOnly && 17940 (symbols = symbols.filter(function (sym) { 17941 return Object.getOwnPropertyDescriptor(object, sym) 17942 .enumerable; 17943 })), 17944 keys.push.apply(keys, symbols); 17945 } 17946 return keys; 17947 } 17948 17949 function parsePhoneNumber_objectSpread(target) { 17950 for (var i = 1; i < arguments.length; i++) { 17951 var source = null != arguments[i] ? arguments[i] : {}; 17952 i % 2 17953 ? parsePhoneNumber_ownKeys(Object(source), !0).forEach( 17954 function (key) { 17955 parsePhoneNumber_defineProperty(target, key, source[key]); 17956 } 17957 ) 17958 : Object.getOwnPropertyDescriptors 17959 ? Object.defineProperties( 17960 target, 17961 Object.getOwnPropertyDescriptors(source) 17962 ) 17963 : parsePhoneNumber_ownKeys(Object(source)).forEach( 17964 function (key) { 17965 Object.defineProperty( 17966 target, 17967 key, 17968 Object.getOwnPropertyDescriptor(source, key) 17969 ); 17970 } 17971 ); 17972 } 17973 return target; 17974 } 17975 17976 function parsePhoneNumber_defineProperty(obj, key, value) { 17977 if (key in obj) { 17978 Object.defineProperty(obj, key, { 17979 value: value, 17980 enumerable: true, 17981 configurable: true, 17982 writable: true, 17983 }); 17984 } else { 17985 obj[key] = value; 17986 } 17987 return obj; 17988 } 17989 17990 function parsePhoneNumber_parsePhoneNumber(text, options, metadata) { 17991 return parse( 17992 text, 17993 parsePhoneNumber_objectSpread( 17994 parsePhoneNumber_objectSpread({}, options), 17995 {}, 17996 { 17997 v2: true, 17998 } 17999 ), 18000 metadata 18001 ); 18002 } 18003 //# sourceMappingURL=parsePhoneNumber_.js.map 18004 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parsePhoneNumber.js 18005 function parsePhoneNumber_typeof(obj) { 18006 '@babel/helpers - typeof'; 18007 return ( 18008 (parsePhoneNumber_typeof = 18009 'function' == typeof Symbol && 18010 'symbol' == typeof Symbol.iterator 18011 ? function (obj) { 18012 return typeof obj; 18013 } 18014 : function (obj) { 18015 return obj && 18016 'function' == typeof Symbol && 18017 obj.constructor === Symbol && 18018 obj !== Symbol.prototype 18019 ? 'symbol' 18020 : typeof obj; 18021 }), 18022 parsePhoneNumber_typeof(obj) 18023 ); 18024 } 18025 18026 function es6_parsePhoneNumber_ownKeys(object, enumerableOnly) { 18027 var keys = Object.keys(object); 18028 if (Object.getOwnPropertySymbols) { 18029 var symbols = Object.getOwnPropertySymbols(object); 18030 enumerableOnly && 18031 (symbols = symbols.filter(function (sym) { 18032 return Object.getOwnPropertyDescriptor(object, sym) 18033 .enumerable; 18034 })), 18035 keys.push.apply(keys, symbols); 18036 } 18037 return keys; 18038 } 18039 18040 function es6_parsePhoneNumber_objectSpread(target) { 18041 for (var i = 1; i < arguments.length; i++) { 18042 var source = null != arguments[i] ? arguments[i] : {}; 18043 i % 2 18044 ? es6_parsePhoneNumber_ownKeys(Object(source), !0).forEac
vendor: 8,087 bytes, lines 18044-18263
18044h( 18045 function (key) { 18046 es6_parsePhoneNumber_defineProperty( 18047 target, 18048 key, 18049 source[key] 18050 ); 18051 } 18052 ) 18053 : Object.getOwnPropertyDescriptors 18054 ? Object.defineProperties( 18055 target, 18056 Object.getOwnPropertyDescriptors(source) 18057 ) 18058 : es6_parsePhoneNumber_ownKeys(Object(source)).forEach( 18059 function (key) { 18060 Object.defineProperty( 18061 target, 18062 key, 18063 Object.getOwnPropertyDescriptor(source, key) 18064 ); 18065 } 18066 ); 18067 } 18068 return target; 18069 } 18070 18071 function es6_parsePhoneNumber_defineProperty(obj, key, value) { 18072 if (key in obj) { 18073 Object.defineProperty(obj, key, { 18074 value: value, 18075 enumerable: true, 18076 configurable: true, 18077 writable: true, 18078 }); 18079 } else { 18080 obj[key] = value; 18081 } 18082 return obj; 18083 } 18084 18085 function parsePhoneNumber_slicedToArray(arr, i) { 18086 return ( 18087 parsePhoneNumber_arrayWithHoles(arr) || 18088 parsePhoneNumber_iterableToArrayLimit(arr, i) || 18089 parsePhoneNumber_unsupportedIterableToArray(arr, i) || 18090 parsePhoneNumber_nonIterableRest() 18091 ); 18092 } 18093 18094 function parsePhoneNumber_nonIterableRest() { 18095 throw new TypeError( 18096 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 18097 ); 18098 } 18099 18100 function parsePhoneNumber_unsupportedIterableToArray(o, minLen) { 18101 if (!o) return; 18102 if (typeof o === 'string') 18103 return parsePhoneNumber_arrayLikeToArray(o, minLen); 18104 var n = Object.prototype.toString.call(o).slice(8, -1); 18105 if (n === 'Object' && o.constructor) n = o.constructor.name; 18106 if (n === 'Map' || n === 'Set') return Array.from(o); 18107 if ( 18108 n === 'Arguments' || 18109 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 18110 ) 18111 return parsePhoneNumber_arrayLikeToArray(o, minLen); 18112 } 18113 18114 function parsePhoneNumber_arrayLikeToArray(arr, len) { 18115 if (len == null || len > arr.length) len = arr.length; 18116 for (var i = 0, arr2 = new Array(len); i < len; i++) { 18117 arr2[i] = arr[i]; 18118 } 18119 return arr2; 18120 } 18121 18122 function parsePhoneNumber_iterableToArrayLimit(arr, i) { 18123 var _i = 18124 arr == null 18125 ? null 18126 : (typeof Symbol !== 'undefined' && arr[Symbol.iterator]) || 18127 arr['@@iterator']; 18128 if (_i == null) return; 18129 var _arr = []; 18130 var _n = true; 18131 var _d = false; 18132 var _s, _e; 18133 try { 18134 for ( 18135 _i = _i.call(arr); 18136 !(_n = (_s = _i.next()).done); 18137 _n = true 18138 ) { 18139 _arr.push(_s.value); 18140 if (i && _arr.length === i) break; 18141 } 18142 } catch (err) { 18143 _d = true; 18144 _e = err; 18145 } finally { 18146 try { 18147 if (!_n && _i['return'] != null) _i['return'](); 18148 } finally { 18149 if (_d) throw _e; 18150 } 18151 } 18152 return _arr; 18153 } 18154 18155 function parsePhoneNumber_arrayWithHoles(arr) { 18156 if (Array.isArray(arr)) return arr; 18157 } 18158 18159 function es6_parsePhoneNumber_parsePhoneNumber() { 18160 var _normalizeArguments = normalizeArguments(arguments), 18161 text = _normalizeArguments.text, 18162 options = _normalizeArguments.options, 18163 metadata = _normalizeArguments.metadata; 18164 18165 return parsePhoneNumber_parsePhoneNumber(text, options, metadata); 18166 } 18167 function normalizeArguments(args) { 18168 var _Array$prototype$slic = Array.prototype.slice.call(args), 18169 _Array$prototype$slic2 = parsePhoneNumber_slicedToArray( 18170 _Array$prototype$slic, 18171 4 18172 ), 18173 arg_1 = _Array$prototype$slic2[0], 18174 arg_2 = _Array$prototype$slic2[1], 18175 arg_3 = _Array$prototype$slic2[2], 18176 arg_4 = _Array$prototype$slic2[3]; 18177 18178 var text; 18179 var options; 18180 var metadata; // If the phone number is passed as a string. 18181 // `parsePhoneNumber('88005553535', ...)`. 18182 18183 if (typeof arg_1 === 'string') { 18184 text = arg_1; 18185 } else throw new TypeError('A text for parsing must be a string.'); // If "default country" argument is being passed then move it to `options`. 18186 // `parsePhoneNumber('88005553535', 'RU', [options], metadata)`. 18187 18188 if (!arg_2 || typeof arg_2 === 'string') { 18189 if (arg_4) { 18190 options = arg_3; 18191 metadata = arg_4; 18192 } else { 18193 options = undefined; 18194 metadata = arg_3; 18195 } 18196 18197 if (arg_2) { 18198 options = es6_parsePhoneNumber_objectSpread( 18199 { 18200 defaultCountry: arg_2, 18201 }, 18202 options 18203 ); 18204 } 18205 } // `defaultCountry` is not passed. 18206 // Example: `parsePhoneNumber('+78005553535', [options], metadata)`. 18207 else if (isObject(arg_2)) { 18208 if (arg_3) { 18209 options = arg_2; 18210 metadata = arg_3; 18211 } else { 18212 metadata = arg_2; 18213 } 18214 } else throw new Error('Invalid second argument: '.concat(arg_2)); 18215 18216 return { 18217 text: text, 18218 options: options, 18219 metadata: metadata, 18220 }; 18221 } // Otherwise istanbul would show this as "branch not covered". 18222 18223 /* istanbul ignore next */ 18224 18225 var isObject = function isObject(_) { 18226 return parsePhoneNumber_typeof(_) === 'object'; 18227 }; 18228 //# sourceMappingURL=parsePhoneNumber.js.map 18229 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parsePhoneNumberFromString_.js 18230 function parsePhoneNumberFromString_ownKeys(object, enumerableOnly) { 18231 var keys = Object.keys(object); 18232 if (Object.getOwnPropertySymbols) { 18233 var symbols = Object.getOwnPropertySymbols(object); 18234 enumerableOnly && 18235 (symbols = symbols.filter(function (sym) { 18236 return Object.getOwnPropertyDescriptor(object, sym) 18237 .enumerable; 18238 })), 18239 keys.push.apply(keys, symbols); 18240 } 18241 return keys; 18242 } 18243 18244 function parsePhoneNumberFromString_objectSpread(target) { 18245 for (var i = 1; i < arguments.length; i++) { 18246 var source = null != arguments[i] ? arguments[i] : {}; 18247 i % 2 18248 ? parsePhoneNumberFromString_ownKeys( 18249 Object(source), 18250 !0 18251 ).forEach(function (key) { 18252 parsePhoneNumberFromString_defineProperty( 18253 target, 18254 key, 18255 source[key] 18256 ); 18257 }) 18258 : Object.getOwnPropertyDescriptors 18259 ? Object.defineProperties( 18260 target, 18261 Object.getOwnPropertyDescriptors(source) 18262 ) 18263 : parsePhoneNumberFromString_ownKeys(Object(source)).forEac
18263h( 18264 function (key) { 18265 Object.defineProperty( 18266 target, 18267 key, 18268 Object.getOwnPropertyDescriptor(source, key) 18269 ); 18270 } 18271 ); 18272 } 18273 return target; 18274 } 18275 18276 function parsePhoneNumberFromString_defineProperty(obj, key, value) { 18277 if (key in obj) { 18278 Object.defineProperty(obj, key, { 18279 value: value, 18280 enumerable: true, 18281 configurable: true, 18282 writable: true, 18283 }); 18284 } else { 18285 obj[key] = value; 18286 } 18287 return obj; 18288 } 18289 18290 function parsePhoneNumberFromString(text, options, metadata) { 18291 // Validate `defaultCountry`. 18292 if ( 18293 options && 18294 options.defaultCountry && 18295 !isSupportedCountry(options.defaultCountry, metadata) 18296 ) { 18297 options = parsePhoneNumberFromString_objectSpread( 18298 parsePhoneNumberFromString_objectSpread({}, options), 18299 {}, 18300 { 18301 defaultCountry: undefined, 18302 } 18303 ); 18304 } // Parse phone number. 18305 18306 try { 18307 return parsePhoneNumber_parsePhoneNumber(text, options, metadata); 18308 } catch (error) { 18309 /* istanbul ignore else */ 18310 if (error instanceof ParseError) { 18311 // 18312 } else { 18313 throw error; 18314 } 18315 } 18316 } 18317 //# sourceMappingURL=parsePhoneNumberFromString_.js.map 18318 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/parsePhoneNumberFromString.js 18319 18320 function parsePhoneNumberFromString_parsePhoneNumberFromString() { 18321 var _normalizeArguments = normalizeArguments(arguments), 18322 text = _normalizeArguments.text, 18323 options = _normalizeArguments.options, 18324 metadata = _normalizeArguments.metadata; 18325 18326 return parsePhoneNumberFromString(text, options, metadata); 18327 } 18328 //# sourceMappingURL=parsePhoneNumberFromString.js.map 18329 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/min/exports/parsePhoneNumberFromString.js 18330 18331 function exports_parsePhoneNumberFromString_parsePhoneNumberFromString() { 18332 return withMetadataArgument( 18333 parsePhoneNumberFromString_parsePhoneNumberFromString, 18334 arguments 18335 ); 18336 } 18337 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeState.js 18338 function AsYouTypeState_classCallCheck(instance, Constructor) { 18339 if (!(instance instanceof Constructor)) { 18340 throw new TypeError('Cannot call a class as a function'); 18341 } 18342 } 18343 18344 function AsYouTypeState_defineProperties(target, props) { 18345 for (var i = 0; i < props.length; i++) { 18346 var descriptor = props[i]; 18347 descriptor.enumerable = descriptor.enumerable || false; 18348 descriptor.configurable = true; 18349 if ('value' in descriptor) descriptor.writable = true; 18350 Object.defineProperty(target, descriptor.key, descriptor); 18351 } 18352 } 18353 18354 function AsYouTypeState_createClass( 18355 Constructor, 18356 protoProps, 18357 staticProps 18358 ) { 18359 if (protoProps) 18360 AsYouTypeState_defineProperties( 18361 Constructor.prototype, 18362 protoProps 18363 ); 18364 if (staticProps) 18365 AsYouTypeState_defineProperties(Constructor, staticProps); 18366 Object.defineProperty(Constructor, 'prototype', { 18367 writable: false, 18368 }); 18369 return Constructor; 18370 } 18371 18372 var AsYouTypeState = /*#__PURE__*/ (function () { 18373 function AsYouTypeState(_ref) { 18374 var onCountryChange = _ref.onCountryChange, 18375 onCallingCodeChange = _ref.onCallingCodeChange; 18376 18377 AsYouTypeState_classCallCheck(this, AsYouTypeState); 18378 18379 this.onCountryChange = onCountryChange; 18380 this.onCallingCodeChange = onCallingCodeChange; 18381 } 18382 18383 AsYouTypeState_createClass(AsYouTypeState, [ 18384 { 18385 key: 'reset', 18386 value: function reset(defaultCountry, defaultCallingCode) { 18387 this.international = false;
18388 this.IDDPrefix = undefined; 18389 this.missingPlus = undefined; 18390 this.callingCode = undefined; 18391 this.digits = ''; 18392 this.resetNationalSignificantNumber(); 18393 this.initCountryAndCallingCode( 18394 defaultCountry, 18395 defaultCallingCode 18396 ); 18397 }, 18398 }, 18399 { 18400 key: 'resetNationalSignificantNumber', 18401 value: function resetNationalSignificantNumber() { 18402 this.nationalSignificantNumber = this.getNationalDigits(); 18403 this.nationalSignificantNumberMatchesInput = true; 18404 this.nationalPrefix = undefined; 18405 this.carrierCode = undefined; 18406 this.complexPrefixBeforeNationalSignificantNumber = undefined; 18407 }, 18408 }, 18409 { 18410 key: 'update', 18411 value: function update(properties) { 18412 for ( 18413 var _i = 0, _Object$keys = Object.keys(properties); 18414 _i < _Object$keys.length; 18415 _i++ 18416 ) { 18417 var key = _Object$keys[_i]; 18418 this[key] = properties[key]; 18419 } 18420 }, 18421 }, 18422 { 18423 key: 'initCountryAndCallingCode', 18424 value: function initCountryAndCallingCode( 18425 country, 18426 callingCode 18427 ) { 18428 this.setCountry(country); 18429 this.setCallingCode(callingCode); 18430 }, 18431 }, 18432 { 18433 key: 'setCountry', 18434 value: function setCountry(country) { 18435 this.country = country; 18436 this.onCountryChange(country); 18437 }, 18438 }, 18439 { 18440 key: 'setCallingCode', 18441 value: function setCallingCode(callingCode) { 18442 this.callingCode = callingCode; 18443 this.onCallingCodeChange(callingCode, this.country); 18444 }, 18445 }, 18446 { 18447 key: 'startInternationalNumber', 18448 value: function startInternationalNumber(country, callingCode) { 18449 // Prepend the `+` to parsed input. 18450 this.international = true; // If a default country was set then reset it 18451 // because an explicitly international phone 18452 // number is being entered. 18453 18454 this.initCountryAndCallingCode(country, callingCode); 18455 }, 18456 }, 18457 { 18458 key: 'appendDigits', 18459 value: function appendDigits(nextDigits) { 18460 this.digits += nextDigits; 18461 }, 18462 }, 18463 { 18464 key: 'appendNationalSignificantNumberDigits', 18465 value: function appendNationalSignificantNumberDigits( 18466 nextDigits 18467 ) { 18468 this.nationalSignificantNumber += nextDigits; 18469 }, 18470 /** 18471 * Returns the part of `this.digits` that corresponds to the national number. 18472 * Basically, all digits that have been input by the user, except for the 18473 * international prefix and the country calling code part 18474 * (if the number is an international one). 18475 * @return {string} 18476 */ 18477 }, 18478 { 18479 key: 'getNationalDigits', 18480 value: function getNationalDigits() { 18481 if (this.international) { 18482 return this.digits.slice( 18483 (this.IDDPrefix ? this.IDDPrefix.length : 0) + 18484 (this.callingCode ? this.callingCode.length : 0) 18485 ); 18486 } 18487 18488 return this.digits; 18489 }, 18490 }, 18491 { 18492 key: 'getDigitsWithoutInternationalPrefix', 18493 value: function getDigitsWithoutInternationalPrefix() { 18494 if (this.international) { 18495 if (this.IDDPrefix) { 18496 return this.digits.slice(this.IDDPrefix.length); 18497 } 18498 } 18499 18500 return this.digits; 18501 }, 18502 }, 18503 ]); 18504 18505 return AsYouTypeState; 18506 })(); 18507 18508 //# sourceMappingURL=AsYouTypeState.js.map 18509 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js 18510 function AsYouTypeFormatter_util_createForOfIteratorHelperLoose( 18511 o, 18512 allowArrayLike 18513 ) { 18514 var it = 18515 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 18516 o['@@iterator']; 18517 if (it) return (it = it.call(o)).next.bind(it); 18518 if ( 18519 Array.isArray(o) || 18520 (it = AsYouTypeFormatter_util_unsupportedIterableToArray(o)) || 18521 (allowArrayLike && o && typeof o.length === 'number') 18522 ) { 18523 if (it) o = it; 18524 var i = 0; 18525 return function () { 18526 if (i >= o.length) return { done: true }; 18527 return { done: false, value: o[i++] }; 18528 }; 18529 } 18530 throw new TypeError( 18531 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 18532 ); 18533 } 18534 18535 function AsYouTypeFormatter_util_unsupportedIterableToArray( 18536 o, 18537 minLen 18538 ) { 18539 if (!o) return; 18540 if (typeof o === 'string') 18541 return AsYouTypeFormatter_util_arrayLikeToArray(o, minLen); 18542 var n = Object.prototype.toString.call(o).slice(8, -1); 18543 if (n === 'Object' && o.constructor) n = o.constructor.name; 18544 if (n === 'Map' || n === 'Set') return Array.from(o); 18545 if ( 18546 n === 'Arguments' || 18547 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 18548 ) 18549 return AsYouTypeFormatter_util_arrayLikeToArray(o, minLen); 18550 } 18551 18552 function AsYouTypeFormatter_util_arrayLikeToArray(arr, len) { 18553 if (len == null || len > arr.length) len = arr.length; 18554 for (var i = 0, arr2 = new Array(len); i < len; i++) { 18555 arr2[i] = arr[i]; 18556 } 18557 return arr2; 18558 } 18559 18560 // Should be the same as `DIGIT_PLACEHOLDER` in `libphonenumber-metadata-generator`. 18561 var DIGIT_PLACEHOLDER = 'x'; // '\u2008' (punctuation space) 18562 18563 var DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER); // Counts all occurences of a symbol in a string. 18564 // Unicode-unsafe (because using `.split()`). 18565 18566 function countOccurences(symbol, string) { 18567 var count = 0; // Using `.split('')` to iterate through a string here 18568 // to avoid requiring `Symbol.iterator` polyfill. 18569 // `.split('')` is generally not safe for Unicode, 18570 // but in this particular case for counting brackets it is safe. 18571 // for (const character of string) 18572 18573 for ( 18574 var _iterator = 18575 AsYouTypeFormatter_util_createForOfIteratorHelperLoose(
vendor: 6,565 bytes, lines 18576-18754
18576 string.split('') 18577 ), 18578 _step; 18579 !(_step = _iterator()).done; 18580 18581 ) { 18582 var character = _step.value; 18583 18584 if (character === symbol) { 18585 count++; 18586 } 18587 } 18588 18589 return count; 18590 } // Repeats a string (or a symbol) N times. 18591 // http://stackoverflow.com/questions/202605/repeat-string-javascript 18592 18593 function repeat(string, times) { 18594 if (times < 1) { 18595 return ''; 18596 } 18597 18598 var result = ''; 18599 18600 while (times > 1) { 18601 if (times & 1) { 18602 result += string; 18603 } 18604 18605 times >>= 1; 18606 string += string; 18607 } 18608 18609 return result + string; 18610 } 18611 function cutAndStripNonPairedParens(string, cutBeforeIndex) { 18612 if (string[cutBeforeIndex] === ')') { 18613 cutBeforeIndex++; 18614 } 18615 18616 return stripNonPairedParens(string.slice(0, cutBeforeIndex)); 18617 } 18618 function closeNonPairedParens(template, cut_before) { 18619 var retained_template = template.slice(0, cut_before); 18620 var opening_braces = countOccurences('(', retained_template); 18621 var closing_braces = countOccurences(')', retained_template); 18622 var dangling_braces = opening_braces - closing_braces; 18623 18624 while (dangling_braces > 0 && cut_before < template.length) { 18625 if (template[cut_before] === ')') { 18626 dangling_braces--; 18627 } 18628 18629 cut_before++; 18630 } 18631 18632 return template.slice(0, cut_before); 18633 } 18634 function stripNonPairedParens(string) { 18635 var dangling_braces = []; 18636 var i = 0; 18637 18638 while (i < string.length) { 18639 if (string[i] === '(') { 18640 dangling_braces.push(i); 18641 } else if (string[i] === ')') { 18642 dangling_braces.pop(); 18643 } 18644 18645 i++; 18646 } 18647 18648 var start = 0; 18649 var cleared_string = ''; 18650 dangling_braces.push(string.length); 18651 18652 for ( 18653 var _i = 0, _dangling_braces = dangling_braces; 18654 _i < _dangling_braces.length; 18655 _i++ 18656 ) { 18657 var index = _dangling_braces[_i]; 18658 cleared_string += string.slice(start, index); 18659 start = index + 1; 18660 } 18661 18662 return cleared_string; 18663 } 18664 function populateTemplateWithDigits(template, position, digits) { 18665 // Using `.split('')` to iterate through a string here 18666 // to avoid requiring `Symbol.iterator` polyfill. 18667 // `.split('')` is generally not safe for Unicode, 18668 // but in this particular case for `digits` it is safe. 18669 // for (const digit of digits) 18670 for ( 18671 var _iterator2 = 18672 AsYouTypeFormatter_util_createForOfIteratorHelperLoose( 18673 digits.split('') 18674 ), 18675 _step2; 18676 !(_step2 = _iterator2()).done; 18677 18678 ) { 18679 var digit = _step2.value; 18680 18681 // If there is room for more digits in current `template`, 18682 // then set the next digit in the `template`, 18683 // and return the formatted digits so far. 18684 // If more digits are entered than the current format could handle. 18685 if ( 18686 template.slice(position + 1).search(DIGIT_PLACEHOLDER_MATCHER) < 18687 0 18688 ) { 18689 return; 18690 } 18691 18692 position = template.search(DIGIT_PLACEHOLDER_MATCHER); 18693 template = template.replace(DIGIT_PLACEHOLDER_MATCHER, digit); 18694 } 18695 18696 return [template, position]; 18697 } 18698 //# sourceMappingURL=AsYouTypeFormatter.util.js.map 18699 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js 18700 18701 function formatCompleteNumber(state, format, _ref) { 18702 var metadata = _ref.metadata, 18703 shouldTryNationalPrefixFormattingRule = 18704 _ref.shouldTryNationalPrefixFormattingRule, 18705 getSeparatorAfterNationalPrefix = 18706 _ref.getSeparatorAfterNationalPrefix; 18707 var matcher = new RegExp('^(?:'.concat(format.pattern(), ')$')); 18708 18709 if (matcher.test(state.nationalSignificantNumber)) { 18710 return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule( 18711 state, 18712 format, 18713 { 18714 metadata: metadata, 18715 shouldTryNationalPrefixFormattingRule: 18716 shouldTryNationalPrefixFormattingRule, 18717 getSeparatorAfterNationalPrefix: 18718 getSeparatorAfterNationalPrefix, 18719 } 18720 ); 18721 } 18722 } 18723 function canFormatCompleteNumber( 18724 nationalSignificantNumber, 18725 metadata 18726 ) { 18727 return ( 18728 checkNumberLength(nationalSignificantNumber, metadata) === 18729 'IS_POSSIBLE' 18730 ); 18731 } 18732 18733 function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule( 18734 state, 18735 format, 18736 _ref2 18737 ) { 18738 var metadata = _ref2.metadata, 18739 shouldTryNationalPrefixFormattingRule = 18740 _ref2.shouldTryNationalPrefixFormattingRule, 18741 getSeparatorAfterNationalPrefix = 18742 _ref2.getSeparatorAfterNationalPrefix; 18743 // `format` has already been checked for `nationalPrefix` requirement. 18744 var nationalSignificantNumber = state.nationalSignificantNumber, 18745 international = state.international, 18746 nationalPrefix = state.nationalPrefix, 18747 carrierCode = state.carrierCode; // Format the number with using `national_prefix_formatting_rule`. 18748 // If the resulting formatted number is a valid formatted number, then return it. 18749 // 18750 // Google's AsYouType formatter is different in a way that it doesn't try 18751 // to format using the "national prefix formatting rule", and instead it 18752 // simply prepends a national prefix followed by a " " character. 18753 // This code does that too, but as a fallback. 18754 // The reason is that "national prefix formatting rule" may use parentheses,
18755 // which wouldn't be included has it used the simpler Google's way. 18756 // 18757 18758 if (shouldTryNationalPrefixFormattingRule(format)) { 18759 var formattedNumber = 18760 AsYouTypeFormatter_complete_formatNationalNumber( 18761 state, 18762 format, 18763 { 18764 useNationalPrefixFormattingRule: true, 18765 getSeparatorAfterNationalPrefix: 18766 getSeparatorAfterNationalPrefix, 18767 metadata: metadata, 18768 } 18769 ); 18770 18771 if (formattedNumber) { 18772 return formattedNumber; 18773 } 18774 } // Format the number without using `national_prefix_formatting_rule`. 18775 18776 return AsYouTypeFormatter_complete_formatNationalNumber( 18777 state, 18778 format, 18779 { 18780 useNationalPrefixFormattingRule: false, 18781 getSeparatorAfterNationalPrefix: 18782 getSeparatorAfterNationalPrefix, 18783 metadata: metadata, 18784 } 18785 ); 18786 } 18787 18788 function AsYouTypeFormatter_complete_formatNationalNumber( 18789 state, 18790 format, 18791 _ref3 18792 ) { 18793 var metadata = _ref3.metadata, 18794 useNationalPrefixFormattingRule = 18795 _ref3.useNationalPrefixFormattingRule, 18796 getSeparatorAfterNationalPrefix = 18797 _ref3.getSeparatorAfterNationalPrefix; 18798 var formattedNationalNumber = formatNationalNumberUsingFormat( 18799 state.nationalSignificantNumber, 18800 format, 18801 { 18802 carrierCode: state.carrierCode, 18803 useInternationalFormat: state.international, 18804 withNationalPrefix: useNationalPrefixFormattingRule, 18805 metadata: metadata, 18806 } 18807 ); 18808 18809 if (!useNationalPrefixFormattingRule) { 18810 if (state.nationalPrefix) { 18811 // If a national prefix was extracted, then just prepend it, 18812 // followed by a " " character. 18813 formattedNationalNumber = 18814 state.nationalPrefix + 18815 getSeparatorAfterNationalPrefix(format) + 18816 formattedNationalNumber; 18817 } else if (state.complexPrefixBeforeNationalSignificantNumber) { 18818 formattedNationalNumber = 18819 state.complexPrefixBeforeNationalSignificantNumber + 18820 ' ' + 18821 formattedNationalNumber; 18822 } 18823 } 18824 18825 if ( 18826 isValidFormattedNationalNumber(formattedNationalNumber, state) 18827 ) { 18828 return formattedNationalNumber; 18829 } 18830 } // Check that the formatted phone number contains exactly 18831 // the same digits that have been input by the user. 18832 // For example, when "0111523456789" is input for `AR` country, 18833 // the extracted `this.nationalSignificantNumber` is "91123456789", 18834 // which means that the national part of `this.digits` isn't simply equal to 18835 // `this.nationalPrefix` + `this.nationalSignificantNumber`. 18836 // 18837 // Also, a `format` can add extra digits to the `this.nationalSignificantNumber` 18838 // being formatted via `metadata[country].national_prefix_transform_rule`. 18839 // For example, for `VI` country, it prepends `340` to the national number, 18840 // and if this check hasn't been implemented, then there would be a bug 18841 // when `340` "area coude" is "duplicated" during input for `VI` country: 18842 // https://github.com/catamphetamine/libphonenumber-js/issues/318 18843 // 18844 // So, all these "gotchas" are filtered out. 18845 // 18846 // In the original Google's code, the comments say: 18847 // "Check that we didn't remove nor add any extra digits when we matched 18848 // this formatting pattern. This usually happens after we entered the last 18849 // digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when 18850 // formatted but AYTF should retain all the number entered and not change 18851 // in order to match a format (of same leading digits and length) display 18852 // in that way." 18853 // "If it's the same (i.e entered number and format is same), then it's 18854 // safe to return this in formatted number as nothing is lost / added." 18855 // Otherwise, don't use this format. 18856 // https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5 18857 // https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b 18858 // 18859 18860 function isValidFormattedNationalNumber( 18861 formattedNationalNumber, 18862 state 18863 ) { 18864 return ( 18865 parseDigits(formattedNationalNumber) === state.getNationalDigits() 18866 ); 18867 } 18868 //# sourceMappingURL=AsYouTypeFormatter.complete.js.map 18869 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js 18870 function AsYouTypeFormatter_PatternParser_classCallCheck( 18871 instance, 18872 Constructor 18873 ) { 18874 if (!(instance instanceof Constructor)) { 18875 throw new TypeError('Cannot call a class as a function'); 18876 } 18877 } 18878 18879 function AsYouTypeFormatter_PatternParser_defineProperties( 18880 target, 18881 props 18882 ) { 18883 for (var i = 0; i < props.length; i++) { 18884 var descriptor = props[i]; 18885 descriptor.enumerable = descriptor.enumerable || false; 18886 descriptor.configurable = true; 18887 if ('value' in descriptor) descriptor.writable = true; 18888 Object.defineProperty(target, descriptor.key, descriptor); 18889 } 18890 } 18891 18892 function AsYouTypeFormatter_PatternParser_createClass( 18893 Constructor, 18894 protoProps, 18895 staticProps 18896 ) { 18897 if (protoProps) 18898 AsYouTypeFormatter_PatternParser_defineProperties( 18899 Constructor.prototype, 18900 protoProps 18901 ); 18902 if (staticProps) 18903 AsYouTypeFormatter_PatternParser_defineProperties( 18904 Constructor, 18905 staticProps 18906 ); 18907 Object.defineProperty(Constructor, 'prototype', { 18908 writable: false, 18909 }); 18910 return Constructor; 18911 } 18912 18913 var PatternParser = /*#__PURE__*/ (function () { 18914 function PatternParser() { 18915 AsYouTypeFormatter_PatternParser_classCallCheck( 18916 this, 18917 PatternParser 18918 ); 18919 } 18920 18921 AsYouTypeFormatter_PatternParser_createClass(PatternParser, [ 18922 { 18923 key: 'parse', 18924 value: function parse(pattern) { 18925 this.context = [ 18926 { 18927 or: true, 18928 instructions: [], 18929 }, 18930 ]; 18931 this.parsePattern(pattern); 18932 18933 if (this.context.length !== 1) { 18934 throw new Error(
vendor: 15,507 bytes, lines 18935-19370
18935 'Non-finalized contexts left when pattern parse ended' 18936 ); 18937 } 18938 18939 var _this$context$ = this.context[0], 18940 branches = _this$context$.branches, 18941 instructions = _this$context$.instructions; 18942 18943 if (branches) { 18944 return { 18945 op: '|', 18946 args: branches.concat([ 18947 expandSingleElementArray(instructions), 18948 ]), 18949 }; 18950 } 18951 /* istanbul ignore if */ 18952 18953 if (instructions.length === 0) { 18954 throw new Error('Pattern is required'); 18955 } 18956 18957 if (instructions.length === 1) { 18958 return instructions[0]; 18959 } 18960 18961 return instructions; 18962 }, 18963 }, 18964 { 18965 key: 'startContext', 18966 value: function startContext(context) { 18967 this.context.push(context); 18968 }, 18969 }, 18970 { 18971 key: 'endContext', 18972 value: function endContext() { 18973 this.context.pop(); 18974 }, 18975 }, 18976 { 18977 key: 'getContext', 18978 value: function getContext() { 18979 return this.context[this.context.length - 1]; 18980 }, 18981 }, 18982 { 18983 key: 'parsePattern', 18984 value: function parsePattern(pattern) { 18985 if (!pattern) { 18986 throw new Error('Pattern is required'); 18987 } 18988 18989 var match = pattern.match(OPERATOR); 18990 18991 if (!match) { 18992 if (ILLEGAL_CHARACTER_REGEXP.test(pattern)) { 18993 throw new Error( 18994 'Illegal characters found in a pattern: '.concat( 18995 pattern 18996 ) 18997 ); 18998 } 18999 19000 this.getContext().instructions = 19001 this.getContext().instructions.concat(pattern.split('')); 19002 return; 19003 } 19004 19005 var operator = match[1]; 19006 var before = pattern.slice(0, match.index); 19007 var rightPart = pattern.slice(match.index + operator.length); 19008 19009 switch (operator) { 19010 case '(?:': 19011 if (before) { 19012 this.parsePattern(before); 19013 } 19014 19015 this.startContext({ 19016 or: true, 19017 instructions: [], 19018 branches: [], 19019 }); 19020 break; 19021 19022 case ')': 19023 if (!this.getContext().or) { 19024 throw new Error( 19025 '")" operator must be preceded by "(?:" operator' 19026 ); 19027 } 19028 19029 if (before) { 19030 this.parsePattern(before); 19031 } 19032 19033 if (this.getContext().instructions.length === 0) { 19034 throw new Error( 19035 'No instructions found after "|" operator in an "or" group' 19036 ); 19037 } 19038 19039 var _this$getContext = this.getContext(), 19040 branches = _this$getContext.branches; 19041 19042 branches.push( 19043 expandSingleElementArray(this.getContext().instructions) 19044 ); 19045 this.endContext(); 19046 this.getContext().instructions.push({ 19047 op: '|', 19048 args: branches, 19049 }); 19050 break; 19051 19052 case '|': 19053 if (!this.getContext().or) { 19054 throw new Error( 19055 '"|" operator can only be used inside "or" groups' 19056 ); 19057 } 19058 19059 if (before) { 19060 this.parsePattern(before); 19061 } // The top-level is an implicit "or" group, if required. 19062 19063 if (!this.getContext().branches) { 19064 // `branches` are not defined only for the root implicit "or" operator. 19065 19066 /* istanbul ignore else */ 19067 if (this.context.length === 1) { 19068 this.getContext().branches = []; 19069 } else { 19070 throw new Error( 19071 '"branches" not found in an "or" group context' 19072 ); 19073 } 19074 } 19075 19076 this.getContext().branches.push( 19077 expandSingleElementArray(this.getContext().instructions) 19078 ); 19079 this.getContext().instructions = []; 19080 break; 19081 19082 case '[': 19083 if (before) { 19084 this.parsePattern(before); 19085 } 19086 19087 this.startContext({ 19088 oneOfSet: true, 19089 }); 19090 break; 19091 19092 case ']': 19093 if (!this.getContext().oneOfSet) { 19094 throw new Error( 19095 '"]" operator must be preceded by "[" operator' 19096 ); 19097 } 19098 19099 this.endContext(); 19100 this.getContext().instructions.push({ 19101 op: '[]', 19102 args: parseOneOfSet(before), 19103 }); 19104 break; 19105 19106 /* istanbul ignore next */ 19107 19108 default: 19109 throw new Error('Unknown operator: '.concat(operator)); 19110 } 19111 19112 if (rightPart) { 19113 this.parsePattern(rightPart); 19114 } 19115 }, 19116 }, 19117 ]); 19118 19119 return PatternParser; 19120 })(); 19121 19122 function parseOneOfSet(pattern) { 19123 var values = []; 19124 var i = 0; 19125 19126 while (i < pattern.length) { 19127 if (pattern[i] === '-') { 19128 if (i === 0 || i === pattern.length - 1) { 19129 throw new Error( 19130 "Couldn't parse a one-of set pattern: ".concat(pattern) 19131 ); 19132 } 19133 19134 var prevValue = pattern[i - 1].charCodeAt(0) + 1; 19135 var nextValue = pattern[i + 1].charCodeAt(0) - 1; 19136 var value = prevValue; 19137 19138 while (value <= nextValue) { 19139 values.push(String.fromCharCode(value)); 19140 value++; 19141 } 19142 } else { 19143 values.push(pattern[i]); 19144 } 19145 19146 i++; 19147 } 19148 19149 return values; 19150 } 19151 19152 var ILLEGAL_CHARACTER_REGEXP = /[\(\)\[\]\?\:\|]/; 19153 var OPERATOR = new RegExp( // any of: 19154 '(' + // or operator 19155 '\\|' + // or 19156 '|' + // or group start 19157 '\\(\\?\\:' + // or 19158 '|' + // or group end 19159 '\\)' + // or 19160 '|' + // one-of set start 19161 '\\[' + // or 19162 '|' + // one-of set end 19163 '\\]' + 19164 ')' 19165 ); 19166 19167 function expandSingleElementArray(array) { 19168 if (array.length === 1) { 19169 return array[0]; 19170 } 19171 19172 return array; 19173 } 19174 //# sourceMappingURL=AsYouTypeFormatter.PatternParser.js.map 19175 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js 19176 function AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose( 19177 o, 19178 allowArrayLike 19179 ) { 19180 var it = 19181 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 19182 o['@@iterator']; 19183 if (it) return (it = it.call(o)).next.bind(it); 19184 if ( 19185 Array.isArray(o) || 19186 (it = 19187 AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray( 19188 o 19189 )) || 19190 (allowArrayLike && o && typeof o.length === 'number') 19191 ) { 19192 if (it) o = it; 19193 var i = 0; 19194 return function () { 19195 if (i >= o.length) return { done: true }; 19196 return { done: false, value: o[i++] }; 19197 }; 19198 } 19199 throw new TypeError( 19200 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 19201 ); 19202 } 19203 19204 function AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray( 19205 o, 19206 minLen 19207 ) { 19208 if (!o) return; 19209 if (typeof o === 'string') 19210 return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray( 19211 o, 19212 minLen 19213 ); 19214 var n = Object.prototype.toString.call(o).slice(8, -1); 19215 if (n === 'Object' && o.constructor) n = o.constructor.name; 19216 if (n === 'Map' || n === 'Set') return Array.from(o); 19217 if ( 19218 n === 'Arguments' || 19219 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 19220 ) 19221 return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray( 19222 o, 19223 minLen 19224 ); 19225 } 19226 19227 function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray( 19228 arr, 19229 len 19230 ) { 19231 if (len == null || len > arr.length) len = arr.length; 19232 for (var i = 0, arr2 = new Array(len); i < len; i++) { 19233 arr2[i] = arr[i]; 19234 } 19235 return arr2; 19236 } 19237 19238 function AsYouTypeFormatter_PatternMatcher_classCallCheck( 19239 instance, 19240 Constructor 19241 ) { 19242 if (!(instance instanceof Constructor)) { 19243 throw new TypeError('Cannot call a class as a function'); 19244 } 19245 } 19246 19247 function AsYouTypeFormatter_PatternMatcher_defineProperties( 19248 target, 19249 props 19250 ) { 19251 for (var i = 0; i < props.length; i++) { 19252 var descriptor = props[i]; 19253 descriptor.enumerable = descriptor.enumerable || false; 19254 descriptor.configurable = true; 19255 if ('value' in descriptor) descriptor.writable = true; 19256 Object.defineProperty(target, descriptor.key, descriptor); 19257 } 19258 } 19259 19260 function AsYouTypeFormatter_PatternMatcher_createClass( 19261 Constructor, 19262 protoProps, 19263 staticProps 19264 ) { 19265 if (protoProps) 19266 AsYouTypeFormatter_PatternMatcher_defineProperties( 19267 Constructor.prototype, 19268 protoProps 19269 ); 19270 if (staticProps) 19271 AsYouTypeFormatter_PatternMatcher_defineProperties( 19272 Constructor, 19273 staticProps 19274 ); 19275 Object.defineProperty(Constructor, 'prototype', { 19276 writable: false, 19277 }); 19278 return Constructor; 19279 } 19280 19281 var AsYouTypeFormatter_PatternMatcher_PatternMatcher = 19282 /*#__PURE__*/ (function () { 19283 function PatternMatcher(pattern) { 19284 AsYouTypeFormatter_PatternMatcher_classCallCheck( 19285 this, 19286 PatternMatcher 19287 ); 19288 19289 this.matchTree = new PatternParser().parse(pattern); 19290 } 19291 19292 AsYouTypeFormatter_PatternMatcher_createClass(PatternMatcher, [ 19293 { 19294 key: 'match', 19295 value: function match(string) { 19296 var _ref = 19297 arguments.length > 1 && arguments[1] !== undefined 19298 ? arguments[1] 19299 : {}, 19300 allowOverflow = _ref.allowOverflow; 19301 19302 if (!string) { 19303 throw new Error('String is required'); 19304 } 19305 19306 var result = _match(string.split(''), this.matchTree, true); 19307 19308 if (result && result.match) { 19309 delete result.matchedChars; 19310 } 19311 19312 if (result && result.overflow) { 19313 if (!allowOverflow) { 19314 return; 19315 } 19316 } 19317 19318 return result; 19319 }, 19320 }, 19321 ]); 19322 19323 return PatternMatcher; 19324 })(); 19325 /** 19326 * Matches `characters` against a pattern compiled into a `tree`. 19327 * @param {string[]} characters 19328 * @param {Tree} tree â A pattern compiled into a `tree`. See the `*.d.ts` file for the description of the `tree` structure. 19329 * @param {boolean} last â Whether it's the last (rightmost) subtree on its level of the match tree. 19330 * @return {object} See the `*.d.ts` file for the description of the result object. 19331 */ 19332 19333 function _match(characters, tree, last) { 19334 // If `tree` is a string, then `tree` is a single character. 19335 // That's because when a pattern is parsed, multi-character-string parts 19336 // of a pattern are compiled into arrays of single characters. 19337 // I still wrote this piece of code for a "general" hypothetical case 19338 // when `tree` could be a string of several characters, even though 19339 // such case is not possible with the current implementation. 19340 if (typeof tree === 'string') { 19341 var characterString = characters.join(''); 19342 19343 if (tree.indexOf(characterString) === 0) { 19344 // `tree` is always a single character. 19345 // If `tree.indexOf(characterString) === 0` 19346 // then `characters.length === tree.length`. 19347 19348 /* istanbul ignore else */ 19349 if (characters.length === tree.length) { 19350 return { 19351 match: true, 19352 matchedChars: characters, 19353 }; 19354 } // `tree` is always a single character. 19355 // If `tree.indexOf(characterString) === 0` 19356 // then `characters.length === tree.length`. 19357 19358 /* istanbul ignore next */ 19359 19360 return { 19361 partialMatch: true, // matchedChars: characters 19362 }; 19363 } 19364 19365 if (characterString.indexOf(tree) === 0) { 19366 if (last) { 19367 // The `else` path is not possible because `tree` is always a single character. 19368 // The `else` case for `characters.length > tree.length` would be 19369 // `characters.length <= tree.length` which means `characters.length <= 1`. 19370 // `characters` array can't be empty, so that means `characters === [tree]`,
19371 // which would also mean `tree.indexOf(characterString) === 0` and that'd mean 19372 // that the `if (tree.indexOf(characterString) === 0)` condition before this 19373 // `if` condition would be entered, and returned from there, not reaching this code. 19374 19375 /* istanbul ignore else */ 19376 if (characters.length > tree.length) { 19377 return { 19378 overflow: true, 19379 }; 19380 } 19381 } 19382 19383 return { 19384 match: true, 19385 matchedChars: characters.slice(0, tree.length), 19386 }; 19387 } 19388 19389 return; 19390 } 19391 19392 if (Array.isArray(tree)) { 19393 var restCharacters = characters.slice(); 19394 var i = 0; 19395 19396 while (i < tree.length) { 19397 var subtree = tree[i]; 19398 19399 var result = _match( 19400 restCharacters, 19401 subtree, 19402 last && i === tree.length - 1 19403 ); 19404 19405 if (!result) { 19406 return; 19407 } else if (result.overflow) { 19408 return result; 19409 } else if (result.match) { 19410 // Continue with the next subtree with the rest of the characters. 19411 restCharacters = restCharacters.slice( 19412 result.matchedChars.length 19413 ); 19414 19415 if (restCharacters.length === 0) { 19416 if (i === tree.length - 1) { 19417 return { 19418 match: true, 19419 matchedChars: characters, 19420 }; 19421 } else { 19422 return { 19423 partialMatch: true, // matchedChars: characters 19424 }; 19425 } 19426 } 19427 } else { 19428 /* istanbul ignore else */ 19429 if (result.partialMatch) { 19430 return { 19431 partialMatch: true, // matchedChars: characters 19432 }; 19433 } else { 19434 throw new Error( 19435 'Unsupported match result:\n'.concat( 19436 JSON.stringify(result, null, 2) 19437 ) 19438 ); 19439 } 19440 } 19441 19442 i++; 19443 } // If `last` then overflow has already been checked 19444 // by the last element of the `tree` array. 19445 19446 /* istanbul ignore if */ 19447 19448 if (last) { 19449 return { 19450 overflow: true, 19451 }; 19452 } 19453 19454 return { 19455 match: true, 19456 matchedChars: characters.slice( 19457 0, 19458 characters.length - restCharacters.length 19459 ), 19460 }; 19461 } 19462 19463 switch (tree.op) { 19464 case '|': 19465 var partialMatch; 19466 19467 for ( 19468 var _iterator = 19469 AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose( 19470 tree.args 19471 ), 19472 _step; 19473 !(_step = _iterator()).done; 19474 19475 ) { 19476 var branch = _step.value; 19477 19478 var _result = _match(characters, branch, last); 19479 19480 if (_result) { 19481 if (_result.overflow) { 19482 return _result; 19483 } else if (_result.match) { 19484 return { 19485 match: true, 19486 matchedChars: _result.matchedChars, 19487 }; 19488 } else { 19489 /* istanbul ignore else */ 19490 if (_result.partialMatch) { 19491 partialMatch = true; 19492 } else { 19493 throw new Error( 19494 'Unsupported match result:\n'.concat( 19495 JSON.stringify(_result, null, 2) 19496 ) 19497 ); 19498 } 19499 } 19500 } 19501 } 19502 19503 if (partialMatch) { 19504 return { 19505 partialMatch: true, // matchedChars: ... 19506 }; 19507 } // Not even a partial match. 19508 19509 return; 19510 19511 case '[]': 19512 for ( 19513 var _iterator2 = 19514 AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose( 19515 tree.args 19516 ), 19517 _step2; 19518 !(_step2 = _iterator2()).done; 19519 19520 ) { 19521 var _char = _step2.value; 19522 19523 if (characters[0] === _char) { 19524 if (characters.length === 1) { 19525 return { 19526 match: true, 19527 matchedChars: characters, 19528 }; 19529 } 19530 19531 if (last) { 19532 return { 19533 overflow: true, 19534 }; 19535 } 19536 19537 return { 19538 match: true, 19539 matchedChars: [_char], 19540 }; 19541 } 19542 } // No character matches. 19543 19544 return; 19545 19546 /* istanbul ignore next */ 19547 19548 default: 19549 throw new Error('Unsupported instruction tree: '.concat(tree)); 19550 } 19551 } 19552 //# sourceMappingURL=AsYouTypeFormatter.PatternMatcher.js.map 19553 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js 19554 function AsYouTypeFormatter_createForOfIteratorHelperLoose( 19555 o, 19556 allowArrayLike 19557 ) { 19558 var it = 19559 (typeof Symbol !== 'undefined' && o[Symbol.iterator]) || 19560 o['@@iterator']; 19561 if (it) return (it = it.call(o)).next.bind(it); 19562 if ( 19563 Array.isArray(o) || 19564 (it = AsYouTypeFormatter_unsupportedIterableToArray(o)) || 19565 (allowArrayLike && o && typeof o.length === 'number') 19566 ) { 19567 if (it) o = it; 19568 var i = 0; 19569 return function () { 19570 if (i >= o.length) return { done: true }; 19571 return { done: false, value: o[i++] }; 19572 }; 19573 } 19574 throw new TypeError( 19575 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 19576 ); 19577 } 19578 19579 function AsYouTypeFormatter_unsupportedIterableToArray(o, minLen) { 19580 if (!o) return; 19581 if (typeof o === 'string') 19582 return AsYouTypeFormatter_arrayLikeToArray(o, minLen); 19583 var n = Object.prototype.toString.call(o).slice(8, -1); 19584 if (n === 'Object' && o.constructor) n = o.constructor.name; 19585 if (n === 'Map' || n === 'Set') return Array.from(o); 19586 if ( 19587 n === 'Arguments' || 19588 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 19589 ) 19590 return AsYouTypeFormatter_arrayLikeToArray(o, minLen); 19591 } 19592 19593 function AsYouTypeFormatter_arrayLikeToArray(arr, len) { 19594 if (len == null || len > arr.length) len = arr.length; 19595 for (var i = 0, arr2 = new Array(len); i < len; i++) { 19596 arr2[i] = arr[i]; 19597 } 19598 return arr2; 19599 } 19600 19601 function AsYouTypeFormatter_classCallCheck(instance, Constructor) { 19602 if (!(instance instanceof Constructor)) { 19603 throw new TypeError('Cannot call a class as a function'); 19604 } 19605 } 19606 19607 function AsYouTypeFormatter_defineProperties(target, props) { 19608 for (var i = 0; i < props.length; i++) { 19609 var descriptor = props[i]; 19610 descriptor.enumerable = descriptor.enumerable || false; 19611 descriptor.configurable = true; 19612 if ('value' in descriptor) descriptor.writable = true; 19613 Object.defineProperty(target, descriptor.key, descriptor); 19614 } 19615 } 19616 19617 function AsYouTypeFormatter_createClass( 19618 Constructor, 19619 protoProps, 19620 staticProps 19621 ) { 19622 if (protoProps) 19623 AsYouTypeFormatter_defineProperties( 19624 Constructor.prototype, 19625 protoProps 19626 ); 19627 if (staticProps) 19628 AsYouTypeFormatter_defineProperties(Constructor, staticProps); 19629 Object.defineProperty(Constructor, 'prototype', { 19630 writable: false, 19631 }); 19632 return Constructor; 19633 } 19634 19635 // Used in phone number format template creation. 19636 // Could be any digit, I guess. 19637 19638 var DUMMY_DIGIT = '9';
vendor: 9,455 bytes, lines 19638-19828
19638 // I don't know why is it exactly `15` 19639 19640 var LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15; // Create a phone number consisting only of the digit 9 that matches the 19641 // `number_pattern` by applying the pattern to the "longest phone number" string. 19642 19643 var LONGEST_DUMMY_PHONE_NUMBER = repeat( 19644 DUMMY_DIGIT, 19645 LONGEST_NATIONAL_PHONE_NUMBER_LENGTH 19646 ); // A set of characters that, if found in a national prefix formatting rules, are an indicator to 19647 // us that we should separate the national prefix from the number when formatting. 19648 19649 var NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/; // Deprecated: Google has removed some formatting pattern related code from their repo. 19650 // https://github.com/googlei18n/libphonenumber/commit/a395b4fef3caf57c4bc5f082e1152a4d2bd0ba4c 19651 // "We no longer have numbers in formatting matching patterns, only \d." 19652 // Because this library supports generating custom metadata 19653 // some users may still be using old metadata so the relevant 19654 // code seems to stay until some next major version update. 19655 19656 var SUPPORT_LEGACY_FORMATTING_PATTERNS = true; // A pattern that is used to match character classes in regular expressions. 19657 // An example of a character class is "[1-4]". 19658 19659 var CREATE_CHARACTER_CLASS_PATTERN = 19660 SUPPORT_LEGACY_FORMATTING_PATTERNS && 19661 function () { 19662 return /\[([^\[\]])*\]/g; 19663 }; // Any digit in a regular expression that actually denotes a digit. For 19664 // example, in the regular expression "80[0-2]\d{6,10}", the first 2 digits 19665 // (8 and 0) are standalone digits, but the rest are not. 19666 // Two look-aheads are needed because the number following \\d could be a 19667 // two-digit number, since the phone number can be as long as 15 digits. 19668 19669 var CREATE_STANDALONE_DIGIT_PATTERN = 19670 SUPPORT_LEGACY_FORMATTING_PATTERNS && 19671 function () { 19672 return /\d(?=[^,}][^,}])/g; 19673 }; // A regular expression that is used to determine if a `format` is 19674 // suitable to be used in the "as you type formatter". 19675 // A `format` is suitable when the resulting formatted number has 19676 // the same digits as the user has entered. 19677 // 19678 // In the simplest case, that would mean that the format 19679 // doesn't add any additional digits when formatting a number. 19680 // Google says that it also shouldn't add "star" (`*`) characters, 19681 // like it does in some Israeli formats. 19682 // Such basic format would only contain "valid punctuation" 19683 // and "captured group" identifiers ($1, $2, etc). 19684 // 19685 // An example of a format that adds additional digits: 19686 // 19687 // Country: `AR` (Argentina). 19688 // Format: 19689 // { 19690 // "pattern": "(\\d)(\\d{2})(\\d{4})(\\d{4})", 19691 // "leading_digits_patterns": ["91"], 19692 // "national_prefix_formatting_rule": "0$1", 19693 // "format": "$2 15-$3-$4", 19694 // "international_format": "$1 $2 $3-$4" 19695 // } 19696 // 19697 // In the format above, the `format` adds `15` to the digits when formatting a number. 19698 // A sidenote: this format actually is suitable because `national_prefix_for_parsing` 19699 // has previously removed `15` from a national number, so re-adding `15` in `format` 19700 // doesn't actually result in any extra digits added to user's input. 19701 // But verifying that would be a complex procedure, so the code chooses a simpler path: 19702 // it simply filters out all `format`s that contain anything but "captured group" ids. 19703 // 19704 // This regular expression is called `ELIGIBLE_FORMAT_PATTERN` in Google's 19705 // `libphonenumber` code. 19706 // 19707 19708 var NON_ALTERING_FORMAT_REG_EXP = new RegExp( 19709 '[' + 19710 VALID_PUNCTUATION + 19711 ']*' + // Google developers say: 19712 // "We require that the first matching group is present in the 19713 // output pattern to ensure no data is lost while formatting." 19714 '\\$1' + 19715 '[' + 19716 VALID_PUNCTUATION + 19717 ']*' + 19718 '(\\$\\d[' + 19719 VALID_PUNCTUATION + 19720 ']*)*' + 19721 '$' 19722 ); // This is the minimum length of the leading digits of a phone number 19723 // to guarantee the first "leading digits pattern" for a phone number format 19724 // to be preemptive. 19725 19726 var MIN_LEADING_DIGITS_LENGTH = 3; 19727 19728 var AsYouTypeFormatter_AsYouTypeFormatter = 19729 /*#__PURE__*/ (function () { 19730 function AsYouTypeFormatter(_ref) { 19731 var state = _ref.state, 19732 metadata = _ref.metadata; 19733 19734 AsYouTypeFormatter_classCallCheck(this, AsYouTypeFormatter); 19735 19736 this.metadata = metadata; 19737 this.resetFormat(); 19738 } 19739 19740 AsYouTypeFormatter_createClass(AsYouTypeFormatter, [ 19741 { 19742 key: 'resetFormat', 19743 value: function resetFormat() { 19744 this.chosenFormat = undefined; 19745 this.template = undefined; 19746 this.nationalNumberTemplate = undefined; 19747 this.populatedNationalNumberTemplate = undefined; 19748 this.populatedNationalNumberTemplatePosition = -1; 19749 }, 19750 }, 19751 { 19752 key: 'reset', 19753 value: function reset(numberingPlan, state) { 19754 this.resetFormat(); 19755 19756 if (numberingPlan) { 19757 this.isNANP = numberingPlan.callingCode() === '1'; 19758 this.matchingFormats = numberingPlan.formats(); 19759 19760 if (state.nationalSignificantNumber) { 19761 this.narrowDownMatchingFormats(state); 19762 } 19763 } else { 19764 this.isNANP = undefined; 19765 this.matchingFormats = []; 19766 } 19767 }, 19768 /** 19769 * Formats an updated phone number. 19770 * @param {string} nextDigits â Additional phone number digits. 19771 * @param {object} state â `AsYouType` state. 19772 * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats. 19773 */ 19774 }, 19775 { 19776 key: 'format', 19777 value: function format(nextDigits, state) { 19778 var _this = this; 19779 19780 // See if the phone number digits can be formatted as a complete phone number. 19781 // If not, use the results from `formatNationalNumberWithNextDigits()`, 19782 // which formats based on the chosen formatting pattern. 19783 // 19784 // Attempting to format complete phone number first is how it's done 19785 // in Google's `libphonenumber`, so this library just follows it. 19786 // Google's `libphonenumber` code doesn't explain in detail why does it 19787 // attempt to format digits as a complete phone number 19788 // instead of just going with a previoulsy (or newly) chosen `format`: 19789 // 19790 // "Checks to see if there is an exact pattern match for these digits. 19791 // If so, we should use this instead of any other formatting template 19792 // whose leadingDigitsPattern also matches the input." 19793 // 19794 if ( 19795 canFormatCompleteNumber( 19796 state.nationalSignificantNumber, 19797 this.metadata 19798 ) 19799 ) { 19800 for ( 19801 var _iterator = 19802 AsYouTypeFormatter_createForOfIteratorHelperLoose( 19803 this.matchingFormats 19804 ), 19805 _step; 19806 !(_step = _iterator()).done; 19807 19808 ) { 19809 var format = _step.value; 19810 var formattedCompleteNumber = formatCompleteNumber( 19811 state, 19812 format, 19813 { 19814 metadata: this.metadata, 19815 shouldTryNationalPrefixFormattingRule: 19816 function shouldTryNationalPrefixFormattingRule( 19817 format 19818 ) { 19819 return _this.shouldTryNationalPrefixFormattingRule( 19820 format, 19821 { 19822 international: state.international, 19823 nationalPrefix: state.nationalPrefix, 19824 } 19825 ); 19826 }, 19827 getSeparatorAfterNationalPrefix: 19828 function getSeparatorAfterNationalPrefix(format) {
19829 return _this.getSeparatorAfterNationalPrefix( 19830 format 19831 ); 19832 }, 19833 } 19834 ); 19835 19836 if (formattedCompleteNumber) { 19837 this.resetFormat(); 19838 this.chosenFormat = format; 19839 this.setNationalNumberTemplate( 19840 formattedCompleteNumber.replace( 19841 /\d/g, 19842 DIGIT_PLACEHOLDER 19843 ), 19844 state 19845 ); 19846 this.populatedNationalNumberTemplate = 19847 formattedCompleteNumber; // With a new formatting template, the matched position 19848 // using the old template needs to be reset. 19849 19850 this.populatedNationalNumberTemplatePosition = 19851 this.template.lastIndexOf(DIGIT_PLACEHOLDER); 19852 return formattedCompleteNumber; 19853 } 19854 } 19855 } // Format the digits as a partial (incomplete) phone number 19856 // using the previously chosen formatting pattern (or a newly chosen one). 19857 19858 return this.formatNationalNumberWithNextDigits( 19859 nextDigits, 19860 state 19861 ); 19862 }, // Formats the next phone number digits. 19863 }, 19864 { 19865 key: 'formatNationalNumberWithNextDigits', 19866 value: function formatNationalNumberWithNextDigits( 19867 nextDigits, 19868 state 19869 ) { 19870 var previouslyChosenFormat = this.chosenFormat; // Choose a format from the list of matching ones. 19871 19872 var newlyChosenFormat = this.chooseFormat(state); 19873 19874 if (newlyChosenFormat) { 19875 if (newlyChosenFormat === previouslyChosenFormat) { 19876 // If it can format the next (current) digits 19877 // using the previously chosen phone number format 19878 // then return the updated formatted number. 19879 return this.formatNextNationalNumberDigits(nextDigits); 19880 } else { 19881 // If a more appropriate phone number format 19882 // has been chosen for these "leading digits", 19883 // then re-format the national phone number part 19884 // using the newly selected format. 19885 return this.formatNextNationalNumberDigits( 19886 state.getNationalDigits() 19887 ); 19888 } 19889 } 19890 }, 19891 }, 19892 { 19893 key: 'narrowDownMatchingFormats', 19894 value: function narrowDownMatchingFormats(_ref2) { 19895 var _this2 = this; 19896 19897 var nationalSignificantNumber = 19898 _ref2.nationalSignificantNumber, 19899 nationalPrefix = _ref2.nationalPrefix, 19900 international = _ref2.international; 19901 var leadingDigits = nationalSignificantNumber; // "leading digits" pattern list starts with a 19902 // "leading digits" pattern fitting a maximum of 3 leading digits. 19903 // So, after a user inputs 3 digits of a national (significant) phone number 19904 // this national (significant) number can already be formatted. 19905 // The next "leading digits" pattern is for 4 leading digits max, 19906 // and the "leading digits" pattern after it is for 5 leading digits max, etc. 19907 // This implementation is different from Google's 19908 // in that it searches for a fitting format 19909 // even if the user has entered less than 19910 // `MIN_LEADING_DIGITS_LENGTH` digits of a national number. 19911 // Because some leading digit patterns already match for a single first digit. 19912 19913 var leadingDigitsPatternIndex = 19914 leadingDigits.length - MIN_LEADING_DIGITS_LENGTH; 19915 19916 if (leadingDigitsPatternIndex < 0) { 19917 leadingDigitsPatternIndex = 0; 19918 } 19919 19920 this.matchingFormats = this.matchingFormats.filter( 19921 function (format) { 19922 return ( 19923 _this2.formatSuits( 19924 format, 19925 international, 19926 nationalPrefix 19927 ) && 19928 _this2.formatMatches( 19929 format, 19930 leadingDigits, 19931 leadingDigitsPatternIndex 19932 ) 19933 ); 19934 } 19935 ); // If there was a phone number format chosen 19936 // and it no longer holds given the new leading digits then reset it. 19937 // The test for this `if` condition is marked as: 19938 // "Reset a chosen format when it no longer holds given the new leading digits". 19939 // To construct a valid test case for this one can find a country 19940 // in `PhoneNumberMetadata.xml` yielding one format for 3 `<leadingDigits>` 19941 // and yielding another format for 4 `<leadingDigits>` (Australia in this case). 19942 19943 if ( 19944 this.chosenFormat && 19945 this.matchingFormats.indexOf(this.chosenFormat) === -1 19946 ) { 19947 this.resetFormat(); 19948 } 19949 }, 19950 }, 19951 { 19952 key: 'formatSuits', 19953 value: function formatSuits( 19954 format, 19955 international, 19956 nationalPrefix 19957 ) { 19958 // When a prefix before a national (significant) number is 19959 // simply a national prefix, then it's parsed as `this.nationalPrefix`. 19960 // In more complex cases, a prefix before national (significant) number 19961 // could include a national prefix as well as some "capturing groups", 19962 // and in that case there's no info whether a national prefix has been parsed. 19963 // If national prefix is not used when formatting a phone number 19964 // using this format, but a national prefix has been entered by the user, 19965 // and was extracted, then discard such phone number format. 19966 // In Google's "AsYouType" formatter code, the equivalent would be this part: 19967 // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L175-L184 19968 if ( 19969 nationalPrefix && 19970 !format.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() && 19971 !format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() 19972 ) { 19973 return false;
19974 } // If national prefix is mandatory for this phone number format 19975 // and there're no guarantees that a national prefix is present in user input 19976 // then discard this phone number format as not suitable. 19977 // In Google's "AsYouType" formatter code, the equivalent would be this part: 19978 // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L185-L193 19979 19980 if ( 19981 !international && 19982 !nationalPrefix && 19983 format.nationalPrefixIsMandatoryWhenFormattingInNationalFormat() 19984 ) { 19985 return false; 19986 } 19987 19988 return true; 19989 }, 19990 }, 19991 { 19992 key: 'formatMatches', 19993 value: function formatMatches( 19994 format, 19995 leadingDigits, 19996 leadingDigitsPatternIndex 19997 ) { 19998 var leadingDigitsPatternsCount = 19999 format.leadingDigitsPatterns().length; // If this format is not restricted to a certain 20000 // leading digits pattern then it fits. 20001 // The test case could be found by searching for "leadingDigitsPatternsCount === 0". 20002 20003 if (leadingDigitsPatternsCount === 0) { 20004 return true; 20005 } // Start narrowing down the list of possible formats based on the leading digits. 20006 // (only previously matched formats take part in the narrowing down process) 20007 // `leading_digits_patterns` start with 3 digits min 20008 // and then go up from there one digit at a time. 20009 20010 leadingDigitsPatternIndex = Math.min( 20011 leadingDigitsPatternIndex, 20012 leadingDigitsPatternsCount - 1 20013 ); 20014 var leadingDigitsPattern = 20015 format.leadingDigitsPatterns()[leadingDigitsPatternIndex]; // Google imposes a requirement on the leading digits 20016 // to be minimum 3 digits long in order to be eligible 20017 // for checking those with a leading digits pattern. 20018 // 20019 // Since `leading_digits_patterns` start with 3 digits min, 20020 // Google's original `libphonenumber` library only starts 20021 // excluding any non-matching formats only when the 20022 // national number entered so far is at least 3 digits long, 20023 // otherwise format matching would give false negatives. 20024 // 20025 // For example, when the digits entered so far are `2` 20026 // and the leading digits pattern is `21` â 20027 // it's quite obvious in this case that the format could be the one 20028 // but due to the absence of further digits it would give false negative. 20029 // 20030 // Also, `leading_digits_patterns` doesn't always correspond to a single 20031 // digits count. For example, `60|8` pattern would already match `8` 20032 // but the `60` part would require having at least two leading digits, 20033 // so the whole pattern would require inputting two digits first in order to 20034 // decide on whether it matches the input, even when the input is "80". 20035 // 20036 // This library â `libphonenumber-js` â allows filtering by `leading_digits_patterns` 20037 // even when there's only 1 or 2 digits of the national (significant) number. 20038 // To do that, it uses a non-strict pattern matcher written specifically for that. 20039 // 20040 20041 if (leadingDigits.length < MIN_LEADING_DIGITS_LENGTH) { 20042 // Before leading digits < 3 matching was implemented: 20043 // return true 20044 // 20045 // After leading digits < 3 matching was implemented: 20046 try { 20047 return ( 20048 new AsYouTypeFormatter_PatternMatcher_PatternMatcher( 20049 leadingDigitsPattern 20050 ).match(leadingDigits, { 20051 allowOverflow: true, 20052 }) !== undefined 20053 ); 20054 } catch ( 20055 error 20056 /* istanbul ignore next */ 20057 ) { 20058 // There's a slight possibility that there could be some undiscovered bug 20059 // in the pattern matcher code. Since the "leading digits < 3 matching" 20060 // feature is not "essential" for operation, it can fall back to the old way 20061 // in case of any issues rather than halting the application's execution. 20062 console.error(error); 20063 return true; 20064 } 20065 } // If at least `MIN_LEADING_DIGITS_LENGTH` digits of a national number are 20066 // available then use the usual regular expression matching. 20067 // 20068 // The whole pattern is wrapped in round brackets (`()`) because 20069 // the pattern can use "or" operator (`|`) at the top level of the pattern. 20070 // 20071 20072 return new RegExp( 20073 '^('.concat(leadingDigitsPattern, ')') 20074 ).test(leadingDigits); 20075 }, 20076 }, 20077 { 20078 key: 'getFormatFormat', 20079 value: function getFormatFormat(format, international) { 20080 return international 20081 ? format.internationalFormat() 20082 : format.format(); 20083 }, 20084 }, 20085 { 20086 key: 'chooseFormat', 20087 value: function chooseFormat(state) { 20088 var _this3 = this; 20089 20090 var _loop = function _loop() { 20091 var format = _step2.value; 20092 20093 // If this format is currently being used 20094 // and is still suitable, then stick to it. 20095 if (_this3.chosenFormat === format) { 20096 return 'break'; 20097 } // Sometimes, a formatting rule inserts additional digits in a phone number, 20098 // and "as you type" formatter can't do that: it should only use the digits 20099 // that the user has input. 20100 // 20101 // For example, in Argentina, there's a format for mobile phone numbers: 20102 // 20103 // { 20104 // "pattern": "(\\d)(\\d{2})(\\d{4})(\\d{4})", 20105 // "leading_digits_patterns": ["91"], 20106 // "national_prefix_formatting_rule": "0$1", 20107 // "format": "$2 15-$3-$4", 20108 // "international_format": "$1 $2 $3-$4" 20109 // } 20110 // 20111 // In that format, `international_format` is used instead of `format` 20112 // because `format` inserts `15` in the formatted number, 20113 // and `AsYouType` formatter should only use the digits 20114 // the user has actually input, without adding any extra digits. 20115 // In this case, it wouldn't make a difference, because the `15` 20116 // is first stripped when applying `national_prefix_for_parsing` 20117 // and then re-added when using `format`, so in reality it doesn't 20118 // add any new digits to the number, but to detect that, the code 20119 // would have to be more complex: it would have to try formatting 20120 // the digits using the format and then see if any digits have 20121 // actually been added or removed, and then, every time a new digit 20122 // is input, it should re-check whether the chosen format doesn't 20123 // alter the digits. 20124 // 20125 // Google's code doesn't go that far, and so does this library: 20126 // it simply requires that a `format` doesn't add any additonal 20127 // digits to user's input. 20128 // 20129 // Also, people in general should move from inputting phone numbers 20130 // in national format (possibly with national prefixes) 20131 // and use international phone number format instead: 20132 // it's a logical thing in the modern age of mobile phones, 20133 // globalization and the internet. 20134 // 20135 20136 /* istanbul ignore if */ 20137 20138 if ( 20139 !NON_ALTERING_FORMAT_REG_EXP.test( 20140 _this3.getFormatFormat(format, state.international) 20141 ) 20142 ) { 20143 return 'continue'; 20144 } 20145 20146 if (!_this3.createTemplateForFormat(format, state)) { 20147 // Remove the format if it can't generate a template. 20148 _this3.matchingFormats = _this3.matchingFormats.filter( 20149 function (_) { 20150 return _ !== format; 20151 } 20152 ); 20153 return 'continue'; 20154 } 20155 20156 _this3.chosenFormat = format; 20157 return 'break'; 20158 }; 20159 20160 // When there are multiple available formats, the formatter uses the first 20161 // format where a formatting template could be created. 20162 // 20163 // For some weird reason, `istanbul` says "else path not taken" 20164 // for the `for of` line below. Supposedly that means that 20165 // the loop doesn't ever go over the last element in the list. 20166 // That's true because there always is `this.chosenFormat` 20167 // when `this.matchingFormats` is non-empty. 20168 // And, for some weird reason, it doesn't think that the case
vendor: 6,237 bytes, lines 20169-20315
20169 // with empty `this.matchingFormats` qualifies for a valid "else" path. 20170 // So simply muting this `istanbul` warning. 20171 // It doesn't skip the contents of the `for of` loop, 20172 // it just skips the `for of` line. 20173 // 20174 20175 /* istanbul ignore next */ 20176 for ( 20177 var _iterator2 = 20178 AsYouTypeFormatter_createForOfIteratorHelperLoose( 20179 this.matchingFormats.slice() 20180 ), 20181 _step2; 20182 !(_step2 = _iterator2()).done; 20183 20184 ) { 20185 var _ret = _loop(); 20186 20187 if (_ret === 'break') break; 20188 if (_ret === 'continue') continue; 20189 } 20190 20191 if (!this.chosenFormat) { 20192 // No format matches the national (significant) phone number. 20193 this.resetFormat(); 20194 } 20195 20196 return this.chosenFormat; 20197 }, 20198 }, 20199 { 20200 key: 'createTemplateForFormat', 20201 value: function createTemplateForFormat(format, state) { 20202 // The formatter doesn't format numbers when numberPattern contains '|', e.g. 20203 // (20|3)\d{4}. In those cases we quickly return. 20204 // (Though there's no such format in current metadata) 20205 20206 /* istanbul ignore if */ 20207 if ( 20208 SUPPORT_LEGACY_FORMATTING_PATTERNS && 20209 format.pattern().indexOf('|') >= 0 20210 ) { 20211 return; 20212 } // Get formatting template for this phone number format 20213 20214 var template = this.getTemplateForFormat(format, state); // If the national number entered is too long 20215 // for any phone number format, then abort. 20216 20217 if (template) { 20218 this.setNationalNumberTemplate(template, state); 20219 return true; 20220 } 20221 }, 20222 }, 20223 { 20224 key: 'getSeparatorAfterNationalPrefix', 20225 value: function getSeparatorAfterNationalPrefix(format) { 20226 // `US` metadata doesn't have a `national_prefix_formatting_rule`, 20227 // so the `if` condition below doesn't apply to `US`, 20228 // but in reality there shoudl be a separator 20229 // between a national prefix and a national (significant) number. 20230 // So `US` national prefix separator is a "special" "hardcoded" case. 20231 if (this.isNANP) { 20232 return ' '; 20233 } // If a `format` has a `national_prefix_formatting_rule` 20234 // and that rule has a separator after a national prefix, 20235 // then it means that there should be a separator 20236 // between a national prefix and a national (significant) number. 20237 20238 if ( 20239 format && 20240 format.nationalPrefixFormattingRule() && 20241 NATIONAL_PREFIX_SEPARATORS_PATTERN.test( 20242 format.nationalPrefixFormattingRule() 20243 ) 20244 ) { 20245 return ' '; 20246 } // At this point, there seems to be no clear evidence that 20247 // there should be a separator between a national prefix 20248 // and a national (significant) number. So don't insert one. 20249 20250 return ''; 20251 }, 20252 }, 20253 { 20254 key: 'getInternationalPrefixBeforeCountryCallingCode', 20255 value: 20256 function getInternationalPrefixBeforeCountryCallingCode( 20257 _ref3, 20258 options 20259 ) { 20260 var IDDPrefix = _ref3.IDDPrefix, 20261 missingPlus = _ref3.missingPlus; 20262 20263 if (IDDPrefix) { 20264 return options && options.spacing === false 20265 ? IDDPrefix 20266 : IDDPrefix + ' '; 20267 } 20268 20269 if (missingPlus) { 20270 return ''; 20271 } 20272 20273 return '+'; 20274 }, 20275 }, 20276 { 20277 key: 'getTemplate', 20278 value: function getTemplate(state) { 20279 if (!this.template) { 20280 return; 20281 } // `this.template` holds the template for a "complete" phone number. 20282 // The currently entered phone number is most likely not "complete", 20283 // so trim all non-populated digits. 20284 20285 var index = -1; 20286 var i = 0; 20287 var internationalPrefix = state.international 20288 ? this.getInternationalPrefixBeforeCountryCallingCode( 20289 state, 20290 { 20291 spacing: false, 20292 } 20293 ) 20294 : ''; 20295 20296 while ( 20297 i < 20298 internationalPrefix.length + 20299 state.getDigitsWithoutInternationalPrefix().length 20300 ) { 20301 index = this.template.indexOf( 20302 DIGIT_PLACEHOLDER, 20303 index + 1 20304 ); 20305 i++; 20306 } 20307 20308 return cutAndStripNonPairedParens(this.template, index + 1); 20309 }, 20310 }, 20311 { 20312 key: 'setNationalNumberTemplate', 20313 value: function setNationalNumberTemplate(template, state) { 20314 this.nationalNumberTemplate = template; 20315 this.populatedNationalNumberTemplate = template;
vendor: 9,605 bytes, lines 20315-20487
20315 // With a new formatting template, the matched position 20316 // using the old template needs to be reset. 20317 20318 this.populatedNationalNumberTemplatePosition = -1; // For convenience, the public `.template` property 20319 // contains the whole international number 20320 // if the phone number being input is international: 20321 // 'x' for the '+' sign, 'x'es for the country phone code, 20322 // a spacebar and then the template for the formatted national number. 20323 20324 if (state.international) { 20325 this.template = 20326 this.getInternationalPrefixBeforeCountryCallingCode( 20327 state 20328 ).replace(/[\d\+]/g, DIGIT_PLACEHOLDER) + 20329 repeat(DIGIT_PLACEHOLDER, state.callingCode.length) + 20330 ' ' + 20331 template; 20332 } else { 20333 this.template = template; 20334 } 20335 }, 20336 /** 20337 * Generates formatting template for a national phone number, 20338 * optionally containing a national prefix, for a format. 20339 * @param {Format} format 20340 * @param {string} nationalPrefix 20341 * @return {string} 20342 */ 20343 }, 20344 { 20345 key: 'getTemplateForFormat', 20346 value: function getTemplateForFormat(format, _ref4) { 20347 var nationalSignificantNumber = 20348 _ref4.nationalSignificantNumber, 20349 international = _ref4.international, 20350 nationalPrefix = _ref4.nationalPrefix, 20351 complexPrefixBeforeNationalSignificantNumber = 20352 _ref4.complexPrefixBeforeNationalSignificantNumber; 20353 var pattern = format.pattern(); 20354 /* istanbul ignore else */ 20355 20356 if (SUPPORT_LEGACY_FORMATTING_PATTERNS) { 20357 pattern = pattern // Replace anything in the form of [..] with \d 20358 .replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\d') // Replace any standalone digit (not the one in `{}`) with \d 20359 .replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\d'); 20360 } // Generate a dummy national number (consisting of `9`s) 20361 // that fits this format's `pattern`. 20362 // 20363 // This match will always succeed, 20364 // because the "longest dummy phone number" 20365 // has enough length to accomodate any possible 20366 // national phone number format pattern. 20367 // 20368 20369 var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0]; // If the national number entered is too long 20370 // for any phone number format, then abort. 20371 20372 if (nationalSignificantNumber.length > digits.length) { 20373 return; 20374 } // Get a formatting template which can be used to efficiently format 20375 // a partial number where digits are added one by one. 20376 // Below `strictPattern` is used for the 20377 // regular expression (with `^` and `$`). 20378 // This wasn't originally in Google's `libphonenumber` 20379 // and I guess they don't really need it 20380 // because they're not using "templates" to format phone numbers 20381 // but I added `strictPattern` after encountering 20382 // South Korean phone number formatting bug. 20383 // 20384 // Non-strict regular expression bug demonstration: 20385 // 20386 // this.nationalSignificantNumber : `111111111` (9 digits) 20387 // 20388 // pattern : (\d{2})(\d{3,4})(\d{4}) 20389 // format : `$1 $2 $3` 20390 // digits : `9999999999` (10 digits) 20391 // 20392 // '9999999999'.replace(new RegExp(/(\d{2})(\d{3,4})(\d{4})/g), '$1 $2 $3') = "99 9999 9999" 20393 // 20394 // template : xx xxxx xxxx 20395 // 20396 // But the correct template in this case is `xx xxx xxxx`. 20397 // The template was generated incorrectly because of the 20398 // `{3,4}` variability in the `pattern`. 20399 // 20400 // The fix is, if `this.nationalSignificantNumber` has already sufficient length 20401 // to satisfy the `pattern` completely then `this.nationalSignificantNumber` 20402 // is used instead of `digits`. 20403 20404 var strictPattern = new RegExp('^' + pattern + '$'); 20405 var nationalNumberDummyDigits = 20406 nationalSignificantNumber.replace(/\d/g, DUMMY_DIGIT); // If `this.nationalSignificantNumber` has already sufficient length 20407 // to satisfy the `pattern` completely then use it 20408 // instead of `digits`. 20409 20410 if (strictPattern.test(nationalNumberDummyDigits)) { 20411 digits = nationalNumberDummyDigits; 20412 } 20413 20414 var numberFormat = this.getFormatFormat( 20415 format, 20416 international 20417 ); 20418 var nationalPrefixIncludedInTemplate; // If a user did input a national prefix (and that's guaranteed), 20419 // and if a `format` does have a national prefix formatting rule, 20420 // then see if that national prefix formatting rule 20421 // prepends exactly the same national prefix the user has input. 20422 // If that's the case, then use the `format` with the national prefix formatting rule. 20423 // Otherwise, use the `format` without the national prefix formatting rule, 20424 // and prepend a national prefix manually to it. 20425 20426 if ( 20427 this.shouldTryNationalPrefixFormattingRule(format, { 20428 international: international, 20429 nationalPrefix: nationalPrefix, 20430 }) 20431 ) { 20432 var numberFormatWithNationalPrefix = numberFormat.replace( 20433 FIRST_GROUP_PATTERN, 20434 format.nationalPrefixFormattingRule() 20435 ); // If `national_prefix_formatting_rule` of a `format` simply prepends 20436 // national prefix at the start of a national (significant) number, 20437 // then such formatting can be used with `AsYouType` formatter. 20438 // There seems to be no `else` case: everywhere in metadata, 20439 // national prefix formatting rule is national prefix + $1, 20440 // or `($1)`, in which case such format isn't even considered 20441 // when the user has input a national prefix. 20442 20443 /* istanbul ignore else */ 20444 20445 if ( 20446 parseDigits(format.nationalPrefixFormattingRule()) === 20447 (nationalPrefix || '') + parseDigits('$1') 20448 ) { 20449 numberFormat = numberFormatWithNationalPrefix; 20450 nationalPrefixIncludedInTemplate = true; // Replace all digits of the national prefix in the formatting template 20451 // with `DIGIT_PLACEHOLDER`s. 20452 20453 if (nationalPrefix) { 20454 var i = nationalPrefix.length; 20455 20456 while (i > 0) { 20457 numberFormat = numberFormat.replace( 20458 /\d/, 20459 DIGIT_PLACEHOLDER 20460 ); 20461 i--; 20462 } 20463 } 20464 } 20465 } // Generate formatting template for this phone number format. 20466 20467 var template = digits // Format the dummy phone number according to the format. 20468 .replace(new RegExp(pattern), numberFormat) // Replace each dummy digit with a DIGIT_PLACEHOLDER. 20469 .replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER); // If a prefix of a national (significant) number is not as simple 20470 // as just a basic national prefix, then just prepend such prefix 20471 // before the national (significant) number, optionally spacing 20472 // the two with a whitespace. 20473 20474 if (!nationalPrefixIncludedInTemplate) { 20475 if (complexPrefixBeforeNationalSignificantNumber) { 20476 // Prepend the prefix to the template manually. 20477 template = 20478 repeat( 20479 DIGIT_PLACEHOLDER, 20480 complexPrefixBeforeNationalSignificantNumber.length 20481 ) + 20482 ' ' + 20483 template; 20484 } else if (nationalPrefix) { 20485 // Prepend national prefix to the template manually. 20486 template = 20487 repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) +
20488 this.getSeparatorAfterNationalPrefix(format) + 20489 template; 20490 } 20491 } 20492 20493 if (international) { 20494 template = applyInternationalSeparatorStyle(template); 20495 } 20496 20497 return template; 20498 }, 20499 }, 20500 { 20501 key: 'formatNextNationalNumberDigits', 20502 value: function formatNextNationalNumberDigits(digits) { 20503 var result = populateTemplateWithDigits( 20504 this.populatedNationalNumberTemplate, 20505 this.populatedNationalNumberTemplatePosition, 20506 digits 20507 ); 20508 20509 if (!result) { 20510 // Reset the format. 20511 this.resetFormat(); 20512 return; 20513 } 20514 20515 this.populatedNationalNumberTemplate = result[0]; 20516 this.populatedNationalNumberTemplatePosition = result[1]; // Return the formatted phone number so far. 20517 20518 return cutAndStripNonPairedParens( 20519 this.populatedNationalNumberTemplate, 20520 this.populatedNationalNumberTemplatePosition + 1 20521 ); // The old way which was good for `input-format` but is not so good 20522 // for `react-phone-number-input`'s default input (`InputBasic`). 20523 // return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1) 20524 // .replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ') 20525 }, 20526 }, 20527 { 20528 key: 'shouldTryNationalPrefixFormattingRule', 20529 value: function shouldTryNationalPrefixFormattingRule( 20530 format, 20531 _ref5 20532 ) { 20533 var international = _ref5.international, 20534 nationalPrefix = _ref5.nationalPrefix; 20535 20536 if (format.nationalPrefixFormattingRule()) { 20537 // In some countries, `national_prefix_formatting_rule` is `($1)`, 20538 // so it applies even if the user hasn't input a national prefix. 20539 // `format.usesNationalPrefix()` detects such cases. 20540 var usesNationalPrefix = format.usesNationalPrefix(); 20541 20542 if ( 20543 (usesNationalPrefix && nationalPrefix) || 20544 (!usesNationalPrefix && !international) 20545 ) { 20546 return true; 20547 } 20548 } 20549 }, 20550 }, 20551 ]); 20552 20553 return AsYouTypeFormatter; 20554 })(); 20555 20556 //# sourceMappingURL=AsYouTypeFormatter.js.map 20557 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouTypeParser.js 20558 function AsYouTypeParser_slicedToArray(arr, i) { 20559 return ( 20560 AsYouTypeParser_arrayWithHoles(arr) || 20561 AsYouTypeParser_iterableToArrayLimit(arr, i) || 20562 AsYouTypeParser_unsupportedIterableToArray(arr, i) || 20563 AsYouTypeParser_nonIterableRest() 20564 ); 20565 } 20566 20567 function AsYouTypeParser_nonIterableRest() { 20568 throw new TypeError( 20569 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 20570 ); 20571 } 20572 20573 function AsYouTypeParser_unsupportedIterableToArray(o, minLen) { 20574 if (!o) return; 20575 if (typeof o === 'string') 20576 return AsYouTypeParser_arrayLikeToArray(o, minLen); 20577 var n = Object.prototype.toString.call(o).slice(8, -1); 20578 if (n === 'Object' && o.constructor) n = o.constructor.name; 20579 if (n === 'Map' || n === 'Set') return Array.from(o); 20580 if ( 20581 n === 'Arguments' || 20582 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 20583 ) 20584 return AsYouTypeParser_arrayLikeToArray(o, minLen); 20585 } 20586 20587 function AsYouTypeParser_arrayLikeToArray(arr, len) { 20588 if (len == null || len > arr.length) len = arr.length; 20589 for (var i = 0, arr2 = new Array(len); i < len; i++) { 20590 arr2[i] = arr[i]; 20591 } 20592 return arr2; 20593 } 20594 20595 function AsYouTypeParser_iterableToArrayLimit(arr, i) { 20596 var _i = 20597 arr == null 20598 ? null 20599 : (typeof Symbol !== 'undefined' && arr[Symbol.iterator]) || 20600 arr['@@iterator']; 20601 if (_i == null) return; 20602 var _arr = []; 20603 var _n = true; 20604 var _d = false;
vendor: 20,963 bytes, lines 20605-21063
20605 var _s, _e; 20606 try { 20607 for ( 20608 _i = _i.call(arr); 20609 !(_n = (_s = _i.next()).done); 20610 _n = true 20611 ) { 20612 _arr.push(_s.value); 20613 if (i && _arr.length === i) break; 20614 } 20615 } catch (err) { 20616 _d = true; 20617 _e = err; 20618 } finally { 20619 try { 20620 if (!_n && _i['return'] != null) _i['return'](); 20621 } finally { 20622 if (_d) throw _e; 20623 } 20624 } 20625 return _arr; 20626 } 20627 20628 function AsYouTypeParser_arrayWithHoles(arr) { 20629 if (Array.isArray(arr)) return arr; 20630 } 20631 20632 function AsYouTypeParser_classCallCheck(instance, Constructor) { 20633 if (!(instance instanceof Constructor)) { 20634 throw new TypeError('Cannot call a class as a function'); 20635 } 20636 } 20637 20638 function AsYouTypeParser_defineProperties(target, props) { 20639 for (var i = 0; i < props.length; i++) { 20640 var descriptor = props[i]; 20641 descriptor.enumerable = descriptor.enumerable || false; 20642 descriptor.configurable = true; 20643 if ('value' in descriptor) descriptor.writable = true; 20644 Object.defineProperty(target, descriptor.key, descriptor); 20645 } 20646 } 20647 20648 function AsYouTypeParser_createClass( 20649 Constructor, 20650 protoProps, 20651 staticProps 20652 ) { 20653 if (protoProps) 20654 AsYouTypeParser_defineProperties( 20655 Constructor.prototype, 20656 protoProps 20657 ); 20658 if (staticProps) 20659 AsYouTypeParser_defineProperties(Constructor, staticProps); 20660 Object.defineProperty(Constructor, 'prototype', { 20661 writable: false, 20662 }); 20663 return Constructor; 20664 } 20665 20666 var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = 20667 '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+'; 20668 var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp( 20669 '^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 20670 'i' 20671 ); 20672 var VALID_FORMATTED_PHONE_NUMBER_PART = 20673 '(?:' + 20674 '[' + 20675 PLUS_CHARS + 20676 ']' + 20677 '[' + 20678 VALID_PUNCTUATION + 20679 VALID_DIGITS + 20680 ']*' + 20681 '|' + 20682 '[' + 20683 VALID_PUNCTUATION + 20684 VALID_DIGITS + 20685 ']+' + 20686 ')'; 20687 var AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp( 20688 '[^' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + '.*' + '$' 20689 ); // Tests whether `national_prefix_for_parsing` could match 20690 // different national prefixes. 20691 // Matches anything that's not a digit or a square bracket. 20692 20693 var COMPLEX_NATIONAL_PREFIX = /[^\d\[\]]/; 20694 20695 var AsYouTypeParser_AsYouTypeParser = /*#__PURE__*/ (function () { 20696 function AsYouTypeParser(_ref) { 20697 var defaultCountry = _ref.defaultCountry, 20698 defaultCallingCode = _ref.defaultCallingCode, 20699 metadata = _ref.metadata, 20700 onNationalSignificantNumberChange = 20701 _ref.onNationalSignificantNumberChange; 20702 20703 AsYouTypeParser_classCallCheck(this, AsYouTypeParser); 20704 20705 this.defaultCountry = defaultCountry; 20706 this.defaultCallingCode = defaultCallingCode; 20707 this.metadata = metadata; 20708 this.onNationalSignificantNumberChange = 20709 onNationalSignificantNumberChange; 20710 } 20711 20712 AsYouTypeParser_createClass(AsYouTypeParser, [ 20713 { 20714 key: 'input', 20715 value: function input(text, state) { 20716 var _extractFormattedDigi = 20717 extractFormattedDigitsAndPlus(text), 20718 _extractFormattedDigi2 = AsYouTypeParser_slicedToArray( 20719 _extractFormattedDigi, 20720 2 20721 ), 20722 formattedDigits = _extractFormattedDigi2[0], 20723 hasPlus = _extractFormattedDigi2[1]; 20724 20725 var digits = parseDigits(formattedDigits); // Checks for a special case: just a leading `+` has been entered. 20726 20727 var justLeadingPlus; 20728 20729 if (hasPlus) { 20730 if (!state.digits) { 20731 state.startInternationalNumber(); 20732 20733 if (!digits) { 20734 justLeadingPlus = true; 20735 } 20736 } 20737 } 20738 20739 if (digits) { 20740 this.inputDigits(digits, state); 20741 } 20742 20743 return { 20744 digits: digits, 20745 justLeadingPlus: justLeadingPlus, 20746 }; 20747 }, 20748 /** 20749 * Inputs "next" phone number digits. 20750 * @param {string} digits 20751 * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage". 20752 */ 20753 }, 20754 { 20755 key: 'inputDigits', 20756 value: function inputDigits(nextDigits, state) { 20757 var digits = state.digits; 20758 var hasReceivedThreeLeadingDigits = 20759 digits.length < 3 && digits.length + nextDigits.length >= 3; // Append phone number digits. 20760 20761 state.appendDigits(nextDigits); // Attempt to extract IDD prefix: 20762 // Some users input their phone number in international format, 20763 // but in an "out-of-country" dialing format instead of using the leading `+`. 20764 // https://github.com/catamphetamine/libphonenumber-js/issues/185 20765 // Detect such numbers as soon as there're at least 3 digits. 20766 // Google's library attempts to extract IDD prefix at 3 digits, 20767 // so this library just copies that behavior. 20768 // I guess that's because the most commot IDD prefixes are 20769 // `00` (Europe) and `011` (US). 20770 // There exist really long IDD prefixes too: 20771 // for example, in Australia the default IDD prefix is `0011`, 20772 // and it could even be as long as `14880011`. 20773 // An IDD prefix is extracted here, and then every time when 20774 // there's a new digit and the number couldn't be formatted. 20775 20776 if (hasReceivedThreeLeadingDigits) { 20777 this.extractIddPrefix(state); 20778 } 20779 20780 if (this.isWaitingForCountryCallingCode(state)) { 20781 if (!this.extractCountryCallingCode(state)) { 20782 return; 20783 } 20784 } else { 20785 state.appendNationalSignificantNumberDigits(nextDigits); 20786 } // If a phone number is being input in international format, 20787 // then it's not valid for it to have a national prefix. 20788 // Still, some people incorrectly input such numbers with a national prefix. 20789 // In such cases, only attempt to strip a national prefix if the number becomes too long. 20790 // (but that is done later, not here) 20791 20792 if (!state.international) { 20793 if (!this.hasExtractedNationalSignificantNumber) { 20794 this.extractNationalSignificantNumber( 20795 state.getNationalDigits(), 20796 function (stateUpdate) { 20797 return state.update(stateUpdate); 20798 } 20799 ); 20800 } 20801 } 20802 }, 20803 }, 20804 { 20805 key: 'isWaitingForCountryCallingCode', 20806 value: function isWaitingForCountryCallingCode(_ref2) { 20807 var international = _ref2.international, 20808 callingCode = _ref2.callingCode; 20809 return international && !callingCode; 20810 }, // Extracts a country calling code from a number 20811 // being entered in internatonal format. 20812 }, 20813 { 20814 key: 'extractCountryCallingCode', 20815 value: function extractCountryCallingCode(state) { 20816 var _extractCountryCallin = 20817 extractCountryCallingCode_extractCountryCallingCode( 20818 '+' + state.getDigitsWithoutInternationalPrefix(), 20819 this.defaultCountry, 20820 this.defaultCallingCode, 20821 this.metadata.metadata 20822 ), 20823 countryCallingCode = 20824 _extractCountryCallin.countryCallingCode, 20825 number = _extractCountryCallin.number; 20826 20827 if (countryCallingCode) { 20828 state.setCallingCode(countryCallingCode); 20829 state.update({ 20830 nationalSignificantNumber: number, 20831 }); 20832 return true; 20833 } 20834 }, 20835 }, 20836 { 20837 key: 'reset', 20838 value: function reset(numberingPlan) { 20839 if (numberingPlan) { 20840 this.hasSelectedNumberingPlan = true; 20841 20842 var nationalPrefixForParsing = 20843 numberingPlan._nationalPrefixForParsing(); 20844 20845 this.couldPossiblyExtractAnotherNationalSignificantNumber = 20846 nationalPrefixForParsing && 20847 COMPLEX_NATIONAL_PREFIX.test(nationalPrefixForParsing); 20848 } else { 20849 this.hasSelectedNumberingPlan = undefined; 20850 this.couldPossiblyExtractAnotherNationalSignificantNumber = 20851 undefined; 20852 } 20853 }, 20854 /** 20855 * Extracts a national (significant) number from user input. 20856 * Google's library is different in that it only applies `national_prefix_for_parsing` 20857 * and doesn't apply `national_prefix_transform_rule` after that. 20858 * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539 20859 * @return {boolean} [extracted] 20860 */ 20861 }, 20862 { 20863 key: 'extractNationalSignificantNumber', 20864 value: function extractNationalSignificantNumber( 20865 nationalDigits, 20866 setState 20867 ) { 20868 if (!this.hasSelectedNumberingPlan) { 20869 return; 20870 } 20871 20872 var _extractNationalNumbe = 20873 extractNationalNumberFromPossiblyIncompleteNumber( 20874 nationalDigits, 20875 this.metadata 20876 ), 20877 nationalPrefix = _extractNationalNumbe.nationalPrefix, 20878 nationalNumber = _extractNationalNumbe.nationalNumber, 20879 carrierCode = _extractNationalNumbe.carrierCode; 20880 20881 if (nationalNumber === nationalDigits) { 20882 return; 20883 } 20884 20885 this.onExtractedNationalNumber( 20886 nationalPrefix, 20887 carrierCode, 20888 nationalNumber, 20889 nationalDigits, 20890 setState 20891 ); 20892 return true; 20893 }, 20894 /** 20895 * In Google's code this function is called "attempt to extract longer NDD". 20896 * "Some national prefixes are a substring of others", they say. 20897 * @return {boolean} [result] â Returns `true` if extracting a national prefix produced different results from what they were. 20898 */ 20899 }, 20900 { 20901 key: 'extractAnotherNationalSignificantNumber', 20902 value: function extractAnotherNationalSignificantNumber( 20903 nationalDigits, 20904 prevNationalSignificantNumber, 20905 setState 20906 ) { 20907 if (!this.hasExtractedNationalSignificantNumber) { 20908 return this.extractNationalSignificantNumber( 20909 nationalDigits, 20910 setState 20911 ); 20912 } 20913 20914 if ( 20915 !this.couldPossiblyExtractAnotherNationalSignificantNumber 20916 ) { 20917 return; 20918 } 20919 20920 var _extractNationalNumbe2 = 20921 extractNationalNumberFromPossiblyIncompleteNumber( 20922 nationalDigits, 20923 this.metadata 20924 ), 20925 nationalPrefix = _extractNationalNumbe2.nationalPrefix, 20926 nationalNumber = _extractNationalNumbe2.nationalNumber, 20927 carrierCode = _extractNationalNumbe2.carrierCode; // If a national prefix has been extracted previously, 20928 // then it's always extracted as additional digits are added. 20929 // That's assuming `extractNationalNumberFromPossiblyIncompleteNumber()` 20930 // doesn't do anything different from what it currently does. 20931 // So, just in case, here's this check, though it doesn't occur. 20932 20933 /* istanbul ignore if */ 20934 20935 if (nationalNumber === prevNationalSignificantNumber) { 20936 return; 20937 } 20938 20939 this.onExtractedNationalNumber( 20940 nationalPrefix, 20941 carrierCode, 20942 nationalNumber, 20943 nationalDigits, 20944 setState 20945 ); 20946 return true; 20947 }, 20948 }, 20949 { 20950 key: 'onExtractedNationalNumber', 20951 value: function onExtractedNationalNumber( 20952 nationalPrefix, 20953 carrierCode, 20954 nationalSignificantNumber, 20955 nationalDigits, 20956 setState 20957 ) { 20958 var complexPrefixBeforeNationalSignificantNumber; 20959 var nationalSignificantNumberMatchesInput; // This check also works with empty `this.nationalSignificantNumber`. 20960 20961 var nationalSignificantNumberIndex = 20962 nationalDigits.lastIndexOf(nationalSignificantNumber); // If the extracted national (significant) number is the 20963 // last substring of the `digits`, then it means that it hasn't been altered: 20964 // no digits have been removed from the national (significant) number 20965 // while applying `national_prefix_transform_rule`. 20966 // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule 20967 20968 if ( 20969 nationalSignificantNumberIndex >= 0 && 20970 nationalSignificantNumberIndex === 20971 nationalDigits.length - nationalSignificantNumber.length 20972 ) { 20973 nationalSignificantNumberMatchesInput = true; // If a prefix of a national (significant) number is not as simple 20974 // as just a basic national prefix, then such prefix is stored in 20975 // `this.complexPrefixBeforeNationalSignificantNumber` property and will be 20976 // prepended "as is" to the national (significant) number to produce 20977 // a formatted result. 20978 20979 var prefixBeforeNationalNumber = nationalDigits.slice( 20980 0, 20981 nationalSignificantNumberIndex 20982 ); // `prefixBeforeNationalNumber` is always non-empty, 20983 // because `onExtractedNationalNumber()` isn't called 20984 // when a national (significant) number hasn't been actually "extracted": 20985 // when a national (significant) number is equal to the national part of `digits`, 20986 // then `onExtractedNationalNumber()` doesn't get called. 20987 20988 if (prefixBeforeNationalNumber !== nationalPrefix) { 20989 complexPrefixBeforeNationalSignificantNumber = 20990 prefixBeforeNationalNumber; 20991 } 20992 } 20993 20994 setState({ 20995 nationalPrefix: nationalPrefix, 20996 carrierCode: carrierCode, 20997 nationalSignificantNumber: nationalSignificantNumber, 20998 nationalSignificantNumberMatchesInput: 20999 nationalSignificantNumberMatchesInput, 21000 complexPrefixBeforeNationalSignificantNumber: 21001 complexPrefixBeforeNationalSignificantNumber, 21002 }); // `onExtractedNationalNumber()` is only called when 21003 // the national (significant) number actually did change. 21004 21005 this.hasExtractedNationalSignificantNumber = true; 21006 this.onNationalSignificantNumberChange(); 21007 }, 21008 }, 21009 { 21010 key: 'reExtractNationalSignificantNumber', 21011 value: function reExtractNationalSignificantNumber(state) { 21012 // Attempt to extract a national prefix. 21013 // 21014 // Some people incorrectly input national prefix 21015 // in an international phone number. 21016 // For example, some people write British phone numbers as `+44(0)...`. 21017 // 21018 // Also, in some rare cases, it is valid for a national prefix 21019 // to be a part of an international phone number. 21020 // For example, mobile phone numbers in Mexico are supposed to be 21021 // dialled internationally using a `1` national prefix, 21022 // so the national prefix will be part of an international number. 21023 // 21024 // Quote from: 21025 // https://www.mexperience.com/dialing-cell-phones-in-mexico/ 21026 // 21027 // "Dialing a Mexican cell phone from abroad 21028 // When you are calling a cell phone number in Mexico from outside Mexico, 21029 // itâs necessary to dial an additional â1â after Mexicoâs country code 21030 // (which is â52â) and before the area code. 21031 // You also ignore the 045, and simply dial the area code and the 21032 // cell phoneâs number. 21033 // 21034 // If you donât add the â1â, youâll receive a recorded announcement 21035 // asking you to redial using it. 21036 // 21037 // For example, if you are calling from the USA to a cell phone 21038 // in Mexico City, you would dial +52 â 1 â 55 â 1234 5678. 21039 // (Note that this is different to calling a land line in Mexico City 21040 // from abroad, where the number dialed would be +52 â 55 â 1234 5678)". 21041 // 21042 // Google's demo output: 21043 // https://libphonenumber.appspot.com/phonenumberparser?number=%2b5215512345678&country=MX 21044 // 21045 if ( 21046 this.extractAnotherNationalSignificantNumber( 21047 state.getNationalDigits(), 21048 state.nationalSignificantNumber, 21049 function (stateUpdate) { 21050 return state.update(stateUpdate); 21051 } 21052 ) 21053 ) { 21054 return true; 21055 } // If no format matches the phone number, then it could be 21056 // "a really long IDD" (quote from a comment in Google's library). 21057 // An IDD prefix is first extracted when the user has entered at least 3 digits, 21058 // and then here â every time when there's a new digit and the number 21059 // couldn't be formatted. 21060 // For example, in Australia the default IDD prefix is `0011`, 21061 // and it could even be as long as `14880011`. 21062 // 21063 // Could also check `!hasReceivedThreeLeadingDigits` here
21064 // to filter out the case when this check duplicates the one 21065 // already performed when there're 3 leading digits, 21066 // but it's not a big deal, and in most cases there 21067 // will be a suitable `format` when there're 3 leading digits. 21068 // 21069 21070 if (this.extractIddPrefix(state)) { 21071 this.extractCallingCodeAndNationalSignificantNumber(state); 21072 return true; 21073 } // Google's AsYouType formatter supports sort of an "autocorrection" feature 21074 // when it "autocorrects" numbers that have been input for a country 21075 // with that country's calling code. 21076 // Such "autocorrection" feature looks weird, but different people have been requesting it: 21077 // https://github.com/catamphetamine/libphonenumber-js/issues/376 21078 // https://github.com/catamphetamine/libphonenumber-js/issues/375 21079 // https://github.com/catamphetamine/libphonenumber-js/issues/316 21080 21081 if (this.fixMissingPlus(state)) { 21082 this.extractCallingCodeAndNationalSignificantNumber(state); 21083 return true; 21084 } 21085 }, 21086 }, 21087 { 21088 key: 'extractIddPrefix', 21089 value: function extractIddPrefix(state) { 21090 // An IDD prefix can't be present in a number written with a `+`. 21091 // Also, don't re-extract an IDD prefix if has already been extracted. 21092 var international = state.international, 21093 IDDPrefix = state.IDDPrefix, 21094 digits = state.digits, 21095 nationalSignificantNumber = state.nationalSignificantNumber; 21096 21097 if (international || IDDPrefix) { 21098 return; 21099 } // Some users input their phone number in "out-of-country" 21100 // dialing format instead of using the leading `+`. 21101 // https://github.com/catamphetamine/libphonenumber-js/issues/185 21102 // Detect such numbers. 21103 21104 var numberWithoutIDD = stripIddPrefix( 21105 digits, 21106 this.defaultCountry, 21107 this.defaultCallingCode, 21108 this.metadata.metadata 21109 ); 21110 21111 if ( 21112 numberWithoutIDD !== undefined && 21113 numberWithoutIDD !== digits 21114 ) { 21115 // If an IDD prefix was stripped then convert the IDD-prefixed number 21116 // to international number for subsequent parsing. 21117 state.update({ 21118 IDDPrefix: digits.slice( 21119 0, 21120 digits.length - numberWithoutIDD.length 21121 ), 21122 }); 21123 this.startInternationalNumber(state, { 21124 country: undefined, 21125 callingCode: undefined, 21126 }); 21127 return true; 21128 } 21129 }, 21130 }, 21131 { 21132 key: 'fixMissingPlus', 21133 value: function fixMissingPlus(state) { 21134 if (!state.international) { 21135 var _extractCountryCallin2 = 21136 extractCountryCallingCodeFromInternationalNumberWithoutPlusSign( 21137 state.digits, 21138 this.defaultCountry, 21139 this.defaultCallingCode, 21140 this.metadata.metadata 21141 ), 21142 newCallingCode = 21143 _extractCountryCallin2.countryCallingCode, 21144 number = _extractCountryCallin2.number; 21145 21146 if (newCallingCode) { 21147 state.update({ 21148 missingPlus: true, 21149 }); 21150 this.startInternationalNumber(state, { 21151 country: state.country, 21152 callingCode: newCallingCode, 21153 }); 21154 return true; 21155 } 21156 } 21157 }, 21158 }, 21159 { 21160 key: 'startInternationalNumber', 21161 value: function startInternationalNumber(state, _ref3) { 21162 var country = _ref3.country, 21163 callingCode = _ref3.callingCode; 21164 state.startInternationalNumber(country, callingCode); // If a national (significant) number has been extracted before, reset it. 21165 21166 if (state.nationalSignificantNumber) { 21167 state.resetNationalSignificantNumber(); 21168 this.onNationalSignificantNumberChange(); 21169 this.hasExtractedNationalSignificantNumber = undefined; 21170 } 21171 }, 21172 }, 21173 { 21174 key: 'extractCallingCodeAndNationalSignificantNumber', 21175 value: function extractCallingCodeAndNationalSignificantNumber( 21176 state 21177 ) { 21178 if (this.extractCountryCallingCode(state)) { 21179 // `this.extractCallingCode()` is currently called when the number 21180 // couldn't be formatted during the standard procedure. 21181 // Normally, the national prefix would be re-extracted 21182 // for an international number if such number couldn't be formatted, 21183 // but since it's already not able to be formatted, 21184 // there won't be yet another retry, so also extract national prefix here. 21185 this.extractNationalSignificantNumber( 21186 state.getNationalDigits(), 21187 function (stateUpdate) { 21188 return state.update(stateUpdate); 21189 } 21190 ); 21191 } 21192 }, 21193 }, 21194 ]); 21195 21196 return AsYouTypeParser; 21197 })(); 21198 /** 21199 * Extracts formatted phone number from text (if there's any). 21200 * @param {string} text 21201 * @return {string} [formattedPhoneNumber] 21202 */ 21203 21204 function AsYouTypeParser_extractFormattedPhoneNumber(text) { 21205 // Attempt to extract a possible number from the string passed in. 21206 var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART); 21207 21208 if (startsAt < 0) { 21209 return; 21210 } // Trim everything to the left of the phone number. 21211 21212 text = text.slice(startsAt); // Trim the `+`. 21213 21214 var hasPlus; 21215 21216 if (text[0] === '+') { 21217 hasPlus = true; 21218 text = text.slice('+'.length); 21219 } // Trim everything to the right of the phone number. 21220 21221 text = text.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN, ''); // Re-add the previously trimmed `+`. 21222 21223 if (hasPlus) { 21224 text = '+' + text; 21225 } 21226 21227 return text; 21228 } 21229 /** 21230 * Extracts formatted phone number digits (and a `+`) from text (if there're any). 21231 * @param {string} text 21232 * @return {any[]} 21233 */ 21234 21235 function _extractFormattedDigitsAndPlus(text) { 21236 // Extract a formatted phone number part from text. 21237 var extractedNumber = 21238 AsYouTypeParser_extractFormattedPhoneNumber(text) || ''; // Trim a `+`. 21239 21240 if (extractedNumber[0] === '+') { 21241 return [extractedNumber.slice('+'.length), true]; 21242 } 21243 21244 return [extractedNumber]; 21245 } 21246 /** 21247 * Extracts formatted phone number digits (and a `+`) from text (if there're any). 21248 * @param {string} text 21249 * @return {any[]} 21250 */ 21251 21252 function extractFormattedDigitsAndPlus(text) { 21253 var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text), 21254 _extractFormattedDigi4 = AsYouTypeParser_slicedToArray( 21255 _extractFormattedDigi3, 21256 2 21257 ), 21258 formattedDigits = _extractFormattedDigi4[0], 21259 hasPlus = _extractFormattedDigi4[1]; // If the extracted phone number part 21260 // can possibly be a part of some valid phone number 21261 // then parse phone number characters from a formatted phone number. 21262 21263 if ( 21264 !VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test( 21265 formattedDigits 21266 ) 21267 ) { 21268 formattedDigits = ''; 21269 } 21270 21271 return [formattedDigits, hasPlus]; 21272 } 21273 //# sourceMappingURL=AsYouTypeParser.js.map 21274 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/es6/AsYouType.js 21275 function AsYouType_typeof(obj) { 21276 '@babel/helpers - typeof'; 21277 return ( 21278 (AsYouType_typeof = 21279 'function' == typeof Symbol && 21280 'symbol' == typeof Symbol.iterator 21281 ? function (obj) { 21282 return typeof obj; 21283 } 21284 : function (obj) { 21285 return obj && 21286 'function' == typeof Symbol && 21287 obj.constructor === Symbol && 21288 obj !== Symbol.prototype 21289 ? 'symbol' 21290 : typeof obj; 21291 }), 21292 AsYouType_typeof(obj) 21293 ); 21294 } 21295 21296 function AsYouType_slicedToArray(arr, i) { 21297 return ( 21298 AsYouType_arrayWithHoles(arr) || 21299 AsYouType_iterableToArrayLimit(arr, i) || 21300 AsYouType_unsupportedIterableToArray(arr, i) || 21301 AsYouType_nonIterableRest() 21302 ); 21303 } 21304 21305 function AsYouType_nonIterableRest() { 21306 throw new TypeError(
vendor: 8,350 bytes, lines 21307-21520
21307 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 21308 ); 21309 } 21310 21311 function AsYouType_unsupportedIterableToArray(o, minLen) { 21312 if (!o) return; 21313 if (typeof o === 'string') 21314 return AsYouType_arrayLikeToArray(o, minLen); 21315 var n = Object.prototype.toString.call(o).slice(8, -1); 21316 if (n === 'Object' && o.constructor) n = o.constructor.name; 21317 if (n === 'Map' || n === 'Set') return Array.from(o); 21318 if ( 21319 n === 'Arguments' || 21320 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 21321 ) 21322 return AsYouType_arrayLikeToArray(o, minLen); 21323 } 21324 21325 function AsYouType_arrayLikeToArray(arr, len) { 21326 if (len == null || len > arr.length) len = arr.length; 21327 for (var i = 0, arr2 = new Array(len); i < len; i++) { 21328 arr2[i] = arr[i]; 21329 } 21330 return arr2; 21331 } 21332 21333 function AsYouType_iterableToArrayLimit(arr, i) { 21334 var _i = 21335 arr == null 21336 ? null 21337 : (typeof Symbol !== 'undefined' && arr[Symbol.iterator]) || 21338 arr['@@iterator']; 21339 if (_i == null) return; 21340 var _arr = []; 21341 var _n = true; 21342 var _d = false; 21343 var _s, _e; 21344 try { 21345 for ( 21346 _i = _i.call(arr); 21347 !(_n = (_s = _i.next()).done); 21348 _n = true 21349 ) { 21350 _arr.push(_s.value); 21351 if (i && _arr.length === i) break; 21352 } 21353 } catch (err) { 21354 _d = true; 21355 _e = err; 21356 } finally { 21357 try { 21358 if (!_n && _i['return'] != null) _i['return'](); 21359 } finally { 21360 if (_d) throw _e; 21361 } 21362 } 21363 return _arr; 21364 } 21365 21366 function AsYouType_arrayWithHoles(arr) { 21367 if (Array.isArray(arr)) return arr; 21368 } 21369 21370 function AsYouType_classCallCheck(instance, Constructor) { 21371 if (!(instance instanceof Constructor)) { 21372 throw new TypeError('Cannot call a class as a function'); 21373 } 21374 } 21375 21376 function AsYouType_defineProperties(target, props) { 21377 for (var i = 0; i < props.length; i++) { 21378 var descriptor = props[i]; 21379 descriptor.enumerable = descriptor.enumerable || false; 21380 descriptor.configurable = true; 21381 if ('value' in descriptor) descriptor.writable = true; 21382 Object.defineProperty(target, descriptor.key, descriptor); 21383 } 21384 } 21385 21386 function AsYouType_createClass(Constructor, protoProps, staticProps) { 21387 if (protoProps) 21388 AsYouType_defineProperties(Constructor.prototype, protoProps); 21389 if (staticProps) 21390 AsYouType_defineProperties(Constructor, staticProps); 21391 Object.defineProperty(Constructor, 'prototype', { 21392 writable: false, 21393 }); 21394 return Constructor; 21395 } 21396 21397 var AsYouType_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; 21398 21399 var AsYouType_AsYouType = /*#__PURE__*/ (function () { 21400 /** 21401 * @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object. 21402 * @param {Object} metadata 21403 */ 21404 function AsYouType(optionsOrDefaultCountry, metadata) { 21405 AsYouType_classCallCheck(this, AsYouType); 21406 21407 this.metadata = new Metadata(metadata); 21408 21409 var _this$getCountryAndCa = this.getCountryAndCallingCode( 21410 optionsOrDefaultCountry 21411 ), 21412 _this$getCountryAndCa2 = AsYouType_slicedToArray( 21413 _this$getCountryAndCa, 21414 2 21415 ), 21416 defaultCountry = _this$getCountryAndCa2[0], 21417 defaultCallingCode = _this$getCountryAndCa2[1]; 21418 21419 this.defaultCountry = defaultCountry; 21420 this.defaultCallingCode = defaultCallingCode; 21421 this.reset(); 21422 } 21423 21424 AsYouType_createClass(AsYouType, [ 21425 { 21426 key: 'getCountryAndCallingCode', 21427 value: function getCountryAndCallingCode( 21428 optionsOrDefaultCountry 21429 ) { 21430 // Set `defaultCountry` and `defaultCallingCode` options. 21431 var defaultCountry; 21432 var defaultCallingCode; // Turns out `null` also has type "object". Weird. 21433 21434 if (optionsOrDefaultCountry) { 21435 if ( 21436 AsYouType_typeof(optionsOrDefaultCountry) === 'object' 21437 ) { 21438 defaultCountry = optionsOrDefaultCountry.defaultCountry; 21439 defaultCallingCode = 21440 optionsOrDefaultCountry.defaultCallingCode; 21441 } else { 21442 defaultCountry = optionsOrDefaultCountry; 21443 } 21444 } 21445 21446 if ( 21447 defaultCountry && 21448 !this.metadata.hasCountry(defaultCountry) 21449 ) { 21450 defaultCountry = undefined; 21451 } 21452 21453 if (defaultCallingCode) { 21454 /* istanbul ignore if */ 21455 if (AsYouType_USE_NON_GEOGRAPHIC_COUNTRY_CODE) { 21456 if ( 21457 this.metadata.isNonGeographicCallingCode( 21458 defaultCallingCode 21459 ) 21460 ) { 21461 defaultCountry = '001'; 21462 } 21463 } 21464 } 21465 21466 return [defaultCountry, defaultCallingCode]; 21467 }, 21468 /** 21469 * Inputs "next" phone number characters. 21470 * @param {string} text 21471 * @return {string} Formatted phone number characters that have been input so far. 21472 */ 21473 }, 21474 { 21475 key: 'input', 21476 value: function input(text) { 21477 var _this$parser$input = this.parser.input(text, this.state), 21478 digits = _this$parser$input.digits, 21479 justLeadingPlus = _this$parser$input.justLeadingPlus; 21480 21481 if (justLeadingPlus) { 21482 this.formattedOutput = '+'; 21483 } else if (digits) { 21484 this.determineTheCountryIfNeeded(); // Match the available formats by the currently available leading digits. 21485 21486 if (this.state.nationalSignificantNumber) { 21487 this.formatter.narrowDownMatchingFormats(this.state); 21488 } 21489 21490 var formattedNationalNumber; 21491 21492 if (this.metadata.hasSelectedNumberingPlan()) { 21493 formattedNationalNumber = this.formatter.format( 21494 digits, 21495 this.state 21496 ); 21497 } 21498 21499 if (formattedNationalNumber === undefined) { 21500 // See if another national (significant) number could be re-extracted. 21501 if ( 21502 this.parser.reExtractNationalSignificantNumber( 21503 this.state 21504 ) 21505 ) { 21506 this.determineTheCountryIfNeeded(); // If it could, then re-try formatting the new national (significant) number. 21507 21508 var nationalDigits = this.state.getNationalDigits(); 21509 21510 if (nationalDigits) { 21511 formattedNationalNumber = this.formatter.format( 21512 nationalDigits, 21513 this.state 21514 ); 21515 } 21516 } 21517 } 21518 21519 this.formattedOutput = formattedNationalNumber 21520 ? this.getFullNumber(formattedNationalNumber)
21521 : this.getNonFormattedNumber(); 21522 } 21523 21524 return this.formattedOutput; 21525 }, 21526 }, 21527 { 21528 key: 'reset', 21529 value: function reset() { 21530 var _this = this; 21531 21532 this.state = new AsYouTypeState({ 21533 onCountryChange: function onCountryChange(country) { 21534 // Before version `1.6.0`, the official `AsYouType` formatter API 21535 // included the `.country` property of an `AsYouType` instance. 21536 // Since that property (along with the others) have been moved to 21537 // `this.state`, `this.country` property is emulated for compatibility 21538 // with the old versions. 21539 _this.country = country; 21540 }, 21541 onCallingCodeChange: function onCallingCodeChange( 21542 callingCode, 21543 country 21544 ) { 21545 _this.metadata.selectNumberingPlan(country, callingCode); 21546 21547 _this.formatter.reset( 21548 _this.metadata.numberingPlan, 21549 _this.state 21550 ); 21551 21552 _this.parser.reset(_this.metadata.numberingPlan); 21553 }, 21554 }); 21555 this.formatter = new AsYouTypeFormatter_AsYouTypeFormatter({ 21556 state: this.state, 21557 metadata: this.metadata, 21558 }); 21559 this.parser = new AsYouTypeParser_AsYouTypeParser({ 21560 defaultCountry: this.defaultCountry, 21561 defaultCallingCode: this.defaultCallingCode, 21562 metadata: this.metadata, 21563 state: this.state, 21564 onNationalSignificantNumberChange: 21565 function onNationalSignificantNumberChange() { 21566 _this.determineTheCountryIfNeeded(); 21567 21568 _this.formatter.reset( 21569 _this.metadata.numberingPlan, 21570 _this.state 21571 ); 21572 }, 21573 }); 21574 this.state.reset( 21575 this.defaultCountry, 21576 this.defaultCallingCode 21577 ); 21578 this.formattedOutput = ''; 21579 return this; 21580 }, 21581 /** 21582 * Returns `true` if the phone number is being input in international format. 21583 * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`. 21584 * @return {boolean} 21585 */ 21586 }, 21587 { 21588 key: 'isInternational', 21589 value: function isInternational() { 21590 return this.state.international; 21591 }, 21592 /** 21593 * Returns the "calling code" part of the phone number when it's being input 21594 * in an international format. 21595 * If no valid calling code has been entered so far, returns `undefined`. 21596 * @return {string} [callingCode] 21597 */ 21598 }, 21599 { 21600 key: 'getCallingCode', 21601 value: function getCallingCode() { 21602 // If the number is being input in national format and some "default calling code" 21603 // has been passed to `AsYouType` constructor, then `this.state.callingCode` 21604 // is equal to that "default calling code". 21605 // 21606 // If the number is being input in national format and no "default calling code" 21607 // has been passed to `AsYouType` constructor, then returns `undefined`, 21608 // even if a "default country" has been passed to `AsYouType` constructor. 21609 // 21610 if (this.isInternational()) { 21611 return this.state.callingCode; 21612 } 21613 }, // A legacy alias. 21614 }, 21615 { 21616 key: 'getCountryCallingCode', 21617 value: function getCountryCallingCode() { 21618 return this.getCallingCode(); 21619 }, 21620 /** 21621 * Returns a two-letter country code of the phone number. 21622 * Returns `undefined` for "non-geographic" phone numbering plans. 21623 * Returns `undefined` if no phone number has been input yet. 21624 * @return {string} [country] 21625 */ 21626 }, 21627 { 21628 key: 'getCountry', 21629 value: function getCountry() { 21630 var digits = this.state.digits; // Return `undefined` if no digits have been input yet. 21631 21632 if (digits) { 21633 return this._getCountry(); 21634 } 21635 }, 21636 /** 21637 * Returns a two-letter country code of the phone number. 21638 * Returns `undefined` for "non-geographic" phone numbering plans. 21639 * @return {string} [country] 21640 */ 21641 }, 21642 { 21643 key: '_getCountry', 21644 value: function _getCountry() { 21645 var country = this.state.country; 21646 /* istanbul ignore if */ 21647 21648 if (AsYouType_USE_NON_GEOGRAPHIC_COUNTRY_CODE) { 21649 // `AsYouType.getCountry()` returns `undefined` 21650 // for "non-geographic" phone numbering plans. 21651 if (country === '001') { 21652 return; 21653 } 21654 } 21655 21656 return country; 21657 }, 21658 }, 21659 { 21660 key: 'determineTheCountryIfNeeded', 21661 value: function determineTheCountryIfNeeded() {
21662 // Suppose a user enters a phone number in international format, 21663 // and there're several countries corresponding to that country calling code, 21664 // and a country has been derived from the number, and then 21665 // a user enters one more digit and the number is no longer 21666 // valid for the derived country, so the country should be re-derived 21667 // on every new digit in those cases. 21668 // 21669 // If the phone number is being input in national format, 21670 // then it could be a case when `defaultCountry` wasn't specified 21671 // when creating `AsYouType` instance, and just `defaultCallingCode` was specified, 21672 // and that "calling code" could correspond to a "non-geographic entity", 21673 // or there could be several countries corresponding to that country calling code. 21674 // In those cases, `this.country` is `undefined` and should be derived 21675 // from the number. Again, if country calling code is ambiguous, then 21676 // `this.country` should be re-derived with each new digit. 21677 // 21678 if ( 21679 !this.state.country || 21680 this.isCountryCallingCodeAmbiguous() 21681 ) { 21682 this.determineTheCountry(); 21683 } 21684 }, // Prepends `+CountryCode ` in case of an international phone number 21685 }, 21686 { 21687 key: 'getFullNumber', 21688 value: function getFullNumber(formattedNationalNumber) { 21689 var _this2 = this; 21690 21691 if (this.isInternational()) { 21692 var prefix = function prefix(text) { 21693 return ( 21694 _this2.formatter.getInternationalPrefixBeforeCountryCallingCode( 21695 _this2.state, 21696 { 21697 spacing: text ? true : false, 21698 } 21699 ) + text 21700 ); 21701 }; 21702 21703 var callingCode = this.state.callingCode; 21704 21705 if (!callingCode) { 21706 return prefix( 21707 ''.concat( 21708 this.state.getDigitsWithoutInternationalPrefix() 21709 ) 21710 ); 21711 } 21712 21713 if (!formattedNationalNumber) { 21714 return prefix(callingCode); 21715 } 21716 21717 return prefix( 21718 '' 21719 .concat(callingCode, ' ') 21720 .concat(formattedNationalNumber) 21721 ); 21722 } 21723 21724 return formattedNationalNumber; 21725 }, 21726 }, 21727 { 21728 key: 'getNonFormattedNationalNumberWithPrefix', 21729 value: function getNonFormattedNationalNumberWithPrefix() { 21730 var _this$state = this.state, 21731 nationalSignificantNumber = 21732 _this$state.nationalSignificantNumber, 21733 complexPrefixBeforeNationalSignificantNumber = 21734 _this$state.complexPrefixBeforeNationalSignificantNumber, 21735 nationalPrefix = _this$state.nationalPrefix; 21736 var number = nationalSignificantNumber; 21737 var prefix = 21738 complexPrefixBeforeNationalSignificantNumber || 21739 nationalPrefix; 21740 21741 if (prefix) { 21742 number = prefix + number; 21743 } 21744 21745 return number; 21746 }, 21747 }, 21748 { 21749 key: 'getNonFormattedNumber', 21750 value: function getNonFormattedNumber() { 21751 var nationalSignificantNumberMatchesInput = 21752 this.state.nationalSignificantNumberMatchesInput; 21753 return this.getFullNumber( 21754 nationalSignificantNumberMatchesInput
21755 ? this.getNonFormattedNationalNumberWithPrefix() 21756 : this.state.getNationalDigits() 21757 ); 21758 }, 21759 }, 21760 { 21761 key: 'getNonFormattedTemplate', 21762 value: function getNonFormattedTemplate() { 21763 var number = this.getNonFormattedNumber(); 21764 21765 if (number) { 21766 return number.replace(/[\+\d]/g, DIGIT_PLACEHOLDER); 21767 } 21768 }, 21769 }, 21770 { 21771 key: 'isCountryCallingCodeAmbiguous', 21772 value: function isCountryCallingCodeAmbiguous() { 21773 var callingCode = this.state.callingCode; 21774 var countryCodes = 21775 this.metadata.getCountryCodesForCallingCode(callingCode); 21776 return countryCodes && countryCodes.length > 1; 21777 }, // Determines the country of the phone number 21778 // entered so far based on the country phone code 21779 // and the national phone number. 21780 }, 21781 { 21782 key: 'determineTheCountry', 21783 value: function determineTheCountry() { 21784 this.state.setCountry( 21785 getCountryByCallingCode( 21786 this.isInternational() 21787 ? this.state.callingCode 21788 : this.defaultCallingCode, 21789 this.state.nationalSignificantNumber, 21790 this.metadata 21791 ) 21792 ); 21793 }, 21794 /** 21795 * Returns a E.164 phone number value for the user's input. 21796 * 21797 * For example, for country `"US"` and input `"(222) 333-4444"` 21798 * it will return `"+12223334444"`. 21799 * 21800 * For international phone number input, it will also auto-correct 21801 * some minor errors such as using a national prefix when writing 21802 * an international phone number. For example, if the user inputs 21803 * `"+44 0 7400 000000"` then it will return an auto-corrected 21804 * `"+447400000000"` phone number value. 21805 * 21806 * Will return `undefined` if no digits have been input, 21807 * or when inputting a phone number in national format and no 21808 * default country or default "country calling code" have been set. 21809 * 21810 * @return {string} [value] 21811 */ 21812 }, 21813 { 21814 key: 'getNumberValue', 21815 value: function getNumberValue() { 21816 var _this$state2 = this.state, 21817 digits = _this$state2.digits, 21818 callingCode = _this$state2.callingCode, 21819 country = _this$state2.country, 21820 nationalSignificantNumber = 21821 _this$state2.nationalSignificantNumber; // Will return `undefined` if no digits have been input. 21822 21823 if (!digits) { 21824 return; 21825 } 21826 21827 if (this.isInternational()) { 21828 if (callingCode) { 21829 return '+' + callingCode + nationalSignificantNumber; 21830 } else { 21831 return '+' + digits; 21832 } 21833 } else { 21834 if (country || callingCode) { 21835 var callingCode_ = country 21836 ? this.metadata.countryCallingCode() 21837 : callingCode; 21838 return '+' + callingCode_ + nationalSignificantNumber; 21839 } 21840 } 21841 }, 21842 /** 21843 * Returns an instance of `PhoneNumber` class. 21844 * Will return `undefined` if no national (significant) number 21845 * digits have been entered so far, or if no `defaultCountry` has been 21846 * set and the user enters a phone number not in international format. 21847 */ 21848 }, 21849 { 21850 key: 'getNumber', 21851 value: function getNumber() { 21852 var _this$state3 = this.state, 21853 nationalSignificantNumber = 21854 _this$state3.nationalSignificantNumber, 21855 carrierCode = _this$state3.carrierCode, 21856 callingCode = _this$state3.callingCode; // `this._getCountry()` is basically same as `this.state.country` 21857 // with the only change that it return `undefined` in case of a 21858 // "non-geographic" numbering plan instead of `"001"` "internal use" value. 21859 21860 var country = this._getCountry(); 21861 21862 if (!nationalSignificantNumber) { 21863 return; 21864 } 21865 21866 if (!country && !callingCode) { 21867 return; 21868 } 21869 21870 var phoneNumber = new PhoneNumber_PhoneNumber( 21871 country || callingCode, 21872 nationalSignificantNumber, 21873 this.metadata.metadata 21874 ); 21875 21876 if (carrierCode) { 21877 phoneNumber.carrierCode = carrierCode; 21878 } // Phone number extensions are not supported by "As You Type" formatter. 21879 21880 return phoneNumber; 21881 }, 21882 /** 21883 * Returns `true` if the phone number is "possible". 21884 * Is just a shortcut for `PhoneNumber.isPossible()`. 21885 * @return {boolean} 21886 */ 21887 }, 21888 { 21889 key: 'isPossible', 21890 value: function isPossible() { 21891 var phoneNumber = this.getNumber(); 21892 21893 if (!phoneNumber) { 21894 return false;
21895 } 21896 21897 return phoneNumber.isPossible(); 21898 }, 21899 /** 21900 * Returns `true` if the phone number is "valid". 21901 * Is just a shortcut for `PhoneNumber.isValid()`. 21902 * @return {boolean} 21903 */ 21904 }, 21905 { 21906 key: 'isValid', 21907 value: function isValid() { 21908 var phoneNumber = this.getNumber(); 21909 21910 if (!phoneNumber) { 21911 return false; 21912 } 21913 21914 return phoneNumber.isValid(); 21915 }, 21916 /** 21917 * @deprecated 21918 * This method is used in `react-phone-number-input/source/input-control.js` 21919 * in versions before `3.0.16`. 21920 */ 21921 }, 21922 { 21923 key: 'getNationalNumber', 21924 value: function getNationalNumber() { 21925 return this.state.nationalSignificantNumber; 21926 }, 21927 /** 21928 * Returns the phone number characters entered by the user. 21929 * @return {string} 21930 */ 21931 }, 21932 { 21933 key: 'getChars', 21934 value: function getChars() { 21935 return ( 21936 (this.state.international ? '+' : '') + this.state.digits 21937 ); 21938 }, 21939 /** 21940 * Returns the template for the formatted phone number. 21941 * @return {string} 21942 */ 21943 }, 21944 { 21945 key: 'getTemplate', 21946 value: function getTemplate() { 21947 return ( 21948 this.formatter.getTemplate(this.state) || 21949 this.getNonFormattedTemplate() || 21950 '' 21951 ); 21952 }, 21953 }, 21954 ]); 21955 21956 return AsYouType; 21957 })(); 21958 21959 //# sourceMappingURL=AsYouType.js.map 21960 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/min/exports/AsYouType.js 21961 // Importing from a ".js" file is a workaround for Node.js "ES Modules" 21962 // importing system which is even uncapable of importing "*.json" files. 21963 21964 function exports_AsYouType_AsYouType(country) { 21965 return AsYouType_AsYouType.call(this, country, metadata_min_json); 21966 } 21967 21968 exports_AsYouType_AsYouType.prototype = Object.create( 21969 AsYouType_AsYouType.prototype, 21970 {} 21971 ); 21972 exports_AsYouType_AsYouType.prototype.constructor = 21973 exports_AsYouType_AsYouType; 21974 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"23eda527-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/InputTel/index.vue?vue&type=template&id=e59be3b4&scoped=true& 21975 var InputTelvue_type_template_id_e59be3b4_scoped_true_render = 21976 function () { 21977 var _vm = this; 21978 var _h = _vm.$createElement; 21979 var _c = _vm._self._c || _h; 21980 return _c( 21981 'div', 21982 { 21983 ref: 'parent', 21984 staticClass: 'input-tel', 21985 class: [ 21986 { 21987 'is-focused': _vm.isFocus, 21988 'is-valid': _vm.valid, 21989 'has-value': _vm.value, 21990 'has-error': _vm.error, 21991 'is-disabled': _vm.disabled, 21992 'is-dark': _vm.dark, 21993 'has-hint': _vm.hint, 21994 }, 21995 _vm.size, 21996 ], 21997 on: { 21998 click: _vm.focusInput, 21999 mouseenter: function ($event) { 22000 return _vm.updateHoverState(true); 22001 }, 22002 mouseleave: function ($event) { 22003 return _vm.updateHoverState(false); 22004 }, 22005 }, 22006 }, 22007 [ 22008 _vm.type === 'checkbox' 22009 ? _c( 22010 'input', 22011 _vm._b( 22012 { 22013 directives: [ 22014 { 22015 name: 'model', 22016 rawName: 'v-model', 22017 value: _vm.inputValue, 22018 expression: 'inputValue', 22019 }, 22020 ], 22021 ref: 'InputTel', 22022 staticClass: 'input-tel__input', 22023 class: { 22024 'no-country-selector': _vm.noCountrySelector, 22025 }, 22026 style: [ 22027 _vm.noCountrySelector 22028 ? _vm.radiusStyle 22029 : _vm.radiusRightStyle, 22030 _vm.inputCaretStyle, 22031 _vm.inputBorderStyle, 22032 _vm.inputBoxShadowStyle, 22033 _vm.inputBgColor, 22034 _vm.textColor, 22035 ], 22036 attrs: { 22037 id: _vm.id, 22038 placeholder: _vm.labelValue, 22039 disabled: _vm.disabled, 22040 required: _vm.required, 22041 type: 'checkbox', 22042 }, 22043 domProps: { 22044 checked: Array.isArray(_vm.inputValue) 22045 ? _vm._i(_vm.inputValue, null) > -1 22046 : _vm.inputValue, 22047 }, 22048 on: { 22049 keydown: _vm.keyDown, 22050 keyup: _vm.keyUp, 22051 focus: _vm.onFocus, 22052 blur: _vm.onBlur, 22053 click: function ($event) { 22054 return _vm.$emit('click', $event); 22055 }, 22056 change: function ($event) { 22057 var $$a = _vm.inputValue, 22058 $$el = $event.target, 22059 $$c = $$el.checked ? true : false;
22060 if (Array.isArray($$a)) { 22061 var $$v = null, 22062 $$i = _vm._i($$a, $$v); 22063 if ($$el.checked) { 22064 $$i < 0 && 22065 (_vm.inputValue = $$a.concat([$$v])); 22066 } else { 22067 $$i > -1 && 22068 (_vm.inputValue = $$a 22069 .slice(0, $$i) 22070 .concat($$a.slice($$i + 1))); 22071 } 22072 } else { 22073 _vm.inputValue = $$c; 22074 } 22075 }, 22076 }, 22077 }, 22078 'input', 22079 _vm.$attrs, 22080 false 22081 ) 22082 ) 22083 : _vm.type === 'radio' 22084 ? _c( 22085 'input', 22086 _vm._b( 22087 { 22088 directives: [ 22089 { 22090 name: 'model', 22091 rawName: 'v-model', 22092 value: _vm.inputValue, 22093 expression: 'inputValue', 22094 }, 22095 ], 22096 ref: 'InputTel', 22097 staticClass: 'input-tel__input', 22098 class: { 22099 'no-country-selector': _vm.noCountrySelector, 22100 }, 22101 style: [ 22102 _vm.noCountrySelector 22103 ? _vm.radiusStyle 22104 : _vm.radiusRightStyle, 22105 _vm.inputCaretStyle, 22106 _vm.inputBorderStyle, 22107 _vm.inputBoxShadowStyle, 22108 _vm.inputBgColor, 22109 _vm.textColor, 22110 ], 22111 attrs: { 22112 id: _vm.id, 22113 placeholder: _vm.labelValue, 22114 disabled: _vm.disabled, 22115 required: _vm.required, 22116 type: 'radio', 22117 }, 22118 domProps: { 22119 checked: _vm._q(_vm.inputValue, null), 22120 }, 22121 on: { 22122 keydown: _vm.keyDown, 22123 keyup: _vm.keyUp, 22124 focus: _vm.onFocus, 22125 blur: _vm.onBlur, 22126 click: function ($event) { 22127 return _vm.$emit('click', $event); 22128 }, 22129 change: function ($event) { 22130 _vm.inputValue = null; 22131 }, 22132 }, 22133 }, 22134 'input', 22135 _vm.$attrs, 22136 false 22137 ) 22138 ) 22139 : _c( 22140 'input', 22141 _vm._b( 22142 { 22143 directives: [ 22144 { 22145 name: 'model', 22146 rawName: 'v-model', 22147 value: _vm.inputValue, 22148 expression: 'inputValue', 22149 }, 22150 ], 22151 ref: 'InputTel', 22152 staticClass: 'input-tel__input', 22153 class: { 22154 'no-country-selector': _vm.noCountrySelector, 22155 }, 22156 style: [ 22157 _vm.noCountrySelector 22158 ? _vm.radiusStyle 22159 : _vm.radiusRightStyle, 22160 _vm.inputCaretStyle, 22161 _vm.inputBorderStyle, 22162 _vm.inputBoxShadowStyle, 22163 _vm.inputBgColor, 22164 _vm.textColor, 22165 ], 22166 attrs: { 22167 id: _vm.id, 22168 placeholder: _vm.labelValue, 22169 disabled: _vm.disabled, 22170 required: _vm.required, 22171 type: _vm.type, 22172 }, 22173 domProps: { value: _vm.inputValue }, 22174 on: { 22175 keydown: _vm.keyDown, 22176 keyup: _vm.keyUp, 22177 focus: _vm.onFocus, 22178 blur: _vm.onBlur, 22179 click: function ($event) { 22180 return _vm.$emit('click', $event); 22181 }, 22182 input: function ($event) { 22183 if ($event.target.composing) { 22184 return; 22185 } 22186 _vm.inputValue = $event.target.value; 22187 }, 22188 }, 22189 }, 22190 'input', 22191 _vm.$attrs, 22192 false 22193 ) 22194 ), 22195 _c( 22196 'label', 22197 { 22198 ref: 'label', 22199 staticClass: 'input-tel__label', 22200 class: _vm.error ? 'text-danger' : null, 22201 style: [_vm.labelColorStyle], 22202 attrs: { for: _vm.id }, 22203 on: { click: _vm.focusInput }, 22204 }, 22205 [ 22206 _vm._v( 22207 ' ' + _vm._s(_vm.hintValue || _vm.labelValue) + ' ' 22208 ), 22209 ] 22210 ), 22211 _vm.clearable && _vm.inputValue 22212 ? _c( 22213 'button', 22214 { 22215 staticClass: 'input-tel__clear', 22216 attrs: { 22217 title: 'clear', 22218 type: 'button', 22219 tabindex: '-1', 22220 }, 22221 on: { click: _vm.clear }, 22222 }, 22223 [ 22224 _c('span', { 22225 staticClass: 'input-tel__clear__effect', 22226 }), 22227 _c('span', [_vm._v(' â ')]), 22228 ] 22229 ) 22230 : _vm._e(), 22231 _vm.loader 22232 ? _c('div', { staticClass: 'input-tel__loader' }, [ 22233 _c('div', { 22234 staticClass: 'input-tel__loader__progress-bar', 22235 style: [_vm.loaderBgColor], 22236 }), 22237 ]) 22238 : _vm._e(), 22239 ] 22240 ); 22241 }; 22242 var InputTelvue_type_template_id_e59be3b4_scoped_true_staticRenderFns = 22243 []; 22244 22245 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/InputTel/index.vue?vue&type=template&id=e59be3b4&scoped=true& 22246 22247 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/mixins/StylesHandler.js 22248 /* harmony default export */ var StylesHandler = { 22249 props: { 22250 theme: { 22251 type: Object, 22252 required: true, 22253 }, 22254 }, 22255 computed: { 22256 labelColorStyle: function labelColorStyle() { 22257 if (this.error) return this.theme.errorColor; 22258 else if (this.valid) return this.theme.validColor; 22259 else if (this.isFocus) return this.theme.color; 22260 else if (this.dark) return this.theme.textDarkColor; 22261 return null; 22262 }, 22263 inputBorderStyle: function inputBorderStyle() { 22264 if (this.error) return this.theme.borderErrorColor; 22265 else if (this.valid) return this.theme.borderValidColor; 22266 else if (this.isHover || this.isFocus) 22267 return this.theme.borderColor; 22268 return null; 22269 }, 22270 inputBoxShadowStyle: function inputBoxShadowStyle() { 22271 if (this.isFocus) { 22272 if (this.error) return this.theme.boxShadowError; 22273 else if (this.valid) return this.theme.boxShadowValid; 22274 return this.theme.boxShadowColor; 22275 } 22276 22277 return null; 22278 }, 22279 inputBgColor: function inputBgColor() { 22280 return !this.dark ? null : this.theme.bgDarkColor; 22281 }, 22282 textColor: function textColor() { 22283 return this.dark ? this.theme.textDarkColor : null; 22284 }, 22285 inputCaretStyle: function inputCaretStyle() { 22286 return {
22287 caretColor: this.theme.colorValue, 22288 }; 22289 }, 22290 radiusStyle: function radiusStyle() { 22291 return this.theme.borderRadius; 22292 }, 22293 radiusLeftStyle: function radiusLeftStyle() { 22294 return this.theme.borderLeftRadius; 22295 }, 22296 radiusRightStyle: function radiusRightStyle() { 22297 return this.theme.borderRightRadius; 22298 }, 22299 bgItemSelectedStyle: function bgItemSelectedStyle() { 22300 return this.theme.bgColor; 22301 }, 22302 loaderBgColor: function loaderBgColor() { 22303 return this.theme.bgColor; 22304 }, 22305 }, 22306 }; 22307 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/InputTel/index.vue?vue&type=script&lang=js& 22308 22309 // 22310 // 22311 // 22312 // 22313 // 22314 // 22315 // 22316 // 22317 // 22318 // 22319 // 22320 // 22321 // 22322 // 22323 // 22324 // 22325 // 22326 // 22327 // 22328 // 22329 // 22330 // 22331 // 22332 // 22333 // 22334 // 22335 // 22336 // 22337 // 22338 // 22339 // 22340 // 22341 // 22342 // 22343 // 22344 // 22345 // 22346 // 22347 // 22348 // 22349 // 22350 // 22351 // 22352 // 22353 // 22354 // 22355 // 22356 // 22357 // 22358 // 22359 // 22360 // 22361 // 22362 // 22363 // 22364 // 22365 // 22366 // 22367 // 22368 // 22369 // 22370 // 22371 // 22372 // 22373 // 22374 // 22375 // 22376 // 22377 // 22378 // 22379 // 22380 // 22381 // 22382 // 22383 // 22384 // 22385 // 22386 // 22387 // 22388 22389 /* harmony default export */ var InputTelvue_type_script_lang_js_ = { 22390 name: 'InputTel', 22391 mixins: [StylesHandler], 22392 props: { 22393 value: { 22394 type: [String, Number], 22395 default: null, 22396 }, 22397 label: { 22398 type: String, 22399 default: 'Enter text', 22400 }, 22401 hint: { 22402 type: String, 22403 default: null, 22404 }, 22405 error: { 22406 type: Boolean, 22407 default: Boolean, 22408 }, 22409 disabled: { 22410 type: Boolean, 22411 default: false, 22412 }, 22413 dark: { 22414 type: Boolean, 22415 default: false, 22416 }, 22417 id: { 22418 type: String, 22419 default: 'InputTel', 22420 }, 22421 size: { 22422 type: String, 22423 default: null, 22424 }, 22425 type: { 22426 type: String, 22427 default: 'tel', 22428 }, 22429 readonly: { 22430 type: Boolean, 22431 default: false, 22432 }, 22433 valid: { 22434 type: Boolean, 22435 default: false, 22436 }, 22437 required: { 22438 type: Boolean, 22439 default: false, 22440 }, 22441 loader: { 22442 type: Boolean, 22443 default: false, 22444 }, 22445 clearable: { 22446 type: Boolean, 22447 default: false, 22448 }, 22449 noCountrySelector: { 22450 type: Boolean, 22451 default: false, 22452 }, 22453 }, 22454 data: function data() { 22455 return { 22456 isFocus: false, 22457 isHover: false, 22458 }; 22459 }, 22460 computed: { 22461 inputValue: { 22462 get: function get() { 22463 return this.value; 22464 }, 22465 set: function set(value) { 22466 this.$emit('input', value); 22467 }, 22468 }, 22469 labelValue: function labelValue() { 22470 var label = this.label; 22471 return this.required && label ? ''.concat(label, ' *') : label; 22472 }, 22473 hintValue: function hintValue() { 22474 var hint = this.hint; 22475 return this.required && hint ? ''.concat(hint, ' *') : hint; 22476 }, 22477 }, 22478 methods: { 22479 updateHoverState: function updateHoverState(value) { 22480 this.isHover = value; 22481 }, 22482 focusInput: function focusInput() { 22483 this.$refs.InputTel.focus(); 22484 }, 22485 onFocus: function onFocus() { 22486 this.$emit('focus'); 22487 this.isFocus = true; 22488 }, 22489 onBlur: function onBlur() { 22490 this.$emit('blur'); 22491 this.isFocus = false;
vendor: 4,897 bytes, lines 22492-22620
22492 }, 22493 clear: function clear() { 22494 this.$emit('input', null); 22495 this.$emit('clear'); 22496 }, 22497 keyUp: function keyUp(e) { 22498 this.$emit('keyup', e); 22499 }, 22500 keyDown: function keyDown(e) { 22501 this.$emit('keydown', e); 22502 }, 22503 }, 22504 }; 22505 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/InputTel/index.vue?vue&type=script&lang=js& 22506 /* harmony default export */ var VuePhoneNumberInput_InputTelvue_type_script_lang_js_ = 22507 InputTelvue_type_script_lang_js_; 22508 // EXTERNAL MODULE: ./src/VuePhoneNumberInput/InputTel/index.vue?vue&type=style&index=0&id=e59be3b4&prod&lang=scss&scoped=true& 22509 var InputTelvue_type_style_index_0_id_e59be3b4_prod_lang_scss_scoped_true_ = 22510 __webpack_require__('d499'); 22511 22512 // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 22513 /* globals __VUE_SSR_CONTEXT__ */ 22514 22515 // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 22516 // This module is a runtime utility for cleaner component module output and will 22517 // be included in the final webpack user bundle. 22518 22519 function normalizeComponent( 22520 scriptExports, 22521 render, 22522 staticRenderFns, 22523 functionalTemplate, 22524 injectStyles, 22525 scopeId, 22526 moduleIdentifier /* server only */, 22527 shadowMode /* vue-cli only */ 22528 ) { 22529 // Vue.extend constructor export interop 22530 var options = 22531 typeof scriptExports === 'function' 22532 ? scriptExports.options 22533 : scriptExports; 22534 22535 // render functions 22536 if (render) { 22537 options.render = render; 22538 options.staticRenderFns = staticRenderFns; 22539 options._compiled = true; 22540 } 22541 22542 // functional template 22543 if (functionalTemplate) { 22544 options.functional = true; 22545 } 22546 22547 // scopedId 22548 if (scopeId) { 22549 options._scopeId = 'data-v-' + scopeId; 22550 } 22551 22552 var hook; 22553 if (moduleIdentifier) { 22554 // server build 22555 hook = function (context) { 22556 // 2.3 injection 22557 context = 22558 context || // cached call 22559 (this.$vnode && this.$vnode.ssrContext) || // stateful 22560 (this.parent && 22561 this.parent.$vnode && 22562 this.parent.$vnode.ssrContext); // functional 22563 // 2.2 with runInNewContext: true 22564 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 22565 context = __VUE_SSR_CONTEXT__; 22566 } 22567 // inject component styles 22568 if (injectStyles) { 22569 injectStyles.call(this, context); 22570 } 22571 // register component module identifier for async chunk inferrence 22572 if (context && context._registeredComponents) { 22573 context._registeredComponents.add(moduleIdentifier); 22574 } 22575 }; 22576 // used by ssr in case component is cached and beforeCreate 22577 // never gets called 22578 options._ssrRegister = hook; 22579 } else if (injectStyles) { 22580 hook = shadowMode 22581 ? function () { 22582 injectStyles.call( 22583 this, 22584 (options.functional ? this.parent : this).$root.$options 22585 .shadowRoot 22586 ); 22587 } 22588 : injectStyles; 22589 } 22590 22591 if (hook) { 22592 if (options.functional) { 22593 // for template-only hot-reload because in that case the render fn doesn't 22594 // go through the normalizer 22595 options._injectStyles = hook; 22596 // register for functional component in vue file 22597 var originalRender = options.render; 22598 options.render = function renderWithStyleInjection(h, context) { 22599 hook.call(context); 22600 return originalRender(h, context); 22601 }; 22602 } else { 22603 // inject component registration as beforeCreate hook 22604 var existing = options.beforeCreate; 22605 options.beforeCreate = existing 22606 ? [].concat(existing, hook) 22607 : [hook]; 22608 } 22609 } 22610 22611 return { 22612 exports: scriptExports, 22613 options: options, 22614 }; 22615 } 22616 22617 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/InputTel/index.vue 22618 22619 /* normalize component */ 22620
22621 var component = normalizeComponent( 22622 VuePhoneNumberInput_InputTelvue_type_script_lang_js_, 22623 InputTelvue_type_template_id_e59be3b4_scoped_true_render, 22624 InputTelvue_type_template_id_e59be3b4_scoped_true_staticRenderFns, 22625 false, 22626 null, 22627 'e59be3b4', 22628 null 22629 ); 22630 22631 /* harmony default export */ var InputTel = component.exports; 22632 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"23eda527-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/CountrySelector/index.vue?vue&type=template&id=46e105de&scoped=true& 22633 var CountrySelectorvue_type_template_id_46e105de_scoped_true_render = 22634 function () { 22635 var _vm = this; 22636 var _h = _vm.$createElement; 22637 var _c = _vm._self._c || _h; 22638 return _c( 22639 'div', 22640 { 22641 ref: 'parent', 22642 staticClass: 'country-selector', 22643 class: [ 22644 { 22645 'is-focused': _vm.isFocus, 22646 'has-value': _vm.value, 22647 'has-hint': _vm.hint, 22648 'has-error': _vm.error, 22649 'is-disabled': _vm.disabled, 22650 'is-dark': _vm.dark, 22651 'no-flags': _vm.noFlags, 22652 'has-list-open': _vm.hasListOpen, 22653 'is-valid': _vm.valid, 22654 }, 22655 _vm.size, 22656 ], 22657 on: { 22658 '!blur': function ($event) { 22659 return _vm.handleBlur.apply(null, arguments); 22660 }, 22661 mouseenter: function ($event) { 22662 return _vm.updateHoverState(true); 22663 }, 22664 mouseleave: function ($event) { 22665 return _vm.updateHoverState(false); 22666 }, 22667 }, 22668 }, 22669 [ 22670 _vm.value && !_vm.noFlags 22671 ? _c( 22672 'div', 22673 { 22674 staticClass: 'country-selector__country-flag', 22675 on: { 22676 click: function ($event) { 22677 $event.stopPropagation(); 22678 return _vm.toggleList.apply(null, arguments); 22679 }, 22680 }, 22681 }, 22682 [ 22683 _c('div', { 22684 class: 22685 'iti-flag-small iti-flag ' + 22686 _vm.value.toLowerCase(), 22687 }), 22688 ] 22689 ) 22690 : _vm._e(), 22691 _c('input', { 22692 ref: 'CountrySelector', 22693 staticClass: 'country-selector__input', 22694 style: [ 22695 _vm.radiusLeftStyle, 22696 _vm.inputBorderStyle, 22697 _vm.inputBoxShadowStyle, 22698 _vm.inputBgColor, 22699 ], 22700 attrs: { 22701 id: _vm.id, 22702 placeholder: _vm.label, 22703 disabled: _vm.disabled, 22704 readonly: '', 22705 }, 22706 domProps: { value: _vm.callingCode }, 22707 on: { 22708 focus: function ($event) { 22709 _vm.isFocus = true; 22710 }, 22711 keydown: _vm.keyboardNav, 22712 click: function ($event) { 22713 $event.stopPropagation(); 22714 return _vm.toggleList.apply(null, arguments); 22715 }, 22716 }, 22717 }), 22718 _c( 22719 'div', 22720 { 22721 staticClass: 'country-selector__toggle', 22722 on: { 22723 click: function ($event) { 22724 $event.stopPropagation(); 22725 return _vm.toggleList.apply(null, arguments); 22726 }, 22727 }, 22728 }, 22729 [ 22730 _vm._t('arrow', function () { 22731 return [ 22732 _c( 22733 'svg', 22734 { 22735 staticClass: 'country-selector__toggle__arrow', 22736 attrs: { 22737 mlns: 'http://www.w3.org/2000/svg', 22738 width: '24', 22739 height: '24',
22740 viewBox: '0 0 24 24', 22741 }, 22742 }, 22743 [ 22744 _c('path', { 22745 staticClass: 'arrow', 22746 attrs: { 22747 d: 'M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z', 22748 }, 22749 }), 22750 _c('path', { 22751 attrs: { fill: 'none', d: 'M0 0h24v24H0V0z' }, 22752 }), 22753 ] 22754 ), 22755 ]; 22756 }), 22757 ], 22758 2 22759 ), 22760 _c( 22761 'label', 22762 { 22763 ref: 'label', 22764 staticClass: 'country-selector__label', 22765 style: [_vm.labelColorStyle], 22766 on: { 22767 click: function ($event) { 22768 $event.stopPropagation(); 22769 return _vm.toggleList.apply(null, arguments); 22770 }, 22771 }, 22772 }, 22773 [_vm._v(' ' + _vm._s(_vm.hint || _vm.label) + ' ')] 22774 ), 22775 _c('Transition', { attrs: { name: 'slide' } }, [ 22776 _c( 22777 'div', 22778 { 22779 directives: [ 22780 { 22781 name: 'show', 22782 rawName: 'v-show', 22783 value: _vm.hasListOpen, 22784 expression: 'hasListOpen', 22785 }, 22786 ], 22787 ref: 'countriesList', 22788 staticClass: 'country-selector__list', 22789 class: { 'has-calling-code': _vm.showCodeOnList }, 22790 style: [ 22791 _vm.radiusStyle, 22792 _vm.listHeight, 22793 _vm.inputBgColor, 22794 ], 22795 }, 22796 [ 22797 _c('RecycleScroller', { 22798 attrs: { 22799 items: _vm.countriesSorted, 22800 'item-size': 1, 22801 'key-field': 'iso2', 22802 }, 22803 scopedSlots: _vm._u([ 22804 { 22805 key: 'default', 22806 fn: function (ref) { 22807 var item = ref.item; 22808 return [ 22809 _c( 22810 'button', 22811 { 22812 key: 'item-' + item.code, 22813 staticClass: 22814 'flex align-center country-selector__list__item', 22815 class: [ 22816 { selected: _vm.value === item.iso2 }, 22817 { 22818 'keyboard-selected': 22819 _vm.value !== item.iso2 && 22820 _vm.tmpValue === item.iso2, 22821 }, 22822 ], 22823 style: [ 22824 _vm.itemHeight, 22825 _vm.value === item.iso2 22826 ? _vm.bgItemSelectedStyle 22827 : null, 22828 ], 22829 attrs: { tabindex: '-1', type: 'button' }, 22830 on: { 22831 click: function ($event) { 22832 $event.stopPropagation(); 22833 return _vm.updateValue(item.iso2); 22834 }, 22835 }, 22836 }, 22837 [ 22838 !_vm.noFlags 22839 ? _c( 22840 'div', 22841 { 22842 staticClass: 22843 'country-selector__list__item__flag-container', 22844 }, 22845 [ 22846 _c('div', { 22847 class: 22848 'iti-flag-small iti-flag ' + 22849 item.iso2.toLowerCase(), 22850 }), 22851 ] 22852 ) 22853 : _vm._e(), 22854 _vm.showCodeOnList 22855 ? _c( 22856 'span', 22857 { 22858 staticClass: 22859 'country-selector__list__item__calling-code flex-fixed', 22860 }, 22861 [ 22862 _vm._v( 22863 '+' + _vm._s(item.dialCode) 22864 ), 22865 ] 22866 ) 22867 : _vm._e(), 22868 _c('div', { staticClass: 'dots-text' }, [ 22869 _vm._v(' ' + _vm._s(item.name) + ' '), 22870 ]), 22871 ] 22872 ), 22873 ]; 22874 }, 22875 }, 22876 ]), 22877 }), 22878 ], 22879 1 22880 ), 22881 ]), 22882 ], 22883 1 22884 ); 22885 }; 22886 var CountrySelectorvue_type_template_id_46e105de_scoped_true_staticRenderFns = 22887 []; 22888 22889 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/CountrySelector/index.vue?vue&type=template&id=46e105de&scoped=true& 22890 22891 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js 22892 var es6_function_name = __webpack_require__('7f7f'); 22893 22894 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js 22895 var es6_string_starts_with = __webpack_require__('f559'); 22896 22897 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find-index.js 22898 var es6_array_find_index = __webpack_require__('20d6'); 22899 22900 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js 22901 var is_array = __webpack_require__('a745'); 22902 var is_array_default = /*#__PURE__*/ __webpack_require__.n(is_array); 22903 22904 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayLikeToArray.js 22905 function arrayLikeToArray_arrayLikeToArray(arr, len) { 22906 if (len == null || len > arr.length) len = arr.length; 22907 22908 for (var i = 0, arr2 = new Array(len); i < len; i++) { 22909 arr2[i] = arr[i]; 22910 } 22911 22912 return arr2; 22913 } 22914 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayWithoutHoles.js 22915 22916 function _arrayWithoutHoles(arr) { 22917 if (is_array_default()(arr)) 22918 return arrayLikeToArray_arrayLikeToArray(arr); 22919 } 22920 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js 22921 var from = __webpack_require__('774e'); 22922 var from_default = /*#__PURE__*/ __webpack_require__.n(from); 22923 22924 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/is-iterable.js 22925 var is_iterable = __webpack_require__('c8bb'); 22926 var is_iterable_default = 22927 /*#__PURE__*/ __webpack_require__.n(is_iterable); 22928 22929 // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/symbol.js 22930 var symbol = __webpack_require__('67bb'); 22931 var symbol_default = /*#__PURE__*/ __webpack_require__.n(symbol); 22932 22933 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/iterableToArray.js 22934 22935 function _iterableToArray(iter) { 22936 if ( 22937 typeof symbol_default.a !== 'undefined' && 22938 is_iterable_default()(Object(iter)) 22939 ) 22940 return from_default()(iter); 22941 } 22942 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/unsupportedIterableToArray.js 22943 22944 function unsupportedIterableToArray_unsupportedIterableToArray( 22945 o, 22946 minLen 22947 ) { 22948 if (!o) return; 22949 if (typeof o === 'string') 22950 return arrayLikeToArray_arrayLikeToArray(o, minLen); 22951 var n = Object.prototype.toString.call(o).slice(8, -1); 22952 if (n === 'Object' && o.constructor) n = o.constructor.name; 22953 if (n === 'Map' || n === 'Set') return from_default()(n); 22954 if ( 22955 n === 'Arguments' || 22956 /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) 22957 ) 22958 return arrayLikeToArray_arrayLikeToArray(o, minLen); 22959 } 22960 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/nonIterableSpread.js 22961 function _nonIterableSpread() { 22962 throw new TypeError( 22963 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' 22964 ); 22965 } 22966 // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/toConsumableArray.js 22967 22968 function _toConsumableArray(arr) { 22969 return ( 22970 _arrayWithoutHoles(arr) || 22971 _iterableToArray(arr) || 22972 unsupportedIterableToArray_unsupportedIterableToArray(arr) || 22973 _nonIterableSpread() 22974 ); 22975 } 22976 // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js 22977 var es6_array_find = __webpack_require__('7514'); 22978 22979 // CONCATENATED MODULE: ./node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js 22980 22981 function getCountryCallingCode_getCountryCallingCode() { 22982 return withMetadataArgument(getCountryCallingCode, arguments); 22983 } 22984 // EXTERNAL MODULE: ./node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js 22985 var vue_virtual_scroller_esm = __webpack_require__('e508'); 22986 22987 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/CountrySelector/index.vue?vue&type=script&lang=js& 22988 22989 // 22990 // 22991 // 22992 // 22993 // 22994 // 22995 // 22996 // 22997 // 22998 // 22999 // 23000 // 23001 // 23002 // 23003 // 23004 // 23005 // 23006 // 23007 // 23008 // 23009 // 23010 // 23011 // 23012 // 23013 // 23014 // 23015 // 23016 // 23017 // 23018 // 23019 // 23020 // 23021 // 23022 // 23023 // 23024 // 23025 // 23026 // 23027 // 23028 // 23029 // 23030 // 23031 // 23032 // 23033 // 23034 // 23035 // 23036 // 23037 // 23038 // 23039 // 23040 // 23041 // 23042 // 23043 // 23044 // 23045 // 23046 // 23047 // 23048 // 23049 // 23050 // 23051 // 23052 // 23053 // 23054 // 23055 // 23056 // 23057 // 23058 // 23059 // 23060 // 23061 // 23062 // 23063 // 23064 // 23065 // 23066 // 23067 // 23068 // 23069 // 23070 // 23071 // 23072 // 23073 // 23074 // 23075 // 23076 // 23077 // 23078 // 23079 // 23080 // 23081 // 23082 // 23083 // 23084 // 23085 // 23086 // 23087 // 23088 // 23089 // 23090 // 23091 // 23092 // 23093 // 23094 // 23095 // 23096 // 23097 // 23098 // 23099 // 23100 // 23101 // 23102 // 23103 // 23104 // 23105 // 23106 // 23107 // 23108 23109 /* harmony default export */ var CountrySelectorvue_type_script_lang_js_ = 23110 { 23111 name: 'CountrySelector', 23112 components: { 23113 RecycleScroller: 23114 vue_virtual_scroller_esm['a' /* RecycleScroller */], 23115 }, 23116 mixins: [StylesHandler], 23117 props: { 23118 id: { 23119 type: String, 23120 default: 'CountrySelector', 23121 }, 23122 value: { 23123 type: [String, Object], 23124 default: null, 23125 }, 23126 label: { 23127 type: String, 23128 default: 'Choose country', 23129 }, 23130 hint: { 23131 type: String, 23132 default: String, 23133 }, 23134 size: { 23135 type: String, 23136 default: String, 23137 }, 23138 error: { 23139 type: Boolean, 23140 default: false, 23141 }, 23142 disabled: { 23143 type: Boolean, 23144 default: false, 23145 }, 23146 valid: { 23147 type: Boolean, 23148 default: false, 23149 }, 23150 dark: { 23151 type: Boolean, 23152 default: false, 23153 }, 23154 items: { 23155 type: Array, 23156 default: Array, 23157 required: true, 23158 }, 23159 preferredCountries: { 23160 type: Array, 23161 default: null, 23162 }, 23163 onlyCountries: { 23164 type: Array, 23165 default: null, 23166 }, 23167 ignoredCountries: { 23168 type: Array, 23169 default: null, 23170 }, 23171 noFlags: { 23172 type: Boolean, 23173 default: false, 23174 }, 23175 countriesHeight: { 23176 type: Number, 23177 default: 35, 23178 }, 23179 showCodeOnList: { 23180 type: Boolean, 23181 default: false, 23182 }, 23183 }, 23184 data: function data() { 23185 return { 23186 isFocus: false, 23187 hasListOpen: false, 23188 selectedIndex: null, 23189 tmpValue: this.value, 23190 query: '', 23191 indexItemToShow: 0, 23192 isHover: false, 23193 }; 23194 }, 23195 computed: { 23196 itemHeight: function itemHeight() { 23197 return { 23198 height: ''.concat(this.countriesHeight, 'px'), 23199 }; 23200 }, 23201 listHeight: function listHeight() { 23202 return { 23203 height: ''.concat((this.countriesHeight + 1) * 7, 'px'), 23204 maxHeight: ''.concat((this.countriesHeight + 1) * 7, 'px'), 23205 }; 23206 }, 23207 countriesList: function countrie
vendor: 34,467 bytes, lines 23207-24114
23207sList() { 23208 var _this = this; 23209 23210 return this.items.filter(function (item) { 23211 return !_this.ignoredCountries.includes(item.iso2); 23212 }); 23213 }, 23214 countriesFiltered: function countriesFiltered() { 23215 var _this2 = this; 23216 23217 var countries = this.onlyCountries || this.preferredCountries; 23218 return countries.map(function (country) { 23219 return _this2.countriesList.find(function (item) { 23220 return item.iso2.includes(country); 23221 }); 23222 }); 23223 }, 23224 otherCountries: function otherCountries() { 23225 var _this3 = this; 23226 23227 return this.countriesList.filter(function (item) { 23228 return !_this3.preferredCountries.includes(item.iso2); 23229 }); 23230 }, 23231 countriesSorted: function countriesSorted() { 23232 return this.preferredCountries 23233 ? [].concat( 23234 _toConsumableArray(this.countriesFiltered), 23235 _toConsumableArray(this.otherCountries) 23236 ) 23237 : this.onlyCountries 23238 ? this.countriesFiltered 23239 : this.countriesList; 23240 }, 23241 selectedValueIndex: function selectedValueIndex() { 23242 var _this4 = this; 23243 23244 return this.value 23245 ? this.countriesSorted.findIndex(function (c) { 23246 return c.iso2 === _this4.value; 23247 }) 23248 : null; 23249 }, 23250 tmpValueIndex: function tmpValueIndex() { 23251 var _this5 = this; 23252 23253 return this.countriesSorted.findIndex(function (c) { 23254 return c.iso2 === _this5.tmpValue; 23255 }); 23256 }, 23257 callingCode: function callingCode() { 23258 return this.value 23259 ? '+'.concat( 23260 getCountryCallingCode_getCountryCallingCode(this.value) 23261 ) 23262 : null; 23263 }, 23264 }, 23265 methods: { 23266 updateHoverState: function updateHoverState(value) { 23267 this.isHover = value; 23268 }, 23269 handleBlur: function handleBlur(e) { 23270 if (this.$el.contains(e.relatedTarget)) return; 23271 this.isFocus = false; 23272 this.closeList(); 23273 }, 23274 toggleList: function toggleList() { 23275 this.$refs.countriesList.offsetParent 23276 ? this.closeList() 23277 : this.openList(); 23278 }, 23279 openList: function openList() { 23280 if (!this.disabled) { 23281 this.$refs.CountrySelector.focus(); 23282 this.$emit('open'); 23283 this.isFocus = true; 23284 this.hasListOpen = true; 23285 if (this.value) 23286 this.scrollToSelectedOnFocus(this.selectedValueIndex); 23287 } 23288 }, 23289 closeList: function closeList() { 23290 this.$emit('close'); 23291 this.hasListOpen = false; 23292 }, 23293 updateValue: (function () { 23294 var _updateValue = _asyncToGenerator( 23295 /*#__PURE__*/ regeneratorRuntime.mark( 23296 function _callee(val) { 23297 return regeneratorRuntime.wrap( 23298 function _callee$(_context) { 23299 while (1) { 23300 switch ((_context.prev = _context.next)) { 23301 case 0: 23302 this.tmpValue = val; 23303 this.$emit('input', val || null); 23304 _context.next = 4; 23305 return this.$nextTick(); 23306 23307 case 4: 23308 this.closeList(); 23309 23310 case 5: 23311 case 'end': 23312 return _context.stop(); 23313 } 23314 } 23315 }, 23316 _callee, 23317 this 23318 ); 23319 } 23320 ) 23321 ); 23322 23323 function updateValue(_x) { 23324 return _updateValue.apply(this, arguments); 23325 } 23326 23327 return updateValue; 23328 })(), 23329 scrollToSelectedOnFocus: function scrollToSelectedOnFocus( 23330 arrayIndex 23331 ) { 23332 var _this6 = this; 23333 23334 this.$nextTick(function () { 23335 // this.indexItemToShow = arrayIndex - 3 23336 _this6.$refs.countriesList.scrollTop = 23337 arrayIndex * (_this6.countriesHeight + 1) - 23338 (_this6.countriesHeight + 1) * 3; 23339 }); 23340 }, 23341 keyboardNav: function keyboardNav(e) { 23342 var code = e.keyCode; 23343 23344 if (code === 40 || code === 38) { 23345 // arrow up down 23346 if (e.view && e.view.event) { 23347 // TODO : It's not compatible with FireFox 23348 e.view.event.preventDefault(); 23349 } 23350 23351 if (!this.hasListOpen) this.openList(); 23352 var index = 23353 code === 40 23354 ? this.tmpValueIndex + 1 23355 : this.tmpValueIndex - 1; 23356 23357 if (index === -1 || index >= this.countriesSorted.length) { 23358 index = 23359 index === -1 ? this.countriesSorted.length - 1 : 0; 23360 } 23361 23362 this.tmpValue = this.countriesSorted[index].iso2; 23363 this.scrollToSelectedOnFocus(index); 23364 } else if (code === 13) { 23365 // enter 23366 this.hasListOpen 23367 ? this.updateValue(this.tmpValue) 23368 : this.openList(); 23369 } else if (code === 27) { 23370 // escape 23371 this.closeList(); 23372 } else { 23373 // typing a country's name 23374 this.searching(e); 23375 } 23376 }, 23377 searching: function searching(e) { 23378 var _this7 = this; 23379 23380 var code = e.keyCode; 23381 clearTimeout(this.queryTimer); 23382 this.queryTimer = setTimeout(function () { 23383 _this7.query = ''; 23384 }, 1000); 23385 var q = String.fromCharCode(code); 23386 23387 if (code === 8 && this.query !== '') { 23388 this.query = this.query.substring(0, this.query.length - 1); 23389 } else if (/[a-zA-Z-e ]/.test(q)) { 23390 if (!this.hasListOpen) this.openList(); 23391 this.query += e.key; 23392 var countries = this.preferredCountries 23393 ? this.countriesSorted.slice( 23394 this.preferredCountries.length 23395 ) 23396 : this.countriesSorted; 23397 var resultIndex = countries.findIndex(function (c) { 23398 _this7.tmpValue = c.iso2; 23399 return c.name.toLowerCase().startsWith(_this7.query); 23400 }); 23401 23402 if (resultIndex !== -1) { 23403 this.scrollToSelectedOnFocus( 23404 resultIndex + 23405 (this.preferredCountries 23406 ? this.preferredCountries.length 23407 : 0) 23408 ); 23409 } 23410 } 23411 }, 23412 }, 23413 }; 23414 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/CountrySelector/index.vue?vue&type=script&lang=js& 23415 /* harmony default export */ var VuePhoneNumberInput_CountrySelectorvue_type_script_lang_js_ = 23416 CountrySelectorvue_type_script_lang_js_; 23417 // EXTERNAL MODULE: ./src/VuePhoneNumberInput/CountrySelector/index.vue?vue&type=style&index=0&id=46e105de&prod&lang=scss&scoped=true& 23418 var CountrySelectorvue_type_style_index_0_id_46e105de_prod_lang_scss_scoped_true_ = 23419 __webpack_require__('e71e'); 23420 23421 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/CountrySelector/index.vue 23422 23423 /* normalize component */ 23424 23425 var CountrySelector_component = normalizeComponent( 23426 VuePhoneNumberInput_CountrySelectorvue_type_script_lang_js_, 23427 CountrySelectorvue_type_template_id_46e105de_scoped_true_render, 23428 CountrySelectorvue_type_template_id_46e105de_scoped_true_staticRenderFns, 23429 false, 23430 null, 23431 '46e105de', 23432 null 23433 ); 23434 23435 /* harmony default export */ var CountrySelector = 23436 CountrySelector_component.exports; 23437 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/assets/locales/index.js 23438 /* harmony default export */ var locales = { 23439 countrySelectorLabel: 'Country code', 23440 countrySelectorError: 'Choose country', 23441 phoneNumberLabel: 'Phone number', 23442 example: 'Example:', 23443 }; 23444 // EXTERNAL MODULE: ./node_modules/color-transformer-ui/lib/app.js 23445 var app = __webpack_require__('6038'); 23446 23447 // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/VuePhoneNumberInput/index.vue?vue&type=script&lang=js& 23448 23449 function VuePhoneNumberInputvue_type_script_lang_js_ownKeys( 23450 object, 23451 enumerableOnly 23452 ) { 23453 var keys = Object.keys(object); 23454 if (Object.getOwnPropertySymbols) { 23455 var symbols = Object.getOwnPropertySymbols(object); 23456 enumerableOnly && 23457 (symbols = symbols.filter(function (sym) { 23458 return Object.getOwnPropertyDescriptor(object, sym) 23459 .enumerable; 23460 })), 23461 keys.push.apply(keys, symbols); 23462 } 23463 return keys; 23464 } 23465 23466 function VuePhoneNumberInputvue_type_script_lang_js_objectSpread( 23467 target 23468 ) { 23469 for (var i = 1; i < arguments.length; i++) { 23470 var source = null != arguments[i] ? arguments[i] : {}; 23471 i % 2 23472 ? VuePhoneNumberInputvue_type_script_lang_js_ownKeys( 23473 Object(source), 23474 !0 23475 ).forEach(function (key) { 23476 _defineProperty(target, key, source[key]); 23477 }) 23478 : Object.getOwnPropertyDescriptors 23479 ? Object.defineProperties( 23480 target, 23481 Object.getOwnPropertyDescriptors(source) 23482 ) 23483 : VuePhoneNumberInputvue_type_script_lang_js_ownKeys( 23484 Object(source) 23485 ).forEach(function (key) { 23486 Object.defineProperty( 23487 target, 23488 key, 23489 Object.getOwnPropertyDescriptor(source, key) 23490 ); 23491 }); 23492 } 23493 return target; 23494 } 23495 23496 // 23497 // 23498 // 23499 // 23500 // 23501 // 23502 // 23503 // 23504 // 23505 // 23506 // 23507 // 23508 // 23509 // 23510 // 23511 // 23512 // 23513 // 23514 // 23515 // 23516 // 23517 // 23518 // 23519 // 23520 // 23521 // 23522 // 23523 // 23524 // 23525 // 23526 // 23527 // 23528 // 23529 // 23530 // 23531 // 23532 // 23533 // 23534 // 23535 // 23536 // 23537 // 23538 // 23539 // 23540 // 23541 // 23542 // 23543 // 23544 // 23545 // 23546 // 23547 // 23548 // 23549 // 23550 // 23551 // 23552 // 23553 // 23554 // 23555 // 23556 // 23557 // 23558 23559 var VuePhoneNumberInputvue_type_script_lang_js_getShadowColor = 23560 function getShadowColor(color) { 23561 return Object(app['isColorName'])(color) 23562 ? Object(app['hexToRgba'])( 23563 Object(app['colorNameToHex'])(color), 23564 0.7 23565 ) 23566 : Object(app['hexToRgba'])(color, 0.7); 23567 }; 23568 23569 var browserLocale = function browserLocale() { 23570 if (!window) return null; 23571 var browserLocale = 23572 window.navigator.userLanguage || window.navigator.language; 23573 var locale = browserLocale 23574 ? browserLocale.substr(3, 4).toUpperCase() 23575 : null; 23576 if (locale === '') 23577 locale = browserLocale.substr(0, 2).toUpperCase(); 23578 return locale; 23579 }; 23580 23581 var VuePhoneNumberInputvue_type_script_lang_js_isCountryAvailable = 23582 function isCountryAvailable(locale) { 23583 return countriesIso.includes(locale); 23584 }; 23585 23586 /* harmony default export */ var VuePhoneNumberInputvue_type_script_lang_js_ = 23587 { 23588 name: 'VuePhoneNumberInput', 23589 components: { 23590 InputTel: InputTel, 23591 CountrySelector: CountrySelector, 23592 }, 23593 props: { 23594 value: { 23595 type: String, 23596 default: null, 23597 }, 23598 id: { 23599 type: String, 23600 default: 'MazPhoneNumberInput', 23601 }, 23602 color: { 23603 type: String, 23604 default: 'dodgerblue', 23605 }, 23606 validColor: { 23607 type: String, 23608 default: 'yellowgreen', 23609 }, 23610 errorColor: { 23611 type: String, 23612 default: 'orangered', 23613 }, 23614 darkColor: { 23615 type: String, 23616 default: '#424242', 23617 }, 23618 disabled: { 23619 type: Boolean, 23620 default: false, 23621 }, 23622 defaultCountryCode: { 23623 type: String, 23624 default: null, 23625 }, 23626 size: { 23627 type: String, 23628 default: null, 23629 }, 23630 preferredCountries: { 23631 type: Array, 23632 default: null, 23633 }, 23634 onlyCountries: { 23635 type: Array, 23636 default: null, 23637 }, 23638 ignoredCountries: { 23639 type: Array, 23640 default: Array, 23641 }, 23642 translations: { 23643 type: Object, 23644 default: null, 23645 }, 23646 noValidatorState: { 23647 type: Boolean, 23648 default: false, 23649 }, 23650 noFlags: { 23651 type: Boolean, 23652 default: false, 23653 }, 23654 error: { 23655 type: Boolean, 23656 default: false, 23657 }, 23658 noExample: { 23659 type: Boolean, 23660 default: false, 23661 }, 23662 required: { 23663 type: Boolean, 23664 default: false, 23665 }, 23666 countriesHeight: { 23667 type: Number, 23668 default: 30, 23669 }, 23670 noUseBrowserLocale: { 23671 type: Boolean, 23672 default: false, 23673 }, 23674 fetchCountry: { 23675 type: Boolean, 23676 default: false, 23677 }, 23678 noCountrySelector: { 23679 type: Boolean, 23680 default: false, 23681 }, 23682 showCodeOnList: { 23683 type: Boolean, 23684 default: false, 23685 }, 23686 dark: { 23687 type: Boolean, 23688 default: false, 23689 }, 23690 borderRadius: { 23691 type: Number, 23692 default: 4, 23693 }, 23694 }, 23695 data: function data() { 23696 return { 23697 results: {}, 23698 userLocale: this.defaultCountryCode, 23699 lastKeyPressed: null, 23700 }; 23701 }, 23702 computed: { 23703 uniqueId: function uniqueId() { 23704 return ''.concat(this.id, '-').concat(this._uid); 23705 }, 23706 t: function t() { 23707 return VuePhoneNumberInputvue_type_script_lang_js_objectSpread( 23708 VuePhoneNumberInputvue_type_script_lang_js_objectSpread( 23709 {}, 23710 locales 23711 ), 23712 this.translations 23713 ); 23714 }, 23715 codesCountries: function codesCountries() { 23716 return countries; 23717 }, 23718 countryCode: { 23719 get: function get() { 23720 return this.userLocale || this.results.countryCode; 23721 }, 23722 set: function set(newCountry) { 23723 this.setLocale(newCountry); 23724 this.$refs.PhoneNumberInput.$el 23725 .querySelector('input') 23726 .focus(); 23727 }, 23728 }, 23729 phoneNumber: { 23730 get: function get() { 23731 return this.value; 23732 }, 23733 set: function set(newPhone) { 23734 this.emitValues({ 23735 countryCode: this.countryCode, 23736 phoneNumber: newPhone, 23737 }); 23738 }, 23739 }, 23740 shouldChooseCountry: function shouldChooseCountry() { 23741 return !this.countryCode && !!this.phoneNumber; 23742 }, 23743 phoneFormatted: function phoneFormatted() { 23744 return this.results.formatInternational; 23745 }, 23746 isValid: function isValid() { 23747 return this.results.isValid; 23748 }, 23749 phoneNumberExample: function phoneNumberExample() { 23750 var phoneNumber = this.countryCode 23751 ? getExampleNumber_getExampleNumber( 23752 this.countryCode, 23753 examples_mobile 23754 ) 23755 : null; 23756 return phoneNumber ? phoneNumber.formatNational() : null; 23757 }, 23758 hasEmptyPhone: function hasEmptyPhone() { 23759 return this.phoneNumber === '' || this.phoneNumber === null; 23760 }, 23761 hintValue: function hintValue() { 23762 return this.noExample || !this.phoneNumberExample 23763 ? null 23764 : this.hasEmptyPhone || this.isValid 23765 ? null 23766 : '' 23767 .concat(this.t.example, ' ') 23768 .concat(this.phoneNumberExample); 23769 }, 23770 theme: function theme() { 23771 return { 23772 colorValue: this.color, 23773 color: { 23774 color: this.color, 23775 }, 23776 textColor: { 23777 color: '#747474', 23778 }, 23779 textDarkColor: { 23780 color: 'rgba(255, 255, 255, 0.7)', 23781 }, 23782 validColor: { 23783 color: this.validColor, 23784 }, 23785 errorColor: { 23786 color: this.errorColor, 23787 }, 23788 darkColor: { 23789 color: this.darkColor, 23790 }, 23791 bgColor: { 23792 backgroundColor: this.color, 23793 }, 23794 bgValidColor: { 23795 backgroundColor: this.validColor, 23796 }, 23797 bgErrorColor: { 23798 backgroundColor: this.errorColor, 23799 }, 23800 bgDarkColor: { 23801 backgroundColor: this.darkColor, 23802 }, 23803 borderColor: { 23804 borderColor: this.color, 23805 }, 23806 borderValidColor: { 23807 borderColor: this.validColor, 23808 }, 23809 borderErrorColor: { 23810 borderColor: this.errorColor, 23811 }, 23812 borderDarkColor: { 23813 borderColor: this.darkColor, 23814 }, 23815 boxShadowColor: { 23816 boxShadow: '0 0 0 0.125rem '.concat( 23817 VuePhoneNumberInputvue_type_script_lang_js_getShadowColor( 23818 this.color 23819 ) 23820 ), 23821 }, 23822 boxShadowValid: { 23823 boxShadow: '0 0 0 0.125rem '.concat( 23824 VuePhoneNumberInputvue_type_script_lang_js_getShadowColor( 23825 this.validColor 23826 ) 23827 ), 23828 }, 23829 boxShadowError: { 23830 boxShadow: '0 0 0 0.125rem '.concat( 23831 VuePhoneNumberInputvue_type_script_lang_js_getShadowColor( 23832 this.errorColor 23833 ) 23834 ), 23835 }, 23836 borderRadius: { 23837 borderRadius: ''.concat(this.borderRadius, 'px'), 23838 }, 23839 borderLeftRadius: { 23840 borderTopLeftRadius: ''.concat(this.borderRadius, 'px'), 23841 borderBottomLeftRadius: ''.concat( 23842 this.borderRadius, 23843 'px' 23844 ), 23845 }, 23846 borderRightRadius: { 23847 borderTopRightRadius: ''.concat(this.borderRadius, 'px'), 23848 borderBottomRightRadius: ''.concat( 23849 this.borderRadius, 23850 'px' 23851 ), 23852 }, 23853 }; 23854 }, 23855 }, 23856 watch: { 23857 defaultCountryCode: function defaultCountryCode( 23858 newValue, 23859 oldValue 23860 ) { 23861 if (newValue === oldValue) return; 23862 this.setLocale(newValue); 23863 }, 23864 phoneNumber: { 23865 handler: function handler(newValue, oldValue) { 23866 // init component (countryCode & phoneNumber) if phone number is provide 23867 if (newValue && newValue !== oldValue) { 23868 var phoneNumber = 23869 exports_parsePhoneNumberFromString_parsePhoneNumberFromString( 23870 newValue 23871 ); 23872 23873 if (phoneNumber) { 23874 this.emitValues({ 23875 phoneNumber: phoneNumber.nationalNumber, 23876 countryCode: this.countryCode 23877 ? this.countryCode 23878 : phoneNumber.country, 23879 }); 23880 } 23881 } 23882 }, 23883 immediate: true, 23884 }, 23885 }, 23886 mounted: (function () { 23887 var _mounted = _asyncToGenerator( 23888 /*#__PURE__*/ regeneratorRuntime.mark(function _callee() { 23889 return regeneratorRuntime.wrap( 23890 function _callee$(_context) { 23891 while (1) { 23892 switch ((_context.prev = _context.next)) { 23893 case 0: 23894 _context.prev = 0; 23895 if (this.phoneNumber && this.defaultCountryCode) 23896 this.emitValues({ 23897 countryCode: this.defaultCountryCode, 23898 phoneNumber: this.phoneNumber, 23899 }); 23900 23901 if ( 23902 !(this.defaultCountryCode && this.fetchCountry) 23903 ) { 23904 _context.next = 4; 23905 break; 23906 } 23907 23908 throw new Error( 23909 'MazPhoneNumberInput: Do not use "fetch-country" and "default-country-code" options in the same time' 23910 ); 23911 23912 case 4: 23913 if ( 23914 !( 23915 this.defaultCountryCode && 23916 this.noUseBrowserLocale 23917 ) 23918 ) { 23919 _context.next = 6; 23920 break; 23921 } 23922 23923 throw new Error( 23924 'MazPhoneNumberInput: If you use a "default-country-code", do not use "no-use-browser-locale" options' 23925 ); 23926 23927 case 6: 23928 if (!this.defaultCountryCode) { 23929 _context.next = 8; 23930 break; 23931 } 23932 23933 return _context.abrupt('return'); 23934 23935 case 8: 23936 this.fetchCountry 23937 ? this.fetchCountryCode() 23938 : !this.noUseBrowserLocale 23939 ? this.setLocale(browserLocale()) 23940 : null; 23941 _context.next = 14; 23942 break; 23943 23944 case 11: 23945 _context.prev = 11; 23946 _context.t0 = _context['catch'](0); 23947 throw new Error(_context.t0); 23948 23949 case 14: 23950 case 'end': 23951 return _context.stop(); 23952 } 23953 } 23954 }, 23955 _callee, 23956 this, 23957 [[0, 11]] 23958 ); 23959 }) 23960 ); 23961 23962 function mounted() { 23963 return _mounted.apply(this, arguments); 23964 } 23965 23966 return mounted; 23967 })(), 23968 methods: { 23969 getAsYouTypeFormat: function getAsYouTypeFormat(payload) { 23970 var countryCode = payload.countryCode, 23971 phoneNumber = payload.phoneNumber; 23972 var asYouType = new exports_AsYouType_AsYouType(countryCode); 23973 return phoneNumber ? asYouType.input(phoneNumber) : null; 23974 }, 23975 getParsePhoneNumberFromString: 23976 function getParsePhoneNumberFromString(_ref) { 23977 var phoneNumber = _ref.phoneNumber, 23978 countryCode = _ref.countryCode; 23979 var parsing = 23980 phoneNumber && countryCode 23981 ? exports_parsePhoneNumberFromString_parsePhoneNumberFromString( 23982 phoneNumber, 23983 countryCode 23984 ) 23985 : null; 23986 return VuePhoneNumberInputvue_type_script_lang_js_objectSpread( 23987 VuePhoneNumberInputvue_type_script_lang_js_objectSpread( 23988 { 23989 countryCode: countryCode, 23990 isValid: false, 23991 }, 23992 phoneNumber && phoneNumber !== '' 23993 ? { 23994 phoneNumber: phoneNumber, 23995 } 23996 : null 23997 ), 23998 parsing 23999 ? { 24000 countryCallingCode: parsing.countryCallingCode, 24001 formattedNumber: parsing.number, 24002 nationalNumber: parsing.nationalNumber, 24003 isValid: parsing.isValid(), 24004 type: parsing.getType(), 24005 formatInternational: parsing.formatInternational(), 24006 formatNational: parsing.formatNational(), 24007 uri: parsing.getURI(), 24008 e164: parsing.format('E.164'), 24009 } 24010 : null 24011 ); 24012 }, 24013 emitValues: function emitValues(payload) { 24014 var _this = this; 24015 24016 var asYouType = this.getAsYouTypeFormat(payload); 24017 var backSpacePressed = this.lastKeyPressed === 8; 24018 this.$nextTick(function () { 24019 var lastCharacOfPhoneNumber = _this.phoneNumber 24020 ? _this.phoneNumber.trim().slice(-1) 24021 : false; 24022 24023 if ( 24024 backSpacePressed && 24025 lastCharacOfPhoneNumber && 24026 lastCharacOfPhoneNumber.slice(-1) === ')' 24027 ) { 24028 asYouType = _this.phoneNumber.slice(0, -2); 24029 payload.phoneNumber = _this.phoneNumber.slice(0, -2); 24030 } 24031 24032 _this.results = 24033 _this.getParsePhoneNumberFromString(payload); 24034 24035 _this.$emit('update', _this.results); 24036 24037 _this.$emit('input', asYouType); 24038 }); 24039 }, 24040 setLocale: function setLocale(locale) { 24041 var countryAvailable = 24042 VuePhoneNumberInputvue_type_script_lang_js_isCountryAvailable( 24043 locale 24044 ); 24045 24046 if (countryAvailable && locale) { 24047 this.userLocale = countryAvailable ? locale : null; 24048 this.emitValues({ 24049 countryCode: locale, 24050 phoneNumber: this.phoneNumber, 24051 }); 24052 } else if (!countryAvailable && locale) { 24053 window.console.warn( 24054 'The locale '.concat(locale, ' is not available') 24055 ); 24056 } 24057 }, 24058 fetchCountryCode: (function () { 24059 var _fetchCountryCode = _asyncToGenerator( 24060 /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() { 24061 var response, responseText, result; 24062 return regeneratorRuntime.wrap( 24063 function _callee2$(_context2) { 24064 while (1) { 24065 switch ((_context2.prev = _context2.next)) { 24066 case 0: 24067 _context2.prev = 0; 24068 _context2.next = 3; 24069 return fetch('https://ip2c.org/s'); 24070 24071 case 3: 24072 response = _context2.sent; 24073 _context2.next = 6; 24074 return response.text(); 24075 24076 case 6: 24077 responseText = _context2.sent; 24078 result = (responseText || '').toString(); 24079 if (result && result[0] === '1') 24080 this.setLocale(result.substr(2, 2)); 24081 _context2.next = 14; 24082 break; 24083 24084 case 11: 24085 _context2.prev = 11; 24086 _context2.t0 = _context2['catch'](0); 24087 throw new Error(_context2.t0); 24088 24089 case 14: 24090 case 'end': 24091 return _context2.stop(); 24092 } 24093 } 24094 }, 24095 _callee2, 24096 this, 24097 [[0, 11]] 24098 ); 24099 }) 24100 ); 24101 24102 function fetchCountryCode() { 24103 return _fetchCountryCode.apply(this, arguments); 24104 } 24105 24106 return fetchCountryCode; 24107 })(), 24108 }, 24109 }; 24110 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/index.vue?vue&type=script&lang=js& 24111 /* harmony default export */ var src_VuePhoneNumberInputvue_type_script_lang_js_ = 24112 VuePhoneNumberInputvue_type_script_lang_js_; 24113 // EXTERNAL MODULE: ./src/VuePhoneNumberInput/index.vue?vue&type=style&index=0&id=19351537&prod&lang=scss&scoped=true& 24114 var VuePhoneNumberInputvue_type_style_index_0_id_19351537_prod_lang_scss_
24114scoped_true_ = 24115 __webpack_require__('e214'); 24116 24117 // CONCATENATED MODULE: ./src/VuePhoneNumberInput/index.vue 24118 24119 /* normalize component */ 24120 24121 var VuePhoneNumberInput_component = normalizeComponent( 24122 src_VuePhoneNumberInputvue_type_script_lang_js_, 24123 render, 24124 staticRenderFns, 24125 false, 24126 null, 24127 '19351537', 24128 null 24129 ); 24130 24131 /* harmony default export */ var VuePhoneNumberInput = 24132 VuePhoneNumberInput_component.exports; 24133 // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 24134 24135 /* harmony default export */ var entry_lib = (__webpack_exports__[ 24136 'default' 24137 ] = VuePhoneNumberInput); 24138 24139 /***/ 24140 }, 24141 24142 /***/ fdef: /***/ function (module, exports) { 24143 module.exports = 24144 '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 24145 '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 24146 24147 /***/ 24148 }, 24149 24150 /******/ 24151 } 24152 )['default']; 24153 } 24154); 24155//# sourceMappingURL=vue-phone-number-input.umd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.