1mpacto-react-ui 0.0.9 → 0.0.11

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 (1297) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/index.cjs +97 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.mjs +20974 -56
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/src/components/Collapse/Collapse.d.ts +4 -0
  7. package/dist/src/interfaces/components/Button/index.d.ts +1 -1
  8. package/dist/src/interfaces/components/Collapse/index.d.ts +7 -0
  9. package/package.json +1 -1
  10. package/dist/index10.cjs +0 -11
  11. package/dist/index10.cjs.map +0 -1
  12. package/dist/index10.mjs +0 -110
  13. package/dist/index10.mjs.map +0 -1
  14. package/dist/index100.cjs +0 -2
  15. package/dist/index100.cjs.map +0 -1
  16. package/dist/index100.mjs +0 -105
  17. package/dist/index100.mjs.map +0 -1
  18. package/dist/index101.cjs +0 -2
  19. package/dist/index101.cjs.map +0 -1
  20. package/dist/index101.mjs +0 -101
  21. package/dist/index101.mjs.map +0 -1
  22. package/dist/index102.cjs +0 -2
  23. package/dist/index102.cjs.map +0 -1
  24. package/dist/index102.mjs +0 -100
  25. package/dist/index102.mjs.map +0 -1
  26. package/dist/index103.cjs +0 -2
  27. package/dist/index103.cjs.map +0 -1
  28. package/dist/index103.mjs +0 -26
  29. package/dist/index103.mjs.map +0 -1
  30. package/dist/index104.cjs +0 -2
  31. package/dist/index104.cjs.map +0 -1
  32. package/dist/index104.mjs +0 -11
  33. package/dist/index104.mjs.map +0 -1
  34. package/dist/index105.cjs +0 -2
  35. package/dist/index105.cjs.map +0 -1
  36. package/dist/index105.mjs +0 -14
  37. package/dist/index105.mjs.map +0 -1
  38. package/dist/index106.cjs +0 -2
  39. package/dist/index106.cjs.map +0 -1
  40. package/dist/index106.mjs +0 -7
  41. package/dist/index106.mjs.map +0 -1
  42. package/dist/index107.cjs +0 -2
  43. package/dist/index107.cjs.map +0 -1
  44. package/dist/index107.mjs +0 -16
  45. package/dist/index107.mjs.map +0 -1
  46. package/dist/index108.cjs +0 -2
  47. package/dist/index108.cjs.map +0 -1
  48. package/dist/index108.mjs +0 -17
  49. package/dist/index108.mjs.map +0 -1
  50. package/dist/index109.cjs +0 -2
  51. package/dist/index109.cjs.map +0 -1
  52. package/dist/index109.mjs +0 -18
  53. package/dist/index109.mjs.map +0 -1
  54. package/dist/index11.cjs +0 -2
  55. package/dist/index11.cjs.map +0 -1
  56. package/dist/index11.mjs +0 -82
  57. package/dist/index11.mjs.map +0 -1
  58. package/dist/index110.cjs +0 -2
  59. package/dist/index110.cjs.map +0 -1
  60. package/dist/index110.mjs +0 -11
  61. package/dist/index110.mjs.map +0 -1
  62. package/dist/index111.cjs +0 -5
  63. package/dist/index111.cjs.map +0 -1
  64. package/dist/index111.mjs +0 -868
  65. package/dist/index111.mjs.map +0 -1
  66. package/dist/index112.cjs +0 -2
  67. package/dist/index112.cjs.map +0 -1
  68. package/dist/index112.mjs +0 -273
  69. package/dist/index112.mjs.map +0 -1
  70. package/dist/index113.cjs +0 -2
  71. package/dist/index113.cjs.map +0 -1
  72. package/dist/index113.mjs +0 -37
  73. package/dist/index113.mjs.map +0 -1
  74. package/dist/index114.cjs +0 -3
  75. package/dist/index114.cjs.map +0 -1
  76. package/dist/index114.mjs +0 -91
  77. package/dist/index114.mjs.map +0 -1
  78. package/dist/index115.cjs +0 -2
  79. package/dist/index115.cjs.map +0 -1
  80. package/dist/index115.mjs +0 -35
  81. package/dist/index115.mjs.map +0 -1
  82. package/dist/index116.cjs +0 -2
  83. package/dist/index116.cjs.map +0 -1
  84. package/dist/index116.mjs +0 -9
  85. package/dist/index116.mjs.map +0 -1
  86. package/dist/index117.cjs +0 -10
  87. package/dist/index117.cjs.map +0 -1
  88. package/dist/index117.mjs +0 -167
  89. package/dist/index117.mjs.map +0 -1
  90. package/dist/index118.cjs +0 -2
  91. package/dist/index118.cjs.map +0 -1
  92. package/dist/index118.mjs +0 -18
  93. package/dist/index118.mjs.map +0 -1
  94. package/dist/index119.cjs +0 -3
  95. package/dist/index119.cjs.map +0 -1
  96. package/dist/index119.mjs +0 -300
  97. package/dist/index119.mjs.map +0 -1
  98. package/dist/index12.cjs +0 -2
  99. package/dist/index12.cjs.map +0 -1
  100. package/dist/index12.mjs +0 -82
  101. package/dist/index12.mjs.map +0 -1
  102. package/dist/index120.cjs +0 -3
  103. package/dist/index120.cjs.map +0 -1
  104. package/dist/index120.mjs +0 -50
  105. package/dist/index120.mjs.map +0 -1
  106. package/dist/index121.cjs +0 -2
  107. package/dist/index121.cjs.map +0 -1
  108. package/dist/index121.mjs +0 -28
  109. package/dist/index121.mjs.map +0 -1
  110. package/dist/index122.cjs +0 -2
  111. package/dist/index122.cjs.map +0 -1
  112. package/dist/index122.mjs +0 -13
  113. package/dist/index122.mjs.map +0 -1
  114. package/dist/index123.cjs +0 -2
  115. package/dist/index123.cjs.map +0 -1
  116. package/dist/index123.mjs +0 -19
  117. package/dist/index123.mjs.map +0 -1
  118. package/dist/index124.cjs +0 -2
  119. package/dist/index124.cjs.map +0 -1
  120. package/dist/index124.mjs +0 -115
  121. package/dist/index124.mjs.map +0 -1
  122. package/dist/index125.cjs +0 -2
  123. package/dist/index125.cjs.map +0 -1
  124. package/dist/index125.mjs +0 -132
  125. package/dist/index125.mjs.map +0 -1
  126. package/dist/index126.cjs +0 -2
  127. package/dist/index126.cjs.map +0 -1
  128. package/dist/index126.mjs +0 -51
  129. package/dist/index126.mjs.map +0 -1
  130. package/dist/index127.cjs +0 -2
  131. package/dist/index127.cjs.map +0 -1
  132. package/dist/index127.mjs +0 -12
  133. package/dist/index127.mjs.map +0 -1
  134. package/dist/index128.cjs +0 -2
  135. package/dist/index128.cjs.map +0 -1
  136. package/dist/index128.mjs +0 -11
  137. package/dist/index128.mjs.map +0 -1
  138. package/dist/index129.cjs +0 -2
  139. package/dist/index129.cjs.map +0 -1
  140. package/dist/index129.mjs +0 -13
  141. package/dist/index129.mjs.map +0 -1
  142. package/dist/index13.cjs +0 -2
  143. package/dist/index13.cjs.map +0 -1
  144. package/dist/index13.mjs +0 -48
  145. package/dist/index13.mjs.map +0 -1
  146. package/dist/index130.cjs +0 -2
  147. package/dist/index130.cjs.map +0 -1
  148. package/dist/index130.mjs +0 -6
  149. package/dist/index130.mjs.map +0 -1
  150. package/dist/index131.cjs +0 -2
  151. package/dist/index131.cjs.map +0 -1
  152. package/dist/index131.mjs +0 -7
  153. package/dist/index131.mjs.map +0 -1
  154. package/dist/index132.cjs +0 -2
  155. package/dist/index132.cjs.map +0 -1
  156. package/dist/index132.mjs +0 -25
  157. package/dist/index132.mjs.map +0 -1
  158. package/dist/index133.cjs +0 -2
  159. package/dist/index133.cjs.map +0 -1
  160. package/dist/index133.mjs +0 -12
  161. package/dist/index133.mjs.map +0 -1
  162. package/dist/index134.cjs +0 -3
  163. package/dist/index134.cjs.map +0 -1
  164. package/dist/index134.mjs +0 -8
  165. package/dist/index134.mjs.map +0 -1
  166. package/dist/index135.cjs +0 -2
  167. package/dist/index135.cjs.map +0 -1
  168. package/dist/index135.mjs +0 -13
  169. package/dist/index135.mjs.map +0 -1
  170. package/dist/index136.cjs +0 -2
  171. package/dist/index136.cjs.map +0 -1
  172. package/dist/index136.mjs +0 -10
  173. package/dist/index136.mjs.map +0 -1
  174. package/dist/index137.cjs +0 -2
  175. package/dist/index137.cjs.map +0 -1
  176. package/dist/index137.mjs +0 -9
  177. package/dist/index137.mjs.map +0 -1
  178. package/dist/index138.cjs +0 -2
  179. package/dist/index138.cjs.map +0 -1
  180. package/dist/index138.mjs +0 -9
  181. package/dist/index138.mjs.map +0 -1
  182. package/dist/index139.cjs +0 -2
  183. package/dist/index139.cjs.map +0 -1
  184. package/dist/index139.mjs +0 -14
  185. package/dist/index139.mjs.map +0 -1
  186. package/dist/index14.cjs +0 -2
  187. package/dist/index14.cjs.map +0 -1
  188. package/dist/index14.mjs +0 -16
  189. package/dist/index14.mjs.map +0 -1
  190. package/dist/index140.cjs +0 -2
  191. package/dist/index140.cjs.map +0 -1
  192. package/dist/index140.mjs +0 -11
  193. package/dist/index140.mjs.map +0 -1
  194. package/dist/index141.cjs +0 -2
  195. package/dist/index141.cjs.map +0 -1
  196. package/dist/index141.mjs +0 -8
  197. package/dist/index141.mjs.map +0 -1
  198. package/dist/index142.cjs +0 -2
  199. package/dist/index142.cjs.map +0 -1
  200. package/dist/index142.mjs +0 -7
  201. package/dist/index142.mjs.map +0 -1
  202. package/dist/index143.cjs +0 -3
  203. package/dist/index143.cjs.map +0 -1
  204. package/dist/index143.mjs +0 -8
  205. package/dist/index143.mjs.map +0 -1
  206. package/dist/index144.cjs +0 -2
  207. package/dist/index144.cjs.map +0 -1
  208. package/dist/index144.mjs +0 -419
  209. package/dist/index144.mjs.map +0 -1
  210. package/dist/index145.cjs +0 -2
  211. package/dist/index145.cjs.map +0 -1
  212. package/dist/index145.mjs +0 -132
  213. package/dist/index145.mjs.map +0 -1
  214. package/dist/index146.cjs +0 -2
  215. package/dist/index146.cjs.map +0 -1
  216. package/dist/index146.mjs +0 -76
  217. package/dist/index146.mjs.map +0 -1
  218. package/dist/index147.cjs +0 -2
  219. package/dist/index147.cjs.map +0 -1
  220. package/dist/index147.mjs +0 -22
  221. package/dist/index147.mjs.map +0 -1
  222. package/dist/index148.cjs +0 -2
  223. package/dist/index148.cjs.map +0 -1
  224. package/dist/index148.mjs +0 -99
  225. package/dist/index148.mjs.map +0 -1
  226. package/dist/index149.cjs +0 -2
  227. package/dist/index149.cjs.map +0 -1
  228. package/dist/index149.mjs +0 -18
  229. package/dist/index149.mjs.map +0 -1
  230. package/dist/index15.cjs +0 -2
  231. package/dist/index15.cjs.map +0 -1
  232. package/dist/index15.mjs +0 -92
  233. package/dist/index15.mjs.map +0 -1
  234. package/dist/index150.cjs +0 -2
  235. package/dist/index150.cjs.map +0 -1
  236. package/dist/index150.mjs +0 -75
  237. package/dist/index150.mjs.map +0 -1
  238. package/dist/index151.cjs +0 -2
  239. package/dist/index151.cjs.map +0 -1
  240. package/dist/index151.mjs +0 -46
  241. package/dist/index151.mjs.map +0 -1
  242. package/dist/index152.cjs +0 -2
  243. package/dist/index152.cjs.map +0 -1
  244. package/dist/index152.mjs +0 -10
  245. package/dist/index152.mjs.map +0 -1
  246. package/dist/index153.cjs +0 -2
  247. package/dist/index153.cjs.map +0 -1
  248. package/dist/index153.mjs +0 -33
  249. package/dist/index153.mjs.map +0 -1
  250. package/dist/index154.cjs +0 -2
  251. package/dist/index154.cjs.map +0 -1
  252. package/dist/index154.mjs +0 -47
  253. package/dist/index154.mjs.map +0 -1
  254. package/dist/index155.cjs +0 -2
  255. package/dist/index155.cjs.map +0 -1
  256. package/dist/index155.mjs +0 -9
  257. package/dist/index155.mjs.map +0 -1
  258. package/dist/index156.cjs +0 -2
  259. package/dist/index156.cjs.map +0 -1
  260. package/dist/index156.mjs +0 -96
  261. package/dist/index156.mjs.map +0 -1
  262. package/dist/index157.cjs +0 -2
  263. package/dist/index157.cjs.map +0 -1
  264. package/dist/index157.mjs +0 -326
  265. package/dist/index157.mjs.map +0 -1
  266. package/dist/index158.cjs +0 -2
  267. package/dist/index158.cjs.map +0 -1
  268. package/dist/index158.mjs +0 -24
  269. package/dist/index158.mjs.map +0 -1
  270. package/dist/index159.cjs +0 -2
  271. package/dist/index159.cjs.map +0 -1
  272. package/dist/index159.mjs +0 -25
  273. package/dist/index159.mjs.map +0 -1
  274. package/dist/index16.cjs +0 -2
  275. package/dist/index16.cjs.map +0 -1
  276. package/dist/index16.mjs +0 -127
  277. package/dist/index16.mjs.map +0 -1
  278. package/dist/index160.cjs +0 -2
  279. package/dist/index160.cjs.map +0 -1
  280. package/dist/index160.mjs +0 -30
  281. package/dist/index160.mjs.map +0 -1
  282. package/dist/index161.cjs +0 -2
  283. package/dist/index161.cjs.map +0 -1
  284. package/dist/index161.mjs +0 -7
  285. package/dist/index161.mjs.map +0 -1
  286. package/dist/index162.cjs +0 -2
  287. package/dist/index162.cjs.map +0 -1
  288. package/dist/index162.mjs +0 -75
  289. package/dist/index162.mjs.map +0 -1
  290. package/dist/index163.cjs +0 -2
  291. package/dist/index163.cjs.map +0 -1
  292. package/dist/index163.mjs +0 -53
  293. package/dist/index163.mjs.map +0 -1
  294. package/dist/index164.cjs +0 -2
  295. package/dist/index164.cjs.map +0 -1
  296. package/dist/index164.mjs +0 -166
  297. package/dist/index164.mjs.map +0 -1
  298. package/dist/index165.cjs +0 -2
  299. package/dist/index165.cjs.map +0 -1
  300. package/dist/index165.mjs +0 -125
  301. package/dist/index165.mjs.map +0 -1
  302. package/dist/index166.cjs +0 -2
  303. package/dist/index166.cjs.map +0 -1
  304. package/dist/index166.mjs +0 -50
  305. package/dist/index166.mjs.map +0 -1
  306. package/dist/index167.cjs +0 -2
  307. package/dist/index167.cjs.map +0 -1
  308. package/dist/index167.mjs +0 -37
  309. package/dist/index167.mjs.map +0 -1
  310. package/dist/index168.cjs +0 -2
  311. package/dist/index168.cjs.map +0 -1
  312. package/dist/index168.mjs +0 -35
  313. package/dist/index168.mjs.map +0 -1
  314. package/dist/index169.cjs +0 -2
  315. package/dist/index169.cjs.map +0 -1
  316. package/dist/index169.mjs +0 -17
  317. package/dist/index169.mjs.map +0 -1
  318. package/dist/index17.cjs +0 -2
  319. package/dist/index17.cjs.map +0 -1
  320. package/dist/index17.mjs +0 -139
  321. package/dist/index17.mjs.map +0 -1
  322. package/dist/index170.cjs +0 -2
  323. package/dist/index170.cjs.map +0 -1
  324. package/dist/index170.mjs +0 -23
  325. package/dist/index170.mjs.map +0 -1
  326. package/dist/index171.cjs +0 -2
  327. package/dist/index171.cjs.map +0 -1
  328. package/dist/index171.mjs +0 -9
  329. package/dist/index171.mjs.map +0 -1
  330. package/dist/index172.cjs +0 -2
  331. package/dist/index172.cjs.map +0 -1
  332. package/dist/index172.mjs +0 -13
  333. package/dist/index172.mjs.map +0 -1
  334. package/dist/index173.cjs +0 -2
  335. package/dist/index173.cjs.map +0 -1
  336. package/dist/index173.mjs +0 -30
  337. package/dist/index173.mjs.map +0 -1
  338. package/dist/index174.cjs +0 -2
  339. package/dist/index174.cjs.map +0 -1
  340. package/dist/index174.mjs +0 -13
  341. package/dist/index174.mjs.map +0 -1
  342. package/dist/index175.cjs +0 -2
  343. package/dist/index175.cjs.map +0 -1
  344. package/dist/index175.mjs +0 -32
  345. package/dist/index175.mjs.map +0 -1
  346. package/dist/index176.cjs +0 -2
  347. package/dist/index176.cjs.map +0 -1
  348. package/dist/index176.mjs +0 -45
  349. package/dist/index176.mjs.map +0 -1
  350. package/dist/index177.cjs +0 -2
  351. package/dist/index177.cjs.map +0 -1
  352. package/dist/index177.mjs +0 -37
  353. package/dist/index177.mjs.map +0 -1
  354. package/dist/index178.cjs +0 -2
  355. package/dist/index178.cjs.map +0 -1
  356. package/dist/index178.mjs +0 -48
  357. package/dist/index178.mjs.map +0 -1
  358. package/dist/index179.cjs +0 -2
  359. package/dist/index179.cjs.map +0 -1
  360. package/dist/index179.mjs +0 -33
  361. package/dist/index179.mjs.map +0 -1
  362. package/dist/index18.cjs +0 -2
  363. package/dist/index18.cjs.map +0 -1
  364. package/dist/index18.mjs +0 -87
  365. package/dist/index18.mjs.map +0 -1
  366. package/dist/index180.cjs +0 -2
  367. package/dist/index180.cjs.map +0 -1
  368. package/dist/index180.mjs +0 -72
  369. package/dist/index180.mjs.map +0 -1
  370. package/dist/index181.cjs +0 -2
  371. package/dist/index181.cjs.map +0 -1
  372. package/dist/index181.mjs +0 -44
  373. package/dist/index181.mjs.map +0 -1
  374. package/dist/index182.cjs +0 -2
  375. package/dist/index182.cjs.map +0 -1
  376. package/dist/index182.mjs +0 -12
  377. package/dist/index182.mjs.map +0 -1
  378. package/dist/index183.cjs +0 -2
  379. package/dist/index183.cjs.map +0 -1
  380. package/dist/index183.mjs +0 -26
  381. package/dist/index183.mjs.map +0 -1
  382. package/dist/index184.cjs +0 -2
  383. package/dist/index184.cjs.map +0 -1
  384. package/dist/index184.mjs +0 -34
  385. package/dist/index184.mjs.map +0 -1
  386. package/dist/index185.cjs +0 -2
  387. package/dist/index185.cjs.map +0 -1
  388. package/dist/index185.mjs +0 -10
  389. package/dist/index185.mjs.map +0 -1
  390. package/dist/index186.cjs +0 -2
  391. package/dist/index186.cjs.map +0 -1
  392. package/dist/index186.mjs +0 -10
  393. package/dist/index186.mjs.map +0 -1
  394. package/dist/index187.cjs +0 -2
  395. package/dist/index187.cjs.map +0 -1
  396. package/dist/index187.mjs +0 -10
  397. package/dist/index187.mjs.map +0 -1
  398. package/dist/index188.cjs +0 -2
  399. package/dist/index188.cjs.map +0 -1
  400. package/dist/index188.mjs +0 -9
  401. package/dist/index188.mjs.map +0 -1
  402. package/dist/index189.cjs +0 -2
  403. package/dist/index189.cjs.map +0 -1
  404. package/dist/index189.mjs +0 -28
  405. package/dist/index189.mjs.map +0 -1
  406. package/dist/index19.cjs +0 -2
  407. package/dist/index19.cjs.map +0 -1
  408. package/dist/index19.mjs +0 -114
  409. package/dist/index19.mjs.map +0 -1
  410. package/dist/index190.cjs +0 -2
  411. package/dist/index190.cjs.map +0 -1
  412. package/dist/index190.mjs +0 -35
  413. package/dist/index190.mjs.map +0 -1
  414. package/dist/index191.cjs +0 -2
  415. package/dist/index191.cjs.map +0 -1
  416. package/dist/index191.mjs +0 -17
  417. package/dist/index191.mjs.map +0 -1
  418. package/dist/index192.cjs +0 -2
  419. package/dist/index192.cjs.map +0 -1
  420. package/dist/index192.mjs +0 -24
  421. package/dist/index192.mjs.map +0 -1
  422. package/dist/index193.cjs +0 -2
  423. package/dist/index193.cjs.map +0 -1
  424. package/dist/index193.mjs +0 -51
  425. package/dist/index193.mjs.map +0 -1
  426. package/dist/index194.cjs +0 -2
  427. package/dist/index194.cjs.map +0 -1
  428. package/dist/index194.mjs +0 -7
  429. package/dist/index194.mjs.map +0 -1
  430. package/dist/index195.cjs +0 -2
  431. package/dist/index195.cjs.map +0 -1
  432. package/dist/index195.mjs +0 -28
  433. package/dist/index195.mjs.map +0 -1
  434. package/dist/index196.cjs +0 -2
  435. package/dist/index196.cjs.map +0 -1
  436. package/dist/index196.mjs +0 -18
  437. package/dist/index196.mjs.map +0 -1
  438. package/dist/index197.cjs +0 -2
  439. package/dist/index197.cjs.map +0 -1
  440. package/dist/index197.mjs +0 -13
  441. package/dist/index197.mjs.map +0 -1
  442. package/dist/index198.cjs +0 -2
  443. package/dist/index198.cjs.map +0 -1
  444. package/dist/index198.mjs +0 -8
  445. package/dist/index198.mjs.map +0 -1
  446. package/dist/index199.cjs +0 -2
  447. package/dist/index199.cjs.map +0 -1
  448. package/dist/index199.mjs +0 -11
  449. package/dist/index199.mjs.map +0 -1
  450. package/dist/index2.cjs +0 -2
  451. package/dist/index2.cjs.map +0 -1
  452. package/dist/index2.mjs +0 -251
  453. package/dist/index2.mjs.map +0 -1
  454. package/dist/index20.cjs +0 -2
  455. package/dist/index20.cjs.map +0 -1
  456. package/dist/index20.mjs +0 -65
  457. package/dist/index20.mjs.map +0 -1
  458. package/dist/index200.cjs +0 -2
  459. package/dist/index200.cjs.map +0 -1
  460. package/dist/index200.mjs +0 -8
  461. package/dist/index200.mjs.map +0 -1
  462. package/dist/index201.cjs +0 -2
  463. package/dist/index201.cjs.map +0 -1
  464. package/dist/index201.mjs +0 -47
  465. package/dist/index201.mjs.map +0 -1
  466. package/dist/index202.cjs +0 -2
  467. package/dist/index202.cjs.map +0 -1
  468. package/dist/index202.mjs +0 -31
  469. package/dist/index202.mjs.map +0 -1
  470. package/dist/index203.cjs +0 -2
  471. package/dist/index203.cjs.map +0 -1
  472. package/dist/index203.mjs +0 -118
  473. package/dist/index203.mjs.map +0 -1
  474. package/dist/index204.cjs +0 -2
  475. package/dist/index204.cjs.map +0 -1
  476. package/dist/index204.mjs +0 -30
  477. package/dist/index204.mjs.map +0 -1
  478. package/dist/index205.cjs +0 -2
  479. package/dist/index205.cjs.map +0 -1
  480. package/dist/index205.mjs +0 -23
  481. package/dist/index205.mjs.map +0 -1
  482. package/dist/index206.cjs +0 -2
  483. package/dist/index206.cjs.map +0 -1
  484. package/dist/index206.mjs +0 -53
  485. package/dist/index206.mjs.map +0 -1
  486. package/dist/index207.cjs +0 -2
  487. package/dist/index207.cjs.map +0 -1
  488. package/dist/index207.mjs +0 -10
  489. package/dist/index207.mjs.map +0 -1
  490. package/dist/index208.cjs +0 -2
  491. package/dist/index208.cjs.map +0 -1
  492. package/dist/index208.mjs +0 -9
  493. package/dist/index208.mjs.map +0 -1
  494. package/dist/index209.cjs +0 -2
  495. package/dist/index209.cjs.map +0 -1
  496. package/dist/index209.mjs +0 -9
  497. package/dist/index209.mjs.map +0 -1
  498. package/dist/index21.cjs +0 -2
  499. package/dist/index21.cjs.map +0 -1
  500. package/dist/index21.mjs +0 -167
  501. package/dist/index21.mjs.map +0 -1
  502. package/dist/index210.cjs +0 -2
  503. package/dist/index210.cjs.map +0 -1
  504. package/dist/index210.mjs +0 -15
  505. package/dist/index210.mjs.map +0 -1
  506. package/dist/index211.cjs +0 -2
  507. package/dist/index211.cjs.map +0 -1
  508. package/dist/index211.mjs +0 -8
  509. package/dist/index211.mjs.map +0 -1
  510. package/dist/index212.cjs +0 -2
  511. package/dist/index212.cjs.map +0 -1
  512. package/dist/index212.mjs +0 -41
  513. package/dist/index212.mjs.map +0 -1
  514. package/dist/index213.cjs +0 -2
  515. package/dist/index213.cjs.map +0 -1
  516. package/dist/index213.mjs +0 -19
  517. package/dist/index213.mjs.map +0 -1
  518. package/dist/index214.cjs +0 -2
  519. package/dist/index214.cjs.map +0 -1
  520. package/dist/index214.mjs +0 -19
  521. package/dist/index214.mjs.map +0 -1
  522. package/dist/index215.cjs +0 -2
  523. package/dist/index215.cjs.map +0 -1
  524. package/dist/index215.mjs +0 -19
  525. package/dist/index215.mjs.map +0 -1
  526. package/dist/index216.cjs +0 -2
  527. package/dist/index216.cjs.map +0 -1
  528. package/dist/index216.mjs +0 -19
  529. package/dist/index216.mjs.map +0 -1
  530. package/dist/index217.cjs +0 -2
  531. package/dist/index217.cjs.map +0 -1
  532. package/dist/index217.mjs +0 -19
  533. package/dist/index217.mjs.map +0 -1
  534. package/dist/index218.cjs +0 -2
  535. package/dist/index218.cjs.map +0 -1
  536. package/dist/index218.mjs +0 -19
  537. package/dist/index218.mjs.map +0 -1
  538. package/dist/index219.cjs +0 -2
  539. package/dist/index219.cjs.map +0 -1
  540. package/dist/index219.mjs +0 -19
  541. package/dist/index219.mjs.map +0 -1
  542. package/dist/index22.cjs +0 -2
  543. package/dist/index22.cjs.map +0 -1
  544. package/dist/index22.mjs +0 -45
  545. package/dist/index22.mjs.map +0 -1
  546. package/dist/index220.cjs +0 -2
  547. package/dist/index220.cjs.map +0 -1
  548. package/dist/index220.mjs +0 -19
  549. package/dist/index220.mjs.map +0 -1
  550. package/dist/index221.cjs +0 -2
  551. package/dist/index221.cjs.map +0 -1
  552. package/dist/index221.mjs +0 -19
  553. package/dist/index221.mjs.map +0 -1
  554. package/dist/index222.cjs +0 -2
  555. package/dist/index222.cjs.map +0 -1
  556. package/dist/index222.mjs +0 -19
  557. package/dist/index222.mjs.map +0 -1
  558. package/dist/index223.cjs +0 -2
  559. package/dist/index223.cjs.map +0 -1
  560. package/dist/index223.mjs +0 -19
  561. package/dist/index223.mjs.map +0 -1
  562. package/dist/index224.cjs +0 -2
  563. package/dist/index224.cjs.map +0 -1
  564. package/dist/index224.mjs +0 -19
  565. package/dist/index224.mjs.map +0 -1
  566. package/dist/index225.cjs +0 -2
  567. package/dist/index225.cjs.map +0 -1
  568. package/dist/index225.mjs +0 -19
  569. package/dist/index225.mjs.map +0 -1
  570. package/dist/index226.cjs +0 -2
  571. package/dist/index226.cjs.map +0 -1
  572. package/dist/index226.mjs +0 -19
  573. package/dist/index226.mjs.map +0 -1
  574. package/dist/index227.cjs +0 -2
  575. package/dist/index227.cjs.map +0 -1
  576. package/dist/index227.mjs +0 -19
  577. package/dist/index227.mjs.map +0 -1
  578. package/dist/index228.cjs +0 -2
  579. package/dist/index228.cjs.map +0 -1
  580. package/dist/index228.mjs +0 -19
  581. package/dist/index228.mjs.map +0 -1
  582. package/dist/index229.cjs +0 -2
  583. package/dist/index229.cjs.map +0 -1
  584. package/dist/index229.mjs +0 -19
  585. package/dist/index229.mjs.map +0 -1
  586. package/dist/index23.cjs +0 -2
  587. package/dist/index23.cjs.map +0 -1
  588. package/dist/index23.mjs +0 -38
  589. package/dist/index23.mjs.map +0 -1
  590. package/dist/index230.cjs +0 -2
  591. package/dist/index230.cjs.map +0 -1
  592. package/dist/index230.mjs +0 -19
  593. package/dist/index230.mjs.map +0 -1
  594. package/dist/index231.cjs +0 -2
  595. package/dist/index231.cjs.map +0 -1
  596. package/dist/index231.mjs +0 -19
  597. package/dist/index231.mjs.map +0 -1
  598. package/dist/index232.cjs +0 -2
  599. package/dist/index232.cjs.map +0 -1
  600. package/dist/index232.mjs +0 -19
  601. package/dist/index232.mjs.map +0 -1
  602. package/dist/index233.cjs +0 -2
  603. package/dist/index233.cjs.map +0 -1
  604. package/dist/index233.mjs +0 -19
  605. package/dist/index233.mjs.map +0 -1
  606. package/dist/index234.cjs +0 -2
  607. package/dist/index234.cjs.map +0 -1
  608. package/dist/index234.mjs +0 -19
  609. package/dist/index234.mjs.map +0 -1
  610. package/dist/index235.cjs +0 -2
  611. package/dist/index235.cjs.map +0 -1
  612. package/dist/index235.mjs +0 -19
  613. package/dist/index235.mjs.map +0 -1
  614. package/dist/index236.cjs +0 -2
  615. package/dist/index236.cjs.map +0 -1
  616. package/dist/index236.mjs +0 -19
  617. package/dist/index236.mjs.map +0 -1
  618. package/dist/index237.cjs +0 -2
  619. package/dist/index237.cjs.map +0 -1
  620. package/dist/index237.mjs +0 -19
  621. package/dist/index237.mjs.map +0 -1
  622. package/dist/index238.cjs +0 -2
  623. package/dist/index238.cjs.map +0 -1
  624. package/dist/index238.mjs +0 -19
  625. package/dist/index238.mjs.map +0 -1
  626. package/dist/index239.cjs +0 -2
  627. package/dist/index239.cjs.map +0 -1
  628. package/dist/index239.mjs +0 -19
  629. package/dist/index239.mjs.map +0 -1
  630. package/dist/index24.cjs +0 -3
  631. package/dist/index24.cjs.map +0 -1
  632. package/dist/index24.mjs +0 -52
  633. package/dist/index24.mjs.map +0 -1
  634. package/dist/index240.cjs +0 -2
  635. package/dist/index240.cjs.map +0 -1
  636. package/dist/index240.mjs +0 -19
  637. package/dist/index240.mjs.map +0 -1
  638. package/dist/index241.cjs +0 -2
  639. package/dist/index241.cjs.map +0 -1
  640. package/dist/index241.mjs +0 -19
  641. package/dist/index241.mjs.map +0 -1
  642. package/dist/index242.cjs +0 -2
  643. package/dist/index242.cjs.map +0 -1
  644. package/dist/index242.mjs +0 -19
  645. package/dist/index242.mjs.map +0 -1
  646. package/dist/index243.cjs +0 -2
  647. package/dist/index243.cjs.map +0 -1
  648. package/dist/index243.mjs +0 -19
  649. package/dist/index243.mjs.map +0 -1
  650. package/dist/index244.cjs +0 -2
  651. package/dist/index244.cjs.map +0 -1
  652. package/dist/index244.mjs +0 -19
  653. package/dist/index244.mjs.map +0 -1
  654. package/dist/index245.cjs +0 -2
  655. package/dist/index245.cjs.map +0 -1
  656. package/dist/index245.mjs +0 -19
  657. package/dist/index245.mjs.map +0 -1
  658. package/dist/index246.cjs +0 -2
  659. package/dist/index246.cjs.map +0 -1
  660. package/dist/index246.mjs +0 -19
  661. package/dist/index246.mjs.map +0 -1
  662. package/dist/index247.cjs +0 -2
  663. package/dist/index247.cjs.map +0 -1
  664. package/dist/index247.mjs +0 -23
  665. package/dist/index247.mjs.map +0 -1
  666. package/dist/index248.cjs +0 -2
  667. package/dist/index248.cjs.map +0 -1
  668. package/dist/index248.mjs +0 -23
  669. package/dist/index248.mjs.map +0 -1
  670. package/dist/index249.cjs +0 -2
  671. package/dist/index249.cjs.map +0 -1
  672. package/dist/index249.mjs +0 -23
  673. package/dist/index249.mjs.map +0 -1
  674. package/dist/index25.cjs +0 -3
  675. package/dist/index25.cjs.map +0 -1
  676. package/dist/index25.mjs +0 -51
  677. package/dist/index25.mjs.map +0 -1
  678. package/dist/index250.cjs +0 -2
  679. package/dist/index250.cjs.map +0 -1
  680. package/dist/index250.mjs +0 -23
  681. package/dist/index250.mjs.map +0 -1
  682. package/dist/index251.cjs +0 -2
  683. package/dist/index251.cjs.map +0 -1
  684. package/dist/index251.mjs +0 -23
  685. package/dist/index251.mjs.map +0 -1
  686. package/dist/index252.cjs +0 -2
  687. package/dist/index252.cjs.map +0 -1
  688. package/dist/index252.mjs +0 -23
  689. package/dist/index252.mjs.map +0 -1
  690. package/dist/index253.cjs +0 -2
  691. package/dist/index253.cjs.map +0 -1
  692. package/dist/index253.mjs +0 -23
  693. package/dist/index253.mjs.map +0 -1
  694. package/dist/index254.cjs +0 -2
  695. package/dist/index254.cjs.map +0 -1
  696. package/dist/index254.mjs +0 -23
  697. package/dist/index254.mjs.map +0 -1
  698. package/dist/index255.cjs +0 -2
  699. package/dist/index255.cjs.map +0 -1
  700. package/dist/index255.mjs +0 -23
  701. package/dist/index255.mjs.map +0 -1
  702. package/dist/index256.cjs +0 -2
  703. package/dist/index256.cjs.map +0 -1
  704. package/dist/index256.mjs +0 -23
  705. package/dist/index256.mjs.map +0 -1
  706. package/dist/index257.cjs +0 -2
  707. package/dist/index257.cjs.map +0 -1
  708. package/dist/index257.mjs +0 -23
  709. package/dist/index257.mjs.map +0 -1
  710. package/dist/index258.cjs +0 -2
  711. package/dist/index258.cjs.map +0 -1
  712. package/dist/index258.mjs +0 -23
  713. package/dist/index258.mjs.map +0 -1
  714. package/dist/index259.cjs +0 -2
  715. package/dist/index259.cjs.map +0 -1
  716. package/dist/index259.mjs +0 -23
  717. package/dist/index259.mjs.map +0 -1
  718. package/dist/index26.cjs +0 -4
  719. package/dist/index26.cjs.map +0 -1
  720. package/dist/index26.mjs +0 -103
  721. package/dist/index26.mjs.map +0 -1
  722. package/dist/index260.cjs +0 -2
  723. package/dist/index260.cjs.map +0 -1
  724. package/dist/index260.mjs +0 -23
  725. package/dist/index260.mjs.map +0 -1
  726. package/dist/index261.cjs +0 -2
  727. package/dist/index261.cjs.map +0 -1
  728. package/dist/index261.mjs +0 -23
  729. package/dist/index261.mjs.map +0 -1
  730. package/dist/index262.cjs +0 -2
  731. package/dist/index262.cjs.map +0 -1
  732. package/dist/index262.mjs +0 -23
  733. package/dist/index262.mjs.map +0 -1
  734. package/dist/index263.cjs +0 -2
  735. package/dist/index263.cjs.map +0 -1
  736. package/dist/index263.mjs +0 -23
  737. package/dist/index263.mjs.map +0 -1
  738. package/dist/index264.cjs +0 -2
  739. package/dist/index264.cjs.map +0 -1
  740. package/dist/index264.mjs +0 -23
  741. package/dist/index264.mjs.map +0 -1
  742. package/dist/index265.cjs +0 -2
  743. package/dist/index265.cjs.map +0 -1
  744. package/dist/index265.mjs +0 -23
  745. package/dist/index265.mjs.map +0 -1
  746. package/dist/index266.cjs +0 -2
  747. package/dist/index266.cjs.map +0 -1
  748. package/dist/index266.mjs +0 -23
  749. package/dist/index266.mjs.map +0 -1
  750. package/dist/index267.cjs +0 -2
  751. package/dist/index267.cjs.map +0 -1
  752. package/dist/index267.mjs +0 -23
  753. package/dist/index267.mjs.map +0 -1
  754. package/dist/index268.cjs +0 -2
  755. package/dist/index268.cjs.map +0 -1
  756. package/dist/index268.mjs +0 -23
  757. package/dist/index268.mjs.map +0 -1
  758. package/dist/index269.cjs +0 -2
  759. package/dist/index269.cjs.map +0 -1
  760. package/dist/index269.mjs +0 -23
  761. package/dist/index269.mjs.map +0 -1
  762. package/dist/index27.cjs +0 -4
  763. package/dist/index27.cjs.map +0 -1
  764. package/dist/index27.mjs +0 -61
  765. package/dist/index27.mjs.map +0 -1
  766. package/dist/index270.cjs +0 -2
  767. package/dist/index270.cjs.map +0 -1
  768. package/dist/index270.mjs +0 -23
  769. package/dist/index270.mjs.map +0 -1
  770. package/dist/index271.cjs +0 -2
  771. package/dist/index271.cjs.map +0 -1
  772. package/dist/index271.mjs +0 -23
  773. package/dist/index271.mjs.map +0 -1
  774. package/dist/index272.cjs +0 -2
  775. package/dist/index272.cjs.map +0 -1
  776. package/dist/index272.mjs +0 -23
  777. package/dist/index272.mjs.map +0 -1
  778. package/dist/index273.cjs +0 -2
  779. package/dist/index273.cjs.map +0 -1
  780. package/dist/index273.mjs +0 -23
  781. package/dist/index273.mjs.map +0 -1
  782. package/dist/index274.cjs +0 -2
  783. package/dist/index274.cjs.map +0 -1
  784. package/dist/index274.mjs +0 -23
  785. package/dist/index274.mjs.map +0 -1
  786. package/dist/index275.cjs +0 -2
  787. package/dist/index275.cjs.map +0 -1
  788. package/dist/index275.mjs +0 -23
  789. package/dist/index275.mjs.map +0 -1
  790. package/dist/index276.cjs +0 -2
  791. package/dist/index276.cjs.map +0 -1
  792. package/dist/index276.mjs +0 -23
  793. package/dist/index276.mjs.map +0 -1
  794. package/dist/index277.cjs +0 -2
  795. package/dist/index277.cjs.map +0 -1
  796. package/dist/index277.mjs +0 -23
  797. package/dist/index277.mjs.map +0 -1
  798. package/dist/index278.cjs +0 -2
  799. package/dist/index278.cjs.map +0 -1
  800. package/dist/index278.mjs +0 -23
  801. package/dist/index278.mjs.map +0 -1
  802. package/dist/index279.cjs +0 -2
  803. package/dist/index279.cjs.map +0 -1
  804. package/dist/index279.mjs +0 -23
  805. package/dist/index279.mjs.map +0 -1
  806. package/dist/index28.cjs +0 -3
  807. package/dist/index28.cjs.map +0 -1
  808. package/dist/index28.mjs +0 -74
  809. package/dist/index28.mjs.map +0 -1
  810. package/dist/index280.cjs +0 -2
  811. package/dist/index280.cjs.map +0 -1
  812. package/dist/index280.mjs +0 -23
  813. package/dist/index280.mjs.map +0 -1
  814. package/dist/index281.cjs +0 -2
  815. package/dist/index281.cjs.map +0 -1
  816. package/dist/index281.mjs +0 -7
  817. package/dist/index281.mjs.map +0 -1
  818. package/dist/index282.cjs +0 -2
  819. package/dist/index282.cjs.map +0 -1
  820. package/dist/index282.mjs +0 -8
  821. package/dist/index282.mjs.map +0 -1
  822. package/dist/index283.cjs +0 -2
  823. package/dist/index283.cjs.map +0 -1
  824. package/dist/index283.mjs +0 -12
  825. package/dist/index283.mjs.map +0 -1
  826. package/dist/index284.cjs +0 -2
  827. package/dist/index284.cjs.map +0 -1
  828. package/dist/index284.mjs +0 -75
  829. package/dist/index284.mjs.map +0 -1
  830. package/dist/index285.cjs +0 -2
  831. package/dist/index285.cjs.map +0 -1
  832. package/dist/index285.mjs +0 -5
  833. package/dist/index285.mjs.map +0 -1
  834. package/dist/index286.cjs +0 -9
  835. package/dist/index286.cjs.map +0 -1
  836. package/dist/index286.mjs +0 -79
  837. package/dist/index286.mjs.map +0 -1
  838. package/dist/index287.cjs +0 -9
  839. package/dist/index287.cjs.map +0 -1
  840. package/dist/index287.mjs +0 -96
  841. package/dist/index287.mjs.map +0 -1
  842. package/dist/index288.cjs +0 -2
  843. package/dist/index288.cjs.map +0 -1
  844. package/dist/index288.mjs +0 -11
  845. package/dist/index288.mjs.map +0 -1
  846. package/dist/index289.cjs +0 -2
  847. package/dist/index289.cjs.map +0 -1
  848. package/dist/index289.mjs +0 -11
  849. package/dist/index289.mjs.map +0 -1
  850. package/dist/index29.cjs +0 -2
  851. package/dist/index29.cjs.map +0 -1
  852. package/dist/index29.mjs +0 -9
  853. package/dist/index29.mjs.map +0 -1
  854. package/dist/index290.cjs +0 -2
  855. package/dist/index290.cjs.map +0 -1
  856. package/dist/index290.mjs +0 -11
  857. package/dist/index290.mjs.map +0 -1
  858. package/dist/index291.cjs +0 -2
  859. package/dist/index291.cjs.map +0 -1
  860. package/dist/index291.mjs +0 -11
  861. package/dist/index291.mjs.map +0 -1
  862. package/dist/index292.cjs +0 -2
  863. package/dist/index292.cjs.map +0 -1
  864. package/dist/index292.mjs +0 -11
  865. package/dist/index292.mjs.map +0 -1
  866. package/dist/index293.cjs +0 -2
  867. package/dist/index293.cjs.map +0 -1
  868. package/dist/index293.mjs +0 -11
  869. package/dist/index293.mjs.map +0 -1
  870. package/dist/index294.cjs +0 -2
  871. package/dist/index294.cjs.map +0 -1
  872. package/dist/index294.mjs +0 -11
  873. package/dist/index294.mjs.map +0 -1
  874. package/dist/index295.cjs +0 -2
  875. package/dist/index295.cjs.map +0 -1
  876. package/dist/index295.mjs +0 -11
  877. package/dist/index295.mjs.map +0 -1
  878. package/dist/index296.cjs +0 -2
  879. package/dist/index296.cjs.map +0 -1
  880. package/dist/index296.mjs +0 -11
  881. package/dist/index296.mjs.map +0 -1
  882. package/dist/index297.cjs +0 -2
  883. package/dist/index297.cjs.map +0 -1
  884. package/dist/index297.mjs +0 -11
  885. package/dist/index297.mjs.map +0 -1
  886. package/dist/index298.cjs +0 -2
  887. package/dist/index298.cjs.map +0 -1
  888. package/dist/index298.mjs +0 -11
  889. package/dist/index298.mjs.map +0 -1
  890. package/dist/index299.cjs +0 -2
  891. package/dist/index299.cjs.map +0 -1
  892. package/dist/index299.mjs +0 -11
  893. package/dist/index299.mjs.map +0 -1
  894. package/dist/index3.cjs +0 -2
  895. package/dist/index3.cjs.map +0 -1
  896. package/dist/index3.mjs +0 -69
  897. package/dist/index3.mjs.map +0 -1
  898. package/dist/index30.cjs +0 -2
  899. package/dist/index30.cjs.map +0 -1
  900. package/dist/index30.mjs +0 -20
  901. package/dist/index30.mjs.map +0 -1
  902. package/dist/index300.cjs +0 -2
  903. package/dist/index300.cjs.map +0 -1
  904. package/dist/index300.mjs +0 -11
  905. package/dist/index300.mjs.map +0 -1
  906. package/dist/index301.cjs +0 -2
  907. package/dist/index301.cjs.map +0 -1
  908. package/dist/index301.mjs +0 -11
  909. package/dist/index301.mjs.map +0 -1
  910. package/dist/index302.cjs +0 -2
  911. package/dist/index302.cjs.map +0 -1
  912. package/dist/index302.mjs +0 -11
  913. package/dist/index302.mjs.map +0 -1
  914. package/dist/index303.cjs +0 -2
  915. package/dist/index303.cjs.map +0 -1
  916. package/dist/index303.mjs +0 -11
  917. package/dist/index303.mjs.map +0 -1
  918. package/dist/index304.cjs +0 -2
  919. package/dist/index304.cjs.map +0 -1
  920. package/dist/index304.mjs +0 -11
  921. package/dist/index304.mjs.map +0 -1
  922. package/dist/index305.cjs +0 -2
  923. package/dist/index305.cjs.map +0 -1
  924. package/dist/index305.mjs +0 -11
  925. package/dist/index305.mjs.map +0 -1
  926. package/dist/index306.cjs +0 -2
  927. package/dist/index306.cjs.map +0 -1
  928. package/dist/index306.mjs +0 -11
  929. package/dist/index306.mjs.map +0 -1
  930. package/dist/index307.cjs +0 -2
  931. package/dist/index307.cjs.map +0 -1
  932. package/dist/index307.mjs +0 -11
  933. package/dist/index307.mjs.map +0 -1
  934. package/dist/index308.cjs +0 -2
  935. package/dist/index308.cjs.map +0 -1
  936. package/dist/index308.mjs +0 -11
  937. package/dist/index308.mjs.map +0 -1
  938. package/dist/index309.cjs +0 -2
  939. package/dist/index309.cjs.map +0 -1
  940. package/dist/index309.mjs +0 -11
  941. package/dist/index309.mjs.map +0 -1
  942. package/dist/index31.cjs +0 -2
  943. package/dist/index31.cjs.map +0 -1
  944. package/dist/index31.mjs +0 -1103
  945. package/dist/index31.mjs.map +0 -1
  946. package/dist/index310.cjs +0 -2
  947. package/dist/index310.cjs.map +0 -1
  948. package/dist/index310.mjs +0 -11
  949. package/dist/index310.mjs.map +0 -1
  950. package/dist/index311.cjs +0 -2
  951. package/dist/index311.cjs.map +0 -1
  952. package/dist/index311.mjs +0 -11
  953. package/dist/index311.mjs.map +0 -1
  954. package/dist/index312.cjs +0 -2
  955. package/dist/index312.cjs.map +0 -1
  956. package/dist/index312.mjs +0 -11
  957. package/dist/index312.mjs.map +0 -1
  958. package/dist/index313.cjs +0 -2
  959. package/dist/index313.cjs.map +0 -1
  960. package/dist/index313.mjs +0 -11
  961. package/dist/index313.mjs.map +0 -1
  962. package/dist/index314.cjs +0 -2
  963. package/dist/index314.cjs.map +0 -1
  964. package/dist/index314.mjs +0 -11
  965. package/dist/index314.mjs.map +0 -1
  966. package/dist/index315.cjs +0 -2
  967. package/dist/index315.cjs.map +0 -1
  968. package/dist/index315.mjs +0 -11
  969. package/dist/index315.mjs.map +0 -1
  970. package/dist/index316.cjs +0 -2
  971. package/dist/index316.cjs.map +0 -1
  972. package/dist/index316.mjs +0 -11
  973. package/dist/index316.mjs.map +0 -1
  974. package/dist/index317.cjs +0 -2
  975. package/dist/index317.cjs.map +0 -1
  976. package/dist/index317.mjs +0 -11
  977. package/dist/index317.mjs.map +0 -1
  978. package/dist/index318.cjs +0 -2
  979. package/dist/index318.cjs.map +0 -1
  980. package/dist/index318.mjs +0 -11
  981. package/dist/index318.mjs.map +0 -1
  982. package/dist/index319.cjs +0 -2
  983. package/dist/index319.cjs.map +0 -1
  984. package/dist/index319.mjs +0 -11
  985. package/dist/index319.mjs.map +0 -1
  986. package/dist/index32.cjs +0 -2
  987. package/dist/index32.cjs.map +0 -1
  988. package/dist/index32.mjs +0 -8
  989. package/dist/index32.mjs.map +0 -1
  990. package/dist/index320.cjs +0 -2
  991. package/dist/index320.cjs.map +0 -1
  992. package/dist/index320.mjs +0 -11
  993. package/dist/index320.mjs.map +0 -1
  994. package/dist/index321.cjs +0 -2
  995. package/dist/index321.cjs.map +0 -1
  996. package/dist/index321.mjs +0 -11
  997. package/dist/index321.mjs.map +0 -1
  998. package/dist/index322.cjs +0 -2
  999. package/dist/index322.cjs.map +0 -1
  1000. package/dist/index322.mjs +0 -5
  1001. package/dist/index322.mjs.map +0 -1
  1002. package/dist/index323.cjs +0 -2
  1003. package/dist/index323.cjs.map +0 -1
  1004. package/dist/index323.mjs +0 -5
  1005. package/dist/index323.mjs.map +0 -1
  1006. package/dist/index33.cjs +0 -2
  1007. package/dist/index33.cjs.map +0 -1
  1008. package/dist/index33.mjs +0 -171
  1009. package/dist/index33.mjs.map +0 -1
  1010. package/dist/index34.cjs +0 -2
  1011. package/dist/index34.cjs.map +0 -1
  1012. package/dist/index34.mjs +0 -371
  1013. package/dist/index34.mjs.map +0 -1
  1014. package/dist/index35.cjs +0 -2
  1015. package/dist/index35.cjs.map +0 -1
  1016. package/dist/index35.mjs +0 -18
  1017. package/dist/index35.mjs.map +0 -1
  1018. package/dist/index36.cjs +0 -2
  1019. package/dist/index36.cjs.map +0 -1
  1020. package/dist/index36.mjs +0 -20
  1021. package/dist/index36.mjs.map +0 -1
  1022. package/dist/index37.cjs +0 -2
  1023. package/dist/index37.cjs.map +0 -1
  1024. package/dist/index37.mjs +0 -19
  1025. package/dist/index37.mjs.map +0 -1
  1026. package/dist/index38.cjs +0 -14
  1027. package/dist/index38.cjs.map +0 -1
  1028. package/dist/index38.mjs +0 -2030
  1029. package/dist/index38.mjs.map +0 -1
  1030. package/dist/index39.cjs +0 -2
  1031. package/dist/index39.cjs.map +0 -1
  1032. package/dist/index39.mjs +0 -3058
  1033. package/dist/index39.mjs.map +0 -1
  1034. package/dist/index4.cjs +0 -2
  1035. package/dist/index4.cjs.map +0 -1
  1036. package/dist/index4.mjs +0 -6
  1037. package/dist/index4.mjs.map +0 -1
  1038. package/dist/index40.cjs +0 -2
  1039. package/dist/index40.cjs.map +0 -1
  1040. package/dist/index40.mjs +0 -16
  1041. package/dist/index40.mjs.map +0 -1
  1042. package/dist/index41.cjs +0 -2
  1043. package/dist/index41.cjs.map +0 -1
  1044. package/dist/index41.mjs +0 -13
  1045. package/dist/index41.mjs.map +0 -1
  1046. package/dist/index42.cjs +0 -2
  1047. package/dist/index42.cjs.map +0 -1
  1048. package/dist/index42.mjs +0 -20
  1049. package/dist/index42.mjs.map +0 -1
  1050. package/dist/index43.cjs +0 -2
  1051. package/dist/index43.cjs.map +0 -1
  1052. package/dist/index43.mjs +0 -10
  1053. package/dist/index43.mjs.map +0 -1
  1054. package/dist/index44.cjs +0 -2
  1055. package/dist/index44.cjs.map +0 -1
  1056. package/dist/index44.mjs +0 -60
  1057. package/dist/index44.mjs.map +0 -1
  1058. package/dist/index45.cjs +0 -2
  1059. package/dist/index45.cjs.map +0 -1
  1060. package/dist/index45.mjs +0 -44
  1061. package/dist/index45.mjs.map +0 -1
  1062. package/dist/index46.cjs +0 -2
  1063. package/dist/index46.cjs.map +0 -1
  1064. package/dist/index46.mjs +0 -103
  1065. package/dist/index46.mjs.map +0 -1
  1066. package/dist/index47.cjs +0 -2
  1067. package/dist/index47.cjs.map +0 -1
  1068. package/dist/index47.mjs +0 -36
  1069. package/dist/index47.mjs.map +0 -1
  1070. package/dist/index48.cjs +0 -2
  1071. package/dist/index48.cjs.map +0 -1
  1072. package/dist/index48.mjs +0 -31
  1073. package/dist/index48.mjs.map +0 -1
  1074. package/dist/index49.cjs +0 -2
  1075. package/dist/index49.cjs.map +0 -1
  1076. package/dist/index49.mjs +0 -21
  1077. package/dist/index49.mjs.map +0 -1
  1078. package/dist/index5.cjs +0 -2
  1079. package/dist/index5.cjs.map +0 -1
  1080. package/dist/index5.mjs +0 -52
  1081. package/dist/index5.mjs.map +0 -1
  1082. package/dist/index50.cjs +0 -2
  1083. package/dist/index50.cjs.map +0 -1
  1084. package/dist/index50.mjs +0 -56
  1085. package/dist/index50.mjs.map +0 -1
  1086. package/dist/index51.cjs +0 -2
  1087. package/dist/index51.cjs.map +0 -1
  1088. package/dist/index51.mjs +0 -58
  1089. package/dist/index51.mjs.map +0 -1
  1090. package/dist/index52.cjs +0 -2
  1091. package/dist/index52.cjs.map +0 -1
  1092. package/dist/index52.mjs +0 -221
  1093. package/dist/index52.mjs.map +0 -1
  1094. package/dist/index53.cjs +0 -2
  1095. package/dist/index53.cjs.map +0 -1
  1096. package/dist/index53.mjs +0 -8
  1097. package/dist/index53.mjs.map +0 -1
  1098. package/dist/index54.cjs +0 -2
  1099. package/dist/index54.cjs.map +0 -1
  1100. package/dist/index54.mjs +0 -88
  1101. package/dist/index54.mjs.map +0 -1
  1102. package/dist/index55.cjs +0 -2
  1103. package/dist/index55.cjs.map +0 -1
  1104. package/dist/index55.mjs +0 -155
  1105. package/dist/index55.mjs.map +0 -1
  1106. package/dist/index56.cjs +0 -2
  1107. package/dist/index56.cjs.map +0 -1
  1108. package/dist/index56.mjs +0 -155
  1109. package/dist/index56.mjs.map +0 -1
  1110. package/dist/index57.cjs +0 -2
  1111. package/dist/index57.cjs.map +0 -1
  1112. package/dist/index57.mjs +0 -25
  1113. package/dist/index57.mjs.map +0 -1
  1114. package/dist/index58.cjs +0 -2
  1115. package/dist/index58.cjs.map +0 -1
  1116. package/dist/index58.mjs +0 -112
  1117. package/dist/index58.mjs.map +0 -1
  1118. package/dist/index59.cjs +0 -2
  1119. package/dist/index59.cjs.map +0 -1
  1120. package/dist/index59.mjs +0 -28
  1121. package/dist/index59.mjs.map +0 -1
  1122. package/dist/index6.cjs +0 -2
  1123. package/dist/index6.cjs.map +0 -1
  1124. package/dist/index6.mjs +0 -65
  1125. package/dist/index6.mjs.map +0 -1
  1126. package/dist/index60.cjs +0 -2
  1127. package/dist/index60.cjs.map +0 -1
  1128. package/dist/index60.mjs +0 -42
  1129. package/dist/index60.mjs.map +0 -1
  1130. package/dist/index61.cjs +0 -2
  1131. package/dist/index61.cjs.map +0 -1
  1132. package/dist/index61.mjs +0 -24
  1133. package/dist/index61.mjs.map +0 -1
  1134. package/dist/index62.cjs +0 -2
  1135. package/dist/index62.cjs.map +0 -1
  1136. package/dist/index62.mjs +0 -220
  1137. package/dist/index62.mjs.map +0 -1
  1138. package/dist/index63.cjs +0 -2
  1139. package/dist/index63.cjs.map +0 -1
  1140. package/dist/index63.mjs +0 -16
  1141. package/dist/index63.mjs.map +0 -1
  1142. package/dist/index64.cjs +0 -2
  1143. package/dist/index64.cjs.map +0 -1
  1144. package/dist/index64.mjs +0 -20
  1145. package/dist/index64.mjs.map +0 -1
  1146. package/dist/index65.cjs +0 -2
  1147. package/dist/index65.cjs.map +0 -1
  1148. package/dist/index65.mjs +0 -15
  1149. package/dist/index65.mjs.map +0 -1
  1150. package/dist/index66.cjs +0 -2
  1151. package/dist/index66.cjs.map +0 -1
  1152. package/dist/index66.mjs +0 -22
  1153. package/dist/index66.mjs.map +0 -1
  1154. package/dist/index67.cjs +0 -2
  1155. package/dist/index67.cjs.map +0 -1
  1156. package/dist/index67.mjs +0 -14
  1157. package/dist/index67.mjs.map +0 -1
  1158. package/dist/index68.cjs +0 -2
  1159. package/dist/index68.cjs.map +0 -1
  1160. package/dist/index68.mjs +0 -40
  1161. package/dist/index68.mjs.map +0 -1
  1162. package/dist/index69.cjs +0 -2
  1163. package/dist/index69.cjs.map +0 -1
  1164. package/dist/index69.mjs +0 -23
  1165. package/dist/index69.mjs.map +0 -1
  1166. package/dist/index7.cjs +0 -4
  1167. package/dist/index7.cjs.map +0 -1
  1168. package/dist/index7.mjs +0 -63
  1169. package/dist/index7.mjs.map +0 -1
  1170. package/dist/index70.cjs +0 -2
  1171. package/dist/index70.cjs.map +0 -1
  1172. package/dist/index70.mjs +0 -16
  1173. package/dist/index70.mjs.map +0 -1
  1174. package/dist/index71.cjs +0 -2
  1175. package/dist/index71.cjs.map +0 -1
  1176. package/dist/index71.mjs +0 -111
  1177. package/dist/index71.mjs.map +0 -1
  1178. package/dist/index72.cjs +0 -2
  1179. package/dist/index72.cjs.map +0 -1
  1180. package/dist/index72.mjs +0 -18
  1181. package/dist/index72.mjs.map +0 -1
  1182. package/dist/index73.cjs +0 -2
  1183. package/dist/index73.cjs.map +0 -1
  1184. package/dist/index73.mjs +0 -5
  1185. package/dist/index73.mjs.map +0 -1
  1186. package/dist/index74.cjs +0 -10
  1187. package/dist/index74.cjs.map +0 -1
  1188. package/dist/index74.mjs +0 -29
  1189. package/dist/index74.mjs.map +0 -1
  1190. package/dist/index75.cjs +0 -23
  1191. package/dist/index75.cjs.map +0 -1
  1192. package/dist/index75.mjs +0 -609
  1193. package/dist/index75.mjs.map +0 -1
  1194. package/dist/index76.cjs +0 -2
  1195. package/dist/index76.cjs.map +0 -1
  1196. package/dist/index76.mjs +0 -66
  1197. package/dist/index76.mjs.map +0 -1
  1198. package/dist/index77.cjs +0 -2
  1199. package/dist/index77.cjs.map +0 -1
  1200. package/dist/index77.mjs +0 -35
  1201. package/dist/index77.mjs.map +0 -1
  1202. package/dist/index78.cjs +0 -2
  1203. package/dist/index78.cjs.map +0 -1
  1204. package/dist/index78.mjs +0 -23
  1205. package/dist/index78.mjs.map +0 -1
  1206. package/dist/index79.cjs +0 -2
  1207. package/dist/index79.cjs.map +0 -1
  1208. package/dist/index79.mjs +0 -160
  1209. package/dist/index79.mjs.map +0 -1
  1210. package/dist/index8.cjs +0 -4
  1211. package/dist/index8.cjs.map +0 -1
  1212. package/dist/index8.mjs +0 -71
  1213. package/dist/index8.mjs.map +0 -1
  1214. package/dist/index80.cjs +0 -2
  1215. package/dist/index80.cjs.map +0 -1
  1216. package/dist/index80.mjs +0 -30
  1217. package/dist/index80.mjs.map +0 -1
  1218. package/dist/index81.cjs +0 -2
  1219. package/dist/index81.cjs.map +0 -1
  1220. package/dist/index81.mjs +0 -13
  1221. package/dist/index81.mjs.map +0 -1
  1222. package/dist/index82.cjs +0 -2
  1223. package/dist/index82.cjs.map +0 -1
  1224. package/dist/index82.mjs +0 -1761
  1225. package/dist/index82.mjs.map +0 -1
  1226. package/dist/index83.cjs +0 -2
  1227. package/dist/index83.cjs.map +0 -1
  1228. package/dist/index83.mjs +0 -111
  1229. package/dist/index83.mjs.map +0 -1
  1230. package/dist/index84.cjs +0 -2
  1231. package/dist/index84.cjs.map +0 -1
  1232. package/dist/index84.mjs +0 -121
  1233. package/dist/index84.mjs.map +0 -1
  1234. package/dist/index85.cjs +0 -5
  1235. package/dist/index85.cjs.map +0 -1
  1236. package/dist/index85.mjs +0 -189
  1237. package/dist/index85.mjs.map +0 -1
  1238. package/dist/index86.cjs +0 -2
  1239. package/dist/index86.cjs.map +0 -1
  1240. package/dist/index86.mjs +0 -5
  1241. package/dist/index86.mjs.map +0 -1
  1242. package/dist/index87.cjs +0 -2
  1243. package/dist/index87.cjs.map +0 -1
  1244. package/dist/index87.mjs +0 -5
  1245. package/dist/index87.mjs.map +0 -1
  1246. package/dist/index88.cjs +0 -2
  1247. package/dist/index88.cjs.map +0 -1
  1248. package/dist/index88.mjs +0 -215
  1249. package/dist/index88.mjs.map +0 -1
  1250. package/dist/index89.cjs +0 -2
  1251. package/dist/index89.cjs.map +0 -1
  1252. package/dist/index89.mjs +0 -99
  1253. package/dist/index89.mjs.map +0 -1
  1254. package/dist/index9.cjs +0 -4
  1255. package/dist/index9.cjs.map +0 -1
  1256. package/dist/index9.mjs +0 -241
  1257. package/dist/index9.mjs.map +0 -1
  1258. package/dist/index90.cjs +0 -2
  1259. package/dist/index90.cjs.map +0 -1
  1260. package/dist/index90.mjs +0 -136
  1261. package/dist/index90.mjs.map +0 -1
  1262. package/dist/index91.cjs +0 -2
  1263. package/dist/index91.cjs.map +0 -1
  1264. package/dist/index91.mjs +0 -8
  1265. package/dist/index91.mjs.map +0 -1
  1266. package/dist/index92.cjs +0 -2
  1267. package/dist/index92.cjs.map +0 -1
  1268. package/dist/index92.mjs +0 -7
  1269. package/dist/index92.mjs.map +0 -1
  1270. package/dist/index93.cjs +0 -2
  1271. package/dist/index93.cjs.map +0 -1
  1272. package/dist/index93.mjs +0 -129
  1273. package/dist/index93.mjs.map +0 -1
  1274. package/dist/index94.cjs +0 -2
  1275. package/dist/index94.cjs.map +0 -1
  1276. package/dist/index94.mjs +0 -33
  1277. package/dist/index94.mjs.map +0 -1
  1278. package/dist/index95.cjs +0 -2
  1279. package/dist/index95.cjs.map +0 -1
  1280. package/dist/index95.mjs +0 -55
  1281. package/dist/index95.mjs.map +0 -1
  1282. package/dist/index96.cjs +0 -2
  1283. package/dist/index96.cjs.map +0 -1
  1284. package/dist/index96.mjs +0 -48
  1285. package/dist/index96.mjs.map +0 -1
  1286. package/dist/index97.cjs +0 -2
  1287. package/dist/index97.cjs.map +0 -1
  1288. package/dist/index97.mjs +0 -41
  1289. package/dist/index97.mjs.map +0 -1
  1290. package/dist/index98.cjs +0 -2
  1291. package/dist/index98.cjs.map +0 -1
  1292. package/dist/index98.mjs +0 -117
  1293. package/dist/index98.mjs.map +0 -1
  1294. package/dist/index99.cjs +0 -2
  1295. package/dist/index99.cjs.map +0 -1
  1296. package/dist/index99.mjs +0 -81
  1297. package/dist/index99.mjs.map +0 -1
