@rpcbase/ui 0.241.0 → 0.243.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 (774) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/country-options.d.ts +1 -1
  4. package/dist/components/PhoneNumberInput/country-options.d.ts.map +1 -1
  5. package/dist/index100.js +8 -4
  6. package/dist/index100.js.map +1 -1
  7. package/dist/index101.js +5 -8
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index102.js +4 -5
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index103.js +3 -3
  12. package/dist/index103.js.map +1 -1
  13. package/dist/index104.js +6 -4
  14. package/dist/index104.js.map +1 -1
  15. package/dist/index105.js +152 -6
  16. package/dist/index105.js.map +1 -1
  17. package/dist/index106.js +38 -144
  18. package/dist/index106.js.map +1 -1
  19. package/dist/index107.js +4 -39
  20. package/dist/index107.js.map +1 -1
  21. package/dist/index108.js +7 -4
  22. package/dist/index108.js.map +1 -1
  23. package/dist/index109.js +12 -6
  24. package/dist/index109.js.map +1 -1
  25. package/dist/index110.js +13 -13
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +7 -13
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +30 -6
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +10 -31
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +10 -10
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +8 -10
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +13 -8
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +101 -13
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +20 -102
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +54 -20
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index120.js +70 -51
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +9 -72
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +20 -9
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +16 -20
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +23 -16
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +6 -23
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +5 -6
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +23 -5
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +35 -24
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +14 -35
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index130.js +5 -16
  66. package/dist/index130.js.map +1 -1
  67. package/dist/index131.js +4 -6
  68. package/dist/index131.js.map +1 -1
  69. package/dist/index132.js +4 -4
  70. package/dist/index132.js.map +1 -1
  71. package/dist/index133.js +4 -4
  72. package/dist/index133.js.map +1 -1
  73. package/dist/index134.js +4 -4
  74. package/dist/index134.js.map +1 -1
  75. package/dist/index135.js +3 -4
  76. package/dist/index135.js.map +1 -1
  77. package/dist/index136.js +4 -3
  78. package/dist/index136.js.map +1 -1
  79. package/dist/index137.js +22 -7
  80. package/dist/index137.js.map +1 -1
  81. package/dist/index138.js +6 -24
  82. package/dist/index138.js.map +1 -1
  83. package/dist/index139.js +4 -7
  84. package/dist/index139.js.map +1 -1
  85. package/dist/index140.js +5 -6
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +3 -5
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +3 -3
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +4 -3
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +3 -4
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +4 -3
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +3 -4
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +3 -3
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +3 -3
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +5 -3
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +68 -5
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +2 -69
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +386 -2
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +201 -303
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +46 -247
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +42 -56
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +169 -46
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +96 -156
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +24 -109
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +8 -25
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index16.js +91 -91
  126. package/dist/index16.js.map +1 -1
  127. package/dist/index160.js +5 -8
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +5 -4
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +4 -5
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +487 -4
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +151 -428
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +13 -185
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js.map +1 -1
  140. package/dist/index167.js +6 -6
  141. package/dist/index167.js.map +1 -1
  142. package/dist/index168.js +3 -6
  143. package/dist/index168.js.map +1 -1
  144. package/dist/index169.js +15 -17
  145. package/dist/index169.js.map +1 -1
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +12 -9
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +10 -10
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js.map +1 -1
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +1 -1
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +13 -12
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +1 -1
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js.map +1 -1
  162. package/dist/index181.js +1 -1
  163. package/dist/index181.js.map +1 -1
  164. package/dist/index182.js +2 -2
  165. package/dist/index182.js.map +1 -1
  166. package/dist/index183.js +6 -8
  167. package/dist/index183.js.map +1 -1
  168. package/dist/index184.js +161 -246
  169. package/dist/index184.js.map +1 -1
  170. package/dist/index185.js +279 -4
  171. package/dist/index185.js.map +1 -1
  172. package/dist/index186.js +5 -28
  173. package/dist/index186.js.map +1 -1
  174. package/dist/index187.js +23 -122
  175. package/dist/index187.js.map +1 -1
  176. package/dist/index188.js +126 -5
  177. package/dist/index188.js.map +1 -1
  178. package/dist/index189.js +59 -74
  179. package/dist/index189.js.map +1 -1
  180. package/dist/index190.js +7 -65
  181. package/dist/index190.js.map +1 -1
  182. package/dist/index191.js +16 -9
  183. package/dist/index191.js.map +1 -1
  184. package/dist/index192.js +31 -16
  185. package/dist/index192.js.map +1 -1
  186. package/dist/index193.js +65 -88
  187. package/dist/index193.js.map +1 -1
  188. package/dist/index194.js +58 -65
  189. package/dist/index194.js.map +1 -1
  190. package/dist/index195.js +8 -45
  191. package/dist/index195.js.map +1 -1
  192. package/dist/index196.js +77 -48
  193. package/dist/index196.js.map +1 -1
  194. package/dist/index197.js +19 -8
  195. package/dist/index197.js.map +1 -1
  196. package/dist/index198.js +15 -86
  197. package/dist/index198.js.map +1 -1
  198. package/dist/index199.js +4 -18
  199. package/dist/index199.js.map +1 -1
  200. package/dist/index200.js +4 -15
  201. package/dist/index200.js.map +1 -1
  202. package/dist/index201.js +6 -5
  203. package/dist/index201.js.map +1 -1
  204. package/dist/index202.js +4 -5
  205. package/dist/index202.js.map +1 -1
  206. package/dist/index203.js +6 -6
  207. package/dist/index203.js.map +1 -1
  208. package/dist/index204.js +16 -4
  209. package/dist/index204.js.map +1 -1
  210. package/dist/index205.js +4 -6
  211. package/dist/index205.js.map +1 -1
  212. package/dist/index206.js +4 -16
  213. package/dist/index206.js.map +1 -1
  214. package/dist/index207.js +12 -4
  215. package/dist/index207.js.map +1 -1
  216. package/dist/index208.js +9 -4
  217. package/dist/index208.js.map +1 -1
  218. package/dist/index209.js +13 -12
  219. package/dist/index209.js.map +1 -1
  220. package/dist/index210.js +13 -9
  221. package/dist/index210.js.map +1 -1
  222. package/dist/index211.js +4 -13
  223. package/dist/index211.js.map +1 -1
  224. package/dist/index212.js +5 -13
  225. package/dist/index212.js.map +1 -1
  226. package/dist/index213.js +6 -4
  227. package/dist/index213.js.map +1 -1
  228. package/dist/index214.js +5 -5
  229. package/dist/index214.js.map +1 -1
  230. package/dist/index215.js +54 -6
  231. package/dist/index215.js.map +1 -1
  232. package/dist/index216.js +8 -5
  233. package/dist/index216.js.map +1 -1
  234. package/dist/index217.js +4 -54
  235. package/dist/index217.js.map +1 -1
  236. package/dist/index218.js +4 -8
  237. package/dist/index218.js.map +1 -1
  238. package/dist/index219.js +8 -4
  239. package/dist/index219.js.map +1 -1
  240. package/dist/index220.js +4 -4
  241. package/dist/index220.js.map +1 -1
  242. package/dist/index221.js +4 -8
  243. package/dist/index221.js.map +1 -1
  244. package/dist/index222.js +3 -4
  245. package/dist/index222.js.map +1 -1
  246. package/dist/index223.js +10 -4
  247. package/dist/index223.js.map +1 -1
  248. package/dist/index224.js +9 -3
  249. package/dist/index224.js.map +1 -1
  250. package/dist/index225.js +8 -9
  251. package/dist/index225.js.map +1 -1
  252. package/dist/index226.js +10 -9
  253. package/dist/index226.js.map +1 -1
  254. package/dist/index227.js +10 -9
  255. package/dist/index227.js.map +1 -1
  256. package/dist/index228.js +9 -10
  257. package/dist/index228.js.map +1 -1
  258. package/dist/index229.js +6 -10
  259. package/dist/index229.js.map +1 -1
  260. package/dist/index230.js +5 -9
  261. package/dist/index230.js.map +1 -1
  262. package/dist/index231.js +4 -6
  263. package/dist/index231.js.map +1 -1
  264. package/dist/index232.js +5 -5
  265. package/dist/index232.js.map +1 -1
  266. package/dist/index233.js +6 -4
  267. package/dist/index233.js.map +1 -1
  268. package/dist/index234.js +5 -5
  269. package/dist/index234.js.map +1 -1
  270. package/dist/index235.js +16 -6
  271. package/dist/index235.js.map +1 -1
  272. package/dist/index236.js +7 -5
  273. package/dist/index236.js.map +1 -1
  274. package/dist/index237.js +9 -15
  275. package/dist/index237.js.map +1 -1
  276. package/dist/index238.js +10 -7
  277. package/dist/index238.js.map +1 -1
  278. package/dist/index239.js +21 -10
  279. package/dist/index239.js.map +1 -1
  280. package/dist/index240.js +8 -10
  281. package/dist/index240.js.map +1 -1
  282. package/dist/index241.js +9 -21
  283. package/dist/index241.js.map +1 -1
  284. package/dist/index242.js +9 -10
  285. package/dist/index242.js.map +1 -1
  286. package/dist/index243.js +4 -9
  287. package/dist/index243.js.map +1 -1
  288. package/dist/index244.js +5 -9
  289. package/dist/index244.js.map +1 -1
  290. package/dist/index245.js +16 -4
  291. package/dist/index245.js.map +1 -1
  292. package/dist/index246.js +9 -5
  293. package/dist/index246.js.map +1 -1
  294. package/dist/index247.js +18 -16
  295. package/dist/index247.js.map +1 -1
  296. package/dist/index248.js +20 -9
  297. package/dist/index248.js.map +1 -1
  298. package/dist/index249.js +8 -14
  299. package/dist/index249.js.map +1 -1
  300. package/dist/index250.js +29 -15
  301. package/dist/index250.js.map +1 -1
  302. package/dist/index251.js +12 -12
  303. package/dist/index251.js.map +1 -1
  304. package/dist/index252.js +24 -28
  305. package/dist/index252.js.map +1 -1
  306. package/dist/index253.js +5 -12
  307. package/dist/index253.js.map +1 -1
  308. package/dist/index254.js +152 -23
  309. package/dist/index254.js.map +1 -1
  310. package/dist/index255.js +32 -5
  311. package/dist/index255.js.map +1 -1
  312. package/dist/index256.js +12 -20
  313. package/dist/index256.js.map +1 -1
  314. package/dist/index257.js +44 -61
  315. package/dist/index257.js.map +1 -1
  316. package/dist/index258.js +9 -6
  317. package/dist/index258.js.map +1 -1
  318. package/dist/index259.js +11 -11
  319. package/dist/index259.js.map +1 -1
  320. package/dist/index260.js +41 -48
  321. package/dist/index260.js.map +1 -1
  322. package/dist/index261.js +98 -4
  323. package/dist/index261.js.map +1 -1
  324. package/dist/index262.js +84 -27
  325. package/dist/index262.js.map +1 -1
  326. package/dist/index263.js +103 -14
  327. package/dist/index263.js.map +1 -1
  328. package/dist/index264.js +52 -5
  329. package/dist/index264.js.map +1 -1
  330. package/dist/index265.js +11 -21
  331. package/dist/index265.js.map +1 -1
  332. package/dist/index266.js +4 -51
  333. package/dist/index266.js.map +1 -1
  334. package/dist/index267.js +37 -25
  335. package/dist/index267.js.map +1 -1
  336. package/dist/index268.js +8 -41
  337. package/dist/index268.js.map +1 -1
  338. package/dist/index269.js +132 -36
  339. package/dist/index269.js.map +1 -1
  340. package/dist/index27.js +421 -350
  341. package/dist/index27.js.map +1 -1
  342. package/dist/index270.js +18 -45
  343. package/dist/index270.js.map +1 -1
  344. package/dist/index271.js +14 -19
  345. package/dist/index271.js.map +1 -1
  346. package/dist/index272.js +3 -70
  347. package/dist/index272.js.map +1 -1
  348. package/dist/index273.js +34 -15
  349. package/dist/index273.js.map +1 -1
  350. package/dist/index274.js +20 -11
  351. package/dist/index274.js.map +1 -1
  352. package/dist/index275.js +8 -27
  353. package/dist/index275.js.map +1 -1
  354. package/dist/index276.js +9 -13
  355. package/dist/index276.js.map +1 -1
  356. package/dist/index277.js +24 -18
  357. package/dist/index277.js.map +1 -1
  358. package/dist/index278.js +27 -35
  359. package/dist/index278.js.map +1 -1
  360. package/dist/index279.js +16 -262
  361. package/dist/index279.js.map +1 -1
  362. package/dist/index280.js +20 -279
  363. package/dist/index280.js.map +1 -1
  364. package/dist/index281.js +64 -66
  365. package/dist/index281.js.map +1 -1
  366. package/dist/index282.js +6 -99
  367. package/dist/index282.js.map +1 -1
  368. package/dist/index283.js +5 -83
  369. package/dist/index283.js.map +1 -1
  370. package/dist/index284.js +11 -3
  371. package/dist/index284.js.map +1 -1
  372. package/dist/index285.js +3 -29
  373. package/dist/index285.js.map +1 -1
  374. package/dist/index286.js +50 -16
  375. package/dist/index286.js.map +1 -1
  376. package/dist/index287.js +4 -35
  377. package/dist/index287.js.map +1 -1
  378. package/dist/index288.js +28 -15
  379. package/dist/index288.js.map +1 -1
  380. package/dist/index289.js +16 -3
  381. package/dist/index289.js.map +1 -1
  382. package/dist/index29.js +48 -29
  383. package/dist/index29.js.map +1 -1
  384. package/dist/index290.js +5 -26
  385. package/dist/index290.js.map +1 -1
  386. package/dist/index291.js +20 -27
  387. package/dist/index291.js.map +1 -1
  388. package/dist/index292.js +54 -4
  389. package/dist/index292.js.map +1 -1
  390. package/dist/index293.js +18 -76
  391. package/dist/index293.js.map +1 -1
  392. package/dist/index294.js +37 -265
  393. package/dist/index294.js.map +1 -1
  394. package/dist/index295.js +39 -11
  395. package/dist/index295.js.map +1 -1
  396. package/dist/index296.js +45 -10
  397. package/dist/index296.js.map +1 -1
  398. package/dist/index297.js +20 -25
  399. package/dist/index297.js.map +1 -1
  400. package/dist/index298.js +69 -15
  401. package/dist/index298.js.map +1 -1
  402. package/dist/index299.js +14 -122
  403. package/dist/index299.js.map +1 -1
  404. package/dist/index300.js +3 -5
  405. package/dist/index300.js.map +1 -1
  406. package/dist/index301.js +11 -40
  407. package/dist/index301.js.map +1 -1
  408. package/dist/index302.js +12 -64
  409. package/dist/index302.js.map +1 -1
  410. package/dist/index303.js +19 -14
  411. package/dist/index303.js.map +1 -1
  412. package/dist/index304.js +36 -7
  413. package/dist/index304.js.map +1 -1
  414. package/dist/index305.js +239 -5
  415. package/dist/index305.js.map +1 -1
  416. package/dist/index306.js +252 -3
  417. package/dist/index306.js.map +1 -1
  418. package/dist/index307.js +68 -10
  419. package/dist/index307.js.map +1 -1
  420. package/dist/index308.js +99 -7
  421. package/dist/index308.js.map +1 -1
  422. package/dist/index309.js +80 -130
  423. package/dist/index309.js.map +1 -1
  424. package/dist/index31.js +194 -184
  425. package/dist/index31.js.map +1 -1
  426. package/dist/index310.js +3 -399
  427. package/dist/index310.js.map +1 -1
  428. package/dist/index311.js +29 -52
  429. package/dist/index311.js.map +1 -1
  430. package/dist/index312.js +15 -10
  431. package/dist/index312.js.map +1 -1
  432. package/dist/index313.js +35 -12
  433. package/dist/index313.js.map +1 -1
  434. package/dist/index314.js +17 -13
  435. package/dist/index314.js.map +1 -1
  436. package/dist/index315.js +3 -154
  437. package/dist/index315.js.map +1 -1
  438. package/dist/index316.js +25 -29
  439. package/dist/index316.js.map +1 -1
  440. package/dist/index317.js +28 -9
  441. package/dist/index317.js.map +1 -1
  442. package/dist/index318.js +4 -49
  443. package/dist/index318.js.map +1 -1
  444. package/dist/index319.js +77 -10
  445. package/dist/index319.js.map +1 -1
  446. package/dist/index32.js +3 -3
  447. package/dist/index32.js.map +1 -1
  448. package/dist/index320.js +271 -43
  449. package/dist/index320.js.map +1 -1
  450. package/dist/index321.js +11 -95
  451. package/dist/index321.js.map +1 -1
  452. package/dist/index322.js +11 -87
  453. package/dist/index322.js.map +1 -1
  454. package/dist/index323.js +24 -104
  455. package/dist/index323.js.map +1 -1
  456. package/dist/index324.js +16 -52
  457. package/dist/index324.js.map +1 -1
  458. package/dist/index325.js +124 -10
  459. package/dist/index325.js.map +1 -1
  460. package/dist/index326.js +5 -37
  461. package/dist/index326.js.map +1 -1
  462. package/dist/index327.js +65 -8
  463. package/dist/index327.js.map +1 -1
  464. package/dist/index328.js +14 -4
  465. package/dist/index328.js.map +1 -1
  466. package/dist/index329.js +7 -9
  467. package/dist/index329.js.map +1 -1
  468. package/dist/index330.js +5 -116
  469. package/dist/index330.js.map +1 -1
  470. package/dist/index331.js +3 -17
  471. package/dist/index331.js.map +1 -1
  472. package/dist/index332.js +10 -15
  473. package/dist/index332.js.map +1 -1
  474. package/dist/index333.js +7 -36
  475. package/dist/index333.js.map +1 -1
  476. package/dist/index334.js +131 -18
  477. package/dist/index334.js.map +1 -1
  478. package/dist/index335.js +398 -7
  479. package/dist/index335.js.map +1 -1
  480. package/dist/index336.js +5 -20
  481. package/dist/index336.js.map +1 -1
  482. package/dist/index337.js +50 -26
  483. package/dist/index337.js.map +1 -1
  484. package/dist/index338.js +11 -16
  485. package/dist/index338.js.map +1 -1
  486. package/dist/index339.js +27 -8
  487. package/dist/index339.js.map +1 -1
  488. package/dist/index34.js +7 -61
  489. package/dist/index34.js.map +1 -1
  490. package/dist/index340.js +11 -11
  491. package/dist/index340.js.map +1 -1
  492. package/dist/index341.js +8 -8
  493. package/dist/index341.js.map +1 -1
  494. package/dist/index342.js +11 -13
  495. package/dist/index342.js.map +1 -1
  496. package/dist/index343.js +8 -3
  497. package/dist/index343.js.map +1 -1
  498. package/dist/index344.js +13 -3
  499. package/dist/index344.js.map +1 -1
  500. package/dist/index345.js +3 -17
  501. package/dist/index345.js.map +1 -1
  502. package/dist/index346.js +3 -51
  503. package/dist/index346.js.map +1 -1
  504. package/dist/index347.js +17 -5
  505. package/dist/index347.js.map +1 -1
  506. package/dist/index348.js +60 -121
  507. package/dist/index348.js.map +1 -1
  508. package/dist/index349.js +65 -31
  509. package/dist/index349.js.map +1 -1
  510. package/dist/index35.js +29 -30
  511. package/dist/index35.js.map +1 -1
  512. package/dist/index350.js +47 -69
  513. package/dist/index350.js.map +1 -1
  514. package/dist/index351.js +5 -142
  515. package/dist/index351.js.map +1 -1
  516. package/dist/index352.js +7 -60
  517. package/dist/index352.js.map +1 -1
  518. package/dist/index353.js +4 -49
  519. package/dist/index353.js.map +1 -1
  520. package/dist/index354.js +12 -15
  521. package/dist/index354.js.map +1 -1
  522. package/dist/index355.js +21 -8
  523. package/dist/index355.js.map +1 -1
  524. package/dist/index356.js +17 -5
  525. package/dist/index356.js.map +1 -1
  526. package/dist/index357.js +8 -12
  527. package/dist/index357.js.map +1 -1
  528. package/dist/index358.js +144 -21
  529. package/dist/index358.js.map +1 -1
  530. package/dist/index359.js +79 -4
  531. package/dist/index359.js.map +1 -1
  532. package/dist/index36.js +52 -53
  533. package/dist/index36.js.map +1 -1
  534. package/dist/index360.js +61 -17
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +15 -13
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +4 -11
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +18 -17
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +13 -4
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +4 -5
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +20 -20
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +4 -45
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +11 -17
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +6 -5
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js.map +1 -1
  555. package/dist/index370.js +3 -201
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +20 -77
  558. package/dist/index371.js.map +1 -1
  559. package/dist/index372.js +45 -21
  560. package/dist/index372.js.map +1 -1
  561. package/dist/index373.js +18 -9
  562. package/dist/index373.js.map +1 -1
  563. package/dist/index374.js +5 -26
  564. package/dist/index374.js.map +1 -1
  565. package/dist/index375.js +196 -22
  566. package/dist/index375.js.map +1 -1
  567. package/dist/index376.js +73 -137
  568. package/dist/index376.js.map +1 -1
  569. package/dist/index377.js +121 -10
  570. package/dist/index377.js.map +1 -1
  571. package/dist/index378.js +7 -225
  572. package/dist/index378.js.map +1 -1
  573. package/dist/index379.js +27 -4
  574. package/dist/index379.js.map +1 -1
  575. package/dist/index38.js.map +1 -1
  576. package/dist/index380.js +136 -18
  577. package/dist/index380.js.map +1 -1
  578. package/dist/index381.js +10 -75
  579. package/dist/index381.js.map +1 -1
  580. package/dist/index382.js +47 -12
  581. package/dist/index382.js.map +1 -1
  582. package/dist/index383.js +3 -3
  583. package/dist/index383.js.map +1 -1
  584. package/dist/index384.js +19 -69
  585. package/dist/index384.js.map +1 -1
  586. package/dist/index385.js +76 -9
  587. package/dist/index385.js.map +1 -1
  588. package/dist/index386.js +12 -16
  589. package/dist/index386.js.map +1 -1
  590. package/dist/index387.js +3 -4
  591. package/dist/index387.js.map +1 -1
  592. package/dist/index388.js +71 -4
  593. package/dist/index388.js.map +1 -1
  594. package/dist/index389.js +36 -4
  595. package/dist/index389.js.map +1 -1
  596. package/dist/index39.js +3 -3
  597. package/dist/index39.js.map +1 -1
  598. package/dist/index390.js +7 -16
  599. package/dist/index390.js.map +1 -1
  600. package/dist/index391.js +15 -8
  601. package/dist/index391.js.map +1 -1
  602. package/dist/index392.js +4 -5
  603. package/dist/index392.js.map +1 -1
  604. package/dist/index393.js +4 -4
  605. package/dist/index393.js.map +1 -1
  606. package/dist/index394.js +4 -546
  607. package/dist/index394.js.map +1 -1
  608. package/dist/index395.js +16 -47
  609. package/dist/index395.js.map +1 -1
  610. package/dist/index396.js +8 -17
  611. package/dist/index396.js.map +1 -1
  612. package/dist/index397.js +5 -5
  613. package/dist/index397.js.map +1 -1
  614. package/dist/index398.js +4 -7
  615. package/dist/index398.js.map +1 -1
  616. package/dist/index399.js +545 -6
  617. package/dist/index399.js.map +1 -1
  618. package/dist/index40.js.map +1 -1
  619. package/dist/index400.js +47 -8
  620. package/dist/index400.js.map +1 -1
  621. package/dist/index401.js +17 -11
  622. package/dist/index401.js.map +1 -1
  623. package/dist/index402.js +5 -8
  624. package/dist/index402.js.map +1 -1
  625. package/dist/index403.js +7 -12
  626. package/dist/index403.js.map +1 -1
  627. package/dist/index404.js +7 -3
  628. package/dist/index404.js.map +1 -1
  629. package/dist/index405.js +8 -3
  630. package/dist/index405.js.map +1 -1
  631. package/dist/index406.js +11 -14
  632. package/dist/index406.js.map +1 -1
  633. package/dist/index407.js +8 -491
  634. package/dist/index407.js.map +1 -1
  635. package/dist/index408.js +12 -4
  636. package/dist/index408.js.map +1 -1
  637. package/dist/index409.js +3 -56
  638. package/dist/index409.js.map +1 -1
  639. package/dist/index41.js +45 -40
  640. package/dist/index41.js.map +1 -1
  641. package/dist/index410.js +3 -68
  642. package/dist/index410.js.map +1 -1
  643. package/dist/index411.js +15 -31
  644. package/dist/index411.js.map +1 -1
  645. package/dist/index412.js +3 -9
  646. package/dist/index412.js.map +1 -1
  647. package/dist/index413.js +488 -149
  648. package/dist/index413.js.map +1 -1
  649. package/dist/index414.js +66 -106
  650. package/dist/index414.js.map +1 -1
  651. package/dist/index415.js +31 -8
  652. package/dist/index415.js.map +1 -1
  653. package/dist/index416.js +9 -2
  654. package/dist/index416.js.map +1 -1
  655. package/dist/index417.js +150 -41
  656. package/dist/index417.js.map +1 -1
  657. package/dist/index418.js +108 -56
  658. package/dist/index418.js.map +1 -1
  659. package/dist/index419.js +4 -7
  660. package/dist/index419.js.map +1 -1
  661. package/dist/index420.js +56 -2
  662. package/dist/index420.js.map +1 -1
  663. package/dist/index421.js +7 -54
  664. package/dist/index421.js.map +1 -1
  665. package/dist/index422.js +2 -56
  666. package/dist/index422.js.map +1 -1
  667. package/dist/index423.js +44 -2
  668. package/dist/index423.js.map +1 -1
  669. package/dist/index424.js +56 -2
  670. package/dist/index424.js.map +1 -1
  671. package/dist/index425.js +8 -2
  672. package/dist/index425.js.map +1 -1
  673. package/dist/index426.js +2 -2
  674. package/dist/index427.js +54 -15
  675. package/dist/index427.js.map +1 -1
  676. package/dist/index428.js +55 -28
  677. package/dist/index428.js.map +1 -1
  678. package/dist/index429.js +31 -11
  679. package/dist/index429.js.map +1 -1
  680. package/dist/index430.js +14 -5
  681. package/dist/index430.js.map +1 -1
  682. package/dist/index431.js +32 -0
  683. package/dist/index431.js.map +1 -0
  684. package/dist/index432.js +16 -0
  685. package/dist/index432.js.map +1 -0
  686. package/dist/index433.js +10 -0
  687. package/dist/index433.js.map +1 -0
  688. package/dist/index434.js +5 -0
  689. package/dist/index434.js.map +1 -0
  690. package/dist/index435.js +5 -0
  691. package/dist/index435.js.map +1 -0
  692. package/dist/index436.js +5 -0
  693. package/dist/index436.js.map +1 -0
  694. package/dist/index437.js +5 -0
  695. package/dist/index437.js.map +1 -0
  696. package/dist/index48.js +2 -2
  697. package/dist/index48.js.map +1 -1
  698. package/dist/index49.js +274 -268
  699. package/dist/index49.js.map +1 -1
  700. package/dist/index50.js +182 -184
  701. package/dist/index50.js.map +1 -1
  702. package/dist/index51.js +3 -3
  703. package/dist/index51.js.map +1 -1
  704. package/dist/index52.js +105 -103
  705. package/dist/index52.js.map +1 -1
  706. package/dist/index53.js +5 -5
  707. package/dist/index53.js.map +1 -1
  708. package/dist/index54.js.map +1 -1
  709. package/dist/index55.js +102 -110
  710. package/dist/index55.js.map +1 -1
  711. package/dist/index56.js +4 -4
  712. package/dist/index56.js.map +1 -1
  713. package/dist/index57.js +5 -5
  714. package/dist/index57.js.map +1 -1
  715. package/dist/index58.js +9 -9
  716. package/dist/index58.js.map +1 -1
  717. package/dist/index59.js +5 -5
  718. package/dist/index59.js.map +1 -1
  719. package/dist/index6.js +43 -48
  720. package/dist/index6.js.map +1 -1
  721. package/dist/index60.js +90 -86
  722. package/dist/index60.js.map +1 -1
  723. package/dist/index61.js +2 -2
  724. package/dist/index61.js.map +1 -1
  725. package/dist/index62.js +24 -26
  726. package/dist/index62.js.map +1 -1
  727. package/dist/index76.js +1 -1
  728. package/dist/index77.js +2 -2
  729. package/dist/index77.js.map +1 -1
  730. package/dist/index78.js +2 -2
  731. package/dist/index78.js.map +1 -1
  732. package/dist/index79.js +50 -52
  733. package/dist/index79.js.map +1 -1
  734. package/dist/index80.js +4 -4
  735. package/dist/index80.js.map +1 -1
  736. package/dist/index81.js +12 -4
  737. package/dist/index81.js.map +1 -1
  738. package/dist/index82.js +5 -15
  739. package/dist/index82.js.map +1 -1
  740. package/dist/index83.js +7 -5
  741. package/dist/index83.js.map +1 -1
  742. package/dist/index84.js +17 -7
  743. package/dist/index84.js.map +1 -1
  744. package/dist/index85.js +4 -16
  745. package/dist/index85.js.map +1 -1
  746. package/dist/index86.js +1 -1
  747. package/dist/index86.js.map +1 -1
  748. package/dist/index87.js +5 -4
  749. package/dist/index87.js.map +1 -1
  750. package/dist/index88.js +4 -4
  751. package/dist/index88.js.map +1 -1
  752. package/dist/index89.js +4 -5
  753. package/dist/index89.js.map +1 -1
  754. package/dist/index90.js +2 -2
  755. package/dist/index90.js.map +1 -1
  756. package/dist/index91.js +5 -3
  757. package/dist/index91.js.map +1 -1
  758. package/dist/index92.js +24 -6
  759. package/dist/index92.js.map +1 -1
  760. package/dist/index93.js +4 -24
  761. package/dist/index93.js.map +1 -1
  762. package/dist/index94.js +4 -6
  763. package/dist/index94.js.map +1 -1
  764. package/dist/index95.js +2 -2
  765. package/dist/index95.js.map +1 -1
  766. package/dist/index96.js +5 -6
  767. package/dist/index96.js.map +1 -1
  768. package/dist/index97.js +4 -5
  769. package/dist/index97.js.map +1 -1
  770. package/dist/index98.js +4 -3
  771. package/dist/index98.js.map +1 -1
  772. package/dist/index99.js +4 -5
  773. package/dist/index99.js.map +1 -1
  774. package/package.json +14 -12
