@mycadet/web 0.12.7 → 0.12.9

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 (421) hide show
  1. package/dist/assets/{a2a-invite-Dy_-_EJu.js → a2a-invite-QwLkdzoC.js} +1 -1
  2. package/dist/assets/{about-page-BIJfjthi.js → about-page-B_JVAkzb.js} +1 -1
  3. package/dist/assets/{account-page-BGhpxkdO.js → account-page-CogcrHfl.js} +1 -1
  4. package/dist/assets/{account-shell-C16ZEkR-.js → account-shell-CaNt5YTy.js} +1 -1
  5. package/dist/assets/{acp-run-detail-panel-LJIVIPVX.js → acp-run-detail-panel-CP2w6xWq.js} +3 -3
  6. package/dist/assets/activation-list-route-DhFybN08.js +1 -0
  7. package/dist/assets/{activity-redirect-page-DgjUj4JW.js → activity-redirect-page-CXQh1ANc.js} +1 -1
  8. package/dist/assets/{activity-steps-panel-BJsU5yRo.js → activity-steps-panel-B_e7fo5d.js} +1 -1
  9. package/dist/assets/{add-credits-modal-VxmEbPrZ.js → add-credits-modal-9QAiKkzN.js} +1 -1
  10. package/dist/assets/add-credits-modal-Ix6EeRaW.js +1 -0
  11. package/dist/assets/ai-page-B2OQRNjs.js +1 -0
  12. package/dist/assets/all-chats-page-route-DyAsat0t.js +1 -0
  13. package/dist/assets/{android-billing-handoff-C7UYsPiM.js → android-billing-handoff-CNDHANI3.js} +1 -1
  14. package/dist/assets/{animated-stat-square-DMsQUXPs.js → animated-stat-square-dwxhuRgk.js} +1 -1
  15. package/dist/assets/{api-key-screen-C6g7k9c2.js → api-key-screen-sXJo9h2L.js} +1 -1
  16. package/dist/assets/app-BNxKtvfM.js +401 -0
  17. package/dist/assets/{app-info-CLuEVQl-.js → app-info-BWhtZVwd.js} +1 -1
  18. package/dist/assets/archive-redirect-page-8VfIdYbY.js +1 -0
  19. package/dist/assets/assistant-handle-modal-BEF0aNRE.js +1 -0
  20. package/dist/assets/assistant-inbox-page-route-C2cqOdmg.js +8 -0
  21. package/dist/assets/{assistant-status-panel-C8N9hzMO.js → assistant-status-panel-DCxA9DDF.js} +1 -1
  22. package/dist/assets/auth-store-CDCjQtV1.js +1 -0
  23. package/dist/assets/{auth-welcome-screen-B8aQmTIq.js → auth-welcome-screen-EpKCTMv_.js} +1 -1
  24. package/dist/assets/avatar-bundled-components-DjgVURNE.js +1 -0
  25. package/dist/assets/avatar-random-BnJhjNyL.js +1 -0
  26. package/dist/assets/{await-org-header-settled-DJeX3ijn.js → await-org-header-settled-DIN659KU.js} +1 -1
  27. package/dist/assets/background-task-detail-panel-CK5CkHAh.js +1 -0
  28. package/dist/assets/billing-page-DxzuCWv_.js +3 -0
  29. package/dist/assets/{billing-redirect-page-DYXZdQ52.js → billing-redirect-page-3KVpziky.js} +1 -1
  30. package/dist/assets/bookmarks-page-DU4zQI88.js +1 -0
  31. package/dist/assets/{bundle-confirm-page-CImMlQsd.js → bundle-confirm-page-BF_TkeTV.js} +1 -1
  32. package/dist/assets/camera-capture-overlay-T0uYBvOu.js +1 -0
  33. package/dist/assets/channel-transcript-panel-B1TEFqiF.js +1 -0
  34. package/dist/assets/{channels-sEfiHxRS.js → channels-C72WFU3d.js} +1 -1
  35. package/dist/assets/{channels-C18A3Iw6.js → channels-CbCJT0ZB.js} +1 -1
  36. package/dist/assets/{channels-sGi9IEhE.js → channels-D-bIT7yY.js} +1 -1
  37. package/dist/assets/{channels-D4i2mR2R.js → channels-Di5zRCeZ.js} +1 -1
  38. package/dist/assets/channels-page-route-DeocXDqs.js +1 -0
  39. package/dist/assets/{chat-ue8nDBE0.js → chat-DIpP7Ral.js} +1 -1
  40. package/dist/assets/{chat-DtCHoDDd.js → chat-Fwu9E2dv.js} +1 -1
  41. package/dist/assets/{chat-NNaM8MVU.js → chat-iVufWu4u.js} +1 -1
  42. package/dist/assets/chat-info-panel-lH_eTIGQ.js +1 -0
  43. package/dist/assets/{chat-BdJJuvUD.js → chat-tE54oJur.js} +1 -1
  44. package/dist/assets/{checkout-continuation-C165OlOR.js → checkout-continuation-syD1rPaq.js} +1 -1
  45. package/dist/assets/{checkout-page-Cl3gKX5M.js → checkout-page-CDxb2TKu.js} +1 -1
  46. package/dist/assets/checkout-return-target-Kr5OSzWN.js +1 -0
  47. package/dist/assets/cloud-export-BomC8LTr.js +1 -0
  48. package/dist/assets/cloud-loopback-page-CKanLlm2.js +1 -0
  49. package/dist/assets/command-palette-B7s1-xLZ.js +1 -0
  50. package/dist/assets/{command-palette-C5-1ScXi.js → command-palette-CCerSENn.js} +1 -1
  51. package/dist/assets/command-palette-window-page-DB4W1uBp.js +1 -0
  52. package/dist/assets/{common-B2OzMKuu.js → common-0XkPqpqK.js} +1 -1
  53. package/dist/assets/{common-BRcIoHdX.js → common-CdtDaW_F.js} +1 -1
  54. package/dist/assets/{common-BcylES0w.js → common-Clg2Dw3n.js} +1 -1
  55. package/dist/assets/{community-page-D4gW9H0b.js → community-page-JCjpT273.js} +1 -1
  56. package/dist/assets/{companion-accent-DeN7YIfl.js → companion-accent-DNqagkeK.js} +1 -1
  57. package/dist/assets/{companion-dock-zones-page-CC3en_w0.js → companion-dock-zones-page-B5FQh1TR.js} +1 -1
  58. package/dist/assets/{companion-layout-C4onEUYK.js → companion-layout-BJ70ZoB6.js} +1 -1
  59. package/dist/assets/{companion-popover-BY9dsTkK.js → companion-popover-ojFFv5gc.js} +1 -1
  60. package/dist/assets/{companion-popover-page-DtttiULS.js → companion-popover-page-CcjHgR5K.js} +1 -1
  61. package/dist/assets/companion-surface-BheNXy_6.js +1 -0
  62. package/dist/assets/companion-surface-page-BxYp5tfL.js +1 -0
  63. package/dist/assets/{companion-tour-entry-DMe04oGv.js → companion-tour-entry-Cv7pdZrq.js} +1 -1
  64. package/dist/assets/{companion-watch-frame-page-Vyo7Qhrs.js → companion-watch-frame-page-3M8uEp9f.js} +1 -1
  65. package/dist/assets/connect-page-B3uUGMgH.js +1 -0
  66. package/dist/assets/{consent-controls-ChXAokI4.js → consent-controls-C5hiZrsf.js} +1 -1
  67. package/dist/assets/contacts-gateway-FWhhciZa.js +1 -0
  68. package/dist/assets/contacts-page-route-GziPFmXf.js +1 -0
  69. package/dist/assets/{copy-button-VtuhId4f.js → copy-button-SNK3X3Q6.js} +1 -1
  70. package/dist/assets/{credential-entry-page-CSMf6-gH.js → credential-entry-page-SwWWNGX8.js} +1 -1
  71. package/dist/assets/credentials-page-DRfwESO-.js +1 -0
  72. package/dist/assets/csv-preview-U7XwAhlX.js +1 -0
  73. package/dist/assets/danger-zone-redirect-page-BV0lGnl_.js +1 -0
  74. package/dist/assets/debug-page-DwtjfO0H.js +4 -0
  75. package/dist/assets/deploy-dialogs-7b-AY3wa.js +1 -0
  76. package/dist/assets/deploy-dialogs-DDe4zOdX.js +1 -0
  77. package/dist/assets/{desktop-preview-content-0PPPJXKb.js → desktop-preview-content-_pIEbVde.js} +2 -2
  78. package/dist/assets/{desktop-status-LMVnpw_i.js → desktop-status-DmWWnzqE.js} +1 -1
  79. package/dist/assets/{desktop-viewer-BvmmSS3q.js → desktop-viewer-B9Vcq1Ei.js} +2 -2
  80. package/dist/assets/{detail-card-6rKFaFAS.js → detail-card-DF9nj6Gj.js} +1 -1
  81. package/dist/assets/{detail-panel-stop-button-EtbIbCMU.js → detail-panel-stop-button-D3b4nxcG.js} +1 -1
  82. package/dist/assets/{detail-primitives-DYFVgm7V.js → detail-primitives-LOD0kRZ4.js} +1 -1
  83. package/dist/assets/developer-page-BQ5bGk-4.js +1 -0
  84. package/dist/assets/devices-redirect-page-Bn2y0m1x.js +1 -0
  85. package/dist/assets/{dictation-overlay-page-Dk4SF30D.js → dictation-overlay-page-DPR2rDDh.js} +1 -1
  86. package/dist/assets/document-load-BTXflX5D.js +1 -0
  87. package/dist/assets/{document-load-Dg7AFxco.js → document-load-BziXWGTc.js} +1 -1
  88. package/dist/assets/document-viewer-page-B-2c3m5R.js +1 -0
  89. package/dist/assets/{emails-page-CdWuX5e8.js → emails-page-CgiQD0Sv.js} +1 -1
  90. package/dist/assets/esm-3p9EjCxv.js +1 -0
  91. package/dist/assets/esm-81hjkY91.js +2 -0
  92. package/dist/assets/{esm-Dd2zUPvj.js → esm-B7eDjVec.js} +1 -1
  93. package/dist/assets/esm-Bg5pAsee.js +2 -0
  94. package/dist/assets/{esm-lj_-qzY6.js → esm-Bo2YRP0H.js} +2 -2
  95. package/dist/assets/esm-CFXydoBW.js +1 -0
  96. package/dist/assets/{esm-CAnWEw9F.js → esm-OhpYdKED.js} +1 -1
  97. package/dist/assets/esm-Qn-Ugt7M.js +2 -0
  98. package/dist/assets/esm-p-XTJuu2.js +2 -0
  99. package/dist/assets/esm-zzDLmzCb.js +2 -0
  100. package/dist/assets/{file-diff-view-DMPBN50t.js → file-diff-view-8ciHw9A7.js} +1 -1
  101. package/dist/assets/{file-view-mode-Cjq3b9c7.js → file-view-mode-BjjBnpYU.js} +2 -2
  102. package/dist/assets/general-page-DIQRLvou.js +2 -0
  103. package/dist/assets/hatching-screen-Dbp76r0P.js +1 -0
  104. package/dist/assets/hosting-screen-fTZt7kCM.js +1 -0
  105. package/dist/assets/identity-page-route-CHM3oI-k.js +7 -0
  106. package/dist/assets/inspect-page-BHs6vilE.js +8 -0
  107. package/dist/assets/integrations-page-CeK7nrkI.js +1 -0
  108. package/dist/assets/intelligence-layout-UKSuU3yD.js +1 -0
  109. package/dist/assets/intelligence-layout-slots-store-yq8xZ_lC.js +1 -0
  110. package/dist/assets/keyboard-shortcuts-redirect-page-BfgCJJ8W.js +1 -0
  111. package/dist/assets/{latest-assistant-text-NX8b-PTU.js → latest-assistant-text-BbUF-ZjG.js} +1 -1
  112. package/dist/assets/{library-detail-page-ydt47xy5.js → library-detail-page-DCVP6Thc.js} +1 -1
  113. package/dist/assets/{library-page-CuR1I6_u.js → library-page-DemxnENP.js} +1 -1
  114. package/dist/assets/login-page-DJCWMJPS.js +1 -0
  115. package/dist/assets/logout-page-rrrf5aYw.js +1 -0
  116. package/dist/assets/logs-layout-CU-5OL3A.js +1 -0
  117. package/dist/assets/{markdown-preview-DZxeW7zP.js → markdown-preview-h2xJTbi7.js} +1 -1
  118. package/dist/assets/{media-preview-XLlQ1U25.js → media-preview-6Dw68M9L.js} +1 -1
  119. package/dist/assets/memory-page-route-BZYeOOeW.js +2 -0
  120. package/dist/assets/{memory-router-playground-page-DdqpfMXX.js → memory-router-playground-page-CsN1IIJA.js} +1 -1
  121. package/dist/assets/{message-files-panel-HmSeOj-c.js → message-files-panel-CNC5v1w7.js} +1 -1
  122. package/dist/assets/mutation-error-CAyH2x36.js +1 -0
  123. package/dist/assets/native-attachment-pickers-BjVoKEUQ.js +1 -0
  124. package/dist/assets/native-file-CYAEPXYN.js +1 -0
  125. package/dist/assets/{notifications-page-BTVuLqLX.js → notifications-page-B3Em-VQu.js} +1 -1
  126. package/dist/assets/{oauth-complete-page-B1U_lIbS.js → oauth-complete-page-BJObwKje.js} +1 -1
  127. package/dist/assets/{oauth-popup-complete-page-CKl1xiuA.js → oauth-popup-complete-page-dpJtFUH5.js} +1 -1
  128. package/dist/assets/paired-cloud-identity-D6ABqHK-.js +1 -0
  129. package/dist/assets/pairing-page-dZeno0_m.js +1 -0
  130. package/dist/assets/password-reset-page-IPvSLWAz.js +1 -0
  131. package/dist/assets/{pdf-file-preview-BjwxYlB0.js → pdf-file-preview-C68i9dU6.js} +1 -1
  132. package/dist/assets/{peeking-eyes-iuHxzGZA.js → peeking-eyes-CYWm-sDJ.js} +1 -1
  133. package/dist/assets/{permission-guide-page-CNoNoSR3.js → permission-guide-page-BTU82Ybk.js} +1 -1
  134. package/dist/assets/{permission-setup-aNFAgq7H.js → permission-setup-DohBLdCl.js} +1 -1
  135. package/dist/assets/{personality-page-BTQWpq-E.js → personality-page-BIMzWgMh.js} +1 -1
  136. package/dist/assets/{personality-page-BJ0W1gTK.js → personality-page-_k2z41Bt.js} +1 -1
  137. package/dist/assets/{personality-sliders-ZBDf-Baw.js → personality-sliders-DGNY8Rnd.js} +1 -1
  138. package/dist/assets/plans-page-pq5hy60L.js +1 -0
  139. package/dist/assets/plugin-detail-page-BbA4_EQi.js +1 -0
  140. package/dist/assets/{plugins-page-D0PHx5_k.js → plugins-page-DxdhU21Z.js} +1 -1
  141. package/dist/assets/plugins-surface-DQ6HNFGt.js +1 -0
  142. package/dist/assets/{preview-error-BVZTE_Gq.js → preview-error-DhG_s3C0.js} +1 -1
  143. package/dist/assets/privacy-page-BqiHHg7j.js +1 -0
  144. package/dist/assets/privacy-screen-Dq4eUoIO.js +1 -0
  145. package/dist/assets/profile-card-CkTa3Y8i.js +1 -0
  146. package/dist/assets/provider-callback-page-Bmu6iHxa.js +1 -0
  147. package/dist/assets/{provider-key-ac0GCyQW.js → provider-key-DBdqn0Gt.js} +1 -1
  148. package/dist/assets/{provider-signup-page-DGmdVrLa.js → provider-signup-page-JIh0XKV5.js} +1 -1
  149. package/dist/assets/{provisioning-targets-CQDeumSG.js → provisioning-targets-DKc5ORwj.js} +1 -1
  150. package/dist/assets/{quick-input-page-C4Iw_XJg.js → quick-input-page-ALtrRR05.js} +1 -1
  151. package/dist/assets/{rehype-katex-Tw37BDOZ.js → rehype-katex-CzhvmWzz.js} +1 -1
  152. package/dist/assets/{research-mock-page-BnPVD3II.js → research-mock-page-C8n5xPsy.js} +1 -1
  153. package/dist/assets/research-onboarding-route-BgMvaYdY.js +50 -0
  154. package/dist/assets/review-terms-screen-CnIUYPfa.js +1 -0
  155. package/dist/assets/routes-Ct3akvBN.js +1 -0
  156. package/dist/assets/schedules-D8f5wsZc.js +1 -0
  157. package/dist/assets/schedules-page-B8PnXfuh.js +1 -0
  158. package/dist/assets/security-redirect-page-L5VVUkhf.js +1 -0
  159. package/dist/assets/select-assistant-screen-Bm0waz2L.js +1 -0
  160. package/dist/assets/{self-hosted-servers-BfhtAs6X.js → self-hosted-servers-BxHLMpeP.js} +1 -1
  161. package/dist/assets/service-form-controls-BcaLg3mN.js +1 -0
  162. package/dist/assets/{setting-row-BP3qssay.js → setting-row-3-QGMKbV.js} +1 -1
  163. package/dist/assets/settings-BHi3Ex7d.js +5 -0
  164. package/dist/assets/settings-CsVOMHUb.js +5 -0
  165. package/dist/assets/settings-DZXnR1wA.js +5 -0
  166. package/dist/assets/settings-DiShwji2.js +5 -0
  167. package/dist/assets/settings-divider-D1gYuSPt.js +1 -0
  168. package/dist/assets/{settings-layout-Br7UDHeY.js → settings-layout-Cuol1Jld.js} +1 -1
  169. package/dist/assets/share-feedback-modal-CdzyF0gl.js +1 -0
  170. package/dist/assets/share-feedback-modal-O62ToKHM.js +2 -0
  171. package/dist/assets/{sidebar-tree-HQg9GmqO.js → sidebar-tree-D1pphm3H.js} +1 -1
  172. package/dist/assets/{signup-page-CugeXM02.js → signup-page-6gPB7H4i.js} +1 -1
  173. package/dist/assets/{signup-shell-ys4gi58w.js → signup-shell-I1tsWrB2.js} +1 -1
  174. package/dist/assets/{skill-detail-page-DBAq5Bn0.js → skill-detail-page-CaaPoNXG.js} +2 -2
  175. package/dist/assets/skill-detail-panel-CVrIAGi1.js +1 -0
  176. package/dist/assets/{skill-removal-dialog-1pTs7_fK.js → skill-removal-dialog-DVzlADbq.js} +1 -1
  177. package/dist/assets/{skills-page-ByRkByh4.js → skills-page-BjmHcl-i.js} +1 -1
  178. package/dist/assets/{sounds-page-BqH9NcU1.js → sounds-page-DM_LZFsH.js} +1 -1
  179. package/dist/assets/{start-screen-QdPolVqs.js → start-screen-Dh8Xc1ux.js} +1 -1
  180. package/dist/assets/{step-detail-header-BuPH_i5-.js → step-detail-header-C1U-HS14.js} +1 -1
  181. package/dist/assets/stt-language-picker-modal-BWPQXHbg.js +1 -0
  182. package/dist/assets/subagent-detail-panel-BEHD2vOf.js +1 -0
  183. package/dist/assets/superpowers-page-Civ1dred.js +1 -0
  184. package/dist/assets/{system-events-page-BT1OLy4k.js → system-events-page-DQQD-yh4.js} +1 -1
  185. package/dist/assets/system-events-redirect-page-CMQWTWeS.js +1 -0
  186. package/dist/assets/{tabular-grid-OOn2S_C5.js → tabular-grid-Crdhci1a.js} +1 -1
  187. package/dist/assets/{teleport-gateway-client-CbFuQSt0.js → teleport-gateway-client-zRxDIHvy.js} +1 -1
  188. package/dist/assets/{text-preview-sXXhDNUX.js → text-preview-CCRT6NMb.js} +1 -1
  189. package/dist/assets/{theme-stage-page-D5R8P8hx.js → theme-stage-page-BKDKhybd.js} +1 -1
  190. package/dist/assets/{tiptap-document-editor-DJxCQreS.js → tiptap-document-editor-DMBoEpva.js} +2 -2
  191. package/dist/assets/tool-detail-panel-BR7h2ROn.js +16 -0
  192. package/dist/assets/tool-detail-panel-DCdX_SBO.js +1 -0
  193. package/dist/assets/{trait-cycle-row-CptuY2rL.js → trait-cycle-row-Lgkm9R8c.js} +1 -1
  194. package/dist/assets/upgrade-cancel-page-DEIK5f2e.js +1 -0
  195. package/dist/assets/upgrade-success-page-Dt9lxhGP.js +1 -0
  196. package/dist/assets/{usage-redirect-page-BWdqE2yR.js → usage-redirect-page-BMvSf6Bj.js} +1 -1
  197. package/dist/assets/use-app-delete-NTNPyRFw.js +1 -0
  198. package/dist/assets/use-assistant-identity-details-20XTojNX.js +1 -0
  199. package/dist/assets/use-channel-trust-floors-sx-Gm1Em.js +1 -0
  200. package/dist/assets/use-checkout-dismiss-refresh-C7kMkxS1.js +1 -0
  201. package/dist/assets/{use-edge-swipe-back-CtH4IJQV.js → use-edge-swipe-back-D92U2q-N.js} +1 -1
  202. package/dist/assets/{use-hotkey-recorder-TqrRpvTU.js → use-hotkey-recorder-BRdHU8pS.js} +1 -1
  203. package/dist/assets/{use-invite-link-dialog-BIai7wEJ.js → use-invite-link-dialog-CbFJAi4C.js} +1 -1
  204. package/dist/assets/{use-plugins-list-BEHmXwlp.js → use-plugins-list-BQG0kv-t.js} +1 -1
  205. package/dist/assets/use-return-to-short-circuit-Dqo3POFE.js +1 -0
  206. package/dist/assets/{use-side-list-room-BJ5IwZkh.js → use-side-list-room-BL6BAMEB.js} +1 -1
  207. package/dist/assets/{use-skill-actions-D98yjthR.js → use-skill-actions-Ch-wHH29.js} +1 -1
  208. package/dist/assets/use-skill-detail-files-Chj_ePZG.js +1 -0
  209. package/dist/assets/use-supports-credentials-settings-Dv49IKbZ.js +1 -0
  210. package/dist/assets/{use-truncated-blob-text-CAbJEijr.js → use-truncated-blob-text-D16QRG1n.js} +1 -1
  211. package/dist/assets/{vendor-D-45vVY0.js → vendor-CezcraPH.js} +2 -2
  212. package/dist/assets/voice-page-CcybrzXj.js +1 -0
  213. package/dist/assets/{wake-detail-panel--GpIl1Pf.js → wake-detail-panel-BNA47SoV.js} +1 -1
  214. package/dist/assets/{weather-forecast-display-Dozuotk6.js → weather-forecast-display-BGKTfbzy.js} +1 -1
  215. package/dist/assets/{web-DyQHXFg3.js → web-BA_SEIKY.js} +1 -1
  216. package/dist/assets/{web-DPM50-rm.js → web-BGBSTUE5.js} +1 -1
  217. package/dist/assets/{web-DIwvBx1l.js → web-BOoSclHV.js} +1 -1
  218. package/dist/assets/{web-BuDXNMls.js → web-Cnoc-36d.js} +1 -1
  219. package/dist/assets/{web-MgDBcJz1.js → web-D36IPmll.js} +1 -1
  220. package/dist/assets/{web-CqZ4lPzV.js → web-DaDJItvE.js} +1 -1
  221. package/dist/assets/{web-GduBYCpB.js → web-GjGo6RCY.js} +1 -1
  222. package/dist/assets/{web-Bm6v7mdW.js → web-ZoqYnuKe.js} +1 -1
  223. package/dist/assets/{web-WDOUgeol.js → web-mirSqNWL.js} +1 -1
  224. package/dist/assets/welcome-screen-nz_FAiGA.js +1 -0
  225. package/dist/assets/{workflow-detail-panel-DnKvBE9t.js → workflow-detail-panel-DRoeaq6c.js} +1 -1
  226. package/dist/assets/workspace-page-ClGrsRBZ.js +1 -0
  227. package/dist/assets/{xlsx-preview-nQSldHCi.js → xlsx-preview-z2rPKBuW.js} +1 -1
  228. package/dist/index.html +3 -3
  229. package/package.json +1 -1
  230. package/dist/assets/activation-list-route-DsNAUaWs.js +0 -1
  231. package/dist/assets/add-credits-modal-BbRv34X8.js +0 -1
  232. package/dist/assets/ai-page-CXPC9t0F.js +0 -1
  233. package/dist/assets/all-chats-page-route-CXfMd547.js +0 -1
  234. package/dist/assets/app-CPkqAi_4.js +0 -401
  235. package/dist/assets/archive-redirect-page-BipIW_n7.js +0 -1
  236. package/dist/assets/assistant-handle-modal-BkIX52b6.js +0 -1
  237. package/dist/assets/assistant-inbox-page-route-gy60plfi.js +0 -8
  238. package/dist/assets/auth-store-c6dqzt4x.js +0 -1
  239. package/dist/assets/avatar-bundled-components-C7heB9xP.js +0 -1
  240. package/dist/assets/avatar-random-B8fJqzb-.js +0 -2
  241. package/dist/assets/background-task-detail-panel-Cu72J5mx.js +0 -1
  242. package/dist/assets/billing-page-CgQpnTUo.js +0 -3
  243. package/dist/assets/bookmarks-page-pO4mLMfc.js +0 -1
  244. package/dist/assets/camera-capture-overlay-CzsGEOve.js +0 -1
  245. package/dist/assets/channel-transcript-panel-DaBGSuMi.js +0 -1
  246. package/dist/assets/channels-page-route-DNtLd_hv.js +0 -1
  247. package/dist/assets/chat-info-panel-Cp0StHk_.js +0 -1
  248. package/dist/assets/checkout-return-target-BskCWo4q.js +0 -1
  249. package/dist/assets/command-palette-DQxkn194.js +0 -1
  250. package/dist/assets/command-palette-window-page-Bm2eduH2.js +0 -1
  251. package/dist/assets/companion-surface-page-DqFzY5ai.js +0 -1
  252. package/dist/assets/companion-surface-s_z14fFe.js +0 -1
  253. package/dist/assets/connect-page-Bqqeu7px.js +0 -1
  254. package/dist/assets/contacts-gateway-CjXsMIf5.js +0 -1
  255. package/dist/assets/contacts-page-route-jhQ6zm79.js +0 -1
  256. package/dist/assets/credentials-page-CFEC74Wl.js +0 -1
  257. package/dist/assets/csv-preview-BYaPBX5Y.js +0 -1
  258. package/dist/assets/danger-zone-redirect-page-nDGkxOH5.js +0 -1
  259. package/dist/assets/debug-page-BgsSPZYq.js +0 -4
  260. package/dist/assets/deploy-dialogs-CGCI-YQR.js +0 -1
  261. package/dist/assets/deploy-dialogs-TtlGsmui.js +0 -1
  262. package/dist/assets/developer-page-DvF8-ZqQ.js +0 -1
  263. package/dist/assets/devices-redirect-page-DPj7rsiz.js +0 -1
  264. package/dist/assets/document-load-bHqC_QnQ.js +0 -1
  265. package/dist/assets/document-viewer-page-02YOTCJb.js +0 -1
  266. package/dist/assets/esm-Ba0eCQsV.js +0 -2
  267. package/dist/assets/esm-Br-MT6II.js +0 -2
  268. package/dist/assets/esm-Bz1DsDh-.js +0 -2
  269. package/dist/assets/esm-DIMIqvli.js +0 -2
  270. package/dist/assets/esm-Mv3KtaQ6.js +0 -1
  271. package/dist/assets/esm-dvAliocw.js +0 -1
  272. package/dist/assets/esm-xz6_eoYC.js +0 -2
  273. package/dist/assets/general-page-B3LWDnII.js +0 -2
  274. package/dist/assets/hatching-screen-Bz1rVnuU.js +0 -1
  275. package/dist/assets/hosting-screen-DjelWQN4.js +0 -1
  276. package/dist/assets/identity-page-route-Bfit3ZAL.js +0 -7
  277. package/dist/assets/inspect-page-DrzPnXTu.js +0 -8
  278. package/dist/assets/integrations-page-D1jUq3jA.js +0 -1
  279. package/dist/assets/intelligence-layout-D-ux-wB-.js +0 -1
  280. package/dist/assets/intelligence-layout-slots-store-CG-bJbCv.js +0 -1
  281. package/dist/assets/keyboard-shortcuts-redirect-page-Hc4YzlJe.js +0 -1
  282. package/dist/assets/local-mode-jIpWvO_O.js +0 -1
  283. package/dist/assets/login-page-BDZCTowZ.js +0 -1
  284. package/dist/assets/logout-page-C92xzZ-e.js +0 -1
  285. package/dist/assets/logs-layout-P9r4D1NB.js +0 -1
  286. package/dist/assets/managed-export-gcnDno7p.js +0 -1
  287. package/dist/assets/memory-page-route-BSnGfHWx.js +0 -2
  288. package/dist/assets/mutation-error-B0xRAwtR.js +0 -1
  289. package/dist/assets/native-attachment-pickers-BCXzpwWi.js +0 -1
  290. package/dist/assets/native-file-sedyTNMI.js +0 -1
  291. package/dist/assets/paired-platform-identity-DVaKRZrM.js +0 -1
  292. package/dist/assets/pairing-page-CRV8b0I5.js +0 -1
  293. package/dist/assets/password-reset-page-BWEjhNyR.js +0 -1
  294. package/dist/assets/plans-page-hRm6v6LW.js +0 -1
  295. package/dist/assets/platform-loopback-page-DZ6HYIt6.js +0 -1
  296. package/dist/assets/plugin-detail-page-C7Nvkx9h.js +0 -1
  297. package/dist/assets/plugins-surface-DlAulnxS.js +0 -1
  298. package/dist/assets/privacy-page-CENU2Slx.js +0 -1
  299. package/dist/assets/privacy-screen-BhfsBIN1.js +0 -1
  300. package/dist/assets/profile-card-CS9g1deW.js +0 -1
  301. package/dist/assets/provider-callback-page-C2Tcz390.js +0 -1
  302. package/dist/assets/research-onboarding-route-BzkZiS-h.js +0 -50
  303. package/dist/assets/review-terms-screen-FqiYdY0P.js +0 -1
  304. package/dist/assets/routes-DmeNA6If.js +0 -1
  305. package/dist/assets/schedules-_0jiWipo.js +0 -1
  306. package/dist/assets/schedules-page-YYRCjsPX.js +0 -1
  307. package/dist/assets/security-redirect-page-DrztWSNp.js +0 -1
  308. package/dist/assets/select-assistant-screen-CHRyv7xW.js +0 -1
  309. package/dist/assets/service-form-controls-DEbGvmzt.js +0 -1
  310. package/dist/assets/settings-B6KQ8dfx.js +0 -5
  311. package/dist/assets/settings-BiE94ezQ.js +0 -5
  312. package/dist/assets/settings-Chcj3AOF.js +0 -5
  313. package/dist/assets/settings-divider-B756HDoF.js +0 -1
  314. package/dist/assets/settings-pGxTqXuM.js +0 -5
  315. package/dist/assets/share-feedback-modal-D0yLvDE-.js +0 -1
  316. package/dist/assets/share-feedback-modal-D3cwFoqQ.js +0 -2
  317. package/dist/assets/skill-detail-panel-Drwq4W_A.js +0 -1
  318. package/dist/assets/stt-language-picker-modal-DBimk9bU.js +0 -1
  319. package/dist/assets/subagent-detail-panel-DBV1nIEq.js +0 -1
  320. package/dist/assets/superpowers-page-Cyjc104e.js +0 -1
  321. package/dist/assets/system-events-redirect-page-Bn1Mlmrx.js +0 -1
  322. package/dist/assets/tool-detail-panel-C2W_9tyR.js +0 -16
  323. package/dist/assets/tool-detail-panel-CCaS1KuN.js +0 -1
  324. package/dist/assets/upgrade-cancel-page-CZcjnTkF.js +0 -1
  325. package/dist/assets/upgrade-success-page-DOWiDkOG.js +0 -1
  326. package/dist/assets/use-app-delete-DsCLfjVk.js +0 -1
  327. package/dist/assets/use-assistant-identity-details-DWDjVqbF.js +0 -1
  328. package/dist/assets/use-channel-trust-floors-BpA8XrEX.js +0 -1
  329. package/dist/assets/use-checkout-dismiss-refresh-AAMt1w79.js +0 -1
  330. package/dist/assets/use-return-to-short-circuit-CEjprwJ6.js +0 -1
  331. package/dist/assets/use-skill-detail-files-XJ3Mq-uM.js +0 -1
  332. package/dist/assets/use-supports-credentials-settings-5kwj4xAE.js +0 -1
  333. package/dist/assets/voice-page-BLDxl5d8.js +0 -1
  334. package/dist/assets/welcome-screen-8lsoSWQi.js +0 -1
  335. package/dist/assets/workspace-page-gxt87pPu.js +0 -1
  336. /package/dist/assets/{account-MJjOug_m.js → account-9ifOctCs.js} +0 -0
  337. /package/dist/assets/{account-u8ssGyAD.js → account-C59_ZVEY.js} +0 -0
  338. /package/dist/assets/{account-hi01tHTN.js → account-CnqVfERR.js} +0 -0
  339. /package/dist/assets/{account-BrkDQ2EC.js → account-DVdolNcP.js} +0 -0
  340. /package/dist/assets/{activation-C60mWyf6.js → activation-C91KPzrh.js} +0 -0
  341. /package/dist/assets/{activation-CaYos65l.js → activation-Dd7eAIHs.js} +0 -0
  342. /package/dist/assets/{activation-Bu-fuIiq.js → activation-ReimSfhn.js} +0 -0
  343. /package/dist/assets/{activation-tasks-CpU4QWIJ.js → activation-tasks-CcT0Rqfx.js} +0 -0
  344. /package/dist/assets/{activation-tasks-LyVhtkqv.js → activation-tasks-CjUCWfbQ.js} +0 -0
  345. /package/dist/assets/{activation-nBeJqOMa.js → activation-tasks-rViOqW7C.js} +0 -0
  346. /package/dist/assets/{activation-tasks-6iX4PrEF.js → activation-tasks-wtMwJ0EV.js} +0 -0
  347. /package/dist/assets/{activation-tasks-D057dozu.js → activation-yoBQ36AY.js} +0 -0
  348. /package/dist/assets/{app-types-D4ttHTjj.js → app-types-DLSc4FO-.js} +0 -0
  349. /package/dist/assets/{assistant-inbox-BjveeFJS.js → assistant-inbox-CAvCHzi9.js} +0 -0
  350. /package/dist/assets/{assistant-inbox-Bc1eriLy.js → assistant-inbox-CQdSXLLi.js} +0 -0
  351. /package/dist/assets/{assistant-inbox-CjlA9ExA.js → assistant-inbox-DslyrhIn.js} +0 -0
  352. /package/dist/assets/{assistant-inbox-DZEctkiU.js → assistant-inbox-qWeVmA1L.js} +0 -0
  353. /package/dist/assets/{build.umd-BQNORWVu.js → build.umd-B0ATW5UM.js} +0 -0
  354. /package/dist/assets/{common-DVvO5aE9.js → common-DFAGeqca.js} +0 -0
  355. /package/dist/assets/{contacts-BcjP6yTq.js → contacts-BTmOfEVL.js} +0 -0
  356. /package/dist/assets/{contacts-DwPTzNNu.js → contacts-Cxz-DyYF.js} +0 -0
  357. /package/dist/assets/{contacts-B-21ZJz4.js → contacts-DgC-8PHB.js} +0 -0
  358. /package/dist/assets/{contacts-atF1S3IK.js → contacts-mijLgegD.js} +0 -0
  359. /package/dist/assets/{credential-requests-AF-aeT3D.js → credential-requests-CmFaXPwz.js} +0 -0
  360. /package/dist/assets/{credential-requests-CwIA8bBS.js → credential-requests-D3J3i5oa.js} +0 -0
  361. /package/dist/assets/{credential-requests-Z5RDxt8x.js → credential-requests-gl4lfjL4.js} +0 -0
  362. /package/dist/assets/{credential-requests-D1YLTxiK.js → credential-requests-h908NRpv.js} +0 -0
  363. /package/dist/assets/{definitions-DOIX6IPo.js → definitions-BUCExH-9.js} +0 -0
  364. /package/dist/assets/{definitions-Bqz3c8F6.js → definitions-DpZNNWA7.js} +0 -0
  365. /package/dist/assets/{diff-rows-K13N_h7I.js → diff-rows-DD2i4Iv8.js} +0 -0
  366. /package/dist/assets/{emoji-catalog-data-CbgEbTGg.js → emoji-catalog-data-jMbpElmp.js} +0 -0
  367. /package/dist/assets/{format-countdown-DCe32PhB.js → format-countdown-jXi9FZ2J.js} +0 -0
  368. /package/dist/assets/{format-file-size-BLcTYLUV.js → format-file-size-zh148z6P.js} +0 -0
  369. /package/dist/assets/{home-fLFytpjt.js → home-BI-fzzA0.js} +0 -0
  370. /package/dist/assets/{home-BDUOreXL.js → home-BZGFmZ0D.js} +0 -0
  371. /package/dist/assets/{home-X7gNxY7e.js → home-CM9kRnjx.js} +0 -0
  372. /package/dist/assets/{home-BEjkPdJp.js → home-D4Knhe9B.js} +0 -0
  373. /package/dist/assets/{intelligence-CQpR434Z.js → intelligence-BzXuH7C3.js} +0 -0
  374. /package/dist/assets/{intelligence-DyBrOJ0A.js → intelligence-CRQIvpoS.js} +0 -0
  375. /package/dist/assets/{intelligence-BidrWQpj.js → intelligence-D6JLt55y.js} +0 -0
  376. /package/dist/assets/{intelligence-DC4uazgZ.js → intelligence-EUWmzIF9.js} +0 -0
  377. /package/dist/assets/{is-record-LnKkvLTP.js → is-record-VoZP3nYK.js} +0 -0
  378. /package/dist/assets/{jszip.min-c5TAu4nn.js → jszip.min-4SBnqRxq.js} +0 -0
  379. /package/dist/assets/{library-DqG1EtL5.js → library-B5UBdwOv.js} +0 -0
  380. /package/dist/assets/{library-teunjgKo.js → library-CGTnSkcA.js} +0 -0
  381. /package/dist/assets/{library-4geYyJ8S.js → library-DEPrqINm.js} +0 -0
  382. /package/dist/assets/{library-BFdgofAq.js → library-DNEpT1eD.js} +0 -0
  383. /package/dist/assets/{link-click-Dizbvw1H.js → link-click-BJkFvMTf.js} +0 -0
  384. /package/dist/assets/{list-detail-navigation-ChFNCRwF.js → list-detail-navigation-Bc3JpBO4.js} +0 -0
  385. /package/dist/assets/{logs-BRx5q__N.js → logs-BKfLoluH.js} +0 -0
  386. /package/dist/assets/{logs-Djz0FHd-.js → logs-BufZKV9C.js} +0 -0
  387. /package/dist/assets/{logs-BbmigxfM.js → logs-CAOgfUOH.js} +0 -0
  388. /package/dist/assets/{logs-DqcVH8T6.js → logs-CW8mXm9O.js} +0 -0
  389. /package/dist/assets/{machine-sizes-DkgYVvyU.js → machine-sizes-DZLd-6DF.js} +0 -0
  390. /package/dist/assets/{onboarding-CKXWGL__.js → onboarding-BnvKZweH.js} +0 -0
  391. /package/dist/assets/{onboarding-DdQfkNL9.js → onboarding-ClaQ9TbS.js} +0 -0
  392. /package/dist/assets/{onboarding-BgGUy9e_.js → onboarding-D5ZYk-vE.js} +0 -0
  393. /package/dist/assets/{onboarding-DSXxrrNI.js → onboarding-DmjIVIBS.js} +0 -0
  394. /package/dist/assets/{onboarding-step-layout-NeKjwNyJ.js → onboarding-step-layout-Vb0tyqKa.js} +0 -0
  395. /package/dist/assets/{pdf--x650muR.js → pdf-C1Mi1b5E.js} +0 -0
  396. /package/dist/assets/{plugin-attribution-CS85_NdB.js → plugin-attribution-CTeP_GNV.js} +0 -0
  397. /package/dist/assets/{radio-card-nav-DMoAtJEF.js → radio-card-nav-d-b41vKg.js} +0 -0
  398. /package/dist/assets/{remote-web-BT_zhr9C.js → remote-web-B4U_dWd7.js} +0 -0
  399. /package/dist/assets/{remote-web-DenJqlzO.js → remote-web-BDCxnZ9y.js} +0 -0
  400. /package/dist/assets/{remote-web-CFnafhkO.js → remote-web-CVtBV7uq.js} +0 -0
  401. /package/dist/assets/{remote-web-ncKDx-rR.js → remote-web-N0Odpq2-.js} +0 -0
  402. /package/dist/assets/{schedules-BFWqVQQr.js → schedules-Bk7XGnqS.js} +0 -0
  403. /package/dist/assets/{schedules-B-eoXB0u.js → schedules-CGU7CKaM.js} +0 -0
  404. /package/dist/assets/{schedules-jmj6ULCh.js → schedules-J687h0Fh.js} +0 -0
  405. /package/dist/assets/{schedules-CxUabbOG.js → schedules-JnprnWDo.js} +0 -0
  406. /package/dist/assets/{signup-onboarding-handoff-BIo7lFvP.js → signup-onboarding-handoff-aEYZuuHr.js} +0 -0
  407. /package/dist/assets/{skill-icon-Bu6SaLo9.js → skill-icon-H-0SEc1H.js} +0 -0
  408. /package/dist/assets/{status-badge-pill-Ceff-8Fw.js → status-badge-pill-CND5rJPR.js} +0 -0
  409. /package/dist/assets/{terminal-Dl9KkSzg.js → terminal-BV6xg9ZA.js} +0 -0
  410. /package/dist/assets/{terminal-BQY82QZm.js → terminal-BjOF3LBT.js} +0 -0
  411. /package/dist/assets/{terminal-BUWeG_vt.js → terminal-CYHsl1AH.js} +0 -0
  412. /package/dist/assets/{terminal-CAR3C4xs.js → terminal-Cxm0NKaj.js} +0 -0
  413. /package/dist/assets/{usage-window-DmMnJ1Wj.js → usage-window-Dk_XVv4Y.js} +0 -0
  414. /package/dist/assets/{use-async-read-DlWfyJPq.js → use-async-read-deCq0DBg.js} +0 -0
  415. /package/dist/assets/{use-debounced-value-CwdWFc4Z.js → use-debounced-value-CPLEzsNt.js} +0 -0
  416. /package/dist/assets/{workspace-CNtNlLWm.js → workspace-Bcvg2VfS.js} +0 -0
  417. /package/dist/assets/{workspace-Bnpq8Dqv.js → workspace-BscXtFFU.js} +0 -0
  418. /package/dist/assets/{workspace-C9vNSPtQ.js → workspace-C-huZiu_.js} +0 -0
  419. /package/dist/assets/{workspace-u8O2g3J6.js → workspace-P8HaFDdu.js} +0 -0
  420. /package/dist/assets/{xterm-DVw0Odgw.js → xterm-Pyzkt_-B.js} +0 -0
  421. /package/dist/assets/{xterm-addon-fit-BQeaKmRy.js → xterm-addon-fit-HaY_WHvm.js} +0 -0
