react-useanimations 3.0.0-beta.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1553) hide show
  1. package/LICENSE +21 -30
  2. package/README.md +115 -44
  3. package/catalog.json +5607 -0
  4. package/icons.d.mts +4459 -0
  5. package/icons.d.ts +4459 -0
  6. package/icons.js +302 -0
  7. package/icons.mjs +298 -0
  8. package/index.d.mts +55 -129
  9. package/index.d.ts +55 -129
  10. package/index.js +1400 -286
  11. package/index.mjs +1394 -256
  12. package/lib/activity.d.mts +18 -0
  13. package/lib/activity.d.ts +18 -0
  14. package/lib/activity.js +1 -0
  15. package/lib/activity.mjs +1 -0
  16. package/lib/airplay.d.mts +18 -0
  17. package/lib/airplay.d.ts +18 -0
  18. package/lib/airplay.js +1 -0
  19. package/lib/airplay.mjs +1 -0
  20. package/lib/alertCircle.d.mts +18 -0
  21. package/lib/alertCircle.d.ts +18 -0
  22. package/lib/alertCircle.js +1 -0
  23. package/lib/alertCircle.mjs +1 -0
  24. package/lib/alertOctagon.d.mts +18 -0
  25. package/lib/alertOctagon.d.ts +18 -0
  26. package/lib/alertOctagon.js +1 -0
  27. package/lib/alertOctagon.mjs +1 -0
  28. package/lib/alertTriangle.d.mts +18 -0
  29. package/lib/alertTriangle.d.ts +18 -0
  30. package/lib/alertTriangle.js +1 -0
  31. package/lib/alertTriangle.mjs +1 -0
  32. package/lib/alignCenter.d.mts +18 -0
  33. package/lib/alignCenter.d.ts +18 -0
  34. package/lib/alignCenter.js +1 -0
  35. package/lib/alignCenter.mjs +1 -0
  36. package/lib/alignJustify.d.mts +18 -0
  37. package/lib/alignJustify.d.ts +18 -0
  38. package/lib/alignJustify.js +1 -0
  39. package/lib/alignJustify.mjs +1 -0
  40. package/lib/alignLeft.d.mts +18 -0
  41. package/lib/alignLeft.d.ts +18 -0
  42. package/lib/alignLeft.js +1 -0
  43. package/lib/alignLeft.mjs +1 -0
  44. package/lib/alignRight.d.mts +18 -0
  45. package/lib/alignRight.d.ts +18 -0
  46. package/lib/alignRight.js +1 -0
  47. package/lib/alignRight.mjs +1 -0
  48. package/lib/anchor.d.mts +18 -0
  49. package/lib/anchor.d.ts +18 -0
  50. package/lib/anchor.js +1 -0
  51. package/lib/anchor.mjs +1 -0
  52. package/lib/aperture.d.mts +18 -0
  53. package/lib/aperture.d.ts +18 -0
  54. package/lib/aperture.js +1 -0
  55. package/lib/aperture.mjs +1 -0
  56. package/lib/archive.d.mts +18 -0
  57. package/lib/archive.d.ts +18 -0
  58. package/lib/archive.js +1 -0
  59. package/lib/archive.mjs +1 -0
  60. package/lib/arrowDown.d.mts +18 -0
  61. package/lib/arrowDown.d.ts +18 -0
  62. package/lib/arrowDown.js +1 -0
  63. package/lib/arrowDown.mjs +1 -0
  64. package/lib/arrowDownCircle.d.mts +18 -0
  65. package/lib/arrowDownCircle.d.ts +18 -0
  66. package/lib/arrowDownCircle.js +1 -0
  67. package/lib/arrowDownCircle.mjs +1 -0
  68. package/lib/arrowDownLeft.d.mts +18 -0
  69. package/lib/arrowDownLeft.d.ts +18 -0
  70. package/lib/arrowDownLeft.js +1 -0
  71. package/lib/arrowDownLeft.mjs +1 -0
  72. package/lib/arrowDownRight.d.mts +18 -0
  73. package/lib/arrowDownRight.d.ts +18 -0
  74. package/lib/arrowDownRight.js +1 -0
  75. package/lib/arrowDownRight.mjs +1 -0
  76. package/lib/arrowLeft.d.mts +18 -0
  77. package/lib/arrowLeft.d.ts +18 -0
  78. package/lib/arrowLeft.js +1 -0
  79. package/lib/arrowLeft.mjs +1 -0
  80. package/lib/arrowLeftCircle.d.mts +18 -0
  81. package/lib/arrowLeftCircle.d.ts +18 -0
  82. package/lib/arrowLeftCircle.js +1 -0
  83. package/lib/arrowLeftCircle.mjs +1 -0
  84. package/lib/arrowRight.d.mts +18 -0
  85. package/lib/arrowRight.d.ts +18 -0
  86. package/lib/arrowRight.js +1 -0
  87. package/lib/arrowRight.mjs +1 -0
  88. package/lib/arrowRightCircle.d.mts +18 -0
  89. package/lib/arrowRightCircle.d.ts +18 -0
  90. package/lib/arrowRightCircle.js +1 -0
  91. package/lib/arrowRightCircle.mjs +1 -0
  92. package/lib/arrowUp.d.mts +18 -0
  93. package/lib/arrowUp.d.ts +18 -0
  94. package/lib/arrowUp.js +1 -0
  95. package/lib/arrowUp.mjs +1 -0
  96. package/lib/arrowUpCircle.d.mts +18 -0
  97. package/lib/arrowUpCircle.d.ts +18 -0
  98. package/lib/arrowUpCircle.js +1 -0
  99. package/lib/arrowUpCircle.mjs +1 -0
  100. package/lib/arrowUpLeft.d.mts +18 -0
  101. package/lib/arrowUpLeft.d.ts +18 -0
  102. package/lib/arrowUpLeft.js +1 -0
  103. package/lib/arrowUpLeft.mjs +1 -0
  104. package/lib/arrowUpRight.d.mts +18 -0
  105. package/lib/arrowUpRight.d.ts +18 -0
  106. package/lib/arrowUpRight.js +1 -0
  107. package/lib/arrowUpRight.mjs +1 -0
  108. package/lib/atSign.d.mts +18 -0
  109. package/lib/atSign.d.ts +18 -0
  110. package/lib/atSign.js +1 -0
  111. package/lib/atSign.mjs +1 -0
  112. package/lib/award.d.mts +18 -0
  113. package/lib/award.d.ts +18 -0
  114. package/lib/award.js +1 -0
  115. package/lib/award.mjs +1 -0
  116. package/lib/barChart.d.mts +18 -0
  117. package/lib/barChart.d.ts +18 -0
  118. package/lib/barChart.js +1 -0
  119. package/lib/barChart.mjs +1 -0
  120. package/lib/barChart2.d.mts +18 -0
  121. package/lib/barChart2.d.ts +18 -0
  122. package/lib/barChart2.js +1 -0
  123. package/lib/barChart2.mjs +1 -0
  124. package/lib/battery.d.mts +18 -0
  125. package/lib/battery.d.ts +18 -0
  126. package/lib/battery.js +1 -0
  127. package/lib/battery.mjs +1 -0
  128. package/lib/batteryCharging.d.mts +18 -0
  129. package/lib/batteryCharging.d.ts +18 -0
  130. package/lib/batteryCharging.js +1 -0
  131. package/lib/batteryCharging.mjs +1 -0
  132. package/lib/behance.d.mts +18 -0
  133. package/lib/behance.d.ts +18 -0
  134. package/lib/behance.js +1 -0
  135. package/lib/behance.mjs +1 -0
  136. package/lib/bluetooth.d.mts +18 -0
  137. package/lib/bluetooth.d.ts +18 -0
  138. package/lib/bluetooth.js +1 -0
  139. package/lib/bluetooth.mjs +1 -0
  140. package/lib/bold.d.mts +18 -0
  141. package/lib/bold.d.ts +18 -0
  142. package/lib/bold.js +1 -0
  143. package/lib/bold.mjs +1 -0
  144. package/lib/book.d.mts +18 -0
  145. package/lib/book.d.ts +18 -0
  146. package/lib/book.js +1 -0
  147. package/lib/book.mjs +1 -0
  148. package/lib/bookOpen.d.mts +18 -0
  149. package/lib/bookOpen.d.ts +18 -0
  150. package/lib/bookOpen.js +1 -0
  151. package/lib/bookOpen.mjs +1 -0
  152. package/lib/bookmark.d.mts +18 -0
  153. package/lib/bookmark.d.ts +18 -0
  154. package/lib/bookmark.js +1 -0
  155. package/lib/bookmark.mjs +1 -0
  156. package/lib/box.d.mts +18 -0
  157. package/lib/box.d.ts +18 -0
  158. package/lib/box.js +1 -0
  159. package/lib/box.mjs +1 -0
  160. package/lib/briefcase.d.mts +18 -0
  161. package/lib/briefcase.d.ts +18 -0
  162. package/lib/briefcase.js +1 -0
  163. package/lib/briefcase.mjs +1 -0
  164. package/lib/calendar.d.mts +16 -0
  165. package/lib/calendar.d.ts +16 -0
  166. package/lib/calendar.js +1 -0
  167. package/lib/calendar.mjs +1 -0
  168. package/lib/camera.d.mts +18 -0
  169. package/lib/camera.d.ts +18 -0
  170. package/lib/camera.js +1 -0
  171. package/lib/camera.mjs +1 -0
  172. package/lib/cameraOff.d.mts +18 -0
  173. package/lib/cameraOff.d.ts +18 -0
  174. package/lib/cameraOff.js +1 -0
  175. package/lib/cameraOff.mjs +1 -0
  176. package/lib/cast.d.mts +18 -0
  177. package/lib/cast.d.ts +18 -0
  178. package/lib/cast.js +1 -0
  179. package/lib/cast.mjs +1 -0
  180. package/lib/check.d.mts +18 -0
  181. package/lib/check.d.ts +18 -0
  182. package/lib/check.js +1 -0
  183. package/lib/check.mjs +1 -0
  184. package/lib/checkBox.d.mts +18 -0
  185. package/lib/checkBox.d.ts +18 -0
  186. package/lib/checkBox.js +1 -0
  187. package/lib/checkBox.mjs +1 -0
  188. package/lib/checkCircle.d.mts +18 -0
  189. package/lib/checkCircle.d.ts +18 -0
  190. package/lib/checkCircle.js +1 -0
  191. package/lib/checkCircle.mjs +1 -0
  192. package/lib/checkmark.d.mts +18 -0
  193. package/lib/checkmark.d.ts +18 -0
  194. package/lib/checkmark.js +1 -0
  195. package/lib/checkmark.mjs +1 -0
  196. package/lib/chevronDown.d.mts +18 -0
  197. package/lib/chevronDown.d.ts +18 -0
  198. package/lib/chevronDown.js +1 -0
  199. package/lib/chevronDown.mjs +1 -0
  200. package/lib/chevronLeft.d.mts +18 -0
  201. package/lib/chevronLeft.d.ts +18 -0
  202. package/lib/chevronLeft.js +1 -0
  203. package/lib/chevronLeft.mjs +1 -0
  204. package/lib/chevronRight.d.mts +18 -0
  205. package/lib/chevronRight.d.ts +18 -0
  206. package/lib/chevronRight.js +1 -0
  207. package/lib/chevronRight.mjs +1 -0
  208. package/lib/chevronUp.d.mts +18 -0
  209. package/lib/chevronUp.d.ts +18 -0
  210. package/lib/chevronUp.js +1 -0
  211. package/lib/chevronUp.mjs +1 -0
  212. package/lib/chevronsDown.d.mts +18 -0
  213. package/lib/chevronsDown.d.ts +18 -0
  214. package/lib/chevronsDown.js +1 -0
  215. package/lib/chevronsDown.mjs +1 -0
  216. package/lib/chevronsLeft.d.mts +18 -0
  217. package/lib/chevronsLeft.d.ts +18 -0
  218. package/lib/chevronsLeft.js +1 -0
  219. package/lib/chevronsLeft.mjs +1 -0
  220. package/lib/chevronsRight.d.mts +18 -0
  221. package/lib/chevronsRight.d.ts +18 -0
  222. package/lib/chevronsRight.js +1 -0
  223. package/lib/chevronsRight.mjs +1 -0
  224. package/lib/chevronsUp.d.mts +18 -0
  225. package/lib/chevronsUp.d.ts +18 -0
  226. package/lib/chevronsUp.js +1 -0
  227. package/lib/chevronsUp.mjs +1 -0
  228. package/lib/chrome.d.mts +18 -0
  229. package/lib/chrome.d.ts +18 -0
  230. package/lib/chrome.js +1 -0
  231. package/lib/chrome.mjs +1 -0
  232. package/lib/circle.d.mts +18 -0
  233. package/lib/circle.d.ts +18 -0
  234. package/lib/circle.js +1 -0
  235. package/lib/circle.mjs +1 -0
  236. package/lib/clipboard.d.mts +18 -0
  237. package/lib/clipboard.d.ts +18 -0
  238. package/lib/clipboard.js +1 -0
  239. package/lib/clipboard.mjs +1 -0
  240. package/lib/clock.d.mts +18 -0
  241. package/lib/clock.d.ts +18 -0
  242. package/lib/clock.js +1 -0
  243. package/lib/clock.mjs +1 -0
  244. package/lib/cloud.d.mts +18 -0
  245. package/lib/cloud.d.ts +18 -0
  246. package/lib/cloud.js +1 -0
  247. package/lib/cloud.mjs +1 -0
  248. package/lib/cloudDrizzle.d.mts +18 -0
  249. package/lib/cloudDrizzle.d.ts +18 -0
  250. package/lib/cloudDrizzle.js +1 -0
  251. package/lib/cloudDrizzle.mjs +1 -0
  252. package/lib/cloudLightning.d.mts +18 -0
  253. package/lib/cloudLightning.d.ts +18 -0
  254. package/lib/cloudLightning.js +1 -0
  255. package/lib/cloudLightning.mjs +1 -0
  256. package/lib/cloudOff.d.mts +18 -0
  257. package/lib/cloudOff.d.ts +18 -0
  258. package/lib/cloudOff.js +1 -0
  259. package/lib/cloudOff.mjs +1 -0
  260. package/lib/cloudRain.d.mts +18 -0
  261. package/lib/cloudRain.d.ts +18 -0
  262. package/lib/cloudRain.js +1 -0
  263. package/lib/cloudRain.mjs +1 -0
  264. package/lib/cloudSnow.d.mts +18 -0
  265. package/lib/cloudSnow.d.ts +18 -0
  266. package/lib/cloudSnow.js +1 -0
  267. package/lib/cloudSnow.mjs +1 -0
  268. package/lib/code.d.mts +18 -0
  269. package/lib/code.d.ts +18 -0
  270. package/lib/code.js +1 -0
  271. package/lib/code.mjs +1 -0
  272. package/lib/codepen.d.mts +18 -0
  273. package/lib/codepen.d.ts +18 -0
  274. package/lib/codepen.js +1 -0
  275. package/lib/codepen.mjs +1 -0
  276. package/lib/codesandbox.d.mts +18 -0
  277. package/lib/codesandbox.d.ts +18 -0
  278. package/lib/codesandbox.js +1 -0
  279. package/lib/codesandbox.mjs +1 -0
  280. package/lib/coffee.d.mts +18 -0
  281. package/lib/coffee.d.ts +18 -0
  282. package/lib/coffee.js +1 -0
  283. package/lib/coffee.mjs +1 -0
  284. package/lib/columns.d.mts +18 -0
  285. package/lib/columns.d.ts +18 -0
  286. package/lib/columns.js +1 -0
  287. package/lib/columns.mjs +1 -0
  288. package/lib/command.d.mts +18 -0
  289. package/lib/command.d.ts +18 -0
  290. package/lib/command.js +1 -0
  291. package/lib/command.mjs +1 -0
  292. package/lib/copy.d.mts +18 -0
  293. package/lib/copy.d.ts +18 -0
  294. package/lib/copy.js +1 -0
  295. package/lib/copy.mjs +1 -0
  296. package/lib/cornerDownLeft.d.mts +18 -0
  297. package/lib/cornerDownLeft.d.ts +18 -0
  298. package/lib/cornerDownLeft.js +1 -0
  299. package/lib/cornerDownLeft.mjs +1 -0
  300. package/lib/cornerDownRight.d.mts +18 -0
  301. package/lib/cornerDownRight.d.ts +18 -0
  302. package/lib/cornerDownRight.js +1 -0
  303. package/lib/cornerDownRight.mjs +1 -0
  304. package/lib/cornerLeftDown.d.mts +18 -0
  305. package/lib/cornerLeftDown.d.ts +18 -0
  306. package/lib/cornerLeftDown.js +1 -0
  307. package/lib/cornerLeftDown.mjs +1 -0
  308. package/lib/cornerLeftUp.d.mts +18 -0
  309. package/lib/cornerLeftUp.d.ts +18 -0
  310. package/lib/cornerLeftUp.js +1 -0
  311. package/lib/cornerLeftUp.mjs +1 -0
  312. package/lib/cornerRightDown.d.mts +18 -0
  313. package/lib/cornerRightDown.d.ts +18 -0
  314. package/lib/cornerRightDown.js +1 -0
  315. package/lib/cornerRightDown.mjs +1 -0
  316. package/lib/cornerRightUp.d.mts +18 -0
  317. package/lib/cornerRightUp.d.ts +18 -0
  318. package/lib/cornerRightUp.js +1 -0
  319. package/lib/cornerRightUp.mjs +1 -0
  320. package/lib/cornerUpLeft.d.mts +18 -0
  321. package/lib/cornerUpLeft.d.ts +18 -0
  322. package/lib/cornerUpLeft.js +1 -0
  323. package/lib/cornerUpLeft.mjs +1 -0
  324. package/lib/cornerUpRight.d.mts +18 -0
  325. package/lib/cornerUpRight.d.ts +18 -0
  326. package/lib/cornerUpRight.js +1 -0
  327. package/lib/cornerUpRight.mjs +1 -0
  328. package/lib/cpu.d.mts +18 -0
  329. package/lib/cpu.d.ts +18 -0
  330. package/lib/cpu.js +1 -0
  331. package/lib/cpu.mjs +1 -0
  332. package/lib/creditCard.d.mts +18 -0
  333. package/lib/creditCard.d.ts +18 -0
  334. package/lib/creditCard.js +1 -0
  335. package/lib/creditCard.mjs +1 -0
  336. package/lib/crop.d.mts +18 -0
  337. package/lib/crop.d.ts +18 -0
  338. package/lib/crop.js +1 -0
  339. package/lib/crop.mjs +1 -0
  340. package/lib/crosshair.d.mts +18 -0
  341. package/lib/crosshair.d.ts +18 -0
  342. package/lib/crosshair.js +1 -0
  343. package/lib/crosshair.mjs +1 -0
  344. package/lib/database.d.mts +18 -0
  345. package/lib/database.d.ts +18 -0
  346. package/lib/database.js +1 -0
  347. package/lib/database.mjs +1 -0
  348. package/lib/delete.d.mts +18 -0
  349. package/lib/delete.d.ts +18 -0
  350. package/lib/delete.js +1 -0
  351. package/lib/delete.mjs +1 -0
  352. package/lib/disc.d.mts +18 -0
  353. package/lib/disc.d.ts +18 -0
  354. package/lib/disc.js +1 -0
  355. package/lib/disc.mjs +1 -0
  356. package/lib/divide.d.mts +18 -0
  357. package/lib/divide.d.ts +18 -0
  358. package/lib/divide.js +1 -0
  359. package/lib/divide.mjs +1 -0
  360. package/lib/divideCircle.d.mts +18 -0
  361. package/lib/divideCircle.d.ts +18 -0
  362. package/lib/divideCircle.js +1 -0
  363. package/lib/divideCircle.mjs +1 -0
  364. package/lib/divideSquare.d.mts +18 -0
  365. package/lib/divideSquare.d.ts +18 -0
  366. package/lib/divideSquare.js +1 -0
  367. package/lib/divideSquare.mjs +1 -0
  368. package/lib/dollarSign.d.mts +18 -0
  369. package/lib/dollarSign.d.ts +18 -0
  370. package/lib/dollarSign.js +1 -0
  371. package/lib/dollarSign.mjs +1 -0
  372. package/lib/download.d.mts +18 -0
  373. package/lib/download.d.ts +18 -0
  374. package/lib/download.js +1 -0
  375. package/lib/download.mjs +1 -0
  376. package/lib/download2.d.mts +18 -0
  377. package/lib/download2.d.ts +18 -0
  378. package/lib/download2.js +1 -0
  379. package/lib/download2.mjs +1 -0
  380. package/lib/downloadCloud.d.mts +18 -0
  381. package/lib/downloadCloud.d.ts +18 -0
  382. package/lib/downloadCloud.js +1 -0
  383. package/lib/downloadCloud.mjs +1 -0
  384. package/lib/dribbble.d.mts +18 -0
  385. package/lib/dribbble.d.ts +18 -0
  386. package/lib/dribbble.js +1 -0
  387. package/lib/dribbble.mjs +1 -0
  388. package/lib/droplet.d.mts +18 -0
  389. package/lib/droplet.d.ts +18 -0
  390. package/lib/droplet.js +1 -0
  391. package/lib/droplet.mjs +1 -0
  392. package/lib/edit.d.mts +18 -0
  393. package/lib/edit.d.ts +18 -0
  394. package/lib/edit.js +1 -0
  395. package/lib/edit.mjs +1 -0
  396. package/lib/edit2.d.mts +18 -0
  397. package/lib/edit2.d.ts +18 -0
  398. package/lib/edit2.js +1 -0
  399. package/lib/edit2.mjs +1 -0
  400. package/lib/edit3.d.mts +18 -0
  401. package/lib/edit3.d.ts +18 -0
  402. package/lib/edit3.js +1 -0
  403. package/lib/edit3.mjs +1 -0
  404. package/lib/error.d.mts +18 -0
  405. package/lib/error.d.ts +18 -0
  406. package/lib/error.js +1 -0
  407. package/lib/error.mjs +1 -0
  408. package/lib/explore.d.mts +18 -0
  409. package/lib/explore.d.ts +18 -0
  410. package/lib/explore.js +1 -0
  411. package/lib/explore.mjs +1 -0
  412. package/lib/externalLink.d.mts +18 -0
  413. package/lib/externalLink.d.ts +18 -0
  414. package/lib/externalLink.js +1 -0
  415. package/lib/externalLink.mjs +1 -0
  416. package/lib/facebook.d.mts +18 -0
  417. package/lib/facebook.d.ts +18 -0
  418. package/lib/facebook.js +1 -0
  419. package/lib/facebook.mjs +1 -0
  420. package/lib/fastForward.d.mts +18 -0
  421. package/lib/fastForward.d.ts +18 -0
  422. package/lib/fastForward.js +1 -0
  423. package/lib/fastForward.mjs +1 -0
  424. package/lib/figma.d.mts +18 -0
  425. package/lib/figma.d.ts +18 -0
  426. package/lib/figma.js +1 -0
  427. package/lib/figma.mjs +1 -0
  428. package/lib/file.d.mts +18 -0
  429. package/lib/file.d.ts +18 -0
  430. package/lib/file.js +1 -0
  431. package/lib/file.mjs +1 -0
  432. package/lib/fileMinus.d.mts +18 -0
  433. package/lib/fileMinus.d.ts +18 -0
  434. package/lib/fileMinus.js +1 -0
  435. package/lib/fileMinus.mjs +1 -0
  436. package/lib/filePlus.d.mts +18 -0
  437. package/lib/filePlus.d.ts +18 -0
  438. package/lib/filePlus.js +1 -0
  439. package/lib/filePlus.mjs +1 -0
  440. package/lib/fileText.d.mts +18 -0
  441. package/lib/fileText.d.ts +18 -0
  442. package/lib/fileText.js +1 -0
  443. package/lib/fileText.mjs +1 -0
  444. package/lib/film.d.mts +18 -0
  445. package/lib/film.d.ts +18 -0
  446. package/lib/film.js +1 -0
  447. package/lib/film.mjs +1 -0
  448. package/lib/filter.d.mts +18 -0
  449. package/lib/filter.d.ts +18 -0
  450. package/lib/filter.js +1 -0
  451. package/lib/filter.mjs +1 -0
  452. package/lib/flag.d.mts +18 -0
  453. package/lib/flag.d.ts +18 -0
  454. package/lib/flag.js +1 -0
  455. package/lib/flag.mjs +1 -0
  456. package/lib/folder.d.mts +18 -0
  457. package/lib/folder.d.ts +18 -0
  458. package/lib/folder.js +1 -0
  459. package/lib/folder.mjs +1 -0
  460. package/lib/folderMinus.d.mts +18 -0
  461. package/lib/folderMinus.d.ts +18 -0
  462. package/lib/folderMinus.js +1 -0
  463. package/lib/folderMinus.mjs +1 -0
  464. package/lib/folderPlus.d.mts +18 -0
  465. package/lib/folderPlus.d.ts +18 -0
  466. package/lib/folderPlus.js +1 -0
  467. package/lib/folderPlus.mjs +1 -0
  468. package/lib/framer.d.mts +18 -0
  469. package/lib/framer.d.ts +18 -0
  470. package/lib/framer.js +1 -0
  471. package/lib/framer.mjs +1 -0
  472. package/lib/frown.d.mts +18 -0
  473. package/lib/frown.d.ts +18 -0
  474. package/lib/frown.js +1 -0
  475. package/lib/frown.mjs +1 -0
  476. package/lib/gift.d.mts +18 -0
  477. package/lib/gift.d.ts +18 -0
  478. package/lib/gift.js +1 -0
  479. package/lib/gift.mjs +1 -0
  480. package/lib/gitBranch.d.mts +18 -0
  481. package/lib/gitBranch.d.ts +18 -0
  482. package/lib/gitBranch.js +1 -0
  483. package/lib/gitBranch.mjs +1 -0
  484. package/lib/gitCommit.d.mts +18 -0
  485. package/lib/gitCommit.d.ts +18 -0
  486. package/lib/gitCommit.js +1 -0
  487. package/lib/gitCommit.mjs +1 -0
  488. package/lib/gitMerge.d.mts +18 -0
  489. package/lib/gitMerge.d.ts +18 -0
  490. package/lib/gitMerge.js +1 -0
  491. package/lib/gitMerge.mjs +1 -0
  492. package/lib/gitPullRequest.d.mts +18 -0
  493. package/lib/gitPullRequest.d.ts +18 -0
  494. package/lib/gitPullRequest.js +1 -0
  495. package/lib/gitPullRequest.mjs +1 -0
  496. package/lib/github.d.mts +18 -0
  497. package/lib/github.d.ts +18 -0
  498. package/lib/github.js +1 -0
  499. package/lib/github.mjs +1 -0
  500. package/lib/gitlab.d.mts +18 -0
  501. package/lib/gitlab.d.ts +18 -0
  502. package/lib/gitlab.js +1 -0
  503. package/lib/gitlab.mjs +1 -0
  504. package/lib/globe.d.mts +18 -0
  505. package/lib/globe.d.ts +18 -0
  506. package/lib/globe.js +1 -0
  507. package/lib/globe.mjs +1 -0
  508. package/lib/grid.d.mts +18 -0
  509. package/lib/grid.d.ts +18 -0
  510. package/lib/grid.js +1 -0
  511. package/lib/grid.mjs +1 -0
  512. package/lib/hardDrive.d.mts +18 -0
  513. package/lib/hardDrive.d.ts +18 -0
  514. package/lib/hardDrive.js +1 -0
  515. package/lib/hardDrive.mjs +1 -0
  516. package/lib/hash.d.mts +18 -0
  517. package/lib/hash.d.ts +18 -0
  518. package/lib/hash.js +1 -0
  519. package/lib/hash.mjs +1 -0
  520. package/lib/headphones.d.mts +18 -0
  521. package/lib/headphones.d.ts +18 -0
  522. package/lib/headphones.js +1 -0
  523. package/lib/headphones.mjs +1 -0
  524. package/lib/heart.d.mts +18 -0
  525. package/lib/heart.d.ts +18 -0
  526. package/lib/heart.js +1 -0
  527. package/lib/heart.mjs +1 -0
  528. package/lib/heart2.d.mts +18 -0
  529. package/lib/heart2.d.ts +18 -0
  530. package/lib/heart2.js +1 -0
  531. package/lib/heart2.mjs +1 -0
  532. package/lib/help.d.mts +18 -0
  533. package/lib/help.d.ts +18 -0
  534. package/lib/help.js +1 -0
  535. package/lib/help.mjs +1 -0
  536. package/lib/hexagon.d.mts +18 -0
  537. package/lib/hexagon.d.ts +18 -0
  538. package/lib/hexagon.js +1 -0
  539. package/lib/hexagon.mjs +1 -0
  540. package/lib/home.d.mts +18 -0
  541. package/lib/home.d.ts +18 -0
  542. package/lib/home.js +1 -0
  543. package/lib/home.mjs +1 -0
  544. package/lib/image.d.mts +18 -0
  545. package/lib/image.d.ts +18 -0
  546. package/lib/image.js +1 -0
  547. package/lib/image.mjs +1 -0
  548. package/lib/inbox.d.mts +18 -0
  549. package/lib/inbox.d.ts +18 -0
  550. package/lib/inbox.js +1 -0
  551. package/lib/inbox.mjs +1 -0
  552. package/lib/infinity.d.mts +18 -0
  553. package/lib/infinity.d.ts +18 -0
  554. package/lib/infinity.js +1 -0
  555. package/lib/infinity.mjs +1 -0
  556. package/lib/info.d.mts +18 -0
  557. package/lib/info.d.ts +18 -0
  558. package/lib/info.js +1 -0
  559. package/lib/info.mjs +1 -0
  560. package/lib/instagram.d.mts +18 -0
  561. package/lib/instagram.d.ts +18 -0
  562. package/lib/instagram.js +1 -0
  563. package/lib/instagram.mjs +1 -0
  564. package/lib/italic.d.mts +18 -0
  565. package/lib/italic.d.ts +18 -0
  566. package/lib/italic.js +1 -0
  567. package/lib/italic.mjs +1 -0
  568. package/lib/key.d.mts +18 -0
  569. package/lib/key.d.ts +18 -0
  570. package/lib/key.js +1 -0
  571. package/lib/key.mjs +1 -0
  572. package/lib/layers.d.mts +18 -0
  573. package/lib/layers.d.ts +18 -0
  574. package/lib/layers.js +1 -0
  575. package/lib/layers.mjs +1 -0
  576. package/lib/layout.d.mts +18 -0
  577. package/lib/layout.d.ts +18 -0
  578. package/lib/layout.js +1 -0
  579. package/lib/layout.mjs +1 -0
  580. package/lib/lifeBuoy.d.mts +18 -0
  581. package/lib/lifeBuoy.d.ts +18 -0
  582. package/lib/lifeBuoy.js +1 -0
  583. package/lib/lifeBuoy.mjs +1 -0
  584. package/lib/link.d.mts +18 -0
  585. package/lib/link.d.ts +18 -0
  586. package/lib/link.js +1 -0
  587. package/lib/link.mjs +1 -0
  588. package/lib/link2.d.mts +18 -0
  589. package/lib/link2.d.ts +18 -0
  590. package/lib/link2.js +1 -0
  591. package/lib/link2.mjs +1 -0
  592. package/lib/linkedin.d.mts +18 -0
  593. package/lib/linkedin.d.ts +18 -0
  594. package/lib/linkedin.js +1 -0
  595. package/lib/linkedin.mjs +1 -0
  596. package/lib/list.d.mts +18 -0
  597. package/lib/list.d.ts +18 -0
  598. package/lib/list.js +1 -0
  599. package/lib/list.mjs +1 -0
  600. package/lib/loading.d.mts +16 -0
  601. package/lib/loading.d.ts +16 -0
  602. package/lib/loading.js +1 -0
  603. package/lib/loading.mjs +1 -0
  604. package/lib/loading2.d.mts +16 -0
  605. package/lib/loading2.d.ts +16 -0
  606. package/lib/loading2.js +1 -0
  607. package/lib/loading2.mjs +1 -0
  608. package/lib/loading3.d.mts +16 -0
  609. package/lib/loading3.d.ts +16 -0
  610. package/lib/loading3.js +1 -0
  611. package/lib/loading3.mjs +1 -0
  612. package/lib/loading4.d.mts +18 -0
  613. package/lib/loading4.d.ts +18 -0
  614. package/lib/loading4.js +1 -0
  615. package/lib/loading4.mjs +1 -0
  616. package/lib/lock.d.mts +18 -0
  617. package/lib/lock.d.ts +18 -0
  618. package/lib/lock.js +1 -0
  619. package/lib/lock.mjs +1 -0
  620. package/lib/logIn.d.mts +18 -0
  621. package/lib/logIn.d.ts +18 -0
  622. package/lib/logIn.js +1 -0
  623. package/lib/logIn.mjs +1 -0
  624. package/lib/logOut.d.mts +18 -0
  625. package/lib/logOut.d.ts +18 -0
  626. package/lib/logOut.js +1 -0
  627. package/lib/logOut.mjs +1 -0
  628. package/lib/mail.d.mts +18 -0
  629. package/lib/mail.d.ts +18 -0
  630. package/lib/mail.js +1 -0
  631. package/lib/mail.mjs +1 -0
  632. package/lib/map.d.mts +18 -0
  633. package/lib/map.d.ts +18 -0
  634. package/lib/map.js +1 -0
  635. package/lib/map.mjs +1 -0
  636. package/lib/mapPin.d.mts +18 -0
  637. package/lib/mapPin.d.ts +18 -0
  638. package/lib/mapPin.js +1 -0
  639. package/lib/mapPin.mjs +1 -0
  640. package/lib/maximize2.d.mts +18 -0
  641. package/lib/maximize2.d.ts +18 -0
  642. package/lib/maximize2.js +1 -0
  643. package/lib/maximize2.mjs +1 -0
  644. package/lib/maximizeMinimize.d.mts +18 -0
  645. package/lib/maximizeMinimize.d.ts +18 -0
  646. package/lib/maximizeMinimize.js +1 -0
  647. package/lib/maximizeMinimize.mjs +1 -0
  648. package/lib/maximizeMinimize2.d.mts +18 -0
  649. package/lib/maximizeMinimize2.d.ts +18 -0
  650. package/lib/maximizeMinimize2.js +1 -0
  651. package/lib/maximizeMinimize2.mjs +1 -0
  652. package/lib/meh.d.mts +18 -0
  653. package/lib/meh.d.ts +18 -0
  654. package/lib/meh.js +1 -0
  655. package/lib/meh.mjs +1 -0
  656. package/lib/menu.d.mts +18 -0
  657. package/lib/menu.d.ts +18 -0
  658. package/lib/menu.js +1 -0
  659. package/lib/menu.mjs +1 -0
  660. package/lib/menu2.d.mts +18 -0
  661. package/lib/menu2.d.ts +18 -0
  662. package/lib/menu2.js +1 -0
  663. package/lib/menu2.mjs +1 -0
  664. package/lib/menu3.d.mts +18 -0
  665. package/lib/menu3.d.ts +18 -0
  666. package/lib/menu3.js +1 -0
  667. package/lib/menu3.mjs +1 -0
  668. package/lib/menu4.d.mts +18 -0
  669. package/lib/menu4.d.ts +18 -0
  670. package/lib/menu4.js +1 -0
  671. package/lib/menu4.mjs +1 -0
  672. package/lib/messageCircle.d.mts +18 -0
  673. package/lib/messageCircle.d.ts +18 -0
  674. package/lib/messageCircle.js +1 -0
  675. package/lib/messageCircle.mjs +1 -0
  676. package/lib/messageSquare.d.mts +18 -0
  677. package/lib/messageSquare.d.ts +18 -0
  678. package/lib/messageSquare.js +1 -0
  679. package/lib/messageSquare.mjs +1 -0
  680. package/lib/micOff.d.mts +18 -0
  681. package/lib/micOff.d.ts +18 -0
  682. package/lib/micOff.js +1 -0
  683. package/lib/micOff.mjs +1 -0
  684. package/lib/microphone.d.mts +18 -0
  685. package/lib/microphone.d.ts +18 -0
  686. package/lib/microphone.js +1 -0
  687. package/lib/microphone.mjs +1 -0
  688. package/lib/microphone2.d.mts +18 -0
  689. package/lib/microphone2.d.ts +18 -0
  690. package/lib/microphone2.js +1 -0
  691. package/lib/microphone2.mjs +1 -0
  692. package/lib/minimize2.d.mts +18 -0
  693. package/lib/minimize2.d.ts +18 -0
  694. package/lib/minimize2.js +1 -0
  695. package/lib/minimize2.mjs +1 -0
  696. package/lib/minus.d.mts +18 -0
  697. package/lib/minus.d.ts +18 -0
  698. package/lib/minus.js +1 -0
  699. package/lib/minus.mjs +1 -0
  700. package/lib/minusCircle.d.mts +18 -0
  701. package/lib/minusCircle.d.ts +18 -0
  702. package/lib/minusCircle.js +1 -0
  703. package/lib/minusCircle.mjs +1 -0
  704. package/lib/minusSquare.d.mts +18 -0
  705. package/lib/minusSquare.d.ts +18 -0
  706. package/lib/minusSquare.js +1 -0
  707. package/lib/minusSquare.mjs +1 -0
  708. package/lib/monitor.d.mts +18 -0
  709. package/lib/monitor.d.ts +18 -0
  710. package/lib/monitor.js +1 -0
  711. package/lib/monitor.mjs +1 -0
  712. package/lib/moon.d.mts +18 -0
  713. package/lib/moon.d.ts +18 -0
  714. package/lib/moon.js +1 -0
  715. package/lib/moon.mjs +1 -0
  716. package/lib/moreHorizontal.d.mts +18 -0
  717. package/lib/moreHorizontal.d.ts +18 -0
  718. package/lib/moreHorizontal.js +1 -0
  719. package/lib/moreHorizontal.mjs +1 -0
  720. package/lib/moreVertical.d.mts +18 -0
  721. package/lib/moreVertical.d.ts +18 -0
  722. package/lib/moreVertical.js +1 -0
  723. package/lib/moreVertical.mjs +1 -0
  724. package/lib/mousePointer.d.mts +18 -0
  725. package/lib/mousePointer.d.ts +18 -0
  726. package/lib/mousePointer.js +1 -0
  727. package/lib/mousePointer.mjs +1 -0
  728. package/lib/move.d.mts +18 -0
  729. package/lib/move.d.ts +18 -0
  730. package/lib/move.js +1 -0
  731. package/lib/move.mjs +1 -0
  732. package/lib/music.d.mts +18 -0
  733. package/lib/music.d.ts +18 -0
  734. package/lib/music.js +1 -0
  735. package/lib/music.mjs +1 -0
  736. package/lib/navigation.d.mts +18 -0
  737. package/lib/navigation.d.ts +18 -0
  738. package/lib/navigation.js +1 -0
  739. package/lib/navigation.mjs +1 -0
  740. package/lib/navigation2.d.mts +18 -0
  741. package/lib/navigation2.d.ts +18 -0
  742. package/lib/navigation2.js +1 -0
  743. package/lib/navigation2.mjs +1 -0
  744. package/lib/notification.d.mts +18 -0
  745. package/lib/notification.d.ts +18 -0
  746. package/lib/notification.js +1 -0
  747. package/lib/notification.mjs +1 -0
  748. package/lib/notification2.d.mts +18 -0
  749. package/lib/notification2.d.ts +18 -0
  750. package/lib/notification2.js +1 -0
  751. package/lib/notification2.mjs +1 -0
  752. package/lib/notification3.d.mts +18 -0
  753. package/lib/notification3.d.ts +18 -0
  754. package/lib/notification3.js +1 -0
  755. package/lib/notification3.mjs +1 -0
  756. package/lib/notification4.d.mts +18 -0
  757. package/lib/notification4.d.ts +18 -0
  758. package/lib/notification4.js +1 -0
  759. package/lib/notification4.mjs +1 -0
  760. package/lib/octagon.d.mts +18 -0
  761. package/lib/octagon.d.ts +18 -0
  762. package/lib/octagon.js +1 -0
  763. package/lib/octagon.mjs +1 -0
  764. package/lib/package.d.mts +18 -0
  765. package/lib/package.d.ts +18 -0
  766. package/lib/package.js +1 -0
  767. package/lib/package.mjs +1 -0
  768. package/lib/paperclip.d.mts +18 -0
  769. package/lib/paperclip.d.ts +18 -0
  770. package/lib/paperclip.js +1 -0
  771. package/lib/paperclip.mjs +1 -0
  772. package/lib/penTool.d.mts +18 -0
  773. package/lib/penTool.d.ts +18 -0
  774. package/lib/penTool.js +1 -0
  775. package/lib/penTool.mjs +1 -0
  776. package/lib/percent.d.mts +18 -0
  777. package/lib/percent.d.ts +18 -0
  778. package/lib/percent.js +1 -0
  779. package/lib/percent.mjs +1 -0
  780. package/lib/phone.d.mts +18 -0
  781. package/lib/phone.d.ts +18 -0
  782. package/lib/phone.js +1 -0
  783. package/lib/phone.mjs +1 -0
  784. package/lib/phoneCall.d.mts +18 -0
  785. package/lib/phoneCall.d.ts +18 -0
  786. package/lib/phoneCall.js +1 -0
  787. package/lib/phoneCall.mjs +1 -0
  788. package/lib/phoneForwarded.d.mts +18 -0
  789. package/lib/phoneForwarded.d.ts +18 -0
  790. package/lib/phoneForwarded.js +1 -0
  791. package/lib/phoneForwarded.mjs +1 -0
  792. package/lib/phoneIncoming.d.mts +18 -0
  793. package/lib/phoneIncoming.d.ts +18 -0
  794. package/lib/phoneIncoming.js +1 -0
  795. package/lib/phoneIncoming.mjs +1 -0
  796. package/lib/phoneMissed.d.mts +18 -0
  797. package/lib/phoneMissed.d.ts +18 -0
  798. package/lib/phoneMissed.js +1 -0
  799. package/lib/phoneMissed.mjs +1 -0
  800. package/lib/phoneOff.d.mts +18 -0
  801. package/lib/phoneOff.d.ts +18 -0
  802. package/lib/phoneOff.js +1 -0
  803. package/lib/phoneOff.mjs +1 -0
  804. package/lib/phoneOutgoing.d.mts +18 -0
  805. package/lib/phoneOutgoing.d.ts +18 -0
  806. package/lib/phoneOutgoing.js +1 -0
  807. package/lib/phoneOutgoing.mjs +1 -0
  808. package/lib/pieChart.d.mts +18 -0
  809. package/lib/pieChart.d.ts +18 -0
  810. package/lib/pieChart.js +1 -0
  811. package/lib/pieChart.mjs +1 -0
  812. package/lib/playPause.d.mts +18 -0
  813. package/lib/playPause.d.ts +18 -0
  814. package/lib/playPause.js +1 -0
  815. package/lib/playPause.mjs +1 -0
  816. package/lib/playPauseCircle.d.mts +18 -0
  817. package/lib/playPauseCircle.d.ts +18 -0
  818. package/lib/playPauseCircle.js +1 -0
  819. package/lib/playPauseCircle.mjs +1 -0
  820. package/lib/plusCircle.d.mts +18 -0
  821. package/lib/plusCircle.d.ts +18 -0
  822. package/lib/plusCircle.js +1 -0
  823. package/lib/plusCircle.mjs +1 -0
  824. package/lib/plusSquare.d.mts +18 -0
  825. package/lib/plusSquare.d.ts +18 -0
  826. package/lib/plusSquare.js +1 -0
  827. package/lib/plusSquare.mjs +1 -0
  828. package/lib/plusToX.d.mts +18 -0
  829. package/lib/plusToX.d.ts +18 -0
  830. package/lib/plusToX.js +1 -0
  831. package/lib/plusToX.mjs +1 -0
  832. package/lib/pocket.d.mts +18 -0
  833. package/lib/pocket.d.ts +18 -0
  834. package/lib/pocket.js +1 -0
  835. package/lib/pocket.mjs +1 -0
  836. package/lib/power.d.mts +18 -0
  837. package/lib/power.d.ts +18 -0
  838. package/lib/power.js +1 -0
  839. package/lib/power.mjs +1 -0
  840. package/lib/printer.d.mts +18 -0
  841. package/lib/printer.d.ts +18 -0
  842. package/lib/printer.js +1 -0
  843. package/lib/printer.mjs +1 -0
  844. package/lib/radio.d.mts +18 -0
  845. package/lib/radio.d.ts +18 -0
  846. package/lib/radio.js +1 -0
  847. package/lib/radio.mjs +1 -0
  848. package/lib/radioButton.d.mts +18 -0
  849. package/lib/radioButton.d.ts +18 -0
  850. package/lib/radioButton.js +1 -0
  851. package/lib/radioButton.mjs +1 -0
  852. package/lib/refresh.d.mts +18 -0
  853. package/lib/refresh.d.ts +18 -0
  854. package/lib/refresh.js +1 -0
  855. package/lib/refresh.mjs +1 -0
  856. package/lib/refresh2.d.mts +18 -0
  857. package/lib/refresh2.d.ts +18 -0
  858. package/lib/refresh2.js +1 -0
  859. package/lib/refresh2.mjs +1 -0
  860. package/lib/refreshCcw.d.mts +18 -0
  861. package/lib/refreshCcw.d.ts +18 -0
  862. package/lib/refreshCcw.js +1 -0
  863. package/lib/refreshCcw.mjs +1 -0
  864. package/lib/repeat.d.mts +18 -0
  865. package/lib/repeat.d.ts +18 -0
  866. package/lib/repeat.js +1 -0
  867. package/lib/repeat.mjs +1 -0
  868. package/lib/rewind.d.mts +18 -0
  869. package/lib/rewind.d.ts +18 -0
  870. package/lib/rewind.js +1 -0
  871. package/lib/rewind.mjs +1 -0
  872. package/lib/rotateCcw.d.mts +18 -0
  873. package/lib/rotateCcw.d.ts +18 -0
  874. package/lib/rotateCcw.js +1 -0
  875. package/lib/rotateCcw.mjs +1 -0
  876. package/lib/rotateCw.d.mts +18 -0
  877. package/lib/rotateCw.d.ts +18 -0
  878. package/lib/rotateCw.js +1 -0
  879. package/lib/rotateCw.mjs +1 -0
  880. package/lib/rss.d.mts +18 -0
  881. package/lib/rss.d.ts +18 -0
  882. package/lib/rss.js +1 -0
  883. package/lib/rss.mjs +1 -0
  884. package/lib/save.d.mts +18 -0
  885. package/lib/save.d.ts +18 -0
  886. package/lib/save.js +1 -0
  887. package/lib/save.mjs +1 -0
  888. package/lib/scissors.d.mts +18 -0
  889. package/lib/scissors.d.ts +18 -0
  890. package/lib/scissors.js +1 -0
  891. package/lib/scissors.mjs +1 -0
  892. package/lib/scrollDown.d.mts +18 -0
  893. package/lib/scrollDown.d.ts +18 -0
  894. package/lib/scrollDown.js +1 -0
  895. package/lib/scrollDown.mjs +1 -0
  896. package/lib/searchToX.d.mts +18 -0
  897. package/lib/searchToX.d.ts +18 -0
  898. package/lib/searchToX.js +1 -0
  899. package/lib/searchToX.mjs +1 -0
  900. package/lib/send.d.mts +18 -0
  901. package/lib/send.d.ts +18 -0
  902. package/lib/send.js +1 -0
  903. package/lib/send.mjs +1 -0
  904. package/lib/server.d.mts +18 -0
  905. package/lib/server.d.ts +18 -0
  906. package/lib/server.js +1 -0
  907. package/lib/server.mjs +1 -0
  908. package/lib/settings.d.mts +18 -0
  909. package/lib/settings.d.ts +18 -0
  910. package/lib/settings.js +1 -0
  911. package/lib/settings.mjs +1 -0
  912. package/lib/settings2.d.mts +18 -0
  913. package/lib/settings2.d.ts +18 -0
  914. package/lib/settings2.js +1 -0
  915. package/lib/settings2.mjs +1 -0
  916. package/lib/share.d.mts +18 -0
  917. package/lib/share.d.ts +18 -0
  918. package/lib/share.js +1 -0
  919. package/lib/share.mjs +1 -0
  920. package/lib/shield.d.mts +18 -0
  921. package/lib/shield.d.ts +18 -0
  922. package/lib/shield.js +1 -0
  923. package/lib/shield.mjs +1 -0
  924. package/lib/shieldOff.d.mts +18 -0
  925. package/lib/shieldOff.d.ts +18 -0
  926. package/lib/shieldOff.js +1 -0
  927. package/lib/shieldOff.mjs +1 -0
  928. package/lib/shoppingBag.d.mts +18 -0
  929. package/lib/shoppingBag.d.ts +18 -0
  930. package/lib/shoppingBag.js +1 -0
  931. package/lib/shoppingBag.mjs +1 -0
  932. package/lib/shoppingCart.d.mts +18 -0
  933. package/lib/shoppingCart.d.ts +18 -0
  934. package/lib/shoppingCart.js +1 -0
  935. package/lib/shoppingCart.mjs +1 -0
  936. package/lib/shuffle.d.mts +18 -0
  937. package/lib/shuffle.d.ts +18 -0
  938. package/lib/shuffle.js +1 -0
  939. package/lib/shuffle.mjs +1 -0
  940. package/lib/sidebar.d.mts +18 -0
  941. package/lib/sidebar.d.ts +18 -0
  942. package/lib/sidebar.js +1 -0
  943. package/lib/sidebar.mjs +1 -0
  944. package/lib/skipBack.d.mts +18 -0
  945. package/lib/skipBack.d.ts +18 -0
  946. package/lib/skipBack.js +1 -0
  947. package/lib/skipBack.mjs +1 -0
  948. package/lib/skipForward.d.mts +18 -0
  949. package/lib/skipForward.d.ts +18 -0
  950. package/lib/skipForward.js +1 -0
  951. package/lib/skipForward.mjs +1 -0
  952. package/lib/slack.d.mts +18 -0
  953. package/lib/slack.d.ts +18 -0
  954. package/lib/slack.js +1 -0
  955. package/lib/slack.mjs +1 -0
  956. package/lib/slash.d.mts +18 -0
  957. package/lib/slash.d.ts +18 -0
  958. package/lib/slash.js +1 -0
  959. package/lib/slash.mjs +1 -0
  960. package/lib/smartphone.d.mts +18 -0
  961. package/lib/smartphone.d.ts +18 -0
  962. package/lib/smartphone.js +1 -0
  963. package/lib/smartphone.mjs +1 -0
  964. package/lib/smile.d.mts +18 -0
  965. package/lib/smile.d.ts +18 -0
  966. package/lib/smile.js +1 -0
  967. package/lib/smile.mjs +1 -0
  968. package/lib/speaker.d.mts +18 -0
  969. package/lib/speaker.d.ts +18 -0
  970. package/lib/speaker.js +1 -0
  971. package/lib/speaker.mjs +1 -0
  972. package/lib/square.d.mts +18 -0
  973. package/lib/square.d.ts +18 -0
  974. package/lib/square.js +1 -0
  975. package/lib/square.mjs +1 -0
  976. package/lib/star.d.mts +18 -0
  977. package/lib/star.d.ts +18 -0
  978. package/lib/star.js +1 -0
  979. package/lib/star.mjs +1 -0
  980. package/lib/stopCircle.d.mts +18 -0
  981. package/lib/stopCircle.d.ts +18 -0
  982. package/lib/stopCircle.js +1 -0
  983. package/lib/stopCircle.mjs +1 -0
  984. package/lib/sun.d.mts +18 -0
  985. package/lib/sun.d.ts +18 -0
  986. package/lib/sun.js +1 -0
  987. package/lib/sun.mjs +1 -0
  988. package/lib/sunrise.d.mts +18 -0
  989. package/lib/sunrise.d.ts +18 -0
  990. package/lib/sunrise.js +1 -0
  991. package/lib/sunrise.mjs +1 -0
  992. package/lib/sunset.d.mts +18 -0
  993. package/lib/sunset.d.ts +18 -0
  994. package/lib/sunset.js +1 -0
  995. package/lib/sunset.mjs +1 -0
  996. package/lib/table.d.mts +18 -0
  997. package/lib/table.d.ts +18 -0
  998. package/lib/table.js +1 -0
  999. package/lib/table.mjs +1 -0
  1000. package/lib/tablet.d.mts +18 -0
  1001. package/lib/tablet.d.ts +18 -0
  1002. package/lib/tablet.js +1 -0
  1003. package/lib/tablet.mjs +1 -0
  1004. package/lib/tag.d.mts +18 -0
  1005. package/lib/tag.d.ts +18 -0
  1006. package/lib/tag.js +1 -0
  1007. package/lib/tag.mjs +1 -0
  1008. package/lib/target.d.mts +18 -0
  1009. package/lib/target.d.ts +18 -0
  1010. package/lib/target.js +1 -0
  1011. package/lib/target.mjs +1 -0
  1012. package/lib/terminal.d.mts +18 -0
  1013. package/lib/terminal.d.ts +18 -0
  1014. package/lib/terminal.js +1 -0
  1015. package/lib/terminal.mjs +1 -0
  1016. package/lib/thermometer.d.mts +18 -0
  1017. package/lib/thermometer.d.ts +18 -0
  1018. package/lib/thermometer.js +1 -0
  1019. package/lib/thermometer.mjs +1 -0
  1020. package/lib/thumbUp.d.mts +18 -0
  1021. package/lib/thumbUp.d.ts +18 -0
  1022. package/lib/thumbUp.js +1 -0
  1023. package/lib/thumbUp.mjs +1 -0
  1024. package/lib/thumbsDown.d.mts +18 -0
  1025. package/lib/thumbsDown.d.ts +18 -0
  1026. package/lib/thumbsDown.js +1 -0
  1027. package/lib/thumbsDown.mjs +1 -0
  1028. package/lib/toggle.d.mts +18 -0
  1029. package/lib/toggle.d.ts +18 -0
  1030. package/lib/toggle.js +1 -0
  1031. package/lib/toggle.mjs +1 -0
  1032. package/lib/tool.d.mts +18 -0
  1033. package/lib/tool.d.ts +18 -0
  1034. package/lib/tool.js +1 -0
  1035. package/lib/tool.mjs +1 -0
  1036. package/lib/trash.d.mts +18 -0
  1037. package/lib/trash.d.ts +18 -0
  1038. package/lib/trash.js +1 -0
  1039. package/lib/trash.mjs +1 -0
  1040. package/lib/trash2.d.mts +18 -0
  1041. package/lib/trash2.d.ts +18 -0
  1042. package/lib/trash2.js +1 -0
  1043. package/lib/trash2.mjs +1 -0
  1044. package/lib/trello.d.mts +18 -0
  1045. package/lib/trello.d.ts +18 -0
  1046. package/lib/trello.js +1 -0
  1047. package/lib/trello.mjs +1 -0
  1048. package/lib/trendingDown.d.mts +18 -0
  1049. package/lib/trendingDown.d.ts +18 -0
  1050. package/lib/trendingDown.js +1 -0
  1051. package/lib/trendingDown.mjs +1 -0
  1052. package/lib/trendingUp.d.mts +18 -0
  1053. package/lib/trendingUp.d.ts +18 -0
  1054. package/lib/trendingUp.js +1 -0
  1055. package/lib/trendingUp.mjs +1 -0
  1056. package/lib/triangle.d.mts +18 -0
  1057. package/lib/triangle.d.ts +18 -0
  1058. package/lib/triangle.js +1 -0
  1059. package/lib/triangle.mjs +1 -0
  1060. package/lib/truck.d.mts +18 -0
  1061. package/lib/truck.d.ts +18 -0
  1062. package/lib/truck.js +1 -0
  1063. package/lib/truck.mjs +1 -0
  1064. package/lib/tv.d.mts +18 -0
  1065. package/lib/tv.d.ts +18 -0
  1066. package/lib/tv.js +1 -0
  1067. package/lib/tv.mjs +1 -0
  1068. package/lib/twitch.d.mts +18 -0
  1069. package/lib/twitch.d.ts +18 -0
  1070. package/lib/twitch.js +1 -0
  1071. package/lib/twitch.mjs +1 -0
  1072. package/lib/twitter.d.mts +18 -0
  1073. package/lib/twitter.d.ts +18 -0
  1074. package/lib/twitter.js +1 -0
  1075. package/lib/twitter.mjs +1 -0
  1076. package/lib/twitterX.d.mts +18 -0
  1077. package/lib/twitterX.d.ts +18 -0
  1078. package/lib/twitterX.js +1 -0
  1079. package/lib/twitterX.mjs +1 -0
  1080. package/lib/type.d.mts +18 -0
  1081. package/lib/type.d.ts +18 -0
  1082. package/lib/type.js +1 -0
  1083. package/lib/type.mjs +1 -0
  1084. package/lib/umbrella.d.mts +18 -0
  1085. package/lib/umbrella.d.ts +18 -0
  1086. package/lib/umbrella.js +1 -0
  1087. package/lib/umbrella.mjs +1 -0
  1088. package/lib/underline.d.mts +18 -0
  1089. package/lib/underline.d.ts +18 -0
  1090. package/lib/underline.js +1 -0
  1091. package/lib/underline.mjs +1 -0
  1092. package/lib/upload.d.mts +18 -0
  1093. package/lib/upload.d.ts +18 -0
  1094. package/lib/upload.js +1 -0
  1095. package/lib/upload.mjs +1 -0
  1096. package/lib/uploadCloud.d.mts +18 -0
  1097. package/lib/uploadCloud.d.ts +18 -0
  1098. package/lib/uploadCloud.js +1 -0
  1099. package/lib/uploadCloud.mjs +1 -0
  1100. package/lib/user.d.mts +18 -0
  1101. package/lib/user.d.ts +18 -0
  1102. package/lib/user.js +1 -0
  1103. package/lib/user.mjs +1 -0
  1104. package/lib/userCheck.d.mts +18 -0
  1105. package/lib/userCheck.d.ts +18 -0
  1106. package/lib/userCheck.js +1 -0
  1107. package/lib/userCheck.mjs +1 -0
  1108. package/lib/userMinus.d.mts +18 -0
  1109. package/lib/userMinus.d.ts +18 -0
  1110. package/lib/userMinus.js +1 -0
  1111. package/lib/userMinus.mjs +1 -0
  1112. package/lib/userPlus.d.mts +18 -0
  1113. package/lib/userPlus.d.ts +18 -0
  1114. package/lib/userPlus.js +1 -0
  1115. package/lib/userPlus.mjs +1 -0
  1116. package/lib/userX.d.mts +18 -0
  1117. package/lib/userX.d.ts +18 -0
  1118. package/lib/userX.js +1 -0
  1119. package/lib/userX.mjs +1 -0
  1120. package/lib/users.d.mts +18 -0
  1121. package/lib/users.d.ts +18 -0
  1122. package/lib/users.js +1 -0
  1123. package/lib/users.mjs +1 -0
  1124. package/lib/video.d.mts +18 -0
  1125. package/lib/video.d.ts +18 -0
  1126. package/lib/video.js +1 -0
  1127. package/lib/video.mjs +1 -0
  1128. package/lib/video2.d.mts +18 -0
  1129. package/lib/video2.d.ts +18 -0
  1130. package/lib/video2.js +1 -0
  1131. package/lib/video2.mjs +1 -0
  1132. package/lib/videoOff.d.mts +18 -0
  1133. package/lib/videoOff.d.ts +18 -0
  1134. package/lib/videoOff.js +1 -0
  1135. package/lib/videoOff.mjs +1 -0
  1136. package/lib/visibility.d.mts +18 -0
  1137. package/lib/visibility.d.ts +18 -0
  1138. package/lib/visibility.js +1 -0
  1139. package/lib/visibility.mjs +1 -0
  1140. package/lib/visibility2.d.mts +18 -0
  1141. package/lib/visibility2.d.ts +18 -0
  1142. package/lib/visibility2.js +1 -0
  1143. package/lib/visibility2.mjs +1 -0
  1144. package/lib/visibility3.d.mts +18 -0
  1145. package/lib/visibility3.d.ts +18 -0
  1146. package/lib/visibility3.js +1 -0
  1147. package/lib/visibility3.mjs +1 -0
  1148. package/lib/voicemail.d.mts +18 -0
  1149. package/lib/voicemail.d.ts +18 -0
  1150. package/lib/voicemail.js +1 -0
  1151. package/lib/voicemail.mjs +1 -0
  1152. package/lib/volume.d.mts +18 -0
  1153. package/lib/volume.d.ts +18 -0
  1154. package/lib/volume.js +1 -0
  1155. package/lib/volume.mjs +1 -0
  1156. package/lib/watch.d.mts +18 -0
  1157. package/lib/watch.d.ts +18 -0
  1158. package/lib/watch.js +1 -0
  1159. package/lib/watch.mjs +1 -0
  1160. package/lib/wifi.d.mts +18 -0
  1161. package/lib/wifi.d.ts +18 -0
  1162. package/lib/wifi.js +1 -0
  1163. package/lib/wifi.mjs +1 -0
  1164. package/lib/wifiOff.d.mts +18 -0
  1165. package/lib/wifiOff.d.ts +18 -0
  1166. package/lib/wifiOff.js +1 -0
  1167. package/lib/wifiOff.mjs +1 -0
  1168. package/lib/wind.d.mts +18 -0
  1169. package/lib/wind.d.ts +18 -0
  1170. package/lib/wind.js +1 -0
  1171. package/lib/wind.mjs +1 -0
  1172. package/lib/xOctagon.d.mts +18 -0
  1173. package/lib/xOctagon.d.ts +18 -0
  1174. package/lib/xOctagon.js +1 -0
  1175. package/lib/xOctagon.mjs +1 -0
  1176. package/lib/xSquare.d.mts +18 -0
  1177. package/lib/xSquare.d.ts +18 -0
  1178. package/lib/xSquare.js +1 -0
  1179. package/lib/xSquare.mjs +1 -0
  1180. package/lib/youtube.d.mts +18 -0
  1181. package/lib/youtube.d.ts +18 -0
  1182. package/lib/youtube.js +1 -0
  1183. package/lib/youtube.mjs +1 -0
  1184. package/lib/youtube2.d.mts +18 -0
  1185. package/lib/youtube2.d.ts +18 -0
  1186. package/lib/youtube2.js +1 -0
  1187. package/lib/youtube2.mjs +1 -0
  1188. package/lib/zap.d.mts +18 -0
  1189. package/lib/zap.d.ts +18 -0
  1190. package/lib/zap.js +1 -0
  1191. package/lib/zap.mjs +1 -0
  1192. package/lib/zapOff.d.mts +18 -0
  1193. package/lib/zapOff.d.ts +18 -0
  1194. package/lib/zapOff.js +1 -0
  1195. package/lib/zapOff.mjs +1 -0
  1196. package/lib/zoomIn.d.mts +16 -0
  1197. package/lib/zoomIn.d.ts +16 -0
  1198. package/lib/zoomIn.js +1 -0
  1199. package/lib/zoomIn.mjs +1 -0
  1200. package/lib/zoomOut.d.mts +16 -0
  1201. package/lib/zoomOut.d.ts +16 -0
  1202. package/lib/zoomOut.js +1 -0
  1203. package/lib/zoomOut.mjs +1 -0
  1204. package/package.json +26 -12
  1205. package/svg.json +906 -0
  1206. package/lib/activity/index.d.mts +0 -5
  1207. package/lib/activity/index.d.ts +0 -5
  1208. package/lib/activity/index.js +0 -32
  1209. package/lib/activity/index.mjs +0 -9
  1210. package/lib/airplay/index.d.mts +0 -5
  1211. package/lib/airplay/index.d.ts +0 -5
  1212. package/lib/airplay/index.js +0 -32
  1213. package/lib/airplay/index.mjs +0 -9
  1214. package/lib/alertCircle/index.d.mts +0 -5
  1215. package/lib/alertCircle/index.d.ts +0 -5
  1216. package/lib/alertCircle/index.js +0 -32
  1217. package/lib/alertCircle/index.mjs +0 -9
  1218. package/lib/alertOctagon/index.d.mts +0 -5
  1219. package/lib/alertOctagon/index.d.ts +0 -5
  1220. package/lib/alertOctagon/index.js +0 -32
  1221. package/lib/alertOctagon/index.mjs +0 -9
  1222. package/lib/alertTriangle/index.d.mts +0 -5
  1223. package/lib/alertTriangle/index.d.ts +0 -5
  1224. package/lib/alertTriangle/index.js +0 -32
  1225. package/lib/alertTriangle/index.mjs +0 -9
  1226. package/lib/archive/index.d.mts +0 -5
  1227. package/lib/archive/index.d.ts +0 -5
  1228. package/lib/archive/index.js +0 -32
  1229. package/lib/archive/index.mjs +0 -9
  1230. package/lib/arrowDown/index.d.mts +0 -5
  1231. package/lib/arrowDown/index.d.ts +0 -5
  1232. package/lib/arrowDown/index.js +0 -32
  1233. package/lib/arrowDown/index.mjs +0 -9
  1234. package/lib/arrowDownCircle/index.d.mts +0 -5
  1235. package/lib/arrowDownCircle/index.d.ts +0 -5
  1236. package/lib/arrowDownCircle/index.js +0 -32
  1237. package/lib/arrowDownCircle/index.mjs +0 -9
  1238. package/lib/arrowLeftCircle/index.d.mts +0 -5
  1239. package/lib/arrowLeftCircle/index.d.ts +0 -5
  1240. package/lib/arrowLeftCircle/index.js +0 -32
  1241. package/lib/arrowLeftCircle/index.mjs +0 -9
  1242. package/lib/arrowRightCircle/index.d.mts +0 -5
  1243. package/lib/arrowRightCircle/index.d.ts +0 -5
  1244. package/lib/arrowRightCircle/index.js +0 -32
  1245. package/lib/arrowRightCircle/index.mjs +0 -9
  1246. package/lib/arrowUp/index.d.mts +0 -5
  1247. package/lib/arrowUp/index.d.ts +0 -5
  1248. package/lib/arrowUp/index.js +0 -32
  1249. package/lib/arrowUp/index.mjs +0 -9
  1250. package/lib/arrowUpCircle/index.d.mts +0 -5
  1251. package/lib/arrowUpCircle/index.d.ts +0 -5
  1252. package/lib/arrowUpCircle/index.js +0 -32
  1253. package/lib/arrowUpCircle/index.mjs +0 -9
  1254. package/lib/behance/index.d.mts +0 -5
  1255. package/lib/behance/index.d.ts +0 -5
  1256. package/lib/behance/index.js +0 -32
  1257. package/lib/behance/index.mjs +0 -9
  1258. package/lib/bookmark/index.d.mts +0 -5
  1259. package/lib/bookmark/index.d.ts +0 -5
  1260. package/lib/bookmark/index.js +0 -32
  1261. package/lib/bookmark/index.mjs +0 -9
  1262. package/lib/calendar/index.d.mts +0 -5
  1263. package/lib/calendar/index.d.ts +0 -5
  1264. package/lib/calendar/index.js +0 -32
  1265. package/lib/calendar/index.mjs +0 -9
  1266. package/lib/checkBox/index.d.mts +0 -5
  1267. package/lib/checkBox/index.d.ts +0 -5
  1268. package/lib/checkBox/index.js +0 -32
  1269. package/lib/checkBox/index.mjs +0 -9
  1270. package/lib/checkmark/index.d.mts +0 -5
  1271. package/lib/checkmark/index.d.ts +0 -5
  1272. package/lib/checkmark/index.js +0 -32
  1273. package/lib/checkmark/index.mjs +0 -9
  1274. package/lib/chevronLeft/index.d.mts +0 -5
  1275. package/lib/chevronLeft/index.d.ts +0 -5
  1276. package/lib/chevronLeft/index.js +0 -32
  1277. package/lib/chevronLeft/index.mjs +0 -9
  1278. package/lib/chevronRight/index.d.mts +0 -5
  1279. package/lib/chevronRight/index.d.ts +0 -5
  1280. package/lib/chevronRight/index.js +0 -32
  1281. package/lib/chevronRight/index.mjs +0 -9
  1282. package/lib/codepen/index.d.mts +0 -5
  1283. package/lib/codepen/index.d.ts +0 -5
  1284. package/lib/codepen/index.js +0 -32
  1285. package/lib/codepen/index.mjs +0 -9
  1286. package/lib/copy/index.d.mts +0 -5
  1287. package/lib/copy/index.d.ts +0 -5
  1288. package/lib/copy/index.js +0 -32
  1289. package/lib/copy/index.mjs +0 -9
  1290. package/lib/download/index.d.mts +0 -5
  1291. package/lib/download/index.d.ts +0 -5
  1292. package/lib/download/index.js +0 -32
  1293. package/lib/download/index.mjs +0 -9
  1294. package/lib/dribbble/index.d.mts +0 -5
  1295. package/lib/dribbble/index.d.ts +0 -5
  1296. package/lib/dribbble/index.js +0 -32
  1297. package/lib/dribbble/index.mjs +0 -9
  1298. package/lib/edit/index.d.mts +0 -5
  1299. package/lib/edit/index.d.ts +0 -5
  1300. package/lib/edit/index.js +0 -32
  1301. package/lib/edit/index.mjs +0 -9
  1302. package/lib/error/index.d.mts +0 -5
  1303. package/lib/error/index.d.ts +0 -5
  1304. package/lib/error/index.js +0 -32
  1305. package/lib/error/index.mjs +0 -9
  1306. package/lib/explore/index.d.mts +0 -5
  1307. package/lib/explore/index.d.ts +0 -5
  1308. package/lib/explore/index.js +0 -32
  1309. package/lib/explore/index.mjs +0 -9
  1310. package/lib/facebook/index.d.mts +0 -5
  1311. package/lib/facebook/index.d.ts +0 -5
  1312. package/lib/facebook/index.js +0 -32
  1313. package/lib/facebook/index.mjs +0 -9
  1314. package/lib/filter/index.d.mts +0 -5
  1315. package/lib/filter/index.d.ts +0 -5
  1316. package/lib/filter/index.js +0 -32
  1317. package/lib/filter/index.mjs +0 -9
  1318. package/lib/folder/index.d.mts +0 -5
  1319. package/lib/folder/index.d.ts +0 -5
  1320. package/lib/folder/index.js +0 -32
  1321. package/lib/folder/index.mjs +0 -9
  1322. package/lib/github/index.d.mts +0 -5
  1323. package/lib/github/index.d.ts +0 -5
  1324. package/lib/github/index.js +0 -32
  1325. package/lib/github/index.mjs +0 -9
  1326. package/lib/heart/index.d.mts +0 -5
  1327. package/lib/heart/index.d.ts +0 -5
  1328. package/lib/heart/index.js +0 -32
  1329. package/lib/heart/index.mjs +0 -9
  1330. package/lib/help/index.d.mts +0 -5
  1331. package/lib/help/index.d.ts +0 -5
  1332. package/lib/help/index.js +0 -32
  1333. package/lib/help/index.mjs +0 -9
  1334. package/lib/home/index.d.mts +0 -5
  1335. package/lib/home/index.d.ts +0 -5
  1336. package/lib/home/index.js +0 -32
  1337. package/lib/home/index.mjs +0 -9
  1338. package/lib/infinity/index.d.mts +0 -5
  1339. package/lib/infinity/index.d.ts +0 -5
  1340. package/lib/infinity/index.js +0 -32
  1341. package/lib/infinity/index.mjs +0 -9
  1342. package/lib/info/index.d.mts +0 -5
  1343. package/lib/info/index.d.ts +0 -5
  1344. package/lib/info/index.js +0 -32
  1345. package/lib/info/index.mjs +0 -9
  1346. package/lib/instagram/index.d.mts +0 -5
  1347. package/lib/instagram/index.d.ts +0 -5
  1348. package/lib/instagram/index.js +0 -32
  1349. package/lib/instagram/index.mjs +0 -9
  1350. package/lib/linkedin/index.d.mts +0 -5
  1351. package/lib/linkedin/index.d.ts +0 -5
  1352. package/lib/linkedin/index.js +0 -32
  1353. package/lib/linkedin/index.mjs +0 -9
  1354. package/lib/loading/index.d.mts +0 -5
  1355. package/lib/loading/index.d.ts +0 -5
  1356. package/lib/loading/index.js +0 -32
  1357. package/lib/loading/index.mjs +0 -9
  1358. package/lib/loading2/index.d.mts +0 -5
  1359. package/lib/loading2/index.d.ts +0 -5
  1360. package/lib/loading2/index.js +0 -32
  1361. package/lib/loading2/index.mjs +0 -9
  1362. package/lib/loading3/index.d.mts +0 -5
  1363. package/lib/loading3/index.d.ts +0 -5
  1364. package/lib/loading3/index.js +0 -32
  1365. package/lib/loading3/index.mjs +0 -9
  1366. package/lib/loading4/index.d.mts +0 -5
  1367. package/lib/loading4/index.d.ts +0 -5
  1368. package/lib/loading4/index.js +0 -32
  1369. package/lib/loading4/index.mjs +0 -9
  1370. package/lib/lock/index.d.mts +0 -5
  1371. package/lib/lock/index.d.ts +0 -5
  1372. package/lib/lock/index.js +0 -32
  1373. package/lib/lock/index.mjs +0 -9
  1374. package/lib/mail/index.d.mts +0 -5
  1375. package/lib/mail/index.d.ts +0 -5
  1376. package/lib/mail/index.js +0 -32
  1377. package/lib/mail/index.mjs +0 -9
  1378. package/lib/maximizeMinimize/index.d.mts +0 -5
  1379. package/lib/maximizeMinimize/index.d.ts +0 -5
  1380. package/lib/maximizeMinimize/index.js +0 -32
  1381. package/lib/maximizeMinimize/index.mjs +0 -9
  1382. package/lib/maximizeMinimize2/index.d.mts +0 -5
  1383. package/lib/maximizeMinimize2/index.d.ts +0 -5
  1384. package/lib/maximizeMinimize2/index.js +0 -32
  1385. package/lib/maximizeMinimize2/index.mjs +0 -9
  1386. package/lib/menu/index.d.mts +0 -5
  1387. package/lib/menu/index.d.ts +0 -5
  1388. package/lib/menu/index.js +0 -32
  1389. package/lib/menu/index.mjs +0 -9
  1390. package/lib/menu2/index.d.mts +0 -5
  1391. package/lib/menu2/index.d.ts +0 -5
  1392. package/lib/menu2/index.js +0 -32
  1393. package/lib/menu2/index.mjs +0 -9
  1394. package/lib/menu3/index.d.mts +0 -5
  1395. package/lib/menu3/index.d.ts +0 -5
  1396. package/lib/menu3/index.js +0 -32
  1397. package/lib/menu3/index.mjs +0 -9
  1398. package/lib/menu4/index.d.mts +0 -5
  1399. package/lib/menu4/index.d.ts +0 -5
  1400. package/lib/menu4/index.js +0 -32
  1401. package/lib/menu4/index.mjs +0 -9
  1402. package/lib/microphone/index.d.mts +0 -5
  1403. package/lib/microphone/index.d.ts +0 -5
  1404. package/lib/microphone/index.js +0 -32
  1405. package/lib/microphone/index.mjs +0 -9
  1406. package/lib/microphone2/index.d.mts +0 -5
  1407. package/lib/microphone2/index.d.ts +0 -5
  1408. package/lib/microphone2/index.js +0 -32
  1409. package/lib/microphone2/index.mjs +0 -9
  1410. package/lib/notification/index.d.mts +0 -5
  1411. package/lib/notification/index.d.ts +0 -5
  1412. package/lib/notification/index.js +0 -32
  1413. package/lib/notification/index.mjs +0 -9
  1414. package/lib/notification2/index.d.mts +0 -5
  1415. package/lib/notification2/index.d.ts +0 -5
  1416. package/lib/notification2/index.js +0 -32
  1417. package/lib/notification2/index.mjs +0 -9
  1418. package/lib/notification3/index.d.mts +0 -5
  1419. package/lib/notification3/index.d.ts +0 -5
  1420. package/lib/notification3/index.js +0 -32
  1421. package/lib/notification3/index.mjs +0 -9
  1422. package/lib/notification4/index.d.mts +0 -5
  1423. package/lib/notification4/index.d.ts +0 -5
  1424. package/lib/notification4/index.js +0 -32
  1425. package/lib/notification4/index.mjs +0 -9
  1426. package/lib/playPause/index.d.mts +0 -5
  1427. package/lib/playPause/index.d.ts +0 -5
  1428. package/lib/playPause/index.js +0 -32
  1429. package/lib/playPause/index.mjs +0 -9
  1430. package/lib/playPauseCircle/index.d.mts +0 -5
  1431. package/lib/playPauseCircle/index.d.ts +0 -5
  1432. package/lib/playPauseCircle/index.js +0 -32
  1433. package/lib/playPauseCircle/index.mjs +0 -9
  1434. package/lib/plusToX/index.d.mts +0 -5
  1435. package/lib/plusToX/index.d.ts +0 -5
  1436. package/lib/plusToX/index.js +0 -32
  1437. package/lib/plusToX/index.mjs +0 -9
  1438. package/lib/pocket/index.d.mts +0 -5
  1439. package/lib/pocket/index.d.ts +0 -5
  1440. package/lib/pocket/index.js +0 -32
  1441. package/lib/pocket/index.mjs +0 -9
  1442. package/lib/radioButton/index.d.mts +0 -5
  1443. package/lib/radioButton/index.d.ts +0 -5
  1444. package/lib/radioButton/index.js +0 -32
  1445. package/lib/radioButton/index.mjs +0 -9
  1446. package/lib/refresh/index.d.mts +0 -5
  1447. package/lib/refresh/index.d.ts +0 -5
  1448. package/lib/refresh/index.js +0 -32
  1449. package/lib/refresh/index.mjs +0 -9
  1450. package/lib/scrollDown/index.d.mts +0 -5
  1451. package/lib/scrollDown/index.d.ts +0 -5
  1452. package/lib/scrollDown/index.js +0 -32
  1453. package/lib/scrollDown/index.mjs +0 -9
  1454. package/lib/searchToX/index.d.mts +0 -5
  1455. package/lib/searchToX/index.d.ts +0 -5
  1456. package/lib/searchToX/index.js +0 -32
  1457. package/lib/searchToX/index.mjs +0 -9
  1458. package/lib/settings/index.d.mts +0 -5
  1459. package/lib/settings/index.d.ts +0 -5
  1460. package/lib/settings/index.js +0 -32
  1461. package/lib/settings/index.mjs +0 -9
  1462. package/lib/settings2/index.d.mts +0 -5
  1463. package/lib/settings2/index.d.ts +0 -5
  1464. package/lib/settings2/index.js +0 -32
  1465. package/lib/settings2/index.mjs +0 -9
  1466. package/lib/share/index.d.mts +0 -5
  1467. package/lib/share/index.d.ts +0 -5
  1468. package/lib/share/index.js +0 -32
  1469. package/lib/share/index.mjs +0 -9
  1470. package/lib/skipBack/index.d.mts +0 -5
  1471. package/lib/skipBack/index.d.ts +0 -5
  1472. package/lib/skipBack/index.js +0 -32
  1473. package/lib/skipBack/index.mjs +0 -9
  1474. package/lib/skipForward/index.d.mts +0 -5
  1475. package/lib/skipForward/index.d.ts +0 -5
  1476. package/lib/skipForward/index.js +0 -32
  1477. package/lib/skipForward/index.mjs +0 -9
  1478. package/lib/star/index.d.mts +0 -5
  1479. package/lib/star/index.d.ts +0 -5
  1480. package/lib/star/index.js +0 -32
  1481. package/lib/star/index.mjs +0 -9
  1482. package/lib/thumbUp/index.d.mts +0 -5
  1483. package/lib/thumbUp/index.d.ts +0 -5
  1484. package/lib/thumbUp/index.js +0 -32
  1485. package/lib/thumbUp/index.mjs +0 -9
  1486. package/lib/toggle/index.d.mts +0 -5
  1487. package/lib/toggle/index.d.ts +0 -5
  1488. package/lib/toggle/index.js +0 -32
  1489. package/lib/toggle/index.mjs +0 -9
  1490. package/lib/trash/index.d.mts +0 -5
  1491. package/lib/trash/index.d.ts +0 -5
  1492. package/lib/trash/index.js +0 -32
  1493. package/lib/trash/index.mjs +0 -9
  1494. package/lib/trash2/index.d.mts +0 -5
  1495. package/lib/trash2/index.d.ts +0 -5
  1496. package/lib/trash2/index.js +0 -32
  1497. package/lib/trash2/index.mjs +0 -9
  1498. package/lib/twitter/index.d.mts +0 -5
  1499. package/lib/twitter/index.d.ts +0 -5
  1500. package/lib/twitter/index.js +0 -32
  1501. package/lib/twitter/index.mjs +0 -9
  1502. package/lib/userMinus/index.d.mts +0 -5
  1503. package/lib/userMinus/index.d.ts +0 -5
  1504. package/lib/userMinus/index.js +0 -32
  1505. package/lib/userMinus/index.mjs +0 -9
  1506. package/lib/userPlus/index.d.mts +0 -5
  1507. package/lib/userPlus/index.d.ts +0 -5
  1508. package/lib/userPlus/index.js +0 -32
  1509. package/lib/userPlus/index.mjs +0 -9
  1510. package/lib/userX/index.d.mts +0 -5
  1511. package/lib/userX/index.d.ts +0 -5
  1512. package/lib/userX/index.js +0 -32
  1513. package/lib/userX/index.mjs +0 -9
  1514. package/lib/video/index.d.mts +0 -5
  1515. package/lib/video/index.d.ts +0 -5
  1516. package/lib/video/index.js +0 -32
  1517. package/lib/video/index.mjs +0 -9
  1518. package/lib/video2/index.d.mts +0 -5
  1519. package/lib/video2/index.d.ts +0 -5
  1520. package/lib/video2/index.js +0 -32
  1521. package/lib/video2/index.mjs +0 -9
  1522. package/lib/visibility/index.d.mts +0 -5
  1523. package/lib/visibility/index.d.ts +0 -5
  1524. package/lib/visibility/index.js +0 -32
  1525. package/lib/visibility/index.mjs +0 -9
  1526. package/lib/visibility2/index.d.mts +0 -5
  1527. package/lib/visibility2/index.d.ts +0 -5
  1528. package/lib/visibility2/index.js +0 -32
  1529. package/lib/visibility2/index.mjs +0 -9
  1530. package/lib/visibility3/index.d.mts +0 -5
  1531. package/lib/visibility3/index.d.ts +0 -5
  1532. package/lib/visibility3/index.js +0 -32
  1533. package/lib/visibility3/index.mjs +0 -9
  1534. package/lib/volume/index.d.mts +0 -5
  1535. package/lib/volume/index.d.ts +0 -5
  1536. package/lib/volume/index.js +0 -32
  1537. package/lib/volume/index.mjs +0 -9
  1538. package/lib/youtube/index.d.mts +0 -5
  1539. package/lib/youtube/index.d.ts +0 -5
  1540. package/lib/youtube/index.js +0 -32
  1541. package/lib/youtube/index.mjs +0 -9
  1542. package/lib/youtube2/index.d.mts +0 -5
  1543. package/lib/youtube2/index.d.ts +0 -5
  1544. package/lib/youtube2/index.js +0 -32
  1545. package/lib/youtube2/index.mjs +0 -9
  1546. package/lib/zoomIn/index.d.mts +0 -5
  1547. package/lib/zoomIn/index.d.ts +0 -5
  1548. package/lib/zoomIn/index.js +0 -32
  1549. package/lib/zoomIn/index.mjs +0 -9
  1550. package/lib/zoomOut/index.d.mts +0 -5
  1551. package/lib/zoomOut/index.d.ts +0 -5
  1552. package/lib/zoomOut/index.js +0 -32
  1553. package/lib/zoomOut/index.mjs +0 -9
