@rpcbase/ui 0.287.0 → 0.289.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 (738) hide show
  1. package/dist/assets/sha256.worker-DNtOSCbM.js.map +1 -0
  2. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  3. package/dist/index.js +12 -12
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js.map +1 -1
  10. package/dist/index105.js.map +1 -1
  11. package/dist/index106.js.map +1 -1
  12. package/dist/index107.js.map +1 -1
  13. package/dist/index108.js.map +1 -1
  14. package/dist/index109.js.map +1 -1
  15. package/dist/index11.js +96 -17
  16. package/dist/index11.js.map +1 -1
  17. package/dist/index110.js.map +1 -1
  18. package/dist/index111.js.map +1 -1
  19. package/dist/index112.js.map +1 -1
  20. package/dist/index113.js.map +1 -1
  21. package/dist/index114.js.map +1 -1
  22. package/dist/index115.js.map +1 -1
  23. package/dist/index116.js.map +1 -1
  24. package/dist/index117.js.map +1 -1
  25. package/dist/index118.js.map +1 -1
  26. package/dist/index119.js.map +1 -1
  27. package/dist/index12.js.map +1 -1
  28. package/dist/index120.js.map +1 -1
  29. package/dist/index121.js.map +1 -1
  30. package/dist/index122.js.map +1 -1
  31. package/dist/index123.js +1 -1
  32. package/dist/index123.js.map +1 -1
  33. package/dist/index124.js.map +1 -1
  34. package/dist/index125.js.map +1 -1
  35. package/dist/index126.js.map +1 -1
  36. package/dist/index127.js.map +1 -1
  37. package/dist/index128.js.map +1 -1
  38. package/dist/index129.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index130.js.map +1 -1
  41. package/dist/index131.js.map +1 -1
  42. package/dist/index132.js.map +1 -1
  43. package/dist/index133.js.map +1 -1
  44. package/dist/index134.js.map +1 -1
  45. package/dist/index135.js.map +1 -1
  46. package/dist/index136.js.map +1 -1
  47. package/dist/index137.js.map +1 -1
  48. package/dist/index138.js.map +1 -1
  49. package/dist/index139.js.map +1 -1
  50. package/dist/index14.js.map +1 -1
  51. package/dist/index140.js.map +1 -1
  52. package/dist/index141.js.map +1 -1
  53. package/dist/index142.js.map +1 -1
  54. package/dist/index143.js.map +1 -1
  55. package/dist/index144.js.map +1 -1
  56. package/dist/index145.js.map +1 -1
  57. package/dist/index146.js.map +1 -1
  58. package/dist/index147.js.map +1 -1
  59. package/dist/index148.js.map +1 -1
  60. package/dist/index149.js.map +1 -1
  61. package/dist/index15.js.map +1 -1
  62. package/dist/index150.js.map +1 -1
  63. package/dist/index151.js.map +1 -1
  64. package/dist/index152.js.map +1 -1
  65. package/dist/index153.js.map +1 -1
  66. package/dist/index154.js +4 -4
  67. package/dist/index154.js.map +1 -1
  68. package/dist/index155.js.map +1 -1
  69. package/dist/index156.js.map +1 -1
  70. package/dist/index157.js.map +1 -1
  71. package/dist/index158.js.map +1 -1
  72. package/dist/index159.js.map +1 -1
  73. package/dist/index16.js.map +1 -1
  74. package/dist/index160.js.map +1 -1
  75. package/dist/index161.js.map +1 -1
  76. package/dist/index162.js.map +1 -1
  77. package/dist/index163.js.map +1 -1
  78. package/dist/index164.js.map +1 -1
  79. package/dist/index165.js.map +1 -1
  80. package/dist/index166.js.map +1 -1
  81. package/dist/index167.js.map +1 -1
  82. package/dist/index168.js.map +1 -1
  83. package/dist/index169.js.map +1 -1
  84. package/dist/index17.js.map +1 -1
  85. package/dist/index170.js +18 -12
  86. package/dist/index170.js.map +1 -1
  87. package/dist/index171.js.map +1 -1
  88. package/dist/index172.js.map +1 -1
  89. package/dist/index173.js.map +1 -1
  90. package/dist/index174.js.map +1 -1
  91. package/dist/index175.js.map +1 -1
  92. package/dist/index176.js.map +1 -1
  93. package/dist/index177.js.map +1 -1
  94. package/dist/index178.js.map +1 -1
  95. package/dist/index179.js.map +1 -1
  96. package/dist/index18.js.map +1 -1
  97. package/dist/index180.js.map +1 -1
  98. package/dist/index181.js +1 -1
  99. package/dist/index181.js.map +1 -1
  100. package/dist/index182.js +3 -3
  101. package/dist/index182.js.map +1 -1
  102. package/dist/index183.js.map +1 -1
  103. package/dist/index184.js.map +1 -1
  104. package/dist/index185.js.map +1 -1
  105. package/dist/index186.js.map +1 -1
  106. package/dist/index187.js.map +1 -1
  107. package/dist/index188.js.map +1 -1
  108. package/dist/index189.js.map +1 -1
  109. package/dist/index19.js.map +1 -1
  110. package/dist/index190.js +9 -7
  111. package/dist/index190.js.map +1 -1
  112. package/dist/index191.js +4 -4
  113. package/dist/index191.js.map +1 -1
  114. package/dist/index192.js +4 -15
  115. package/dist/index192.js.map +1 -1
  116. package/dist/index193.js +13 -3
  117. package/dist/index193.js.map +1 -1
  118. package/dist/index194.js +2 -2
  119. package/dist/index194.js.map +1 -1
  120. package/dist/index195.js +4 -85
  121. package/dist/index195.js.map +1 -1
  122. package/dist/index196.js +79 -54
  123. package/dist/index196.js.map +1 -1
  124. package/dist/index197.js +68 -7
  125. package/dist/index197.js.map +1 -1
  126. package/dist/index198.js +3 -23
  127. package/dist/index198.js.map +1 -1
  128. package/dist/index199.js +6 -28
  129. package/dist/index199.js.map +1 -1
  130. package/dist/index20.js.map +1 -1
  131. package/dist/index200.js +4 -97
  132. package/dist/index200.js.map +1 -1
  133. package/dist/index201.js +3 -4
  134. package/dist/index201.js.map +1 -1
  135. package/dist/index202.js +23 -24
  136. package/dist/index202.js.map +1 -1
  137. package/dist/index203.js +28 -10
  138. package/dist/index203.js.map +1 -1
  139. package/dist/index204.js +97 -4
  140. package/dist/index204.js.map +1 -1
  141. package/dist/index205.js +4 -12
  142. package/dist/index205.js.map +1 -1
  143. package/dist/index206.js +22 -19
  144. package/dist/index206.js.map +1 -1
  145. package/dist/index207.js +4 -6
  146. package/dist/index207.js.map +1 -1
  147. package/dist/index208.js +4 -15
  148. package/dist/index208.js.map +1 -1
  149. package/dist/index209.js +10 -102
  150. package/dist/index209.js.map +1 -1
  151. package/dist/index210.js +21 -3
  152. package/dist/index210.js.map +1 -1
  153. package/dist/index211.js +5 -23
  154. package/dist/index211.js.map +1 -1
  155. package/dist/index212.js +15 -28
  156. package/dist/index212.js.map +1 -1
  157. package/dist/index213.js +101 -17
  158. package/dist/index213.js.map +1 -1
  159. package/dist/index214.js +3 -7
  160. package/dist/index214.js.map +1 -1
  161. package/dist/index215.js +24 -15
  162. package/dist/index215.js.map +1 -1
  163. package/dist/index216.js +27 -7
  164. package/dist/index216.js.map +1 -1
  165. package/dist/index217.js +17 -24
  166. package/dist/index217.js.map +1 -1
  167. package/dist/index218.js +6 -22
  168. package/dist/index218.js.map +1 -1
  169. package/dist/index219.js +15 -6
  170. package/dist/index219.js.map +1 -1
  171. package/dist/index220.js +8 -5
  172. package/dist/index220.js.map +1 -1
  173. package/dist/index221.js +27 -4
  174. package/dist/index221.js.map +1 -1
  175. package/dist/index222.js +23 -4
  176. package/dist/index222.js.map +1 -1
  177. package/dist/index223.js +6 -24
  178. package/dist/index223.js.map +1 -1
  179. package/dist/index224.js +5 -3
  180. package/dist/index224.js.map +1 -1
  181. package/dist/index225.js +4 -24
  182. package/dist/index225.js.map +1 -1
  183. package/dist/index226.js +4 -23
  184. package/dist/index226.js.map +1 -1
  185. package/dist/index227.js +23 -6
  186. package/dist/index227.js.map +1 -1
  187. package/dist/index228.js +22 -8
  188. package/dist/index228.js.map +1 -1
  189. package/dist/index229.js +3 -19
  190. package/dist/index229.js.map +1 -1
  191. package/dist/index23.js.map +1 -1
  192. package/dist/index230.js +22 -50
  193. package/dist/index230.js.map +1 -1
  194. package/dist/index231.js +7 -20
  195. package/dist/index231.js.map +1 -1
  196. package/dist/index232.js +9 -27
  197. package/dist/index232.js.map +1 -1
  198. package/dist/index233.js +17 -97
  199. package/dist/index233.js.map +1 -1
  200. package/dist/index234.js +50 -33
  201. package/dist/index234.js.map +1 -1
  202. package/dist/index235.js +20 -119
  203. package/dist/index235.js.map +1 -1
  204. package/dist/index236.js +28 -13
  205. package/dist/index236.js.map +1 -1
  206. package/dist/index237.js +98 -4
  207. package/dist/index237.js.map +1 -1
  208. package/dist/index238.js +33 -15
  209. package/dist/index238.js.map +1 -1
  210. package/dist/index239.js +116 -62
  211. package/dist/index239.js.map +1 -1
  212. package/dist/index24.js.map +1 -1
  213. package/dist/index240.js +13 -10
  214. package/dist/index240.js.map +1 -1
  215. package/dist/index241.js +4 -109
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +14 -14
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +64 -12
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +10 -5
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +104 -318
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +14 -66
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +12 -232
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +4 -270
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +313 -309
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index25.js.map +1 -1
  234. package/dist/index250.js +60 -171
  235. package/dist/index250.js.map +1 -1
  236. package/dist/index251.js +252 -8
  237. package/dist/index251.js.map +1 -1
  238. package/dist/index252.js +268 -41
  239. package/dist/index252.js.map +1 -1
  240. package/dist/index253.js +316 -47
  241. package/dist/index253.js.map +1 -1
  242. package/dist/index254.js +179 -9
  243. package/dist/index254.js.map +1 -1
  244. package/dist/index255.js +6 -50
  245. package/dist/index255.js.map +1 -1
  246. package/dist/index256.js +41 -51
  247. package/dist/index256.js.map +1 -1
  248. package/dist/index257.js +50 -7
  249. package/dist/index257.js.map +1 -1
  250. package/dist/index258.js +9 -10
  251. package/dist/index258.js.map +1 -1
  252. package/dist/index259.js +51 -61
  253. package/dist/index259.js.map +1 -1
  254. package/dist/index26.js.map +1 -1
  255. package/dist/index260.js +53 -42
  256. package/dist/index260.js.map +1 -1
  257. package/dist/index261.js +9 -97
  258. package/dist/index261.js.map +1 -1
  259. package/dist/index262.js +31 -47
  260. package/dist/index262.js.map +1 -1
  261. package/dist/index263.js +61 -36
  262. package/dist/index263.js.map +1 -1
  263. package/dist/index264.js +43 -47
  264. package/dist/index264.js.map +1 -1
  265. package/dist/index265.js +92 -46
  266. package/dist/index265.js.map +1 -1
  267. package/dist/index266.js +48 -20
  268. package/dist/index266.js.map +1 -1
  269. package/dist/index267.js +33 -176
  270. package/dist/index267.js.map +1 -1
  271. package/dist/index268.js +49 -48
  272. package/dist/index268.js.map +1 -1
  273. package/dist/index269.js +68 -15
  274. package/dist/index269.js.map +1 -1
  275. package/dist/index27.js.map +1 -1
  276. package/dist/index270.js +20 -65
  277. package/dist/index270.js.map +1 -1
  278. package/dist/index271.js +202 -9
  279. package/dist/index271.js.map +1 -1
  280. package/dist/index272.js +48 -40
  281. package/dist/index272.js.map +1 -1
  282. package/dist/index273.js +60 -91
  283. package/dist/index273.js.map +1 -1
  284. package/dist/index274.js +9 -278
  285. package/dist/index274.js.map +1 -1
  286. package/dist/index275.js +38 -55
  287. package/dist/index275.js.map +1 -1
  288. package/dist/index276.js +91 -10
  289. package/dist/index276.js.map +1 -1
  290. package/dist/index277.js +278 -12
  291. package/dist/index277.js.map +1 -1
  292. package/dist/index278.js +58 -11
  293. package/dist/index278.js.map +1 -1
  294. package/dist/index279.js +11 -64
  295. package/dist/index279.js.map +1 -1
  296. package/dist/index28.js +5 -5
  297. package/dist/index28.js.map +1 -1
  298. package/dist/index280.js +12 -6
  299. package/dist/index280.js.map +1 -1
  300. package/dist/index281.js +3 -25
  301. package/dist/index281.js.map +1 -1
  302. package/dist/index282.js +3 -25
  303. package/dist/index282.js.map +1 -1
  304. package/dist/index283.js +12 -126
  305. package/dist/index283.js.map +1 -1
  306. package/dist/index284.js +63 -51
  307. package/dist/index284.js.map +1 -1
  308. package/dist/index285.js +5 -60
  309. package/dist/index285.js.map +1 -1
  310. package/dist/index286.js +24 -48
  311. package/dist/index286.js.map +1 -1
  312. package/dist/index287.js +24 -6
  313. package/dist/index287.js.map +1 -1
  314. package/dist/index288.js +125 -14
  315. package/dist/index288.js.map +1 -1
  316. package/dist/index289.js +51 -16
  317. package/dist/index289.js.map +1 -1
  318. package/dist/index29.js +5 -7
  319. package/dist/index29.js.map +1 -1
  320. package/dist/index290.js +56 -11
  321. package/dist/index290.js.map +1 -1
  322. package/dist/index291.js +47 -24
  323. package/dist/index291.js.map +1 -1
  324. package/dist/index292.js +7 -51
  325. package/dist/index292.js.map +1 -1
  326. package/dist/index293.js +15 -6
  327. package/dist/index293.js.map +1 -1
  328. package/dist/index294.js +18 -148
  329. package/dist/index294.js.map +1 -1
  330. package/dist/index295.js +12 -59
  331. package/dist/index295.js.map +1 -1
  332. package/dist/index296.js +25 -120
  333. package/dist/index296.js.map +1 -1
  334. package/dist/index297.js +54 -15
  335. package/dist/index297.js.map +1 -1
  336. package/dist/index298.js +5 -866
  337. package/dist/index298.js.map +1 -1
  338. package/dist/index299.js +148 -28
  339. package/dist/index299.js.map +1 -1
  340. package/dist/index3.js.map +1 -1
  341. package/dist/index30.js +6 -8
  342. package/dist/index30.js.map +1 -1
  343. package/dist/index300.js +55 -512
  344. package/dist/index300.js.map +1 -1
  345. package/dist/index301.js +111 -794
  346. package/dist/index301.js.map +1 -1
  347. package/dist/index302.js +14 -7436
  348. package/dist/index302.js.map +1 -1
  349. package/dist/index303.js +862 -6
  350. package/dist/index303.js.map +1 -1
  351. package/dist/index304.js +28 -12
  352. package/dist/index304.js.map +1 -1
  353. package/dist/index305.js +515 -5
  354. package/dist/index305.js.map +1 -1
  355. package/dist/index306.js +803 -5
  356. package/dist/index306.js.map +1 -1
  357. package/dist/index307.js +7426 -468
  358. package/dist/index307.js.map +1 -1
  359. package/dist/index308.js +6 -37
  360. package/dist/index308.js.map +1 -1
  361. package/dist/index309.js +12 -19
  362. package/dist/index309.js.map +1 -1
  363. package/dist/index31.js +5 -11
  364. package/dist/index31.js.map +1 -1
  365. package/dist/index310.js +5 -30
  366. package/dist/index310.js.map +1 -1
  367. package/dist/index311.js +5 -4
  368. package/dist/index311.js.map +1 -1
  369. package/dist/index312.js +461 -51
  370. package/dist/index312.js.map +1 -1
  371. package/dist/index313.js +36 -10
  372. package/dist/index313.js.map +1 -1
  373. package/dist/index314.js +19 -5
  374. package/dist/index314.js.map +1 -1
  375. package/dist/index315.js +29 -8
  376. package/dist/index315.js.map +1 -1
  377. package/dist/index316.js +4 -12
  378. package/dist/index316.js.map +1 -1
  379. package/dist/index317.js +60 -3
  380. package/dist/index317.js.map +1 -1
  381. package/dist/index318.js +10 -15
  382. package/dist/index318.js.map +1 -1
  383. package/dist/index319.js +5 -25
  384. package/dist/index319.js.map +1 -1
  385. package/dist/index32.js +5 -5
  386. package/dist/index32.js.map +1 -1
  387. package/dist/index320.js +9 -41
  388. package/dist/index320.js.map +1 -1
  389. package/dist/index321.js +11 -4
  390. package/dist/index321.js.map +1 -1
  391. package/dist/index322.js +3 -26
  392. package/dist/index322.js.map +1 -1
  393. package/dist/index323.js +15 -18
  394. package/dist/index323.js.map +1 -1
  395. package/dist/index324.js +22 -31
  396. package/dist/index324.js.map +1 -1
  397. package/dist/index325.js +41 -5
  398. package/dist/index325.js.map +1 -1
  399. package/dist/index326.js +4 -8
  400. package/dist/index326.js.map +1 -1
  401. package/dist/index327.js +25 -8
  402. package/dist/index327.js.map +1 -1
  403. package/dist/index328.js +19 -9
  404. package/dist/index328.js.map +1 -1
  405. package/dist/index329.js +34 -10
  406. package/dist/index329.js.map +1 -1
  407. package/dist/index33.js +9 -6
  408. package/dist/index33.js.map +1 -1
  409. package/dist/index330.js +5 -7
  410. package/dist/index330.js.map +1 -1
  411. package/dist/index331.js +9 -75
  412. package/dist/index331.js.map +1 -1
  413. package/dist/index332.js +8 -162
  414. package/dist/index332.js.map +1 -1
  415. package/dist/index333.js +9 -114
  416. package/dist/index333.js.map +1 -1
  417. package/dist/index334.js +10 -14
  418. package/dist/index334.js.map +1 -1
  419. package/dist/index335.js +7 -80
  420. package/dist/index335.js.map +1 -1
  421. package/dist/index336.js +68 -39
  422. package/dist/index336.js.map +1 -1
  423. package/dist/index337.js +160 -11
  424. package/dist/index337.js.map +1 -1
  425. package/dist/index338.js +113 -15
  426. package/dist/index338.js.map +1 -1
  427. package/dist/index339.js +13 -100
  428. package/dist/index339.js.map +1 -1
  429. package/dist/index34.js +6 -6
  430. package/dist/index34.js.map +1 -1
  431. package/dist/index340.js +73 -49
  432. package/dist/index340.js.map +1 -1
  433. package/dist/index341.js +34 -96
  434. package/dist/index341.js.map +1 -1
  435. package/dist/index342.js +12 -70
  436. package/dist/index342.js.map +1 -1
  437. package/dist/index343.js +14 -111
  438. package/dist/index343.js.map +1 -1
  439. package/dist/index344.js +94 -48
  440. package/dist/index344.js.map +1 -1
  441. package/dist/index345.js +50 -37
  442. package/dist/index345.js.map +1 -1
  443. package/dist/index346.js +89 -125
  444. package/dist/index346.js.map +1 -1
  445. package/dist/index347.js +52 -123
  446. package/dist/index347.js.map +1 -1
  447. package/dist/index348.js +54 -197
  448. package/dist/index348.js.map +1 -1
  449. package/dist/index349.js +44 -229
  450. package/dist/index349.js.map +1 -1
  451. package/dist/index35.js +9 -9
  452. package/dist/index35.js.map +1 -1
  453. package/dist/index350.js +42 -308
  454. package/dist/index350.js.map +1 -1
  455. package/dist/index351.js +144 -5
  456. package/dist/index351.js.map +1 -1
  457. package/dist/index352.js +142 -6
  458. package/dist/index352.js.map +1 -1
  459. package/dist/index353.js +257 -7
  460. package/dist/index353.js.map +1 -1
  461. package/dist/index354.js +241 -6
  462. package/dist/index354.js.map +1 -1
  463. package/dist/index355.js +309 -6
  464. package/dist/index355.js.map +1 -1
  465. package/dist/index356.js +5 -21
  466. package/dist/index356.js.map +1 -1
  467. package/dist/index357.js +6 -10
  468. package/dist/index357.js.map +1 -1
  469. package/dist/index358.js +7 -128
  470. package/dist/index358.js.map +1 -1
  471. package/dist/index359.js +6 -42
  472. package/dist/index359.js.map +1 -1
  473. package/dist/index36.js +12 -7
  474. package/dist/index36.js.map +1 -1
  475. package/dist/index360.js +6 -68
  476. package/dist/index360.js.map +1 -1
  477. package/dist/index361.js +20 -116
  478. package/dist/index361.js.map +1 -1
  479. package/dist/index362.js +10 -490
  480. package/dist/index362.js.map +1 -1
  481. package/dist/index363.js +128 -7
  482. package/dist/index363.js.map +1 -1
  483. package/dist/index364.js +42 -13
  484. package/dist/index364.js.map +1 -1
  485. package/dist/index365.js +67 -3
  486. package/dist/index365.js.map +1 -1
  487. package/dist/index366.js +115 -45
  488. package/dist/index366.js.map +1 -1
  489. package/dist/index367.js +490 -11
  490. package/dist/index367.js.map +1 -1
  491. package/dist/index368.js +8 -26
  492. package/dist/index368.js.map +1 -1
  493. package/dist/index369.js +12 -41
  494. package/dist/index369.js.map +1 -1
  495. package/dist/index37.js +13 -5
  496. package/dist/index37.js.map +1 -1
  497. package/dist/index370.js +4 -36
  498. package/dist/index370.js.map +1 -1
  499. package/dist/index371.js +45 -15
  500. package/dist/index371.js.map +1 -1
  501. package/dist/index372.js +24 -41
  502. package/dist/index372.js.map +1 -1
  503. package/dist/index373.js +3 -12
  504. package/dist/index373.js.map +1 -1
  505. package/dist/index374.js +27 -11
  506. package/dist/index374.js.map +1 -1
  507. package/dist/index375.js +40 -50
  508. package/dist/index375.js.map +1 -1
  509. package/dist/index376.js +37 -40
  510. package/dist/index376.js.map +1 -1
  511. package/dist/index377.js +12 -10
  512. package/dist/index377.js.map +1 -1
  513. package/dist/index378.js +40 -4
  514. package/dist/index378.js.map +1 -1
  515. package/dist/index379.js +7 -4
  516. package/dist/index379.js.map +1 -1
  517. package/dist/index38.js +5 -5
  518. package/dist/index38.js.map +1 -1
  519. package/dist/index380.js +29 -8
  520. package/dist/index380.js.map +1 -1
  521. package/dist/index381.js +9 -303
  522. package/dist/index381.js.map +1 -1
  523. package/dist/index382.js +57 -4
  524. package/dist/index382.js.map +1 -1
  525. package/dist/index383.js +40 -22
  526. package/dist/index383.js.map +1 -1
  527. package/dist/index384.js +15 -105
  528. package/dist/index384.js.map +1 -1
  529. package/dist/index385.js +5 -22
  530. package/dist/index385.js.map +1 -1
  531. package/dist/index386.js +10 -22
  532. package/dist/index386.js.map +1 -1
  533. package/dist/index387.js +289 -16
  534. package/dist/index387.js.map +1 -1
  535. package/dist/index388.js +4 -12
  536. package/dist/index388.js.map +1 -1
  537. package/dist/index389.js +20 -112
  538. package/dist/index389.js.map +1 -1
  539. package/dist/index39.js +6 -10
  540. package/dist/index39.js.map +1 -1
  541. package/dist/index390.js +3 -9
  542. package/dist/index390.js.map +1 -1
  543. package/dist/index391.js +104 -27
  544. package/dist/index391.js.map +1 -1
  545. package/dist/index392.js +20 -9
  546. package/dist/index392.js.map +1 -1
  547. package/dist/index393.js +20 -6
  548. package/dist/index393.js.map +1 -1
  549. package/dist/index394.js +14 -253
  550. package/dist/index394.js.map +1 -1
  551. package/dist/index395.js +12 -10
  552. package/dist/index395.js.map +1 -1
  553. package/dist/index396.js +117 -11
  554. package/dist/index396.js.map +1 -1
  555. package/dist/index397.js +8 -6
  556. package/dist/index397.js.map +1 -1
  557. package/dist/index398.js +32 -22
  558. package/dist/index398.js.map +1 -1
  559. package/dist/index399.js +9 -23
  560. package/dist/index399.js.map +1 -1
  561. package/dist/index4.js.map +1 -1
  562. package/dist/index40.js +8 -11
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index400.js +6 -105
  565. package/dist/index400.js.map +1 -1
  566. package/dist/index401.js +3 -15
  567. package/dist/index401.js.map +1 -1
  568. package/dist/index402.js +251 -10
  569. package/dist/index402.js.map +1 -1
  570. package/dist/index403.js +9 -7
  571. package/dist/index403.js.map +1 -1
  572. package/dist/index404.js +11 -239
  573. package/dist/index404.js.map +1 -1
  574. package/dist/index405.js +7 -28
  575. package/dist/index405.js.map +1 -1
  576. package/dist/index406.js +21 -37
  577. package/dist/index406.js.map +1 -1
  578. package/dist/index407.js +21 -10
  579. package/dist/index407.js.map +1 -1
  580. package/dist/index408.js +97 -117
  581. package/dist/index408.js.map +1 -1
  582. package/dist/index409.js +15 -40
  583. package/dist/index409.js.map +1 -1
  584. package/dist/index41.js +6 -7
  585. package/dist/index41.js.map +1 -1
  586. package/dist/index410.js +11 -25
  587. package/dist/index410.js.map +1 -1
  588. package/dist/index411.js +7 -9
  589. package/dist/index411.js.map +1 -1
  590. package/dist/index412.js +3 -24
  591. package/dist/index412.js.map +1 -1
  592. package/dist/index413.js +226 -15
  593. package/dist/index413.js.map +1 -1
  594. package/dist/index414.js +24 -11
  595. package/dist/index414.js.map +1 -1
  596. package/dist/index415.js +38 -4
  597. package/dist/index415.js.map +1 -1
  598. package/dist/index416.js +11 -324
  599. package/dist/index416.js.map +1 -1
  600. package/dist/index417.js +119 -62
  601. package/dist/index417.js.map +1 -1
  602. package/dist/index418.js +42 -4
  603. package/dist/index418.js.map +1 -1
  604. package/dist/index419.js +25 -28
  605. package/dist/index419.js.map +1 -1
  606. package/dist/index42.js +6 -4
  607. package/dist/index42.js.map +1 -1
  608. package/dist/index420.js +11 -470
  609. package/dist/index420.js.map +1 -1
  610. package/dist/index421.js +23 -268
  611. package/dist/index421.js.map +1 -1
  612. package/dist/index422.js +24 -0
  613. package/dist/index422.js.map +1 -0
  614. package/dist/index423.js +17 -0
  615. package/dist/index423.js.map +1 -0
  616. package/dist/index424.js +8 -0
  617. package/dist/index424.js.map +1 -0
  618. package/dist/index425.js +328 -0
  619. package/dist/index425.js.map +1 -0
  620. package/dist/index426.js +66 -0
  621. package/dist/index426.js.map +1 -0
  622. package/dist/index427.js +7 -0
  623. package/dist/index427.js.map +1 -0
  624. package/dist/index428.js +31 -0
  625. package/dist/index428.js.map +1 -0
  626. package/dist/index429.js +474 -0
  627. package/dist/index429.js.map +1 -0
  628. package/dist/index43.js +68 -7
  629. package/dist/index43.js.map +1 -1
  630. package/dist/index430.js +272 -0
  631. package/dist/index430.js.map +1 -0
  632. package/dist/index44.js +7 -6
  633. package/dist/index44.js.map +1 -1
  634. package/dist/index45.js +31 -7
  635. package/dist/index45.js.map +1 -1
  636. package/dist/index46.js +10 -10
  637. package/dist/index46.js.map +1 -1
  638. package/dist/index47.js +15 -13
  639. package/dist/index47.js.map +1 -1
  640. package/dist/index48.js +201 -7
  641. package/dist/index48.js.map +1 -1
  642. package/dist/index49.js +20 -6
  643. package/dist/index49.js.map +1 -1
  644. package/dist/index5.js.map +1 -1
  645. package/dist/index50.js +16 -6
  646. package/dist/index50.js.map +1 -1
  647. package/dist/index51.js +123 -14
  648. package/dist/index51.js.map +1 -1
  649. package/dist/index52.js +19 -8
  650. package/dist/index52.js.map +1 -1
  651. package/dist/index53.js +5 -7
  652. package/dist/index53.js.map +1 -1
  653. package/dist/index54.js +9 -68
  654. package/dist/index54.js.map +1 -1
  655. package/dist/index55.js +7 -7
  656. package/dist/index55.js.map +1 -1
  657. package/dist/index56.js +9 -31
  658. package/dist/index56.js.map +1 -1
  659. package/dist/index57.js +13 -10
  660. package/dist/index57.js.map +1 -1
  661. package/dist/index58.js +8 -15
  662. package/dist/index58.js.map +1 -1
  663. package/dist/index59.js +10 -201
  664. package/dist/index59.js.map +1 -1
  665. package/dist/index6.js.map +1 -1
  666. package/dist/index60.js +13 -20
  667. package/dist/index60.js.map +1 -1
  668. package/dist/index61.js +9 -16
  669. package/dist/index61.js.map +1 -1
  670. package/dist/index62.js +10 -123
  671. package/dist/index62.js.map +1 -1
  672. package/dist/index63.js +5 -19
  673. package/dist/index63.js.map +1 -1
  674. package/dist/index64.js +42 -9
  675. package/dist/index64.js.map +1 -1
  676. package/dist/index65.js +387 -9
  677. package/dist/index65.js.map +1 -1
  678. package/dist/index66.js +37 -14
  679. package/dist/index66.js.map +1 -1
  680. package/dist/index67.js +21 -9
  681. package/dist/index67.js.map +1 -1
  682. package/dist/index68.js +4 -9
  683. package/dist/index68.js.map +1 -1
  684. package/dist/index69.js +6 -4
  685. package/dist/index69.js.map +1 -1
  686. package/dist/index7.js +3 -3
  687. package/dist/index7.js.map +1 -1
  688. package/dist/index70.js +57 -41
  689. package/dist/index70.js.map +1 -1
  690. package/dist/index71.js +5 -387
  691. package/dist/index71.js.map +1 -1
  692. package/dist/index72.js +6 -37
  693. package/dist/index72.js.map +1 -1
  694. package/dist/index73.js +5 -21
  695. package/dist/index73.js.map +1 -1
  696. package/dist/index74.js +4 -56
  697. package/dist/index74.js.map +1 -1
  698. package/dist/index75.js +7 -7
  699. package/dist/index75.js.map +1 -1
  700. package/dist/index76.js +6 -5
  701. package/dist/index76.js.map +1 -1
  702. package/dist/index77.js +6 -5
  703. package/dist/index77.js.map +1 -1
  704. package/dist/index78.js +11 -5
  705. package/dist/index78.js.map +1 -1
  706. package/dist/index79.js +11 -5
  707. package/dist/index79.js.map +1 -1
  708. package/dist/index8.js.map +1 -1
  709. package/dist/index80.js +7 -6
  710. package/dist/index80.js.map +1 -1
  711. package/dist/index81.js +10 -6
  712. package/dist/index81.js.map +1 -1
  713. package/dist/index82.js +5 -8
  714. package/dist/index82.js.map +1 -1
  715. package/dist/index83.js +6 -7
  716. package/dist/index83.js.map +1 -1
  717. package/dist/index84.js.map +1 -1
  718. package/dist/index85.js.map +1 -1
  719. package/dist/index86.js.map +1 -1
  720. package/dist/index87.js +2 -2
  721. package/dist/index87.js.map +1 -1
  722. package/dist/index88.js +31 -31
  723. package/dist/index88.js.map +1 -1
  724. package/dist/index89.js +1 -1
  725. package/dist/index89.js.map +1 -1
  726. package/dist/index9.js.map +1 -1
  727. package/dist/index90.js.map +1 -1
  728. package/dist/index91.js.map +1 -1
  729. package/dist/index92.js.map +1 -1
  730. package/dist/index93.js.map +1 -1
  731. package/dist/index94.js.map +1 -1
  732. package/dist/index95.js.map +1 -1
  733. package/dist/index96.js.map +1 -1
  734. package/dist/index97.js.map +1 -1
  735. package/dist/index98.js.map +1 -1
  736. package/dist/index99.js.map +1 -1
  737. package/package.json +13 -13
  738. package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index313.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\n * Checks if a given phone number is valid.\n *\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * If the `number` is a string, it will be parsed to an object,\n * but only if it contains only valid phone number characters (including punctuation).\n * If the `number` is an object, it is used as is.\n *\n * The optional `defaultCountry` argument is the default country.\n * I.e. it does not restrict to just that country,\n * e.g. in those cases where several countries share\n * the same phone numbering rules (NANPA, Britain, etc).\n * For example, even though the number `07624 369230`\n * belongs to the Isle of Man (\"IM\" country code)\n * calling `isValidNumber('07624369230', 'GB', metadata)`\n * still returns `true` because the country is not restricted to `GB`,\n * it's just that `GB` is the default one for the phone numbering rules.\n * For restricting the country see `isValidNumberForRegion()`\n * though restricting a country might not be a good idea.\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\n *\n * Examples:\n *\n * ```js\n * isValidNumber('+78005553535', metadata)\n * isValidNumber('8005553535', 'RU', metadata)\n * isValidNumber('88005553535', 'RU', metadata)\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\n * ```\n */\nexport default function isValidNumber(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAsCA,SAAwB,EAAc,GAAO,GAAS,GAAc;CAGlE,MAAqB,CAAC;CACtB,IAAI,IAAW,IAAI,EAAS,CAAY;CAKxC,IAJA,EAAS,oBAAoB,EAAM,WAAW,EAAM,kBAAkB,GAIlE,EAAS,SAAS,GACpB,OAAO,EAAc,GAAO,GAAS,EAAS,QAAQ,MAAM,KAAA;CAK9D,IAAI,IAAiB,EAAQ,KAAK,EAAM,iBAAiB,EAAM;CAC/D,OAAO,EAAgB,GAAgB,EAAS,sBAAsB,CAAC;AACzE"}