@@ -114,7 +114,7 @@ import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-BM3Ffeng.js";import
114
114
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function tq(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:iq(t,`input`,e.processors),output:iq(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function nq(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return nq(r.element,n);if(r.type===`set`)return nq(r.valueType,n);if(r.type===`lazy`)return nq(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return nq(r.innerType,n);if(r.type===`intersection`)return nq(r.left,n)||nq(r.right,n);if(r.type===`record`||r.type===`map`)return nq(r.keyType,n)||nq(r.valueType,n);if(r.type===`pipe`)return nq(r.in,n)||nq(r.out,n);if(r.type===`object`){for(let e in r.shape)if(nq(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(nq(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(nq(e,n))return!0;return!!(r.rest&&nq(r.rest,n))}return!1}var rq=(e,t={})=>n=>{let r=QK({...n,processors:t});return $K(e,r),eq(r,e),tq(r,e)},iq=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=QK({...i??{},target:a,io:t,processors:n});return $K(e,o),eq(o,e),tq(o,e)},aq={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},oq=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=aq[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},sq=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},cq=(e,t,n,r)=>{n.type=`boolean`},lq=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},uq=(e,t,n,r)=>{n.not={}},dq=(e,t,n,r)=>{let i=e._zod.def,a=NH(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},fq=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},pq=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},mq=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},hq=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=$K(a.element,t,{...r,path:[...r.path,`items`]})},gq=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=$K(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=$K(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},_q=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>$K(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},vq=(e,t,n,r)=>{let i=e._zod.def,a=$K(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=$K(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},yq=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=$K(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=$K(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=$K(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},bq=(e,t,n,r)=>{let i=e._zod.def,a=$K(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},xq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Sq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Cq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},wq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Tq=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;$K(a,t,r);let o=t.seen.get(e);o.ref=a},Eq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Dq=(e,t,n,r)=>{let i=e._zod.def;$K(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Oq=Z(`ZodISODateTime`,(e,t)=>{UW.init(e,t),eJ.init(e,t)});function kq(e){return _K(Oq,e)}var Aq=Z(`ZodISODate`,(e,t)=>{WW.init(e,t),eJ.init(e,t)});function jq(e){return vK(Aq,e)}var Mq=Z(`ZodISOTime`,(e,t)=>{GW.init(e,t),eJ.init(e,t)});function Nq(e){return yK(Mq,e)}var Pq=Z(`ZodISODuration`,(e,t)=>{KW.init(e,t),eJ.init(e,t)});function Fq(e){return bK(Pq,e)}var Iq=(e,t)=>{hU.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>vU(e,t)},flatten:{value:t=>_U(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,PH,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,PH,2)}},isEmpty:{get(){return e.issues.length===0}}})};Z(`ZodError`,Iq);var Lq=Z(`ZodError`,Iq,{Parent:Error}),Rq=yU(Lq),zq=bU(Lq),Bq=xU(Lq),Vq=CU(Lq),Hq=TU(Lq),Uq=EU(Lq),Wq=DU(Lq),Gq=OU(Lq),Kq=kU(Lq),qq=AU(Lq),Jq=jU(Lq),Yq=MU(Lq),Xq=Z(`ZodType`,(e,t)=>(kW.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:iq(e,`input`),output:iq(e,`output`)}}),e.toJSONSchema=rq(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(HH(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>QH(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Rq(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Bq(e,t,n),e.parseAsync=async(t,n)=>zq(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vq(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Hq(e,t,n),e.decode=(t,n)=>Uq(e,t,n),e.encodeAsync=async(t,n)=>Wq(e,t,n),e.decodeAsync=async(t,n)=>Gq(e,t,n),e.safeEncode=(t,n)=>Kq(e,t,n),e.safeDecode=(t,n)=>qq(e,t,n),e.safeEncodeAsync=async(t,n)=>Jq(e,t,n),e.safeDecodeAsync=async(t,n)=>Yq(e,t,n),e.refine=(t,n)=>e.check(gY(t,n)),e.superRefine=t=>e.check(_Y(t)),e.overwrite=t=>e.check(HK(t)),e.optional=()=>QJ(e),e.exactOptional=()=>eY(e),e.nullable=()=>nY(e),e.nullish=()=>QJ(nY(e)),e.nonoptional=t=>cY(e,t),e.array=()=>NJ(e),e.or=t=>RJ([e,t]),e.and=t=>HJ(e,t),e.transform=t=>fY(e,XJ(t)),e.default=t=>iY(e,t),e.prefault=t=>oY(e,t),e.catch=t=>uY(e,t),e.pipe=t=>fY(e,t),e.readonly=()=>mY(e),e.describe=t=>{let n=e.clone();return KG.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return KG.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return KG.get(e);let n=e.clone();return KG.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Zq=Z(`_ZodString`,(e,t)=>{AW.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oq(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(IK(...t)),e.includes=(...t)=>e.check(zK(...t)),e.startsWith=(...t)=>e.check(BK(...t)),e.endsWith=(...t)=>e.check(VK(...t)),e.min=(...t)=>e.check(PK(...t)),e.max=(...t)=>e.check(NK(...t)),e.length=(...t)=>e.check(FK(...t)),e.nonempty=(...t)=>e.check(PK(1,...t)),e.lowercase=t=>e.check(LK(t)),e.uppercase=t=>e.check(RK(t)),e.trim=()=>e.check(WK()),e.normalize=(...t)=>e.check(UK(...t)),e.toLowerCase=()=>e.check(GK()),e.toUpperCase=()=>e.check(KK()),e.slugify=()=>e.check(qK())}),Qq=Z(`ZodString`,(e,t)=>{AW.init(e,t),Zq.init(e,t),e.email=t=>e.check(YG(tJ,t)),e.url=t=>e.check(tK(iJ,t)),e.jwt=t=>e.check(gK(yJ,t)),e.emoji=t=>e.check(nK(aJ,t)),e.guid=t=>e.check(XG(nJ,t)),e.uuid=t=>e.check(ZG(rJ,t)),e.uuidv4=t=>e.check(QG(rJ,t)),e.uuidv6=t=>e.check($G(rJ,t)),e.uuidv7=t=>e.check(eK(rJ,t)),e.nanoid=t=>e.check(rK(oJ,t)),e.guid=t=>e.check(XG(nJ,t)),e.cuid=t=>e.check(iK(sJ,t)),e.cuid2=t=>e.check(aK(cJ,t)),e.ulid=t=>e.check(oK(lJ,t)),e.base64=t=>e.check(pK(gJ,t)),e.base64url=t=>e.check(mK(_J,t)),e.xid=t=>e.check(sK(uJ,t)),e.ksuid=t=>e.check(cK(dJ,t)),e.ipv4=t=>e.check(lK(fJ,t)),e.ipv6=t=>e.check(uK(pJ,t)),e.cidrv4=t=>e.check(dK(mJ,t)),e.cidrv6=t=>e.check(fK(hJ,t)),e.e164=t=>e.check(hK(vJ,t)),e.datetime=t=>e.check(kq(t)),e.date=t=>e.check(jq(t)),e.time=t=>e.check(Nq(t)),e.duration=t=>e.check(Fq(t))});function $q(e){return qG(Qq,e)}var eJ=Z(`ZodStringFormat`,(e,t)=>{jW.init(e,t),Zq.init(e,t)}),tJ=Z(`ZodEmail`,(e,t)=>{PW.init(e,t),eJ.init(e,t)}),nJ=Z(`ZodGUID`,(e,t)=>{MW.init(e,t),eJ.init(e,t)}),rJ=Z(`ZodUUID`,(e,t)=>{NW.init(e,t),eJ.init(e,t)}),iJ=Z(`ZodURL`,(e,t)=>{FW.init(e,t),eJ.init(e,t)}),aJ=Z(`ZodEmoji`,(e,t)=>{IW.init(e,t),eJ.init(e,t)}),oJ=Z(`ZodNanoID`,(e,t)=>{LW.init(e,t),eJ.init(e,t)}),sJ=Z(`ZodCUID`,(e,t)=>{RW.init(e,t),eJ.init(e,t)}),cJ=Z(`ZodCUID2`,(e,t)=>{zW.init(e,t),eJ.init(e,t)}),lJ=Z(`ZodULID`,(e,t)=>{BW.init(e,t),eJ.init(e,t)}),uJ=Z(`ZodXID`,(e,t)=>{VW.init(e,t),eJ.init(e,t)}),dJ=Z(`ZodKSUID`,(e,t)=>{HW.init(e,t),eJ.init(e,t)}),fJ=Z(`ZodIPv4`,(e,t)=>{qW.init(e,t),eJ.init(e,t)}),pJ=Z(`ZodIPv6`,(e,t)=>{JW.init(e,t),eJ.init(e,t)}),mJ=Z(`ZodCIDRv4`,(e,t)=>{YW.init(e,t),eJ.init(e,t)}),hJ=Z(`ZodCIDRv6`,(e,t)=>{XW.init(e,t),eJ.init(e,t)}),gJ=Z(`ZodBase64`,(e,t)=>{QW.init(e,t),eJ.init(e,t)}),_J=Z(`ZodBase64URL`,(e,t)=>{eG.init(e,t),eJ.init(e,t)}),vJ=Z(`ZodE164`,(e,t)=>{tG.init(e,t),eJ.init(e,t)}),yJ=Z(`ZodJWT`,(e,t)=>{rG.init(e,t),eJ.init(e,t)}),bJ=Z(`ZodNumber`,(e,t)=>{iG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sq(e,t,n,r),e.gt=(t,n)=>e.check(AK(t,n)),e.gte=(t,n)=>e.check(jK(t,n)),e.min=(t,n)=>e.check(jK(t,n)),e.lt=(t,n)=>e.check(OK(t,n)),e.lte=(t,n)=>e.check(kK(t,n)),e.max=(t,n)=>e.check(kK(t,n)),e.int=t=>e.check(CJ(t)),e.safe=t=>e.check(CJ(t)),e.positive=t=>e.check(AK(0,t)),e.nonnegative=t=>e.check(jK(0,t)),e.negative=t=>e.check(OK(0,t)),e.nonpositive=t=>e.check(kK(0,t)),e.multipleOf=(t,n)=>e.check(MK(t,n)),e.step=(t,n)=>e.check(MK(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function xJ(e){return xK(bJ,e)}var SJ=Z(`ZodNumberFormat`,(e,t)=>{aG.init(e,t),bJ.init(e,t)});function CJ(e){return CK(SJ,e)}var wJ=Z(`ZodBoolean`,(e,t)=>{oG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cq(e,t,n,r)});function TJ(e){return wK(wJ,e)}var EJ=Z(`ZodNull`,(e,t)=>{sG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lq(e,t,n,r)});function DJ(e){return TK(EJ,e)}var OJ=Z(`ZodUnknown`,(e,t)=>{cG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function kJ(){return EK(OJ)}var AJ=Z(`ZodNever`,(e,t)=>{lG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uq(e,t,n,r)});function jJ(e){return DK(AJ,e)}var MJ=Z(`ZodArray`,(e,t)=>{dG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hq(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(PK(t,n)),e.nonempty=t=>e.check(PK(1,t)),e.max=(t,n)=>e.check(NK(t,n)),e.length=(t,n)=>e.check(FK(t,n)),e.unwrap=()=>e.element});function NJ(e,t){return JK(MJ,e,t)}var PJ=Z(`ZodObject`,(e,t)=>{gG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gq(e,t,n,r),BH(e,`shape`,()=>t.shape),e.keyof=()=>KJ(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:kJ()}),e.loose=()=>e.clone({...e._zod.def,catchall:kJ()}),e.strict=()=>e.clone({...e._zod.def,catchall:jJ()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>rU(e,t),e.safeExtend=t=>iU(e,t),e.merge=t=>aU(e,t),e.pick=t=>tU(e,t),e.omit=t=>nU(e,t),e.partial=(...t)=>oU(ZJ,e,t[0]),e.required=(...t)=>sU(sY,e,t[0])});function FJ(e,t){return new PJ({type:`object`,shape:e??{},...Q(t)})}function IJ(e,t){return new PJ({type:`object`,shape:e,catchall:kJ(),...Q(t)})}var LJ=Z(`ZodUnion`,(e,t)=>{vG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_q(e,t,n,r),e.options=t.options});function RJ(e,t){return new LJ({type:`union`,options:e,...Q(t)})}var zJ=Z(`ZodDiscriminatedUnion`,(e,t)=>{LJ.init(e,t),yG.init(e,t)});function BJ(e,t,n){return new zJ({type:`union`,options:t,discriminator:e,...Q(n)})}var VJ=Z(`ZodIntersection`,(e,t)=>{bG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vq(e,t,n,r)});function HJ(e,t){return new VJ({type:`intersection`,left:e,right:t})}var UJ=Z(`ZodRecord`,(e,t)=>{CG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yq(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function WJ(e,t,n){return new UJ({type:`record`,keyType:e,valueType:t,...Q(n)})}var GJ=Z(`ZodEnum`,(e,t)=>{wG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dq(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new GJ({...t,checks:[],...Q(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new GJ({...t,checks:[],...Q(r),entries:i})}});function KJ(e,t){return new GJ({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Q(t)})}var qJ=Z(`ZodLiteral`,(e,t)=>{TG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fq(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function JJ(e,t){return new qJ({type:`literal`,values:Array.isArray(e)?e:[e],...Q(t)})}var YJ=Z(`ZodTransform`,(e,t)=>{EG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mq(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new AH(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(pU(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(pU(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function XJ(e){return new YJ({type:`transform`,transform:e})}var ZJ=Z(`ZodOptional`,(e,t)=>{OG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function QJ(e){return new ZJ({type:`optional`,innerType:e})}var $J=Z(`ZodExactOptional`,(e,t)=>{kG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function eY(e){return new $J({type:`optional`,innerType:e})}var tY=Z(`ZodNullable`,(e,t)=>{AG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nY(e){return new tY({type:`nullable`,innerType:e})}var rY=Z(`ZodDefault`,(e,t)=>{jG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function iY(e,t){return new rY({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():YH(t)}})}var aY=Z(`ZodPrefault`,(e,t)=>{NG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function oY(e,t){return new aY({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():YH(t)}})}var sY=Z(`ZodNonOptional`,(e,t)=>{PG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cY(e,t){return new sY({type:`nonoptional`,innerType:e,...Q(t)})}var lY=Z(`ZodCatch`,(e,t)=>{IG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uY(e,t){return new lY({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var dY=Z(`ZodPipe`,(e,t)=>{LG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tq(e,t,n,r),e.in=t.in,e.out=t.out});function fY(e,t){return new dY({type:`pipe`,in:e,out:t})}var pY=Z(`ZodReadonly`,(e,t)=>{zG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mY(e){return new pY({type:`readonly`,innerType:e})}var hY=Z(`ZodCustom`,(e,t)=>{VG.init(e,t),Xq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pq(e,t,n,r)});function gY(e,t={}){return YK(hY,e,t)}function _Y(e){return XK(e)}function vY(e,t){return fY(XJ(e),t)}function yY(e){return JG(Qq,e)}function bY(e){return SK(bJ,e)}var xY=e=>typeof e==`string`,SY=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},CY=e=>e==null?``:String(e),wY=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},TY=/###/g,EY=e=>e&&e.includes(`###`)?e.replace(TY,`.`):e,DY=e=>!e||xY(e),OY=(e,t,n)=>{let r=xY(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(DY(e))return{};let t=EY(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return DY(e)?{}:{obj:e,k:EY(r[i])}},kY=(e,t,n)=>{let{obj:r,k:i}=OY(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=OY(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=OY(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},AY=(e,t,n,r)=>{let{obj:i,k:a}=OY(e,t,Object);i[a]=i[a]||[],i[a].push(n)},jY=(e,t)=>{let{obj:n,k:r}=OY(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},MY=(e,t,n)=>{let r=jY(e,n);return r===void 0?jY(t,n):r},NY=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?xY(e[r])||e[r]instanceof String||xY(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):NY(e[r],t[r],n):e[r]=t[r]);return e},PY=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),FY={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},IY=e=>xY(e)?e.replace(/[&<>"'\/]/g,e=>FY[e]):e,LY=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},RY=[` `,`,`,`?`,`!`,`;`],zY=new LY(20),BY=(e,t,n)=>{t||=``,n||=``;let r=RY.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=zY.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},VY=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},HY=e=>e?.replace(/_/g,`-`),UY={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},WY=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||UY,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>xY(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),xY(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},GY=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},KY=class extends GY{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):xY(n)&&i?o.push(...n.split(i)):o.push(n)));let s=jY(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!xY(n)?s:VY(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),kY(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(xY(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=jY(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?NY(s,n,i):s={...s,...n},kY(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},qY={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},JY=Symbol(`i18next/PATH_KEY`);function YY(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===JY?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function XY(e,t){let{[JY]:n}=e(YY()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var ZY=e=>!xY(e)&&typeof e!=`boolean`&&typeof e!=`number`,QY=class e extends GY{constructor(e,t={}){super(),wY([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=WY.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=ZY(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!BY(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:xY(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:xY(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=XY(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?XY(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!xY(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let ee=ZY(E),D=Object.prototype.toString.apply(E);if(y&&E&&ee&&!_.includes(D)&&!(xY(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:ZY(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&xY(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=xY(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!xY(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=xY(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=qY.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return xY(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?XY(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!xY(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(xY(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!xY(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},$Y=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=WY.create(`languageUtils`)}getScriptPartFromCode(e){if(e=HY(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=HY(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(xY(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),xY(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return xY(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):xY(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},eX={zero:0,one:1,two:2,few:3,many:4,other:5},tX={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},nX=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=WY.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=HY(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),tX;if(!e.match(/-|_/))return tX;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>eX[e]-eX[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},rX=(e,t,n,r=`.`,i=!0)=>{let a=MY(e,t,n);return!a&&i&&xY(n)&&(a=VY(e,n,r),a===void 0&&(a=VY(t,n,r))),a},iX=e=>e.replace(/\$/g,`$$$$`),aX=class{constructor(e={}){this.logger=WY.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?IY:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?PY(i):a||`{{`,this.suffix=o?PY(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?PY(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?PY(l):``,this.nestingPrefix=d?PY(d):f||PY(`$t(`),this.nestingSuffix=p?PY(p):m||PY(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=rX(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(rX(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=xY(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !xY(a)&&!this.useRawValueToEscape&&(a=CY(a));let s=t.safeValue(a);if(e=e.replace(i[0],iX(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${PY(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!xY(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!xY(i))return i;xY(i)||(i=CY(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},oX=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},sX=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(HY(r),i),t[o]=s),s(n)}},cX=e=>(t,n,r)=>e(HY(n),r)(t),lX=class{constructor(e={}){this.logger=WY.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?sX:cX;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=sX(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=oX(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},uX=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},dX=class extends GY{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=WY.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{AY(n.loaded,[i],a),uX(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();xY(e)&&(e=this.languageUtils.toResolveHierarchy(e)),xY(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},fX=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),xY(e[1])&&(t.defaultValue=e[1]),xY(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),pX=e=>(xY(e.ns)&&(e.ns=[e.ns]),xY(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),xY(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),mX=()=>{},hX=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},gX=class e extends GY{constructor(e={},t){if(super(),this.options=pX(e),this.services={},this.logger=WY,this.modules={external:[]},hX(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(xY(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=fX();this.options={...n,...this.options,...pX(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?WY.init(r(this.modules.logger),this.options):WY.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:lX;let t=new $Y(this.options);this.store=new KY(this.options.resources,this.options);let n=this.services;n.logger=WY,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new nX(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new aX(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new dX(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new QY(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=mX,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=SY(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=mX){let n=t,r=xY(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=SY();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=mX,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&qY.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=SY();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=xY(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(xY(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=XY(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=XY(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=XY(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return xY(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=SY();return this.options.ns?(xY(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=SY();xY(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new $Y(fX());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=mX){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new KY(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...fX().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new aX(n)}return a.translator=new QY(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();gX.createInstance,gX.dir,gX.init,gX.loadResources,gX.reloadResources,gX.use,gX.changeLanguage,gX.getFixedT;var _X=gX.t;gX.exists,gX.setDefaultNamespace,gX.hasLoadedNamespace,gX.loadNamespaces,gX.loadLanguages;var vX={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,"!doctype":!0,"!DOCTYPE":!0},yX=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function bX(e){let t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(vX[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){let t=e.indexOf(`-->`);return{type:`comment`,comment:t===-1?``:e.slice(4,t)}}let r=new RegExp(yX),i=null;for(;i=r.exec(e),i!==null;)if(i[0].trim())if(i[1]){let e=i[1].trim(),n=[e,null],a=e.indexOf(`=`);a>-1&&(n=[e.slice(0,a),e.slice(a+1)]),t.attrs[n[0]]=n[1],r.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var xX=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,SX=/<\/?([^\s]+?)[/\s>]/,CX=/^\s*$/,wX=/^(script|style)$/i,TX=`\0`,EX=Object.create(null);function DX(e){e.forEach(function(e){if(e.type===`text`){e.content=e.content.split(TX).join(`<`);return}if(e.type===`comment`){e.comment=e.comment.split(TX).join(`<`);return}for(let t in e.attrs){let n=e.attrs[t];typeof n==`string`&&n.indexOf(TX)>-1&&(e.attrs[t]=n.split(TX).join(`<`))}e.children.length&&DX(e.children)})}function OX(e,t){let n=t&&t.components||EX,r=t&&t.allowedTags,i=!1;if(r){let t=typeof r==`function`?r:function(e){return r.indexOf(e)>-1},n=``,a=0;xX.lastIndex=0;let o;for(;o=xX.exec(e);){let r=o[0];n+=e.slice(a,o.index);let s=r.match(SX);r.startsWith(`<!--`)||s&&t(s[1])?(n+=r,a=o.index+r.length):(i=!0,n+=TX,a=o.index+1,xX.lastIndex=a)}e=n+e.slice(a)}let a=[],o=[],s,c=-1,l=!1,u=0,d;if(e.indexOf(`<`)!==0){let t=e.indexOf(`<`);a.push({type:`text`,content:t===-1?e:e.substring(0,t)})}let f=[],p;for(;p=xX.exec(e);)f.push(p);return f.forEach(function(e,t){let n=e[0];if(!n||n.startsWith(`<!--`))return;let r=0,i=0,a=-1,o=null;for(let e=0;e<n.length;e++){let t=n.charAt(e);o?t===o&&(o=null):t===`"`||t===`'`?o=t:t===`<`?(r++,r===2&&(a=e)):t===`>`&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(n.charAt(a+1));if(r>i&&s){let e=n.substring(0,a),r=n.substring(e.length);f[t][0]=r,f[t].index+=e.length}}),f.forEach(function(t,r){let i=t[0];if(!i)return;let p=t.index;if(p<u)return;if(l){if(i!==`</`+s.name+`>`)return;l=!1}let m=i.charAt(1)!==`/`,h=i.startsWith(`<!--`),g=p+i.length,_=e.charAt(g),v=f[r+1],y;if(_===`<`&&v){let t=e.substring(g,v.index);y=t.split(`<`).length>t.split(`>`).length}let b;if(h){let t=bX(i);if(c<0)return a.push(t),a;b=o[c],b.children.push(t);let n=e.slice(g,v?v.index:void 0);return n.length>0&&b.children.push({type:`text`,content:n}),a}if(m){c++,s=bX(i),s.type===`tag`&&n[s.name]&&(s.type=`component`,l=!0);let t=!1;if(!l&&!s.voidElement&&wX.test(s.name)){t=!0,d||=e.toLowerCase();let n=d.indexOf(`</`+s.name.toLowerCase()+`>`,g),r=n===-1?e.length:n,i=e.slice(g,r);i&&s.children.push({type:`text`,content:i}),u=r}!s.voidElement&&!l&&!t&&_&&_!==`<`&&s.children.push({type:`text`,content:e.slice(g,v?v.index:void 0)}),c===0&&a.push(s),b=o[c-1],b&&b.children.push(s),o[c]=s}if((!m||s.voidElement)&&(c>-1&&(s.voidElement||s.name===i.slice(2,-1))&&(c--,s=c===-1?a:o[c]),!l&&(_!==`<`||y)&&_)){b=c===-1?a:o[c].children;let t=v?v.index:-1,n=e.slice(g,t===-1?void 0:t);CX.test(n)&&(n=` `),(t>-1&&c+b.length>=0||n!==` `)&&b.push({type:`text`,content:n})}}),i&&DX(a),a}function kX(e){let t=[];for(let n in e)e[n]===null?t.push(n):t.push(n+`="`+String(e[n]).replace(/"/g,`&quot;`)+`"`);return t.length?` `+t.join(` `):``}function AX(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:{let n=t.voidElement&&t.name.toLowerCase()!==`!doctype`?`/>`:`>`;return e+=`<`+t.name+(t.attrs?kX(t.attrs):``)+n,t.voidElement?e:e+t.children.reduce(AX,``)+`</`+t.name+`>`}case`comment`:return e+=`<!--`+t.comment+`-->`,e}}function jX(e){return e.reduce(function(e,t){return e+AX(``,t)},``)}var MX={parse:OX,stringify:jX},NX=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);BX(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},PX={},FX=(e,t,n,r)=>{BX(n)&&PX[n]||(BX(n)&&(PX[n]=new Date),NX(e,t,n,r))},IX=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},LX=(e,t,n)=>{e.loadNamespaces(t,IX(e,n))},RX=(e,t,n,r)=>{if(BX(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return LX(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,IX(e,r))},zX=(e,t,n={})=>!t.languages||!t.languages.length?(FX(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),BX=e=>typeof e==`string`,VX=e=>typeof e==`object`&&!!e,HX=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,UX={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},WX=e=>UX[e],GX=e=>e.replace(HX,WX),KX={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:GX,transDefaultProps:void 0},qX=(e={})=>{KX={...KX,...e}},JX=()=>KX,YX,XX=e=>{YX=e},ZX=()=>YX,QX=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},$X=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?tZ(t):t},eZ=e=>Array.isArray(e)&&e.every(j.isValidElement),tZ=e=>Array.isArray(e)?e:[e],nZ=(e,t)=>{let n={...t};return n.props={...t.props,...e.props},n},rZ=e=>{let t={};if(!e)return t;let n=e=>{tZ(e).forEach(e=>{BX(e)||(QX(e)?n($X(e)):VX(e)&&!(0,j.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t},iZ=(e,t,n,r)=>{if(!e)return``;let i=``,a=tZ(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(BX(e)){i+=`${e}`;return}if((0,j.isValidElement)(e)){let{props:s,type:c}=e,l=Object.keys(s).length,u=o.indexOf(c)>-1,d=s.children;if(!d&&u&&!l){i+=`<${c}/>`;return}if(!d&&(!u||l)||s.i18nIsDynamicList){i+=`<${a}></${a}>`;return}if(u&&l<=1){let e=BX(d)?d:iZ(d,t,n,r);i+=`<${c}>${e}</${c}>`;return}let f=iZ(d,t,n,r);i+=`<${a}>${f}</${a}>`;return}if(e===null){NX(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(VX(e)){let{format:t,...a}=e,o=Object.keys(a);if(o.length===1){let e=t?`${o[0]}, ${t}`:o[0];i+=`{{${e}}}`;return}NX(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}NX(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},aZ=(e,t,n,r,i,a,o)=>{if(n===``)return[];let s=i.transKeepBasicHtmlNodesFor||[],c=n&&new RegExp(s.map(e=>`<${e}`).join(`|`)).test(n);if(!e&&!t&&!c&&!o)return[n];let l=t??{},u=e=>{tZ(e).forEach(e=>{BX(e)||(QX(e)?u($X(e)):VX(e)&&!(0,j.isValidElement)(e)&&Object.assign(l,e))})};u(e);let d=Object.keys(l),f=MX.parse(`<0>${n}</0>`,{allowedTags:e=>/^\d+$/.test(e)||s.indexOf(e)>-1||d.indexOf(e)>-1}),p={...l,...a},m=(e,t,n)=>{let r=$X(e),i=g(r,t.children,n);return eZ(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},h=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,j.cloneElement)(e,{key:r},i?void 0:t))):n.push(...j.Children.map([e],e=>{if(e.type===j.Fragment||e.props?.i18nIsDynamicList!==void 0){let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`children`||t===`i18nIsDynamicList`||(n[t]=e.props[t])}),(0,j.createElement)(e.type,n,i?null:t)}let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`ref`||t===`children`||(n[t]=e.props[t])}),(0,j.cloneElement)(e,n,i?null:t)}))},g=(e,n,a)=>{let l=tZ(e),u=tZ(n),d={};return u.reduce((e,n,u)=>{let f=n.children?.[0]?.content&&r.services.interpolator.interpolate(n.children[0].content,p,r.language);if(n.type===`tag`){let _=l[parseInt(n.name,10)];!_&&t&&(_=t[n.name]),a.length===1&&!_&&(_=a[0][n.name]),_||={};let v={...n.attrs};o&&Object.keys(v).forEach(e=>{let t=v[e];BX(t)&&(v[e]=GX(t))});let y=Object.keys(v).length===0?_:nZ({props:v},_),b=(0,j.isValidElement)(y),x=b&&QX(n,!0)&&!n.voidElement,S=c&&VX(y)&&y.dummy&&!b,C=VX(t)&&Object.hasOwnProperty.call(t,n.name);if(BX(y)){let t=r.services.interpolator.interpolate(y,p,r.language);e.push(t)}else if(QX(y)||x)h(y,m(y,n,a),e,u);else if(S)h(y,g(l,n.children,a),e,u);else if(Number.isNaN(parseFloat(n.name)))if(C)h(y,m(y,n,a),e,u,n.voidElement);else if(i.transSupportBasicHtmlNodes&&s.indexOf(n.name)>-1)if(n.voidElement)e.push((0,j.createElement)(n.name,{key:`${n.name}-${u}`}));else{let t=d[n.name]||0;d[n.name]=t+1;let r,i=0;for(let e=0;e<l.length;e+=1){let a=l[e];if((0,j.isValidElement)(a)&&a.type===n.name){if(i===t){r=a;break}i+=1}}let o=g(r?tZ($X(r)):l,n.children,a);e.push((0,j.createElement)(n.name,{key:`${n.name}-${u}`},o))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=g(l,n.children,a);e.push(`<${n.name}>${t}</${n.name}>`)}else if(VX(y)&&!b){let t=n.children[0]?f:null;t&&e.push(t)}else h(y,f,e,u,n.children.length!==1||!f)}else if(n.type===`text`){let t=i.transWrapTextNodes,a=typeof i.unescape==`function`?i.unescape:JX().unescape,s=o?a(r.services.interpolator.interpolate(n.content,p,r.language)):r.services.interpolator.interpolate(n.content,p,r.language);t?e.push((0,j.createElement)(t,{key:`${n.name}-${u}`},s)):e.push(s)}return e},[])};return $X(g([{dummy:!0,children:e||[]}],f,tZ(e||[]))[0])},oZ=(e,t,n)=>{let r=e.key||t,i=(0,j.cloneElement)(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function a(){return(0,j.createElement)(j.Fragment,null,i)}return(0,j.createElement)(a,{key:r})},sZ=(e,t)=>e.map((e,n)=>oZ(e,n,t)),cZ=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:oZ(e[r],r,t)})}),n},lZ=(e,t,n,r)=>e?Array.isArray(e)?sZ(e,t):VX(e)?cZ(e,t):(FX(n,`TRANS_INVALID_COMPONENTS`,`<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null,uZ=e=>!VX(e)||Array.isArray(e)?!1:Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function dZ({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:l,i18n:u,t:d,shouldUnescape:f,...p}){let m=u||ZX();if(!m)return FX(m,`NO_I18NEXT_INSTANCE`,`Trans: You need to pass in an i18next instance using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`,{i18nKey:r}),e;let h=d||m.t.bind(m)||(e=>e),g={...JX(),...m.options?.react},_=l||h.ns||m.options?.defaultNS;_=BX(_)?[_]:_||[`translation`];let{transDefaultProps:v}=g,y=v?.tOptions?{...v.tOptions,...a}:a,b=f??v?.shouldUnescape,x=v?.values?{...v.values,...o}:o,S=v?.components?{...v.components,...c}:c,C=iZ(e,g,m,r),w=s||y?.defaultValue||C||g.transEmptyNodeValue||(typeof r==`function`?XY(r):r),{hashTransKey:T}=g,E=r||(T?T(C||w):C||w);o=m.options?.interpolation?.defaultVariables?x&&Object.keys(x).length>0?{...x,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables}:x;let ee=rZ(e);ee&&typeof ee.count==`number`&&t===void 0&&(t=ee.count);let D=o||t!==void 0&&!m.options?.interpolation?.alwaysFormat||!e?y.interpolation:{interpolation:{...y.interpolation,prefix:`#$?`,suffix:`?$#`}},te={...y,context:i||y.context,count:t,...o,...D,defaultValue:w,ns:_},ne=E?h(E,te):w;ne===E&&w&&(ne=w);let re=lZ(S,ne,m,r),O=re||e,k=null;uZ(re)&&(k=re,O=e);let ie=aZ(O,k,ne,m,g,te,b),ae=n??g.defaultTransParent;return ae?(0,j.createElement)(ae,p,ie):ie}var fZ={type:`3rdParty`,init(e){qX(e.options.react),XX(e)}},pZ=(0,j.createContext)(),mZ=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function hZ({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:l,i18n:u,t:d,shouldUnescape:f,...p}){let{i18n:m,defaultNS:h}=(0,j.useContext)(pZ)||{},g=u||m||ZX(),_=d||g?.t.bind(g);return dZ({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a,values:o,defaults:s,components:c,ns:l||_?.ns||h||g?.options?.defaultNS,i18n:g,t:d,shouldUnescape:f,...p})}var gZ=i((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),_Z=i(((e,t)=>{t.exports=gZ()})),vZ=_Z(),yZ={t:(e,t)=>{if(BX(t))return t;if(VX(t)&&BX(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},bZ=()=>()=>{},xZ=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,j.useContext)(pZ)||{},a=n||r||ZX();a&&!a.reportNamespaces&&(a.reportNamespaces=new mZ),a||FX(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,j.useMemo)(()=>({...JX(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=BX(l)?[l]:l||[`translation`],d=(0,j.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,j.useRef)(0),p=(0,j.useCallback)(e=>{if(!a)return bZ;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,j.useRef)(),h=(0,j.useCallback)(()=>{if(!a)return yZ;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>zX(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,j.useState)(0),{t:v,ready:y}=(0,vZ.useSyncExternalStore)(p,h,h);(0,j.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?RX(a,t.lng,d,e):LX(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,j.useRef)(null),S=(0,j.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,j.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(FX(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y){let e=!1;try{e=!1}catch{}throw e&&FX(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?RX(a,t.lng,d,n):LX(a,d,n)})}return w},SZ=[`__proto__`,`constructor`,`prototype`];function CZ(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());if(SZ.indexOf(o)>-1)return{};!e[o]&&n&&(e[o]=new n),e=e[o]}if(i())return{};var s=r(a.shift());return SZ.indexOf(s)>-1?{}:{obj:e,k:s}}function wZ(e,t,n){var r=CZ(e,t,Object),i=r.obj,a=r.k;i!==void 0&&(i[a]=n)}function TZ(e,t){var n=CZ(e,t),r=n.obj,i=n.k;if(r)return r[i]}var EZ=[],DZ=EZ.forEach,OZ=EZ.slice;function kZ(e){return DZ.call(OZ.call(arguments,1),function(t){if(t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];SZ.indexOf(i)>-1||e[i]===void 0&&(e[i]=t[i])}}),e}function AZ(e,t){let n=t&&t.cache?t.cache:BZ,r=t&&t.serializer?t.serializer:RZ;return(t&&t.strategy?t.strategy:FZ)(e,{cache:n,serializer:r})}function jZ(e){return e==null||typeof e==`number`||typeof e==`boolean`}function MZ(e,t,n,r){let i=jZ(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function NZ(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function PZ(e,t,n,r,i){return n.bind(t,e,r,i)}function FZ(e,t){let n=e.length===1?MZ:NZ;return PZ(e,this,n,t.cache.create(),t.serializer)}function IZ(e,t){return PZ(e,this,NZ,t.cache.create(),t.serializer)}function LZ(e,t){return PZ(e,this,MZ,t.cache.create(),t.serializer)}var RZ=function(){return JSON.stringify(arguments)},zZ=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},BZ={create:function(){return new zZ}},VZ={variadic:IZ,monadic:LZ},HZ=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function UZ(e){let t={};return e.replace(HZ,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var WZ=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function GZ(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(WZ).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function KZ(e){return e.replace(/^(.*?)-/,``)}var qZ=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,JZ=/^(@+)?(\+|#+)?[rs]?$/g,YZ=/(\*)(0+)|(#+)(0+)|(0+)/g,XZ=/^(0+)$/;function ZZ(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(JZ,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function QZ(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function $Z(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!XZ.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function eQ(e){return QZ(e)||{}}function tQ(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=KZ(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...eQ(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...eQ(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(YZ,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(XZ.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(qZ.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(qZ,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...ZZ(e)});continue}if(JZ.test(n.stem)){t={...t,...ZZ(n.stem)};continue}let e=QZ(n.stem);e&&(t={...t,...e});let r=$Z(n.stem);r&&(t={...t,...r})}return t}var nQ=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function rQ(e){return e.type===0}function iQ(e){return e.type===1}function aQ(e){return e.type===2}function oQ(e){return e.type===3}function sQ(e){return e.type===4}function cQ(e){return e.type===5}function lQ(e){return e.type===6}function uQ(e){return e.type===7}function dQ(e){return e.type===8}function fQ(e){return!!(e&&typeof e==`object`&&e.type===0)}function pQ(e){return!!(e&&typeof e==`object`&&e.type===1)}var mQ=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,hQ={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function gQ(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=_Q(t);for((c==`H`||c==`k`)&&(s=0);s-- >0;)n+=`a`;for(;o-- >0;)n=c+n}else i===`J`?n+=`H`:n+=i}return n}function _Q(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(hQ[r||``]||hQ[n||``]||hQ[`${n}-001`]||hQ[`001`])[0]}var vQ=RegExp(`^${mQ.source}*`),yQ=RegExp(`${mQ.source}*$`);function bQ(e,t){return{start:e,end:t}}var xQ=!!Object.fromEntries,SQ=!!String.prototype.trimStart,CQ=!!String.prototype.trimEnd,wQ=xQ?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},TQ=SQ?function(e){return e.trimStart()}:function(e){return e.replace(vQ,``)},EQ=CQ?function(e){return e.trimEnd()}:function(e){return e.replace(yQ,``)},DQ=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function OQ(e,t){return DQ.lastIndex=t,DQ.exec(e)[1]??``}function kQ(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var AQ=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=kQ(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:bQ(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:bQ(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,bQ(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&jQ(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:bQ(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!jQ(this.char()))return this.error(23,bQ(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:bQ(n,this.clonePosition())},err:null}:this.error(23,bQ(o,this.clonePosition()))):this.error(26,bQ(e,this.clonePosition()))}else return this.error(27,bQ(n,this.clonePosition()))}else return this.error(23,bQ(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&NQ(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=bQ(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!MQ(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,bQ(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,bQ(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,bQ(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,bQ(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:bQ(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,bQ(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,bQ(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=OQ(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:bQ(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,bQ(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=EQ(n.val);if(r.length===0)return this.error(6,bQ(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:bQ(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=bQ(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=TQ(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}else{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=gQ(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?UZ(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,bQ(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,bQ(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=bQ(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:wQ(c.val),location:u},err:null}:{val:{type:6,value:n,options:wQ(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,bQ(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,bQ(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,bQ(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=GZ(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?tQ(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=bQ(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,bQ(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:bQ(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,bQ(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,bQ(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=bQ(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&PQ(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function jQ(e){return e>=97&&e<=122||e>=65&&e<=90}function MQ(e){return jQ(e)||e===47}function NQ(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function PQ(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function FQ(e){e.forEach(e=>{if(delete e.location,cQ(e)||lQ(e))for(let t in e.options)delete e.options[t].location,FQ(e.options[t].value);else aQ(e)&&fQ(e.style)||(oQ(e)||sQ(e))&&pQ(e.style)?delete e.style.location:dQ(e)&&FQ(e.children)})}function IQ(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new AQ(e,t).parse();if(n.err){let e=SyntaxError(nQ[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||FQ(n.val),n.val}var LQ=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},RQ=class extends LQ{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},zQ=class extends LQ{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},BQ=class extends LQ{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function VQ(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function HQ(e){return typeof e==`function`}function UQ(e,t,n,r,i,a,o){if(e.length===1&&rQ(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(rQ(c)){s.push({type:0,value:c.value});continue}if(uQ(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new BQ(e,o);let l=i[e];if(iQ(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(oQ(c)){let e=typeof c.style==`string`?r.date[c.style]:pQ(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(sQ(c)){let e=typeof c.style==`string`?r.time[c.style]:pQ(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(aQ(c)){let e=typeof c.style==`string`?r.number[c.style]:fQ(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(dQ(c)){let{children:e,value:l}=c,u=i[l];if(!HQ(u))throw new zQ(l,`function`,o);let d=u(UQ(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(cQ(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new RQ(c.value,l,Object.keys(c.options),o);s.push(...UQ(a.value,t,n,r,i));continue}if(lQ(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new LQ(`Intl.PluralRules is not available in this environment.
115
115
  Try polyfilling it using "@formatjs/intl-pluralrules"
116
116
  `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new RQ(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...UQ(a.value,t,n,r,i,u-(c.offset||0)));continue}}return VQ(s)}function WQ(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function GQ(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=WQ(e[r],t[r]),n),{...e}):e}function KQ(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function qQ(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:AZ((...e)=>new Intl.NumberFormat(...e),{cache:KQ(e.number),strategy:VZ.variadic}),getDateTimeFormat:AZ((...e)=>new Intl.DateTimeFormat(...e),{cache:KQ(e.dateTime),strategy:VZ.variadic}),getPluralRules:AZ((...e)=>new Intl.PluralRules(...e),{cache:KQ(e.pluralRules),strategy:VZ.variadic})}}var JQ=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>UQ(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=GQ(e.formats,r),this.formatters=i&&i.formatters||qQ(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=IQ}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function YQ(e,t){return e$(e)||$Q(e,t)||ZQ(e,t)||XQ()}function XQ(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
117
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZQ(e,t){if(e){if(typeof e==`string`)return QQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QQ(e,t)}}function QQ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $Q(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function e$(e){if(Array.isArray(e))return e}function t$(e){"@babel/helpers - typeof";return t$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t$(e)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?n$(Object(n),!0).forEach(function(t){i$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a$(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s$(e,t,n){return t&&o$(e.prototype,t),n&&o$(e,n),e}function c$(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var l$=function(){function e(t){a$(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return s$(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=kZ(r,t,this.options||{},c$()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=JQ,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?r$(r$({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=TZ(this.mem,s));try{return c||(c=new JQ(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&wZ(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||t$(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=YQ(r[n],2),a=i[0],o=i[1];typeof o==`string`?t[a]=o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):t[a]=o}return t}}]),e}();l$.type=`i18nFormat`;var u$;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(u$||={});var d$=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},f$=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,p$=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?f$(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new d$(`"${e}" plugin is not implemented on ${c}`,u$.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}else throw new d$(`"${e}.${t}()" is not implemented on ${c}`,u$.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,`name`,{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{g({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=d$,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},m$=(e=>e.Capacitor=p$(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),h$=m$.registerPlugin,g$=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new m$.Exception(e,u$.Unimplemented)}unavailable(e=`not available`){return new m$.Exception(e,u$.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},_$=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),v$=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),y$=class extends g${async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=v$(n).trim(),r=v$(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=_$(e.key),n=_$(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};h$(`CapacitorCookies`,{web:()=>new y$});var b$=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),x$=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},S$=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,C$=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=x$(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else (r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},w$=class extends g${async request(e){let t=C$(e,e.webFetchExtra),n=S$(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await b$(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};h$(`CapacitorHttp`,{web:()=>new w$});var T$;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(T$||={});var E$;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(E$||={});var D$=class extends g${async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};h$(`SystemBars`,{web:()=>new D$});function O$(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var k$=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return k$(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return k$(t)(e)}}}},A$=(e,t)=>(n,r,i)=>{let a={storage:O$(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return k$(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},j$;(function(e){e[e.Sunday=1]=`Sunday`,e[e.Monday=2]=`Monday`,e[e.Tuesday=3]=`Tuesday`,e[e.Wednesday=4]=`Wednesday`,e[e.Thursday=5]=`Thursday`,e[e.Friday=6]=`Friday`,e[e.Saturday=7]=`Saturday`})(j$||={});var M$=h$(`LocalNotifications`,{web:()=>s(()=>import(`./web-GduBYCpB.js`).then(e=>new e.LocalNotificationsWeb),[])}),N$=h$(`Network`,{web:()=>s(()=>import(`./web-Bm6v7mdW.js`).then(e=>new e.NetworkWeb),[])}),P$=(0,j.createContext)({});function F$(e){let t=(0,j.useRef)(null);return t.current===null&&(t.current=e()),t.current}var I$=typeof window<`u`?j.useLayoutEffect:j.useEffect,L$=(0,j.createContext)(null);function R$(e,t){e.indexOf(t)===-1&&e.push(t)}function z$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var B$=(e,t,n)=>n>t?t:n<e?e:n,V$={},H$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),U$=e=>typeof e==`object`&&!!e,W$=e=>/^0[^.\s]+$/u.test(e);function G$(e){let t;return()=>(t===void 0&&(t=e()),t)}var K$=e=>e,q$=(...e)=>e.reduce((e,t)=>n=>t(e(n))),J$=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Y$=class{constructor(){this.subscriptions=[]}add(e){return R$(this.subscriptions,e),()=>z$(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},X$=e=>e*1e3,Z$=e=>e/1e3,Q$=(e,t)=>t?1e3/t*e:0,$$=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},e1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,t1=1e-7,n1=12;function r1(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=e1(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>t1&&++s<n1);return o}function i1(e,t,n,r){if(e===t&&n===r)return K$;let i=t=>r1(t,0,1,e,n);return e=>e===0||e===1?e:e1(i(e),t,r)}var a1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o1=e=>t=>1-e(1-t),s1=i1(.33,1.53,.69,.99),c1=o1(s1),l1=a1(c1),u1=e=>e>=1?1:(e*=2)<1?.5*c1(e):.5*(2-2**(-10*(e-1))),d1=e=>1-Math.sin(Math.acos(e)),f1=o1(d1),p1=a1(d1),m1=i1(.42,0,1,1),h1=i1(0,0,.58,1),g1=i1(.42,0,.58,1),_1=e=>Array.isArray(e)&&typeof e[0]!=`number`;function v1(e,t){return _1(e)?e[$$(0,e.length,t)]:e}var y1=e=>Array.isArray(e)&&typeof e[0]==`number`,b1={linear:K$,easeIn:m1,easeInOut:g1,easeOut:h1,circIn:d1,circInOut:p1,circOut:f1,backIn:c1,backInOut:l1,backOut:s1,anticipate:u1},x1=e=>typeof e==`string`,S1=e=>{if(y1(e)){e.length;let[t,n,r,i]=e;return i1(t,n,r,i)}else if(x1(e))return b1[e],`${e}`,b1[e];return e},C1=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function w1(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var T1=40;function E1(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=C1.reduce((e,t)=>(e[t]=w1(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=V$.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,T1),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:C1.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<C1.length;t++)o[C1[t]].cancel(e)},state:i,steps:o}}var{schedule:D1,cancel:O1,state:k1,steps:A1}=E1(typeof requestAnimationFrame<`u`?requestAnimationFrame:K$,!0),j1;function M1(){j1=void 0}var N1={now:()=>(j1===void 0&&N1.set(k1.isProcessing||V$.useManualTiming?k1.timestamp:performance.now()),j1),set:e=>{j1=e,queueMicrotask(M1)}},P1=e=>t=>typeof t==`string`&&t.startsWith(e),F1=P1(`--`),I1=P1(`var(--`),L1=e=>I1(e)?R1.test(e.split(`/*`)[0].trim()):!1,R1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function z1(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var B1={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},V1={...B1,transform:e=>B$(0,1,e)},H1={...B1,default:1},U1=e=>Math.round(e*1e5)/1e5,W1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G1(e){return e==null}var K1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q1=(e,t)=>n=>!!(typeof n==`string`&&K1.test(n)&&n.startsWith(e)||t&&!G1(n)&&Object.prototype.hasOwnProperty.call(n,t)),J1=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(W1);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Y1=e=>B$(0,255,e),X1={...B1,transform:e=>Math.round(Y1(e))},Z1={test:q1(`rgb`,`red`),parse:J1(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+X1.transform(e)+`, `+X1.transform(t)+`, `+X1.transform(n)+`, `+U1(V1.transform(r))+`)`};function Q1(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $1={test:q1(`#`),parse:Q1,transform:Z1.transform},e0=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),t0=e0(`deg`),n0=e0(`%`),$=e0(`px`),r0=e0(`vh`),i0=e0(`vw`),a0={...n0,parse:e=>n0.parse(e)/100,transform:e=>n0.transform(e*100)},o0={test:q1(`hsl`,`hue`),parse:J1(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+n0.transform(U1(t))+`, `+n0.transform(U1(n))+`, `+U1(V1.transform(r))+`)`},s0={test:e=>Z1.test(e)||$1.test(e)||o0.test(e),parse:e=>Z1.test(e)?Z1.parse(e):o0.test(e)?o0.parse(e):$1.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Z1.transform(e):o0.transform(e),getAnimatableNone:e=>{let t=s0.parse(e);return t.alpha=0,s0.transform(t)}},c0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l0(e){return isNaN(e)&&typeof e==`string`&&(e.match(W1)?.length||0)+(e.match(c0)?.length||0)>0}var u0=`number`,d0=`color`,f0=`var`,p0=`var(`,m0="${}",h0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function g0(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(h0,e=>(s0.test(e)?(r.color.push(a),i.push(d0),n.push(s0.parse(e))):e.startsWith(p0)?(r.var.push(a),i.push(f0),n.push(e)):(r.number.push(a),i.push(u0),n.push(parseFloat(e))),++a,m0)).split(m0),indexes:r,types:i}}function _0(e){return g0(e).values}function v0({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===u0?i+=U1(r[a]):e===d0?i+=s0.transform(r[a]):i+=r[a]}return i}}function y0(e){return v0(g0(e))}var b0=e=>typeof e==`number`?0:s0.test(e)?s0.getAnimatableNone(e):e,x0=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:b0(e);function S0(e){let t=g0(e);return v0(t)(t.values.map((e,n)=>x0(e,t.split[n])))}var C0={test:l0,parse:_0,createTransformer:y0,getAnimatableNone:S0};function w0(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=w0(s,r,e+1/3),a=w0(s,r,e),o=w0(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function E0(e,t){return n=>n>0?t:e}var D0=(e,t,n)=>e+(t-e)*n,O0=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},k0=[$1,Z1,o0],A0=e=>k0.find(t=>t.test(e));function j0(e){let t=A0(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===o0&&(n=T0(n)),n}var M0=(e,t)=>{let n=j0(e),r=j0(t);if(!n||!r)return E0(e,t);let i={...n};return e=>(i.red=O0(n.red,r.red,e),i.green=O0(n.green,r.green,e),i.blue=O0(n.blue,r.blue,e),i.alpha=D0(n.alpha,r.alpha,e),Z1.transform(i))},N0=new Set([`none`,`hidden`]);function P0(e,t){return N0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function F0(e,t){return n=>D0(e,t,n)}function I0(e){return typeof e==`number`?F0:typeof e==`string`?L1(e)?E0:s0.test(e)?M0:B0:Array.isArray(e)?L0:typeof e==`object`?s0.test(e)?M0:R0:E0}function L0(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>I0(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function R0(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=I0(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function z0(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var B0=(e,t)=>{let n=C0.createTransformer(t),r=g0(e),i=g0(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?N0.has(e)&&!i.values.length||N0.has(t)&&!r.values.length?P0(e,t):q$(L0(z0(r,i),i.values),n):(`${e}${t}`,E0(e,t))};function V0(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?D0(e,t,n):I0(e)(e,t)}var H0=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>D1.update(t,e),stop:()=>O1(t),now:()=>k1.isProcessing?k1.timestamp:N1.now()}},U0=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},W0=2e4;function G0(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function K0(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(G0(r),W0);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Z$(i)}}var q0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function J0(e,t){return e*Math.sqrt(1-t*t)}var Y0=12;function X0(e,t,n){let r=n;for(let n=1;n<Y0;n++)r-=e(r)/t(r);return r}var Z0=.001;function Q0({duration:e=q0.duration,bounce:t=q0.bounce,velocity:n=q0.velocity,mass:r=q0.mass}){let i,a;q0.maxDuration;let o=1-t;o=B$(q0.minDamping,q0.maxDamping,o),e=B$(q0.minDuration,q0.maxDuration,Z$(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=J0(t,o),c=Math.exp(-i);return Z0-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=J0(t**2,o);return(-i(t)+Z0>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Z0+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=X0(i,a,s);if(e=X$(e),isNaN(c))return{stiffness:q0.stiffness,damping:q0.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var $0=[`duration`,`bounce`],e2=[`stiffness`,`damping`,`mass`];function t2(e,t){return t.some(t=>e[t]!==void 0)}function n2(e){let t={velocity:q0.velocity,stiffness:q0.stiffness,damping:q0.damping,mass:q0.mass,isResolvedFromDuration:!1,...e};if(!t2(e,e2)&&t2(e,$0))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*B$(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q0.mass,stiffness:i,damping:a}}else{let n=Q0({...e,velocity:0});t={...t,...n,mass:q0.mass},t.isResolvedFromDuration=!0}return t}function r2(e=q0.visualDuration,t=q0.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=n2({...n,velocity:-Z$(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Z$(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?q0.restSpeed.granular:q0.restSpeed.default,i||=v?q0.restDelta.granular:q0.restDelta.default;let y,b,x,S,C,w;if(h<1)x=J0(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>X$(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=X$(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=X$(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(G0(T),W0),t=U0(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}r2.applyToOptions=e=>{let t=K0(e,100,r2);return e.ease=t.ease,e.duration=X$(t.duration),e.type=`keyframes`,e};var i2=5;function a2(e,t,n){let r=Math.max(t-i2,0);return Q$(n-e(r),t-r)}function o2({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=r2({keyframes:[f.value,m(f.value)],velocity:a2(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function s2(e,t,n){let r=[],i=n||V$.mix||V0,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=q$(Array.isArray(t)?t[n]||K$:t,a)),r.push(a)}return r}function c2(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=s2(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=J$(e[r],e[r+1],n);return s[r](i)};return n?t=>l(B$(e[0],e[a-1],t)):l}function l2(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=J$(0,t,r);e.push(D0(n,1,i))}}function u2(e){let t=[0];return l2(t,e.length-1),t}function d2(e,t){return e.map(e=>e*t)}function f2(e,t){return e.map(()=>t||g1).splice(0,e.length-1)}function p2({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=_1(r)?r.map(S1):S1(r),a={done:!1,value:t[0]},o=c2(d2(n&&n.length===t.length?n:u2(t),e),t,{ease:Array.isArray(i)?i:f2(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var m2=e=>e!==null;function h2(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(m2),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var g2={decay:o2,inertia:o2,tween:p2,keyframes:p2,spring:r2};function _2(e){typeof e.type==`string`&&(e.type=g2[e.type])}var v2=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},y2=e=>e/100,b2=class extends v2{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==N1.now()&&this.tick(N1.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;_2(e);let{type:t=p2,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||p2;s!==p2&&typeof o[0]!=`number`&&(this.mixKeyframes=q$(y2,V0(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=G0(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=B$(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==o2&&(b.value=h2(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Z$(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Z$(e)}get time(){return Z$(this.currentTime)}set time(e){e=X$(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return a2(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N1.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Z$(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=H0,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(N1.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function x2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var S2=e=>e*180/Math.PI,C2=e=>T2(S2(Math.atan2(e[1],e[0]))),w2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:C2,rotateZ:C2,skewX:e=>S2(Math.atan(e[1])),skewY:e=>S2(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},T2=e=>(e%=360,e<0&&(e+=360),e),E2=C2,D2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),k2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:D2,scaleY:O2,scale:e=>(D2(e)+O2(e))/2,rotateX:e=>T2(S2(Math.atan2(e[6],e[5]))),rotateY:e=>T2(S2(Math.atan2(-e[2],e[0]))),rotateZ:E2,rotate:E2,skewX:e=>S2(Math.atan(e[4])),skewY:e=>S2(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A2(e){return+!!e.includes(`scale`)}function j2(e,t){if(!e||e===`none`)return A2(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=k2,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=w2,i=t}if(!i)return A2(t);let a=r[t],o=i[1].split(`,`).map(N2);return typeof a==`function`?a(o):o[a]}var M2=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return j2(n,t)};function N2(e){return parseFloat(e.trim())}var P2=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],F2=new Set([...P2,`pathRotation`]),I2=e=>e===B1||e===$,L2=new Set([`x`,`y`,`z`]),R2=P2.filter(e=>!L2.has(e));function z2(e){let t=[];return R2.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var B2={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>j2(t,`x`),y:(e,{transform:t})=>j2(t,`y`)};B2.translateX=B2.x,B2.translateY=B2.y;var V2=new Set,H2=!1,U2=!1,W2=!1;function G2(){if(U2){let e=Array.from(V2).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=z2(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}U2=!1,H2=!1,V2.forEach(e=>e.complete(W2)),V2.clear()}function K2(){V2.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(U2=!0)})}function q2(){W2=!0,K2(),G2(),W2=!1}var J2=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(V2.add(this),H2||(H2=!0,D1.read(K2),D1.resolveKeyframes(G2))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}x2(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),V2.delete(this)}cancel(){this.state===`scheduled`&&(V2.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Y2=e=>e.startsWith(`--`);function X2(e,t,n){Y2(t)?e.style.setProperty(t,n):e.style[t]=n}var Z2={};function Q2(e,t){let n=G$(e);return()=>Z2[t]??n()}var $2=Q2(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),e4=Q2(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),t4=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,n4={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function r4(e,t){if(e)return typeof e==`function`?e4()?U0(e,t):`ease-out`:y1(e)?t4(e):Array.isArray(e)?e.map(e=>r4(e,t)||n4.easeOut):n4[e]}function i4(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=r4(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function a4(e){return typeof e==`function`&&`applyToOptions`in e}function o4({type:e,...t}){return a4(e)&&e4()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var s4=class extends v2{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=o4(e);this.animation=i4(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=h2(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),X2(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Z$(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Z$(e)}get time(){return Z$(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X$(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&$2()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),K$):r(this)}},c4={anticipate:u1,backInOut:l1,circInOut:p1};function l4(e){return e in c4}function u4(e){typeof e.ease==`string`&&l4(e.ease)&&(e.ease=c4[e.ease])}var d4=10,f4=class extends s4{constructor(e){u4(e),_2(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new b2({...a,autoplay:!1}),s=Math.max(d4,N1.now()-this.startTime),c=B$(0,d4,s-d4),l=o.sample(s).value,{name:u}=this.options;i&&u&&X2(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},p4=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(C0.test(e)||e===`0`)&&!e.startsWith(`url(`));function m4(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function h4(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=p4(i,t),s=p4(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:m4(e)||(n===`spring`||a4(n))&&r}function g4(e){e.duration=0,e.type=`keyframes`}var _4=new Set([`opacity`,`clipPath`,`filter`,`transform`]),v4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function y4(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&v4.test(e[t]))return!0;return!1}var b4=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),x4=G$(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function S4(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return x4()&&n&&(_4.has(n)||b4.has(n)&&y4(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var C4=40,w4=class extends v2{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N1.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||J2;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N1.now();let u=!0;h4(e,i,a,o)||(u=!1,(V$.instantAnimations||!s)&&l?.(h2(e,n,t)),e[0]=e[e.length-1],g4(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>C4?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&S4(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new f4({...d,element:p})}catch{m=new b2(d)}else m=new b2(d);m.finished.then(()=>{this.notifyFinished()}).catch(K$),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),q2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},T4=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return E4(this.animations,`duration`)}get iterationDuration(){return E4(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function E4(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var D4=class extends T4{then(e,t){return this.finished.finally(e).then(()=>{})}};function O4(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var k4=30,A4=e=>!isNaN(parseFloat(e)),j4={current:void 0},M4=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N1.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=N1.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=A4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Y$);let n=this.events[e].add(t);return e===`change`?()=>{n(),D1.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return j4.current&&j4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N1.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>k4)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,k4);return Q$(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function N4(e,t){return new M4(e,t)}function P4(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function F4(e,t){let n=e?.[t]??e?.default??e;return n===e?n:P4(n,e)}var I4={type:`spring`,stiffness:500,damping:25,restSpeed:10},L4=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),R4={type:`keyframes`,duration:.8},z4={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},B4=(e,{keyframes:t})=>t.length>2?R4:F2.has(e)?e.startsWith(`scale`)?L4(t[1]):I4:z4,V4=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function H4(e){for(let t in e)if(!V4.has(t))return!0;return!1}var U4=(e,t,n,r={},i,a)=>o=>{let s=F4(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=X$(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};H4(s)||Object.assign(u,B4(e,u)),u.duration&&=X$(u.duration),u.repeatDelay&&=X$(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(g4(u),u.delay===0&&(d=!0)),(V$.instantAnimations||V$.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,g4(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=h2(u.keyframes,s);if(e!==void 0){D1.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new b2(u):new w4(u)},W4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G4(e){let t=W4.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function K4(e,t,n=1){`${e}`;let[r,i]=G4(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return H$(e)?parseFloat(e):e}return L1(i)?K4(i,t,n+1):i}function q4(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function J4(e,t,n,r){if(typeof t==`function`){let[i,a]=q4(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=q4(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Y4(e,t,n){let r=e.getProps();return J4(r,t,n===void 0?r.custom:n,e)}var X4=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...P2]),Z4=e=>Array.isArray(e);function Q4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,N4(n))}function $4(e){return Z4(e)?e[e.length-1]||0:e}function e3(e,t){let{transitionEnd:n={},transition:r={},...i}=Y4(e,t)||{};i={...i,...n};for(let t in i)Q4(e,t,$4(i[t]))}var t3=e=>!!(e&&e.getVelocity);function n3(e){return!!(t3(e)&&e.add)}function r3(e,t){let n=e.getValue(`willChange`);if(n3(n))return n.add(t);if(!n&&V$.WillChange){let n=new V$.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function i3(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var a3=`data-`+i3(`framerAppearId`);function o3(e){return e.props[a3]}function s3({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function c3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?P4(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&s3(f,t))continue;let o={delay:n,...F4(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){D1.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=o3(e);if(n){let e=window.MotionHandoffAnimation(n,t,D1);e!==null&&(o.startTime=e,p=!0)}}r3(e,t);let m=l??e.shouldReduceMotion;r.start(U4(t,r,i,m&&X4.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>D1.update(()=>{o&&e3(e,o)});d.length?Promise.all(d).then(t):t()}return d}function l3(e,t,n={}){let r=Y4(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(c3(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return u3(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function u3(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(l3(c,t,{...o,delay:n+(typeof r==`function`?0:r)+O4(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function d3(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>l3(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=l3(e,t,n);else{let i=typeof t==`function`?Y4(e,t,n.custom):t;r=Promise.all(c3(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var f3={test:e=>e===`auto`,parse:e=>e},p3=e=>t=>t.test(e),m3=[B1,$,n0,t0,i0,r0,f3],h3=e=>m3.find(p3(e));function g3(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||W$(e)}var _3=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function v3(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(W1)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_3.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var y3=/\b([a-z-]*)\(.*?\)/gu,b3={...C0,getAnimatableNone:e=>{let t=e.match(y3);return t?t.map(v3).join(` `):e}},x3={...C0,getAnimatableNone:e=>{let t=C0.parse(e);return C0.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},S3={...B1,transform:Math.round},C3={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:t0,pathRotation:t0,rotateX:t0,rotateY:t0,rotateZ:t0,scale:H1,scaleX:H1,scaleY:H1,scaleZ:H1,skew:t0,skewX:t0,skewY:t0,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:V1,originX:a0,originY:a0,originZ:$,zIndex:S3,fillOpacity:V1,strokeOpacity:V1,numOctaves:S3},w3={...C3,color:s0,backgroundColor:s0,outlineColor:s0,fill:s0,stroke:s0,borderColor:s0,borderTopColor:s0,borderRightColor:s0,borderBottomColor:s0,borderLeftColor:s0,filter:b3,WebkitFilter:b3,mask:x3,WebkitMask:x3},T3=e=>w3[e],E3=new Set([b3,x3]);function D3(e,t){let n=T3(e);return E3.has(n)||(n=C0),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var O3=new Set([`auto`,`none`,`0`]);function k3(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!O3.has(t)&&g0(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=D3(n,i)}var A3=class extends J2{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),L1(r))){let i=K4(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!X4.has(n)||e.length!==2)return;let[r,i]=e,a=h3(r),o=h3(i);if(z1(r)!==z1(i)&&B2[n]){this.needsMeasurement=!0;return}if(a!==o)if(I2(a)&&I2(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else B2[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||g3(e[t]))&&n.push(t);n.length&&k3(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=B2[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=B2[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},j3=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function M3(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var N3=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function P3(e){return U$(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:F3,cancel:ste}=E1(queueMicrotask,!1),I3={x:!1,y:!1};function L3(){return I3.x||I3.y}function R3(e){return e===`x`||e===`y`?I3[e]?null:(I3[e]=!0,()=>{I3[e]=!1}):I3.x||I3.y?null:(I3.x=I3.y=!0,()=>{I3.x=I3.y=!1})}function z3(e,t){let n=M3(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function B3(e){return!(e.pointerType===`touch`||L3())}function V3(e,t,n={}){let[r,i,a]=z3(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!B3(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var H3=(e,t)=>t?e===t?!0:H3(e,t.parentElement):!1,U3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,W3=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function G3(e){return W3.has(e.tagName)||e.isContentEditable===!0}var K3=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function q3(e){return K3.has(e.tagName)||e.isContentEditable===!0}var J3=new WeakSet;function Y3(e){return t=>{t.key===`Enter`&&e(t)}}function X3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Z3=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Y3(()=>{if(J3.has(n))return;X3(n,`down`);let e=Y3(()=>{X3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>X3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Q3(e){return U3(e)&&!L3()}var $3=new WeakSet;function e6(e,t,n={}){let[r,i,a]=z3(e,n),o=e=>{let r=e.currentTarget;if(!Q3(e)||$3.has(e))return;J3.add(r),n.stopPropagation&&$3.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),J3.has(r)&&J3.delete(r),Q3(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||H3(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),P3(e)&&(e.addEventListener(`focus`,e=>Z3(e,i)),!G3(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function t6(e){return U$(e)&&`ownerSVGElement`in e}var n6=new WeakMap,r6,i6=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:t6(r)&&`getBBox`in r?r.getBBox()[t]:r[n],a6=i6(`inline`,`width`,`offsetWidth`),o6=i6(`block`,`height`,`offsetHeight`);function s6({target:e,borderBoxSize:t}){n6.get(e)?.forEach(n=>{n(e,{get width(){return a6(e,t)},get height(){return o6(e,t)}})})}function c6(e){e.forEach(s6)}function l6(){typeof ResizeObserver>`u`||(r6=new ResizeObserver(c6))}function u6(e,t){r6||l6();let n=M3(e);return n.forEach(e=>{let n=n6.get(e);n||(n=new Set,n6.set(e,n)),n.add(t),r6?.observe(e)}),()=>{n.forEach(e=>{let n=n6.get(e);n?.delete(t),n?.size||r6?.unobserve(e)})}}var d6=new Set,f6;function p6(){f6=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};d6.forEach(t=>t(e))},window.addEventListener(`resize`,f6)}function m6(e){return d6.add(e),f6||p6(),()=>{d6.delete(e),!d6.size&&typeof f6==`function`&&(window.removeEventListener(`resize`,f6),f6=void 0)}}function h6(e,t){return typeof e==`function`?m6(e):u6(e,t)}var g6={value:null,addProjectionMetrics:null};function _6(e){return t6(e)&&e.tagName===`svg`}function v6(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=c2(i,a,o);return t?s(r):s}function y6(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=x6(e.get()),r=x6(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new b2({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(b6(e,s)),D1.postRender(u)},c),t3(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(b6(t,s),!1)):e.set(b6(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function b6(e,t){return t?e+t:e}function x6(e){return typeof e==`number`?e:parseFloat(e)}var S6=[...m3,s0,C0],C6=e=>S6.find(p3(e)),w6=()=>({translate:0,scale:1,origin:0,originPoint:0}),T6=()=>({x:w6(),y:w6()}),E6=()=>({min:0,max:0}),D6=()=>({x:E6(),y:E6()}),O6=new WeakMap;function k6(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function A6(e){return typeof e==`string`||Array.isArray(e)}var j6=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],M6=[`initial`,...j6];function N6(e){return k6(e.animate)||M6.some(t=>A6(e[t]))}function P6(e){return!!(N6(e)||e.variants)}function F6(e,t,n){for(let r in t){let i=t[r],a=n[r];if(t3(i))e.addValue(r,i);else if(t3(a))e.addValue(r,N4(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,N4(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var I6={current:null},L6={current:!1},R6=typeof window<`u`;function z6(){if(L6.current=!0,R6)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>I6.current=e.matches;e.addEventListener(`change`,t),t()}else I6.current=!1}var B6=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],V6={};function H6(e){V6=e}function U6(){return V6}var W6=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=J2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=N1.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,D1.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=N6(t),this.isVariantNode=P6(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&t3(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,O6.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(L6.current||z6(),this.shouldReduceMotion=I6.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),O1(this.notifyUpdate),O1(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&_4.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new s4({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:X$(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=F2.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&D1.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in V6){let t=V6[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D6()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<B6.length;t++){let n=B6[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=F6(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=N4(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(H$(n)||W$(n))?n=parseFloat(n):!C6(n)&&C0.test(t)&&(n=D3(e,t)),this.setBaseTarget(e,t3(n)?n.get():n)),t3(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=J4(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!t3(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Y$),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){F3.render(this.render)}},G6=class extends W6{constructor(){super(...arguments),this.KeyframeResolver=A3}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;t3(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},K6=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function q6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Y6(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function X6(e){return e===void 0||e===1}function Z6({scale:e,scaleX:t,scaleY:n}){return!X6(e)||!X6(t)||!X6(n)}function Q6(e){return Z6(e)||$6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $6(e){return e8(e.x)||e8(e.y)}function e8(e){return e&&e!==`0%`}function t8(e,t,n){return n+t*(e-n)}function n8(e,t,n,r,i){return i!==void 0&&(e=t8(e,i,r)),t8(e,n,r)+t}function r8(e,t=0,n=1,r,i){e.min=n8(e.min,t,n,r,i),e.max=n8(e.max,t,n,r,i)}function i8(e,{x:t,y:n}){r8(e.x,t.translate,t.scale,t.originPoint),r8(e.y,n.translate,n.scale,n.originPoint)}var a8=.999999999999,o8=1.0000000000001;function s8(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(c8(e.x,-a.scroll.offset.x),c8(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,i8(e,o)),r&&Q6(a.latestValues)&&d8(e,a.latestValues,a.layout?.layoutBox))}t.x<o8&&t.x>a8&&(t.x=1),t.y<o8&&t.y>a8&&(t.y=1)}function c8(e,t){e.min+=t,e.max+=t}function l8(e,t,n,r,i=.5){r8(e,t,n,D0(e.min,e.max,i),r)}function u8(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function d8(e,t,n){let r=n??e;l8(e.x,u8(t.x,r.x),t.scaleX,t.scale,t.originX),l8(e.y,u8(t.y,r.y),t.scaleY,t.scale,t.originY)}function f8(e,t){return q6(Y6(e.getBoundingClientRect(),t))}function p8(e,t,n){let r=f8(e,n),{scroll:i}=t;return i&&(c8(r.x,i.offset.x),c8(r.y,i.offset.y)),r}var m8={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},h8=P2.length;function g8(e,t,n){let r=``,i=!0;for(let a=0;a<h8;a++){let o=P2[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=N3(s,C3[o]);if(!c){i=!1;let t=m8[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${N3(a,C3.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function _8(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(F2.has(e)){o=!0;continue}else if(F1(e)){i[e]=n;continue}else{let t=N3(n,C3[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=g8(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function v8(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function y8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var b8={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${y8(e,t.target.x)}% ${y8(e,t.target.y)}%`}},x8={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=C0.parse(e);if(i.length>5)return r;let a=C0.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=D0(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},S8={borderRadius:{...b8,applyTo:[...j3]},borderTopLeftRadius:b8,borderTopRightRadius:b8,borderBottomLeftRadius:b8,borderBottomRightRadius:b8,boxShadow:x8};function C8(e,{layout:t,layoutId:n}){return F2.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!S8[e]||e===`opacity`)}function w8(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(t3(r[t])||i&&t3(i[t])||C8(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function T8(e){return window.getComputedStyle(e)}var E8=class extends G6{constructor(){super(...arguments),this.type=`html`,this.renderInstance=v8}readValueFromInstance(e,t){if(F2.has(t))return this.projection?.isProjecting?A2(t):M2(e,t);{let n=T8(e),r=(F1(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return f8(e,t)}build(e,t,n){_8(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return w8(e,t,n)}};function D8(e,t){return e in t}var O8=class extends W6{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(D8(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return D6()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},k8={offset:`stroke-dashoffset`,array:`stroke-dasharray`},A8={offset:`strokeDashoffset`,array:`strokeDasharray`};function j8(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?k8:A8;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var M8=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function N8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(_8(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of M8)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&j8(d,i,a,o,!1)}var P8=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),F8=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function I8(e,t,n,r){v8(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(P8.has(n)?n:i3(n),t.attrs[n])}function L8(e,t,n){let r=w8(e,t,n);for(let n in e)if(t3(e[n])||t3(t[n])){let t=P2.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var R8=class extends G6{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=D6}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(F2.has(t)){let e=T3(t);return e&&e.default||0}return t=P8.has(t)?t:i3(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return L8(e,t,n)}build(e,t,n){N8(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){I8(e,t,n,r)}mount(e){this.isSVGTag=F8(e.tagName),super.mount(e)}},z8=M6.length;function B8(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&B8(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<z8;n++){let r=M6[n],i=e.props[r];(A6(i)||i===!1)&&(t[r]=i)}return t}function V8(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var H8=[...j6].reverse(),U8=j6.length;function W8(e){return t=>Promise.all(t.map(({animation:t,options:n})=>d3(e,t,n)))}function G8(e){let t=W8(e),n=J8(),r=!0,i=!1,a=t=>(n,r)=>{let i=Y4(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=B8(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<U8;t++){let p=H8[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=A6(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||k6(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=K8(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Z4(t)&&Z4(n)?!V8(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Y4(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=O4(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Y4(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=J8(),i=!0}}}function K8(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!V8(t,e):!1}function q8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J8(){return{animate:q8(!0),whileInView:q8(),whileHover:q8(),whileTap:q8(),whileDrag:q8(),whileFocus:q8(),exit:q8()}}function Y8(e,t){e.min=t.min,e.max=t.max}function X8(e,t){Y8(e.x,t.x),Y8(e.y,t.y)}function Z8(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Q8=1e-4,$8=1-Q8,e5=1+Q8,t5=.01,n5=0-t5,r5=0+t5;function i5(e){return e.max-e.min}function a5(e,t,n){return Math.abs(e-t)<=n}function o5(e,t,n,r=.5){e.origin=r,e.originPoint=D0(t.min,t.max,e.origin),e.scale=i5(n)/i5(t),e.translate=D0(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$8&&e.scale<=e5||isNaN(e.scale))&&(e.scale=1),(e.translate>=n5&&e.translate<=r5||isNaN(e.translate))&&(e.translate=0)}function s5(e,t,n,r){o5(e.x,t.x,n.x,r?r.originX:void 0),o5(e.y,t.y,n.y,r?r.originY:void 0)}function c5(e,t,n,r=0){e.min=(r?D0(n.min,n.max,r):n.min)+t.min,e.max=e.min+i5(t)}function l5(e,t,n,r){c5(e.x,t.x,n.x,r?.x),c5(e.y,t.y,n.y,r?.y)}function u5(e,t,n,r=0){let i=r?D0(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+i5(t)}function d5(e,t,n,r){u5(e.x,t.x,n.x,r?.x),u5(e.y,t.y,n.y,r?.y)}function f5(e,t,n,r,i){return e-=t,e=t8(e,1/n,r),i!==void 0&&(e=t8(e,1/i,r)),e}function p5(e,t=0,n=1,r=.5,i,a=e,o=e){if(n0.test(t)&&(t=parseFloat(t),t=D0(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=D0(a.min,a.max,r);e===a&&(s-=t),e.min=f5(e.min,t,n,s,i),e.max=f5(e.max,t,n,s,i)}function m5(e,t,[n,r,i],a,o){p5(e,t[n],t[r],t[i],t.scale,a,o)}var h5=[`x`,`scaleX`,`originX`],g5=[`y`,`scaleY`,`originY`];function _5(e,t,n,r){m5(e.x,t,h5,n?n.x:void 0,r?r.x:void 0),m5(e.y,t,g5,n?n.y:void 0,r?r.y:void 0)}function v5(e){return e.translate===0&&e.scale===1}function y5(e){return v5(e.x)&&v5(e.y)}function b5(e,t){return e.min===t.min&&e.max===t.max}function x5(e,t){return b5(e.x,t.x)&&b5(e.y,t.y)}function S5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function C5(e,t){return S5(e.x,t.x)&&S5(e.y,t.y)}function w5(e){return i5(e.x)/i5(e.y)}function T5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function E5(e){return[e(`x`),e(`y`)]}function D5(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var O5=j3.length,k5=e=>typeof e==`string`?parseFloat(e):e,A5=e=>typeof e==`number`||$.test(e);function j5(e,t,n,r,i,a){i?(e.opacity=D0(0,n.opacity??1,N5(r)),e.opacityExit=D0(t.opacity??1,0,P5(r))):a&&(e.opacity=D0(t.opacity??1,n.opacity??1,r));for(let i=0;i<O5;i++){let a=j3[i],o=M5(t,a),s=M5(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||A5(o)===A5(s)?(e[a]=Math.max(D0(k5(o),k5(s),r),0),(n0.test(s)||n0.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=D0(t.rotate||0,n.rotate||0,r))}function M5(e,t){return e[t]===void 0?e.borderRadius:e[t]}var N5=F5(0,.5,f1),P5=F5(.5,.95,K$);function F5(e,t,n){return r=>r<e?0:r>t?1:n(J$(e,t,r))}function I5(e,t,n){let r=t3(e)?e:N4(e);return r.start(U4(``,r,t,n)),r.animation}function L5(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var R5=(e,t)=>e.depth-t.depth,z5=class{constructor(){this.children=[],this.isDirty=!1}add(e){R$(this.children,e),this.isDirty=!0}remove(e){z$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(R5),this.isDirty=!1,this.children.forEach(e)}};function B5(e,t){let n=N1.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(O1(r),e(a-t))};return D1.setup(r,!0),()=>O1(r)}function V5(e){return t3(e)?e.get():e}var H5=class{constructor(){this.members=[]}add(e){R$(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(z$(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(z$(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},U5={hasAnimatedSinceResize:!0,hasEverUpdated:!1},W5={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},G5=[``,`X`,`Y`,`Z`],K5=1e3,q5=0;function J5(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Y5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=o3(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,D1,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Y5(r)}function X5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=q5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,g6.value&&(W5.nodes=W5.calculatedTargetDeltas=W5.calculatedProjections=0),this.nodes.forEach($5),this.nodes.forEach(c7),this.nodes.forEach(l7),this.nodes.forEach(e7),g6.addProjectionMetrics&&g6.addProjectionMetrics(W5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Y$),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=t6(t)&&!_6(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;D1.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=B5(i,250),U5.hasAnimatedSinceResize&&(U5.hasAnimatedSinceResize=!1,this.nodes.forEach(s7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||g7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!C5(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...F4(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||s7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),O1(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(u7),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(r7),this.nodes.forEach(n7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(i7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(a7),this.nodes.forEach(o7),this.nodes.forEach(Z5),this.nodes.forEach(Q5)):this.nodes.forEach(i7),this.clearAllSnapshots();let e=N1.now();k1.delta=B$(0,1e3/60,e-k1.timestamp),k1.timestamp=e,k1.isProcessing=!0,A1.update.process(k1),A1.preRender.process(k1),A1.render.process(k1),k1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,F3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t7),this.sharedNodes.forEach(d7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D1.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D1.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!i5(this.snapshot.measuredBox.x)&&!i5(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=D6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!y5(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Q6(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),b7(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return D6();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(S7))){let{scroll:e}=this.root;e&&(c8(t.x,e.offset.x),c8(t.y,e.offset.y))}return t}removeElementScroll(e){let t=D6();if(X8(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&X8(t,e),c8(t.x,i.offset.x),c8(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||D6();X8(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(c8(r.x,-n.scroll.offset.x),c8(r.y,-n.scroll.offset.y)),Q6(n.latestValues)&&d8(r,n.latestValues,n.layout?.layoutBox)}return Q6(this.latestValues)&&d8(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=D6();X8(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Q6(n.latestValues))continue;let r;n.instance&&(Z6(n.latestValues)&&n.updateSnapshot(),r=D6(),X8(r,n.measurePageBox())),_5(t,n.latestValues,n.snapshot?.layoutBox,r)}return Q6(this.latestValues)&&_5(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==k1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=k1.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=D6(),this.targetWithTransforms=D6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):X8(this.target,this.layout.layoutBox),i8(this.target,this.targetDelta)):X8(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),g6.value&&W5.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Z6(this.parent.latestValues)||$6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D6(),this.relativeTargetOrigin=D6(),d5(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),X8(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===k1.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;X8(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;s8(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=D6());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Z8(this.prevProjectionDelta.x,this.projectionDelta.x),Z8(this.prevProjectionDelta.y,this.projectionDelta.y)),s5(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!T5(this.projectionDelta.x,this.prevProjectionDelta.x)||!T5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),g6.value&&W5.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=T6(),this.projectionDelta=T6(),this.projectionDeltaWithTransform=T6()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=T6();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=D6(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(h7));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=D0(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=D0(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(f7(o.x,e.x,n),f7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(d5(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m7(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&x5(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=D6(),X8(f,this.relativeTarget)),c&&(this.animationValues=a,j5(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(O1(this.pendingAnimation),void 0),this.pendingAnimation=D1.update(()=>{U5.hasAnimatedSinceResize=!0,this.motionValue||=N4(0),this.motionValue.jump(0,!1),this.currentAnimation=I5(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(K5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&x7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||D6();let t=i5(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=i5(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}X8(t,n),d8(t,i),s5(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new H5),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&J5(`z`,e,r,this.animationValues);for(let t=0;t<G5.length;t++)J5(`rotate${G5[t]}`,e,r,this.animationValues),J5(`skew${G5[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=V5(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=V5(t?.pointerEvents)||``),this.hasProjected&&!Q6(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=D5(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in S8){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=S8[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?V5(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n7),this.root.sharedNodes.clear()}}}function Z5(e){e.updateLayout()}function Q5(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)E5(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=i5(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Y8(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else x7(i,t.layoutBox,n)&&E5(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=i5(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=T6();s5(o,n,t.layoutBox);let s=T6();a?s5(s,e.applyTransform(r,!0),t.measuredBox):s5(s,n,t.layoutBox);let c=!y5(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=D6();d5(s,t.layoutBox,i.layoutBox,o);let c=D6();d5(c,n,a.layoutBox,o),C5(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function $5(e){g6.value&&W5.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function e7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t7(e){e.clearSnapshot()}function n7(e){e.clearMeasurements()}function r7(e){e.isLayoutDirty=!0,e.updateLayout()}function i7(e){e.isLayoutDirty=!1}function a7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function o7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function s7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function c7(e){e.resolveTargetDelta()}function l7(e){e.calcProjection()}function u7(e){e.resetSkewAndRotation()}function d7(e){e.removeLeadSnapshot()}function f7(e,t,n){e.translate=D0(t.translate,0,n),e.scale=D0(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function p7(e,t,n,r){e.min=D0(t.min,n.min,r),e.max=D0(t.max,n.max,r)}function m7(e,t,n,r){p7(e.x,t.x,n.x,r),p7(e.y,t.y,n.y,r)}function h7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var g7={duration:.45,ease:[.4,0,.1,1]},_7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),v7=_7(`applewebkit/`)&&!_7(`chrome/`)?Math.round:K$;function y7(e){e.min=v7(e.min),e.max=v7(e.max)}function b7(e){y7(e.x),y7(e.y)}function x7(e,t,n){return e===`position`||e===`preserve-aspect`&&!a5(w5(t),w5(n),.2)}function S7(e){return e!==e.root&&e.scroll?.wasRoot}var C7=X5({attachResizeListener:(e,t)=>L5(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),w7={current:void 0},T7=X5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!w7.current){let e=new C7({});e.mount(window),e.setOptions({layoutScroll:!0}),w7.current=e}return w7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),E7=(0,j.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function D7(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function O7(...e){return t=>{let n=!1,r=e.map(e=>{let r=D7(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():D7(e[t],null)}}}}function k7(...e){return j.useCallback(O7(...e),e)}var A7=class extends j.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(P3(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=P3(e)&&e.offsetWidth||0,r=P3(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function j7({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,j.useId)(),s=(0,j.useRef)(null),c=(0,j.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,j.useContext)(E7),u=k7(s,e.props?.ref??e?.ref);return(0,j.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
117
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZQ(e,t){if(e){if(typeof e==`string`)return QQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QQ(e,t)}}function QQ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $Q(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function e$(e){if(Array.isArray(e))return e}function t$(e){"@babel/helpers - typeof";return t$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t$(e)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?n$(Object(n),!0).forEach(function(t){i$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a$(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s$(e,t,n){return t&&o$(e.prototype,t),n&&o$(e,n),e}function c$(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var l$=function(){function e(t){a$(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return s$(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=kZ(r,t,this.options||{},c$()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=JQ,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?r$(r$({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=TZ(this.mem,s));try{return c||(c=new JQ(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&wZ(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||t$(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=YQ(r[n],2),a=i[0],o=i[1];typeof o==`string`?t[a]=o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):t[a]=o}return t}}]),e}();l$.type=`i18nFormat`;var u$;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(u$||={});var d$=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},f$=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,p$=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?f$(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new d$(`"${e}" plugin is not implemented on ${c}`,u$.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}else throw new d$(`"${e}.${t}()" is not implemented on ${c}`,u$.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,`name`,{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{g({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=d$,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},m$=(e=>e.Capacitor=p$(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),h$=m$.registerPlugin,g$=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new m$.Exception(e,u$.Unimplemented)}unavailable(e=`not available`){return new m$.Exception(e,u$.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},_$=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),v$=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),y$=class extends g${async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=v$(n).trim(),r=v$(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=_$(e.key),n=_$(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};h$(`CapacitorCookies`,{web:()=>new y$});var b$=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),x$=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},S$=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,C$=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=x$(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else (r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},w$=class extends g${async request(e){let t=C$(e,e.webFetchExtra),n=S$(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await b$(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};h$(`CapacitorHttp`,{web:()=>new w$});var T$;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(T$||={});var E$;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(E$||={});var D$=class extends g${async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};h$(`SystemBars`,{web:()=>new D$});function O$(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var k$=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return k$(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return k$(t)(e)}}}},A$=(e,t)=>(n,r,i)=>{let a={storage:O$(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return k$(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},j$;(function(e){e[e.Sunday=1]=`Sunday`,e[e.Monday=2]=`Monday`,e[e.Tuesday=3]=`Tuesday`,e[e.Wednesday=4]=`Wednesday`,e[e.Thursday=5]=`Thursday`,e[e.Friday=6]=`Friday`,e[e.Saturday=7]=`Saturday`})(j$||={});var M$=h$(`LocalNotifications`,{web:()=>s(()=>import(`./web-GjGo6RCY.js`).then(e=>new e.LocalNotificationsWeb),[])}),N$=h$(`Network`,{web:()=>s(()=>import(`./web-ZoqYnuKe.js`).then(e=>new e.NetworkWeb),[])}),P$=(0,j.createContext)({});function F$(e){let t=(0,j.useRef)(null);return t.current===null&&(t.current=e()),t.current}var I$=typeof window<`u`?j.useLayoutEffect:j.useEffect,L$=(0,j.createContext)(null);function R$(e,t){e.indexOf(t)===-1&&e.push(t)}function z$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var B$=(e,t,n)=>n>t?t:n<e?e:n,V$={},H$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),U$=e=>typeof e==`object`&&!!e,W$=e=>/^0[^.\s]+$/u.test(e);function G$(e){let t;return()=>(t===void 0&&(t=e()),t)}var K$=e=>e,q$=(...e)=>e.reduce((e,t)=>n=>t(e(n))),J$=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Y$=class{constructor(){this.subscriptions=[]}add(e){return R$(this.subscriptions,e),()=>z$(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},X$=e=>e*1e3,Z$=e=>e/1e3,Q$=(e,t)=>t?1e3/t*e:0,$$=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},e1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,t1=1e-7,n1=12;function r1(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=e1(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>t1&&++s<n1);return o}function i1(e,t,n,r){if(e===t&&n===r)return K$;let i=t=>r1(t,0,1,e,n);return e=>e===0||e===1?e:e1(i(e),t,r)}var a1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o1=e=>t=>1-e(1-t),s1=i1(.33,1.53,.69,.99),c1=o1(s1),l1=a1(c1),u1=e=>e>=1?1:(e*=2)<1?.5*c1(e):.5*(2-2**(-10*(e-1))),d1=e=>1-Math.sin(Math.acos(e)),f1=o1(d1),p1=a1(d1),m1=i1(.42,0,1,1),h1=i1(0,0,.58,1),g1=i1(.42,0,.58,1),_1=e=>Array.isArray(e)&&typeof e[0]!=`number`;function v1(e,t){return _1(e)?e[$$(0,e.length,t)]:e}var y1=e=>Array.isArray(e)&&typeof e[0]==`number`,b1={linear:K$,easeIn:m1,easeInOut:g1,easeOut:h1,circIn:d1,circInOut:p1,circOut:f1,backIn:c1,backInOut:l1,backOut:s1,anticipate:u1},x1=e=>typeof e==`string`,S1=e=>{if(y1(e)){e.length;let[t,n,r,i]=e;return i1(t,n,r,i)}else if(x1(e))return b1[e],`${e}`,b1[e];return e},C1=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function w1(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var T1=40;function E1(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=C1.reduce((e,t)=>(e[t]=w1(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=V$.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,T1),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:C1.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<C1.length;t++)o[C1[t]].cancel(e)},state:i,steps:o}}var{schedule:D1,cancel:O1,state:k1,steps:A1}=E1(typeof requestAnimationFrame<`u`?requestAnimationFrame:K$,!0),j1;function M1(){j1=void 0}var N1={now:()=>(j1===void 0&&N1.set(k1.isProcessing||V$.useManualTiming?k1.timestamp:performance.now()),j1),set:e=>{j1=e,queueMicrotask(M1)}},P1=e=>t=>typeof t==`string`&&t.startsWith(e),F1=P1(`--`),I1=P1(`var(--`),L1=e=>I1(e)?R1.test(e.split(`/*`)[0].trim()):!1,R1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function z1(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var B1={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},V1={...B1,transform:e=>B$(0,1,e)},H1={...B1,default:1},U1=e=>Math.round(e*1e5)/1e5,W1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G1(e){return e==null}var K1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q1=(e,t)=>n=>!!(typeof n==`string`&&K1.test(n)&&n.startsWith(e)||t&&!G1(n)&&Object.prototype.hasOwnProperty.call(n,t)),J1=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(W1);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Y1=e=>B$(0,255,e),X1={...B1,transform:e=>Math.round(Y1(e))},Z1={test:q1(`rgb`,`red`),parse:J1(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+X1.transform(e)+`, `+X1.transform(t)+`, `+X1.transform(n)+`, `+U1(V1.transform(r))+`)`};function Q1(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $1={test:q1(`#`),parse:Q1,transform:Z1.transform},e0=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),t0=e0(`deg`),n0=e0(`%`),$=e0(`px`),r0=e0(`vh`),i0=e0(`vw`),a0={...n0,parse:e=>n0.parse(e)/100,transform:e=>n0.transform(e*100)},o0={test:q1(`hsl`,`hue`),parse:J1(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+n0.transform(U1(t))+`, `+n0.transform(U1(n))+`, `+U1(V1.transform(r))+`)`},s0={test:e=>Z1.test(e)||$1.test(e)||o0.test(e),parse:e=>Z1.test(e)?Z1.parse(e):o0.test(e)?o0.parse(e):$1.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Z1.transform(e):o0.transform(e),getAnimatableNone:e=>{let t=s0.parse(e);return t.alpha=0,s0.transform(t)}},c0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l0(e){return isNaN(e)&&typeof e==`string`&&(e.match(W1)?.length||0)+(e.match(c0)?.length||0)>0}var u0=`number`,d0=`color`,f0=`var`,p0=`var(`,m0="${}",h0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function g0(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(h0,e=>(s0.test(e)?(r.color.push(a),i.push(d0),n.push(s0.parse(e))):e.startsWith(p0)?(r.var.push(a),i.push(f0),n.push(e)):(r.number.push(a),i.push(u0),n.push(parseFloat(e))),++a,m0)).split(m0),indexes:r,types:i}}function _0(e){return g0(e).values}function v0({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===u0?i+=U1(r[a]):e===d0?i+=s0.transform(r[a]):i+=r[a]}return i}}function y0(e){return v0(g0(e))}var b0=e=>typeof e==`number`?0:s0.test(e)?s0.getAnimatableNone(e):e,x0=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:b0(e);function S0(e){let t=g0(e);return v0(t)(t.values.map((e,n)=>x0(e,t.split[n])))}var C0={test:l0,parse:_0,createTransformer:y0,getAnimatableNone:S0};function w0(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T0({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=w0(s,r,e+1/3),a=w0(s,r,e),o=w0(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function E0(e,t){return n=>n>0?t:e}var D0=(e,t,n)=>e+(t-e)*n,O0=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},k0=[$1,Z1,o0],A0=e=>k0.find(t=>t.test(e));function j0(e){let t=A0(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===o0&&(n=T0(n)),n}var M0=(e,t)=>{let n=j0(e),r=j0(t);if(!n||!r)return E0(e,t);let i={...n};return e=>(i.red=O0(n.red,r.red,e),i.green=O0(n.green,r.green,e),i.blue=O0(n.blue,r.blue,e),i.alpha=D0(n.alpha,r.alpha,e),Z1.transform(i))},N0=new Set([`none`,`hidden`]);function P0(e,t){return N0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function F0(e,t){return n=>D0(e,t,n)}function I0(e){return typeof e==`number`?F0:typeof e==`string`?L1(e)?E0:s0.test(e)?M0:B0:Array.isArray(e)?L0:typeof e==`object`?s0.test(e)?M0:R0:E0}function L0(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>I0(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function R0(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=I0(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function z0(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var B0=(e,t)=>{let n=C0.createTransformer(t),r=g0(e),i=g0(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?N0.has(e)&&!i.values.length||N0.has(t)&&!r.values.length?P0(e,t):q$(L0(z0(r,i),i.values),n):(`${e}${t}`,E0(e,t))};function V0(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?D0(e,t,n):I0(e)(e,t)}var H0=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>D1.update(t,e),stop:()=>O1(t),now:()=>k1.isProcessing?k1.timestamp:N1.now()}},U0=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},W0=2e4;function G0(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function K0(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(G0(r),W0);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Z$(i)}}var q0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function J0(e,t){return e*Math.sqrt(1-t*t)}var Y0=12;function X0(e,t,n){let r=n;for(let n=1;n<Y0;n++)r-=e(r)/t(r);return r}var Z0=.001;function Q0({duration:e=q0.duration,bounce:t=q0.bounce,velocity:n=q0.velocity,mass:r=q0.mass}){let i,a;q0.maxDuration;let o=1-t;o=B$(q0.minDamping,q0.maxDamping,o),e=B$(q0.minDuration,q0.maxDuration,Z$(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=J0(t,o),c=Math.exp(-i);return Z0-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=J0(t**2,o);return(-i(t)+Z0>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Z0+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=X0(i,a,s);if(e=X$(e),isNaN(c))return{stiffness:q0.stiffness,damping:q0.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var $0=[`duration`,`bounce`],e2=[`stiffness`,`damping`,`mass`];function t2(e,t){return t.some(t=>e[t]!==void 0)}function n2(e){let t={velocity:q0.velocity,stiffness:q0.stiffness,damping:q0.damping,mass:q0.mass,isResolvedFromDuration:!1,...e};if(!t2(e,e2)&&t2(e,$0))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*B$(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q0.mass,stiffness:i,damping:a}}else{let n=Q0({...e,velocity:0});t={...t,...n,mass:q0.mass},t.isResolvedFromDuration=!0}return t}function r2(e=q0.visualDuration,t=q0.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=n2({...n,velocity:-Z$(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Z$(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?q0.restSpeed.granular:q0.restSpeed.default,i||=v?q0.restDelta.granular:q0.restDelta.default;let y,b,x,S,C,w;if(h<1)x=J0(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>X$(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=X$(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=X$(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(G0(T),W0),t=U0(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}r2.applyToOptions=e=>{let t=K0(e,100,r2);return e.ease=t.ease,e.duration=X$(t.duration),e.type=`keyframes`,e};var i2=5;function a2(e,t,n){let r=Math.max(t-i2,0);return Q$(n-e(r),t-r)}function o2({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=r2({keyframes:[f.value,m(f.value)],velocity:a2(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function s2(e,t,n){let r=[],i=n||V$.mix||V0,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=q$(Array.isArray(t)?t[n]||K$:t,a)),r.push(a)}return r}function c2(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=s2(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=J$(e[r],e[r+1],n);return s[r](i)};return n?t=>l(B$(e[0],e[a-1],t)):l}function l2(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=J$(0,t,r);e.push(D0(n,1,i))}}function u2(e){let t=[0];return l2(t,e.length-1),t}function d2(e,t){return e.map(e=>e*t)}function f2(e,t){return e.map(()=>t||g1).splice(0,e.length-1)}function p2({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=_1(r)?r.map(S1):S1(r),a={done:!1,value:t[0]},o=c2(d2(n&&n.length===t.length?n:u2(t),e),t,{ease:Array.isArray(i)?i:f2(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var m2=e=>e!==null;function h2(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(m2),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var g2={decay:o2,inertia:o2,tween:p2,keyframes:p2,spring:r2};function _2(e){typeof e.type==`string`&&(e.type=g2[e.type])}var v2=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},y2=e=>e/100,b2=class extends v2{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==N1.now()&&this.tick(N1.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;_2(e);let{type:t=p2,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||p2;s!==p2&&typeof o[0]!=`number`&&(this.mixKeyframes=q$(y2,V0(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=G0(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=B$(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==o2&&(b.value=h2(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Z$(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Z$(e)}get time(){return Z$(this.currentTime)}set time(e){e=X$(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return a2(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N1.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Z$(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=H0,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(N1.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function x2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var S2=e=>e*180/Math.PI,C2=e=>T2(S2(Math.atan2(e[1],e[0]))),w2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:C2,rotateZ:C2,skewX:e=>S2(Math.atan(e[1])),skewY:e=>S2(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},T2=e=>(e%=360,e<0&&(e+=360),e),E2=C2,D2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),k2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:D2,scaleY:O2,scale:e=>(D2(e)+O2(e))/2,rotateX:e=>T2(S2(Math.atan2(e[6],e[5]))),rotateY:e=>T2(S2(Math.atan2(-e[2],e[0]))),rotateZ:E2,rotate:E2,skewX:e=>S2(Math.atan(e[4])),skewY:e=>S2(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A2(e){return+!!e.includes(`scale`)}function j2(e,t){if(!e||e===`none`)return A2(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=k2,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=w2,i=t}if(!i)return A2(t);let a=r[t],o=i[1].split(`,`).map(N2);return typeof a==`function`?a(o):o[a]}var M2=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return j2(n,t)};function N2(e){return parseFloat(e.trim())}var P2=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],F2=new Set([...P2,`pathRotation`]),I2=e=>e===B1||e===$,L2=new Set([`x`,`y`,`z`]),R2=P2.filter(e=>!L2.has(e));function z2(e){let t=[];return R2.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var B2={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>j2(t,`x`),y:(e,{transform:t})=>j2(t,`y`)};B2.translateX=B2.x,B2.translateY=B2.y;var V2=new Set,H2=!1,U2=!1,W2=!1;function G2(){if(U2){let e=Array.from(V2).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=z2(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}U2=!1,H2=!1,V2.forEach(e=>e.complete(W2)),V2.clear()}function K2(){V2.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(U2=!0)})}function q2(){W2=!0,K2(),G2(),W2=!1}var J2=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(V2.add(this),H2||(H2=!0,D1.read(K2),D1.resolveKeyframes(G2))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}x2(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),V2.delete(this)}cancel(){this.state===`scheduled`&&(V2.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Y2=e=>e.startsWith(`--`);function X2(e,t,n){Y2(t)?e.style.setProperty(t,n):e.style[t]=n}var Z2={};function Q2(e,t){let n=G$(e);return()=>Z2[t]??n()}var $2=Q2(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),e4=Q2(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),t4=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,n4={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function r4(e,t){if(e)return typeof e==`function`?e4()?U0(e,t):`ease-out`:y1(e)?t4(e):Array.isArray(e)?e.map(e=>r4(e,t)||n4.easeOut):n4[e]}function i4(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=r4(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function a4(e){return typeof e==`function`&&`applyToOptions`in e}function o4({type:e,...t}){return a4(e)&&e4()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var s4=class extends v2{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=o4(e);this.animation=i4(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=h2(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),X2(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Z$(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Z$(e)}get time(){return Z$(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X$(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&$2()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),K$):r(this)}},c4={anticipate:u1,backInOut:l1,circInOut:p1};function l4(e){return e in c4}function u4(e){typeof e.ease==`string`&&l4(e.ease)&&(e.ease=c4[e.ease])}var d4=10,f4=class extends s4{constructor(e){u4(e),_2(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new b2({...a,autoplay:!1}),s=Math.max(d4,N1.now()-this.startTime),c=B$(0,d4,s-d4),l=o.sample(s).value,{name:u}=this.options;i&&u&&X2(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},p4=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(C0.test(e)||e===`0`)&&!e.startsWith(`url(`));function m4(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function h4(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=p4(i,t),s=p4(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:m4(e)||(n===`spring`||a4(n))&&r}function g4(e){e.duration=0,e.type=`keyframes`}var _4=new Set([`opacity`,`clipPath`,`filter`,`transform`]),v4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function y4(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&v4.test(e[t]))return!0;return!1}var b4=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),x4=G$(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function S4(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return x4()&&n&&(_4.has(n)||b4.has(n)&&y4(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var C4=40,w4=class extends v2{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N1.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||J2;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N1.now();let u=!0;h4(e,i,a,o)||(u=!1,(V$.instantAnimations||!s)&&l?.(h2(e,n,t)),e[0]=e[e.length-1],g4(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>C4?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&S4(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new f4({...d,element:p})}catch{m=new b2(d)}else m=new b2(d);m.finished.then(()=>{this.notifyFinished()}).catch(K$),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),q2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},T4=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return E4(this.animations,`duration`)}get iterationDuration(){return E4(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function E4(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var D4=class extends T4{then(e,t){return this.finished.finally(e).then(()=>{})}};function O4(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var k4=30,A4=e=>!isNaN(parseFloat(e)),j4={current:void 0},M4=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N1.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=N1.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=A4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Y$);let n=this.events[e].add(t);return e===`change`?()=>{n(),D1.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return j4.current&&j4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N1.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>k4)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,k4);return Q$(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function N4(e,t){return new M4(e,t)}function P4(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function F4(e,t){let n=e?.[t]??e?.default??e;return n===e?n:P4(n,e)}var I4={type:`spring`,stiffness:500,damping:25,restSpeed:10},L4=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),R4={type:`keyframes`,duration:.8},z4={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},B4=(e,{keyframes:t})=>t.length>2?R4:F2.has(e)?e.startsWith(`scale`)?L4(t[1]):I4:z4,V4=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function H4(e){for(let t in e)if(!V4.has(t))return!0;return!1}var U4=(e,t,n,r={},i,a)=>o=>{let s=F4(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=X$(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};H4(s)||Object.assign(u,B4(e,u)),u.duration&&=X$(u.duration),u.repeatDelay&&=X$(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(g4(u),u.delay===0&&(d=!0)),(V$.instantAnimations||V$.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,g4(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=h2(u.keyframes,s);if(e!==void 0){D1.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new b2(u):new w4(u)},W4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G4(e){let t=W4.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function K4(e,t,n=1){`${e}`;let[r,i]=G4(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return H$(e)?parseFloat(e):e}return L1(i)?K4(i,t,n+1):i}function q4(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function J4(e,t,n,r){if(typeof t==`function`){let[i,a]=q4(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=q4(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Y4(e,t,n){let r=e.getProps();return J4(r,t,n===void 0?r.custom:n,e)}var X4=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...P2]),Z4=e=>Array.isArray(e);function Q4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,N4(n))}function $4(e){return Z4(e)?e[e.length-1]||0:e}function e3(e,t){let{transitionEnd:n={},transition:r={},...i}=Y4(e,t)||{};i={...i,...n};for(let t in i)Q4(e,t,$4(i[t]))}var t3=e=>!!(e&&e.getVelocity);function n3(e){return!!(t3(e)&&e.add)}function r3(e,t){let n=e.getValue(`willChange`);if(n3(n))return n.add(t);if(!n&&V$.WillChange){let n=new V$.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function i3(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var a3=`data-`+i3(`framerAppearId`);function o3(e){return e.props[a3]}function s3({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function c3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?P4(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&s3(f,t))continue;let o={delay:n,...F4(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){D1.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=o3(e);if(n){let e=window.MotionHandoffAnimation(n,t,D1);e!==null&&(o.startTime=e,p=!0)}}r3(e,t);let m=l??e.shouldReduceMotion;r.start(U4(t,r,i,m&&X4.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>D1.update(()=>{o&&e3(e,o)});d.length?Promise.all(d).then(t):t()}return d}function l3(e,t,n={}){let r=Y4(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(c3(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return u3(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function u3(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(l3(c,t,{...o,delay:n+(typeof r==`function`?0:r)+O4(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function d3(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>l3(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=l3(e,t,n);else{let i=typeof t==`function`?Y4(e,t,n.custom):t;r=Promise.all(c3(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var f3={test:e=>e===`auto`,parse:e=>e},p3=e=>t=>t.test(e),m3=[B1,$,n0,t0,i0,r0,f3],h3=e=>m3.find(p3(e));function g3(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||W$(e)}var _3=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function v3(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(W1)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_3.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var y3=/\b([a-z-]*)\(.*?\)/gu,b3={...C0,getAnimatableNone:e=>{let t=e.match(y3);return t?t.map(v3).join(` `):e}},x3={...C0,getAnimatableNone:e=>{let t=C0.parse(e);return C0.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},S3={...B1,transform:Math.round},C3={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:t0,pathRotation:t0,rotateX:t0,rotateY:t0,rotateZ:t0,scale:H1,scaleX:H1,scaleY:H1,scaleZ:H1,skew:t0,skewX:t0,skewY:t0,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:V1,originX:a0,originY:a0,originZ:$,zIndex:S3,fillOpacity:V1,strokeOpacity:V1,numOctaves:S3},w3={...C3,color:s0,backgroundColor:s0,outlineColor:s0,fill:s0,stroke:s0,borderColor:s0,borderTopColor:s0,borderRightColor:s0,borderBottomColor:s0,borderLeftColor:s0,filter:b3,WebkitFilter:b3,mask:x3,WebkitMask:x3},T3=e=>w3[e],E3=new Set([b3,x3]);function D3(e,t){let n=T3(e);return E3.has(n)||(n=C0),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var O3=new Set([`auto`,`none`,`0`]);function k3(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!O3.has(t)&&g0(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=D3(n,i)}var A3=class extends J2{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),L1(r))){let i=K4(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!X4.has(n)||e.length!==2)return;let[r,i]=e,a=h3(r),o=h3(i);if(z1(r)!==z1(i)&&B2[n]){this.needsMeasurement=!0;return}if(a!==o)if(I2(a)&&I2(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else B2[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||g3(e[t]))&&n.push(t);n.length&&k3(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=B2[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=B2[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},j3=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function M3(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var N3=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function P3(e){return U$(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:F3,cancel:ste}=E1(queueMicrotask,!1),I3={x:!1,y:!1};function L3(){return I3.x||I3.y}function R3(e){return e===`x`||e===`y`?I3[e]?null:(I3[e]=!0,()=>{I3[e]=!1}):I3.x||I3.y?null:(I3.x=I3.y=!0,()=>{I3.x=I3.y=!1})}function z3(e,t){let n=M3(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function B3(e){return!(e.pointerType===`touch`||L3())}function V3(e,t,n={}){let[r,i,a]=z3(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!B3(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var H3=(e,t)=>t?e===t?!0:H3(e,t.parentElement):!1,U3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,W3=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function G3(e){return W3.has(e.tagName)||e.isContentEditable===!0}var K3=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function q3(e){return K3.has(e.tagName)||e.isContentEditable===!0}var J3=new WeakSet;function Y3(e){return t=>{t.key===`Enter`&&e(t)}}function X3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Z3=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Y3(()=>{if(J3.has(n))return;X3(n,`down`);let e=Y3(()=>{X3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>X3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Q3(e){return U3(e)&&!L3()}var $3=new WeakSet;function e6(e,t,n={}){let[r,i,a]=z3(e,n),o=e=>{let r=e.currentTarget;if(!Q3(e)||$3.has(e))return;J3.add(r),n.stopPropagation&&$3.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),J3.has(r)&&J3.delete(r),Q3(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||H3(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),P3(e)&&(e.addEventListener(`focus`,e=>Z3(e,i)),!G3(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function t6(e){return U$(e)&&`ownerSVGElement`in e}var n6=new WeakMap,r6,i6=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:t6(r)&&`getBBox`in r?r.getBBox()[t]:r[n],a6=i6(`inline`,`width`,`offsetWidth`),o6=i6(`block`,`height`,`offsetHeight`);function s6({target:e,borderBoxSize:t}){n6.get(e)?.forEach(n=>{n(e,{get width(){return a6(e,t)},get height(){return o6(e,t)}})})}function c6(e){e.forEach(s6)}function l6(){typeof ResizeObserver>`u`||(r6=new ResizeObserver(c6))}function u6(e,t){r6||l6();let n=M3(e);return n.forEach(e=>{let n=n6.get(e);n||(n=new Set,n6.set(e,n)),n.add(t),r6?.observe(e)}),()=>{n.forEach(e=>{let n=n6.get(e);n?.delete(t),n?.size||r6?.unobserve(e)})}}var d6=new Set,f6;function p6(){f6=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};d6.forEach(t=>t(e))},window.addEventListener(`resize`,f6)}function m6(e){return d6.add(e),f6||p6(),()=>{d6.delete(e),!d6.size&&typeof f6==`function`&&(window.removeEventListener(`resize`,f6),f6=void 0)}}function h6(e,t){return typeof e==`function`?m6(e):u6(e,t)}var g6={value:null,addProjectionMetrics:null};function _6(e){return t6(e)&&e.tagName===`svg`}function v6(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=c2(i,a,o);return t?s(r):s}function y6(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=x6(e.get()),r=x6(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new b2({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(b6(e,s)),D1.postRender(u)},c),t3(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(b6(t,s),!1)):e.set(b6(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function b6(e,t){return t?e+t:e}function x6(e){return typeof e==`number`?e:parseFloat(e)}var S6=[...m3,s0,C0],C6=e=>S6.find(p3(e)),w6=()=>({translate:0,scale:1,origin:0,originPoint:0}),T6=()=>({x:w6(),y:w6()}),E6=()=>({min:0,max:0}),D6=()=>({x:E6(),y:E6()}),O6=new WeakMap;function k6(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function A6(e){return typeof e==`string`||Array.isArray(e)}var j6=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],M6=[`initial`,...j6];function N6(e){return k6(e.animate)||M6.some(t=>A6(e[t]))}function P6(e){return!!(N6(e)||e.variants)}function F6(e,t,n){for(let r in t){let i=t[r],a=n[r];if(t3(i))e.addValue(r,i);else if(t3(a))e.addValue(r,N4(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,N4(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var I6={current:null},L6={current:!1},R6=typeof window<`u`;function z6(){if(L6.current=!0,R6)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>I6.current=e.matches;e.addEventListener(`change`,t),t()}else I6.current=!1}var B6=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],V6={};function H6(e){V6=e}function U6(){return V6}var W6=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=J2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=N1.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,D1.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=N6(t),this.isVariantNode=P6(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&t3(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,O6.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(L6.current||z6(),this.shouldReduceMotion=I6.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),O1(this.notifyUpdate),O1(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&_4.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new s4({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:X$(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=F2.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&D1.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in V6){let t=V6[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D6()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<B6.length;t++){let n=B6[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=F6(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=N4(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(H$(n)||W$(n))?n=parseFloat(n):!C6(n)&&C0.test(t)&&(n=D3(e,t)),this.setBaseTarget(e,t3(n)?n.get():n)),t3(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=J4(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!t3(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Y$),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){F3.render(this.render)}},G6=class extends W6{constructor(){super(...arguments),this.KeyframeResolver=A3}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;t3(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},K6=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function q6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Y6(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function X6(e){return e===void 0||e===1}function Z6({scale:e,scaleX:t,scaleY:n}){return!X6(e)||!X6(t)||!X6(n)}function Q6(e){return Z6(e)||$6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $6(e){return e8(e.x)||e8(e.y)}function e8(e){return e&&e!==`0%`}function t8(e,t,n){return n+t*(e-n)}function n8(e,t,n,r,i){return i!==void 0&&(e=t8(e,i,r)),t8(e,n,r)+t}function r8(e,t=0,n=1,r,i){e.min=n8(e.min,t,n,r,i),e.max=n8(e.max,t,n,r,i)}function i8(e,{x:t,y:n}){r8(e.x,t.translate,t.scale,t.originPoint),r8(e.y,n.translate,n.scale,n.originPoint)}var a8=.999999999999,o8=1.0000000000001;function s8(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(c8(e.x,-a.scroll.offset.x),c8(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,i8(e,o)),r&&Q6(a.latestValues)&&d8(e,a.latestValues,a.layout?.layoutBox))}t.x<o8&&t.x>a8&&(t.x=1),t.y<o8&&t.y>a8&&(t.y=1)}function c8(e,t){e.min+=t,e.max+=t}function l8(e,t,n,r,i=.5){r8(e,t,n,D0(e.min,e.max,i),r)}function u8(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function d8(e,t,n){let r=n??e;l8(e.x,u8(t.x,r.x),t.scaleX,t.scale,t.originX),l8(e.y,u8(t.y,r.y),t.scaleY,t.scale,t.originY)}function f8(e,t){return q6(Y6(e.getBoundingClientRect(),t))}function p8(e,t,n){let r=f8(e,n),{scroll:i}=t;return i&&(c8(r.x,i.offset.x),c8(r.y,i.offset.y)),r}var m8={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},h8=P2.length;function g8(e,t,n){let r=``,i=!0;for(let a=0;a<h8;a++){let o=P2[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=N3(s,C3[o]);if(!c){i=!1;let t=m8[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${N3(a,C3.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function _8(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(F2.has(e)){o=!0;continue}else if(F1(e)){i[e]=n;continue}else{let t=N3(n,C3[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=g8(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function v8(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function y8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var b8={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${y8(e,t.target.x)}% ${y8(e,t.target.y)}%`}},x8={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=C0.parse(e);if(i.length>5)return r;let a=C0.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=D0(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},S8={borderRadius:{...b8,applyTo:[...j3]},borderTopLeftRadius:b8,borderTopRightRadius:b8,borderBottomLeftRadius:b8,borderBottomRightRadius:b8,boxShadow:x8};function C8(e,{layout:t,layoutId:n}){return F2.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!S8[e]||e===`opacity`)}function w8(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(t3(r[t])||i&&t3(i[t])||C8(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function T8(e){return window.getComputedStyle(e)}var E8=class extends G6{constructor(){super(...arguments),this.type=`html`,this.renderInstance=v8}readValueFromInstance(e,t){if(F2.has(t))return this.projection?.isProjecting?A2(t):M2(e,t);{let n=T8(e),r=(F1(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return f8(e,t)}build(e,t,n){_8(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return w8(e,t,n)}};function D8(e,t){return e in t}var O8=class extends W6{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(D8(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return D6()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},k8={offset:`stroke-dashoffset`,array:`stroke-dasharray`},A8={offset:`strokeDashoffset`,array:`strokeDasharray`};function j8(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?k8:A8;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var M8=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function N8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(_8(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of M8)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&j8(d,i,a,o,!1)}var P8=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),F8=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function I8(e,t,n,r){v8(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(P8.has(n)?n:i3(n),t.attrs[n])}function L8(e,t,n){let r=w8(e,t,n);for(let n in e)if(t3(e[n])||t3(t[n])){let t=P2.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var R8=class extends G6{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=D6}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(F2.has(t)){let e=T3(t);return e&&e.default||0}return t=P8.has(t)?t:i3(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return L8(e,t,n)}build(e,t,n){N8(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){I8(e,t,n,r)}mount(e){this.isSVGTag=F8(e.tagName),super.mount(e)}},z8=M6.length;function B8(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&B8(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<z8;n++){let r=M6[n],i=e.props[r];(A6(i)||i===!1)&&(t[r]=i)}return t}function V8(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var H8=[...j6].reverse(),U8=j6.length;function W8(e){return t=>Promise.all(t.map(({animation:t,options:n})=>d3(e,t,n)))}function G8(e){let t=W8(e),n=J8(),r=!0,i=!1,a=t=>(n,r)=>{let i=Y4(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=B8(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<U8;t++){let p=H8[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=A6(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||k6(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=K8(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Z4(t)&&Z4(n)?!V8(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Y4(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=O4(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Y4(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=J8(),i=!0}}}function K8(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!V8(t,e):!1}function q8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J8(){return{animate:q8(!0),whileInView:q8(),whileHover:q8(),whileTap:q8(),whileDrag:q8(),whileFocus:q8(),exit:q8()}}function Y8(e,t){e.min=t.min,e.max=t.max}function X8(e,t){Y8(e.x,t.x),Y8(e.y,t.y)}function Z8(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Q8=1e-4,$8=1-Q8,e5=1+Q8,t5=.01,n5=0-t5,r5=0+t5;function i5(e){return e.max-e.min}function a5(e,t,n){return Math.abs(e-t)<=n}function o5(e,t,n,r=.5){e.origin=r,e.originPoint=D0(t.min,t.max,e.origin),e.scale=i5(n)/i5(t),e.translate=D0(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$8&&e.scale<=e5||isNaN(e.scale))&&(e.scale=1),(e.translate>=n5&&e.translate<=r5||isNaN(e.translate))&&(e.translate=0)}function s5(e,t,n,r){o5(e.x,t.x,n.x,r?r.originX:void 0),o5(e.y,t.y,n.y,r?r.originY:void 0)}function c5(e,t,n,r=0){e.min=(r?D0(n.min,n.max,r):n.min)+t.min,e.max=e.min+i5(t)}function l5(e,t,n,r){c5(e.x,t.x,n.x,r?.x),c5(e.y,t.y,n.y,r?.y)}function u5(e,t,n,r=0){let i=r?D0(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+i5(t)}function d5(e,t,n,r){u5(e.x,t.x,n.x,r?.x),u5(e.y,t.y,n.y,r?.y)}function f5(e,t,n,r,i){return e-=t,e=t8(e,1/n,r),i!==void 0&&(e=t8(e,1/i,r)),e}function p5(e,t=0,n=1,r=.5,i,a=e,o=e){if(n0.test(t)&&(t=parseFloat(t),t=D0(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=D0(a.min,a.max,r);e===a&&(s-=t),e.min=f5(e.min,t,n,s,i),e.max=f5(e.max,t,n,s,i)}function m5(e,t,[n,r,i],a,o){p5(e,t[n],t[r],t[i],t.scale,a,o)}var h5=[`x`,`scaleX`,`originX`],g5=[`y`,`scaleY`,`originY`];function _5(e,t,n,r){m5(e.x,t,h5,n?n.x:void 0,r?r.x:void 0),m5(e.y,t,g5,n?n.y:void 0,r?r.y:void 0)}function v5(e){return e.translate===0&&e.scale===1}function y5(e){return v5(e.x)&&v5(e.y)}function b5(e,t){return e.min===t.min&&e.max===t.max}function x5(e,t){return b5(e.x,t.x)&&b5(e.y,t.y)}function S5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function C5(e,t){return S5(e.x,t.x)&&S5(e.y,t.y)}function w5(e){return i5(e.x)/i5(e.y)}function T5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function E5(e){return[e(`x`),e(`y`)]}function D5(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var O5=j3.length,k5=e=>typeof e==`string`?parseFloat(e):e,A5=e=>typeof e==`number`||$.test(e);function j5(e,t,n,r,i,a){i?(e.opacity=D0(0,n.opacity??1,N5(r)),e.opacityExit=D0(t.opacity??1,0,P5(r))):a&&(e.opacity=D0(t.opacity??1,n.opacity??1,r));for(let i=0;i<O5;i++){let a=j3[i],o=M5(t,a),s=M5(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||A5(o)===A5(s)?(e[a]=Math.max(D0(k5(o),k5(s),r),0),(n0.test(s)||n0.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=D0(t.rotate||0,n.rotate||0,r))}function M5(e,t){return e[t]===void 0?e.borderRadius:e[t]}var N5=F5(0,.5,f1),P5=F5(.5,.95,K$);function F5(e,t,n){return r=>r<e?0:r>t?1:n(J$(e,t,r))}function I5(e,t,n){let r=t3(e)?e:N4(e);return r.start(U4(``,r,t,n)),r.animation}function L5(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var R5=(e,t)=>e.depth-t.depth,z5=class{constructor(){this.children=[],this.isDirty=!1}add(e){R$(this.children,e),this.isDirty=!0}remove(e){z$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(R5),this.isDirty=!1,this.children.forEach(e)}};function B5(e,t){let n=N1.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(O1(r),e(a-t))};return D1.setup(r,!0),()=>O1(r)}function V5(e){return t3(e)?e.get():e}var H5=class{constructor(){this.members=[]}add(e){R$(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(z$(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(z$(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},U5={hasAnimatedSinceResize:!0,hasEverUpdated:!1},W5={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},G5=[``,`X`,`Y`,`Z`],K5=1e3,q5=0;function J5(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Y5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=o3(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,D1,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Y5(r)}function X5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=q5++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,g6.value&&(W5.nodes=W5.calculatedTargetDeltas=W5.calculatedProjections=0),this.nodes.forEach($5),this.nodes.forEach(c7),this.nodes.forEach(l7),this.nodes.forEach(e7),g6.addProjectionMetrics&&g6.addProjectionMetrics(W5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Y$),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=t6(t)&&!_6(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;D1.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=B5(i,250),U5.hasAnimatedSinceResize&&(U5.hasAnimatedSinceResize=!1,this.nodes.forEach(s7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||g7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!C5(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...F4(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||s7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),O1(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(u7),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(r7),this.nodes.forEach(n7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(i7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(a7),this.nodes.forEach(o7),this.nodes.forEach(Z5),this.nodes.forEach(Q5)):this.nodes.forEach(i7),this.clearAllSnapshots();let e=N1.now();k1.delta=B$(0,1e3/60,e-k1.timestamp),k1.timestamp=e,k1.isProcessing=!0,A1.update.process(k1),A1.preRender.process(k1),A1.render.process(k1),k1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,F3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t7),this.sharedNodes.forEach(d7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D1.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D1.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!i5(this.snapshot.measuredBox.x)&&!i5(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=D6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!y5(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Q6(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),b7(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return D6();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(S7))){let{scroll:e}=this.root;e&&(c8(t.x,e.offset.x),c8(t.y,e.offset.y))}return t}removeElementScroll(e){let t=D6();if(X8(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&X8(t,e),c8(t.x,i.offset.x),c8(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||D6();X8(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(c8(r.x,-n.scroll.offset.x),c8(r.y,-n.scroll.offset.y)),Q6(n.latestValues)&&d8(r,n.latestValues,n.layout?.layoutBox)}return Q6(this.latestValues)&&d8(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=D6();X8(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Q6(n.latestValues))continue;let r;n.instance&&(Z6(n.latestValues)&&n.updateSnapshot(),r=D6(),X8(r,n.measurePageBox())),_5(t,n.latestValues,n.snapshot?.layoutBox,r)}return Q6(this.latestValues)&&_5(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==k1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=k1.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=D6(),this.targetWithTransforms=D6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):X8(this.target,this.layout.layoutBox),i8(this.target,this.targetDelta)):X8(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),g6.value&&W5.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Z6(this.parent.latestValues)||$6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D6(),this.relativeTargetOrigin=D6(),d5(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),X8(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===k1.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;X8(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;s8(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=D6());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Z8(this.prevProjectionDelta.x,this.projectionDelta.x),Z8(this.prevProjectionDelta.y,this.projectionDelta.y)),s5(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!T5(this.projectionDelta.x,this.prevProjectionDelta.x)||!T5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),g6.value&&W5.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=T6(),this.projectionDelta=T6(),this.projectionDeltaWithTransform=T6()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=T6();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=D6(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(h7));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=D0(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=D0(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(f7(o.x,e.x,n),f7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(d5(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m7(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&x5(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=D6(),X8(f,this.relativeTarget)),c&&(this.animationValues=a,j5(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(O1(this.pendingAnimation),void 0),this.pendingAnimation=D1.update(()=>{U5.hasAnimatedSinceResize=!0,this.motionValue||=N4(0),this.motionValue.jump(0,!1),this.currentAnimation=I5(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(K5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&x7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||D6();let t=i5(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=i5(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}X8(t,n),d8(t,i),s5(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new H5),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&J5(`z`,e,r,this.animationValues);for(let t=0;t<G5.length;t++)J5(`rotate${G5[t]}`,e,r,this.animationValues),J5(`skew${G5[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=V5(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=V5(t?.pointerEvents)||``),this.hasProjected&&!Q6(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=D5(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in S8){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=S8[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?V5(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n7),this.root.sharedNodes.clear()}}}function Z5(e){e.updateLayout()}function Q5(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)E5(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=i5(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Y8(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else x7(i,t.layoutBox,n)&&E5(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=i5(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=T6();s5(o,n,t.layoutBox);let s=T6();a?s5(s,e.applyTransform(r,!0),t.measuredBox):s5(s,n,t.layoutBox);let c=!y5(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=D6();d5(s,t.layoutBox,i.layoutBox,o);let c=D6();d5(c,n,a.layoutBox,o),C5(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function $5(e){g6.value&&W5.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function e7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t7(e){e.clearSnapshot()}function n7(e){e.clearMeasurements()}function r7(e){e.isLayoutDirty=!0,e.updateLayout()}function i7(e){e.isLayoutDirty=!1}function a7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function o7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function s7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function c7(e){e.resolveTargetDelta()}function l7(e){e.calcProjection()}function u7(e){e.resetSkewAndRotation()}function d7(e){e.removeLeadSnapshot()}function f7(e,t,n){e.translate=D0(t.translate,0,n),e.scale=D0(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function p7(e,t,n,r){e.min=D0(t.min,n.min,r),e.max=D0(t.max,n.max,r)}function m7(e,t,n,r){p7(e.x,t.x,n.x,r),p7(e.y,t.y,n.y,r)}function h7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var g7={duration:.45,ease:[.4,0,.1,1]},_7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),v7=_7(`applewebkit/`)&&!_7(`chrome/`)?Math.round:K$;function y7(e){e.min=v7(e.min),e.max=v7(e.max)}function b7(e){y7(e.x),y7(e.y)}function x7(e,t,n){return e===`position`||e===`preserve-aspect`&&!a5(w5(t),w5(n),.2)}function S7(e){return e!==e.root&&e.scroll?.wasRoot}var C7=X5({attachResizeListener:(e,t)=>L5(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),w7={current:void 0},T7=X5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!w7.current){let e=new C7({});e.mount(window),e.setOptions({layoutScroll:!0}),w7.current=e}return w7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),E7=(0,j.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function D7(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function O7(...e){return t=>{let n=!1,r=e.map(e=>{let r=D7(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():D7(e[t],null)}}}}function k7(...e){return j.useCallback(O7(...e),e)}var A7=class extends j.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(P3(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=P3(e)&&e.offsetWidth||0,r=P3(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function j7({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,j.useId)(),s=(0,j.useRef)(null),c=(0,j.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,j.useContext)(E7),u=k7(s,e.props?.ref??e?.ref);return(0,j.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
118
118
  [data-motion-pop-id="${o}"] {
119
119
  position: absolute !important;
120
120
  width: ${e}px !important;
@@ -122,4 +122,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
122
122
  ${_}px !important;
123
123
  ${v}px !important;
124
124
  }
125
- `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,M.jsx)(A7,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:j.cloneElement(e,{ref:u})})}var M7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=F$(N7),d=(0,j.useId)(),f=(0,j.useRef)(n),p=(0,j.useRef)(r);I$(()=>{f.current=n,p.current=r});let m=!0,h=(0,j.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,j.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,M.jsx)(j7,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,M.jsx)(L$.Provider,{value:h,children:e})};function N7(){return new Map}function P7(e=!0){let t=(0,j.useContext)(L$);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,j.useId)();(0,j.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,j.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function F7(){return I7((0,j.useContext)(L$))}function I7(e){return e===null?!0:e.isPresent}var L7=e=>e.key||``;function R7(e){let t=[];return j.Children.forEach(e,e=>{(0,j.isValidElement)(e)&&t.push(e)}),t}var z7=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=P7(o),f=(0,j.useMemo)(()=>R7(e),[e]),p=o&&!u?[]:f.map(L7),m=(0,j.useRef)(!0),h=(0,j.useRef)(f),g=F$(()=>new Map),_=(0,j.useRef)(new Set),[v,y]=(0,j.useState)(f),[b,x]=(0,j.useState)(f);I$(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=L7(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=L7(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(R7(e)),y(f),null}let{forceRender:C}=(0,j.useContext)(P$);return(0,M.jsx)(M.Fragment,{children:b.map(e=>{let v=L7(e),y=o&&!u?!1:f===b||p.includes(v);return(0,M.jsx)(M7,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},B7=(0,j.createContext)({strict:!1}),V7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},H7=!1;function U7(){if(H7)return;let e={};for(let t in V7)e[t]={isEnabled:e=>V7[t].some(t=>!!e[t])};H6(e),H7=!0}function W7(){return U7(),U6()}function G7(e){let t=W7();for(let n in e)t[n]={...t[n],...e[n]};H6(t)}var K7=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function q7(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||K7.has(e)}var J7=r({default:()=>Y7}),Y7,X7=t((()=>{throw Y7={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Z7=e=>!q7(e);function Q7(e){typeof e==`function`&&(Z7=t=>t.startsWith(`on`)?!q7(t):e(t))}try{Q7((X7(),e(J7)).default)}catch{}function $7(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||t3(e[i])||(Z7(i)||n===!0&&q7(i)||!t&&!q7(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var e9=(0,j.createContext)({});function t9(e,t){if(N6(e)){let{initial:t,animate:n}=e;return{initial:t===!1||A6(t)?t:void 0,animate:A6(n)?n:void 0}}return e.inherit===!1?{}:t}function n9(e){let{initial:t,animate:n}=t9(e,(0,j.useContext)(e9));return(0,j.useMemo)(()=>({initial:t,animate:n}),[r9(t),r9(n)])}function r9(e){return Array.isArray(e)?e.join(` `):e}var i9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function a9(e,t,n){for(let r in t)!t3(t[r])&&!C8(r,n)&&(e[r]=t[r])}function o9({transformTemplate:e},t){return(0,j.useMemo)(()=>{let n=i9();return _8(n,t,e),Object.assign({},n.vars,n.style)},[t])}function s9(e,t){let n=e.style||{},r={};return a9(r,n,e),Object.assign(r,o9(e,t)),r}function cte(e,t){let n={},r=s9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var c9=()=>({...i9(),attrs:{}});function lte(e,t,n,r){let i=(0,j.useMemo)(()=>{let n=c9();return N8(n,t,F8(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};a9(t,e.style,e),i.style={...t,...i.style}}return i}var ute=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function l9(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ute.indexOf(e)>-1||/[A-Z]/u.test(e))}function dte(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??l9(e)?lte:cte)(t,r,i,e),c=$7(t,typeof e==`string`,a),l=e===j.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,j.useMemo)(()=>t3(u)?u.get():u,[u]);return(0,j.createElement)(e,{...l,children:d})}function fte({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:pte(n,r,i,e),renderState:t()}}function pte(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=V5(a[e]);let{initial:o,animate:s}=e,c=N6(e),l=P6(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!k6(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=J4(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var u9=e=>(t,n)=>{let r=(0,j.useContext)(e9),i=(0,j.useContext)(L$),a=()=>fte(e,t,r,i);return n?a():F$(a)},mte=u9({scrapeMotionValuesFromProps:w8,createRenderState:i9}),hte=u9({scrapeMotionValuesFromProps:L8,createRenderState:c9}),gte=Symbol.for(`motionComponentSymbol`);function _te(e,t,n){let r=(0,j.useRef)(n);(0,j.useInsertionEffect)(()=>{r.current=n});let i=(0,j.useRef)(null);return(0,j.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var d9=(0,j.createContext)({});function f9(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function vte(e,t,n,r,i,a){let{visualElement:o}=(0,j.useContext)(e9),s=(0,j.useContext)(B7),c=(0,j.useContext)(L$),l=(0,j.useContext)(E7),u=l.reducedMotion,d=l.skipAnimations,f=(0,j.useRef)(null),p=(0,j.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,j.useContext)(d9);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&yte(f.current,n,i,h);let g=(0,j.useRef)(!1);(0,j.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[a3],v=(0,j.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return I$(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,j.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function yte(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:p9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&f9(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function p9(e){if(e)return e.options.allowProjection===!1?p9(e.parent):e.projection}function m9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&G7(r);let a=n?n===`svg`:l9(e),o=a?hte:mte;function s(n,s){let c,l={...(0,j.useContext)(E7),...n,layoutId:bte(n)},{isStatic:u}=l,d=n9(n),f=o(n,u);if(!u&&typeof window<`u`){xte(l,r);let t=Ste(l);c=t.MeasureLayout,d.visualElement=vte(e,f,l,i,t.ProjectionNode,a)}return(0,M.jsxs)(e9.Provider,{value:d,children:[c&&d.visualElement?(0,M.jsx)(c,{visualElement:d.visualElement,...l}):null,dte(e,n,_te(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,j.forwardRef)(s);return c[gte]=e,c}function bte({layoutId:e}){let t=(0,j.useContext)(P$).id;return t&&e!==void 0?t+`-`+e:e}function xte(e,t){(0,j.useContext)(B7).strict}function Ste(e){let{drag:t,layout:n}=W7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Cte(e,t){if(typeof Proxy>`u`)return m9;let n=new Map,r=(n,r)=>m9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,m9(a,void 0,e,t)),n.get(a))})}var wte=(e,t)=>t.isSVG??l9(e)?new R8(t):new E8(t,{allowProjection:e!==j.Fragment}),Tte=class extends K6{constructor(e){super(e),e.animationState||=G8(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();k6(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ete=0,Dte={animation:{Feature:Tte},exit:{Feature:class extends K6{constructor(){super(...arguments),this.id=Ete++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Y4(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function h9(e){return{point:{x:e.pageX,y:e.pageY}}}var Ote=e=>t=>U3(t)&&e(t,h9(t));function g9(e,t,n,r){return L5(e,t,Ote(n),r)}var _9=({current:e})=>e?e.ownerDocument.defaultView:null,v9=(e,t)=>Math.abs(e-t);function kte(e,t){let n=v9(e.x,t.x),r=v9(e.y,t.y);return Math.sqrt(n**2+r**2)}var y9=new Set([`auto`,`scroll`]),b9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=x9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=C9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=kte(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=k1;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=x9(t,this.transformPagePoint),D1.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=C9(e.type===`pointercancel`?this.lastMoveEventInfo:x9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!U3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=x9(h9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=k1;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,C9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=q$(g9(this.contextWindow,`pointermove`,this.handlePointerMove,d),g9(this.contextWindow,`pointerup`,this.handlePointerUp,d),g9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(y9.has(e.overflowX)||y9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),D1.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),O1(this.updatePoint)}};function x9(e,t){return t?{point:t(e.point)}:e}function S9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function C9({point:e},t){return{point:e,delta:S9(e,w9(t)),offset:S9(e,Ate(t)),velocity:jte(t,.1)}}function Ate(e){return e[0]}function w9(e){return e[e.length-1]}function jte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=w9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>X$(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>X$(t)*2&&(r=e[1]);let a=Z$(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Mte(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?D0(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?D0(n,e,r.max):Math.min(e,n)),e}function T9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Nte(e,{top:t,left:n,bottom:r,right:i}){return{x:T9(e.x,n,i),y:T9(e.y,t,r)}}function E9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Pte(e,t){return{x:E9(e.x,t.x),y:E9(e.y,t.y)}}function Fte(e,t){let n=.5,r=i5(e),i=i5(t);return i>r?n=J$(t.min,t.max-r,e.min):r>i&&(n=J$(e.min,e.max-i,t.min)),B$(0,1,n)}function Ite(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var D9=.35;function Lte(e=D9){return e===!1?e=0:e===!0&&(e=D9),{x:O9(e,`left`,`right`),y:O9(e,`top`,`bottom`)}}function O9(e,t,n){return{min:k9(e,t),max:k9(e,n)}}function k9(e,t){return typeof e==`number`?e:e[t]||0}var Rte=new WeakMap,zte=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D6(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(h9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=R3(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),E5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(n0.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=i5(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&D1.update(()=>i(e,t),!1,!0),r3(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Vte(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&D1.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new b9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:_9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&D1.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!j9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Mte(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&f9(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Nte(n.layoutBox,e):this.constraints=!1,this.elastic=Lte(t),r!==this.constraints&&!f9(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&E5(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ite(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!f9(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=p8(n,r.root,this.visualElement.getTransformPagePoint()),a=Pte(r.layout.layoutBox,i);if(t){let e=t(J6(a));this.hasMutatedConstraints=!!e,e&&(a=q6(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=E5(o=>{if(!j9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return r3(this.visualElement,e),n.start(U4(e,n,0,t,this.visualElement,!1))}stopAnimation(){E5(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){E5(t=>{let{drag:n}=this.getProps();if(!j9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-D0(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!f9(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};E5(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Fte({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),E5(t=>{if(!j9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(D0(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Rte.set(this.visualElement,this);let e=this.visualElement.current,t=g9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&q3(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();f9(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Bte(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D1.read(r);let o=L5(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(E5(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=D9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function A9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Bte(e,t,n){let r=h6(e,A9(n)),i=h6(t,A9(n));return()=>{r(),i()}}function j9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vte(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Hte=class extends K6{constructor(e){super(e),this.removeGroupControls=K$,this.removeListeners=K$,this.controls=new zte(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K$}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},M9=e=>(t,n)=>{e&&D1.update(()=>e(t,n),!1,!0)},Ute=class extends K6{constructor(){super(...arguments),this.removePointerDownListener=K$}onPointerDown(e){this.session=new b9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:M9(e),onStart:M9(t),onMove:M9(n),onEnd:(e,t)=>{delete this.session,r&&D1.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=g9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},N9=!1,Wte=class extends j.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),N9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),U5.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),N9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||D1.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),F3.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;N9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function P9(e){let[t,n]=P7(),r=(0,j.useContext)(P$);return(0,M.jsx)(Wte,{...e,layoutGroup:r,switchLayoutGroup:(0,j.useContext)(d9),isPresent:t,safeToRemove:n})}var Gte={pan:{Feature:Ute},drag:{Feature:Hte,ProjectionNode:T7,MeasureLayout:P9}};function F9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&D1.postRender(()=>i(t,h9(t)))}var Kte=class extends K6{mount(){let{current:e}=this.node;e&&(this.unmount=V3(e,(e,t)=>(F9(this.node,t,`Start`),e=>F9(this.node,e,`End`))))}unmount(){}},qte=class extends K6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=q$(L5(this.node.current,`focus`,()=>this.onFocus()),L5(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function I9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&D1.postRender(()=>i(t,h9(t)))}var Jte=class extends K6{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=e6(e,(e,t)=>(I9(this.node,t,`Start`),(e,{success:t})=>I9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},L9=new WeakMap,R9=new WeakMap,Yte=e=>{let t=L9.get(e.target);t&&t(e)},Xte=e=>{e.forEach(Yte)};function Zte({root:e,...t}){let n=e||document;R9.has(n)||R9.set(n,{});let r=R9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Xte,{root:e,...t})),r[i]}function Qte(e,t,n){let r=Zte(t);return L9.set(e,n),r.observe(e),()=>{L9.delete(e),r.unobserve(e)}}var $te={some:0,all:1},ene=class extends K6{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$te[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Qte(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tne(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function tne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var nne={inView:{Feature:ene},tap:{Feature:Jte},focus:{Feature:qte},hover:{Feature:Kte}},rne={layout:{ProjectionNode:T7,MeasureLayout:P9}},ine=Cte({...Dte,...nne,...Gte,...rne},wte);function z9(e){let t=F$(()=>N4(e)),{isStatic:n}=(0,j.useContext)(E7);if(n){let[,n]=(0,j.useState)(e);(0,j.useEffect)(()=>t.on(`change`,n),[])}return t}function B9(e,t){let n=z9(t()),r=()=>n.set(t());return r(),I$(()=>{let t=()=>D1.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),O1(r)}}),n}function ane(e){j4.current=[],e();let t=B9(j4.current,e);return j4.current=void 0,t}function V9(e,t,n,r){if(typeof e==`function`)return ane(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return one(e,t,n,r);let i=typeof t==`function`?t:v6(t,n,r),a=Array.isArray(e)?H9(e,i):H9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function H9(e,t){let n=F$(()=>[]);return B9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function one(e,t,n,r){let i=F$(()=>Object.keys(n)),a=F$(()=>({}));for(let o of i)a[o]=V9(e,t,n[o],r);return a}function sne(e,t={}){let{isStatic:n}=(0,j.useContext)(E7),r=()=>t3(e)?e.get():e;if(n)return V9(r);let i=z9(r());return(0,j.useInsertionEffect)(()=>y6(i,e,t),[i,JSON.stringify(t)]),i}function cne(e,t={}){return sne(e,{type:`spring`,...t})}function lne(){!L6.current&&z6();let[e]=(0,j.useState)(I6.current);return e}function une(e){e.values.forEach(e=>e.stop())}function U9(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&e3(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{U9(e,t)})})}function dne(e,t){if(Array.isArray(t))return U9(e,t);if(typeof t==`string`)return U9(e,[t]);e3(e,t)}function fne(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(d3(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{dne(e,t)})},stop(){e.forEach(e=>{une(e)})},mount(){return()=>{t.stop()}}};return t}function W9(e){return typeof e==`object`&&!Array.isArray(e)}function G9(e,t,n,r){return e==null?[]:typeof e==`string`&&W9(t)?M3(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function pne(e,t,n){return e*(t+1)+n*t}function K9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function mne(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(z$(e,i),r--)}}function hne(e,t,n,r,i,a){mne(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:D0(i,a,r[o]),easing:v1(n,o)})}function gne(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function _ne(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var vne=`easeInOut`,q9=20;function yne(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,K9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=K9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=bne(e),{delay:l=0,times:u=u2(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=a4(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Cne(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=X$(b));let r=K0(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&l2(u,T),c.length===1&&c.unshift(null),m&&`${m}${q9}`,m&&m<q9){let e=b>0?_/b:0;b=pne(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?o1(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:v1(f,e-1))}gne(u,m,e)}let E=w+b;hne(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(t3(p)){let e=J9(p,s);_(m,h,Y9(`default`,e))}else{let e=G9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=J9(r,s);for(let e in m)_(m[e],xne(h,e),Y9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(_ne);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(J$(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(vne)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function J9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Y9(e,t){return t[e]||(t[e]=[]),t[e]}function bne(e){return Array.isArray(e)?e:[e]}function xne(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Sne=e=>typeof e==`number`,Cne=e=>e.every(Sne);function wne(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=t6(e)&&!_6(e)?new R8(t):new E8(t);n.mount(e),O6.set(e,n)}function Tne(e){let t=new O8({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),O6.set(e,t)}function Ene(e,t){return t3(e)||typeof e==`number`||typeof e==`string`&&!W9(t)}function X9(e,t,n,r){let i=[];if(Ene(e,t))i.push(I5(e,W9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=G9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?wne:Tne;O6.has(r)||s(r);let c=O6.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...c3(c,{...t,transition:l},{}))}}return i}function Dne(e,t,n){let r=[];return yne(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=N4(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:r2}).forEach(({keyframes:e,transition:t},n)=>{r.push(...X9(n,e,t))}),r}function One(e){return Array.isArray(e)&&e.some(Array.isArray)}function kne(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),One(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Dne(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=X9(e,i,{...c,...r},t)}let l=new D4(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{z$(t.animations,l)})),l}return i}var Ane=kne();function jne(){let e=F$(fne);return I$(e.mount,[]),e}var Mne=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Nne=()=>new Mne;function Pne(){return F$(Nne)}var Fne=h$(`CameraPreview`,{web:()=>s(()=>import(`./web-CqZ4lPzV.js`).then(e=>new e.CameraPreviewWeb),[])}),Z9=e=>Symbol.iterator in e,Q9=e=>`entries`in e,$9=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Ine=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Lne(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Z9(e)&&Z9(t)?Q9(e)&&Q9(t)?$9(e,t):Ine(e,t):$9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Rne(e){let t=j.useRef(void 0);return n=>{let r=e(n);return Lne(t.current,r)?t.current:t.current=r}}var zne=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;export{tV as $,Ye as $n,om as $t,bY as A,uee as An,j_ as At,FJ as B,eo as Bn,Ag as Bt,l$ as C,Kl as Cn,$b as Ct,fZ as D,kl as Dn,P_ as Dt,hZ as E,Wl as En,M_ as Et,TJ as F,so as Fn,B_ as Ft,kJ as G,Ct as Gn,Dh as Gt,WJ as H,dr as Hn,Jh as Ht,BJ as I,to as In,H_ as It,bH as J,pt as Jn,Eh as Jt,OH as K,Dt as Kn,Th as Kt,JJ as L,ro as Ln,V_ as Lt,KJ as M,fee as Mn,L_ as Mt,DJ as N,io as Nn,k_ as Nt,gX as O,mee as On,R_ as Ot,NJ as P,$a as Pn,z_ as Pt,zB as Q,ct as Qn,im as Qt,IJ as R,ao as Rn,A_ as Rt,h$ as S,zl as Sn,Zb as St,_Z as T,Nl as Tn,F_ as Tt,$q as U,Pt as Un,ng as Ut,vY as V,no as Vn,zh as Vt,RJ as W,jt as Wn,Kh as Wt,vH as X,dt as Xn,Gm as Xt,yH as Y,ft as Yn,Fm as Yt,xH as Z,ut as Zn,Hm as Zt,O$ as _,Zf as _n,ex as _t,jne as a,Tp as an,ce as ar,PO as at,g$ as b,Dl as bn,Cx as bt,cne as c,Uf as cn,hO as ct,ine as d,Bf as dn,hD as dt,wp as en,Je as er,uL as et,z7 as f,Gf as fn,gD as ft,j$ as g,Yf as gn,ax as gt,M$ as h,Jf as hn,Yb as ht,Pne as i,Cp as in,fe as ir,fN as it,yY as j,dee as jn,I_ as jt,_X as k,pee as kn,N_ as kt,V9 as l,qf as ln,yO as lt,N$ as m,Rf as mn,fE as mt,Rne as n,Dp as nn,_e as nr,$N as nt,Ane as o,Wf as on,C as or,AO as ot,F7 as p,Kf as pn,oD as pt,SH as q,mt as qn,wh as qt,Fne as r,Ep as rn,pe as rr,jN as rt,lne as s,Vf as sn,E as sr,jO as st,zne as t,Op as tn,Ke as tr,QI as tt,z9 as u,Hf as un,tO as ut,A$ as v,Xf as vn,xx as vt,xZ as w,Fl as wn,_x as wt,C$ as x,Jl as xn,rx as xt,m$ as y,zf as yn,Tx as yt,xJ as z,Qa as zn,Gg as zt};
125
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,M.jsx)(A7,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:j.cloneElement(e,{ref:u})})}var M7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=F$(N7),d=(0,j.useId)(),f=(0,j.useRef)(n),p=(0,j.useRef)(r);I$(()=>{f.current=n,p.current=r});let m=!0,h=(0,j.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,j.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,M.jsx)(j7,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,M.jsx)(L$.Provider,{value:h,children:e})};function N7(){return new Map}function P7(e=!0){let t=(0,j.useContext)(L$);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,j.useId)();(0,j.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,j.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function F7(){return I7((0,j.useContext)(L$))}function I7(e){return e===null?!0:e.isPresent}var L7=e=>e.key||``;function R7(e){let t=[];return j.Children.forEach(e,e=>{(0,j.isValidElement)(e)&&t.push(e)}),t}var z7=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=P7(o),f=(0,j.useMemo)(()=>R7(e),[e]),p=o&&!u?[]:f.map(L7),m=(0,j.useRef)(!0),h=(0,j.useRef)(f),g=F$(()=>new Map),_=(0,j.useRef)(new Set),[v,y]=(0,j.useState)(f),[b,x]=(0,j.useState)(f);I$(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=L7(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=L7(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(R7(e)),y(f),null}let{forceRender:C}=(0,j.useContext)(P$);return(0,M.jsx)(M.Fragment,{children:b.map(e=>{let v=L7(e),y=o&&!u?!1:f===b||p.includes(v);return(0,M.jsx)(M7,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},B7=(0,j.createContext)({strict:!1}),V7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},H7=!1;function U7(){if(H7)return;let e={};for(let t in V7)e[t]={isEnabled:e=>V7[t].some(t=>!!e[t])};H6(e),H7=!0}function W7(){return U7(),U6()}function G7(e){let t=W7();for(let n in e)t[n]={...t[n],...e[n]};H6(t)}var K7=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function q7(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||K7.has(e)}var J7=r({default:()=>Y7}),Y7,X7=t((()=>{throw Y7={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Z7=e=>!q7(e);function Q7(e){typeof e==`function`&&(Z7=t=>t.startsWith(`on`)?!q7(t):e(t))}try{Q7((X7(),e(J7)).default)}catch{}function $7(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||t3(e[i])||(Z7(i)||n===!0&&q7(i)||!t&&!q7(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var e9=(0,j.createContext)({});function t9(e,t){if(N6(e)){let{initial:t,animate:n}=e;return{initial:t===!1||A6(t)?t:void 0,animate:A6(n)?n:void 0}}return e.inherit===!1?{}:t}function n9(e){let{initial:t,animate:n}=t9(e,(0,j.useContext)(e9));return(0,j.useMemo)(()=>({initial:t,animate:n}),[r9(t),r9(n)])}function r9(e){return Array.isArray(e)?e.join(` `):e}var i9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function a9(e,t,n){for(let r in t)!t3(t[r])&&!C8(r,n)&&(e[r]=t[r])}function o9({transformTemplate:e},t){return(0,j.useMemo)(()=>{let n=i9();return _8(n,t,e),Object.assign({},n.vars,n.style)},[t])}function s9(e,t){let n=e.style||{},r={};return a9(r,n,e),Object.assign(r,o9(e,t)),r}function cte(e,t){let n={},r=s9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var c9=()=>({...i9(),attrs:{}});function lte(e,t,n,r){let i=(0,j.useMemo)(()=>{let n=c9();return N8(n,t,F8(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};a9(t,e.style,e),i.style={...t,...i.style}}return i}var ute=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function l9(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ute.indexOf(e)>-1||/[A-Z]/u.test(e))}function dte(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??l9(e)?lte:cte)(t,r,i,e),c=$7(t,typeof e==`string`,a),l=e===j.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,j.useMemo)(()=>t3(u)?u.get():u,[u]);return(0,j.createElement)(e,{...l,children:d})}function fte({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:pte(n,r,i,e),renderState:t()}}function pte(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=V5(a[e]);let{initial:o,animate:s}=e,c=N6(e),l=P6(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!k6(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=J4(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var u9=e=>(t,n)=>{let r=(0,j.useContext)(e9),i=(0,j.useContext)(L$),a=()=>fte(e,t,r,i);return n?a():F$(a)},mte=u9({scrapeMotionValuesFromProps:w8,createRenderState:i9}),hte=u9({scrapeMotionValuesFromProps:L8,createRenderState:c9}),gte=Symbol.for(`motionComponentSymbol`);function _te(e,t,n){let r=(0,j.useRef)(n);(0,j.useInsertionEffect)(()=>{r.current=n});let i=(0,j.useRef)(null);return(0,j.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var d9=(0,j.createContext)({});function f9(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function vte(e,t,n,r,i,a){let{visualElement:o}=(0,j.useContext)(e9),s=(0,j.useContext)(B7),c=(0,j.useContext)(L$),l=(0,j.useContext)(E7),u=l.reducedMotion,d=l.skipAnimations,f=(0,j.useRef)(null),p=(0,j.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,j.useContext)(d9);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&yte(f.current,n,i,h);let g=(0,j.useRef)(!1);(0,j.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[a3],v=(0,j.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return I$(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,j.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function yte(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:p9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&f9(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function p9(e){if(e)return e.options.allowProjection===!1?p9(e.parent):e.projection}function m9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&G7(r);let a=n?n===`svg`:l9(e),o=a?hte:mte;function s(n,s){let c,l={...(0,j.useContext)(E7),...n,layoutId:bte(n)},{isStatic:u}=l,d=n9(n),f=o(n,u);if(!u&&typeof window<`u`){xte(l,r);let t=Ste(l);c=t.MeasureLayout,d.visualElement=vte(e,f,l,i,t.ProjectionNode,a)}return(0,M.jsxs)(e9.Provider,{value:d,children:[c&&d.visualElement?(0,M.jsx)(c,{visualElement:d.visualElement,...l}):null,dte(e,n,_te(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,j.forwardRef)(s);return c[gte]=e,c}function bte({layoutId:e}){let t=(0,j.useContext)(P$).id;return t&&e!==void 0?t+`-`+e:e}function xte(e,t){(0,j.useContext)(B7).strict}function Ste(e){let{drag:t,layout:n}=W7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Cte(e,t){if(typeof Proxy>`u`)return m9;let n=new Map,r=(n,r)=>m9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,m9(a,void 0,e,t)),n.get(a))})}var wte=(e,t)=>t.isSVG??l9(e)?new R8(t):new E8(t,{allowProjection:e!==j.Fragment}),Tte=class extends K6{constructor(e){super(e),e.animationState||=G8(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();k6(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ete=0,Dte={animation:{Feature:Tte},exit:{Feature:class extends K6{constructor(){super(...arguments),this.id=Ete++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Y4(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function h9(e){return{point:{x:e.pageX,y:e.pageY}}}var Ote=e=>t=>U3(t)&&e(t,h9(t));function g9(e,t,n,r){return L5(e,t,Ote(n),r)}var _9=({current:e})=>e?e.ownerDocument.defaultView:null,v9=(e,t)=>Math.abs(e-t);function kte(e,t){let n=v9(e.x,t.x),r=v9(e.y,t.y);return Math.sqrt(n**2+r**2)}var y9=new Set([`auto`,`scroll`]),b9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=x9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=C9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=kte(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=k1;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=x9(t,this.transformPagePoint),D1.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=C9(e.type===`pointercancel`?this.lastMoveEventInfo:x9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!U3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=x9(h9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=k1;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,C9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=q$(g9(this.contextWindow,`pointermove`,this.handlePointerMove,d),g9(this.contextWindow,`pointerup`,this.handlePointerUp,d),g9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(y9.has(e.overflowX)||y9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),D1.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),O1(this.updatePoint)}};function x9(e,t){return t?{point:t(e.point)}:e}function S9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function C9({point:e},t){return{point:e,delta:S9(e,w9(t)),offset:S9(e,Ate(t)),velocity:jte(t,.1)}}function Ate(e){return e[0]}function w9(e){return e[e.length-1]}function jte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=w9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>X$(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>X$(t)*2&&(r=e[1]);let a=Z$(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Mte(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?D0(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?D0(n,e,r.max):Math.min(e,n)),e}function T9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Nte(e,{top:t,left:n,bottom:r,right:i}){return{x:T9(e.x,n,i),y:T9(e.y,t,r)}}function E9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Pte(e,t){return{x:E9(e.x,t.x),y:E9(e.y,t.y)}}function Fte(e,t){let n=.5,r=i5(e),i=i5(t);return i>r?n=J$(t.min,t.max-r,e.min):r>i&&(n=J$(e.min,e.max-i,t.min)),B$(0,1,n)}function Ite(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var D9=.35;function Lte(e=D9){return e===!1?e=0:e===!0&&(e=D9),{x:O9(e,`left`,`right`),y:O9(e,`top`,`bottom`)}}function O9(e,t,n){return{min:k9(e,t),max:k9(e,n)}}function k9(e,t){return typeof e==`number`?e:e[t]||0}var Rte=new WeakMap,zte=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D6(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(h9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=R3(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),E5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(n0.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=i5(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&D1.update(()=>i(e,t),!1,!0),r3(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Vte(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&D1.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new b9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:_9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&D1.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!j9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Mte(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&f9(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Nte(n.layoutBox,e):this.constraints=!1,this.elastic=Lte(t),r!==this.constraints&&!f9(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&E5(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ite(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!f9(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=p8(n,r.root,this.visualElement.getTransformPagePoint()),a=Pte(r.layout.layoutBox,i);if(t){let e=t(J6(a));this.hasMutatedConstraints=!!e,e&&(a=q6(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=E5(o=>{if(!j9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return r3(this.visualElement,e),n.start(U4(e,n,0,t,this.visualElement,!1))}stopAnimation(){E5(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){E5(t=>{let{drag:n}=this.getProps();if(!j9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-D0(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!f9(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};E5(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Fte({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),E5(t=>{if(!j9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(D0(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Rte.set(this.visualElement,this);let e=this.visualElement.current,t=g9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&q3(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();f9(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Bte(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D1.read(r);let o=L5(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(E5(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=D9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function A9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Bte(e,t,n){let r=h6(e,A9(n)),i=h6(t,A9(n));return()=>{r(),i()}}function j9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vte(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Hte=class extends K6{constructor(e){super(e),this.removeGroupControls=K$,this.removeListeners=K$,this.controls=new zte(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K$}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},M9=e=>(t,n)=>{e&&D1.update(()=>e(t,n),!1,!0)},Ute=class extends K6{constructor(){super(...arguments),this.removePointerDownListener=K$}onPointerDown(e){this.session=new b9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:M9(e),onStart:M9(t),onMove:M9(n),onEnd:(e,t)=>{delete this.session,r&&D1.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=g9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},N9=!1,Wte=class extends j.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),N9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),U5.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),N9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||D1.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),F3.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;N9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function P9(e){let[t,n]=P7(),r=(0,j.useContext)(P$);return(0,M.jsx)(Wte,{...e,layoutGroup:r,switchLayoutGroup:(0,j.useContext)(d9),isPresent:t,safeToRemove:n})}var Gte={pan:{Feature:Ute},drag:{Feature:Hte,ProjectionNode:T7,MeasureLayout:P9}};function F9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&D1.postRender(()=>i(t,h9(t)))}var Kte=class extends K6{mount(){let{current:e}=this.node;e&&(this.unmount=V3(e,(e,t)=>(F9(this.node,t,`Start`),e=>F9(this.node,e,`End`))))}unmount(){}},qte=class extends K6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=q$(L5(this.node.current,`focus`,()=>this.onFocus()),L5(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function I9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&D1.postRender(()=>i(t,h9(t)))}var Jte=class extends K6{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=e6(e,(e,t)=>(I9(this.node,t,`Start`),(e,{success:t})=>I9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},L9=new WeakMap,R9=new WeakMap,Yte=e=>{let t=L9.get(e.target);t&&t(e)},Xte=e=>{e.forEach(Yte)};function Zte({root:e,...t}){let n=e||document;R9.has(n)||R9.set(n,{});let r=R9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Xte,{root:e,...t})),r[i]}function Qte(e,t,n){let r=Zte(t);return L9.set(e,n),r.observe(e),()=>{L9.delete(e),r.unobserve(e)}}var $te={some:0,all:1},ene=class extends K6{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$te[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Qte(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tne(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function tne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var nne={inView:{Feature:ene},tap:{Feature:Jte},focus:{Feature:qte},hover:{Feature:Kte}},rne={layout:{ProjectionNode:T7,MeasureLayout:P9}},ine=Cte({...Dte,...nne,...Gte,...rne},wte);function z9(e){let t=F$(()=>N4(e)),{isStatic:n}=(0,j.useContext)(E7);if(n){let[,n]=(0,j.useState)(e);(0,j.useEffect)(()=>t.on(`change`,n),[])}return t}function B9(e,t){let n=z9(t()),r=()=>n.set(t());return r(),I$(()=>{let t=()=>D1.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),O1(r)}}),n}function ane(e){j4.current=[],e();let t=B9(j4.current,e);return j4.current=void 0,t}function V9(e,t,n,r){if(typeof e==`function`)return ane(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return one(e,t,n,r);let i=typeof t==`function`?t:v6(t,n,r),a=Array.isArray(e)?H9(e,i):H9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function H9(e,t){let n=F$(()=>[]);return B9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function one(e,t,n,r){let i=F$(()=>Object.keys(n)),a=F$(()=>({}));for(let o of i)a[o]=V9(e,t,n[o],r);return a}function sne(e,t={}){let{isStatic:n}=(0,j.useContext)(E7),r=()=>t3(e)?e.get():e;if(n)return V9(r);let i=z9(r());return(0,j.useInsertionEffect)(()=>y6(i,e,t),[i,JSON.stringify(t)]),i}function cne(e,t={}){return sne(e,{type:`spring`,...t})}function lne(){!L6.current&&z6();let[e]=(0,j.useState)(I6.current);return e}function une(e){e.values.forEach(e=>e.stop())}function U9(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&e3(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{U9(e,t)})})}function dne(e,t){if(Array.isArray(t))return U9(e,t);if(typeof t==`string`)return U9(e,[t]);e3(e,t)}function fne(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(d3(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{dne(e,t)})},stop(){e.forEach(e=>{une(e)})},mount(){return()=>{t.stop()}}};return t}function W9(e){return typeof e==`object`&&!Array.isArray(e)}function G9(e,t,n,r){return e==null?[]:typeof e==`string`&&W9(t)?M3(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function pne(e,t,n){return e*(t+1)+n*t}function K9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function mne(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(z$(e,i),r--)}}function hne(e,t,n,r,i,a){mne(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:D0(i,a,r[o]),easing:v1(n,o)})}function gne(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function _ne(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var vne=`easeInOut`,q9=20;function yne(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,K9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=K9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=bne(e),{delay:l=0,times:u=u2(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=a4(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Cne(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=X$(b));let r=K0(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&l2(u,T),c.length===1&&c.unshift(null),m&&`${m}${q9}`,m&&m<q9){let e=b>0?_/b:0;b=pne(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?o1(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:v1(f,e-1))}gne(u,m,e)}let E=w+b;hne(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(t3(p)){let e=J9(p,s);_(m,h,Y9(`default`,e))}else{let e=G9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=J9(r,s);for(let e in m)_(m[e],xne(h,e),Y9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(_ne);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(J$(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(vne)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function J9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Y9(e,t){return t[e]||(t[e]=[]),t[e]}function bne(e){return Array.isArray(e)?e:[e]}function xne(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Sne=e=>typeof e==`number`,Cne=e=>e.every(Sne);function wne(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=t6(e)&&!_6(e)?new R8(t):new E8(t);n.mount(e),O6.set(e,n)}function Tne(e){let t=new O8({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),O6.set(e,t)}function Ene(e,t){return t3(e)||typeof e==`number`||typeof e==`string`&&!W9(t)}function X9(e,t,n,r){let i=[];if(Ene(e,t))i.push(I5(e,W9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=G9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?wne:Tne;O6.has(r)||s(r);let c=O6.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...c3(c,{...t,transition:l},{}))}}return i}function Dne(e,t,n){let r=[];return yne(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=N4(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:r2}).forEach(({keyframes:e,transition:t},n)=>{r.push(...X9(n,e,t))}),r}function One(e){return Array.isArray(e)&&e.some(Array.isArray)}function kne(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),One(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Dne(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=X9(e,i,{...c,...r},t)}let l=new D4(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{z$(t.animations,l)})),l}return i}var Ane=kne();function jne(){let e=F$(fne);return I$(e.mount,[]),e}var Mne=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Nne=()=>new Mne;function Pne(){return F$(Nne)}var Fne=h$(`CameraPreview`,{web:()=>s(()=>import(`./web-DaDJItvE.js`).then(e=>new e.CameraPreviewWeb),[])}),Z9=e=>Symbol.iterator in e,Q9=e=>`entries`in e,$9=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Ine=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Lne(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Z9(e)&&Z9(t)?Q9(e)&&Q9(t)?$9(e,t):Ine(e,t):$9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Rne(e){let t=j.useRef(void 0);return n=>{let r=e(n);return Lne(t.current,r)?t.current:t.current=r}}var zne=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;export{tV as $,Ye as $n,om as $t,bY as A,uee as An,j_ as At,FJ as B,eo as Bn,Ag as Bt,l$ as C,Kl as Cn,$b as Ct,fZ as D,kl as Dn,P_ as Dt,hZ as E,Wl as En,M_ as Et,TJ as F,so as Fn,B_ as Ft,kJ as G,Ct as Gn,Dh as Gt,WJ as H,dr as Hn,Jh as Ht,BJ as I,to as In,H_ as It,bH as J,pt as Jn,Eh as Jt,OH as K,Dt as Kn,Th as Kt,JJ as L,ro as Ln,V_ as Lt,KJ as M,fee as Mn,L_ as Mt,DJ as N,io as Nn,k_ as Nt,gX as O,mee as On,R_ as Ot,NJ as P,$a as Pn,z_ as Pt,zB as Q,ct as Qn,im as Qt,IJ as R,ao as Rn,A_ as Rt,h$ as S,zl as Sn,Zb as St,_Z as T,Nl as Tn,F_ as Tt,$q as U,Pt as Un,ng as Ut,vY as V,no as Vn,zh as Vt,RJ as W,jt as Wn,Kh as Wt,vH as X,dt as Xn,Gm as Xt,yH as Y,ft as Yn,Fm as Yt,xH as Z,ut as Zn,Hm as Zt,O$ as _,Zf as _n,ex as _t,jne as a,Tp as an,ce as ar,PO as at,g$ as b,Dl as bn,Cx as bt,cne as c,Uf as cn,hO as ct,ine as d,Bf as dn,hD as dt,wp as en,Je as er,uL as et,z7 as f,Gf as fn,gD as ft,j$ as g,Yf as gn,ax as gt,M$ as h,Jf as hn,Yb as ht,Pne as i,Cp as in,fe as ir,fN as it,yY as j,dee as jn,I_ as jt,_X as k,pee as kn,N_ as kt,V9 as l,qf as ln,yO as lt,N$ as m,Rf as mn,fE as mt,Rne as n,Dp as nn,_e as nr,$N as nt,Ane as o,Wf as on,C as or,AO as ot,F7 as p,Kf as pn,oD as pt,SH as q,mt as qn,wh as qt,Fne as r,Ep as rn,pe as rr,jN as rt,lne as s,Vf as sn,E as sr,jO as st,zne as t,Op as tn,Ke as tr,QI as tt,z9 as u,Hf as un,tO as ut,A$ as v,Xf as vn,xx as vt,xZ as w,Fl as wn,_x as wt,C$ as x,Jl as xn,rx as xt,m$ as y,zf as yn,Tx as yt,xJ as z,Qa as zn,Gg as zt};