promptfoo 0.121.5 → 0.121.7

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 (490) hide show
  1. package/dist/src/{ListApp-BRUsT43Y.js → ListApp-DLmM02JS.js} +1 -1
  2. package/dist/src/{accounts-CaLNYnf7.js → accounts-Ca7WIoPY.js} +12 -7
  3. package/dist/src/{accounts-CLJHCDDb.js → accounts-CjFnOPmb.js} +13 -8
  4. package/dist/src/{accounts-BIFntVWB.cjs → accounts-CmWzeD2d.cjs} +16 -10
  5. package/dist/src/{accounts-bnyHT7Ju.js → accounts-DanM1wq_.js} +12 -7
  6. package/dist/src/{agentic-utils-BclbiXiq.js → agentic-utils-CJ0j3fBi.js} +2 -2
  7. package/dist/src/{agentic-utils-B5krlibj.js → agentic-utils-DDEGRV9v.js} +2 -2
  8. package/dist/src/{agentic-utils-D2x0wGhB.cjs → agentic-utils-DvPWSUpb.cjs} +8 -7
  9. package/dist/src/{agentic-utils-Ba67xmgs.js → agentic-utils-TxUEMPYS.js} +2 -2
  10. package/dist/src/{agents-WULPVjbH.cjs → agents-B4sRuXg3.cjs} +7 -6
  11. package/dist/src/{agents-DhxWMCtH.js → agents-B8q7h_ek.js} +4 -4
  12. package/dist/src/{agents-BGqaTDnr.js → agents-CBgJvRkB.js} +20 -9
  13. package/dist/src/{agents-n6vPqV3i.js → agents-CYn2n3QP.js} +4 -4
  14. package/dist/src/{agents-BV9yFpXX.js → agents-D-vDNFx4.js} +20 -9
  15. package/dist/src/{agents-BYdMl1UE.js → agents-LrHuQqr1.js} +20 -9
  16. package/dist/src/{agents-emVcx3yh.js → agents-QGg76OF-.js} +2 -2
  17. package/dist/src/{agents-DiWmQYH9.cjs → agents-eHZ9nlgA.cjs} +21 -10
  18. package/dist/src/{aimlapi-uPGp0Zdo.js → aimlapi-CJEbQ0o6.js} +6 -6
  19. package/dist/src/{aimlapi-DR4pgeiC.js → aimlapi-D5HXzZ0s.js} +6 -6
  20. package/dist/src/{aimlapi-BzLjZI_m.cjs → aimlapi-T6HGNxNe.cjs} +7 -7
  21. package/dist/src/{aimlapi-BxqK9HF_.js → aimlapi-eYv3a_DK.js} +6 -6
  22. package/dist/src/app/app/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/src/app/assets/Report-BNHJKN35.js +1 -0
  24. package/dist/src/app/assets/index-BnT6P6sF.js +388 -0
  25. package/dist/src/app/assets/index-yhM8y1PP.css +1 -0
  26. package/dist/src/app/assets/{scroll-timeline-D9IT_e8Z.js → scroll-timeline-RpeTwOvs.js} +1 -1
  27. package/dist/src/app/assets/sync-5gq6fmG4.js +4 -0
  28. package/dist/src/app/assets/vendor-charts-BL9OMNU7.js +36 -0
  29. package/dist/src/app/assets/{vendor-markdown-Ch00wnNI.js → vendor-markdown-BYsQqn7Z.js} +10 -10
  30. package/dist/src/app/assets/{vendor-react-CVvmk1UB.js → vendor-react-CqWgVW6T.js} +2 -2
  31. package/dist/src/app/assets/{vendor-utils-BnEYbx2Q.js → vendor-utils-BHPO71pu.js} +1 -1
  32. package/dist/src/app/index.html +6 -6
  33. package/dist/src/{audio-Da8U9IS5.js → audio-BqnRvcWG.js} +3 -3
  34. package/dist/src/{audio-BvpTOArF.js → audio-CPMtV1yR.js} +3 -3
  35. package/dist/src/{audio-CScmnmEB.js → audio-DyiebVB3.js} +3 -3
  36. package/dist/src/{audio-C0vDeS0j.cjs → audio-FnxbEnSE.cjs} +4 -4
  37. package/dist/src/authoritativeMarkupInjection-BZIywVjG.js +74 -0
  38. package/dist/src/authoritativeMarkupInjection-DyAXAsSr.js +75 -0
  39. package/dist/src/authoritativeMarkupInjection-F2gBw0lN.cjs +74 -0
  40. package/dist/src/authoritativeMarkupInjection-QEQmFS83.js +74 -0
  41. package/dist/src/{base-BTux96b1.js → base-CKLo890h.js} +4 -3
  42. package/dist/src/{base-BOMaNEes.js → base-Co80MMCi.js} +4 -3
  43. package/dist/src/{base-Tw6uhH8K.cjs → base-DGJW48uz.cjs} +5 -4
  44. package/dist/src/{base-dYsl2hmL.js → base-E9I8zXjz.js} +4 -3
  45. package/dist/src/bestOfN-B3wNzjSB.js +137 -0
  46. package/dist/src/bestOfN-BBsO41z4.js +136 -0
  47. package/dist/src/bestOfN-CAwmg5UL.cjs +140 -0
  48. package/dist/src/bestOfN-_kTi8Bxe.js +136 -0
  49. package/dist/src/{blobs-B95F_7vE.cjs → blobs-B0977K1O.cjs} +7 -6
  50. package/dist/src/{blobs-D_gg8nbm.js → blobs-CeFdPn_T.js} +2 -2
  51. package/dist/src/{blobs-DjLby-uP.js → blobs-DODuTK-a.js} +2 -2
  52. package/dist/src/{blobs-BW4U31ue.js → blobs-Dwef1Ao1.js} +2 -2
  53. package/dist/src/{cache-DGg-yTZG.cjs → cache-CPGUA4Yl.cjs} +135 -25
  54. package/dist/src/cache-Cf7b4pWE.js +3 -0
  55. package/dist/src/{cache-Bzttsk0X.js → cache-DIXbtkNO.js} +125 -10
  56. package/dist/src/{cache-BI5BY7ey.js → cache-DpPWrkTE.js} +127 -11
  57. package/dist/src/{cache-Cr-qWIbP.js → cache-roFAE0cI.js} +125 -10
  58. package/dist/src/{chat-DChSH_Es.js → chat-CUCorGiL.js} +9 -9
  59. package/dist/src/{chat-DH97tVV9.cjs → chat-DG1wG4w0.cjs} +6 -6
  60. package/dist/src/{chat-Cx_LkwvZ.js → chat-Dabu84Br.js} +11 -11
  61. package/dist/src/{chat-BLOdH60v.js → chat-DqUFcWI0.js} +11 -11
  62. package/dist/src/{chat-vYqqv1gP.cjs → chat-DxTDQ83C.cjs} +14 -13
  63. package/dist/src/{chat-DG2LkwLq.js → chat-GmlolEwo.js} +4 -4
  64. package/dist/src/{chat-aMQZw6R7.js → chat-TP8Qifkh.js} +4 -4
  65. package/dist/src/{chat-D9nudO9b.js → chat-iwaM5UTQ.js} +4 -4
  66. package/dist/src/{chatkit-B8X34dQc.js → chatkit-B6DWi70Q.js} +3 -3
  67. package/dist/src/{chatkit-D44VyUyB.cjs → chatkit-BYveR48_.cjs} +6 -5
  68. package/dist/src/{chatkit-BXu42Qwt.js → chatkit-fARZwEfV.js} +3 -3
  69. package/dist/src/{chatkit-CbMRoeYw.js → chatkit-lb6FK02w.js} +1 -1
  70. package/dist/src/{claude-agent-sdk-BzNZeZ0N.js → claude-agent-sdk-BQNp_y-F.js} +209 -64
  71. package/dist/src/{claude-agent-sdk-BjriSVRZ.js → claude-agent-sdk-D5Jl0SDh.js} +210 -65
  72. package/dist/src/{claude-agent-sdk-BRq0bbIK.cjs → claude-agent-sdk-DH416NBD.cjs} +216 -70
  73. package/dist/src/{claude-agent-sdk-DYv_AJ8u.js → claude-agent-sdk-x1XJ1-pU.js} +210 -65
  74. package/dist/src/{cloud-Da0bofJd.js → cloud-D3DiFqH6.js} +2 -2
  75. package/dist/src/cloud-p96PA4MH.js +3 -0
  76. package/dist/src/{cloudflare-ai-CXC4b1EU.js → cloudflare-ai-B6NVI3ax.js} +4 -4
  77. package/dist/src/{cloudflare-ai-DJv5qnyb.cjs → cloudflare-ai-CEAW-xQa.cjs} +6 -6
  78. package/dist/src/{cloudflare-ai-CyBoIs1Q.js → cloudflare-ai-RFSojyXG.js} +4 -4
  79. package/dist/src/{cloudflare-ai-DGOwgexC.js → cloudflare-ai-r4tbYmWU.js} +4 -4
  80. package/dist/src/{cloudflare-gateway-D-dnkzCF.js → cloudflare-gateway-BCkLouto.js} +3 -3
  81. package/dist/src/{cloudflare-gateway-TJkVrZlB.js → cloudflare-gateway-BaZ4insB.js} +3 -3
  82. package/dist/src/{cloudflare-gateway-1sAoOyft.js → cloudflare-gateway-CF-Vb-2Z.js} +3 -3
  83. package/dist/src/{cloudflare-gateway-DKVjkDav.cjs → cloudflare-gateway-TJMLBj6I.cjs} +5 -5
  84. package/dist/src/{codex-app-server-CCe0TiDc.js → codex-app-server-B8KHEiF4.js} +5 -5
  85. package/dist/src/{codex-app-server-VMRnjZ68.cjs → codex-app-server-CnrLBCeA.cjs} +12 -11
  86. package/dist/src/{codex-app-server-CCLjqCh9.js → codex-app-server-DIXZ230V.js} +4 -4
  87. package/dist/src/{codex-app-server-CPW1LFwh.js → codex-app-server-Dd22dC_N.js} +5 -5
  88. package/dist/src/{codex-sdk-BgEFQ70r.js → codex-sdk-B6Wah8Pa.js} +5 -5
  89. package/dist/src/codex-sdk-BGjVAk23.js +3 -0
  90. package/dist/src/{codex-sdk-Bd8UbO9q.cjs → codex-sdk-CFF6gUyi.cjs} +18 -10
  91. package/dist/src/{codex-sdk-Bzb_TqX9.js → codex-sdk-CmQABzV3.js} +3 -3
  92. package/dist/src/{codex-sdk-DfvDTN33.js → codex-sdk-D2d54RL8.js} +5 -5
  93. package/dist/src/{cometapi-B5ImDlSm.js → cometapi-Bu9B8NUY.js} +7 -7
  94. package/dist/src/{cometapi-CCbpHkuF.js → cometapi-CtzNCHKu.js} +7 -7
  95. package/dist/src/{cometapi-BgAkuYCw.cjs → cometapi-DHCDlQUI.cjs} +8 -8
  96. package/dist/src/{cometapi-CC7hWxmX.js → cometapi-OBILPLlu.js} +7 -7
  97. package/dist/src/{completion-Vq_ad618.js → completion-CO2e1_62.js} +4 -4
  98. package/dist/src/{completion-DtQ72Bm3.cjs → completion-CSYfl2cd.cjs} +6 -6
  99. package/dist/src/{completion-2iuYVxwi.js → completion-DZNxcyfG.js} +5 -5
  100. package/dist/src/{completion-CrD6MQ93.js → completion-sNvCLTAP.js} +5 -5
  101. package/dist/src/constants-BjJV0cRr.js +6 -0
  102. package/dist/src/constants-DH5XYLKZ.js +7 -0
  103. package/dist/src/constants-DZGEFLsu.js +6 -0
  104. package/dist/src/constants-a2kYssQk.cjs +11 -0
  105. package/dist/src/{createHash-4gFQpDDv.js → createHash-BtbSX3mj.js} +1 -1
  106. package/dist/src/{createHash-Un4Q_huE.js → createHash-CGVzWdjj.js} +1 -1
  107. package/dist/src/{createHash-VvBIc-AW.cjs → createHash-CSiqnK5P.cjs} +2 -2
  108. package/dist/src/{createHash-DPpsZgFF.js → createHash-CgRvs4Fn.js} +1 -1
  109. package/dist/src/crescendo-BXEJK_bi.cjs +704 -0
  110. package/dist/src/crescendo-CU_Y2i-m.js +702 -0
  111. package/dist/src/crescendo-J1Xx4_zb.js +703 -0
  112. package/dist/src/crescendo-QiaSLW0d.js +701 -0
  113. package/dist/src/custom-BJfP00Bh.js +619 -0
  114. package/dist/src/custom-CZVn-1-r.js +620 -0
  115. package/dist/src/custom-Cqia7M0D.cjs +621 -0
  116. package/dist/src/custom-notggYVl.js +618 -0
  117. package/dist/src/{docker--3qzPa-6.js → docker-4D1eL6Gq.js} +5 -5
  118. package/dist/src/{docker-Dorv4_Dg.js → docker-BBv1WUDu.js} +5 -5
  119. package/dist/src/{docker-D3AY-5F5.cjs → docker-D06JUoe2.cjs} +6 -6
  120. package/dist/src/{docker-DCsCDvwM.js → docker-DdJQBxK9.js} +5 -5
  121. package/dist/src/{embedding-DNRvZwRN.js → embedding--UZVe4_7.js} +5 -5
  122. package/dist/src/{embedding-BXhN5lCH.cjs → embedding-BbrwopfX.cjs} +6 -6
  123. package/dist/src/{embedding-ChS1ivFS.js → embedding-Bi3rxrZF.js} +5 -5
  124. package/dist/src/{embedding-D_bI4NDq.js → embedding-C251p1-8.js} +4 -4
  125. package/dist/src/{errors-DFHe4L-n.js → errors-9PcUL8BC.js} +1 -1
  126. package/dist/src/{esm-B_rGuPTo.cjs → esm-BIKakvNa.cjs} +8 -7
  127. package/dist/src/{esm-BRkfNsYs.js → esm-BTK1W7lG.js} +1 -1
  128. package/dist/src/{esm-BX8fwlAO.js → esm-Bexx2PFc.js} +1 -1
  129. package/dist/src/{eval-DJ_4A-tr.js → eval-0VRANImH.js} +19 -19
  130. package/dist/src/{eval-BQPLBJbw.js → eval-DscR5iOM.js} +1 -1
  131. package/dist/src/{evalResult-pSvGWFMo.js → evalResult-2RRJvFyB.js} +18 -11
  132. package/dist/src/{evalResult-Cx-8OWkb.cjs → evalResult-CvtS8h8u.cjs} +29 -11
  133. package/dist/src/evalResult-DqzsS6_W.js +3 -0
  134. package/dist/src/{evalResult-D6P5I5il.js → evalResult-eUkJv9Ko.js} +17 -10
  135. package/dist/src/evaluator-DNdJF1Gv.js +3 -0
  136. package/dist/src/{evaluator-D-UIbbYq.js → evaluator-DRoiYB2q.js} +258 -132
  137. package/dist/src/evaluatorHelpers-BsYP_muT.js +511 -0
  138. package/dist/src/evaluatorHelpers-CRqTvSux.cjs +537 -0
  139. package/dist/src/evaluatorHelpers-DuqFFfq7.js +510 -0
  140. package/dist/src/{extractor-YlZbUMsL.js → extractor-BR7XAzAL.js} +5 -5
  141. package/dist/src/{extractor-Dxr2J_wK.cjs → extractor-BdxEtt3J.cjs} +6 -6
  142. package/dist/src/{extractor-DxyiFhPk.js → extractor-CIW3iN-b.js} +5 -5
  143. package/dist/src/{extractor-BM3jRERL.js → extractor-CxRtnaHl.js} +5 -5
  144. package/dist/src/{fetch-Y5qX_kST.js → fetch-BufrQtvR.js} +90 -26
  145. package/dist/src/{fetch-B6ch2nU2.js → fetch-DXUnXkVU.js} +86 -26
  146. package/dist/src/{fetch-NuqXW1Xb.cjs → fetch-Dw4XZHjj.cjs} +115 -32
  147. package/dist/src/{fetch-D9xxyC1p.js → fetch-It34O8Ur.js} +90 -26
  148. package/dist/src/fetch-_YgGd2qv.js +3 -0
  149. package/dist/src/{fileExtensions-D9h-8Wxg.cjs → fileExtensions-BhdwzYaD.cjs} +24 -1
  150. package/dist/src/{fileExtensions-BGh-W-HT.js → fileExtensions-CXRfY3Ss.js} +12 -2
  151. package/dist/src/{fileExtensions-DysCsxNG.js → fileExtensions-D4GCJ67J.js} +12 -2
  152. package/dist/src/{formatDuration-Ch4A7G3o.js → formatDuration-CMVNrYvE.js} +1 -1
  153. package/dist/src/{genaiTracer-BokHC-MW.cjs → genaiTracer-14nugQQx.cjs} +14 -2
  154. package/dist/src/{genaiTracer-C3ZPQU60.js → genaiTracer-BPVvltoW.js} +2 -2
  155. package/dist/src/{genaiTracer-DxODqT9e.js → genaiTracer-D18lYzhB.js} +2 -2
  156. package/dist/src/{genaiTracer-CFny3gOy.js → genaiTracer-jJKYsnjc.js} +2 -2
  157. package/dist/src/goat-Ckd3q3AY.js +467 -0
  158. package/dist/src/goat-Qgurm-NP.js +466 -0
  159. package/dist/src/goat-ghadEDdy.js +465 -0
  160. package/dist/src/goat-una6pZGP.cjs +469 -0
  161. package/dist/src/graders-BDT7dif6.js +3 -0
  162. package/dist/src/{graders-CgPn32yp.js → graders-BGP99PdK.js} +1017 -84
  163. package/dist/src/{graders-BoUqsCEm.js → graders-BX0f2tvS.js} +1022 -84
  164. package/dist/src/{graders-CwrbifOo.js → graders-C0nXU_ZP.js} +1020 -82
  165. package/dist/src/{graders-Bw1wk_21.cjs → graders-ClrU2fnd.cjs} +1085 -128
  166. package/dist/src/hydra-BSNZZm2M.js +543 -0
  167. package/dist/src/hydra-BxdG4nkg.js +541 -0
  168. package/dist/src/hydra-DE4xWwyc.js +542 -0
  169. package/dist/src/hydra-DrJttnvw.cjs +542 -0
  170. package/dist/src/image-B4oBtu6J.js +443 -0
  171. package/dist/src/{image-Dr_3I3nK.js → image-BN-hjLL9.js} +3 -3
  172. package/dist/src/{image-BeWaInPF.js → image-B_fPIwdg.js} +3 -3
  173. package/dist/src/image-BvUAW344.js +442 -0
  174. package/dist/src/image-Cvjwx1uY.js +442 -0
  175. package/dist/src/{image-D10dNAav.cjs → image-DfVCGPbI.cjs} +4 -4
  176. package/dist/src/{image-qjO6FWPs.js → image-QzmydkiG.js} +3 -3
  177. package/dist/src/image-X0oY4350.cjs +465 -0
  178. package/dist/src/index.cjs +688 -313
  179. package/dist/src/index.d.cts +3152 -1617
  180. package/dist/src/index.d.ts +3151 -1616
  181. package/dist/src/index.js +582 -223
  182. package/dist/src/indirectWebPwn-02ZIghCS.js +259 -0
  183. package/dist/src/indirectWebPwn-BJ22AbQa.cjs +397 -0
  184. package/dist/src/indirectWebPwn-CbjUG0rh.js +385 -0
  185. package/dist/src/indirectWebPwn-CfQJt3gk.cjs +260 -0
  186. package/dist/src/indirectWebPwn-DBQhOjoD.js +260 -0
  187. package/dist/src/indirectWebPwn-OsXnKejv.js +259 -0
  188. package/dist/src/indirectWebPwn-tNx9OZ35.js +385 -0
  189. package/dist/src/indirectWebPwn-uyWdHx04.js +386 -0
  190. package/dist/src/inputVariables-B0qUChbV.js +467 -0
  191. package/dist/src/inputVariables-DUGMb9Ka.js +464 -0
  192. package/dist/src/inputVariables-DXFdi7AI.js +468 -0
  193. package/dist/src/inputVariables-Dq9W-Z3a.cjs +475 -0
  194. package/dist/src/{interactiveCheck-CCICw2cy.js → interactiveCheck-C4QlIuoR.js} +1 -1
  195. package/dist/src/{invariant-kfQ8Bu82.cjs → invariant-QtnLD03y.cjs} +1 -1
  196. package/dist/src/iterative-CpU6i2As.js +490 -0
  197. package/dist/src/iterative-DJQEQpG3.js +491 -0
  198. package/dist/src/iterative-DQBuWM-j.cjs +493 -0
  199. package/dist/src/iterative-FTS4Bz67.js +492 -0
  200. package/dist/src/iterativeImage-BUABMVOA.js +413 -0
  201. package/dist/src/iterativeImage-ByFWkxax.cjs +415 -0
  202. package/dist/src/iterativeImage-BzUapOUi.js +414 -0
  203. package/dist/src/iterativeImage-Doz8mgxF.js +413 -0
  204. package/dist/src/iterativeMeta-B3YiAOc8.js +386 -0
  205. package/dist/src/iterativeMeta-C7APE_P1.js +385 -0
  206. package/dist/src/iterativeMeta-CSS8M6Ds.cjs +385 -0
  207. package/dist/src/iterativeMeta-DgoQ7bLh.js +384 -0
  208. package/dist/src/iterativeTree-B5zxBBSW.js +769 -0
  209. package/dist/src/iterativeTree-CNyIk0Yn.js +768 -0
  210. package/dist/src/iterativeTree-CPMF10ve.cjs +771 -0
  211. package/dist/src/iterativeTree-DvZ7GBwt.js +770 -0
  212. package/dist/src/{knowledgeBase-Dr3Kib7F.js → knowledgeBase-BadkINlJ.js} +24 -10
  213. package/dist/src/{knowledgeBase-BBETc5-S.js → knowledgeBase-Bi_8sV-H.js} +23 -9
  214. package/dist/src/{knowledgeBase-CzAi2rUI.js → knowledgeBase-CkMljjdg.js} +24 -10
  215. package/dist/src/{knowledgeBase-C8qOo26M.cjs → knowledgeBase-DUh34xba.cjs} +25 -11
  216. package/dist/src/{litellm-DRc4qWfc.js → litellm-BKBo0jpC.js} +4 -4
  217. package/dist/src/{litellm-BLSiANhk.js → litellm-BXyn5kZK.js} +4 -4
  218. package/dist/src/{litellm-DQGo_juI.js → litellm-CNcfbCfa.js} +4 -4
  219. package/dist/src/{litellm-CaUmV7Mk.cjs → litellm-CtAr7bKG.cjs} +5 -5
  220. package/dist/src/{logger-COuQb2xB.cjs → logger-cfNpzI4o.cjs} +13 -55
  221. package/dist/src/{luma-ray-B-tNZzqW.js → luma-ray-BMX1iEB6.js} +5 -5
  222. package/dist/src/{luma-ray-CtS3OlGq.js → luma-ray-CR5TSpp4.js} +5 -5
  223. package/dist/src/{luma-ray-if-Ml4R9.cjs → luma-ray-D3FUc2K3.cjs} +9 -8
  224. package/dist/src/{luma-ray-PJJgUjOc.js → luma-ray-OEMmS1RB.js} +5 -5
  225. package/dist/src/main.js +704 -208
  226. package/dist/src/memoryPoisoning-CM83NWYl.js +107 -0
  227. package/dist/src/memoryPoisoning-D8h9gXJF.js +106 -0
  228. package/dist/src/memoryPoisoning-Dp-btinn.cjs +106 -0
  229. package/dist/src/memoryPoisoning-cLuCoTuJ.js +106 -0
  230. package/dist/src/{messages-CewuNcNS.js → messages-BabO-cX8.js} +17 -9
  231. package/dist/src/{messages-BnsVHUnm.cjs → messages-DBPir0TQ.cjs} +24 -15
  232. package/dist/src/{messages-B9dSjrNf.js → messages-DGUlSNU7.js} +18 -10
  233. package/dist/src/{messages-CI69Lasb.js → messages-vsE_-Lv0.js} +18 -10
  234. package/dist/src/{meteor-CeGo0Lu2.js → meteor--TZYICTI.js} +1 -1
  235. package/dist/src/{meteor-BBGcGeCa.cjs → meteor-CR226f7Z.cjs} +2 -2
  236. package/dist/src/{meteor-Wc_aUVvu.js → meteor-Cl_yd7rJ.js} +1 -1
  237. package/dist/src/{meteor-BKTM-7KS.js → meteor-Dce-_zGQ.js} +1 -1
  238. package/dist/src/mischievousUser-0l8GD7Dp.js +46 -0
  239. package/dist/src/mischievousUser-BUOP9W5r.js +46 -0
  240. package/dist/src/mischievousUser-frFYKxu6.js +47 -0
  241. package/dist/src/mischievousUser-olGgHIVR.cjs +46 -0
  242. package/dist/src/{modelslab-BkapYJhh.cjs → modelslab-CNV5bMSk.cjs} +7 -7
  243. package/dist/src/{modelslab-zpz9JcK0.js → modelslab-Cogmu4mG.js} +6 -6
  244. package/dist/src/{modelslab-D73OnKSx.js → modelslab-Dzst7VTU.js} +6 -6
  245. package/dist/src/{modelslab-BCLOtfek.js → modelslab-EyDczZ5A.js} +6 -6
  246. package/dist/src/{nova-reel-B8F_TK5w.js → nova-reel-BGPNBOMS.js} +5 -5
  247. package/dist/src/{nova-reel-Bx0NFV2f.js → nova-reel-B_5NKFu1.js} +5 -5
  248. package/dist/src/{nova-reel-CNGJTLtG.js → nova-reel-C4eUJGse.js} +5 -5
  249. package/dist/src/{nova-reel-DkT7tnoB.cjs → nova-reel-CjJRxI1X.cjs} +9 -8
  250. package/dist/src/{nova-sonic-BaXRN1cr.js → nova-sonic-BNGmgfFz.js} +3 -3
  251. package/dist/src/{nova-sonic-BeTRaFOh.js → nova-sonic-ChPlh5na.js} +2 -2
  252. package/dist/src/{nova-sonic-CL7Zqv0G.js → nova-sonic-CrV0iaY_.js} +3 -3
  253. package/dist/src/{nova-sonic-YT426juD.cjs → nova-sonic-DuOG9Aun.cjs} +5 -4
  254. package/dist/src/{openai-Cy1XLs0c.cjs → openai-C3uXv8wS.cjs} +2 -2
  255. package/dist/src/{openai-BT-JvDse.js → openai-CJrsh9n4.js} +1 -1
  256. package/dist/src/{openai-D4fxGvRx.js → openai-zgwBb4Ff.js} +1 -1
  257. package/dist/src/{openclaw-Bq7RVR3k.js → openclaw-BIHlu_36.js} +9 -8
  258. package/dist/src/{openclaw-DObVgpjC.js → openclaw-CF7fMido.js} +9 -8
  259. package/dist/src/{openclaw-DUBZP3GL.cjs → openclaw-Dphc01BY.cjs} +17 -15
  260. package/dist/src/{openclaw-DA8U4DsD.js → openclaw-zIJAsz3P.js} +9 -8
  261. package/dist/src/{opencode-sdk-BB40Wir1.js → opencode-sdk-B3vlPLsp.js} +38 -3
  262. package/dist/src/{opencode-sdk-ChdK7F7z.js → opencode-sdk-D05JSgMQ.js} +39 -4
  263. package/dist/src/{opencode-sdk-CeqiOcOU.cjs → opencode-sdk-DoY6GbWw.cjs} +45 -9
  264. package/dist/src/{opencode-sdk-BM1UAIv1.js → opencode-sdk-sRKYHGoI.js} +39 -4
  265. package/dist/src/{otlpReceiver-UYMQx3sy.js → otlpReceiver--gTpSagc.js} +119 -3
  266. package/dist/src/{otlpReceiver-C6thJRXi.js → otlpReceiver-B2eaKC8C.js} +118 -2
  267. package/dist/src/{otlpReceiver-CcdIikOu.js → otlpReceiver-BXjcRqAM.js} +119 -3
  268. package/dist/src/{otlpReceiver-DNSQj6bf.cjs → otlpReceiver-CvJdBGSc.cjs} +125 -7
  269. package/dist/src/packageParser--MWTSrPW.js +36 -0
  270. package/dist/src/packageParser-CgE-ziRo.js +35 -0
  271. package/dist/src/packageParser-QoCS1FMl.cjs +54 -0
  272. package/dist/src/packageParser-hwwSGnAZ.js +35 -0
  273. package/dist/src/processShim-BBxt7LKO.js +95 -0
  274. package/dist/src/processShim-BcGzU8fY.js +94 -0
  275. package/dist/src/processShim-C_z3aRvF.js +94 -0
  276. package/dist/src/processShim-DSY9BV2T.cjs +98 -0
  277. package/dist/src/promptLength-0qIHyhA5.js +71 -0
  278. package/dist/src/promptLength-4X-Wd8PG.js +72 -0
  279. package/dist/src/promptLength-B9nZEfO6.js +71 -0
  280. package/dist/src/promptLength-BbBbDHNj.cjs +94 -0
  281. package/dist/src/promptfoo-BDrfT30-.js +180 -0
  282. package/dist/src/promptfoo-Cm4hiy1Y.js +180 -0
  283. package/dist/src/promptfoo-Rjp-MeBb.js +181 -0
  284. package/dist/src/promptfoo-b-baRMj-.cjs +205 -0
  285. package/dist/src/prompts-BYMtqPCw.js +259 -0
  286. package/dist/src/prompts-C-bqE1Yp.js +260 -0
  287. package/dist/src/prompts-Cp_Qx5Ml.js +270 -0
  288. package/dist/src/prompts-DHhQsANy.js +259 -0
  289. package/dist/src/prompts-D_QpZ2Dm.js +271 -0
  290. package/dist/src/prompts-hNvWBD3z.cjs +284 -0
  291. package/dist/src/prompts-huDVH2CI.js +270 -0
  292. package/dist/src/prompts-p78Hul5i.cjs +289 -0
  293. package/dist/src/{providerRegistry-BESeALrr.cjs → providerRegistry-CZO_w7ue.cjs} +2 -2
  294. package/dist/src/{providerRegistry-DoACwqhD.js → providerRegistry-DHcFiVWX.js} +1 -1
  295. package/dist/src/{providerRegistry-PMsleEzs.js → providerRegistry-ReCd0sFa.js} +1 -1
  296. package/dist/src/{providers-DT-GtF2t.js → providers-B9KzWxAX.js} +739 -11919
  297. package/dist/src/{providers-DRrerKra.js → providers-BCCz6_IX.js} +813 -11944
  298. package/dist/src/{providers-eDShy16E.cjs → providers-BDVVIQM6.cjs} +787 -12132
  299. package/dist/src/{providers-Ctcc592x.js → providers-BYAn82cf.js} +1 -1
  300. package/dist/src/{providers-CJh7iriU.js → providers-DVYRZP4E.js} +746 -11866
  301. package/dist/src/{pythonUtils-C4tltmIn.js → pythonUtils-CLCgQ9tt.js} +1 -1
  302. package/dist/src/{pythonUtils-DNqbnRdx.js → pythonUtils-CgYxeSmO.js} +2 -2
  303. package/dist/src/{pythonUtils-CoLaCwNY.cjs → pythonUtils-Cokhluq3.cjs} +7 -6
  304. package/dist/src/{pythonUtils-DMO68Jg7.js → pythonUtils-D0BYebvX.js} +2 -2
  305. package/dist/src/{quiverai-Bpx6MZ7T.cjs → quiverai-BAp6iTZD.cjs} +4 -4
  306. package/dist/src/{quiverai-CPKhWgaT.js → quiverai-BvIhI_0l.js} +3 -3
  307. package/dist/src/{quiverai-BSS9a7wV.js → quiverai-CdTWPe-A.js} +3 -3
  308. package/dist/src/{quiverai-Bk1KrvL6.js → quiverai-Cv7rJKDz.js} +3 -3
  309. package/dist/src/registry-BUJrgjwv.js +124 -0
  310. package/dist/src/registry-DXm1t_x0.js +125 -0
  311. package/dist/src/registry-Dp5EqoXc.js +124 -0
  312. package/dist/src/registry-KCVF1CFC.cjs +124 -0
  313. package/dist/src/{server-ByxbqAcQ.js → remoteGeneration-B1_XsKXU.js} +16 -147
  314. package/dist/src/{server-gyd6d4Hc.js → remoteGeneration-COpWcmWd.js} +15 -108
  315. package/dist/src/{server-BEECpeGG.cjs → remoteGeneration-DS9N3pgB.cjs} +30 -119
  316. package/dist/src/remoteGeneration-DsaSwmG2.js +217 -0
  317. package/dist/src/render-BNTrbmBw.cjs +384 -0
  318. package/dist/src/render-CSP99NLm.js +348 -0
  319. package/dist/src/render-DFfDeYUK.js +347 -0
  320. package/dist/src/{render-nj-UaPdn.js → render-DznWrxGO.js} +2 -2
  321. package/dist/src/render-_6ur1fhE.js +347 -0
  322. package/dist/src/resourceAttributes-D1jP3kL5.js +17 -0
  323. package/dist/src/resourceAttributes-DQbBB--2.js +16 -0
  324. package/dist/src/resourceAttributes-ephgOvdR.cjs +27 -0
  325. package/dist/src/resourceAttributes-v6-I67fn.js +16 -0
  326. package/dist/src/{responses-CF-ayauu.cjs → responses-1UFFF9N_.cjs} +12 -11
  327. package/dist/src/{responses-B8haB-mD.js → responses-B3W2JvOQ.js} +9 -9
  328. package/dist/src/{responses-1ztiVYsx.js → responses-B6ktc3Ra.js} +7 -7
  329. package/dist/src/{responses-BiaBguAu.js → responses-URRzV8qE.js} +9 -9
  330. package/dist/src/rolldown-runtime-D_mwlA32.cjs +43 -0
  331. package/dist/src/rubyUtils-BYVlQ94c.js +3 -0
  332. package/dist/src/{rubyUtils-CIQFnVz4.js → rubyUtils-CXlFM2rR.js} +2 -2
  333. package/dist/src/{rubyUtils-BI0p46eZ.js → rubyUtils-CnlW8AYb.js} +2 -2
  334. package/dist/src/{rubyUtils-DoifqkiA.cjs → rubyUtils-CqUWBZAt.cjs} +16 -26
  335. package/dist/src/{rubyUtils-DGnoCYL2.js → rubyUtils-DdGojpfv.js} +1 -1
  336. package/dist/src/runtimeTransform-BJOpL9Yc.js +142 -0
  337. package/dist/src/runtimeTransform-Dgh_D7DU.js +143 -0
  338. package/dist/src/runtimeTransform-DigbjU1r.js +142 -0
  339. package/dist/src/runtimeTransform-ON3YYILw.cjs +147 -0
  340. package/dist/src/{sagemaker-ClS_NB07.js → sagemaker-CujrzP1a.js} +61 -50
  341. package/dist/src/{sagemaker-ljtY12VM.cjs → sagemaker-DzffAqo_.cjs} +65 -53
  342. package/dist/src/{sagemaker-C5T60MKf.js → sagemaker-vhtSV7JI.js} +61 -50
  343. package/dist/src/{sagemaker-BDLeW29y.js → sagemaker-yr1QKeBs.js} +61 -50
  344. package/dist/src/{scanner-nOCWNIXa.js → scanner-DS0109SS.js} +6 -6
  345. package/dist/src/server/index.js +4147 -449
  346. package/dist/src/server-B8rqV126.cjs +126 -0
  347. package/dist/src/server-BaLytskk.js +3 -0
  348. package/dist/src/server-CMJD10J4.js +107 -0
  349. package/dist/src/server-Ddp8GNMp.js +146 -0
  350. package/dist/src/server-DhMHosWj.js +182 -0
  351. package/dist/src/shared-7pmVZLNO.js +1334 -0
  352. package/dist/src/shared-9WHQ1oNE.js +1335 -0
  353. package/dist/src/{fileExtensions-8CjoL7vB.js → shared-BoG7qLMv.js} +12 -2
  354. package/dist/src/shared-D6IjElRI.js +1334 -0
  355. package/dist/src/shared-WkgnDkcg.cjs +1436 -0
  356. package/dist/src/{signal-DTtUuU3l.js → signal-CSurUUyV.js} +2 -2
  357. package/dist/src/simulatedUser-C9aQObBI.js +222 -0
  358. package/dist/src/simulatedUser-Cu601Dd4.cjs +227 -0
  359. package/dist/src/simulatedUser-U_qAHnuB.js +222 -0
  360. package/dist/src/simulatedUser-p3tACcmw.js +223 -0
  361. package/dist/src/{slack-Bamy_7te.js → slack-Bapo-7_8.js} +1 -1
  362. package/dist/src/{slack-BLlsDpfG.cjs → slack-DMC1QVEg.cjs} +3 -2
  363. package/dist/src/{slack-BPYLQLgb.js → slack-DTEFhrMn.js} +1 -1
  364. package/dist/src/{slack-4zZX1OKP.js → slack-k-_CP84Q.js} +1 -1
  365. package/dist/src/storage-BU4qcnOb.js +875 -0
  366. package/dist/src/storage-CA-v9V2v.cjs +911 -0
  367. package/dist/src/storage-CD-GWAdx.js +822 -0
  368. package/dist/src/storage-QdU-SmvD.js +834 -0
  369. package/dist/src/{store-2K0kDi80.cjs → store-B2NDDooM.cjs} +60 -24
  370. package/dist/src/{store-CPh25336.js → store-DKd5592Q.js} +50 -19
  371. package/dist/src/{store-BPkzEyFM.js → store-HpopRVzl.js} +50 -19
  372. package/dist/src/store-IbiRIF3k.js +3 -0
  373. package/dist/src/strategies-7CS3Alao.cjs +2360 -0
  374. package/dist/src/strategies-CiSeroPH.js +2331 -0
  375. package/dist/src/strategies-DRJjGTIY.js +2333 -0
  376. package/dist/src/{tables-WgdUZ8Ck.js → tables-CRSXQ2Ke.js} +2 -2
  377. package/dist/src/{tables-BMSOS2Gg.js → tables-CxjU7bBd.js} +2 -2
  378. package/dist/src/{tables-CXbaZ9y1.cjs → tables-DBIJU0WE.cjs} +6 -5
  379. package/dist/src/{tables-NlvH23ky.js → tables-DafUHOeh.js} +2 -2
  380. package/dist/src/{telemetry-DWdGHvEf.js → telemetry-00ezXr_t.js} +4 -4
  381. package/dist/src/telemetry-ByPqDcKC.js +3 -0
  382. package/dist/src/{telemetry-CEQxGnMZ.cjs → telemetry-CJ7FnCsc.cjs} +15 -9
  383. package/dist/src/{telemetry--iqaGyaS.js → telemetry-DmXYcJNV.js} +4 -4
  384. package/dist/src/{telemetry-CgdVGV8N.js → telemetry-DwX9XUN5.js} +4 -4
  385. package/dist/src/{text-DDQP0tuQ.js → text-CZr46tp_.js} +1 -1
  386. package/dist/src/{text-D4lz-Jg_.js → text-Db-Wt2u2.js} +1 -1
  387. package/dist/src/{text-NWvfMfkF.js → text-DwYK5EBn.js} +1 -1
  388. package/dist/src/{text-BiNME7QG.cjs → text-nywWsRBM.cjs} +1 -1
  389. package/dist/src/{tokenUsageUtils-2wIvAhB3.js → tokenUsageUtils-CDet74yk.js} +1 -1
  390. package/dist/src/{tokenUsageUtils-4c780gFd.js → tokenUsageUtils-CmnQ0G2m.js} +1 -1
  391. package/dist/src/{tokenUsageUtils-C9odhsbW.cjs → tokenUsageUtils-_B-P8IAi.cjs} +1 -1
  392. package/dist/src/toolAttributes-BAjwcBf0.cjs +103 -0
  393. package/dist/src/toolAttributes-COVgDrBG.js +87 -0
  394. package/dist/src/toolAttributes-DJ9ZEKXD.js +86 -0
  395. package/dist/src/tracingOptions-BnwKCkSB.js +221 -0
  396. package/dist/src/tracingOptions-Chi74lOD.js +219 -0
  397. package/dist/src/tracingOptions-DrbSFaKy.cjs +249 -0
  398. package/dist/src/tracingOptions-ji2OuXbT.js +220 -0
  399. package/dist/src/{transcription-84t4ALo2.js → transcription-B8uIgCYX.js} +5 -5
  400. package/dist/src/{transcription-Bm2emLmJ.js → transcription-CfU5loSq.js} +5 -5
  401. package/dist/src/{transcription-D7Q0vJsh.js → transcription-Dkd22_4K.js} +4 -4
  402. package/dist/src/{transcription-CZ4LG5hQ.cjs → transcription-mzuf18Mq.cjs} +9 -8
  403. package/dist/src/{transform-DtooZqYY.js → transform-BIMynQsA.js} +8 -8
  404. package/dist/src/transform-BnSTnFlp.js +187 -0
  405. package/dist/src/transform-BnSXWmU_2.cjs +221 -0
  406. package/dist/src/transform-CGt7Kt3y2.js +186 -0
  407. package/dist/src/transform-CrPGTsij.js +186 -0
  408. package/dist/src/{transform-Dg4LcO1Y.cjs → transform-DhNkAUs8.cjs} +12 -11
  409. package/dist/src/{transform-_DpNB4qp.js → transform-DmvYBRll.js} +8 -8
  410. package/dist/src/{transform-B-b6Cq-q.js → transform-EtD4jAWi.js} +8 -8
  411. package/dist/src/{transformersAvailability-lvCCvuPT.js → transformersAvailability-0ThtPved.js} +1 -1
  412. package/dist/src/transformersAvailability-BYydDE5U.js +35 -0
  413. package/dist/src/{transformersAvailability-rJGPccjr.js → transformersAvailability-BvyU9vDD.js} +1 -1
  414. package/dist/src/{transformersAvailability-B22swDxr.cjs → transformersAvailability-BytPvKUW.cjs} +1 -1
  415. package/dist/src/{types-BVH9hjgW.js → types-BFevViUY.js} +113 -19
  416. package/dist/src/{types-BDjGOq4E.js → types-BJQBBPTP.js} +113 -19
  417. package/dist/src/{types-CgG2rKiW.cjs → types-CxJvaY2S.cjs} +211 -28
  418. package/dist/src/{types-DNRZVOue.js → types-D6glLbdF.js} +125 -26
  419. package/dist/src/{util-DFPeFkiV.js → util--WMgw7wM.js} +28 -8
  420. package/dist/src/{util-C-kmRosx.js → util-5WnCSb0h.js} +9 -7
  421. package/dist/src/{util-A5_ZsQUn.cjs → util-BSIuSLVK.cjs} +12 -9
  422. package/dist/src/{util-Dub0f_ej.js → util-Bx677_k2.js} +17 -10
  423. package/dist/src/util-CN8om2rz.cjs +386 -0
  424. package/dist/src/{util-DN0-b81k.js → util-CoQWM76y.js} +28 -8
  425. package/dist/src/util-DNl96nNs.js +327 -0
  426. package/dist/src/{util-BQOCAHQC.js → util-DURocbYR.js} +46 -11
  427. package/dist/src/util-Df8YMvS1.js +327 -0
  428. package/dist/src/{util-BVXcTwXu.js → util-DiQ3QvBB.js} +28 -8
  429. package/dist/src/{util-3pBZZb_H.js → util-I-Rf-KaD.js} +45 -10
  430. package/dist/src/{util-Dpmm_dAI.cjs → util-IYzs5Y04.cjs} +33 -7
  431. package/dist/src/{util-BlFVL0UF.js → util-LKTmNsMQ.js} +9 -7
  432. package/dist/src/{util-DvpHnLt0.cjs → util-SPsvFONY.cjs} +29 -21
  433. package/dist/src/{util-B9CNhyac.js → util-efByNxcr.js} +9 -7
  434. package/dist/src/util-kDURhgJW.js +328 -0
  435. package/dist/src/{utils-BUMN8orw.js → utils-B0lzitHZ.js} +2 -2
  436. package/dist/src/{utils-kt7lv30R.js → utils-BFOh20Gb.js} +2 -2
  437. package/dist/src/{utils-o8S5huU2.js → utils-BGY69tk_.js} +2 -2
  438. package/dist/src/{utils-DkVeShIB.cjs → utils-Ve6kuJsa.cjs} +3 -3
  439. package/dist/src/{version-CbuBKu2U.js → version-BK20a4sw.js} +2 -2
  440. package/dist/src/{version-D9zu9FWB.cjs → version-BWCSaByA.cjs} +2 -2
  441. package/dist/src/{version-CbpiUINz.js → version-eRkNuGv8.js} +2 -2
  442. package/dist/src/{version-0frU0UTr.js → version-lpHV_53E.js} +2 -2
  443. package/dist/tsconfig.tsbuildinfo +1 -1
  444. package/package.json +48 -22
  445. package/dist/src/app/assets/Report-vjzrbgce.js +0 -1
  446. package/dist/src/app/assets/index-B3NQ8HTd.js +0 -385
  447. package/dist/src/app/assets/index-Cli2yAXv.css +0 -1
  448. package/dist/src/app/assets/sync-IjzpWrOE.js +0 -4
  449. package/dist/src/app/assets/vendor-charts-BNdH8TCw.js +0 -36
  450. package/dist/src/cache-BRkhlH3k.cjs +0 -3
  451. package/dist/src/cache-BlC6aeJ0.js +0 -3
  452. package/dist/src/cloud-CoD5OacT.js +0 -3
  453. package/dist/src/codex-sdk-1jm_qPHf.js +0 -3
  454. package/dist/src/codex-sdk-Danroptg.cjs +0 -2
  455. package/dist/src/evalResult-BBJAHAtw.cjs +0 -2
  456. package/dist/src/evalResult-BBK58h2B.js +0 -3
  457. package/dist/src/evalResult-spPqh1G_.js +0 -2
  458. package/dist/src/evaluator-DgLKaZk8.js +0 -3
  459. package/dist/src/fetch-8viavNv8.js +0 -3
  460. package/dist/src/graders-C84JI-m5.js +0 -2
  461. package/dist/src/graders-CBbd0K0Q.cjs +0 -2
  462. package/dist/src/graders-CbQqpHSN.js +0 -3
  463. package/dist/src/graders-DS42d3ZG.js +0 -2
  464. package/dist/src/image-BmilRNqO.js +0 -258
  465. package/dist/src/image-CxJoa3aW.cjs +0 -280
  466. package/dist/src/image-DsGRlkh7.js +0 -257
  467. package/dist/src/image-a_SGUobh.js +0 -257
  468. package/dist/src/providers-BuyzKt7C.js +0 -2
  469. package/dist/src/providers-C7lNVBjX.cjs +0 -3
  470. package/dist/src/providers-CCE2COJi2.js +0 -2
  471. package/dist/src/render-7uNJ2V14.js +0 -135
  472. package/dist/src/render-DlscvAUJ.js +0 -135
  473. package/dist/src/render-eui5p5mL.js +0 -136
  474. package/dist/src/render-tG6ir9_g.cjs +0 -165
  475. package/dist/src/rubyUtils-4hjGxvju.js +0 -3
  476. package/dist/src/rubyUtils-CO-tuszQ.cjs +0 -2
  477. package/dist/src/server-ByiF3qlg.js +0 -386
  478. package/dist/src/server-C0XKRNB_.cjs +0 -2
  479. package/dist/src/server-C_15p79-.js +0 -3
  480. package/dist/src/store-2OXm_eBY.js +0 -240
  481. package/dist/src/store-BELqNwvz.js +0 -3
  482. package/dist/src/store-uQZ4AjPe.cjs +0 -2
  483. package/dist/src/telemetry-DjNoC_n3.cjs +0 -2
  484. package/dist/src/telemetry-ZdPZc0fm.js +0 -3
  485. package/dist/src/transform-BQt0BeAW.js +0 -3
  486. package/dist/src/transform-Bq5oqC0s.cjs +0 -2
  487. package/dist/src/transform-C9izGX54.cjs +0 -228
  488. package/dist/src/transform-CwbAZ84V.js +0 -216
  489. package/dist/src/transform-DzCF-wqV.js +0 -213
  490. package/dist/src/transform-eGiUAv86.js +0 -216
