@adyen/bento-vue2 1.47.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +347 -112
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/chip.css +1 -0
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/date-range-picker.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/input-field-password.css +1 -1
  15. package/dist/assets/input-field-phone-number.css +1 -0
  16. package/dist/assets/input-field.css +1 -1
  17. package/dist/assets/inspector.css +1 -1
  18. package/dist/assets/link.css +1 -1
  19. package/dist/assets/menu.css +1 -1
  20. package/dist/assets/modal-fullscreen.css +1 -1
  21. package/dist/assets/popover.css +1 -1
  22. package/dist/assets/segmented-control.css +1 -1
  23. package/dist/assets/sidepanel.css +1 -1
  24. package/dist/assets/summary-grid-item-custom.css +1 -1
  25. package/dist/button.js +3 -3
  26. package/dist/card.js +1 -1
  27. package/dist/checkbox.js +2 -2
  28. package/dist/chip.js +5 -0
  29. package/dist/chip.js.map +1 -0
  30. package/dist/chunks/{action-bar.EcN2I7Az.js → action-bar.CSgrrcK0.js} +5 -5
  31. package/dist/chunks/{action-bar.EcN2I7Az.js.map → action-bar.CSgrrcK0.js.map} +1 -1
  32. package/dist/chunks/{alert.BRN8cpXl.js → alert.hiTIDSeX.js} +2 -2
  33. package/dist/chunks/{alert.BRN8cpXl.js.map → alert.hiTIDSeX.js.map} +1 -1
  34. package/dist/chunks/{base-modal.BgTZ8iQ6.js → base-modal.47Xa68h9.js} +4 -4
  35. package/dist/chunks/{base-modal.BgTZ8iQ6.js.map → base-modal.47Xa68h9.js.map} +1 -1
  36. package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js → button-actions-with-menu.D13mJiKO.js} +4 -4
  37. package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js.map → button-actions-with-menu.D13mJiKO.js.map} +1 -1
  38. package/dist/chunks/{button-actions.BU173IFE.js → button-actions.BovYBINL.js} +2 -2
  39. package/dist/chunks/{button-actions.BU173IFE.js.map → button-actions.BovYBINL.js.map} +1 -1
  40. package/dist/chunks/{button.BX6ZJxF7.js → button.CdAFZa4V.js} +2 -2
  41. package/dist/chunks/{button.BX6ZJxF7.js.map → button.CdAFZa4V.js.map} +1 -1
  42. package/dist/chunks/{calendar.DlOcbH6E.js → calendar.Bb0-Svhx.js} +4 -4
  43. package/dist/chunks/{calendar.DlOcbH6E.js.map → calendar.Bb0-Svhx.js.map} +1 -1
  44. package/dist/chunks/{card.DoyCGJay.js → card.D-w9c3-n.js} +2 -2
  45. package/dist/chunks/{card.DoyCGJay.js.map → card.D-w9c3-n.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.BQN9gjgH.js → checkbox-group.BXfJo9NR.js} +2 -2
  47. package/dist/chunks/{checkbox-group.BQN9gjgH.js.map → checkbox-group.BXfJo9NR.js.map} +1 -1
  48. package/dist/chunks/{checkbox.O1CbmNdS.js → checkbox.BEHpJDrF.js} +18 -18
  49. package/dist/chunks/{checkbox.O1CbmNdS.js.map → checkbox.BEHpJDrF.js.map} +1 -1
  50. package/dist/chunks/chip.HNUA9VZl.js +63 -0
  51. package/dist/chunks/chip.HNUA9VZl.js.map +1 -0
  52. package/dist/chunks/{code-snippet.BDBD85qD.js → code-snippet.CUx6b252.js} +6 -6
  53. package/dist/chunks/{code-snippet.BDBD85qD.js.map → code-snippet.CUx6b252.js.map} +1 -1
  54. package/dist/chunks/{codemirror.0fz2cWJS.js → codemirror.Zv80n3Z2.js} +13 -14
  55. package/dist/chunks/{codemirror.0fz2cWJS.js.map → codemirror.Zv80n3Z2.js.map} +1 -1
  56. package/dist/chunks/{copy.BuMSGw23.js → copy.adSQlAOY.js} +2 -2
  57. package/dist/chunks/{copy.BuMSGw23.js.map → copy.adSQlAOY.js.map} +1 -1
  58. package/dist/chunks/{country.2-ZtYkh7.js → country.Df7erZov.js} +22 -21
  59. package/dist/chunks/{country.2-ZtYkh7.js.map → country.Df7erZov.js.map} +1 -1
  60. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  61. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  62. package/dist/chunks/{currency.BmI4Sqy5.js → currency.B1F9YOIx.js} +2 -2
  63. package/dist/chunks/{currency.BmI4Sqy5.js.map → currency.B1F9YOIx.js.map} +1 -1
  64. package/dist/chunks/{dashboard-section.COWO5SVw.js → dashboard-section.q1XXEUZc.js} +3 -3
  65. package/dist/chunks/{dashboard-section.COWO5SVw.js.map → dashboard-section.q1XXEUZc.js.map} +1 -1
  66. package/dist/chunks/{dashed-underline.BEAEmTCb.js → dashed-underline.CpVP3VDL.js} +2 -2
  67. package/dist/chunks/{dashed-underline.BEAEmTCb.js.map → dashed-underline.CpVP3VDL.js.map} +1 -1
  68. package/dist/chunks/{data-grid-template.vBl7u2cB.js → data-grid-template.kCxfVaW7.js} +3 -3
  69. package/dist/chunks/{data-grid-template.vBl7u2cB.js.map → data-grid-template.kCxfVaW7.js.map} +1 -1
  70. package/dist/chunks/{data-grid.DQ0578m9.js → data-grid.DgxC3G4n.js} +492 -487
  71. package/dist/chunks/data-grid.DgxC3G4n.js.map +1 -0
  72. package/dist/chunks/{date-picker.Bym2OEd9.js → date-picker.DqsQJ7P7.js} +4 -4
  73. package/dist/chunks/{date-picker.Bym2OEd9.js.map → date-picker.DqsQJ7P7.js.map} +1 -1
  74. package/dist/chunks/date-range-picker.VZlIz83o.js +884 -0
  75. package/dist/chunks/date-range-picker.VZlIz83o.js.map +1 -0
  76. package/dist/chunks/{date.1zs9CRhw.js → date.YLIcAerL.js} +69 -1
  77. package/dist/chunks/{date.1zs9CRhw.js.map → date.YLIcAerL.js.map} +1 -1
  78. package/dist/chunks/{dialog-page.DcJ7LaOE.js → dialog-page.Bf07JxdG.js} +2 -2
  79. package/dist/chunks/{dialog-page.DcJ7LaOE.js.map → dialog-page.Bf07JxdG.js.map} +1 -1
  80. package/dist/chunks/{dropdown-tag.CiCDvGyN.js → dropdown-tag.BLAjuup5.js} +6 -6
  81. package/dist/chunks/{dropdown-tag.CiCDvGyN.js.map → dropdown-tag.BLAjuup5.js.map} +1 -1
  82. package/dist/chunks/{dropdown.hc9ZuuTt.js → dropdown.DWgwNFNB.js} +4 -4
  83. package/dist/chunks/{dropdown.hc9ZuuTt.js.map → dropdown.DWgwNFNB.js.map} +1 -1
  84. package/dist/chunks/{empty-state.1TyzB5ju.js → empty-state.BnHTBgKG.js} +2 -2
  85. package/dist/chunks/{empty-state.1TyzB5ju.js.map → empty-state.BnHTBgKG.js.map} +1 -1
  86. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  87. package/dist/chunks/{file-uploader.DVyryYaq.js → file-uploader.DT7GsNqI.js} +4 -4
  88. package/dist/chunks/{file-uploader.DVyryYaq.js.map → file-uploader.DT7GsNqI.js.map} +1 -1
  89. package/dist/chunks/{filter-bar.DzcNo5nF.js → filter-bar.D2YR4Tpz.js} +103 -105
  90. package/dist/chunks/filter-bar.D2YR4Tpz.js.map +1 -0
  91. package/dist/chunks/{fixed-scroller.IPM3AzHS.js → fixed-scroller.DX2YUuoU.js} +2 -2
  92. package/dist/chunks/{fixed-scroller.IPM3AzHS.js.map → fixed-scroller.DX2YUuoU.js.map} +1 -1
  93. package/dist/chunks/{footer-actions.Cbe_YLjP.js → footer-actions.BsoofCrv.js} +3 -3
  94. package/dist/chunks/{footer-actions.Cbe_YLjP.js.map → footer-actions.BsoofCrv.js.map} +1 -1
  95. package/dist/chunks/{form-layout-title.Xdsi84v2.js → form-layout-title.CJbgfh3P.js} +2 -2
  96. package/dist/chunks/{form-layout-title.Xdsi84v2.js.map → form-layout-title.CJbgfh3P.js.map} +1 -1
  97. package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
  98. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
  99. package/dist/chunks/{header.BIZTUAJE.js → header.D5MLt9hG.js} +4 -4
  100. package/dist/chunks/{header.BIZTUAJE.js.map → header.D5MLt9hG.js.map} +1 -1
  101. package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js → info-icon-with-popover.CO0mky_N.js} +2 -2
  102. package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js.map → info-icon-with-popover.CO0mky_N.js.map} +1 -1
  103. package/dist/chunks/{input-field-password.CosL-n__.js → input-field-password.CQtzruQM.js} +4 -4
  104. package/dist/chunks/{input-field-password.CosL-n__.js.map → input-field-password.CQtzruQM.js.map} +1 -1
  105. package/dist/chunks/input-field-phone-number.DWKZy2-k.js +3098 -0
  106. package/dist/chunks/input-field-phone-number.DWKZy2-k.js.map +1 -0
  107. package/dist/chunks/{input-field.DgDFJbg7.js → input-field.3V5IblWw.js} +31 -26
  108. package/dist/chunks/input-field.3V5IblWw.js.map +1 -0
  109. package/dist/chunks/{inspector.types.8071wkf0.js → inspector.types.GOl_-hXm.js} +2 -2
  110. package/dist/chunks/{inspector.types.8071wkf0.js.map → inspector.types.GOl_-hXm.js.map} +1 -1
  111. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.pB8weElW.js} +2 -1
  112. package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.pB8weElW.js.map} +1 -1
  113. package/dist/chunks/{link.UOEUR35A.js → link.DZlbzVSB.js} +35 -28
  114. package/dist/chunks/link.DZlbzVSB.js.map +1 -0
  115. package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js → listbox-option-tag.XbvBQqlt.js} +2 -2
  116. package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js.map → listbox-option-tag.XbvBQqlt.js.map} +1 -1
  117. package/dist/chunks/{menu.Dq7RlryT.js → menu.DYopJZ12.js} +3 -3
  118. package/dist/chunks/{menu.Dq7RlryT.js.map → menu.DYopJZ12.js.map} +1 -1
  119. package/dist/chunks/{modal-fullscreen.CfrgVR_K.js → modal-fullscreen.Pp5mp7hD.js} +4 -4
  120. package/dist/chunks/{modal-fullscreen.CfrgVR_K.js.map → modal-fullscreen.Pp5mp7hD.js.map} +1 -1
  121. package/dist/chunks/{modal.CuUUMIU_.js → modal.CCjAy7Hv.js} +5 -5
  122. package/dist/chunks/{modal.CuUUMIU_.js.map → modal.CCjAy7Hv.js.map} +1 -1
  123. package/dist/chunks/{pagination.QF1EEUfX.js → pagination.8g4bC4tv.js} +3 -3
  124. package/dist/chunks/{pagination.QF1EEUfX.js.map → pagination.8g4bC4tv.js.map} +1 -1
  125. package/dist/chunks/{payment-method.UaERFtej.js → payment-method.BKr_q5cZ.js} +2 -2
  126. package/dist/chunks/{payment-method.UaERFtej.js.map → payment-method.BKr_q5cZ.js.map} +1 -1
  127. package/dist/chunks/{popover.nev0GndY.js → popover.C-LwO38X.js} +3 -3
  128. package/dist/chunks/{popover.nev0GndY.js.map → popover.C-LwO38X.js.map} +1 -1
  129. package/dist/chunks/{promo-banner.BXtIM4C9.js → promo-banner.DS0_aROF.js} +2 -2
  130. package/dist/chunks/{promo-banner.BXtIM4C9.js.map → promo-banner.DS0_aROF.js.map} +1 -1
  131. package/dist/chunks/{radio-group.D1q0VKvv.js → radio-group.1z-IZvLU.js} +3 -3
  132. package/dist/chunks/{radio-group.D1q0VKvv.js.map → radio-group.1z-IZvLU.js.map} +1 -1
  133. package/dist/chunks/{search-bar.fmMx-zRN.js → search-bar.Bu12OC-l.js} +3 -3
  134. package/dist/chunks/{search-bar.fmMx-zRN.js.map → search-bar.Bu12OC-l.js.map} +1 -1
  135. package/dist/chunks/{secondary-nav.ldVrzGbB.js → secondary-nav.CLDlWCXX.js} +2 -2
  136. package/dist/chunks/{secondary-nav.ldVrzGbB.js.map → secondary-nav.CLDlWCXX.js.map} +1 -1
  137. package/dist/chunks/{segmented-control.DL0W7lJ_.js → segmented-control.BJIlas0M.js} +17 -16
  138. package/dist/chunks/segmented-control.BJIlas0M.js.map +1 -0
  139. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  140. package/dist/chunks/{selection-card-group.CdkrhyZV.js → selection-card-group.usHcqYKO.js} +8 -8
  141. package/dist/chunks/{selection-card-group.CdkrhyZV.js.map → selection-card-group.usHcqYKO.js.map} +1 -1
  142. package/dist/chunks/{sidepanel.D-KuHnwI.js → sidepanel.C_ff-PEn.js} +4 -4
  143. package/dist/chunks/{sidepanel.D-KuHnwI.js.map → sidepanel.C_ff-PEn.js.map} +1 -1
  144. package/dist/chunks/{status.types.Ce018tQy.js → status.types.p_TCvoo0.js} +16 -17
  145. package/dist/chunks/{status.types.Ce018tQy.js.map → status.types.p_TCvoo0.js.map} +1 -1
  146. package/dist/chunks/{step.BsIdWhaZ.js → step.DrP2Frvn.js} +2 -2
  147. package/dist/chunks/{step.BsIdWhaZ.js.map → step.DrP2Frvn.js.map} +1 -1
  148. package/dist/chunks/{structured-list-item.Dk8Z-FPn.js → structured-list-item.TC8mVrrA.js} +3 -3
  149. package/dist/chunks/{structured-list-item.Dk8Z-FPn.js.map → structured-list-item.TC8mVrrA.js.map} +1 -1
  150. package/dist/chunks/{summary-grid-item-custom.atXX3GY9.js → summary-grid-item-custom.A11AzfH0.js} +109 -104
  151. package/dist/chunks/summary-grid-item-custom.A11AzfH0.js.map +1 -0
  152. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  153. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  154. package/dist/chunks/{tabs.9kObZry9.js → tabs.5zgaD1k3.js} +2 -2
  155. package/dist/chunks/{tabs.9kObZry9.js.map → tabs.5zgaD1k3.js.map} +1 -1
  156. package/dist/chunks/{tag.-YNhsBv7.js → tag.3fthBtwc.js} +2 -2
  157. package/dist/chunks/{tag.-YNhsBv7.js.map → tag.3fthBtwc.js.map} +1 -1
  158. package/dist/chunks/{textarea.BVzGn3zO.js → textarea.CpXux8qX.js} +2 -2
  159. package/dist/chunks/{textarea.BVzGn3zO.js.map → textarea.CpXux8qX.js.map} +1 -1
  160. package/dist/chunks/{timeline-item.D_YNHlRi.js → timeline-item.Ca9RJt0z.js} +8 -8
  161. package/dist/chunks/{timeline-item.D_YNHlRi.js.map → timeline-item.Ca9RJt0z.js.map} +1 -1
  162. package/dist/chunks/{toast.DgJbW9CL.js → toast.C5I7Wsfa.js} +2 -2
  163. package/dist/chunks/{toast.DgJbW9CL.js.map → toast.C5I7Wsfa.js.map} +1 -1
  164. package/dist/chunks/{toggle-button.Cf8C7p6e.js → toggle-button.BX_9vB0d.js} +2 -2
  165. package/dist/chunks/{toggle-button.Cf8C7p6e.js.map → toggle-button.BX_9vB0d.js.map} +1 -1
  166. package/dist/chunks/{toggle.CnS7qszG.js → toggle.CyaY0U0K.js} +2 -2
  167. package/dist/chunks/{toggle.CnS7qszG.js.map → toggle.CyaY0U0K.js.map} +1 -1
  168. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  169. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  170. package/dist/chunks/{tutorial.cQXPvqV4.js → tutorial.Cc0tv59x.js} +4 -4
  171. package/dist/chunks/{tutorial.cQXPvqV4.js.map → tutorial.Cc0tv59x.js.map} +1 -1
  172. package/dist/chunks/{use-cached-selected-values.BGlHmPhX.js → use-cached-selected-values.C24AnZ-w.js} +5 -5
  173. package/dist/chunks/{use-cached-selected-values.BGlHmPhX.js.map → use-cached-selected-values.C24AnZ-w.js.map} +1 -1
  174. package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
  175. package/dist/chunks/{use-country-items.eWARMT6I.js.map → use-country-items.HFnjuDsG.js.map} +1 -1
  176. package/dist/chunks/{country.types.CLjbulKL.js → use-country-phon-code.DVgE19zT.js} +497 -761
  177. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  178. package/dist/code-snippet.js +1 -1
  179. package/dist/country.js +7 -6
  180. package/dist/country.js.map +1 -1
  181. package/dist/currency.js +1 -1
  182. package/dist/dashboard-template.js +1 -1
  183. package/dist/dashed-underline.js +1 -1
  184. package/dist/data-grid-template.js +1 -1
  185. package/dist/data-grid.js +1 -1
  186. package/dist/date-picker.js +2 -2
  187. package/dist/date-range-picker.js +2 -2
  188. package/dist/date.js +1 -1
  189. package/dist/dropdown.js +3 -3
  190. package/dist/empty-state.js +1 -1
  191. package/dist/file-uploader.js +1 -1
  192. package/dist/filter-bar.js +1 -1
  193. package/dist/form-layout.js +1 -1
  194. package/dist/header.js +1 -1
  195. package/dist/index.js +217 -212
  196. package/dist/index.js.map +1 -1
  197. package/dist/input-field-password.js +1 -1
  198. package/dist/input-field-phone-number.js +5 -0
  199. package/dist/input-field-phone-number.js.map +1 -0
  200. package/dist/input-field.js +1 -1
  201. package/dist/inspector.js +1 -1
  202. package/dist/internal.js +9 -9
  203. package/dist/link.js +1 -1
  204. package/dist/menu.js +1 -1
  205. package/dist/modal-fullscreen.js +1 -1
  206. package/dist/modal.js +2 -2
  207. package/dist/pagination.js +1 -1
  208. package/dist/payment-method.js +1 -1
  209. package/dist/popover.js +1 -1
  210. package/dist/promo-banner.js +1 -1
  211. package/dist/radio-group.js +1 -1
  212. package/dist/search-bar.js +2 -2
  213. package/dist/secondary-nav.js +1 -1
  214. package/dist/segmented-control.js +1 -1
  215. package/dist/selection-card.js +1 -1
  216. package/dist/sidepanel.js +1 -1
  217. package/dist/status.js +1 -1
  218. package/dist/stepper.js +1 -1
  219. package/dist/structured-list.js +1 -1
  220. package/dist/styles/bento-dark.css +15 -1
  221. package/dist/styles/bento-light.css +15 -1
  222. package/dist/styles/bento.css +15 -1
  223. package/dist/styles/legacy.css +14 -0
  224. package/dist/styles/styleguide.css +15 -1
  225. package/dist/summary-grid.js +1 -1
  226. package/dist/tabs.js +1 -1
  227. package/dist/tag.js +1 -1
  228. package/dist/textarea.js +1 -1
  229. package/dist/timeline.js +1 -1
  230. package/dist/toast.js +1 -1
  231. package/dist/toggle.js +1 -1
  232. package/dist/tutorial.js +1 -1
  233. package/dist/web-types.json +263 -5
  234. package/package.json +6 -5
  235. package/dist/chunks/country.types.CLjbulKL.js.map +0 -1
  236. package/dist/chunks/data-grid.DQ0578m9.js.map +0 -1
  237. package/dist/chunks/date-range-picker.P2Q5FNB-.js +0 -840
  238. package/dist/chunks/date-range-picker.P2Q5FNB-.js.map +0 -1
  239. package/dist/chunks/filter-bar.DzcNo5nF.js.map +0 -1
  240. package/dist/chunks/get-slot-text.Cgn-E48s.js +0 -9
  241. package/dist/chunks/get-slot-text.Cgn-E48s.js.map +0 -1
  242. package/dist/chunks/input-field.DgDFJbg7.js.map +0 -1
  243. package/dist/chunks/link.UOEUR35A.js.map +0 -1
  244. package/dist/chunks/segmented-control.DL0W7lJ_.js.map +0 -1
  245. package/dist/chunks/summary-grid-item-custom.atXX3GY9.js.map +0 -1
  246. package/dist/chunks/summary-grid.keys.BBbFrFGF.js +0 -5
  247. package/dist/chunks/summary-grid.keys.BBbFrFGF.js.map +0 -1
  248. package/dist/chunks/use-country-items.eWARMT6I.js +0 -29
