react-grab 0.1.28 → 0.1.30

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 (432) hide show
  1. package/README.md +8 -138
  2. package/dist/core/index.cjs +9 -1
  3. package/dist/core/index.d.cts +11 -3
  4. package/dist/core/index.d.ts +11 -3
  5. package/dist/core/index.js +9 -1
  6. package/dist/core--H_JZk7a.js +16 -0
  7. package/dist/core-1AoeBJ2R.cjs +4386 -0
  8. package/dist/core-4VC4A94S.js +4249 -0
  9. package/dist/core-5Q_6LVh_.cjs +16 -0
  10. package/dist/core-6sOn3YNs.js +16 -0
  11. package/dist/core-B3FYVaHv.cjs +16 -0
  12. package/dist/core-B3I0upO1.js +4250 -0
  13. package/dist/core-B3ndcALq.cjs +4386 -0
  14. package/dist/core-B9GWVp1Q.js +16 -0
  15. package/dist/core-BGIMywNa.js +16 -0
  16. package/dist/core-BGK4C6ju.js +16 -0
  17. package/dist/core-BGXprTx7.cjs +16 -0
  18. package/dist/core-BKt5SHzo.js +16 -0
  19. package/dist/core-BMObVYUv.cjs +16 -0
  20. package/dist/core-BNMx90Sn.js +16 -0
  21. package/dist/core-BWQ6C5g9.js +4268 -0
  22. package/dist/core-BcwRbSfO.js +16 -0
  23. package/dist/core-Be-1ubQn.cjs +16 -0
  24. package/dist/core-BfpPi7c6.cjs +16 -0
  25. package/dist/core-BiIoWLRk.js +16 -0
  26. package/dist/core-BjpyJHlW.js +16 -0
  27. package/dist/core-Bqf3D4Ra.cjs +16 -0
  28. package/dist/core-Bs0wekHY.cjs +4284 -0
  29. package/dist/core-Bvqgv6Zr.js +16 -0
  30. package/dist/core-Bw0-Cecq.cjs +16 -0
  31. package/dist/core-BzRpJ5QI.cjs +4284 -0
  32. package/dist/core-C0ZgNdUR.cjs +4386 -0
  33. package/dist/core-C191WXKe.cjs +16 -0
  34. package/dist/core-C4yYleJn.js +16 -0
  35. package/dist/core-C758xgeI.js +16 -0
  36. package/dist/core-CAZ8ENTv.js +16 -0
  37. package/dist/core-CBUFmwfx.cjs +4386 -0
  38. package/dist/core-CDV48I9C.js +4249 -0
  39. package/dist/core-CGXCsSkm.js +4280 -0
  40. package/dist/core-CHsFU9FZ.js +16 -0
  41. package/dist/core-CJOQfSzq.js +4495 -0
  42. package/dist/core-CLW9tl4L.js +4249 -0
  43. package/dist/core-CP1yCnSB.js +16 -0
  44. package/dist/core-CRLyvQCt.cjs +16 -0
  45. package/dist/core-CZX3EijL.js +16 -0
  46. package/dist/core-Ccli-yLf.cjs +16 -0
  47. package/dist/core-Ce4pBUSh.js +16 -0
  48. package/dist/core-CgCGjXfB.cjs +16 -0
  49. package/dist/core-CiQl2PfF.cjs +16 -0
  50. package/dist/core-CnPpGWUc.js +16 -0
  51. package/dist/core-Co9954wQ.cjs +16 -0
  52. package/dist/core-Cr4qVf2a.js +16 -0
  53. package/dist/core-CrQCbm00.js +16 -0
  54. package/dist/core-CsCg35MW.js +16 -0
  55. package/dist/core-Cshs0orb.js +16 -0
  56. package/dist/core-CthjfoZX.cjs +16 -0
  57. package/dist/core-CtvavOAt.cjs +16 -0
  58. package/dist/core-CvoFTVjy.cjs +16 -0
  59. package/dist/core-CzE8I9NL.cjs +16 -0
  60. package/dist/core-CzGijRTx.js +16 -0
  61. package/dist/core-CzosrDdO.cjs +16 -0
  62. package/dist/core-D--fM7Xq.cjs +16 -0
  63. package/dist/core-D-UGQb_Z.cjs +16 -0
  64. package/dist/core-D0UqPwu_.cjs +16 -0
  65. package/dist/core-D2LzIluw.js +4495 -0
  66. package/dist/core-D4z4W-Qz.cjs +16 -0
  67. package/dist/core-D7NwJuzy.js +16 -0
  68. package/dist/core-DCqMIKkK.js +16 -0
  69. package/dist/core-DFrvwczh.cjs +4284 -0
  70. package/dist/core-DGxxKKPR.cjs +16 -0
  71. package/dist/core-DGyQeEXa.js +4495 -0
  72. package/dist/core-DH8Uvag-.js +4249 -0
  73. package/dist/core-DHZBYfsC.js +16 -0
  74. package/dist/core-DKVj078o.js +4249 -0
  75. package/dist/core-DMRsaGr7.js +16 -0
  76. package/dist/core-DRUnXCNA.cjs +16 -0
  77. package/dist/core-DRlG4zYm.cjs +16 -0
  78. package/dist/core-DSqJwwdV.cjs +4284 -0
  79. package/dist/core-DXqmRz53.cjs +16 -0
  80. package/dist/core-DcRxqPad.js +16 -0
  81. package/dist/core-DdNOX4pt.js +16 -0
  82. package/dist/core-Df7CMRnd.cjs +4315 -0
  83. package/dist/core-DiIZA6Hx.js +4495 -0
  84. package/dist/core-DiVnlonK.cjs +4284 -0
  85. package/dist/core-Dj1WV911.js +4495 -0
  86. package/dist/core-DjPDxMID.cjs +16 -0
  87. package/dist/core-DjcnHWor.cjs +16 -0
  88. package/dist/core-DkWjrEUZ.cjs +16 -0
  89. package/dist/core-Dq-CCsij.cjs +4303 -0
  90. package/dist/core-DsVAkMs2.js +16 -0
  91. package/dist/core-DueMb4P6.js +4249 -0
  92. package/dist/core-DvJt5JmX.js +16 -0
  93. package/dist/core-Dz8Hrc33.js +4249 -0
  94. package/dist/core-ESHKG2mL.cjs +4285 -0
  95. package/dist/core-Ij_B_RWV.cjs +16 -0
  96. package/dist/core-JyczI7kP.cjs +16 -0
  97. package/dist/core-K0XuILjf.cjs +4284 -0
  98. package/dist/core-N9HyYpZv.cjs +16 -0
  99. package/dist/core-PW2DC2Tb.js +4495 -0
  100. package/dist/core-Q84EBsQ8.cjs +16 -0
  101. package/dist/core-TSuD8D7m.js +16 -0
  102. package/dist/core-WN76m9V0.cjs +16 -0
  103. package/dist/core-YRKn-0AV.js +16 -0
  104. package/dist/core-fC6GdbUJ.js +16 -0
  105. package/dist/core-h5q7bqH-.cjs +4284 -0
  106. package/dist/core-hkgBRD_T.js +16 -0
  107. package/dist/core-k9l5c9Hk.cjs +16 -0
  108. package/dist/core-mNhkpUYQ.cjs +16 -0
  109. package/dist/core-qCvYE9Ox.cjs +4386 -0
  110. package/dist/core-rvs2FEMH.js +16 -0
  111. package/dist/core-sXzUCmoJ.js +16 -0
  112. package/dist/core-t7gaYHyj.cjs +4386 -0
  113. package/dist/core-thci-YqL.js +16 -0
  114. package/dist/core-xokESdbC.cjs +16 -0
  115. package/dist/core-yW0MN96-.cjs +16 -0
  116. package/dist/core-ydFCYlV4.js +16 -0
  117. package/dist/core-zQ4jjKHw.cjs +16 -0
  118. package/dist/extract-element-css-B-R_28uM.cjs +10 -0
  119. package/dist/extract-element-css-B732tro7.js +10 -0
  120. package/dist/extract-element-css-B9Xh1wUd.js +10 -0
  121. package/dist/extract-element-css-BGZPWnck.js +10 -0
  122. package/dist/extract-element-css-BIniUwQh.js +319 -0
  123. package/dist/extract-element-css-BOQUDYB3.cjs +10 -0
  124. package/dist/extract-element-css-BTzDGIs3.cjs +336 -0
  125. package/dist/extract-element-css-BWUnsvjZ.js +10 -0
  126. package/dist/extract-element-css-BceTcL6y.cjs +10 -0
  127. package/dist/extract-element-css-Bi1y8V4z.cjs +336 -0
  128. package/dist/extract-element-css-Bra6hEzg.js +319 -0
  129. package/dist/extract-element-css-BuJ3zqGO.js +10 -0
  130. package/dist/extract-element-css-C8lBuGP7.js +10 -0
  131. package/dist/extract-element-css-CBHVjrBq.cjs +10 -0
  132. package/dist/extract-element-css-CGxXdwim.js +10 -0
  133. package/dist/extract-element-css-CJx4cesM.js +10 -0
  134. package/dist/extract-element-css-CQBJAbFD.cjs +10 -0
  135. package/dist/extract-element-css-CQV8FsMB.cjs +10 -0
  136. package/dist/extract-element-css-CQx4Biqa.cjs +336 -0
  137. package/dist/extract-element-css-CTy2pRfA.js +10 -0
  138. package/dist/extract-element-css-CchtITXx.cjs +336 -0
  139. package/dist/extract-element-css-CjY9vDS6.js +10 -0
  140. package/dist/extract-element-css-ClnG20sN.cjs +10 -0
  141. package/dist/extract-element-css-CmMetO-q.cjs +10 -0
  142. package/dist/extract-element-css-CmOD6UeE.cjs +10 -0
  143. package/dist/extract-element-css-CnY9b0vB.js +10 -0
  144. package/dist/extract-element-css-CoQLNjVI.js +10 -0
  145. package/dist/extract-element-css-CqjmXl0Y.cjs +10 -0
  146. package/dist/extract-element-css-Cr29xtzW.cjs +10 -0
  147. package/dist/extract-element-css-CzNVoJEM.js +319 -0
  148. package/dist/extract-element-css-CzgC7nM9.cjs +10 -0
  149. package/dist/extract-element-css-D3Dy-3Qz.js +10 -0
  150. package/dist/extract-element-css-D5qqKVc-.cjs +10 -0
  151. package/dist/extract-element-css-D5zsPw09.cjs +10 -0
  152. package/dist/extract-element-css-D6UwJjf4.cjs +336 -0
  153. package/dist/extract-element-css-DEuA2W6G.js +10 -0
  154. package/dist/extract-element-css-DKkUiIlS.cjs +10 -0
  155. package/dist/extract-element-css-DM0EhhXw.cjs +10 -0
  156. package/dist/extract-element-css-DPA6C_o-.cjs +10 -0
  157. package/dist/extract-element-css-DU45xRGh.js +10 -0
  158. package/dist/extract-element-css-DUvYlz4T.js +10 -0
  159. package/dist/extract-element-css-DVDr5Tn6.cjs +10 -0
  160. package/dist/extract-element-css-Di9hCigW.js +319 -0
  161. package/dist/extract-element-css-DivFxCRt.js +319 -0
  162. package/dist/extract-element-css-DlDbU4YM.cjs +10 -0
  163. package/dist/extract-element-css-DsssOqcQ.cjs +10 -0
  164. package/dist/extract-element-css-EnvrIHtf.cjs +336 -0
  165. package/dist/extract-element-css-FI71J_KB.js +10 -0
  166. package/dist/extract-element-css-GdDDlzTf.js +10 -0
  167. package/dist/extract-element-css-U3MgLHty.cjs +10 -0
  168. package/dist/extract-element-css-U4oxl-UP.js +10 -0
  169. package/dist/extract-element-css-VyMIgOZy.js +10 -0
  170. package/dist/extract-element-css-XGv0WWIL.js +319 -0
  171. package/dist/extract-element-css-Y-x4luJL.cjs +10 -0
  172. package/dist/extract-element-css-Zz_CgLqY.js +319 -0
  173. package/dist/extract-element-css-_aFPl5y4.cjs +336 -0
  174. package/dist/extract-element-css-_uZRVqCT.cjs +10 -0
  175. package/dist/extract-element-css-i8nzXODQ.js +10 -0
  176. package/dist/extract-element-css-jh1iLRzJ.js +10 -0
  177. package/dist/extract-element-css-nkJQc3j1.js +10 -0
  178. package/dist/freeze-updates--K1ecmFi.cjs +44 -0
  179. package/dist/freeze-updates-1FTXgIdb.js +44 -0
  180. package/dist/freeze-updates-3QjTocF-.cjs +2267 -0
  181. package/dist/freeze-updates-81f5sY45.js +44 -0
  182. package/dist/freeze-updates-B1mPDmJB.js +44 -0
  183. package/dist/freeze-updates-B5h8teL6.cjs +44 -0
  184. package/dist/freeze-updates-BAYe0Nlx.js +44 -0
  185. package/dist/freeze-updates-BDhlBp3V.js +44 -0
  186. package/dist/freeze-updates-BGa9CqrW.cjs +2267 -0
  187. package/dist/freeze-updates-BQH6Y8E1.cjs +44 -0
  188. package/dist/freeze-updates-BQjWBzy4.cjs +53 -0
  189. package/dist/freeze-updates-BSOSfpXo.js +44 -0
  190. package/dist/freeze-updates-BT-s67nK.js +53 -0
  191. package/dist/freeze-updates-BUJeYIm5.js +44 -0
  192. package/dist/freeze-updates-BVDrqUzf.js +2498 -0
  193. package/dist/freeze-updates-BVX0QSXz.cjs +44 -0
  194. package/dist/freeze-updates-BXMr6a9g.cjs +2912 -0
  195. package/dist/freeze-updates-BZpmCVDl.cjs +2267 -0
  196. package/dist/freeze-updates-BbbID39H.js +1866 -0
  197. package/dist/freeze-updates-BdnJ5RrP.js +1866 -0
  198. package/dist/freeze-updates-Bj59uWit.cjs +44 -0
  199. package/dist/freeze-updates-Bla3E0Kv.js +53 -0
  200. package/dist/freeze-updates-BoYyIB3V.cjs +44 -0
  201. package/dist/freeze-updates-C2TqDiTp.cjs +44 -0
  202. package/dist/freeze-updates-C6Tg4EoW.js +44 -0
  203. package/dist/freeze-updates-C7c9TRvJ.cjs +44 -0
  204. package/dist/freeze-updates-CPNAwtsl.cjs +2267 -0
  205. package/dist/freeze-updates-CTP39zuf.js +44 -0
  206. package/dist/freeze-updates-Cm3EVm_J.cjs +53 -0
  207. package/dist/freeze-updates-CnSZEKoI.cjs +44 -0
  208. package/dist/freeze-updates-CrKe4F0s.js +44 -0
  209. package/dist/freeze-updates-CtYFeM4D.cjs +2267 -0
  210. package/dist/freeze-updates-CxYFvPj9.cjs +53 -0
  211. package/dist/freeze-updates-D10Qj9Ec.cjs +44 -0
  212. package/dist/freeze-updates-D6o46vBw.cjs +44 -0
  213. package/dist/freeze-updates-D7XFQ3_T.js +53 -0
  214. package/dist/freeze-updates-D8H25gFt.js +44 -0
  215. package/dist/freeze-updates-DCpGX7lt.cjs +44 -0
  216. package/dist/freeze-updates-DG3hLEL2.cjs +44 -0
  217. package/dist/freeze-updates-DO_M76qf.js +44 -0
  218. package/dist/freeze-updates-Db4Id665.cjs +2267 -0
  219. package/dist/freeze-updates-DbL_EXkN.js +1866 -0
  220. package/dist/freeze-updates-DcvNGCcR.cjs +44 -0
  221. package/dist/freeze-updates-Dh4GiYXz.cjs +44 -0
  222. package/dist/freeze-updates-DkKJK_nh.cjs +44 -0
  223. package/dist/freeze-updates-DmB-ndqy.cjs +44 -0
  224. package/dist/freeze-updates-DnAA3QYp.cjs +44 -0
  225. package/dist/freeze-updates-Dpj8jndD.js +44 -0
  226. package/dist/freeze-updates-DuHXIi3M.js +44 -0
  227. package/dist/freeze-updates-DwERlFID.js +1866 -0
  228. package/dist/freeze-updates-HHyWtz8f.cjs +44 -0
  229. package/dist/freeze-updates-JRZCAR0q.js +1866 -0
  230. package/dist/freeze-updates-KLyCac_c.js +44 -0
  231. package/dist/freeze-updates-MaNDvTJS.js +1866 -0
  232. package/dist/freeze-updates-REe44rww.js +44 -0
  233. package/dist/freeze-updates-TPRkNnYY.js +44 -0
  234. package/dist/freeze-updates-WfKs4yF4.js +44 -0
  235. package/dist/freeze-updates-d9yH0V6A.cjs +44 -0
  236. package/dist/freeze-updates-nzZkxjqN.js +44 -0
  237. package/dist/freeze-updates-q_DMlHq7.js +44 -0
  238. package/dist/index-0hhKx6KA.d.ts +534 -0
  239. package/dist/index-5oOhE8Ae.d.cts +123 -0
  240. package/dist/index-BA23Z7zi.d.ts +77 -0
  241. package/dist/index-BAbHDCJb.d.ts +190 -0
  242. package/dist/index-BN1ZJhWK.d.cts +471 -0
  243. package/dist/index-BNt_9BO7.d.ts +77 -0
  244. package/dist/index-BQIO-ZFv.d.cts +190 -0
  245. package/dist/index-BTQxeAz1.d.cts +123 -0
  246. package/dist/index-BxsI0BlT.d.ts +471 -0
  247. package/dist/index-BzzHoNRc.d.cts +77 -0
  248. package/dist/index-C0Scq3kL.d.ts +458 -0
  249. package/dist/index-CAHLDDjY.d.ts +190 -0
  250. package/dist/index-CIJ7ossb.d.ts +190 -0
  251. package/dist/index-CJqujqsv.d.cts +190 -0
  252. package/dist/index-CJrVDk2d.d.ts +470 -0
  253. package/dist/index-CQBZI4f5.d.cts +458 -0
  254. package/dist/index-CS3VHZ8R.d.cts +77 -0
  255. package/dist/index-CWd5aKyK.d.ts +123 -0
  256. package/dist/index-DM3Ga1zc.d.ts +123 -0
  257. package/dist/index-DYp_9VQ_.d.cts +470 -0
  258. package/dist/index-DrK-HiGj.d.ts +203 -0
  259. package/dist/index-GwiDNOsl.d.ts +457 -0
  260. package/dist/index-QLMT7NRw.d.cts +203 -0
  261. package/dist/index-QLi1BtdI.d.cts +190 -0
  262. package/dist/index-sM3yy652.d.cts +534 -0
  263. package/dist/index-zvkV7Xwg.d.cts +457 -0
  264. package/dist/index.cjs +2 -2
  265. package/dist/index.d.cts +21 -12
  266. package/dist/index.d.ts +21 -12
  267. package/dist/index.global.js +26 -101
  268. package/dist/index.iife.js +43 -0
  269. package/dist/index.js +2 -2
  270. package/dist/primitives.cjs +2 -2
  271. package/dist/primitives.d.cts +20 -13
  272. package/dist/primitives.d.ts +20 -13
  273. package/dist/primitives.js +2 -2
  274. package/dist/renderer--AVNuclr.js +9 -0
  275. package/dist/renderer--bWj0AZJ.js +4101 -0
  276. package/dist/renderer--cF4pvND.js +9 -0
  277. package/dist/renderer-0mo5bvxE.js +4126 -0
  278. package/dist/renderer-4Wa-UMC5.cjs +9 -0
  279. package/dist/renderer-6D9KbSAS.js +9 -0
  280. package/dist/renderer-7mjLlkgX.cjs +9 -0
  281. package/dist/renderer-B0v-2J0H.js +9 -0
  282. package/dist/renderer-B0yJsSRz.js +9 -0
  283. package/dist/renderer-B660bBKn.cjs +9 -0
  284. package/dist/renderer-B6m2pWq1.cjs +4102 -0
  285. package/dist/renderer-BA_yjKW4.cjs +9 -0
  286. package/dist/renderer-BDCne7IL.cjs +9 -0
  287. package/dist/renderer-BDKG-8eW.js +9 -0
  288. package/dist/renderer-BEisX7lt.js +9 -0
  289. package/dist/renderer-BEnSHrkN.cjs +9 -0
  290. package/dist/renderer-BJQHCki_.js +9 -0
  291. package/dist/renderer-BLEQ0lBg.js +9 -0
  292. package/dist/renderer-BQMe9vbO.cjs +9 -0
  293. package/dist/renderer-BZfQAWt2.cjs +9 -0
  294. package/dist/renderer-BZypunFM.cjs +9 -0
  295. package/dist/renderer-Be1I1mDW.cjs +9 -0
  296. package/dist/renderer-Bhrtihjr.cjs +9 -0
  297. package/dist/renderer-Bp3dRMPA.js +9 -0
  298. package/dist/renderer-BqYgf0tD.js +9 -0
  299. package/dist/renderer-BwD9ZaGr.cjs +9 -0
  300. package/dist/renderer-BxCRcsEK.cjs +4125 -0
  301. package/dist/renderer-C1Wrh8hn.js +9 -0
  302. package/dist/renderer-C6pztTyv.js +9 -0
  303. package/dist/renderer-C9bCr3pC.js +4101 -0
  304. package/dist/renderer-CEmrAuyA.js +9 -0
  305. package/dist/renderer-CG1lpM8J.cjs +9 -0
  306. package/dist/renderer-CIJhv1xD.js +9 -0
  307. package/dist/renderer-CJ3EovD7.js +9 -0
  308. package/dist/renderer-CJVIzi67.js +4114 -0
  309. package/dist/renderer-CKAmRN9i.cjs +9 -0
  310. package/dist/renderer-CNa9jW2d.js +9 -0
  311. package/dist/renderer-CS6q5sh-.cjs +4101 -0
  312. package/dist/renderer-CTip7L4z.cjs +4114 -0
  313. package/dist/renderer-Cdh6G3WO.cjs +4101 -0
  314. package/dist/renderer-Cfnc_J-x.js +9 -0
  315. package/dist/renderer-CidbOiiO.js +9 -0
  316. package/dist/renderer-CooL8OD4.cjs +9 -0
  317. package/dist/renderer-Cp8W_Vpj.cjs +4101 -0
  318. package/dist/renderer-Ctq4IL1w.cjs +9 -0
  319. package/dist/renderer-D0gZDp8v.js +9 -0
  320. package/dist/renderer-D2Ius1-3.cjs +9 -0
  321. package/dist/renderer-D2gUuAUv.cjs +9 -0
  322. package/dist/renderer-D6qQGrNF.js +9 -0
  323. package/dist/renderer-D9RBf9He.js +9 -0
  324. package/dist/renderer-DDpyudCh.js +9 -0
  325. package/dist/renderer-DEo9eIZj.cjs +9 -0
  326. package/dist/renderer-DHBz10-G.js +9 -0
  327. package/dist/renderer-DM6gVYD_.cjs +4126 -0
  328. package/dist/renderer-DS5wjL1R.cjs +9 -0
  329. package/dist/renderer-DWZQjHeF.cjs +4101 -0
  330. package/dist/renderer-DZ-EdxOj.cjs +9 -0
  331. package/dist/renderer-DblZTrea.js +9 -0
  332. package/dist/renderer-DcPiCh7r.js +4114 -0
  333. package/dist/renderer-Dfj6tfg9.cjs +4139 -0
  334. package/dist/renderer-DhoYb1PY.js +4103 -0
  335. package/dist/renderer-Dl6awT_I.cjs +9 -0
  336. package/dist/renderer-DmOXobMF.js +4101 -0
  337. package/dist/renderer-DmlAyeq6.cjs +4114 -0
  338. package/dist/renderer-DnwizF3I.cjs +9 -0
  339. package/dist/renderer-Dpzs-uao.js +4125 -0
  340. package/dist/renderer-Ds21virZ.cjs +4145 -0
  341. package/dist/renderer-DslAAsKS.js +4101 -0
  342. package/dist/renderer-DtBv4wTu.js +4102 -0
  343. package/dist/renderer-DxuOYfZN.cjs +9 -0
  344. package/dist/renderer-DyrsoA_r.js +9 -0
  345. package/dist/renderer-GlgUXTaV.js +9 -0
  346. package/dist/renderer-KL2bSyIW.cjs +9 -0
  347. package/dist/renderer-N_yFJNWi.cjs +9 -0
  348. package/dist/renderer-TkTQ8ZzV.cjs +4101 -0
  349. package/dist/renderer-WtWG_Uzr.js +4139 -0
  350. package/dist/renderer-YPWUo91d.cjs +9 -0
  351. package/dist/renderer-foaHR93_.js +9 -0
  352. package/dist/renderer-irss7gH9.js +9 -0
  353. package/dist/renderer-kNWgh9RH.js +9 -0
  354. package/dist/renderer-l2DsHbX5.js +4145 -0
  355. package/dist/renderer-lRGat4eI.js +9 -0
  356. package/dist/renderer-m1ynwV5m.cjs +9 -0
  357. package/dist/renderer-oDWZTt10.cjs +9 -0
  358. package/dist/renderer-ruVxrW9_.cjs +9 -0
  359. package/dist/renderer-tLg9bC5E.cjs +4103 -0
  360. package/dist/renderer-wKL03A96.cjs +9 -0
  361. package/dist/renderer-xY7WwwPb.cjs +9 -0
  362. package/dist/renderer-yNfPLGJa.js +4101 -0
  363. package/dist/renderer-zFA8Xsqn.js +9 -0
  364. package/dist/state-0zvRag7o.js +1832 -0
  365. package/dist/state-1bNOTRwX.js +9 -0
  366. package/dist/state-4KlM-876.cjs +9 -0
  367. package/dist/state-5YzsfKSg.js +9 -0
  368. package/dist/state-B2sO7SGs.cjs +9 -0
  369. package/dist/state-B30FVO9-.cjs +9 -0
  370. package/dist/state-BBF5Yd6R.cjs +1488 -0
  371. package/dist/state-BHM_hL69.cjs +9 -0
  372. package/dist/state-BKkU5MYC.js +9 -0
  373. package/dist/state-B_xrj8fC.js +9 -0
  374. package/dist/state-BaTqKR5-.js +1832 -0
  375. package/dist/state-Bb1Wechu.js +9 -0
  376. package/dist/state-BfgVpFaG.cjs +9 -0
  377. package/dist/state-BoRPcmmD.js +9 -0
  378. package/dist/state-BqB3gaPk.js +9 -0
  379. package/dist/state-Bt9zarML.js +1832 -0
  380. package/dist/state-Bw07Ecsm.js +9 -0
  381. package/dist/state-Bw9Y8zmt.js +9 -0
  382. package/dist/state-ByV_XBwX.js +9 -0
  383. package/dist/state-C4nNE_SS.js +9 -0
  384. package/dist/state-C4uusDVL.cjs +9 -0
  385. package/dist/state-CMwBL8Lh.cjs +9 -0
  386. package/dist/state-C_KJ10Ip.cjs +9 -0
  387. package/dist/state-ClLJ5ade.cjs +1488 -0
  388. package/dist/state-CpWrjvjx.js +277 -0
  389. package/dist/state-CwguFqss.cjs +9 -0
  390. package/dist/state-Cxj7mpyT.cjs +9 -0
  391. package/dist/state-CyWfuYBm.js +9 -0
  392. package/dist/state-Cz4euNVW.js +1832 -0
  393. package/dist/state-D1eYdbOV.js +9 -0
  394. package/dist/state-D231Xq-p.js +9 -0
  395. package/dist/state-D2nMXLig.cjs +9 -0
  396. package/dist/state-D3NnAU-G.js +9 -0
  397. package/dist/state-D4g0zX0j.cjs +9 -0
  398. package/dist/state-D5n1XOr-.cjs +372 -0
  399. package/dist/state-DPKTXrbJ.cjs +9 -0
  400. package/dist/state-DREKPmRw.cjs +9 -0
  401. package/dist/state-DT0Nzp9g.cjs +9 -0
  402. package/dist/state-Deun4HK-.cjs +9 -0
  403. package/dist/state-DfcZ51t9.js +9 -0
  404. package/dist/state-DgvhS6KW.cjs +1488 -0
  405. package/dist/state-DkjLMcvP.cjs +9 -0
  406. package/dist/state-DspBT1Sv.js +9 -0
  407. package/dist/state-DtgVqpBv.js +9 -0
  408. package/dist/state-DycsTHAk.cjs +9 -0
  409. package/dist/state-EWoHHdWu.js +9 -0
  410. package/dist/state-HWOltPgB.js +9 -0
  411. package/dist/state-JJNPE2tU.js +277 -0
  412. package/dist/state-KDd3Eouo.js +9 -0
  413. package/dist/state-Kmc6BtLp.cjs +9 -0
  414. package/dist/state-Q4M-6UjH.cjs +9 -0
  415. package/dist/state-U8yVy4Ad.cjs +9 -0
  416. package/dist/state-Uwm9KEi1.js +1832 -0
  417. package/dist/state-XYH8BGBU.cjs +372 -0
  418. package/dist/state-aBiYx-N-.cjs +9 -0
  419. package/dist/state-arg5pYvx.cjs +1488 -0
  420. package/dist/state-dFAAWOP9.cjs +1488 -0
  421. package/dist/state-daFKdtG6.js +9 -0
  422. package/dist/state-muKg33Sx.cjs +9 -0
  423. package/dist/state-wvjxc3BL.js +9 -0
  424. package/dist/styles.css +1 -1
  425. package/package.json +16 -23
  426. package/dist/chunk-5RMV2HA7.js +0 -101
  427. package/dist/chunk-QEVSATMF.cjs +0 -101
  428. package/dist/chunk-XWCIDYJD.cjs +0 -26
  429. package/dist/chunk-XYTXUEOE.js +0 -26
  430. package/dist/index-CN8HkCli.d.cts +0 -547
  431. package/dist/index-CN8HkCli.d.ts +0 -547
  432. package/scripts/postinstall.cjs +0 -23