package/dist/index320.js CHANGED
@@ -1,48 +1,276 @@
1
- import t from "./index338.js";
2
- import I from "./index336.js";
3
- import R from "./index164.js";
4
- import { MAX_LENGTH_COUNTRY_CODE as S } from "./index160.js";
5
- function O(r, e, f, _, i) {
6
- if (!r)
7
- return {};
8
- var n;
9
- if (r[0] !== "+") {
10
- var l = t(r, e || f, _, i);
11
- if (l && l !== r)
12
- n = !0, r = "+" + l;
13
- else {
14
- if (e || f || _) {
15
- var s = I(r, e, f, _, i), M = s.countryCallingCode, c = s.number;
16
- if (M)
17
- return {
18
- countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
19
- countryCallingCode: M,
20
- number: c
21
- };
22
- }
23
- return {
24
- // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
25
- // countryCallingCodeSource: 'UNSPECIFIED',
26
- number: r
27
- };
1
+ import * as d from "react";
2
+ import { getSide as B, getSideAxis as De, getAlignment as Le } from "./index325.js";
3
+ import { ownerDocument as ke } from "./index310.js";
4
+ import { useIsoLayoutEffect as Q } from "./index287.js";
5
+ import { useValueAsRef as z } from "./index289.js";
6
+ import { useStableCallback as Qe } from "./index288.js";
7
+ import { useDirection as Ze } from "./index333.js";
8
+ import { arrow as et } from "./index372.js";
9
+ import { hide as tt } from "./index373.js";
10
+ import { DEFAULT_SIDES as nt } from "./index374.js";
11
+ import { flip as ot, size as it, offset as rt, shift as st, limitShift as ct } from "./index375.js";
12
+ import { useFloating as lt } from "./index376.js";
13
+ import { autoUpdate as Ce } from "./index335.js";
14
+ import { getWindow as at } from "./index334.js";
15
+ function Te(a, u, h) {
16
+ const n = a === "inline-start" || a === "inline-end";
17
+ return {
18
+ top: "top",
19
+ right: n ? h ? "inline-start" : "inline-end" : "right",
20
+ bottom: "bottom",
21
+ left: n ? h ? "inline-end" : "inline-start" : "left"
22
+ }[u];
23
+ }
24
+ function Fe(a, u, h) {
25
+ const {
26
+ rects: n,
27
+ placement: c
28
+ } = a;
29
+ return {
30
+ side: Te(u, B(c), h),
31
+ align: Le(c) || "center",
32
+ anchor: {
33
+ width: n.reference.width,
34
+ height: n.reference.height
35
+ },
36
+ positioner: {
37
+ width: n.floating.width,
38
+ height: n.floating.height
39
+ }
40
+ };
41
+ }
42
+ function Pt(a) {
43
+ const {
44
+ // Public parameters
45
+ anchor: u,
46
+ positionMethod: h = "absolute",
47
+ side: n = "bottom",
48
+ sideOffset: c = 0,
49
+ align: R = "center",
50
+ alignOffset: V = 0,
51
+ collisionBoundary: Z,
52
+ collisionPadding: ze = 5,
53
+ sticky: W = !1,
54
+ arrowPadding: ee = 5,
55
+ disableAnchorTracking: I = !1,
56
+ inline: te,
57
+ // Private parameters
58
+ keepMounted: D = !1,
59
+ floatingRootContext: k,
60
+ mounted: o,
61
+ collisionAvoidance: U,
62
+ shiftCrossAxis: P = !1,
63
+ nodeId: Be,
64
+ adaptiveOrigin: Y,
65
+ lazyFlip: ne = !1,
66
+ externalTree: Ve
67
+ } = a, [oe, ie] = d.useState(null);
68
+ !o && oe !== null && ie(null);
69
+ const O = U.side || "flip", v = U.align || "flip", We = U.fallbackAxisSide || "end", re = typeof u == "function" ? u : void 0, Ie = Qe(re), se = re ? Ie : u, C = z(u), Ue = z(o), y = Ze() === "rtl", ce = oe || {
70
+ top: "top",
71
+ right: "right",
72
+ bottom: "bottom",
73
+ left: "left",
74
+ "inline-end": y ? "left" : "right",
75
+ "inline-start": y ? "right" : "left"
76
+ }[n], Ye = R === "center" ? ce : `${ce}-${R}`;
77
+ let t = ze;
78
+ const p = 1, le = n === "bottom" ? p : 0, ae = n === "top" ? p : 0, fe = n === "right" ? p : 0, de = n === "left" ? p : 0;
79
+ typeof t == "number" ? t = {
80
+ top: t + le,
81
+ right: t + de,
82
+ bottom: t + ae,
83
+ left: t + fe
84
+ } : t && (t = {
85
+ top: (t.top || 0) + le,
86
+ right: (t.right || 0) + de,
87
+ bottom: (t.bottom || 0) + ae,
88
+ left: (t.left || 0) + fe
89
+ });
90
+ const F = {
91
+ boundary: Z === "clipping-ancestors" ? "clippingAncestors" : Z,
92
+ padding: t
93
+ }, x = d.useRef(null), X = z(c), j = z(V), Xe = typeof c != "function" ? c : 0, je = typeof V != "function" ? V : 0, b = [];
94
+ te && b.push(te), b.push(rt((e) => {
95
+ const i = Fe(e, n, y), l = typeof X.current == "function" ? X.current(i) : X.current, r = typeof j.current == "function" ? j.current(i) : j.current;
96
+ return {
97
+ mainAxis: l,
98
+ crossAxis: r,
99
+ alignmentAxis: r
100
+ };
101
+ }, [Xe, je, y, n]));
102
+ const ue = v === "none" && O !== "shift", pe = !ue && (W || P || O === "shift"), he = O === "none" ? null : ot({
103
+ ...F,
104
+ // Ensure the popup flips if it's been limited by its --available-height and it resizes.
105
+ // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
106
+ padding: {
107
+ top: t.top + p,
108
+ right: t.right + p,
109
+ bottom: t.bottom + p,
110
+ left: t.left + p
111
+ },
112
+ mainAxis: !P && O === "flip",
113
+ crossAxis: v === "flip" ? "alignment" : !1,
114
+ fallbackAxisSideDirection: We
115
+ }), me = ue ? null : st((e) => {
116
+ const i = ke(e.elements.floating).documentElement;
117
+ return {
118
+ ...F,
119
+ // Use the Layout Viewport to avoid shifting around when pinch-zooming
120
+ // for context menus.
121
+ rootBoundary: P ? {
122
+ x: 0,
123
+ y: 0,
124
+ width: i.clientWidth,
125
+ height: i.clientHeight
126
+ } : void 0,
127
+ mainAxis: v !== "none",
128
+ crossAxis: pe,
129
+ limiter: W || P ? void 0 : ct((l) => {
130
+ if (!x.current)
131
+ return {};
132
+ const {
133
+ width: r,
134
+ height: f
135
+ } = x.current.getBoundingClientRect(), s = De(B(l.placement)), g = s === "y" ? r : f, S = s === "y" ? t.left + t.right : t.top + t.bottom;
136
+ return {
137
+ offset: g / 2 + S / 2
138
+ };
139
+ })
140
+ };
141
+ }, [F, W, P, t, v]);
142
+ O === "shift" || v === "shift" || R === "center" ? b.push(me, he) : b.push(he, me), b.push(it({
143
+ ...F,
144
+ apply({
145
+ elements: {
146
+ floating: e
147
+ },
148
+ availableWidth: i,
149
+ availableHeight: l,
150
+ rects: r
151
+ }) {
152
+ if (!Ue.current)
153
+ return;
154
+ const f = e.style;
155
+ f.setProperty("--available-width", `${i}px`), f.setProperty("--available-height", `${l}px`);
156
+ const s = at(e).devicePixelRatio || 1, {
157
+ x: g,
158
+ y: S,
159
+ width: T,
160
+ height: G
161
+ } = r.reference, J = (Math.round((g + T) * s) - Math.round(g * s)) / s, K = (Math.round((S + G) * s) - Math.round(S * s)) / s;
162
+ f.setProperty("--anchor-width", `${J}px`), f.setProperty("--anchor-height", `${K}px`);
28
163
  }
29
- }
30
- if (r[1] === "0")
31
- return {};
32
- i = new R(i);
33
- for (var o = 2; o - 1 <= S && o <= r.length; ) {
34
- var N = r.slice(1, o);
35
- if (i.hasCallingCode(N))
36
- return i.selectNumberingPlan(N), {
37
- countryCallingCodeSource: n ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
38
- countryCallingCode: N,
39
- number: r.slice(o)
40
- };
41
- o++;
42
- }
43
- return {};
164
+ }), et((e) => ({
165
+ // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,
166
+ // we'll create a fake element.
167
+ element: x.current || ke(e.elements.floating).createElement("div"),
168
+ padding: ee,
169
+ offsetParent: "floating"
170
+ }), [ee]), {
171
+ name: "transformOrigin",
172
+ fn(e) {
173
+ const {
174
+ elements: i,
175
+ middlewareData: l,
176
+ placement: r,
177
+ rects: f,
178
+ y: s
179
+ } = e, g = B(r), S = De(g), T = x.current, G = l.arrow?.x || 0, J = l.arrow?.y || 0, K = T?.clientWidth || 0, _e = T?.clientHeight || 0, N = G + K / 2, Ee = J + _e / 2, qe = Math.abs(l.shift?.y || 0), Ge = f.reference.height / 2, E = typeof c == "function" ? c(Fe(e, n, y)) : c, Je = qe > E, Ke = {
180
+ top: `${N}px calc(100% + ${E}px)`,
181
+ bottom: `${N}px ${-E}px`,
182
+ left: `calc(100% + ${E}px) ${Ee}px`,
183
+ right: `${-E}px ${Ee}px`
184
+ }[g], Ne = `${N}px ${f.reference.y + Ge - s}px`;
185
+ return i.floating.style.setProperty("--transform-origin", pe && S === "y" && Je ? Ne : Ke), {};
186
+ }
187
+ }, tt, Y), Q(() => {
188
+ !o && k && k.update({
189
+ referenceElement: null,
190
+ floatingElement: null,
191
+ domReferenceElement: null,
192
+ positionReference: null
193
+ });
194
+ }, [o, k]);
195
+ const _ = d.useMemo(() => ({
196
+ elementResize: !I && typeof ResizeObserver < "u",
197
+ layoutShift: !I && typeof IntersectionObserver < "u"
198
+ }), [I]), {
199
+ refs: w,
200
+ elements: M,
201
+ x: ge,
202
+ y: ye,
203
+ middlewareData: A,
204
+ update: H,
205
+ placement: xe,
206
+ context: be,
207
+ isPositioned: m,
208
+ floatingStyles: we
209
+ } = lt({
210
+ rootContext: k,
211
+ open: D ? o : void 0,
212
+ placement: Ye,
213
+ middleware: b,
214
+ strategy: h,
215
+ whileElementsMounted: D ? void 0 : (...e) => Ce(...e, _),
216
+ nodeId: Be,
217
+ externalTree: Ve
218
+ }), {
219
+ sideX: Ae,
220
+ sideY: Se
221
+ } = A.adaptiveOrigin || nt, q = m ? h : "fixed", Re = d.useMemo(() => {
222
+ const e = Y ? {
223
+ position: q,
224
+ [Ae]: ge,
225
+ [Se]: ye
226
+ } : {
227
+ position: q,
228
+ ...we
229
+ };
230
+ return m || (e.opacity = 0), e;
231
+ }, [Y, q, Ae, ge, Se, ye, we, m]), L = d.useRef(null);
232
+ Q(() => {
233
+ if (!o)
234
+ return;
235
+ const e = C.current, i = typeof e == "function" ? e() : e, r = (He(i) ? i.current : i) || null || null;
236
+ r !== L.current && (w.setPositionReference(r), L.current = r);
237
+ }, [o, w, se, C]), d.useEffect(() => {
238
+ if (!o)
239
+ return;
240
+ const e = C.current;
241
+ typeof e != "function" && He(e) && e.current !== L.current && (w.setPositionReference(e.current), L.current = e.current);
242
+ }, [o, w, se, C]), d.useEffect(() => {
243
+ if (D && o && M.reference && M.floating)
244
+ return Ce(M.reference, M.floating, H, _);
245
+ }, [D, o, M, H, _]);
246
+ const $ = B(xe), Pe = Te(n, $, y), Oe = Le(xe) || "center", ve = !!A.hide?.referenceHidden;
247
+ Q(() => {
248
+ ne && o && m && ie($);
249
+ }, [ne, o, m, $]);
250
+ const Me = d.useMemo(() => ({
251
+ position: "absolute",
252
+ top: A.arrow?.y,
253
+ left: A.arrow?.x
254
+ }), [A.arrow]), $e = A.arrow?.centerOffset !== 0;
255
+ return d.useMemo(() => ({
256
+ positionerStyles: Re,
257
+ arrowStyles: Me,
258
+ arrowRef: x,
259
+ arrowUncentered: $e,
260
+ side: Pe,
261
+ align: Oe,
262
+ physicalSide: $,
263
+ anchorHidden: ve,
264
+ refs: w,
265
+ context: be,
266
+ isPositioned: m,
267
+ update: H
268
+ }), [Re, Me, x, $e, Pe, Oe, $, ve, w, be, m, H]);
269
+ }
270
+ function He(a) {
271
+ return a != null && "current" in a;
44
272
  }
45
273
  export {
46
- O as default
274
+ Pt as useAnchorPositioning
47
275
  };
48
276
  //# sourceMappingURL=index320.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index320.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js"],"sourcesContent":["import stripIddPrefix from './stripIddPrefix.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport Metadata from '../metadata.js';\nimport { MAX_LENGTH_COUNTRY_CODE } from '../constants.js';\n\n/**\r\n * Converts a phone number digits (possibly with a `+`)\r\n * into a calling code and the rest phone number digits.\r\n * The \"rest phone number digits\" could include\r\n * a national prefix, carrier code, and national\r\n * (significant) number.\r\n * @param {string} number — Phone number digits (possibly with a `+`).\r\n * @param {string} [country] — Country.\r\n * @param {string} [defaultCountry] — Default country.\r\n * @param {string} [defaultCallingCode] — Default calling code (some phone numbering plans are non-geographic).\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCodeSource: string?, countryCallingCode: string?, number: string }`\r\n * @example\r\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\r\n * extractCountryCallingCode('2133734253', null, 'US', null, metadata)\r\n * extractCountryCallingCode('2133734253', null, null, '1', metadata)\r\n * extractCountryCallingCode('+12133734253', null, null, null, metadata)\r\n * extractCountryCallingCode('+12133734253', null, 'RU', null, metadata)\r\n */\nexport default function extractCountryCallingCode(number, country, defaultCountry, defaultCallingCode, metadata) {\n if (!number) {\n return {};\n }\n var isNumberWithIddPrefix;\n\n // If this is not an international phone number,\n // then either extract an \"IDD\" prefix, or extract a\n // country calling code from a number by autocorrecting it\n // by prepending a leading `+` in cases when it starts\n // with the country calling code.\n // https://wikitravel.org/en/International_dialling_prefix\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (number[0] !== '+') {\n // Convert an \"out-of-country\" dialing phone number\n // to a proper international phone number.\n var numberWithoutIDD = stripIddPrefix(number, country || defaultCountry, defaultCallingCode, metadata);\n // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n if (numberWithoutIDD && numberWithoutIDD !== number) {\n isNumberWithIddPrefix = true;\n number = '+' + numberWithoutIDD;\n } else {\n // Check to see if the number starts with the country calling code\n // for the default country. If so, we remove the country calling code,\n // and do some checks on the validity of the number before and after.\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (country || defaultCountry || defaultCallingCode) {\n var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n shorterNumber = _extractCountryCallin.number;\n if (countryCallingCode) {\n return {\n countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',\n countryCallingCode: countryCallingCode,\n number: shorterNumber\n };\n }\n }\n return {\n // No need to set it to `UNSPECIFIED`. It can be just `undefined`.\n // countryCallingCodeSource: 'UNSPECIFIED',\n number: number\n };\n }\n }\n\n // `number` can only be international at this point.\n\n // Fast abortion: country codes do not begin with a '0'\n if (number[1] === '0') {\n return {};\n }\n metadata = new Metadata(metadata);\n\n // The thing with country phone codes\n // is that they are orthogonal to each other\n // i.e. there's no such country phone code A\n // for which country phone code B exists\n // where B starts with A.\n // Therefore, while scanning digits,\n // if a valid country code is found,\n // that means that it is the country code.\n //\n var i = 2;\n while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n var _countryCallingCode = number.slice(1, i);\n if (metadata.hasCallingCode(_countryCallingCode)) {\n metadata.selectNumberingPlan(_countryCallingCode);\n return {\n countryCallingCodeSource: isNumberWithIddPrefix ? 'FROM_NUMBER_WITH_IDD' : 'FROM_NUMBER_WITH_PLUS_SIGN',\n countryCallingCode: _countryCallingCode,\n number: number.slice(i)\n };\n }\n i++;\n }\n return {};\n}\n\n// The possible values for the returned `countryCallingCodeSource` are:\n//\n// Copy-pasted from:\n// https://github.com/google/libphonenumber/blob/master/resources/phonenumber.proto\n//\n// // The source from which the country_code is derived. This is not set in the\n// // general parsing method, but in the method that parses and keeps raw_input.\n// // New fields could be added upon request.\n// enum CountryCodeSource {\n// // Default value returned if this is not set, because the phone number was\n// // created using parse, not parseAndKeepRawInput. hasCountryCodeSource will\n// // return false if this is the case.\n// UNSPECIFIED = 0;\n//\n// // The country_code is derived based on a phone number with a leading \"+\",\n// // e.g. the French number \"+33 1 42 68 53 00\".\n// FROM_NUMBER_WITH_PLUS_SIGN = 1;\n//\n// // The country_code is derived based on a phone number with a leading IDD,\n// // e.g. the French number \"011 33 1 42 68 53 00\", as it is dialled from US.\n// FROM_NUMBER_WITH_IDD = 5;\n//\n// // The country_code is derived based on a phone number without a leading\n// // \"+\", e.g. the French number \"33 1 42 68 53 00\" when defaultCountry is\n// // supplied as France.\n// FROM_NUMBER_WITHOUT_PLUS_SIGN = 10;\n//\n// // The country_code is derived NOT based on the phone number itself, but\n// // from the defaultCountry parameter provided in the parsing function by the\n// // clients. This happens mostly for numbers written in the national format\n// // (without country code). For example, this would be set when parsing the\n// // French number \"01 42 68 53 00\", when defaultCountry is supplied as\n// // France.\n// FROM_DEFAULT_COUNTRY = 20;\n// }\n//# sourceMappingURL=extractCountryCallingCode.js.map"],"names":["extractCountryCallingCode","number","country","defaultCountry","defaultCallingCode","metadata","isNumberWithIddPrefix","numberWithoutIDD","stripIddPrefix","_extractCountryCallin","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","countryCallingCode","shorterNumber","Metadata","i","MAX_LENGTH_COUNTRY_CODE","_countryCallingCode"],"mappings":";;;;AAwBe,SAASA,EAA0BC,GAAQC,GAASC,GAAgBC,GAAoBC,GAAU;AAC/G,MAAI,CAACJ;AACH,WAAO,CAAA;AAET,MAAIK;AASJ,MAAIL,EAAO,CAAC,MAAM,KAAK;AAGrB,QAAIM,IAAmBC,EAAeP,GAAQC,KAAWC,GAAgBC,GAAoBC,CAAQ;AAIrG,QAAIE,KAAoBA,MAAqBN;AAC3C,MAAAK,IAAwB,IACxBL,IAAS,MAAMM;AAAA,SACV;AAKL,UAAIL,KAAWC,KAAkBC,GAAoB;AACnD,YAAIK,IAAwBC,EAAgET,GAAQC,GAASC,GAAgBC,GAAoBC,CAAQ,GACvJM,IAAqBF,EAAsB,oBAC3CG,IAAgBH,EAAsB;AACxC,YAAIE;AACF,iBAAO;AAAA,YACL,0BAA0B;AAAA,YAC1B,oBAAoBA;AAAA,YACpB,QAAQC;AAAA,UACpB;AAAA,MAEM;AACA,aAAO;AAAA;AAAA;AAAA,QAGL,QAAQX;AAAA,MAChB;AAAA,IACI;AAAA,EACF;AAKA,MAAIA,EAAO,CAAC,MAAM;AAChB,WAAO,CAAA;AAET,EAAAI,IAAW,IAAIQ,EAASR,CAAQ;AAYhC,WADIS,IAAI,GACDA,IAAI,KAAKC,KAA2BD,KAAKb,EAAO,UAAQ;AAC7D,QAAIe,IAAsBf,EAAO,MAAM,GAAGa,CAAC;AAC3C,QAAIT,EAAS,eAAeW,CAAmB;AAC7C,aAAAX,EAAS,oBAAoBW,CAAmB,GACzC;AAAA,QACL,0BAA0BV,IAAwB,yBAAyB;AAAA,QAC3E,oBAAoBU;AAAA,QACpB,QAAQf,EAAO,MAAMa,CAAC;AAAA,MAC9B;AAEI,IAAAA;AAAA,EACF;AACA,SAAO,CAAA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index320.js","sources":["../node_modules/@base-ui/react/utils/useAnchorPositioning.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getSide, getAlignment, getSideAxis } from '@floating-ui/utils';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { autoUpdate, flip, limitShift, offset, shift, useFloating, size } from \"../floating-ui-react/index.mjs\";\nimport { useDirection } from \"../internals/direction-context/DirectionContext.mjs\";\nimport { arrow } from \"../floating-ui-react/middleware/arrow.mjs\";\nimport { hide } from \"./hideMiddleware.mjs\";\nimport { DEFAULT_SIDES } from \"./adaptiveOriginMiddleware.mjs\";\nfunction getLogicalSide(sideParam, renderedSide, isRtl) {\n const isLogicalSideParam = sideParam === 'inline-start' || sideParam === 'inline-end';\n const logicalRight = isRtl ? 'inline-start' : 'inline-end';\n const logicalLeft = isRtl ? 'inline-end' : 'inline-start';\n return {\n top: 'top',\n right: isLogicalSideParam ? logicalRight : 'right',\n bottom: 'bottom',\n left: isLogicalSideParam ? logicalLeft : 'left'\n }[renderedSide];\n}\nfunction getOffsetData(state, sideParam, isRtl) {\n const {\n rects,\n placement\n } = state;\n const data = {\n side: getLogicalSide(sideParam, getSide(placement), isRtl),\n align: getAlignment(placement) || 'center',\n anchor: {\n width: rects.reference.width,\n height: rects.reference.height\n },\n positioner: {\n width: rects.floating.width,\n height: rects.floating.height\n }\n };\n return data;\n}\n/**\n * Provides standardized anchor positioning behavior for floating elements. Wraps Floating UI's\n * `useFloating` hook.\n */\nexport function useAnchorPositioning(params) {\n const {\n // Public parameters\n anchor,\n positionMethod = 'absolute',\n side: sideParam = 'bottom',\n sideOffset = 0,\n align = 'center',\n alignOffset = 0,\n collisionBoundary,\n collisionPadding: collisionPaddingParam = 5,\n sticky = false,\n arrowPadding = 5,\n disableAnchorTracking = false,\n inline: inlineMiddleware,\n // Private parameters\n keepMounted = false,\n floatingRootContext,\n mounted,\n collisionAvoidance,\n shiftCrossAxis = false,\n nodeId,\n adaptiveOrigin,\n lazyFlip = false,\n externalTree\n } = params;\n const [mountSide, setMountSide] = React.useState(null);\n if (!mounted && mountSide !== null) {\n setMountSide(null);\n }\n const collisionAvoidanceSide = collisionAvoidance.side || 'flip';\n const collisionAvoidanceAlign = collisionAvoidance.align || 'flip';\n const collisionAvoidanceFallbackAxisSide = collisionAvoidance.fallbackAxisSide || 'end';\n const anchorFn = typeof anchor === 'function' ? anchor : undefined;\n const anchorFnCallback = useStableCallback(anchorFn);\n const anchorDep = anchorFn ? anchorFnCallback : anchor;\n const anchorValueRef = useValueAsRef(anchor);\n const mountedRef = useValueAsRef(mounted);\n const direction = useDirection();\n const isRtl = direction === 'rtl';\n const side = mountSide || {\n top: 'top',\n right: 'right',\n bottom: 'bottom',\n left: 'left',\n 'inline-end': isRtl ? 'left' : 'right',\n 'inline-start': isRtl ? 'right' : 'left'\n }[sideParam];\n const placement = align === 'center' ? side : `${side}-${align}`;\n let collisionPadding = collisionPaddingParam;\n\n // Create a bias to the preferred side.\n // On iOS, when the mobile software keyboard opens, the input is exactly centered\n // in the viewport, but this can cause it to flip to the top undesirably.\n const bias = 1;\n const biasTop = sideParam === 'bottom' ? bias : 0;\n const biasBottom = sideParam === 'top' ? bias : 0;\n const biasLeft = sideParam === 'right' ? bias : 0;\n const biasRight = sideParam === 'left' ? bias : 0;\n if (typeof collisionPadding === 'number') {\n collisionPadding = {\n top: collisionPadding + biasTop,\n right: collisionPadding + biasRight,\n bottom: collisionPadding + biasBottom,\n left: collisionPadding + biasLeft\n };\n } else if (collisionPadding) {\n collisionPadding = {\n top: (collisionPadding.top || 0) + biasTop,\n right: (collisionPadding.right || 0) + biasRight,\n bottom: (collisionPadding.bottom || 0) + biasBottom,\n left: (collisionPadding.left || 0) + biasLeft\n };\n }\n const commonCollisionProps = {\n boundary: collisionBoundary === 'clipping-ancestors' ? 'clippingAncestors' : collisionBoundary,\n padding: collisionPadding\n };\n\n // Using a ref assumes that the arrow element is always present in the DOM for the lifetime of the\n // popup. If this assumption ends up being false, we can switch to state to manage the arrow's\n // presence.\n const arrowRef = React.useRef(null);\n\n // Keep these reactive if they're not functions\n const sideOffsetRef = useValueAsRef(sideOffset);\n const alignOffsetRef = useValueAsRef(alignOffset);\n const sideOffsetDep = typeof sideOffset !== 'function' ? sideOffset : 0;\n const alignOffsetDep = typeof alignOffset !== 'function' ? alignOffset : 0;\n const middleware = [];\n if (inlineMiddleware) {\n middleware.push(inlineMiddleware);\n }\n middleware.push(offset(state => {\n const data = getOffsetData(state, sideParam, isRtl);\n const sideAxis = typeof sideOffsetRef.current === 'function' ? sideOffsetRef.current(data) : sideOffsetRef.current;\n const alignAxis = typeof alignOffsetRef.current === 'function' ? alignOffsetRef.current(data) : alignOffsetRef.current;\n return {\n mainAxis: sideAxis,\n crossAxis: alignAxis,\n alignmentAxis: alignAxis\n };\n }, [sideOffsetDep, alignOffsetDep, isRtl, sideParam]));\n const shiftDisabled = collisionAvoidanceAlign === 'none' && collisionAvoidanceSide !== 'shift';\n const crossAxisShiftEnabled = !shiftDisabled && (sticky || shiftCrossAxis || collisionAvoidanceSide === 'shift');\n const flipMiddleware = collisionAvoidanceSide === 'none' ? null : flip({\n ...commonCollisionProps,\n // Ensure the popup flips if it's been limited by its --available-height and it resizes.\n // Since the size() padding is smaller than the flip() padding, flip() will take precedence.\n padding: {\n top: collisionPadding.top + bias,\n right: collisionPadding.right + bias,\n bottom: collisionPadding.bottom + bias,\n left: collisionPadding.left + bias\n },\n mainAxis: !shiftCrossAxis && collisionAvoidanceSide === 'flip',\n crossAxis: collisionAvoidanceAlign === 'flip' ? 'alignment' : false,\n fallbackAxisSideDirection: collisionAvoidanceFallbackAxisSide\n });\n const shiftMiddleware = shiftDisabled ? null : shift(data => {\n const html = ownerDocument(data.elements.floating).documentElement;\n return {\n ...commonCollisionProps,\n // Use the Layout Viewport to avoid shifting around when pinch-zooming\n // for context menus.\n rootBoundary: shiftCrossAxis ? {\n x: 0,\n y: 0,\n width: html.clientWidth,\n height: html.clientHeight\n } : undefined,\n mainAxis: collisionAvoidanceAlign !== 'none',\n crossAxis: crossAxisShiftEnabled,\n limiter: sticky || shiftCrossAxis ? undefined : limitShift(limitData => {\n if (!arrowRef.current) {\n return {};\n }\n const {\n width,\n height\n } = arrowRef.current.getBoundingClientRect();\n const sideAxis = getSideAxis(getSide(limitData.placement));\n const arrowSize = sideAxis === 'y' ? width : height;\n const offsetAmount = sideAxis === 'y' ? collisionPadding.left + collisionPadding.right : collisionPadding.top + collisionPadding.bottom;\n return {\n offset: arrowSize / 2 + offsetAmount / 2\n };\n })\n };\n }, [commonCollisionProps, sticky, shiftCrossAxis, collisionPadding, collisionAvoidanceAlign]);\n\n // https://floating-ui.com/docs/flip#combining-with-shift\n if (collisionAvoidanceSide === 'shift' || collisionAvoidanceAlign === 'shift' || align === 'center') {\n middleware.push(shiftMiddleware, flipMiddleware);\n } else {\n middleware.push(flipMiddleware, shiftMiddleware);\n }\n middleware.push(size({\n ...commonCollisionProps,\n apply({\n elements: {\n floating\n },\n availableWidth,\n availableHeight,\n rects\n }) {\n if (!mountedRef.current) {\n return;\n }\n const floatingStyle = floating.style;\n floatingStyle.setProperty('--available-width', `${availableWidth}px`);\n floatingStyle.setProperty('--available-height', `${availableHeight}px`);\n\n // Snap anchor dimensions to device pixels to ensure the popup's visual width matches the anchor's one.\n const dpr = ownerWindow(floating).devicePixelRatio || 1;\n const {\n x,\n y,\n width,\n height\n } = rects.reference;\n const anchorWidth = (Math.round((x + width) * dpr) - Math.round(x * dpr)) / dpr;\n const anchorHeight = (Math.round((y + height) * dpr) - Math.round(y * dpr)) / dpr;\n floatingStyle.setProperty('--anchor-width', `${anchorWidth}px`);\n floatingStyle.setProperty('--anchor-height', `${anchorHeight}px`);\n }\n }), arrow(state => ({\n // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,\n // we'll create a fake element.\n element: arrowRef.current || ownerDocument(state.elements.floating).createElement('div'),\n padding: arrowPadding,\n offsetParent: 'floating'\n }), [arrowPadding]), {\n name: 'transformOrigin',\n fn(state) {\n const {\n elements,\n middlewareData,\n placement: renderedPlacement,\n rects,\n y\n } = state;\n const currentRenderedSide = getSide(renderedPlacement);\n const currentRenderedAxis = getSideAxis(currentRenderedSide);\n const arrowEl = arrowRef.current;\n const arrowX = middlewareData.arrow?.x || 0;\n const arrowY = middlewareData.arrow?.y || 0;\n const arrowWidth = arrowEl?.clientWidth || 0;\n const arrowHeight = arrowEl?.clientHeight || 0;\n const transformX = arrowX + arrowWidth / 2;\n const transformY = arrowY + arrowHeight / 2;\n const shiftY = Math.abs(middlewareData.shift?.y || 0);\n const halfAnchorHeight = rects.reference.height / 2;\n const sideOffsetValue = typeof sideOffset === 'function' ? sideOffset(getOffsetData(state, sideParam, isRtl)) : sideOffset;\n const isOverlappingAnchor = shiftY > sideOffsetValue;\n const adjacentTransformOrigin = {\n top: `${transformX}px calc(100% + ${sideOffsetValue}px)`,\n bottom: `${transformX}px ${-sideOffsetValue}px`,\n left: `calc(100% + ${sideOffsetValue}px) ${transformY}px`,\n right: `${-sideOffsetValue}px ${transformY}px`\n }[currentRenderedSide];\n const overlapTransformOrigin = `${transformX}px ${rects.reference.y + halfAnchorHeight - y}px`;\n elements.floating.style.setProperty('--transform-origin', crossAxisShiftEnabled && currentRenderedAxis === 'y' && isOverlappingAnchor ? overlapTransformOrigin : adjacentTransformOrigin);\n return {};\n }\n }, hide, adaptiveOrigin);\n useIsoLayoutEffect(() => {\n // Ensure positioning doesn't run initially for `keepMounted` elements that\n // aren't initially open.\n if (!mounted && floatingRootContext) {\n floatingRootContext.update({\n referenceElement: null,\n floatingElement: null,\n domReferenceElement: null,\n positionReference: null\n });\n }\n }, [mounted, floatingRootContext]);\n const autoUpdateOptions = React.useMemo(() => ({\n elementResize: !disableAnchorTracking && typeof ResizeObserver !== 'undefined',\n layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== 'undefined'\n }), [disableAnchorTracking]);\n const {\n refs,\n elements,\n x,\n y,\n middlewareData,\n update,\n placement: renderedPlacement,\n context,\n isPositioned,\n floatingStyles: originalFloatingStyles\n } = useFloating({\n rootContext: floatingRootContext,\n open: keepMounted ? mounted : undefined,\n placement,\n middleware,\n strategy: positionMethod,\n whileElementsMounted: keepMounted ? undefined : (...args) => autoUpdate(...args, autoUpdateOptions),\n nodeId,\n externalTree\n });\n const {\n sideX,\n sideY\n } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;\n\n // Default to `fixed` when not positioned to prevent `autoFocus` scroll jumps.\n // This ensures the popup is inside the viewport initially before it gets positioned.\n const resolvedPosition = isPositioned ? positionMethod : 'fixed';\n const floatingStyles = React.useMemo(() => {\n const base = adaptiveOrigin ? {\n position: resolvedPosition,\n [sideX]: x,\n [sideY]: y\n } : {\n position: resolvedPosition,\n ...originalFloatingStyles\n };\n if (!isPositioned) {\n base.opacity = 0;\n }\n return base;\n }, [adaptiveOrigin, resolvedPosition, sideX, x, sideY, y, originalFloatingStyles, isPositioned]);\n const registeredPositionReferenceRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n const resolvedAnchor = typeof anchorValue === 'function' ? anchorValue() : anchorValue;\n const unwrappedElement = (isRef(resolvedAnchor) ? resolvedAnchor.current : resolvedAnchor) || null;\n const finalAnchor = unwrappedElement || null;\n if (finalAnchor !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(finalAnchor);\n registeredPositionReferenceRef.current = finalAnchor;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n\n // Refs from parent components are set after useLayoutEffect runs and are available in useEffect.\n // Therefore, if the anchor is a ref, we need to update the position reference in useEffect.\n if (typeof anchorValue === 'function') {\n return;\n }\n if (isRef(anchorValue) && anchorValue.current !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(anchorValue.current);\n registeredPositionReferenceRef.current = anchorValue.current;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (keepMounted && mounted && elements.reference && elements.floating) {\n return autoUpdate(elements.reference, elements.floating, update, autoUpdateOptions);\n }\n return undefined;\n }, [keepMounted, mounted, elements, update, autoUpdateOptions]);\n const renderedSide = getSide(renderedPlacement);\n const logicalRenderedSide = getLogicalSide(sideParam, renderedSide, isRtl);\n const renderedAlign = getAlignment(renderedPlacement) || 'center';\n const anchorHidden = Boolean(middlewareData.hide?.referenceHidden);\n\n // Locks the flip (makes it \"sticky\") so it doesn't prefer a given placement\n // and flips back lazily, not eagerly. Ideal for filtered lists that change\n // the size of the popup dynamically to avoid unwanted flipping when typing.\n useIsoLayoutEffect(() => {\n if (lazyFlip && mounted && isPositioned) {\n setMountSide(renderedSide);\n }\n }, [lazyFlip, mounted, isPositioned, renderedSide]);\n const arrowStyles = React.useMemo(() => ({\n position: 'absolute',\n top: middlewareData.arrow?.y,\n left: middlewareData.arrow?.x\n }), [middlewareData.arrow]);\n const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;\n return React.useMemo(() => ({\n positionerStyles: floatingStyles,\n arrowStyles,\n arrowRef,\n arrowUncentered,\n side: logicalRenderedSide,\n align: renderedAlign,\n physicalSide: renderedSide,\n anchorHidden,\n refs,\n context,\n isPositioned,\n update\n }), [floatingStyles, arrowStyles, arrowRef, arrowUncentered, logicalRenderedSide, renderedAlign, renderedSide, anchorHidden, refs, context, isPositioned, update]);\n}\nfunction isRef(param) {\n return param != null && 'current' in param;\n}"],"names":["getLogicalSide","sideParam","renderedSide","isRtl","isLogicalSideParam","getOffsetData","state","rects","placement","getSide","getAlignment","useAnchorPositioning","params","anchor","positionMethod","sideOffset","align","alignOffset","collisionBoundary","collisionPaddingParam","sticky","arrowPadding","disableAnchorTracking","inlineMiddleware","keepMounted","floatingRootContext","mounted","collisionAvoidance","shiftCrossAxis","nodeId","adaptiveOrigin","lazyFlip","externalTree","mountSide","setMountSide","React","collisionAvoidanceSide","collisionAvoidanceAlign","collisionAvoidanceFallbackAxisSide","anchorFn","anchorFnCallback","useStableCallback","anchorDep","anchorValueRef","useValueAsRef","mountedRef","useDirection","side","collisionPadding","bias","biasTop","biasBottom","biasLeft","biasRight","commonCollisionProps","arrowRef","sideOffsetRef","alignOffsetRef","sideOffsetDep","alignOffsetDep","middleware","offset","data","sideAxis","alignAxis","shiftDisabled","crossAxisShiftEnabled","flipMiddleware","flip","shiftMiddleware","shift","html","ownerDocument","limitShift","limitData","width","height","getSideAxis","arrowSize","offsetAmount","size","floating","availableWidth","availableHeight","floatingStyle","dpr","ownerWindow","x","y","anchorWidth","anchorHeight","arrow","elements","middlewareData","renderedPlacement","currentRenderedSide","currentRenderedAxis","arrowEl","arrowX","arrowY","arrowWidth","arrowHeight","transformX","transformY","shiftY","halfAnchorHeight","sideOffsetValue","isOverlappingAnchor","adjacentTransformOrigin","overlapTransformOrigin","hide","useIsoLayoutEffect","autoUpdateOptions","refs","update","context","isPositioned","originalFloatingStyles","useFloating","args","autoUpdate","sideX","sideY","DEFAULT_SIDES","resolvedPosition","floatingStyles","base","registeredPositionReferenceRef","anchorValue","resolvedAnchor","finalAnchor","isRef","logicalRenderedSide","renderedAlign","anchorHidden","arrowStyles","arrowUncentered","param"],"mappings":";;;;;;;;;;;;;;AAaA,SAASA,GAAeC,GAAWC,GAAcC,GAAO;AACtD,QAAMC,IAAqBH,MAAc,kBAAkBA,MAAc;AAGzE,SAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAOG,IAJYD,IAAQ,iBAAiB,eAID;AAAA,IAC3C,QAAQ;AAAA,IACR,MAAMC,IALYD,IAAQ,eAAe,iBAKA;AAAA,EAC7C,EAAID,CAAY;AAChB;AACA,SAASG,GAAcC,GAAOL,GAAWE,GAAO;AAC9C,QAAM;AAAA,IACJ,OAAAI;AAAA,IACA,WAAAC;AAAA,EACJ,IAAMF;AAaJ,SAZa;AAAA,IACX,MAAMN,GAAeC,GAAWQ,EAAQD,CAAS,GAAGL,CAAK;AAAA,IACzD,OAAOO,GAAaF,CAAS,KAAK;AAAA,IAClC,QAAQ;AAAA,MACN,OAAOD,EAAM,UAAU;AAAA,MACvB,QAAQA,EAAM,UAAU;AAAA,IAC9B;AAAA,IACI,YAAY;AAAA,MACV,OAAOA,EAAM,SAAS;AAAA,MACtB,QAAQA,EAAM,SAAS;AAAA,IAC7B;AAAA,EACA;AAEA;AAKO,SAASI,GAAqBC,GAAQ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AAK,CAAC,GACpB2C,KAAkB3C,EAAe,OAAO,iBAAiB;AAC/D,SAAO1D,EAAM,QAAQ,OAAO;AAAA,IAC1B,kBAAkB0F;AAAA,IAClB,aAAAU;AAAA,IACA,UAAAhF;AAAA,IACA,iBAAAiF;AAAA,IACA,MAAMJ;AAAA,IACN,OAAOC;AAAA,IACP,cAAcnI;AAAA,IACd,cAAAoI;AAAA,IACA,MAAArB;AAAA,IACA,SAAAE;AAAA,IACA,cAAAC;AAAA,IACA,QAAAF;AAAA,EACJ,IAAM,CAACW,IAAgBU,IAAahF,GAAUiF,IAAiBJ,IAAqBC,IAAenI,GAAcoI,IAAcrB,GAAME,IAASC,GAAcF,CAAM,CAAC;AACnK;AACA,SAASiB,GAAMM,GAAO;AACpB,SAAOA,KAAS,QAAQ,aAAaA;AACvC;","x_google_ignoreList":[0]}
package/dist/index321.js CHANGED
@@ -1,99 +1,15 @@
1
- import N from "./index328.js";
2
- import g from "./index159.js";
3
- import m, { getCountryCallingCode as s } from "./index164.js";
4
- import h from "./index329.js";
5
- import { formatRFC3966 as I } from "./index327.js";
6
- var l = {
7
- formatExtension: function(t, r, e) {
8
- return "".concat(t).concat(e.ext()).concat(r);
9
- }
10
- };
11
- function O(n, t, r, e) {
12
- if (r ? r = E({}, l, r) : r = l, e = new m(e), n.country && n.country !== "001") {
13
- if (!e.hasCountry(n.country))
14
- throw new Error("Unknown country: ".concat(n.country));
15
- e.selectNumberingPlan(n.country);
16
- } else if (n.countryCallingCode)
17
- e.selectNumberingPlan(n.countryCallingCode);
18
- else return n.phone || "";
19
- var o = e.countryCallingCode(), a = r.v2 ? n.nationalNumber : n.phone, c;
20
- switch (t) {
21
- case "NATIONAL":
22
- return a ? (c = f(a, n.carrierCode, "NATIONAL", e, r), u(c, n.ext, e, r.formatExtension)) : "";
23
- case "INTERNATIONAL":
24
- return a ? (c = f(a, null, "INTERNATIONAL", e, r), c = "+".concat(o, " ").concat(c), u(c, n.ext, e, r.formatExtension)) : "+".concat(o);
25
- case "E.164":
26
- return "+".concat(o).concat(a);
27
- case "RFC3966":
28
- return I({
29
- number: "+".concat(o).concat(a),
30
- ext: n.ext
31
- });
32
- // For reference, here's Google's IDD formatter:
33
- // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
34
- // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
35
- // Who would even need to format phone numbers in IDD format anyway?
36
- case "IDD":
37
- if (!r.fromCountry)
38
- return;
39
- var i = A(a, n.carrierCode, o, r.fromCountry, e);
40
- return i ? u(i, n.ext, e, r.formatExtension) : void 0;
41
- default:
42
- throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
43
- }
44
- }
45
- function f(n, t, r, e, o) {
46
- var a = x(e.formats(), n);
47
- return a ? g(n, a, {
48
- useInternationalFormat: r === "INTERNATIONAL",
49
- withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && o && o.nationalPrefix === !1),
50
- carrierCode: t,
51
- metadata: e
52
- }) : n;
53
- }
54
- function x(n, t) {
55
- return v(n, function(r) {
56
- if (r.leadingDigitsPatterns().length > 0) {
57
- var e = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
58
- if (t.search(e) !== 0)
59
- return !1;
60
- }
61
- return N(t, r.pattern());
62
- });
63
- }
64
- function u(n, t, r, e) {
65
- return t ? e(n, t, r) : n;
66
- }
67
- function A(n, t, r, e, o) {
68
- var a = s(e, o.metadata);
69
- if (a === r) {
70
- var c = f(n, t, "NATIONAL", o);
71
- return r === "1" ? r + " " + c : c;
72
- }
73
- var i = h(e, void 0, o.metadata);
74
- if (i)
75
- return "".concat(i, " ").concat(r, " ").concat(f(n, null, "INTERNATIONAL", o));
76
- }
77
- function E() {
78
- for (var n = 1, t = arguments.length, r = new Array(t), e = 0; e < t; e++)
79
- r[e] = arguments[e];
80
- for (; n < r.length; ) {
81
- if (r[n])
82
- for (var o in r[n])
83
- r[0][o] = r[n][o];
84
- n++;
85
- }
86
- return r[0];
87
- }
88
- function v(n, t) {
89
- for (var r = 0; r < n.length; ) {
90
- if (t(n[r]))
91
- return n[r];
92
- r++;
93
- }
1
+ import n from "./index190.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectPositionerContext");
5
+ function i() {
6
+ const e = t.useContext(o);
7
+ if (!e)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : n(59));
9
+ return e;
94
10
  }