1
+ {"version":3,"file":"index313.js","names":["_createForOfIteratorHelperLoose","t","r","_unsupportedIterableToArray","e","o","_arrayLikeToArray","a","n","mergeArrays","merged","_iterator","b","_step","element"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/mergeArrays.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n/**\n * Merges two arrays.\n * @param {*} a\n * @param {*} b\n * @return {*}\n */\nexport default function mergeArrays(a, b) {\n var merged = a.slice();\n for (var _iterator = _createForOfIteratorHelperLoose(b), _step; !(_step = _iterator()).done;) {\n var element = _step.value;\n if (a.indexOf(element) < 0) {\n merged.push(element);\n }\n }\n return merged.sort(function (a, b) {\n return a - b;\n });\n\n // ES6 version, requires Set polyfill.\n // let merged = new Set(a)\n // for (const element of b) {\n // \tmerged.add(i)\n // }\n // return Array.from(merged).sort((a, b) => a - b)\n}\n//# sourceMappingURL=mergeArrays.js.map"],"ignoreList":[0],"mappings":";AAAA,SAASA,EAAgC,GAAG,GAAG;CAAE,IAAIC,IAAmB,OAAO,SAAtB,OAAgCC,EAAE,OAAO,aAAaA,EAAE;CAAe,IAAID,GAAG,QAAQ,IAAIA,EAAE,KAAKC,CAAC,EAAA,CAAG,KAAK,KAAKD,CAAC;CAAG,IAAI,MAAM,QAAQC,CAAC,MAAM,IAAIC,EAA4BD,CAAC,MAAME,KAAKF,KAAiB,OAAOA,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAID;EAAI,IAAII,IAAI;EAAG,OAAO,WAAY;GAAE,OAAOA,KAAKH,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAOA,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAASC,EAA4B,GAAG,GAAG;CAAE,IAAID,GAAG;EAAE,IAAgB,OAAOA,KAAnB,UAAsB,OAAOI,EAAkBJ,GAAGK,CAAC;EAAG,IAAIN,IAAI,CAAC,EAAE,SAAS,KAAKC,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoBD,MAAb,YAAkBC,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiBD,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKC,CAAC,IAAoBD,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAIK,EAAkBJ,GAAGK,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAASD,EAAkB,GAAG,GAAG;CAAE,CAASC,KAAR,QAAaA,IAAIL,EAAE,YAAY,IAAIA,EAAE;CAAS,KAAK,IAAIE,IAAI,GAAGI,IAAI,MAAMD,CAAC,GAAGH,IAAIG,GAAG,KAAK,EAAEH,KAAKF,EAAEE;CAAI,OAAOI;AAAG;AAOnJ,SAAwBC,EAAY,GAAG,GAAG;CAExC,KAAK,IADDC,IAASH,EAAE,MAAM,GACZI,IAAYX,EAAgCY,CAAC,GAAGC,GAAO,EAAE,IAAQF,EAAU,EAAA,CAAG,OAAO;EAC5F,IAAIG,IAAUD,EAAM;EACpB,AAAIN,EAAE,QAAQO,CAAO,IAAI,KACvBJ,EAAO,KAAKI,CAAO;CAEvB;CACA,OAAOJ,EAAO,KAAK,SAAU,GAAG,GAAG;EACjC,OAAOH,IAAIK;CACb,CAAC;AAQH"}
package/dist/index314.js CHANGED
@@ -1,9 +1,23 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
2
- var e = /^[A-Z]{2}$/;
3
- function t(t) {
4
- return e.test(t);
1
+ import e from "./index312.js";
2
+ import t from "./index313.js";
3
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
4
+ function n(e, t, n) {
5
+ return r(e, void 0, t, n);
6
+ }
7
+ function r(n, i, a, o) {
8
+ a && (o = new e(o.metadata), o.selectNumberingPlan(a));
9
+ var s = o.type(i), c = s && s.possibleLengths() || o.possibleLengths();
10
+ if (!c) return "IS_POSSIBLE";
11
+ if (i === "FIXED_LINE_OR_MOBILE") {
12
+ /* istanbul ignore next */
13
+ if (!o.type("FIXED_LINE")) return r(n, "MOBILE", a, o);
14
+ var l = o.type("MOBILE");
15
+ l && (c = t(c, l.possibleLengths()));
16
+ } else if (i && !s) return "INVALID_LENGTH";
17
+ var u = n.length, d = c[0];
18
+ return d === u ? "IS_POSSIBLE" : d > u ? "TOO_SHORT" : c[c.length - 1] < u ? "TOO_LONG" : c.indexOf(u, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
5
19
  }
6
20
  //#endregion
7
- export { t as default };
21
+ export { r as checkNumberLengthForType, n as default };
8
22
 
9
23
  //# sourceMappingURL=index314.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index314.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js"],"sourcesContent":["var COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/;\nexport default function isCountryCode(string) {\n return COUNTRY_CODE_REG_EXP.test(string);\n}\n//# sourceMappingURL=isCountryCode.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAuB;AAC3B,SAAwB,EAAc,GAAQ;CAC5C,OAAO,EAAqB,KAAK,CAAM;AACzC"}
1
+ {"version":3,"file":"index314.js","names":["Metadata","mergeArrays","checkNumberLength","checkNumberLengthForType","nationalNumber","country","metadata","type_info","type","possible_lengths","mobile_type","actual_length","minimum_length"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport mergeArrays from './mergeArrays.js';\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific country.\n * @param {string} nationalNumber\n * @param {string?} country — Specific country to use rather than the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string}\n */\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n return checkNumberLengthForType(nationalNumber, undefined, country, metadata);\n}\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific phone number type or a specific country.\n * @param {string} nationalNumber\n * @param {string?} type — Specific phone number type.\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string} See the README on `validatePhoneNumberLength()` function, with an addition of a special case: when phone numbers of type `type` aren't possible in the telephone numbering plan, it will return \"INVALID_LENGTH\".\n */\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, type, country, metadata) {\n if (country) {\n // If a specific `country` is specified, re-create a metadata instance with it.\n metadata = new Metadata(metadata.metadata);\n metadata.selectNumberingPlan(country);\n }\n var type_info = metadata.type(type);\n\n // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();\n // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', country, metadata);\n }\n var mobile_type = metadata.type('MOBILE');\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());\n // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n }\n // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n var actual_length = nationalNumber.length;\n\n // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n }\n\n // We skip the first element since we've already checked it.\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n//# sourceMappingURL=checkNumberLength.js.map"],"ignoreList":[0],"mappings":";;;AAWA,SAAwBE,EAAkB,GAAgB,GAAS,GAAU;CAC3E,OAAOC,EAAyBC,GAAgB,KAAA,GAAWC,GAASC,CAAQ;AAC9E;AAqCA,SAAgBH,EAAyB,GAAgB,GAAM,GAAS,GAAU;CAChF,AAAIE,MAEF,IAAW,IAAIL,EAASM,EAAS,QAAQ,GACzCA,EAAS,oBAAoBD,CAAO;CAEtC,IAAIE,IAAYD,EAAS,KAAKE,CAAI,GAS9BC,IAAmBF,KAAaA,EAAU,gBAAgB,KAAKD,EAAS,gBAAgB;CAI5F,IAAI,CAACG,GACH,OAAO;CAET,IAAID,MAAS,wBAAwB;;EAGnC,IAAI,CAACF,EAAS,KAAK,YAAY,GAG7B,OAAOH,EAAyBC,GAAgB,UAAUC,GAASC,CAAQ;EAE7E,IAAII,IAAcJ,EAAS,KAAK,QAAQ;EACxC,AAAII,MAMF,IAAmBT,EAAYQ,GAAkBC,EAAY,gBAAgB,CAAC;CAWlF,OAEK,IAAIF,KAAQ,CAACD,GAChB,OAAO;CAET,IAAII,IAAgBP,EAAe,QAU/BQ,IAAiBH,EAAiB;CAYtC,OAXIG,MAAmBD,IACd,gBAELC,IAAiBD,IACZ,cAELF,EAAiBA,EAAiB,SAAS,KAAKE,IAC3C,aAIFF,EAAiB,QAAQE,GAAe,CAAC,KAAK,IAAI,gBAAgB;AAC3E"}
package/dist/index315.js CHANGED
@@ -1,13 +1,34 @@
1
- import e from "./index307.js";
1
+ import e from "./index312.js";
2
2
  import t from "./index314.js";
3
- function n(n, r) {
4
- var i, a, o = new e(r);
5
- return t(n) ? (i = n, o.selectNumberingPlan(i), a = o.countryCallingCode()) : a = n, {
6
- country: i,
7
- callingCode: a
8
- };
3
+ //#region ../../node_modules/libphonenumber-js/es6/isPossible.js
4
+ function n(t, n, i) {
5
+ /* istanbul ignore if */
6
+ n === void 0 && (n = {});
7
+ var a = new e(i);
8
+ if (n.v2) {
9
+ if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
10
+ a.selectNumberingPlan(t.country || t.countryCallingCode);
11
+ } else {
12
+ if (!t.phone) return !1;
13
+ if (t.country) {
14
+ if (!a.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
15
+ a.selectNumberingPlan(t.country);
16
+ } else {
17
+ if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
18
+ a.selectNumberingPlan(t.countryCallingCode);
19
+ }
20
+ }
21
+ if (a.possibleLengths()) return r(t.phone || t.nationalNumber, a);
22
+ if (t.countryCallingCode && a.isNonGeographicCallingCode(t.countryCallingCode)) return !0;
23
+ throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
24
+ }
25
+ function r(e, n) {
26
+ switch (t(e, void 0, n)) {
27
+ case "IS_POSSIBLE": return !0;
28
+ default: return !1;
29
+ }
9
30
  }
10
31
  //#endregion
11
- export { n as default };
32
+ export { n as default, r as isPossibleNumber };
12
33
 
13
34
  //# sourceMappingURL=index315.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index315.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport isCountryCode from './isCountryCode.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n var country;\n var callingCode;\n var metadata = new Metadata(metadataJson);\n // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n if (isCountryCode(countryOrCallingCode)) {\n country = countryOrCallingCode;\n metadata.selectNumberingPlan(country);\n callingCode = metadata.countryCallingCode();\n } else {\n callingCode = countryOrCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n country = '001';\n }\n }\n }\n return {\n country: country,\n callingCode: callingCode\n };\n}\n//# sourceMappingURL=getCountryAndCallingCodeFromOneOfThem.js.map"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAwB,EAAsC,GAAsB,GAAc;CAChG,IAAI,GACA,GACA,IAAW,IAAI,EAAS,CAAY;CAgBxC,OAbI,EAAc,CAAoB,KACpC,IAAU,GACV,EAAS,oBAAoB,CAAO,GACpC,IAAc,EAAS,mBAAmB,KAE1C,IAAc,GAQT;EACI;EACI;CACf;AACF"}
1
+ {"version":3,"file":"index315.js","names":["Metadata","checkNumberLength","isPossiblePhoneNumber","options","metadata","metadataJson","input","isPossibleNumber","nationalNumber"],"sources":["../../../node_modules/libphonenumber-js/es6/isPossible.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n\n/**\n * Checks if a phone number is \"possible\" (basically just checks its length).\n *\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {string}\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n var metadata = new Metadata(metadataJson);\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n }\n\n // Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n // So `isPossibleNumber()` function is supported only for non-legacy metadata.\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n }\n\n // There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n // where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n // After that, the bug was noticed and fixed.\n // So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n // The reason is that the bug was noticed relatively quickly (within a day or so)\n // and it's unlikely that anyone generated their custom metadata in that short time span.\n // And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n return true;\n }\n\n // `isPossibleNumber()` function is not supported.\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\n * Tells if a given national (significant) number is possible\n * @param {string} nationalNumber\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\n * @returns {boolean}\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n default:\n return false;\n }\n}\n//# sourceMappingURL=isPossible.js.map"],"ignoreList":[0],"mappings":";;;AAgBA,SAAwBE,EAAsB,GAAO,GAAS,GAAc;;CAE1E,AAAIC,MAAY,KAAA,MACd,IAAU,CAAC;CAEb,IAAIC,IAAW,IAAIJ,EAASK,CAAY;CACxC,IAAIF,EAAQ,IAAI;EACd,IAAI,CAACG,EAAM,oBACT,MAAU,MAAM,oCAAoC;EAEtD,EAAS,oBAAoBA,EAAM,WAAWA,EAAM,kBAAkB;CACxE,OAAO;EACL,IAAI,CAACA,EAAM,OACT,OAAO;EAET,IAAIA,EAAM,SAAS;GACjB,IAAI,CAACF,EAAS,WAAWE,EAAM,OAAO,GACpC,MAAU,MAAM,oBAA2BA,EAAM,SAAQ;GAE3D,EAAS,oBAAoBA,EAAM,OAAO;EAC5C,OAAO;GACL,IAAI,CAACA,EAAM,oBACT,MAAU,MAAM,oCAAoC;GAEtD,EAAS,oBAAoBA,EAAM,kBAAkB;EACvD;CACF;CAIA,IAAIF,EAAS,gBAAgB,GAC3B,OAAOG,EAAiBD,EAAM,SAASA,EAAM,gBAAgBF,CAAQ;CAUvE,IAAIE,EAAM,sBAAsBF,EAAS,2BAA2BE,EAAM,kBAAkB,GAC1F,OAAO;CAIT,MAAU,MAAM,kGAAgG;AAClH;AAQA,SAAgBC,EAAiB,GAAgB,GAAU;CACzD,QAAQN,EAAkBO,GAAgB,KAAA,GAAWJ,CAAQ,GAA7D;EACE,KAAK,eACH,OAAO;EAKT,SACE,OAAO;CACX;AACF"}
package/dist/index316.js CHANGED
@@ -1,16 +1,8 @@
1
- import e from "./index307.js";
2
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
3
- function t(t, r, i) {
4
- var a = new e(i).getCountryCodesForCallingCode(t);
5
- return a ? a.filter(function(e) {
6
- return n(r, e, i);
7
- }) : [];
8
- }
9
- function n(t, n, r) {
10
- var i = new e(r);
11
- return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
1
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
2
+ function e(e, t) {
3
+ return e ||= "", RegExp("^(?:" + t + ")$").test(e);
12
4
  }
13
5
  //#endregion
14
- export { t as default };
6
+ export { e as default };
15
7
 
16
8
  //# sourceMappingURL=index316.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index316.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\n * Returns a list of countries that the phone number could potentially belong to.\n * @param {string} callingCode — Calling code.\n * @param {string} nationalNumber — National (significant) number.\n * @param {object} metadata — Metadata.\n * @return {string[]} A list of possible countries.\n */\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return [];\n }\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country);\n return metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0;\n}\n//# sourceMappingURL=getPossibleCountriesForNumber.js.map"],"x_google_ignoreList":[0],"mappings":";;AASA,SAAwB,EAA8B,GAAa,GAAgB,GAAU;CAE3F,IAAI,IAAoB,IADJ,EAAS,CACG,CAAC,CAAC,8BAA8B,CAAW;CAI3E,OAHK,IAGE,EAAkB,OAAO,SAAU,GAAS;EACjD,OAAO,EAAmC,GAAgB,GAAS,CAAQ;CAC7E,CAAC,IAJQ,CAAC;AAKZ;AACA,SAAS,EAAmC,GAAgB,GAAS,GAAc;CACjF,IAAI,IAAW,IAAI,EAAS,CAAY;CAExC,OADA,EAAS,oBAAoB,CAAO,GAC7B,EAAS,cAAc,gBAAgB,CAAC,CAAC,QAAQ,EAAe,MAAM,KAAK;AACpF"}
1
+ {"version":3,"file":"index316.js","names":["matchesEntirely","regularExpressionText","text"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\n * Checks whether the entire input sequence can be matched\n * against the regular expression.\n * @return {boolean}\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n // If the assigning of the `''` default value is moved to the arguments above,\n // the code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regularExpressionText + ')$').test(text);\n}\n//# sourceMappingURL=matchesEntirely.js.map"],"ignoreList":[0],"mappings":";AAKA,SAAwBA,EAAgB,GAAM,GAAuB;CAInE,OADA,MAAe,IACJ,OAAO,SAASC,IAAwB,IAAI,CAAC,CAAC,KAAKC,CAAI;AACpE"}
package/dist/index317.js CHANGED
@@ -1,6 +1,63 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/constants.js
2
- var e = "0-90-9٠-٩۰-۹", t = "-‐-―−ー-", n = "//", r = "..", i = " \xA0­​⁠ ", a = `${t}${n}${r}${i}()()[]\\[\\]~⁓∼~`, o = "++";
1
+ import e from "./index312.js";
2
+ import t from "./index316.js";
3
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js
4
+ function n(e, t) {
5
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
+ if (n) return (n = n.call(e)).next.bind(n);
7
+ if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
+ n && (e = n);
9
+ var i = 0;
10
+ return function() {
11
+ return i >= e.length ? { done: !0 } : {
12
+ done: !1,
13
+ value: e[i++]
14
+ };
15
+ };
16
+ }
17
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
+ }
19
+ function r(e, t) {
20
+ if (e) {
21
+ if (typeof e == "string") return i(e, t);
22
+ var n = {}.toString.call(e).slice(8, -1);
23
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
24
+ }
25
+ }
26
+ function i(e, t) {
27
+ (t == null || t > e.length) && (t = e.length);
28
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
+ return r;
30
+ }
31
+ var a = [
32
+ "MOBILE",
33
+ "PREMIUM_RATE",
34
+ "TOLL_FREE",
35
+ "SHARED_COST",
36
+ "VOIP",
37
+ "PERSONAL_NUMBER",
38
+ "PAGER",
39
+ "UAN",
40
+ "VOICEMAIL"
41
+ ];
42
+ function o(r, i, o) {
43
+ if (i ||= {}, r.country || r.countryCallingCode) {
44
+ var c = new e(o);
45
+ c.selectNumberingPlan(r.country || r.countryCallingCode);
46
+ var l = i.v2 ? r.nationalNumber : r.phone;
47
+ if (t(l, c.nationalNumberPattern())) {
48
+ if (s(l, "FIXED_LINE", c)) return c.type("MOBILE") && c.type("MOBILE").pattern() === "" || !c.type("MOBILE") || s(l, "MOBILE", c) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
49
+ for (var u = n(a), d; !(d = u()).done;) {
50
+ var f = d.value;
51
+ if (s(l, f, c)) return f;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ function s(e, n, r) {
57
+ var i = r.type(n);
58
+ return !i || !i.pattern() || i.possibleLengths() && i.possibleLengths().indexOf(e.length) < 0 ? !1 : t(e, i.pattern());
59
+ }
3
60
  //#endregion
4
- export { o as PLUS_CHARS, e as VALID_DIGITS, a as VALID_PUNCTUATION, i as WHITESPACE };
61
+ export { o as default, s as isNumberTypeEqualTo };
5
62
 
6
63
  //# sourceMappingURL=index317.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index317.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/constants.js"],"sourcesContent":["// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2;\n\n// The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\nexport var MAX_LENGTH_FOR_NSN = 17;\n\n// The maximum length of the country calling code.\nexport var MAX_LENGTH_COUNTRY_CODE = 3;\n\n// Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\";\n\n// `DASHES` will be right after the opening square bracket of the \"character class\"\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\";\n// export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\";\n\n// Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\";\n// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')\n//# sourceMappingURL=constants.js.map"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAW,IAAe,gBAGtB,IAAS,WACT,IAAU,MACV,IAAO,MACA,IAAa,aASb,IAAoB,GAAU,IAAe,IAAgB,IAAa,qBAC1E,IAAa"}
1
+ {"version":3,"file":"index317.js","names":["Metadata","matchesEntirely","_createForOfIteratorHelperLoose","t","r","_unsupportedIterableToArray","e","o","_arrayLikeToArray","a","n","NON_FIXED_LINE_PHONE_TYPES","getNumberType","input","metadata","metadataJson","nationalNumber","options","isNumberTypeEqualTo","_iterator","_step","type","typeDefinition"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL'];\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n\n // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n // Is this national number even valid for this country\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n }\n\n // Is it fixed line number\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n /* istanbul ignore if */\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n return 'FIXED_LINE';\n }\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n var typeDefinition = metadata.type(type);\n if (!typeDefinition || !typeDefinition.pattern()) {\n return false;\n }\n\n // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n return matchesEntirely(nationalNumber, typeDefinition.pattern());\n}\n//# sourceMappingURL=getNumberType.js.map"],"ignoreList":[0],"mappings":";;;AAAA,SAASE,EAAgC,GAAG,GAAG;CAAE,IAAIC,IAAmB,OAAO,SAAtB,OAAgCC,EAAE,OAAO,aAAaA,EAAE;CAAe,IAAID,GAAG,QAAQ,IAAIA,EAAE,KAAKC,CAAC,EAAA,CAAG,KAAK,KAAKD,CAAC;CAAG,IAAI,MAAM,QAAQC,CAAC,MAAM,IAAIC,EAA4BD,CAAC,MAAME,KAAKF,KAAiB,OAAOA,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAID;EAAI,IAAII,IAAI;EAAG,OAAO,WAAY;GAAE,OAAOA,KAAKH,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAOA,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAASC,EAA4B,GAAG,GAAG;CAAE,IAAID,GAAG;EAAE,IAAgB,OAAOA,KAAnB,UAAsB,OAAOI,EAAkBJ,GAAGK,CAAC;EAAG,IAAIN,IAAI,CAAC,EAAE,SAAS,KAAKC,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoBD,MAAb,YAAkBC,EAAE,gBAAgB,IAAIA,EAAE,YAAY,OAAiBD,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKC,CAAC,IAAoBD,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAIK,EAAkBJ,GAAGK,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAASD,EAAkB,GAAG,GAAG;CAAE,CAASC,KAAR,QAAaA,IAAIL,EAAE,YAAY,IAAIA,EAAE;CAAS,KAAK,IAAIE,IAAI,GAAGI,IAAI,MAAMD,CAAC,GAAGH,IAAIG,GAAG,KAAK,EAAEH,KAAKF,EAAEE;CAAI,OAAOI;AAAG;AAGnJ,IAAIC,IAA6B;CAAC;CAAU;CAAgB;CAAa;CAAe;CAAQ;CAAmB;CAAS;CAAO;AAAW;AAG9I,SAAwBC,EAAc,GAAO,GAAS,GAAc;CAQlE,IALA,MAAqB,CAAC,GAKjBC,EAAM,WAAYA,EAAM,oBAG7B;MAAIC,IAAW,IAAId,EAASe,CAAY;EACxC,EAAS,oBAAoBF,EAAM,WAAWA,EAAM,kBAAkB;EACtE,IAAIG,IAAiBC,EAAQ,KAAKJ,EAAM,iBAAiBA,EAAM;EAM/D,IAAKZ,EAAgBe,GAAgBF,EAAS,sBAAsB,CAAC,GAKrE;OAAII,EAAoBF,GAAgB,cAAcF,CAAQ,GA0B5D,OArBIA,EAAS,KAAK,QAAQ,KAAKA,EAAS,KAAK,QAAQ,CAAC,CAAC,QAAQ,MAAM,MAWjE,CAACA,EAAS,KAAK,QAAQ,KAOvBI,EAAoBF,GAAgB,UAAUF,CAAQ,IACjD,yBAEF;GAET,KAAK,IAAIK,IAAYjB,EAAgCS,CAA0B,GAAGS,GAAO,EAAE,IAAQD,EAAU,EAAA,CAAG,OAAO;IACrH,IAAIE,IAAOD,EAAM;IACjB,IAAIF,EAAoBF,GAAgBK,GAAMP,CAAQ,GACpD,OAAOO;GAEX;EANA;CAxCwC;AA+C1C;AACA,SAAgBH,EAAoB,GAAgB,GAAM,GAAU;CAClE,IAAII,IAAiBR,EAAS,KAAKO,CAAI;CAcvC,OAbI,CAACC,KAAkB,CAACA,EAAe,QAAQ,KAU3CA,EAAe,gBAAgB,KAAKA,EAAe,gBAAgB,CAAC,CAAC,QAAQN,EAAe,MAAM,IAAI,IACjG,KAEFf,EAAgBe,GAAgBM,EAAe,QAAQ,CAAC;AACjE"}
package/dist/index318.js CHANGED
@@ -1,18 +1,13 @@
1
- import e from "./index307.js";
2
- import { VALID_DIGITS as t } from "./index317.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js
4
- var n = RegExp("([" + t + "])");
5
- function r(t, r, i, a) {
6
- if (r) {
7
- var o = new e(a);
8
- o.selectNumberingPlan(r || i);
9
- var s = new RegExp(o.IDDPrefix());
10
- if (t.search(s) === 0) {
11
- t = t.slice(t.match(s)[0].length);
12
- var c = t.match(n);
13
- if (!(c && c[1] != null && c[1].length > 0 && c[1] === "0")) return t;
14
- }
15
- }
1
+ import e from "./index312.js";
2
+ import t from "./index316.js";
3
+ import n from "./index317.js";
4
+ //#region ../../node_modules/libphonenumber-js/es6/isValid.js
5
+ function r(r, i, a) {
6
+ i ||= {};
7
+ var o = new e(a);
8
+ if (o.selectNumberingPlan(r.country || r.countryCallingCode), o.hasTypes()) return n(r, i, o.metadata) !== void 0;
9
+ var s = i.v2 ? r.nationalNumber : r.phone;
10
+ return t(s, o.nationalNumberPattern());
16
11
  }
17
12
  //#endregion
18
13
  export { r as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index318.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadataJson) {\n if (!country) {\n return;\n }\n\n // Get the IDD prefix pattern.\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country || callingCode);\n var IDDPrefixPattern = new RegExp(metadata.IDDPrefix());\n\n // Check if the number is IDD-prefixed.\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n }\n\n // Strip IDD prefix.\n number = number.slice(number.match(IDDPrefixPattern)[0].length);\n\n // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n return number;\n}\n//# sourceMappingURL=stripIddPrefix.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAI,IAA8B,OAAO,OAAO,IAAe,IAAI;AACnE,SAAwB,EAAe,GAAQ,GAAS,GAAa,GAAc;CAC5E,OAKL;MAAI,IAAW,IAAI,EAAS,CAAY;EACxC,EAAS,oBAAoB,KAAW,CAAW;EACnD,IAAI,IAAmB,IAAI,OAAO,EAAS,UAAU,CAAC;EAGlD,MAAO,OAAO,CAAgB,MAAM,GAKxC;OAAS,EAAO,MAAM,EAAO,MAAM,CAAgB,CAAC,CAAC,EAAE,CAAC,MAAM;GAM9D,IAAI,IAAgB,EAAO,MAAM,CAAuB;SACpD,KAAiB,EAAc,MAAM,QAAQ,EAAc,EAAE,CAAC,SAAS,KACrE,EAAc,OAAO,MAI3B,OAAO;EAZuD;CAVtB;AAuB1C"}
1
+ {"version":3,"file":"index318.js","names":["Metadata","matchesEntirely","getNumberType","isValidNumber","metadata","metadataJson","input","options","nationalNumber"],"sources":["../../../node_modules/libphonenumber-js/es6/isValid.js"],"sourcesContent":["import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n\n/**\n * Checks if a given phone number is valid.\n *\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * If the `number` is a string, it will be parsed to an object,\n * but only if it contains only valid phone number characters (including punctuation).\n * If the `number` is an object, it is used as is.\n *\n * The optional `defaultCountry` argument is the default country.\n * I.e. it does not restrict to just that country,\n * e.g. in those cases where several countries share\n * the same phone numbering rules (NANPA, Britain, etc).\n * For example, even though the number `07624 369230`\n * belongs to the Isle of Man (\"IM\" country code)\n * calling `isValidNumber('07624369230', 'GB', metadata)`\n * still returns `true` because the country is not restricted to `GB`,\n * it's just that `GB` is the default one for the phone numbering rules.\n * For restricting the country see `isValidNumberForRegion()`\n * though restricting a country might not be a good idea.\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\n *\n * Examples:\n *\n * ```js\n * isValidNumber('+78005553535', metadata)\n * isValidNumber('8005553535', 'RU', metadata)\n * isValidNumber('88005553535', 'RU', metadata)\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\n * ```\n */\nexport default function isValidNumber(input, options, metadataJson) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(input.country || input.countryCallingCode);\n\n // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n }\n\n // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n//# sourceMappingURL=isValid.js.map"],"ignoreList":[0],"mappings":";;;;AAsCA,SAAwBG,EAAc,GAAO,GAAS,GAAc;CAGlE,MAAqB,CAAC;CACtB,IAAIC,IAAW,IAAIJ,EAASK,CAAY;CAKxC,IAJAD,EAAS,oBAAoBE,EAAM,WAAWA,EAAM,kBAAkB,GAIlEF,EAAS,SAAS,GACpB,OAAOF,EAAcI,GAAOC,GAASH,EAAS,QAAQ,MAAM,KAAA;CAK9D,IAAII,IAAiBD,EAAQ,KAAKD,EAAM,iBAAiBA,EAAM;CAC/D,OAAOL,EAAgBO,GAAgBJ,EAAS,sBAAsB,CAAC;AACzE"}
package/dist/index319.js CHANGED
@@ -1,29 +1,9 @@
1
- //#region ../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
2
- function e(e, t) {
3
- if (e && t.numberingPlan.nationalPrefixForParsing()) {
4
- var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
5
- if (r) {
6
- var i, a, o = r.length - 1, s = o > 0 && r[o];
7
- if (t.nationalPrefixTransformRule() && s) i = e.replace(n, t.nationalPrefixTransformRule()), o > 1 && (a = r[1]);
8
- else {
9
- var c = r[0];
10
- i = e.slice(c.length), s && (a = r[1]);
11
- }
12
- var l;
13
- if (s) {
14
- var u = e.indexOf(r[1]);
15
- e.slice(0, u) === t.numberingPlan.nationalPrefix() && (l = t.numberingPlan.nationalPrefix());
16
- } else l = r[0];
17
- return {
18
- nationalNumber: i,
19
- nationalPrefix: l,
20
- carrierCode: a
21
- };
22
- }
23
- }
24
- return { nationalNumber: e };
1
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
2
+ var e = /^[A-Z]{2}$/;
3
+ function t(t) {
4
+ return e.test(t);
25
5
  }
26
6
  //#endregion
27
- export { e as default };
7
+ export { t as default };
28
8
 
29
9
  //# sourceMappingURL=index319.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index319.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\n * Strips any national prefix (such as 0, 1) present in a\n * (possibly incomplete) number provided.\n * \"Carrier codes\" are only used in Colombia and Brazil,\n * and only when dialing within those countries from a mobile phone to a fixed line number.\n * Sometimes it won't actually strip national prefix\n * and will instead prepend some digits to the `number`:\n * for example, when number `2345678` is passed with `VI` country selected,\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\n * @param {string} number — National number digits.\n * @param {object} metadata — Metadata with country selected.\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"x_google_ignoreList":[0],"mappings":";AAaA,SAAwB,EAAkD,GAAQ,GAAU;CAC1F,IAAI,KAAU,EAAS,cAAc,yBAAyB,GAAG;EAI/D,IAAI,IAAoB,OAAO,SAAS,EAAS,cAAc,yBAAyB,IAAI,GAAG,GAC3F,IAAc,EAAc,KAAK,CAAM;EAC3C,IAAI,GAAa;GACf,IAAI,GACA,GAiBA,IAAsB,EAAY,SAAS,GAC3C,IAAoB,IAAsB,KAAK,EAAY;GAC/D,IAAI,EAAS,4BAA4B,KAAK,GAI5C,AAHA,IAAiB,EAAO,QAAQ,GAAe,EAAS,4BAA4B,CAAC,GAGjF,IAAsB,MACxB,IAAc,EAAY;QASzB;IAMH,IAAI,IAA6B,EAAY;IAI7C,AAHA,IAAiB,EAAO,MAAM,EAA2B,MAAM,GAG3D,MACF,IAAc,EAAY;GAE9B;GAMA,IAAI;GACJ,IAAI,GAAmB;IACrB,IAAI,IAA0C,EAAO,QAAQ,EAAY,EAAE;IAQ3E,AAP6B,EAAO,MAAM,GAAG,CAOpB,MAAM,EAAS,cAAc,eAAe,MACnE,IAAiB,EAAS,cAAc,eAAe;GAE3D,OACE,IAAiB,EAAY;GAE/B,OAAO;IACW;IACA;IACH;GACf;EACF;CACF;CACA,OAAO,EACL,gBAAgB,EAClB;AACF"}
1
+ {"version":3,"file":"index319.js","names":["COUNTRY_CODE_REG_EXP","isCountryCode","string"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/isCountryCode.js"],"sourcesContent":["var COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/;\nexport default function isCountryCode(string) {\n return COUNTRY_CODE_REG_EXP.test(string);\n}\n//# sourceMappingURL=isCountryCode.js.map"],"ignoreList":[0],"mappings":";AAAA,IAAIA,IAAuB;AAC3B,SAAwBC,EAAc,GAAQ;CAC5C,OAAOD,EAAqB,KAAKE,CAAM;AACzC"}
package/dist/index32.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import e from "./index25.js";
2
- //#region ../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
3
- function t(t) {
4
- let n = e(t), r = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
5
- return r.setUTCFullYear(n.getFullYear()), t - +r;
2
+ //#region ../../node_modules/date-fns/startOfDay.js
3
+ function t(t, n) {
4
+ let r = e(t, n?.in);
5
+ return r.setHours(0, 0, 0, 0), r;
6
6
  }
7
7
  //#endregion
8
- export { t as getTimezoneOffsetInMilliseconds };
8
+ export { t as default, t as startOfDay };
9
9
 
10
10
  //# sourceMappingURL=index32.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index32.js","names":[],"sources":["../../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js"],"sourcesContent":["import { toDate } from \"../toDate.js\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAaA,SAAgB,EAAgC,GAAM;CACpD,IAAM,IAAQ,EAAO,CAAI,GACnB,IAAU,IAAI,KAClB,KAAK,IACH,EAAM,YAAY,GAClB,EAAM,SAAS,GACf,EAAM,QAAQ,GACd,EAAM,SAAS,GACf,EAAM,WAAW,GACjB,EAAM,WAAW,GACjB,EAAM,gBAAgB,CACxB,CACF;CAEA,OADA,EAAQ,eAAe,EAAM,YAAY,CAAC,GAClC,IAAO,CAAC;AAClB"}
1
+ {"version":3,"file":"index32.js","names":["toDate","startOfDay","_date","date","options"],"sources":["../../../node_modules/date-fns/startOfDay.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n"],"ignoreList":[0],"mappings":";;AA4BA,SAAgBC,EAAW,GAAM,GAAS;CACxC,IAAMC,IAAQF,EAAOG,GAAMC,GAAS,EAAE;CAEtC,OADAF,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT"}
package/dist/index320.js CHANGED
@@ -1,45 +1,13 @@
1
- import e from "./index307.js";
2
- import t from "./index312.js";
3
- //#region ../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
4
- function n(e, t) {
5
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
6
- if (n) return (n = n.call(e)).next.bind(n);
7
- if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
8
- n && (e = n);
9
- var i = 0;
10
- return function() {
11
- return i >= e.length ? { done: !0 } : {
12
- done: !1,
13
- value: e[i++]
14
- };
15
- };
16
- }
17
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
- }
19
- function r(e, t) {
20
- if (e) {
21
- if (typeof e == "string") return i(e, t);
22
- var n = {}.toString.call(e).slice(8, -1);
23
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
24
- }
25
- }
26
- function i(e, t) {
27
- (t == null || t > e.length) && (t = e.length);
28
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
29
- return r;
30
- }
31
- function a(r, i, a) {
32
- for (var o = new e(a), s = n(i), c; !(c = s()).done;) {
33
- var l = c.value;
34
- if (o.selectNumberingPlan(l), o.leadingDigits()) {
35
- if (r && r.search(o.leadingDigits()) === 0) return l;
36
- } else if (t({
37
- phone: r,
38
- country: l
39
- }, void 0, o.metadata)) return l;
40
- }
1
+ import e from "./index312.js";
2
+ import t from "./index319.js";
3
+ function n(n, r) {
4
+ var i, a, o = new e(r);
5
+ return t(n) ? (i = n, o.selectNumberingPlan(i), a = o.countryCallingCode()) : a = n, {
6
+ country: i,
7
+ callingCode: a
8
+ };
41
9
  }
42
10
  //#endregion
43
- export { a as default };
11
+ export { n as default };
44
12
 
45
13
  //# sourceMappingURL=index320.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index320.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport Metadata from '../metadata.js';\nimport getNumberType from './getNumberType.js';\n\n/**\n * Returns the exact country that a given national (significant) number belongs to\n * in case of ambiguity, i.e. when multiple countries share the same \"country calling code\".\n * @param {string} [nationalNumber]\n * @param {string[]} countries — A list of countries that share the same calling code.\n * @param {object} metadata — Metadata JSON.\n * @returns {string?} Returns the exact country this number belongs to, or `undefined` if the exact country couldn't be determined.\n */\nexport default function getCountryByNationalNumber(nationalNumber, countries, metadataJson) {\n // Create a new `metadata` instance because it will be selecting a `country`.\n var metadata = new Metadata(metadataJson);\n\n // const matchingCountries = []\n\n for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;) {\n var country = _step.value;\n metadata.selectNumberingPlan(country);\n // \"Leading digits\" patterns are only defined for about 20% of all countries.\n // By definition, matching \"leading digits\" is a sufficient but not a necessary\n // condition for a phone number to belong to a country.\n // The point of \"leading digits\" check is that it's the fastest one to get a match.\n // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n // I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n // because of the intended use of that feature.\n if (metadata.leadingDigits()) {\n if (nationalNumber && nationalNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n }\n // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalNumber,\n country: country\n }, undefined, metadata.metadata)) {\n // When multiple countries share the same \"country calling code\",\n // type patterns aren't guaranteed to be unique among them.\n // For example, both `US` and `CA` have the same pattern for `toll_free` numbers.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417147572\n //\n // That means that this `if` condition could be `true` for multiple countries from the list.\n // Currently, it just returns the first one, which is also the \"main\" country for the \"country calling code\".\n // In an example with `toll_free` numbers above, `\"US\"` would be returned even though\n // it could as well be `\"CA\"`.\n //\n // There was also a time when this attempted to be overly smart\n // and kept track of all such multiple matching countries\n // and then picked the one that matched the `defaultCountry`, if provided.\n // For example, with `toll_free` numbers above, and with `defaultCountry: \"CA\"`,\n // it would've returned `\"CA\"` instead of `\"US\"`.\n // Later it turned out that such \"overly smart\" behavior turned out to be just confusing,\n // so this \"overly smart\" country detection was reverted to returning the \"main\" country\n // for the \"country calling code\".\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/154\n //\n return country;\n //\n // The \"overly smart\" behavior code:\n //\n // if (defaultCountry) {\n // \tif (country === defaultCountry) {\n // \t\treturn country\n // \t} else {\n // \t\tmatchingCountries.push(country)\n // \t}\n // } else {\n // \treturn country\n // }\n }\n }\n\n // // Return the first (\"main\") one of the `matchingCountries`.\n // if (matchingCountries.length > 0) {\n // \treturn matchingCountries[0]\n // }\n}\n//# sourceMappingURL=getCountryByNationalNumber.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAAA,SAAS,EAAgC,GAAG,GAAG;CAAE,IAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;CAAe,IAAI,GAAG,QAAQ,IAAI,EAAE,KAAK,CAAC,EAAA,CAAG,KAAK,KAAK,CAAC;CAAG,IAAI,MAAM,QAAQ,CAAC,MAAM,IAAI,EAA4B,CAAC,MAAM,KAAK,KAAiB,OAAO,EAAE,UAArB,UAA6B;EAAE,MAAM,IAAI;EAAI,IAAI,IAAI;EAAG,OAAO,WAAY;GAAE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI;IAAE,MAAM,CAAC;IAAG,OAAO,EAAE;GAAK;EAAG;CAAG;CAAE,MAAU,UAAU,uIAAuI;AAAG;AACziB,SAAS,EAA4B,GAAG,GAAG;CAAE,IAAI,GAAG;EAAE,IAAgB,OAAO,KAAnB,UAAsB,OAAO,EAAkB,GAAG,CAAC;EAAG,IAAI,IAAI,CAAC,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE;EAAG,OAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,CAAC,IAAoB,MAAhB,eAAqB,2CAA2C,KAAK,CAAC,IAAI,EAAkB,GAAG,CAAC,IAAI,KAAK;CAAG;AAAE;AACzX,SAAS,EAAkB,GAAG,GAAG;CAAE,CAAS,KAAR,QAAa,IAAI,EAAE,YAAY,IAAI,EAAE;CAAS,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,EAAE,KAAK,EAAE;CAAI,OAAO;AAAG;AAYnJ,SAAwB,EAA2B,GAAgB,GAAW,GAAc;CAM1F,KAAK,IAJD,IAAW,IAAI,EAAS,CAAY,GAI/B,IAAY,EAAgC,CAAS,GAAG,GAAO,EAAE,IAAQ,EAAU,EAAA,CAAG,OAAO;EACpG,IAAI,IAAU,EAAM;EASpB,IARA,EAAS,oBAAoB,CAAO,GAQhC,EAAS,cAAc,GACrB;OAAA,KAAkB,EAAe,OAAO,EAAS,cAAc,CAAC,MAAM,GACxE,OAAO;EAAA,OAKN,IAAI,EAAc;GACrB,OAAO;GACE;EACX,GAAG,KAAA,GAAW,EAAS,QAAQ,GAqB7B,OAAO;CAcX;AAMF"}
1
+ {"version":3,"file":"index320.js","names":["Metadata","isCountryCode","getCountryAndCallingCodeFromOneOfThem","country","callingCode","metadata","metadataJson","countryOrCallingCode"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport isCountryCode from './isCountryCode.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n var country;\n var callingCode;\n var metadata = new Metadata(metadataJson);\n // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n if (isCountryCode(countryOrCallingCode)) {\n country = countryOrCallingCode;\n metadata.selectNumberingPlan(country);\n callingCode = metadata.countryCallingCode();\n } else {\n callingCode = countryOrCallingCode;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n country = '001';\n }\n }\n }\n return {\n country: country,\n callingCode: callingCode\n };\n}\n//# sourceMappingURL=getCountryAndCallingCodeFromOneOfThem.js.map"],"ignoreList":[0],"mappings":";;AAGA,SAAwBE,EAAsC,GAAsB,GAAc;CAChG,IAAIC,GACAC,GACAC,IAAW,IAAIL,EAASM,CAAY;CAgBxC,OAbIL,EAAcM,CAAoB,KACpC,IAAUA,GACVF,EAAS,oBAAoBF,CAAO,GACpC,IAAcE,EAAS,mBAAmB,KAE1C,IAAcE,GAQT;EACI;EACI;CACf;AACF"}
package/dist/index321.js CHANGED
@@ -1,7 +1,14 @@
1
- import e from "./index320.js";
2
- function t(t, n) {
3
- var r = n.nationalNumber, i = n.metadata, a = i.getCountryCodesForCallingCode(t);
4
- if (a) return a.length === 1 ? a[0] : e(r, a, i.metadata);
1
+ import e from "./index312.js";
2
+ //#region ../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
3
+ function t(t, r, i) {
4
+ var a = new e(i).getCountryCodesForCallingCode(t);
5
+ return a ? a.filter(function(e) {
6
+ return n(r, e, i);
7
+ }) : [];
8
+ }
9
+ function n(t, n, r) {
10
+ var i = new e(r);
11
+ return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
5
12
  }
6
13
  //#endregion
7
14
  export { t as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index321.js","names":[],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js"],"sourcesContent":["import getCountryByNationalNumber from './getCountryByNationalNumber.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n/**\n * Returns the exact country that a given national (significant) number belongs to\n * in case of ambiguity, i.e. when multiple countries share the same \"country calling code\".\n * @param {string} [callingCode]\n * @param {string} [options.nationalNumber] — National (significant) number.\n * @param {Metadata} options.metadata — Metadata instance.\n * @returns {string?} Returns the most suitable country for this calling code and national (significant) number.\n */\nexport default function getCountryByCallingCode(callingCode, _ref) {\n var nationalNumber = _ref.nationalNumber,\n metadata = _ref.metadata;\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n }\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return;\n }\n // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n return getCountryByNationalNumber(nationalNumber, possibleCountries, metadata.metadata);\n}\n//# sourceMappingURL=getCountryByCallingCode.js.map"],"x_google_ignoreList":[0],"mappings":";AAWA,SAAwB,EAAwB,GAAa,GAAM;CACjE,IAAI,IAAiB,EAAK,gBACxB,IAAW,EAAK,UAOd,IAAoB,EAAS,8BAA8B,CAAW;CACrE,OAQL,OAHI,EAAkB,WAAW,IACxB,EAAkB,KAEpB,EAA2B,GAAgB,GAAmB,EAAS,QAAQ;AACxF"}
1
+ {"version":3,"file":"index321.js","names":["Metadata","getPossibleCountriesForNumber","possibleCountries","metadata","callingCode","couldNationalNumberBelongToCountry","nationalNumber","country","metadataJson"],"sources":["../../../node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\n * Returns a list of countries that the phone number could potentially belong to.\n * @param {string} callingCode — Calling code.\n * @param {string} nationalNumber — National (significant) number.\n * @param {object} metadata — Metadata.\n * @return {string[]} A list of possible countries.\n */\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n if (!possibleCountries) {\n return [];\n }\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadataJson) {\n var metadata = new Metadata(metadataJson);\n metadata.selectNumberingPlan(country);\n return metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0;\n}\n//# sourceMappingURL=getPossibleCountriesForNumber.js.map"],"ignoreList":[0],"mappings":";;AASA,SAAwBC,EAA8B,GAAa,GAAgB,GAAU;CAE3F,IAAIC,IAAoB,IADJF,EAASG,CACG,CAAC,CAAC,8BAA8BC,CAAW;CAI3E,OAHKF,IAGEA,EAAkB,OAAO,SAAU,GAAS;EACjD,OAAOG,EAAmCC,GAAgBC,GAASJ,CAAQ;CAC7E,CAAC,IAJQ,CAAC;AAKZ;AACA,SAASE,EAAmC,GAAgB,GAAS,GAAc;CACjF,IAAIF,IAAW,IAAIH,EAASQ,CAAY;CAExC,OADAL,EAAS,oBAAoBI,CAAO,GAC7BJ,EAAS,cAAc,gBAAgB,CAAC,CAAC,QAAQG,EAAe,MAAM,KAAK;AACpF"}
package/dist/index322.js CHANGED
@@ -1,29 +1,6 @@
1
- import e from "./index309.js";
2
- import t from "./index311.js";
3
- import n from "./index319.js";
4
- import r from "./index321.js";
5
- //#region ../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
6
- function i(e, t, i) {
7
- var s = n(e, i), c = s.carrierCode, l = s.nationalNumber;
8
- return l !== e && (!a(e, l, i) || i.numberingPlan.possibleLengths() && (t ||= r(i.numberingPlan.callingCode(), {
9
- nationalNumber: l,
10
- metadata: i
11
- }), !o(l, t, i))) ? { nationalNumber: e } : {
12
- nationalNumber: l,
13
- carrierCode: c
14
- };
15
- }
16
- function a(e, n, r) {
17
- return !(t(e, r.nationalNumberPattern()) && !t(n, r.nationalNumberPattern()));
18
- }
19
- function o(t, n, r) {
20
- switch (e(t, n, r)) {
21
- case "TOO_SHORT":
22
- case "INVALID_LENGTH": return !1;
23
- default: return !0;
24
- }
25
- }
1
+ //#region ../../node_modules/libphonenumber-js/es6/constants.js
2
+ var e = "0-90-9٠-٩۰-۹", t = "-‐-―−ー-", n = "//", r = "..", i = " \xA0­​⁠ ", a = `${t}${n}${r}${i}()()[]\\[\\]~⁓∼~`, o = "++";
26
3
  //#endregion
27
- export { i as default };
4
+ export { o as PLUS_CHARS, e as VALID_DIGITS, a as VALID_PUNCTUATION, i as WHITESPACE };
28
5
 
29
6
  //# sourceMappingURL=index322.js.map