package/dist/index39.mjs DELETED
@@ -1,3058 +0,0 @@
1
- import d from "react";
2
- import Yn from "react-dom";
3
- const ge = 0, Lt = 1, Kt = 2, xn = 4;
4
- function Zt(t, e) {
5
- return (n) => t(e(n));
6
- }
7
- function Zn(t, e) {
8
- return e(t);
9
- }
10
- function Tn(t, e) {
11
- return (n) => t(e, n);
12
- }
13
- function Xe(t, e) {
14
- return () => t(e);
15
- }
16
- function Se(t, e) {
17
- return e(t), t;
18
- }
19
- function Q(...t) {
20
- return t;
21
- }
22
- function Jn(t) {
23
- t();
24
- }
25
- function tn(t) {
26
- return () => t;
27
- }
28
- function Qn(...t) {
29
- return () => {
30
- t.map(Jn);
31
- };
32
- }
33
- function Le(t) {
34
- return t !== void 0;
35
- }
36
- function At() {
37
- }
38
- function j(t, e) {
39
- return t(Lt, e);
40
- }
41
- function M(t, e) {
42
- t(ge, e);
43
- }
44
- function Oe(t) {
45
- t(Kt);
46
- }
47
- function ct(t) {
48
- return t(xn);
49
- }
50
- function z(t, e) {
51
- return j(t, Tn(e, ge));
52
- }
53
- function bt(t, e) {
54
- const n = t(Lt, (o) => {
55
- n(), e(o);
56
- });
57
- return n;
58
- }
59
- function $() {
60
- const t = [];
61
- return (e, n) => {
62
- switch (e) {
63
- case Kt:
64
- t.splice(0, t.length);
65
- return;
66
- case Lt:
67
- return t.push(n), () => {
68
- const o = t.indexOf(n);
69
- o > -1 && t.splice(o, 1);
70
- };
71
- case ge:
72
- t.slice().forEach((o) => {
73
- o(n);
74
- });
75
- return;
76
- default:
77
- throw new Error(`unrecognized action ${e}`);
78
- }
79
- };
80
- }
81
- function w(t) {
82
- let e = t;
83
- const n = $();
84
- return (o, r) => {
85
- switch (o) {
86
- case Lt:
87
- r(e);
88
- break;
89
- case ge:
90
- e = r;
91
- break;
92
- case xn:
93
- return e;
94
- }
95
- return n(o, r);
96
- };
97
- }
98
- function Xn(t) {
99
- let e, n;
100
- const o = () => e && e();
101
- return function(r, s) {
102
- switch (r) {
103
- case Lt:
104
- return s ? n === s ? void 0 : (o(), n = s, e = j(t, s), e) : (o(), At);
105
- case Kt:
106
- o(), n = null;
107
- return;
108
- default:
109
- throw new Error(`unrecognized action ${r}`);
110
- }
111
- };
112
- }
113
- function mt(t) {
114
- return Se($(), (e) => z(t, e));
115
- }
116
- function ut(t, e) {
117
- return Se(w(e), (n) => z(t, n));
118
- }
119
- function to(...t) {
120
- return (e) => t.reduceRight(Zn, e);
121
- }
122
- function I(t, ...e) {
123
- const n = to(...e);
124
- return (o, r) => {
125
- switch (o) {
126
- case Lt:
127
- return j(t, n(r));
128
- case Kt:
129
- Oe(t);
130
- return;
131
- }
132
- };
133
- }
134
- function wn(t, e) {
135
- return t === e;
136
- }
137
- function J(t = wn) {
138
- let e;
139
- return (n) => (o) => {
140
- t(e, o) || (e = o, n(o));
141
- };
142
- }
143
- function F(t) {
144
- return (e) => (n) => {
145
- t(n) && e(n);
146
- };
147
- }
148
- function H(t) {
149
- return (e) => Zt(e, t);
150
- }
151
- function Et(t) {
152
- return (e) => () => e(t);
153
- }
154
- function yt(t, e) {
155
- return (n) => (o) => n(e = t(e, o));
156
- }
157
- function Ut(t) {
158
- return (e) => (n) => {
159
- t > 0 ? t-- : e(n);
160
- };
161
- }
162
- function zt(t) {
163
- let e = null, n;
164
- return (o) => (r) => {
165
- e = r, !n && (n = setTimeout(() => {
166
- n = void 0, o(e);
167
- }, t));
168
- };
169
- }
170
- function en(t) {
171
- let e, n;
172
- return (o) => (r) => {
173
- e = r, n && clearTimeout(n), n = setTimeout(() => {
174
- o(e);
175
- }, t);
176
- };
177
- }
178
- function G(...t) {
179
- const e = new Array(t.length);
180
- let n = 0, o = null;
181
- const r = Math.pow(2, t.length) - 1;
182
- return t.forEach((s, i) => {
183
- const l = Math.pow(2, i);
184
- j(s, (c) => {
185
- const f = n;
186
- n = n | l, e[i] = c, f !== r && n === r && o && (o(), o = null);
187
- });
188
- }), (s) => (i) => {
189
- const l = () => s([i].concat(e));
190
- n === r ? l() : o = l;
191
- };
192
- }
193
- function nn(...t) {
194
- return function(e, n) {
195
- switch (e) {
196
- case Lt:
197
- return Qn(...t.map((o) => j(o, n)));
198
- case Kt:
199
- return;
200
- default:
201
- throw new Error(`unrecognized action ${e}`);
202
- }
203
- };
204
- }
205
- function P(t, e = wn) {
206
- return I(t, J(e));
207
- }
208
- function st(...t) {
209
- const e = $(), n = new Array(t.length);
210
- let o = 0;
211
- const r = Math.pow(2, t.length) - 1;
212
- return t.forEach((s, i) => {
213
- const l = Math.pow(2, i);
214
- j(s, (c) => {
215
- n[i] = c, o = o | l, o === r && M(e, n);
216
- });
217
- }), function(s, i) {
218
- switch (s) {
219
- case Lt:
220
- return o === r && i(n), j(e, i);
221
- case Kt:
222
- return Oe(e);
223
- default:
224
- throw new Error(`unrecognized action ${s}`);
225
- }
226
- };
227
- }
228
- function U(t, e = [], { singleton: n } = { singleton: !0 }) {
229
- return {
230
- id: eo(),
231
- constructor: t,
232
- dependencies: e,
233
- singleton: n
234
- };
235
- }
236
- const eo = () => Symbol();
237
- function no(t) {
238
- const e = /* @__PURE__ */ new Map(), n = ({ id: o, constructor: r, dependencies: s, singleton: i }) => {
239
- if (i && e.has(o))
240
- return e.get(o);
241
- const l = r(s.map((c) => n(c)));
242
- return i && e.set(o, l), l;
243
- };
244
- return n(t);
245
- }
246
- function oo(t, e) {
247
- const n = {}, o = {};
248
- let r = 0;
249
- const s = t.length;
250
- for (; r < s; )
251
- o[t[r]] = 1, r += 1;
252
- for (const i in e)
253
- o.hasOwnProperty(i) || (n[i] = e[i]);
254
- return n;
255
- }
256
- const ce = typeof document < "u" ? d.useLayoutEffect : d.useEffect;
257
- function Fe(t, e, n) {
258
- const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = d.createContext({});
259
- function c(m, p) {
260
- m.propsReady && M(m.propsReady, !1);
261
- for (const S of o) {
262
- const b = m[e.required[S]];
263
- M(b, p[S]);
264
- }
265
- for (const S of r)
266
- if (S in p) {
267
- const b = m[e.optional[S]];
268
- M(b, p[S]);
269
- }
270
- m.propsReady && M(m.propsReady, !0);
271
- }
272
- function f(m) {
273
- return s.reduce((p, S) => (p[S] = (b) => {
274
- const h = m[e.methods[S]];
275
- M(h, b);
276
- }, p), {});
277
- }
278
- function u(m) {
279
- return i.reduce((p, S) => (p[S] = Xn(m[e.events[S]]), p), {});
280
- }
281
- const g = d.forwardRef((m, p) => {
282
- const { children: S, ...b } = m, [h] = d.useState(() => Se(no(t), (v) => c(v, b))), [a] = d.useState(Xe(u, h));
283
- return ce(() => {
284
- for (const v of i)
285
- v in b && j(a[v], b[v]);
286
- return () => {
287
- Object.values(a).map(Oe);
288
- };
289
- }, [b, a, h]), ce(() => {
290
- c(h, b);
291
- }), d.useImperativeHandle(p, tn(f(h))), d.createElement(
292
- l.Provider,
293
- { value: h },
294
- n ? d.createElement(
295
- n,
296
- oo([...o, ...r, ...i], b),
297
- S
298
- ) : S
299
- );
300
- }), x = (m) => d.useCallback(Tn(M, d.useContext(l)[m]), [m]), E = (m) => {
301
- const S = d.useContext(l)[m], b = d.useCallback(
302
- (h) => j(S, h),
303
- [S]
304
- );
305
- return d.useSyncExternalStore(
306
- b,
307
- () => ct(S),
308
- () => ct(S)
309
- );
310
- }, y = (m) => {
311
- const S = d.useContext(l)[m], [b, h] = d.useState(Xe(ct, S));
312
- return ce(
313
- () => j(S, (a) => {
314
- a !== b && h(tn(a));
315
- }),
316
- [S, b]
317
- ), b;
318
- }, T = d.version.startsWith("18") ? E : y;
319
- return {
320
- Component: g,
321
- usePublisher: x,
322
- useEmitterValue: T,
323
- useEmitter: (m, p) => {
324
- const b = d.useContext(l)[m];
325
- ce(() => j(b, p), [p, b]);
326
- }
327
- };
328
- }
329
- const ro = typeof document < "u" ? d.useLayoutEffect : d.useEffect, so = ro;
330
- var pt = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t))(pt || {});
331
- const io = {
332
- 0: "debug",
333
- 1: "log",
334
- 2: "warn",
335
- 3: "error"
336
- }, lo = () => typeof globalThis > "u" ? window : globalThis, Ot = U(
337
- () => {
338
- const t = w(
339
- 3
340
- /* ERROR */
341
- );
342
- return {
343
- log: w((n, o, r = 1) => {
344
- var s;
345
- const i = (s = lo().VIRTUOSO_LOG_LEVEL) != null ? s : ct(t);
346
- r >= i && console[io[r]](
347
- "%creact-virtuoso: %c%s %o",
348
- "color: #0253b3; font-weight: bold",
349
- "color: initial",
350
- n,
351
- o
352
- );
353
- }),
354
- logLevel: t
355
- };
356
- },
357
- [],
358
- { singleton: !0 }
359
- );
360
- function Pe(t, e = !0) {
361
- const n = d.useRef(null);
362
- let o = (r) => {
363
- };
364
- if (typeof ResizeObserver < "u") {
365
- const r = d.useMemo(() => new ResizeObserver((s) => {
366
- requestAnimationFrame(() => {
367
- const i = s[0].target;
368
- i.offsetParent !== null && t(i);
369
- });
370
- }), [t]);
371
- o = (s) => {
372
- s && e ? (r.observe(s), n.current = s) : (n.current && r.unobserve(n.current), n.current = null);
373
- };
374
- }
375
- return { ref: n, callbackRef: o };
376
- }
377
- function Rt(t, e = !0) {
378
- return Pe(t, e).callbackRef;
379
- }
380
- function Cn(t, e, n, o, r, s, i) {
381
- const l = d.useCallback(
382
- (c) => {
383
- const f = co(c.children, e, "offsetHeight", r);
384
- let u = c.parentElement;
385
- for (; !u.dataset.virtuosoScroller; )
386
- u = u.parentElement;
387
- const g = u.lastElementChild.dataset.viewportType === "window", x = i ? i.scrollTop : g ? window.pageYOffset || document.documentElement.scrollTop : u.scrollTop, E = i ? i.scrollHeight : g ? document.documentElement.scrollHeight : u.scrollHeight, y = i ? i.offsetHeight : g ? window.innerHeight : u.offsetHeight;
388
- o({
389
- scrollTop: Math.max(x, 0),
390
- scrollHeight: E,
391
- viewportHeight: y
392
- }), s == null || s(uo("row-gap", getComputedStyle(c).rowGap, r)), f !== null && t(f);
393
- },
394
- [t, e, r, s, i, o]
395
- );
396
- return Pe(l, n);
397
- }
398
- function co(t, e, n, o) {
399
- const r = t.length;
400
- if (r === 0)
401
- return null;
402
- const s = [];
403
- for (let i = 0; i < r; i++) {
404
- const l = t.item(i);
405
- if (!l || l.dataset.index === void 0)
406
- continue;
407
- const c = parseInt(l.dataset.index), f = parseFloat(l.dataset.knownSize), u = e(l, n);
408
- if (u === 0 && o("Zero-sized element, this should not happen", { child: l }, pt.ERROR), u === f)
409
- continue;
410
- const g = s[s.length - 1];
411
- s.length === 0 || g.size !== u || g.endIndex !== c - 1 ? s.push({ startIndex: c, endIndex: c, size: u }) : s[s.length - 1].endIndex++;
412
- }
413
- return s;
414
- }
415
- function uo(t, e, n) {
416
- return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, pt.WARN), e === "normal" ? 0 : parseInt(e ?? "0", 10);
417
- }
418
- function Ct(t, e) {
419
- return Math.round(t.getBoundingClientRect()[e]);
420
- }
421
- function vn(t, e) {
422
- return Math.abs(t - e) < 1.01;
423
- }
424
- function En(t, e, n, o = At, r) {
425
- const s = d.useRef(null), i = d.useRef(null), l = d.useRef(null), c = d.useCallback(
426
- (g) => {
427
- const x = g.target, E = x === window || x === document, y = E ? window.pageYOffset || document.documentElement.scrollTop : x.scrollTop, T = E ? document.documentElement.scrollHeight : x.scrollHeight, R = E ? window.innerHeight : x.offsetHeight, m = () => {
428
- t({
429
- scrollTop: Math.max(y, 0),
430
- scrollHeight: T,
431
- viewportHeight: R
432
- });
433
- };
434
- g.suppressFlushSync ? m() : Yn.flushSync(m), i.current !== null && (y === i.current || y <= 0 || y === T - R) && (i.current = null, e(!0), l.current && (clearTimeout(l.current), l.current = null));
435
- },
436
- [t, e]
437
- );
438
- d.useEffect(() => {
439
- const g = r || s.current;
440
- return o(r || s.current), c({ target: g, suppressFlushSync: !0 }), g.addEventListener("scroll", c, { passive: !0 }), () => {
441
- o(null), g.removeEventListener("scroll", c);
442
- };
443
- }, [s, c, n, o, r]);
444
- function f(g) {
445
- const x = s.current;
446
- if (!x || "offsetHeight" in x && x.offsetHeight === 0)
447
- return;
448
- const E = g.behavior === "smooth";
449
- let y, T, R;
450
- x === window ? (T = Math.max(Ct(document.documentElement, "height"), document.documentElement.scrollHeight), y = window.innerHeight, R = document.documentElement.scrollTop) : (T = x.scrollHeight, y = Ct(x, "height"), R = x.scrollTop);
451
- const m = T - y;
452
- if (g.top = Math.ceil(Math.max(Math.min(m, g.top), 0)), vn(y, T) || g.top === R) {
453
- t({ scrollTop: R, scrollHeight: T, viewportHeight: y }), E && e(!0);
454
- return;
455
- }
456
- E ? (i.current = g.top, l.current && clearTimeout(l.current), l.current = setTimeout(() => {
457
- l.current = null, i.current = null, e(!0);
458
- }, 1e3)) : i.current = null, x.scrollTo(g);
459
- }
460
- function u(g) {
461
- s.current.scrollBy(g);
462
- }
463
- return { scrollerRef: s, scrollByCallback: u, scrollToCallback: f };
464
- }
465
- const dt = U(
466
- () => {
467
- const t = $(), e = $(), n = w(0), o = $(), r = w(0), s = $(), i = $(), l = w(0), c = w(0), f = w(0), u = w(0), g = $(), x = $(), E = w(!1);
468
- return z(
469
- I(
470
- t,
471
- H(({ scrollTop: y }) => y)
472
- ),
473
- e
474
- ), z(
475
- I(
476
- t,
477
- H(({ scrollHeight: y }) => y)
478
- ),
479
- i
480
- ), z(e, r), {
481
- // input
482
- scrollContainerState: t,
483
- scrollTop: e,
484
- viewportHeight: s,
485
- headerHeight: l,
486
- fixedHeaderHeight: c,
487
- fixedFooterHeight: f,
488
- footerHeight: u,
489
- scrollHeight: i,
490
- smoothScrollTargetReached: o,
491
- // signals
492
- scrollTo: g,
493
- scrollBy: x,
494
- // state
495
- statefulScrollTop: r,
496
- deviation: n,
497
- scrollingInProgress: E
498
- };
499
- },
500
- [],
501
- { singleton: !0 }
502
- ), Jt = { lvl: 0 };
503
- function yn(t, e, n, o = Jt, r = Jt) {
504
- return { k: t, v: e, lvl: n, l: o, r };
505
- }
506
- function Y(t) {
507
- return t === Jt;
508
- }
509
- function $t() {
510
- return Jt;
511
- }
512
- function Re(t, e) {
513
- if (Y(t))
514
- return Jt;
515
- const { k: n, l: o, r } = t;
516
- if (e === n) {
517
- if (Y(o))
518
- return r;
519
- if (Y(r))
520
- return o;
521
- {
522
- const [s, i] = bn(o);
523
- return ae(ot(t, { k: s, v: i, l: Rn(o) }));
524
- }
525
- } else return e < n ? ae(ot(t, { l: Re(o, e) })) : ae(ot(t, { r: Re(r, e) }));
526
- }
527
- function Qt(t, e) {
528
- if (!Y(t))
529
- return e === t.k ? t.v : e < t.k ? Qt(t.l, e) : Qt(t.r, e);
530
- }
531
- function vt(t, e, n = "k") {
532
- if (Y(t))
533
- return [-1 / 0, void 0];
534
- if (Number(t[n]) === e)
535
- return [t.k, t.v];
536
- if (Number(t[n]) < e) {
537
- const o = vt(t.r, e, n);
538
- return o[0] === -1 / 0 ? [t.k, t.v] : o;
539
- }
540
- return vt(t.l, e, n);
541
- }
542
- function ft(t, e, n) {
543
- return Y(t) ? yn(e, n, 1) : e === t.k ? ot(t, { k: e, v: n }) : e < t.k ? on(ot(t, { l: ft(t.l, e, n) })) : on(ot(t, { r: ft(t.r, e, n) }));
544
- }
545
- function He(t, e, n) {
546
- if (Y(t))
547
- return [];
548
- const { k: o, v: r, l: s, r: i } = t;
549
- let l = [];
550
- return o > e && (l = l.concat(He(s, e, n))), o >= e && o <= n && l.push({ k: o, v: r }), o <= n && (l = l.concat(He(i, e, n))), l;
551
- }
552
- function Mt(t) {
553
- return Y(t) ? [] : [...Mt(t.l), { k: t.k, v: t.v }, ...Mt(t.r)];
554
- }
555
- function bn(t) {
556
- return Y(t.r) ? [t.k, t.v] : bn(t.r);
557
- }
558
- function Rn(t) {
559
- return Y(t.r) ? t.l : ae(ot(t, { r: Rn(t.r) }));
560
- }
561
- function ot(t, e) {
562
- return yn(
563
- e.k !== void 0 ? e.k : t.k,
564
- e.v !== void 0 ? e.v : t.v,
565
- e.lvl !== void 0 ? e.lvl : t.lvl,
566
- e.l !== void 0 ? e.l : t.l,
567
- e.r !== void 0 ? e.r : t.r
568
- );
569
- }
570
- function ve(t) {
571
- return Y(t) || t.lvl > t.r.lvl;
572
- }
573
- function on(t) {
574
- return Be(Bn(t));
575
- }
576
- function ae(t) {
577
- const { l: e, r: n, lvl: o } = t;
578
- if (n.lvl >= o - 1 && e.lvl >= o - 1)
579
- return t;
580
- if (o > n.lvl + 1) {
581
- if (ve(e))
582
- return Bn(ot(t, { lvl: o - 1 }));
583
- if (!Y(e) && !Y(e.r))
584
- return ot(e.r, {
585
- l: ot(e, { r: e.r.l }),
586
- r: ot(t, {
587
- l: e.r.r,
588
- lvl: o - 1
589
- }),
590
- lvl: o
591
- });
592
- throw new Error("Unexpected empty nodes");
593
- } else {
594
- if (ve(t))
595
- return Be(ot(t, { lvl: o - 1 }));
596
- if (!Y(n) && !Y(n.l)) {
597
- const r = n.l, s = ve(r) ? n.lvl - 1 : n.lvl;
598
- return ot(r, {
599
- l: ot(t, {
600
- r: r.l,
601
- lvl: o - 1
602
- }),
603
- r: Be(ot(n, { l: r.r, lvl: s })),
604
- lvl: r.lvl + 1
605
- });
606
- } else
607
- throw new Error("Unexpected empty nodes");
608
- }
609
- }
610
- function Ie(t, e, n) {
611
- if (Y(t))
612
- return [];
613
- const o = vt(t, e)[0];
614
- return ao(He(t, o, n));
615
- }
616
- function Hn(t, e) {
617
- const n = t.length;
618
- if (n === 0)
619
- return [];
620
- let { index: o, value: r } = e(t[0]);
621
- const s = [];
622
- for (let i = 1; i < n; i++) {
623
- const { index: l, value: c } = e(t[i]);
624
- s.push({ start: o, end: l - 1, value: r }), o = l, r = c;
625
- }
626
- return s.push({ start: o, end: 1 / 0, value: r }), s;
627
- }
628
- function ao(t) {
629
- return Hn(t, ({ k: e, v: n }) => ({ index: e, value: n }));
630
- }
631
- function Be(t) {
632
- const { r: e, lvl: n } = t;
633
- return !Y(e) && !Y(e.r) && e.lvl === n && e.r.lvl === n ? ot(e, { l: ot(t, { r: e.l }), lvl: n + 1 }) : t;
634
- }
635
- function Bn(t) {
636
- const { l: e } = t;
637
- return !Y(e) && e.lvl === t.lvl ? ot(e, { r: ot(t, { l: e.r }) }) : t;
638
- }
639
- function fe(t, e, n, o = 0) {
640
- let r = t.length - 1;
641
- for (; o <= r; ) {
642
- const s = Math.floor((o + r) / 2), i = t[s], l = n(i, e);
643
- if (l === 0)
644
- return s;
645
- if (l === -1) {
646
- if (r - o < 2)
647
- return s - 1;
648
- r = s - 1;
649
- } else {
650
- if (r === o)
651
- return s;
652
- o = s + 1;
653
- }
654
- }
655
- throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
656
- }
657
- function kn(t, e, n) {
658
- return t[fe(t, e, n)];
659
- }
660
- function fo(t, e, n, o) {
661
- const r = fe(t, e, o), s = fe(t, n, o, r);
662
- return t.slice(r, s + 1);
663
- }
664
- const Ve = U(
665
- () => ({ recalcInProgress: w(!1) }),
666
- [],
667
- { singleton: !0 }
668
- );
669
- function mo(t) {
670
- const { size: e, startIndex: n, endIndex: o } = t;
671
- return (r) => r.start === n && (r.end === o || r.end === 1 / 0) && r.value === e;
672
- }
673
- function rn(t, e) {
674
- let n = 0, o = 0;
675
- for (; n < t; )
676
- n += e[o + 1] - e[o] - 1, o++;
677
- return o - (n === t ? 0 : 1);
678
- }
679
- function po(t, e) {
680
- let n = Y(t) ? 0 : 1 / 0;
681
- for (const o of e) {
682
- const { size: r, startIndex: s, endIndex: i } = o;
683
- if (n = Math.min(n, s), Y(t)) {
684
- t = ft(t, 0, r);
685
- continue;
686
- }
687
- const l = Ie(t, s - 1, i + 1);
688
- if (l.some(mo(o)))
689
- continue;
690
- let c = !1, f = !1;
691
- for (const { start: u, end: g, value: x } of l)
692
- c ? (i >= u || r === x) && (t = Re(t, u)) : (f = x !== r, c = !0), g > i && i >= u && x !== r && (t = ft(t, i + 1, x));
693
- f && (t = ft(t, s, r));
694
- }
695
- return [t, n];
696
- }
697
- function ho() {
698
- return {
699
- offsetTree: [],
700
- sizeTree: $t(),
701
- groupOffsetTree: $t(),
702
- lastIndex: 0,
703
- lastOffset: 0,
704
- lastSize: 0,
705
- groupIndices: []
706
- };
707
- }
708
- function _e({ index: t }, e) {
709
- return e === t ? 0 : e < t ? -1 : 1;
710
- }
711
- function go({ offset: t }, e) {
712
- return e === t ? 0 : e < t ? -1 : 1;
713
- }
714
- function So(t) {
715
- return { index: t.index, value: t };
716
- }
717
- function Io(t, e, n, o = 0) {
718
- return o > 0 && (e = Math.max(e, kn(t, o, _e).offset)), Hn(fo(t, e, n, go), So);
719
- }
720
- function ke(t, e, n, o) {
721
- let r = t, s = 0, i = 0, l = 0, c = 0;
722
- if (e !== 0) {
723
- c = fe(r, e - 1, _e), l = r[c].offset;
724
- const u = vt(n, e - 1);
725
- s = u[0], i = u[1], r.length && r[c].size === vt(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
726
- } else
727
- r = [];
728
- for (const { start: f, value: u } of Ie(n, e, 1 / 0)) {
729
- const g = f - s, x = g * i + l + g * o;
730
- r.push({
731
- offset: x,
732
- size: u,
733
- index: f
734
- }), s = f, l = x, i = u;
735
- }
736
- return {
737
- offsetTree: r,
738
- lastIndex: s,
739
- lastOffset: l,
740
- lastSize: i
741
- };
742
- }
743
- function xo(t, [e, n, o, r]) {
744
- e.length > 0 && o("received item sizes", e, pt.DEBUG);
745
- const s = t.sizeTree;
746
- let i = s, l = 0;
747
- if (n.length > 0 && Y(s) && e.length === 2) {
748
- const x = e[0].size, E = e[1].size;
749
- i = n.reduce((y, T) => ft(ft(y, T, x), T + 1, E), i);
750
- } else
751
- [i, l] = po(i, e);
752
- if (i === s)
753
- return t;
754
- const { offsetTree: c, lastIndex: f, lastSize: u, lastOffset: g } = ke(t.offsetTree, l, i, r);
755
- return {
756
- sizeTree: i,
757
- offsetTree: c,
758
- lastIndex: f,
759
- lastOffset: g,
760
- lastSize: u,
761
- groupOffsetTree: n.reduce((x, E) => ft(x, E, Xt(E, c, r)), $t()),
762
- groupIndices: n
763
- };
764
- }
765
- function Xt(t, e, n) {
766
- if (e.length === 0)
767
- return 0;
768
- const { offset: o, index: r, size: s } = kn(e, t, _e), i = t - r, l = s * i + (i - 1) * n + o;
769
- return l > 0 ? l + n : l;
770
- }
771
- function To(t) {
772
- return typeof t.groupIndex < "u";
773
- }
774
- function zn(t, e, n) {
775
- if (To(t))
776
- return e.groupIndices[t.groupIndex] + 1;
777
- {
778
- const o = t.index === "LAST" ? n : t.index;
779
- let r = Ln(o, e);
780
- return r = Math.max(0, r, Math.min(n, r)), r;
781
- }
782
- }
783
- function Ln(t, e) {
784
- if (!xe(e))
785
- return t;
786
- let n = 0;
787
- for (; e.groupIndices[n] <= t + n; )
788
- n++;
789
- return t + n;
790
- }
791
- function xe(t) {
792
- return !Y(t.groupOffsetTree);
793
- }
794
- function wo(t) {
795
- return Mt(t).map(({ k: e, v: n }, o, r) => {
796
- const s = r[o + 1], i = s ? s.k - 1 : 1 / 0;
797
- return { startIndex: e, endIndex: i, size: n };
798
- });
799
- }
800
- const Co = {
801
- offsetHeight: "height",
802
- offsetWidth: "width"
803
- }, Ht = U(
804
- ([{ log: t }, { recalcInProgress: e }]) => {
805
- const n = $(), o = $(), r = ut(o, 0), s = $(), i = $(), l = w(0), c = w([]), f = w(void 0), u = w(void 0), g = w((h, a) => Ct(h, Co[a])), x = w(void 0), E = w(0), y = ho(), T = ut(
806
- I(n, G(c, t, E), yt(xo, y), J()),
807
- y
808
- ), R = ut(
809
- I(
810
- c,
811
- J(),
812
- yt((h, a) => ({ prev: h.current, current: a }), {
813
- prev: [],
814
- current: []
815
- }),
816
- H(({ prev: h }) => h)
817
- ),
818
- []
819
- );
820
- z(
821
- I(
822
- c,
823
- F((h) => h.length > 0),
824
- G(T, E),
825
- H(([h, a, v]) => {
826
- const k = h.reduce((B, L, V) => ft(B, L, Xt(L, a.offsetTree, v) || V), $t());
827
- return {
828
- ...a,
829
- groupIndices: h,
830
- groupOffsetTree: k
831
- };
832
- })
833
- ),
834
- T
835
- ), z(
836
- I(
837
- o,
838
- G(T),
839
- F(([h, { lastIndex: a }]) => h < a),
840
- H(([h, { lastIndex: a, lastSize: v }]) => [
841
- {
842
- startIndex: h,
843
- endIndex: a,
844
- size: v
845
- }
846
- ])
847
- ),
848
- n
849
- ), z(f, u);
850
- const m = ut(
851
- I(
852
- f,
853
- H((h) => h === void 0)
854
- ),
855
- !0
856
- );
857
- z(
858
- I(
859
- u,
860
- F((h) => h !== void 0 && Y(ct(T).sizeTree)),
861
- H((h) => [{ startIndex: 0, endIndex: 0, size: h }])
862
- ),
863
- n
864
- );
865
- const p = mt(
866
- I(
867
- n,
868
- G(T),
869
- yt(
870
- ({ sizes: h }, [a, v]) => ({
871
- changed: v !== h,
872
- sizes: v
873
- }),
874
- { changed: !1, sizes: y }
875
- ),
876
- H((h) => h.changed)
877
- )
878
- );
879
- j(
880
- I(
881
- l,
882
- yt(
883
- (h, a) => ({ diff: h.prev - a, prev: a }),
884
- { diff: 0, prev: 0 }
885
- ),
886
- H((h) => h.diff)
887
- ),
888
- (h) => {
889
- const { groupIndices: a } = ct(T);
890
- if (h > 0)
891
- M(e, !0), M(s, h + rn(h, a));
892
- else if (h < 0) {
893
- const v = ct(R);
894
- v.length > 0 && (h -= rn(-h, v)), M(i, h);
895
- }
896
- }
897
- ), j(I(l, G(t)), ([h, a]) => {
898
- h < 0 && a(
899
- "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
900
- { firstItemIndex: l },
901
- pt.ERROR
902
- );
903
- });
904
- const S = mt(s);
905
- z(
906
- I(
907
- s,
908
- G(T),
909
- H(([h, a]) => {
910
- const v = a.groupIndices.length > 0, k = [], B = a.lastSize;
911
- if (v) {
912
- const L = Qt(a.sizeTree, 0);
913
- let V = 0, N = 0;
914
- for (; V < h; ) {
915
- const A = a.groupIndices[N], _ = a.groupIndices.length === N + 1 ? 1 / 0 : a.groupIndices[N + 1] - A - 1;
916
- k.push({
917
- startIndex: A,
918
- endIndex: A,
919
- size: L
920
- }), k.push({
921
- startIndex: A + 1,
922
- endIndex: A + 1 + _ - 1,
923
- size: B
924
- }), N++, V += _ + 1;
925
- }
926
- const q = Mt(a.sizeTree);
927
- return V !== h && q.shift(), q.reduce(
928
- (A, { k: _, v: nt }) => {
929
- let at = A.ranges;
930
- return A.prevSize !== 0 && (at = [
931
- ...A.ranges,
932
- {
933
- startIndex: A.prevIndex,
934
- endIndex: _ + h - 1,
935
- size: A.prevSize
936
- }
937
- ]), {
938
- ranges: at,
939
- prevIndex: _ + h,
940
- prevSize: nt
941
- };
942
- },
943
- {
944
- ranges: k,
945
- prevIndex: h,
946
- prevSize: 0
947
- }
948
- ).ranges;
949
- }
950
- return Mt(a.sizeTree).reduce(
951
- (L, { k: V, v: N }) => ({
952
- ranges: [...L.ranges, { startIndex: L.prevIndex, endIndex: V + h - 1, size: L.prevSize }],
953
- prevIndex: V + h,
954
- prevSize: N
955
- }),
956
- {
957
- ranges: [],
958
- prevIndex: 0,
959
- prevSize: B
960
- }
961
- ).ranges;
962
- })
963
- ),
964
- n
965
- );
966
- const b = mt(
967
- I(
968
- i,
969
- G(T, E),
970
- H(([h, { offsetTree: a }, v]) => {
971
- const k = -h;
972
- return Xt(k, a, v);
973
- })
974
- )
975
- );
976
- return z(
977
- I(
978
- i,
979
- G(T, E),
980
- H(([h, a, v]) => {
981
- if (a.groupIndices.length > 0) {
982
- if (Y(a.sizeTree))
983
- return a;
984
- let B = $t();
985
- const L = ct(R);
986
- let V = 0, N = 0, q = 0;
987
- for (; V < -h; ) {
988
- q = L[N];
989
- const A = L[N + 1] - q - 1;
990
- N++, V += A + 1;
991
- }
992
- if (B = Mt(a.sizeTree).reduce((A, { k: _, v: nt }) => ft(A, Math.max(0, _ + h), nt), B), V !== -h) {
993
- const A = Qt(a.sizeTree, q);
994
- B = ft(B, 0, A);
995
- const _ = vt(a.sizeTree, -h + 1)[1];
996
- B = ft(B, 1, _);
997
- }
998
- return {
999
- ...a,
1000
- sizeTree: B,
1001
- ...ke(a.offsetTree, 0, B, v)
1002
- };
1003
- } else {
1004
- const B = Mt(a.sizeTree).reduce((L, { k: V, v: N }) => ft(L, Math.max(0, V + h), N), $t());
1005
- return {
1006
- ...a,
1007
- sizeTree: B,
1008
- ...ke(a.offsetTree, 0, B, v)
1009
- };
1010
- }
1011
- })
1012
- ),
1013
- T
1014
- ), {
1015
- // input
1016
- data: x,
1017
- totalCount: o,
1018
- sizeRanges: n,
1019
- groupIndices: c,
1020
- defaultItemSize: u,
1021
- fixedItemSize: f,
1022
- unshiftWith: s,
1023
- shiftWith: i,
1024
- shiftWithOffset: b,
1025
- beforeUnshiftWith: S,
1026
- firstItemIndex: l,
1027
- gap: E,
1028
- // output
1029
- sizes: T,
1030
- listRefresh: p,
1031
- statefulTotalCount: r,
1032
- trackItemSizes: m,
1033
- itemSize: g
1034
- };
1035
- },
1036
- Q(Ot, Ve),
1037
- { singleton: !0 }
1038
- ), vo = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1039
- function On(t) {
1040
- const e = typeof t == "number" ? { index: t } : t;
1041
- return e.align || (e.align = "start"), (!e.behavior || !vo) && (e.behavior = "auto"), e.offset || (e.offset = 0), e;
1042
- }
1043
- const ne = U(
1044
- ([
1045
- { sizes: t, totalCount: e, listRefresh: n, gap: o },
1046
- {
1047
- scrollingInProgress: r,
1048
- viewportHeight: s,
1049
- scrollTo: i,
1050
- smoothScrollTargetReached: l,
1051
- headerHeight: c,
1052
- footerHeight: f,
1053
- fixedHeaderHeight: u,
1054
- fixedFooterHeight: g
1055
- },
1056
- { log: x }
1057
- ]) => {
1058
- const E = $(), y = $(), T = w(0);
1059
- let R = null, m = null, p = null;
1060
- function S() {
1061
- R && (R(), R = null), p && (p(), p = null), m && (clearTimeout(m), m = null), M(r, !1);
1062
- }
1063
- return z(
1064
- I(
1065
- E,
1066
- G(t, s, e, T, c, f, x),
1067
- G(o, u, g),
1068
- H(
1069
- ([
1070
- [b, h, a, v, k, B, L, V],
1071
- N,
1072
- q,
1073
- O
1074
- ]) => {
1075
- const A = On(b), { align: _, behavior: nt, offset: at } = A, It = v - 1, ht = zn(A, h, It);
1076
- let it = Xt(ht, h.offsetTree, N) + B;
1077
- _ === "end" ? (it += q + vt(h.sizeTree, ht)[1] - a + O, ht === It && (it += L)) : _ === "center" ? it += (q + vt(h.sizeTree, ht)[1] - a + O) / 2 : it -= k, at && (it += at);
1078
- const Pt = (Bt) => {
1079
- S(), Bt ? (V("retrying to scroll to", { location: b }, pt.DEBUG), M(E, b)) : (M(y, !0), V("list did not change, scroll successful", {}, pt.DEBUG));
1080
- };
1081
- if (S(), nt === "smooth") {
1082
- let Bt = !1;
1083
- p = j(n, (Wt) => {
1084
- Bt = Bt || Wt;
1085
- }), R = bt(l, () => {
1086
- Pt(Bt);
1087
- });
1088
- } else
1089
- R = bt(I(n, Eo(150)), Pt);
1090
- return m = setTimeout(() => {
1091
- S();
1092
- }, 1200), M(r, !0), V("scrolling from index to", { index: ht, top: it, behavior: nt }, pt.DEBUG), { top: it, behavior: nt };
1093
- }
1094
- )
1095
- ),
1096
- i
1097
- ), {
1098
- scrollToIndex: E,
1099
- scrollTargetReached: y,
1100
- topListHeight: T
1101
- };
1102
- },
1103
- Q(Ht, dt, Ot),
1104
- { singleton: !0 }
1105
- );
1106
- function Eo(t) {
1107
- return (e) => {
1108
- const n = setTimeout(() => {
1109
- e(!1);
1110
- }, t);
1111
- return (o) => {
1112
- o && (e(!0), clearTimeout(n));
1113
- };
1114
- };
1115
- }
1116
- const te = "up", qt = "down", yo = "none", bo = {
1117
- atBottom: !1,
1118
- notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1119
- state: {
1120
- offsetBottom: 0,
1121
- scrollTop: 0,
1122
- viewportHeight: 0,
1123
- scrollHeight: 0
1124
- }
1125
- }, Ro = 0, oe = U(([{ scrollContainerState: t, scrollTop: e, viewportHeight: n, headerHeight: o, footerHeight: r, scrollBy: s }]) => {
1126
- const i = w(!1), l = w(!0), c = $(), f = $(), u = w(4), g = w(Ro), x = ut(
1127
- I(
1128
- nn(I(P(e), Ut(1), Et(!0)), I(P(e), Ut(1), Et(!1), en(100))),
1129
- J()
1130
- ),
1131
- !1
1132
- ), E = ut(
1133
- I(nn(I(s, Et(!0)), I(s, Et(!1), en(200))), J()),
1134
- !1
1135
- );
1136
- z(
1137
- I(
1138
- st(P(e), P(g)),
1139
- H(([p, S]) => p <= S),
1140
- J()
1141
- ),
1142
- l
1143
- ), z(I(l, zt(50)), f);
1144
- const y = mt(
1145
- I(
1146
- st(t, P(n), P(o), P(r), P(u)),
1147
- yt((p, [{ scrollTop: S, scrollHeight: b }, h, a, v, k]) => {
1148
- const B = S + h - b > -k, L = {
1149
- viewportHeight: h,
1150
- scrollTop: S,
1151
- scrollHeight: b
1152
- };
1153
- if (B) {
1154
- let N, q;
1155
- return S > p.state.scrollTop ? (N = "SCROLLED_DOWN", q = p.state.scrollTop - S) : (N = "SIZE_DECREASED", q = p.state.scrollTop - S || p.scrollTopDelta), {
1156
- atBottom: !0,
1157
- state: L,
1158
- atBottomBecause: N,
1159
- scrollTopDelta: q
1160
- };
1161
- }
1162
- let V;
1163
- return L.scrollHeight > p.state.scrollHeight ? V = "SIZE_INCREASED" : h < p.state.viewportHeight ? V = "VIEWPORT_HEIGHT_DECREASING" : S < p.state.scrollTop ? V = "SCROLLING_UPWARDS" : V = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1164
- atBottom: !1,
1165
- notAtBottomBecause: V,
1166
- state: L
1167
- };
1168
- }, bo),
1169
- J((p, S) => p && p.atBottom === S.atBottom)
1170
- )
1171
- ), T = ut(
1172
- I(
1173
- t,
1174
- yt(
1175
- (p, { scrollTop: S, scrollHeight: b, viewportHeight: h }) => {
1176
- if (vn(p.scrollHeight, b))
1177
- return {
1178
- scrollTop: S,
1179
- scrollHeight: b,
1180
- jump: 0,
1181
- changed: !1
1182
- };
1183
- {
1184
- const a = b - (S + h) < 1;
1185
- return p.scrollTop !== S && a ? {
1186
- scrollHeight: b,
1187
- scrollTop: S,
1188
- jump: p.scrollTop - S,
1189
- changed: !0
1190
- } : {
1191
- scrollHeight: b,
1192
- scrollTop: S,
1193
- jump: 0,
1194
- changed: !0
1195
- };
1196
- }
1197
- },
1198
- { scrollHeight: 0, jump: 0, scrollTop: 0, changed: !1 }
1199
- ),
1200
- F((p) => p.changed),
1201
- H((p) => p.jump)
1202
- ),
1203
- 0
1204
- );
1205
- z(
1206
- I(
1207
- y,
1208
- H((p) => p.atBottom)
1209
- ),
1210
- i
1211
- ), z(I(i, zt(50)), c);
1212
- const R = w(qt);
1213
- z(
1214
- I(
1215
- t,
1216
- H(({ scrollTop: p }) => p),
1217
- J(),
1218
- yt(
1219
- (p, S) => ct(E) ? { direction: p.direction, prevScrollTop: S } : { direction: S < p.prevScrollTop ? te : qt, prevScrollTop: S },
1220
- { direction: qt, prevScrollTop: 0 }
1221
- ),
1222
- H((p) => p.direction)
1223
- ),
1224
- R
1225
- ), z(I(t, zt(50), Et(yo)), R);
1226
- const m = w(0);
1227
- return z(
1228
- I(
1229
- x,
1230
- F((p) => !p),
1231
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
1232
- Et(0)
1233
- ),
1234
- m
1235
- ), z(
1236
- I(
1237
- e,
1238
- zt(100),
1239
- G(x),
1240
- F(([p, S]) => !!S),
1241
- yt(([p, S], [b]) => [S, b], [0, 0]),
1242
- H(([p, S]) => S - p)
1243
- ),
1244
- m
1245
- ), {
1246
- isScrolling: x,
1247
- isAtTop: l,
1248
- isAtBottom: i,
1249
- atBottomState: y,
1250
- atTopStateChange: f,
1251
- atBottomStateChange: c,
1252
- scrollDirection: R,
1253
- atBottomThreshold: u,
1254
- atTopThreshold: g,
1255
- scrollVelocity: m,
1256
- lastJumpDueToItemResize: T
1257
- };
1258
- }, Q(dt)), Ft = U(
1259
- ([{ log: t }]) => {
1260
- const e = w(!1), n = mt(
1261
- I(
1262
- e,
1263
- F((o) => o),
1264
- J()
1265
- )
1266
- );
1267
- return j(e, (o) => {
1268
- o && ct(t)("props updated", {}, pt.DEBUG);
1269
- }), { propsReady: e, didMount: n };
1270
- },
1271
- Q(Ot),
1272
- { singleton: !0 }
1273
- );
1274
- function Me(t, e) {
1275
- t == 0 ? e() : requestAnimationFrame(() => Me(t - 1, e));
1276
- }
1277
- function Ae(t, e) {
1278
- const n = e - 1;
1279
- return typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1280
- }
1281
- const re = U(
1282
- ([{ sizes: t, listRefresh: e, defaultItemSize: n }, { scrollTop: o }, { scrollToIndex: r, scrollTargetReached: s }, { didMount: i }]) => {
1283
- const l = w(!0), c = w(0), f = w(!0);
1284
- return z(
1285
- I(
1286
- i,
1287
- G(c),
1288
- F(([u, g]) => !!g),
1289
- Et(!1)
1290
- ),
1291
- l
1292
- ), z(
1293
- I(
1294
- i,
1295
- G(c),
1296
- F(([u, g]) => !!g),
1297
- Et(!1)
1298
- ),
1299
- f
1300
- ), j(
1301
- I(
1302
- st(e, i),
1303
- G(l, t, n, f),
1304
- F(([[, u], g, { sizeTree: x }, E, y]) => u && (!Y(x) || Le(E)) && !g && !y),
1305
- G(c)
1306
- ),
1307
- ([, u]) => {
1308
- bt(s, () => {
1309
- M(f, !0);
1310
- }), Me(4, () => {
1311
- bt(o, () => {
1312
- M(l, !0);
1313
- }), M(r, u);
1314
- });
1315
- }
1316
- ), {
1317
- scrolledToInitialItem: l,
1318
- initialTopMostItemIndex: c,
1319
- initialItemFinalLocationReached: f
1320
- };
1321
- },
1322
- Q(Ht, dt, ne, Ft),
1323
- { singleton: !0 }
1324
- );
1325
- function sn(t) {
1326
- return t ? t === "smooth" ? "smooth" : "auto" : !1;
1327
- }
1328
- const Ho = (t, e) => typeof t == "function" ? sn(t(e)) : e && sn(t), Bo = U(
1329
- ([
1330
- { totalCount: t, listRefresh: e },
1331
- { isAtBottom: n, atBottomState: o },
1332
- { scrollToIndex: r },
1333
- { scrolledToInitialItem: s },
1334
- { propsReady: i, didMount: l },
1335
- { log: c },
1336
- { scrollingInProgress: f }
1337
- ]) => {
1338
- const u = w(!1), g = $();
1339
- let x = null;
1340
- function E(T) {
1341
- M(r, {
1342
- index: "LAST",
1343
- align: "end",
1344
- behavior: T
1345
- });
1346
- }
1347
- j(
1348
- I(
1349
- st(I(P(t), Ut(1)), l),
1350
- G(P(u), n, s, f),
1351
- H(([[T, R], m, p, S, b]) => {
1352
- let h = R && S, a = "auto";
1353
- return h && (a = Ho(m, p || b), h = h && !!a), { totalCount: T, shouldFollow: h, followOutputBehavior: a };
1354
- }),
1355
- F(({ shouldFollow: T }) => T)
1356
- ),
1357
- ({ totalCount: T, followOutputBehavior: R }) => {
1358
- x && (x(), x = null), x = bt(e, () => {
1359
- ct(c)("following output to ", { totalCount: T }, pt.DEBUG), E(R), x = null;
1360
- });
1361
- }
1362
- );
1363
- function y(T) {
1364
- const R = bt(o, (m) => {
1365
- T && !m.atBottom && m.notAtBottomBecause === "SIZE_INCREASED" && !x && (ct(c)("scrolling to bottom due to increased size", {}, pt.DEBUG), E("auto"));
1366
- });
1367
- setTimeout(R, 100);
1368
- }
1369
- return j(
1370
- I(
1371
- st(P(u), t, i),
1372
- F(([T, , R]) => T && R),
1373
- yt(
1374
- ({ value: T }, [, R]) => ({ refreshed: T === R, value: R }),
1375
- { refreshed: !1, value: 0 }
1376
- ),
1377
- F(({ refreshed: T }) => T),
1378
- G(u, t)
1379
- ),
1380
- ([, T]) => {
1381
- ct(s) && y(T !== !1);
1382
- }
1383
- ), j(g, () => {
1384
- y(ct(u) !== !1);
1385
- }), j(st(P(u), o), ([T, R]) => {
1386
- T && !R.atBottom && R.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && E("auto");
1387
- }), { followOutput: u, autoscrollToBottom: g };
1388
- },
1389
- Q(Ht, oe, ne, re, Ft, Ot, dt)
1390
- );
1391
- function ko(t) {
1392
- return t.reduce(
1393
- (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),
1394
- {
1395
- totalCount: 0,
1396
- groupIndices: []
1397
- }
1398
- );
1399
- }
1400
- const Fn = U(([{ totalCount: t, groupIndices: e, sizes: n }, { scrollTop: o, headerHeight: r }]) => {
1401
- const s = $(), i = $(), l = mt(I(s, H(ko)));
1402
- return z(
1403
- I(
1404
- l,
1405
- H((c) => c.totalCount)
1406
- ),
1407
- t
1408
- ), z(
1409
- I(
1410
- l,
1411
- H((c) => c.groupIndices)
1412
- ),
1413
- e
1414
- ), z(
1415
- I(
1416
- st(o, n, r),
1417
- F(([c, f]) => xe(f)),
1418
- H(([c, f, u]) => vt(f.groupOffsetTree, Math.max(c - u, 0), "v")[0]),
1419
- J(),
1420
- H((c) => [c])
1421
- ),
1422
- i
1423
- ), { groupCounts: s, topItemsIndexes: i };
1424
- }, Q(Ht, dt));
1425
- function ee(t, e) {
1426
- return !!(t && t[0] === e[0] && t[1] === e[1]);
1427
- }
1428
- function Pn(t, e) {
1429
- return !!(t && t.startIndex === e.startIndex && t.endIndex === e.endIndex);
1430
- }
1431
- const me = "top", pe = "bottom", ln = "none";
1432
- function cn(t, e, n) {
1433
- return typeof t == "number" ? n === te && e === me || n === qt && e === pe ? t : 0 : n === te ? e === me ? t.main : t.reverse : e === pe ? t.main : t.reverse;
1434
- }
1435
- function un(t, e) {
1436
- return typeof t == "number" ? t : t[e] || 0;
1437
- }
1438
- const Ge = U(
1439
- ([{ scrollTop: t, viewportHeight: e, deviation: n, headerHeight: o, fixedHeaderHeight: r }]) => {
1440
- const s = $(), i = w(0), l = w(0), c = w(0), f = ut(
1441
- I(
1442
- st(
1443
- P(t),
1444
- P(e),
1445
- P(o),
1446
- P(s, ee),
1447
- P(c),
1448
- P(i),
1449
- P(r),
1450
- P(n),
1451
- P(l)
1452
- ),
1453
- H(
1454
- ([
1455
- u,
1456
- g,
1457
- x,
1458
- [E, y],
1459
- T,
1460
- R,
1461
- m,
1462
- p,
1463
- S
1464
- ]) => {
1465
- const b = u - p, h = R + m, a = Math.max(x - b, 0);
1466
- let v = ln;
1467
- const k = un(S, me), B = un(S, pe);
1468
- return E -= p, E += x + m, y += x + m, y -= p, E > u + h - k && (v = te), y < u - a + g + B && (v = qt), v !== ln ? [
1469
- Math.max(b - x - cn(T, me, v) - k, 0),
1470
- b - a - m + g + cn(T, pe, v) + B
1471
- ] : null;
1472
- }
1473
- ),
1474
- F((u) => u != null),
1475
- J(ee)
1476
- ),
1477
- [0, 0]
1478
- );
1479
- return {
1480
- // input
1481
- listBoundary: s,
1482
- overscan: c,
1483
- topListHeight: i,
1484
- increaseViewportBy: l,
1485
- // output
1486
- visibleRange: f
1487
- };
1488
- },
1489
- Q(dt),
1490
- { singleton: !0 }
1491
- );
1492
- function zo(t, e, n) {
1493
- if (xe(e)) {
1494
- const o = Ln(t, e);
1495
- return [
1496
- { index: vt(e.groupOffsetTree, o)[0], size: 0, offset: 0 },
1497
- { index: o, size: 0, offset: 0, data: n && n[0] }
1498
- ];
1499
- }
1500
- return [{ index: t, size: 0, offset: 0, data: n && n[0] }];
1501
- }
1502
- const Ee = {
1503
- items: [],
1504
- topItems: [],
1505
- offsetTop: 0,
1506
- offsetBottom: 0,
1507
- top: 0,
1508
- bottom: 0,
1509
- topListHeight: 0,
1510
- totalCount: 0,
1511
- firstItemIndex: 0
1512
- };
1513
- function an(t, e, n) {
1514
- if (t.length === 0)
1515
- return [];
1516
- if (!xe(e))
1517
- return t.map((f) => ({ ...f, index: f.index + n, originalIndex: f.index }));
1518
- const o = t[0].index, r = t[t.length - 1].index, s = [], i = Ie(e.groupOffsetTree, o, r);
1519
- let l, c = 0;
1520
- for (const f of t) {
1521
- (!l || l.end < f.index) && (l = i.shift(), c = e.groupIndices.indexOf(l.start));
1522
- let u;
1523
- f.index === l.start ? u = {
1524
- type: "group",
1525
- index: c
1526
- } : u = {
1527
- index: f.index - (c + 1) + n,
1528
- groupIndex: c
1529
- }, s.push({
1530
- ...u,
1531
- size: f.size,
1532
- offset: f.offset,
1533
- originalIndex: f.index,
1534
- data: f.data
1535
- });
1536
- }
1537
- return s;
1538
- }
1539
- function de(t, e, n, o, r, s) {
1540
- const { lastSize: i, lastOffset: l, lastIndex: c } = r;
1541
- let f = 0, u = 0;
1542
- if (t.length > 0) {
1543
- f = t[0].offset;
1544
- const T = t[t.length - 1];
1545
- u = T.offset + T.size;
1546
- }
1547
- const g = n - c, x = l + g * i + (g - 1) * o, E = f, y = x - u;
1548
- return {
1549
- items: an(t, r, s),
1550
- topItems: an(e, r, s),
1551
- topListHeight: e.reduce((T, R) => R.size + T, 0),
1552
- offsetTop: f,
1553
- offsetBottom: y,
1554
- top: E,
1555
- bottom: u,
1556
- totalCount: n,
1557
- firstItemIndex: s
1558
- };
1559
- }
1560
- function Vn(t, e, n, o, r, s) {
1561
- let i = 0;
1562
- if (n.groupIndices.length > 0)
1563
- for (const u of n.groupIndices) {
1564
- if (u - i >= t)
1565
- break;
1566
- i++;
1567
- }
1568
- const l = t + i, c = Ae(e, l), f = Array.from({ length: l }).map((u, g) => ({
1569
- index: g + c,
1570
- size: 0,
1571
- offset: 0,
1572
- data: s[g + c]
1573
- }));
1574
- return de(f, [], l, r, n, o);
1575
- }
1576
- const Gt = U(
1577
- ([
1578
- { sizes: t, totalCount: e, data: n, firstItemIndex: o, gap: r },
1579
- s,
1580
- { visibleRange: i, listBoundary: l, topListHeight: c },
1581
- { scrolledToInitialItem: f, initialTopMostItemIndex: u },
1582
- { topListHeight: g },
1583
- x,
1584
- { didMount: E },
1585
- { recalcInProgress: y }
1586
- ]) => {
1587
- const T = w([]), R = w(0), m = $();
1588
- z(s.topItemsIndexes, T);
1589
- const p = ut(
1590
- I(
1591
- st(
1592
- E,
1593
- y,
1594
- P(i, ee),
1595
- P(e),
1596
- P(t),
1597
- P(u),
1598
- f,
1599
- P(T),
1600
- P(o),
1601
- P(r),
1602
- n
1603
- ),
1604
- F(([a, v, , k, , , , , , , B]) => {
1605
- const L = B && B.length !== k;
1606
- return a && !v && !L;
1607
- }),
1608
- H(
1609
- ([
1610
- ,
1611
- ,
1612
- [a, v],
1613
- k,
1614
- B,
1615
- L,
1616
- V,
1617
- N,
1618
- q,
1619
- O,
1620
- A
1621
- ]) => {
1622
- const _ = B, { sizeTree: nt, offsetTree: at } = _, It = ct(R);
1623
- if (k === 0)
1624
- return { ...Ee, totalCount: k };
1625
- if (a === 0 && v === 0)
1626
- return It === 0 ? { ...Ee, totalCount: k } : Vn(It, L, B, q, O, A || []);
1627
- if (Y(nt))
1628
- return It > 0 ? null : de(
1629
- zo(Ae(L, k), _, A),
1630
- [],
1631
- k,
1632
- O,
1633
- _,
1634
- q
1635
- );
1636
- const ht = [];
1637
- if (N.length > 0) {
1638
- const Vt = N[0], C = N[N.length - 1];
1639
- let D = 0;
1640
- for (const Z of Ie(nt, Vt, C)) {
1641
- const et = Z.value, lt = Math.max(Z.start, Vt), xt = Math.min(Z.end, C);
1642
- for (let rt = lt; rt <= xt; rt++)
1643
- ht.push({ index: rt, size: et, offset: D, data: A && A[rt] }), D += et;
1644
- }
1645
- }
1646
- if (!V)
1647
- return de([], ht, k, O, _, q);
1648
- const it = N.length > 0 ? N[N.length - 1] + 1 : 0, Pt = Io(at, a, v, it);
1649
- if (Pt.length === 0)
1650
- return null;
1651
- const Bt = k - 1, Wt = Se([], (Vt) => {
1652
- for (const C of Pt) {
1653
- const D = C.value;
1654
- let Z = D.offset, et = C.start;
1655
- const lt = D.size;
1656
- if (D.offset < a) {
1657
- et += Math.floor((a - D.offset + O) / (lt + O));
1658
- const rt = et - C.start;
1659
- Z += rt * lt + rt * O;
1660
- }
1661
- et < it && (Z += (it - et) * lt, et = it);
1662
- const xt = Math.min(C.end, Bt);
1663
- for (let rt = et; rt <= xt && !(Z >= v); rt++)
1664
- Vt.push({ index: rt, size: lt, offset: Z, data: A && A[rt] }), Z += lt + O;
1665
- }
1666
- });
1667
- return de(Wt, ht, k, O, _, q);
1668
- }
1669
- ),
1670
- //@ts-expect-error filter needs to be fixed
1671
- F((a) => a !== null),
1672
- J()
1673
- ),
1674
- Ee
1675
- );
1676
- z(
1677
- I(
1678
- n,
1679
- F(Le),
1680
- H((a) => a == null ? void 0 : a.length)
1681
- ),
1682
- e
1683
- ), z(
1684
- I(
1685
- p,
1686
- H((a) => a.topListHeight)
1687
- ),
1688
- g
1689
- ), z(g, c), z(
1690
- I(
1691
- p,
1692
- H((a) => [a.top, a.bottom])
1693
- ),
1694
- l
1695
- ), z(
1696
- I(
1697
- p,
1698
- H((a) => a.items)
1699
- ),
1700
- m
1701
- );
1702
- const S = mt(
1703
- I(
1704
- p,
1705
- F(({ items: a }) => a.length > 0),
1706
- G(e, n),
1707
- F(([{ items: a }, v]) => a[a.length - 1].originalIndex === v - 1),
1708
- H(([, a, v]) => [a - 1, v]),
1709
- J(ee),
1710
- H(([a]) => a)
1711
- )
1712
- ), b = mt(
1713
- I(
1714
- p,
1715
- zt(200),
1716
- F(({ items: a, topItems: v }) => a.length > 0 && a[0].originalIndex === v.length),
1717
- H(({ items: a }) => a[0].index),
1718
- J()
1719
- )
1720
- ), h = mt(
1721
- I(
1722
- p,
1723
- F(({ items: a }) => a.length > 0),
1724
- H(({ items: a }) => {
1725
- let v = 0, k = a.length - 1;
1726
- for (; a[v].type === "group" && v < k; )
1727
- v++;
1728
- for (; a[k].type === "group" && k > v; )
1729
- k--;
1730
- return {
1731
- startIndex: a[v].index,
1732
- endIndex: a[k].index
1733
- };
1734
- }),
1735
- J(Pn)
1736
- )
1737
- );
1738
- return { listState: p, topItemsIndexes: T, endReached: S, startReached: b, rangeChanged: h, itemsRendered: m, initialItemCount: R, ...x };
1739
- },
1740
- Q(
1741
- Ht,
1742
- Fn,
1743
- Ge,
1744
- re,
1745
- ne,
1746
- oe,
1747
- Ft,
1748
- Ve
1749
- ),
1750
- { singleton: !0 }
1751
- ), Lo = U(
1752
- ([{ sizes: t, firstItemIndex: e, data: n, gap: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (z(
1753
- I(
1754
- l,
1755
- G(s),
1756
- F(([, c]) => c !== 0),
1757
- G(r, t, e, o, n),
1758
- H(([[, c], f, u, g, x, E = []]) => Vn(c, f, u, g, x, E))
1759
- ),
1760
- i
1761
- ), {}),
1762
- Q(Ht, re, Gt, Ft),
1763
- { singleton: !0 }
1764
- ), _n = U(
1765
- ([{ scrollVelocity: t }]) => {
1766
- const e = w(!1), n = $(), o = w(!1);
1767
- return z(
1768
- I(
1769
- t,
1770
- G(o, e, n),
1771
- F(([r, s]) => !!s),
1772
- H(([r, s, i, l]) => {
1773
- const { exit: c, enter: f } = s;
1774
- if (i) {
1775
- if (c(r, l))
1776
- return !1;
1777
- } else if (f(r, l))
1778
- return !0;
1779
- return i;
1780
- }),
1781
- J()
1782
- ),
1783
- e
1784
- ), j(
1785
- I(st(e, t, n), G(o)),
1786
- ([[r, s, i], l]) => r && l && l.change && l.change(s, i)
1787
- ), { isSeeking: e, scrollSeekConfiguration: o, scrollVelocity: t, scrollSeekRangeChanged: n };
1788
- },
1789
- Q(oe),
1790
- { singleton: !0 }
1791
- ), Oo = U(([{ topItemsIndexes: t }]) => {
1792
- const e = w(0);
1793
- return z(
1794
- I(
1795
- e,
1796
- F((n) => n > 0),
1797
- H((n) => Array.from({ length: n }).map((o, r) => r))
1798
- ),
1799
- t
1800
- ), { topItemCount: e };
1801
- }, Q(Gt)), Mn = U(
1802
- ([{ footerHeight: t, headerHeight: e, fixedHeaderHeight: n, fixedFooterHeight: o }, { listState: r }]) => {
1803
- const s = $(), i = ut(
1804
- I(
1805
- st(t, o, e, n, r),
1806
- H(([l, c, f, u, g]) => l + c + f + u + g.offsetBottom + g.bottom)
1807
- ),
1808
- 0
1809
- );
1810
- return z(P(i), s), { totalListHeight: i, totalListHeightChanged: s };
1811
- },
1812
- Q(dt, Gt),
1813
- { singleton: !0 }
1814
- );
1815
- function An(t) {
1816
- let e = !1, n;
1817
- return () => (e || (e = !0, n = t()), n);
1818
- }
1819
- const Fo = An(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Po = U(
1820
- ([
1821
- { scrollBy: t, scrollTop: e, deviation: n, scrollingInProgress: o },
1822
- { isScrolling: r, isAtBottom: s, scrollDirection: i, lastJumpDueToItemResize: l },
1823
- { listState: c },
1824
- { beforeUnshiftWith: f, shiftWithOffset: u, sizes: g, gap: x },
1825
- { log: E },
1826
- { recalcInProgress: y }
1827
- ]) => {
1828
- const T = mt(
1829
- I(
1830
- c,
1831
- G(l),
1832
- yt(
1833
- ([, m, p, S], [{ items: b, totalCount: h, bottom: a, offsetBottom: v }, k]) => {
1834
- const B = a + v;
1835
- let L = 0;
1836
- return p === h && m.length > 0 && b.length > 0 && (b[0].originalIndex === 0 && m[0].originalIndex === 0 || (L = B - S, L !== 0 && (L += k))), [L, b, h, B];
1837
- },
1838
- [0, [], 0, 0]
1839
- ),
1840
- F(([m]) => m !== 0),
1841
- G(e, i, o, s, E, y),
1842
- F(([, m, p, S, , , b]) => !b && !S && m !== 0 && p === te),
1843
- H(([[m], , , , , p]) => (p("Upward scrolling compensation", { amount: m }, pt.DEBUG), m))
1844
- )
1845
- );
1846
- function R(m) {
1847
- m > 0 ? (M(t, { top: -m, behavior: "auto" }), M(n, 0)) : (M(n, 0), M(t, { top: -m, behavior: "auto" }));
1848
- }
1849
- return j(I(T, G(n, r)), ([m, p, S]) => {
1850
- S && Fo() ? M(n, p - m) : R(-m);
1851
- }), j(
1852
- I(
1853
- st(ut(r, !1), n, y),
1854
- F(([m, p, S]) => !m && !S && p !== 0),
1855
- H(([m, p]) => p),
1856
- zt(1)
1857
- ),
1858
- R
1859
- ), z(
1860
- I(
1861
- u,
1862
- H((m) => ({ top: -m }))
1863
- ),
1864
- t
1865
- ), j(
1866
- I(
1867
- f,
1868
- G(g, x),
1869
- H(([m, { lastSize: p, groupIndices: S, sizeTree: b }, h]) => {
1870
- function a(v) {
1871
- return v * (p + h);
1872
- }
1873
- if (S.length === 0)
1874
- return a(m);
1875
- {
1876
- let v = 0;
1877
- const k = Qt(b, 0);
1878
- let B = 0, L = 0;
1879
- for (; B < m; ) {
1880
- B++, v += k;
1881
- let V = S.length === L + 1 ? 1 / 0 : S[L + 1] - S[L] - 1;
1882
- B + V > m && (v -= k, V = m - B + 1), B += V, v += a(V), L++;
1883
- }
1884
- return v;
1885
- }
1886
- })
1887
- ),
1888
- (m) => {
1889
- M(n, m), requestAnimationFrame(() => {
1890
- M(t, { top: m }), requestAnimationFrame(() => {
1891
- M(n, 0), M(y, !1);
1892
- });
1893
- });
1894
- }
1895
- ), { deviation: n };
1896
- },
1897
- Q(dt, oe, Gt, Ht, Ot, Ve)
1898
- ), Vo = U(
1899
- ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1900
- const o = w(0);
1901
- return j(
1902
- I(
1903
- t,
1904
- G(o),
1905
- F(([, r]) => r !== 0),
1906
- H(([, r]) => ({ top: r }))
1907
- ),
1908
- (r) => {
1909
- bt(
1910
- I(
1911
- n,
1912
- Ut(1),
1913
- F((s) => s.items.length > 1)
1914
- ),
1915
- () => {
1916
- requestAnimationFrame(() => {
1917
- M(e, r);
1918
- });
1919
- }
1920
- );
1921
- }
1922
- ), {
1923
- initialScrollTop: o
1924
- };
1925
- },
1926
- Q(Ft, dt, Gt),
1927
- { singleton: !0 }
1928
- ), _o = U(
1929
- ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1930
- const n = w(!1), o = ut(
1931
- I(
1932
- st(n, t, e),
1933
- F(([r]) => r),
1934
- H(([, r, s]) => Math.max(0, r - s)),
1935
- zt(0),
1936
- J()
1937
- ),
1938
- 0
1939
- );
1940
- return { alignToBottom: n, paddingTopAddition: o };
1941
- },
1942
- Q(dt, Mn),
1943
- { singleton: !0 }
1944
- ), We = U(([{ scrollTo: t, scrollContainerState: e }]) => {
1945
- const n = $(), o = $(), r = $(), s = w(!1), i = w(void 0);
1946
- return z(
1947
- I(
1948
- st(n, o),
1949
- H(([{ viewportHeight: l, scrollTop: c, scrollHeight: f }, { offsetTop: u }]) => ({
1950
- scrollTop: Math.max(0, c - u),
1951
- scrollHeight: f,
1952
- viewportHeight: l
1953
- }))
1954
- ),
1955
- e
1956
- ), z(
1957
- I(
1958
- t,
1959
- G(o),
1960
- H(([l, { offsetTop: c }]) => ({
1961
- ...l,
1962
- top: l.top + c
1963
- }))
1964
- ),
1965
- r
1966
- ), {
1967
- // config
1968
- useWindowScroll: s,
1969
- customScrollParent: i,
1970
- // input
1971
- windowScrollContainerState: n,
1972
- windowViewportRect: o,
1973
- // signals
1974
- windowScrollTo: r
1975
- };
1976
- }, Q(dt)), Mo = ({
1977
- itemTop: t,
1978
- itemBottom: e,
1979
- viewportTop: n,
1980
- viewportBottom: o,
1981
- locationParams: { behavior: r, align: s, ...i }
1982
- }) => t < n ? { ...i, behavior: r, align: s ?? "start" } : e > o ? { ...i, behavior: r, align: s ?? "end" } : null, Ao = U(
1983
- ([
1984
- { sizes: t, totalCount: e, gap: n },
1985
- { scrollTop: o, viewportHeight: r, headerHeight: s, fixedHeaderHeight: i, fixedFooterHeight: l, scrollingInProgress: c },
1986
- { scrollToIndex: f }
1987
- ]) => {
1988
- const u = $();
1989
- return z(
1990
- I(
1991
- u,
1992
- G(t, r, e, s, i, l, o),
1993
- G(n),
1994
- H(([[g, x, E, y, T, R, m, p], S]) => {
1995
- const { done: b, behavior: h, align: a, calculateViewLocation: v = Mo, ...k } = g, B = zn(g, x, y - 1), L = Xt(B, x.offsetTree, S) + T + R, V = L + vt(x.sizeTree, B)[1], N = p + R, q = p + E - m, O = v({
1996
- itemTop: L,
1997
- itemBottom: V,
1998
- viewportTop: N,
1999
- viewportBottom: q,
2000
- locationParams: { behavior: h, align: a, ...k }
2001
- });
2002
- return O ? b && bt(
2003
- I(
2004
- c,
2005
- F((A) => A === !1),
2006
- // skips the initial publish of false, and the cleanup call.
2007
- // but if scrollingInProgress is true, we skip the initial publish.
2008
- Ut(ct(c) ? 1 : 2)
2009
- ),
2010
- b
2011
- ) : b && b(), O;
2012
- }),
2013
- F((g) => g !== null)
2014
- ),
2015
- f
2016
- ), {
2017
- scrollIntoView: u
2018
- };
2019
- },
2020
- Q(Ht, dt, ne, Gt, Ot),
2021
- { singleton: !0 }
2022
- ), Go = U(
2023
- ([
2024
- { sizes: t, sizeRanges: e },
2025
- { scrollTop: n },
2026
- { initialTopMostItemIndex: o },
2027
- { didMount: r },
2028
- { useWindowScroll: s, windowScrollContainerState: i, windowViewportRect: l }
2029
- ]) => {
2030
- const c = $(), f = w(void 0), u = w(null), g = w(null);
2031
- return z(i, u), z(l, g), j(
2032
- I(c, G(t, n, s, u, g)),
2033
- ([x, E, y, T, R, m]) => {
2034
- const p = wo(E.sizeTree);
2035
- T && R !== null && m !== null && (y = R.scrollTop - m.offsetTop), x({ ranges: p, scrollTop: y });
2036
- }
2037
- ), z(I(f, F(Le), H(Wo)), o), z(
2038
- I(
2039
- r,
2040
- G(f),
2041
- F(([, x]) => x !== void 0),
2042
- J(),
2043
- H(([, x]) => x.ranges)
2044
- ),
2045
- e
2046
- ), {
2047
- getState: c,
2048
- restoreStateFrom: f
2049
- };
2050
- },
2051
- Q(Ht, dt, re, Ft, We)
2052
- );
2053
- function Wo(t) {
2054
- return { offset: t.scrollTop, index: 0, align: "start" };
2055
- }
2056
- const No = U(
2057
- ([
2058
- t,
2059
- e,
2060
- n,
2061
- o,
2062
- r,
2063
- s,
2064
- i,
2065
- l,
2066
- c,
2067
- f
2068
- ]) => ({
2069
- ...t,
2070
- ...e,
2071
- ...n,
2072
- ...o,
2073
- ...r,
2074
- ...s,
2075
- ...i,
2076
- ...l,
2077
- ...c,
2078
- ...f
2079
- }),
2080
- Q(
2081
- Ge,
2082
- Lo,
2083
- Ft,
2084
- _n,
2085
- Mn,
2086
- Vo,
2087
- _o,
2088
- We,
2089
- Ao,
2090
- Ot
2091
- )
2092
- ), Gn = U(
2093
- ([
2094
- {
2095
- totalCount: t,
2096
- sizeRanges: e,
2097
- fixedItemSize: n,
2098
- defaultItemSize: o,
2099
- trackItemSizes: r,
2100
- itemSize: s,
2101
- data: i,
2102
- firstItemIndex: l,
2103
- groupIndices: c,
2104
- statefulTotalCount: f,
2105
- gap: u,
2106
- sizes: g
2107
- },
2108
- { initialTopMostItemIndex: x, scrolledToInitialItem: E, initialItemFinalLocationReached: y },
2109
- T,
2110
- R,
2111
- m,
2112
- { listState: p, topItemsIndexes: S, ...b },
2113
- { scrollToIndex: h },
2114
- a,
2115
- { topItemCount: v },
2116
- { groupCounts: k },
2117
- B
2118
- ]) => (z(b.rangeChanged, B.scrollSeekRangeChanged), z(
2119
- I(
2120
- B.windowViewportRect,
2121
- H((L) => L.visibleHeight)
2122
- ),
2123
- T.viewportHeight
2124
- ), {
2125
- // input
2126
- totalCount: t,
2127
- data: i,
2128
- firstItemIndex: l,
2129
- sizeRanges: e,
2130
- initialTopMostItemIndex: x,
2131
- scrolledToInitialItem: E,
2132
- initialItemFinalLocationReached: y,
2133
- topItemsIndexes: S,
2134
- topItemCount: v,
2135
- groupCounts: k,
2136
- fixedItemHeight: n,
2137
- defaultItemHeight: o,
2138
- gap: u,
2139
- ...m,
2140
- // output
2141
- statefulTotalCount: f,
2142
- listState: p,
2143
- scrollToIndex: h,
2144
- trackItemSizes: r,
2145
- itemSize: s,
2146
- groupIndices: c,
2147
- // exported from stateFlagsSystem
2148
- ...b,
2149
- // the bag of IO from featureGroup1System
2150
- ...B,
2151
- ...T,
2152
- sizes: g,
2153
- ...R
2154
- }),
2155
- Q(
2156
- Ht,
2157
- re,
2158
- dt,
2159
- Go,
2160
- Bo,
2161
- Gt,
2162
- ne,
2163
- Po,
2164
- Oo,
2165
- Fn,
2166
- No
2167
- )
2168
- ), ye = "-webkit-sticky", dn = "sticky", Wn = An(() => {
2169
- if (typeof document > "u")
2170
- return dn;
2171
- const t = document.createElement("div");
2172
- return t.style.position = ye, t.style.position === ye ? ye : dn;
2173
- });
2174
- function Ne(t, e) {
2175
- const n = d.useRef(null), o = d.useCallback(
2176
- (l) => {
2177
- if (l === null || !l.offsetParent)
2178
- return;
2179
- const c = l.getBoundingClientRect(), f = c.width;
2180
- let u, g;
2181
- if (e) {
2182
- const x = e.getBoundingClientRect(), E = c.top - x.top;
2183
- u = x.height - Math.max(0, E), g = E + e.scrollTop;
2184
- } else
2185
- u = window.innerHeight - Math.max(0, c.top), g = c.top + window.pageYOffset;
2186
- n.current = {
2187
- offsetTop: g,
2188
- visibleHeight: u,
2189
- visibleWidth: f
2190
- }, t(n.current);
2191
- },
2192
- [t, e]
2193
- ), { callbackRef: r, ref: s } = Pe(o), i = d.useCallback(() => {
2194
- o(s.current);
2195
- }, [o, s]);
2196
- return d.useEffect(() => {
2197
- if (e) {
2198
- e.addEventListener("scroll", i);
2199
- const l = new ResizeObserver(() => {
2200
- requestAnimationFrame(i);
2201
- });
2202
- return l.observe(e), () => {
2203
- e.removeEventListener("scroll", i), l.unobserve(e);
2204
- };
2205
- } else
2206
- return window.addEventListener("scroll", i), window.addEventListener("resize", i), () => {
2207
- window.removeEventListener("scroll", i), window.removeEventListener("resize", i);
2208
- };
2209
- }, [i, e]), r;
2210
- }
2211
- const Te = d.createContext(void 0), Nn = d.createContext(void 0);
2212
- function De(t) {
2213
- return t;
2214
- }
2215
- const Do = /* @__PURE__ */ U(() => {
2216
- const t = w((c) => `Item ${c}`), e = w(null), n = w((c) => `Group ${c}`), o = w({}), r = w(De), s = w("div"), i = w(At), l = (c, f = null) => ut(
2217
- I(
2218
- o,
2219
- H((u) => u[c]),
2220
- J()
2221
- ),
2222
- f
2223
- );
2224
- return {
2225
- context: e,
2226
- itemContent: t,
2227
- groupContent: n,
2228
- components: o,
2229
- computeItemKey: r,
2230
- headerFooterTag: s,
2231
- scrollerRef: i,
2232
- FooterComponent: l("Footer"),
2233
- HeaderComponent: l("Header"),
2234
- TopItemListComponent: l("TopItemList"),
2235
- ListComponent: l("List", "div"),
2236
- ItemComponent: l("Item", "div"),
2237
- GroupComponent: l("Group", "div"),
2238
- ScrollerComponent: l("Scroller", "div"),
2239
- EmptyPlaceholder: l("EmptyPlaceholder"),
2240
- ScrollSeekPlaceholder: l("ScrollSeekPlaceholder")
2241
- };
2242
- }), $o = /* @__PURE__ */ U(([t, e]) => ({ ...t, ...e }), Q(Gn, Do)), Uo = ({ height: t }) => /* @__PURE__ */ d.createElement("div", { style: { height: t } }), Ko = { position: Wn(), zIndex: 1, overflowAnchor: "none" }, jo = { overflowAnchor: "none" }, fn = /* @__PURE__ */ d.memo(function({ showTopList: e = !1 }) {
2243
- const n = W("listState"), o = St("sizeRanges"), r = W("useWindowScroll"), s = W("customScrollParent"), i = St("windowScrollContainerState"), l = St("scrollContainerState"), c = s || r ? i : l, f = W("itemContent"), u = W("context"), g = W("groupContent"), x = W("trackItemSizes"), E = W("itemSize"), y = W("log"), T = St("gap"), { callbackRef: R } = Cn(
2244
- o,
2245
- E,
2246
- x,
2247
- e ? At : c,
2248
- y,
2249
- T,
2250
- s
2251
- ), [m, p] = d.useState(0);
2252
- Ke("deviation", (O) => {
2253
- m !== O && p(O);
2254
- });
2255
- const S = W("EmptyPlaceholder"), b = W("ScrollSeekPlaceholder") || Uo, h = W("ListComponent"), a = W("ItemComponent"), v = W("GroupComponent"), k = W("computeItemKey"), B = W("isSeeking"), L = W("groupIndices").length > 0, V = W("alignToBottom"), N = W("initialItemFinalLocationReached"), q = e ? {} : {
2256
- boxSizing: "border-box",
2257
- paddingTop: n.offsetTop,
2258
- paddingBottom: n.offsetBottom,
2259
- marginTop: m !== 0 ? m : V ? "auto" : 0,
2260
- ...N ? {} : { visibility: "hidden" }
2261
- };
2262
- return !e && n.totalCount === 0 && S ? d.createElement(S, tt(S, u)) : d.createElement(
2263
- h,
2264
- {
2265
- ...tt(h, u),
2266
- ref: R,
2267
- style: q,
2268
- "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list"
2269
- },
2270
- (e ? n.topItems : n.items).map((O) => {
2271
- const A = O.originalIndex, _ = k(A + n.firstItemIndex, O.data, u);
2272
- return B ? d.createElement(b, {
2273
- ...tt(b, u),
2274
- key: _,
2275
- index: O.index,
2276
- height: O.size,
2277
- type: O.type || "item",
2278
- ...O.type === "group" ? {} : { groupIndex: O.groupIndex }
2279
- }) : O.type === "group" ? d.createElement(
2280
- v,
2281
- {
2282
- ...tt(v, u),
2283
- key: _,
2284
- "data-index": A,
2285
- "data-known-size": O.size,
2286
- "data-item-index": O.index,
2287
- style: Ko
2288
- },
2289
- g(O.index, u)
2290
- ) : d.createElement(
2291
- a,
2292
- {
2293
- ...tt(a, u),
2294
- ...Dn(a, O.data),
2295
- key: _,
2296
- "data-index": A,
2297
- "data-known-size": O.size,
2298
- "data-item-index": O.index,
2299
- "data-item-group-index": O.groupIndex,
2300
- style: jo
2301
- },
2302
- L ? f(O.index, O.groupIndex, O.data, u) : f(O.index, O.data, u)
2303
- );
2304
- })
2305
- );
2306
- }), qo = {
2307
- height: "100%",
2308
- outline: "none",
2309
- overflowY: "auto",
2310
- position: "relative",
2311
- WebkitOverflowScrolling: "touch"
2312
- }, jt = (t) => ({
2313
- width: "100%",
2314
- height: "100%",
2315
- position: "absolute",
2316
- top: 0,
2317
- ...t ? { display: "flex", flexDirection: "column" } : {}
2318
- }), Yo = {
2319
- width: "100%",
2320
- position: Wn(),
2321
- top: 0,
2322
- zIndex: 1
2323
- };
2324
- function tt(t, e) {
2325
- if (typeof t != "string")
2326
- return { context: e };
2327
- }
2328
- function Dn(t, e) {
2329
- return { item: typeof t == "string" ? void 0 : e };
2330
- }
2331
- const Zo = /* @__PURE__ */ d.memo(function() {
2332
- const e = W("HeaderComponent"), n = St("headerHeight"), o = W("headerFooterTag"), r = Rt((i) => n(Ct(i, "height"))), s = W("context");
2333
- return e ? d.createElement(o, { ref: r }, d.createElement(e, tt(e, s))) : null;
2334
- }), Jo = /* @__PURE__ */ d.memo(function() {
2335
- const e = W("FooterComponent"), n = St("footerHeight"), o = W("headerFooterTag"), r = Rt((i) => n(Ct(i, "height"))), s = W("context");
2336
- return e ? d.createElement(o, { ref: r }, d.createElement(e, tt(e, s))) : null;
2337
- });
2338
- function $e({ usePublisher: t, useEmitter: e, useEmitterValue: n }) {
2339
- return d.memo(function({ style: s, children: i, ...l }) {
2340
- const c = t("scrollContainerState"), f = n("ScrollerComponent"), u = t("smoothScrollTargetReached"), g = n("scrollerRef"), x = n("context"), { scrollerRef: E, scrollByCallback: y, scrollToCallback: T } = En(
2341
- c,
2342
- u,
2343
- f,
2344
- g
2345
- );
2346
- return e("scrollTo", T), e("scrollBy", y), d.createElement(
2347
- f,
2348
- {
2349
- ref: E,
2350
- style: { ...qo, ...s },
2351
- "data-testid": "virtuoso-scroller",
2352
- "data-virtuoso-scroller": !0,
2353
- tabIndex: 0,
2354
- ...l,
2355
- ...tt(f, x)
2356
- },
2357
- i
2358
- );
2359
- });
2360
- }
2361
- function Ue({ usePublisher: t, useEmitter: e, useEmitterValue: n }) {
2362
- return d.memo(function({ style: s, children: i, ...l }) {
2363
- const c = t("windowScrollContainerState"), f = n("ScrollerComponent"), u = t("smoothScrollTargetReached"), g = n("totalListHeight"), x = n("deviation"), E = n("customScrollParent"), y = n("context"), { scrollerRef: T, scrollByCallback: R, scrollToCallback: m } = En(
2364
- c,
2365
- u,
2366
- f,
2367
- At,
2368
- E
2369
- );
2370
- return so(() => (T.current = E || window, () => {
2371
- T.current = null;
2372
- }), [T, E]), e("windowScrollTo", m), e("scrollBy", R), d.createElement(
2373
- f,
2374
- {
2375
- style: { position: "relative", ...s, ...g !== 0 ? { height: g + x } : {} },
2376
- "data-virtuoso-scroller": !0,
2377
- ...l,
2378
- ...tt(f, y)
2379
- },
2380
- i
2381
- );
2382
- });
2383
- }
2384
- const Qo = ({ children: t }) => {
2385
- const e = d.useContext(Te), n = St("viewportHeight"), o = St("fixedItemHeight"), r = W("alignToBottom"), s = Rt(Zt(n, (i) => Ct(i, "height")));
2386
- return d.useEffect(() => {
2387
- e && (n(e.viewportHeight), o(e.itemHeight));
2388
- }, [e, n, o]), /* @__PURE__ */ d.createElement("div", { style: jt(r), ref: s, "data-viewport-type": "element" }, t);
2389
- }, Xo = ({ children: t }) => {
2390
- const e = d.useContext(Te), n = St("windowViewportRect"), o = St("fixedItemHeight"), r = W("customScrollParent"), s = Ne(n, r), i = W("alignToBottom");
2391
- return d.useEffect(() => {
2392
- e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2393
- }, [e, n, o]), /* @__PURE__ */ d.createElement("div", { ref: s, style: jt(i), "data-viewport-type": "window" }, t);
2394
- }, tr = ({ children: t }) => {
2395
- const e = W("TopItemListComponent") || "div", n = W("headerHeight"), o = { ...Yo, marginTop: `${n}px` }, r = W("context");
2396
- return d.createElement(e, { style: o, ...tt(e, r) }, t);
2397
- }, er = /* @__PURE__ */ d.memo(function(e) {
2398
- const n = W("useWindowScroll"), o = W("topItemsIndexes").length > 0, r = W("customScrollParent"), s = r || n ? rr : or, i = r || n ? Xo : Qo;
2399
- return /* @__PURE__ */ d.createElement(s, { ...e }, o && /* @__PURE__ */ d.createElement(tr, null, /* @__PURE__ */ d.createElement(fn, { showTopList: !0 })), /* @__PURE__ */ d.createElement(i, null, /* @__PURE__ */ d.createElement(Zo, null), /* @__PURE__ */ d.createElement(fn, null), /* @__PURE__ */ d.createElement(Jo, null)));
2400
- }), {
2401
- Component: nr,
2402
- usePublisher: St,
2403
- useEmitterValue: W,
2404
- useEmitter: Ke
2405
- } = /* @__PURE__ */ Fe(
2406
- $o,
2407
- {
2408
- required: {},
2409
- optional: {
2410
- restoreStateFrom: "restoreStateFrom",
2411
- context: "context",
2412
- followOutput: "followOutput",
2413
- itemContent: "itemContent",
2414
- groupContent: "groupContent",
2415
- overscan: "overscan",
2416
- increaseViewportBy: "increaseViewportBy",
2417
- totalCount: "totalCount",
2418
- groupCounts: "groupCounts",
2419
- topItemCount: "topItemCount",
2420
- firstItemIndex: "firstItemIndex",
2421
- initialTopMostItemIndex: "initialTopMostItemIndex",
2422
- components: "components",
2423
- atBottomThreshold: "atBottomThreshold",
2424
- atTopThreshold: "atTopThreshold",
2425
- computeItemKey: "computeItemKey",
2426
- defaultItemHeight: "defaultItemHeight",
2427
- fixedItemHeight: "fixedItemHeight",
2428
- itemSize: "itemSize",
2429
- scrollSeekConfiguration: "scrollSeekConfiguration",
2430
- headerFooterTag: "headerFooterTag",
2431
- data: "data",
2432
- initialItemCount: "initialItemCount",
2433
- initialScrollTop: "initialScrollTop",
2434
- alignToBottom: "alignToBottom",
2435
- useWindowScroll: "useWindowScroll",
2436
- customScrollParent: "customScrollParent",
2437
- scrollerRef: "scrollerRef",
2438
- logLevel: "logLevel"
2439
- },
2440
- methods: {
2441
- scrollToIndex: "scrollToIndex",
2442
- scrollIntoView: "scrollIntoView",
2443
- scrollTo: "scrollTo",
2444
- scrollBy: "scrollBy",
2445
- autoscrollToBottom: "autoscrollToBottom",
2446
- getState: "getState"
2447
- },
2448
- events: {
2449
- isScrolling: "isScrolling",
2450
- endReached: "endReached",
2451
- startReached: "startReached",
2452
- rangeChanged: "rangeChanged",
2453
- atBottomStateChange: "atBottomStateChange",
2454
- atTopStateChange: "atTopStateChange",
2455
- totalListHeightChanged: "totalListHeightChanged",
2456
- itemsRendered: "itemsRendered",
2457
- groupIndices: "groupIndices"
2458
- }
2459
- },
2460
- er
2461
- ), or = /* @__PURE__ */ $e({ usePublisher: St, useEmitterValue: W, useEmitter: Ke }), rr = /* @__PURE__ */ Ue({ usePublisher: St, useEmitterValue: W, useEmitter: Ke }), Fr = nr, mn = {
2462
- items: [],
2463
- offsetBottom: 0,
2464
- offsetTop: 0,
2465
- top: 0,
2466
- bottom: 0,
2467
- itemHeight: 0,
2468
- itemWidth: 0
2469
- }, sr = {
2470
- items: [{ index: 0 }],
2471
- offsetBottom: 0,
2472
- offsetTop: 0,
2473
- top: 0,
2474
- bottom: 0,
2475
- itemHeight: 0,
2476
- itemWidth: 0
2477
- }, { round: pn, ceil: hn, floor: he, min: be, max: Yt } = Math;
2478
- function ir(t) {
2479
- return {
2480
- ...sr,
2481
- items: t
2482
- };
2483
- }
2484
- function gn(t, e, n) {
2485
- return Array.from({ length: e - t + 1 }).map((o, r) => {
2486
- const s = n === null ? null : n[r + t];
2487
- return { index: r + t, data: s };
2488
- });
2489
- }
2490
- function lr(t, e) {
2491
- return t && t.column === e.column && t.row === e.row;
2492
- }
2493
- function ue(t, e) {
2494
- return t && t.width === e.width && t.height === e.height;
2495
- }
2496
- const cr = /* @__PURE__ */ U(
2497
- ([
2498
- { overscan: t, visibleRange: e, listBoundary: n },
2499
- { scrollTop: o, viewportHeight: r, scrollBy: s, scrollTo: i, smoothScrollTargetReached: l, scrollContainerState: c, footerHeight: f, headerHeight: u },
2500
- g,
2501
- x,
2502
- { propsReady: E, didMount: y },
2503
- { windowViewportRect: T, useWindowScroll: R, customScrollParent: m, windowScrollContainerState: p, windowScrollTo: S },
2504
- b
2505
- ]) => {
2506
- const h = w(0), a = w(0), v = w(mn), k = w({ height: 0, width: 0 }), B = w({ height: 0, width: 0 }), L = $(), V = $(), N = w(0), q = w(null), O = w({ row: 0, column: 0 }), A = $(), _ = $(), nt = w(!1), at = w(0), It = w(!0), ht = w(!1);
2507
- j(
2508
- I(
2509
- y,
2510
- G(at),
2511
- F(([C, D]) => !!D)
2512
- ),
2513
- () => {
2514
- M(It, !1), M(a, 0);
2515
- }
2516
- ), j(
2517
- I(
2518
- st(y, It, B, k, at, ht),
2519
- F(([C, D, Z, et, , lt]) => C && !D && Z.height !== 0 && et.height !== 0 && !lt)
2520
- ),
2521
- ([, , , , C]) => {
2522
- M(ht, !0), Me(1, () => {
2523
- M(L, C);
2524
- }), bt(I(o), () => {
2525
- M(n, [0, 0]), M(It, !0);
2526
- });
2527
- }
2528
- ), z(
2529
- I(
2530
- _,
2531
- F((C) => C != null && C.scrollTop > 0),
2532
- Et(0)
2533
- ),
2534
- a
2535
- ), j(
2536
- I(
2537
- y,
2538
- G(_),
2539
- F(([, C]) => C != null)
2540
- ),
2541
- ([, C]) => {
2542
- C && (M(k, C.viewport), M(B, C == null ? void 0 : C.item), M(O, C.gap), C.scrollTop > 0 && (M(nt, !0), bt(I(o, Ut(1)), (D) => {
2543
- M(nt, !1);
2544
- }), M(i, { top: C.scrollTop })));
2545
- }
2546
- ), z(
2547
- I(
2548
- k,
2549
- H(({ height: C }) => C)
2550
- ),
2551
- r
2552
- ), z(
2553
- I(
2554
- st(
2555
- P(k, ue),
2556
- P(B, ue),
2557
- P(O, (C, D) => C && C.column === D.column && C.row === D.row),
2558
- P(o)
2559
- ),
2560
- H(([C, D, Z, et]) => ({
2561
- viewport: C,
2562
- item: D,
2563
- gap: Z,
2564
- scrollTop: et
2565
- }))
2566
- ),
2567
- A
2568
- ), z(
2569
- I(
2570
- st(
2571
- P(h),
2572
- e,
2573
- P(O, lr),
2574
- P(B, ue),
2575
- P(k, ue),
2576
- P(q),
2577
- P(a),
2578
- P(nt),
2579
- P(It),
2580
- P(at)
2581
- ),
2582
- F(([, , , , , , , C]) => !C),
2583
- H(
2584
- ([
2585
- C,
2586
- [D, Z],
2587
- et,
2588
- lt,
2589
- xt,
2590
- rt,
2591
- Nt,
2592
- ,
2593
- se,
2594
- kt
2595
- ]) => {
2596
- const { row: gt, column: Kn } = et, { height: ie, width: we } = lt, { width: qe } = xt;
2597
- if (Nt === 0 && (C === 0 || qe === 0))
2598
- return mn;
2599
- if (we === 0) {
2600
- const Ce = Ae(kt, C), qn = Ce === 0 ? Math.max(Nt - 1, 0) : Ce;
2601
- return ir(gn(Ce, qn, rt));
2602
- }
2603
- const le = $n(qe, we, Kn);
2604
- let Dt, _t;
2605
- se ? D === 0 && Z === 0 && Nt > 0 ? (Dt = 0, _t = Nt - 1) : (Dt = le * he((D + gt) / (ie + gt)), _t = le * hn((Z + gt) / (ie + gt)) - 1, _t = be(C - 1, Yt(_t, le - 1)), Dt = be(_t, Yt(0, Dt))) : (Dt = 0, _t = -1);
2606
- const Ye = gn(Dt, _t, rt), { top: Ze, bottom: Je } = Sn(xt, et, lt, Ye), Qe = hn(C / le), jn = Qe * ie + (Qe - 1) * gt - Je;
2607
- return { items: Ye, offsetTop: Ze, offsetBottom: jn, top: Ze, bottom: Je, itemHeight: ie, itemWidth: we };
2608
- }
2609
- )
2610
- ),
2611
- v
2612
- ), z(
2613
- I(
2614
- q,
2615
- F((C) => C !== null),
2616
- H((C) => C.length)
2617
- ),
2618
- h
2619
- ), z(
2620
- I(
2621
- st(k, B, v, O),
2622
- F(([C, D, { items: Z }]) => Z.length > 0 && D.height !== 0 && C.height !== 0),
2623
- H(([C, D, { items: Z }, et]) => {
2624
- const { top: lt, bottom: xt } = Sn(C, et, D, Z);
2625
- return [lt, xt];
2626
- }),
2627
- J(ee)
2628
- ),
2629
- n
2630
- );
2631
- const it = w(!1);
2632
- z(
2633
- I(
2634
- o,
2635
- G(it),
2636
- H(([C, D]) => D || C !== 0)
2637
- ),
2638
- it
2639
- );
2640
- const Pt = mt(
2641
- I(
2642
- P(v),
2643
- F(({ items: C }) => C.length > 0),
2644
- G(h, it),
2645
- F(([{ items: C }, D, Z]) => Z && C[C.length - 1].index === D - 1),
2646
- H(([, C]) => C - 1),
2647
- J()
2648
- )
2649
- ), Bt = mt(
2650
- I(
2651
- P(v),
2652
- F(({ items: C }) => C.length > 0 && C[0].index === 0),
2653
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
2654
- Et(0),
2655
- J()
2656
- )
2657
- ), Wt = mt(
2658
- I(
2659
- P(v),
2660
- G(nt),
2661
- F(([{ items: C }, D]) => C.length > 0 && !D),
2662
- H(([{ items: C }]) => ({
2663
- startIndex: C[0].index,
2664
- endIndex: C[C.length - 1].index
2665
- })),
2666
- J(Pn),
2667
- zt(0)
2668
- )
2669
- );
2670
- z(Wt, x.scrollSeekRangeChanged), z(
2671
- I(
2672
- L,
2673
- G(k, B, h, O),
2674
- H(([C, D, Z, et, lt]) => {
2675
- const xt = On(C), { align: rt, behavior: Nt, offset: se } = xt;
2676
- let kt = xt.index;
2677
- kt === "LAST" && (kt = et - 1), kt = Yt(0, kt, be(et - 1, kt));
2678
- let gt = ze(D, lt, Z, kt);
2679
- return rt === "end" ? gt = pn(gt - D.height + Z.height) : rt === "center" && (gt = pn(gt - D.height / 2 + Z.height / 2)), se && (gt += se), { top: gt, behavior: Nt };
2680
- })
2681
- ),
2682
- i
2683
- );
2684
- const Vt = ut(
2685
- I(
2686
- v,
2687
- H((C) => C.offsetBottom + C.bottom)
2688
- ),
2689
- 0
2690
- );
2691
- return z(
2692
- I(
2693
- T,
2694
- H((C) => ({ width: C.visibleWidth, height: C.visibleHeight }))
2695
- ),
2696
- k
2697
- ), {
2698
- // input
2699
- data: q,
2700
- totalCount: h,
2701
- viewportDimensions: k,
2702
- itemDimensions: B,
2703
- scrollTop: o,
2704
- scrollHeight: V,
2705
- overscan: t,
2706
- scrollBy: s,
2707
- scrollTo: i,
2708
- scrollToIndex: L,
2709
- smoothScrollTargetReached: l,
2710
- windowViewportRect: T,
2711
- windowScrollTo: S,
2712
- useWindowScroll: R,
2713
- customScrollParent: m,
2714
- windowScrollContainerState: p,
2715
- deviation: N,
2716
- scrollContainerState: c,
2717
- footerHeight: f,
2718
- headerHeight: u,
2719
- initialItemCount: a,
2720
- gap: O,
2721
- restoreStateFrom: _,
2722
- ...x,
2723
- initialTopMostItemIndex: at,
2724
- // output
2725
- gridState: v,
2726
- totalListHeight: Vt,
2727
- ...g,
2728
- startReached: Bt,
2729
- endReached: Pt,
2730
- rangeChanged: Wt,
2731
- stateChanged: A,
2732
- propsReady: E,
2733
- stateRestoreInProgress: nt,
2734
- ...b
2735
- };
2736
- },
2737
- Q(Ge, dt, oe, _n, Ft, We, Ot)
2738
- );
2739
- function Sn(t, e, n, o) {
2740
- const { height: r } = n;
2741
- if (r === void 0 || o.length === 0)
2742
- return { top: 0, bottom: 0 };
2743
- const s = ze(t, e, n, o[0].index), i = ze(t, e, n, o[o.length - 1].index) + r;
2744
- return { top: s, bottom: i };
2745
- }
2746
- function ze(t, e, n, o) {
2747
- const r = $n(t.width, n.width, e.column), s = he(o / r), i = s * n.height + Yt(0, s - 1) * e.row;
2748
- return i > 0 ? i + e.row : i;
2749
- }
2750
- function $n(t, e, n) {
2751
- return Yt(1, he((t + n) / (he(e) + n)));
2752
- }
2753
- const ur = /* @__PURE__ */ U(() => {
2754
- const t = w((f) => `Item ${f}`), e = w({}), n = w(null), o = w("virtuoso-grid-item"), r = w("virtuoso-grid-list"), s = w(De), i = w("div"), l = w(At), c = (f, u = null) => ut(
2755
- I(
2756
- e,
2757
- H((g) => g[f]),
2758
- J()
2759
- ),
2760
- u
2761
- );
2762
- return {
2763
- context: n,
2764
- itemContent: t,
2765
- components: e,
2766
- computeItemKey: s,
2767
- itemClassName: o,
2768
- listClassName: r,
2769
- headerFooterTag: i,
2770
- scrollerRef: l,
2771
- FooterComponent: c("Footer"),
2772
- HeaderComponent: c("Header"),
2773
- ListComponent: c("List", "div"),
2774
- ItemComponent: c("Item", "div"),
2775
- ScrollerComponent: c("Scroller", "div"),
2776
- ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
2777
- };
2778
- }), ar = /* @__PURE__ */ U(([t, e]) => ({ ...t, ...e }), Q(cr, ur)), dr = /* @__PURE__ */ d.memo(function() {
2779
- const e = X("gridState"), n = X("listClassName"), o = X("itemClassName"), r = X("itemContent"), s = X("computeItemKey"), i = X("isSeeking"), l = Tt("scrollHeight"), c = X("ItemComponent"), f = X("ListComponent"), u = X("ScrollSeekPlaceholder"), g = X("context"), x = Tt("itemDimensions"), E = Tt("gap"), y = X("log"), T = X("stateRestoreInProgress"), R = Rt((m) => {
2780
- const p = m.parentElement.parentElement.scrollHeight;
2781
- l(p);
2782
- const S = m.firstChild;
2783
- if (S) {
2784
- const { width: b, height: h } = S.getBoundingClientRect();
2785
- x({ width: b, height: h });
2786
- }
2787
- E({
2788
- row: In("row-gap", getComputedStyle(m).rowGap, y),
2789
- column: In("column-gap", getComputedStyle(m).columnGap, y)
2790
- });
2791
- });
2792
- return T ? null : d.createElement(
2793
- f,
2794
- {
2795
- ref: R,
2796
- className: n,
2797
- ...tt(f, g),
2798
- style: { paddingTop: e.offsetTop, paddingBottom: e.offsetBottom },
2799
- "data-testid": "virtuoso-item-list"
2800
- },
2801
- e.items.map((m) => {
2802
- const p = s(m.index, m.data, g);
2803
- return i ? d.createElement(u, {
2804
- key: p,
2805
- ...tt(u, g),
2806
- index: m.index,
2807
- height: e.itemHeight,
2808
- width: e.itemWidth
2809
- }) : d.createElement(
2810
- c,
2811
- { ...tt(c, g), className: o, "data-index": m.index, key: p },
2812
- r(m.index, m.data, g)
2813
- );
2814
- })
2815
- );
2816
- }), fr = d.memo(function() {
2817
- const e = X("HeaderComponent"), n = Tt("headerHeight"), o = X("headerFooterTag"), r = Rt((i) => n(Ct(i, "height"))), s = X("context");
2818
- return e ? d.createElement(o, { ref: r }, d.createElement(e, tt(e, s))) : null;
2819
- }), mr = d.memo(function() {
2820
- const e = X("FooterComponent"), n = Tt("footerHeight"), o = X("headerFooterTag"), r = Rt((i) => n(Ct(i, "height"))), s = X("context");
2821
- return e ? d.createElement(o, { ref: r }, d.createElement(e, tt(e, s))) : null;
2822
- }), pr = ({ children: t }) => {
2823
- const e = d.useContext(Nn), n = Tt("itemDimensions"), o = Tt("viewportDimensions"), r = Rt((s) => {
2824
- o(s.getBoundingClientRect());
2825
- });
2826
- return d.useEffect(() => {
2827
- e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
2828
- }, [e, o, n]), /* @__PURE__ */ d.createElement("div", { style: jt(!1), ref: r }, t);
2829
- }, hr = ({ children: t }) => {
2830
- const e = d.useContext(Nn), n = Tt("windowViewportRect"), o = Tt("itemDimensions"), r = X("customScrollParent"), s = Ne(n, r);
2831
- return d.useEffect(() => {
2832
- e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
2833
- }, [e, n, o]), /* @__PURE__ */ d.createElement("div", { ref: s, style: jt(!1) }, t);
2834
- }, gr = /* @__PURE__ */ d.memo(function({ ...e }) {
2835
- const n = X("useWindowScroll"), o = X("customScrollParent"), r = o || n ? Ir : Sr, s = o || n ? hr : pr;
2836
- return /* @__PURE__ */ d.createElement(r, { ...e }, /* @__PURE__ */ d.createElement(s, null, /* @__PURE__ */ d.createElement(fr, null), /* @__PURE__ */ d.createElement(dr, null), /* @__PURE__ */ d.createElement(mr, null)));
2837
- }), {
2838
- Component: Pr,
2839
- usePublisher: Tt,
2840
- useEmitterValue: X,
2841
- useEmitter: Un
2842
- } = /* @__PURE__ */ Fe(
2843
- ar,
2844
- {
2845
- optional: {
2846
- context: "context",
2847
- totalCount: "totalCount",
2848
- overscan: "overscan",
2849
- itemContent: "itemContent",
2850
- components: "components",
2851
- computeItemKey: "computeItemKey",
2852
- data: "data",
2853
- initialItemCount: "initialItemCount",
2854
- scrollSeekConfiguration: "scrollSeekConfiguration",
2855
- headerFooterTag: "headerFooterTag",
2856
- listClassName: "listClassName",
2857
- itemClassName: "itemClassName",
2858
- useWindowScroll: "useWindowScroll",
2859
- customScrollParent: "customScrollParent",
2860
- scrollerRef: "scrollerRef",
2861
- logLevel: "logLevel",
2862
- restoreStateFrom: "restoreStateFrom",
2863
- initialTopMostItemIndex: "initialTopMostItemIndex"
2864
- },
2865
- methods: {
2866
- scrollTo: "scrollTo",
2867
- scrollBy: "scrollBy",
2868
- scrollToIndex: "scrollToIndex"
2869
- },
2870
- events: {
2871
- isScrolling: "isScrolling",
2872
- endReached: "endReached",
2873
- startReached: "startReached",
2874
- rangeChanged: "rangeChanged",
2875
- atBottomStateChange: "atBottomStateChange",
2876
- atTopStateChange: "atTopStateChange",
2877
- stateChanged: "stateChanged"
2878
- }
2879
- },
2880
- gr
2881
- ), Sr = /* @__PURE__ */ $e({ usePublisher: Tt, useEmitterValue: X, useEmitter: Un }), Ir = /* @__PURE__ */ Ue({ usePublisher: Tt, useEmitterValue: X, useEmitter: Un });
2882
- function In(t, e, n) {
2883
- return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, pt.WARN), e === "normal" ? 0 : parseInt(e ?? "0", 10);
2884
- }
2885
- const xr = /* @__PURE__ */ U(() => {
2886
- const t = w((c) => /* @__PURE__ */ d.createElement("td", null, "Item $", c)), e = w(null), n = w(null), o = w(null), r = w({}), s = w(De), i = w(At), l = (c, f = null) => ut(
2887
- I(
2888
- r,
2889
- H((u) => u[c]),
2890
- J()
2891
- ),
2892
- f
2893
- );
2894
- return {
2895
- context: e,
2896
- itemContent: t,
2897
- fixedHeaderContent: n,
2898
- fixedFooterContent: o,
2899
- components: r,
2900
- computeItemKey: s,
2901
- scrollerRef: i,
2902
- TableComponent: l("Table", "table"),
2903
- TableHeadComponent: l("TableHead", "thead"),
2904
- TableFooterComponent: l("TableFoot", "tfoot"),
2905
- TableBodyComponent: l("TableBody", "tbody"),
2906
- TableRowComponent: l("TableRow", "tr"),
2907
- ScrollerComponent: l("Scroller", "div"),
2908
- EmptyPlaceholder: l("EmptyPlaceholder"),
2909
- ScrollSeekPlaceholder: l("ScrollSeekPlaceholder"),
2910
- FillerRow: l("FillerRow")
2911
- };
2912
- }), Tr = /* @__PURE__ */ U(([t, e]) => ({ ...t, ...e }), Q(Gn, xr)), wr = ({ height: t }) => /* @__PURE__ */ d.createElement("tr", null, /* @__PURE__ */ d.createElement("td", { style: { height: t } })), Cr = ({ height: t }) => /* @__PURE__ */ d.createElement("tr", null, /* @__PURE__ */ d.createElement("td", { style: { height: t, padding: 0, border: 0 } })), vr = { overflowAnchor: "none" }, Er = /* @__PURE__ */ d.memo(function() {
2913
- const e = K("listState"), n = wt("sizeRanges"), o = K("useWindowScroll"), r = K("customScrollParent"), s = wt("windowScrollContainerState"), i = wt("scrollContainerState"), l = r || o ? s : i, c = K("itemContent"), f = K("trackItemSizes"), u = K("itemSize"), g = K("log"), { callbackRef: x, ref: E } = Cn(
2914
- n,
2915
- u,
2916
- f,
2917
- l,
2918
- g,
2919
- void 0,
2920
- r
2921
- ), [y, T] = d.useState(0);
2922
- je("deviation", (_) => {
2923
- y !== _ && (E.current.style.marginTop = `${_}px`, T(_));
2924
- });
2925
- const R = K("EmptyPlaceholder"), m = K("ScrollSeekPlaceholder") || wr, p = K("FillerRow") || Cr, S = K("TableBodyComponent"), b = K("TableRowComponent"), h = K("computeItemKey"), a = K("isSeeking"), v = K("paddingTopAddition"), k = K("firstItemIndex"), B = K("statefulTotalCount"), L = K("context");
2926
- if (B === 0 && R)
2927
- return d.createElement(R, tt(R, L));
2928
- const V = e.offsetTop + v + y, N = e.offsetBottom, q = V > 0 ? /* @__PURE__ */ d.createElement(p, { height: V, key: "padding-top", context: L }) : null, O = N > 0 ? /* @__PURE__ */ d.createElement(p, { height: N, key: "padding-bottom", context: L }) : null, A = e.items.map((_) => {
2929
- const nt = _.originalIndex, at = h(nt + k, _.data, L);
2930
- return a ? d.createElement(m, {
2931
- ...tt(m, L),
2932
- key: at,
2933
- index: _.index,
2934
- height: _.size,
2935
- type: _.type || "item"
2936
- }) : d.createElement(
2937
- b,
2938
- {
2939
- ...tt(b, L),
2940
- ...Dn(b, _.data),
2941
- key: at,
2942
- "data-index": nt,
2943
- "data-known-size": _.size,
2944
- "data-item-index": _.index,
2945
- style: vr
2946
- },
2947
- c(_.index, _.data, L)
2948
- );
2949
- });
2950
- return d.createElement(
2951
- S,
2952
- { ref: x, "data-testid": "virtuoso-item-list", ...tt(S, L) },
2953
- [q, ...A, O]
2954
- );
2955
- }), yr = ({ children: t }) => {
2956
- const e = d.useContext(Te), n = wt("viewportHeight"), o = wt("fixedItemHeight"), r = Rt(Zt(n, (s) => Ct(s, "height")));
2957
- return d.useEffect(() => {
2958
- e && (n(e.viewportHeight), o(e.itemHeight));
2959
- }, [e, n, o]), /* @__PURE__ */ d.createElement("div", { style: jt(!1), ref: r, "data-viewport-type": "element" }, t);
2960
- }, br = ({ children: t }) => {
2961
- const e = d.useContext(Te), n = wt("windowViewportRect"), o = wt("fixedItemHeight"), r = K("customScrollParent"), s = Ne(n, r);
2962
- return d.useEffect(() => {
2963
- e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2964
- }, [e, n, o]), /* @__PURE__ */ d.createElement("div", { ref: s, style: jt(!1), "data-viewport-type": "window" }, t);
2965
- }, Rr = /* @__PURE__ */ d.memo(function(e) {
2966
- const n = K("useWindowScroll"), o = K("customScrollParent"), r = wt("fixedHeaderHeight"), s = wt("fixedFooterHeight"), i = K("fixedHeaderContent"), l = K("fixedFooterContent"), c = K("context"), f = Rt(Zt(r, (p) => Ct(p, "height"))), u = Rt(Zt(s, (p) => Ct(p, "height"))), g = o || n ? kr : Br, x = o || n ? br : yr, E = K("TableComponent"), y = K("TableHeadComponent"), T = K("TableFooterComponent"), R = i ? d.createElement(
2967
- y,
2968
- {
2969
- key: "TableHead",
2970
- style: { zIndex: 2, position: "sticky", top: 0 },
2971
- ref: f,
2972
- ...tt(y, c)
2973
- },
2974
- i()
2975
- ) : null, m = l ? d.createElement(
2976
- T,
2977
- {
2978
- key: "TableFoot",
2979
- style: { zIndex: 1, position: "sticky", bottom: 0 },
2980
- ref: u,
2981
- ...tt(T, c)
2982
- },
2983
- l()
2984
- ) : null;
2985
- return /* @__PURE__ */ d.createElement(g, { ...e }, /* @__PURE__ */ d.createElement(x, null, d.createElement(
2986
- E,
2987
- { style: { borderSpacing: 0, overflowAnchor: "none" }, ...tt(E, c) },
2988
- [R, /* @__PURE__ */ d.createElement(Er, { key: "TableBody" }), m]
2989
- )));
2990
- }), {
2991
- Component: Hr,
2992
- usePublisher: wt,
2993
- useEmitterValue: K,
2994
- useEmitter: je
2995
- } = /* @__PURE__ */ Fe(
2996
- Tr,
2997
- {
2998
- required: {},
2999
- optional: {
3000
- restoreStateFrom: "restoreStateFrom",
3001
- context: "context",
3002
- followOutput: "followOutput",
3003
- firstItemIndex: "firstItemIndex",
3004
- itemContent: "itemContent",
3005
- fixedHeaderContent: "fixedHeaderContent",
3006
- fixedFooterContent: "fixedFooterContent",
3007
- overscan: "overscan",
3008
- increaseViewportBy: "increaseViewportBy",
3009
- totalCount: "totalCount",
3010
- topItemCount: "topItemCount",
3011
- initialTopMostItemIndex: "initialTopMostItemIndex",
3012
- components: "components",
3013
- groupCounts: "groupCounts",
3014
- atBottomThreshold: "atBottomThreshold",
3015
- atTopThreshold: "atTopThreshold",
3016
- computeItemKey: "computeItemKey",
3017
- defaultItemHeight: "defaultItemHeight",
3018
- fixedItemHeight: "fixedItemHeight",
3019
- itemSize: "itemSize",
3020
- scrollSeekConfiguration: "scrollSeekConfiguration",
3021
- data: "data",
3022
- initialItemCount: "initialItemCount",
3023
- initialScrollTop: "initialScrollTop",
3024
- alignToBottom: "alignToBottom",
3025
- useWindowScroll: "useWindowScroll",
3026
- customScrollParent: "customScrollParent",
3027
- scrollerRef: "scrollerRef",
3028
- logLevel: "logLevel"
3029
- },
3030
- methods: {
3031
- scrollToIndex: "scrollToIndex",
3032
- scrollIntoView: "scrollIntoView",
3033
- scrollTo: "scrollTo",
3034
- scrollBy: "scrollBy",
3035
- getState: "getState"
3036
- },
3037
- events: {
3038
- isScrolling: "isScrolling",
3039
- endReached: "endReached",
3040
- startReached: "startReached",
3041
- rangeChanged: "rangeChanged",
3042
- atBottomStateChange: "atBottomStateChange",
3043
- atTopStateChange: "atTopStateChange",
3044
- totalListHeightChanged: "totalListHeightChanged",
3045
- itemsRendered: "itemsRendered",
3046
- groupIndices: "groupIndices"
3047
- }
3048
- },
3049
- Rr
3050
- ), Br = /* @__PURE__ */ $e({ usePublisher: wt, useEmitterValue: K, useEmitter: je }), kr = /* @__PURE__ */ Ue({ usePublisher: wt, useEmitterValue: K, useEmitter: je }), Vr = Hr;
3051
- export {
3052
- pt as LogLevel,
3053
- Vr as TableVirtuoso,
3054
- Fr as Virtuoso,
3055
- Nn as VirtuosoGridMockContext,
3056
- Te as VirtuosoMockContext
3057
- };
3058
- //# sourceMappingURL=index39.mjs.map