@@ -0,0 +1,2267 @@
1
+ /**
2
+ * @license MIT
3
+ *
4
+ * Copyright (c) 2025 Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ let bippy_source = require("bippy/source");
10
+
11
+ //#region src/utils/supports-display-p3.ts
12
+ let cachedResult = null;
13
+ const supportsDisplayP3 = () => {
14
+ if (cachedResult !== null) return cachedResult;
15
+ try {
16
+ cachedResult = window.matchMedia("(color-gamut: p3)").matches;
17
+ } catch {
18
+ cachedResult = false;
19
+ }
20
+ return cachedResult;
21
+ };
22
+
23
+ //#endregion
24
+ //#region src/utils/overlay-color.ts
25
+ const isWideGamut = supportsDisplayP3();
26
+ const SRGB_COMPONENTS = "210, 57, 192";
27
+ const P3_COMPONENTS = "0.84 0.19 0.78";
28
+ const overlayColor = (alpha) => isWideGamut ? `color(display-p3 ${P3_COMPONENTS} / ${alpha})` : `rgba(${SRGB_COMPONENTS}, ${alpha})`;
29
+
30
+ //#endregion
31
+ //#region src/constants.ts
32
+ const VERSION = "[DEV]";
33
+ const OFFSCREEN_POSITION = -1e3;
34
+ const SELECTION_LERP_FACTOR = .95;
35
+ const FEEDBACK_DURATION_MS = 1500;
36
+ const SYMBOLICATION_TIMEOUT_MS = 5e3;
37
+ const MAX_SELECTOR_COMBINATIONS = 1e4;
38
+ const Z_INDEX_OVERLAY = 2147483647;
39
+ const Z_INDEX_OVERLAY_CANVAS = 2147483645;
40
+ const DRAG_LERP_FACTOR = .7;
41
+ const LERP_CONVERGENCE_THRESHOLD_PX = .5;
42
+ const OPACITY_CONVERGENCE_THRESHOLD = .01;
43
+ const OVERLAY_BORDER_COLOR_DRAG = overlayColor(.4);
44
+ const OVERLAY_FILL_COLOR_DRAG = overlayColor(.05);
45
+ const OVERLAY_BORDER_COLOR_DEFAULT = overlayColor(.5);
46
+ const OVERLAY_FILL_COLOR_DEFAULT = overlayColor(.08);
47
+ const OVERLAY_BORDER_COLOR_INSPECT = overlayColor(.3);
48
+ const OVERLAY_FILL_COLOR_INSPECT = overlayColor(.04);
49
+ const FROZEN_GLOW_COLOR = overlayColor(.15);
50
+ const ARROW_MAX_LABEL_WIDTH_RATIO = .2;
51
+ const PREVIEW_PRIORITY_ATTRS = [
52
+ "id",
53
+ "class",
54
+ "aria-label",
55
+ "data-testid",
56
+ "role",
57
+ "name",
58
+ "title"
59
+ ];
60
+ const MODIFIER_KEYS = [
61
+ "Meta",
62
+ "Control",
63
+ "Shift",
64
+ "Alt"
65
+ ];
66
+ const ARROW_KEYS = new Set([
67
+ "ArrowUp",
68
+ "ArrowDown",
69
+ "ArrowLeft",
70
+ "ArrowRight"
71
+ ]);
72
+ const FROZEN_ELEMENT_ATTRIBUTE = "data-react-grab-frozen";
73
+ const USER_IGNORE_ATTRIBUTE = "data-react-grab-ignore";
74
+ const VIEWPORT_COVERAGE_THRESHOLD = .9;
75
+ const OVERLAY_Z_INDEX_THRESHOLD = 1e3;
76
+ const DEV_TOOLS_OVERLAY_Z_INDEX_THRESHOLD = 2147483600;
77
+ const TOOLBAR_DEFAULT_POSITION_RATIO = .5;
78
+ const DEFAULT_ACTION_ID = "comment";
79
+ const TOOLBAR_SHAKE_TOOLTIP_DURATION_MS = 1500;
80
+ const SELECTION_HINT_CYCLE_INTERVAL_MS = 3e3;
81
+ const TOOLTIP_BASE_CLASS = "absolute whitespace-nowrap px-1.5 py-0.5 rounded-[10px] text-[10px] text-black/60 pointer-events-none [corner-shape:superellipse(1.25)] filter-[drop-shadow(0px_1px_2px_#51515140)]";
82
+ const HINT_FLIP_IN_ANIMATION = "animate-[hint-flip-in_var(--transition-normal)_ease-out]";
83
+ const DRAG_SELECTION_COVERAGE_THRESHOLD = .75;
84
+ const ZOOM_DETECTION_THRESHOLD = .01;
85
+ const MOUNT_ROOT_RECHECK_DELAY_MS = 1e3;
86
+ const MAX_SESSION_STORAGE_SIZE_BYTES = 2 * 1024 * 1024;
87
+ const DROPDOWN_OFFSCREEN_POSITION = {
88
+ left: -9999,
89
+ top: -9999
90
+ };
91
+ const DROPDOWN_EDGE_TRANSFORM_ORIGIN = {
92
+ left: "left center",
93
+ right: "right center",
94
+ top: "center top",
95
+ bottom: "center bottom"
96
+ };
97
+ const NEXTJS_REVALIDATION_DELAY_MS = 1e3;
98
+ const SELECTION_LABEL_OFFSCREEN_PX = -9999;
99
+ const RELEVANT_CSS_PROPERTIES = new Set([
100
+ "display",
101
+ "position",
102
+ "top",
103
+ "right",
104
+ "bottom",
105
+ "left",
106
+ "z-index",
107
+ "overflow",
108
+ "overflow-x",
109
+ "overflow-y",
110
+ "width",
111
+ "height",
112
+ "min-width",
113
+ "min-height",
114
+ "max-width",
115
+ "max-height",
116
+ "margin-top",
117
+ "margin-right",
118
+ "margin-bottom",
119
+ "margin-left",
120
+ "padding-top",
121
+ "padding-right",
122
+ "padding-bottom",
123
+ "padding-left",
124
+ "flex-direction",
125
+ "flex-wrap",
126
+ "justify-content",
127
+ "align-items",
128
+ "align-self",
129
+ "align-content",
130
+ "flex-grow",
131
+ "flex-shrink",
132
+ "flex-basis",
133
+ "order",
134
+ "gap",
135
+ "row-gap",
136
+ "column-gap",
137
+ "grid-template-columns",
138
+ "grid-template-rows",
139
+ "grid-template-areas",
140
+ "font-family",
141
+ "font-size",
142
+ "font-weight",
143
+ "font-style",
144
+ "line-height",
145
+ "letter-spacing",
146
+ "text-align",
147
+ "text-decoration-line",
148
+ "text-decoration-style",
149
+ "text-transform",
150
+ "text-overflow",
151
+ "text-shadow",
152
+ "white-space",
153
+ "word-break",
154
+ "overflow-wrap",
155
+ "vertical-align",
156
+ "color",
157
+ "background-color",
158
+ "background-image",
159
+ "background-position",
160
+ "background-size",
161
+ "background-repeat",
162
+ "border-top-width",
163
+ "border-right-width",
164
+ "border-bottom-width",
165
+ "border-left-width",
166
+ "border-top-style",
167
+ "border-right-style",
168
+ "border-bottom-style",
169
+ "border-left-style",
170
+ "border-top-color",
171
+ "border-right-color",
172
+ "border-bottom-color",
173
+ "border-left-color",
174
+ "border-top-left-radius",
175
+ "border-top-right-radius",
176
+ "border-bottom-left-radius",
177
+ "border-bottom-right-radius",
178
+ "box-shadow",
179
+ "opacity",
180
+ "transform",
181
+ "filter",
182
+ "backdrop-filter",
183
+ "object-fit",
184
+ "object-position"
185
+ ]);
186
+
187
+ //#endregion
188
+ //#region src/utils/get-tag-name.ts
189
+ const getTagName = (element) => (element.tagName || "").toLowerCase();
190
+
191
+ //#endregion
192
+ //#region src/utils/native-raf.ts
193
+ const isClientSide = typeof window !== "undefined";
194
+ const noopAnimationFrame = (_callback) => 0;
195
+ const noopCancelFrame = (_id) => {};
196
+ const nativeRequestAnimationFrame = isClientSide ? (Object.getOwnPropertyDescriptor(Window.prototype, "requestAnimationFrame")?.value ?? window.requestAnimationFrame).bind(window) : noopAnimationFrame;
197
+ const nativeCancelAnimationFrame = isClientSide ? (Object.getOwnPropertyDescriptor(Window.prototype, "cancelAnimationFrame")?.value ?? window.cancelAnimationFrame).bind(window) : noopCancelFrame;
198
+ const waitUntilNextFrame = () => isClientSide ? new Promise((resolve) => nativeRequestAnimationFrame(() => resolve())) : Promise.resolve();
199
+
200
+ //#endregion
201
+ //#region ../../node_modules/.pnpm/bippy@0.5.34_react@19.2.3/node_modules/bippy/dist/rdt-hook.js
202
+ /**
203
+ * @license bippy
204
+ *
205
+ * Copyright (c) Aiden Bai
206
+ *
207
+ * This source code is licensed under the MIT license found in the
208
+ * LICENSE file in the root directory of this source tree.
209
+ */
210
+ const e = `0.5.34`, t = `bippy-${e}`, n = Object.defineProperty, r = Object.prototype.hasOwnProperty, i = () => {}, a = (e) => {
211
+ try {
212
+ Function.prototype.toString.call(e).indexOf(`^_^`) > -1 && setTimeout(() => {
213
+ throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`);
214
+ });
215
+ } catch {}
216
+ }, o = (e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) => !!(e && `getFiberRoots` in e);
217
+ let s = !1, c;
218
+ const l = (e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) => s ? !0 : (e && typeof e.inject == `function` && (c = e.inject.toString()), !!c?.includes(`(injected)`)), u = /* @__PURE__ */ new Set(), d$1 = /* @__PURE__ */ new Set(), f$1 = (e) => {
219
+ let r = /* @__PURE__ */ new Map(), o = 0, s = {
220
+ _instrumentationIsActive: !1,
221
+ _instrumentationSource: t,
222
+ checkDCE: a,
223
+ hasUnsupportedRendererAttached: !1,
224
+ inject(e) {
225
+ let t = ++o;
226
+ return r.set(t, e), d$1.add(e), s._instrumentationIsActive || (s._instrumentationIsActive = !0, u.forEach((e) => e())), t;
227
+ },
228
+ on: i,
229
+ onCommitFiberRoot: i,
230
+ onCommitFiberUnmount: i,
231
+ onPostCommitFiberRoot: i,
232
+ renderers: r,
233
+ supportsFiber: !0,
234
+ supportsFlight: !0
235
+ };
236
+ try {
237
+ n(globalThis, `__REACT_DEVTOOLS_GLOBAL_HOOK__`, {
238
+ configurable: !0,
239
+ enumerable: !0,
240
+ get() {
241
+ return s;
242
+ },
243
+ set(t) {
244
+ if (t && typeof t == `object`) {
245
+ let n = s.renderers;
246
+ s = t, n.size > 0 && (n.forEach((e, n) => {
247
+ d$1.add(e), t.renderers.set(n, e);
248
+ }), p$1(e));
249
+ }
250
+ }
251
+ });
252
+ let t = window.hasOwnProperty, r = !1;
253
+ n(window, `hasOwnProperty`, {
254
+ configurable: !0,
255
+ value: function(...e) {
256
+ try {
257
+ if (!r && e[0] === `__REACT_DEVTOOLS_GLOBAL_HOOK__`) return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__ = void 0, r = !0, -0;
258
+ } catch {}
259
+ return t.apply(this, e);
260
+ },
261
+ writable: !0
262
+ });
263
+ } catch {
264
+ p$1(e);
265
+ }
266
+ return s;
267
+ }, p$1 = (e) => {
268
+ e && u.add(e);
269
+ try {
270
+ let n = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
271
+ if (!n) return;
272
+ if (!n._instrumentationSource) {
273
+ n.checkDCE = a, n.supportsFiber = !0, n.supportsFlight = !0, n.hasUnsupportedRendererAttached = !1, n._instrumentationSource = t, n._instrumentationIsActive = !1;
274
+ let e = o(n);
275
+ if (e || (n.on = i), n.renderers.size) {
276
+ n._instrumentationIsActive = !0, u.forEach((e) => e());
277
+ return;
278
+ }
279
+ let r = n.inject, c = l(n);
280
+ c && !e && (s = !0, n.inject({ scheduleRefresh() {} }) && (n._instrumentationIsActive = !0)), n.inject = (e) => {
281
+ let t = r(e);
282
+ return d$1.add(e), c && n.renderers.set(t, e), n._instrumentationIsActive = !0, u.forEach((e) => e()), t;
283
+ };
284
+ }
285
+ (n.renderers.size || n._instrumentationIsActive || l()) && e?.();
286
+ } catch {}
287
+ }, m$1 = () => r.call(globalThis, `__REACT_DEVTOOLS_GLOBAL_HOOK__`), h$1 = (e) => m$1() ? (p$1(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : f$1(e), g$1 = () => !!(typeof window < `u` && (window.document?.createElement || window.navigator?.product === `ReactNative`)), _$1 = () => {
288
+ try {
289
+ g$1() && h$1();
290
+ } catch {}
291
+ };
292
+
293
+ //#endregion
294
+ //#region ../../node_modules/.pnpm/bippy@0.5.34_react@19.2.3/node_modules/bippy/dist/install-hook-only.js
295
+ /**
296
+ * @license bippy
297
+ *
298
+ * Copyright (c) Aiden Bai
299
+ *
300
+ * This source code is licensed under the MIT license found in the
301
+ * LICENSE file in the root directory of this source tree.
302
+ */
303
+ _$1();
304
+
305
+ //#endregion
306
+ //#region ../../node_modules/.pnpm/bippy@0.5.34_react@19.2.3/node_modules/bippy/dist/core.js
307
+ /**
308
+ * @license bippy
309
+ *
310
+ * Copyright (c) Aiden Bai
311
+ *
312
+ * This source code is licensed under the MIT license found in the
313
+ * LICENSE file in the root directory of this source tree.
314
+ */
315
+ const d = 0, ee = 1, te = 3, ne = 5, re = 6, ie = 7, f = 9, p = 11, m = 13, h = 14, g = 15, ae = 16, oe = 18, se = 19, ce = 22, le = 23, ue = 26, de = 27, fe = 28, pe = 30, _ = 60111, me = `Symbol(react.element)`, he = `Symbol(react.transitional.element)`, v = `Symbol(react.concurrent_mode)`, y = `Symbol(react.async_mode)`, b = 13366, ge = (e) => typeof e == `object` && !!e && `$$typeof` in e && [`Symbol(react.element)`, `Symbol(react.transitional.element)`].includes(String(e.$$typeof)), _e = (e) => typeof e == `object` && !!e && `tag` in e && `stateNode` in e && `return` in e && `child` in e && `sibling` in e && `flags` in e, x = (e) => {
316
+ switch (e.tag) {
317
+ case 5:
318
+ case 26:
319
+ case 27: return !0;
320
+ default: return typeof e.type == `string`;
321
+ }
322
+ }, ve = (e) => {
323
+ switch (e.tag) {
324
+ case 1:
325
+ case 11:
326
+ case 0:
327
+ case 14:
328
+ case 15: return !0;
329
+ default: return !1;
330
+ }
331
+ }, ye = (e) => !e || typeof e != `object` ? !1 : `pendingProps` in e && !(`containerInfo` in e), be = (e, t) => e === t || e.alternate === t || t.alternate === e, xe = (e, t) => {
332
+ try {
333
+ let n = e.dependencies, r = e.alternate?.dependencies;
334
+ if (!n || !r || typeof n != `object` || !(`firstContext` in n) || typeof r != `object` || !(`firstContext` in r)) return !1;
335
+ let i = n.firstContext, a = r.firstContext;
336
+ for (; i && typeof i == `object` && `memoizedValue` in i || a && typeof a == `object` && `memoizedValue` in a;) {
337
+ if (t(i, a) === !0) return !0;
338
+ i = i?.next, a = a?.next;
339
+ }
340
+ } catch {}
341
+ return !1;
342
+ }, S = (e, t) => {
343
+ try {
344
+ let n = e.memoizedState, r = e.alternate?.memoizedState;
345
+ for (; n || r;) {
346
+ if (t(n, r) === !0) return !0;
347
+ n = n?.next, r = r?.next;
348
+ }
349
+ } catch {}
350
+ return !1;
351
+ }, C = (e, t) => {
352
+ try {
353
+ let n = e.memoizedProps, r = e.alternate?.memoizedProps || {}, i = new Set([...Object.keys(n), ...Object.keys(r)]);
354
+ for (let e of i) {
355
+ let i = r?.[e], a = n?.[e];
356
+ if (t(e, a, i) === !0) return !0;
357
+ }
358
+ } catch {}
359
+ return !1;
360
+ }, w = (e) => {
361
+ let t = e.memoizedProps, n = e.alternate?.memoizedProps || {}, r = e.flags ?? e.effectTag ?? 0;
362
+ switch (e.tag) {
363
+ case 1:
364
+ case 9:
365
+ case 11:
366
+ case 0:
367
+ case 14:
368
+ case 15: return (r & 1) == 1;
369
+ default: return e.alternate ? n !== t || e.alternate.memoizedState !== e.memoizedState || e.alternate.ref !== e.ref : !0;
370
+ }
371
+ }, T = (e) => !!(e.flags & (b | 8) || e.subtreeFlags & (b | 8)), E = (e) => {
372
+ let t = [], n = [e];
373
+ for (; n.length;) {
374
+ let e = n.pop();
375
+ e && (x(e) && T(e) && w(e) && t.push(e), e.child && n.push(e.child), e.sibling && n.push(e.sibling));
376
+ }
377
+ return t;
378
+ }, D = (e) => {
379
+ let t = [], n = e;
380
+ for (; n.return;) t.push(n), n = n.return;
381
+ return t;
382
+ }, O = (e) => {
383
+ switch (e.tag) {
384
+ case 18: return !0;
385
+ case 7:
386
+ case 6:
387
+ case 23:
388
+ case 22: return !0;
389
+ case 3: return !1;
390
+ default: {
391
+ let t = typeof e.type == `object` && e.type !== null ? e.type.$$typeof : e.type;
392
+ switch (typeof t == `symbol` ? t.toString() : t) {
393
+ case _:
394
+ case v:
395
+ case y: return !0;
396
+ default: return !1;
397
+ }
398
+ }
399
+ }
400
+ }, k = (e, t = !1) => {
401
+ let n = j(e, x, t);
402
+ return n ||= j(e, x, !t), n;
403
+ }, A = (e) => {
404
+ let t = [], n = [];
405
+ for (x(e) ? t.push(e) : e.child && n.push(e.child); n.length;) {
406
+ let e = n.pop();
407
+ if (!e) break;
408
+ x(e) ? t.push(e) : e.child && n.push(e.child), e.sibling && n.push(e.sibling);
409
+ }
410
+ return t;
411
+ };
412
+ function j(e, t, n = !1) {
413
+ if (!e) return null;
414
+ let r = t(e);
415
+ if (r instanceof Promise) return (async () => {
416
+ if (await r === !0) return e;
417
+ let i = n ? e.return : e.child;
418
+ for (; i;) {
419
+ let e = await N(i, t, n);
420
+ if (e) return e;
421
+ i = n ? null : i.sibling;
422
+ }
423
+ return null;
424
+ })();
425
+ if (r === !0) return e;
426
+ let i = n ? e.return : e.child;
427
+ for (; i;) {
428
+ let e = M(i, t, n);
429
+ if (e) return e;
430
+ i = n ? null : i.sibling;
431
+ }
432
+ return null;
433
+ }
434
+ const M = (e, t, n = !1) => {
435
+ if (!e) return null;
436
+ if (t(e) === !0) return e;
437
+ let r = n ? e.return : e.child;
438
+ for (; r;) {
439
+ let e = M(r, t, n);
440
+ if (e) return e;
441
+ r = n ? null : r.sibling;
442
+ }
443
+ return null;
444
+ }, N = async (e, t, n = !1) => {
445
+ if (!e) return null;
446
+ if (await t(e) === !0) return e;
447
+ let r = n ? e.return : e.child;
448
+ for (; r;) {
449
+ let e = await N(r, t, n);
450
+ if (e) return e;
451
+ r = n ? null : r.sibling;
452
+ }
453
+ return null;
454
+ }, Se = (e) => {
455
+ let t = e?.actualDuration ?? 0, n = t, r = e?.child ?? null;
456
+ for (; t > 0 && r != null;) n -= r.actualDuration ?? 0, r = r.sibling;
457
+ return {
458
+ selfTime: n,
459
+ totalTime: t
460
+ };
461
+ }, Ce = (e) => !!e.updateQueue?.memoCache, P = (e) => {
462
+ let t = e;
463
+ return typeof t == `function` ? t : typeof t == `object` && t ? P(t.type || t.render) : null;
464
+ }, we = (e) => {
465
+ let t = e;
466
+ if (typeof t == `string`) return t;
467
+ if (typeof t != `function` && !(typeof t == `object` && t)) return null;
468
+ let n = t.displayName || t.name || null;
469
+ if (n) return n;
470
+ let r = P(t);
471
+ return r && (r.displayName || r.name) || null;
472
+ }, F = (e) => {
473
+ try {
474
+ if (typeof e.version == `string` && e.bundleType > 0) return `development`;
475
+ } catch {}
476
+ return `production`;
477
+ }, Te = () => {
478
+ let e = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
479
+ return !!e?._instrumentationIsActive || o(e) || l(e);
480
+ }, Ee = (e) => {
481
+ let t = e.alternate;
482
+ if (!t) return e;
483
+ if (t.actualStartTime && e.actualStartTime) return t.actualStartTime > e.actualStartTime ? t : e;
484
+ for (let t of $) {
485
+ let n = j(t.current, (t) => {
486
+ if (t === e) return !0;
487
+ });
488
+ if (n) return n;
489
+ }
490
+ return e;
491
+ };
492
+ let G = null, K = null, q = null;
493
+ const J = () => {
494
+ if (!m$1()) return null;
495
+ let e = h$1();
496
+ if (!e?.renderers) return null;
497
+ if (G || K || q) return {
498
+ overrideContext: q,
499
+ overrideHookState: K,
500
+ overrideProps: G
501
+ };
502
+ for (let [, t] of Array.from(e.renderers)) try {
503
+ if (K) {
504
+ let e = K;
505
+ K = (n, r, i, a) => {
506
+ let o = n.memoizedState;
507
+ for (let e = 0; e < Number(r) && o?.next; e++) o = o.next;
508
+ if (o?.queue) {
509
+ let e = o.queue;
510
+ if (Y(e) && `dispatch` in e) {
511
+ let t = e.dispatch;
512
+ t(a);
513
+ return;
514
+ }
515
+ }
516
+ e(n, r, i, a), t.overrideHookState?.(n, r, i, a);
517
+ };
518
+ } else t.overrideHookState && (K = t.overrideHookState);
519
+ if (G) {
520
+ let e = G;
521
+ G = (n, r, i) => {
522
+ e(n, r, i), t.overrideProps?.(n, r, i);
523
+ };
524
+ } else t.overrideProps && (G = t.overrideProps);
525
+ q = (e, t, n, r) => {
526
+ let i = e;
527
+ for (; i;) {
528
+ let e = i.type;
529
+ if (e === t || e?.Provider === t) {
530
+ G && (G(i, [`value`, ...n], r), i.alternate && G(i.alternate, [`value`, ...n], r));
531
+ break;
532
+ }
533
+ i = i.return;
534
+ }
535
+ };
536
+ } catch {}
537
+ }, Y = (e) => Object.prototype.toString.call(e) === `[object Object]` && (Object.getPrototypeOf(e) === Object.prototype || Object.getPrototypeOf(e) === null), X = (e, t = []) => {
538
+ if (!Y(e)) return [{
539
+ path: t,
540
+ value: e
541
+ }];
542
+ let n = [];
543
+ for (let r in e) {
544
+ let i = e[r], a = t.concat(r);
545
+ Y(i) ? n.push(...X(i, a)) : n.push({
546
+ path: a,
547
+ value: i
548
+ });
549
+ }
550
+ return n;
551
+ }, ke = (e, t) => {
552
+ J();
553
+ let n = X(t);
554
+ for (let { path: t, value: r } of n) try {
555
+ G?.(e, t, r);
556
+ } catch {}
557
+ }, Ae = (e, t, n) => {
558
+ J();
559
+ let r = String(t);
560
+ if (Y(n)) {
561
+ let t = X(n);
562
+ for (let { path: n, value: i } of t) try {
563
+ K?.(e, r, n, i);
564
+ } catch {}
565
+ } else try {
566
+ K?.(e, r, [], n);
567
+ } catch {}
568
+ }, je = (e, t, n) => {
569
+ if (J(), Y(n)) {
570
+ let r = X(n);
571
+ for (let { path: n, value: i } of r) try {
572
+ q?.(e, t, n, i);
573
+ } catch {}
574
+ } else try {
575
+ q?.(e, t, [], n);
576
+ } catch {}
577
+ }, Me = (e) => {
578
+ let t$1 = h$1(e.onActive);
579
+ t$1._instrumentationSource = e.name ?? t;
580
+ let n = t$1.onCommitFiberRoot;
581
+ if (e.onCommitFiberRoot) {
582
+ let r = (t, i, a) => {
583
+ n !== r && (n?.(t, i, a), e.onCommitFiberRoot?.(t, i, a));
584
+ };
585
+ t$1.onCommitFiberRoot = r;
586
+ }
587
+ let r = t$1.onCommitFiberUnmount;
588
+ if (e.onCommitFiberUnmount) {
589
+ let n = (i, a) => {
590
+ t$1.onCommitFiberUnmount === n && (r?.(i, a), e.onCommitFiberUnmount?.(i, a));
591
+ };
592
+ t$1.onCommitFiberUnmount = n;
593
+ }
594
+ let i = t$1.onPostCommitFiberRoot;
595
+ if (e.onPostCommitFiberRoot) {
596
+ let n = (r, a) => {
597
+ t$1.onPostCommitFiberRoot === n && (i?.(r, a), e.onPostCommitFiberRoot?.(r, a));
598
+ };
599
+ t$1.onPostCommitFiberRoot = n;
600
+ }
601
+ return t$1;
602
+ }, Z = (e) => {
603
+ let t = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
604
+ if (t?.renderers) for (let n of t.renderers.values()) try {
605
+ let t = n.findFiberByHostInstance?.(e);
606
+ if (t) return t;
607
+ } catch {}
608
+ if (typeof e == `object` && e) {
609
+ if (`_reactRootContainer` in e) return e._reactRootContainer?._internalRoot?.current?.child;
610
+ for (let t in e) if (t.startsWith(`__reactContainer$`) || t.startsWith(`__reactInternalInstance$`) || t.startsWith(`__reactFiber`)) return e[t] || null;
611
+ }
612
+ return null;
613
+ }, Q = Error(), $ = /* @__PURE__ */ new Set(), Ne = (e, n = {}) => {
614
+ let i = e.onActive, a = m$1(), o$1 = o(), l$1 = l(), u, d = !n.isProduction;
615
+ return e.onActive = () => {
616
+ clearTimeout(u);
617
+ let t = !0;
618
+ try {
619
+ let e = h$1();
620
+ for (let r of e.renderers.values()) {
621
+ let [e] = r.version.split(`.`);
622
+ Number(e) < (n.minReactMajorVersion ?? 17) && (t = !1), F(r) === `development` ? d = !0 : n.dangerouslyRunInProduction || (t = !1);
623
+ }
624
+ } catch (e) {
625
+ n.onError?.(e);
626
+ }
627
+ if (!t) {
628
+ e.onCommitFiberRoot = void 0, e.onCommitFiberUnmount = void 0, e.onPostCommitFiberRoot = void 0, e.onActive = void 0;
629
+ return;
630
+ }
631
+ i?.();
632
+ try {
633
+ let t = e.onCommitFiberRoot;
634
+ t && (e.onCommitFiberRoot = (e, r, i) => {
635
+ $.has(r) || $.add(r);
636
+ try {
637
+ t(e, r, i);
638
+ } catch (e) {
639
+ n.onError?.(e);
640
+ }
641
+ });
642
+ let r = e.onCommitFiberUnmount;
643
+ r && (e.onCommitFiberUnmount = (e, t) => {
644
+ try {
645
+ r(e, t);
646
+ } catch (e) {
647
+ n.onError?.(e);
648
+ }
649
+ });
650
+ let i = e.onPostCommitFiberRoot;
651
+ i && (e.onPostCommitFiberRoot = (e, t) => {
652
+ try {
653
+ i(e, t);
654
+ } catch (e) {
655
+ n.onError?.(e);
656
+ }
657
+ });
658
+ } catch (e) {
659
+ n.onError?.(e);
660
+ }
661
+ }, !a && !o$1 && !l$1 && (u = setTimeout(() => {
662
+ d && n.onError?.(Q), stop();
663
+ }, n.installCheckTimeout ?? 100)), e;
664
+ };
665
+
666
+ //#endregion
667
+ //#region ../../node_modules/.pnpm/bippy@0.5.34_react@19.2.3/node_modules/bippy/dist/index.js
668
+ /**
669
+ * @license bippy
670
+ *
671
+ * Copyright (c) Aiden Bai
672
+ *
673
+ * This source code is licensed under the MIT license found in the
674
+ * LICENSE file in the root directory of this source tree.
675
+ */
676
+
677
+ //#endregion
678
+ //#region src/utils/truncate-string.ts
679
+ const truncateString = (text, maxLength) => text.length > maxLength ? `${text.slice(0, maxLength)}...` : text;
680
+
681
+ //#endregion
682
+ //#region src/utils/get-next-base-path.ts
683
+ let cachedNextBasePath;
684
+ const getNextBasePath = () => {
685
+ if (cachedNextBasePath !== void 0) return cachedNextBasePath;
686
+ const source = document.querySelector("script[src*=\"/_next/\"]")?.src;
687
+ const pathname = source ? new URL(source).pathname : "";
688
+ const assetPathIndex = pathname.indexOf("/_next/");
689
+ cachedNextBasePath = assetPathIndex > 0 ? pathname.slice(0, assetPathIndex) : "";
690
+ return cachedNextBasePath;
691
+ };
692
+
693
+ //#endregion
694
+ //#region src/core/context.ts
695
+ const NON_COMPONENT_PREFIXES = new Set([
696
+ "_",
697
+ "$",
698
+ "motion.",
699
+ "styled.",
700
+ "chakra.",
701
+ "ark.",
702
+ "Primitive.",
703
+ "Slot."
704
+ ]);
705
+ const NEXT_INTERNAL_COMPONENT_NAMES = new Set([
706
+ "InnerLayoutRouter",
707
+ "RedirectErrorBoundary",
708
+ "RedirectBoundary",
709
+ "HTTPAccessFallbackErrorBoundary",
710
+ "HTTPAccessFallbackBoundary",
711
+ "LoadingBoundary",
712
+ "ErrorBoundary",
713
+ "InnerScrollAndFocusHandler",
714
+ "ScrollAndFocusHandler",
715
+ "RenderFromTemplateContext",
716
+ "OuterLayoutRouter",
717
+ "body",
718
+ "html",
719
+ "DevRootHTTPAccessFallbackBoundary",
720
+ "AppDevOverlayErrorBoundary",
721
+ "AppDevOverlay",
722
+ "HotReload",
723
+ "Router",
724
+ "ErrorBoundaryHandler",
725
+ "AppRouter",
726
+ "ServerRoot",
727
+ "SegmentStateProvider",
728
+ "RootErrorBoundary",
729
+ "LoadableComponent",
730
+ "MotionDOMComponent"
731
+ ]);
732
+ const REACT_INTERNAL_COMPONENT_NAMES = new Set([
733
+ "Suspense",
734
+ "Fragment",
735
+ "StrictMode",
736
+ "Profiler",
737
+ "SuspenseList"
738
+ ]);
739
+ let cachedIsNextProject;
740
+ const checkIsNextProject = (revalidate) => {
741
+ if (revalidate) cachedIsNextProject = void 0;
742
+ cachedIsNextProject ??= typeof document !== "undefined" && Boolean(document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal"));
743
+ return cachedIsNextProject;
744
+ };
745
+ const isInternalComponentName = (name) => {
746
+ if (NEXT_INTERNAL_COMPONENT_NAMES.has(name)) return true;
747
+ if (REACT_INTERNAL_COMPONENT_NAMES.has(name)) return true;
748
+ for (const prefix of NON_COMPONENT_PREFIXES) if (name.startsWith(prefix)) return true;
749
+ return false;
750
+ };
751
+ const isUsefulComponentName = (name) => {
752
+ if (!name) return false;
753
+ if (isInternalComponentName(name)) return false;
754
+ if (name === "SlotClone" || name === "Slot") return false;
755
+ return true;
756
+ };
757
+ const isSourceComponentName = (name) => {
758
+ if (name.length <= 1) return false;
759
+ if (isInternalComponentName(name)) return false;
760
+ if (name[0] !== name[0].toUpperCase()) return false;
761
+ if (name.endsWith("Provider") || name.endsWith("Context")) return false;
762
+ return true;
763
+ };
764
+ const SERVER_COMPONENT_URL_PREFIXES = ["about://React/", "rsc://React/"];
765
+ const isServerComponentUrl = (url) => SERVER_COMPONENT_URL_PREFIXES.some((prefix) => url.startsWith(prefix));
766
+ const devirtualizeServerUrl = (url) => {
767
+ for (const prefix of SERVER_COMPONENT_URL_PREFIXES) {
768
+ if (!url.startsWith(prefix)) continue;
769
+ const environmentEndIndex = url.indexOf("/", prefix.length);
770
+ const querySuffixIndex = url.lastIndexOf("?");
771
+ if (environmentEndIndex > -1 && querySuffixIndex > -1) return decodeURI(url.slice(environmentEndIndex + 1, querySuffixIndex));
772
+ }
773
+ return url;
774
+ };
775
+ const symbolicateServerFrames = async (frames) => {
776
+ const serverFrameIndices = [];
777
+ const requestFrames = [];
778
+ for (let frameIndex = 0; frameIndex < frames.length; frameIndex++) {
779
+ const frame = frames[frameIndex];
780
+ if (!frame.isServer || !frame.fileName) continue;
781
+ serverFrameIndices.push(frameIndex);
782
+ requestFrames.push({
783
+ file: devirtualizeServerUrl(frame.fileName),
784
+ methodName: frame.functionName ?? "<unknown>",
785
+ line1: frame.lineNumber ?? null,
786
+ column1: frame.columnNumber ?? null,
787
+ arguments: []
788
+ });
789
+ }
790
+ if (requestFrames.length === 0) return frames;
791
+ const controller = new AbortController();
792
+ const timeout = setTimeout(() => controller.abort(), SYMBOLICATION_TIMEOUT_MS);
793
+ try {
794
+ const response = await fetch(`${getNextBasePath()}/__nextjs_original-stack-frames`, {
795
+ method: "POST",
796
+ headers: { "Content-Type": "application/json" },
797
+ body: JSON.stringify({
798
+ frames: requestFrames,
799
+ isServer: true,
800
+ isEdgeServer: false,
801
+ isAppDirectory: true
802
+ }),
803
+ signal: controller.signal
804
+ });
805
+ if (!response.ok) return frames;
806
+ const results = await response.json();
807
+ const resolvedFrames = [...frames];
808
+ for (let resultIndex = 0; resultIndex < serverFrameIndices.length; resultIndex++) {
809
+ const result = results[resultIndex];
810
+ if (result?.status !== "fulfilled") continue;
811
+ const resolved = result.value?.originalStackFrame;
812
+ if (!resolved?.file || resolved.ignored) continue;
813
+ const originalFrameIndex = serverFrameIndices[resultIndex];
814
+ resolvedFrames[originalFrameIndex] = {
815
+ ...frames[originalFrameIndex],
816
+ fileName: resolved.file,
817
+ lineNumber: resolved.line1 ?? void 0,
818
+ columnNumber: resolved.column1 ?? void 0,
819
+ isSymbolicated: true
820
+ };
821
+ }
822
+ return resolvedFrames;
823
+ } catch {
824
+ return frames;
825
+ } finally {
826
+ clearTimeout(timeout);
827
+ }
828
+ };
829
+ const extractServerFramesFromDebugStack = (rootFiber) => {
830
+ const serverFramesByName = /* @__PURE__ */ new Map();
831
+ j(rootFiber, (currentFiber) => {
832
+ if (!(0, bippy_source.hasDebugStack)(currentFiber)) return false;
833
+ const ownerStack = (0, bippy_source.formatOwnerStack)(currentFiber._debugStack.stack);
834
+ if (!ownerStack) return false;
835
+ for (const frame of (0, bippy_source.parseStack)(ownerStack)) {
836
+ if (!frame.functionName || !frame.fileName) continue;
837
+ if (!isServerComponentUrl(frame.fileName)) continue;
838
+ if (serverFramesByName.has(frame.functionName)) continue;
839
+ serverFramesByName.set(frame.functionName, {
840
+ ...frame,
841
+ isServer: true
842
+ });
843
+ }
844
+ return false;
845
+ }, true);
846
+ return serverFramesByName;
847
+ };
848
+ const enrichServerFrameLocations = (rootFiber, frames) => {
849
+ if (!frames.some((frame) => frame.isServer && !frame.fileName && frame.functionName)) return frames;
850
+ const serverFramesByName = extractServerFramesFromDebugStack(rootFiber);
851
+ if (serverFramesByName.size === 0) return frames;
852
+ return frames.map((frame) => {
853
+ if (!frame.isServer || frame.fileName || !frame.functionName) return frame;
854
+ const resolved = serverFramesByName.get(frame.functionName);
855
+ if (!resolved) return frame;
856
+ return {
857
+ ...frame,
858
+ fileName: resolved.fileName,
859
+ lineNumber: resolved.lineNumber,
860
+ columnNumber: resolved.columnNumber
861
+ };
862
+ });
863
+ };
864
+ const findNearestFiberElement = (element) => {
865
+ if (!Te()) return element;
866
+ let current = element;
867
+ while (current) {
868
+ if (Z(current)) return current;
869
+ current = current.parentElement;
870
+ }
871
+ return element;
872
+ };
873
+ const stackCache = /* @__PURE__ */ new WeakMap();
874
+ const fetchStackForElement = async (element) => {
875
+ try {
876
+ const fiber = Z(element);
877
+ if (!fiber) return null;
878
+ const frames = await (0, bippy_source.getOwnerStack)(fiber);
879
+ if (checkIsNextProject()) return await symbolicateServerFrames(enrichServerFrameLocations(fiber, frames));
880
+ return frames;
881
+ } catch {
882
+ return null;
883
+ }
884
+ };
885
+ const getStack = (element) => {
886
+ if (!Te()) return Promise.resolve([]);
887
+ const resolvedElement = findNearestFiberElement(element);
888
+ const cached = stackCache.get(resolvedElement);
889
+ if (cached) return cached;
890
+ const promise = fetchStackForElement(resolvedElement);
891
+ stackCache.set(resolvedElement, promise);
892
+ return promise;
893
+ };
894
+ const getNearestComponentName = async (element) => {
895
+ if (!Te()) return null;
896
+ const stack = await getStack(element);
897
+ if (!stack) return null;
898
+ for (const frame of stack) if (frame.functionName && isSourceComponentName(frame.functionName)) return frame.functionName;
899
+ return null;
900
+ };
901
+ const resolveSource = async (element) => {
902
+ const stack = await getStack(findNearestFiberElement(element));
903
+ if (!stack || stack.length === 0) return null;
904
+ const sourceFrames = stack.filter((frame) => frame.fileName && (0, bippy_source.isSourceFile)(frame.fileName));
905
+ const resolvedFrame = sourceFrames.find((frame) => frame.functionName && isSourceComponentName(frame.functionName)) ?? sourceFrames[0];
906
+ if (!resolvedFrame?.fileName) return null;
907
+ return {
908
+ filePath: (0, bippy_source.normalizeFileName)(resolvedFrame.fileName),
909
+ lineNumber: resolvedFrame.lineNumber ?? null,
910
+ columnNumber: resolvedFrame.columnNumber ?? null,
911
+ componentName: resolvedFrame.functionName && isSourceComponentName(resolvedFrame.functionName) ? resolvedFrame.functionName : null
912
+ };
913
+ };
914
+ const getComponentDisplayName = (element) => {
915
+ if (!Te()) return null;
916
+ const fiber = Z(findNearestFiberElement(element));
917
+ if (!fiber) return null;
918
+ let currentFiber = fiber.return;
919
+ while (currentFiber) {
920
+ if (ve(currentFiber)) {
921
+ const name = we(currentFiber.type);
922
+ if (name && isUsefulComponentName(name)) return name;
923
+ }
924
+ currentFiber = currentFiber.return;
925
+ }
926
+ return null;
927
+ };
928
+ const hasFormattableFrames = (stack) => {
929
+ if (!stack) return false;
930
+ return stack.some((frame) => {
931
+ if (frame.fileName && (0, bippy_source.isSourceFile)(frame.fileName)) return true;
932
+ if (frame.isServer && (!frame.functionName || isSourceComponentName(frame.functionName))) return true;
933
+ return false;
934
+ });
935
+ };
936
+ const getComponentNamesFromFiber = (element, maxCount) => {
937
+ if (!Te()) return [];
938
+ const fiber = Z(element);
939
+ if (!fiber) return [];
940
+ const componentNames = [];
941
+ j(fiber, (currentFiber) => {
942
+ if (componentNames.length >= maxCount) return true;
943
+ if (ve(currentFiber)) {
944
+ const name = we(currentFiber.type);
945
+ if (name && isUsefulComponentName(name)) componentNames.push(name);
946
+ }
947
+ return false;
948
+ }, true);
949
+ return componentNames;
950
+ };
951
+ const formatStackContext = (stack, options = {}) => {
952
+ const { maxLines = 3 } = options;
953
+ const isNextProject = checkIsNextProject();
954
+ const formattedLines = [];
955
+ for (const frame of stack) {
956
+ if (formattedLines.length >= maxLines) break;
957
+ const hasResolvedSource = frame.fileName && (0, bippy_source.isSourceFile)(frame.fileName);
958
+ if (frame.isServer && !hasResolvedSource && (!frame.functionName || isSourceComponentName(frame.functionName))) {
959
+ formattedLines.push(`\n in ${frame.functionName || "<anonymous>"} (at Server)`);
960
+ continue;
961
+ }
962
+ if (hasResolvedSource) {
963
+ let line = "\n in ";
964
+ const hasComponentName = frame.functionName && isSourceComponentName(frame.functionName);
965
+ if (hasComponentName) line += `${frame.functionName} (at `;
966
+ line += (0, bippy_source.normalizeFileName)(frame.fileName);
967
+ if (isNextProject && frame.lineNumber) {
968
+ line += `:${frame.lineNumber}`;
969
+ if (frame.columnNumber) line += `:${frame.columnNumber}`;
970
+ }
971
+ if (hasComponentName) line += `)`;
972
+ formattedLines.push(line);
973
+ }
974
+ }
975
+ return formattedLines.join("");
976
+ };
977
+ const getStackContext = async (element, options = {}) => {
978
+ const maxLines = options.maxLines ?? 3;
979
+ const stack = await getStack(element);
980
+ if (stack && hasFormattableFrames(stack)) return formatStackContext(stack, options);
981
+ const componentNames = getComponentNamesFromFiber(element, maxLines);
982
+ if (componentNames.length > 0) return componentNames.map((name) => `\n in ${name}`).join("");
983
+ return "";
984
+ };
985
+ const getElementContext = async (element, options = {}) => {
986
+ const resolvedElement = findNearestFiberElement(element);
987
+ const html = getHTMLPreview(resolvedElement);
988
+ const stackContext = await getStackContext(resolvedElement, options);
989
+ if (stackContext) return `${html}${stackContext}`;
990
+ return getFallbackContext(resolvedElement);
991
+ };
992
+ const getFallbackContext = (element) => {
993
+ const tagName = getTagName(element);
994
+ if (!(element instanceof HTMLElement)) return `<${tagName}${formatPriorityAttrs(element, {
995
+ truncate: false,
996
+ maxAttrs: PREVIEW_PRIORITY_ATTRS.length
997
+ })} />`;
998
+ const text = element.innerText?.trim() ?? element.textContent?.trim() ?? "";
999
+ let attrsText = "";
1000
+ for (const { name, value } of element.attributes) attrsText += ` ${name}="${value}"`;
1001
+ const truncatedText = truncateString(text, 100);
1002
+ if (truncatedText.length > 0) return `<${tagName}${attrsText}>\n ${truncatedText}\n</${tagName}>`;
1003
+ return `<${tagName}${attrsText} />`;
1004
+ };
1005
+ const truncateAttrValue = (value) => truncateString(value, 15);
1006
+ const formatPriorityAttrs = (element, options = {}) => {
1007
+ const { truncate = true, maxAttrs = 3 } = options;
1008
+ const priorityAttrs = [];
1009
+ for (const name of PREVIEW_PRIORITY_ATTRS) {
1010
+ if (priorityAttrs.length >= maxAttrs) break;
1011
+ const value = element.getAttribute(name);
1012
+ if (value) {
1013
+ const formattedValue = truncate ? truncateAttrValue(value) : value;
1014
+ priorityAttrs.push(`${name}="${formattedValue}"`);
1015
+ }
1016
+ }
1017
+ return priorityAttrs.length > 0 ? ` ${priorityAttrs.join(" ")}` : "";
1018
+ };
1019
+ const getHTMLPreview = (element) => {
1020
+ const tagName = getTagName(element);
1021
+ const text = element instanceof HTMLElement ? element.innerText?.trim() ?? element.textContent?.trim() ?? "" : element.textContent?.trim() ?? "";
1022
+ let attrsText = "";
1023
+ for (const { name, value } of element.attributes) attrsText += ` ${name}="${truncateAttrValue(value)}"`;
1024
+ const topElements = [];
1025
+ const bottomElements = [];
1026
+ let foundFirstText = false;
1027
+ const childNodes = Array.from(element.childNodes);
1028
+ for (const node of childNodes) {
1029
+ if (node.nodeType === Node.COMMENT_NODE) continue;
1030
+ if (node.nodeType === Node.TEXT_NODE) {
1031
+ if (node.textContent && node.textContent.trim().length > 0) foundFirstText = true;
1032
+ } else if (node instanceof Element) if (!foundFirstText) topElements.push(node);
1033
+ else bottomElements.push(node);
1034
+ }
1035
+ const formatElements = (elements) => {
1036
+ if (elements.length === 0) return "";
1037
+ if (elements.length <= 2) return elements.map((childElement) => `<${getTagName(childElement)} ...>`).join("\n ");
1038
+ return `(${elements.length} elements)`;
1039
+ };
1040
+ let content = "";
1041
+ const topElementsStr = formatElements(topElements);
1042
+ if (topElementsStr) content += `\n ${topElementsStr}`;
1043
+ if (text.length > 0) content += `\n ${truncateString(text, 100)}`;
1044
+ const bottomElementsStr = formatElements(bottomElements);
1045
+ if (bottomElementsStr) content += `\n ${bottomElementsStr}`;
1046
+ if (content.length > 0) return `<${tagName}${attrsText}>${content}\n</${tagName}>`;
1047
+ return `<${tagName}${attrsText} />`;
1048
+ };
1049
+
1050
+ //#endregion
1051
+ //#region src/utils/is-element-visible.ts
1052
+ const isElementVisible = (element, computedStyle = window.getComputedStyle(element)) => {
1053
+ return computedStyle.display !== "none" && computedStyle.visibility !== "hidden" && computedStyle.opacity !== "0";
1054
+ };
1055
+
1056
+ //#endregion
1057
+ //#region src/utils/is-root-element.ts
1058
+ const isRootElement = (element) => {
1059
+ const tagName = getTagName(element);
1060
+ return tagName === "html" || tagName === "body";
1061
+ };
1062
+
1063
+ //#endregion
1064
+ //#region src/utils/is-valid-grabbable-element.ts
1065
+ const isReactGrabElement = (element) => {
1066
+ if (element.hasAttribute("data-react-grab")) return true;
1067
+ const rootNode = element.getRootNode();
1068
+ return rootNode instanceof ShadowRoot && rootNode.host.hasAttribute("data-react-grab");
1069
+ };
1070
+ const isUserIgnoredElement = (element) => element.hasAttribute("data-react-grab-ignore") || element.closest(`[${"data-react-grab-ignore"}]`) !== null;
1071
+ const isDevToolsOverlay = (computedStyle) => {
1072
+ const zIndex = parseInt(computedStyle.zIndex, 10);
1073
+ return computedStyle.pointerEvents === "none" && computedStyle.position === "fixed" && !isNaN(zIndex) && zIndex >= 2147483600;
1074
+ };
1075
+ const isFullViewportOverlay = (element, computedStyle) => {
1076
+ const position = computedStyle.position;
1077
+ if (position !== "fixed" && position !== "absolute") return false;
1078
+ const rect = element.getBoundingClientRect();
1079
+ if (!(rect.width / window.innerWidth >= .9 && rect.height / window.innerHeight >= .9)) return false;
1080
+ const backgroundColor = computedStyle.backgroundColor;
1081
+ if (backgroundColor === "transparent" || backgroundColor === "rgba(0, 0, 0, 0)" || parseFloat(computedStyle.opacity) < .1) return true;
1082
+ const zIndex = parseInt(computedStyle.zIndex, 10);
1083
+ return !isNaN(zIndex) && zIndex > 1e3;
1084
+ };
1085
+ let visibilityCache = /* @__PURE__ */ new WeakMap();
1086
+ const clearVisibilityCache = () => {
1087
+ visibilityCache = /* @__PURE__ */ new WeakMap();
1088
+ };
1089
+ const isValidGrabbableElement = (element) => {
1090
+ if (isRootElement(element)) return false;
1091
+ if (isReactGrabElement(element)) return false;
1092
+ if (isUserIgnoredElement(element)) return false;
1093
+ const now = performance.now();
1094
+ const cached = visibilityCache.get(element);
1095
+ if (cached && now - cached.timestamp < 50) return cached.isVisible;
1096
+ const computedStyle = window.getComputedStyle(element);
1097
+ if (!isElementVisible(element, computedStyle)) {
1098
+ visibilityCache.set(element, {
1099
+ isVisible: false,
1100
+ timestamp: now
1101
+ });
1102
+ return false;
1103
+ }
1104
+ if (element.clientWidth / window.innerWidth >= .9 && element.clientHeight / window.innerHeight >= .9) {
1105
+ if (isDevToolsOverlay(computedStyle)) return false;
1106
+ if (isFullViewportOverlay(element, computedStyle)) return false;
1107
+ }
1108
+ visibilityCache.set(element, {
1109
+ isVisible: true,
1110
+ timestamp: now
1111
+ });
1112
+ return true;
1113
+ };
1114
+
1115
+ //#endregion
1116
+ //#region src/utils/create-style-element.ts
1117
+ const createStyleElement = (attribute, content) => {
1118
+ const element = document.createElement("style");
1119
+ element.setAttribute(attribute, "");
1120
+ element.textContent = content;
1121
+ document.head.appendChild(element);
1122
+ return element;
1123
+ };
1124
+
1125
+ //#endregion
1126
+ //#region src/utils/freeze-pseudo-states.ts
1127
+ const POINTER_EVENTS_STYLES = "html { pointer-events: none !important; }";
1128
+ const MOUSE_EVENTS_TO_BLOCK = [
1129
+ "mouseenter",
1130
+ "mouseleave",
1131
+ "mouseover",
1132
+ "mouseout",
1133
+ "pointerenter",
1134
+ "pointerleave",
1135
+ "pointerover",
1136
+ "pointerout"
1137
+ ];
1138
+ const FOCUS_EVENTS_TO_BLOCK = [
1139
+ "focus",
1140
+ "blur",
1141
+ "focusin",
1142
+ "focusout"
1143
+ ];
1144
+ const HOVER_STYLE_PROPERTIES = [
1145
+ "background-color",
1146
+ "color",
1147
+ "border-color",
1148
+ "box-shadow",
1149
+ "transform",
1150
+ "opacity",
1151
+ "outline",
1152
+ "filter",
1153
+ "scale",
1154
+ "visibility"
1155
+ ];
1156
+ const FOCUS_STYLE_PROPERTIES = [
1157
+ "background-color",
1158
+ "color",
1159
+ "border-color",
1160
+ "box-shadow",
1161
+ "outline",
1162
+ "outline-offset",
1163
+ "outline-width",
1164
+ "outline-color",
1165
+ "outline-style",
1166
+ "filter",
1167
+ "opacity",
1168
+ "ring-color",
1169
+ "ring-width"
1170
+ ];
1171
+ const frozenHoverElements = /* @__PURE__ */ new Map();
1172
+ const frozenFocusElements = /* @__PURE__ */ new Map();
1173
+ let pointerEventsStyle = null;
1174
+ const stopEvent = (event) => {
1175
+ event.stopImmediatePropagation();
1176
+ };
1177
+ const preventFocusChange = (event) => {
1178
+ event.preventDefault();
1179
+ event.stopImmediatePropagation();
1180
+ };
1181
+ const collectOriginalPropertyValues = (element, properties) => {
1182
+ const originalPropertyValues = /* @__PURE__ */ new Map();
1183
+ for (const prop of properties) {
1184
+ const inlineValue = element.style.getPropertyValue(prop);
1185
+ if (inlineValue) originalPropertyValues.set(prop, inlineValue);
1186
+ }
1187
+ return originalPropertyValues;
1188
+ };
1189
+ const collectPseudoStates = (selector, properties, alreadyFrozen) => {
1190
+ const elementsToFreeze = [];
1191
+ for (const element of document.querySelectorAll(selector)) {
1192
+ if (!(element instanceof HTMLElement)) continue;
1193
+ if (alreadyFrozen?.has(element)) continue;
1194
+ const computed = getComputedStyle(element);
1195
+ let frozenStyles = element.style.cssText;
1196
+ const originalPropertyValues = collectOriginalPropertyValues(element, properties);
1197
+ for (const prop of properties) {
1198
+ const computedValue = computed.getPropertyValue(prop);
1199
+ if (computedValue) frozenStyles += `${prop}: ${computedValue} !important; `;
1200
+ }
1201
+ elementsToFreeze.push({
1202
+ element,
1203
+ frozenStyles,
1204
+ originalPropertyValues
1205
+ });
1206
+ }
1207
+ return elementsToFreeze;
1208
+ };
1209
+ const applyFrozenStates = (states, storageMap) => {
1210
+ for (const { element, frozenStyles, originalPropertyValues } of states) {
1211
+ storageMap.set(element, originalPropertyValues);
1212
+ element.style.cssText = frozenStyles;
1213
+ }
1214
+ };
1215
+ const restoreFrozenStates = (storageMap, styleProperties) => {
1216
+ for (const [element, originalPropertyValues] of storageMap) for (const prop of styleProperties) {
1217
+ const originalValue = originalPropertyValues.get(prop);
1218
+ if (originalValue) element.style.setProperty(prop, originalValue);
1219
+ else element.style.removeProperty(prop);
1220
+ }
1221
+ storageMap.clear();
1222
+ };
1223
+ const suspendPointerEventsFreeze = () => {
1224
+ if (pointerEventsStyle) pointerEventsStyle.disabled = true;
1225
+ };
1226
+ const resumePointerEventsFreeze = () => {
1227
+ if (pointerEventsStyle) pointerEventsStyle.disabled = false;
1228
+ };
1229
+ const freezePseudoStates = () => {
1230
+ if (pointerEventsStyle) return;
1231
+ for (const eventType of MOUSE_EVENTS_TO_BLOCK) document.addEventListener(eventType, stopEvent, true);
1232
+ for (const eventType of FOCUS_EVENTS_TO_BLOCK) document.addEventListener(eventType, preventFocusChange, true);
1233
+ const hoverStates = collectPseudoStates(":hover", HOVER_STYLE_PROPERTIES);
1234
+ const focusStates = collectPseudoStates(":focus, :focus-visible", FOCUS_STYLE_PROPERTIES, frozenFocusElements);
1235
+ applyFrozenStates(hoverStates, frozenHoverElements);
1236
+ applyFrozenStates(focusStates, frozenFocusElements);
1237
+ pointerEventsStyle = createStyleElement("data-react-grab-frozen-pseudo", POINTER_EVENTS_STYLES);
1238
+ };
1239
+ const unfreezePseudoStates = () => {
1240
+ clearElementPositionCache();
1241
+ for (const eventType of MOUSE_EVENTS_TO_BLOCK) document.removeEventListener(eventType, stopEvent, true);
1242
+ for (const eventType of FOCUS_EVENTS_TO_BLOCK) document.removeEventListener(eventType, preventFocusChange, true);
1243
+ restoreFrozenStates(frozenHoverElements, HOVER_STYLE_PROPERTIES);
1244
+ restoreFrozenStates(frozenFocusElements, FOCUS_STYLE_PROPERTIES);
1245
+ pointerEventsStyle?.remove();
1246
+ pointerEventsStyle = null;
1247
+ };
1248
+
1249
+ //#endregion
1250
+ //#region src/utils/get-element-at-position.ts
1251
+ let cache = null;
1252
+ let resumeTimerId = null;
1253
+ const scheduleResume = () => {
1254
+ if (resumeTimerId !== null) clearTimeout(resumeTimerId);
1255
+ resumeTimerId = setTimeout(() => {
1256
+ resumeTimerId = null;
1257
+ resumePointerEventsFreeze();
1258
+ }, 100);
1259
+ };
1260
+ const cancelScheduledResume = () => {
1261
+ if (resumeTimerId !== null) {
1262
+ clearTimeout(resumeTimerId);
1263
+ resumeTimerId = null;
1264
+ }
1265
+ };
1266
+ const isWithinThreshold = (x1, y1, x2, y2) => {
1267
+ const deltaX = Math.abs(x1 - x2);
1268
+ const deltaY = Math.abs(y1 - y2);
1269
+ return deltaX <= 2 && deltaY <= 2;
1270
+ };
1271
+ const getElementsAtPoint = (clientX, clientY) => {
1272
+ cancelScheduledResume();
1273
+ suspendPointerEventsFreeze();
1274
+ const elements = document.elementsFromPoint(clientX, clientY);
1275
+ scheduleResume();
1276
+ return elements;
1277
+ };
1278
+ const getElementAtPosition = (clientX, clientY) => {
1279
+ const now = performance.now();
1280
+ if (cache) {
1281
+ const isPositionClose = isWithinThreshold(clientX, clientY, cache.clientX, cache.clientY);
1282
+ const isWithinThrottle = now - cache.timestamp < 16;
1283
+ if (isPositionClose || isWithinThrottle) return cache.element;
1284
+ }
1285
+ cancelScheduledResume();
1286
+ suspendPointerEventsFreeze();
1287
+ let result = null;
1288
+ const topElement = document.elementFromPoint(clientX, clientY);
1289
+ if (topElement && isValidGrabbableElement(topElement)) result = topElement;
1290
+ else {
1291
+ const elementsAtPoint = document.elementsFromPoint(clientX, clientY);
1292
+ for (const candidateElement of elementsAtPoint) if (candidateElement !== topElement && isValidGrabbableElement(candidateElement)) {
1293
+ result = candidateElement;
1294
+ break;
1295
+ }
1296
+ }
1297
+ scheduleResume();
1298
+ cache = {
1299
+ clientX,
1300
+ clientY,
1301
+ element: result,
1302
+ timestamp: now
1303
+ };
1304
+ return result;
1305
+ };
1306
+ const clearElementPositionCache = () => {
1307
+ cancelScheduledResume();
1308
+ resumePointerEventsFreeze();
1309
+ cache = null;
1310
+ };
1311
+
1312
+ //#endregion
1313
+ //#region src/utils/open-file.ts
1314
+ const OPEN_FILE_BASE_URL = "http://localhost:3000";
1315
+ const tryDevServerOpen = async (filePath, lineNumber) => {
1316
+ const isNextProject = checkIsNextProject();
1317
+ const params = new URLSearchParams({ file: filePath });
1318
+ const lineKey = isNextProject ? "line1" : "line";
1319
+ const columnKey = isNextProject ? "column1" : "column";
1320
+ if (lineNumber) params.set(lineKey, String(lineNumber));
1321
+ params.set(columnKey, "1");
1322
+ const endpoint = isNextProject ? `${getNextBasePath()}/__nextjs_launch-editor` : "/__open-in-editor";
1323
+ return (await fetch(`${endpoint}?${params}`)).ok;
1324
+ };
1325
+ const openFile = async (filePath, lineNumber, transformUrl) => {
1326
+ filePath = (0, bippy_source.normalizeFileName)(filePath);
1327
+ if (await tryDevServerOpen(filePath, lineNumber).catch(() => false)) return;
1328
+ const lineParam = lineNumber ? `&line=${lineNumber}` : "";
1329
+ const rawUrl = `${OPEN_FILE_BASE_URL}/open-file?url=${encodeURIComponent(filePath)}${lineParam}`;
1330
+ const url = transformUrl ? transformUrl(rawUrl, filePath, lineNumber) : rawUrl;
1331
+ window.open(url, "_blank", "noopener,noreferrer");
1332
+ };
1333
+
1334
+ //#endregion
1335
+ //#region src/utils/freeze-gsap.ts
1336
+ let isRafFrozen = false;
1337
+ const pendingRafCallbacks = /* @__PURE__ */ new Map();
1338
+ let nextFakeRafId = -1;
1339
+ const knownAnimationCallbacks = /* @__PURE__ */ new WeakSet();
1340
+ const nativeIdToHeldId = /* @__PURE__ */ new Map();
1341
+ const replayedFakeToNativeId = /* @__PURE__ */ new Map();
1342
+ const isAnimationLibraryCallback = (callback) => {
1343
+ if (knownAnimationCallbacks.has(callback)) return true;
1344
+ if (!isRafFrozen || !("gsapVersions" in window)) return false;
1345
+ if (!((/* @__PURE__ */ new Error()).stack ?? "").includes("_tick")) return false;
1346
+ knownAnimationCallbacks.add(callback);
1347
+ return true;
1348
+ };
1349
+ if (typeof window !== "undefined") {
1350
+ window.requestAnimationFrame = (callback) => {
1351
+ if (!isAnimationLibraryCallback(callback)) return nativeRequestAnimationFrame(callback);
1352
+ if (isRafFrozen) {
1353
+ const identifier = nextFakeRafId--;
1354
+ pendingRafCallbacks.set(identifier, callback);
1355
+ return identifier;
1356
+ }
1357
+ const nativeId = nativeRequestAnimationFrame((timestamp) => {
1358
+ if (isRafFrozen) {
1359
+ const identifier = nextFakeRafId--;
1360
+ pendingRafCallbacks.set(identifier, callback);
1361
+ nativeIdToHeldId.set(nativeId, identifier);
1362
+ return;
1363
+ }
1364
+ callback(timestamp);
1365
+ });
1366
+ return nativeId;
1367
+ };
1368
+ window.cancelAnimationFrame = (identifier) => {
1369
+ if (pendingRafCallbacks.has(identifier)) {
1370
+ pendingRafCallbacks.delete(identifier);
1371
+ return;
1372
+ }
1373
+ const replayed = replayedFakeToNativeId.get(identifier);
1374
+ if (replayed !== void 0) {
1375
+ nativeCancelAnimationFrame(replayed.nativeId);
1376
+ replayedFakeToNativeId.delete(identifier);
1377
+ return;
1378
+ }
1379
+ const heldId = nativeIdToHeldId.get(identifier);
1380
+ if (heldId !== void 0) {
1381
+ pendingRafCallbacks.delete(heldId);
1382
+ nativeIdToHeldId.delete(identifier);
1383
+ return;
1384
+ }
1385
+ nativeCancelAnimationFrame(identifier);
1386
+ };
1387
+ }
1388
+ const freezeGsap = () => {
1389
+ if (isRafFrozen) return;
1390
+ isRafFrozen = true;
1391
+ pendingRafCallbacks.clear();
1392
+ nativeIdToHeldId.clear();
1393
+ for (const [fakeId, { nativeId, callback }] of replayedFakeToNativeId) {
1394
+ nativeCancelAnimationFrame(nativeId);
1395
+ pendingRafCallbacks.set(fakeId, callback);
1396
+ }
1397
+ replayedFakeToNativeId.clear();
1398
+ };
1399
+ const unfreezeGsap = () => {
1400
+ if (!isRafFrozen) return;
1401
+ isRafFrozen = false;
1402
+ for (const [fakeId, callback] of pendingRafCallbacks.entries()) {
1403
+ const nativeId = nativeRequestAnimationFrame((timestamp) => {
1404
+ replayedFakeToNativeId.delete(fakeId);
1405
+ callback(timestamp);
1406
+ });
1407
+ replayedFakeToNativeId.set(fakeId, {
1408
+ nativeId,
1409
+ callback
1410
+ });
1411
+ }
1412
+ pendingRafCallbacks.clear();
1413
+ nativeIdToHeldId.clear();
1414
+ };
1415
+
1416
+ //#endregion
1417
+ //#region src/utils/freeze-animations.ts
1418
+ const FROZEN_STYLES = `
1419
+ [${FROZEN_ELEMENT_ATTRIBUTE}],
1420
+ [${FROZEN_ELEMENT_ATTRIBUTE}] * {
1421
+ animation-play-state: paused !important;
1422
+ transition: none !important;
1423
+ }
1424
+ `;
1425
+ const GLOBAL_FREEZE_STYLES = `
1426
+ *, *::before, *::after {
1427
+ animation-play-state: paused !important;
1428
+ transition: none !important;
1429
+ }
1430
+ `;
1431
+ const SVG_ROOT_SELECTOR = "svg";
1432
+ let styleElement = null;
1433
+ let frozenElements = [];
1434
+ let frozenSvgElements = [];
1435
+ let lastInputElements = [];
1436
+ let globalAnimationStyleElement = null;
1437
+ let globalFrozenSvgElements = [];
1438
+ const svgFreezeDepthMap = /* @__PURE__ */ new Map();
1439
+ let frozenWaapiAnimations = [];
1440
+ const ensureStylesInjected = () => {
1441
+ if (styleElement) return;
1442
+ styleElement = createStyleElement("data-react-grab-frozen-styles", FROZEN_STYLES);
1443
+ };
1444
+ const areElementsSame = (firstElements, secondElements) => firstElements.length === secondElements.length && firstElements.every((currentElement, index) => currentElement === secondElements[index]);
1445
+ const collectFrozenSvgElements = (elements) => {
1446
+ const svgElements = /* @__PURE__ */ new Set();
1447
+ for (const element of elements) {
1448
+ if (element instanceof SVGSVGElement) svgElements.add(element);
1449
+ else if (element instanceof SVGElement && element.ownerSVGElement) svgElements.add(element.ownerSVGElement);
1450
+ for (const innerSvgElement of element.querySelectorAll(SVG_ROOT_SELECTOR)) if (innerSvgElement instanceof SVGSVGElement) svgElements.add(innerSvgElement);
1451
+ }
1452
+ return [...svgElements];
1453
+ };
1454
+ const callSvgAnimationMethod = (svgElement, methodName) => {
1455
+ const animationMethod = Reflect.get(svgElement, methodName);
1456
+ if (typeof animationMethod !== "function") return;
1457
+ animationMethod.call(svgElement);
1458
+ };
1459
+ const pauseSvgAnimations = (svgElements) => {
1460
+ for (const svgElement of svgElements) {
1461
+ const currentFreezeDepth = svgFreezeDepthMap.get(svgElement) ?? 0;
1462
+ if (currentFreezeDepth === 0) callSvgAnimationMethod(svgElement, "pauseAnimations");
1463
+ svgFreezeDepthMap.set(svgElement, currentFreezeDepth + 1);
1464
+ }
1465
+ };
1466
+ const resumeSvgAnimations = (svgElements) => {
1467
+ for (const svgElement of svgElements) {
1468
+ const currentFreezeDepth = svgFreezeDepthMap.get(svgElement);
1469
+ if (!currentFreezeDepth) continue;
1470
+ if (currentFreezeDepth === 1) {
1471
+ svgFreezeDepthMap.delete(svgElement);
1472
+ callSvgAnimationMethod(svgElement, "unpauseAnimations");
1473
+ continue;
1474
+ }
1475
+ svgFreezeDepthMap.set(svgElement, currentFreezeDepth - 1);
1476
+ }
1477
+ };
1478
+ const collectWaapiAnimations = (elements) => {
1479
+ const animations = [];
1480
+ for (const element of elements) for (const animation of element.getAnimations({ subtree: true })) if (animation.playState === "running") animations.push(animation);
1481
+ return animations;
1482
+ };
1483
+ const finishAnimations = (animations) => {
1484
+ for (const animation of animations) try {
1485
+ animation.finish();
1486
+ } catch {}
1487
+ };
1488
+ const freezeAllAnimations = (elements) => {
1489
+ if (elements.length === 0) return;
1490
+ if (areElementsSame(elements, lastInputElements)) return;
1491
+ unfreezeAllAnimations();
1492
+ lastInputElements = [...elements];
1493
+ ensureStylesInjected();
1494
+ frozenElements = elements;
1495
+ frozenSvgElements = collectFrozenSvgElements(frozenElements);
1496
+ pauseSvgAnimations(frozenSvgElements);
1497
+ for (const element of frozenElements) element.setAttribute(FROZEN_ELEMENT_ATTRIBUTE, "");
1498
+ frozenWaapiAnimations = collectWaapiAnimations(frozenElements);
1499
+ for (const animation of frozenWaapiAnimations) animation.pause();
1500
+ };
1501
+ const unfreezeAllAnimations = () => {
1502
+ if (frozenElements.length === 0 && frozenSvgElements.length === 0 && frozenWaapiAnimations.length === 0) return;
1503
+ for (const element of frozenElements) element.removeAttribute(FROZEN_ELEMENT_ATTRIBUTE);
1504
+ resumeSvgAnimations(frozenSvgElements);
1505
+ finishAnimations(frozenWaapiAnimations);
1506
+ frozenElements = [];
1507
+ frozenSvgElements = [];
1508
+ frozenWaapiAnimations = [];
1509
+ lastInputElements = [];
1510
+ };
1511
+ const freezeAnimations = (elements) => {
1512
+ if (elements.length === 0) {
1513
+ unfreezeAllAnimations();
1514
+ return () => {};
1515
+ }
1516
+ freezeAllAnimations(elements);
1517
+ return unfreezeAllAnimations;
1518
+ };
1519
+ const freezeGlobalAnimations = () => {
1520
+ if (globalAnimationStyleElement) return;
1521
+ globalAnimationStyleElement = createStyleElement("data-react-grab-global-freeze", GLOBAL_FREEZE_STYLES);
1522
+ globalFrozenSvgElements = collectFrozenSvgElements(Array.from(document.querySelectorAll(SVG_ROOT_SELECTOR)));
1523
+ pauseSvgAnimations(globalFrozenSvgElements);
1524
+ freezeGsap();
1525
+ };
1526
+ const unfreezeGlobalAnimations = () => {
1527
+ if (!globalAnimationStyleElement) return;
1528
+ globalAnimationStyleElement.textContent = `
1529
+ *, *::before, *::after {
1530
+ transition: none !important;
1531
+ }
1532
+ `;
1533
+ const animations = [];
1534
+ for (const animation of document.getAnimations()) {
1535
+ if (animation.effect instanceof KeyframeEffect) {
1536
+ const target = animation.effect.target;
1537
+ if (target instanceof Element) {
1538
+ if (target.getRootNode() instanceof ShadowRoot) continue;
1539
+ }
1540
+ }
1541
+ animations.push(animation);
1542
+ }
1543
+ finishAnimations(animations);
1544
+ globalAnimationStyleElement.remove();
1545
+ globalAnimationStyleElement = null;
1546
+ resumeSvgAnimations(globalFrozenSvgElements);
1547
+ globalFrozenSvgElements = [];
1548
+ unfreezeGsap();
1549
+ };
1550
+
1551
+ //#endregion
1552
+ //#region src/utils/log-recoverable-error.ts
1553
+ const logRecoverableError = (context, error) => {
1554
+ console.warn(`[react-grab] ${context}:`, error);
1555
+ };
1556
+
1557
+ //#endregion
1558
+ //#region src/utils/freeze-updates.ts
1559
+ let isUpdatesPaused = false;
1560
+ const getOrCache = (cache, key, create) => {
1561
+ const cached = cache.get(key);
1562
+ if (cached) return cached;
1563
+ const value = create();
1564
+ cache.set(key, value);
1565
+ return value;
1566
+ };
1567
+ const patchedDispatchers = /* @__PURE__ */ new WeakMap();
1568
+ const wrappedDispatchCache = /* @__PURE__ */ new WeakMap();
1569
+ const wrappedStartTransitionCache = /* @__PURE__ */ new WeakMap();
1570
+ const pendingStoreCallbacks = /* @__PURE__ */ new Set();
1571
+ const pendingTransitionCallbacks = [];
1572
+ const pendingStateUpdates = [];
1573
+ const pausedQueueStates = /* @__PURE__ */ new WeakMap();
1574
+ const pausedContextStates = /* @__PURE__ */ new WeakMap();
1575
+ const renderersWithPatchedDispatcher = /* @__PURE__ */ new WeakSet();
1576
+ const typedFiberRoots = $;
1577
+ const getFiberRoot = (fiber) => {
1578
+ let current = fiber;
1579
+ while (current.return) current = current.return;
1580
+ return current.stateNode ?? null;
1581
+ };
1582
+ const collectFiberRoots = () => {
1583
+ if (typedFiberRoots.size > 0) return typedFiberRoots;
1584
+ const collectedRoots = /* @__PURE__ */ new Set();
1585
+ const traverseDOM = (element) => {
1586
+ const fiber = Z(element);
1587
+ if (fiber) {
1588
+ const fiberRoot = getFiberRoot(fiber);
1589
+ if (fiberRoot) collectedRoots.add(fiberRoot);
1590
+ return;
1591
+ }
1592
+ for (const childElement of Array.from(element.children)) {
1593
+ traverseDOM(childElement);
1594
+ if (collectedRoots.size > 0) return;
1595
+ }
1596
+ };
1597
+ traverseDOM(document.body);
1598
+ return collectedRoots;
1599
+ };
1600
+ const mergePendingChains = (original, buffered) => {
1601
+ if (!original) return buffered;
1602
+ if (!buffered) return original;
1603
+ if (!original.next || !buffered.next) return buffered;
1604
+ const originalFirst = original.next;
1605
+ const bufferedFirst = buffered.next;
1606
+ const isOriginalSingle = original === originalFirst;
1607
+ const isBufferedSingle = buffered === bufferedFirst;
1608
+ if (isOriginalSingle && isBufferedSingle) {
1609
+ original.next = buffered;
1610
+ buffered.next = original;
1611
+ } else if (isOriginalSingle) {
1612
+ original.next = bufferedFirst;
1613
+ buffered.next = original;
1614
+ } else if (isBufferedSingle) {
1615
+ buffered.next = originalFirst;
1616
+ original.next = buffered;
1617
+ } else {
1618
+ original.next = bufferedFirst;
1619
+ buffered.next = originalFirst;
1620
+ }
1621
+ return buffered;
1622
+ };
1623
+ const pauseHookQueue = (queue) => {
1624
+ if (!queue || pausedQueueStates.has(queue)) return;
1625
+ const pauseState = {
1626
+ originalPendingDescriptor: Object.getOwnPropertyDescriptor(queue, "pending"),
1627
+ pendingValueAtPause: queue.pending,
1628
+ bufferedPending: null
1629
+ };
1630
+ if (typeof queue.getSnapshot === "function") {
1631
+ pauseState.originalGetSnapshot = queue.getSnapshot;
1632
+ pauseState.snapshotValueAtPause = queue.getSnapshot();
1633
+ queue.getSnapshot = () => isUpdatesPaused ? pauseState.snapshotValueAtPause : pauseState.originalGetSnapshot();
1634
+ }
1635
+ let currentPendingValue = pauseState.pendingValueAtPause;
1636
+ Object.defineProperty(queue, "pending", {
1637
+ configurable: true,
1638
+ enumerable: true,
1639
+ get: () => isUpdatesPaused ? null : currentPendingValue,
1640
+ set: (newValue) => {
1641
+ if (isUpdatesPaused) {
1642
+ if (newValue !== null) pauseState.bufferedPending = mergePendingChains(pauseState.bufferedPending ?? null, newValue);
1643
+ return;
1644
+ }
1645
+ currentPendingValue = newValue;
1646
+ }
1647
+ });
1648
+ pausedQueueStates.set(queue, pauseState);
1649
+ };
1650
+ const extractActionsFromChain = (pending) => {
1651
+ if (!pending) return [];
1652
+ const actions = [];
1653
+ const first = pending.next;
1654
+ if (!first) return [];
1655
+ let current = first;
1656
+ do
1657
+ if (current) {
1658
+ actions.push(current.action);
1659
+ current = current.next;
1660
+ }
1661
+ while (current && current !== first);
1662
+ return actions;
1663
+ };
1664
+ const resumeHookQueue = (queue) => {
1665
+ const pauseState = pausedQueueStates.get(queue);
1666
+ if (!pauseState) return;
1667
+ if (pauseState.originalGetSnapshot) queue.getSnapshot = pauseState.originalGetSnapshot;
1668
+ if (pauseState.originalPendingDescriptor) Object.defineProperty(queue, "pending", pauseState.originalPendingDescriptor);
1669
+ else delete queue.pending;
1670
+ queue.pending = null;
1671
+ const dispatch = queue.dispatch;
1672
+ if (typeof dispatch === "function") {
1673
+ const pendingActions = extractActionsFromChain(pauseState.pendingValueAtPause ?? null);
1674
+ const bufferedActions = extractActionsFromChain(pauseState.bufferedPending ?? null);
1675
+ for (const action of [...pendingActions, ...bufferedActions]) pendingStateUpdates.push(() => dispatch(action));
1676
+ }
1677
+ pausedQueueStates.delete(queue);
1678
+ };
1679
+ const pauseContextDependency = (contextDependency) => {
1680
+ if (pausedContextStates.has(contextDependency)) return;
1681
+ const pauseState = {
1682
+ originalDescriptor: Object.getOwnPropertyDescriptor(contextDependency, "memoizedValue"),
1683
+ frozenValue: contextDependency.memoizedValue
1684
+ };
1685
+ Object.defineProperty(contextDependency, "memoizedValue", {
1686
+ configurable: true,
1687
+ enumerable: true,
1688
+ get() {
1689
+ if (isUpdatesPaused) return pauseState.frozenValue;
1690
+ if (pauseState.originalDescriptor?.get) return pauseState.originalDescriptor.get.call(this);
1691
+ return this._memoizedValue;
1692
+ },
1693
+ set(value) {
1694
+ if (isUpdatesPaused) {
1695
+ pauseState.pendingValue = value;
1696
+ pauseState.didReceivePendingValue = true;
1697
+ return;
1698
+ }
1699
+ if (pauseState.originalDescriptor?.set) pauseState.originalDescriptor.set.call(this, value);
1700
+ else this._memoizedValue = value;
1701
+ }
1702
+ });
1703
+ if (!pauseState.originalDescriptor?.get) contextDependency._memoizedValue = pauseState.frozenValue;
1704
+ pausedContextStates.set(contextDependency, pauseState);
1705
+ };
1706
+ const resumeContextDependency = (contextDependency) => {
1707
+ const pauseState = pausedContextStates.get(contextDependency);
1708
+ if (!pauseState) return;
1709
+ if (pauseState.originalDescriptor) Object.defineProperty(contextDependency, "memoizedValue", pauseState.originalDescriptor);
1710
+ else delete contextDependency.memoizedValue;
1711
+ if (pauseState.didReceivePendingValue) contextDependency.memoizedValue = pauseState.pendingValue;
1712
+ pausedContextStates.delete(contextDependency);
1713
+ };
1714
+ const forEachHookQueue = (fiber, callback) => {
1715
+ let hookState = fiber.memoizedState;
1716
+ while (hookState) {
1717
+ if (hookState.queue && typeof hookState.queue === "object") callback(hookState.queue);
1718
+ hookState = hookState.next;
1719
+ }
1720
+ };
1721
+ const forEachContextDependency = (fiber, callback) => {
1722
+ let contextDependency = fiber.dependencies?.firstContext;
1723
+ while (contextDependency && typeof contextDependency === "object" && "memoizedValue" in contextDependency) {
1724
+ callback(contextDependency);
1725
+ contextDependency = contextDependency.next;
1726
+ }
1727
+ };
1728
+ const traverseFibers = (fiber, onCompositeFiber) => {
1729
+ if (!fiber) return;
1730
+ if (ve(fiber)) onCompositeFiber(fiber);
1731
+ traverseFibers(fiber.child, onCompositeFiber);
1732
+ traverseFibers(fiber.sibling, onCompositeFiber);
1733
+ };
1734
+ const pauseFiber = (fiber) => {
1735
+ forEachHookQueue(fiber, pauseHookQueue);
1736
+ forEachContextDependency(fiber, pauseContextDependency);
1737
+ };
1738
+ const resumeFiber = (fiber) => {
1739
+ forEachHookQueue(fiber, resumeHookQueue);
1740
+ forEachContextDependency(fiber, resumeContextDependency);
1741
+ };
1742
+ const patchDispatcher = (dispatcher) => {
1743
+ if (patchedDispatchers.has(dispatcher)) return;
1744
+ const typedDispatcher = dispatcher;
1745
+ const originalHooks = {
1746
+ useState: typedDispatcher.useState,
1747
+ useReducer: typedDispatcher.useReducer,
1748
+ useTransition: typedDispatcher.useTransition,
1749
+ useSyncExternalStore: typedDispatcher.useSyncExternalStore
1750
+ };
1751
+ patchedDispatchers.set(dispatcher, originalHooks);
1752
+ typedDispatcher.useState = (...args) => {
1753
+ const result = originalHooks.useState.apply(dispatcher, args);
1754
+ if (!isUpdatesPaused) return result;
1755
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
1756
+ const [state, dispatch] = result;
1757
+ return [state, getOrCache(wrappedDispatchCache, dispatch, () => (...dispatchArgs) => {
1758
+ if (isUpdatesPaused) pendingStateUpdates.push(() => dispatch(...dispatchArgs));
1759
+ else dispatch(...dispatchArgs);
1760
+ })];
1761
+ };
1762
+ typedDispatcher.useReducer = (...args) => {
1763
+ const result = originalHooks.useReducer.apply(dispatcher, args);
1764
+ if (!isUpdatesPaused) return result;
1765
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
1766
+ const [state, dispatch] = result;
1767
+ return [state, getOrCache(wrappedDispatchCache, dispatch, () => (...dispatchArgs) => {
1768
+ if (isUpdatesPaused) pendingStateUpdates.push(() => dispatch(...dispatchArgs));
1769
+ else dispatch(...dispatchArgs);
1770
+ })];
1771
+ };
1772
+ typedDispatcher.useTransition = (...args) => {
1773
+ const result = originalHooks.useTransition.apply(dispatcher, args);
1774
+ if (!isUpdatesPaused) return result;
1775
+ if (!Array.isArray(result) || typeof result[1] !== "function") return result;
1776
+ const [isPending, startTransition] = result;
1777
+ return [isPending, getOrCache(wrappedStartTransitionCache, startTransition, () => (transitionCallback) => {
1778
+ if (isUpdatesPaused) pendingTransitionCallbacks.push(() => startTransition(transitionCallback));
1779
+ else startTransition(transitionCallback);
1780
+ })];
1781
+ };
1782
+ typedDispatcher.useSyncExternalStore = ((subscribe, getSnapshot, getServerSnapshot) => {
1783
+ if (!isUpdatesPaused) return originalHooks.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1784
+ const wrappedSubscribe = (onChange) => subscribe(() => {
1785
+ if (isUpdatesPaused) pendingStoreCallbacks.add(onChange);
1786
+ else onChange();
1787
+ });
1788
+ return originalHooks.useSyncExternalStore(wrappedSubscribe, getSnapshot, getServerSnapshot);
1789
+ });
1790
+ };
1791
+ const installDispatcherPatching = (renderer) => {
1792
+ const dispatcherRef = renderer.currentDispatcherRef;
1793
+ if (!dispatcherRef || typeof dispatcherRef !== "object") return;
1794
+ const dispatcherKey = "H" in dispatcherRef ? "H" : "current";
1795
+ let currentDispatcher = dispatcherRef[dispatcherKey];
1796
+ Object.defineProperty(dispatcherRef, dispatcherKey, {
1797
+ configurable: true,
1798
+ enumerable: true,
1799
+ get: () => {
1800
+ if (currentDispatcher && typeof currentDispatcher === "object") patchDispatcher(currentDispatcher);
1801
+ return currentDispatcher;
1802
+ },
1803
+ set: (newDispatcher) => {
1804
+ currentDispatcher = newDispatcher;
1805
+ }
1806
+ });
1807
+ };
1808
+ const scheduleReactUpdate = (fiberRoots) => {
1809
+ queueMicrotask(() => {
1810
+ try {
1811
+ for (const renderer of h$1().renderers.values()) {
1812
+ if (typeof renderer.scheduleUpdate !== "function") continue;
1813
+ for (const fiberRoot of fiberRoots) if (fiberRoot.current) try {
1814
+ renderer.scheduleUpdate(fiberRoot.current);
1815
+ } catch (error) {
1816
+ logRecoverableError("scheduleUpdate failed during unfreeze", error);
1817
+ }
1818
+ }
1819
+ } catch (error) {
1820
+ logRecoverableError("scheduleReactUpdate failed", error);
1821
+ }
1822
+ });
1823
+ };
1824
+ const invokeCallbacks = (callbacks) => {
1825
+ for (const callback of callbacks) try {
1826
+ callback();
1827
+ } catch (error) {
1828
+ logRecoverableError("Callback failed during state replay", error);
1829
+ }
1830
+ };
1831
+ const initializeFreezeSupport = () => {
1832
+ for (const renderer of h$1().renderers.values()) {
1833
+ if (renderersWithPatchedDispatcher.has(renderer)) continue;
1834
+ installDispatcherPatching(renderer);
1835
+ renderersWithPatchedDispatcher.add(renderer);
1836
+ }
1837
+ };
1838
+ const freezeUpdates = () => {
1839
+ if (isUpdatesPaused) return () => {};
1840
+ initializeFreezeSupport();
1841
+ isUpdatesPaused = true;
1842
+ const fiberRoots = collectFiberRoots();
1843
+ for (const fiberRoot of fiberRoots) traverseFibers(fiberRoot.current, pauseFiber);
1844
+ return () => {
1845
+ if (!isUpdatesPaused) return;
1846
+ try {
1847
+ const fiberRootsToResume = collectFiberRoots();
1848
+ for (const fiberRoot of fiberRootsToResume) traverseFibers(fiberRoot.current, resumeFiber);
1849
+ const storeCallbacksToInvoke = Array.from(pendingStoreCallbacks);
1850
+ const transitionCallbacksToInvoke = pendingTransitionCallbacks.slice();
1851
+ const stateUpdatesToInvoke = pendingStateUpdates.slice();
1852
+ isUpdatesPaused = false;
1853
+ invokeCallbacks(storeCallbacksToInvoke);
1854
+ invokeCallbacks(transitionCallbacksToInvoke);
1855
+ invokeCallbacks(stateUpdatesToInvoke);
1856
+ scheduleReactUpdate(fiberRootsToResume);
1857
+ } finally {
1858
+ pendingStoreCallbacks.clear();
1859
+ pendingTransitionCallbacks.length = 0;
1860
+ pendingStateUpdates.length = 0;
1861
+ }
1862
+ };
1863
+ };
1864
+
1865
+ //#endregion
1866
+ Object.defineProperty(exports, 'ARROW_KEYS', {
1867
+ enumerable: true,
1868
+ get: function () {
1869
+ return ARROW_KEYS;
1870
+ }
1871
+ });
1872
+ Object.defineProperty(exports, 'ARROW_MAX_LABEL_WIDTH_RATIO', {
1873
+ enumerable: true,
1874
+ get: function () {
1875
+ return ARROW_MAX_LABEL_WIDTH_RATIO;
1876
+ }
1877
+ });
1878
+ Object.defineProperty(exports, 'DEFAULT_ACTION_ID', {
1879
+ enumerable: true,
1880
+ get: function () {
1881
+ return DEFAULT_ACTION_ID;
1882
+ }
1883
+ });
1884
+ Object.defineProperty(exports, 'DRAG_LERP_FACTOR', {
1885
+ enumerable: true,
1886
+ get: function () {
1887
+ return DRAG_LERP_FACTOR;
1888
+ }
1889
+ });
1890
+ Object.defineProperty(exports, 'DRAG_SELECTION_COVERAGE_THRESHOLD', {
1891
+ enumerable: true,
1892
+ get: function () {
1893
+ return DRAG_SELECTION_COVERAGE_THRESHOLD;
1894
+ }
1895
+ });
1896
+ Object.defineProperty(exports, 'DROPDOWN_EDGE_TRANSFORM_ORIGIN', {
1897
+ enumerable: true,
1898
+ get: function () {
1899
+ return DROPDOWN_EDGE_TRANSFORM_ORIGIN;
1900
+ }
1901
+ });
1902
+ Object.defineProperty(exports, 'DROPDOWN_OFFSCREEN_POSITION', {
1903
+ enumerable: true,
1904
+ get: function () {
1905
+ return DROPDOWN_OFFSCREEN_POSITION;
1906
+ }
1907
+ });
1908
+ Object.defineProperty(exports, 'FEEDBACK_DURATION_MS', {
1909
+ enumerable: true,
1910
+ get: function () {
1911
+ return FEEDBACK_DURATION_MS;
1912
+ }
1913
+ });
1914
+ Object.defineProperty(exports, 'FROZEN_GLOW_COLOR', {
1915
+ enumerable: true,
1916
+ get: function () {
1917
+ return FROZEN_GLOW_COLOR;
1918
+ }
1919
+ });
1920
+ Object.defineProperty(exports, 'HINT_FLIP_IN_ANIMATION', {
1921
+ enumerable: true,
1922
+ get: function () {
1923
+ return HINT_FLIP_IN_ANIMATION;
1924
+ }
1925
+ });
1926
+ Object.defineProperty(exports, 'LERP_CONVERGENCE_THRESHOLD_PX', {
1927
+ enumerable: true,
1928
+ get: function () {
1929
+ return LERP_CONVERGENCE_THRESHOLD_PX;
1930
+ }
1931
+ });
1932
+ Object.defineProperty(exports, 'MAX_SELECTOR_COMBINATIONS', {
1933
+ enumerable: true,
1934
+ get: function () {
1935
+ return MAX_SELECTOR_COMBINATIONS;
1936
+ }
1937
+ });
1938
+ Object.defineProperty(exports, 'MAX_SESSION_STORAGE_SIZE_BYTES', {
1939
+ enumerable: true,
1940
+ get: function () {
1941
+ return MAX_SESSION_STORAGE_SIZE_BYTES;
1942
+ }
1943
+ });
1944
+ Object.defineProperty(exports, 'MODIFIER_KEYS', {
1945
+ enumerable: true,
1946
+ get: function () {
1947
+ return MODIFIER_KEYS;
1948
+ }
1949
+ });
1950
+ Object.defineProperty(exports, 'MOUNT_ROOT_RECHECK_DELAY_MS', {
1951
+ enumerable: true,
1952
+ get: function () {
1953
+ return MOUNT_ROOT_RECHECK_DELAY_MS;
1954
+ }
1955
+ });
1956
+ Object.defineProperty(exports, 'NEXTJS_REVALIDATION_DELAY_MS', {
1957
+ enumerable: true,
1958
+ get: function () {
1959
+ return NEXTJS_REVALIDATION_DELAY_MS;
1960
+ }
1961
+ });
1962
+ Object.defineProperty(exports, 'OFFSCREEN_POSITION', {
1963
+ enumerable: true,
1964
+ get: function () {
1965
+ return OFFSCREEN_POSITION;
1966
+ }
1967
+ });
1968
+ Object.defineProperty(exports, 'OPACITY_CONVERGENCE_THRESHOLD', {
1969
+ enumerable: true,
1970
+ get: function () {
1971
+ return OPACITY_CONVERGENCE_THRESHOLD;
1972
+ }
1973
+ });
1974
+ Object.defineProperty(exports, 'OVERLAY_BORDER_COLOR_DEFAULT', {
1975
+ enumerable: true,
1976
+ get: function () {
1977
+ return OVERLAY_BORDER_COLOR_DEFAULT;
1978
+ }
1979
+ });
1980
+ Object.defineProperty(exports, 'OVERLAY_BORDER_COLOR_DRAG', {
1981
+ enumerable: true,
1982
+ get: function () {
1983
+ return OVERLAY_BORDER_COLOR_DRAG;
1984
+ }
1985
+ });
1986
+ Object.defineProperty(exports, 'OVERLAY_BORDER_COLOR_INSPECT', {
1987
+ enumerable: true,
1988
+ get: function () {
1989
+ return OVERLAY_BORDER_COLOR_INSPECT;
1990
+ }
1991
+ });
1992
+ Object.defineProperty(exports, 'OVERLAY_FILL_COLOR_DEFAULT', {
1993
+ enumerable: true,
1994
+ get: function () {
1995
+ return OVERLAY_FILL_COLOR_DEFAULT;
1996
+ }
1997
+ });
1998
+ Object.defineProperty(exports, 'OVERLAY_FILL_COLOR_DRAG', {
1999
+ enumerable: true,
2000
+ get: function () {
2001
+ return OVERLAY_FILL_COLOR_DRAG;
2002
+ }
2003
+ });
2004
+ Object.defineProperty(exports, 'OVERLAY_FILL_COLOR_INSPECT', {
2005
+ enumerable: true,
2006
+ get: function () {
2007
+ return OVERLAY_FILL_COLOR_INSPECT;
2008
+ }
2009
+ });
2010
+ Object.defineProperty(exports, 'RELEVANT_CSS_PROPERTIES', {
2011
+ enumerable: true,
2012
+ get: function () {
2013
+ return RELEVANT_CSS_PROPERTIES;
2014
+ }
2015
+ });
2016
+ Object.defineProperty(exports, 'SELECTION_HINT_CYCLE_INTERVAL_MS', {
2017
+ enumerable: true,
2018
+ get: function () {
2019
+ return SELECTION_HINT_CYCLE_INTERVAL_MS;
2020
+ }
2021
+ });
2022
+ Object.defineProperty(exports, 'SELECTION_LABEL_OFFSCREEN_PX', {
2023
+ enumerable: true,
2024
+ get: function () {
2025
+ return SELECTION_LABEL_OFFSCREEN_PX;
2026
+ }
2027
+ });
2028
+ Object.defineProperty(exports, 'SELECTION_LERP_FACTOR', {
2029
+ enumerable: true,
2030
+ get: function () {
2031
+ return SELECTION_LERP_FACTOR;
2032
+ }
2033
+ });
2034
+ Object.defineProperty(exports, 'TOOLBAR_DEFAULT_POSITION_RATIO', {
2035
+ enumerable: true,
2036
+ get: function () {
2037
+ return TOOLBAR_DEFAULT_POSITION_RATIO;
2038
+ }
2039
+ });
2040
+ Object.defineProperty(exports, 'TOOLBAR_SHAKE_TOOLTIP_DURATION_MS', {
2041
+ enumerable: true,
2042
+ get: function () {
2043
+ return TOOLBAR_SHAKE_TOOLTIP_DURATION_MS;
2044
+ }
2045
+ });
2046
+ Object.defineProperty(exports, 'TOOLTIP_BASE_CLASS', {
2047
+ enumerable: true,
2048
+ get: function () {
2049
+ return TOOLTIP_BASE_CLASS;
2050
+ }
2051
+ });
2052
+ Object.defineProperty(exports, 'Te', {
2053
+ enumerable: true,
2054
+ get: function () {
2055
+ return Te;
2056
+ }
2057
+ });
2058
+ Object.defineProperty(exports, 'VERSION', {
2059
+ enumerable: true,
2060
+ get: function () {
2061
+ return VERSION;
2062
+ }
2063
+ });
2064
+ Object.defineProperty(exports, 'Z', {
2065
+ enumerable: true,
2066
+ get: function () {
2067
+ return Z;
2068
+ }
2069
+ });
2070
+ Object.defineProperty(exports, 'ZOOM_DETECTION_THRESHOLD', {
2071
+ enumerable: true,
2072
+ get: function () {
2073
+ return ZOOM_DETECTION_THRESHOLD;
2074
+ }
2075
+ });
2076
+ Object.defineProperty(exports, 'Z_INDEX_OVERLAY', {
2077
+ enumerable: true,
2078
+ get: function () {
2079
+ return Z_INDEX_OVERLAY;
2080
+ }
2081
+ });
2082
+ Object.defineProperty(exports, 'Z_INDEX_OVERLAY_CANVAS', {
2083
+ enumerable: true,
2084
+ get: function () {
2085
+ return Z_INDEX_OVERLAY_CANVAS;
2086
+ }
2087
+ });
2088
+ Object.defineProperty(exports, 'checkIsNextProject', {
2089
+ enumerable: true,
2090
+ get: function () {
2091
+ return checkIsNextProject;
2092
+ }
2093
+ });
2094
+ Object.defineProperty(exports, 'clearElementPositionCache', {
2095
+ enumerable: true,
2096
+ get: function () {
2097
+ return clearElementPositionCache;
2098
+ }
2099
+ });
2100
+ Object.defineProperty(exports, 'clearVisibilityCache', {
2101
+ enumerable: true,
2102
+ get: function () {
2103
+ return clearVisibilityCache;
2104
+ }
2105
+ });
2106
+ Object.defineProperty(exports, 'freezeAllAnimations', {
2107
+ enumerable: true,
2108
+ get: function () {
2109
+ return freezeAllAnimations;
2110
+ }
2111
+ });
2112
+ Object.defineProperty(exports, 'freezeAnimations', {
2113
+ enumerable: true,
2114
+ get: function () {
2115
+ return freezeAnimations;
2116
+ }
2117
+ });
2118
+ Object.defineProperty(exports, 'freezeGlobalAnimations', {
2119
+ enumerable: true,
2120
+ get: function () {
2121
+ return freezeGlobalAnimations;
2122
+ }
2123
+ });
2124
+ Object.defineProperty(exports, 'freezePseudoStates', {
2125
+ enumerable: true,
2126
+ get: function () {
2127
+ return freezePseudoStates;
2128
+ }
2129
+ });
2130
+ Object.defineProperty(exports, 'freezeUpdates', {
2131
+ enumerable: true,
2132
+ get: function () {
2133
+ return freezeUpdates;
2134
+ }
2135
+ });
2136
+ Object.defineProperty(exports, 'getComponentDisplayName', {
2137
+ enumerable: true,
2138
+ get: function () {
2139
+ return getComponentDisplayName;
2140
+ }
2141
+ });
2142
+ Object.defineProperty(exports, 'getElementAtPosition', {
2143
+ enumerable: true,
2144
+ get: function () {
2145
+ return getElementAtPosition;
2146
+ }
2147
+ });
2148
+ Object.defineProperty(exports, 'getElementContext', {
2149
+ enumerable: true,
2150
+ get: function () {
2151
+ return getElementContext;
2152
+ }
2153
+ });
2154
+ Object.defineProperty(exports, 'getElementsAtPoint', {
2155
+ enumerable: true,
2156
+ get: function () {
2157
+ return getElementsAtPoint;
2158
+ }
2159
+ });
2160
+ Object.defineProperty(exports, 'getHTMLPreview', {
2161
+ enumerable: true,
2162
+ get: function () {
2163
+ return getHTMLPreview;
2164
+ }
2165
+ });
2166
+ Object.defineProperty(exports, 'getNearestComponentName', {
2167
+ enumerable: true,
2168
+ get: function () {
2169
+ return getNearestComponentName;
2170
+ }
2171
+ });
2172
+ Object.defineProperty(exports, 'getStack', {
2173
+ enumerable: true,
2174
+ get: function () {
2175
+ return getStack;
2176
+ }
2177
+ });
2178
+ Object.defineProperty(exports, 'getStackContext', {
2179
+ enumerable: true,
2180
+ get: function () {
2181
+ return getStackContext;
2182
+ }
2183
+ });
2184
+ Object.defineProperty(exports, 'getTagName', {
2185
+ enumerable: true,
2186
+ get: function () {
2187
+ return getTagName;
2188
+ }
2189
+ });
2190
+ Object.defineProperty(exports, 'isRootElement', {
2191
+ enumerable: true,
2192
+ get: function () {
2193
+ return isRootElement;
2194
+ }
2195
+ });
2196
+ Object.defineProperty(exports, 'isValidGrabbableElement', {
2197
+ enumerable: true,
2198
+ get: function () {
2199
+ return isValidGrabbableElement;
2200
+ }
2201
+ });
2202
+ Object.defineProperty(exports, 'logRecoverableError', {
2203
+ enumerable: true,
2204
+ get: function () {
2205
+ return logRecoverableError;
2206
+ }
2207
+ });
2208
+ Object.defineProperty(exports, 'nativeCancelAnimationFrame', {
2209
+ enumerable: true,
2210
+ get: function () {
2211
+ return nativeCancelAnimationFrame;
2212
+ }
2213
+ });
2214
+ Object.defineProperty(exports, 'nativeRequestAnimationFrame', {
2215
+ enumerable: true,
2216
+ get: function () {
2217
+ return nativeRequestAnimationFrame;
2218
+ }
2219
+ });
2220
+ Object.defineProperty(exports, 'openFile', {
2221
+ enumerable: true,
2222
+ get: function () {
2223
+ return openFile;
2224
+ }
2225
+ });
2226
+ Object.defineProperty(exports, 'resolveSource', {
2227
+ enumerable: true,
2228
+ get: function () {
2229
+ return resolveSource;
2230
+ }
2231
+ });
2232
+ Object.defineProperty(exports, 'resumePointerEventsFreeze', {
2233
+ enumerable: true,
2234
+ get: function () {
2235
+ return resumePointerEventsFreeze;
2236
+ }
2237
+ });
2238
+ Object.defineProperty(exports, 'supportsDisplayP3', {
2239
+ enumerable: true,
2240
+ get: function () {
2241
+ return supportsDisplayP3;
2242
+ }
2243
+ });
2244
+ Object.defineProperty(exports, 'suspendPointerEventsFreeze', {
2245
+ enumerable: true,
2246
+ get: function () {
2247
+ return suspendPointerEventsFreeze;
2248
+ }
2249
+ });
2250
+ Object.defineProperty(exports, 'unfreezeGlobalAnimations', {
2251
+ enumerable: true,
2252
+ get: function () {
2253
+ return unfreezeGlobalAnimations;
2254
+ }
2255
+ });
2256
+ Object.defineProperty(exports, 'unfreezePseudoStates', {
2257
+ enumerable: true,
2258
+ get: function () {
2259
+ return unfreezePseudoStates;
2260
+ }
2261
+ });
2262
+ Object.defineProperty(exports, 'waitUntilNextFrame', {
2263
+ enumerable: true,
2264
+ get: function () {
2265
+ return waitUntilNextFrame;
2266
+ }
2267
+ });