@@ -0,0 +1,3098 @@
1
+ import { defineComponent as oe, ref as G, computed as B, onMounted as $e, nextTick as ue } from "vue";
2
+ import { B as le } from "./input-field.3V5IblWw.js";
3
+ import { u as se } from "./i18n.BQkEbtPM.js";
4
+ import { p as fe } from "./typography.J1v_SPG3.js";
5
+ import { a as jt, u as ce } from "./use-country-phon-code.DVgE19zT.js";
6
+ import { n as he } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
7
+ import "../assets/input-field-phone-number.css";
8
+ const Ht = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?: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}", [9]], ["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "[24-689]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-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}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "(?:[2-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "[189]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|31)"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "[56]94\\d{6}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[56]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "(?:[2-489]\\d|55)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|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]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["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}", [6, 7, 8, 9, 10, 11]], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"]], "0", 0, "(000[259]\\d{6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[0135-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "596\\d{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|80\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[16]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|77|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "[0-57-9]\\d{8}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-79]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
9
+ function rt(e, r) {
10
+ var t = Array.prototype.slice.call(r);
11
+ return t.push(Ht), e.apply(this, t);
12
+ }
13
+ function K(e) {
14
+ "@babel/helpers - typeof";
15
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
16
+ return typeof r;
17
+ } : function(r) {
18
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
19
+ }, K(e);
20
+ }
21
+ function ge(e, r, t) {
22
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
23
+ }
24
+ function me(e, r) {
25
+ if (!(e instanceof r))
26
+ throw new TypeError("Cannot call a class as a function");
27
+ }
28
+ function ye(e, r) {
29
+ if (typeof r != "function" && r !== null)
30
+ throw new TypeError("Super expression must either be null or a function");
31
+ e.prototype = Object.create(r && r.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), r && A(e, r);
32
+ }
33
+ function ve(e) {
34
+ var r = Vt();
35
+ return function() {
36
+ var n = _(e), d;
37
+ if (r) {
38
+ var i = _(this).constructor;
39
+ d = Reflect.construct(n, arguments, i);
40
+ } else
41
+ d = n.apply(this, arguments);
42
+ return pe(this, d);
43
+ };
44
+ }
45
+ function pe(e, r) {
46
+ if (r && (K(r) === "object" || typeof r == "function"))
47
+ return r;
48
+ if (r !== void 0)
49
+ throw new TypeError("Derived constructors may only return object or undefined");
50
+ return Wt(e);
51
+ }
52
+ function Wt(e) {
53
+ if (e === void 0)
54
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
55
+ return e;
56
+ }
57
+ function Y(e) {
58
+ var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
59
+ return Y = function(n) {
60
+ if (n === null || !Ne(n)) return n;
61
+ if (typeof n != "function")
62
+ throw new TypeError("Super expression must either be null or a function");
63
+ if (typeof r < "u") {
64
+ if (r.has(n)) return r.get(n);
65
+ r.set(n, d);
66
+ }
67
+ function d() {
68
+ return I(n, arguments, _(this).constructor);
69
+ }
70
+ return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), A(d, n);
71
+ }, Y(e);
72
+ }
73
+ function I(e, r, t) {
74
+ return Vt() ? I = Reflect.construct : I = function(d, i, a) {
75
+ var o = [null];
76
+ o.push.apply(o, i);
77
+ var $ = Function.bind.apply(d, o), u = new $();
78
+ return a && A(u, a.prototype), u;
79
+ }, I.apply(null, arguments);
80
+ }
81
+ function Vt() {
82
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
83
+ if (typeof Proxy == "function") return !0;
84
+ try {
85
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
86
+ })), !0;
87
+ } catch {
88
+ return !1;
89
+ }
90
+ }
91
+ function Ne(e) {
92
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
93
+ }
94
+ function A(e, r) {
95
+ return A = Object.setPrototypeOf || function(n, d) {
96
+ return n.__proto__ = d, n;
97
+ }, A(e, r);
98
+ }
99
+ function _(e) {
100
+ return _ = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
101
+ return t.__proto__ || Object.getPrototypeOf(t);
102
+ }, _(e);
103
+ }
104
+ var C = /* @__PURE__ */ function(e) {
105
+ ye(t, e);
106
+ var r = ve(t);
107
+ function t(n) {
108
+ var d;
109
+ return me(this, t), d = r.call(this, n), Object.setPrototypeOf(Wt(d), t.prototype), d.name = d.constructor.name, d;
110
+ }
111
+ return ge(t);
112
+ }(/* @__PURE__ */ Y(Error)), nt = 2, Ce = 17, be = 3, m = "0-90-9٠-٩۰-۹", Pe = "-‐-―−ー-", Se = "//", xe = "..", Ee = "  ­​⁠ ", Ae = "()()[]\\[\\]", _e = "~⁓∼~", N = "".concat(Pe).concat(Se).concat(xe).concat(Ee).concat(Ae).concat(_e), R = "++";
113
+ function ot(e, r) {
114
+ e = e.split("-"), r = r.split("-");
115
+ for (var t = e[0].split("."), n = r[0].split("."), d = 0; d < 3; d++) {
116
+ var i = Number(t[d]), a = Number(n[d]);
117
+ if (i > a) return 1;
118
+ if (a > i) return -1;
119
+ if (!isNaN(i) && isNaN(a)) return 1;
120
+ if (isNaN(i) && !isNaN(a)) return -1;
121
+ }
122
+ return e[1] && r[1] ? e[1] > r[1] ? 1 : e[1] < r[1] ? -1 : 0 : !e[1] && r[1] ? 1 : e[1] && !r[1] ? -1 : 0;
123
+ }
124
+ var Fe = {}.constructor;
125
+ function E(e) {
126
+ return e != null && e.constructor === Fe;
127
+ }
128
+ function X(e) {
129
+ "@babel/helpers - typeof";
130
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
131
+ return typeof r;
132
+ } : function(r) {
133
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
134
+ }, X(e);
135
+ }
136
+ function D(e, r) {
137
+ if (!(e instanceof r))
138
+ throw new TypeError("Cannot call a class as a function");
139
+ }
140
+ function Ie(e, r) {
141
+ for (var t = 0; t < r.length; t++) {
142
+ var n = r[t];
143
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
144
+ }
145
+ }
146
+ function M(e, r, t) {
147
+ return r && Ie(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
148
+ }
149
+ var Te = "1.2.0", Oe = "1.7.35", $t = " ext. ", we = /^\d+$/, g = /* @__PURE__ */ function() {
150
+ function e(r) {
151
+ D(this, e), Le(r), this.metadata = r, Kt.call(this, r);
152
+ }
153
+ return M(e, [{
154
+ key: "getCountries",
155
+ value: function() {
156
+ return Object.keys(this.metadata.countries).filter(function(t) {
157
+ return t !== "001";
158
+ });
159
+ }
160
+ }, {
161
+ key: "getCountryMetadata",
162
+ value: function(t) {
163
+ return this.metadata.countries[t];
164
+ }
165
+ }, {
166
+ key: "nonGeographic",
167
+ value: function() {
168
+ if (!(this.v1 || this.v2 || this.v3))
169
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
170
+ }
171
+ }, {
172
+ key: "hasCountry",
173
+ value: function(t) {
174
+ return this.getCountryMetadata(t) !== void 0;
175
+ }
176
+ }, {
177
+ key: "hasCallingCode",
178
+ value: function(t) {
179
+ if (this.getCountryCodesForCallingCode(t))
180
+ return !0;
181
+ if (this.nonGeographic()) {
182
+ if (this.nonGeographic()[t])
183
+ return !0;
184
+ } else {
185
+ var n = this.countryCallingCodes()[t];
186
+ if (n && n.length === 1 && n[0] === "001")
187
+ return !0;
188
+ }
189
+ }
190
+ }, {
191
+ key: "isNonGeographicCallingCode",
192
+ value: function(t) {
193
+ return this.nonGeographic() ? !!this.nonGeographic()[t] : !this.getCountryCodesForCallingCode(t);
194
+ }
195
+ // Deprecated.
196
+ }, {
197
+ key: "country",
198
+ value: function(t) {
199
+ return this.selectNumberingPlan(t);
200
+ }
201
+ }, {
202
+ key: "selectNumberingPlan",
203
+ value: function(t, n) {
204
+ if (t && we.test(t) && (n = t, t = null), t && t !== "001") {
205
+ if (!this.hasCountry(t))
206
+ throw new Error("Unknown country: ".concat(t));
207
+ this.numberingPlan = new ut(this.getCountryMetadata(t), this);
208
+ } else if (n) {
209
+ if (!this.hasCallingCode(n))
210
+ throw new Error("Unknown calling code: ".concat(n));
211
+ this.numberingPlan = new ut(this.getNumberingPlanMetadata(n), this);
212
+ } else
213
+ this.numberingPlan = void 0;
214
+ return this;
215
+ }
216
+ }, {
217
+ key: "getCountryCodesForCallingCode",
218
+ value: function(t) {
219
+ var n = this.countryCallingCodes()[t];
220
+ if (n)
221
+ return n.length === 1 && n[0].length === 3 ? void 0 : n;
222
+ }
223
+ }, {
224
+ key: "getCountryCodeForCallingCode",
225
+ value: function(t) {
226
+ var n = this.getCountryCodesForCallingCode(t);
227
+ if (n)
228
+ return n[0];
229
+ }
230
+ }, {
231
+ key: "getNumberingPlanMetadata",
232
+ value: function(t) {
233
+ var n = this.getCountryCodeForCallingCode(t);
234
+ if (n)
235
+ return this.getCountryMetadata(n);
236
+ if (this.nonGeographic()) {
237
+ var d = this.nonGeographic()[t];
238
+ if (d)
239
+ return d;
240
+ } else {
241
+ var i = this.countryCallingCodes()[t];
242
+ if (i && i.length === 1 && i[0] === "001")
243
+ return this.metadata.countries["001"];
244
+ }
245
+ }
246
+ // Deprecated.
247
+ }, {
248
+ key: "countryCallingCode",
249
+ value: function() {
250
+ return this.numberingPlan.callingCode();
251
+ }
252
+ // Deprecated.
253
+ }, {
254
+ key: "IDDPrefix",
255
+ value: function() {
256
+ return this.numberingPlan.IDDPrefix();
257
+ }
258
+ // Deprecated.
259
+ }, {
260
+ key: "defaultIDDPrefix",
261
+ value: function() {
262
+ return this.numberingPlan.defaultIDDPrefix();
263
+ }
264
+ // Deprecated.
265
+ }, {
266
+ key: "nationalNumberPattern",
267
+ value: function() {
268
+ return this.numberingPlan.nationalNumberPattern();
269
+ }
270
+ // Deprecated.
271
+ }, {
272
+ key: "possibleLengths",
273
+ value: function() {
274
+ return this.numberingPlan.possibleLengths();
275
+ }
276
+ // Deprecated.
277
+ }, {
278
+ key: "formats",
279
+ value: function() {
280
+ return this.numberingPlan.formats();
281
+ }
282
+ // Deprecated.
283
+ }, {
284
+ key: "nationalPrefixForParsing",
285
+ value: function() {
286
+ return this.numberingPlan.nationalPrefixForParsing();
287
+ }
288
+ // Deprecated.
289
+ }, {
290
+ key: "nationalPrefixTransformRule",
291
+ value: function() {
292
+ return this.numberingPlan.nationalPrefixTransformRule();
293
+ }
294
+ // Deprecated.
295
+ }, {
296
+ key: "leadingDigits",
297
+ value: function() {
298
+ return this.numberingPlan.leadingDigits();
299
+ }
300
+ // Deprecated.
301
+ }, {
302
+ key: "hasTypes",
303
+ value: function() {
304
+ return this.numberingPlan.hasTypes();
305
+ }
306
+ // Deprecated.
307
+ }, {
308
+ key: "type",
309
+ value: function(t) {
310
+ return this.numberingPlan.type(t);
311
+ }
312
+ // Deprecated.
313
+ }, {
314
+ key: "ext",
315
+ value: function() {
316
+ return this.numberingPlan.ext();
317
+ }
318
+ }, {
319
+ key: "countryCallingCodes",
320
+ value: function() {
321
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
322
+ }
323
+ // Deprecated.
324
+ }, {
325
+ key: "chooseCountryByCountryCallingCode",
326
+ value: function(t) {
327
+ return this.selectNumberingPlan(t);
328
+ }
329
+ }, {
330
+ key: "hasSelectedNumberingPlan",
331
+ value: function() {
332
+ return this.numberingPlan !== void 0;
333
+ }
334
+ }]), e;
335
+ }(), ut = /* @__PURE__ */ function() {
336
+ function e(r, t) {
337
+ D(this, e), this.globalMetadataObject = t, this.metadata = r, Kt.call(this, t.metadata);
338
+ }
339
+ return M(e, [{
340
+ key: "callingCode",
341
+ value: function() {
342
+ return this.metadata[0];
343
+ }
344
+ // Formatting information for regions which share
345
+ // a country calling code is contained by only one region
346
+ // for performance reasons. For example, for NANPA region
347
+ // ("North American Numbering Plan Administration",
348
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
349
+ // it will be contained in the metadata for `US`.
350
+ }, {
351
+ key: "getDefaultCountryMetadataForRegion",
352
+ value: function() {
353
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
354
+ }
355
+ // Is always present.
356
+ }, {
357
+ key: "IDDPrefix",
358
+ value: function() {
359
+ if (!(this.v1 || this.v2))
360
+ return this.metadata[1];
361
+ }
362
+ // Is only present when a country supports multiple IDD prefixes.
363
+ }, {
364
+ key: "defaultIDDPrefix",
365
+ value: function() {
366
+ if (!(this.v1 || this.v2))
367
+ return this.metadata[12];
368
+ }
369
+ }, {
370
+ key: "nationalNumberPattern",
371
+ value: function() {
372
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
373
+ }
374
+ // "possible length" data is always present in Google's metadata.
375
+ }, {
376
+ key: "possibleLengths",
377
+ value: function() {
378
+ if (!this.v1)
379
+ return this.metadata[this.v2 ? 2 : 3];
380
+ }
381
+ }, {
382
+ key: "_getFormats",
383
+ value: function(t) {
384
+ return t[this.v1 ? 2 : this.v2 ? 3 : 4];
385
+ }
386
+ // For countries of the same region (e.g. NANPA)
387
+ // formats are all stored in the "main" country for that region.
388
+ // E.g. "RU" and "KZ", "US" and "CA".
389
+ }, {
390
+ key: "formats",
391
+ value: function() {
392
+ var t = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
393
+ return n.map(function(d) {
394
+ return new Re(d, t);
395
+ });
396
+ }
397
+ }, {
398
+ key: "nationalPrefix",
399
+ value: function() {
400
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
401
+ }
402
+ }, {
403
+ key: "_getNationalPrefixFormattingRule",
404
+ value: function(t) {
405
+ return t[this.v1 ? 4 : this.v2 ? 5 : 6];
406
+ }
407
+ // For countries of the same region (e.g. NANPA)
408
+ // national prefix formatting rule is stored in the "main" country for that region.
409
+ // E.g. "RU" and "KZ", "US" and "CA".
410
+ }, {
411
+ key: "nationalPrefixFormattingRule",
412
+ value: function() {
413
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
414
+ }
415
+ }, {
416
+ key: "_nationalPrefixForParsing",
417
+ value: function() {
418
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
419
+ }
420
+ }, {
421
+ key: "nationalPrefixForParsing",
422
+ value: function() {
423
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
424
+ }
425
+ }, {
426
+ key: "nationalPrefixTransformRule",
427
+ value: function() {
428
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
429
+ }
430
+ }, {
431
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
432
+ value: function() {
433
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
434
+ }
435
+ // For countries of the same region (e.g. NANPA)
436
+ // "national prefix is optional when formatting" flag is
437
+ // stored in the "main" country for that region.
438
+ // E.g. "RU" and "KZ", "US" and "CA".
439
+ }, {
440
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
441
+ value: function() {
442
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
443
+ }
444
+ }, {
445
+ key: "leadingDigits",
446
+ value: function() {
447
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
448
+ }
449
+ }, {
450
+ key: "types",
451
+ value: function() {
452
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
453
+ }
454
+ }, {
455
+ key: "hasTypes",
456
+ value: function() {
457
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
458
+ }
459
+ }, {
460
+ key: "type",
461
+ value: function(t) {
462
+ if (this.hasTypes() && lt(this.types(), t))
463
+ return new Me(lt(this.types(), t), this);
464
+ }
465
+ }, {
466
+ key: "ext",
467
+ value: function() {
468
+ return this.v1 || this.v2 ? $t : this.metadata[13] || $t;
469
+ }
470
+ }]), e;
471
+ }(), Re = /* @__PURE__ */ function() {
472
+ function e(r, t) {
473
+ D(this, e), this._format = r, this.metadata = t;
474
+ }
475
+ return M(e, [{
476
+ key: "pattern",
477
+ value: function() {
478
+ return this._format[0];
479
+ }
480
+ }, {
481
+ key: "format",
482
+ value: function() {
483
+ return this._format[1];
484
+ }
485
+ }, {
486
+ key: "leadingDigitsPatterns",
487
+ value: function() {
488
+ return this._format[2] || [];
489
+ }
490
+ }, {
491
+ key: "nationalPrefixFormattingRule",
492
+ value: function() {
493
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
494
+ }
495
+ }, {
496
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
497
+ value: function() {
498
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
499
+ }
500
+ }, {
501
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
502
+ value: function() {
503
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
504
+ }
505
+ // Checks whether national prefix formatting rule contains national prefix.
506
+ }, {
507
+ key: "usesNationalPrefix",
508
+ value: function() {
509
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
510
+ !De.test(this.nationalPrefixFormattingRule()));
511
+ }
512
+ }, {
513
+ key: "internationalFormat",
514
+ value: function() {
515
+ return this._format[5] || this.format();
516
+ }
517
+ }]), e;
518
+ }(), De = /^\(?\$1\)?$/, Me = /* @__PURE__ */ function() {
519
+ function e(r, t) {
520
+ D(this, e), this.type = r, this.metadata = t;
521
+ }
522
+ return M(e, [{
523
+ key: "pattern",
524
+ value: function() {
525
+ return this.metadata.v1 ? this.type : this.type[0];
526
+ }
527
+ }, {
528
+ key: "possibleLengths",
529
+ value: function() {
530
+ if (!this.metadata.v1)
531
+ return this.type[1] || this.metadata.possibleLengths();
532
+ }
533
+ }]), e;
534
+ }();
535
+ function lt(e, r) {
536
+ switch (r) {
537
+ case "FIXED_LINE":
538
+ return e[0];
539
+ case "MOBILE":
540
+ return e[1];
541
+ case "TOLL_FREE":
542
+ return e[2];
543
+ case "PREMIUM_RATE":
544
+ return e[3];
545
+ case "PERSONAL_NUMBER":
546
+ return e[4];
547
+ case "VOICEMAIL":
548
+ return e[5];
549
+ case "UAN":
550
+ return e[6];
551
+ case "PAGER":
552
+ return e[7];
553
+ case "VOIP":
554
+ return e[8];
555
+ case "SHARED_COST":
556
+ return e[9];
557
+ }
558
+ }
559
+ function Le(e) {
560
+ if (!e)
561
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
562
+ if (!E(e) || !E(e.countries))
563
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(E(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + ke(e) + ": " + e, "."));
564
+ }
565
+ var ke = function(r) {
566
+ return X(r);
567
+ };
568
+ function dt(e, r) {
569
+ if (r = new g(r), r.hasCountry(e))
570
+ return r.country(e).countryCallingCode();
571
+ throw new Error("Unknown country: ".concat(e));
572
+ }
573
+ function Ge(e, r) {
574
+ return r.countries.hasOwnProperty(e);
575
+ }
576
+ function Kt(e) {
577
+ var r = e.version;
578
+ typeof r == "number" ? (this.v1 = r === 1, this.v2 = r === 2, this.v3 = r === 3, this.v4 = r === 4) : r ? ot(r, Te) === -1 ? this.v2 = !0 : ot(r, Oe) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
579
+ }
580
+ var Be = ";ext=", S = function(r) {
581
+ return "([".concat(m, "]{1,").concat(r, "})");
582
+ };
583
+ function Yt(e) {
584
+ var r = "20", t = "15", n = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", $ = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", l = "[- ]+", h = "[  \\t]*", f = "(?:,{2}|;)", y = Be + S(r), s = i + $ + a + S(r) + o, v = i + u + a + S(n) + o, c = l + S(d) + "#", F = h + f + a + S(t) + o, P = h + "(?:,)+" + a + S(n) + o;
585
+ return y + "|" + s + "|" + v + "|" + c + "|" + F + "|" + P;
586
+ }
587
+ var Ue = "[" + m + "]{" + nt + "}", je = "[" + R + "]{0,1}(?:[" + N + "]*[" + m + "]){3,}[" + N + m + "]*", He = new RegExp("^[" + R + "]{0,1}(?:[" + N + "]*[" + m + "]){1,2}$", "i"), We = je + // Phone number extensions
588
+ "(?:" + Yt() + ")?", Ve = new RegExp(
589
+ // Either a short two-digit-only phone number
590
+ "^" + Ue + "$|^" + We + "$",
591
+ "i"
592
+ );
593
+ function Ke(e) {
594
+ return e.length >= nt && Ve.test(e);
595
+ }
596
+ function Ye(e) {
597
+ return He.test(e);
598
+ }
599
+ var st = new RegExp("(?:" + Yt() + ")$", "i");
600
+ function Xe(e) {
601
+ var r = e.search(st);
602
+ if (r < 0)
603
+ return {};
604
+ for (var t = e.slice(0, r), n = e.match(st), d = 1; d < n.length; ) {
605
+ if (n[d])
606
+ return {
607
+ number: t,
608
+ ext: n[d]
609
+ };
610
+ d++;
611
+ }
612
+ }
613
+ function Ze(e, r) {
614
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
615
+ if (t) return (t = t.call(e)).next.bind(t);
616
+ if (Array.isArray(e) || (t = Je(e)) || r) {
617
+ t && (e = t);
618
+ var n = 0;
619
+ return function() {
620
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
621
+ };
622
+ }
623
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
624
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
625
+ }
626
+ function Je(e, r) {
627
+ if (e) {
628
+ if (typeof e == "string") return ft(e, r);
629
+ var t = Object.prototype.toString.call(e).slice(8, -1);
630
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
631
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ft(e, r);
632
+ }
633
+ }
634
+ function ft(e, r) {
635
+ (r == null || r > e.length) && (r = e.length);
636
+ for (var t = 0, n = new Array(r); t < r; t++)
637
+ n[t] = e[t];
638
+ return n;
639
+ }
640
+ var Qe = {
641
+ 0: "0",
642
+ 1: "1",
643
+ 2: "2",
644
+ 3: "3",
645
+ 4: "4",
646
+ 5: "5",
647
+ 6: "6",
648
+ 7: "7",
649
+ 8: "8",
650
+ 9: "9",
651
+ "0": "0",
652
+ // Fullwidth digit 0
653
+ "1": "1",
654
+ // Fullwidth digit 1
655
+ "2": "2",
656
+ // Fullwidth digit 2
657
+ "3": "3",
658
+ // Fullwidth digit 3
659
+ "4": "4",
660
+ // Fullwidth digit 4
661
+ "5": "5",
662
+ // Fullwidth digit 5
663
+ "6": "6",
664
+ // Fullwidth digit 6
665
+ "7": "7",
666
+ // Fullwidth digit 7
667
+ "8": "8",
668
+ // Fullwidth digit 8
669
+ "9": "9",
670
+ // Fullwidth digit 9
671
+ "٠": "0",
672
+ // Arabic-indic digit 0
673
+ "١": "1",
674
+ // Arabic-indic digit 1
675
+ "٢": "2",
676
+ // Arabic-indic digit 2
677
+ "٣": "3",
678
+ // Arabic-indic digit 3
679
+ "٤": "4",
680
+ // Arabic-indic digit 4
681
+ "٥": "5",
682
+ // Arabic-indic digit 5
683
+ "٦": "6",
684
+ // Arabic-indic digit 6
685
+ "٧": "7",
686
+ // Arabic-indic digit 7
687
+ "٨": "8",
688
+ // Arabic-indic digit 8
689
+ "٩": "9",
690
+ // Arabic-indic digit 9
691
+ "۰": "0",
692
+ // Eastern-Arabic digit 0
693
+ "۱": "1",
694
+ // Eastern-Arabic digit 1
695
+ "۲": "2",
696
+ // Eastern-Arabic digit 2
697
+ "۳": "3",
698
+ // Eastern-Arabic digit 3
699
+ "۴": "4",
700
+ // Eastern-Arabic digit 4
701
+ "۵": "5",
702
+ // Eastern-Arabic digit 5
703
+ "۶": "6",
704
+ // Eastern-Arabic digit 6
705
+ "۷": "7",
706
+ // Eastern-Arabic digit 7
707
+ "۸": "8",
708
+ // Eastern-Arabic digit 8
709
+ "۹": "9"
710
+ // Eastern-Arabic digit 9
711
+ };
712
+ function Xt(e) {
713
+ return Qe[e];
714
+ }
715
+ function O(e) {
716
+ for (var r = "", t = Ze(e.split("")), n; !(n = t()).done; ) {
717
+ var d = n.value, i = Xt(d);
718
+ i && (r += i);
719
+ }
720
+ return r;
721
+ }
722
+ function qe(e, r) {
723
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
724
+ if (t) return (t = t.call(e)).next.bind(t);
725
+ if (Array.isArray(e) || (t = ze(e)) || r) {
726
+ t && (e = t);
727
+ var n = 0;
728
+ return function() {
729
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
730
+ };
731
+ }
732
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
733
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
734
+ }
735
+ function ze(e, r) {
736
+ if (e) {
737
+ if (typeof e == "string") return ct(e, r);
738
+ var t = Object.prototype.toString.call(e).slice(8, -1);
739
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
740
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ct(e, r);
741
+ }
742
+ }
743
+ function ct(e, r) {
744
+ (r == null || r > e.length) && (r = e.length);
745
+ for (var t = 0, n = new Array(r); t < r; t++)
746
+ n[t] = e[t];
747
+ return n;
748
+ }
749
+ function ht(e) {
750
+ for (var r = "", t = qe(e.split("")), n; !(n = t()).done; ) {
751
+ var d = n.value;
752
+ r += tr(d, r) || "";
753
+ }
754
+ return r;
755
+ }
756
+ function tr(e, r, t) {
757
+ return e === "+" ? r ? void 0 : "+" : Xt(e);
758
+ }
759
+ function L(e, r) {
760
+ return er(e, void 0, r);
761
+ }
762
+ function er(e, r, t) {
763
+ var n = t.type(r), d = n && n.possibleLengths() || t.possibleLengths();
764
+ if (!d)
765
+ return "IS_POSSIBLE";
766
+ var i = e.length, a = d[0];
767
+ return a === i ? "IS_POSSIBLE" : a > i ? "TOO_SHORT" : d[d.length - 1] < i ? "TOO_LONG" : d.indexOf(i, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
768
+ }
769
+ function rr(e, r, t) {
770
+ if (r === void 0 && (r = {}), t = new g(t), r.v2) {
771
+ if (!e.countryCallingCode)
772
+ throw new Error("Invalid phone number object passed");
773
+ t.selectNumberingPlan(e.countryCallingCode);
774
+ } else {
775
+ if (!e.phone)
776
+ return !1;
777
+ if (e.country) {
778
+ if (!t.hasCountry(e.country))
779
+ throw new Error("Unknown country: ".concat(e.country));
780
+ t.country(e.country);
781
+ } else {
782
+ if (!e.countryCallingCode)
783
+ throw new Error("Invalid phone number object passed");
784
+ t.selectNumberingPlan(e.countryCallingCode);
785
+ }
786
+ }
787
+ if (t.possibleLengths())
788
+ return Zt(e.phone || e.nationalNumber, t);
789
+ if (e.countryCallingCode && t.isNonGeographicCallingCode(e.countryCallingCode))
790
+ return !0;
791
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
792
+ }
793
+ function Zt(e, r) {
794
+ switch (L(e, r)) {
795
+ case "IS_POSSIBLE":
796
+ return !0;
797
+ // This library ignores "local-only" phone numbers (for simplicity).
798
+ // See the readme for more info on what are "local-only" phone numbers.
799
+ // case 'IS_POSSIBLE_LOCAL_ONLY':
800
+ // return !isInternational
801
+ default:
802
+ return !1;
803
+ }
804
+ }
805
+ function b(e, r) {
806
+ return e = e || "", new RegExp("^(?:" + r + ")$").test(e);
807
+ }
808
+ function nr(e, r) {
809
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
810
+ if (t) return (t = t.call(e)).next.bind(t);
811
+ if (Array.isArray(e) || (t = dr(e)) || r) {
812
+ t && (e = t);
813
+ var n = 0;
814
+ return function() {
815
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
816
+ };
817
+ }
818
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
819
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
820
+ }
821
+ function dr(e, r) {
822
+ if (e) {
823
+ if (typeof e == "string") return gt(e, r);
824
+ var t = Object.prototype.toString.call(e).slice(8, -1);
825
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
826
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return gt(e, r);
827
+ }
828
+ }
829
+ function gt(e, r) {
830
+ (r == null || r > e.length) && (r = e.length);
831
+ for (var t = 0, n = new Array(r); t < r; t++)
832
+ n[t] = e[t];
833
+ return n;
834
+ }
835
+ var ir = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
836
+ function it(e, r, t) {
837
+ if (r = r || {}, !(!e.country && !e.countryCallingCode)) {
838
+ t = new g(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
839
+ var n = r.v2 ? e.nationalNumber : e.phone;
840
+ if (b(n, t.nationalNumberPattern())) {
841
+ if (U(n, "FIXED_LINE", t))
842
+ return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || U(n, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
843
+ for (var d = nr(ir), i; !(i = d()).done; ) {
844
+ var a = i.value;
845
+ if (U(n, a, t))
846
+ return a;
847
+ }
848
+ }
849
+ }
850
+ }
851
+ function U(e, r, t) {
852
+ return r = t.type(r), !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : b(e, r.pattern());
853
+ }
854
+ function ar(e, r, t) {
855
+ if (r = r || {}, t = new g(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
856
+ return it(e, r, t.metadata) !== void 0;
857
+ var n = r.v2 ? e.nationalNumber : e.phone;
858
+ return b(n, t.nationalNumberPattern());
859
+ }
860
+ function or(e, r, t) {
861
+ var n = new g(t), d = n.getCountryCodesForCallingCode(e);
862
+ return d ? d.filter(function(i) {
863
+ return $r(r, i, t);
864
+ }) : [];
865
+ }
866
+ function $r(e, r, t) {
867
+ var n = new g(t);
868
+ return n.selectNumberingPlan(r), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
869
+ }
870
+ function Jt(e) {
871
+ return e.replace(new RegExp("[".concat(N, "]+"), "g"), " ").trim();
872
+ }
873
+ var Qt = /(\$\d)/;
874
+ function qt(e, r, t) {
875
+ var n = t.useInternationalFormat, d = t.withNationalPrefix;
876
+ t.carrierCode, t.metadata;
877
+ var i = e.replace(new RegExp(r.pattern()), n ? r.internationalFormat() : (
878
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
879
+ // because that one is only used when formatting phone numbers
880
+ // for dialing from a mobile phone, and this is not a dialing library.
881
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
882
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
883
+ // // Then, replace the $FG in the formatting rule with the first group
884
+ // // and the carrier code combined in the appropriate way.
885
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
886
+ // : (
887
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
888
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
889
+ // : format.format()
890
+ // )
891
+ d && r.nationalPrefixFormattingRule() ? r.format().replace(Qt, r.nationalPrefixFormattingRule()) : r.format()
892
+ ));
893
+ return n ? Jt(i) : i;
894
+ }
895
+ var ur = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
896
+ function lr(e, r, t) {
897
+ var n = new g(t);
898
+ if (n.selectNumberingPlan(e, r), n.defaultIDDPrefix())
899
+ return n.defaultIDDPrefix();
900
+ if (ur.test(n.IDDPrefix()))
901
+ return n.IDDPrefix();
902
+ }
903
+ function sr(e) {
904
+ var r = e.number, t = e.ext;
905
+ if (!r)
906
+ return "";
907
+ if (r[0] !== "+")
908
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
909
+ return "tel:".concat(r).concat(t ? ";ext=" + t : "");
910
+ }
911
+ function fr(e, r) {
912
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
913
+ if (t) return (t = t.call(e)).next.bind(t);
914
+ if (Array.isArray(e) || (t = cr(e)) || r) {
915
+ t && (e = t);
916
+ var n = 0;
917
+ return function() {
918
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
919
+ };
920
+ }
921
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
922
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
923
+ }
924
+ function cr(e, r) {
925
+ if (e) {
926
+ if (typeof e == "string") return mt(e, r);
927
+ var t = Object.prototype.toString.call(e).slice(8, -1);
928
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
929
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return mt(e, r);
930
+ }
931
+ }
932
+ function mt(e, r) {
933
+ (r == null || r > e.length) && (r = e.length);
934
+ for (var t = 0, n = new Array(r); t < r; t++)
935
+ n[t] = e[t];
936
+ return n;
937
+ }
938
+ function yt(e, r) {
939
+ var t = Object.keys(e);
940
+ if (Object.getOwnPropertySymbols) {
941
+ var n = Object.getOwnPropertySymbols(e);
942
+ r && (n = n.filter(function(d) {
943
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
944
+ })), t.push.apply(t, n);
945
+ }
946
+ return t;
947
+ }
948
+ function vt(e) {
949
+ for (var r = 1; r < arguments.length; r++) {
950
+ var t = arguments[r] != null ? arguments[r] : {};
951
+ r % 2 ? yt(Object(t), !0).forEach(function(n) {
952
+ hr(e, n, t[n]);
953
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : yt(Object(t)).forEach(function(n) {
954
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
955
+ });
956
+ }
957
+ return e;
958
+ }
959
+ function hr(e, r, t) {
960
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
961
+ }
962
+ var pt = {
963
+ formatExtension: function(r, t, n) {
964
+ return "".concat(r).concat(n.ext()).concat(t);
965
+ }
966
+ };
967
+ function gr(e, r, t, n) {
968
+ if (t ? t = vt(vt({}, pt), t) : t = pt, n = new g(n), e.country && e.country !== "001") {
969
+ if (!n.hasCountry(e.country))
970
+ throw new Error("Unknown country: ".concat(e.country));
971
+ n.country(e.country);
972
+ } else if (e.countryCallingCode)
973
+ n.selectNumberingPlan(e.countryCallingCode);
974
+ else return e.phone || "";
975
+ var d = n.countryCallingCode(), i = t.v2 ? e.nationalNumber : e.phone, a;
976
+ switch (r) {
977
+ case "NATIONAL":
978
+ return i ? (a = w(i, e.carrierCode, "NATIONAL", n, t), j(a, e.ext, n, t.formatExtension)) : "";
979
+ case "INTERNATIONAL":
980
+ return i ? (a = w(i, null, "INTERNATIONAL", n, t), a = "+".concat(d, " ").concat(a), j(a, e.ext, n, t.formatExtension)) : "+".concat(d);
981
+ case "E.164":
982
+ return "+".concat(d).concat(i);
983
+ case "RFC3966":
984
+ return sr({
985
+ number: "+".concat(d).concat(i),
986
+ ext: e.ext
987
+ });
988
+ // For reference, here's Google's IDD formatter:
989
+ // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
990
+ // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
991
+ // Who would even need to format phone numbers in IDD format anyway?
992
+ case "IDD":
993
+ if (!t.fromCountry)
994
+ return;
995
+ var o = yr(i, e.carrierCode, d, t.fromCountry, n);
996
+ return j(o, e.ext, n, t.formatExtension);
997
+ default:
998
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(r, '"'));
999
+ }
1000
+ }
1001
+ function w(e, r, t, n, d) {
1002
+ var i = mr(n.formats(), e);
1003
+ return i ? qt(e, i, {
1004
+ useInternationalFormat: t === "INTERNATIONAL",
1005
+ withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
1006
+ carrierCode: r,
1007
+ metadata: n
1008
+ }) : e;
1009
+ }
1010
+ function mr(e, r) {
1011
+ for (var t = fr(e), n; !(n = t()).done; ) {
1012
+ var d = n.value;
1013
+ if (d.leadingDigitsPatterns().length > 0) {
1014
+ var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
1015
+ if (r.search(i) !== 0)
1016
+ continue;
1017
+ }
1018
+ if (b(r, d.pattern()))
1019
+ return d;
1020
+ }
1021
+ }
1022
+ function j(e, r, t, n) {
1023
+ return r ? n(e, r, t) : e;
1024
+ }
1025
+ function yr(e, r, t, n, d) {
1026
+ var i = dt(n, d.metadata);
1027
+ if (i === t) {
1028
+ var a = w(e, r, "NATIONAL", d);
1029
+ return t === "1" ? t + " " + a : a;
1030
+ }
1031
+ var o = lr(n, void 0, d.metadata);
1032
+ if (o)
1033
+ return "".concat(o, " ").concat(t, " ").concat(w(e, null, "INTERNATIONAL", d));
1034
+ }
1035
+ function Nt(e, r) {
1036
+ var t = Object.keys(e);
1037
+ if (Object.getOwnPropertySymbols) {
1038
+ var n = Object.getOwnPropertySymbols(e);
1039
+ r && (n = n.filter(function(d) {
1040
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1041
+ })), t.push.apply(t, n);
1042
+ }
1043
+ return t;
1044
+ }
1045
+ function Ct(e) {
1046
+ for (var r = 1; r < arguments.length; r++) {
1047
+ var t = arguments[r] != null ? arguments[r] : {};
1048
+ r % 2 ? Nt(Object(t), !0).forEach(function(n) {
1049
+ vr(e, n, t[n]);
1050
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Nt(Object(t)).forEach(function(n) {
1051
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1052
+ });
1053
+ }
1054
+ return e;
1055
+ }
1056
+ function vr(e, r, t) {
1057
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1058
+ }
1059
+ function pr(e, r) {
1060
+ if (!(e instanceof r))
1061
+ throw new TypeError("Cannot call a class as a function");
1062
+ }
1063
+ function Nr(e, r) {
1064
+ for (var t = 0; t < r.length; t++) {
1065
+ var n = r[t];
1066
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1067
+ }
1068
+ }
1069
+ function Cr(e, r, t) {
1070
+ return r && Nr(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1071
+ }
1072
+ var at = /* @__PURE__ */ function() {
1073
+ function e(r, t, n) {
1074
+ if (pr(this, e), !r)
1075
+ throw new TypeError("`country` or `countryCallingCode` not passed");
1076
+ if (!t)
1077
+ throw new TypeError("`nationalNumber` not passed");
1078
+ if (!n)
1079
+ throw new TypeError("`metadata` not passed");
1080
+ var d = Pr(r, n), i = d.country, a = d.countryCallingCode;
1081
+ this.country = i, this.countryCallingCode = a, this.nationalNumber = t, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1082
+ return n;
1083
+ };
1084
+ }
1085
+ return Cr(e, [{
1086
+ key: "setExt",
1087
+ value: function(t) {
1088
+ this.ext = t;
1089
+ }
1090
+ }, {
1091
+ key: "getPossibleCountries",
1092
+ value: function() {
1093
+ return this.country ? [this.country] : or(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1094
+ }
1095
+ }, {
1096
+ key: "isPossible",
1097
+ value: function() {
1098
+ return rr(this, {
1099
+ v2: !0
1100
+ }, this.getMetadata());
1101
+ }
1102
+ }, {
1103
+ key: "isValid",
1104
+ value: function() {
1105
+ return ar(this, {
1106
+ v2: !0
1107
+ }, this.getMetadata());
1108
+ }
1109
+ }, {
1110
+ key: "isNonGeographic",
1111
+ value: function() {
1112
+ var t = new g(this.getMetadata());
1113
+ return t.isNonGeographicCallingCode(this.countryCallingCode);
1114
+ }
1115
+ }, {
1116
+ key: "isEqual",
1117
+ value: function(t) {
1118
+ return this.number === t.number && this.ext === t.ext;
1119
+ }
1120
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1121
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1122
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1123
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1124
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1125
+ // and additional step to also validate the actual country / calling code of the phone number.
1126
+ // validateLength() {
1127
+ // const metadata = new Metadata(this.getMetadata())
1128
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1129
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1130
+ // if (result !== 'IS_POSSIBLE') {
1131
+ // return result
1132
+ // }
1133
+ // }
1134
+ }, {
1135
+ key: "getType",
1136
+ value: function() {
1137
+ return it(this, {
1138
+ v2: !0
1139
+ }, this.getMetadata());
1140
+ }
1141
+ }, {
1142
+ key: "format",
1143
+ value: function(t, n) {
1144
+ return gr(this, t, n ? Ct(Ct({}, n), {}, {
1145
+ v2: !0
1146
+ }) : {
1147
+ v2: !0
1148
+ }, this.getMetadata());
1149
+ }
1150
+ }, {
1151
+ key: "formatNational",
1152
+ value: function(t) {
1153
+ return this.format("NATIONAL", t);
1154
+ }
1155
+ }, {
1156
+ key: "formatInternational",
1157
+ value: function(t) {
1158
+ return this.format("INTERNATIONAL", t);
1159
+ }
1160
+ }, {
1161
+ key: "getURI",
1162
+ value: function(t) {
1163
+ return this.format("RFC3966", t);
1164
+ }
1165
+ }]), e;
1166
+ }(), br = function(r) {
1167
+ return /^[A-Z]{2}$/.test(r);
1168
+ };
1169
+ function Pr(e, r) {
1170
+ var t, n, d = new g(r);
1171
+ return br(e) ? (t = e, d.selectNumberingPlan(t), n = d.countryCallingCode()) : n = e, {
1172
+ country: t,
1173
+ countryCallingCode: n
1174
+ };
1175
+ }
1176
+ var Sr = new RegExp("([" + m + "])");
1177
+ function zt(e, r, t, n) {
1178
+ if (r) {
1179
+ var d = new g(n);
1180
+ d.selectNumberingPlan(r, t);
1181
+ var i = new RegExp(d.IDDPrefix());
1182
+ if (e.search(i) === 0) {
1183
+ e = e.slice(e.match(i)[0].length);
1184
+ var a = e.match(Sr);
1185
+ if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
1186
+ return e;
1187
+ }
1188
+ }
1189
+ }
1190
+ function Z(e, r) {
1191
+ if (e && r.numberingPlan.nationalPrefixForParsing()) {
1192
+ var t = new RegExp("^(?:" + r.numberingPlan.nationalPrefixForParsing() + ")"), n = t.exec(e);
1193
+ if (n) {
1194
+ var d, i, a = n.length - 1, o = a > 0 && n[a];
1195
+ if (r.nationalPrefixTransformRule() && o)
1196
+ d = e.replace(t, r.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
1197
+ else {
1198
+ var $ = n[0];
1199
+ d = e.slice($.length), o && (i = n[1]);
1200
+ }
1201
+ var u;
1202
+ if (o) {
1203
+ var l = e.indexOf(n[1]), h = e.slice(0, l);
1204
+ h === r.numberingPlan.nationalPrefix() && (u = r.numberingPlan.nationalPrefix());
1205
+ } else
1206
+ u = n[0];
1207
+ return {
1208
+ nationalNumber: d,
1209
+ nationalPrefix: u,
1210
+ carrierCode: i
1211
+ };
1212
+ }
1213
+ }
1214
+ return {
1215
+ nationalNumber: e
1216
+ };
1217
+ }
1218
+ function J(e, r) {
1219
+ var t = Z(e, r), n = t.carrierCode, d = t.nationalNumber;
1220
+ if (d !== e) {
1221
+ if (!xr(e, d, r))
1222
+ return {
1223
+ nationalNumber: e
1224
+ };
1225
+ if (r.possibleLengths() && !Er(d, r))
1226
+ return {
1227
+ nationalNumber: e
1228
+ };
1229
+ }
1230
+ return {
1231
+ nationalNumber: d,
1232
+ carrierCode: n
1233
+ };
1234
+ }
1235
+ function xr(e, r, t) {
1236
+ return !(b(e, t.nationalNumberPattern()) && !b(r, t.nationalNumberPattern()));
1237
+ }
1238
+ function Er(e, r) {
1239
+ switch (L(e, r)) {
1240
+ case "TOO_SHORT":
1241
+ case "INVALID_LENGTH":
1242
+ return !1;
1243
+ default:
1244
+ return !0;
1245
+ }
1246
+ }
1247
+ function te(e, r, t, n) {
1248
+ var d = r ? dt(r, n) : t;
1249
+ if (e.indexOf(d) === 0) {
1250
+ n = new g(n), n.selectNumberingPlan(r, t);
1251
+ var i = e.slice(d.length), a = J(i, n), o = a.nationalNumber, $ = J(e, n), u = $.nationalNumber;
1252
+ if (!b(u, n.nationalNumberPattern()) && b(o, n.nationalNumberPattern()) || L(u, n) === "TOO_LONG")
1253
+ return {
1254
+ countryCallingCode: d,
1255
+ number: i
1256
+ };
1257
+ }
1258
+ return {
1259
+ number: e
1260
+ };
1261
+ }
1262
+ function ee(e, r, t, n) {
1263
+ if (!e)
1264
+ return {};
1265
+ var d;
1266
+ if (e[0] !== "+") {
1267
+ var i = zt(e, r, t, n);
1268
+ if (i && i !== e)
1269
+ d = !0, e = "+" + i;
1270
+ else {
1271
+ if (r || t) {
1272
+ var a = te(e, r, t, n), o = a.countryCallingCode, $ = a.number;
1273
+ if (o)
1274
+ return {
1275
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
1276
+ countryCallingCode: o,
1277
+ number: $
1278
+ };
1279
+ }
1280
+ return {
1281
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
1282
+ // countryCallingCodeSource: 'UNSPECIFIED',
1283
+ number: e
1284
+ };
1285
+ }
1286
+ }
1287
+ if (e[1] === "0")
1288
+ return {};
1289
+ n = new g(n);
1290
+ for (var u = 2; u - 1 <= be && u <= e.length; ) {
1291
+ var l = e.slice(1, u);
1292
+ if (n.hasCallingCode(l))
1293
+ return n.selectNumberingPlan(l), {
1294
+ countryCallingCodeSource: d ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
1295
+ countryCallingCode: l,
1296
+ number: e.slice(u)
1297
+ };
1298
+ u++;
1299
+ }
1300
+ return {};
1301
+ }
1302
+ function Ar(e, r) {
1303
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1304
+ if (t) return (t = t.call(e)).next.bind(t);
1305
+ if (Array.isArray(e) || (t = _r(e)) || r) {
1306
+ t && (e = t);
1307
+ var n = 0;
1308
+ return function() {
1309
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1310
+ };
1311
+ }
1312
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1313
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1314
+ }
1315
+ function _r(e, r) {
1316
+ if (e) {
1317
+ if (typeof e == "string") return bt(e, r);
1318
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1319
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1320
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return bt(e, r);
1321
+ }
1322
+ }
1323
+ function bt(e, r) {
1324
+ (r == null || r > e.length) && (r = e.length);
1325
+ for (var t = 0, n = new Array(r); t < r; t++)
1326
+ n[t] = e[t];
1327
+ return n;
1328
+ }
1329
+ function re(e, r) {
1330
+ var t = r.countries, n = r.defaultCountry, d = r.metadata;
1331
+ d = new g(d);
1332
+ for (var i = [], a = Ar(t), o; !(o = a()).done; ) {
1333
+ var $ = o.value;
1334
+ if (d.country($), d.leadingDigits()) {
1335
+ if (e && e.search(d.leadingDigits()) === 0)
1336
+ return $;
1337
+ } else if (it({
1338
+ phone: e,
1339
+ country: $
1340
+ }, void 0, d.metadata))
1341
+ if (n) {
1342
+ if ($ === n)
1343
+ return $;
1344
+ i.push($);
1345
+ } else
1346
+ return $;
1347
+ }
1348
+ if (i.length > 0)
1349
+ return i[0];
1350
+ }
1351
+ function ne(e, r) {
1352
+ var t = r.nationalNumber, n = r.defaultCountry, d = r.metadata, i = d.getCountryCodesForCallingCode(e);
1353
+ if (i)
1354
+ return i.length === 1 ? i[0] : re(t, {
1355
+ countries: i,
1356
+ defaultCountry: n,
1357
+ metadata: d.metadata
1358
+ });
1359
+ }
1360
+ var de = "+", Fr = "[\\-\\.\\(\\)]?", Pt = "([" + m + "]|" + Fr + ")", Ir = "^\\" + de + Pt + "*[" + m + "]" + Pt + "*$", Tr = new RegExp(Ir, "g"), Q = m, Or = "[" + Q + "]+((\\-)*[" + Q + "])*", wr = "a-zA-Z", Rr = "[" + wr + "]+((\\-)*[" + Q + "])*", Dr = "^(" + Or + "\\.)*" + Rr + "\\.?$", Mr = new RegExp(Dr, "g"), St = "tel:", q = ";phone-context=", Lr = ";isub=";
1361
+ function kr(e) {
1362
+ var r = e.indexOf(q);
1363
+ if (r < 0)
1364
+ return null;
1365
+ var t = r + q.length;
1366
+ if (t >= e.length)
1367
+ return "";
1368
+ var n = e.indexOf(";", t);
1369
+ return n >= 0 ? e.substring(t, n) : e.substring(t);
1370
+ }
1371
+ function Gr(e) {
1372
+ return e === null ? !0 : e.length === 0 ? !1 : Tr.test(e) || Mr.test(e);
1373
+ }
1374
+ function Br(e, r) {
1375
+ var t = r.extractFormattedPhoneNumber, n = kr(e);
1376
+ if (!Gr(n))
1377
+ throw new C("NOT_A_NUMBER");
1378
+ var d;
1379
+ if (n === null)
1380
+ d = t(e) || "";
1381
+ else {
1382
+ d = "", n.charAt(0) === de && (d += n);
1383
+ var i = e.indexOf(St), a;
1384
+ i >= 0 ? a = i + St.length : a = 0;
1385
+ var o = e.indexOf(q);
1386
+ d += e.substring(a, o);
1387
+ }
1388
+ var $ = d.indexOf(Lr);
1389
+ if ($ > 0 && (d = d.substring(0, $)), d !== "")
1390
+ return d;
1391
+ }
1392
+ var Ur = 250, jr = new RegExp("[" + R + m + "]"), Hr = new RegExp("[^" + m + "#]+$");
1393
+ function Wr(e, r, t) {
1394
+ if (r = r || {}, t = new g(t), r.defaultCountry && !t.hasCountry(r.defaultCountry))
1395
+ throw r.v2 ? new C("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
1396
+ var n = Kr(e, r.v2, r.extract), d = n.number, i = n.ext, a = n.error;
1397
+ if (!d) {
1398
+ if (r.v2)
1399
+ throw a === "TOO_SHORT" ? new C("TOO_SHORT") : new C("NOT_A_NUMBER");
1400
+ return {};
1401
+ }
1402
+ var o = Xr(d, r.defaultCountry, r.defaultCallingCode, t), $ = o.country, u = o.nationalNumber, l = o.countryCallingCode, h = o.countryCallingCodeSource, f = o.carrierCode;
1403
+ if (!t.hasSelectedNumberingPlan()) {
1404
+ if (r.v2)
1405
+ throw new C("INVALID_COUNTRY");
1406
+ return {};
1407
+ }
1408
+ if (!u || u.length < nt) {
1409
+ if (r.v2)
1410
+ throw new C("TOO_SHORT");
1411
+ return {};
1412
+ }
1413
+ if (u.length > Ce) {
1414
+ if (r.v2)
1415
+ throw new C("TOO_LONG");
1416
+ return {};
1417
+ }
1418
+ if (r.v2) {
1419
+ var y = new at(l, u, t.metadata);
1420
+ return $ && (y.country = $), f && (y.carrierCode = f), i && (y.ext = i), y.__countryCallingCodeSource = h, y;
1421
+ }
1422
+ var s = (r.extended ? t.hasSelectedNumberingPlan() : $) ? b(u, t.nationalNumberPattern()) : !1;
1423
+ return r.extended ? {
1424
+ country: $,
1425
+ countryCallingCode: l,
1426
+ carrierCode: f,
1427
+ valid: s,
1428
+ possible: s ? !0 : !!(r.extended === !0 && t.possibleLengths() && Zt(u, t)),
1429
+ phone: u,
1430
+ ext: i
1431
+ } : s ? Yr($, u, i) : {};
1432
+ }
1433
+ function Vr(e, r, t) {
1434
+ if (e) {
1435
+ if (e.length > Ur) {
1436
+ if (t)
1437
+ throw new C("TOO_LONG");
1438
+ return;
1439
+ }
1440
+ if (r === !1)
1441
+ return e;
1442
+ var n = e.search(jr);
1443
+ if (!(n < 0))
1444
+ return e.slice(n).replace(Hr, "");
1445
+ }
1446
+ }
1447
+ function Kr(e, r, t) {
1448
+ var n = Br(e, {
1449
+ extractFormattedPhoneNumber: function(a) {
1450
+ return Vr(a, t, r);
1451
+ }
1452
+ });
1453
+ if (!n)
1454
+ return {};
1455
+ if (!Ke(n))
1456
+ return Ye(n) ? {
1457
+ error: "TOO_SHORT"
1458
+ } : {};
1459
+ var d = Xe(n);
1460
+ return d.ext ? d : {
1461
+ number: n
1462
+ };
1463
+ }
1464
+ function Yr(e, r, t) {
1465
+ var n = {
1466
+ country: e,
1467
+ phone: r
1468
+ };
1469
+ return t && (n.ext = t), n;
1470
+ }
1471
+ function Xr(e, r, t, n) {
1472
+ var d = ee(ht(e), r, t, n.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, $;
1473
+ if (a)
1474
+ n.selectNumberingPlan(a);
1475
+ else if (o && (r || t))
1476
+ n.selectNumberingPlan(r, t), r && ($ = r), a = t || dt(r, n.metadata);
1477
+ else return {};
1478
+ if (!o)
1479
+ return {
1480
+ countryCallingCodeSource: i,
1481
+ countryCallingCode: a
1482
+ };
1483
+ var u = J(ht(o), n), l = u.nationalNumber, h = u.carrierCode, f = ne(a, {
1484
+ nationalNumber: l,
1485
+ defaultCountry: r,
1486
+ metadata: n
1487
+ });
1488
+ return f && ($ = f, f === "001" || n.country($)), {
1489
+ country: $,
1490
+ countryCallingCode: a,
1491
+ countryCallingCodeSource: i,
1492
+ nationalNumber: l,
1493
+ carrierCode: h
1494
+ };
1495
+ }
1496
+ function xt(e, r) {
1497
+ var t = Object.keys(e);
1498
+ if (Object.getOwnPropertySymbols) {
1499
+ var n = Object.getOwnPropertySymbols(e);
1500
+ r && (n = n.filter(function(d) {
1501
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1502
+ })), t.push.apply(t, n);
1503
+ }
1504
+ return t;
1505
+ }
1506
+ function Et(e) {
1507
+ for (var r = 1; r < arguments.length; r++) {
1508
+ var t = arguments[r] != null ? arguments[r] : {};
1509
+ r % 2 ? xt(Object(t), !0).forEach(function(n) {
1510
+ Zr(e, n, t[n]);
1511
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : xt(Object(t)).forEach(function(n) {
1512
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1513
+ });
1514
+ }
1515
+ return e;
1516
+ }
1517
+ function Zr(e, r, t) {
1518
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1519
+ }
1520
+ function Jr(e, r, t) {
1521
+ return Wr(e, Et(Et({}, r), {}, {
1522
+ v2: !0
1523
+ }), t);
1524
+ }
1525
+ function At(e, r) {
1526
+ var t = Object.keys(e);
1527
+ if (Object.getOwnPropertySymbols) {
1528
+ var n = Object.getOwnPropertySymbols(e);
1529
+ r && (n = n.filter(function(d) {
1530
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1531
+ })), t.push.apply(t, n);
1532
+ }
1533
+ return t;
1534
+ }
1535
+ function Qr(e) {
1536
+ for (var r = 1; r < arguments.length; r++) {
1537
+ var t = arguments[r] != null ? arguments[r] : {};
1538
+ r % 2 ? At(Object(t), !0).forEach(function(n) {
1539
+ qr(e, n, t[n]);
1540
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : At(Object(t)).forEach(function(n) {
1541
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1542
+ });
1543
+ }
1544
+ return e;
1545
+ }
1546
+ function qr(e, r, t) {
1547
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1548
+ }
1549
+ function zr(e, r) {
1550
+ return nn(e) || rn(e, r) || en(e, r) || tn();
1551
+ }
1552
+ function tn() {
1553
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1554
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1555
+ }
1556
+ function en(e, r) {
1557
+ if (e) {
1558
+ if (typeof e == "string") return _t(e, r);
1559
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1560
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1561
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _t(e, r);
1562
+ }
1563
+ }
1564
+ function _t(e, r) {
1565
+ (r == null || r > e.length) && (r = e.length);
1566
+ for (var t = 0, n = new Array(r); t < r; t++)
1567
+ n[t] = e[t];
1568
+ return n;
1569
+ }
1570
+ function rn(e, r) {
1571
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1572
+ if (t != null) {
1573
+ var n = [], d = !0, i = !1, a, o;
1574
+ try {
1575
+ for (t = t.call(e); !(d = (a = t.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
1576
+ ;
1577
+ } catch ($) {
1578
+ i = !0, o = $;
1579
+ } finally {
1580
+ try {
1581
+ !d && t.return != null && t.return();
1582
+ } finally {
1583
+ if (i) throw o;
1584
+ }
1585
+ }
1586
+ return n;
1587
+ }
1588
+ }
1589
+ function nn(e) {
1590
+ if (Array.isArray(e)) return e;
1591
+ }
1592
+ function dn(e) {
1593
+ var r = Array.prototype.slice.call(e), t = zr(r, 4), n = t[0], d = t[1], i = t[2], a = t[3], o, $, u;
1594
+ if (typeof n == "string")
1595
+ o = n;
1596
+ else throw new TypeError("A text for parsing must be a string.");
1597
+ if (!d || typeof d == "string")
1598
+ a ? ($ = i, u = a) : ($ = void 0, u = i), d && ($ = Qr({
1599
+ defaultCountry: d
1600
+ }, $));
1601
+ else if (E(d))
1602
+ i ? ($ = d, u = i) : u = d;
1603
+ else throw new Error("Invalid second argument: ".concat(d));
1604
+ return {
1605
+ text: o,
1606
+ options: $,
1607
+ metadata: u
1608
+ };
1609
+ }
1610
+ function Ft(e, r) {
1611
+ var t = Object.keys(e);
1612
+ if (Object.getOwnPropertySymbols) {
1613
+ var n = Object.getOwnPropertySymbols(e);
1614
+ r && (n = n.filter(function(d) {
1615
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1616
+ })), t.push.apply(t, n);
1617
+ }
1618
+ return t;
1619
+ }
1620
+ function It(e) {
1621
+ for (var r = 1; r < arguments.length; r++) {
1622
+ var t = arguments[r] != null ? arguments[r] : {};
1623
+ r % 2 ? Ft(Object(t), !0).forEach(function(n) {
1624
+ an(e, n, t[n]);
1625
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ft(Object(t)).forEach(function(n) {
1626
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1627
+ });
1628
+ }
1629
+ return e;
1630
+ }
1631
+ function an(e, r, t) {
1632
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1633
+ }
1634
+ function on(e, r, t) {
1635
+ r && r.defaultCountry && !Ge(r.defaultCountry, t) && (r = It(It({}, r), {}, {
1636
+ defaultCountry: void 0
1637
+ }));
1638
+ try {
1639
+ return Jr(e, r, t);
1640
+ } catch (n) {
1641
+ if (!(n instanceof C)) throw n;
1642
+ }
1643
+ }
1644
+ function $n() {
1645
+ var e = dn(arguments), r = e.text, t = e.options, n = e.metadata;
1646
+ return on(r, t, n);
1647
+ }
1648
+ function un(e, r) {
1649
+ if (!(e instanceof r))
1650
+ throw new TypeError("Cannot call a class as a function");
1651
+ }
1652
+ function ln(e, r) {
1653
+ for (var t = 0; t < r.length; t++) {
1654
+ var n = r[t];
1655
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1656
+ }
1657
+ }
1658
+ function sn(e, r, t) {
1659
+ return r && ln(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1660
+ }
1661
+ var fn = /* @__PURE__ */ function() {
1662
+ function e(r) {
1663
+ var t = r.onCountryChange, n = r.onCallingCodeChange;
1664
+ un(this, e), this.onCountryChange = t, this.onCallingCodeChange = n;
1665
+ }
1666
+ return sn(e, [{
1667
+ key: "reset",
1668
+ value: function(t) {
1669
+ var n = t.country, d = t.callingCode;
1670
+ this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, d);
1671
+ }
1672
+ }, {
1673
+ key: "resetNationalSignificantNumber",
1674
+ value: function() {
1675
+ this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberMatchesInput = !0, this.nationalPrefix = void 0, this.carrierCode = void 0, this.complexPrefixBeforeNationalSignificantNumber = void 0;
1676
+ }
1677
+ }, {
1678
+ key: "update",
1679
+ value: function(t) {
1680
+ for (var n = 0, d = Object.keys(t); n < d.length; n++) {
1681
+ var i = d[n];
1682
+ this[i] = t[i];
1683
+ }
1684
+ }
1685
+ }, {
1686
+ key: "initCountryAndCallingCode",
1687
+ value: function(t, n) {
1688
+ this.setCountry(t), this.setCallingCode(n);
1689
+ }
1690
+ }, {
1691
+ key: "setCountry",
1692
+ value: function(t) {
1693
+ this.country = t, this.onCountryChange(t);
1694
+ }
1695
+ }, {
1696
+ key: "setCallingCode",
1697
+ value: function(t) {
1698
+ this.callingCode = t, this.onCallingCodeChange(t, this.country);
1699
+ }
1700
+ }, {
1701
+ key: "startInternationalNumber",
1702
+ value: function(t, n) {
1703
+ this.international = !0, this.initCountryAndCallingCode(t, n);
1704
+ }
1705
+ }, {
1706
+ key: "appendDigits",
1707
+ value: function(t) {
1708
+ this.digits += t;
1709
+ }
1710
+ }, {
1711
+ key: "appendNationalSignificantNumberDigits",
1712
+ value: function(t) {
1713
+ this.nationalSignificantNumber += t;
1714
+ }
1715
+ /**
1716
+ * Returns the part of `this.digits` that corresponds to the national number.
1717
+ * Basically, all digits that have been input by the user, except for the
1718
+ * international prefix and the country calling code part
1719
+ * (if the number is an international one).
1720
+ * @return {string}
1721
+ */
1722
+ }, {
1723
+ key: "getNationalDigits",
1724
+ value: function() {
1725
+ return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1726
+ }
1727
+ }, {
1728
+ key: "getDigitsWithoutInternationalPrefix",
1729
+ value: function() {
1730
+ return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1731
+ }
1732
+ }]), e;
1733
+ }();
1734
+ function cn(e, r) {
1735
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1736
+ if (t) return (t = t.call(e)).next.bind(t);
1737
+ if (Array.isArray(e) || (t = hn(e)) || r) {
1738
+ t && (e = t);
1739
+ var n = 0;
1740
+ return function() {
1741
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1742
+ };
1743
+ }
1744
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1745
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1746
+ }
1747
+ function hn(e, r) {
1748
+ if (e) {
1749
+ if (typeof e == "string") return Tt(e, r);
1750
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1751
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1752
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Tt(e, r);
1753
+ }
1754
+ }
1755
+ function Tt(e, r) {
1756
+ (r == null || r > e.length) && (r = e.length);
1757
+ for (var t = 0, n = new Array(r); t < r; t++)
1758
+ n[t] = e[t];
1759
+ return n;
1760
+ }
1761
+ var p = "x", H = new RegExp(p);
1762
+ function T(e, r) {
1763
+ if (r < 1)
1764
+ return "";
1765
+ for (var t = ""; r > 1; )
1766
+ r & 1 && (t += e), r >>= 1, e += e;
1767
+ return t + e;
1768
+ }
1769
+ function Ot(e, r) {
1770
+ return e[r] === ")" && r++, gn(e.slice(0, r));
1771
+ }
1772
+ function gn(e) {
1773
+ for (var r = [], t = 0; t < e.length; )
1774
+ e[t] === "(" ? r.push(t) : e[t] === ")" && r.pop(), t++;
1775
+ var n = 0, d = "";
1776
+ r.push(e.length);
1777
+ for (var i = 0, a = r; i < a.length; i++) {
1778
+ var o = a[i];
1779
+ d += e.slice(n, o), n = o + 1;
1780
+ }
1781
+ return d;
1782
+ }
1783
+ function mn(e, r, t) {
1784
+ for (var n = cn(t.split("")), d; !(d = n()).done; ) {
1785
+ var i = d.value;
1786
+ if (e.slice(r + 1).search(H) < 0)
1787
+ return;
1788
+ r = e.search(H), e = e.replace(H, i);
1789
+ }
1790
+ return [e, r];
1791
+ }
1792
+ function yn(e, r, t) {
1793
+ var n = t.metadata, d = t.shouldTryNationalPrefixFormattingRule, i = t.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(r.pattern(), ")$"));
1794
+ if (a.test(e.nationalSignificantNumber))
1795
+ return pn(e, r, {
1796
+ metadata: n,
1797
+ shouldTryNationalPrefixFormattingRule: d,
1798
+ getSeparatorAfterNationalPrefix: i
1799
+ });
1800
+ }
1801
+ function vn(e, r) {
1802
+ return L(e, r) === "IS_POSSIBLE";
1803
+ }
1804
+ function pn(e, r, t) {
1805
+ var n = t.metadata, d = t.shouldTryNationalPrefixFormattingRule, i = t.getSeparatorAfterNationalPrefix;
1806
+ if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(r)) {
1807
+ var a = wt(e, r, {
1808
+ useNationalPrefixFormattingRule: !0,
1809
+ getSeparatorAfterNationalPrefix: i,
1810
+ metadata: n
1811
+ });
1812
+ if (a)
1813
+ return a;
1814
+ }
1815
+ return wt(e, r, {
1816
+ useNationalPrefixFormattingRule: !1,
1817
+ getSeparatorAfterNationalPrefix: i,
1818
+ metadata: n
1819
+ });
1820
+ }
1821
+ function wt(e, r, t) {
1822
+ var n = t.metadata, d = t.useNationalPrefixFormattingRule, i = t.getSeparatorAfterNationalPrefix, a = qt(e.nationalSignificantNumber, r, {
1823
+ carrierCode: e.carrierCode,
1824
+ useInternationalFormat: e.international,
1825
+ withNationalPrefix: d,
1826
+ metadata: n
1827
+ });
1828
+ if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(r) + a : e.complexPrefixBeforeNationalSignificantNumber && (a = e.complexPrefixBeforeNationalSignificantNumber + " " + a)), Nn(a, e))
1829
+ return a;
1830
+ }
1831
+ function Nn(e, r) {
1832
+ return O(e) === r.getNationalDigits();
1833
+ }
1834
+ function Cn(e, r) {
1835
+ if (!(e instanceof r))
1836
+ throw new TypeError("Cannot call a class as a function");
1837
+ }
1838
+ function bn(e, r) {
1839
+ for (var t = 0; t < r.length; t++) {
1840
+ var n = r[t];
1841
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1842
+ }
1843
+ }
1844
+ function Pn(e, r, t) {
1845
+ return r && bn(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1846
+ }
1847
+ var Sn = /* @__PURE__ */ function() {
1848
+ function e() {
1849
+ Cn(this, e);
1850
+ }
1851
+ return Pn(e, [{
1852
+ key: "parse",
1853
+ value: function(t) {
1854
+ if (this.context = [{
1855
+ or: !0,
1856
+ instructions: []
1857
+ }], this.parsePattern(t), this.context.length !== 1)
1858
+ throw new Error("Non-finalized contexts left when pattern parse ended");
1859
+ var n = this.context[0], d = n.branches, i = n.instructions;
1860
+ if (d)
1861
+ return {
1862
+ op: "|",
1863
+ args: d.concat([W(i)])
1864
+ };
1865
+ if (i.length === 0)
1866
+ throw new Error("Pattern is required");
1867
+ return i.length === 1 ? i[0] : i;
1868
+ }
1869
+ }, {
1870
+ key: "startContext",
1871
+ value: function(t) {
1872
+ this.context.push(t);
1873
+ }
1874
+ }, {
1875
+ key: "endContext",
1876
+ value: function() {
1877
+ this.context.pop();
1878
+ }
1879
+ }, {
1880
+ key: "getContext",
1881
+ value: function() {
1882
+ return this.context[this.context.length - 1];
1883
+ }
1884
+ }, {
1885
+ key: "parsePattern",
1886
+ value: function(t) {
1887
+ if (!t)
1888
+ throw new Error("Pattern is required");
1889
+ var n = t.match(An);
1890
+ if (!n) {
1891
+ if (En.test(t))
1892
+ throw new Error("Illegal characters found in a pattern: ".concat(t));
1893
+ this.getContext().instructions = this.getContext().instructions.concat(t.split(""));
1894
+ return;
1895
+ }
1896
+ var d = n[1], i = t.slice(0, n.index), a = t.slice(n.index + d.length);
1897
+ switch (d) {
1898
+ case "(?:":
1899
+ i && this.parsePattern(i), this.startContext({
1900
+ or: !0,
1901
+ instructions: [],
1902
+ branches: []
1903
+ });
1904
+ break;
1905
+ case ")":
1906
+ if (!this.getContext().or)
1907
+ throw new Error('")" operator must be preceded by "(?:" operator');
1908
+ if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
1909
+ throw new Error('No instructions found after "|" operator in an "or" group');
1910
+ var o = this.getContext(), $ = o.branches;
1911
+ $.push(W(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
1912
+ op: "|",
1913
+ args: $
1914
+ });
1915
+ break;
1916
+ case "|":
1917
+ if (!this.getContext().or)
1918
+ throw new Error('"|" operator can only be used inside "or" groups');
1919
+ if (i && this.parsePattern(i), !this.getContext().branches)
1920
+ if (this.context.length === 1)
1921
+ this.getContext().branches = [];
1922
+ else
1923
+ throw new Error('"branches" not found in an "or" group context');
1924
+ this.getContext().branches.push(W(this.getContext().instructions)), this.getContext().instructions = [];
1925
+ break;
1926
+ case "[":
1927
+ i && this.parsePattern(i), this.startContext({
1928
+ oneOfSet: !0
1929
+ });
1930
+ break;
1931
+ case "]":
1932
+ if (!this.getContext().oneOfSet)
1933
+ throw new Error('"]" operator must be preceded by "[" operator');
1934
+ this.endContext(), this.getContext().instructions.push({
1935
+ op: "[]",
1936
+ args: xn(i)
1937
+ });
1938
+ break;
1939
+ /* istanbul ignore next */
1940
+ default:
1941
+ throw new Error("Unknown operator: ".concat(d));
1942
+ }
1943
+ a && this.parsePattern(a);
1944
+ }
1945
+ }]), e;
1946
+ }();
1947
+ function xn(e) {
1948
+ for (var r = [], t = 0; t < e.length; ) {
1949
+ if (e[t] === "-") {
1950
+ if (t === 0 || t === e.length - 1)
1951
+ throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
1952
+ for (var n = e[t - 1].charCodeAt(0) + 1, d = e[t + 1].charCodeAt(0) - 1, i = n; i <= d; )
1953
+ r.push(String.fromCharCode(i)), i++;
1954
+ } else
1955
+ r.push(e[t]);
1956
+ t++;
1957
+ }
1958
+ return r;
1959
+ }
1960
+ var En = /[\(\)\[\]\?\:\|]/, An = new RegExp(
1961
+ // any of:
1962
+ "(\\||\\(\\?\\:|\\)|\\[|\\])"
1963
+ );
1964
+ function W(e) {
1965
+ return e.length === 1 ? e[0] : e;
1966
+ }
1967
+ function Rt(e, r) {
1968
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1969
+ if (t) return (t = t.call(e)).next.bind(t);
1970
+ if (Array.isArray(e) || (t = _n(e)) || r) {
1971
+ t && (e = t);
1972
+ var n = 0;
1973
+ return function() {
1974
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1975
+ };
1976
+ }
1977
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1978
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1979
+ }
1980
+ function _n(e, r) {
1981
+ if (e) {
1982
+ if (typeof e == "string") return Dt(e, r);
1983
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1984
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
1985
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Dt(e, r);
1986
+ }
1987
+ }
1988
+ function Dt(e, r) {
1989
+ (r == null || r > e.length) && (r = e.length);
1990
+ for (var t = 0, n = new Array(r); t < r; t++)
1991
+ n[t] = e[t];
1992
+ return n;
1993
+ }
1994
+ function Fn(e, r) {
1995
+ if (!(e instanceof r))
1996
+ throw new TypeError("Cannot call a class as a function");
1997
+ }
1998
+ function In(e, r) {
1999
+ for (var t = 0; t < r.length; t++) {
2000
+ var n = r[t];
2001
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
2002
+ }
2003
+ }
2004
+ function Tn(e, r, t) {
2005
+ return r && In(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2006
+ }
2007
+ var On = /* @__PURE__ */ function() {
2008
+ function e(r) {
2009
+ Fn(this, e), this.matchTree = new Sn().parse(r);
2010
+ }
2011
+ return Tn(e, [{
2012
+ key: "match",
2013
+ value: function(t) {
2014
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
2015
+ if (!t)
2016
+ throw new Error("String is required");
2017
+ var i = z(t.split(""), this.matchTree, !0);
2018
+ if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2019
+ return i;
2020
+ }
2021
+ }]), e;
2022
+ }();
2023
+ function z(e, r, t) {
2024
+ if (typeof r == "string") {
2025
+ var n = e.join("");
2026
+ return r.indexOf(n) === 0 ? e.length === r.length ? {
2027
+ match: !0,
2028
+ matchedChars: e
2029
+ } : {
2030
+ partialMatch: !0
2031
+ // matchedChars: characters
2032
+ } : n.indexOf(r) === 0 ? t && e.length > r.length ? {
2033
+ overflow: !0
2034
+ } : {
2035
+ match: !0,
2036
+ matchedChars: e.slice(0, r.length)
2037
+ } : void 0;
2038
+ }
2039
+ if (Array.isArray(r)) {
2040
+ for (var d = e.slice(), i = 0; i < r.length; ) {
2041
+ var a = r[i], o = z(d, a, t && i === r.length - 1);
2042
+ if (o) {
2043
+ if (o.overflow)
2044
+ return o;
2045
+ if (o.match) {
2046
+ if (d = d.slice(o.matchedChars.length), d.length === 0)
2047
+ return i === r.length - 1 ? {
2048
+ match: !0,
2049
+ matchedChars: e
2050
+ } : {
2051
+ partialMatch: !0
2052
+ // matchedChars: characters
2053
+ };
2054
+ } else {
2055
+ if (o.partialMatch)
2056
+ return {
2057
+ partialMatch: !0
2058
+ // matchedChars: characters
2059
+ };
2060
+ throw new Error(`Unsupported match result:
2061
+ `.concat(JSON.stringify(o, null, 2)));
2062
+ }
2063
+ } else return;
2064
+ i++;
2065
+ }
2066
+ return t ? {
2067
+ overflow: !0
2068
+ } : {
2069
+ match: !0,
2070
+ matchedChars: e.slice(0, e.length - d.length)
2071
+ };
2072
+ }
2073
+ switch (r.op) {
2074
+ case "|":
2075
+ for (var $, u = Rt(r.args), l; !(l = u()).done; ) {
2076
+ var h = l.value, f = z(e, h, t);
2077
+ if (f) {
2078
+ if (f.overflow)
2079
+ return f;
2080
+ if (f.match)
2081
+ return {
2082
+ match: !0,
2083
+ matchedChars: f.matchedChars
2084
+ };
2085
+ if (f.partialMatch)
2086
+ $ = !0;
2087
+ else
2088
+ throw new Error(`Unsupported match result:
2089
+ `.concat(JSON.stringify(f, null, 2)));
2090
+ }
2091
+ }
2092
+ return $ ? {
2093
+ partialMatch: !0
2094
+ // matchedChars: ...
2095
+ } : void 0;
2096
+ case "[]":
2097
+ for (var y = Rt(r.args), s; !(s = y()).done; ) {
2098
+ var v = s.value;
2099
+ if (e[0] === v)
2100
+ return e.length === 1 ? {
2101
+ match: !0,
2102
+ matchedChars: e
2103
+ } : t ? {
2104
+ overflow: !0
2105
+ } : {
2106
+ match: !0,
2107
+ matchedChars: [v]
2108
+ };
2109
+ }
2110
+ return;
2111
+ /* istanbul ignore next */
2112
+ default:
2113
+ throw new Error("Unsupported instruction tree: ".concat(r));
2114
+ }
2115
+ }
2116
+ function Mt(e, r) {
2117
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2118
+ if (t) return (t = t.call(e)).next.bind(t);
2119
+ if (Array.isArray(e) || (t = wn(e)) || r) {
2120
+ t && (e = t);
2121
+ var n = 0;
2122
+ return function() {
2123
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
2124
+ };
2125
+ }
2126
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2127
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2128
+ }
2129
+ function wn(e, r) {
2130
+ if (e) {
2131
+ if (typeof e == "string") return Lt(e, r);
2132
+ var t = Object.prototype.toString.call(e).slice(8, -1);
2133
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2134
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Lt(e, r);
2135
+ }
2136
+ }
2137
+ function Lt(e, r) {
2138
+ (r == null || r > e.length) && (r = e.length);
2139
+ for (var t = 0, n = new Array(r); t < r; t++)
2140
+ n[t] = e[t];
2141
+ return n;
2142
+ }
2143
+ function Rn(e, r) {
2144
+ if (!(e instanceof r))
2145
+ throw new TypeError("Cannot call a class as a function");
2146
+ }
2147
+ function Dn(e, r) {
2148
+ for (var t = 0; t < r.length; t++) {
2149
+ var n = r[t];
2150
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
2151
+ }
2152
+ }
2153
+ function Mn(e, r, t) {
2154
+ return r && Dn(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2155
+ }
2156
+ var tt = "9", Ln = 15, kn = T(tt, Ln), Gn = /[- ]/, Bn = function() {
2157
+ return /\[([^\[\]])*\]/g;
2158
+ }, Un = function() {
2159
+ return /\d(?=[^,}][^,}])/g;
2160
+ }, jn = new RegExp("[" + N + "]*\\$1[" + N + "]*(\\$\\d[" + N + "]*)*$"), kt = 3, Hn = /* @__PURE__ */ function() {
2161
+ function e(r) {
2162
+ r.state;
2163
+ var t = r.metadata;
2164
+ Rn(this, e), this.metadata = t, this.resetFormat();
2165
+ }
2166
+ return Mn(e, [{
2167
+ key: "resetFormat",
2168
+ value: function() {
2169
+ this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2170
+ }
2171
+ }, {
2172
+ key: "reset",
2173
+ value: function(t, n) {
2174
+ this.resetFormat(), t ? (this.isNANP = t.callingCode() === "1", this.matchingFormats = t.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
2175
+ }
2176
+ /**
2177
+ * Formats an updated phone number.
2178
+ * @param {string} nextDigits — Additional phone number digits.
2179
+ * @param {object} state — `AsYouType` state.
2180
+ * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2181
+ */
2182
+ }, {
2183
+ key: "format",
2184
+ value: function(t, n) {
2185
+ var d = this;
2186
+ if (vn(n.nationalSignificantNumber, this.metadata))
2187
+ for (var i = Mt(this.matchingFormats), a; !(a = i()).done; ) {
2188
+ var o = a.value, $ = yn(n, o, {
2189
+ metadata: this.metadata,
2190
+ shouldTryNationalPrefixFormattingRule: function(l) {
2191
+ return d.shouldTryNationalPrefixFormattingRule(l, {
2192
+ international: n.international,
2193
+ nationalPrefix: n.nationalPrefix
2194
+ });
2195
+ },
2196
+ getSeparatorAfterNationalPrefix: function(l) {
2197
+ return d.getSeparatorAfterNationalPrefix(l);
2198
+ }
2199
+ });
2200
+ if ($)
2201
+ return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate($.replace(/\d/g, p), n), this.populatedNationalNumberTemplate = $, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(p), $;
2202
+ }
2203
+ return this.formatNationalNumberWithNextDigits(t, n);
2204
+ }
2205
+ // Formats the next phone number digits.
2206
+ }, {
2207
+ key: "formatNationalNumberWithNextDigits",
2208
+ value: function(t, n) {
2209
+ var d = this.chosenFormat, i = this.chooseFormat(n);
2210
+ if (i)
2211
+ return i === d ? this.formatNextNationalNumberDigits(t) : this.formatNextNationalNumberDigits(n.getNationalDigits());
2212
+ }
2213
+ }, {
2214
+ key: "narrowDownMatchingFormats",
2215
+ value: function(t) {
2216
+ var n = this, d = t.nationalSignificantNumber, i = t.nationalPrefix, a = t.international, o = d, $ = o.length - kt;
2217
+ $ < 0 && ($ = 0), this.matchingFormats = this.matchingFormats.filter(function(u) {
2218
+ return n.formatSuits(u, a, i) && n.formatMatches(u, o, $);
2219
+ }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2220
+ }
2221
+ }, {
2222
+ key: "formatSuits",
2223
+ value: function(t, n, d) {
2224
+ return !(d && !t.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2225
+ !t.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2226
+ }
2227
+ }, {
2228
+ key: "formatMatches",
2229
+ value: function(t, n, d) {
2230
+ var i = t.leadingDigitsPatterns().length;
2231
+ if (i === 0)
2232
+ return !0;
2233
+ d = Math.min(d, i - 1);
2234
+ var a = t.leadingDigitsPatterns()[d];
2235
+ if (n.length < kt)
2236
+ try {
2237
+ return new On(a).match(n, {
2238
+ allowOverflow: !0
2239
+ }) !== void 0;
2240
+ } catch (o) {
2241
+ return console.error(o), !0;
2242
+ }
2243
+ return new RegExp("^(".concat(a, ")")).test(n);
2244
+ }
2245
+ }, {
2246
+ key: "getFormatFormat",
2247
+ value: function(t, n) {
2248
+ return n ? t.internationalFormat() : t.format();
2249
+ }
2250
+ }, {
2251
+ key: "chooseFormat",
2252
+ value: function(t) {
2253
+ for (var n = this, d = function() {
2254
+ var u = a.value;
2255
+ return n.chosenFormat === u ? "break" : jn.test(n.getFormatFormat(u, t.international)) ? n.createTemplateForFormat(u, t) ? (n.chosenFormat = u, "break") : (n.matchingFormats = n.matchingFormats.filter(function(l) {
2256
+ return l !== u;
2257
+ }), "continue") : "continue";
2258
+ }, i = Mt(this.matchingFormats.slice()), a; !(a = i()).done; ) {
2259
+ var o = d();
2260
+ if (o === "break") break;
2261
+ }
2262
+ return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2263
+ }
2264
+ }, {
2265
+ key: "createTemplateForFormat",
2266
+ value: function(t, n) {
2267
+ if (!(t.pattern().indexOf("|") >= 0)) {
2268
+ var d = this.getTemplateForFormat(t, n);
2269
+ if (d)
2270
+ return this.setNationalNumberTemplate(d, n), !0;
2271
+ }
2272
+ }
2273
+ }, {
2274
+ key: "getSeparatorAfterNationalPrefix",
2275
+ value: function(t) {
2276
+ return this.isNANP || t && t.nationalPrefixFormattingRule() && Gn.test(t.nationalPrefixFormattingRule()) ? " " : "";
2277
+ }
2278
+ }, {
2279
+ key: "getInternationalPrefixBeforeCountryCallingCode",
2280
+ value: function(t, n) {
2281
+ var d = t.IDDPrefix, i = t.missingPlus;
2282
+ return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
2283
+ }
2284
+ }, {
2285
+ key: "getTemplate",
2286
+ value: function(t) {
2287
+ if (this.template) {
2288
+ for (var n = -1, d = 0, i = t.international ? this.getInternationalPrefixBeforeCountryCallingCode(t, {
2289
+ spacing: !1
2290
+ }) : ""; d < i.length + t.getDigitsWithoutInternationalPrefix().length; )
2291
+ n = this.template.indexOf(p, n + 1), d++;
2292
+ return Ot(this.template, n + 1);
2293
+ }
2294
+ }
2295
+ }, {
2296
+ key: "setNationalNumberTemplate",
2297
+ value: function(t, n) {
2298
+ this.nationalNumberTemplate = t, this.populatedNationalNumberTemplate = t, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, p) + T(p, n.callingCode.length) + " " + t : this.template = t;
2299
+ }
2300
+ /**
2301
+ * Generates formatting template for a national phone number,
2302
+ * optionally containing a national prefix, for a format.
2303
+ * @param {Format} format
2304
+ * @param {string} nationalPrefix
2305
+ * @return {string}
2306
+ */
2307
+ }, {
2308
+ key: "getTemplateForFormat",
2309
+ value: function(t, n) {
2310
+ var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.complexPrefixBeforeNationalSignificantNumber, $ = t.pattern();
2311
+ $ = $.replace(Bn(), "\\d").replace(Un(), "\\d");
2312
+ var u = kn.match($)[0];
2313
+ if (!(d.length > u.length)) {
2314
+ var l = new RegExp("^" + $ + "$"), h = d.replace(/\d/g, tt);
2315
+ l.test(h) && (u = h);
2316
+ var f = this.getFormatFormat(t, i), y;
2317
+ if (this.shouldTryNationalPrefixFormattingRule(t, {
2318
+ international: i,
2319
+ nationalPrefix: a
2320
+ })) {
2321
+ var s = f.replace(Qt, t.nationalPrefixFormattingRule());
2322
+ if (O(t.nationalPrefixFormattingRule()) === (a || "") + O("$1") && (f = s, y = !0, a))
2323
+ for (var v = a.length; v > 0; )
2324
+ f = f.replace(/\d/, p), v--;
2325
+ }
2326
+ var c = u.replace(new RegExp($), f).replace(new RegExp(tt, "g"), p);
2327
+ return y || (o ? c = T(p, o.length) + " " + c : a && (c = T(p, a.length) + this.getSeparatorAfterNationalPrefix(t) + c)), i && (c = Jt(c)), c;
2328
+ }
2329
+ }
2330
+ }, {
2331
+ key: "formatNextNationalNumberDigits",
2332
+ value: function(t) {
2333
+ var n = mn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, t);
2334
+ if (!n) {
2335
+ this.resetFormat();
2336
+ return;
2337
+ }
2338
+ return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], Ot(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2339
+ }
2340
+ }, {
2341
+ key: "shouldTryNationalPrefixFormattingRule",
2342
+ value: function(t, n) {
2343
+ var d = n.international, i = n.nationalPrefix;
2344
+ if (t.nationalPrefixFormattingRule()) {
2345
+ var a = t.usesNationalPrefix();
2346
+ if (a && i || !a && !d)
2347
+ return !0;
2348
+ }
2349
+ }
2350
+ }]), e;
2351
+ }();
2352
+ function ie(e, r) {
2353
+ return Yn(e) || Kn(e, r) || Vn(e, r) || Wn();
2354
+ }
2355
+ function Wn() {
2356
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2357
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2358
+ }
2359
+ function Vn(e, r) {
2360
+ if (e) {
2361
+ if (typeof e == "string") return Gt(e, r);
2362
+ var t = Object.prototype.toString.call(e).slice(8, -1);
2363
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2364
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Gt(e, r);
2365
+ }
2366
+ }
2367
+ function Gt(e, r) {
2368
+ (r == null || r > e.length) && (r = e.length);
2369
+ for (var t = 0, n = new Array(r); t < r; t++)
2370
+ n[t] = e[t];
2371
+ return n;
2372
+ }
2373
+ function Kn(e, r) {
2374
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2375
+ if (t != null) {
2376
+ var n = [], d = !0, i = !1, a, o;
2377
+ try {
2378
+ for (t = t.call(e); !(d = (a = t.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
2379
+ ;
2380
+ } catch ($) {
2381
+ i = !0, o = $;
2382
+ } finally {
2383
+ try {
2384
+ !d && t.return != null && t.return();
2385
+ } finally {
2386
+ if (i) throw o;
2387
+ }
2388
+ }
2389
+ return n;
2390
+ }
2391
+ }
2392
+ function Yn(e) {
2393
+ if (Array.isArray(e)) return e;
2394
+ }
2395
+ function Xn(e, r) {
2396
+ if (!(e instanceof r))
2397
+ throw new TypeError("Cannot call a class as a function");
2398
+ }
2399
+ function Zn(e, r) {
2400
+ for (var t = 0; t < r.length; t++) {
2401
+ var n = r[t];
2402
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
2403
+ }
2404
+ }
2405
+ function Jn(e, r, t) {
2406
+ return r && Zn(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2407
+ }
2408
+ var Qn = "[" + N + m + "]+", qn = new RegExp("^" + Qn + "$", "i"), zn = "(?:[" + R + "][" + N + m + "]*|[" + N + m + "]+)", td = new RegExp("[^" + N + m + "]+.*$"), ed = /[^\d\[\]]/, rd = /* @__PURE__ */ function() {
2409
+ function e(r) {
2410
+ var t = r.defaultCountry, n = r.defaultCallingCode, d = r.metadata, i = r.onNationalSignificantNumberChange;
2411
+ Xn(this, e), this.defaultCountry = t, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
2412
+ }
2413
+ return Jn(e, [{
2414
+ key: "input",
2415
+ value: function(t, n) {
2416
+ var d = id(t), i = ie(d, 2), a = i[0], o = i[1], $ = O(a), u;
2417
+ return o && (n.digits || (n.startInternationalNumber(), $ || (u = !0))), $ && this.inputDigits($, n), {
2418
+ digits: $,
2419
+ justLeadingPlus: u
2420
+ };
2421
+ }
2422
+ /**
2423
+ * Inputs "next" phone number digits.
2424
+ * @param {string} digits
2425
+ * @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".
2426
+ */
2427
+ }, {
2428
+ key: "inputDigits",
2429
+ value: function(t, n) {
2430
+ var d = n.digits, i = d.length < 3 && d.length + t.length >= 3;
2431
+ if (n.appendDigits(t), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
2432
+ if (!this.extractCountryCallingCode(n))
2433
+ return;
2434
+ } else
2435
+ n.appendNationalSignificantNumberDigits(t);
2436
+ n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
2437
+ return n.update(a);
2438
+ });
2439
+ }
2440
+ }, {
2441
+ key: "isWaitingForCountryCallingCode",
2442
+ value: function(t) {
2443
+ var n = t.international, d = t.callingCode;
2444
+ return n && !d;
2445
+ }
2446
+ // Extracts a country calling code from a number
2447
+ // being entered in internatonal format.
2448
+ }, {
2449
+ key: "extractCountryCallingCode",
2450
+ value: function(t) {
2451
+ var n = ee("+" + t.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
2452
+ if (d)
2453
+ return t.setCallingCode(d), t.update({
2454
+ nationalSignificantNumber: i
2455
+ }), !0;
2456
+ }
2457
+ }, {
2458
+ key: "reset",
2459
+ value: function(t) {
2460
+ if (t) {
2461
+ this.hasSelectedNumberingPlan = !0;
2462
+ var n = t._nationalPrefixForParsing();
2463
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = n && ed.test(n);
2464
+ } else
2465
+ this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2466
+ }
2467
+ /**
2468
+ * Extracts a national (significant) number from user input.
2469
+ * Google's library is different in that it only applies `national_prefix_for_parsing`
2470
+ * and doesn't apply `national_prefix_transform_rule` after that.
2471
+ * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2472
+ * @return {boolean} [extracted]
2473
+ */
2474
+ }, {
2475
+ key: "extractNationalSignificantNumber",
2476
+ value: function(t, n) {
2477
+ if (this.hasSelectedNumberingPlan) {
2478
+ var d = Z(t, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2479
+ if (a !== t)
2480
+ return this.onExtractedNationalNumber(i, o, a, t, n), !0;
2481
+ }
2482
+ }
2483
+ /**
2484
+ * In Google's code this function is called "attempt to extract longer NDD".
2485
+ * "Some national prefixes are a substring of others", they say.
2486
+ * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2487
+ */
2488
+ }, {
2489
+ key: "extractAnotherNationalSignificantNumber",
2490
+ value: function(t, n, d) {
2491
+ if (!this.hasExtractedNationalSignificantNumber)
2492
+ return this.extractNationalSignificantNumber(t, d);
2493
+ if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2494
+ var i = Z(t, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, $ = i.carrierCode;
2495
+ if (o !== n)
2496
+ return this.onExtractedNationalNumber(a, $, o, t, d), !0;
2497
+ }
2498
+ }
2499
+ }, {
2500
+ key: "onExtractedNationalNumber",
2501
+ value: function(t, n, d, i, a) {
2502
+ var o, $, u = i.lastIndexOf(d);
2503
+ if (u >= 0 && u === i.length - d.length) {
2504
+ $ = !0;
2505
+ var l = i.slice(0, u);
2506
+ l !== t && (o = l);
2507
+ }
2508
+ a({
2509
+ nationalPrefix: t,
2510
+ carrierCode: n,
2511
+ nationalSignificantNumber: d,
2512
+ nationalSignificantNumberMatchesInput: $,
2513
+ complexPrefixBeforeNationalSignificantNumber: o
2514
+ }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2515
+ }
2516
+ }, {
2517
+ key: "reExtractNationalSignificantNumber",
2518
+ value: function(t) {
2519
+ if (this.extractAnotherNationalSignificantNumber(t.getNationalDigits(), t.nationalSignificantNumber, function(n) {
2520
+ return t.update(n);
2521
+ }))
2522
+ return !0;
2523
+ if (this.extractIddPrefix(t))
2524
+ return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
2525
+ if (this.fixMissingPlus(t))
2526
+ return this.extractCallingCodeAndNationalSignificantNumber(t), !0;
2527
+ }
2528
+ }, {
2529
+ key: "extractIddPrefix",
2530
+ value: function(t) {
2531
+ var n = t.international, d = t.IDDPrefix, i = t.digits;
2532
+ if (t.nationalSignificantNumber, !(n || d)) {
2533
+ var a = zt(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2534
+ if (a !== void 0 && a !== i)
2535
+ return t.update({
2536
+ IDDPrefix: i.slice(0, i.length - a.length)
2537
+ }), this.startInternationalNumber(t, {
2538
+ country: void 0,
2539
+ callingCode: void 0
2540
+ }), !0;
2541
+ }
2542
+ }
2543
+ }, {
2544
+ key: "fixMissingPlus",
2545
+ value: function(t) {
2546
+ if (!t.international) {
2547
+ var n = te(t.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
2548
+ if (n.number, d)
2549
+ return t.update({
2550
+ missingPlus: !0
2551
+ }), this.startInternationalNumber(t, {
2552
+ country: t.country,
2553
+ callingCode: d
2554
+ }), !0;
2555
+ }
2556
+ }
2557
+ }, {
2558
+ key: "startInternationalNumber",
2559
+ value: function(t, n) {
2560
+ var d = n.country, i = n.callingCode;
2561
+ t.startInternationalNumber(d, i), t.nationalSignificantNumber && (t.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2562
+ }
2563
+ }, {
2564
+ key: "extractCallingCodeAndNationalSignificantNumber",
2565
+ value: function(t) {
2566
+ this.extractCountryCallingCode(t) && this.extractNationalSignificantNumber(t.getNationalDigits(), function(n) {
2567
+ return t.update(n);
2568
+ });
2569
+ }
2570
+ }]), e;
2571
+ }();
2572
+ function nd(e) {
2573
+ var r = e.search(zn);
2574
+ if (!(r < 0)) {
2575
+ e = e.slice(r);
2576
+ var t;
2577
+ return e[0] === "+" && (t = !0, e = e.slice(1)), e = e.replace(td, ""), t && (e = "+" + e), e;
2578
+ }
2579
+ }
2580
+ function dd(e) {
2581
+ var r = nd(e) || "";
2582
+ return r[0] === "+" ? [r.slice(1), !0] : [r];
2583
+ }
2584
+ function id(e) {
2585
+ var r = dd(e), t = ie(r, 2), n = t[0], d = t[1];
2586
+ return qn.test(n) || (n = ""), [n, d];
2587
+ }
2588
+ function ad(e, r) {
2589
+ return ld(e) || ud(e, r) || $d(e, r) || od();
2590
+ }
2591
+ function od() {
2592
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2593
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2594
+ }
2595
+ function $d(e, r) {
2596
+ if (e) {
2597
+ if (typeof e == "string") return Bt(e, r);
2598
+ var t = Object.prototype.toString.call(e).slice(8, -1);
2599
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2600
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Bt(e, r);
2601
+ }
2602
+ }
2603
+ function Bt(e, r) {
2604
+ (r == null || r > e.length) && (r = e.length);
2605
+ for (var t = 0, n = new Array(r); t < r; t++)
2606
+ n[t] = e[t];
2607
+ return n;
2608
+ }
2609
+ function ud(e, r) {
2610
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2611
+ if (t != null) {
2612
+ var n = [], d = !0, i = !1, a, o;
2613
+ try {
2614
+ for (t = t.call(e); !(d = (a = t.next()).done) && (n.push(a.value), !(r && n.length === r)); d = !0)
2615
+ ;
2616
+ } catch ($) {
2617
+ i = !0, o = $;
2618
+ } finally {
2619
+ try {
2620
+ !d && t.return != null && t.return();
2621
+ } finally {
2622
+ if (i) throw o;
2623
+ }
2624
+ }
2625
+ return n;
2626
+ }
2627
+ }
2628
+ function ld(e) {
2629
+ if (Array.isArray(e)) return e;
2630
+ }
2631
+ function sd(e, r) {
2632
+ if (!(e instanceof r))
2633
+ throw new TypeError("Cannot call a class as a function");
2634
+ }
2635
+ function fd(e, r) {
2636
+ for (var t = 0; t < r.length; t++) {
2637
+ var n = r[t];
2638
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
2639
+ }
2640
+ }
2641
+ function cd(e, r, t) {
2642
+ return r && fd(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2643
+ }
2644
+ var ae = /* @__PURE__ */ function() {
2645
+ function e(r, t) {
2646
+ sd(this, e), this.metadata = new g(t);
2647
+ var n = this.getCountryAndCallingCode(r), d = ad(n, 2), i = d[0], a = d[1];
2648
+ this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2649
+ }
2650
+ return cd(e, [{
2651
+ key: "getCountryAndCallingCode",
2652
+ value: function(t) {
2653
+ var n, d;
2654
+ return t && (E(t) ? (n = t.defaultCountry, d = t.defaultCallingCode) : n = t), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
2655
+ }
2656
+ /**
2657
+ * Inputs "next" phone number characters.
2658
+ * @param {string} text
2659
+ * @return {string} Formatted phone number characters that have been input so far.
2660
+ */
2661
+ }, {
2662
+ key: "input",
2663
+ value: function(t) {
2664
+ var n = this.parser.input(t, this.state), d = n.digits, i = n.justLeadingPlus;
2665
+ if (i)
2666
+ this.formattedOutput = "+";
2667
+ else if (d) {
2668
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2669
+ var a;
2670
+ if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2671
+ this.determineTheCountryIfNeeded();
2672
+ var o = this.state.getNationalDigits();
2673
+ o && (a = this.formatter.format(o, this.state));
2674
+ }
2675
+ this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2676
+ }
2677
+ return this.formattedOutput;
2678
+ }
2679
+ }, {
2680
+ key: "reset",
2681
+ value: function() {
2682
+ var t = this;
2683
+ return this.state = new fn({
2684
+ onCountryChange: function(d) {
2685
+ t.country = d;
2686
+ },
2687
+ onCallingCodeChange: function(d, i) {
2688
+ t.metadata.selectNumberingPlan(i, d), t.formatter.reset(t.metadata.numberingPlan, t.state), t.parser.reset(t.metadata.numberingPlan);
2689
+ }
2690
+ }), this.formatter = new Hn({
2691
+ state: this.state,
2692
+ metadata: this.metadata
2693
+ }), this.parser = new rd({
2694
+ defaultCountry: this.defaultCountry,
2695
+ defaultCallingCode: this.defaultCallingCode,
2696
+ metadata: this.metadata,
2697
+ state: this.state,
2698
+ onNationalSignificantNumberChange: function() {
2699
+ t.determineTheCountryIfNeeded(), t.formatter.reset(t.metadata.numberingPlan, t.state);
2700
+ }
2701
+ }), this.state.reset({
2702
+ country: this.defaultCountry,
2703
+ callingCode: this.defaultCallingCode
2704
+ }), this.formattedOutput = "", this;
2705
+ }
2706
+ /**
2707
+ * Returns `true` if the phone number is being input in international format.
2708
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
2709
+ * @return {boolean}
2710
+ */
2711
+ }, {
2712
+ key: "isInternational",
2713
+ value: function() {
2714
+ return this.state.international;
2715
+ }
2716
+ /**
2717
+ * Returns the "calling code" part of the phone number when it's being input
2718
+ * in an international format.
2719
+ * If no valid calling code has been entered so far, returns `undefined`.
2720
+ * @return {string} [callingCode]
2721
+ */
2722
+ }, {
2723
+ key: "getCallingCode",
2724
+ value: function() {
2725
+ if (this.isInternational())
2726
+ return this.state.callingCode;
2727
+ }
2728
+ // A legacy alias.
2729
+ }, {
2730
+ key: "getCountryCallingCode",
2731
+ value: function() {
2732
+ return this.getCallingCode();
2733
+ }
2734
+ /**
2735
+ * Returns a two-letter country code of the phone number.
2736
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2737
+ * Returns `undefined` if no phone number has been input yet.
2738
+ * @return {string} [country]
2739
+ */
2740
+ }, {
2741
+ key: "getCountry",
2742
+ value: function() {
2743
+ var t = this.state.digits;
2744
+ if (t)
2745
+ return this._getCountry();
2746
+ }
2747
+ /**
2748
+ * Returns a two-letter country code of the phone number.
2749
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2750
+ * @return {string} [country]
2751
+ */
2752
+ }, {
2753
+ key: "_getCountry",
2754
+ value: function() {
2755
+ var t = this.state.country;
2756
+ return t;
2757
+ }
2758
+ }, {
2759
+ key: "determineTheCountryIfNeeded",
2760
+ value: function() {
2761
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
2762
+ }
2763
+ // Prepends `+CountryCode ` in case of an international phone number
2764
+ }, {
2765
+ key: "getFullNumber",
2766
+ value: function(t) {
2767
+ var n = this;
2768
+ if (this.isInternational()) {
2769
+ var d = function(o) {
2770
+ return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
2771
+ spacing: !!o
2772
+ }) + o;
2773
+ }, i = this.state.callingCode;
2774
+ return d(i ? t ? "".concat(i, " ").concat(t) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
2775
+ }
2776
+ return t;
2777
+ }
2778
+ }, {
2779
+ key: "getNonFormattedNationalNumberWithPrefix",
2780
+ value: function() {
2781
+ var t = this.state, n = t.nationalSignificantNumber, d = t.complexPrefixBeforeNationalSignificantNumber, i = t.nationalPrefix, a = n, o = d || i;
2782
+ return o && (a = o + a), a;
2783
+ }
2784
+ }, {
2785
+ key: "getNonFormattedNumber",
2786
+ value: function() {
2787
+ var t = this.state.nationalSignificantNumberMatchesInput;
2788
+ return this.getFullNumber(t ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());
2789
+ }
2790
+ }, {
2791
+ key: "getNonFormattedTemplate",
2792
+ value: function() {
2793
+ var t = this.getNonFormattedNumber();
2794
+ if (t)
2795
+ return t.replace(/[\+\d]/g, p);
2796
+ }
2797
+ }, {
2798
+ key: "isCountryCallingCodeAmbiguous",
2799
+ value: function() {
2800
+ var t = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(t);
2801
+ return n && n.length > 1;
2802
+ }
2803
+ // Determines the country of the phone number
2804
+ // entered so far based on the country phone code
2805
+ // and the national phone number.
2806
+ }, {
2807
+ key: "determineTheCountry",
2808
+ value: function() {
2809
+ this.state.setCountry(ne(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
2810
+ nationalNumber: this.state.nationalSignificantNumber,
2811
+ defaultCountry: this.defaultCountry,
2812
+ metadata: this.metadata
2813
+ }));
2814
+ }
2815
+ /**
2816
+ * Returns a E.164 phone number value for the user's input.
2817
+ *
2818
+ * For example, for country `"US"` and input `"(222) 333-4444"`
2819
+ * it will return `"+12223334444"`.
2820
+ *
2821
+ * For international phone number input, it will also auto-correct
2822
+ * some minor errors such as using a national prefix when writing
2823
+ * an international phone number. For example, if the user inputs
2824
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
2825
+ * `"+447400000000"` phone number value.
2826
+ *
2827
+ * Will return `undefined` if no digits have been input,
2828
+ * or when inputting a phone number in national format and no
2829
+ * default country or default "country calling code" have been set.
2830
+ *
2831
+ * @return {string} [value]
2832
+ */
2833
+ }, {
2834
+ key: "getNumberValue",
2835
+ value: function() {
2836
+ var t = this.state, n = t.digits, d = t.callingCode, i = t.country, a = t.nationalSignificantNumber;
2837
+ if (n) {
2838
+ if (this.isInternational())
2839
+ return d ? "+" + d + a : "+" + n;
2840
+ if (i || d) {
2841
+ var o = i ? this.metadata.countryCallingCode() : d;
2842
+ return "+" + o + a;
2843
+ }
2844
+ }
2845
+ }
2846
+ /**
2847
+ * Returns an instance of `PhoneNumber` class.
2848
+ * Will return `undefined` if no national (significant) number
2849
+ * digits have been entered so far, or if no `defaultCountry` has been
2850
+ * set and the user enters a phone number not in international format.
2851
+ */
2852
+ }, {
2853
+ key: "getNumber",
2854
+ value: function() {
2855
+ var t = this.state, n = t.nationalSignificantNumber, d = t.carrierCode, i = t.callingCode, a = this._getCountry();
2856
+ if (n && !(!a && !i)) {
2857
+ if (a && a === this.defaultCountry) {
2858
+ var o = new g(this.metadata.metadata);
2859
+ o.selectNumberingPlan(a);
2860
+ var $ = o.numberingPlan.callingCode(), u = this.metadata.getCountryCodesForCallingCode($);
2861
+ if (u.length > 1) {
2862
+ var l = re(n, {
2863
+ countries: u,
2864
+ defaultCountry: this.defaultCountry,
2865
+ metadata: this.metadata.metadata
2866
+ });
2867
+ l && (a = l);
2868
+ }
2869
+ }
2870
+ var h = new at(a || i, n, this.metadata.metadata);
2871
+ return d && (h.carrierCode = d), h;
2872
+ }
2873
+ }
2874
+ /**
2875
+ * Returns `true` if the phone number is "possible".
2876
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
2877
+ * @return {boolean}
2878
+ */
2879
+ }, {
2880
+ key: "isPossible",
2881
+ value: function() {
2882
+ var t = this.getNumber();
2883
+ return t ? t.isPossible() : !1;
2884
+ }
2885
+ /**
2886
+ * Returns `true` if the phone number is "valid".
2887
+ * Is just a shortcut for `PhoneNumber.isValid()`.
2888
+ * @return {boolean}
2889
+ */
2890
+ }, {
2891
+ key: "isValid",
2892
+ value: function() {
2893
+ var t = this.getNumber();
2894
+ return t ? t.isValid() : !1;
2895
+ }
2896
+ /**
2897
+ * @deprecated
2898
+ * This method is used in `react-phone-number-input/source/input-control.js`
2899
+ * in versions before `3.0.16`.
2900
+ */
2901
+ }, {
2902
+ key: "getNationalNumber",
2903
+ value: function() {
2904
+ return this.state.nationalSignificantNumber;
2905
+ }
2906
+ /**
2907
+ * Returns the phone number characters entered by the user.
2908
+ * @return {string}
2909
+ */
2910
+ }, {
2911
+ key: "getChars",
2912
+ value: function() {
2913
+ return (this.state.international ? "+" : "") + this.state.digits;
2914
+ }
2915
+ /**
2916
+ * Returns the template for the formatted phone number.
2917
+ * @return {string}
2918
+ */
2919
+ }, {
2920
+ key: "getTemplate",
2921
+ value: function() {
2922
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
2923
+ }
2924
+ }]), e;
2925
+ }();
2926
+ function hd(e) {
2927
+ return new g(e).getCountries();
2928
+ }
2929
+ function gd(e, r, t) {
2930
+ if (r[e])
2931
+ return new at(e, r[e], t);
2932
+ }
2933
+ function Ut() {
2934
+ return rt($n, arguments);
2935
+ }
2936
+ function x(e) {
2937
+ return ae.call(this, e, Ht);
2938
+ }
2939
+ x.prototype = Object.create(ae.prototype, {});
2940
+ x.prototype.constructor = x;
2941
+ function md() {
2942
+ return rt(hd, arguments);
2943
+ }
2944
+ function yd() {
2945
+ return rt(gd, arguments);
2946
+ }
2947
+ const vd = ["-", "(", ")", "/", "[", "]", ".", "~"], pd = (e, r, t) => {
2948
+ const n = e.value, d = e.selectionStart ?? n.length, i = d >= n.length - 1, a = vd.includes(t);
2949
+ if (i)
2950
+ return;
2951
+ const o = n.slice(0, d).replace(/\D/g, "").length;
2952
+ let $ = 0, u = 0;
2953
+ if (o) {
2954
+ for (let l = 0; l < r.length; l++)
2955
+ if (/\d/.test(r[l]) && $++, $ === o) {
2956
+ u = l + 1, a && u++;
2957
+ break;
2958
+ }
2959
+ }
2960
+ requestAnimationFrame(() => {
2961
+ e.setSelectionRange(u, u);
2962
+ });
2963
+ }, Nd = { 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: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "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: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" }, et = (e) => {
2964
+ var r, t;
2965
+ return ((t = (r = jt(e)) == null ? void 0 : r.value) == null ? void 0 : t.split("-")[0]) ?? "";
2966
+ }, Cd = (e) => e.filter((t) => {
2967
+ if (jt(t).value)
2968
+ return !0;
2969
+ fe(
2970
+ `ISO code ${t} is not supported. Please contact the Bento team if this country needs to be added.`
2971
+ );
2972
+ }).map((t) => ({
2973
+ label: `${ce(t, "en-US").value} ${et(t)}`,
2974
+ value: t,
2975
+ displayValue: `${t} (${et(t)})`
2976
+ })).sort((t, n) => t.label.localeCompare(n.label)), bd = (e) => {
2977
+ var n;
2978
+ const r = e !== "US" && et(e) === "+1", t = ((n = yd(e, Nd)) == null ? void 0 : n.formatNational()) ?? "";
2979
+ if (r) {
2980
+ const [d, i] = t.split(" ");
2981
+ return `${d} ${i.replace(/\d/g, "0")}`;
2982
+ } else
2983
+ return t.replace(/\d/g, "0");
2984
+ }, V = (e, r, t) => {
2985
+ let n = e, d = e, i = r;
2986
+ if (e)
2987
+ if (r) {
2988
+ const a = Ut(e, i);
2989
+ if ((a == null ? void 0 : a.country) === r)
2990
+ n = a.formatNational(), d = a.number;
2991
+ else {
2992
+ const o = new x(r);
2993
+ n = o.input(e), d = o.getNumberValue();
2994
+ }
2995
+ } else {
2996
+ n = e.startsWith("00") ? `+${e.slice(2)}` : e;
2997
+ const a = Ut(n);
2998
+ a != null && a.isValid() && (t != null && t.includes(a == null ? void 0 : a.country)) && (n = a.formatNational(), i = a.country);
2999
+ }
3000
+ return { displayNumber: n, unformattedNumber: d, country: i };
3001
+ }, Pd = {
3002
+ "en-US": {
3003
+ countrySelectorDropdown: "Country selector dropdown"
3004
+ }
3005
+ }, Sd = {
3006
+ i18n: { messages: Pd }
3007
+ }, xd = /* @__PURE__ */ oe({
3008
+ ...Sd,
3009
+ __name: "input-field-phone-number",
3010
+ props: {
3011
+ disabled: { type: Boolean },
3012
+ error: { type: Boolean },
3013
+ errorMessage: null,
3014
+ label: null,
3015
+ optional: { type: Boolean },
3016
+ placeholder: null,
3017
+ readonly: { type: Boolean },
3018
+ required: { type: Boolean },
3019
+ tooltipText: null,
3020
+ value: null,
3021
+ selectedCountry: null,
3022
+ countries: { default: () => md() },
3023
+ dynamicFiltering: { type: Boolean, default: !0 }
3024
+ },
3025
+ emits: ["blur", "input", "update:selected-country"],
3026
+ setup(e, { emit: r }) {
3027
+ const t = e, { t: n } = se(), d = G(t.value), i = G(null), a = G(""), o = B(() => t.placeholder ? t.placeholder : t.selectedCountry ? bd(t.selectedCountry) : ""), $ = B(() => Cd(t.countries)), u = B(() => ({
3028
+ items: $.value,
3029
+ value: t.selectedCountry,
3030
+ dynamicFiltering: t.dynamicFiltering,
3031
+ "aria-label": n("countrySelectorDropdown")
3032
+ })), l = () => r("blur"), h = async (s) => {
3033
+ var F;
3034
+ const v = i.value.$refs.inputFieldElement;
3035
+ let c;
3036
+ if (s.startsWith("+") || s.startsWith("00")) {
3037
+ const P = s.startsWith("00") ? `+${s.slice(2)}` : s;
3038
+ c = new x(), c.input(P);
3039
+ const k = c.getCountry();
3040
+ k && t.countries.includes(k) ? (r("update:selected-country", k), d.value = c.getNationalNumber()) : (r("update:selected-country", null), d.value = s), r("input", c.getNumberValue());
3041
+ } else {
3042
+ c = new x(t.selectedCountry);
3043
+ const P = c.input(s);
3044
+ r("input", c.getNumberValue()), d.value = P;
3045
+ }
3046
+ if (await ue(), c.isValid() && t.selectedCountry) {
3047
+ const { displayNumber: P } = V(
3048
+ (F = d.value) == null ? void 0 : F.toString(),
3049
+ t.selectedCountry,
3050
+ t.countries
3051
+ );
3052
+ d.value = P;
3053
+ }
3054
+ pd(v, d.value.toString(), a.value);
3055
+ }, f = (s) => {
3056
+ if (/^[a-zA-Z]$/.test(s.key) && !s.metaKey && !s.ctrlKey) {
3057
+ s.preventDefault();
3058
+ return;
3059
+ }
3060
+ a.value = s.key;
3061
+ }, y = (s) => {
3062
+ r("update:selected-country", s);
3063
+ const { displayNumber: v, unformattedNumber: c } = V(
3064
+ d.value.toString(),
3065
+ s,
3066
+ t.countries
3067
+ );
3068
+ r("input", c), d.value = v;
3069
+ };
3070
+ return $e(() => {
3071
+ var c;
3072
+ const { displayNumber: s, country: v } = V(
3073
+ (c = t.value) == null ? void 0 : c.toString(),
3074
+ t.selectedCountry,
3075
+ t.countries
3076
+ );
3077
+ v != t.selectedCountry && r("update:selected-country", v), d.value = s;
3078
+ }), { __sfc: !0, t: n, props: t, emit: r, displayValue: d, inputField: i, insertedChar: a, computedPlaceholder: o, countryItems: $, dropdown: u, onBlur: l, onInput: h, onKeydown: f, onCountryChange: y, BentoInputField: le };
3079
+ }
3080
+ });
3081
+ var Ed = function() {
3082
+ var r = this, t = r._self._c, n = r._self._setupProxy;
3083
+ return t(n.BentoInputField, r._b({ ref: "inputField", staticClass: "b-input-field-phone-number", attrs: { variant: "dropdown", dropdown: n.dropdown, value: n.displayValue, placeholder: n.computedPlaceholder, type: "tel" }, on: { blur: n.onBlur, input: n.onInput, keydown: n.onKeydown, "dropdown-input": n.onCountryChange }, scopedSlots: r._u([{ key: "description", fn: function() {
3084
+ return [r._t("description")];
3085
+ }, proxy: !0 }], null, !0) }, "bento-input-field", n.props, !1), [r.label ? [r._v(r._s(r.label))] : [r._t("default")]], 2);
3086
+ }, Ad = [], _d = /* @__PURE__ */ he(
3087
+ xd,
3088
+ Ed,
3089
+ Ad,
3090
+ !1,
3091
+ null,
3092
+ "0abfe445"
3093
+ );
3094
+ const Dd = _d.exports;
3095
+ export {
3096
+ Dd as i
3097
+ };
3098
+ //# sourceMappingURL=input-field-phone-number.DWKZy2-k.js.map