@@ -1 +1 @@
1
- var e=Object.defineProperty,t=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,n=(e,n,r)=>(t(e,typeof n==`symbol`?n:n+``,r),r);(function(){class e{}class t extends e{constructor(e){super(),n(this,`value`),this.value=e}}class r extends e{constructor(e){super(),n(this,`value`),this.value=e}}class i extends e{constructor(e){super(),n(this,`value`),this.value=e}}class a extends e{constructor(e,t=`unrestricted`){super(),n(this,`type`),n(this,`value`),this.value=e,this.type=t}}class o extends e{constructor(e){super(),n(this,`value`),this.value=e}}class s extends e{}class c extends e{constructor(e){super(),n(this,`value`),this.value=e}}class l extends e{}class u extends e{constructor(e){super(),n(this,`value`),this.value=e}}class d extends e{constructor(e,t=`integer`){super(),n(this,`value`),n(this,`type`),this.value=e,this.type=t}}class f extends e{constructor(e){super(),n(this,`value`),this.value=e}}class p extends e{constructor(e,t,r){super(),n(this,`value`),n(this,`type`),n(this,`unit`),this.value=e,this.type=t,this.unit=r}}class m extends e{}class h extends e{}class g extends e{}class _ extends e{}class ee extends e{}class te extends e{}class ne extends e{}class re extends e{}class v extends e{}class y extends e{}class ie extends e{}class ae extends e{}class oe{constructor(e){n(this,`input`),n(this,`index`,0),this.input=e}consume(){let e=this.input.codePointAt(this.index);return e!==void 0&&(this.index+=String.fromCodePoint(e).length),e}reconsume(e){e!==void 0&&(this.index-=String.fromCodePoint(e).length)}peek(){let e=[],t=this.index;for(let n=0;n<3&&t<this.input.length;n++){let n=this.input.codePointAt(t);e.push(n),t+=String.fromCodePoint(n).length}return e}}function se(e){return e===10}function b(e){return se(e)||e===8192||e===32}function x(e){return e>=48&&e<=57}function ce(e){return x(e)||e>=65&&e<=70||e>=97&&e<=102}function S(e){return function(e){return function(e){return e>=65&&e<=90}(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||e===95}function le(e){return S(e)||x(e)||e===45}function ue(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function C(e,t){return e===92&&!se(t)}function w(e,t,n){return e===45?S(t)||t===45||C(t,n):!!S(e)||e===92&&C(e,t)}function de(e,t,n){return e===43||e===45?x(t)||t===46&&x(n):x(e===46?t:e)}function fe(e){let t=e.consume();if(ce(t)){let n=[t];for(;ce(...e.peek())&&n.length<5;)n.push(e.consume());b(...e.peek())&&e.consume();let r=parseInt(String.fromCodePoint(...n),16);return r===0||r>1114111?65533:r}return t===void 0?65533:t}function pe(e,t){let n=new o(``);for(;;){let r=e.consume();if(r===t||r===void 0)return n;if(r===10)return e.reconsume(r),new s;if(r===92){let t=e.peek()[0];t===void 0||(se(t)?e.consume():n.value+=String.fromCodePoint(fe(e)))}else n.value+=String.fromCodePoint(r)}}function me(e){let t=``;for(;;){let n=e.consume();if(le(n))t+=String.fromCodePoint(n);else{if(!C(...e.peek()))return e.reconsume(n),t;t+=String.fromCodePoint(fe(e))}}}function he(e){let t=function(e){let t=`integer`,n=``;for([43,45].includes(e.peek()[0])&&(n+=String.fromCodePoint(e.consume()));x(...e.peek());)n+=String.fromCodePoint(e.consume());if(e.peek()[0]===46&&x(e.peek()[1]))for(n+=String.fromCodePoint(e.consume(),e.consume()),t=`number`;x(...e.peek());)n+=String.fromCodePoint(e.consume());return[69,101].includes(e.peek()[0])&&([45,43].includes(e.peek()[1])&&x(e.peek()[2])?(n+=String.fromCodePoint(e.consume(),e.consume(),e.consume()),t=`number`):x(e.peek()[1])&&(n+=String.fromCodePoint(e.consume(),e.consume()),t=`number`)),{value:parseFloat(n),type:t}}(e);return w(...e.peek())?new p(t.value,t.type,me(e)):e.peek()[0]===37?(e.consume(),new f(t.value)):new d(t.value,t.type)}function ge(e){for(;;){let t=e.consume();if(t===41||t===void 0)return;C(...e.peek())&&fe(e)}}function _e(e){let n=me(e);if(n.match(/url/i)&&e.peek()[0]===40){for(e.consume();b(e.peek()[0])&&b(e.peek()[1]);)e.consume();return[34,39].includes(e.peek()[0])||b(e.peek()[0])&&[34,39].includes(e.peek()[1])?new r(n):function(e){let t=new c(``);for(;b(...e.peek());)e.consume();for(;;){let n=e.consume();if(n===41||n===void 0)return t;if(b(n)){for(;b(...e.peek());)e.consume();return e.peek()[0]===41||e.peek()[0]===void 0?(e.consume(),t):(ge(e),new l)}if([34,39,40].includes(n)||ue(n))return ge(e),new l;if(n===92){if(!C(...e.peek()))return ge(e),new l;t.value+=fe(e)}else t.value+=String.fromCodePoint(n)}}(e)}return e.peek()[0]===40?(e.consume(),new r(n)):new t(n)}function ve(e){let t=e.consume(),n=e.peek();if(b(t)){for(;b(...e.peek());)e.consume();return new m}if(t===34)return pe(e,t);if(t===35){if(le(n[0])||C(...n)){let t=new a;return w(...n)&&(t.type=`id`),t.value=me(e),t}return new u(String.fromCodePoint(t))}return t===39?pe(e,t):t===40?new v:t===41?new y:t===43?de(...n)?(e.reconsume(t),he(e)):new u(String.fromCodePoint(t)):t===44?new te:t===45?de(...e.peek())?(e.reconsume(t),he(e)):e.peek()[0]===45&&e.peek()[1]===62?(e.consume(),e.consume(),new g):w(...e.peek())?(e.reconsume(t),_e(e)):new u(String.fromCodePoint(t)):t===46?de(...e.peek())?(e.reconsume(t),he(e)):new u(String.fromCodePoint(t)):t===58?new _:t===59?new ee:t===60?n[0]===33&&n[1]===45&&n[2]===45?(e.consume(),e.consume(),e.consume(),new h):new u(String.fromCodePoint(t)):t===64?w(...n)?new i(me(e)):new u(String.fromCodePoint(t)):t===91?new ne:t===92?C(...n)?(e.reconsume(t),_e(e)):new u(String.fromCodePoint(t)):t===93?new re:t===123?new ie:t===125?new ae:x(t)?(e.reconsume(t),he(e)):S(t)?(e.reconsume(t),_e(e)):t===void 0?void 0:new u(String.fromCodePoint(t))}let ye=new Set([`px`,`deg`,`s`,`hz`,`dppx`,`number`,`fr`]);function be(e){return ye.has(e.toLowerCase())}function xe(e,t){if([`x`,`y`].includes(e))return e;if(!t)throw Error(`To determine the normalized axis the computedStyle of the source is required.`);let n=t.writingMode==`horizontal-tb`;if(e===`block`)e=n?`y`:`x`;else{if(e!==`inline`)throw TypeError(`Invalid axis “${e}”`);e=n?`x`:`y`}return e}function Se(e){let t=[],n=0;function r(){let t=0,r=n;for(;n<e.length;){let r=e.slice(n,n+1);if(/\s/.test(r)&&t===0)break;if(r===`(`)t+=1;else if(r===`)`&&(--t,t===0)){n++;break}n++}return e.slice(r,n)}function i(){for(;/\s/.test(e.slice(n,n+1));)n++}for(;n<e.length;){let a=e.slice(n,n+1);/\s/.test(a)?i():t.push(r())}return t}function Ce(e,t){return e.reduce((e,n)=>(e.has(n[t])?e.get(n[t]).push(n):e.set(n[t],[n]),e),new Map)}function we(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function T(e,t={}){function n(e){return Array.from(e).map(e=>T(e,t))}if(e instanceof CSSUnitValue){if(e.unit===`percent`&&t.percentageReference){let n=e.value/100*t.percentageReference.value,r=t.percentageReference.unit;return new CSSUnitValue(n,r)}let n=e.toSum();if(n&&n.values.length===1&&(e=n.values[0]),e instanceof CSSUnitValue&&e.unit===`em`&&t.fontSize&&(e=new CSSUnitValue(e.value*t.fontSize.value,t.fontSize.unit)),e instanceof CSSKeywordValue){if(e.value===`e`)return new CSSUnitValue(Math.E,`number`);if(e.value===`pi`)return new CSSUnitValue(Math.PI,`number`)}return e}if(!e.operator)return e;switch(e.operator){case`sum`:e=new CSSMathSum(...n(e.values));break;case`product`:e=new CSSMathProduct(...n(e.values));break;case`negate`:e=new CSSMathNegate(T(e.value,t));break;case`clamp`:e=new CSSMathClamp(T(e.lower,t),T(e.value,t),T(e.upper,t));break;case`invert`:e=new CSSMathInvert(T(e.value,t));break;case`min`:e=new CSSMathMin(...n(e.values));break;case`max`:e=new CSSMathMax(...n(e.values))}if(e instanceof CSSMathMin||e instanceof CSSMathMax){let t=Array.from(e.values);if(t.every(e=>e instanceof CSSUnitValue&&e.unit!==`percent`&&be(e.unit)&&e.unit===t[0].unit)){let n=Math[e.operator].apply(Math,t.map(({value:e})=>e));return new CSSUnitValue(n,t[0].unit)}}if(e instanceof CSSMathMin||e instanceof CSSMathMax){let t=Array.from(e.values),[n,r]=we(t,e=>e instanceof CSSUnitValue&&e.unit!==`percent`),i=Array.from(Ce(n,`unit`).values());if(i.some(e=>e.length>0)){let t=i.map(t=>{let n=Math[e.operator].apply(Math,t.map(({value:e})=>e));return new CSSUnitValue(n,t[0].unit)});e=e instanceof CSSMathMin?new CSSMathMin(...t,...r):new CSSMathMax(...t,...r)}return t.length===1?t[0]:e}if(e instanceof CSSMathNegate)return e.value instanceof CSSUnitValue?new CSSUnitValue(0-e.value.value,e.value.unit):e.value instanceof CSSMathNegate?e.value.value:e;if(e instanceof CSSMathInvert)return e.value instanceof CSSMathInvert?e.value.value:e;if(e instanceof CSSMathSum){let t=function(e){let t=e.filter(e=>e instanceof CSSUnitValue);return[...e.filter(e=>!(e instanceof CSSUnitValue)),...Array.from(Ce(t,`unit`).entries()).map(([e,t])=>{let n=t.reduce((e,{value:t})=>e+t,0);return new CSSUnitValue(n,e)})]},n=[];for(let t of e.values)t instanceof CSSMathSum?n.push(...t.values):n.push(t);return n=t(n),n.length===1?n[0]:new CSSMathSum(...n)}if(e instanceof CSSMathProduct){let t=[];for(let n of e.values)n instanceof CSSMathProduct?t.push(...n.values):t.push(n);let[n,r]=we(t,e=>e instanceof CSSUnitValue&&e.unit===`number`);if(n.length>1){let e=n.reduce((e,{value:t})=>e*t,1);t=[new CSSUnitValue(e,`number`),...r]}if(t.length===2){let e,n;for(let r of t)r instanceof CSSUnitValue&&r.unit===`number`?e=r:r instanceof CSSMathSum&&[...r.values].every(e=>e instanceof CSSUnitValue)&&(n=r);if(e&&n)return new CSSMathSum(...[...n.values].map(t=>new CSSUnitValue(t.value*e.value,t.unit)))}if(t.every(e=>e instanceof CSSUnitValue&&be(e.unit)||e instanceof CSSMathInvert&&e.value instanceof CSSUnitValue&&be(e.value.unit))){let e=new CSSMathProduct(...t).toSum();if(e&&e.values.length===1)return e.values[0]}return new CSSMathProduct(...t)}return e}let Te=[`percent`,`length`,`angle`,`time`,`frequency`,`resolution`,`flex`],E={fontRelativeLengths:{units:new Set([`em`,`rem`,`ex`,`rex`,`cap`,`rcap`,`ch`,`rch`,`ic`,`ric`,`lh`,`rlh`])},viewportRelativeLengths:{units:new Set([`vw`,`lvw`,`svw`,`dvw`,`vh`,`lvh`,`svh`,`dvh`,`vi`,`lvi`,`svi`,`dvi`,`vb`,`lvb`,`svb`,`dvb`,`vmin`,`lvmin`,`svmin`,`dvmin`,`vmax`,`lvmax`,`svmax`,`dvmax`])},absoluteLengths:{units:new Set([`cm`,`mm`,`Q`,`in`,`pt`,`pc`,`px`]),compatible:!0,canonicalUnit:`px`,ratios:{cm:96/2.54,mm:96/2.54/10,Q:96/2.54/40,in:96,pc:16,pt:96/72,px:1}},angle:{units:new Set([`deg`,`grad`,`rad`,`turn`]),compatible:!0,canonicalUnit:`deg`,ratios:{deg:1,grad:.9,rad:180/Math.PI,turn:360}},time:{units:new Set([`s`,`ms`]),compatible:!0,canonicalUnit:`s`,ratios:{s:1,ms:.001}},frequency:{units:new Set([`hz`,`khz`]),compatible:!0,canonicalUnit:`hz`,ratios:{hz:1,khz:1e3}},resolution:{units:new Set([`dpi`,`dpcm`,`dppx`]),compatible:!0,canonicalUnit:`dppx`,ratios:{dpi:1/96,dpcm:2.54/96,dppx:1}}},Ee=new Map;for(let e of Object.values(E))if(e.compatible)for(let t of e.units)Ee.set(t,e);function De(e){return Ee.get(e)}function Oe(e,t){let n={...e};for(let e of Object.keys(t))n[e]?n[e]+=t[e]:n[e]=t[e];return n}function ke(e){return e===`number`?{}:e===`percent`?{percent:1}:E.absoluteLengths.units.has(e)||E.fontRelativeLengths.units.has(e)||E.viewportRelativeLengths.units.has(e)?{length:1}:E.angle.units.has(e)?{angle:1}:E.time.units.has(e)?{time:1}:E.frequency.units.has(e)?{frequency:1}:E.resolution.units.has(e)?{resolution:1}:e===`fr`?{flex:1}:null}function D(e){if(e instanceof CSSUnitValue){let{unit:t,value:n}=e,r=De(e.unit);return r&&t!==r.canonicalUnit&&(n*=r.ratios[t],t=r.canonicalUnit),t===`number`?[[n,{}]]:[[n,{[t]:1}]]}if(e instanceof CSSMathInvert){if(!(e.value instanceof CSSUnitValue))throw Error(`Not implemented`);let t=D(e.value);if(t===null||t.length>1)return null;let n=t[0],r={};for(let[e,t]of Object.entries(n[1]))r[e]=-1*t;return t[0]=[1/n[0],r],t}if(e instanceof CSSMathProduct){let t=[[1,{}]];for(let n of e.values){let e=D(n),r=[];if(e===null)return null;for(let n of t)for(let t of e)r.push([n[0]*t[0],Oe(n[1],t[1])]);t=r}return t}throw Error(`Not implemented`)}function Ae(e,t){if(ke(t)===null)throw SyntaxError(`The string did not match the expected pattern.`);let n=D(e);if(!n)throw TypeError();if(n.length>1)throw TypeError(`Sum has more than one item`);let r=function(e,t){let n=e.unit,r=e.value,i=De(n),a=De(t);return!a||i!==a?null:new CSSUnitValue(r*a.ratios[n]/a.ratios[t],t)}(je(n[0]),t);if(r===null)throw TypeError();return r}function je(e){let[t,n]=e,r=Object.entries(n);if(r.length>1)return null;if(r.length===0)return new CSSUnitValue(t,`number`);let i=r[0];return i[1]===1?new CSSUnitValue(t,i[0]):null}function Me(e,...t){if(t&&t.length)throw Error(`Not implemented`);let n=D(e).map(e=>je(e));if(n.some(e=>e===null))throw TypeError(`Type error`);return new CSSMathSum(...n)}function Ne(e,t){if(e.percentHint&&t.percentHint&&e.percentHint!==t.percentHint)return null;let n={...e,percentHint:e.percentHint??t.percentHint};for(let e of Te)t[e]&&(n[e]??(n[e]=0),n[e]+=t[e]);return n}class O{constructor(e,t){n(this,`name`),n(this,`values`),this.name=e,this.values=t}}class Pe{constructor(e,t){n(this,`value`),n(this,`associatedToken`),this.value=e,this.associatedToken=t}}function Fe(e){if(Array.isArray(e))return e;if(typeof e==`string`)return function(e){let t=new oe(e),n=[];for(;;){let e=ve(t);if(e===void 0)return n;n.push(e)}}(e);throw TypeError(`Invalid input type `+typeof e)}function Ie(e){let t=e.shift();return t instanceof ie||t instanceof ne||t instanceof v?function(e,t){let n;if(t instanceof ie)n=ae;else if(t instanceof v)n=y;else{if(!(t instanceof ne))return;n=re}let r=new Pe([],t);for(;;){let t=e.shift();if(t instanceof n||t===void 0)return r;e.unshift(t),r.value.push(Ie(e))}}(e,t):t instanceof r?function(e,t){let n=new O(e.value,[]);for(;;){let e=t.shift();if(e instanceof y||e===void 0)return n;t.unshift(e),n.values.push(Ie(t))}}(t,e):t}function Le(e){if(e instanceof v||e instanceof y)return 6;if(e instanceof u)switch(e.value){case`*`:case`/`:return 4;case`+`:case`-`:return 2}}function k(e){return e[e.length-1]}function Re(e,t,n){let r=[`+`,`-`].includes(e.value)?`ADDITION`:`MULTIPLICATION`,i=t.type===r?t.values:[t],a=n.type===r?n.values:[n];return e.value===`-`?a[0]={type:`NEGATE`,value:a[0]}:e.value===`/`&&(a[0]={type:`INVERT`,value:a[0]}),{type:r,values:[...i,...a]}}function A(e){if(e.type===`ADDITION`)return new CSSMathSum(...e.values.map(e=>A(e)));if(e.type===`MULTIPLICATION`)return new CSSMathProduct(...e.values.map(e=>A(e)));if(e.type===`NEGATE`)return new CSSMathNegate(A(e.value));if(e.type===`INVERT`)return new CSSMathInvert(A(e.value));if(e instanceof Pe)return ze(new O(`calc`,e.value));if(e instanceof t){if(e.value===`e`)return new CSSUnitValue(Math.E,`number`);if(e.value===`pi`)return new CSSUnitValue(Math.PI,`number`);throw SyntaxError(`Invalid math expression`)}return Be(e)}function ze(e){if(e.name===`min`||e.name===`max`){let t=e.values.filter(e=>!(e instanceof m||e instanceof te)).map(e=>T(ze(new O(`calc`,e))));return e.name===`min`?new CSSMathMin(...t):new CSSMathMax(...t)}if(e.name!==`calc`)return null;let n=A(function(e){let n=[],r=[];for(;e.length;){let i=e.shift();if(i instanceof d||i instanceof p||i instanceof f||i instanceof O||i instanceof Pe||i instanceof t)r.push(i);else if(i instanceof u&&[`*`,`/`,`+`,`-`].includes(i.value)){for(;n.length&&!(k(n)instanceof v)&&Le(k(n))>Le(i);){let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}n.push(i)}else if(i instanceof v)n.push(i);else if(i instanceof y){if(!n.length)return null;for(;!(k(n)instanceof v);){let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}if(!(k(n)instanceof v))return null;n.pop()}else if(!(i instanceof m))return null}for(;n.length;){if(k(n)instanceof v)return null;let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}return r[0]}([...e.values])),r;try{r=T(n)}catch{new CSSStyleSheet().insertRule(`error`,0)}return r instanceof CSSUnitValue?new CSSMathSum(r):r}function Be(e){return e instanceof O&&[`calc`,`min`,`max`,`clamp`].includes(e.name)?ze(e):e instanceof d&&e.value===0&&!e.unit?new CSSUnitValue(0,`px`):e instanceof d?new CSSUnitValue(e.value,`number`):e instanceof f?new CSSUnitValue(e.value,`percent`):e instanceof p?new CSSUnitValue(e.value,e.unit):void 0}function Ve(e){let t=function(e){let t=Fe(e);for(;t[0]instanceof m;)t.shift();if(t[0]===void 0)return null;let n=Ie(t);for(;t[0]instanceof m;)t.shift();return t[0]===void 0?n:null}(e);return t===null&&new CSSStyleSheet().insertRule(`error`,0),t instanceof d||t instanceof f||t instanceof p||t instanceof O||new CSSStyleSheet().insertRule(`error`,0),t instanceof p&&ke(t.unit)===null&&new CSSStyleSheet().insertRule(`error`,0),Be(t)}(function(){let e=new WeakMap;function t(e){let t=[];for(let r=0;r<e.length;r++)t[r]=typeof(n=e[r])==`number`?new CSSUnitValue(n,`number`):n;var n;return t}class n{static parse(e){return e instanceof n?e:T(Ve(e),{})}}class r extends n{constructor(n,r,i,a){super(),e.set(this,{values:t(n),operator:r,name:i||r,delimiter:a||`, `})}get operator(){return e.get(this).operator}get values(){return e.get(this).values}toString(){let t=e.get(this);return`${t.name}(${t.values.join(t.delimiter)})`}}let i={CSSNumericValue:n,CSSMathValue:r,CSSUnitValue:class extends n{constructor(t,n){super(),e.set(this,{value:t,unit:n})}get value(){return e.get(this).value}set value(t){e.get(this).value=t}get unit(){return e.get(this).unit}to(e){return Ae(this,e)}toSum(...e){return Me(this,...e)}type(){return ke(e.get(this).unit)}toString(){let t=e.get(this);return`${t.value}${function(e){switch(e){case`percent`:return`%`;case`number`:return``;default:return e.toLowerCase()}}(t.unit)}`}},CSSKeywordValue:class{constructor(e){this.value=e}toString(){return this.value.toString()}},CSSMathSum:class extends r{constructor(e){super(arguments,`sum`,`calc`,` + `)}},CSSMathProduct:class extends r{constructor(e){super(arguments,`product`,`calc`,` * `)}toSum(...e){return Me(this,...e)}type(){return e.get(this).values.map(e=>e.type()).reduce(Ne)}},CSSMathNegate:class extends r{constructor(e){super([arguments[0]],`negate`,`-`)}get value(){return e.get(this).values[0]}type(){return this.value.type()}},CSSMathInvert:class extends r{constructor(e){super([1,arguments[0]],`invert`,`calc`,` / `)}get value(){return e.get(this).values[1]}type(){return function(e){let t={};for(let n of Te)t[n]=-1*e[n];return t}(e.get(this).values[1].type())}},CSSMathMax:class extends r{constructor(){super(arguments,`max`)}},CSSMathMin:class extends r{constructor(){super(arguments,`min`)}}};if(!window.CSS&&!Reflect.defineProperty(window,`CSS`,{value:{}}))throw Error(`Error installing CSSOM support`);window.CSSUnitValue||`number.percent.em.ex.px.cm.mm.in.pt.pc.Q.vw.vh.vmin.vmax.rems.ch.deg.rad.grad.turn.ms.s.Hz.kHz.dppx.dpi.dpcm.fr`.split(`.`).forEach(e=>{if(!Reflect.defineProperty(CSS,e,{value:t=>new CSSUnitValue(t,e)}))throw Error(`Error installing CSS.${e}`)});for(let[e,t]of Object.entries(i))if(!(e in window)&&!Reflect.defineProperty(window,e,{value:t}))throw Error(`Error installing CSSOM support for ${e}`)})();let He=`block`,j=new WeakMap,M=new WeakMap,N=[`entry`,`exit`,`cover`,`contain`,`entry-crossing`,`exit-crossing`];function Ue(e){return e===document.scrollingElement?document:e}function P(e){Ke(e);let t=j.get(e).animations;if(t.length===0)return;let n=e.currentTime;for(let e=0;e<t.length;e++)t[e].tickAnimation(n)}function We(e,t){if(!e)return null;let n=M.get(e).sourceMeasurements,r=getComputedStyle(e),i=n.scrollTop;return xe(t,r)===`x`&&(i=Math.abs(n.scrollLeft)),i}function Ge(e,t){let n=T(e,t);if(n instanceof CSSUnitValue){if(n.unit===`px`)return n.value;throw TypeError(`Unhandled unit type `+n.unit)}throw TypeError(`Unsupported value type: `+typeof e)}function Ke(e){if(!(e instanceof R))return void function(e){let t=j.get(e);t.anonymousSource&&F(e,et(t.anonymousSource,t.anonymousTarget))}(e);let t=e.subject;if(!t||getComputedStyle(t).display==`none`)return void F(e,null);F(e,at(t))}function qe(e){return[`block`,`inline`,`x`,`y`].includes(e)}function Je(e){let t=getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,writingMode:t.writingMode,direction:t.direction,scrollPaddingTop:t.scrollPaddingTop,scrollPaddingBottom:t.scrollPaddingBottom,scrollPaddingLeft:t.scrollPaddingLeft,scrollPaddingRight:t.scrollPaddingRight}}function Ye(e,t){if(!e||!t)return;let n=0,r=0,i=t,a=e.offsetParent;for(;i&&i!=a;)r+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;r-=e.offsetLeft+e.clientLeft,n-=e.offsetTop+e.clientTop;let o=getComputedStyle(t);return{top:n,left:r,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,fontSize:o.fontSize}}function Xe(e){let t=M.get(e);t.sourceMeasurements=Je(e);for(let n of t.timelineRefs){let t=n.deref();t instanceof R&&(j.get(t).subjectMeasurements=Ye(e,t.subject))}t.updateScheduled||=(setTimeout(()=>{for(let e of t.timelineRefs){let t=e.deref();t&&P(t)}t.updateScheduled=!1}),!0)}function F(e,t){let n=j.get(e),r=n.source;if(r!=t){if(r){let t=M.get(r);if(t){t.timelineRefs.delete(e);let n=Array.from(t.timelineRefs).filter(e=>e.deref()===void 0);for(let e of n)t.timelineRefs.delete(e);t.timelineRefs.size===0&&(t.disconnect(),M.delete(r))}}if(n.source=t,t){let r=M.get(t);if(!r){r={timelineRefs:new Set,sourceMeasurements:Je(t)},M.set(t,r);let e=new ResizeObserver(()=>{Xe(n.source)});e.observe(t);for(let n of t.children)e.observe(n);let i=new MutationObserver(e=>{for(let t of e)Xe(t.target)});i.observe(t,{attributes:!0,attributeFilter:[`style`,`class`]});let a=()=>{r.sourceMeasurements.scrollLeft=t.scrollLeft,r.sourceMeasurements.scrollTop=t.scrollTop;for(let e of r.timelineRefs){let t=e.deref();t&&P(t)}};Ue(t).addEventListener(`scroll`,a),r.disconnect=()=>{e.disconnect(),i.disconnect(),Ue(t).removeEventListener(`scroll`,a)}}r.timelineRefs.add(new WeakRef(e))}}}function Ze(e,t){let n=j.get(e).animations;for(let e=0;e<n.length;e++)n[e].animation==t&&n.splice(e,1)}function Qe(e,t,n){let r=j.get(e).animations;for(let e=0;e<r.length;e++)if(r[e].animation==t)return;r.push({animation:t,tickAnimation:n}),queueMicrotask(()=>{P(e)})}class I{constructor(e){if(j.set(this,{source:null,axis:He,anonymousSource:e?e.anonymousSource:null,anonymousTarget:e?e.anonymousTarget:null,subject:null,inset:null,animations:[],subjectMeasurements:null}),F(this,e&&e.source!==void 0?e.source:document.scrollingElement),e&&e.axis!==void 0&&e.axis!=He){if(!qe(e.axis))throw TypeError(`Invalid axis`);j.get(this).axis=e.axis}P(this)}set source(e){F(this,e),P(this)}get source(){return j.get(this).source}set axis(e){if(!qe(e))throw TypeError(`Invalid axis`);j.get(this).axis=e,P(this)}get axis(){return j.get(this).axis}get duration(){return CSS.percent(100)}get phase(){let e=this.source;if(!e)return`inactive`;let t=getComputedStyle(e);return t.display==`none`?`inactive`:e==document.scrollingElement||t.overflow!=`visible`&&t.overflow!=`clip`?`active`:`inactive`}get currentTime(){let e=this.source;if(!e||!e.isConnected||this.phase==`inactive`)return null;let t=getComputedStyle(e);if(t.display===`inline`||t.display===`none`)return null;let n=this.axis,r=We(e,n),i=function(e,t){let n=M.get(e).sourceMeasurements,r=getComputedStyle(e).writingMode==`horizontal-tb`;return t===`block`?t=r?`y`:`x`:t===`inline`&&(t=r?`x`:`y`),t===`y`?n.scrollHeight-n.clientHeight:t===`x`?n.scrollWidth-n.clientWidth:void 0}(e,n);return i>0?CSS.percent(100*r/i):CSS.percent(100)}get __polyfill(){return!0}}function $e(e,t){let n=e.parentElement;for(;n!=null;){if(t(n))return n;n=n.parentElement}}function et(e,t){switch(e){case`root`:return document.scrollingElement;case`nearest`:return at(t);case`self`:return t;default:throw TypeError(`Invalid ScrollTimeline Source Type.`)}}function tt(e){switch(getComputedStyle(e).display){case`block`:case`inline-block`:case`list-item`:case`table`:case`table-caption`:case`flow-root`:case`flex`:case`grid`:return!0}return!1}function nt(e){let t=getComputedStyle(e);return t.transform!=`none`||t.perspective!=`none`||t.willChange==`transform`||t.willChange==`perspective`||t.filter!=`none`||t.willChange==`filter`||t.backdropFilter!=`none`}function rt(e){return getComputedStyle(e).position!=`static`||nt(e)}function it(e){switch(getComputedStyle(e).position){case`static`:case`relative`:case`sticky`:return $e(e,tt);case`absolute`:return $e(e,rt);case`fixed`:return $e(e,nt)}}function at(e){if(e&&e.isConnected){for(;e=it(e);)switch(getComputedStyle(e)[`overflow-x`]){case`auto`:case`scroll`:case`hidden`:return e==document.body&&getComputedStyle(document.scrollingElement).overflow==`visible`?document.scrollingElement:e}return document.scrollingElement}}function L(e,t){let n=j.get(e),r=n.subjectMeasurements,i=M.get(n.source).sourceMeasurements;return e.phase===`inactive`?null:e instanceof R?ot(t,i,r,n.axis,n.inset):null}function ot(e,t,n,r,i){let a=t.direction==`rtl`||t.writingMode==`vertical-rl`,o,s,c={fontSize:n.fontSize};xe(r,t)===`x`?(o=n.offsetWidth,s=n.left,c.scrollPadding=[t.scrollPaddingLeft,t.scrollPaddingRight],a&&(s+=t.scrollWidth-t.clientWidth,c.scrollPadding=[t.scrollPaddingRight,t.scrollPaddingLeft]),c.containerSize=t.clientWidth):(o=n.offsetHeight,s=n.top,c.scrollPadding=[t.scrollPaddingTop,t.scrollPaddingBottom],c.containerSize=t.clientHeight);let l=function(e,t){let n={start:0,end:0};if(!e)return n;let[r,i]=[e.start,e.end].map((e,n)=>e===`auto`?t.scrollPadding[n]===`auto`?0:parseFloat(t.scrollPadding[n]):Ge(e,{percentageReference:CSS.px(t.containerSize),fontSize:CSS.px(parseFloat(t.fontSize))}));return{start:r,end:i}}(i,c),u=s-c.containerSize+l.end,d=s+o-l.start,f=u+o,p=d-o,m=Math.min(f,p),h=Math.max(f,p),g,_,ee=o>c.containerSize-l.start-l.end;switch(e){case`cover`:g=u,_=d;break;case`contain`:g=m,_=h;break;case`entry`:g=u,_=m;break;case`exit`:g=h,_=d;break;case`entry-crossing`:g=u,_=ee?h:m;break;case`exit-crossing`:g=ee?m:h,_=d}return{start:g,end:_}}function st(e,t){if(e instanceof R){let{rangeName:n,offset:r}=t;return ct(L(e,n),r,L(e,`cover`),e.subject)}if(e instanceof I){let{axis:n,source:r}=e,{sourceMeasurements:i}=M.get(r),a;return a=xe(n,i)===`x`?i.scrollWidth-i.clientWidth:i.scrollHeight-i.clientHeight,Ge(t,{percentageReference:CSS.px(a)})/a}unsupportedTimeline(e)}function ct(e,t,n,r){if(!e||!n)return 0;let i=getComputedStyle(r);return(Ge(t,{percentageReference:CSS.px(e.end-e.start),fontSize:CSS.px(parseFloat(i.fontSize))})+e.start-n.start)/(n.end-n.start)}let R=class extends I{constructor(e){super(e);let t=j.get(this);t.subject=e&&e.subject?e.subject:void 0,e&&e.inset&&(t.inset=function(e){if(!e)return{start:0,end:0};let t;if(t=typeof e==`string`?Se(e).map(t=>{if(t===`auto`)return`auto`;try{return CSSNumericValue.parse(t)}catch{throw TypeError(`Could not parse inset "${e}"`)}}):Array.isArray(e)?e:[e],t.length===0||t.length>2)throw TypeError(`Invalid inset`);for(let e of t){if(e===`auto`)continue;let t=e.type();if(t.length!==1&&t.percent!==1)throw TypeError(`Invalid inset`)}return{start:t[0],end:t[1]??t[0]}}(e.inset)),t.subject&&(new ResizeObserver(()=>{Xe(t.source)}).observe(t.subject),new MutationObserver(()=>{Xe(t.source)}).observe(t.subject,{attributes:!0,attributeFilter:[`class`,`style`]})),Ke(this),t.subjectMeasurements=Ye(t.source,t.subject),P(this)}get source(){return Ke(this),j.get(this).source}set source(e){throw Error(`Cannot set the source of a view timeline`)}get subject(){return j.get(this).subject}get axis(){return j.get(this).axis}get currentTime(){let e=We(this.source,this.axis);if(e==null)return null;let t=L(this,`cover`);if(!t)return null;let n=(e-t.start)/(t.end-t.start);return CSS.percent(100*n)}get startOffset(){return CSS.px(L(this,`cover`).start)}get endOffset(){return CSS.px(L(this,`cover`).end)}},lt=document.getAnimations,ut=window.Element.prototype.getAnimations,dt=window.Element.prototype.animate,ft=window.Animation;class z{constructor(){this.state=`pending`,this.nativeResolve=this.nativeReject=null,this.promise=new Promise((e,t)=>{this.nativeResolve=e,this.nativeReject=t})}resolve(e){this.state=`resolved`,this.nativeResolve(e)}reject(e){this.state=`rejected`,this.promise.catch(()=>{}),this.nativeReject(e)}}function B(e){e.readyPromise=new z,requestAnimationFrame(()=>{(e.timeline?.currentTime??null)!==null&&(Y(e),e.pendingTask!==`play`||e.startTime===null&&e.holdTime===null?e.pendingTask===`pause`&&ht(e):mt(e))})}function pt(){return new DOMException(`The user aborted a request`,`AbortError`)}function V(e,t){if(t===null)return t;if(typeof t!=`number`)throw new DOMException(`Unexpected value: ${t}. Cannot convert to CssNumberish`,`InvalidStateError`);let n=e.rangeDuration??100,r=K(e),i=r?n*t/r:0;return CSS.percent(i)}function H(e,t){if(e.timeline){if(t===null)return t;if(t.unit===`percent`){let n=e.rangeDuration??100,r=K(e);return t.value*r/n}throw new DOMException(`CSSNumericValue must be a percentage for progress based animations.`,`NotSupportedError`)}{if(t==null||typeof t==`number`)return t;let e=t.to(`ms`);if(e)return e.value;throw new DOMException(`CSSNumericValue must be either a number or a time value for time based animations.`,`InvalidStateError`)}}function mt(e){let t=H(e,e.timeline.currentTime);if(e.holdTime!=null)W(e),e.animation.playbackRate==0?e.startTime=t:(e.startTime=t-e.holdTime/e.animation.playbackRate,e.holdTime=null);else if(e.startTime!==null&&e.pendingPlaybackRate!==null){let n=(t-e.startTime)*e.animation.playbackRate;W(e);let r=e.animation.playbackRate;r==0?(e.holdTime=null,e.startTime=t):e.startTime=t-n/r}e.readyPromise&&e.readyPromise.state==`pending`&&e.readyPromise.resolve(e.proxy),G(e,!1,!1),q(e),e.pendingTask=null}function ht(e){let t=H(e,e.timeline.currentTime);e.startTime!=null&&e.holdTime==null&&(e.holdTime=(t-e.startTime)*e.animation.playbackRate),W(e),e.startTime=null,e.readyPromise.resolve(e.proxy),G(e,!1,!1),q(e),e.pendingTask=null}function gt(e){if(!e.finishedPromise||e.finishedPromise.state!=`pending`||e.proxy.playState!=`finished`)return;e.finishedPromise.resolve(e.proxy),e.animation.pause();let t=new CustomEvent(`finish`,{detail:{currentTime:e.proxy.currentTime,timelineTime:e.proxy.timeline.currentTime}});Object.defineProperty(t,`currentTime`,{get:function(){return this.detail.currentTime}}),Object.defineProperty(t,`timelineTime`,{get:function(){return this.detail.timelineTime}}),requestAnimationFrame(()=>{queueMicrotask(()=>{e.animation.dispatchEvent(t)})})}function U(e){return e.pendingPlaybackRate===null?e.animation.playbackRate:e.pendingPlaybackRate}function W(e){e.pendingPlaybackRate!==null&&(e.animation.playbackRate=e.pendingPlaybackRate,e.pendingPlaybackRate=null)}function _t(e){if(!e.timeline)return null;let t=H(e,e.timeline.currentTime);if(t===null||e.startTime===null)return null;let n=(t-e.startTime)*e.animation.playbackRate;return n==-0&&(n=0),n}function G(e,t,n){if(!e.timeline)return;let r=t?H(e,e.proxy.currentTime):_t(e);if(r&&e.startTime!=null&&!e.proxy.pending){let n=U(e),i=K(e),a=e.previousCurrentTime;n>0&&r>=i&&e.previousCurrentTime!=null?((a===null||a<i)&&(a=i),e.holdTime=t?r:a):n<0&&r<=0?((a==null||a>0)&&(a=0),e.holdTime=t?r:a):n!=0&&(t&&e.holdTime!==null&&(e.startTime=function(e,t){if(!e.timeline)return null;let n=H(e,e.timeline.currentTime);return n==null?null:n-t/e.animation.playbackRate}(e,e.holdTime)),e.holdTime=null)}q(e),e.previousCurrentTime=H(e,e.proxy.currentTime),e.proxy.playState==`finished`?(e.finishedPromise||=new z,e.finishedPromise.state==`pending`&&(n?gt(e):Promise.resolve().then(()=>{gt(e)}))):(e.finishedPromise&&e.finishedPromise.state==`resolved`&&(e.finishedPromise=new z),e.animation.playState!=`paused`&&e.animation.pause())}function K(e){let t=function(e){let t=e.proxy.effect.getTiming();return e.normalizedTiming||t}(e),n=t.delay+t.endDelay+t.iterations*t.duration;return Math.max(0,n)}function q(e){if(e.timeline)if(e.startTime!==null){let t=e.timeline.currentTime;if(t==null)return;vt(e,(H(e,t)-e.startTime)*e.animation.playbackRate)}else e.holdTime!==null&&vt(e,e.holdTime)}function vt(e,t){let n=e.timeline,r=e.animation.playbackRate,i=n.currentTime&&n.currentTime.value==(r<0?0:100)?r<0?.001:-.001:0;e.animation.currentTime=t+i}function yt(e,t){if(!e.timeline)return;let n=e.proxy.playState==`paused`&&e.proxy.pending,r=!1,i=H(e,e.proxy.currentTime);U(e)==0&&i==null&&(e.holdTime=0),i??(e.autoAlignStartTime=!0),(e.proxy.playState===`finished`||n)&&(e.holdTime=null,e.startTime=null,e.autoAlignStartTime=!0),e.holdTime&&(e.startTime=null),e.pendingTask&&(e.pendingTask=null,r=!0),(e.holdTime!==null||e.autoAlignStartTime||n||e.pendingPlaybackRate!==null)&&(e.readyPromise&&!r&&(e.readyPromise=null),q(e),e.readyPromise||B(e),e.pendingTask=`play`,Qe(e.timeline,e.animation,bt.bind(e.proxy)),G(e,!1,!1))}function bt(e){let t=J.get(this);if(!t)return;if(e==null)return void(t.proxy.playState!==`paused`&&t.animation.playState!=`idle`&&t.animation.cancel());Y(t),t.pendingTask&&requestAnimationFrame(()=>{t.pendingTask!==`play`||t.startTime===null&&t.holdTime===null?t.pendingTask===`pause`&&ht(t):mt(t)});let n=this.playState;(n==`running`||n==`finished`)&&(vt(t,(H(t,e)-H(t,this.startTime))*this.playbackRate),G(t,!1,!1))}function xt(e){e.specifiedTiming=null}let J=new WeakMap;window.addEventListener(`pagehide`,e=>{J=new WeakMap},!1);let St=new WeakMap;function Y(e){if(!e.autoAlignStartTime||!e.timeline||!e.timeline.currentTime||e.proxy.playState===`idle`||e.proxy.playState===`paused`&&e.holdTime!==null)return;let t=e.rangeDuration,n,r;try{n=CSS.percent(100*function(e){if(!e.animationRange)return 0;let t=e.animationRange.start===`normal`?wt(e.timeline):e.animationRange.start;return st(e.timeline,t)}(e))}catch(t){n=CSS.percent(0),e.animationRange.start=`normal`,console.warn(`Exception when calculating start offset`,t)}try{r=CSS.percent(100*(1-function(e){if(!e.animationRange)return 0;let t=e.animationRange.end===`normal`?Tt(e.timeline):e.animationRange.end;return 1-st(e.timeline,t)}(e)))}catch(t){r=CSS.percent(100),e.animationRange.end=`normal`,console.warn(`Exception when calculating end offset`,t)}e.rangeDuration=r.value-n.value,e.startTime=H(e,U(e)>=0?n:r),e.holdTime=null,e.rangeDuration!==t&&xt(e)}function Ct(e){throw Error(`Unsupported timeline class`)}function wt(e){return e instanceof ViewTimeline?{rangeName:`cover`,offset:CSS.percent(0)}:e instanceof I?CSS.percent(0):void Ct()}function Tt(e){return e instanceof ViewTimeline?{rangeName:`cover`,offset:CSS.percent(100)}:e instanceof I?CSS.percent(100):void Ct()}function Et(e,t){if(!t)return{start:`normal`,end:`normal`};let n={start:wt(e),end:Tt(e)};if(e instanceof ViewTimeline){let e=Se(t),r=[],i=[];if(e.forEach(e=>{if(N.includes(e))r.push(e);else try{i.push(CSSNumericValue.parse(e))}catch{throw TypeError(`Could not parse range "${t}"`)}}),r.length>2||i.length>2||i.length==1)throw TypeError(`Invalid time range or unsupported time range format.`);return r.length&&(n.start.rangeName=r[0],n.end.rangeName=r.length>1?r[1]:r[0]),i.length>1&&(n.start.offset=i[0],n.end.offset=i[1]),n}if(e instanceof I){let e=t.split(` `);if(e.length!=2)throw TypeError(`Invalid time range or unsupported time range format.`);return n.start=CSSNumericValue.parse(e[0]),n.end=CSSNumericValue.parse(e[1]),n}Ct()}function Dt(e,t,n){if(!t||t===`normal`)return`normal`;if(e instanceof ViewTimeline){let e=`cover`,r=n===`start`?CSS.percent(0):CSS.percent(100);if(t instanceof Object)t.rangeName!==void 0&&(e=t.rangeName),t.offset!==void 0&&(r=t.offset);else{let n=Se(t);n.length===1?N.includes(n[0])?e=n[0]:r=T(CSSNumericValue.parse(n[0]),{}):n.length===2&&(e=n[0],r=T(CSSNumericValue.parse(n[1]),{}))}if(!N.includes(e))throw TypeError(`Invalid range name`);return{rangeName:e,offset:r}}if(e instanceof I)return CSSNumericValue.parse(t);Ct()}class X{constructor(e,t,n={}){let r=t instanceof I,i=e instanceof ft?e:new ft(e,r?void 0:t);St.set(i,this),J.set(this,{animation:i,timeline:r?t:void 0,playState:r?`idle`:null,readyPromise:null,finishedPromise:null,startTime:null,holdTime:null,rangeDuration:null,previousCurrentTime:null,autoAlignStartTime:!1,pendingPlaybackRate:null,pendingTask:null,specifiedTiming:null,normalizedTiming:null,effect:null,animationRange:r?Et(t,n[`animation-range`]):null,proxy:this})}get effect(){let e=J.get(this);return e.timeline?(e.effect||=function(e){let t=e.animation.effect,n=t.updateTiming,r={apply:function(n){t.getTiming();let r=n.apply(t);if(e.timeline){let t=e.duration??100;r.localTime=V(e,r.localTime),r.endTime=V(e,r.endTime),r.activeDuration=V(e,r.activeDuration);let n=K(e),i=r.iterations?(n-r.delay-r.endDelay)/r.iterations:0;r.duration=n?CSS.percent(t*i/n):CSS.percent(0),e.timeline.currentTime===void 0&&(r.localTime=null)}return r}},i={apply:function(r,i){if(e.specifiedTiming)return e.specifiedTiming;e.specifiedTiming=r.apply(t);let a,o=Object.assign({},e.specifiedTiming);if(o.duration===1/0)throw TypeError(`Effect duration cannot be Infinity when used with Scroll Timelines`);return(o.duration===null||o.duration===`auto`||e.autoDurationEffect)&&e.timeline&&(e.autoDurationEffect=!0,o.delay=0,o.endDelay=0,a=o.iterations?1e5:0,o.duration=o.iterations?(a-o.delay-o.endDelay)/o.iterations:0,o.duration<0&&(o.duration=0,o.endDelay=a-o.delay),n.apply(t,[o])),e.normalizedTiming=o,e.specifiedTiming}},a={apply:function(n,r,i){if(i&&i.length){if(e.timeline&&i[0]){let t=i[0],n=t.duration;if(n===1/0)throw TypeError(`Effect duration cannot be Infinity when used with Scroll Timelines`);if(t.iterations===1/0)throw TypeError(`Effect iterations cannot be Infinity when used with Scroll Timelines`);n!==void 0&&n!==`auto`&&(e.autoDurationEffect=null)}e.specifiedTiming&&n.apply(t,[e.specifiedTiming]),n.apply(t,i),xt(e)}}},o=new Proxy(t,{get:function(e,n){let r=e[n];return typeof r==`function`?r.bind(t):r},set:function(e,t,n){return e[t]=n,!0}});return o.getComputedTiming=new Proxy(t.getComputedTiming,r),o.getTiming=new Proxy(t.getTiming,i),o.updateTiming=new Proxy(t.updateTiming,a),o}(e),e.effect):e.animation.effect}set effect(e){let t=J.get(this);t.animation.effect=e,t.effect=null,t.autoDurationEffect=null}get timeline(){let e=J.get(this);return e.timeline||e.animation.timeline}set timeline(e){let t=J.get(this),n=this.timeline;if(n==e)return;let r=this.playState,i=this.currentTime,a,o=K(t);a=i===null?null:o===0?0:H(t,i)/o;let s=n instanceof I,c=e instanceof I,l=this.pending;if(s&&Ze(t.timeline,t.animation),c)return t.timeline=e,W(t),t.autoAlignStartTime=!0,t.startTime=null,t.holdTime=null,r!==`running`&&r!==`finished`||(t.readyPromise&&t.readyPromise.state!==`resolved`||B(t),t.pendingTask=`play`,Qe(t.timeline,t.animation,bt.bind(this))),r===`paused`&&a!==null&&(t.holdTime=a*o),l&&(t.readyPromise&&t.readyPromise.state!=`resolved`||B(t),t.pendingTask=r==`paused`?`pause`:`play`),t.startTime!==null&&(t.holdTime=null),void G(t,!1,!1);if(t.animation.timeline!=e)throw TypeError(`Unsupported timeline: `+e);if(Ze(t.timeline,t.animation),t.timeline=null,s)switch(i!==null&&(t.animation.currentTime=a*K(t)),r){case`paused`:t.animation.pause();break;case`running`:case`finished`:t.animation.play()}}get startTime(){let e=J.get(this);return e.timeline?V(e,e.startTime):e.animation.startTime}set startTime(e){let t=J.get(this);if(e=H(t,e),!t.timeline)return void(t.animation.startTime=e);t.autoAlignStartTime=!1,H(t,t.timeline.currentTime)==null&&t.startTime!=null&&(t.holdTime=null,q(t));let n=H(t,this.currentTime);W(t),t.startTime=e,t.startTime!==null&&t.animation.playbackRate!=0?t.holdTime=null:t.holdTime=n,t.pendingTask&&(t.pendingTask=null,t.readyPromise.resolve(this)),G(t,!0,!1),q(t)}get currentTime(){let e=J.get(this);return e.timeline?e.holdTime==null?V(e,_t(e)):V(e,e.holdTime):e.animation.currentTime}set currentTime(e){let t=J.get(this);t.timeline?(function(e,t){if(t==null&&e.currentTime!==null)throw TypeError();t=H(e,t),e.autoAlignStartTime=!1,e.holdTime!==null||e.startTime===null||e.timeline.phase===`inactive`||e.animation.playbackRate===0?e.holdTime=t:e.startTime=H(e,e.timeline.currentTime)-t/e.animation.playbackRate,e.timeline.phase===`inactive`&&(e.startTime=null),e.previousCurrentTime=null}(t,e),t.pendingTask==`pause`&&(t.holdTime=H(t,e),W(t),t.startTime=null,t.pendingTask=null,t.readyPromise.resolve(this)),G(t,!0,!1)):t.animation.currentTime=e}get playbackRate(){return J.get(this).animation.playbackRate}set playbackRate(e){let t=J.get(this);if(!t.timeline)return void(t.animation.playbackRate=e);t.pendingPlaybackRate=null;let n=this.currentTime;t.animation.playbackRate=e,n!==null&&(this.currentTime=n)}get playState(){let e=J.get(this);if(!e.timeline)return e.animation.playState;let t=H(e,this.currentTime);return t===null&&e.startTime===null&&e.pendingTask==null?`idle`:e.pendingTask==`pause`||e.startTime===null&&e.pendingTask!=`play`?`paused`:t!=null&&(e.animation.playbackRate>0&&t>=K(e)||e.animation.playbackRate<0&&t<=0)?`finished`:`running`}get rangeStart(){return J.get(this).animationRange?.start??`normal`}set rangeStart(e){let t=J.get(this);if(!t.timeline)return t.animation.rangeStart=e;t.timeline instanceof I&&(t.animationRange.start=Dt(t.timeline,e,`start`),Y(t),q(t))}get rangeEnd(){return J.get(this).animationRange?.end??`normal`}set rangeEnd(e){let t=J.get(this);if(!t.timeline)return t.animation.rangeEnd=e;t.timeline instanceof I&&(t.animationRange.end=Dt(t.timeline,e,`end`),Y(t),q(t))}get replaceState(){return J.get(this).animation.pending}get pending(){let e=J.get(this);return e.timeline?!!e.readyPromise&&e.readyPromise.state==`pending`:e.animation.pending}finish(){let e=J.get(this);if(!e.timeline)return void e.animation.finish();let t=U(e),n=K(e);if(t==0)throw new DOMException(`Cannot finish Animation with a playbackRate of 0.`,`InvalidStateError`);if(t>0&&n==1/0)throw new DOMException(`Cannot finish Animation with an infinite target effect end.`,`InvalidStateError`);W(e);let r=t<0?0:n;this.currentTime=V(e,r);let i=H(e,e.timeline.currentTime);e.startTime===null&&i!==null&&(e.startTime=i-r/e.animation.playbackRate),e.pendingTask==`pause`&&e.startTime!==null&&(e.holdTime=null,e.pendingTask=null,e.readyPromise.resolve(this)),e.pendingTask==`play`&&e.startTime!==null&&(e.pendingTask=null,e.readyPromise.resolve(this)),G(e,!0,!0)}play(){let e=J.get(this);e.timeline?yt(e):e.animation.play()}pause(){let e=J.get(this);e.timeline?this.playState!=`paused`&&(e.animation.currentTime===null&&(e.autoAlignStartTime=!0),e.pendingTask==`play`?e.pendingTask=null:e.readyPromise=null,e.readyPromise||B(e),e.pendingTask=`pause`,Qe(e.timeline,e.animation,bt.bind(e.proxy))):e.animation.pause()}reverse(){let e=J.get(this),t=U(e),n=H(e,this.currentTime),r=K(e)==1/0,i=t!=0&&(t<0||n>0||!r);if(!e.timeline||!i)return i&&(e.pendingPlaybackRate=-U(e)),void e.animation.reverse();if(e.timeline.phase==`inactive`)throw new DOMException(`Cannot reverse an animation with no active timeline`,`InvalidStateError`);this.updatePlaybackRate(-t),yt(e)}updatePlaybackRate(e){let t=J.get(this);if(t.pendingPlaybackRate=e,!t.timeline)return void t.animation.updatePlaybackRate(e);let n=this.playState;if(!t.readyPromise||t.readyPromise.state!=`pending`)switch(n){case`idle`:case`paused`:W(t);break;case`finished`:let n=H(t,t.timeline.currentTime),r=n===null?null:(n-t.startTime)*t.animation.playbackRate;t.startTime=e==0?n:n!=null&&r!=null?(n-r)/e:null,W(t),G(t,!1,!1),q(t);break;default:yt(t)}}persist(){J.get(this).animation.persist()}get id(){return J.get(this).animation.id}set id(e){J.get(this).animation.id=e}cancel(){let e=J.get(this);e.timeline?(this.playState!=`idle`&&(function(e){e.pendingTask&&(e.pendingTask=null,W(e),e.readyPromise.reject(pt()),B(e),e.readyPromise.resolve(e.proxy))}(e),e.finishedPromise&&e.finishedPromise.state==`pending`&&e.finishedPromise.reject(pt()),e.finishedPromise=new z,e.animation.cancel()),e.startTime=null,e.holdTime=null,Ze(e.timeline,e.animation)):e.animation.cancel()}get onfinish(){return J.get(this).animation.onfinish}set onfinish(e){J.get(this).animation.onfinish=e}get oncancel(){return J.get(this).animation.oncancel}set oncancel(e){J.get(this).animation.oncancel=e}get onremove(){return J.get(this).animation.onremove}set onremove(e){J.get(this).animation.onremove=e}get finished(){let e=J.get(this);return e.timeline?(e.finishedPromise||=new z,e.finishedPromise.promise):e.animation.finished}get ready(){let e=J.get(this);return e.timeline?(e.readyPromise||(e.readyPromise=new z,e.readyPromise.resolve(this)),e.readyPromise.promise):e.animation.ready}addEventListener(e,t,n){J.get(this).animation.addEventListener(e,t,n)}removeEventListener(e,t,n){J.get(this).animation.removeEventListener(e,t,n)}dispatchEvent(e){J.get(this).animation.dispatchEvent(e)}}function Ot(e,t){let n=t.timeline;n instanceof I&&delete t.timeline;let r=dt.apply(this,[e,t]),i=new X(r,n);return n instanceof I&&(r.pause(),J.get(i).animationRange={start:Dt(n,t.rangeStart,`start`),end:Dt(n,t.rangeEnd,`end`)},i.play()),i}function kt(e){for(let t=0;t<e.length;++t){let n=St.get(e[t]);n&&(e[t]=n)}return e}function At(e){return kt(ut.apply(this,[e]))}function jt(e){return kt(lt.apply(this,[e]))}let Z={IDENTIFIER:/[\w\\\@_-]+/g,WHITE_SPACE:/\s*/g,NUMBER:/^[0-9]+/,TIME:/^[0-9]+(s|ms)/,SCROLL_TIMELINE:/scroll-timeline\s*:([^;}]+)/,SCROLL_TIMELINE_NAME:/scroll-timeline-name\s*:([^;}]+)/,SCROLL_TIMELINE_AXIS:/scroll-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE:/view-timeline\s*:([^;}]+)/,VIEW_TIMELINE_NAME:/view-timeline-name\s*:([^;}]+)/,VIEW_TIMELINE_AXIS:/view-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE_INSET:/view-timeline-inset\s*:([^;}]+)/,ANIMATION_TIMELINE:/animation-timeline\s*:([^;}]+)/,ANIMATION_TIME_RANGE:/animation-range\s*:([^;}]+)/,ANIMATION_NAME:/animation-name\s*:([^;}]+)/,ANIMATION:/animation\s*:([^;}]+)/,ANONYMOUS_SCROLL_TIMELINE:/scroll\(([^)]*)\)/,ANONYMOUS_VIEW_TIMELINE:/view\(([^)]*)\)/},Q=[`block`,`inline`,`x`,`y`],Mt=[`nearest`,`root`,`self`],$=new class{constructor(){this.cssRulesWithTimelineName=[],this.nextAnonymousTimelineNameIndex=0,this.anonymousScrollTimelineOptions=new Map,this.anonymousViewTimelineOptions=new Map,this.sourceSelectorToScrollTimeline=[],this.subjectSelectorToViewTimeline=[],this.keyframeNamesSelectors=new Map}transpileStyleSheet(e,t,n){let r={sheetSrc:e,index:0,name:n};for(;r.index<r.sheetSrc.length&&(this.eatWhitespace(r),!(r.index>=r.sheetSrc.length));){if(this.lookAhead(`/*`,r)){for(;this.lookAhead(`/*`,r);)this.eatComment(r),this.eatWhitespace(r);continue}let e=this.parseQualifiedRule(r);e&&(t?this.parseKeyframesAndSaveNameMapping(e,r):this.handleScrollTimelineProps(e,r))}return this.replaceUrlFunctions(r.sheetSrc,n)}replaceUrlFunctions(e,t){if(!t)return e;let n=new URL(t).origin,r=t.lastIndexOf(`/`)>n.length?t.substring(0,t.lastIndexOf(`/`)):n;return e.replace(/url\((?:(['"])(?!https?:\/\/|data:|blob:|\/)|(?!['"]?(?:https?:\/\/|data:|blob:|\/)))(?:\.\/)?/gm,`url($1${r}/`).replace(/url\((['"])?\//gm,`url($1${n}/`)}getAnimationTimelineOptions(e,t){for(let n=this.cssRulesWithTimelineName.length-1;n>=0;n--){let r=this.cssRulesWithTimelineName[n];try{if(t.matches(r.selector)&&(!r[`animation-name`]||r[`animation-name`]==e))return{"animation-timeline":r[`animation-timeline`],"animation-range":r[`animation-range`]}}catch{}}return null}getAnonymousScrollTimelineOptions(e,t){let n=this.anonymousScrollTimelineOptions.get(e);return n?{anonymousSource:n.source,anonymousTarget:t,source:et(n.source??`nearest`,t),axis:n.axis?n.axis:`block`}:null}getScrollTimelineOptions(e,t){let n=this.getAnonymousScrollTimelineOptions(e,t);if(n)return n;for(let n=this.sourceSelectorToScrollTimeline.length-1;n>=0;n--){let r=this.sourceSelectorToScrollTimeline[n];if(r.name==e){let e=this.findPreviousSiblingOrAncestorMatchingSelector(t,r.selector);if(e)return{source:e,...r.axis?{axis:r.axis}:{}}}}return null}findPreviousSiblingOrAncestorMatchingSelector(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling||n.parentElement}return null}getAnonymousViewTimelineOptions(e,t){let n=this.anonymousViewTimelineOptions.get(e);return n?{subject:t,axis:n.axis?n.axis:`block`,inset:n.inset?n.inset:`auto`}:null}getViewTimelineOptions(e,t){let n=this.getAnonymousViewTimelineOptions(e,t);if(n)return n;for(let n=this.subjectSelectorToViewTimeline.length-1;n>=0;n--){let r=this.subjectSelectorToViewTimeline[n];if(r.name==e){let e=this.findPreviousSiblingOrAncestorMatchingSelector(t,r.selector);if(e)return{subject:e,axis:r.axis,inset:r.inset}}}return null}handleScrollTimelineProps(e,t){if(e.selector.includes(`@keyframes`))return;let n=e.block.contents.includes(`animation-name:`),r=e.block.contents.includes(`animation-timeline:`),i=e.block.contents.includes(`animation:`);if(this.saveSourceSelectorToScrollTimeline(e),this.saveSubjectSelectorToViewTimeline(e),!r&&!n&&!i)return;let a=[],o=[],s=!1;r&&(a=this.extractScrollTimelineNames(e.block.contents)),n&&(o=this.extractMatches(e.block.contents,Z.ANIMATION_NAME)),r&&n||(i&&this.extractMatches(e.block.contents,Z.ANIMATION).forEach(t=>{let n=this.extractAnimationName(t);n&&r&&o.push(n),r&&(this.hasDuration(t)||(this.hasAutoDuration(t)&&(e.block.contents=e.block.contents.replace(`auto`,` `)),e.block.contents=e.block.contents.replace(t,` 1s `+t),s=!0))}),s&&this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,t)),this.saveRelationInList(e,a,o)}saveSourceSelectorToScrollTimeline(e){let t=e.block.contents.includes(`scroll-timeline:`),n=e.block.contents.includes(`scroll-timeline-name:`),r=e.block.contents.includes(`scroll-timeline-axis:`);if(!t&&!n)return;let i=[];if(t){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE);for(let n of t){let t=this.split(n),r={selector:e.selector,name:``};t.length==1?r.name=t[0]:t.length==2&&(Q.includes(t[0])?(r.axis=t[0],r.name=t[1]):(r.axis=t[1],r.name=t[0])),i.push(r)}}if(n){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE_NAME);for(let n=0;n<t.length;n++)if(n<i.length)i[n].name=t[n];else{let r={selector:e.selector,name:t[n]};i.push(r)}}let a=[];if(r){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE_AXIS);if(a=t.filter(e=>Q.includes(e)),a.length!=t.length)throw Error(`Invalid axis`)}for(let e=0;e<i.length;e++)a.length&&(i[e].axis=a[e%i.length]);this.sourceSelectorToScrollTimeline.push(...i)}saveSubjectSelectorToViewTimeline(e){let t=e.block.contents.includes(`view-timeline:`),n=e.block.contents.includes(`view-timeline-name:`),r=e.block.contents.includes(`view-timeline-axis:`),i=e.block.contents.includes(`view-timeline-inset:`);if(!t&&!n)return;let a=[];if(t){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE);for(let n of t){let t=this.split(n),r={selector:e.selector,name:``,inset:null};t.length==1?r.name=t[0]:t.length==2&&(Q.includes(t[0])?(r.axis=t[0],r.name=t[1]):(r.axis=t[1],r.name=t[0])),a.push(r)}}if(n){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_NAME);for(let n=0;n<t.length;n++)if(n<a.length)a[n].name=t[n];else{let r={selector:e.selector,name:t[n],inset:null};a.push(r)}}let o=[],s=[];if(i&&(o=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_INSET)),r){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_AXIS);if(s=t.filter(e=>Q.includes(e)),s.length!=t.length)throw Error(`Invalid axis`)}for(let e=0;e<a.length;e++)o.length&&(a[e].inset=o[e%a.length]),s.length&&(a[e].axis=s[e%a.length]);this.subjectSelectorToViewTimeline.push(...a)}hasDuration(e){return e.split(` `).filter(e=>Z.TIME.exec(e)).length>=1}hasAutoDuration(e){return e.split(` `).filter(e=>e===`auto`).length>=1}saveRelationInList(e,t,n){let r=[];e.block.contents.includes(`animation-range:`)&&(r=this.extractMatches(e.block.contents,Z.ANIMATION_TIME_RANGE));let i=Math.max(t.length,n.length,r.length);for(let a=0;a<i;a++)this.cssRulesWithTimelineName.push({selector:e.selector,"animation-timeline":t[a%t.length],...n.length?{"animation-name":n[a%n.length]}:{},...r.length?{"animation-range":r[a%r.length]}:{}})}extractScrollTimelineNames(e){let t=Z.ANIMATION_TIMELINE.exec(e)[1].trim(),n=[];return t.split(`,`).map(e=>e.trim()).forEach(e=>{if(function(e){return(e.startsWith(`scroll`)||e.startsWith(`view`))&&e.includes(`(`)}(e)){let t=this.saveAnonymousTimelineName(e);n.push(t)}else n.push(e)}),n}saveAnonymousTimelineName(e){let t=`:t`+ this.nextAnonymousTimelineNameIndex++;return e.startsWith(`scroll(`)?this.anonymousScrollTimelineOptions.set(t,this.parseAnonymousScrollTimeline(e)):this.anonymousViewTimelineOptions.set(t,this.parseAnonymousViewTimeline(e)),t}parseAnonymousScrollTimeline(e){let t=Z.ANONYMOUS_SCROLL_TIMELINE.exec(e);if(!t)return null;let n=t[1],r={};return n.split(` `).forEach(e=>{Q.includes(e)?r.axis=e:Mt.includes(e)&&(r.source=e)}),r}parseAnonymousViewTimeline(e){let t=Z.ANONYMOUS_VIEW_TIMELINE.exec(e);if(!t)return null;let n=t[1],r={};return n.split(` `).forEach(e=>{Q.includes(e)?r.axis=e:r.inset=r.inset?`${r.inset} ${e}`:e}),r}extractAnimationName(e){return this.findMatchingEntryInContainer(e,this.keyframeNamesSelectors)}findMatchingEntryInContainer(e,t){let n=e.split(` `).filter(e=>t.has(e));return n?n[0]:null}parseIdentifier(e){Z.IDENTIFIER.lastIndex=e.index;let t=Z.IDENTIFIER.exec(e.sheetSrc);if(!t)throw this.parseError(e,`Expected an identifier`);return e.index+=t[0].length,t[0]}parseKeyframesAndSaveNameMapping(e,t){if(e.selector.startsWith(`@keyframes`)){let n=this.replaceKeyframesAndGetMapping(e,t);e.selector.split(` `).forEach((e,t)=>{t>0&&this.keyframeNamesSelectors.set(e,n)})}}replaceKeyframesAndGetMapping(e,t){function n(e){return N.some(t=>e.startsWith(t))}let r=e.block.contents,i=function(e){let t=0,n=-1,r=-1,i=[];for(let a=0;a<e.length;a++)e[a]==`{`?t++:e[a]==`}`&&t--,t==1&&e[a]!=`{`&&e[a]!=`}`&&n==-1&&(n=a),t==2&&e[a]==`{`&&(r=a,i.push({start:n,end:r}),n=r=-1);return i}(r);if(i.length==0)return new Map;let a=new Map,o=!1,s=[];s.push(r.substring(0,i[0].start));for(let e=0;e<i.length;e++){let t=r.substring(i[e].start,i[e].end),c=[];t.split(`,`).forEach(e=>{let t=e.split(` `).map(e=>e.trim()).filter(e=>e!=``).join(` `),r=a.size;a.set(r,t),c.push(`${r}%`),n(t)&&(o=!0)}),s.push(c.join(`,`)),e==i.length-1?s.push(r.substring(i[e].end)):s.push(r.substring(i[e].end,i[e+1].start))}return o?(e.block.contents=s.join(``),this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,t),a):new Map}parseQualifiedRule(e){let t=e.index,n=this.parseSelector(e).trim();if(n)return{selector:n,block:this.eatBlock(e),startIndex:t,endIndex:e.index}}removeEnclosingDoubleQuotes(e){let t=e[0]==`"`?1:0,n=e[e.length-1]==`"`?e.length-1:e.length;return e.substring(t,n)}assertString(e,t){if(e.sheetSrc.substr(e.index,t.length)!=t)throw this.parseError(e,`Did not find expected sequence ${t}`);e.index+=t.length}replacePart(e,t,n,r){if(r.sheetSrc=r.sheetSrc.slice(0,e)+n+r.sheetSrc.slice(t),r.index>=t){let i=r.index-t;r.index=e+n.length+i}}eatComment(e){this.assertString(e,`/*`),this.eatUntil(`*/`,e,!0),this.assertString(e,`*/`)}eatBlock(e){let t=e.index;this.assertString(e,`{`);let n=1;for(;n!=0;)this.lookAhead(`/*`,e)?this.eatComment(e):(e.sheetSrc[e.index]===`{`?n++:e.sheetSrc[e.index]===`}`&&n--,this.advance(e));let r=e.index;return{startIndex:t,endIndex:r,contents:e.sheetSrc.slice(t,r)}}advance(e){if(e.index++,e.index>e.sheetSrc.length)throw this.parseError(e,`Advanced beyond the end`)}parseError(e,t){return Error(`(${e.name?e.name:`<anonymous file>`}): ${t}`)}eatUntil(e,t,n=!1){let r=t.index;for(;!this.lookAhead(e,t);)this.advance(t);return n&&(t.sheetSrc=t.sheetSrc.slice(0,r)+` `.repeat(t.index-r)+t.sheetSrc.slice(t.index)),t.sheetSrc.slice(r,t.index)}parseSelector(e){let t=e.index;if(this.eatUntil(`{`,e),t===e.index)throw Error(`Empty selector`);return e.sheetSrc.slice(t,e.index)}eatWhitespace(e){Z.WHITE_SPACE.lastIndex=e.index;let t=Z.WHITE_SPACE.exec(e.sheetSrc);t&&(e.index+=t[0].length)}lookAhead(e,t){return t.sheetSrc.substr(t.index,e.length)==e}peek(e){return e.sheetSrc[e.index]}extractMatches(e,t,n=`,`){return t.exec(e)[1].trim().split(n).map(e=>e.trim())}split(e){return e.split(` `).map(e=>e.trim()).filter(e=>e!=``)}};function Nt(e,t,n,r,i,a){let o=Je(t),s=Ye(t,n);return ct(ot(e,o,s,r,i),a,ot(`cover`,o,s,r,i),n)}function Pt(e,t,n){let r=$.getAnimationTimelineOptions(t,n);if(!r)return null;let i=r[`animation-timeline`];if(!i)return null;let a=$.getScrollTimelineOptions(i,n)||$.getViewTimelineOptions(i,n);return a?(a.subject&&function(e,t){let n=at(t.subject),r=t.axis;function i(e,i){let a=null;for(let[o,s]of e)if(o==100*i.offset){if(s==`from`)a=0;else if(s==`to`)a=100;else{let e=s.split(` `);a=e.length==1?parseFloat(e[0]):100*Nt(e[0],n,t.subject,r,t.inset,CSS.percent(parseFloat(e[1])))}break}return a}let a=$.keyframeNamesSelectors.get(e.animationName);if(a&&a.size){let t=[];e.effect.getKeyframes().forEach(e=>{let n=i(a,e);n!==null&&n>=0&&n<=100&&(e.offset=n/100,t.push(e))});let n=t.sort((e,t)=>e.offset<t.offset?-1:e.affset>t.offset?1:0);e.effect.setKeyframes(n)}}(e,a),{timeline:a.source?new I(a):new R(a),animOptions:r}):null}function Ft(){if(CSS.supports(`animation-timeline: --works`))return!0;(function(){function e(e){if(e.innerHTML.trim().length===0||`aphrodite`in e.dataset)return;let t=$.transpileStyleSheet(e.innerHTML,!0);t=$.transpileStyleSheet(t,!1),e.innerHTML=t}function t(e){e.type!=`text/css`&&e.rel!=`stylesheet`||!e.href||new URL(e.href,document.baseURI).origin==location.origin&&fetch(e.getAttribute(`href`)).then(async t=>{let n=await t.text(),r=$.transpileStyleSheet(n,!0);if(r=$.transpileStyleSheet(r,!1,t.url),r!==n){let t=new Blob([r],{type:`text/css`}),n=URL.createObjectURL(t);e.setAttribute(`href`,n)}})}new MutationObserver(n=>{for(let r of n)for(let n of r.addedNodes)n instanceof HTMLStyleElement&&e(n),n instanceof HTMLLinkElement&&t(n)}).observe(document.documentElement,{childList:!0,subtree:!0}),document.querySelectorAll(`style`).forEach(t=>e(t)),document.querySelectorAll(`link`).forEach(e=>t(e))})();let e=CSS.supports;CSS.supports=t=>(t=t.replaceAll(/(animation-timeline|scroll-timeline(-(name|axis))?|view-timeline(-(name|axis|inset))?|timeline-scope)\s*:/g,`--supported-property:`),e(t)),window.addEventListener(`animationstart`,e=>{e.target.getAnimations().filter(t=>t.animationName===e.animationName).forEach(t=>{let n=Pt(t,t.animationName,e.target);if(n)if(!n.timeline||t instanceof X)t.timeline=n.timeline;else{let e=new X(t,n.timeline,n.animOptions);t.pause(),e.play()}})})}Ft()?console.debug(`Polyfill skipped because browser supports Scroll Timeline.`):function(){if(window.ViewTimeline!==void 0)return!0;if(!Reflect.defineProperty(window,`ScrollTimeline`,{value:I}))throw Error(`Error installing ScrollTimeline polyfill: could not attach ScrollTimeline to window`);if(!Reflect.defineProperty(window,`ViewTimeline`,{value:R}))throw Error(`Error installing ViewTimeline polyfill: could not attach ViewTimeline to window`);if(!Reflect.defineProperty(Element.prototype,`animate`,{value:Ot}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's animate to DOM Element`);if(!Reflect.defineProperty(window,`Animation`,{value:X}))throw Error(`Error installing Animation constructor.`);if(!Reflect.defineProperty(Element.prototype,`getAnimations`,{value:At}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to DOM Element`);if(!Reflect.defineProperty(document,`getAnimations`,{value:jt}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to document`)}()})();
1
+ var e=Object.defineProperty,t=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,n=(e,n,r)=>(t(e,typeof n==`symbol`?n:n+``,r),r);(function(){class e{}class t extends e{constructor(e){super(),n(this,`value`),this.value=e}}class r extends e{constructor(e){super(),n(this,`value`),this.value=e}}class i extends e{constructor(e){super(),n(this,`value`),this.value=e}}class a extends e{constructor(e,t=`unrestricted`){super(),n(this,`type`),n(this,`value`),this.value=e,this.type=t}}class o extends e{constructor(e){super(),n(this,`value`),this.value=e}}class s extends e{}class c extends e{constructor(e){super(),n(this,`value`),this.value=e}}class l extends e{}class u extends e{constructor(e){super(),n(this,`value`),this.value=e}}class d extends e{constructor(e,t=`integer`){super(),n(this,`value`),n(this,`type`),this.value=e,this.type=t}}class f extends e{constructor(e){super(),n(this,`value`),this.value=e}}class p extends e{constructor(e,t,r){super(),n(this,`value`),n(this,`type`),n(this,`unit`),this.value=e,this.type=t,this.unit=r}}class m extends e{}class h extends e{}class g extends e{}class _ extends e{}class ee extends e{}class te extends e{}class ne extends e{}class re extends e{}class v extends e{}class y extends e{}class ie extends e{}class ae extends e{}class oe{constructor(e){n(this,`input`),n(this,`index`,0),this.input=e}consume(){let e=this.input.codePointAt(this.index);return e!==void 0&&(this.index+=String.fromCodePoint(e).length),e}reconsume(e){e!==void 0&&(this.index-=String.fromCodePoint(e).length)}peek(){let e=[],t=this.index;for(let n=0;n<3&&t<this.input.length;n++){let n=this.input.codePointAt(t);e.push(n),t+=String.fromCodePoint(n).length}return e}}function se(e){return e===10}function b(e){return se(e)||e===8192||e===32}function x(e){return e>=48&&e<=57}function ce(e){return x(e)||e>=65&&e<=70||e>=97&&e<=102}function S(e){return function(e){return function(e){return e>=65&&e<=90}(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||e===95}function le(e){return S(e)||x(e)||e===45}function ue(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function C(e,t){return e===92&&!se(t)}function w(e,t,n){return e===45?S(t)||t===45||C(t,n):!!S(e)||e===92&&C(e,t)}function de(e,t,n){return e===43||e===45?x(t)||t===46&&x(n):x(e===46?t:e)}function fe(e){let t=e.consume();if(ce(t)){let n=[t];for(;ce(...e.peek())&&n.length<5;)n.push(e.consume());b(...e.peek())&&e.consume();let r=parseInt(String.fromCodePoint(...n),16);return r===0||r>1114111?65533:r}return t===void 0?65533:t}function pe(e,t){let n=new o(``);for(;;){let r=e.consume();if(r===t||r===void 0)return n;if(r===10)return e.reconsume(r),new s;if(r===92){let t=e.peek()[0];t===void 0||(se(t)?e.consume():n.value+=String.fromCodePoint(fe(e)))}else n.value+=String.fromCodePoint(r)}}function me(e){let t=``;for(;;){let n=e.consume();if(le(n))t+=String.fromCodePoint(n);else{if(!C(...e.peek()))return e.reconsume(n),t;t+=String.fromCodePoint(fe(e))}}}function he(e){let t=function(e){let t=`integer`,n=``;for([43,45].includes(e.peek()[0])&&(n+=String.fromCodePoint(e.consume()));x(...e.peek());)n+=String.fromCodePoint(e.consume());if(e.peek()[0]===46&&x(e.peek()[1]))for(n+=String.fromCodePoint(e.consume(),e.consume()),t=`number`;x(...e.peek());)n+=String.fromCodePoint(e.consume());return[69,101].includes(e.peek()[0])&&([45,43].includes(e.peek()[1])&&x(e.peek()[2])?(n+=String.fromCodePoint(e.consume(),e.consume(),e.consume()),t=`number`):x(e.peek()[1])&&(n+=String.fromCodePoint(e.consume(),e.consume()),t=`number`)),{value:parseFloat(n),type:t}}(e);return w(...e.peek())?new p(t.value,t.type,me(e)):e.peek()[0]===37?(e.consume(),new f(t.value)):new d(t.value,t.type)}function ge(e){for(;;){let t=e.consume();if(t===41||t===void 0)return;C(...e.peek())&&fe(e)}}function _e(e){let n=me(e);if(n.match(/url/i)&&e.peek()[0]===40){for(e.consume();b(e.peek()[0])&&b(e.peek()[1]);)e.consume();return[34,39].includes(e.peek()[0])||b(e.peek()[0])&&[34,39].includes(e.peek()[1])?new r(n):function(e){let t=new c(``);for(;b(...e.peek());)e.consume();for(;;){let n=e.consume();if(n===41||n===void 0)return t;if(b(n)){for(;b(...e.peek());)e.consume();return e.peek()[0]===41||e.peek()[0]===void 0?(e.consume(),t):(ge(e),new l)}if([34,39,40].includes(n)||ue(n))return ge(e),new l;if(n===92){if(!C(...e.peek()))return ge(e),new l;t.value+=fe(e)}else t.value+=String.fromCodePoint(n)}}(e)}return e.peek()[0]===40?(e.consume(),new r(n)):new t(n)}function ve(e){let t=e.consume(),n=e.peek();if(b(t)){for(;b(...e.peek());)e.consume();return new m}if(t===34)return pe(e,t);if(t===35){if(le(n[0])||C(...n)){let t=new a;return w(...n)&&(t.type=`id`),t.value=me(e),t}return new u(String.fromCodePoint(t))}return t===39?pe(e,t):t===40?new v:t===41?new y:t===43?de(...n)?(e.reconsume(t),he(e)):new u(String.fromCodePoint(t)):t===44?new te:t===45?de(...e.peek())?(e.reconsume(t),he(e)):e.peek()[0]===45&&e.peek()[1]===62?(e.consume(),e.consume(),new g):w(...e.peek())?(e.reconsume(t),_e(e)):new u(String.fromCodePoint(t)):t===46?de(...e.peek())?(e.reconsume(t),he(e)):new u(String.fromCodePoint(t)):t===58?new _:t===59?new ee:t===60?n[0]===33&&n[1]===45&&n[2]===45?(e.consume(),e.consume(),e.consume(),new h):new u(String.fromCodePoint(t)):t===64?w(...n)?new i(me(e)):new u(String.fromCodePoint(t)):t===91?new ne:t===92?C(...n)?(e.reconsume(t),_e(e)):new u(String.fromCodePoint(t)):t===93?new re:t===123?new ie:t===125?new ae:x(t)?(e.reconsume(t),he(e)):S(t)?(e.reconsume(t),_e(e)):t===void 0?void 0:new u(String.fromCodePoint(t))}let ye=new Set([`px`,`deg`,`s`,`hz`,`dppx`,`number`,`fr`]);function be(e){return ye.has(e.toLowerCase())}function xe(e,t){if([`x`,`y`].includes(e))return e;if(!t)throw Error(`To determine the normalized axis the computedStyle of the source is required.`);let n=t.writingMode==`horizontal-tb`;if(e===`block`)e=n?`y`:`x`;else{if(e!==`inline`)throw TypeError(`Invalid axis “${e}”`);e=n?`x`:`y`}return e}function Se(e){let t=[],n=0;function r(){let t=0,r=n;for(;n<e.length;){let r=e.slice(n,n+1);if(/\s/.test(r)&&t===0)break;if(r===`(`)t+=1;else if(r===`)`&&(--t,t===0)){n++;break}n++}return e.slice(r,n)}function i(){for(;/\s/.test(e.slice(n,n+1));)n++}for(;n<e.length;){let a=e.slice(n,n+1);/\s/.test(a)?i():t.push(r())}return t}function Ce(e,t){return e.reduce((e,n)=>(e.has(n[t])?e.get(n[t]).push(n):e.set(n[t],[n]),e),new Map)}function we(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function T(e,t={}){function n(e){return Array.from(e).map(e=>T(e,t))}if(e instanceof CSSUnitValue){if(e.unit===`percent`&&t.percentageReference){let n=e.value/100*t.percentageReference.value,r=t.percentageReference.unit;return new CSSUnitValue(n,r)}let n=e.toSum();if(n&&n.values.length===1&&(e=n.values[0]),e instanceof CSSUnitValue&&e.unit===`em`&&t.fontSize&&(e=new CSSUnitValue(e.value*t.fontSize.value,t.fontSize.unit)),e instanceof CSSKeywordValue){if(e.value===`e`)return new CSSUnitValue(Math.E,`number`);if(e.value===`pi`)return new CSSUnitValue(Math.PI,`number`)}return e}if(!e.operator)return e;switch(e.operator){case`sum`:e=new CSSMathSum(...n(e.values));break;case`product`:e=new CSSMathProduct(...n(e.values));break;case`negate`:e=new CSSMathNegate(T(e.value,t));break;case`clamp`:e=new CSSMathClamp(T(e.lower,t),T(e.value,t),T(e.upper,t));break;case`invert`:e=new CSSMathInvert(T(e.value,t));break;case`min`:e=new CSSMathMin(...n(e.values));break;case`max`:e=new CSSMathMax(...n(e.values))}if(e instanceof CSSMathMin||e instanceof CSSMathMax){let t=Array.from(e.values);if(t.every(e=>e instanceof CSSUnitValue&&e.unit!==`percent`&&be(e.unit)&&e.unit===t[0].unit)){let n=Math[e.operator].apply(Math,t.map(({value:e})=>e));return new CSSUnitValue(n,t[0].unit)}}if(e instanceof CSSMathMin||e instanceof CSSMathMax){let t=Array.from(e.values),[n,r]=we(t,e=>e instanceof CSSUnitValue&&e.unit!==`percent`),i=Array.from(Ce(n,`unit`).values());if(i.some(e=>e.length>0)){let t=i.map(t=>{let n=Math[e.operator].apply(Math,t.map(({value:e})=>e));return new CSSUnitValue(n,t[0].unit)});e=e instanceof CSSMathMin?new CSSMathMin(...t,...r):new CSSMathMax(...t,...r)}return t.length===1?t[0]:e}if(e instanceof CSSMathNegate)return e.value instanceof CSSUnitValue?new CSSUnitValue(0-e.value.value,e.value.unit):e.value instanceof CSSMathNegate?e.value.value:e;if(e instanceof CSSMathInvert)return e.value instanceof CSSMathInvert?e.value.value:e;if(e instanceof CSSMathSum){let t=function(e){let t=e.filter(e=>e instanceof CSSUnitValue);return[...e.filter(e=>!(e instanceof CSSUnitValue)),...Array.from(Ce(t,`unit`).entries()).map(([e,t])=>{let n=t.reduce((e,{value:t})=>e+t,0);return new CSSUnitValue(n,e)})]},n=[];for(let t of e.values)t instanceof CSSMathSum?n.push(...t.values):n.push(t);return n=t(n),n.length===1?n[0]:new CSSMathSum(...n)}if(e instanceof CSSMathProduct){let t=[];for(let n of e.values)n instanceof CSSMathProduct?t.push(...n.values):t.push(n);let[n,r]=we(t,e=>e instanceof CSSUnitValue&&e.unit===`number`);if(n.length>1){let e=n.reduce((e,{value:t})=>e*t,1);t=[new CSSUnitValue(e,`number`),...r]}if(t.length===2){let e,n;for(let r of t)r instanceof CSSUnitValue&&r.unit===`number`?e=r:r instanceof CSSMathSum&&[...r.values].every(e=>e instanceof CSSUnitValue)&&(n=r);if(e&&n)return new CSSMathSum(...[...n.values].map(t=>new CSSUnitValue(t.value*e.value,t.unit)))}if(t.every(e=>e instanceof CSSUnitValue&&be(e.unit)||e instanceof CSSMathInvert&&e.value instanceof CSSUnitValue&&be(e.value.unit))){let e=new CSSMathProduct(...t).toSum();if(e&&e.values.length===1)return e.values[0]}return new CSSMathProduct(...t)}return e}let Te=[`percent`,`length`,`angle`,`time`,`frequency`,`resolution`,`flex`],E={fontRelativeLengths:{units:new Set([`em`,`rem`,`ex`,`rex`,`cap`,`rcap`,`ch`,`rch`,`ic`,`ric`,`lh`,`rlh`])},viewportRelativeLengths:{units:new Set([`vw`,`lvw`,`svw`,`dvw`,`vh`,`lvh`,`svh`,`dvh`,`vi`,`lvi`,`svi`,`dvi`,`vb`,`lvb`,`svb`,`dvb`,`vmin`,`lvmin`,`svmin`,`dvmin`,`vmax`,`lvmax`,`svmax`,`dvmax`])},absoluteLengths:{units:new Set([`cm`,`mm`,`Q`,`in`,`pt`,`pc`,`px`]),compatible:!0,canonicalUnit:`px`,ratios:{cm:96/2.54,mm:96/2.54/10,Q:96/2.54/40,in:96,pc:16,pt:96/72,px:1}},angle:{units:new Set([`deg`,`grad`,`rad`,`turn`]),compatible:!0,canonicalUnit:`deg`,ratios:{deg:1,grad:.9,rad:180/Math.PI,turn:360}},time:{units:new Set([`s`,`ms`]),compatible:!0,canonicalUnit:`s`,ratios:{s:1,ms:.001}},frequency:{units:new Set([`hz`,`khz`]),compatible:!0,canonicalUnit:`hz`,ratios:{hz:1,khz:1e3}},resolution:{units:new Set([`dpi`,`dpcm`,`dppx`]),compatible:!0,canonicalUnit:`dppx`,ratios:{dpi:1/96,dpcm:2.54/96,dppx:1}}},Ee=new Map;for(let e of Object.values(E))if(e.compatible)for(let t of e.units)Ee.set(t,e);function De(e){return Ee.get(e)}function Oe(e,t){let n={...e};for(let e of Object.keys(t))n[e]?n[e]+=t[e]:n[e]=t[e];return n}function ke(e){return e===`number`?{}:e===`percent`?{percent:1}:E.absoluteLengths.units.has(e)||E.fontRelativeLengths.units.has(e)||E.viewportRelativeLengths.units.has(e)?{length:1}:E.angle.units.has(e)?{angle:1}:E.time.units.has(e)?{time:1}:E.frequency.units.has(e)?{frequency:1}:E.resolution.units.has(e)?{resolution:1}:e===`fr`?{flex:1}:null}function D(e){if(e instanceof CSSUnitValue){let{unit:t,value:n}=e,r=De(e.unit);return r&&t!==r.canonicalUnit&&(n*=r.ratios[t],t=r.canonicalUnit),t===`number`?[[n,{}]]:[[n,{[t]:1}]]}if(e instanceof CSSMathInvert){if(!(e.value instanceof CSSUnitValue))throw Error(`Not implemented`);let t=D(e.value);if(t===null||t.length>1)return null;let n=t[0],r={};for(let[e,t]of Object.entries(n[1]))r[e]=-1*t;return t[0]=[1/n[0],r],t}if(e instanceof CSSMathProduct){let t=[[1,{}]];for(let n of e.values){let e=D(n),r=[];if(e===null)return null;for(let n of t)for(let t of e)r.push([n[0]*t[0],Oe(n[1],t[1])]);t=r}return t}throw Error(`Not implemented`)}function Ae(e,t){if(ke(t)===null)throw SyntaxError(`The string did not match the expected pattern.`);let n=D(e);if(!n)throw TypeError();if(n.length>1)throw TypeError(`Sum has more than one item`);let r=function(e,t){let n=e.unit,r=e.value,i=De(n),a=De(t);return!a||i!==a?null:new CSSUnitValue(r*a.ratios[n]/a.ratios[t],t)}(je(n[0]),t);if(r===null)throw TypeError();return r}function je(e){let[t,n]=e,r=Object.entries(n);if(r.length>1)return null;if(r.length===0)return new CSSUnitValue(t,`number`);let i=r[0];return i[1]===1?new CSSUnitValue(t,i[0]):null}function Me(e,...t){if(t&&t.length)throw Error(`Not implemented`);let n=D(e).map(e=>je(e));if(n.some(e=>e===null))throw TypeError(`Type error`);return new CSSMathSum(...n)}function Ne(e,t){if(e.percentHint&&t.percentHint&&e.percentHint!==t.percentHint)return null;let n={...e,percentHint:e.percentHint??t.percentHint};for(let e of Te)t[e]&&(n[e]??(n[e]=0),n[e]+=t[e]);return n}class O{constructor(e,t){n(this,`name`),n(this,`values`),this.name=e,this.values=t}}class Pe{constructor(e,t){n(this,`value`),n(this,`associatedToken`),this.value=e,this.associatedToken=t}}function Fe(e){if(Array.isArray(e))return e;if(typeof e==`string`)return function(e){let t=new oe(e),n=[];for(;;){let e=ve(t);if(e===void 0)return n;n.push(e)}}(e);throw TypeError(`Invalid input type `+typeof e)}function Ie(e){let t=e.shift();return t instanceof ie||t instanceof ne||t instanceof v?function(e,t){let n;if(t instanceof ie)n=ae;else if(t instanceof v)n=y;else{if(!(t instanceof ne))return;n=re}let r=new Pe([],t);for(;;){let t=e.shift();if(t instanceof n||t===void 0)return r;e.unshift(t),r.value.push(Ie(e))}}(e,t):t instanceof r?function(e,t){let n=new O(e.value,[]);for(;;){let e=t.shift();if(e instanceof y||e===void 0)return n;t.unshift(e),n.values.push(Ie(t))}}(t,e):t}function Le(e){if(e instanceof v||e instanceof y)return 6;if(e instanceof u)switch(e.value){case`*`:case`/`:return 4;case`+`:case`-`:return 2}}function k(e){return e[e.length-1]}function Re(e,t,n){let r=[`+`,`-`].includes(e.value)?`ADDITION`:`MULTIPLICATION`,i=t.type===r?t.values:[t],a=n.type===r?n.values:[n];return e.value===`-`?a[0]={type:`NEGATE`,value:a[0]}:e.value===`/`&&(a[0]={type:`INVERT`,value:a[0]}),{type:r,values:[...i,...a]}}function A(e){if(e.type===`ADDITION`)return new CSSMathSum(...e.values.map(e=>A(e)));if(e.type===`MULTIPLICATION`)return new CSSMathProduct(...e.values.map(e=>A(e)));if(e.type===`NEGATE`)return new CSSMathNegate(A(e.value));if(e.type===`INVERT`)return new CSSMathInvert(A(e.value));if(e instanceof Pe)return ze(new O(`calc`,e.value));if(e instanceof t){if(e.value===`e`)return new CSSUnitValue(Math.E,`number`);if(e.value===`pi`)return new CSSUnitValue(Math.PI,`number`);throw SyntaxError(`Invalid math expression`)}return Be(e)}function ze(e){if(e.name===`min`||e.name===`max`){let t=e.values.filter(e=>!(e instanceof m||e instanceof te)).map(e=>T(ze(new O(`calc`,e))));return e.name===`min`?new CSSMathMin(...t):new CSSMathMax(...t)}if(e.name!==`calc`)return null;let n=A(function(e){let n=[],r=[];for(;e.length;){let i=e.shift();if(i instanceof d||i instanceof p||i instanceof f||i instanceof O||i instanceof Pe||i instanceof t)r.push(i);else if(i instanceof u&&[`*`,`/`,`+`,`-`].includes(i.value)){for(;n.length&&!(k(n)instanceof v)&&Le(k(n))>Le(i);){let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}n.push(i)}else if(i instanceof v)n.push(i);else if(i instanceof y){if(!n.length)return null;for(;!(k(n)instanceof v);){let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}if(!(k(n)instanceof v))return null;n.pop()}else if(!(i instanceof m))return null}for(;n.length;){if(k(n)instanceof v)return null;let e=n.pop(),t=r.pop(),i=r.pop();r.push(Re(e,i,t))}return r[0]}([...e.values])),r;try{r=T(n)}catch{new CSSStyleSheet().insertRule(`error`,0)}return r instanceof CSSUnitValue?new CSSMathSum(r):r}function Be(e){return e instanceof O&&[`calc`,`min`,`max`,`clamp`].includes(e.name)?ze(e):e instanceof d&&e.value===0&&!e.unit?new CSSUnitValue(0,`px`):e instanceof d?new CSSUnitValue(e.value,`number`):e instanceof f?new CSSUnitValue(e.value,`percent`):e instanceof p?new CSSUnitValue(e.value,e.unit):void 0}function Ve(e){let t=function(e){let t=Fe(e);for(;t[0]instanceof m;)t.shift();if(t[0]===void 0)return null;let n=Ie(t);for(;t[0]instanceof m;)t.shift();return t[0]===void 0?n:null}(e);return t===null&&new CSSStyleSheet().insertRule(`error`,0),t instanceof d||t instanceof f||t instanceof p||t instanceof O||new CSSStyleSheet().insertRule(`error`,0),t instanceof p&&ke(t.unit)===null&&new CSSStyleSheet().insertRule(`error`,0),Be(t)}(function(){let e=new WeakMap;function t(e){let t=[];for(let r=0;r<e.length;r++)t[r]=typeof(n=e[r])==`number`?new CSSUnitValue(n,`number`):n;var n;return t}class n{static parse(e){return e instanceof n?e:T(Ve(e),{})}}class r extends n{constructor(n,r,i,a){super(),e.set(this,{values:t(n),operator:r,name:i||r,delimiter:a||`, `})}get operator(){return e.get(this).operator}get values(){return e.get(this).values}toString(){let t=e.get(this);return`${t.name}(${t.values.join(t.delimiter)})`}}let i={CSSNumericValue:n,CSSMathValue:r,CSSUnitValue:class extends n{constructor(t,n){super(),e.set(this,{value:t,unit:n})}get value(){return e.get(this).value}set value(t){e.get(this).value=t}get unit(){return e.get(this).unit}to(e){return Ae(this,e)}toSum(...e){return Me(this,...e)}type(){return ke(e.get(this).unit)}toString(){let t=e.get(this);return`${t.value}${function(e){switch(e){case`percent`:return`%`;case`number`:return``;default:return e.toLowerCase()}}(t.unit)}`}},CSSKeywordValue:class{constructor(e){this.value=e}toString(){return this.value.toString()}},CSSMathSum:class extends r{constructor(e){super(arguments,`sum`,`calc`,` + `)}},CSSMathProduct:class extends r{constructor(e){super(arguments,`product`,`calc`,` * `)}toSum(...e){return Me(this,...e)}type(){return e.get(this).values.map(e=>e.type()).reduce(Ne)}},CSSMathNegate:class extends r{constructor(e){super([arguments[0]],`negate`,`-`)}get value(){return e.get(this).values[0]}type(){return this.value.type()}},CSSMathInvert:class extends r{constructor(e){super([1,arguments[0]],`invert`,`calc`,` / `)}get value(){return e.get(this).values[1]}type(){return function(e){let t={};for(let n of Te)t[n]=-1*e[n];return t}(e.get(this).values[1].type())}},CSSMathMax:class extends r{constructor(){super(arguments,`max`)}},CSSMathMin:class extends r{constructor(){super(arguments,`min`)}}};if(!window.CSS&&!Reflect.defineProperty(window,`CSS`,{value:{}}))throw Error(`Error installing CSSOM support`);window.CSSUnitValue||`number.percent.em.ex.px.cm.mm.in.pt.pc.Q.vw.vh.vmin.vmax.rems.ch.deg.rad.grad.turn.ms.s.Hz.kHz.dppx.dpi.dpcm.fr`.split(`.`).forEach(e=>{if(!Reflect.defineProperty(CSS,e,{value:t=>new CSSUnitValue(t,e)}))throw Error(`Error installing CSS.${e}`)});for(let[e,t]of Object.entries(i))if(!(e in window)&&!Reflect.defineProperty(window,e,{value:t}))throw Error(`Error installing CSSOM support for ${e}`)})();let He=`block`,j=new WeakMap,M=new WeakMap,N=[`entry`,`exit`,`cover`,`contain`,`entry-crossing`,`exit-crossing`];function Ue(e){return e===document.scrollingElement?document:e}function P(e){Ke(e);let t=j.get(e).animations;if(t.length===0)return;let n=e.currentTime;for(let e=0;e<t.length;e++)t[e].tickAnimation(n)}function We(e,t){if(!e)return null;let n=M.get(e).sourceMeasurements,r=getComputedStyle(e),i=n.scrollTop;return xe(t,r)===`x`&&(i=Math.abs(n.scrollLeft)),i}function Ge(e,t){let n=T(e,t);if(n instanceof CSSUnitValue){if(n.unit===`px`)return n.value;throw TypeError(`Unhandled unit type `+n.unit)}throw TypeError(`Unsupported value type: `+typeof e)}function Ke(e){if(!(e instanceof R))return void function(e){let t=j.get(e);t.anonymousSource&&F(e,et(t.anonymousSource,t.anonymousTarget))}(e);let t=e.subject;if(!t||getComputedStyle(t).display==`none`)return void F(e,null);F(e,at(t))}function qe(e){return[`block`,`inline`,`x`,`y`].includes(e)}function Je(e){let t=getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,writingMode:t.writingMode,direction:t.direction,scrollPaddingTop:t.scrollPaddingTop,scrollPaddingBottom:t.scrollPaddingBottom,scrollPaddingLeft:t.scrollPaddingLeft,scrollPaddingRight:t.scrollPaddingRight}}function Ye(e,t){if(!e||!t)return;let n=0,r=0,i=t,a=e.offsetParent;for(;i&&i!=a;)r+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;r-=e.offsetLeft+e.clientLeft,n-=e.offsetTop+e.clientTop;let o=getComputedStyle(t);return{top:n,left:r,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,fontSize:o.fontSize}}function Xe(e){let t=M.get(e);t.sourceMeasurements=Je(e);for(let n of t.timelineRefs){let t=n.deref();t instanceof R&&(j.get(t).subjectMeasurements=Ye(e,t.subject))}t.updateScheduled||=(setTimeout(()=>{for(let e of t.timelineRefs){let t=e.deref();t&&P(t)}t.updateScheduled=!1}),!0)}function F(e,t){let n=j.get(e),r=n.source;if(r!=t){if(r){let t=M.get(r);if(t){t.timelineRefs.delete(e);let n=Array.from(t.timelineRefs).filter(e=>e.deref()===void 0);for(let e of n)t.timelineRefs.delete(e);t.timelineRefs.size===0&&(t.disconnect(),M.delete(r))}}if(n.source=t,t){let r=M.get(t);if(!r){r={timelineRefs:new Set,sourceMeasurements:Je(t)},M.set(t,r);let e=new ResizeObserver(()=>{Xe(n.source)});e.observe(t);for(let n of t.children)e.observe(n);let i=new MutationObserver(e=>{for(let t of e)Xe(t.target)});i.observe(t,{attributes:!0,attributeFilter:[`style`,`class`]});let a=()=>{r.sourceMeasurements.scrollLeft=t.scrollLeft,r.sourceMeasurements.scrollTop=t.scrollTop;for(let e of r.timelineRefs){let t=e.deref();t&&P(t)}};Ue(t).addEventListener(`scroll`,a),r.disconnect=()=>{e.disconnect(),i.disconnect(),Ue(t).removeEventListener(`scroll`,a)}}r.timelineRefs.add(new WeakRef(e))}}}function Ze(e,t){let n=j.get(e).animations;for(let e=0;e<n.length;e++)n[e].animation==t&&n.splice(e,1)}function Qe(e,t,n){let r=j.get(e).animations;for(let e=0;e<r.length;e++)if(r[e].animation==t)return;r.push({animation:t,tickAnimation:n}),queueMicrotask(()=>{P(e)})}class I{constructor(e){if(j.set(this,{source:null,axis:He,anonymousSource:e?e.anonymousSource:null,anonymousTarget:e?e.anonymousTarget:null,subject:null,inset:null,animations:[],subjectMeasurements:null}),F(this,e&&e.source!==void 0?e.source:document.scrollingElement),e&&e.axis!==void 0&&e.axis!=He){if(!qe(e.axis))throw TypeError(`Invalid axis`);j.get(this).axis=e.axis}P(this)}set source(e){F(this,e),P(this)}get source(){return j.get(this).source}set axis(e){if(!qe(e))throw TypeError(`Invalid axis`);j.get(this).axis=e,P(this)}get axis(){return j.get(this).axis}get duration(){return CSS.percent(100)}get phase(){let e=this.source;if(!e)return`inactive`;let t=getComputedStyle(e);return t.display==`none`?`inactive`:e==document.scrollingElement||t.overflow!=`visible`&&t.overflow!=`clip`?`active`:`inactive`}get currentTime(){let e=this.source;if(!e||!e.isConnected||this.phase==`inactive`)return null;let t=getComputedStyle(e);if(t.display===`inline`||t.display===`none`)return null;let n=this.axis,r=We(e,n),i=function(e,t){let n=M.get(e).sourceMeasurements,r=getComputedStyle(e).writingMode==`horizontal-tb`;return t===`block`?t=r?`y`:`x`:t===`inline`&&(t=r?`x`:`y`),t===`y`?n.scrollHeight-n.clientHeight:t===`x`?n.scrollWidth-n.clientWidth:void 0}(e,n);return i>0?CSS.percent(100*r/i):CSS.percent(100)}get __polyfill(){return!0}}function $e(e,t){let n=e.parentElement;for(;n!=null;){if(t(n))return n;n=n.parentElement}}function et(e,t){switch(e){case`root`:return document.scrollingElement;case`nearest`:return at(t);case`self`:return t;default:throw TypeError(`Invalid ScrollTimeline Source Type.`)}}function tt(e){switch(getComputedStyle(e).display){case`block`:case`inline-block`:case`list-item`:case`table`:case`table-caption`:case`flow-root`:case`flex`:case`grid`:return!0}return!1}function nt(e){let t=getComputedStyle(e);return t.transform!=`none`||t.perspective!=`none`||t.willChange==`transform`||t.willChange==`perspective`||t.filter!=`none`||t.willChange==`filter`||t.backdropFilter!=`none`}function rt(e){return getComputedStyle(e).position!=`static`||nt(e)}function it(e){switch(getComputedStyle(e).position){case`static`:case`relative`:case`sticky`:return $e(e,tt);case`absolute`:return $e(e,rt);case`fixed`:return $e(e,nt)}}function at(e){if(e&&e.isConnected){for(;e=it(e);)switch(getComputedStyle(e)[`overflow-x`]){case`auto`:case`scroll`:case`hidden`:return e==document.body&&getComputedStyle(document.scrollingElement).overflow==`visible`?document.scrollingElement:e}return document.scrollingElement}}function L(e,t){let n=j.get(e),r=n.subjectMeasurements,i=M.get(n.source).sourceMeasurements;return e.phase===`inactive`?null:e instanceof R?ot(t,i,r,n.axis,n.inset):null}function ot(e,t,n,r,i){let a=t.direction==`rtl`||t.writingMode==`vertical-rl`,o,s,c={fontSize:n.fontSize};xe(r,t)===`x`?(o=n.offsetWidth,s=n.left,c.scrollPadding=[t.scrollPaddingLeft,t.scrollPaddingRight],a&&(s+=t.scrollWidth-t.clientWidth,c.scrollPadding=[t.scrollPaddingRight,t.scrollPaddingLeft]),c.containerSize=t.clientWidth):(o=n.offsetHeight,s=n.top,c.scrollPadding=[t.scrollPaddingTop,t.scrollPaddingBottom],c.containerSize=t.clientHeight);let l=function(e,t){let n={start:0,end:0};if(!e)return n;let[r,i]=[e.start,e.end].map((e,n)=>e===`auto`?t.scrollPadding[n]===`auto`?0:parseFloat(t.scrollPadding[n]):Ge(e,{percentageReference:CSS.px(t.containerSize),fontSize:CSS.px(parseFloat(t.fontSize))}));return{start:r,end:i}}(i,c),u=s-c.containerSize+l.end,d=s+o-l.start,f=u+o,p=d-o,m=Math.min(f,p),h=Math.max(f,p),g,_,ee=o>c.containerSize-l.start-l.end;switch(e){case`cover`:g=u,_=d;break;case`contain`:g=m,_=h;break;case`entry`:g=u,_=m;break;case`exit`:g=h,_=d;break;case`entry-crossing`:g=u,_=ee?h:m;break;case`exit-crossing`:g=ee?m:h,_=d}return{start:g,end:_}}function st(e,t){if(e instanceof R){let{rangeName:n,offset:r}=t;return ct(L(e,n),r,L(e,`cover`),e.subject)}if(e instanceof I){let{axis:n,source:r}=e,{sourceMeasurements:i}=M.get(r),a;return a=xe(n,i)===`x`?i.scrollWidth-i.clientWidth:i.scrollHeight-i.clientHeight,Ge(t,{percentageReference:CSS.px(a)})/a}unsupportedTimeline(e)}function ct(e,t,n,r){if(!e||!n)return 0;let i=getComputedStyle(r);return(Ge(t,{percentageReference:CSS.px(e.end-e.start),fontSize:CSS.px(parseFloat(i.fontSize))})+e.start-n.start)/(n.end-n.start)}let R=class extends I{constructor(e){super(e);let t=j.get(this);t.subject=e&&e.subject?e.subject:void 0,e&&e.inset&&(t.inset=function(e){if(!e)return{start:0,end:0};let t;if(t=typeof e==`string`?Se(e).map(t=>{if(t===`auto`)return`auto`;try{return CSSNumericValue.parse(t)}catch{throw TypeError(`Could not parse inset "${e}"`)}}):Array.isArray(e)?e:[e],t.length===0||t.length>2)throw TypeError(`Invalid inset`);for(let e of t){if(e===`auto`)continue;let t=e.type();if(t.length!==1&&t.percent!==1)throw TypeError(`Invalid inset`)}return{start:t[0],end:t[1]??t[0]}}(e.inset)),t.subject&&(new ResizeObserver(()=>{Xe(t.source)}).observe(t.subject),new MutationObserver(()=>{Xe(t.source)}).observe(t.subject,{attributes:!0,attributeFilter:[`class`,`style`]})),Ke(this),t.subjectMeasurements=Ye(t.source,t.subject),P(this)}get source(){return Ke(this),j.get(this).source}set source(e){throw Error(`Cannot set the source of a view timeline`)}get subject(){return j.get(this).subject}get axis(){return j.get(this).axis}get currentTime(){let e=We(this.source,this.axis);if(e==null)return null;let t=L(this,`cover`);if(!t)return null;let n=(e-t.start)/(t.end-t.start);return CSS.percent(100*n)}get startOffset(){return CSS.px(L(this,`cover`).start)}get endOffset(){return CSS.px(L(this,`cover`).end)}},lt=document.getAnimations,ut=window.Element.prototype.getAnimations,dt=window.Element.prototype.animate,ft=window.Animation;class z{constructor(){this.state=`pending`,this.nativeResolve=this.nativeReject=null,this.promise=new Promise((e,t)=>{this.nativeResolve=e,this.nativeReject=t})}resolve(e){this.state=`resolved`,this.nativeResolve(e)}reject(e){this.state=`rejected`,this.promise.catch(()=>{}),this.nativeReject(e)}}function B(e){e.readyPromise=new z,requestAnimationFrame(()=>{(e.timeline?.currentTime??null)!==null&&(Y(e),e.pendingTask!==`play`||e.startTime===null&&e.holdTime===null?e.pendingTask===`pause`&&ht(e):mt(e))})}function pt(){return new DOMException(`The user aborted a request`,`AbortError`)}function V(e,t){if(t===null)return t;if(typeof t!=`number`)throw new DOMException(`Unexpected value: ${t}. Cannot convert to CssNumberish`,`InvalidStateError`);let n=e.rangeDuration??100,r=K(e),i=r?n*t/r:0;return CSS.percent(i)}function H(e,t){if(e.timeline){if(t===null)return t;if(t.unit===`percent`){let n=e.rangeDuration??100,r=K(e);return t.value*r/n}throw new DOMException(`CSSNumericValue must be a percentage for progress based animations.`,`NotSupportedError`)}{if(t==null||typeof t==`number`)return t;let e=t.to(`ms`);if(e)return e.value;throw new DOMException(`CSSNumericValue must be either a number or a time value for time based animations.`,`InvalidStateError`)}}function mt(e){let t=H(e,e.timeline.currentTime);if(e.holdTime!=null)W(e),e.animation.playbackRate==0?e.startTime=t:(e.startTime=t-e.holdTime/e.animation.playbackRate,e.holdTime=null);else if(e.startTime!==null&&e.pendingPlaybackRate!==null){let n=(t-e.startTime)*e.animation.playbackRate;W(e);let r=e.animation.playbackRate;r==0?(e.holdTime=null,e.startTime=t):e.startTime=t-n/r}e.readyPromise&&e.readyPromise.state==`pending`&&e.readyPromise.resolve(e.proxy),G(e,!1,!1),q(e),e.pendingTask=null}function ht(e){let t=H(e,e.timeline.currentTime);e.startTime!=null&&e.holdTime==null&&(e.holdTime=(t-e.startTime)*e.animation.playbackRate),W(e),e.startTime=null,e.readyPromise.resolve(e.proxy),G(e,!1,!1),q(e),e.pendingTask=null}function gt(e){if(!e.finishedPromise||e.finishedPromise.state!=`pending`||e.proxy.playState!=`finished`)return;e.finishedPromise.resolve(e.proxy),e.animation.pause();let t=new CustomEvent(`finish`,{detail:{currentTime:e.proxy.currentTime,timelineTime:e.proxy.timeline.currentTime}});Object.defineProperty(t,`currentTime`,{get:function(){return this.detail.currentTime}}),Object.defineProperty(t,`timelineTime`,{get:function(){return this.detail.timelineTime}}),requestAnimationFrame(()=>{queueMicrotask(()=>{e.animation.dispatchEvent(t)})})}function U(e){return e.pendingPlaybackRate===null?e.animation.playbackRate:e.pendingPlaybackRate}function W(e){e.pendingPlaybackRate!==null&&(e.animation.playbackRate=e.pendingPlaybackRate,e.pendingPlaybackRate=null)}function _t(e){if(!e.timeline)return null;let t=H(e,e.timeline.currentTime);if(t===null||e.startTime===null)return null;let n=(t-e.startTime)*e.animation.playbackRate;return n==-0&&(n=0),n}function G(e,t,n){if(!e.timeline)return;let r=t?H(e,e.proxy.currentTime):_t(e);if(r&&e.startTime!=null&&!e.proxy.pending){let n=U(e),i=K(e),a=e.previousCurrentTime;n>0&&r>=i&&e.previousCurrentTime!=null?((a===null||a<i)&&(a=i),e.holdTime=t?r:a):n<0&&r<=0?((a==null||a>0)&&(a=0),e.holdTime=t?r:a):n!=0&&(t&&e.holdTime!==null&&(e.startTime=function(e,t){if(!e.timeline)return null;let n=H(e,e.timeline.currentTime);return n==null?null:n-t/e.animation.playbackRate}(e,e.holdTime)),e.holdTime=null)}q(e),e.previousCurrentTime=H(e,e.proxy.currentTime),e.proxy.playState==`finished`?(e.finishedPromise||=new z,e.finishedPromise.state==`pending`&&(n?gt(e):Promise.resolve().then(()=>{gt(e)}))):(e.finishedPromise&&e.finishedPromise.state==`resolved`&&(e.finishedPromise=new z),e.animation.playState!=`paused`&&e.animation.pause())}function K(e){let t=function(e){let t=e.proxy.effect.getTiming();return e.normalizedTiming||t}(e),n=t.delay+t.endDelay+t.iterations*t.duration;return Math.max(0,n)}function q(e){if(e.timeline)if(e.startTime!==null){let t=e.timeline.currentTime;if(t==null)return;vt(e,(H(e,t)-e.startTime)*e.animation.playbackRate)}else e.holdTime!==null&&vt(e,e.holdTime)}function vt(e,t){let n=e.timeline,r=e.animation.playbackRate,i=n.currentTime&&n.currentTime.value==(r<0?0:100)?r<0?.001:-.001:0;e.animation.currentTime=t+i}function yt(e,t){if(!e.timeline)return;let n=e.proxy.playState==`paused`&&e.proxy.pending,r=!1,i=H(e,e.proxy.currentTime);U(e)==0&&i==null&&(e.holdTime=0),i??(e.autoAlignStartTime=!0),(e.proxy.playState===`finished`||n)&&(e.holdTime=null,e.startTime=null,e.autoAlignStartTime=!0),e.holdTime&&(e.startTime=null),e.pendingTask&&(e.pendingTask=null,r=!0),(e.holdTime!==null||e.autoAlignStartTime||n||e.pendingPlaybackRate!==null)&&(e.readyPromise&&!r&&(e.readyPromise=null),q(e),e.readyPromise||B(e),e.pendingTask=`play`,Qe(e.timeline,e.animation,bt.bind(e.proxy)),G(e,!1,!1))}function bt(e){let t=J.get(this);if(!t)return;if(e==null)return void(t.proxy.playState!==`paused`&&t.animation.playState!=`idle`&&t.animation.cancel());Y(t),t.pendingTask&&requestAnimationFrame(()=>{t.pendingTask!==`play`||t.startTime===null&&t.holdTime===null?t.pendingTask===`pause`&&ht(t):mt(t)});let n=this.playState;(n==`running`||n==`finished`)&&(vt(t,(H(t,e)-H(t,this.startTime))*this.playbackRate),G(t,!1,!1))}function xt(e){e.specifiedTiming=null}let J=new WeakMap;window.addEventListener(`pagehide`,e=>{J=new WeakMap},!1);let St=new WeakMap;function Y(e){if(!e.autoAlignStartTime||!e.timeline||!e.timeline.currentTime||e.proxy.playState===`idle`||e.proxy.playState===`paused`&&e.holdTime!==null)return;let t=e.rangeDuration,n,r;try{n=CSS.percent(100*function(e){if(!e.animationRange)return 0;let t=e.animationRange.start===`normal`?wt(e.timeline):e.animationRange.start;return st(e.timeline,t)}(e))}catch(t){n=CSS.percent(0),e.animationRange.start=`normal`,console.warn(`Exception when calculating start offset`,t)}try{r=CSS.percent(100*(1-function(e){if(!e.animationRange)return 0;let t=e.animationRange.end===`normal`?Tt(e.timeline):e.animationRange.end;return 1-st(e.timeline,t)}(e)))}catch(t){r=CSS.percent(100),e.animationRange.end=`normal`,console.warn(`Exception when calculating end offset`,t)}e.rangeDuration=r.value-n.value,e.startTime=H(e,U(e)>=0?n:r),e.holdTime=null,e.rangeDuration!==t&&xt(e)}function Ct(e){throw Error(`Unsupported timeline class`)}function wt(e){return e instanceof ViewTimeline?{rangeName:`cover`,offset:CSS.percent(0)}:e instanceof I?CSS.percent(0):void Ct()}function Tt(e){return e instanceof ViewTimeline?{rangeName:`cover`,offset:CSS.percent(100)}:e instanceof I?CSS.percent(100):void Ct()}function Et(e,t){if(!t)return{start:`normal`,end:`normal`};let n={start:wt(e),end:Tt(e)};if(e instanceof ViewTimeline){let e=Se(t),r=[],i=[];if(e.forEach(e=>{if(N.includes(e))r.push(e);else try{i.push(CSSNumericValue.parse(e))}catch{throw TypeError(`Could not parse range "${t}"`)}}),r.length>2||i.length>2||i.length==1)throw TypeError(`Invalid time range or unsupported time range format.`);return r.length&&(n.start.rangeName=r[0],n.end.rangeName=r.length>1?r[1]:r[0]),i.length>1&&(n.start.offset=i[0],n.end.offset=i[1]),n}if(e instanceof I){let e=t.split(` `);if(e.length!=2)throw TypeError(`Invalid time range or unsupported time range format.`);return n.start=CSSNumericValue.parse(e[0]),n.end=CSSNumericValue.parse(e[1]),n}Ct()}function Dt(e,t,n){if(!t||t===`normal`)return`normal`;if(e instanceof ViewTimeline){let e=`cover`,r=n===`start`?CSS.percent(0):CSS.percent(100);if(t instanceof Object)t.rangeName!==void 0&&(e=t.rangeName),t.offset!==void 0&&(r=t.offset);else{let n=Se(t);n.length===1?N.includes(n[0])?e=n[0]:r=T(CSSNumericValue.parse(n[0]),{}):n.length===2&&(e=n[0],r=T(CSSNumericValue.parse(n[1]),{}))}if(!N.includes(e))throw TypeError(`Invalid range name`);return{rangeName:e,offset:r}}if(e instanceof I)return CSSNumericValue.parse(t);Ct()}class X{constructor(e,t,n={}){let r=t instanceof I,i=e instanceof ft?e:new ft(e,r?void 0:t);St.set(i,this),J.set(this,{animation:i,timeline:r?t:void 0,playState:r?`idle`:null,readyPromise:null,finishedPromise:null,startTime:null,holdTime:null,rangeDuration:null,previousCurrentTime:null,autoAlignStartTime:!1,pendingPlaybackRate:null,pendingTask:null,specifiedTiming:null,normalizedTiming:null,effect:null,animationRange:r?Et(t,n[`animation-range`]):null,proxy:this})}get effect(){let e=J.get(this);return e.timeline?(e.effect||=function(e){let t=e.animation.effect,n=t.updateTiming,r={apply:function(n){t.getTiming();let r=n.apply(t);if(e.timeline){let t=e.duration??100;r.localTime=V(e,r.localTime),r.endTime=V(e,r.endTime),r.activeDuration=V(e,r.activeDuration);let n=K(e),i=r.iterations?(n-r.delay-r.endDelay)/r.iterations:0;r.duration=n?CSS.percent(t*i/n):CSS.percent(0),e.timeline.currentTime===void 0&&(r.localTime=null)}return r}},i={apply:function(r,i){if(e.specifiedTiming)return e.specifiedTiming;e.specifiedTiming=r.apply(t);let a,o=Object.assign({},e.specifiedTiming);if(o.duration===1/0)throw TypeError(`Effect duration cannot be Infinity when used with Scroll Timelines`);return(o.duration===null||o.duration===`auto`||e.autoDurationEffect)&&e.timeline&&(e.autoDurationEffect=!0,o.delay=0,o.endDelay=0,a=o.iterations?1e5:0,o.duration=o.iterations?(a-o.delay-o.endDelay)/o.iterations:0,o.duration<0&&(o.duration=0,o.endDelay=a-o.delay),n.apply(t,[o])),e.normalizedTiming=o,e.specifiedTiming}},a={apply:function(n,r,i){if(i&&i.length){if(e.timeline&&i[0]){let t=i[0],n=t.duration;if(n===1/0)throw TypeError(`Effect duration cannot be Infinity when used with Scroll Timelines`);if(t.iterations===1/0)throw TypeError(`Effect iterations cannot be Infinity when used with Scroll Timelines`);n!==void 0&&n!==`auto`&&(e.autoDurationEffect=null)}e.specifiedTiming&&n.apply(t,[e.specifiedTiming]),n.apply(t,i),xt(e)}}},o=new Proxy(t,{get:function(e,n){let r=e[n];return typeof r==`function`?r.bind(t):r},set:function(e,t,n){return e[t]=n,!0}});return o.getComputedTiming=new Proxy(t.getComputedTiming,r),o.getTiming=new Proxy(t.getTiming,i),o.updateTiming=new Proxy(t.updateTiming,a),o}(e),e.effect):e.animation.effect}set effect(e){let t=J.get(this);t.animation.effect=e,t.effect=null,t.autoDurationEffect=null}get timeline(){let e=J.get(this);return e.timeline||e.animation.timeline}set timeline(e){let t=J.get(this),n=this.timeline;if(n==e)return;let r=this.playState,i=this.currentTime,a,o=K(t);a=i===null?null:o===0?0:H(t,i)/o;let s=n instanceof I,c=e instanceof I,l=this.pending;if(s&&Ze(t.timeline,t.animation),c)return t.timeline=e,W(t),t.autoAlignStartTime=!0,t.startTime=null,t.holdTime=null,r!==`running`&&r!==`finished`||(t.readyPromise&&t.readyPromise.state!==`resolved`||B(t),t.pendingTask=`play`,Qe(t.timeline,t.animation,bt.bind(this))),r===`paused`&&a!==null&&(t.holdTime=a*o),l&&(t.readyPromise&&t.readyPromise.state!=`resolved`||B(t),t.pendingTask=r==`paused`?`pause`:`play`),t.startTime!==null&&(t.holdTime=null),void G(t,!1,!1);if(t.animation.timeline!=e)throw TypeError(`Unsupported timeline: `+e);if(Ze(t.timeline,t.animation),t.timeline=null,s)switch(i!==null&&(t.animation.currentTime=a*K(t)),r){case`paused`:t.animation.pause();break;case`running`:case`finished`:t.animation.play()}}get startTime(){let e=J.get(this);return e.timeline?V(e,e.startTime):e.animation.startTime}set startTime(e){let t=J.get(this);if(e=H(t,e),!t.timeline)return void(t.animation.startTime=e);t.autoAlignStartTime=!1,H(t,t.timeline.currentTime)==null&&t.startTime!=null&&(t.holdTime=null,q(t));let n=H(t,this.currentTime);W(t),t.startTime=e,t.startTime!==null&&t.animation.playbackRate!=0?t.holdTime=null:t.holdTime=n,t.pendingTask&&(t.pendingTask=null,t.readyPromise.resolve(this)),G(t,!0,!1),q(t)}get currentTime(){let e=J.get(this);return e.timeline?e.holdTime==null?V(e,_t(e)):V(e,e.holdTime):e.animation.currentTime}set currentTime(e){let t=J.get(this);t.timeline?(function(e,t){if(t==null&&e.currentTime!==null)throw TypeError();t=H(e,t),e.autoAlignStartTime=!1,e.holdTime!==null||e.startTime===null||e.timeline.phase===`inactive`||e.animation.playbackRate===0?e.holdTime=t:e.startTime=H(e,e.timeline.currentTime)-t/e.animation.playbackRate,e.timeline.phase===`inactive`&&(e.startTime=null),e.previousCurrentTime=null}(t,e),t.pendingTask==`pause`&&(t.holdTime=H(t,e),W(t),t.startTime=null,t.pendingTask=null,t.readyPromise.resolve(this)),G(t,!0,!1)):t.animation.currentTime=e}get playbackRate(){return J.get(this).animation.playbackRate}set playbackRate(e){let t=J.get(this);if(!t.timeline)return void(t.animation.playbackRate=e);t.pendingPlaybackRate=null;let n=this.currentTime;t.animation.playbackRate=e,n!==null&&(this.currentTime=n)}get playState(){let e=J.get(this);if(!e.timeline)return e.animation.playState;let t=H(e,this.currentTime);return t===null&&e.startTime===null&&e.pendingTask==null?`idle`:e.pendingTask==`pause`||e.startTime===null&&e.pendingTask!=`play`?`paused`:t!=null&&(e.animation.playbackRate>0&&t>=K(e)||e.animation.playbackRate<0&&t<=0)?`finished`:`running`}get rangeStart(){return J.get(this).animationRange?.start??`normal`}set rangeStart(e){let t=J.get(this);if(!t.timeline)return t.animation.rangeStart=e;t.timeline instanceof I&&(t.animationRange.start=Dt(t.timeline,e,`start`),Y(t),q(t))}get rangeEnd(){return J.get(this).animationRange?.end??`normal`}set rangeEnd(e){let t=J.get(this);if(!t.timeline)return t.animation.rangeEnd=e;t.timeline instanceof I&&(t.animationRange.end=Dt(t.timeline,e,`end`),Y(t),q(t))}get replaceState(){return J.get(this).animation.pending}get pending(){let e=J.get(this);return e.timeline?!!e.readyPromise&&e.readyPromise.state==`pending`:e.animation.pending}finish(){let e=J.get(this);if(!e.timeline)return void e.animation.finish();let t=U(e),n=K(e);if(t==0)throw new DOMException(`Cannot finish Animation with a playbackRate of 0.`,`InvalidStateError`);if(t>0&&n==1/0)throw new DOMException(`Cannot finish Animation with an infinite target effect end.`,`InvalidStateError`);W(e);let r=t<0?0:n;this.currentTime=V(e,r);let i=H(e,e.timeline.currentTime);e.startTime===null&&i!==null&&(e.startTime=i-r/e.animation.playbackRate),e.pendingTask==`pause`&&e.startTime!==null&&(e.holdTime=null,e.pendingTask=null,e.readyPromise.resolve(this)),e.pendingTask==`play`&&e.startTime!==null&&(e.pendingTask=null,e.readyPromise.resolve(this)),G(e,!0,!0)}play(){let e=J.get(this);e.timeline?yt(e):e.animation.play()}pause(){let e=J.get(this);e.timeline?this.playState!=`paused`&&(e.animation.currentTime===null&&(e.autoAlignStartTime=!0),e.pendingTask==`play`?e.pendingTask=null:e.readyPromise=null,e.readyPromise||B(e),e.pendingTask=`pause`,Qe(e.timeline,e.animation,bt.bind(e.proxy))):e.animation.pause()}reverse(){let e=J.get(this),t=U(e),n=H(e,this.currentTime),r=K(e)==1/0,i=t!=0&&(t<0||n>0||!r);if(!e.timeline||!i)return i&&(e.pendingPlaybackRate=-U(e)),void e.animation.reverse();if(e.timeline.phase==`inactive`)throw new DOMException(`Cannot reverse an animation with no active timeline`,`InvalidStateError`);this.updatePlaybackRate(-t),yt(e)}updatePlaybackRate(e){let t=J.get(this);if(t.pendingPlaybackRate=e,!t.timeline)return void t.animation.updatePlaybackRate(e);let n=this.playState;if(!t.readyPromise||t.readyPromise.state!=`pending`)switch(n){case`idle`:case`paused`:W(t);break;case`finished`:let n=H(t,t.timeline.currentTime),r=n===null?null:(n-t.startTime)*t.animation.playbackRate;t.startTime=e==0?n:n!=null&&r!=null?(n-r)/e:null,W(t),G(t,!1,!1),q(t);break;default:yt(t)}}persist(){J.get(this).animation.persist()}get id(){return J.get(this).animation.id}set id(e){J.get(this).animation.id=e}cancel(){let e=J.get(this);e.timeline?(this.playState!=`idle`&&(function(e){e.pendingTask&&(e.pendingTask=null,W(e),e.readyPromise.reject(pt()),B(e),e.readyPromise.resolve(e.proxy))}(e),e.finishedPromise&&e.finishedPromise.state==`pending`&&e.finishedPromise.reject(pt()),e.finishedPromise=new z,e.animation.cancel()),e.startTime=null,e.holdTime=null,Ze(e.timeline,e.animation)):e.animation.cancel()}get onfinish(){return J.get(this).animation.onfinish}set onfinish(e){J.get(this).animation.onfinish=e}get oncancel(){return J.get(this).animation.oncancel}set oncancel(e){J.get(this).animation.oncancel=e}get onremove(){return J.get(this).animation.onremove}set onremove(e){J.get(this).animation.onremove=e}get finished(){let e=J.get(this);return e.timeline?(e.finishedPromise||=new z,e.finishedPromise.promise):e.animation.finished}get ready(){let e=J.get(this);return e.timeline?(e.readyPromise||(e.readyPromise=new z,e.readyPromise.resolve(this)),e.readyPromise.promise):e.animation.ready}addEventListener(e,t,n){J.get(this).animation.addEventListener(e,t,n)}removeEventListener(e,t,n){J.get(this).animation.removeEventListener(e,t,n)}dispatchEvent(e){J.get(this).animation.dispatchEvent(e)}}function Ot(e,t){let n=t.timeline;n instanceof I&&delete t.timeline;let r=dt.apply(this,[e,t]),i=new X(r,n);return n instanceof I&&(r.pause(),J.get(i).animationRange={start:Dt(n,t.rangeStart,`start`),end:Dt(n,t.rangeEnd,`end`)},i.play()),i}function kt(e){for(let t=0;t<e.length;++t){let n=St.get(e[t]);n&&(e[t]=n)}return e}function At(e){return kt(ut.apply(this,[e]))}function jt(e){return kt(lt.apply(this,[e]))}let Z={IDENTIFIER:/[\w\\\@_-]+/g,WHITE_SPACE:/\s*/g,NUMBER:/^[0-9]+/,TIME:/^[0-9]+(s|ms)/,SCROLL_TIMELINE:/scroll-timeline\s*:([^;}]+)/,SCROLL_TIMELINE_NAME:/scroll-timeline-name\s*:([^;}]+)/,SCROLL_TIMELINE_AXIS:/scroll-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE:/view-timeline\s*:([^;}]+)/,VIEW_TIMELINE_NAME:/view-timeline-name\s*:([^;}]+)/,VIEW_TIMELINE_AXIS:/view-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE_INSET:/view-timeline-inset\s*:([^;}]+)/,ANIMATION_TIMELINE:/animation-timeline\s*:([^;}]+)/,ANIMATION_TIME_RANGE:/animation-range\s*:([^;}]+)/,ANIMATION_NAME:/animation-name\s*:([^;}]+)/,ANIMATION:/animation\s*:([^;}]+)/,ANONYMOUS_SCROLL_TIMELINE:/scroll\(([^)]*)\)/,ANONYMOUS_VIEW_TIMELINE:/view\(([^)]*)\)/},Q=[`block`,`inline`,`x`,`y`],Mt=[`nearest`,`root`,`self`],$=new class{constructor(){this.cssRulesWithTimelineName=[],this.nextAnonymousTimelineNameIndex=0,this.anonymousScrollTimelineOptions=new Map,this.anonymousViewTimelineOptions=new Map,this.sourceSelectorToScrollTimeline=[],this.subjectSelectorToViewTimeline=[],this.keyframeNamesSelectors=new Map}transpileStyleSheet(e,t,n){let r={sheetSrc:e,index:0,name:n};for(;r.index<r.sheetSrc.length&&(this.eatWhitespace(r),!(r.index>=r.sheetSrc.length));){if(this.lookAhead(`/*`,r)){for(;this.lookAhead(`/*`,r);)this.eatComment(r),this.eatWhitespace(r);continue}let e=this.parseQualifiedRule(r);e&&(t?this.parseKeyframesAndSaveNameMapping(e,r):this.handleScrollTimelineProps(e,r))}return this.replaceUrlFunctions(r.sheetSrc,n)}replaceUrlFunctions(e,t){if(!t)return e;let n=new URL(t).origin,r=t.lastIndexOf(`/`)>n.length?t.substring(0,t.lastIndexOf(`/`)):n;return e.replace(/url\((?:(['"])(?!https?:\/\/|data:|blob:|\/)|(?!['"]?(?:https?:\/\/|data:|blob:|\/)))(?:\.\/)?/gm,`url($1${r}/`).replace(/url\((['"])?\//gm,`url($1${n}/`)}getAnimationTimelineOptions(e,t){for(let n=this.cssRulesWithTimelineName.length-1;n>=0;n--){let r=this.cssRulesWithTimelineName[n];try{if(t.matches(r.selector)&&(!r[`animation-name`]||r[`animation-name`]==e))return{"animation-timeline":r[`animation-timeline`],"animation-range":r[`animation-range`]}}catch{}}return null}getAnonymousScrollTimelineOptions(e,t){let n=this.anonymousScrollTimelineOptions.get(e);return n?{anonymousSource:n.source,anonymousTarget:t,source:et(n.source??`nearest`,t),axis:n.axis?n.axis:`block`}:null}getScrollTimelineOptions(e,t){let n=this.getAnonymousScrollTimelineOptions(e,t);if(n)return n;for(let n=this.sourceSelectorToScrollTimeline.length-1;n>=0;n--){let r=this.sourceSelectorToScrollTimeline[n];if(r.name==e){let e=this.findPreviousSiblingOrAncestorMatchingSelector(t,r.selector);if(e)return{source:e,...r.axis?{axis:r.axis}:{}}}}return null}findPreviousSiblingOrAncestorMatchingSelector(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling||n.parentElement}return null}getAnonymousViewTimelineOptions(e,t){let n=this.anonymousViewTimelineOptions.get(e);return n?{subject:t,axis:n.axis?n.axis:`block`,inset:n.inset?n.inset:`auto`}:null}getViewTimelineOptions(e,t){let n=this.getAnonymousViewTimelineOptions(e,t);if(n)return n;for(let n=this.subjectSelectorToViewTimeline.length-1;n>=0;n--){let r=this.subjectSelectorToViewTimeline[n];if(r.name==e){let e=this.findPreviousSiblingOrAncestorMatchingSelector(t,r.selector);if(e)return{subject:e,axis:r.axis,inset:r.inset}}}return null}handleScrollTimelineProps(e,t){if(e.selector.includes(`@keyframes`))return;let n=e.block.contents.includes(`animation-name:`),r=e.block.contents.includes(`animation-timeline:`),i=e.block.contents.includes(`animation:`);if(this.saveSourceSelectorToScrollTimeline(e),this.saveSubjectSelectorToViewTimeline(e),!r&&!n&&!i)return;let a=[],o=[],s=!1;r&&(a=this.extractScrollTimelineNames(e.block.contents)),n&&(o=this.extractMatches(e.block.contents,Z.ANIMATION_NAME)),r&&n||(i&&this.extractMatches(e.block.contents,Z.ANIMATION).forEach(t=>{let n=this.extractAnimationName(t);n&&r&&o.push(n),r&&(this.hasDuration(t)||(this.hasAutoDuration(t)&&(e.block.contents=e.block.contents.replace(`auto`,` `)),e.block.contents=e.block.contents.replace(t,` 1s `+t),s=!0))}),s&&this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,t)),this.saveRelationInList(e,a,o)}saveSourceSelectorToScrollTimeline(e){let t=e.block.contents.includes(`scroll-timeline:`),n=e.block.contents.includes(`scroll-timeline-name:`),r=e.block.contents.includes(`scroll-timeline-axis:`);if(!t&&!n)return;let i=[];if(t){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE);for(let n of t){let t=this.split(n),r={selector:e.selector,name:``};t.length==1?r.name=t[0]:t.length==2&&(Q.includes(t[0])?(r.axis=t[0],r.name=t[1]):(r.axis=t[1],r.name=t[0])),i.push(r)}}if(n){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE_NAME);for(let n=0;n<t.length;n++)if(n<i.length)i[n].name=t[n];else{let r={selector:e.selector,name:t[n]};i.push(r)}}let a=[];if(r){let t=this.extractMatches(e.block.contents,Z.SCROLL_TIMELINE_AXIS);if(a=t.filter(e=>Q.includes(e)),a.length!=t.length)throw Error(`Invalid axis`)}for(let e=0;e<i.length;e++)a.length&&(i[e].axis=a[e%i.length]);this.sourceSelectorToScrollTimeline.push(...i)}saveSubjectSelectorToViewTimeline(e){let t=e.block.contents.includes(`view-timeline:`),n=e.block.contents.includes(`view-timeline-name:`),r=e.block.contents.includes(`view-timeline-axis:`),i=e.block.contents.includes(`view-timeline-inset:`);if(!t&&!n)return;let a=[];if(t){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE);for(let n of t){let t=this.split(n),r={selector:e.selector,name:``,inset:null};t.length==1?r.name=t[0]:t.length==2&&(Q.includes(t[0])?(r.axis=t[0],r.name=t[1]):(r.axis=t[1],r.name=t[0])),a.push(r)}}if(n){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_NAME);for(let n=0;n<t.length;n++)if(n<a.length)a[n].name=t[n];else{let r={selector:e.selector,name:t[n],inset:null};a.push(r)}}let o=[],s=[];if(i&&(o=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_INSET)),r){let t=this.extractMatches(e.block.contents,Z.VIEW_TIMELINE_AXIS);if(s=t.filter(e=>Q.includes(e)),s.length!=t.length)throw Error(`Invalid axis`)}for(let e=0;e<a.length;e++)o.length&&(a[e].inset=o[e%a.length]),s.length&&(a[e].axis=s[e%a.length]);this.subjectSelectorToViewTimeline.push(...a)}hasDuration(e){return e.split(` `).filter(e=>Z.TIME.exec(e)).length>=1}hasAutoDuration(e){return e.split(` `).filter(e=>e===`auto`).length>=1}saveRelationInList(e,t,n){let r=[];e.block.contents.includes(`animation-range:`)&&(r=this.extractMatches(e.block.contents,Z.ANIMATION_TIME_RANGE));let i=Math.max(t.length,n.length,r.length);for(let a=0;a<i;a++)this.cssRulesWithTimelineName.push({selector:e.selector,"animation-timeline":t[a%t.length],...n.length?{"animation-name":n[a%n.length]}:{},...r.length?{"animation-range":r[a%r.length]}:{}})}extractScrollTimelineNames(e){let t=Z.ANIMATION_TIMELINE.exec(e)[1].trim(),n=[];return t.split(`,`).map(e=>e.trim()).forEach(e=>{if(function(e){return(e.startsWith(`scroll`)||e.startsWith(`view`))&&e.includes(`(`)}(e)){let t=this.saveAnonymousTimelineName(e);n.push(t)}else n.push(e)}),n}saveAnonymousTimelineName(e){let t=`:t`+ this.nextAnonymousTimelineNameIndex++;return e.startsWith(`scroll(`)?this.anonymousScrollTimelineOptions.set(t,this.parseAnonymousScrollTimeline(e)):this.anonymousViewTimelineOptions.set(t,this.parseAnonymousViewTimeline(e)),t}parseAnonymousScrollTimeline(e){let t=Z.ANONYMOUS_SCROLL_TIMELINE.exec(e);if(!t)return null;let n=t[1],r={};return n.split(` `).forEach(e=>{Q.includes(e)?r.axis=e:Mt.includes(e)&&(r.source=e)}),r}parseAnonymousViewTimeline(e){let t=Z.ANONYMOUS_VIEW_TIMELINE.exec(e);if(!t)return null;let n=t[1],r={};return n.split(` `).forEach(e=>{Q.includes(e)?r.axis=e:r.inset=r.inset?`${r.inset} ${e}`:e}),r}extractAnimationName(e){return this.findMatchingEntryInContainer(e,this.keyframeNamesSelectors)}findMatchingEntryInContainer(e,t){let n=e.split(` `).filter(e=>t.has(e));return n?n[0]:null}parseIdentifier(e){Z.IDENTIFIER.lastIndex=e.index;let t=Z.IDENTIFIER.exec(e.sheetSrc);if(!t)throw this.parseError(e,`Expected an identifier`);return e.index+=t[0].length,t[0]}parseKeyframesAndSaveNameMapping(e,t){if(e.selector.startsWith(`@keyframes`)){let n=this.replaceKeyframesAndGetMapping(e,t);e.selector.split(` `).forEach((e,t)=>{t>0&&this.keyframeNamesSelectors.set(e,n)})}}replaceKeyframesAndGetMapping(e,t){function n(e){return N.some(t=>e.startsWith(t))}let r=e.block.contents,i=function(e){let t=0,n=-1,r=-1,i=[];for(let a=0;a<e.length;a++)e[a]==`{`?t++:e[a]==`}`&&t--,t==1&&e[a]!=`{`&&e[a]!=`}`&&n==-1&&(n=a),t==2&&e[a]==`{`&&(r=a,i.push({start:n,end:r}),n=r=-1);return i}(r);if(i.length==0)return new Map;let a=new Map,o=!1,s=[];s.push(r.substring(0,i[0].start));for(let e=0;e<i.length;e++){let t=r.substring(i[e].start,i[e].end),c=[];t.split(`,`).forEach(e=>{let t=e.split(` `).map(e=>e.trim()).filter(e=>e!=``).join(` `),r=a.size;a.set(r,t),c.push(`${r}%`),n(t)&&(o=!0)}),s.push(c.join(`,`)),e==i.length-1?s.push(r.substring(i[e].end)):s.push(r.substring(i[e].end,i[e+1].start))}return o?(e.block.contents=s.join(``),this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,t),a):new Map}parseQualifiedRule(e){let t=e.index,n=this.parseSelector(e).trim();if(n)return{selector:n,block:this.eatBlock(e),startIndex:t,endIndex:e.index}}removeEnclosingDoubleQuotes(e){let t=+(e[0]==`"`),n=e[e.length-1]==`"`?e.length-1:e.length;return e.substring(t,n)}assertString(e,t){if(e.sheetSrc.substr(e.index,t.length)!=t)throw this.parseError(e,`Did not find expected sequence ${t}`);e.index+=t.length}replacePart(e,t,n,r){if(r.sheetSrc=r.sheetSrc.slice(0,e)+n+r.sheetSrc.slice(t),r.index>=t){let i=r.index-t;r.index=e+n.length+i}}eatComment(e){this.assertString(e,`/*`),this.eatUntil(`*/`,e,!0),this.assertString(e,`*/`)}eatBlock(e){let t=e.index;this.assertString(e,`{`);let n=1;for(;n!=0;)this.lookAhead(`/*`,e)?this.eatComment(e):(e.sheetSrc[e.index]===`{`?n++:e.sheetSrc[e.index]===`}`&&n--,this.advance(e));let r=e.index;return{startIndex:t,endIndex:r,contents:e.sheetSrc.slice(t,r)}}advance(e){if(e.index++,e.index>e.sheetSrc.length)throw this.parseError(e,`Advanced beyond the end`)}parseError(e,t){return Error(`(${e.name?e.name:`<anonymous file>`}): ${t}`)}eatUntil(e,t,n=!1){let r=t.index;for(;!this.lookAhead(e,t);)this.advance(t);return n&&(t.sheetSrc=t.sheetSrc.slice(0,r)+` `.repeat(t.index-r)+t.sheetSrc.slice(t.index)),t.sheetSrc.slice(r,t.index)}parseSelector(e){let t=e.index;if(this.eatUntil(`{`,e),t===e.index)throw Error(`Empty selector`);return e.sheetSrc.slice(t,e.index)}eatWhitespace(e){Z.WHITE_SPACE.lastIndex=e.index;let t=Z.WHITE_SPACE.exec(e.sheetSrc);t&&(e.index+=t[0].length)}lookAhead(e,t){return t.sheetSrc.substr(t.index,e.length)==e}peek(e){return e.sheetSrc[e.index]}extractMatches(e,t,n=`,`){return t.exec(e)[1].trim().split(n).map(e=>e.trim())}split(e){return e.split(` `).map(e=>e.trim()).filter(e=>e!=``)}};function Nt(e,t,n,r,i,a){let o=Je(t),s=Ye(t,n);return ct(ot(e,o,s,r,i),a,ot(`cover`,o,s,r,i),n)}function Pt(e,t,n){let r=$.getAnimationTimelineOptions(t,n);if(!r)return null;let i=r[`animation-timeline`];if(!i)return null;let a=$.getScrollTimelineOptions(i,n)||$.getViewTimelineOptions(i,n);return a?(a.subject&&function(e,t){let n=at(t.subject),r=t.axis;function i(e,i){let a=null;for(let[o,s]of e)if(o==100*i.offset){if(s==`from`)a=0;else if(s==`to`)a=100;else{let e=s.split(` `);a=e.length==1?parseFloat(e[0]):100*Nt(e[0],n,t.subject,r,t.inset,CSS.percent(parseFloat(e[1])))}break}return a}let a=$.keyframeNamesSelectors.get(e.animationName);if(a&&a.size){let t=[];e.effect.getKeyframes().forEach(e=>{let n=i(a,e);n!==null&&n>=0&&n<=100&&(e.offset=n/100,t.push(e))});let n=t.sort((e,t)=>e.offset<t.offset?-1:+(e.affset>t.offset));e.effect.setKeyframes(n)}}(e,a),{timeline:a.source?new I(a):new R(a),animOptions:r}):null}function Ft(){if(CSS.supports(`animation-timeline: --works`))return!0;(function(){function e(e){if(e.innerHTML.trim().length===0||`aphrodite`in e.dataset)return;let t=$.transpileStyleSheet(e.innerHTML,!0);t=$.transpileStyleSheet(t,!1),e.innerHTML=t}function t(e){e.type!=`text/css`&&e.rel!=`stylesheet`||!e.href||new URL(e.href,document.baseURI).origin==location.origin&&fetch(e.getAttribute(`href`)).then(async t=>{let n=await t.text(),r=$.transpileStyleSheet(n,!0);if(r=$.transpileStyleSheet(r,!1,t.url),r!==n){let t=new Blob([r],{type:`text/css`}),n=URL.createObjectURL(t);e.setAttribute(`href`,n)}})}new MutationObserver(n=>{for(let r of n)for(let n of r.addedNodes)n instanceof HTMLStyleElement&&e(n),n instanceof HTMLLinkElement&&t(n)}).observe(document.documentElement,{childList:!0,subtree:!0}),document.querySelectorAll(`style`).forEach(t=>e(t)),document.querySelectorAll(`link`).forEach(e=>t(e))})();let e=CSS.supports;CSS.supports=t=>(t=t.replaceAll(/(animation-timeline|scroll-timeline(-(name|axis))?|view-timeline(-(name|axis|inset))?|timeline-scope)\s*:/g,`--supported-property:`),e(t)),window.addEventListener(`animationstart`,e=>{e.target.getAnimations().filter(t=>t.animationName===e.animationName).forEach(t=>{let n=Pt(t,t.animationName,e.target);if(n)if(!n.timeline||t instanceof X)t.timeline=n.timeline;else{let e=new X(t,n.timeline,n.animOptions);t.pause(),e.play()}})})}Ft()?console.debug(`Polyfill skipped because browser supports Scroll Timeline.`):function(){if(window.ViewTimeline!==void 0)return!0;if(!Reflect.defineProperty(window,`ScrollTimeline`,{value:I}))throw Error(`Error installing ScrollTimeline polyfill: could not attach ScrollTimeline to window`);if(!Reflect.defineProperty(window,`ViewTimeline`,{value:R}))throw Error(`Error installing ViewTimeline polyfill: could not attach ViewTimeline to window`);if(!Reflect.defineProperty(Element.prototype,`animate`,{value:Ot}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's animate to DOM Element`);if(!Reflect.defineProperty(window,`Animation`,{value:X}))throw Error(`Error installing Animation constructor.`);if(!Reflect.defineProperty(Element.prototype,`getAnimations`,{value:At}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to DOM Element`);if(!Reflect.defineProperty(document,`getAnimations`,{value:jt}))throw Error(`Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to document`)}()})();
@@ -0,0 +1,4 @@
1
+ var e=typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{},t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=!1;function a(){i=!0;for(var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,r=0,a=e.length;r<a;++r)t[r]=e[r],n[e.charCodeAt(r)]=r;n[45]=62,n[95]=63}function o(e){i||a();var t,o,s,c,l,u,d=e.length;if(d%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);l=e[d-2]===`=`?2:+(e[d-1]===`=`),u=new r(d*3/4-l),s=l>0?d-4:d;var f=0;for(t=0,o=0;t<s;t+=4,o+=3)c=n[e.charCodeAt(t)]<<18|n[e.charCodeAt(t+1)]<<12|n[e.charCodeAt(t+2)]<<6|n[e.charCodeAt(t+3)],u[f++]=c>>16&255,u[f++]=c>>8&255,u[f++]=c&255;return l===2?(c=n[e.charCodeAt(t)]<<2|n[e.charCodeAt(t+1)]>>4,u[f++]=c&255):l===1&&(c=n[e.charCodeAt(t)]<<10|n[e.charCodeAt(t+1)]<<4|n[e.charCodeAt(t+2)]>>2,u[f++]=c>>8&255,u[f++]=c&255),u}function s(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function c(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(s(r));return i.join(``)}function l(e){i||a();for(var n,r=e.length,o=r%3,s=``,l=[],u=16383,d=0,f=r-o;d<f;d+=u)l.push(c(e,d,d+u>f?f:d+u));return o===1?(n=e[r-1],s+=t[n>>2],s+=t[n<<4&63],s+=`==`):o===2&&(n=(e[r-2]<<8)+e[r-1],s+=t[n>>10],s+=t[n>>4&63],s+=t[n<<2&63],s+=`=`),l.push(s),l.join(``)}function u(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)}function d(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}var f={}.toString,p=Array.isArray||function(e){return f.call(e)==`[object Array]`},m=50;_.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT===void 0?!0:e.TYPED_ARRAY_SUPPORT,h();function h(){return _.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(e,t){if(h()<t)throw RangeError(`Invalid typed array length`);return _.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=_.prototype):(e===null&&(e=new _(t)),e.length=t),e}function _(e,t,n){if(!_.TYPED_ARRAY_SUPPORT&&!(this instanceof _))return new _(e,t,n);if(typeof e==`number`){if(typeof t==`string`)throw Error(`If encoding is specified then the first argument must be a string`);return x(this,e)}return v(this,e,t,n)}_.poolSize=8192,_._augment=function(e){return e.__proto__=_.prototype,e};function v(e,t,n,r){if(typeof t==`number`)throw TypeError(`"value" argument must not be a number`);return typeof ArrayBuffer<`u`&&t instanceof ArrayBuffer?w(e,t,n,r):typeof t==`string`?S(e,t,n):T(e,t)}_.from=function(e,t,n){return v(null,e,t,n)},_.TYPED_ARRAY_SUPPORT&&(_.prototype.__proto__=Uint8Array.prototype,_.__proto__=Uint8Array,typeof Symbol<`u`&&Symbol.species&&_[Symbol.species]);function y(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be a number`);if(e<0)throw RangeError(`"size" argument must not be negative`)}function b(e,t,n,r){return y(t),t<=0||n===void 0?g(e,t):typeof r==`string`?g(e,t).fill(n,r):g(e,t).fill(n)}_.alloc=function(e,t,n){return b(null,e,t,n)};function x(e,t){if(y(t),e=g(e,t<0?0:E(t)|0),!_.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}_.allocUnsafe=function(e){return x(null,e)},_.allocUnsafeSlow=function(e){return x(null,e)};function S(e,t,n){if((typeof n!=`string`||n===``)&&(n=`utf8`),!_.isEncoding(n))throw TypeError(`"encoding" must be a valid string encoding`);var r=O(t,n)|0;e=g(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function C(e,t){var n=t.length<0?0:E(t.length)|0;e=g(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function w(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError(`'offset' is out of bounds`);if(t.byteLength<n+(r||0))throw RangeError(`'length' is out of bounds`);return t=n===void 0&&r===void 0?new Uint8Array(t):r===void 0?new Uint8Array(t,n):new Uint8Array(t,n,r),_.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=_.prototype):e=C(e,t),e}function T(e,t){if(D(t)){var n=E(t.length)|0;return e=g(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer<`u`&&t.buffer instanceof ArrayBuffer||`length`in t)return typeof t.length!=`number`||_e(t.length)?g(e,0):C(e,t);if(t.type===`Buffer`&&p(t.data))return C(e,t.data)}throw TypeError(`First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.`)}function E(e){if(e>=h())throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+h().toString(16)+` bytes`);return e|0}_.isBuffer=K;function D(e){return!!(e!=null&&e._isBuffer)}_.compare=function(e,t){if(!D(e)||!D(t))throw TypeError(`Arguments must be Buffers`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},_.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},_.concat=function(e,t){if(!p(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return _.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=_.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!D(a))throw TypeError(`"list" argument must be an Array of Buffers`);a.copy(r,i),i+=a.length}return r};function O(e,t){if(D(e))return e.length;if(typeof ArrayBuffer<`u`&&typeof ArrayBuffer.isView==`function`&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!=`string`&&(e=``+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:case void 0:return U(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return W(e).length;default:if(r)return U(e).length;t=(``+t).toLowerCase(),r=!0}}_.byteLength=O;function ee(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return le(this,t,n);case`utf8`:case`utf-8`:return P(this,t,n);case`ascii`:return se(this,t,n);case`latin1`:case`binary`:return ce(this,t,n);case`base64`:return ae(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ue(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}_.prototype._isBuffer=!0;function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}_.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)k(this,t,t+1);return this},_.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},_.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},_.prototype.toString=function(){var e=this.length|0;return e===0?``:arguments.length===0?P(this,0,e):ee.apply(this,arguments)},_.prototype.equals=function(e){if(!D(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:_.compare(this,e)===0},_.prototype.inspect=function(){var e=``,t=m;return this.length>0&&(e=this.toString(`hex`,0,t).match(/.{2}/g).join(` `),this.length>t&&(e+=` ... `)),`<Buffer `+e+`>`},_.prototype.compare=function(e,t,n,r,i){if(!D(e))throw TypeError(`Argument must be a Buffer`);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),l=e.slice(t,n),u=0;u<s;++u)if(c[u]!==l[u]){a=c[u],o=l[u];break}return a<o?-1:+(o<a)};function A(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=_.from(t,r)),D(t))return t.length===0?-1:j(e,t,n,r,i);if(typeof t==`number`)return t&=255,_.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):j(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function j(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}_.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},_.prototype.indexOf=function(e,t,n){return A(this,e,t,n,!0)},_.prototype.lastIndexOf=function(e,t,n){return A(this,e,t,n,!1)};function M(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;if(a%2!=0)throw TypeError(`Invalid hex string`);r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function te(e,t,n,r){return G(U(t,e.length-n),e,n,r)}function N(e,t,n,r){return G(he(t),e,n,r)}function ne(e,t,n,r){return N(e,t,n,r)}function re(e,t,n,r){return G(W(t),e,n,r)}function ie(e,t,n,r){return G(ge(t,e.length-n),e,n,r)}_.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t|=0,isFinite(n)?(n|=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return M(this,e,t,n);case`utf8`:case`utf-8`:return te(this,e,t,n);case`ascii`:return N(this,e,t,n);case`latin1`:case`binary`:return ne(this,e,t,n);case`base64`:return re(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ie(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},_.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ae(e,t,n){return t===0&&n===e.length?l(e):l(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return oe(r)}var F=4096;function oe(e){var t=e.length;if(t<=F)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=F));return n}function se(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function ce(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function le(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=me(e[a]);return i}function ue(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}_.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r;if(_.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=_.prototype;else{var i=t-e;r=new _(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}_.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},_.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},_.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},_.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},_.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},_.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},_.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},_.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},_.prototype.readInt8=function(e,t){return t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},_.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},_.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},_.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),u(this,e,!0,23,4)},_.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),u(this,e,!1,23,4)},_.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),u(this,e,!0,52,8)},_.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),u(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!D(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}_.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},_.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},_.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),_.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}_.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):R(this,e,t,!0),t+2},_.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):R(this,e,t,!1),t+2};function z(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>(r?i:3-i)*8&255}_.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):z(this,e,t,!0),t+4},_.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):z(this,e,t,!1),t+4},_.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},_.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},_.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),_.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1},_.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):R(this,e,t,!0),t+2},_.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):R(this,e,t,!1),t+2},_.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),_.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},_.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):z(this,e,t,!1),t+4};function B(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function V(e,t,n,r,i){return i||B(e,t,n,4),d(e,t,n,r,23,4),n+4}_.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},_.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)};function H(e,t,n,r,i){return i||B(e,t,n,8),d(e,t,n,r,52,8),n+8}_.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},_.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},_.prototype.copy=function(e,t,n,r){if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`sourceStart out of bounds`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n,a;if(this===e&&n<t&&t<r)for(a=i-1;a>=0;--a)e[a+t]=this[a+n];else if(i<1e3||!_.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},_.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}if(r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!_.isEncoding(r))throw TypeError(`Unknown encoding: `+r)}else typeof e==`number`&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=D(e)?e:U(new _(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var de=/[^+\/0-9A-Za-z-_]/g;function fe(e){if(e=pe(e).replace(de,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function pe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function me(e){return e<16?`0`+e.toString(16):e.toString(16)}function U(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function he(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ge(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function W(e){return o(fe(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function _e(e){return e!==e}function K(e){return e!=null&&(!!e._isBuffer||q(e)||ve(e))}function q(e){return!!e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function ve(e){return typeof e.readFloatLE==`function`&&typeof e.slice==`function`&&q(e.slice(0,0))}var J=class e extends Error{constructor(t,n,r,...i){Array.isArray(n)&&(n=n.join(` `).trim()),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,e),this.code=t;for(let e of i)for(let t in e){let n=e[t];this[t]=K(n)?n.toString(r.encoding):n==null?n:JSON.parse(JSON.stringify(n))}}},ye=function(e){return typeof e==`object`&&!!e&&!Array.isArray(e)},Y=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r==null||r===!1)t[n]={disabled:!0};else if(typeof r==`string`||typeof r==`number`)t[n]={name:`${r}`};else if(ye(r)){if(typeof r.name!=`string`)throw new J(`CSV_OPTION_COLUMNS_MISSING_NAME`,[`Option columns missing name:`,`property "name" is required at position ${n}`,`when column is an object literal`]);t[n]=r}else throw new J(`CSV_INVALID_COLUMN_DEFINITION`,[`Invalid column definition:`,`expect a string or a literal object,`,`got ${JSON.stringify(r)} at position ${n}`])}return t},X=class{constructor(e=100){this.size=e,this.length=0,this.buf=_.allocUnsafe(e)}prepend(e){if(K(e)){let t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error(`INVALID_BUFFER_STATE`);let n=this.buf;this.buf=_.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let t=this.length++;t===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,t)}}append(e){let t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return _.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size*=2;let t=_.allocUnsafe(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString(`utf8`)}reset(){this.length=0}},be=12,xe=13,Se=10,Ce=32,we=9,Te=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:e.from_line===1,escaping:!1,escapeIsQuote:K(e.escape)&&K(e.quote)&&_.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new X(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(e.comment===null?0:e.comment.length,...e.delimiter.map(e=>e.length),e.quote===null?0:e.quote.length),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new X(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map(e=>e.length)),trimChars:[_.from(` `,e.encoding)[0],_.from(` `,e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[_.from(_.from([xe],`utf8`).toString(),e.encoding),_.from(_.from([Se],`utf8`).toString(),e.encoding),_.from(_.from([be],`utf8`).toString(),e.encoding),_.from(_.from([Ce],`utf8`).toString(),e.encoding),_.from(_.from([we],`utf8`).toString(),e.encoding)]}},Ee=function(e){return e.replace(/([A-Z])/g,function(e,t){return`_`+t.toLowerCase()})},Z=function(e){let t={};for(let n in e)t[Ee(n)]=e[n];if(t.encoding===void 0||t.encoding===!0)t.encoding=`utf8`;else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!=`string`&&t.encoding!==null)throw new J(`CSV_INVALID_OPTION_ENCODING`,[`Invalid option encoding:`,`encoding must be a string or null to return a buffer,`,`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new J(`CSV_INVALID_OPTION_BOM`,[`Invalid option bom:`,`bom must be true,`,`got ${JSON.stringify(t.bom)}`],t);if(t.cast_function=null,t.cast===void 0||t.cast===null||t.cast===!1||t.cast===``)t.cast=void 0;else if(typeof t.cast==`function`)t.cast_function=t.cast,t.cast=!0;else if(t.cast!==!0)throw new J(`CSV_INVALID_OPTION_CAST`,[`Invalid option cast:`,`cast must be true or a function,`,`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date===``)t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(e){let t=Date.parse(e);return isNaN(t)?e:new Date(t)};else if(typeof t.cast_date!=`function`)throw new J(`CSV_INVALID_OPTION_CAST_DATE`,[`Invalid option cast_date:`,`cast_date must be true or a function,`,`got ${JSON.stringify(t.cast_date)}`],t);if(t.cast_first_line_to_header=void 0,t.columns===!0)t.cast_first_line_to_header=void 0;else if(typeof t.columns==`function`)t.cast_first_line_to_header=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=Y(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new J(`CSV_INVALID_OPTION_COLUMNS`,[`Invalid option columns:`,`expect an array, a function or true,`,`got ${JSON.stringify(t.columns)}`],t);if(t.group_columns_by_name===void 0||t.group_columns_by_name===null||t.group_columns_by_name===!1)t.group_columns_by_name=!1;else if(t.group_columns_by_name!==!0)throw new J(`CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME`,[`Invalid option group_columns_by_name:`,`expect an boolean,`,`got ${JSON.stringify(t.group_columns_by_name)}`],t);else if(t.columns===!1)throw new J(`CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME`,[`Invalid option group_columns_by_name:`,"the `columns` mode must be activated."],t);if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment===``)t.comment=null;else if(typeof t.comment==`string`&&(t.comment=_.from(t.comment,t.encoding)),!K(t.comment))throw new J(`CSV_INVALID_OPTION_COMMENT`,[`Invalid option comment:`,`comment must be a buffer or a string,`,`got ${JSON.stringify(t.comment)}`],t);if(t.comment_no_infix===void 0||t.comment_no_infix===null||t.comment_no_infix===!1)t.comment_no_infix=!1;else if(t.comment_no_infix!==!0)throw new J(`CSV_INVALID_OPTION_COMMENT`,[`Invalid option comment_no_infix:`,`value must be a boolean,`,`got ${JSON.stringify(t.comment_no_infix)}`],t);let n=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new J(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${n}`],t);if(t.delimiter=t.delimiter.map(function(e){if(e==null||e===!1)return _.from(`,`,t.encoding);if(typeof e==`string`&&(e=_.from(e,t.encoding)),!K(e)||e.length===0)throw new J(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${n}`],t);return e}),t.escape===void 0||t.escape===!0?t.escape=_.from(`"`,t.encoding):typeof t.escape==`string`?t.escape=_.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!K(t.escape))throw Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from==`string`&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line==`string`&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters==`number`)t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!=`boolean`)throw new J(`CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS`,["Invalid option `ignore_last_delimiters`:",`the value must be a boolean value or an integer,`,`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new J(`CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS`,["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size==`string`&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(K(t.objname)){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty buffer`);t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname==`string`){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty string`)}else if(typeof t.objname!=`number`)throw Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.objname!==void 0){if(typeof t.objname==`number`){if(t.columns!==!1)throw Error(`Invalid Option: objname index cannot be combined with columns or be defined as a field`)}else if(t.columns===!1)throw Error(`Invalid Option: objname field must be combined with columns or be defined as an index`)}if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!=`function`)throw new J(`CSV_INVALID_OPTION_ON_RECORD`,["Invalid option `on_record`:",`expect a function,`,`got ${JSON.stringify(t.on_record)}`],t);if(t.on_skip!==void 0&&t.on_skip!==null&&typeof t.on_skip!=`function`)throw Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`);if(t.quote===null||t.quote===!1||t.quote===``)t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=_.from(`"`,t.encoding):typeof t.quote==`string`&&(t.quote=_.from(t.quote,t.encoding)),!K(t.quote))throw Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter===void 0)t.record_delimiter=[];else if(typeof t.record_delimiter==`string`||K(t.record_delimiter)){if(t.record_delimiter.length===0)throw new J(`CSV_INVALID_OPTION_RECORD_DELIMITER`,["Invalid option `record_delimiter`:",`value must be a non empty string or buffer,`,`got ${JSON.stringify(t.record_delimiter)}`],t);t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter))throw new J(`CSV_INVALID_OPTION_RECORD_DELIMITER`,["Invalid option `record_delimiter`:",`value must be a string, a buffer or array of string|buffer,`,`got ${JSON.stringify(t.record_delimiter)}`],t);if(t.record_delimiter=t.record_delimiter.map(function(e,n){if(typeof e!=`string`&&!K(e))throw new J(`CSV_INVALID_OPTION_RECORD_DELIMITER`,["Invalid option `record_delimiter`:",`value must be a string, a buffer or array of string|buffer`,`at index ${n},`,`got ${JSON.stringify(e)}`],t);if(e.length===0)throw new J(`CSV_INVALID_OPTION_RECORD_DELIMITER`,["Invalid option `record_delimiter`:",`value must be a non empty string or buffer`,`at index ${n},`,`got ${JSON.stringify(e)}`],t);return typeof e==`string`&&(e=_.from(e,t.encoding)),e}),typeof t.relax_column_count!=`boolean`)if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!=`boolean`)if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!=`boolean`)if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.relax_quotes!=`boolean`)if(t.relax_quotes===void 0||t.relax_quotes===null)t.relax_quotes=!1;else throw Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`);if(typeof t.skip_empty_lines!=`boolean`)if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_records_with_empty_values!=`boolean`)if(t.skip_records_with_empty_values===void 0||t.skip_records_with_empty_values===null)t.skip_records_with_empty_values=!1;else throw Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`);if(typeof t.skip_records_with_error!=`boolean`)if(t.skip_records_with_error===void 0||t.skip_records_with_error===null)t.skip_records_with_error=!1;else throw Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(t.to!==-1)if(typeof t.to==`string`&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(t.to_line!==-1)if(typeof t.to_line==`string`&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);return t},Q=function(e){return e.every(e=>e==null||e.toString&&e.toString().trim()===``)},De=13,Oe=10,$={utf8:_.from([239,187,191]),utf16le:_.from([255,254])},ke=function(e={}){let t={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},n=Z(e);return{info:t,original_options:e,options:n,state:Te(n),__needMoreData:function(e,t,n){if(n)return!1;let{encoding:r,escape:i,quote:a}=this.options,{quoting:o,needMoreDataSize:s,recordDelimiterMaxLength:c}=this.state;return t-e-1<Math.max(s,c===0?_.from(`\r
2
+ `,r).length:c,o?(i===null?0:i.length)+a.length:0,o?a.length+c:0)},parse:function(e,t,n,r){let{bom:i,comment_no_infix:a,encoding:o,from_line:s,ltrim:c,max_record_size:l,raw:u,relax_quotes:d,rtrim:f,skip_empty_lines:p,to:m,to_line:h}=this.options,{comment:g,escape:v,quote:y,record_delimiter:b}=this.options,{bomSkipped:x,previousBuf:S,rawBuffer:C,escapeIsQuote:w}=this.state,T;if(S===void 0)if(e===void 0){r();return}else T=e;else T=S!==void 0&&e===void 0?S:_.concat([S,e]);if(x===!1)if(i===!1)this.state.bomSkipped=!0;else if(T.length<3){if(t===!1){this.state.previousBuf=T;return}}else{for(let e in $)if($[e].compare(T,0,$[e].length)===0){let t=$[e].length;this.state.bufBytesStart+=t,T=T.slice(t);let n=Z({...this.original_options,encoding:e});for(let e in n)this.options[e]=n[e];({comment:g,escape:v,quote:y}=this.options);break}this.state.bomSkipped=!0}let E=T.length,D;for(D=0;D<E&&!this.__needMoreData(D,E,t);D++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),h!==-1&&this.info.lines>h){this.state.stop=!0,r();return}this.state.quoting===!1&&b.length===0&&this.__autoDiscoverRecordDelimiter(T,D)&&(b=this.options.record_delimiter);let e=T[D];if(u===!0&&C.append(e),(e===De||e===Oe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(v!==null&&this.state.quoting===!0&&this.__isEscape(T,D,e)&&D+v.length<E)if(w){if(this.__isQuote(T,D+v.length)){this.state.escaping=!0,D+=v.length-1;continue}}else{this.state.escaping=!0,D+=v.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(T,D))if(this.state.quoting===!0){let t=T[D+y.length],n=f&&this.__isCharTrimable(T,D+y.length),r=g!==null&&this.__compareBytes(g,T,D+y.length,t),i=this.__isDelimiter(T,D+y.length,t),a=b.length===0?this.__autoDiscoverRecordDelimiter(T,D+y.length):this.__isRecordDelimiter(t,T,D+y.length);if(v!==null&&this.__isEscape(T,D,e)&&this.__isQuote(T,D+v.length))D+=v.length-1;else if(!t||i||a||r||n){this.state.quoting=!1,this.state.wasQuoting=!0,D+=y.length-1;continue}else if(d===!1){let e=this.__error(new J(`CSV_INVALID_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,`instead of delimiter, record delimiter, trimable character`,`(if activated) or comment`],this.options,this.__infoField()));if(e!==void 0)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(y),D+=y.length-1}else if(this.state.field.length!==0){if(d===!1){let e=this.__infoField(),t=Object.keys($).map(e=>$[e].equals(this.state.field.toString())?e:!1).filter(Boolean)[0],n=this.__error(new J(`INVALID_OPENING_QUOTE`,[`Invalid Opening Quote:`,`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(o))}`,t?`(${t} bom)`:void 0],this.options,e,{field:this.state.field}));if(n!==void 0)return n}}else{this.state.quoting=!0,D+=y.length-1;continue}if(this.state.quoting===!1){let t=this.__isRecordDelimiter(e,T,D);if(t!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+ +(this.state.wasRowDelimiter===!0)>=s){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),D+=t-1;continue}if(p===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,D+=t-1;continue}this.info.bytes=this.state.bufBytesStart+D;let e=this.__onField();if(e!==void 0)return e;this.info.bytes=this.state.bufBytesStart+D+t;let i=this.__onRecord(n);if(i!==void 0)return i;if(m!==-1&&this.info.records>=m){this.state.stop=!0,r();return}}this.state.commenting=!1,D+=t-1;continue}if(this.state.commenting)continue;if(g!==null&&(a===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(g,T,D,e)!==0){this.state.commenting=!0;continue}let i=this.__isDelimiter(T,D,e);if(i!==0){this.info.bytes=this.state.bufBytesStart+D;let e=this.__onField();if(e!==void 0)return e;D+=i-1;continue}}}if(this.state.commenting===!1&&l!==0&&this.state.record_length+this.state.field.length>l)return this.__error(new J(`CSV_MAX_RECORD_SIZE`,[`Max Record Size:`,`record exceed the maximum number of tolerated bytes`,`of ${l}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let t=c===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(T,D),i=f===!1||this.state.wasQuoting===!1;if(t===!0&&i===!0)this.state.field.append(e);else if(f===!0&&!this.__isCharTrimable(T,D))return this.__error(new J(`CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`found non trimable byte after quote`,`at line ${this.info.lines}`],this.options,this.__infoField()));else{t===!1&&(D+=this.__isCharTrimable(T,D)-1);continue}}if(t===!0)if(this.state.quoting===!0){let e=this.__error(new J(`CSV_QUOTE_NOT_CLOSED`,[`Quote Not Closed:`,`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+D;let e=this.__onField();if(e!==void 0)return e;let t=this.__onRecord(n);if(t!==void 0)return t}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=D,this.state.previousBuf=T.slice(D);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(e){let{columns:t,group_columns_by_name:n,encoding:r,info:i,from:a,relax_column_count:o,relax_column_count_less:s,relax_column_count_more:c,raw:l,skip_records_with_empty_values:u}=this.options,{enabled:d,record:f}=this.state;if(d===!1)return this.__resetRecord();let p=f.length;if(t===!0){if(u===!0&&Q(f)){this.__resetRecord();return}return this.__firstLineToColumns(f)}if(t===!1&&this.info.records===0&&(this.state.expectedRecordLength=p),p!==this.state.expectedRecordLength){let e=t===!1?new J(`CSV_RECORD_INCONSISTENT_FIELDS_LENGTH`,[`Invalid Record Length:`,`expect ${this.state.expectedRecordLength},`,`got ${p} on line ${this.info.lines}`],this.options,this.__infoField(),{record:f}):new J(`CSV_RECORD_INCONSISTENT_COLUMNS`,[`Invalid Record Length:`,`columns length is ${t.length},`,`got ${p} on line ${this.info.lines}`],this.options,this.__infoField(),{record:f});if(o===!0||s===!0&&p<this.state.expectedRecordLength||c===!0&&p>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=e;else{let t=this.__error(e);if(t)return t}}if(u===!0&&Q(f)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,a===1||this.info.records>=a){let{objname:a}=this.options;if(t!==!1){let o={};for(let e=0,r=f.length;e<r;e++)t[e]===void 0||t[e].disabled||(n===!0&&o[t[e].name]!==void 0?Array.isArray(o[t[e].name])?o[t[e].name]=o[t[e].name].concat(f[e]):o[t[e].name]=[o[t[e].name],f[e]]:o[t[e].name]=f[e]);if(l===!0||i===!0){let t=Object.assign({record:o},l===!0?{raw:this.state.rawBuffer.toString(r)}:{},i===!0?{info:this.__infoRecord()}:{}),n=this.__push(a===void 0?t:[o[a],t],e);if(n)return n}else{let t=this.__push(a===void 0?o:[o[a],o],e);if(t)return t}}else if(l===!0||i===!0){let t=Object.assign({record:f},l===!0?{raw:this.state.rawBuffer.toString(r)}:{},i===!0?{info:this.__infoRecord()}:{}),n=this.__push(a===void 0?t:[f[a],t],e);if(n)return n}else{let t=this.__push(a===void 0?f:[f[a],f],e);if(t)return t}}this.__resetRecord()},__firstLineToColumns:function(e){let{firstLineToHeaders:t}=this.state;try{let n=t===void 0?e:t.call(null,e);if(!Array.isArray(n))return this.__error(new J(`CSV_INVALID_COLUMN_MAPPING`,[`Invalid Column Mapping:`,`expect an array from column function,`,`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}));let r=Y(n);this.state.expectedRecordLength=r.length,this.options.columns=r,this.__resetRecord();return}catch(e){return e}},__resetRecord:function(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){let{cast:e,encoding:t,rtrim:n,max_record_size:r}=this.options,{enabled:i,wasQuoting:a}=this.state;if(i===!1)return this.__resetField();let o=this.state.field.toString(t);if(n===!0&&a===!1&&(o=o.trimRight()),e===!0){let[e,t]=this.__cast(o);if(e!==void 0)return e;o=t}this.state.record.push(o),r!==0&&typeof o==`string`&&(this.state.record_length+=o.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(e,t){let{on_record:n}=this.options;if(n!==void 0){let t=this.__infoRecord();try{e=n.call(null,e,t)}catch(e){return e}if(e==null)return}this.info.bytes_records+=this.info.bytes,t(e)},__cast:function(e){let{columns:t,relax_column_count:n}=this.options;if(Array.isArray(t)===!0&&n&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let t=this.__infoField();return[void 0,this.state.castField.call(null,e,t)]}catch(e){return[e]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(this.options.cast_date!==!1){let t=this.__infoField();return[void 0,this.options.cast_date.call(null,e,t)]}return[void 0,e]},__isCharTrimable:function(e,t){return((e,t)=>{let{timchars:n}=this.state;loop1:for(let r=0;r<n.length;r++){let i=n[r];for(let n=0;n<i.length;n++)if(i[n]!==e[t+n])continue loop1;return i.length}return 0})(e,t)},__isFloat:function(e){return e-parseFloat(e)+1>=0},__compareBytes:function(e,t,n,r){if(e[0]!==r)return 0;let i=e.length;for(let r=1;r<i;r++)if(e[r]!==t[n+r])return 0;return i},__isDelimiter:function(e,t,n){let{delimiter:r,ignore_last_delimiters:i}=this.options;if(i===!0&&this.state.record.length===this.options.columns.length-1||i!==!1&&typeof i==`number`&&this.state.record.length===i-1)return 0;loop1:for(let i=0;i<r.length;i++){let a=r[i];if(a[0]===n){for(let n=1;n<a.length;n++)if(a[n]!==e[t+n])continue loop1;return a.length}}return 0},__isRecordDelimiter:function(e,t,n){let{record_delimiter:r}=this.options,i=r.length;loop1:for(let a=0;a<i;a++){let i=r[a],o=i.length;if(i[0]===e){for(let e=1;e<o;e++)if(i[e]!==t[n+e])continue loop1;return i.length}}return 0},__isEscape:function(e,t,n){let{escape:r}=this.options;if(r===null)return!1;let i=r.length;if(r[0]===n){for(let n=0;n<i;n++)if(r[n]!==e[t+n])return!1;return!0}return!1},__isQuote:function(e,t){let{quote:n}=this.options;if(n===null)return!1;let r=n.length;for(let i=0;i<r;i++)if(n[i]!==e[t+i])return!1;return!0},__autoDiscoverRecordDelimiter:function(e,t){let{encoding:n}=this.options,r=[_.from(`\r
3
+ `,n),_.from(`
4
+ `,n),_.from(`\r`,n)];loop:for(let n=0;n<r.length;n++){let i=r[n].length;for(let a=0;a<i;a++)if(r[n][a]!==e[t+a])continue loop;return this.options.record_delimiter.push(r[n]),this.state.recordDelimiterMaxLength=r[n].length,r[n].length}return 0},__error:function(e){let{encoding:t,raw:n,skip_records_with_error:r}=this.options,i=typeof e==`string`?Error(e):e;if(r){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(i,n?this.state.rawBuffer.toString(t):void 0)}catch(e){return e}return}else return i},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:e,raw:t,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:e===!0,index:this.state.record.length,raw:t?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:e}=this.options,t=Array.isArray(e),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:t===!0?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}},Ae=function(e,t={}){typeof e==`string`&&(e=_.from(e));let n=t&&t.objname?{}:[],r=ke(t),i=r.parse(e,!0,e=>{r.options.objname===void 0?n.push(e):n[e[0]]=e[1]},()=>{});if(i!==void 0)throw i;return n};export{Ae as parse};