package/index.mjs CHANGED
@@ -1,258 +1,1396 @@
1
1
  'use client';
2
-
3
- // src/index.tsx
4
- import React, { useEffect, useRef, useState } from "react";
5
-
6
- // src/icons.ts
7
- var interactions = {
8
- activity: "loop",
9
- airplay: "loop",
10
- alertCircle: "loop",
11
- alertOctagon: "loop",
12
- alertTriangle: "loop",
13
- archive: "hover",
14
- arrowDown: "loop",
15
- arrowDownCircle: "click-replay",
16
- arrowLeftCircle: "click-replay",
17
- arrowRightCircle: "click-replay",
18
- arrowUp: "loop",
19
- arrowUpCircle: "click-replay",
20
- behance: "hover-loop",
21
- bookmark: "click-toggle",
22
- calendar: "hover",
23
- checkBox: "click-toggle",
24
- checkmark: "loop",
25
- chevronLeft: "click-replay",
26
- chevronRight: "click-replay",
27
- codepen: "hover-loop",
28
- copy: "hover",
29
- download: "click-replay",
30
- dribbble: "hover-loop",
31
- edit: "hover",
32
- error: "loop",
33
- explore: "hover",
34
- facebook: "hover-loop",
35
- filter: "click-replay",
36
- folder: "hover",
37
- github: "hover-loop",
38
- heart: "click-toggle",
39
- help: "loop",
40
- home: "hover",
41
- infinity: "loop",
42
- info: "hover",
43
- instagram: "hover",
44
- linkedin: "hover-loop",
45
- loading: "loop",
46
- loading2: "loop",
47
- loading3: "loop",
48
- loading4: "loop",
49
- lock: "click-toggle",
50
- mail: "hover",
51
- maximizeMinimize: "click-toggle",
52
- maximizeMinimize2: "click-toggle",
53
- menu: "click-toggle",
54
- menu2: "click-toggle",
55
- menu3: "click-toggle",
56
- menu4: "click-toggle",
57
- microphone: "click-toggle",
58
- microphone2: "click-toggle",
59
- notification: "click-toggle",
60
- notification2: "click-toggle",
61
- notification3: "loop",
62
- notification4: "loop",
63
- playPause: "click-toggle",
64
- playPauseCircle: "click-toggle",
65
- plusToX: "click-toggle",
66
- pocket: "hover-loop",
67
- radioButton: "click-toggle",
68
- refresh: "click-replay",
69
- scrollDown: "loop",
70
- searchToX: "click-toggle",
71
- settings: "hover",
72
- settings2: "click-toggle",
73
- share: "hover",
74
- skipBack: "click-replay",
75
- skipForward: "click-replay",
76
- star: "click-toggle",
77
- thumbUp: "click-toggle",
78
- toggle: "click-toggle",
79
- trash: "hover",
80
- trash2: "hover",
81
- twitter: "hover-loop",
82
- userMinus: "hover",
83
- userPlus: "hover",
84
- userX: "hover",
85
- video: "click-toggle",
86
- video2: "click-toggle",
87
- visibility: "click-toggle",
88
- visibility2: "click-toggle",
89
- visibility3: "click-toggle",
90
- volume: "click-toggle",
91
- youtube: "hover",
92
- youtube2: "hover",
93
- zoomIn: "hover",
94
- zoomOut: "hover"
95
- };
96
- var fullPlayerIcons = /* @__PURE__ */ new Set(["error", "twitter"]);
97
-
98
- // src/interactions.ts
99
- var getInteraction = (key) => (
100
- // Unknown keys (e.g. custom animations) fall back to replaying on click.
101
- interactions[key] ?? "click-replay"
102
- );
103
- var playToggle = (animation, toEnd) => {
104
- animation.setDirection(toEnd ? 1 : -1);
105
- animation.play();
106
- };
107
- var replay = (animation) => {
108
- animation.setDirection(1);
109
- animation.playSegments([0, animation.totalFrames], true);
110
- };
111
- var hoverStart = (animation, interaction) => {
112
- if (interaction === "hover") animation.setDirection(1);
113
- animation.play();
114
- };
115
- var hoverEnd = (animation, interaction) => {
116
- if (interaction === "hover") {
117
- animation.setDirection(-1);
118
- animation.play();
119
- } else {
120
- animation.stop();
121
- }
122
- };
123
-
124
- // src/lottie.ts
125
- var light;
126
- var full;
127
- var unwrap = (mod) => mod.default ?? mod;
128
- var loadLottie = (needsFullPlayer) => {
129
- if (needsFullPlayer) {
130
- full ?? (full = import("lottie-web").then(unwrap));
131
- return full;
132
- }
133
- light ?? (light = import("lottie-web/build/player/lottie_light").then(unwrap));
134
- return light;
135
- };
136
- var lottie_default = loadLottie;
137
-
138
- // src/index.tsx
139
- var idCounter = 0;
140
- var UseAnimations = (props) => {
141
- const {
142
- animation: { animationData, animationKey },
143
- interaction: interactionProp,
144
- reverse = false,
145
- size = 24,
146
- speed = 1,
147
- strokeColor,
148
- fillColor,
149
- pathCss,
150
- loop,
151
- autoplay,
152
- wrapperStyle,
153
- options,
154
- render,
155
- style,
156
- onClick,
157
- onMouseEnter,
158
- onMouseLeave,
159
- ...other
160
- } = props;
161
- const containerRef = useRef(null);
162
- const [player, setPlayer] = useState(null);
163
- const [id] = useState(() => `useanimations-${idCounter += 1}`);
164
- const atEnd = useRef(false);
165
- const latest = useRef({ options, speed });
166
- const interaction = interactionProp ?? getInteraction(animationKey);
167
- const shouldLoop = loop ?? (interaction === "loop" || interaction === "hover-loop");
168
- const shouldAutoplay = autoplay ?? interaction === "loop";
169
- useEffect(() => {
170
- latest.current = { options, speed };
171
- });
172
- useEffect(() => {
173
- const container = containerRef.current;
174
- if (!container) return void 0;
175
- let cancelled = false;
176
- let instance;
177
- lottie_default(fullPlayerIcons.has(animationKey)).then((lottie) => {
178
- if (cancelled) return;
179
- const { options: custom, speed: initialSpeed } = latest.current;
180
- instance = lottie.loadAnimation({
181
- container,
182
- renderer: "svg",
183
- animationData,
184
- loop: shouldLoop,
185
- autoplay: shouldAutoplay,
186
- ...custom,
187
- // lottie-web supports `id` (set on the <svg>) but its types don't declare it.
188
- rendererSettings: {
189
- progressiveLoad: true,
190
- ...custom?.rendererSettings,
191
- id
192
- }
193
- });
194
- instance.setSpeed(initialSpeed);
195
- atEnd.current = false;
196
- setPlayer(instance);
197
- });
198
- return () => {
199
- cancelled = true;
200
- instance?.destroy();
201
- setPlayer(null);
202
- };
203
- }, [animationData, animationKey, shouldLoop, shouldAutoplay, id]);
204
- useEffect(() => {
205
- player?.setSpeed(speed);
206
- }, [player, speed]);
207
- useEffect(() => {
208
- if (!player || interaction !== "click-toggle" || reverse === atEnd.current) return;
209
- atEnd.current = reverse;
210
- playToggle(player, reverse);
211
- }, [player, interaction, reverse]);
212
- useEffect(() => {
213
- if (!strokeColor && !fillColor && !pathCss) return void 0;
214
- const sheet = document.createElement("style");
215
- sheet.textContent = `#${id} path { ${strokeColor ? `stroke: ${strokeColor};` : ""} ${fillColor ? `fill: ${fillColor};` : ""} ${pathCss ?? ""} }`;
216
- document.head.appendChild(sheet);
217
- return () => sheet.remove();
218
- }, [id, strokeColor, fillColor, pathCss]);
219
- const eventProps = {
220
- onClick: (event) => {
221
- onClick?.(event);
222
- if (!player || event.defaultPrevented) return;
223
- if (interaction === "click-toggle") {
224
- atEnd.current = !atEnd.current;
225
- playToggle(player, atEnd.current);
226
- } else if (interaction === "click-replay") {
227
- replay(player);
228
- }
229
- },
230
- onMouseEnter: (event) => {
231
- onMouseEnter?.(event);
232
- if (!player || event.defaultPrevented) return;
233
- if (interaction === "hover" || interaction === "hover-loop") hoverStart(player, interaction);
234
- },
235
- onMouseLeave: (event) => {
236
- onMouseLeave?.(event);
237
- if (!player || event.defaultPrevented) return;
238
- if (interaction === "hover" || interaction === "hover-loop") hoverEnd(player, interaction);
239
- }
240
- };
241
- const animationProps = {
242
- ...other,
243
- ref: containerRef,
244
- style: {
245
- overflow: "hidden",
246
- outline: "none",
247
- width: `${size}px`,
248
- height: `${size}px`,
249
- ...wrapperStyle,
250
- ...style
251
- }
252
- };
253
- return render ? render(eventProps, animationProps) : /* @__PURE__ */ React.createElement("div", { ...eventProps, ...animationProps });
254
- };
255
- var src_default = UseAnimations;
256
- export {
257
- src_default as default
2
+ import { useEffect, useRef, useState, useSyncExternalStore } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/interactions.ts
5
+ const isHover = (interaction) => interaction === "hover" || interaction === "hover-loop" || interaction === "hover-replay";
6
+ const toggle = (animation, toEnd, reducedMotion) => {
7
+ if (reducedMotion) {
8
+ animation.goToAndStop(toEnd ? animation.totalFrames - 1 : 0);
9
+ return;
10
+ }
11
+ animation.setDirection(toEnd ? 1 : -1);
12
+ animation.play();
258
13
  };
14
+ const replay = (animation) => {
15
+ animation.setDirection(1);
16
+ animation.playSegments([0, animation.totalFrames]);
17
+ };
18
+ const hoverStart = (animation, interaction) => {
19
+ if (interaction === "hover-replay") {
20
+ if (animation.isPaused) replay(animation);
21
+ return;
22
+ }
23
+ animation.setDirection(1);
24
+ animation.play();
25
+ };
26
+ const hoverEnd = (animation, interaction) => {
27
+ if (interaction === "hover") {
28
+ animation.setDirection(-1);
29
+ animation.play();
30
+ } else if (interaction === "hover-loop") {
31
+ if (!animation.isPaused) return true;
32
+ animation.goToAndStop(0);
33
+ }
34
+ return false;
35
+ };
36
+ //#endregion
37
+ //#region src/player/matrix.ts
38
+ const identity = () => [
39
+ 1,
40
+ 0,
41
+ 0,
42
+ 1,
43
+ 0,
44
+ 0
45
+ ];
46
+ const isIdentity = (m) => m[0] === 1 && m[1] === 0 && m[2] === 0 && m[3] === 1 && m[4] === 0 && m[5] === 0;
47
+ const multiply = (m, n) => [
48
+ m[0] * n[0] + m[1] * n[2],
49
+ m[0] * n[1] + m[1] * n[3],
50
+ m[2] * n[0] + m[3] * n[2],
51
+ m[2] * n[1] + m[3] * n[3],
52
+ m[4] * n[0] + m[5] * n[2] + n[4],
53
+ m[4] * n[1] + m[5] * n[3] + n[5]
54
+ ];
55
+ const translate = (m, x, y) => x === 0 && y === 0 ? m : [
56
+ m[0],
57
+ m[1],
58
+ m[2],
59
+ m[3],
60
+ m[4] + x,
61
+ m[5] + y
62
+ ];
63
+ const scale = (m, x, y) => x === 1 && y === 1 ? m : multiply(m, [
64
+ x,
65
+ 0,
66
+ 0,
67
+ y,
68
+ 0,
69
+ 0
70
+ ]);
71
+ const rotate = (m, angle) => {
72
+ if (angle === 0) return m;
73
+ const cos = Math.cos(angle);
74
+ const sin = Math.sin(angle);
75
+ return multiply(m, [
76
+ cos,
77
+ sin,
78
+ -sin,
79
+ cos,
80
+ 0,
81
+ 0
82
+ ]);
83
+ };
84
+ const skewFromAxis = (m, skew, axis) => {
85
+ if (skew === 0) return m;
86
+ const cos = Math.cos(axis);
87
+ const sin = Math.sin(axis);
88
+ const rotated = multiply(m, [
89
+ cos,
90
+ sin,
91
+ -sin,
92
+ cos,
93
+ 0,
94
+ 0
95
+ ]);
96
+ return multiply(multiply(rotated, [
97
+ 1,
98
+ 0,
99
+ Math.tan(skew),
100
+ 1,
101
+ 0,
102
+ 0
103
+ ]), [
104
+ cos,
105
+ -sin,
106
+ sin,
107
+ cos,
108
+ 0,
109
+ 0
110
+ ]);
111
+ };
112
+ const invert = (m) => {
113
+ const det = m[0] * m[3] - m[1] * m[2];
114
+ return [
115
+ m[3] / det,
116
+ -m[1] / det,
117
+ -m[2] / det,
118
+ m[0] / det,
119
+ (m[2] * m[5] - m[3] * m[4]) / det,
120
+ -(m[0] * m[5] - m[1] * m[4]) / det
121
+ ];
122
+ };
123
+ const round = (value) => Math.round(value * 100) / 100;
124
+ const applyToPoint = (m, x, y) => isIdentity(m) ? `${x},${y}` : `${round(x * m[0] + y * m[2] + m[4])},${round(x * m[1] + y * m[3] + m[5])}`;
125
+ const round4 = (value) => Math.round(value * 1e4) / 1e4;
126
+ const toCss = (m) => `matrix(${m.map(round4).join(",")})`;
127
+ //#endregion
128
+ //#region src/player/bezier.ts
129
+ const CURVE_SEGMENTS = 150;
130
+ const NEWTON_ITERATIONS = 4;
131
+ const SAMPLES = 11;
132
+ const SAMPLE_STEP = 1 / 10;
133
+ const coefficients = (p1, p2) => [
134
+ 1 - 3 * p2 + 3 * p1,
135
+ 3 * p2 - 6 * p1,
136
+ 3 * p1
137
+ ];
138
+ const calc = (t, [a, b, c]) => ((a * t + b) * t + c) * t;
139
+ const slope = (t, [a, b, c]) => 3 * a * t * t + 2 * b * t + c;
140
+ const easings = /* @__PURE__ */ new Map();
141
+ const easing = (x1, y1, x2, y2) => {
142
+ const key = `${x1},${y1},${x2},${y2}`;
143
+ let fn = easings.get(key);
144
+ if (fn) return fn;
145
+ if (x1 === y1 && x2 === y2) fn = (x) => x;
146
+ else {
147
+ const cx = coefficients(x1, x2);
148
+ const cy = coefficients(y1, y2);
149
+ const samples = Array.from({ length: SAMPLES }, (_, i) => calc(i * SAMPLE_STEP, cx));
150
+ const tForX = (x) => {
151
+ let start = 0;
152
+ let i = 1;
153
+ for (; i !== 10 && samples[i] <= x; i += 1) start += SAMPLE_STEP;
154
+ i -= 1;
155
+ let t = start + (x - samples[i]) / (samples[i + 1] - samples[i]) * SAMPLE_STEP;
156
+ const initialSlope = slope(t, cx);
157
+ if (initialSlope >= .001) {
158
+ for (let n = 0; n < NEWTON_ITERATIONS; n += 1) {
159
+ const currentSlope = slope(t, cx);
160
+ if (currentSlope === 0) break;
161
+ t -= (calc(t, cx) - x) / currentSlope;
162
+ }
163
+ return t;
164
+ }
165
+ if (initialSlope === 0) return t;
166
+ let a = start;
167
+ let b = start + SAMPLE_STEP;
168
+ for (let n = 0; n < 10; n += 1) {
169
+ t = a + (b - a) / 2;
170
+ const value = calc(t, cx) - x;
171
+ if (Math.abs(value) <= 1e-7) break;
172
+ if (value > 0) b = t;
173
+ else a = t;
174
+ }
175
+ return t;
176
+ };
177
+ fn = (x) => x <= 0 ? 0 : x >= 1 ? 1 : calc(tForX(x), cy);
178
+ }
179
+ easings.set(key, fn);
180
+ return fn;
181
+ };
182
+ const segmentLength = (p1, p2, c1, c2) => {
183
+ const percents = [];
184
+ const lengths = [];
185
+ let total = 0;
186
+ let lastX = 0;
187
+ let lastY = 0;
188
+ for (let k = 0; k < CURVE_SEGMENTS; k += 1) {
189
+ const t = k / 149;
190
+ const u = 1 - t;
191
+ const x = u * u * u * p1[0] + 3 * u * u * t * c1[0] + 3 * u * t * t * c2[0] + t * t * t * p2[0];
192
+ const y = u * u * u * p1[1] + 3 * u * u * t * c1[1] + 3 * u * t * t * c2[1] + t * t * t * p2[1];
193
+ if (k > 0) total += Math.hypot(x - lastX, y - lastY);
194
+ lastX = x;
195
+ lastY = y;
196
+ percents[k] = t;
197
+ lengths[k] = total;
198
+ }
199
+ return {
200
+ percents,
201
+ lengths,
202
+ total
203
+ };
204
+ };
205
+ const distancePercent = (perc, { percents, lengths, total }) => {
206
+ const len = percents.length;
207
+ let pos = Math.floor((len - 1) * perc);
208
+ const target = perc * total;
209
+ if (pos === len - 1 || pos === 0 || target === lengths[pos]) return percents[pos];
210
+ const dir = lengths[pos] > target ? -1 : 1;
211
+ for (;;) {
212
+ if (lengths[pos] <= target && lengths[pos + 1] > target) {
213
+ const local = (target - lengths[pos]) / (lengths[pos + 1] - lengths[pos]);
214
+ return percents[pos] + (percents[pos + 1] - percents[pos]) * local;
215
+ }
216
+ pos += dir;
217
+ if (pos < 0 || pos >= len - 1) return percents[Math.max(0, Math.min(pos, len - 1))];
218
+ }
219
+ };
220
+ const round3 = (value) => Math.round(value * 1e3) / 1e3;
221
+ const splitSegment = (p1, p2, c1, c2, startPerc, endPerc, data) => {
222
+ const t0 = distancePercent(Math.min(Math.max(startPerc, 0), 1), data);
223
+ const t1 = distancePercent(Math.min(endPerc, 1), data);
224
+ const u0 = 1 - t0;
225
+ const u1 = 1 - t1;
226
+ const point = (i) => [
227
+ round3(u0 * u0 * u0 * p1[i] + 3 * t0 * u0 * u0 * c1[i] + 3 * t0 * t0 * u0 * c2[i] + t0 * t0 * t0 * p2[i]),
228
+ round3(u0 * u0 * u1 * p1[i] + (t0 * u0 * u1 + u0 * t0 * u1 + u0 * u0 * t1) * c1[i] + (t0 * t0 * u1 + u0 * t0 * t1 + t0 * u0 * t1) * c2[i] + t0 * t0 * t1 * p2[i]),
229
+ round3(u0 * u1 * u1 * p1[i] + (t0 * u1 * u1 + u0 * t1 * u1 + u0 * u1 * t1) * c1[i] + (t0 * t1 * u1 + u0 * t1 * t1 + t0 * u1 * t1) * c2[i] + t0 * t1 * t1 * p2[i]),
230
+ round3(u1 * u1 * u1 * p1[i] + 3 * t1 * u1 * u1 * c1[i] + 3 * t1 * t1 * u1 * c2[i] + t1 * t1 * t1 * p2[i])
231
+ ];
232
+ const x = point(0);
233
+ const y = point(1);
234
+ return x.map((value, i) => [value, y[i]]);
235
+ };
236
+ const onLine = (x1, y1, x2, y2, x3, y3) => {
237
+ const det = x1 * y2 + y1 * x3 + x2 * y3 - x3 * y2 - y3 * x1 - x2 * y1;
238
+ return det > -.001 && det < .001;
239
+ };
240
+ const spatialCache = /* @__PURE__ */ new Map();
241
+ const spatialBezier = (start, end, to, ti) => {
242
+ const key = [
243
+ ...start,
244
+ ...end,
245
+ ...to,
246
+ ...ti
247
+ ].join("_");
248
+ let data = spatialCache.get(key);
249
+ if (data) return data;
250
+ const segments = (start[0] !== end[0] || start[1] !== end[1]) && onLine(start[0], start[1], end[0], end[1], start[0] + to[0], start[1] + to[1]) && onLine(start[0], start[1], end[0], end[1], end[0] + ti[0], end[1] + ti[1]) ? 2 : CURVE_SEGMENTS;
251
+ const points = [];
252
+ let total = 0;
253
+ let last;
254
+ for (let k = 0; k < segments; k += 1) {
255
+ const t = k / (segments - 1);
256
+ const u = 1 - t;
257
+ const point = start.map((s, i) => u * u * u * s + 3 * u * u * t * (s + (to[i] ?? 0)) + 3 * u * t * t * (end[i] + (ti[i] ?? 0)) + t * t * t * end[i]);
258
+ const partial = last ? Math.hypot(...point.map((v, i) => v - last[i])) : 0;
259
+ total += partial;
260
+ points.push({
261
+ partial,
262
+ point
263
+ });
264
+ last = point;
265
+ }
266
+ data = {
267
+ total,
268
+ points
269
+ };
270
+ spatialCache.set(key, data);
271
+ return data;
272
+ };
273
+ const pointAlong = ({ total, points }, perc) => {
274
+ const distance = total * perc;
275
+ let added = 0;
276
+ for (let j = 0; j < points.length; j += 1) {
277
+ added += points[j].partial;
278
+ if (distance === 0 || perc === 0 || j === points.length - 1) return points[j].point;
279
+ const next = points[j + 1].partial;
280
+ if (distance >= added && distance < added + next) {
281
+ const local = (distance - added) / next;
282
+ return points[j].point.map((v, i) => v + (points[j + 1].point[i] - v) * local);
283
+ }
284
+ }
285
+ return points[points.length - 1].point;
286
+ };
287
+ //#endregion
288
+ //#region src/player/properties.ts
289
+ const constant = (value) => ({
290
+ animated: false,
291
+ at: () => value
292
+ });
293
+ const isKeyframed = (k) => Array.isArray(k) && typeof k[0] === "object" && k[0] !== null && "t" in k[0];
294
+ const component = (value, i) => Array.isArray(value) ? value[i] ?? value[0] : value;
295
+ const ease = (out, into, i = 0) => out && into ? easing(component(out.x, i), component(out.y, i), component(into.x, i), component(into.y, i)) : (x) => x;
296
+ const segment = (keyframes, frame) => {
297
+ const last = keyframes.length - 1;
298
+ for (let i = 0; i < last; i += 1) {
299
+ const next = keyframes[i + 1];
300
+ if (i === last - 1 && frame >= next.t) return {
301
+ key: keyframes[i].h ? next : keyframes[i],
302
+ next
303
+ };
304
+ if (next.t > frame) return {
305
+ key: keyframes[i],
306
+ next
307
+ };
308
+ }
309
+ return {
310
+ key: keyframes[last - 1],
311
+ next: keyframes[last]
312
+ };
313
+ };
314
+ const vectorAt = (keyframes, frame) => {
315
+ const { key, next } = segment(keyframes, frame);
316
+ const start = key.s;
317
+ const end = next.s ?? key.e ?? start;
318
+ if (key.to) {
319
+ const data = spatialBezier(start, end, key.to, key.ti ?? []);
320
+ if (frame >= next.t || frame < key.t) return data.points[frame >= next.t ? data.points.length - 1 : 0].point;
321
+ return pointAlong(data, ease(key.o, key.i)((frame - key.t) / (next.t - key.t)));
322
+ }
323
+ return start.map((s, i) => {
324
+ if (key.h === 1) return s;
325
+ const perc = frame >= next.t ? 1 : frame < key.t ? 0 : ease(key.o, key.i, i)((frame - key.t) / (next.t - key.t));
326
+ return s + (end[i] - s) * perc;
327
+ });
328
+ };
329
+ const toVector = (value, fallback) => value === void 0 ? fallback : typeof value === "number" ? [value] : value;
330
+ const random = (seed) => () => {
331
+ seed = seed + 1831565813 | 0;
332
+ let t = Math.imul(seed ^ seed >>> 15, 1 | seed);
333
+ t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
334
+ return ((t ^ t >>> 14) >>> 0) / 4294967296;
335
+ };
336
+ const expression = (source, frameRate) => {
337
+ if (/loopOut\(\s*(['"]cycle['"])?\s*\)/.test(source)) return (at, keyframes) => ({
338
+ animated: true,
339
+ at: (frame) => {
340
+ if (!keyframes) return at(frame);
341
+ const first = keyframes[0].t;
342
+ const last = keyframes[keyframes.length - 1].t;
343
+ return frame <= last ? at(frame) : at((frame - first) % (last - first) + first);
344
+ }
345
+ });
346
+ const wiggle = /wiggle\(\s*([\d.]+)\s*,\s*([\d.]+)\s*\)/.exec(source);
347
+ if (wiggle) {
348
+ const amp = Number(wiggle[2]);
349
+ return (at) => ({
350
+ animated: true,
351
+ at: (frame) => {
352
+ const base = at(frame);
353
+ const periods = Math.max(frame / frameRate, 0) * 5;
354
+ return base.map((value, i) => {
355
+ const next = random(i + 1);
356
+ let offset = 0;
357
+ for (let n = 0; n < Math.floor(periods); n += 1) offset += -amp + amp * 2 * next();
358
+ return value + offset + (-amp + amp * 2 * next()) * (periods - Math.floor(periods));
359
+ });
360
+ }
361
+ });
362
+ }
363
+ };
364
+ const vector = (data, fallback, ctx) => {
365
+ if (!data) return constant(fallback);
366
+ const keyframes = isKeyframed(data.k) ? data.k.map((key) => ({
367
+ ...key,
368
+ s: key.s === void 0 ? void 0 : toVector(key.s, fallback),
369
+ e: key.e === void 0 ? void 0 : toVector(key.e, fallback)
370
+ })) : void 0;
371
+ const at = keyframes && keyframes.length > 1 ? (frame) => vectorAt(keyframes, frame) : void 0;
372
+ const value = at ? void 0 : toVector(keyframes ? keyframes[0].s : data.k, fallback);
373
+ const base = at ? {
374
+ animated: true,
375
+ at
376
+ } : constant(value);
377
+ if (!data.x) return base;
378
+ const apply = expression(data.x, ctx.frameRate);
379
+ if (!apply) {
380
+ ctx.warn(`unsupported expression ignored: ${data.x}`);
381
+ return base;
382
+ }
383
+ return apply(base.at, keyframes);
384
+ };
385
+ const scalar = (data, fallback, ctx) => {
386
+ const v = vector(data, [fallback], ctx);
387
+ return v.animated ? {
388
+ animated: true,
389
+ at: (frame) => v.at(frame)[0]
390
+ } : constant(v.at(0)[0]);
391
+ };
392
+ const absolute = (path) => ({
393
+ c: path.c,
394
+ v: path.v,
395
+ i: path.i.map((p, j) => [p[0] + path.v[j][0], p[1] + path.v[j][1]]),
396
+ o: path.o.map((p, j) => [p[0] + path.v[j][0], p[1] + path.v[j][1]])
397
+ });
398
+ const firstPath = (value) => Array.isArray(value) ? value[0] : value;
399
+ const path = (data) => {
400
+ if (!isKeyframed(data.k)) return constant(absolute(firstPath(data.k)));
401
+ const keyframes = data.k.map((key) => ({
402
+ ...key,
403
+ s: key.s && absolute(firstPath(key.s)),
404
+ e: key.e && absolute(firstPath(key.e))
405
+ }));
406
+ const last = keyframes[keyframes.length - 1];
407
+ return {
408
+ animated: true,
409
+ at: (frame) => {
410
+ if (frame < keyframes[0].t) return keyframes[0].s;
411
+ if (frame >= last.t) return last.s ?? keyframes[keyframes.length - 2].e;
412
+ let i = 0;
413
+ while (i < keyframes.length - 2 && keyframes[i + 1].t <= frame) i += 1;
414
+ const key = keyframes[i];
415
+ const next = keyframes[i + 1];
416
+ const start = key.s;
417
+ if (key.h === 1) return start;
418
+ const end = next.s ?? key.e;
419
+ const perc = ease(key.o, key.i)((frame - key.t) / (next.t - key.t));
420
+ const lerp = (a, b) => a.map((p, j) => [p[0] + (b[j][0] - p[0]) * perc, p[1] + (b[j][1] - p[1]) * perc]);
421
+ return {
422
+ c: start.c,
423
+ v: lerp(start.v, end.v),
424
+ i: lerp(start.i, end.i),
425
+ o: lerp(start.o, end.o)
426
+ };
427
+ }
428
+ };
429
+ };
430
+ //#endregion
431
+ //#region src/player/shapes.ts
432
+ const pathString = (path, m) => {
433
+ const { v, i, o } = path;
434
+ if (!v.length) return "";
435
+ let d = ` M${applyToPoint(m, v[0][0], v[0][1])}`;
436
+ for (let j = 1; j < v.length; j += 1) d += ` C${applyToPoint(m, o[j - 1][0], o[j - 1][1])} ${applyToPoint(m, i[j][0], i[j][1])} ${applyToPoint(m, v[j][0], v[j][1])}`;
437
+ if (path.c) {
438
+ const last = v.length - 1;
439
+ d += ` C${applyToPoint(m, o[last][0], o[last][1])} ${applyToPoint(m, i[0][0], i[0][1])} ${applyToPoint(m, v[0][0], v[0][1])}z`;
440
+ }
441
+ return d;
442
+ };
443
+ const measured = /* @__PURE__ */ new WeakMap();
444
+ const lengthsOf = (path) => {
445
+ const cached = measured.get(path);
446
+ if (cached) return cached;
447
+ const { v, i, o } = path;
448
+ const segments = [];
449
+ let total = 0;
450
+ for (let j = 0; j < v.length - 1; j += 1) {
451
+ segments.push(segmentLength(v[j], v[j + 1], o[j], i[j + 1]));
452
+ total += segments[j].total;
453
+ }
454
+ if (path.c && v.length) {
455
+ const last = v.length - 1;
456
+ segments.push(segmentLength(v[last], v[0], o[last], i[0]));
457
+ total += segments[last].total;
458
+ }
459
+ const lengths = {
460
+ segments,
461
+ total
462
+ };
463
+ measured.set(path, lengths);
464
+ return lengths;
465
+ };
466
+ const emptyPath = () => ({
467
+ c: false,
468
+ v: [],
469
+ i: [],
470
+ o: []
471
+ });
472
+ const addSegment = (target, pos, points, newShape) => {
473
+ target.o[pos] = points[1];
474
+ target.i[pos + 1] = points[2];
475
+ if (newShape) target.v[pos] = points[0];
476
+ target.v[pos + 1] = points[3];
477
+ };
478
+ const addShapes = (paths, lengths, range, continued) => {
479
+ let target = continued ?? emptyPath();
480
+ let count = target.v.length;
481
+ let initPos = count;
482
+ const shapes = [target];
483
+ let added = 0;
484
+ let newShape = true;
485
+ for (let p = 0; p < paths.length; p += 1) {
486
+ const { v, i, o, c } = paths[p];
487
+ const segments = lengths[p].segments;
488
+ target.c = c;
489
+ const end = c ? segments.length : segments.length + 1;
490
+ let j = 1;
491
+ for (; j < end; j += 1) {
492
+ const data = segments[j - 1];
493
+ if (added + data.total < range.s) {
494
+ added += data.total;
495
+ target.c = false;
496
+ } else if (added > range.e) {
497
+ target.c = false;
498
+ break;
499
+ } else {
500
+ if (range.s <= added && range.e >= added + data.total) addSegment(target, count, [
501
+ v[j - 1],
502
+ o[j - 1],
503
+ i[j],
504
+ v[j]
505
+ ], newShape);
506
+ else {
507
+ const part = splitSegment(v[j - 1], v[j], o[j - 1], i[j], (range.s - added) / data.total, (range.e - added) / data.total, data);
508
+ addSegment(target, count, part, newShape);
509
+ target.c = false;
510
+ }
511
+ newShape = false;
512
+ added += data.total;
513
+ count += 1;
514
+ }
515
+ }
516
+ if (c && segments.length) {
517
+ const data = segments[j - 1];
518
+ if (added <= range.e) {
519
+ if (range.s <= added && range.e >= added + data.total) addSegment(target, count, [
520
+ v[j - 1],
521
+ o[j - 1],
522
+ i[0],
523
+ v[0]
524
+ ], newShape);
525
+ else {
526
+ const part = splitSegment(v[j - 1], v[0], o[j - 1], i[0], (range.s - added) / data.total, (range.e - added) / data.total, data);
527
+ addSegment(target, count, part, newShape);
528
+ target.c = false;
529
+ }
530
+ newShape = false;
531
+ } else target.c = false;
532
+ added += data.total;
533
+ count += 1;
534
+ }
535
+ if (target.v.length > initPos) {
536
+ target.i[initPos] = [...target.v[initPos]];
537
+ target.o[target.v.length - 1] = [...target.v[target.v.length - 1]];
538
+ }
539
+ if (added > range.e) break;
540
+ if (p < paths.length - 1) {
541
+ target = emptyPath();
542
+ newShape = true;
543
+ shapes.push(target);
544
+ count = 0;
545
+ initPos = 0;
546
+ }
547
+ }
548
+ return shapes;
549
+ };
550
+ /** Trims paths to [start, end] (fractions of their length) shifted by `offset` degrees. */
551
+ const trim = (paths, start, end, offset) => {
552
+ let o = offset % 360 / 360;
553
+ if (o < 0) o += 1;
554
+ let s = (start > 1 ? 1 : start < 0 ? 0 : start) + o;
555
+ let e = (end > 1 ? 1 : end < 0 ? 0 : end) + o;
556
+ if (s > e) [s, e] = [e, s];
557
+ s = Math.round(s * 1e4) * 1e-4;
558
+ e = Math.round(e * 1e4) * 1e-4;
559
+ if (s === e) return [];
560
+ if (e === 1 && s === 0 || e === 0 && s === 1) return paths;
561
+ const lengths = paths.map(lengthsOf);
562
+ const total = lengths.reduce((sum, l) => sum + l.total, 0);
563
+ const ranges = e <= 1 ? [{
564
+ s: total * s,
565
+ e: total * e
566
+ }] : s >= 1 ? [{
567
+ s: total * (s - 1),
568
+ e: total * (e - 1)
569
+ }] : [{
570
+ s: total * s,
571
+ e: total
572
+ }, {
573
+ s: 0,
574
+ e: total * (e - 1)
575
+ }];
576
+ if (ranges[0].s === ranges[0].e) return [];
577
+ const result = [];
578
+ let shapes = addShapes(paths, lengths, ranges[0]);
579
+ if (ranges.length > 1) {
580
+ const continued = paths[paths.length - 1].c ? shapes.pop() : void 0;
581
+ result.push(...shapes);
582
+ shapes = addShapes(paths, lengths, ranges[1], continued);
583
+ }
584
+ result.push(...shapes);
585
+ return result;
586
+ };
587
+ const ROUND = .5519;
588
+ const ellipse = ([px, py], [sx, sy], reversed) => {
589
+ const w = sx / 2;
590
+ const h = sy / 2;
591
+ const cw = reversed ? -1 : 1;
592
+ return {
593
+ c: true,
594
+ v: [
595
+ [px, py - h],
596
+ [px + w * cw, py],
597
+ [px, py + h],
598
+ [px - w * cw, py]
599
+ ],
600
+ i: [
601
+ [px - w * ROUND * cw, py - h],
602
+ [px + w * cw, py - h * ROUND],
603
+ [px + w * ROUND * cw, py + h],
604
+ [px - w * cw, py + h * ROUND]
605
+ ],
606
+ o: [
607
+ [px + w * ROUND * cw, py - h],
608
+ [px + w * cw, py + h * ROUND],
609
+ [px - w * ROUND * cw, py + h],
610
+ [px - w * cw, py - h * ROUND]
611
+ ]
612
+ };
613
+ };
614
+ const rectangle = ([px, py], [sx, sy], roundness, reversed) => {
615
+ const w = sx / 2;
616
+ const h = sy / 2;
617
+ const r = Math.min(w, h, roundness);
618
+ const k = r * .44810000000000005;
619
+ const points = r ? [
620
+ [
621
+ [px + w, py - h + r],
622
+ [px + w, py - h + r],
623
+ [px + w, py - h + k]
624
+ ],
625
+ [
626
+ [px + w, py + h - r],
627
+ [px + w, py + h - k],
628
+ [px + w, py + h - r]
629
+ ],
630
+ [
631
+ [px + w - r, py + h],
632
+ [px + w - r, py + h],
633
+ [px + w - k, py + h]
634
+ ],
635
+ [
636
+ [px - w + r, py + h],
637
+ [px - w + k, py + h],
638
+ [px - w + r, py + h]
639
+ ],
640
+ [
641
+ [px - w, py + h - r],
642
+ [px - w, py + h - r],
643
+ [px - w, py + h - k]
644
+ ],
645
+ [
646
+ [px - w, py - h + r],
647
+ [px - w, py - h + k],
648
+ [px - w, py - h + r]
649
+ ],
650
+ [
651
+ [px - w + r, py - h],
652
+ [px - w + r, py - h],
653
+ [px - w + k, py - h]
654
+ ],
655
+ [
656
+ [px + w - r, py - h],
657
+ [px + w - k, py - h],
658
+ [px + w - r, py - h]
659
+ ]
660
+ ] : [
661
+ [
662
+ [px + w, py - h],
663
+ [px + w, py - h],
664
+ [px + w, py - h]
665
+ ],
666
+ [
667
+ [px + w, py + h],
668
+ [px + w, py + h],
669
+ [px + w, py + h]
670
+ ],
671
+ [
672
+ [px - w, py + h],
673
+ [px - w, py + h],
674
+ [px - w, py + h]
675
+ ],
676
+ [
677
+ [px - w, py - h],
678
+ [px - w, py - h],
679
+ [px - w, py - h]
680
+ ]
681
+ ];
682
+ if (reversed) {
683
+ points.reverse();
684
+ for (const point of points) [point[1], point[2]] = [point[2], point[1]];
685
+ }
686
+ return {
687
+ c: true,
688
+ v: points.map((point) => point[0]),
689
+ o: points.map((point) => point[1]),
690
+ i: points.map((point) => point[2])
691
+ };
692
+ };
693
+ //#endregion
694
+ //#region src/player/render.ts
695
+ const SVG = "http://www.w3.org/2000/svg";
696
+ let prefix;
697
+ let uid = 0;
698
+ const newId = () => {
699
+ prefix ?? (prefix = `__ua${Math.random().toString(36).slice(2, 8)}_`);
700
+ return `${prefix}${uid += 1}`;
701
+ };
702
+ const create = (name, attrs = {}) => {
703
+ const element = document.createElementNS(SVG, name);
704
+ for (const [key, value] of Object.entries(attrs)) element.setAttribute(key, value);
705
+ return element;
706
+ };
707
+ const written = /* @__PURE__ */ new WeakMap();
708
+ const attr = (element, name, value) => {
709
+ let values = written.get(element);
710
+ if (!values) written.set(element, values = {});
711
+ if (values[name] === value) return;
712
+ values[name] = value;
713
+ element.setAttribute(name, value);
714
+ };
715
+ const DEG = Math.PI / 180;
716
+ const transform = (data, ctx) => {
717
+ const anchor = vector(data.a, [
718
+ 0,
719
+ 0,
720
+ 0
721
+ ], ctx);
722
+ const separated = data.p?.s;
723
+ const position = separated ? void 0 : vector(data.p, [
724
+ 0,
725
+ 0,
726
+ 0
727
+ ], ctx);
728
+ const x = separated ? scalar(data.p?.x, 0, ctx) : void 0;
729
+ const y = separated ? scalar(data.p?.y, 0, ctx) : void 0;
730
+ const size = vector(data.s, [
731
+ 100,
732
+ 100,
733
+ 100
734
+ ], ctx);
735
+ const rotation = scalar(data.r, 0, ctx);
736
+ const skew = data.sk ? scalar(data.sk, 0, ctx) : void 0;
737
+ const skewAxis = scalar(data.sa, 0, ctx);
738
+ const opacity = scalar(data.o, 100, ctx);
739
+ return {
740
+ matrix: (frame) => {
741
+ const [ax, ay] = anchor.at(frame);
742
+ const [sx, sy] = size.at(frame);
743
+ let m = scale(translate(identity(), -ax, -ay), sx / 100, sy / 100);
744
+ if (skew) m = skewFromAxis(m, -skew.at(frame) * DEG, skewAxis.at(frame) * DEG);
745
+ m = rotate(m, rotation.at(frame) * DEG);
746
+ const [px, py] = position ? position.at(frame) : [x.at(frame), y.at(frame)];
747
+ return translate(m, px, py);
748
+ },
749
+ opacity: (frame) => opacity.at(frame) / 100
750
+ };
751
+ };
752
+ const LINE_CAPS = [
753
+ "",
754
+ "butt",
755
+ "round",
756
+ "square"
757
+ ];
758
+ const LINE_JOINS = [
759
+ "",
760
+ "miter",
761
+ "round",
762
+ "bevel"
763
+ ];
764
+ const rgb = ([r, g, b]) => `rgb(${Math.floor(r * 255)},${Math.floor(g * 255)},${Math.floor(b * 255)})`;
765
+ const createStyle = (item, level, ctx) => {
766
+ const element = create("path");
767
+ const color = vector(item.c, [
768
+ 0,
769
+ 0,
770
+ 0,
771
+ 1
772
+ ], ctx);
773
+ const opacity = scalar(item.o, 100, ctx);
774
+ const stroke = item.ty === "st";
775
+ const width = stroke ? scalar(item.w, 0, ctx) : void 0;
776
+ if (stroke) {
777
+ attr(element, "stroke-linecap", LINE_CAPS[item.lc ?? 2]);
778
+ attr(element, "stroke-linejoin", LINE_JOINS[item.lj ?? 2]);
779
+ attr(element, "fill-opacity", "0");
780
+ if (item.lj === 1) attr(element, "stroke-miterlimit", String(item.ml ?? 4));
781
+ } else if (item.r === 2) attr(element, "fill-rule", "evenodd");
782
+ const kind = stroke ? "stroke" : "fill";
783
+ return {
784
+ element,
785
+ level,
786
+ closed: false,
787
+ d: "",
788
+ render: (frame) => {
789
+ attr(element, kind, rgb(color.at(frame)));
790
+ attr(element, `${kind}-opacity`, String(opacity.at(frame) / 100));
791
+ if (width) attr(element, "stroke-width", String(width.at(frame)));
792
+ }
793
+ };
794
+ };
795
+ const geometry = (item, ctx) => {
796
+ if (item.ty === "sh" && item.ks) return path(item.ks);
797
+ const position = vector(item.p, [0, 0], ctx);
798
+ const size = vector(item.s, [0, 0], ctx);
799
+ const reversed = item.d === 3;
800
+ if (item.ty === "el") return {
801
+ animated: position.animated || size.animated,
802
+ at: (frame) => ellipse(position.at(frame), size.at(frame), reversed)
803
+ };
804
+ if (item.ty === "rc") {
805
+ const roundness = scalar(item.r, 0, ctx);
806
+ return {
807
+ animated: position.animated || size.animated || roundness.animated,
808
+ at: (frame) => rectangle(position.at(frame), size.at(frame), roundness.at(frame), reversed)
809
+ };
810
+ }
811
+ };
812
+ const buildShapes = (items, root, ctx) => {
813
+ const styles = [];
814
+ const groups = [];
815
+ const shapes = [];
816
+ const trims = [];
817
+ const search = (list, container, level, parents) => {
818
+ const own = [...parents];
819
+ const ownStyles = [];
820
+ const ownTrims = [];
821
+ for (let i = list.length - 1; i >= 0; i -= 1) {
822
+ const item = list[i];
823
+ if (item.hd) continue;
824
+ if (item.ty === "st" || item.ty === "fl") {
825
+ const style = createStyle(item, level, ctx);
826
+ container.appendChild(style.element);
827
+ styles.push(style);
828
+ ownStyles.push(style);
829
+ } else if (item.ty === "gr") {
830
+ const element = create("g");
831
+ search(item.it ?? [], element, level + 1, own);
832
+ container.appendChild(element);
833
+ } else if (item.ty === "tr") {
834
+ const group = {
835
+ element: container,
836
+ transform: transform(item, ctx),
837
+ matrix: identity()
838
+ };
839
+ groups.push(group);
840
+ own.push(group);
841
+ } else if (item.ty === "tm") {
842
+ if (item.m === 2) ctx.warn("trim paths \"individually\" is drawn as \"simultaneously\"");
843
+ const t = {
844
+ start: scalar(item.s, 0, ctx),
845
+ end: scalar(item.e, 100, ctx),
846
+ offset: scalar(item.o, 0, ctx),
847
+ closed: false
848
+ };
849
+ trims.push(t);
850
+ ownTrims.push(t);
851
+ } else if (item.ty === "mm") {} else {
852
+ const shape = geometry(item, ctx);
853
+ if (!shape) {
854
+ ctx.warn(`unsupported shape "${item.ty}" ignored`);
855
+ continue;
856
+ }
857
+ shapes.push({
858
+ geometry: shape,
859
+ level,
860
+ groups: [...own],
861
+ styles: styles.filter((style) => !style.closed),
862
+ trims: trims.filter((t) => !t.closed)
863
+ });
864
+ }
865
+ }
866
+ for (const style of ownStyles) style.closed = true;
867
+ for (const t of ownTrims) t.closed = true;
868
+ };
869
+ search(items, root, 0, []);
870
+ return (frame) => {
871
+ for (const group of groups) {
872
+ group.matrix = group.transform.matrix(frame);
873
+ attr(group.element, "transform", toCss(group.matrix));
874
+ attr(group.element, "opacity", String(group.transform.opacity(frame)));
875
+ }
876
+ for (const style of styles) style.d = "";
877
+ for (const shape of shapes) {
878
+ let paths = [shape.geometry.at(frame)];
879
+ for (let k = shape.trims.length - 1; k >= 0; k -= 1) {
880
+ const t = shape.trims[k];
881
+ paths = trim(paths, t.start.at(frame) / 100, t.end.at(frame) / 100, t.offset.at(frame));
882
+ }
883
+ for (const style of shape.styles) {
884
+ let m = identity();
885
+ for (let k = shape.groups.length - 1, n = shape.level - style.level; n > 0; k -= 1, n -= 1) m = multiply(m, shape.groups[k].matrix);
886
+ for (const p of paths) style.d += pathString(p, m);
887
+ }
888
+ }
889
+ for (const style of styles) {
890
+ attr(style.element, "d", style.d || "M0 0");
891
+ style.render(frame);
892
+ }
893
+ };
894
+ };
895
+ const buildMasks = (masks, target, ctx) => {
896
+ let type = "clipPath";
897
+ let current = [];
898
+ const views = [];
899
+ const solid = `M0,0 h${ctx.width} v${ctx.height} h-${ctx.width} v-${ctx.height} `;
900
+ for (const mask of masks) {
901
+ const opacity = scalar(mask.o, 100, ctx);
902
+ if (mask.mode !== "a" && mask.mode !== "n" || mask.inv || opacity.animated || opacity.at(0) !== 100) type = "mask";
903
+ if (mask.mode === "n") continue;
904
+ let rect;
905
+ if ((mask.mode === "s" || mask.mode === "i") && !views.length) {
906
+ rect = create("rect", {
907
+ fill: "#ffffff",
908
+ width: String(ctx.width),
909
+ height: String(ctx.height)
910
+ });
911
+ current.push(rect);
912
+ }
913
+ const element = create("path", {
914
+ fill: mask.mode === "s" ? "#000000" : "#ffffff",
915
+ "clip-rule": "nonzero"
916
+ });
917
+ if (mask.mode === "i") {
918
+ const group = create("g");
919
+ for (const child of current) group.appendChild(child);
920
+ const id = newId();
921
+ const intersect = create("mask", {
922
+ id,
923
+ "mask-type": "alpha"
924
+ });
925
+ intersect.appendChild(element);
926
+ ctx.defs.appendChild(intersect);
927
+ group.setAttribute("mask", `url(#${id})`);
928
+ current = [group];
929
+ } else current.push(element);
930
+ views.push({
931
+ element,
932
+ shape: path(mask.pt),
933
+ opacity,
934
+ inverted: Boolean(mask.inv),
935
+ rect
936
+ });
937
+ }
938
+ if (!views.length) return void 0;
939
+ const id = newId();
940
+ const container = create(type, { id });
941
+ for (const child of current) container.appendChild(child);
942
+ ctx.defs.appendChild(container);
943
+ target.setAttribute(type === "clipPath" ? "clip-path" : "mask", `url(#${id})`);
944
+ return (frame, layerMatrix) => {
945
+ for (const view of views) {
946
+ const shape = view.shape.at(frame);
947
+ const d = pathString(shape, identity()).replace(/z$/, "");
948
+ attr(view.element, "d", shape.c ? view.inverted ? solid + d : d : "");
949
+ attr(view.element, "fill-opacity", String(view.opacity.at(frame) / 100));
950
+ if (view.rect) attr(view.rect, "transform", toCss(invert(layerMatrix)));
951
+ }
952
+ };
953
+ };
954
+ const buildComposition = (layers, container, ctx) => {
955
+ const nodes = layers.map((data) => {
956
+ const node = {
957
+ data,
958
+ transform: transform(data.ks, ctx),
959
+ matrix: identity()
960
+ };
961
+ if (data.ty === 3) return node;
962
+ const element = create("g");
963
+ let inner = element;
964
+ if (data.ty === 0 && data.w && data.h) {
965
+ const id = newId();
966
+ const clip = create("clipPath", { id });
967
+ clip.appendChild(create("path", { d: `M0,0 L${data.w},0 L${data.w},${data.h} L0,${data.h}z` }));
968
+ ctx.defs.appendChild(clip);
969
+ element.setAttribute("clip-path", `url(#${id})`);
970
+ if (data.masksProperties?.length) {
971
+ inner = create("g");
972
+ element.appendChild(inner);
973
+ }
974
+ }
975
+ let content;
976
+ if (data.ty === 4) content = buildShapes(data.shapes ?? [], inner, ctx);
977
+ else if (data.ty === 0 && data.refId && ctx.assets.has(data.refId)) {
978
+ const render = buildComposition(ctx.assets.get(data.refId), inner, ctx);
979
+ const remap = data.tm ? scalar(data.tm, 0, ctx) : void 0;
980
+ content = (frame) => {
981
+ let local = remap ? remap.at(frame) * ctx.frameRate : (frame - (data.st ?? 0)) / (data.sr ?? 1);
982
+ if (remap && local === data.op) local = data.op - 1;
983
+ render(local);
984
+ };
985
+ } else ctx.warn(`unsupported layer type ${data.ty} ignored`);
986
+ const masks = data.masksProperties?.length ? buildMasks(data.masksProperties, inner, ctx) : void 0;
987
+ return {
988
+ ...node,
989
+ element,
990
+ content,
991
+ masks
992
+ };
993
+ });
994
+ const byIndex = new Map(nodes.map((node) => [node.data.ind, node]));
995
+ for (let i = nodes.length - 1; i >= 0; i -= 1) {
996
+ const element = nodes[i].element;
997
+ if (element) container.appendChild(element);
998
+ }
999
+ return (frame) => {
1000
+ for (const node of nodes) node.matrix = node.transform.matrix(frame);
1001
+ for (const node of nodes) {
1002
+ const { data, element } = node;
1003
+ if (!element) continue;
1004
+ const visible = !data.hd && data.ip <= frame && frame < data.op;
1005
+ attr(element, "display", visible ? "inline" : "none");
1006
+ if (!visible) continue;
1007
+ let m = node.matrix;
1008
+ for (let parent = byIndex.get(data.parent); parent; parent = byIndex.get(parent.data.parent)) m = multiply(m, parent.matrix);
1009
+ attr(element, "transform", toCss(m));
1010
+ attr(element, "opacity", String(node.transform.opacity(frame)));
1011
+ node.masks?.(frame, m);
1012
+ node.content?.(frame);
1013
+ }
1014
+ };
1015
+ };
1016
+ const createRenderer = (data, ctx) => {
1017
+ const svg = create("svg", {
1018
+ viewBox: `0 0 ${data.w} ${data.h}`,
1019
+ width: "100%",
1020
+ height: "100%",
1021
+ preserveAspectRatio: "xMidYMid meet"
1022
+ });
1023
+ svg.style.display = "block";
1024
+ const defs = create("defs");
1025
+ const clipId = newId();
1026
+ const clip = create("clipPath", { id: clipId });
1027
+ clip.appendChild(create("rect", {
1028
+ width: String(data.w),
1029
+ height: String(data.h),
1030
+ x: "0",
1031
+ y: "0"
1032
+ }));
1033
+ defs.appendChild(clip);
1034
+ const root = create("g", { "clip-path": `url(#${clipId})` });
1035
+ svg.append(defs, root);
1036
+ const assets = new Map((data.assets ?? []).filter((asset) => asset.layers).map((asset) => [asset.id, asset.layers]));
1037
+ return {
1038
+ svg,
1039
+ render: buildComposition(data.layers, root, {
1040
+ ...ctx,
1041
+ defs,
1042
+ width: data.w,
1043
+ height: data.h,
1044
+ assets
1045
+ })
1046
+ };
1047
+ };
1048
+ //#endregion
1049
+ //#region src/player/index.ts
1050
+ const playing = /* @__PURE__ */ new Set();
1051
+ let frameRequest = 0;
1052
+ let lastTime;
1053
+ const schedule = () => {
1054
+ if (frameRequest || !playing.size || typeof requestAnimationFrame !== "function") return;
1055
+ frameRequest = requestAnimationFrame(tick);
1056
+ };
1057
+ const tick = (now) => {
1058
+ frameRequest = 0;
1059
+ const elapsed = lastTime === void 0 ? 0 : Math.max(0, now - lastTime);
1060
+ lastTime = now;
1061
+ for (const player of Array.from(playing)) try {
1062
+ player.advance(elapsed);
1063
+ } catch (error) {
1064
+ player.fail(error);
1065
+ }
1066
+ if (playing.size) schedule();
1067
+ else lastTime = void 0;
1068
+ };
1069
+ const warned = /* @__PURE__ */ new WeakMap();
1070
+ const warner = (data) => (message) => {
1071
+ let messages = warned.get(data);
1072
+ if (!messages) warned.set(data, messages = /* @__PURE__ */ new Set());
1073
+ if (messages.has(message)) return;
1074
+ messages.add(message);
1075
+ console.warn(`react-useanimations: ${message}`);
1076
+ };
1077
+ var Player = class {
1078
+ constructor({ container, animationData, loop = false, autoplay = false }) {
1079
+ this.isPaused = true;
1080
+ this.frame = 0;
1081
+ this.direction = 1;
1082
+ this.speed = 1;
1083
+ this.playCount = 0;
1084
+ this.completedLoop = false;
1085
+ this.failed = false;
1086
+ this.listeners = {};
1087
+ const data = animationData;
1088
+ if (!data || !Array.isArray(data.layers)) throw new Error("react-useanimations: `animationData` is not a Lottie animation.");
1089
+ this.renderer = createRenderer(data, {
1090
+ frameRate: data.fr,
1091
+ warn: warner(data)
1092
+ });
1093
+ container.appendChild(this.renderer.svg);
1094
+ this.frameRate = data.fr;
1095
+ this.firstFrame = data.ip;
1096
+ this.totalFrames = data.op - data.ip;
1097
+ this.loop = loop;
1098
+ this.setFrame(0);
1099
+ if (autoplay) this.play();
1100
+ }
1101
+ play() {
1102
+ if (!this.isPaused || this.failed) return;
1103
+ this.isPaused = false;
1104
+ playing.add(this);
1105
+ schedule();
1106
+ }
1107
+ pause() {
1108
+ this.isPaused = true;
1109
+ playing.delete(this);
1110
+ }
1111
+ /** Shows a frame of the current segment and pauses. */
1112
+ goToAndStop(frame) {
1113
+ this.setFrame(frame);
1114
+ this.pause();
1115
+ }
1116
+ setDirection(direction) {
1117
+ this.direction = direction < 0 ? -1 : 1;
1118
+ }
1119
+ setSpeed(speed) {
1120
+ this.speed = speed;
1121
+ }
1122
+ /** Plays absolute frames `from` to `to`, backwards when `to` is smaller. */
1123
+ playSegments([from, to]) {
1124
+ this.playCount = 0;
1125
+ if (to < from) {
1126
+ this.direction = -1;
1127
+ this.firstFrame = to;
1128
+ this.totalFrames = from - to;
1129
+ this.setFrame(this.totalFrames - .001);
1130
+ } else {
1131
+ this.direction = 1;
1132
+ this.firstFrame = from;
1133
+ this.totalFrames = to - from;
1134
+ this.setFrame(.001);
1135
+ }
1136
+ this.play();
1137
+ }
1138
+ addEventListener(name, callback) {
1139
+ var _this$listeners;
1140
+ ((_this$listeners = this.listeners)[name] ?? (_this$listeners[name] = /* @__PURE__ */ new Set())).add(callback);
1141
+ return () => {
1142
+ this.listeners[name].delete(callback);
1143
+ };
1144
+ }
1145
+ destroy() {
1146
+ this.pause();
1147
+ this.renderer.svg.remove();
1148
+ for (const name of Object.keys(this.listeners)) this.listeners[name].clear();
1149
+ }
1150
+ /** Stops this animation for good after an error, and reports the error once. */
1151
+ fail(error) {
1152
+ this.pause();
1153
+ if (this.failed) return;
1154
+ this.failed = true;
1155
+ console.error("react-useanimations: an animation stopped after an error.", error);
1156
+ }
1157
+ /** Moves the animation forward by `elapsed` milliseconds, like lottie-web's advanceTime. */
1158
+ advance(elapsed) {
1159
+ if (this.isPaused || elapsed <= 0) return;
1160
+ const modifier = this.frameRate / 1e3 * this.speed * this.direction;
1161
+ let next = this.frame + elapsed * modifier;
1162
+ if (next >= this.totalFrames - 1 && modifier > 0) {
1163
+ if (this.loop && this.playCount !== this.loop) {
1164
+ if (next >= this.totalFrames) {
1165
+ this.playCount += 1;
1166
+ this.setFrame(next % this.totalFrames);
1167
+ this.completedLoop = true;
1168
+ this.trigger("loopComplete");
1169
+ } else this.setFrame(next);
1170
+ return;
1171
+ }
1172
+ next = this.totalFrames - 1;
1173
+ } else if (next < 0) {
1174
+ if (this.loop && !(this.playCount-- <= 0 && this.loop !== true)) {
1175
+ this.setFrame(this.totalFrames + next % this.totalFrames);
1176
+ if (this.completedLoop) this.trigger("loopComplete");
1177
+ else this.completedLoop = true;
1178
+ return;
1179
+ }
1180
+ next = 0;
1181
+ } else {
1182
+ this.setFrame(next);
1183
+ return;
1184
+ }
1185
+ this.setFrame(next);
1186
+ this.pause();
1187
+ this.trigger("complete");
1188
+ }
1189
+ setFrame(frame) {
1190
+ this.frame = frame;
1191
+ if (this.failed) return;
1192
+ try {
1193
+ this.renderer.render(this.firstFrame + frame);
1194
+ } catch (error) {
1195
+ this.fail(error);
1196
+ }
1197
+ }
1198
+ trigger(name) {
1199
+ for (const callback of Array.from(this.listeners[name] ?? [])) callback();
1200
+ }
1201
+ };
1202
+ const loadAnimation = (options) => new Player(options);
1203
+ //#endregion
1204
+ //#region src/styles.ts
1205
+ const STYLE_ID = "useanimations-styles";
1206
+ const css = ":where([data-useanimations] path[stroke^=\"rgb\"]:not([stroke=\"rgb(255,255,255)\"])){stroke:var(--ua-stroke,currentColor)}:where([data-useanimations] path[fill=\"rgb(0,0,0)\"]){fill:var(--ua-fill,var(--ua-stroke,currentColor))}:where([data-useanimations] path[stroke=\"rgb(255,255,255)\"]){stroke:var(--ua-knockout,Canvas)}:where([data-useanimations] path[fill=\"rgb(255,255,255)\"]){fill:var(--ua-knockout,Canvas)}";
1207
+ /** Adds the stylesheet once per document, or once per shadow root for icons inside one. */
1208
+ const injectStyles = (element) => {
1209
+ const doc = element.ownerDocument;
1210
+ const root = element.getRootNode();
1211
+ const shadow = root.nodeType === 11 && "host" in root ? root : null;
1212
+ if ((shadow ?? doc).getElementById(STYLE_ID)) return;
1213
+ const style = doc.createElement("style");
1214
+ style.id = STYLE_ID;
1215
+ style.textContent = css;
1216
+ (shadow ?? doc.head).appendChild(style);
1217
+ };
1218
+ const QUERY = "(prefers-reduced-motion: reduce)";
1219
+ const hasMatchMedia = () => typeof window !== "undefined" && typeof window.matchMedia === "function";
1220
+ const subscribe = (onChange) => {
1221
+ if (!hasMatchMedia()) return () => {};
1222
+ const media = window.matchMedia(QUERY);
1223
+ media.addEventListener("change", onChange);
1224
+ return () => media.removeEventListener("change", onChange);
1225
+ };
1226
+ const usePrefersReducedMotion = () => useSyncExternalStore(subscribe, () => hasMatchMedia() && window.matchMedia(QUERY).matches, () => false);
1227
+ //#endregion
1228
+ //#region src/index.tsx
1229
+ const REMOVED = {
1230
+ pathCss: "style the paths with CSS instead, e.g. `className=\"icon\"` and `.icon path { stroke-width: 3px }`",
1231
+ options: "use the `loop`, `autoplay` and `speed` props instead"
1232
+ };
1233
+ const warnedRemoved = /* @__PURE__ */ new Set();
1234
+ const warnRemoved = (prop) => {
1235
+ if (warnedRemoved.has(prop)) return;
1236
+ warnedRemoved.add(prop);
1237
+ console.warn(`react-useanimations: the \`${prop}\` prop was removed in v3 and is ignored; ${REMOVED[prop]}.`);
1238
+ };
1239
+ const missingAnimation = () => {
1240
+ throw new Error("UseAnimations: the `animation` prop is missing. Import an icon and pass it, e.g. `import github from 'react-useanimations/lib/github'` and `<UseAnimations animation={github} />`.");
1241
+ };
1242
+ const focusVisible = (element) => {
1243
+ try {
1244
+ return element.matches(":focus-visible");
1245
+ } catch {
1246
+ return false;
1247
+ }
1248
+ };
1249
+ const UseAnimations = (props) => {
1250
+ const { animation, interaction: interactionProp, active: activeProp, reverse, size = 24, speed = 1, strokeColor, fillColor, loop, autoplay, wrapperStyle, render, style, onClick, onMouseEnter, onMouseLeave, onPointerEnter, onFocus, onBlur, pathCss, options, ...other } = props;
1251
+ const { animationData, interaction: defaultInteraction } = animation?.animationData ? animation : missingAnimation();
1252
+ const active = activeProp ?? reverse ?? false;
1253
+ const [container, setContainer] = useState(null);
1254
+ const player = useRef(null);
1255
+ const reducedMotion = usePrefersReducedMotion();
1256
+ const atEnd = useRef(false);
1257
+ const stopAfterCycle = useRef(false);
1258
+ const lastPointer = useRef("");
1259
+ const latest = useRef({
1260
+ speed,
1261
+ active
1262
+ });
1263
+ const interaction = interactionProp ?? defaultInteraction ?? "click-replay";
1264
+ const shouldLoop = loop ?? (interaction === "loop" || interaction === "hover-loop");
1265
+ const shouldAutoplay = autoplay ?? (interaction === "loop" && !reducedMotion);
1266
+ useEffect(() => {
1267
+ latest.current = {
1268
+ speed,
1269
+ active
1270
+ };
1271
+ });
1272
+ const hasPathCss = pathCss !== void 0;
1273
+ const hasOptions = options !== void 0;
1274
+ useEffect(() => {
1275
+ if (hasPathCss) warnRemoved("pathCss");
1276
+ if (hasOptions) warnRemoved("options");
1277
+ }, [hasPathCss, hasOptions]);
1278
+ useEffect(() => {
1279
+ if (!container) return void 0;
1280
+ injectStyles(container);
1281
+ const created = loadAnimation({
1282
+ container,
1283
+ animationData,
1284
+ loop: shouldLoop,
1285
+ autoplay: shouldAutoplay
1286
+ });
1287
+ created.setSpeed(latest.current.speed);
1288
+ const stopCycle = () => {
1289
+ if (!stopAfterCycle.current) return;
1290
+ stopAfterCycle.current = false;
1291
+ created.goToAndStop(0);
1292
+ };
1293
+ created.addEventListener("loopComplete", stopCycle);
1294
+ created.addEventListener("complete", stopCycle);
1295
+ atEnd.current = interaction === "click-toggle" && latest.current.active;
1296
+ if (atEnd.current) created.goToAndStop(created.totalFrames - 1);
1297
+ player.current = created;
1298
+ let observer;
1299
+ if (shouldAutoplay && typeof IntersectionObserver !== "undefined") {
1300
+ observer = new IntersectionObserver(([entry]) => {
1301
+ if (entry.isIntersecting) created.play();
1302
+ else created.pause();
1303
+ });
1304
+ observer.observe(container);
1305
+ }
1306
+ return () => {
1307
+ observer?.disconnect();
1308
+ created.destroy();
1309
+ player.current = null;
1310
+ };
1311
+ }, [
1312
+ container,
1313
+ animationData,
1314
+ interaction,
1315
+ shouldLoop,
1316
+ shouldAutoplay
1317
+ ]);
1318
+ useEffect(() => {
1319
+ player.current?.setSpeed(speed);
1320
+ }, [speed]);
1321
+ useEffect(() => {
1322
+ const current = player.current;
1323
+ if (!current || interaction !== "click-toggle" || active === atEnd.current) return;
1324
+ atEnd.current = active;
1325
+ toggle(current, active, reducedMotion);
1326
+ }, [
1327
+ interaction,
1328
+ active,
1329
+ reducedMotion
1330
+ ]);
1331
+ const startHover = () => {
1332
+ if (!player.current || !isHover(interaction) || reducedMotion) return;
1333
+ stopAfterCycle.current = false;
1334
+ hoverStart(player.current, interaction);
1335
+ };
1336
+ const endHover = () => {
1337
+ if (!player.current || !isHover(interaction) || reducedMotion) return;
1338
+ stopAfterCycle.current = hoverEnd(player.current, interaction);
1339
+ };
1340
+ const eventProps = {
1341
+ onClick: (event) => {
1342
+ onClick?.(event);
1343
+ const current = player.current;
1344
+ if (!current || event.defaultPrevented) return;
1345
+ if (interaction === "click-toggle" && activeProp === void 0) {
1346
+ atEnd.current = !atEnd.current;
1347
+ toggle(current, atEnd.current, reducedMotion);
1348
+ } else if (interaction === "click-replay" && !reducedMotion) replay(current);
1349
+ },
1350
+ onMouseEnter: (event) => {
1351
+ onMouseEnter?.(event);
1352
+ if (!event.defaultPrevented && lastPointer.current !== "touch") startHover();
1353
+ },
1354
+ onMouseLeave: (event) => {
1355
+ onMouseLeave?.(event);
1356
+ if (!event.defaultPrevented && lastPointer.current !== "touch") endHover();
1357
+ },
1358
+ onPointerEnter: (event) => {
1359
+ onPointerEnter?.(event);
1360
+ lastPointer.current = event.pointerType;
1361
+ },
1362
+ onFocus: (event) => {
1363
+ onFocus?.(event);
1364
+ if (!event.defaultPrevented && focusVisible(event.currentTarget)) startHover();
1365
+ },
1366
+ onBlur: (event) => {
1367
+ onBlur?.(event);
1368
+ if (!event.defaultPrevented) endHover();
1369
+ }
1370
+ };
1371
+ const labelled = Boolean(other["aria-label"] || other["aria-labelledby"]);
1372
+ const animationProps = {
1373
+ "aria-hidden": labelled ? void 0 : true,
1374
+ role: labelled ? "img" : void 0,
1375
+ ...other,
1376
+ "data-useanimations": "",
1377
+ ref: setContainer,
1378
+ style: {
1379
+ display: "inline-block",
1380
+ flexShrink: 0,
1381
+ overflow: "hidden",
1382
+ width: size,
1383
+ height: size,
1384
+ "--ua-stroke": strokeColor,
1385
+ "--ua-fill": fillColor,
1386
+ ...wrapperStyle,
1387
+ ...style
1388
+ }
1389
+ };
1390
+ return render ? render(eventProps, animationProps) : /* @__PURE__ */ jsx("span", {
1391
+ ...animationProps,
1392
+ ...eventProps
1393
+ });
1394
+ };
1395
+ //#endregion
1396
+ export { UseAnimations as UseAnimation, UseAnimations, UseAnimations as default };