95
11
  export {
96
- x as chooseFormatForNumber,
97
- O as default
12
+ o as SelectPositionerContext,
13
+ i as useSelectPositionerContext
98
14
  };
99
15
  //# sourceMappingURL=index321.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index321.js","sources":["../../../node_modules/libphonenumber-js/es6/format.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n\n/**\r\n * Formats a phone number.\r\n *\r\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\r\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\r\n *\r\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\r\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\r\n *\r\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: '...' }`.\r\n * @param {string} format\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\nexport default function formatNumber(input, format, options, metadata) {\n // Apply default options.\n if (options) {\n // Using ES6 \"rest spread\" syntax here didn't work with `babel`/`istanbul`\n // for some weird reason: this line of code would cause the code coverage\n // to show as not 100%. That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // options = { ...DEFAULT_OPTIONS, ...options }\n //\n options = merge({}, DEFAULT_OPTIONS, options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n metadata = new Metadata(metadata);\n\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance.\n // Also, according to the `PhoneNumber` class source code, `country` can't be \"001\".\n // It means that normally `input.country` or `input.countryCallingCode` is supposed\n // to be present because either of the two is always required to exist in a `PhoneNumber` instance.\n // This means that realistically, it's gonna step into either the first `if`\n // or the following `else if`, and normally it won't even reach the legacy-compatibility\n // `else return input.phone || ''` part.\n // So normally, it won't ever return an empty string here.\n if (input.country && input.country !== '001') {\n // Validate `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 if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n var number;\n switch (format) {\n case 'NATIONAL':\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance,\n // and a `PhoneNumber` class instance is always required to have a `nationalNumber`.\n // This means that the `if (!nationalNumber)` below is just for legacy-compatibility\n // and it normally can't really happen, so normally it won't ever return an empty string here.\n if (!nationalNumber) {\n return '';\n }\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n case 'IDD':\n // If the required `fromCountry` parameter is not passed, it will return `undefined`.\n if (!options.fromCountry) {\n return;\n // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n // If the country of the phone number doesn't support IDD calling, it will return `undefined`.\n if (!formattedNumber) {\n return;\n }\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n if (!format) {\n return number;\n }\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\nexport function chooseFormatForNumber(availableFormats, nationalNumber) {\n // Using a `for ... of` loop here didn't work with `babel`/`istanbul`:\n // for some weird reason, it showed code coverage less than 100%.\n // That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // for (const format of availableFormats) { ... }\n //\n return pickFirstMatchingElement(availableFormats, function (format) {\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];\n // If leading digits don't match then move on to the next phone number format\n if (nationalNumber.search(lastLeadingDigitsPattern) !== 0) {\n return false;\n }\n }\n // Check that the national number matches the phone number format regular expression\n return matchesEntirely(nationalNumber, format.pattern());\n });\n}\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata);\n // When calling within the same country calling code.\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata);\n // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n }\n // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n return formattedNumber;\n }\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\nfunction merge() {\n var i = 1;\n for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {\n objects[_key] = arguments[_key];\n }\n while (i < objects.length) {\n if (objects[i]) {\n for (var key in objects[i]) {\n objects[0][key] = objects[i][key];\n }\n }\n i++;\n }\n return objects[0];\n}\nfunction pickFirstMatchingElement(elements, testFunction) {\n var i = 0;\n while (i < elements.length) {\n if (testFunction(elements[i])) {\n return elements[i];\n }\n i++;\n }\n}\n//# sourceMappingURL=format.js.map"],"names":["DEFAULT_OPTIONS","formattedNumber","extension","metadata","formatNumber","input","format","options","merge","Metadata","countryCallingCode","nationalNumber","number","formatNationalNumber","addExtension","formatRFC3966","formatIDD","carrierCode","formatAs","chooseFormatForNumber","formatNationalNumberUsingFormat","availableFormats","pickFirstMatchingElement","lastLeadingDigitsPattern","matchesEntirely","ext","formatExtension","fromCountry","fromCountryCallingCode","getCountryCallingCode","iddPrefix","getIddPrefix","i","_len","objects","_key","key","elements","testFunction"],"mappings":";;;;;AAUA,IAAIA,IAAkB;AAAA,EACpB,iBAAiB,SAAyBC,GAAiBC,GAAWC,GAAU;AAC9E,WAAO,GAAG,OAAOF,CAAe,EAAE,OAAOE,EAAS,IAAG,CAAE,EAAE,OAAOD,CAAS;AAAA,EAC3E;AACF;AAiBe,SAASE,EAAaC,GAAOC,GAAQC,GAASJ,GAAU;AAwBrE,MAtBII,IAQFA,IAAUC,EAAM,IAAIR,GAAiBO,CAAO,IAE5CA,IAAUP,GAEZG,IAAW,IAAIM,EAASN,CAAQ,GAU5BE,EAAM,WAAWA,EAAM,YAAY,OAAO;AAE5C,QAAI,CAACF,EAAS,WAAWE,EAAM,OAAO;AACpC,YAAM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;AACA,SAASK,IAAQ;AAEf,WADIwB,IAAI,GACCC,IAAO,UAAU,QAAQC,IAAU,IAAI,MAAMD,CAAI,GAAGE,IAAO,GAAGA,IAAOF,GAAME;AAClF,IAAAD,EAAQC,CAAI,IAAI,UAAUA,CAAI;AAEhC,SAAOH,IAAIE,EAAQ,UAAQ;AACzB,QAAIA,EAAQF,CAAC;AACX,eAASI,KAAOF,EAAQF,CAAC;AACvB,QAAAE,EAAQ,CAAC,EAAEE,CAAG,IAAIF,EAAQF,CAAC,EAAEI,CAAG;AAGpC,IAAAJ;AAAA,EACF;AACA,SAAOE,EAAQ,CAAC;AAClB;AACA,SAASZ,EAAyBe,GAAUC,GAAc;AAExD,WADIN,IAAI,GACDA,IAAIK,EAAS,UAAQ;AAC1B,QAAIC,EAAaD,EAASL,CAAC,CAAC;AAC1B,aAAOK,EAASL,CAAC;AAEnB,IAAAA;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index321.js","sources":["../node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPositionerContext.displayName = \"SelectPositionerContext\";\nexport function useSelectPositionerContext() {\n const context = React.useContext(SelectPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.' : _formatErrorMessage(59));\n }\n return context;\n}"],"names":["SelectPositionerContext","React","useSelectPositionerContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAuC,gBAAAC,EAAM,cAAc,MAAS;AAC7E,QAAQ,IAAI,aAAa,iBAAcD,EAAwB,cAAc;AAC1E,SAASE,IAA6B;AAC3C,QAAMC,IAAUF,EAAM,WAAWD,CAAuB;AACxD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,mHAAmHC,EAAoB,EAAE,CAAC;AAEpM,SAAOD;AACT;","x_google_ignoreList":[0]}