@mycadet/app 0.14.0 → 0.14.1-dev.202612061615.c8dfc87
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.
- package/dist/package/{account-D1YjLGV9.js → account-BpCbLsfP.js} +57 -4
- package/dist/package/{account-D1YjLGV9.js.map → account-BpCbLsfP.js.map} +1 -1
- package/dist/package/{account-BvjgJwlA.js → account-BpU1t26s.js} +57 -4
- package/dist/package/{account-BvjgJwlA.js.map → account-BpU1t26s.js.map} +1 -1
- package/dist/package/{account-ClsQnHGQ.js → account-CNVJ2tRu.js} +57 -4
- package/dist/package/{account-ClsQnHGQ.js.map → account-CNVJ2tRu.js.map} +1 -1
- package/dist/package/{account-8eKos9G7.js → account-Dh32wybG.js} +79 -3
- package/dist/package/{account-8eKos9G7.js.map → account-Dh32wybG.js.map} +1 -1
- package/dist/package/{common-oxewtz-Y.js → common-C_oPdXpV.js} +3 -2
- package/dist/package/{common-oxewtz-Y.js.map → common-C_oPdXpV.js.map} +1 -1
- package/dist/package/{common-dGbBloR6.js → common-D1kBgkpz.js} +3 -2
- package/dist/package/{common-dGbBloR6.js.map → common-D1kBgkpz.js.map} +1 -1
- package/dist/package/{common-BluQGYDb.js → common-DVJ5NUo5.js} +8 -3
- package/dist/package/{common-BluQGYDb.js.map → common-DVJ5NUo5.js.map} +1 -1
- package/dist/package/{common-DNZ_4X_m.js → common-sYQVH-gY.js} +3 -2
- package/dist/package/{common-DNZ_4X_m.js.map → common-sYQVH-gY.js.map} +1 -1
- package/dist/package/contracts.js +2 -2
- package/dist/package/index.js +243 -177
- package/dist/package/index.js.map +1 -1
- package/dist/package/package.json +1 -1
- package/dist/package/{resolution-contract-D6qbDWH9.js → resolution-contract-Cx6VTw9G.js} +7 -3
- package/dist/package/resolution-contract-Cx6VTw9G.js.map +1 -0
- package/dist/package/types/assistant/resolution-contract.d.ts +10 -0
- package/dist/package/types/i18n/i18n.d.ts +0 -33
- package/dist/package/types/i18n/locales/en/account.json +59 -2
- package/dist/package/types/i18n/locales/en/common.json +2 -1
- package/dist/package/types/i18n/locales/es/account.json +54 -1
- package/dist/package/types/i18n/locales/es/common.json +2 -1
- package/dist/package/types/i18n/locales/ru/account.json +54 -1
- package/dist/package/types/i18n/locales/ru/common.json +5 -0
- package/dist/package/types/i18n/locales/zh/account.json +54 -1
- package/dist/package/types/i18n/locales/zh/common.json +2 -1
- package/dist/package/types/i18n/locales/zh-TW/account.json +76 -0
- package/dist/package/types/i18n/locales/zh-TW/common.json +2 -1
- package/dist/package/types/utils/routes.d.ts +3 -0
- package/dist/standalone/assets/{about-page-bFAEorIh.js → about-page-mpEzEQb2.js} +2 -2
- package/dist/standalone/assets/{about-page-bFAEorIh.js.map → about-page-mpEzEQb2.js.map} +1 -1
- package/dist/standalone/assets/{account-6E86_HHi.js → account-Bd_S-0WO.js} +2 -2
- package/dist/standalone/assets/{account-6E86_HHi.js.map → account-Bd_S-0WO.js.map} +1 -1
- package/dist/standalone/assets/{account-TbSfcuuQ.js → account-CGmyEqxw.js} +2 -2
- package/dist/standalone/assets/{account-TbSfcuuQ.js.map → account-CGmyEqxw.js.map} +1 -1
- package/dist/standalone/assets/{account-BkOLkgsM.js → account-Clewz9x-.js} +2 -2
- package/dist/standalone/assets/{account-BkOLkgsM.js.map → account-Clewz9x-.js.map} +1 -1
- package/dist/standalone/assets/{account-BhR_HGNE.js → account-DMlLQkdD.js} +2 -2
- package/dist/standalone/assets/{account-BhR_HGNE.js.map → account-DMlLQkdD.js.map} +1 -1
- package/dist/standalone/assets/{account-form-XXd0H39n.js → account-form-DeupMytE.js} +2 -2
- package/dist/standalone/assets/{account-form-XXd0H39n.js.map → account-form-DeupMytE.js.map} +1 -1
- package/dist/standalone/assets/account-page-BySTwbnw.js +2 -0
- package/dist/standalone/assets/{account-page-C9RTiet9.js.map → account-page-BySTwbnw.js.map} +1 -1
- package/dist/standalone/assets/{account-shell-8wPEal0o.js → account-shell-0G7JjvNP.js} +1 -1
- package/dist/standalone/assets/{account-shell-8wPEal0o.js.map → account-shell-0G7JjvNP.js.map} +1 -1
- package/dist/standalone/assets/{api-Di6JRcb2.js → api-DLpH8-Kd.js} +2 -2
- package/dist/standalone/assets/{api-Di6JRcb2.js.map → api-DLpH8-Kd.js.map} +1 -1
- package/dist/standalone/assets/api-key-screen-CDgWGEeC.js +2 -0
- package/dist/standalone/assets/api-key-screen-CDgWGEeC.js.map +1 -0
- package/dist/standalone/assets/{assistant-selection-DZ-dloFF.js → assistant-selection-Ce-208FP.js} +2 -2
- package/dist/standalone/assets/{assistant-selection-DZ-dloFF.js.map → assistant-selection-Ce-208FP.js.map} +1 -1
- package/dist/standalone/assets/assistants-page-CGRw4Jem.js +2 -0
- package/dist/standalone/assets/assistants-page-CGRw4Jem.js.map +1 -0
- package/dist/standalone/assets/{auth-flow-DRKdI57z.js → auth-flow-BJ6I5FKW.js} +2 -2
- package/dist/standalone/assets/auth-flow-BJ6I5FKW.js.map +1 -0
- package/dist/standalone/assets/{auth-store-Da8bCODz.js → auth-store-b5wsXdqH.js} +3 -3
- package/dist/standalone/assets/{auth-store-Da8bCODz.js.map → auth-store-b5wsXdqH.js.map} +1 -1
- package/dist/standalone/assets/{auth-welcome-screen-BYvKnLEN.js → auth-welcome-screen-DtQV_ZMd.js} +2 -2
- package/dist/standalone/assets/{auth-welcome-screen-BYvKnLEN.js.map → auth-welcome-screen-DtQV_ZMd.js.map} +1 -1
- package/dist/standalone/assets/{avatar-bundled-components-Bt-85W__.js → avatar-bundled-components-ClZdA6nY.js} +1 -1
- package/dist/standalone/assets/{avatar-bundled-components-Bt-85W__.js.map → avatar-bundled-components-ClZdA6nY.js.map} +1 -1
- package/dist/standalone/assets/avatar-bundled-components-Dns64W1x.js +1 -0
- package/dist/standalone/assets/{avatar-random-B7ItAA05.js → avatar-random-fLuWMrQ4.js} +2 -2
- package/dist/standalone/assets/{avatar-random-B7ItAA05.js.map → avatar-random-fLuWMrQ4.js.map} +1 -1
- package/dist/standalone/assets/{button-DXWFbocH.js → button-VN1Hg58T.js} +2 -2
- package/dist/standalone/assets/{button-DXWFbocH.js.map → button-VN1Hg58T.js.map} +1 -1
- package/dist/standalone/assets/{capture-error-N-BrfSzo.js → capture-error-DOE5Xzi8.js} +1 -1
- package/dist/standalone/assets/{capture-error-N-BrfSzo.js.map → capture-error-DOE5Xzi8.js.map} +1 -1
- package/dist/standalone/assets/{checkbox-DjYdyWsT.js → checkbox-BillvEmp.js} +2 -2
- package/dist/standalone/assets/{checkbox-DjYdyWsT.js.map → checkbox-BillvEmp.js.map} +1 -1
- package/dist/standalone/assets/circle-BDAthucW.js +2 -0
- package/dist/standalone/assets/circle-BDAthucW.js.map +1 -0
- package/dist/standalone/assets/circle-alert-BDlVZkal.js +2 -0
- package/dist/standalone/assets/circle-alert-BDlVZkal.js.map +1 -0
- package/dist/standalone/assets/circle-check-COWWfbA3.js +2 -0
- package/dist/standalone/assets/circle-check-COWWfbA3.js.map +1 -0
- package/dist/standalone/assets/{cloud-loopback-page-BMz0_4p-.js → cloud-loopback-page-RXiZFgdq.js} +2 -2
- package/dist/standalone/assets/{cloud-loopback-page-BMz0_4p-.js.map → cloud-loopback-page-RXiZFgdq.js.map} +1 -1
- package/dist/standalone/assets/cloud-off-B_OI861m.js +2 -0
- package/dist/standalone/assets/cloud-off-B_OI861m.js.map +1 -0
- package/dist/standalone/assets/common-B8_P50yi.js +2 -0
- package/dist/standalone/assets/{common-DiqTxEoY.js.map → common-B8_P50yi.js.map} +1 -1
- package/dist/standalone/assets/{common-B65SaoD3.js → common-Bpry-qgo.js} +2 -2
- package/dist/standalone/assets/{common-B65SaoD3.js.map → common-Bpry-qgo.js.map} +1 -1
- package/dist/standalone/assets/common-CrJpZdYi.js +2 -0
- package/dist/standalone/assets/{common-CXt-X9JZ.js.map → common-CrJpZdYi.js.map} +1 -1
- package/dist/standalone/assets/common-DSLtqzPH.js +2 -0
- package/dist/standalone/assets/{common-CF7RP46x.js.map → common-DSLtqzPH.js.map} +1 -1
- package/dist/standalone/assets/confirm-dialog-CIACfqv5.js +2 -0
- package/dist/standalone/assets/confirm-dialog-CIACfqv5.js.map +1 -0
- package/dist/standalone/assets/connect-screen-B6oyU8zW.js +3 -0
- package/dist/standalone/assets/connect-screen-B6oyU8zW.js.map +1 -0
- package/dist/standalone/assets/{consent-DO714CFR.js → consent-Az-84EDv.js} +1 -1
- package/dist/standalone/assets/{consent-DO714CFR.js.map → consent-Az-84EDv.js.map} +1 -1
- package/dist/standalone/assets/{consent-CtNgR_OY.js → consent-BIJ-u7pS.js} +1 -1
- package/dist/standalone/assets/{consent-CtNgR_OY.js.map → consent-BIJ-u7pS.js.map} +1 -1
- package/dist/standalone/assets/{consent-BQKxIOyu.js → consent-CLFAJlfA.js} +1 -1
- package/dist/standalone/assets/{consent-BQKxIOyu.js.map → consent-CLFAJlfA.js.map} +1 -1
- package/dist/standalone/assets/{consent-CsUnMqF9.js → consent-dhas0XzG.js} +1 -1
- package/dist/standalone/assets/{consent-CsUnMqF9.js.map → consent-dhas0XzG.js.map} +1 -1
- package/dist/standalone/assets/{consent-persistence-CrqlC1nt.js → consent-persistence-DWA4JUAj.js} +2 -2
- package/dist/standalone/assets/{consent-persistence-CrqlC1nt.js.map → consent-persistence-DWA4JUAj.js.map} +1 -1
- package/dist/standalone/assets/copy-to-clipboard-DyoXuDAI.js +2 -0
- package/dist/standalone/assets/copy-to-clipboard-DyoXuDAI.js.map +1 -0
- package/dist/standalone/assets/{create-selectors-CcrSgAwQ.js → create-selectors-lj3eOKUw.js} +2 -2
- package/dist/standalone/assets/{create-selectors-CcrSgAwQ.js.map → create-selectors-lj3eOKUw.js.map} +1 -1
- package/dist/standalone/assets/definitions-CldVj4s0.js +2 -0
- package/dist/standalone/assets/definitions-CldVj4s0.js.map +1 -0
- package/dist/standalone/assets/{describe-error-CGCx3ZS3.js → describe-error-B2U_mZYH.js} +1 -1
- package/dist/standalone/assets/{describe-error-CGCx3ZS3.js.map → describe-error-B2U_mZYH.js.map} +1 -1
- package/dist/standalone/assets/dial-BUTZAJO3.js +2 -0
- package/dist/standalone/assets/dial-BUTZAJO3.js.map +1 -0
- package/dist/standalone/assets/{dist-Bsp7oWdO.js → dist-B0U1otb8.js} +2 -2
- package/dist/standalone/assets/{dist-Bsp7oWdO.js.map → dist-B0U1otb8.js.map} +1 -1
- package/dist/standalone/assets/{dist-D_g3U3xX.js → dist-DAjFxRQx.js} +1 -1
- package/dist/standalone/assets/{dist-D_g3U3xX.js.map → dist-DAjFxRQx.js.map} +1 -1
- package/dist/standalone/assets/{doctor-CqLlYvNj.js → doctor-B27zTEz7.js} +1 -1
- package/dist/standalone/assets/{doctor-CqLlYvNj.js.map → doctor-B27zTEz7.js.map} +1 -1
- package/dist/standalone/assets/{doctor-D7pMtU6A.js → doctor-D3gGkdwv.js} +1 -1
- package/dist/standalone/assets/{doctor-D7pMtU6A.js.map → doctor-D3gGkdwv.js.map} +1 -1
- package/dist/standalone/assets/{doctor-YwCkq2Cy.js → doctor-Dg28XeYF.js} +1 -1
- package/dist/standalone/assets/{doctor-YwCkq2Cy.js.map → doctor-Dg28XeYF.js.map} +1 -1
- package/dist/standalone/assets/{doctor-BIfQyFc_.js → doctor-OdWe6ZZu.js} +1 -1
- package/dist/standalone/assets/{doctor-BIfQyFc_.js.map → doctor-OdWe6ZZu.js.map} +1 -1
- package/dist/standalone/assets/doctor-page-DdHoPZZF.js +8 -0
- package/dist/standalone/assets/doctor-page-DdHoPZZF.js.map +1 -0
- package/dist/standalone/assets/{electron-bridge-B1sJkvH-.js → electron-bridge-DGEnu054.js} +1 -1
- package/dist/standalone/assets/{electron-bridge-B1sJkvH-.js.map → electron-bridge-DGEnu054.js.map} +1 -1
- package/dist/standalone/assets/{ellipsis-vertical-DRMhSLjp.js → ellipsis-vertical-OHRxK2jN.js} +1 -1
- package/dist/standalone/assets/{ellipsis-vertical-DRMhSLjp.js.map → ellipsis-vertical-OHRxK2jN.js.map} +1 -1
- package/dist/standalone/assets/esm-Beq0qz18.js +3 -0
- package/dist/standalone/assets/esm-Beq0qz18.js.map +1 -0
- package/dist/standalone/assets/esm-ChB87WoR.js +3 -0
- package/dist/standalone/assets/{esm-qBiA1_4M.js.map → esm-ChB87WoR.js.map} +1 -1
- package/dist/standalone/assets/{external-anchor-CMWL9CU_.js → external-anchor-CxPebGZd.js} +3 -3
- package/dist/standalone/assets/{external-anchor-CMWL9CU_.js.map → external-anchor-CxPebGZd.js.map} +1 -1
- package/dist/standalone/assets/{full-page-navigation-VfHlqUPi.js → full-page-navigation-BYqyWwg_.js} +1 -1
- package/dist/standalone/assets/{full-page-navigation-VfHlqUPi.js.map → full-page-navigation-BYqyWwg_.js.map} +1 -1
- package/dist/standalone/assets/{hard-navigate-BjhB5Ecy.js → hard-navigate-B4a9GrBh.js} +1 -1
- package/dist/standalone/assets/{hard-navigate-BjhB5Ecy.js.map → hard-navigate-B4a9GrBh.js.map} +1 -1
- package/dist/standalone/assets/hatching-screen-DZEnajoN.js +2 -0
- package/dist/standalone/assets/hatching-screen-DZEnajoN.js.map +1 -0
- package/dist/standalone/assets/hosting-screen-ByUZjNJU.js +2 -0
- package/dist/standalone/assets/hosting-screen-ByUZjNJU.js.map +1 -0
- package/dist/standalone/assets/{i18n-BaPIfk2c.js → i18n-B16Eox1c.js} +3 -3
- package/dist/standalone/assets/{i18n-BaPIfk2c.js.map → i18n-B16Eox1c.js.map} +1 -1
- package/dist/standalone/assets/index-BocnD1im.css +2 -0
- package/dist/standalone/assets/index-DD5DXOxB.js +25 -0
- package/dist/standalone/assets/index-DD5DXOxB.js.map +1 -0
- package/dist/standalone/assets/input-Bo9hZuBu.js +2 -0
- package/dist/standalone/assets/input-Bo9hZuBu.js.map +1 -0
- package/dist/standalone/assets/{is-electron-DLjujt3j.js → is-electron-BsUxh4Xi.js} +1 -1
- package/dist/standalone/assets/is-electron-BsUxh4Xi.js.map +1 -0
- package/dist/standalone/assets/login-page-cjgc_Pvc.js +2 -0
- package/dist/standalone/assets/{login-page-BZGRX0EO.js.map → login-page-cjgc_Pvc.js.map} +1 -1
- package/dist/standalone/assets/logout-page-FzZ-7lWk.js +2 -0
- package/dist/standalone/assets/{logout-page-B2MWIJOU.js.map → logout-page-FzZ-7lWk.js.map} +1 -1
- package/dist/standalone/assets/{native-deep-link-BBxdwlv4.js → native-deep-link-BeCO19L3.js} +1 -1
- package/dist/standalone/assets/{native-deep-link-BBxdwlv4.js.map → native-deep-link-BeCO19L3.js.map} +1 -1
- package/dist/standalone/assets/{native-platform-CAw_N48L.js → native-platform-CnRhTtiM.js} +2 -2
- package/dist/standalone/assets/{native-platform-CAw_N48L.js.map → native-platform-CnRhTtiM.js.map} +1 -1
- package/dist/standalone/assets/{oauth-complete-page-CEH8Zi-1.js → oauth-complete-page-CqrTmVHJ.js} +2 -2
- package/dist/standalone/assets/{oauth-complete-page-CEH8Zi-1.js.map → oauth-complete-page-CqrTmVHJ.js.map} +1 -1
- package/dist/standalone/assets/{oauth-popup-CdRon5Q4.js → oauth-popup-AOIxWPUj.js} +1 -1
- package/dist/standalone/assets/{oauth-popup-CdRon5Q4.js.map → oauth-popup-AOIxWPUj.js.map} +1 -1
- package/dist/standalone/assets/{oauth-popup-complete-page-CLQh8_Yg.js → oauth-popup-complete-page-zmTZt5jJ.js} +2 -2
- package/dist/standalone/assets/{oauth-popup-complete-page-CLQh8_Yg.js.map → oauth-popup-complete-page-zmTZt5jJ.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-DGo1yvDA.js → onboarding-BUsGmEpD.js} +1 -1
- package/dist/standalone/assets/{onboarding-DGo1yvDA.js.map → onboarding-BUsGmEpD.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-BEGUvKly.js → onboarding-DDUMWxqw.js} +1 -1
- package/dist/standalone/assets/{onboarding-BEGUvKly.js.map → onboarding-DDUMWxqw.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-OFRPhT96.js → onboarding-DQsY7qgd.js} +1 -1
- package/dist/standalone/assets/{onboarding-OFRPhT96.js.map → onboarding-DQsY7qgd.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-destination-B66p_VZu.js → onboarding-destination-CxQx0_IC.js} +2 -2
- package/dist/standalone/assets/{onboarding-destination-B66p_VZu.js.map → onboarding-destination-CxQx0_IC.js.map} +1 -1
- package/dist/standalone/assets/onboarding-navigation-CdRV6F0Q.js +2 -0
- package/dist/standalone/assets/{onboarding-navigation-DC8_8LuV.js.map → onboarding-navigation-CdRV6F0Q.js.map} +1 -1
- package/dist/standalone/assets/{onboarding-DOVL-dOM.js → onboarding-yRwqz6aH.js} +1 -1
- package/dist/standalone/assets/{onboarding-DOVL-dOM.js.map → onboarding-yRwqz6aH.js.map} +1 -1
- package/dist/standalone/assets/operations-C4WgQ8qZ.js +2 -0
- package/dist/standalone/assets/operations-C4WgQ8qZ.js.map +1 -0
- package/dist/standalone/assets/{organization-Br5qMM6Y.js → organization-Du5dDPLP.js} +2 -2
- package/dist/standalone/assets/{organization-Br5qMM6Y.js.map → organization-Du5dDPLP.js.map} +1 -1
- package/dist/standalone/assets/pairing-address-CgBLeKnL.js +2 -0
- package/dist/standalone/assets/pairing-address-CgBLeKnL.js.map +1 -0
- package/dist/standalone/assets/pairing-page-CAbTJKxr.js +2 -0
- package/dist/standalone/assets/{pairing-page-o5yOUb6T.js.map → pairing-page-CAbTJKxr.js.map} +1 -1
- package/dist/standalone/assets/{password-reset-page-B7JZRJhp.js → password-reset-page-D2b51lmM.js} +2 -2
- package/dist/standalone/assets/{password-reset-page-B7JZRJhp.js.map → password-reset-page-D2b51lmM.js.map} +1 -1
- package/dist/standalone/assets/{post-auth-destination-Cq5foKw9.js → post-auth-destination-xwJ47kVJ.js} +2 -2
- package/dist/standalone/assets/{post-auth-destination-Cq5foKw9.js.map → post-auth-destination-xwJ47kVJ.js.map} +1 -1
- package/dist/standalone/assets/profile-page-CPhYXM4F.js +2 -0
- package/dist/standalone/assets/profile-page-CPhYXM4F.js.map +1 -0
- package/dist/standalone/assets/{progress-bar-C_-cwBiK.js → progress-bar-CAYa80XA.js} +2 -2
- package/dist/standalone/assets/{progress-bar-C_-cwBiK.js.map → progress-bar-CAYa80XA.js.map} +1 -1
- package/dist/standalone/assets/provider-C-MBs0n2.js +2 -0
- package/dist/standalone/assets/{provider-i52bX5VR.js.map → provider-C-MBs0n2.js.map} +1 -1
- package/dist/standalone/assets/{provider-callback-D4ezuOSB.js → provider-callback-B6-pMaSX.js} +2 -2
- package/dist/standalone/assets/{provider-callback-D4ezuOSB.js.map → provider-callback-B6-pMaSX.js.map} +1 -1
- package/dist/standalone/assets/{provider-callback-page-BOUah2_i.js → provider-callback-page-BxdpbfyR.js} +2 -2
- package/dist/standalone/assets/{provider-callback-page-BOUah2_i.js.map → provider-callback-page-BxdpbfyR.js.map} +1 -1
- package/dist/standalone/assets/{provider-key-BFW2wBsh.js → provider-key-CfgRx7z5.js} +1 -1
- package/dist/standalone/assets/{provider-key-BFW2wBsh.js.map → provider-key-CfgRx7z5.js.map} +1 -1
- package/dist/standalone/assets/{provider-signup-page-DBqdgyHS.js → provider-signup-page-Cg9t2tJA.js} +2 -2
- package/dist/standalone/assets/{provider-signup-page-DBqdgyHS.js.map → provider-signup-page-Cg9t2tJA.js.map} +1 -1
- package/dist/standalone/assets/{proxy-m8LraLg9.js → proxy-TFSdn8tX.js} +1 -1
- package/dist/standalone/assets/{proxy-m8LraLg9.js.map → proxy-TFSdn8tX.js.map} +1 -1
- package/dist/standalone/assets/{radio-card-nav-C_Yh88ZX.js → radio-card-nav-DwRqD523.js} +1 -1
- package/dist/standalone/assets/{radio-card-nav-C_Yh88ZX.js.map → radio-card-nav-DwRqD523.js.map} +1 -1
- package/dist/standalone/assets/{rehype-katex-BcOWYTKW.js → rehype-katex-CHgJIg3n.js} +2 -2
- package/dist/standalone/assets/{rehype-katex-BcOWYTKW.js.map → rehype-katex-CHgJIg3n.js.map} +1 -1
- package/dist/standalone/assets/{remote-web-pairing-ya9f4HXm.js → remote-web-pairing-BGorUWrN.js} +2 -2
- package/dist/standalone/assets/{remote-web-pairing-ya9f4HXm.js.map → remote-web-pairing-BGorUWrN.js.map} +1 -1
- package/dist/standalone/assets/{request-BpOspF-T.js → request-CReXXmP8.js} +2 -2
- package/dist/standalone/assets/{request-BpOspF-T.js.map → request-CReXXmP8.js.map} +1 -1
- package/dist/standalone/assets/resolve-assistant-CFtChAyl.js +2 -0
- package/dist/standalone/assets/resolve-assistant-CFtChAyl.js.map +1 -0
- package/dist/standalone/assets/retire-assistant-CXC684th.js +2 -0
- package/dist/standalone/assets/retire-assistant-CXC684th.js.map +1 -0
- package/dist/standalone/assets/{return-to-DazNKK_L.js → return-to-CPhOcyqz.js} +2 -2
- package/dist/standalone/assets/{return-to-DazNKK_L.js.map → return-to-CPhOcyqz.js.map} +1 -1
- package/dist/standalone/assets/{returning-user-CMNG1o-y.js → returning-user-BZmAesT8.js} +2 -2
- package/dist/standalone/assets/{returning-user-CMNG1o-y.js.map → returning-user-BZmAesT8.js.map} +1 -1
- package/dist/standalone/assets/{review-terms-screen-f75A8Lfc.js → review-terms-screen-P9NFxtXh.js} +2 -2
- package/dist/standalone/assets/{review-terms-screen-f75A8Lfc.js.map → review-terms-screen-P9NFxtXh.js.map} +1 -1
- package/dist/standalone/assets/{rotate-ccw-BzeQSlMY.js → rotate-ccw-BMei42NT.js} +1 -1
- package/dist/standalone/assets/{rotate-ccw-BzeQSlMY.js.map → rotate-ccw-BMei42NT.js.map} +1 -1
- package/dist/standalone/assets/routes-DH7knWlS.js +2 -0
- package/dist/standalone/assets/routes-DH7knWlS.js.map +1 -0
- package/dist/standalone/assets/{schemas-BZBjRX4t.js → schemas-BYL1R3CL.js} +1 -1
- package/dist/standalone/assets/{schemas-BZBjRX4t.js.map → schemas-BYL1R3CL.js.map} +1 -1
- package/dist/standalone/assets/select-BOe987hM.js +42 -0
- package/dist/standalone/assets/select-BOe987hM.js.map +1 -0
- package/dist/standalone/assets/select-assistant-screen-8BmNSQjP.js +2 -0
- package/dist/standalone/assets/select-assistant-screen-8BmNSQjP.js.map +1 -0
- package/dist/standalone/assets/selected-assistant-storage-Bxccak3R.js +2 -0
- package/dist/standalone/assets/selected-assistant-storage-Bxccak3R.js.map +1 -0
- package/dist/standalone/assets/{session-token-Ev2cmr9G.js → session-token-CeIMyut9.js} +2 -2
- package/dist/standalone/assets/{session-token-Ev2cmr9G.js.map → session-token-CeIMyut9.js.map} +1 -1
- package/dist/standalone/assets/{signup-page-KeolUD_u.js → signup-page-CNFOq9-F.js} +2 -2
- package/dist/standalone/assets/{signup-page-KeolUD_u.js.map → signup-page-CNFOq9-F.js.map} +1 -1
- package/dist/standalone/assets/{signup-shell-DohGIoF-.js → signup-shell-B4gWR3ma.js} +2 -2
- package/dist/standalone/assets/signup-shell-B4gWR3ma.js.map +1 -0
- package/dist/standalone/assets/{src-Cr-NnTju.js → src-CxFXHgGM.js} +12 -12
- package/dist/standalone/assets/src-CxFXHgGM.js.map +1 -0
- package/dist/standalone/assets/{start-screen-C5WcGw-O.js → start-screen-D787hUql.js} +2 -2
- package/dist/standalone/assets/{start-screen-C5WcGw-O.js.map → start-screen-D787hUql.js.map} +1 -1
- package/dist/standalone/assets/startup-page-DfosTYkL.js +2 -0
- package/dist/standalone/assets/startup-page-DfosTYkL.js.map +1 -0
- package/dist/standalone/assets/{text-link-DFDM7RLf.js → text-link-B8VO4Tjc.js} +2 -2
- package/dist/standalone/assets/{text-link-DFDM7RLf.js.map → text-link-B8VO4Tjc.js.map} +1 -1
- package/dist/standalone/assets/triangle-alert-BNKcT3qS.js +2 -0
- package/dist/standalone/assets/triangle-alert-BNKcT3qS.js.map +1 -0
- package/dist/standalone/assets/{typography-Bp7J7PNm.js → typography-D4_LOmJc.js} +2 -2
- package/dist/standalone/assets/{typography-Bp7J7PNm.js.map → typography-D4_LOmJc.js.map} +1 -1
- package/dist/standalone/assets/{use-assistant-choices-D7BXbNtP.js → use-assistant-choices-BjNkXiWf.js} +2 -2
- package/dist/standalone/assets/{use-assistant-choices-D7BXbNtP.js.map → use-assistant-choices-BjNkXiWf.js.map} +1 -1
- package/dist/standalone/assets/{use-assistant-request-BQZn0euZ.js → use-assistant-request-CH8yCmNN.js} +2 -2
- package/dist/standalone/assets/{use-assistant-request-BQZn0euZ.js.map → use-assistant-request-CH8yCmNN.js.map} +1 -1
- package/dist/standalone/assets/{use-return-to-short-circuit-Crw-Q49N.js → use-return-to-short-circuit-CYiiiDvR.js} +2 -2
- package/dist/standalone/assets/{use-return-to-short-circuit-Crw-Q49N.js.map → use-return-to-short-circuit-CYiiiDvR.js.map} +1 -1
- package/dist/standalone/assets/vellum-migration-screen-VB22qEIV.js +2 -0
- package/dist/standalone/assets/vellum-migration-screen-VB22qEIV.js.map +1 -0
- package/dist/standalone/assets/web-BVFEX2sN.js +2 -0
- package/dist/standalone/assets/web-BVFEX2sN.js.map +1 -0
- package/dist/standalone/assets/{web-vi5sY1tx.js → web-DGsA39ij.js} +2 -2
- package/dist/standalone/assets/{web-vi5sY1tx.js.map → web-DGsA39ij.js.map} +1 -1
- package/dist/standalone/assets/{web-D9n6hYj1.js → web-DdkOVyp-.js} +2 -2
- package/dist/standalone/assets/{web-D9n6hYj1.js.map → web-DdkOVyp-.js.map} +1 -1
- package/dist/standalone/assets/{web-namespaces-TlpveG6O.js → web-namespaces-DsiStifa.js} +1 -1
- package/dist/standalone/assets/{web-namespaces-TlpveG6O.js.map → web-namespaces-DsiStifa.js.map} +1 -1
- package/dist/standalone/assets/welcome-screen-CyLPcV3l.js +1 -0
- package/dist/standalone/assets/{welcome-screen-71VYtG_N.js → welcome-screen-DaQBEeKe.js} +2 -2
- package/dist/standalone/assets/{welcome-screen-71VYtG_N.js.map → welcome-screen-DaQBEeKe.js.map} +1 -1
- package/dist/standalone/index.html +38 -33
- package/package.json +1 -1
- package/dist/package/resolution-contract-D6qbDWH9.js.map +0 -1
- package/dist/package/types/contracts.d.ts +0 -1
- package/dist/standalone/assets/account-page-C9RTiet9.js +0 -2
- package/dist/standalone/assets/api-key-screen-7Oeb4VZb.js +0 -2
- package/dist/standalone/assets/api-key-screen-7Oeb4VZb.js.map +0 -1
- package/dist/standalone/assets/assistants-page-DGzqC4QI.js +0 -2
- package/dist/standalone/assets/assistants-page-DGzqC4QI.js.map +0 -1
- package/dist/standalone/assets/auth-flow-DRKdI57z.js.map +0 -1
- package/dist/standalone/assets/avatar-bundled-components-Df4QxjdY.js +0 -1
- package/dist/standalone/assets/circle-check-CuQDC50A.js +0 -2
- package/dist/standalone/assets/circle-check-CuQDC50A.js.map +0 -1
- package/dist/standalone/assets/common-CF7RP46x.js +0 -2
- package/dist/standalone/assets/common-CXt-X9JZ.js +0 -2
- package/dist/standalone/assets/common-DiqTxEoY.js +0 -2
- package/dist/standalone/assets/confirm-dialog-ClRO5F9p.js +0 -2
- package/dist/standalone/assets/confirm-dialog-ClRO5F9p.js.map +0 -1
- package/dist/standalone/assets/copy-to-clipboard-B95wqsGH.js +0 -2
- package/dist/standalone/assets/copy-to-clipboard-B95wqsGH.js.map +0 -1
- package/dist/standalone/assets/doctor-page-DrbQzv7g.js +0 -8
- package/dist/standalone/assets/doctor-page-DrbQzv7g.js.map +0 -1
- package/dist/standalone/assets/esm-qBiA1_4M.js +0 -3
- package/dist/standalone/assets/hatching-screen-DTkoz7iW.js +0 -2
- package/dist/standalone/assets/hatching-screen-DTkoz7iW.js.map +0 -1
- package/dist/standalone/assets/hosting-screen-DM7aTZ8U.js +0 -2
- package/dist/standalone/assets/hosting-screen-DM7aTZ8U.js.map +0 -1
- package/dist/standalone/assets/index-D72X30LM.js +0 -25
- package/dist/standalone/assets/index-D72X30LM.js.map +0 -1
- package/dist/standalone/assets/index-v5jIc7Ne.css +0 -2
- package/dist/standalone/assets/is-electron-DLjujt3j.js.map +0 -1
- package/dist/standalone/assets/login-page-BZGRX0EO.js +0 -2
- package/dist/standalone/assets/logout-page-B2MWIJOU.js +0 -2
- package/dist/standalone/assets/onboarding-navigation-DC8_8LuV.js +0 -2
- package/dist/standalone/assets/pairing-address-oW5PUuio.js +0 -2
- package/dist/standalone/assets/pairing-address-oW5PUuio.js.map +0 -1
- package/dist/standalone/assets/pairing-page-o5yOUb6T.js +0 -2
- package/dist/standalone/assets/provider-i52bX5VR.js +0 -2
- package/dist/standalone/assets/resolve-assistant-D3wYg0xs.js +0 -2
- package/dist/standalone/assets/resolve-assistant-D3wYg0xs.js.map +0 -1
- package/dist/standalone/assets/retire-assistant-V-UCSVA2.js +0 -2
- package/dist/standalone/assets/retire-assistant-V-UCSVA2.js.map +0 -1
- package/dist/standalone/assets/routes-bHGywETD.js +0 -2
- package/dist/standalone/assets/routes-bHGywETD.js.map +0 -1
- package/dist/standalone/assets/select-DT_GqrSO.js +0 -42
- package/dist/standalone/assets/select-DT_GqrSO.js.map +0 -1
- package/dist/standalone/assets/select-assistant-screen-eJq9_eeQ.js +0 -2
- package/dist/standalone/assets/select-assistant-screen-eJq9_eeQ.js.map +0 -1
- package/dist/standalone/assets/signup-shell-DohGIoF-.js.map +0 -1
- package/dist/standalone/assets/src-Cr-NnTju.js.map +0 -1
- package/dist/standalone/assets/startup-page-8yUObKaM.js +0 -2
- package/dist/standalone/assets/startup-page-8yUObKaM.js.map +0 -1
- package/dist/standalone/assets/welcome-screen-DsOD5vcC.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"mappings":";0/EACA,SAAgB,GAAW,EAAgB,EAAsB,CAC3D,YAAO,OAAW,KAGtB,GAAI,CACF,IAAM,EAAQ,aAAa,QAAQ,EAAO,CAC1C,GAAI,IAAU,KACZ,OAEE,aAAa,QAAQ,EAAO,GAAK,MACnC,aAAa,QAAQ,EAAQ,EAAM,CAEjC,aAAa,QAAQ,EAAO,GAAK,MACnC,aAAa,WAAW,EAAO,MAE3B,GAKV,SAAgB,IAA6B,CAC3C,GAAW,yBAA0B,+BAA+B,CACpE,GAAW,2BAA4B,iCAAiC,CCrB1E,IAAsB,eCStB,SAAS,EAAK,EAAM,EAAM,CACxB,IAAI,EAAQ,EAAK,OACjB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K,GAC/B,EAAa,EAAa,UAAa,GAAwB,CAAC,GACpE,GACE,EACA,EACA,EACD,CACD,GAAyB,EAAa,UAAU,CAChD,EAAa,EACb,GAAwB,EACxB,MACF,IAAK,GACH,IACE,GAAgB,EAAc,EAAuB,CACzD,IAAK,GAWH,GAVA,EAAiB,EACjB,EAA4B,GAC5B,EAAa,KACb,GACE,EACA,EACA,EACD,CACD,EAAa,EACb,GAAwB,EACX,IAAT,KACF,GAAI,GACF,GAAI,EACK,EAAW,WAAjB,EACG,EAAW,KACA,EAAW,WAAtB,OACE,EAAW,cAAc,KACzB,GACJ,YAAY,EAAa,UAAU,OAC9B,EAAO,CACd,EACE,EACA,EACA,EACD,MAGH,GAAI,CACF,EAAW,YAAY,EAAa,UAAU,OACvC,EAAO,CACd,EACE,EACA,EACA,EACD,CAEP,MACF,IAAK,IACM,IAAT,OACG,IACK,EAAe,EACjB,GACQ,EAAa,WAAnB,EACI,EAAa,KACF,EAAa,WAAxB,OACE,EAAa,cAAc,KAC3B,EACN,EAAa,UACd,CACD,GAAiB,EAAa,EAC9B,GAAuB,EAAY,EAAa,UAAU,EAChE,MACF,IAAK,GACH,EAAiB,EACjB,EAA4B,GAC5B,EAAa,EAAa,UAAU,cACpC,GAAwB,CAAC,EACzB,GACE,EACA,EACA,EACD,CACD,EAAa,EACb,GAAwB,EACxB,MACF,IAAK,GACL,IAAK,IACL,IAAK,IACL,IAAK,IACH,GAA4B,EAAG,EAAc,EAAuB,CACpE,IACE,GAA4B,EAAG,EAAc,EAAuB,CACtE,GACE,EACA,EACA,EACD,CACD,MACF,IAAK,GACH,KACG,GAAgB,EAAc,EAAuB,CACrD,EAAiB,EAAa,UAChB,OAAO,EAAe,sBAArC,YACE,GACE,EACA,EACA,EACD,EACL,GACE,EACA,EACA,EACD,CACD,MACF,IAAK,IACH,GACE,EACA,EACA,EACD,CACD,MACF,IAAK,IACH,IACG,EAAiB,KACT,EAAa,gBAAtB,KACF,GACE,EACA,EACA,EACD,CACD,G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AAa,MACzB,OAAQ,EAAa,IAArB,CACE,IAAK,GACL,IAAK,IACL,IAAK,IACH,GACE,EACA,EACA,EACA,EACD,CACD,EAAQ,MAAQ,GAA0B,EAAG,EAAa,CAC1D,MACF,IAAK,GACH,GACE,EACA,EACA,EACA,EACD,CACD,MACF,IAAK,GACH,GACE,EACA,EACA,EACA,EACD,CACD,EAAQ,OACJ,EAAe,KACR,EAAa,YAAtB,OACG,EAAe,EAAa,UAAU,cAAc,OACtD,EAAe,EAAa,cAAc,MAC3C,IAAiB,IACd,EAAa,WACN,GAAR,MAAwB,GAAa,EAAa,GACtD,MACF,IAAK,IACH,GAAI,EAAQ,KAAM,CAChB,GACE,EACA,EACA,EACA,EACD,CACD,EAAe,EAAa,UAC5B,GAAI,CACF,IAAI,EAAyB,EAAa,cACxC,EAAK,EAAuB,GAC5B,EAAe,EAAuB,aACzB,OAAO,GAAtB,YACE,EACE,EACS,EAAa,YAAtB,KAAkC,QAAU,SAC5C,EAAa,sBACb,GACD,OACI,EAAO,CACd,EAAwB,EAAc,EAAa,OAAQ,EAAM,OAGnE,GACE,EACA,EACA,EACA,EACD,CACH,MACF,IAAK,IACH,GACE,EACA,EACA,EACA,EACD,CACD,MACF,IAAK,IACH,GACE,EACA,EACA,EACA,EACD,CACD,MACF,IAAK,IACH,MACF,IAAK,IACH,EAAyB,EAAa,UACtC,EAAK,EAAa,UACT,EAAa,gBAAtB,KASI,EAAuB,YAAc,EACnC,GACE,EACA,EACA,EACA,EACD,EACC,EAAuB,aAAe,EACxC,GACE,EACA,EACA,EACA,GACO,EAAa,aAAe,QAAnC,GAA6C,CAAC,EAC/C,EAtBH,EAAuB,YAAc,EACnC,GACE,EACA,EACA,EACA,EACD,CACD,GAAwC,EAAc,EAAa,CAgBzE,EAAQ,MAAQ,GAAmC,EAAI,EAAa,CACpE,MACF,IAAK,IACH,GACE,EACA,EACA,EACA,EACD,CACD,EAAQ,MACN,GAA8B,EAAa,UAAW,EAAa,CACrE,MACF,QACE,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AI,CACf,EAAe,EAAQ,OAAS,8BAA8B,CAC9D,OAEF,EAAkB,KAAK,CACvB,EAAS,GAAO,QAAQ,gBAAgB,EAI1C,OADA,IAAqB,EAEnB,iCACE,SAAC,GAAD,CACE,KAAM,EACN,YAAe,EAAc,GAAM,CACnC,GACF,SAAC,GAAD,CACE,KAAM,EACN,YAAe,EAAgB,GAAM,CACrC,GACF,SAAC,GAAD,EAAW,GACX,SAAC,GAAD,CACE,KAAM,IAAmB,KACzB,MAAO,EACP,UAAW,EACX,cAAiB,KAAK,GAAqB,CAC3C,aAAgB,CACT,IACH,EAAkB,KAAK,CACvB,EAAe,KAAK,GAGxB,GACF,SAAC,EAAD,CAAQ,QAAS,EAAgB,EAChC,GAIP,IAAa,GAAS,EACpB,CACE,CACE,UAAW,GACX,cAAe,GACf,gBAAiB,GACjB,SAAU,CACR,GACA,GACA,CAIE,KAAM,SACN,gBAAiB,GACjB,KAAM,CACJ,oBACE,OAAO,4BAA8B,KAAM,GAAM,EAAE,UAAU,kDAChE,CACF,CACD,CACE,KAAM,IACN,KAAM,CACJ,oBACE,OAAO,8BAA2B,KAAM,GAAM,EAAE,YAAY,+GAC/D,CACF,CACD,CAIE,KAAM,GAAO,WAAW,SACxB,UAAW,GACZ,CACD,CAAE,KAAM,eAAgB,UAAW,GAAe,CAClD,CACE,KAAM,UACN,KAAM,CACJ,oBACE,OAAO,6BAA0C,KAC9C,GAAM,EAAE,WACV,yGACJ,CACF,CACF,CACF,CACF,CACD,CAAE,OAAQ,CAAE,cAAe,GAAM,CAAE,CACpC,CC5LD,MAAM,IAAU,CAChB,IAAM,GAAO,SAAS,eAAe,OAAO,CAC5C,GAAI,CAAC,GACH,MAAU,MAAM,+BAA+B,mBAEtC,GAAK,CAAC,QACf,SAAC,aAAD,WACE,SAAC,EAAD,CAAwB,UAAU,EACvB,EACd","names":["__iconNode"],"ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,41,42,43],"sources":["../../../src/utils/storage-migration.ts","../../../src/utils/run-storage-migrations.ts","../../../../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js","../../../../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/index.js","../../../../../node_modules/.bun/react-dom@19.2.6+d86b59289c1a13ae/node_modules/react-dom/cjs/react-dom-client.production.js","../../../../../node_modules/.bun/react-dom@19.2.6+d86b59289c1a13ae/node_modules/react-dom/client.js","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/arrow-right.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/bug.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/dices.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/lightbulb.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/message-circle.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/paperclip.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/pencil.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/send.mjs","../../../../../node_modules/.bun/lucide-react@1.16.0+d86b59289c1a13ae/node_modules/lucide-react/dist/esm/icons/volume-2.mjs","../../../src/assistant/create-cloud-assistant.ts","../../../src/components/create-assistant-dialog.tsx","../../../src/components/feedback-scroll-lock.ts","../../../src/components/share-feedback-modal.tsx","../../../src/components/desktop-share-feedback.tsx","../../../src/lib/chunk-errors.ts","../../../src/components/route-error-boundary.tsx","../../../src/runtime/cadet-commands.ts","../../../src/stores/connect-dialog-store.ts","../../../src/runtime/deep-links.ts","../../../src/runtime/main-window.ts","../../../src/hooks/use-onboarding-window-size.ts","../../../src/domains/account/account-layout.tsx","../../../src/domains/account/account-route.tsx","../../../src/domains/onboarding/first-run-scope.ts","../../../src/domains/onboarding/lets-chat-kickoff.ts","../../../src/domains/onboarding/prechat.ts","../../../src/utils/typed-storage.ts","../../../src/domains/onboarding/onboarded-assistant-record.ts","../../../src/hooks/use-is-mobile.ts","../../../src/utils/avatar-wave-ribbon.ts","../../../src/utils/avatar-sprite.ts","../../../src/utils/use-bundled-avatar-components.ts","../../../src/components/avatar/avatar-wave.tsx","../../../src/components/avatar/creature-footer.tsx","../../../src/components/onboarding-layout.tsx","../../../../../node_modules/.bun/framer-motion@12.43.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs","../../../../../node_modules/.bun/framer-motion@12.43.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs","../../../../../node_modules/.bun/framer-motion@12.43.0+d0e719b86e9808b5/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs","../../../src/components/avatar/animated-avatar.tsx","../../../src/hooks/use-element-size.ts","../../../src/domains/onboarding/hooks/use-onboarding-stage-size.tsx","../../../src/domains/onboarding/components/onboarding-character-stage.tsx","../../../src/domains/onboarding/onboarding-avatar-pool-store.ts","../../../src/domains/onboarding/components/onboarding-edge-characters.tsx","../../../src/domains/onboarding/onboarding-step-layout.ts","../../../src/stores/page-surface-store.ts","../../../src/domains/onboarding/screens/research-onboarding-screen.tsx","../../../src/components/avatar/peeking-eyes.tsx","../../../src/utils/eye-bbox.ts","../../../src/domains/onboarding/components/onboarding-peeking-eyes.tsx","../../../src/domains/onboarding/components/onboarding-stage.tsx","../../../src/utils/avatar-tone.ts","../../../src/domains/onboarding/onboarding-tone.ts","../../../src/domains/onboarding/components/onboarding-top-bar.tsx","../../../src/domains/onboarding/hooks/use-entrance-failsafe.ts","../../../src/domains/onboarding/screens/introduction-screen.tsx","../../../src/components/speech/use-voice-sample-preview.ts","../../../src/domains/onboarding/onboarding-avatar-voices.ts","../../../src/domains/onboarding/prechat-names.ts","../../../src/lib/tts/use-cloud-voices.ts","../../../src/domains/onboarding/screens/give-me-a-face-screen.tsx","../../../src/domains/onboarding/pages/onboarding-flow-route.tsx","../../../src/domains/consent/consent-route.tsx","../../../src/runtime/assistant-status.ts","../../../src/hooks/use-electron-status-sync.ts","../../../src/shell/assistant-frame.tsx","../../../src/app-shell.tsx","../../../src/domains/consent/use-consent-gate.ts","../../../src/shell/assistant-page.tsx","../../../src/standalone.tsx","../../../src/main.tsx"],"sourcesContent":["/** Account-consent migrations only; assistant migration policy lives in web. */\nexport function migrateKey(oldKey: string, newKey: string): void {\n if (typeof window === \"undefined\") {\n return;\n }\n try {\n const value = localStorage.getItem(oldKey);\n if (value === null) {\n return;\n }\n if (localStorage.getItem(newKey) === null) {\n localStorage.setItem(newKey, value);\n }\n if (localStorage.getItem(newKey) !== null) {\n localStorage.removeItem(oldKey);\n }\n } catch {\n // Storage unavailable — migration retries on next load.\n }\n}\n\nexport function runStorageMigrations(): void {\n migrateKey(\"onboarding.tosAccepted\", \"cadet:onboarding:tosAccepted\");\n migrateKey(\"onboarding.aiDataConsent\", \"cadet:onboarding:aiDataConsent\");\n}\n","// Account migrations run before account stores read localStorage.\nimport { runStorageMigrations } from \"./storage-migration\";\nrunStorageMigrations();\n","/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);\n else break a;\n }\n}\nfunction peek(heap) {\n return 0 === heap.length ? null : heap[0];\n}\nfunction pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);\n else break a;\n }\n }\n return first;\n}\nfunction compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n}\nexports.unstable_now = void 0;\nif (\"object\" === typeof performance && \"function\" === typeof performance.now) {\n var localPerformance = performance;\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date,\n initialTime = localDate.now();\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n}\nvar taskQueue = [],\n timerQueue = [],\n taskIdCounter = 1,\n currentTask = null,\n currentPriorityLevel = 3,\n isPerformingWork = !1,\n isHostCallbackScheduled = !1,\n isHostTimeoutScheduled = !1,\n needsPaint = !1,\n localSetTimeout = \"function\" === typeof setTimeout ? setTimeout : null,\n localClearTimeout = \"function\" === typeof clearTimeout ? clearTimeout : null,\n localSetImmediate = \"undefined\" !== typeof setImmediate ? setImmediate : null;\nfunction advanceTimers(currentTime) {\n for (var timer = peek(timerQueue); null !== timer; ) {\n if (null === timer.callback) pop(timerQueue);\n else if (timer.startTime <= currentTime)\n pop(timerQueue),\n (timer.sortIndex = timer.expirationTime),\n push(taskQueue, timer);\n else break;\n timer = peek(timerQueue);\n }\n}\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = !1;\n advanceTimers(currentTime);\n if (!isHostCallbackScheduled)\n if (null !== peek(taskQueue))\n (isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n}\nvar isMessageLoopRunning = !1,\n taskTimeoutID = -1,\n frameInterval = 5,\n startTime = -1;\nfunction shouldYieldToHost() {\n return needsPaint\n ? !0\n : exports.unstable_now() - startTime < frameInterval\n ? !1\n : !0;\n}\nfunction performWorkUntilDeadline() {\n needsPaint = !1;\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime && shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n}\nvar schedulePerformWorkUntilDeadline;\nif (\"function\" === typeof localSetImmediate)\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\nelse if (\"undefined\" !== typeof MessageChannel) {\n var channel = new MessageChannel(),\n port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function (task) {\n task.callback = null;\n};\nexports.unstable_forceFrameRate = function (fps) {\n 0 > fps || 125 < fps\n ? console.error(\n \"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"\n )\n : (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);\n};\nexports.unstable_getCurrentPriorityLevel = function () {\n return currentPriorityLevel;\n};\nexports.unstable_next = function (eventHandler) {\n switch (currentPriorityLevel) {\n case 1:\n case 2:\n case 3:\n var priorityLevel = 3;\n break;\n default:\n priorityLevel = currentPriorityLevel;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_requestPaint = function () {\n needsPaint = !0;\n};\nexports.unstable_runWithPriority = function (priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n break;\n default:\n priorityLevel = 3;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_scheduleCallback = function (\n priorityLevel,\n callback,\n options\n) {\n var currentTime = exports.unstable_now();\n \"object\" === typeof options && null !== options\n ? ((options = options.delay),\n (options =\n \"number\" === typeof options && 0 < options\n ? currentTime + options\n : currentTime))\n : (options = currentTime);\n switch (priorityLevel) {\n case 1:\n var timeout = -1;\n break;\n case 2:\n timeout = 250;\n break;\n case 5:\n timeout = 1073741823;\n break;\n case 4:\n timeout = 1e4;\n break;\n default:\n timeout = 5e3;\n }\n timeout = options + timeout;\n priorityLevel = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: options,\n expirationTime: timeout,\n sortIndex: -1\n };\n options > currentTime\n ? ((priorityLevel.sortIndex = options),\n push(timerQueue, priorityLevel),\n null === peek(taskQueue) &&\n priorityLevel === peek(timerQueue) &&\n (isHostTimeoutScheduled\n ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))\n : (isHostTimeoutScheduled = !0),\n requestHostTimeout(handleTimeout, options - currentTime)))\n : ((priorityLevel.sortIndex = timeout),\n push(taskQueue, priorityLevel),\n isHostCallbackScheduled ||\n isPerformingWork ||\n ((isHostCallbackScheduled = !0),\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline())));\n return priorityLevel;\n};\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = function (callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\nvar Scheduler = require(\"scheduler\"),\n React = require(\"react\"),\n ReactDOM = require(\"react-dom\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.flags & 4098) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n if (13 === fiber.tag) {\n var suspenseState = fiber.memoizedState;\n null === suspenseState &&\n ((fiber = fiber.alternate),\n null !== fiber && (suspenseState = fiber.memoizedState));\n if (null !== suspenseState) return suspenseState.dehydrated;\n }\n return null;\n}\nfunction getActivityInstanceFromFiber(fiber) {\n if (31 === fiber.tag) {\n var activityState = fiber.memoizedState;\n null === activityState &&\n ((fiber = fiber.alternate),\n null !== fiber && (activityState = fiber.memoizedState));\n if (null !== activityState) return activityState.dehydrated;\n }\n return null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(formatProdErrorMessage(188));\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate) throw Error(formatProdErrorMessage(188));\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(formatProdErrorMessage(188));\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, child$0 = parentA.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) {\n for (child$0 = parentB.child; child$0; ) {\n if (child$0 === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (child$0 === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n child$0 = child$0.sibling;\n }\n if (!didFindChild) throw Error(formatProdErrorMessage(189));\n }\n }\n if (a.alternate !== b) throw Error(formatProdErrorMessage(190));\n }\n if (3 !== a.tag) throw Error(formatProdErrorMessage(188));\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiberImpl(node) {\n var tag = node.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;\n for (node = node.child; null !== node; ) {\n tag = findCurrentHostFiberImpl(node);\n if (null !== tag) return tag;\n node = node.sibling;\n }\n return null;\n}\nvar assign = Object.assign,\n REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nSymbol.for(\"react.scope\");\nvar REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\");\nSymbol.for(\"react.legacy_hidden\");\nSymbol.for(\"react.tracing_marker\");\nvar REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\");\nSymbol.for(\"react.view_transition\");\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n}\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n ReactDOMSharedInternals =\n ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n sharedNotPendingObject = {\n pending: !1,\n data: null,\n method: null,\n action: null\n },\n valueStack = [],\n index = -1;\nfunction createCursor(defaultValue) {\n return { current: defaultValue };\n}\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar contextStackCursor = createCursor(null),\n contextFiberStackCursor = createCursor(null),\n rootInstanceStackCursor = createCursor(null),\n hostTransitionProviderCursor = createCursor(null);\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance);\n push(contextFiberStackCursor, fiber);\n push(contextStackCursor, null);\n switch (nextRootInstance.nodeType) {\n case 9:\n case 11:\n fiber = (fiber = nextRootInstance.documentElement)\n ? (fiber = fiber.namespaceURI)\n ? getOwnHostContext(fiber)\n : 0\n : 0;\n break;\n default:\n if (\n ((fiber = nextRootInstance.tagName),\n (nextRootInstance = nextRootInstance.namespaceURI))\n )\n (nextRootInstance = getOwnHostContext(nextRootInstance)),\n (fiber = getChildHostContextProd(nextRootInstance, fiber));\n else\n switch (fiber) {\n case \"svg\":\n fiber = 1;\n break;\n case \"math\":\n fiber = 2;\n break;\n default:\n fiber = 0;\n }\n }\n pop(contextStackCursor);\n push(contextStackCursor, fiber);\n}\nfunction popHostContainer() {\n pop(contextStackCursor);\n pop(contextFiberStackCursor);\n pop(rootInstanceStackCursor);\n}\nfunction pushHostContext(fiber) {\n null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);\n var context = contextStackCursor.current;\n var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);\n context !== JSCompiler_inline_result &&\n (push(contextFiberStackCursor, fiber),\n push(contextStackCursor, JSCompiler_inline_result));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor), pop(contextFiberStackCursor));\n hostTransitionProviderCursor.current === fiber &&\n (pop(hostTransitionProviderCursor),\n (HostTransitionContext._currentValue = sharedNotPendingObject));\n}\nvar prefix, suffix;\nfunction describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" (<anonymous>)\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n}\nvar reentry = !1;\nfunction describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n reentry = !0;\n var previousPrepareStackTrace = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n try {\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$1) {\n control = x$1;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$2) {\n control = x$2;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\",\n { value: \"DetermineComponentFrameRoot\" }\n );\n var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n namePropDescriptor = RunInRootFrame = 0;\n RunInRootFrame < sampleLines.length &&\n !sampleLines[RunInRootFrame].includes(\"DetermineComponentFrameRoot\");\n\n )\n RunInRootFrame++;\n for (\n ;\n namePropDescriptor < controlLines.length &&\n !controlLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n if (\n RunInRootFrame === sampleLines.length ||\n namePropDescriptor === controlLines.length\n )\n for (\n RunInRootFrame = sampleLines.length - 1,\n namePropDescriptor = controlLines.length - 1;\n 1 <= RunInRootFrame &&\n 0 <= namePropDescriptor &&\n sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];\n\n )\n namePropDescriptor--;\n for (\n ;\n 1 <= RunInRootFrame && 0 <= namePropDescriptor;\n RunInRootFrame--, namePropDescriptor--\n )\n if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {\n if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {\n do\n if (\n (RunInRootFrame--,\n namePropDescriptor--,\n 0 > namePropDescriptor ||\n sampleLines[RunInRootFrame] !==\n controlLines[namePropDescriptor])\n ) {\n var frame =\n \"\\n\" +\n sampleLines[RunInRootFrame].replace(\" at new \", \" at \");\n fn.displayName &&\n frame.includes(\"<anonymous>\") &&\n (frame = frame.replace(\"<anonymous>\", fn.displayName));\n return frame;\n }\n while (1 <= RunInRootFrame && 0 <= namePropDescriptor);\n }\n break;\n }\n }\n } finally {\n (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);\n }\n return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(previousPrepareStackTrace)\n : \"\";\n}\nfunction describeFiber(fiber, childFiber) {\n switch (fiber.tag) {\n case 26:\n case 27:\n case 5:\n return describeBuiltInComponentFrame(fiber.type);\n case 16:\n return describeBuiltInComponentFrame(\"Lazy\");\n case 13:\n return fiber.child !== childFiber && null !== childFiber\n ? describeBuiltInComponentFrame(\"Suspense Fallback\")\n : describeBuiltInComponentFrame(\"Suspense\");\n case 19:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n case 0:\n case 15:\n return describeNativeComponentFrame(fiber.type, !1);\n case 11:\n return describeNativeComponentFrame(fiber.type.render, !1);\n case 1:\n return describeNativeComponentFrame(fiber.type, !0);\n case 31:\n return describeBuiltInComponentFrame(\"Activity\");\n default:\n return \"\";\n }\n}\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = \"\",\n previous = null;\n do\n (info += describeFiber(workInProgress, previous)),\n (previous = workInProgress),\n (workInProgress = workInProgress.return);\n while (workInProgress);\n return info;\n } catch (x) {\n return \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n }\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty,\n scheduleCallback$3 = Scheduler.unstable_scheduleCallback,\n cancelCallback$1 = Scheduler.unstable_cancelCallback,\n shouldYield = Scheduler.unstable_shouldYield,\n requestPaint = Scheduler.unstable_requestPaint,\n now = Scheduler.unstable_now,\n getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,\n ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n NormalPriority$1 = Scheduler.unstable_NormalPriority,\n LowPriority = Scheduler.unstable_LowPriority,\n IdlePriority = Scheduler.unstable_IdlePriority,\n log$1 = Scheduler.log,\n unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,\n rendererID = null,\n injectedHook = null;\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n \"function\" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);\n if (injectedHook && \"function\" === typeof injectedHook.setStrictMode)\n try {\n injectedHook.setStrictMode(rendererID, newIsStrictMode);\n } catch (err) {}\n}\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,\n log = Math.log,\n LN2 = Math.LN2;\nfunction clz32Fallback(x) {\n x >>>= 0;\n return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;\n}\nvar nextTransitionUpdateLane = 256,\n nextTransitionDeferredLane = 262144,\n nextRetryLane = 4194304;\nfunction getHighestPriorityLanes(lanes) {\n var pendingSyncLanes = lanes & 42;\n if (0 !== pendingSyncLanes) return pendingSyncLanes;\n switch (lanes & -lanes) {\n case 1:\n return 1;\n case 2:\n return 2;\n case 4:\n return 4;\n case 8:\n return 8;\n case 16:\n return 16;\n case 32:\n return 32;\n case 64:\n return 64;\n case 128:\n return 128;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n return lanes & 261888;\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return lanes & 3932160;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return lanes & 62914560;\n case 67108864:\n return 67108864;\n case 134217728:\n return 134217728;\n case 268435456:\n return 268435456;\n case 536870912:\n return 536870912;\n case 1073741824:\n return 0;\n default:\n return lanes;\n }\n}\nfunction getNextLanes(root, wipLanes, rootHasPendingCommit) {\n var pendingLanes = root.pendingLanes;\n if (0 === pendingLanes) return 0;\n var nextLanes = 0,\n suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes;\n root = root.warmLanes;\n var nonIdlePendingLanes = pendingLanes & 134217727;\n 0 !== nonIdlePendingLanes\n ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),\n 0 !== pendingLanes\n ? (nextLanes = getHighestPriorityLanes(pendingLanes))\n : ((pingedLanes &= nonIdlePendingLanes),\n 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = nonIdlePendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))\n : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),\n 0 !== nonIdlePendingLanes\n ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))\n : 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : rootHasPendingCommit ||\n ((rootHasPendingCommit = pendingLanes & ~root),\n 0 !== rootHasPendingCommit &&\n (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));\n return 0 === nextLanes\n ? 0\n : 0 !== wipLanes &&\n wipLanes !== nextLanes &&\n 0 === (wipLanes & suspendedLanes) &&\n ((suspendedLanes = nextLanes & -nextLanes),\n (rootHasPendingCommit = wipLanes & -wipLanes),\n suspendedLanes >= rootHasPendingCommit ||\n (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)))\n ? wipLanes\n : nextLanes;\n}\nfunction checkIfRootIsPrerendering(root, renderLanes) {\n return (\n 0 ===\n (root.pendingLanes &\n ~(root.suspendedLanes & ~root.pingedLanes) &\n renderLanes)\n );\n}\nfunction computeExpirationTime(lane, currentTime) {\n switch (lane) {\n case 1:\n case 2:\n case 4:\n case 8:\n case 64:\n return currentTime + 250;\n case 16:\n case 32:\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return currentTime + 5e3;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return -1;\n case 67108864:\n case 134217728:\n case 268435456:\n case 536870912:\n case 1073741824:\n return -1;\n default:\n return -1;\n }\n}\nfunction claimNextRetryLane() {\n var lane = nextRetryLane;\n nextRetryLane <<= 1;\n 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);\n return lane;\n}\nfunction createLaneMap(initial) {\n for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);\n return laneMap;\n}\nfunction markRootUpdated$1(root, updateLane) {\n root.pendingLanes |= updateLane;\n 268435456 !== updateLane &&\n ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));\n}\nfunction markRootFinished(\n root,\n finishedLanes,\n remainingLanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n var previouslyPendingLanes = root.pendingLanes;\n root.pendingLanes = remainingLanes;\n root.suspendedLanes = 0;\n root.pingedLanes = 0;\n root.warmLanes = 0;\n root.expiredLanes &= remainingLanes;\n root.entangledLanes &= remainingLanes;\n root.errorRecoveryDisabledLanes &= remainingLanes;\n root.shellSuspendCounter = 0;\n var entanglements = root.entanglements,\n expirationTimes = root.expirationTimes,\n hiddenUpdates = root.hiddenUpdates;\n for (\n remainingLanes = previouslyPendingLanes & ~remainingLanes;\n 0 < remainingLanes;\n\n ) {\n var index$7 = 31 - clz32(remainingLanes),\n lane = 1 << index$7;\n entanglements[index$7] = 0;\n expirationTimes[index$7] = -1;\n var hiddenUpdatesForLane = hiddenUpdates[index$7];\n if (null !== hiddenUpdatesForLane)\n for (\n hiddenUpdates[index$7] = null, index$7 = 0;\n index$7 < hiddenUpdatesForLane.length;\n index$7++\n ) {\n var update = hiddenUpdatesForLane[index$7];\n null !== update && (update.lane &= -536870913);\n }\n remainingLanes &= ~lane;\n }\n 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);\n 0 !== suspendedRetryLanes &&\n 0 === updatedLanes &&\n 0 !== root.tag &&\n (root.suspendedLanes |=\n suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));\n}\nfunction markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {\n root.pendingLanes |= spawnedLane;\n root.suspendedLanes &= ~spawnedLane;\n var spawnedLaneIndex = 31 - clz32(spawnedLane);\n root.entangledLanes |= spawnedLane;\n root.entanglements[spawnedLaneIndex] =\n root.entanglements[spawnedLaneIndex] |\n 1073741824 |\n (entangledLanes & 261930);\n}\nfunction markRootEntangled(root, entangledLanes) {\n var rootEntangledLanes = (root.entangledLanes |= entangledLanes);\n for (root = root.entanglements; rootEntangledLanes; ) {\n var index$8 = 31 - clz32(rootEntangledLanes),\n lane = 1 << index$8;\n (lane & entangledLanes) | (root[index$8] & entangledLanes) &&\n (root[index$8] |= entangledLanes);\n rootEntangledLanes &= ~lane;\n }\n}\nfunction getBumpedLaneForHydration(root, renderLanes) {\n var renderLane = renderLanes & -renderLanes;\n renderLane =\n 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);\n return 0 !== (renderLane & (root.suspendedLanes | renderLanes))\n ? 0\n : renderLane;\n}\nfunction getBumpedLaneForHydrationByLane(lane) {\n switch (lane) {\n case 2:\n lane = 1;\n break;\n case 8:\n lane = 4;\n break;\n case 32:\n lane = 16;\n break;\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n lane = 128;\n break;\n case 268435456:\n lane = 134217728;\n break;\n default:\n lane = 0;\n }\n return lane;\n}\nfunction lanesToEventPriority(lanes) {\n lanes &= -lanes;\n return 2 < lanes\n ? 8 < lanes\n ? 0 !== (lanes & 134217727)\n ? 32\n : 268435456\n : 8\n : 2;\n}\nfunction resolveUpdatePriority() {\n var updatePriority = ReactDOMSharedInternals.p;\n if (0 !== updatePriority) return updatePriority;\n updatePriority = window.event;\n return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);\n}\nfunction runWithPriority(priority, fn) {\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n return (ReactDOMSharedInternals.p = priority), fn();\n } finally {\n ReactDOMSharedInternals.p = previousPriority;\n }\n}\nvar randomKey = Math.random().toString(36).slice(2),\n internalInstanceKey = \"__reactFiber$\" + randomKey,\n internalPropsKey = \"__reactProps$\" + randomKey,\n internalContainerInstanceKey = \"__reactContainer$\" + randomKey,\n internalEventHandlersKey = \"__reactEvents$\" + randomKey,\n internalEventHandlerListenersKey = \"__reactListeners$\" + randomKey,\n internalEventHandlesSetKey = \"__reactHandles$\" + randomKey,\n internalRootNodeResourcesKey = \"__reactResources$\" + randomKey,\n internalHoistableMarker = \"__reactMarker$\" + randomKey;\nfunction detachDeletedInstance(node) {\n delete node[internalInstanceKey];\n delete node[internalPropsKey];\n delete node[internalEventHandlersKey];\n delete node[internalEventHandlerListenersKey];\n delete node[internalEventHandlesSetKey];\n}\nfunction getClosestInstanceFromNode(targetNode) {\n var targetInst = targetNode[internalInstanceKey];\n if (targetInst) return targetInst;\n for (var parentNode = targetNode.parentNode; parentNode; ) {\n if (\n (targetInst =\n parentNode[internalContainerInstanceKey] ||\n parentNode[internalInstanceKey])\n ) {\n parentNode = targetInst.alternate;\n if (\n null !== targetInst.child ||\n (null !== parentNode && null !== parentNode.child)\n )\n for (\n targetNode = getParentHydrationBoundary(targetNode);\n null !== targetNode;\n\n ) {\n if ((parentNode = targetNode[internalInstanceKey])) return parentNode;\n targetNode = getParentHydrationBoundary(targetNode);\n }\n return targetInst;\n }\n targetNode = parentNode;\n parentNode = targetNode.parentNode;\n }\n return null;\n}\nfunction getInstanceFromNode(node) {\n if (\n (node = node[internalInstanceKey] || node[internalContainerInstanceKey])\n ) {\n var tag = node.tag;\n if (\n 5 === tag ||\n 6 === tag ||\n 13 === tag ||\n 31 === tag ||\n 26 === tag ||\n 27 === tag ||\n 3 === tag\n )\n return node;\n }\n return null;\n}\nfunction getNodeFromInstance(inst) {\n var tag = inst.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;\n throw Error(formatProdErrorMessage(33));\n}\nfunction getResourcesFromRoot(root) {\n var resources = root[internalRootNodeResourcesKey];\n resources ||\n (resources = root[internalRootNodeResourcesKey] =\n { hoistableStyles: new Map(), hoistableScripts: new Map() });\n return resources;\n}\nfunction markNodeAsHoistable(node) {\n node[internalHoistableMarker] = !0;\n}\nvar allNativeEvents = new Set(),\n registrationNameDependencies = {};\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + \"Capture\", dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n registrationNameDependencies[registrationName] = dependencies;\n for (\n registrationName = 0;\n registrationName < dependencies.length;\n registrationName++\n )\n allNativeEvents.add(dependencies[registrationName]);\n}\nvar VALID_ATTRIBUTE_NAME_REGEX = RegExp(\n \"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"\n ),\n illegalAttributeNameCache = {},\n validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))\n return !0;\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))\n return (validatedAttributeNameCache[attributeName] = !0);\n illegalAttributeNameCache[attributeName] = !0;\n return !1;\n}\nfunction setValueForAttribute(node, name, value) {\n if (isAttributeNameSafe(name))\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n node.removeAttribute(name);\n return;\n case \"boolean\":\n var prefix$10 = name.toLowerCase().slice(0, 5);\n if (\"data-\" !== prefix$10 && \"aria-\" !== prefix$10) {\n node.removeAttribute(name);\n return;\n }\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForKnownAttribute(node, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForNamespacedAttribute(node, namespace, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttributeNS(namespace, name, \"\" + value);\n }\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case \"bigint\":\n case \"boolean\":\n case \"number\":\n case \"string\":\n case \"undefined\":\n return value;\n case \"object\":\n return value;\n default:\n return \"\";\n }\n}\nfunction isCheckable(elem) {\n var type = elem.type;\n return (\n (elem = elem.nodeName) &&\n \"input\" === elem.toLowerCase() &&\n (\"checkbox\" === type || \"radio\" === type)\n );\n}\nfunction trackValueOnNode(node, valueField, currentValue) {\n var descriptor = Object.getOwnPropertyDescriptor(\n node.constructor.prototype,\n valueField\n );\n if (\n !node.hasOwnProperty(valueField) &&\n \"undefined\" !== typeof descriptor &&\n \"function\" === typeof descriptor.get &&\n \"function\" === typeof descriptor.set\n ) {\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: !0,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = \"\" + value;\n set.call(this, value);\n }\n });\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n return {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = \"\" + value;\n },\n stopTracking: function () {\n node._valueTracker = null;\n delete node[valueField];\n }\n };\n }\n}\nfunction track(node) {\n if (!node._valueTracker) {\n var valueField = isCheckable(node) ? \"checked\" : \"value\";\n node._valueTracker = trackValueOnNode(\n node,\n valueField,\n \"\" + node[valueField]\n );\n }\n}\nfunction updateValueIfChanged(node) {\n if (!node) return !1;\n var tracker = node._valueTracker;\n if (!tracker) return !0;\n var lastValue = tracker.getValue();\n var value = \"\";\n node &&\n (value = isCheckable(node)\n ? node.checked\n ? \"true\"\n : \"false\"\n : node.value);\n node = value;\n return node !== lastValue ? (tracker.setValue(node), !0) : !1;\n}\nfunction getActiveElement(doc) {\n doc = doc || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof doc) return null;\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\nvar escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\\n\"\\\\]/g;\nfunction escapeSelectorAttributeValueInsideDoubleQuotes(value) {\n return value.replace(\n escapeSelectorAttributeValueInsideDoubleQuotesRegex,\n function (ch) {\n return \"\\\\\" + ch.charCodeAt(0).toString(16) + \" \";\n }\n );\n}\nfunction updateInput(\n element,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n) {\n element.name = \"\";\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type\n ? (element.type = type)\n : element.removeAttribute(\"type\");\n if (null != value)\n if (\"number\" === type) {\n if ((0 === value && \"\" === element.value) || element.value != value)\n element.value = \"\" + getToStringValue(value);\n } else\n element.value !== \"\" + getToStringValue(value) &&\n (element.value = \"\" + getToStringValue(value));\n else\n (\"submit\" !== type && \"reset\" !== type) || element.removeAttribute(\"value\");\n null != value\n ? setDefaultValue(element, type, getToStringValue(value))\n : null != defaultValue\n ? setDefaultValue(element, type, getToStringValue(defaultValue))\n : null != lastDefaultValue && element.removeAttribute(\"value\");\n null == checked &&\n null != defaultChecked &&\n (element.defaultChecked = !!defaultChecked);\n null != checked &&\n (element.checked =\n checked && \"function\" !== typeof checked && \"symbol\" !== typeof checked);\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name\n ? (element.name = \"\" + getToStringValue(name))\n : element.removeAttribute(\"name\");\n}\nfunction initInput(\n element,\n value,\n defaultValue,\n checked,\n defaultChecked,\n type,\n name,\n isHydrating\n) {\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type &&\n (element.type = type);\n if (null != value || null != defaultValue) {\n if (\n !(\n (\"submit\" !== type && \"reset\" !== type) ||\n (void 0 !== value && null !== value)\n )\n ) {\n track(element);\n return;\n }\n defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n value = null != value ? \"\" + getToStringValue(value) : defaultValue;\n isHydrating || value === element.value || (element.value = value);\n element.defaultValue = value;\n }\n checked = null != checked ? checked : defaultChecked;\n checked =\n \"function\" !== typeof checked && \"symbol\" !== typeof checked && !!checked;\n element.checked = isHydrating ? element.checked : !!checked;\n element.defaultChecked = !!checked;\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name &&\n (element.name = name);\n track(element);\n}\nfunction setDefaultValue(node, type, value) {\n (\"number\" === type && getActiveElement(node.ownerDocument) === node) ||\n node.defaultValue === \"\" + value ||\n (node.defaultValue = \"\" + value);\n}\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n node = node.options;\n if (multiple) {\n multiple = {};\n for (var i = 0; i < propValue.length; i++)\n multiple[\"$\" + propValue[i]] = !0;\n for (propValue = 0; propValue < node.length; propValue++)\n (i = multiple.hasOwnProperty(\"$\" + node[propValue].value)),\n node[propValue].selected !== i && (node[propValue].selected = i),\n i && setDefaultSelected && (node[propValue].defaultSelected = !0);\n } else {\n propValue = \"\" + getToStringValue(propValue);\n multiple = null;\n for (i = 0; i < node.length; i++) {\n if (node[i].value === propValue) {\n node[i].selected = !0;\n setDefaultSelected && (node[i].defaultSelected = !0);\n return;\n }\n null !== multiple || node[i].disabled || (multiple = node[i]);\n }\n null !== multiple && (multiple.selected = !0);\n }\n}\nfunction updateTextarea(element, value, defaultValue) {\n if (\n null != value &&\n ((value = \"\" + getToStringValue(value)),\n value !== element.value && (element.value = value),\n null == defaultValue)\n ) {\n element.defaultValue !== value && (element.defaultValue = value);\n return;\n }\n element.defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n}\nfunction initTextarea(element, value, defaultValue, children) {\n if (null == value) {\n if (null != children) {\n if (null != defaultValue) throw Error(formatProdErrorMessage(92));\n if (isArrayImpl(children)) {\n if (1 < children.length) throw Error(formatProdErrorMessage(93));\n children = children[0];\n }\n defaultValue = children;\n }\n null == defaultValue && (defaultValue = \"\");\n value = defaultValue;\n }\n defaultValue = getToStringValue(value);\n element.defaultValue = defaultValue;\n children = element.textContent;\n children === defaultValue &&\n \"\" !== children &&\n null !== children &&\n (element.value = children);\n track(element);\n}\nfunction setTextContent(node, text) {\n if (text) {\n var firstChild = node.firstChild;\n if (\n firstChild &&\n firstChild === node.lastChild &&\n 3 === firstChild.nodeType\n ) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n}\nvar unitlessNumbers = new Set(\n \"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\n \" \"\n )\n);\nfunction setValueForStyle(style, styleName, value) {\n var isCustomProperty = 0 === styleName.indexOf(\"--\");\n null == value || \"boolean\" === typeof value || \"\" === value\n ? isCustomProperty\n ? style.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (style.cssFloat = \"\")\n : (style[styleName] = \"\")\n : isCustomProperty\n ? style.setProperty(styleName, value)\n : \"number\" !== typeof value ||\n 0 === value ||\n unitlessNumbers.has(styleName)\n ? \"float\" === styleName\n ? (style.cssFloat = value)\n : (style[styleName] = (\"\" + value).trim())\n : (style[styleName] = value + \"px\");\n}\nfunction setValueForStyles(node, styles, prevStyles) {\n if (null != styles && \"object\" !== typeof styles)\n throw Error(formatProdErrorMessage(62));\n node = node.style;\n if (null != prevStyles) {\n for (var styleName in prevStyles)\n !prevStyles.hasOwnProperty(styleName) ||\n (null != styles && styles.hasOwnProperty(styleName)) ||\n (0 === styleName.indexOf(\"--\")\n ? node.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (node.cssFloat = \"\")\n : (node[styleName] = \"\"));\n for (var styleName$16 in styles)\n (styleName = styles[styleName$16]),\n styles.hasOwnProperty(styleName$16) &&\n prevStyles[styleName$16] !== styleName &&\n setValueForStyle(node, styleName$16, styleName);\n } else\n for (var styleName$17 in styles)\n styles.hasOwnProperty(styleName$17) &&\n setValueForStyle(node, styleName$17, styles[styleName$17]);\n}\nfunction isCustomElement(tagName) {\n if (-1 === tagName.indexOf(\"-\")) return !1;\n switch (tagName) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n default:\n return !0;\n }\n}\nvar aliases = new Map([\n [\"acceptCharset\", \"accept-charset\"],\n [\"htmlFor\", \"for\"],\n [\"httpEquiv\", \"http-equiv\"],\n [\"crossOrigin\", \"crossorigin\"],\n [\"accentHeight\", \"accent-height\"],\n [\"alignmentBaseline\", \"alignment-baseline\"],\n [\"arabicForm\", \"arabic-form\"],\n [\"baselineShift\", \"baseline-shift\"],\n [\"capHeight\", \"cap-height\"],\n [\"clipPath\", \"clip-path\"],\n [\"clipRule\", \"clip-rule\"],\n [\"colorInterpolation\", \"color-interpolation\"],\n [\"colorInterpolationFilters\", \"color-interpolation-filters\"],\n [\"colorProfile\", \"color-profile\"],\n [\"colorRendering\", \"color-rendering\"],\n [\"dominantBaseline\", \"dominant-baseline\"],\n [\"enableBackground\", \"enable-background\"],\n [\"fillOpacity\", \"fill-opacity\"],\n [\"fillRule\", \"fill-rule\"],\n [\"floodColor\", \"flood-color\"],\n [\"floodOpacity\", \"flood-opacity\"],\n [\"fontFamily\", \"font-family\"],\n [\"fontSize\", \"font-size\"],\n [\"fontSizeAdjust\", \"font-size-adjust\"],\n [\"fontStretch\", \"font-stretch\"],\n [\"fontStyle\", \"font-style\"],\n [\"fontVariant\", \"font-variant\"],\n [\"fontWeight\", \"font-weight\"],\n [\"glyphName\", \"glyph-name\"],\n [\"glyphOrientationHorizontal\", \"glyph-orientation-horizontal\"],\n [\"glyphOrientationVertical\", \"glyph-orientation-vertical\"],\n [\"horizAdvX\", \"horiz-adv-x\"],\n [\"horizOriginX\", \"horiz-origin-x\"],\n [\"imageRendering\", \"image-rendering\"],\n [\"letterSpacing\", \"letter-spacing\"],\n [\"lightingColor\", \"lighting-color\"],\n [\"markerEnd\", \"marker-end\"],\n [\"markerMid\", \"marker-mid\"],\n [\"markerStart\", \"marker-start\"],\n [\"overlinePosition\", \"overline-position\"],\n [\"overlineThickness\", \"overline-thickness\"],\n [\"paintOrder\", \"paint-order\"],\n [\"panose-1\", \"panose-1\"],\n [\"pointerEvents\", \"pointer-events\"],\n [\"renderingIntent\", \"rendering-intent\"],\n [\"shapeRendering\", \"shape-rendering\"],\n [\"stopColor\", \"stop-color\"],\n [\"stopOpacity\", \"stop-opacity\"],\n [\"strikethroughPosition\", \"strikethrough-position\"],\n [\"strikethroughThickness\", \"strikethrough-thickness\"],\n [\"strokeDasharray\", \"stroke-dasharray\"],\n [\"strokeDashoffset\", \"stroke-dashoffset\"],\n [\"strokeLinecap\", \"stroke-linecap\"],\n [\"strokeLinejoin\", \"stroke-linejoin\"],\n [\"strokeMiterlimit\", \"stroke-miterlimit\"],\n [\"strokeOpacity\", \"stroke-opacity\"],\n [\"strokeWidth\", \"stroke-width\"],\n [\"textAnchor\", \"text-anchor\"],\n [\"textDecoration\", \"text-decoration\"],\n [\"textRendering\", \"text-rendering\"],\n [\"transformOrigin\", \"transform-origin\"],\n [\"underlinePosition\", \"underline-position\"],\n [\"underlineThickness\", \"underline-thickness\"],\n [\"unicodeBidi\", \"unicode-bidi\"],\n [\"unicodeRange\", \"unicode-range\"],\n [\"unitsPerEm\", \"units-per-em\"],\n [\"vAlphabetic\", \"v-alphabetic\"],\n [\"vHanging\", \"v-hanging\"],\n [\"vIdeographic\", \"v-ideographic\"],\n [\"vMathematical\", \"v-mathematical\"],\n [\"vectorEffect\", \"vector-effect\"],\n [\"vertAdvY\", \"vert-adv-y\"],\n [\"vertOriginX\", \"vert-origin-x\"],\n [\"vertOriginY\", \"vert-origin-y\"],\n [\"wordSpacing\", \"word-spacing\"],\n [\"writingMode\", \"writing-mode\"],\n [\"xmlnsXlink\", \"xmlns:xlink\"],\n [\"xHeight\", \"x-height\"]\n ]),\n isJavaScriptProtocol =\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;\nfunction sanitizeURL(url) {\n return isJavaScriptProtocol.test(\"\" + url)\n ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n : url;\n}\nfunction noop$1() {}\nvar currentReplayingEvent = null;\nfunction getEventTarget(nativeEvent) {\n nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;\n nativeEvent.correspondingUseElement &&\n (nativeEvent = nativeEvent.correspondingUseElement);\n return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n var internalInstance = getInstanceFromNode(target);\n if (internalInstance && (target = internalInstance.stateNode)) {\n var props = target[internalPropsKey] || null;\n a: switch (((target = internalInstance.stateNode), internalInstance.type)) {\n case \"input\":\n updateInput(\n target,\n props.value,\n props.defaultValue,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name\n );\n internalInstance = props.name;\n if (\"radio\" === props.type && null != internalInstance) {\n for (props = target; props.parentNode; ) props = props.parentNode;\n props = props.querySelectorAll(\n 'input[name=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n \"\" + internalInstance\n ) +\n '\"][type=\"radio\"]'\n );\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n ) {\n var otherNode = props[internalInstance];\n if (otherNode !== target && otherNode.form === target.form) {\n var otherProps = otherNode[internalPropsKey] || null;\n if (!otherProps) throw Error(formatProdErrorMessage(90));\n updateInput(\n otherNode,\n otherProps.value,\n otherProps.defaultValue,\n otherProps.defaultValue,\n otherProps.checked,\n otherProps.defaultChecked,\n otherProps.type,\n otherProps.name\n );\n }\n }\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n )\n (otherNode = props[internalInstance]),\n otherNode.form === target.form && updateValueIfChanged(otherNode);\n }\n break a;\n case \"textarea\":\n updateTextarea(target, props.value, props.defaultValue);\n break a;\n case \"select\":\n (internalInstance = props.value),\n null != internalInstance &&\n updateOptions(target, !!props.multiple, internalInstance, !1);\n }\n }\n}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates$1(fn, a, b) {\n if (isInsideEventHandler) return fn(a, b);\n isInsideEventHandler = !0;\n try {\n var JSCompiler_inline_result = fn(a);\n return JSCompiler_inline_result;\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushSyncWork$1(),\n restoreTarget &&\n ((a = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(a),\n fn))\n )\n for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);\n }\n}\nfunction getListener(inst, registrationName) {\n var stateNode = inst.stateNode;\n if (null === stateNode) return null;\n var props = stateNode[internalPropsKey] || null;\n if (null === props) return null;\n stateNode = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (stateNode && \"function\" !== typeof stateNode)\n throw Error(\n formatProdErrorMessage(231, registrationName, typeof stateNode)\n );\n return stateNode;\n}\nvar canUseDOM = !(\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ),\n passiveBrowserEventsSupported = !1;\nif (canUseDOM)\n try {\n var options = {};\n Object.defineProperty(options, \"passive\", {\n get: function () {\n passiveBrowserEventsSupported = !0;\n }\n });\n window.addEventListener(\"test\", options, options);\n window.removeEventListener(\"test\", options, options);\n } catch (e) {\n passiveBrowserEventsSupported = !1;\n }\nvar root = null,\n startText = null,\n fallbackText = null;\nfunction getData() {\n if (fallbackText) return fallbackText;\n var start,\n startValue = startText,\n startLength = startValue.length,\n end,\n endValue = \"value\" in root ? root.value : root.textContent,\n endLength = endValue.length;\n for (\n start = 0;\n start < startLength && startValue[start] === endValue[start];\n start++\n );\n var minEnd = startLength - start;\n for (\n end = 1;\n end <= minEnd &&\n startValue[startLength - end] === endValue[endLength - end];\n end++\n );\n return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));\n}\nfunction getEventCharCode(nativeEvent) {\n var keyCode = nativeEvent.keyCode;\n \"charCode\" in nativeEvent\n ? ((nativeEvent = nativeEvent.charCode),\n 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))\n : (nativeEvent = keyCode);\n 10 === nativeEvent && (nativeEvent = 13);\n return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction createSyntheticEvent(Interface) {\n function SyntheticBaseEvent(\n reactName,\n reactEventType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n this._reactName = reactName;\n this._targetInst = targetInst;\n this.type = reactEventType;\n this.nativeEvent = nativeEvent;\n this.target = nativeEventTarget;\n this.currentTarget = null;\n for (var propName in Interface)\n Interface.hasOwnProperty(propName) &&\n ((reactName = Interface[propName]),\n (this[propName] = reactName\n ? reactName(nativeEvent)\n : nativeEvent[propName]));\n this.isDefaultPrevented = (\n null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue\n )\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n assign(SyntheticBaseEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function () {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble &&\n (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function () {},\n isPersistent: functionThatReturnsTrue\n });\n return SyntheticBaseEvent;\n}\nvar EventInterface = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n },\n SyntheticEvent = createSyntheticEvent(EventInterface),\n UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }),\n SyntheticUIEvent = createSyntheticEvent(UIEventInterface),\n lastMovementX,\n lastMovementY,\n lastMouseEvent,\n MouseEventInterface = assign({}, UIEventInterface, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: getEventModifierState,\n button: 0,\n buttons: 0,\n relatedTarget: function (event) {\n return void 0 === event.relatedTarget\n ? event.fromElement === event.srcElement\n ? event.toElement\n : event.fromElement\n : event.relatedTarget;\n },\n movementX: function (event) {\n if (\"movementX\" in event) return event.movementX;\n event !== lastMouseEvent &&\n (lastMouseEvent && \"mousemove\" === event.type\n ? ((lastMovementX = event.screenX - lastMouseEvent.screenX),\n (lastMovementY = event.screenY - lastMouseEvent.screenY))\n : (lastMovementY = lastMovementX = 0),\n (lastMouseEvent = event));\n return lastMovementX;\n },\n movementY: function (event) {\n return \"movementY\" in event ? event.movementY : lastMovementY;\n }\n }),\n SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface),\n DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }),\n SyntheticDragEvent = createSyntheticEvent(DragEventInterface),\n FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }),\n SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface),\n AnimationEventInterface = assign({}, EventInterface, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface),\n ClipboardEventInterface = assign({}, EventInterface, {\n clipboardData: function (event) {\n return \"clipboardData\" in event\n ? event.clipboardData\n : window.clipboardData;\n }\n }),\n SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface),\n CompositionEventInterface = assign({}, EventInterface, { data: 0 }),\n SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),\n normalizeKey = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n },\n translateToKey = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n },\n modifierKeyToProp = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n };\nfunction modifierStateGetter(keyArg) {\n var nativeEvent = this.nativeEvent;\n return nativeEvent.getModifierState\n ? nativeEvent.getModifierState(keyArg)\n : (keyArg = modifierKeyToProp[keyArg])\n ? !!nativeEvent[keyArg]\n : !1;\n}\nfunction getEventModifierState() {\n return modifierStateGetter;\n}\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n key: function (nativeEvent) {\n if (nativeEvent.key) {\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n if (\"Unidentified\" !== key) return key;\n }\n return \"keypress\" === nativeEvent.type\n ? ((nativeEvent = getEventCharCode(nativeEvent)),\n 13 === nativeEvent ? \"Enter\" : String.fromCharCode(nativeEvent))\n : \"keydown\" === nativeEvent.type || \"keyup\" === nativeEvent.type\n ? translateToKey[nativeEvent.keyCode] || \"Unidentified\"\n : \"\";\n },\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: getEventModifierState,\n charCode: function (event) {\n return \"keypress\" === event.type ? getEventCharCode(event) : 0;\n },\n keyCode: function (event) {\n return \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n },\n which: function (event) {\n return \"keypress\" === event.type\n ? getEventCharCode(event)\n : \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n }\n }),\n SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface),\n PointerEventInterface = assign({}, MouseEventInterface, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n }),\n SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface),\n TouchEventInterface = assign({}, UIEventInterface, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: getEventModifierState\n }),\n SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface),\n TransitionEventInterface = assign({}, EventInterface, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface),\n WheelEventInterface = assign({}, MouseEventInterface, {\n deltaX: function (event) {\n return \"deltaX\" in event\n ? event.deltaX\n : \"wheelDeltaX\" in event\n ? -event.wheelDeltaX\n : 0;\n },\n deltaY: function (event) {\n return \"deltaY\" in event\n ? event.deltaY\n : \"wheelDeltaY\" in event\n ? -event.wheelDeltaY\n : \"wheelDelta\" in event\n ? -event.wheelDelta\n : 0;\n },\n deltaZ: 0,\n deltaMode: 0\n }),\n SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface),\n ToggleEventInterface = assign({}, EventInterface, {\n newState: 0,\n oldState: 0\n }),\n SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface),\n END_KEYCODES = [9, 13, 27, 32],\n canUseCompositionEvent = canUseDOM && \"CompositionEvent\" in window,\n documentMode = null;\ncanUseDOM &&\n \"documentMode\" in document &&\n (documentMode = document.documentMode);\nvar canUseTextInputEvent = canUseDOM && \"TextEvent\" in window && !documentMode,\n useFallbackCompositionData =\n canUseDOM &&\n (!canUseCompositionEvent ||\n (documentMode && 8 < documentMode && 11 >= documentMode)),\n SPACEBAR_CHAR = String.fromCharCode(32),\n hasSpaceKeypress = !1;\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"keyup\":\n return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);\n case \"keydown\":\n return 229 !== nativeEvent.keyCode;\n case \"keypress\":\n case \"mousedown\":\n case \"focusout\":\n return !0;\n default:\n return !1;\n }\n}\nfunction getDataFromCustomEvent(nativeEvent) {\n nativeEvent = nativeEvent.detail;\n return \"object\" === typeof nativeEvent && \"data\" in nativeEvent\n ? nativeEvent.data\n : null;\n}\nvar isComposing = !1;\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"compositionend\":\n return getDataFromCustomEvent(nativeEvent);\n case \"keypress\":\n if (32 !== nativeEvent.which) return null;\n hasSpaceKeypress = !0;\n return SPACEBAR_CHAR;\n case \"textInput\":\n return (\n (domEventName = nativeEvent.data),\n domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName\n );\n default:\n return null;\n }\n}\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n if (isComposing)\n return \"compositionend\" === domEventName ||\n (!canUseCompositionEvent &&\n isFallbackCompositionEnd(domEventName, nativeEvent))\n ? ((domEventName = getData()),\n (fallbackText = startText = root = null),\n (isComposing = !1),\n domEventName)\n : null;\n switch (domEventName) {\n case \"paste\":\n return null;\n case \"keypress\":\n if (\n !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) ||\n (nativeEvent.ctrlKey && nativeEvent.altKey)\n ) {\n if (nativeEvent.char && 1 < nativeEvent.char.length)\n return nativeEvent.char;\n if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);\n }\n return null;\n case \"compositionend\":\n return useFallbackCompositionData && \"ko\" !== nativeEvent.locale\n ? null\n : nativeEvent.data;\n default:\n return null;\n }\n}\nvar supportedInputTypes = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return \"input\" === nodeName\n ? !!supportedInputTypes[elem.type]\n : \"textarea\" === nodeName\n ? !0\n : !1;\n}\nfunction createAndAccumulateChangeEvent(\n dispatchQueue,\n inst,\n nativeEvent,\n target\n) {\n restoreTarget\n ? restoreQueue\n ? restoreQueue.push(target)\n : (restoreQueue = [target])\n : (restoreTarget = target);\n inst = accumulateTwoPhaseListeners(inst, \"onChange\");\n 0 < inst.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onChange\",\n \"change\",\n null,\n nativeEvent,\n target\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: inst }));\n}\nvar activeElement$1 = null,\n activeElementInst$1 = null;\nfunction runEventInBatch(dispatchQueue) {\n processDispatchQueue(dispatchQueue, 0);\n}\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance(targetInst);\n if (updateValueIfChanged(targetNode)) return targetInst;\n}\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n if (\"change\" === domEventName) return targetInst;\n}\nvar isInputEventSupported = !1;\nif (canUseDOM) {\n var JSCompiler_inline_result$jscomp$286;\n if (canUseDOM) {\n var isSupported$jscomp$inline_427 = \"oninput\" in document;\n if (!isSupported$jscomp$inline_427) {\n var element$jscomp$inline_428 = document.createElement(\"div\");\n element$jscomp$inline_428.setAttribute(\"oninput\", \"return;\");\n isSupported$jscomp$inline_427 =\n \"function\" === typeof element$jscomp$inline_428.oninput;\n }\n JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_427;\n } else JSCompiler_inline_result$jscomp$286 = !1;\n isInputEventSupported =\n JSCompiler_inline_result$jscomp$286 &&\n (!document.documentMode || 9 < document.documentMode);\n}\nfunction stopWatchingForValueChange() {\n activeElement$1 &&\n (activeElement$1.detachEvent(\"onpropertychange\", handlePropertyChange),\n (activeElementInst$1 = activeElement$1 = null));\n}\nfunction handlePropertyChange(nativeEvent) {\n if (\n \"value\" === nativeEvent.propertyName &&\n getInstIfValueChanged(activeElementInst$1)\n ) {\n var dispatchQueue = [];\n createAndAccumulateChangeEvent(\n dispatchQueue,\n activeElementInst$1,\n nativeEvent,\n getEventTarget(nativeEvent)\n );\n batchedUpdates$1(runEventInBatch, dispatchQueue);\n }\n}\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n \"focusin\" === domEventName\n ? (stopWatchingForValueChange(),\n (activeElement$1 = target),\n (activeElementInst$1 = targetInst),\n activeElement$1.attachEvent(\"onpropertychange\", handlePropertyChange))\n : \"focusout\" === domEventName && stopWatchingForValueChange();\n}\nfunction getTargetInstForInputEventPolyfill(domEventName) {\n if (\n \"selectionchange\" === domEventName ||\n \"keyup\" === domEventName ||\n \"keydown\" === domEventName\n )\n return getInstIfValueChanged(activeElementInst$1);\n}\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n if (\"click\" === domEventName) return getInstIfValueChanged(targetInst);\n}\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n if (\"input\" === domEventName || \"change\" === domEventName)\n return getInstIfValueChanged(targetInst);\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is;\nfunction shallowEqual(objA, objB) {\n if (objectIs(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++) {\n var currentKey = keysA[keysB];\n if (\n !hasOwnProperty.call(objB, currentKey) ||\n !objectIs(objA[currentKey], objB[currentKey])\n )\n return !1;\n }\n return !0;\n}\nfunction getLeafNode(node) {\n for (; node && node.firstChild; ) node = node.firstChild;\n return node;\n}\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n root = 0;\n for (var nodeEnd; node; ) {\n if (3 === node.nodeType) {\n nodeEnd = root + node.textContent.length;\n if (root <= offset && nodeEnd >= offset)\n return { node: node, offset: offset - root };\n root = nodeEnd;\n }\n a: {\n for (; node; ) {\n if (node.nextSibling) {\n node = node.nextSibling;\n break a;\n }\n node = node.parentNode;\n }\n node = void 0;\n }\n node = getLeafNode(node);\n }\n}\nfunction containsNode(outerNode, innerNode) {\n return outerNode && innerNode\n ? outerNode === innerNode\n ? !0\n : outerNode && 3 === outerNode.nodeType\n ? !1\n : innerNode && 3 === innerNode.nodeType\n ? containsNode(outerNode, innerNode.parentNode)\n : \"contains\" in outerNode\n ? outerNode.contains(innerNode)\n : outerNode.compareDocumentPosition\n ? !!(outerNode.compareDocumentPosition(innerNode) & 16)\n : !1\n : !1;\n}\nfunction getActiveElementDeep(containerInfo) {\n containerInfo =\n null != containerInfo &&\n null != containerInfo.ownerDocument &&\n null != containerInfo.ownerDocument.defaultView\n ? containerInfo.ownerDocument.defaultView\n : window;\n for (\n var element = getActiveElement(containerInfo.document);\n element instanceof containerInfo.HTMLIFrameElement;\n\n ) {\n try {\n var JSCompiler_inline_result =\n \"string\" === typeof element.contentWindow.location.href;\n } catch (err) {\n JSCompiler_inline_result = !1;\n }\n if (JSCompiler_inline_result) containerInfo = element.contentWindow;\n else break;\n element = getActiveElement(containerInfo.document);\n }\n return element;\n}\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return (\n nodeName &&\n ((\"input\" === nodeName &&\n (\"text\" === elem.type ||\n \"search\" === elem.type ||\n \"tel\" === elem.type ||\n \"url\" === elem.type ||\n \"password\" === elem.type)) ||\n \"textarea\" === nodeName ||\n \"true\" === elem.contentEditable)\n );\n}\nvar skipSelectionChangeEvent =\n canUseDOM && \"documentMode\" in document && 11 >= document.documentMode,\n activeElement = null,\n activeElementInst = null,\n lastSelection = null,\n mouseDown = !1;\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n var doc =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget.document\n : 9 === nativeEventTarget.nodeType\n ? nativeEventTarget\n : nativeEventTarget.ownerDocument;\n mouseDown ||\n null == activeElement ||\n activeElement !== getActiveElement(doc) ||\n ((doc = activeElement),\n \"selectionStart\" in doc && hasSelectionCapabilities(doc)\n ? (doc = { start: doc.selectionStart, end: doc.selectionEnd })\n : ((doc = (\n (doc.ownerDocument && doc.ownerDocument.defaultView) ||\n window\n ).getSelection()),\n (doc = {\n anchorNode: doc.anchorNode,\n anchorOffset: doc.anchorOffset,\n focusNode: doc.focusNode,\n focusOffset: doc.focusOffset\n })),\n (lastSelection && shallowEqual(lastSelection, doc)) ||\n ((lastSelection = doc),\n (doc = accumulateTwoPhaseListeners(activeElementInst, \"onSelect\")),\n 0 < doc.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onSelect\",\n \"select\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: doc }),\n (nativeEvent.target = activeElement))));\n}\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes[\"Webkit\" + styleProp] = \"webkit\" + eventName;\n prefixes[\"Moz\" + styleProp] = \"moz\" + eventName;\n return prefixes;\n}\nvar vendorPrefixes = {\n animationend: makePrefixMap(\"Animation\", \"AnimationEnd\"),\n animationiteration: makePrefixMap(\"Animation\", \"AnimationIteration\"),\n animationstart: makePrefixMap(\"Animation\", \"AnimationStart\"),\n transitionrun: makePrefixMap(\"Transition\", \"TransitionRun\"),\n transitionstart: makePrefixMap(\"Transition\", \"TransitionStart\"),\n transitioncancel: makePrefixMap(\"Transition\", \"TransitionCancel\"),\n transitionend: makePrefixMap(\"Transition\", \"TransitionEnd\")\n },\n prefixedEventNames = {},\n style = {};\ncanUseDOM &&\n ((style = document.createElement(\"div\").style),\n \"AnimationEvent\" in window ||\n (delete vendorPrefixes.animationend.animation,\n delete vendorPrefixes.animationiteration.animation,\n delete vendorPrefixes.animationstart.animation),\n \"TransitionEvent\" in window ||\n delete vendorPrefixes.transitionend.transition);\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];\n if (!vendorPrefixes[eventName]) return eventName;\n var prefixMap = vendorPrefixes[eventName],\n styleProp;\n for (styleProp in prefixMap)\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)\n return (prefixedEventNames[eventName] = prefixMap[styleProp]);\n return eventName;\n}\nvar ANIMATION_END = getVendorPrefixedEventName(\"animationend\"),\n ANIMATION_ITERATION = getVendorPrefixedEventName(\"animationiteration\"),\n ANIMATION_START = getVendorPrefixedEventName(\"animationstart\"),\n TRANSITION_RUN = getVendorPrefixedEventName(\"transitionrun\"),\n TRANSITION_START = getVendorPrefixedEventName(\"transitionstart\"),\n TRANSITION_CANCEL = getVendorPrefixedEventName(\"transitioncancel\"),\n TRANSITION_END = getVendorPrefixedEventName(\"transitionend\"),\n topLevelEventsToReactNames = new Map(),\n simpleEventPluginEvents =\n \"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\n \" \"\n );\nsimpleEventPluginEvents.push(\"scrollEnd\");\nfunction registerSimpleEvent(domEventName, reactName) {\n topLevelEventsToReactNames.set(domEventName, reactName);\n registerTwoPhaseEvent(reactName, [domEventName]);\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n concurrentQueues = [],\n concurrentQueuesIndex = 0,\n concurrentlyUpdatedLanes = 0;\nfunction finishQueueingConcurrentUpdates() {\n for (\n var endIndex = concurrentQueuesIndex,\n i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0);\n i < endIndex;\n\n ) {\n var fiber = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var queue = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var update = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var lane = concurrentQueues[i];\n concurrentQueues[i++] = null;\n if (null !== queue && null !== update) {\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n }\n 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);\n }\n}\nfunction enqueueUpdate$1(fiber, queue, update, lane) {\n concurrentQueues[concurrentQueuesIndex++] = fiber;\n concurrentQueues[concurrentQueuesIndex++] = queue;\n concurrentQueues[concurrentQueuesIndex++] = update;\n concurrentQueues[concurrentQueuesIndex++] = lane;\n concurrentlyUpdatedLanes |= lane;\n fiber.lanes |= lane;\n fiber = fiber.alternate;\n null !== fiber && (fiber.lanes |= lane);\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n enqueueUpdate$1(fiber, queue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n enqueueUpdate$1(fiber, null, null, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {\n sourceFiber.lanes |= lane;\n var alternate = sourceFiber.alternate;\n null !== alternate && (alternate.lanes |= lane);\n for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )\n (parent.childLanes |= lane),\n (alternate = parent.alternate),\n null !== alternate && (alternate.childLanes |= lane),\n 22 === parent.tag &&\n ((sourceFiber = parent.stateNode),\n null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),\n (sourceFiber = parent),\n (parent = parent.return);\n return 3 === sourceFiber.tag\n ? ((parent = sourceFiber.stateNode),\n isHidden &&\n null !== update &&\n ((isHidden = 31 - clz32(lane)),\n (sourceFiber = parent.hiddenUpdates),\n (alternate = sourceFiber[isHidden]),\n null === alternate\n ? (sourceFiber[isHidden] = [update])\n : alternate.push(update),\n (update.lane = lane | 536870912)),\n parent)\n : null;\n}\nfunction getRootForUpdatedFiber(sourceFiber) {\n if (50 < nestedUpdateCount)\n throw (\n ((nestedUpdateCount = 0),\n (rootWithNestedUpdates = null),\n Error(formatProdErrorMessage(185)))\n );\n for (var parent = sourceFiber.return; null !== parent; )\n (sourceFiber = parent), (parent = sourceFiber.return);\n return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;\n}\nvar emptyContextObject = {};\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling =\n this.child =\n this.return =\n this.stateNode =\n this.type =\n this.elementType =\n null;\n this.index = 0;\n this.refCleanup = this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies =\n this.memoizedState =\n this.updateQueue =\n this.memoizedProps =\n null;\n this.mode = mode;\n this.subtreeFlags = this.flags = 0;\n this.deletions = null;\n this.childLanes = this.lanes = 0;\n this.alternate = null;\n}\nfunction createFiberImplClass(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiberImplClass(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.type = current.type),\n (workInProgress.flags = 0),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null));\n workInProgress.flags = current.flags & 65011712;\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n workInProgress.refCleanup = current.refCleanup;\n return workInProgress;\n}\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n workInProgress.flags &= 65011714;\n var current = workInProgress.alternate;\n null === current\n ? ((workInProgress.childLanes = 0),\n (workInProgress.lanes = renderLanes),\n (workInProgress.child = null),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.memoizedProps = null),\n (workInProgress.memoizedState = null),\n (workInProgress.updateQueue = null),\n (workInProgress.dependencies = null),\n (workInProgress.stateNode = null))\n : ((workInProgress.childLanes = current.childLanes),\n (workInProgress.lanes = current.lanes),\n (workInProgress.child = current.child),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null),\n (workInProgress.memoizedProps = current.memoizedProps),\n (workInProgress.memoizedState = current.memoizedState),\n (workInProgress.updateQueue = current.updateQueue),\n (workInProgress.type = current.type),\n (renderLanes = current.dependencies),\n (workInProgress.dependencies =\n null === renderLanes\n ? null\n : {\n lanes: renderLanes.lanes,\n firstContext: renderLanes.firstContext\n }));\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n lanes\n) {\n var fiberTag = 0;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type)\n fiberTag = isHostHoistableType(\n type,\n pendingProps,\n contextStackCursor.current\n )\n ? 26\n : \"html\" === type || \"head\" === type || \"body\" === type\n ? 27\n : 5;\n else\n a: switch (type) {\n case REACT_ACTIVITY_TYPE:\n return (\n (type = createFiberImplClass(31, pendingProps, key, mode)),\n (type.elementType = REACT_ACTIVITY_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 24;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiberImplClass(12, pendingProps, key, mode | 2)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiberImplClass(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiberImplClass(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.lanes = lanes),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONSUMER_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n fiberTag = 29;\n pendingProps = Error(\n formatProdErrorMessage(130, null === type ? \"null\" : typeof type, \"\")\n );\n owner = null;\n }\n key = createFiberImplClass(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.lanes = lanes;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n elements = createFiberImplClass(7, elements, key, mode);\n elements.lanes = lanes;\n return elements;\n}\nfunction createFiberFromText(content, mode, lanes) {\n content = createFiberImplClass(6, content, null, mode);\n content.lanes = lanes;\n return content;\n}\nfunction createFiberFromDehydratedFragment(dehydratedNode) {\n var fiber = createFiberImplClass(18, null, null, 0);\n fiber.stateNode = dehydratedNode;\n return fiber;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n mode = createFiberImplClass(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.lanes = lanes;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nvar CapturedStacks = new WeakMap();\nfunction createCapturedValueAtFiber(value, source) {\n if (\"object\" === typeof value && null !== value) {\n var existing = CapturedStacks.get(value);\n if (void 0 !== existing) return existing;\n source = {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n CapturedStacks.set(value, source);\n return source;\n }\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nvar forkStack = [],\n forkStackIndex = 0,\n treeForkProvider = null,\n treeForkCount = 0,\n idStack = [],\n idStackIndex = 0,\n treeContextProvider = null,\n treeContextId = 1,\n treeContextOverflow = \"\";\nfunction pushTreeFork(workInProgress, totalChildren) {\n forkStack[forkStackIndex++] = treeForkCount;\n forkStack[forkStackIndex++] = treeForkProvider;\n treeForkProvider = workInProgress;\n treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextProvider = workInProgress;\n var baseIdWithLeadingBit = treeContextId;\n workInProgress = treeContextOverflow;\n var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;\n baseIdWithLeadingBit &= ~(1 << baseLength);\n index += 1;\n var length = 32 - clz32(totalChildren) + baseLength;\n if (30 < length) {\n var numberOfOverflowBits = baseLength - (baseLength % 5);\n length = (\n baseIdWithLeadingBit &\n ((1 << numberOfOverflowBits) - 1)\n ).toString(32);\n baseIdWithLeadingBit >>= numberOfOverflowBits;\n baseLength -= numberOfOverflowBits;\n treeContextId =\n (1 << (32 - clz32(totalChildren) + baseLength)) |\n (index << baseLength) |\n baseIdWithLeadingBit;\n treeContextOverflow = length + workInProgress;\n } else\n (treeContextId =\n (1 << length) | (index << baseLength) | baseIdWithLeadingBit),\n (treeContextOverflow = workInProgress);\n}\nfunction pushMaterializedTreeId(workInProgress) {\n null !== workInProgress.return &&\n (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));\n}\nfunction popTreeContext(workInProgress) {\n for (; workInProgress === treeForkProvider; )\n (treeForkProvider = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null),\n (treeForkCount = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null);\n for (; workInProgress === treeContextProvider; )\n (treeContextProvider = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextOverflow = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextId = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null);\n}\nfunction restoreSuspendedTreeContext(workInProgress, suspendedContext) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextId = suspendedContext.id;\n treeContextOverflow = suspendedContext.overflow;\n treeContextProvider = workInProgress;\n}\nvar hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1,\n hydrationErrors = null,\n rootOrSingletonContext = !1,\n HydrationMismatchException = Error(formatProdErrorMessage(519));\nfunction throwOnHydrationMismatch(fiber) {\n var error = Error(\n formatProdErrorMessage(\n 418,\n 1 < arguments.length && void 0 !== arguments[1] && arguments[1]\n ? \"text\"\n : \"HTML\",\n \"\"\n )\n );\n queueHydrationError(createCapturedValueAtFiber(error, fiber));\n throw HydrationMismatchException;\n}\nfunction prepareToHydrateHostInstance(fiber) {\n var instance = fiber.stateNode,\n type = fiber.type,\n props = fiber.memoizedProps;\n instance[internalInstanceKey] = fiber;\n instance[internalPropsKey] = props;\n switch (type) {\n case \"dialog\":\n listenToNonDelegatedEvent(\"cancel\", instance);\n listenToNonDelegatedEvent(\"close\", instance);\n break;\n case \"iframe\":\n case \"object\":\n case \"embed\":\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"video\":\n case \"audio\":\n for (type = 0; type < mediaEventTypes.length; type++)\n listenToNonDelegatedEvent(mediaEventTypes[type], instance);\n break;\n case \"source\":\n listenToNonDelegatedEvent(\"error\", instance);\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", instance);\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", instance);\n break;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n initInput(\n instance,\n props.value,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name,\n !0\n );\n break;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n break;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", instance),\n initTextarea(instance, props.value, props.defaultValue, props.children);\n }\n type = props.children;\n (\"string\" !== typeof type &&\n \"number\" !== typeof type &&\n \"bigint\" !== typeof type) ||\n instance.textContent === \"\" + type ||\n !0 === props.suppressHydrationWarning ||\n checkForUnmatchedText(instance.textContent, type)\n ? (null != props.popover &&\n (listenToNonDelegatedEvent(\"beforetoggle\", instance),\n listenToNonDelegatedEvent(\"toggle\", instance)),\n null != props.onScroll && listenToNonDelegatedEvent(\"scroll\", instance),\n null != props.onScrollEnd &&\n listenToNonDelegatedEvent(\"scrollend\", instance),\n null != props.onClick && (instance.onclick = noop$1),\n (instance = !0))\n : (instance = !1);\n instance || throwOnHydrationMismatch(fiber, !0);\n}\nfunction popToNextHostParent(fiber) {\n for (hydrationParentFiber = fiber.return; hydrationParentFiber; )\n switch (hydrationParentFiber.tag) {\n case 5:\n case 31:\n case 13:\n rootOrSingletonContext = !1;\n return;\n case 27:\n case 3:\n rootOrSingletonContext = !0;\n return;\n default:\n hydrationParentFiber = hydrationParentFiber.return;\n }\n}\nfunction popHydrationState(fiber) {\n if (fiber !== hydrationParentFiber) return !1;\n if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;\n var tag = fiber.tag,\n JSCompiler_temp;\n if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {\n if ((JSCompiler_temp = 5 === tag))\n (JSCompiler_temp = fiber.type),\n (JSCompiler_temp =\n !(\"form\" !== JSCompiler_temp && \"button\" !== JSCompiler_temp) ||\n shouldSetTextContent(fiber.type, fiber.memoizedProps));\n JSCompiler_temp = !JSCompiler_temp;\n }\n JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);\n popToNextHostParent(fiber);\n if (13 === tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n nextHydratableInstance =\n getNextHydratableInstanceAfterHydrationBoundary(fiber);\n } else if (31 === tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n nextHydratableInstance =\n getNextHydratableInstanceAfterHydrationBoundary(fiber);\n } else\n 27 === tag\n ? ((tag = nextHydratableInstance),\n isSingletonScope(fiber.type)\n ? ((fiber = previousHydratableOnEnteringScopedSingleton),\n (previousHydratableOnEnteringScopedSingleton = null),\n (nextHydratableInstance = fiber))\n : (nextHydratableInstance = tag))\n : (nextHydratableInstance = hydrationParentFiber\n ? getNextHydratable(fiber.stateNode.nextSibling)\n : null);\n return !0;\n}\nfunction resetHydrationState() {\n nextHydratableInstance = hydrationParentFiber = null;\n isHydrating = !1;\n}\nfunction upgradeHydrationErrorsToRecoverable() {\n var queuedErrors = hydrationErrors;\n null !== queuedErrors &&\n (null === workInProgressRootRecoverableErrors\n ? (workInProgressRootRecoverableErrors = queuedErrors)\n : workInProgressRootRecoverableErrors.push.apply(\n workInProgressRootRecoverableErrors,\n queuedErrors\n ),\n (hydrationErrors = null));\n return queuedErrors;\n}\nfunction queueHydrationError(error) {\n null === hydrationErrors\n ? (hydrationErrors = [error])\n : hydrationErrors.push(error);\n}\nvar valueCursor = createCursor(null),\n currentlyRenderingFiber$1 = null,\n lastContextDependency = null;\nfunction pushProvider(providerFiber, context, nextValue) {\n push(valueCursor, context._currentValue);\n context._currentValue = nextValue;\n}\nfunction popProvider(context) {\n context._currentValue = valueCursor.current;\n pop(valueCursor);\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n (parent.childLanes & renderLanes) !== renderLanes\n ? ((parent.childLanes |= renderLanes),\n null !== alternate && (alternate.childLanes |= renderLanes))\n : null !== alternate &&\n (alternate.childLanes & renderLanes) !== renderLanes &&\n (alternate.childLanes |= renderLanes);\n if (parent === propagationRoot) break;\n parent = parent.return;\n }\n}\nfunction propagateContextChanges(\n workInProgress,\n contexts,\n renderLanes,\n forcePropagateEntireTree\n) {\n var fiber = workInProgress.child;\n null !== fiber && (fiber.return = workInProgress);\n for (; null !== fiber; ) {\n var list = fiber.dependencies;\n if (null !== list) {\n var nextFiber = fiber.child;\n list = list.firstContext;\n a: for (; null !== list; ) {\n var dependency = list;\n list = fiber;\n for (var i = 0; i < contexts.length; i++)\n if (dependency.context === contexts[i]) {\n list.lanes |= renderLanes;\n dependency = list.alternate;\n null !== dependency && (dependency.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(\n list.return,\n renderLanes,\n workInProgress\n );\n forcePropagateEntireTree || (nextFiber = null);\n break a;\n }\n list = dependency.next;\n }\n } else if (18 === fiber.tag) {\n nextFiber = fiber.return;\n if (null === nextFiber) throw Error(formatProdErrorMessage(341));\n nextFiber.lanes |= renderLanes;\n list = nextFiber.alternate;\n null !== list && (list.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);\n nextFiber = null;\n } else nextFiber = fiber.child;\n if (null !== nextFiber) nextFiber.return = fiber;\n else\n for (nextFiber = fiber; null !== nextFiber; ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n fiber = nextFiber.sibling;\n if (null !== fiber) {\n fiber.return = nextFiber.return;\n nextFiber = fiber;\n break;\n }\n nextFiber = nextFiber.return;\n }\n fiber = nextFiber;\n }\n}\nfunction propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n forcePropagateEntireTree\n) {\n current = null;\n for (\n var parent = workInProgress, isInsidePropagationBailout = !1;\n null !== parent;\n\n ) {\n if (!isInsidePropagationBailout)\n if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;\n else if (0 !== (parent.flags & 262144)) break;\n if (10 === parent.tag) {\n var currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent = currentParent.memoizedProps;\n if (null !== currentParent) {\n var context = parent.type;\n objectIs(parent.pendingProps.value, currentParent.value) ||\n (null !== current ? current.push(context) : (current = [context]));\n }\n } else if (parent === hostTransitionProviderCursor.current) {\n currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent.memoizedState.memoizedState !==\n parent.memoizedState.memoizedState &&\n (null !== current\n ? current.push(HostTransitionContext)\n : (current = [HostTransitionContext]));\n }\n parent = parent.return;\n }\n null !== current &&\n propagateContextChanges(\n workInProgress,\n current,\n renderLanes,\n forcePropagateEntireTree\n );\n workInProgress.flags |= 262144;\n}\nfunction checkIfContextChanged(currentDependencies) {\n for (\n currentDependencies = currentDependencies.firstContext;\n null !== currentDependencies;\n\n ) {\n if (\n !objectIs(\n currentDependencies.context._currentValue,\n currentDependencies.memoizedValue\n )\n )\n return !0;\n currentDependencies = currentDependencies.next;\n }\n return !1;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber$1 = workInProgress;\n lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress && (workInProgress.firstContext = null);\n}\nfunction readContext(context) {\n return readContextForConsumer(currentlyRenderingFiber$1, context);\n}\nfunction readContextDuringReconciliation(consumer, context) {\n null === currentlyRenderingFiber$1 && prepareToReadContext(consumer);\n return readContextForConsumer(consumer, context);\n}\nfunction readContextForConsumer(consumer, context) {\n var value = context._currentValue;\n context = { context: context, memoizedValue: value, next: null };\n if (null === lastContextDependency) {\n if (null === consumer) throw Error(formatProdErrorMessage(308));\n lastContextDependency = context;\n consumer.dependencies = { lanes: 0, firstContext: context };\n consumer.flags |= 524288;\n } else lastContextDependency = lastContextDependency.next = context;\n return value;\n}\nvar AbortControllerLocal =\n \"undefined\" !== typeof AbortController\n ? AbortController\n : function () {\n var listeners = [],\n signal = (this.signal = {\n aborted: !1,\n addEventListener: function (type, listener) {\n listeners.push(listener);\n }\n });\n this.abort = function () {\n signal.aborted = !0;\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n },\n scheduleCallback$2 = Scheduler.unstable_scheduleCallback,\n NormalPriority = Scheduler.unstable_NormalPriority,\n CacheContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Consumer: null,\n Provider: null,\n _currentValue: null,\n _currentValue2: null,\n _threadCount: 0\n };\nfunction createCache() {\n return {\n controller: new AbortControllerLocal(),\n data: new Map(),\n refCount: 0\n };\n}\nfunction releaseCache(cache) {\n cache.refCount--;\n 0 === cache.refCount &&\n scheduleCallback$2(NormalPriority, function () {\n cache.controller.abort();\n });\n}\nvar currentEntangledListeners = null,\n currentEntangledPendingCount = 0,\n currentEntangledLane = 0,\n currentEntangledActionThenable = null;\nfunction entangleAsyncAction(transition, thenable) {\n if (null === currentEntangledListeners) {\n var entangledListeners = (currentEntangledListeners = []);\n currentEntangledPendingCount = 0;\n currentEntangledLane = requestTransitionLane();\n currentEntangledActionThenable = {\n status: \"pending\",\n value: void 0,\n then: function (resolve) {\n entangledListeners.push(resolve);\n }\n };\n }\n currentEntangledPendingCount++;\n thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);\n return thenable;\n}\nfunction pingEngtangledActionScope() {\n if (\n 0 === --currentEntangledPendingCount &&\n null !== currentEntangledListeners\n ) {\n null !== currentEntangledActionThenable &&\n (currentEntangledActionThenable.status = \"fulfilled\");\n var listeners = currentEntangledListeners;\n currentEntangledListeners = null;\n currentEntangledLane = 0;\n currentEntangledActionThenable = null;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])();\n }\n}\nfunction chainThenableValue(thenable, result) {\n var listeners = [],\n thenableWithOverride = {\n status: \"pending\",\n value: null,\n reason: null,\n then: function (resolve) {\n listeners.push(resolve);\n }\n };\n thenable.then(\n function () {\n thenableWithOverride.status = \"fulfilled\";\n thenableWithOverride.value = result;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);\n },\n function (error) {\n thenableWithOverride.status = \"rejected\";\n thenableWithOverride.reason = error;\n for (error = 0; error < listeners.length; error++)\n (0, listeners[error])(void 0);\n }\n );\n return thenableWithOverride;\n}\nvar prevOnStartTransitionFinish = ReactSharedInternals.S;\nReactSharedInternals.S = function (transition, returnValue) {\n globalMostRecentTransitionTime = now();\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n entangleAsyncAction(transition, returnValue);\n null !== prevOnStartTransitionFinish &&\n prevOnStartTransitionFinish(transition, returnValue);\n};\nvar resumedCache = createCursor(null);\nfunction peekCacheFromPool() {\n var cacheResumedFromPreviousRender = resumedCache.current;\n return null !== cacheResumedFromPreviousRender\n ? cacheResumedFromPreviousRender\n : workInProgressRoot.pooledCache;\n}\nfunction pushTransition(offscreenWorkInProgress, prevCachePool) {\n null === prevCachePool\n ? push(resumedCache, resumedCache.current)\n : push(resumedCache, prevCachePool.pool);\n}\nfunction getSuspendedCache() {\n var cacheFromPool = peekCacheFromPool();\n return null === cacheFromPool\n ? null\n : { parent: CacheContext._currentValue, pool: cacheFromPool };\n}\nvar SuspenseException = Error(formatProdErrorMessage(460)),\n SuspenseyCommitException = Error(formatProdErrorMessage(474)),\n SuspenseActionException = Error(formatProdErrorMessage(542)),\n noopSuspenseyCommitThenable = { then: function () {} };\nfunction isThenableResolved(thenable) {\n thenable = thenable.status;\n return \"fulfilled\" === thenable || \"rejected\" === thenable;\n}\nfunction trackUsedThenable(thenableState, thenable, index) {\n index = thenableState[index];\n void 0 === index\n ? thenableState.push(thenable)\n : index !== thenable && (thenable.then(noop$1, noop$1), (thenable = index));\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n default:\n if (\"string\" === typeof thenable.status) thenable.then(noop$1, noop$1);\n else {\n thenableState = workInProgressRoot;\n if (null !== thenableState && 100 < thenableState.shellSuspendCounter)\n throw Error(formatProdErrorMessage(482));\n thenableState = thenable;\n thenableState.status = \"pending\";\n thenableState.then(\n function (fulfilledValue) {\n if (\"pending\" === thenable.status) {\n var fulfilledThenable = thenable;\n fulfilledThenable.status = \"fulfilled\";\n fulfilledThenable.value = fulfilledValue;\n }\n },\n function (error) {\n if (\"pending\" === thenable.status) {\n var rejectedThenable = thenable;\n rejectedThenable.status = \"rejected\";\n rejectedThenable.reason = error;\n }\n }\n );\n }\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw (\n ((thenableState = thenable.reason),\n checkIfUseWrappedInAsyncCatch(thenableState),\n thenableState)\n );\n }\n suspendedThenable = thenable;\n throw SuspenseException;\n }\n}\nfunction resolveLazy(lazyType) {\n try {\n var init = lazyType._init;\n return init(lazyType._payload);\n } catch (x) {\n if (null !== x && \"object\" === typeof x && \"function\" === typeof x.then)\n throw ((suspendedThenable = x), SuspenseException);\n throw x;\n }\n}\nvar suspendedThenable = null;\nfunction getSuspendedThenable() {\n if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));\n var thenable = suspendedThenable;\n suspendedThenable = null;\n return thenable;\n}\nfunction checkIfUseWrappedInAsyncCatch(rejectedReason) {\n if (\n rejectedReason === SuspenseException ||\n rejectedReason === SuspenseActionException\n )\n throw Error(formatProdErrorMessage(483));\n}\nvar thenableState$1 = null,\n thenableIndexCounter$1 = 0;\nfunction unwrapThenable(thenable) {\n var index = thenableIndexCounter$1;\n thenableIndexCounter$1 += 1;\n null === thenableState$1 && (thenableState$1 = []);\n return trackUsedThenable(thenableState$1, thenable, index);\n}\nfunction coerceRef(workInProgress, element) {\n element = element.props.ref;\n workInProgress.ref = void 0 !== element ? element : null;\n}\nfunction throwOnInvalidObjectTypeImpl(returnFiber, newChild) {\n if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)\n throw Error(formatProdErrorMessage(525));\n returnFiber = Object.prototype.toString.call(newChild);\n throw Error(\n formatProdErrorMessage(\n 31,\n \"[object Object]\" === returnFiber\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : returnFiber\n )\n );\n}\nfunction createChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var deletions = returnFiber.deletions;\n null === deletions\n ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))\n : deletions.push(childToDelete);\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(currentFirstChild) {\n for (var existingChildren = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? existingChildren.set(currentFirstChild.key, currentFirstChild)\n : existingChildren.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return existingChildren;\n }\n function useFiber(fiber, pendingProps) {\n fiber = createWorkInProgress(fiber, pendingProps);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects)\n return (newFiber.flags |= 1048576), lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.flags |= 67108866), lastPlacedIndex)\n : newIndex\n );\n newFiber.flags |= 67108866;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.flags |= 67108866);\n return newFiber;\n }\n function updateTextNode(returnFiber, current, textContent, lanes) {\n if (null === current || 6 !== current.tag)\n return (\n (current = createFiberFromText(textContent, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, textContent);\n current.return = returnFiber;\n return current;\n }\n function updateElement(returnFiber, current, element, lanes) {\n var elementType = element.type;\n if (elementType === REACT_FRAGMENT_TYPE)\n return updateFragment(\n returnFiber,\n current,\n element.props.children,\n lanes,\n element.key\n );\n if (\n null !== current &&\n (current.elementType === elementType ||\n (\"object\" === typeof elementType &&\n null !== elementType &&\n elementType.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(elementType) === current.type))\n )\n return (\n (current = useFiber(current, element.props)),\n coerceRef(current, element),\n (current.return = returnFiber),\n current\n );\n current = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n lanes\n );\n coerceRef(current, element);\n current.return = returnFiber;\n return current;\n }\n function updatePortal(returnFiber, current, portal, lanes) {\n if (\n null === current ||\n 4 !== current.tag ||\n current.stateNode.containerInfo !== portal.containerInfo ||\n current.stateNode.implementation !== portal.implementation\n )\n return (\n (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, portal.children || []);\n current.return = returnFiber;\n return current;\n }\n function updateFragment(returnFiber, current, fragment, lanes, key) {\n if (null === current || 7 !== current.tag)\n return (\n (current = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n lanes,\n key\n )),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, fragment);\n current.return = returnFiber;\n return current;\n }\n function createChild(returnFiber, newChild, lanes) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n lanes\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n createChild(returnFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n lanes,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"function\" === typeof newChild.then)\n return createChild(returnFiber, unwrapThenable(newChild), lanes);\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return createChild(\n returnFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, lanes);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? updateElement(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n updateSlot(returnFiber, oldFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n if (\"function\" === typeof newChild.then)\n return updateSlot(\n returnFiber,\n oldFiber,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateSlot(\n returnFiber,\n oldFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n ) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(returnFiber, existingChildren, \"\" + newChild, lanes)\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updateElement(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(returnFiber, existingChildren, newChild, lanes, null)\n );\n if (\"function\" === typeof newChild.then)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n lanes\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n lanes\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n if (null == newChildren) throw Error(formatProdErrorMessage(151));\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildren.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildren.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildren.next())\n (step = createChild(returnFiber, step.value, lanes)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n !step.done;\n newIdx++, step = newChildren.next()\n )\n (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n ) {\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key &&\n (newChild = newChild.props.children);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n for (var key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key) {\n key = newChild.type;\n if (key === REACT_FRAGMENT_TYPE) {\n if (7 === currentFirstChild.tag) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(\n currentFirstChild,\n newChild.props.children\n );\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n } else if (\n currentFirstChild.elementType === key ||\n (\"object\" === typeof key &&\n null !== key &&\n key.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(key) === currentFirstChild.type)\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.props);\n coerceRef(lanes, newChild);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n }\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n } else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((lanes = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n lanes,\n newChild.key\n )),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : ((lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(lanes, newChild),\n (lanes.return = returnFiber),\n (returnFiber = lanes));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (key = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === key)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n lanes = useFiber(currentFirstChild, newChild.children || []);\n lanes.return = returnFiber;\n returnFiber = lanes;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n lanes.return = returnFiber;\n returnFiber = lanes;\n }\n return placeSingleChild(returnFiber);\n case REACT_LAZY_TYPE:\n return (\n (newChild = resolveLazy(newChild)),\n reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n if (getIteratorFn(newChild)) {\n key = getIteratorFn(newChild);\n if (\"function\" !== typeof key) throw Error(formatProdErrorMessage(150));\n newChild = key.call(newChild);\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n }\n if (\"function\" === typeof newChild.then)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectTypeImpl(returnFiber, newChild);\n }\n return (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n ? ((newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (lanes = useFiber(currentFirstChild, newChild)),\n (lanes.return = returnFiber),\n (returnFiber = lanes))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)),\n (lanes.return = returnFiber),\n (returnFiber = lanes)),\n placeSingleChild(returnFiber))\n : deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n return function (returnFiber, currentFirstChild, newChild, lanes) {\n try {\n thenableIndexCounter$1 = 0;\n var firstChildFiber = reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n thenableState$1 = null;\n return firstChildFiber;\n } catch (x) {\n if (x === SuspenseException || x === SuspenseActionException) throw x;\n var fiber = createFiberImplClass(29, x, null, returnFiber.mode);\n fiber.lanes = lanes;\n fiber.return = returnFiber;\n return fiber;\n } finally {\n }\n };\n}\nvar reconcileChildFibers = createChildReconciler(!0),\n mountChildFibers = createChildReconciler(!1),\n hasForceUpdate = !1;\nfunction initializeUpdateQueue(fiber) {\n fiber.updateQueue = {\n baseState: fiber.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: { pending: null, lanes: 0, hiddenCallbacks: null },\n callbacks: null\n };\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n current = current.updateQueue;\n workInProgress.updateQueue === current &&\n (workInProgress.updateQueue = {\n baseState: current.baseState,\n firstBaseUpdate: current.firstBaseUpdate,\n lastBaseUpdate: current.lastBaseUpdate,\n shared: current.shared,\n callbacks: null\n });\n}\nfunction createUpdate(lane) {\n return { lane: lane, tag: 0, payload: null, callback: null, next: null };\n}\nfunction enqueueUpdate(fiber, update, lane) {\n var updateQueue = fiber.updateQueue;\n if (null === updateQueue) return null;\n updateQueue = updateQueue.shared;\n if (0 !== (executionContext & 2)) {\n var pending = updateQueue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n updateQueue.pending = update;\n update = getRootForUpdatedFiber(fiber);\n markUpdateLaneFromFiberToRoot(fiber, null, lane);\n return update;\n }\n enqueueUpdate$1(fiber, updateQueue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction entangleTransitions(root, fiber, lane) {\n fiber = fiber.updateQueue;\n if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194048))) {\n var queueLanes = fiber.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n fiber.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n var queue = workInProgress.updateQueue,\n current = workInProgress.alternate;\n if (\n null !== current &&\n ((current = current.updateQueue), queue === current)\n ) {\n var newFirst = null,\n newLast = null;\n queue = queue.firstBaseUpdate;\n if (null !== queue) {\n do {\n var clone = {\n lane: queue.lane,\n tag: queue.tag,\n payload: queue.payload,\n callback: null,\n next: null\n };\n null === newLast\n ? (newFirst = newLast = clone)\n : (newLast = newLast.next = clone);\n queue = queue.next;\n } while (null !== queue);\n null === newLast\n ? (newFirst = newLast = capturedUpdate)\n : (newLast = newLast.next = capturedUpdate);\n } else newFirst = newLast = capturedUpdate;\n queue = {\n baseState: current.baseState,\n firstBaseUpdate: newFirst,\n lastBaseUpdate: newLast,\n shared: current.shared,\n callbacks: current.callbacks\n };\n workInProgress.updateQueue = queue;\n return;\n }\n workInProgress = queue.lastBaseUpdate;\n null === workInProgress\n ? (queue.firstBaseUpdate = capturedUpdate)\n : (workInProgress.next = capturedUpdate);\n queue.lastBaseUpdate = capturedUpdate;\n}\nvar didReadFromEntangledAsyncAction = !1;\nfunction suspendIfUpdateReadFromEntangledAsyncAction() {\n if (didReadFromEntangledAsyncAction) {\n var entangledActionThenable = currentEntangledActionThenable;\n if (null !== entangledActionThenable) throw entangledActionThenable;\n }\n}\nfunction processUpdateQueue(\n workInProgress$jscomp$0,\n props,\n instance$jscomp$0,\n renderLanes\n) {\n didReadFromEntangledAsyncAction = !1;\n var queue = workInProgress$jscomp$0.updateQueue;\n hasForceUpdate = !1;\n var firstBaseUpdate = queue.firstBaseUpdate,\n lastBaseUpdate = queue.lastBaseUpdate,\n pendingQueue = queue.shared.pending;\n if (null !== pendingQueue) {\n queue.shared.pending = null;\n var lastPendingUpdate = pendingQueue,\n firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = null;\n null === lastBaseUpdate\n ? (firstBaseUpdate = firstPendingUpdate)\n : (lastBaseUpdate.next = firstPendingUpdate);\n lastBaseUpdate = lastPendingUpdate;\n var current = workInProgress$jscomp$0.alternate;\n null !== current &&\n ((current = current.updateQueue),\n (pendingQueue = current.lastBaseUpdate),\n pendingQueue !== lastBaseUpdate &&\n (null === pendingQueue\n ? (current.firstBaseUpdate = firstPendingUpdate)\n : (pendingQueue.next = firstPendingUpdate),\n (current.lastBaseUpdate = lastPendingUpdate)));\n }\n if (null !== firstBaseUpdate) {\n var newState = queue.baseState;\n lastBaseUpdate = 0;\n current = firstPendingUpdate = lastPendingUpdate = null;\n pendingQueue = firstBaseUpdate;\n do {\n var updateLane = pendingQueue.lane & -536870913,\n isHiddenUpdate = updateLane !== pendingQueue.lane;\n if (\n isHiddenUpdate\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n 0 !== updateLane &&\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction = !0);\n null !== current &&\n (current = current.next =\n {\n lane: 0,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: null,\n next: null\n });\n a: {\n var workInProgress = workInProgress$jscomp$0,\n update = pendingQueue;\n updateLane = props;\n var instance = instance$jscomp$0;\n switch (update.tag) {\n case 1:\n workInProgress = update.payload;\n if (\"function\" === typeof workInProgress) {\n newState = workInProgress.call(instance, newState, updateLane);\n break a;\n }\n newState = workInProgress;\n break a;\n case 3:\n workInProgress.flags = (workInProgress.flags & -65537) | 128;\n case 0:\n workInProgress = update.payload;\n updateLane =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, newState, updateLane)\n : workInProgress;\n if (null === updateLane || void 0 === updateLane) break a;\n newState = assign({}, newState, updateLane);\n break a;\n case 2:\n hasForceUpdate = !0;\n }\n }\n updateLane = pendingQueue.callback;\n null !== updateLane &&\n ((workInProgress$jscomp$0.flags |= 64),\n isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192),\n (isHiddenUpdate = queue.callbacks),\n null === isHiddenUpdate\n ? (queue.callbacks = [updateLane])\n : isHiddenUpdate.push(updateLane));\n } else\n (isHiddenUpdate = {\n lane: updateLane,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: pendingQueue.callback,\n next: null\n }),\n null === current\n ? ((firstPendingUpdate = current = isHiddenUpdate),\n (lastPendingUpdate = newState))\n : (current = current.next = isHiddenUpdate),\n (lastBaseUpdate |= updateLane);\n pendingQueue = pendingQueue.next;\n if (null === pendingQueue)\n if (((pendingQueue = queue.shared.pending), null === pendingQueue))\n break;\n else\n (isHiddenUpdate = pendingQueue),\n (pendingQueue = isHiddenUpdate.next),\n (isHiddenUpdate.next = null),\n (queue.lastBaseUpdate = isHiddenUpdate),\n (queue.shared.pending = null);\n } while (1);\n null === current && (lastPendingUpdate = newState);\n queue.baseState = lastPendingUpdate;\n queue.firstBaseUpdate = firstPendingUpdate;\n queue.lastBaseUpdate = current;\n null === firstBaseUpdate && (queue.shared.lanes = 0);\n workInProgressRootSkippedLanes |= lastBaseUpdate;\n workInProgress$jscomp$0.lanes = lastBaseUpdate;\n workInProgress$jscomp$0.memoizedState = newState;\n }\n}\nfunction callCallback(callback, context) {\n if (\"function\" !== typeof callback)\n throw Error(formatProdErrorMessage(191, callback));\n callback.call(context);\n}\nfunction commitCallbacks(updateQueue, context) {\n var callbacks = updateQueue.callbacks;\n if (null !== callbacks)\n for (\n updateQueue.callbacks = null, updateQueue = 0;\n updateQueue < callbacks.length;\n updateQueue++\n )\n callCallback(callbacks[updateQueue], context);\n}\nvar currentTreeHiddenStackCursor = createCursor(null),\n prevEntangledRenderLanesCursor = createCursor(0);\nfunction pushHiddenContext(fiber, context) {\n fiber = entangledRenderLanes;\n push(prevEntangledRenderLanesCursor, fiber);\n push(currentTreeHiddenStackCursor, context);\n entangledRenderLanes = fiber | context.baseLanes;\n}\nfunction reuseHiddenContextOnStack() {\n push(prevEntangledRenderLanesCursor, entangledRenderLanes);\n push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);\n}\nfunction popHiddenContext() {\n entangledRenderLanes = prevEntangledRenderLanesCursor.current;\n pop(currentTreeHiddenStackCursor);\n pop(prevEntangledRenderLanesCursor);\n}\nvar suspenseHandlerStackCursor = createCursor(null),\n shellBoundary = null;\nfunction pushPrimaryTreeSuspenseHandler(handler) {\n var current = handler.alternate;\n push(suspenseStackCursor, suspenseStackCursor.current & 1);\n push(suspenseHandlerStackCursor, handler);\n null === shellBoundary &&\n (null === current || null !== currentTreeHiddenStackCursor.current\n ? (shellBoundary = handler)\n : null !== current.memoizedState && (shellBoundary = handler));\n}\nfunction pushDehydratedActivitySuspenseHandler(fiber) {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, fiber);\n null === shellBoundary && (shellBoundary = fiber);\n}\nfunction pushOffscreenSuspenseHandler(fiber) {\n 22 === fiber.tag\n ? (push(suspenseStackCursor, suspenseStackCursor.current),\n push(suspenseHandlerStackCursor, fiber),\n null === shellBoundary && (shellBoundary = fiber))\n : reuseSuspenseHandlerOnStack(fiber);\n}\nfunction reuseSuspenseHandlerOnStack() {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n}\nfunction popSuspenseHandler(fiber) {\n pop(suspenseHandlerStackCursor);\n shellBoundary === fiber && (shellBoundary = null);\n pop(suspenseStackCursor);\n}\nvar suspenseStackCursor = createCursor(0);\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state ||\n isSuspenseInstancePending(state) ||\n isSuspenseInstanceFallback(state))\n )\n return node;\n } else if (\n 19 === node.tag &&\n (\"forwards\" === node.memoizedProps.revealOrder ||\n \"backwards\" === node.memoizedProps.revealOrder ||\n \"unstable_legacy-backwards\" === node.memoizedProps.revealOrder ||\n \"together\" === node.memoizedProps.revealOrder)\n ) {\n if (0 !== (node.flags & 128)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nvar renderLanes = 0,\n currentlyRenderingFiber = null,\n currentHook = null,\n workInProgressHook = null,\n didScheduleRenderPhaseUpdate = !1,\n didScheduleRenderPhaseUpdateDuringThisPass = !1,\n shouldDoubleInvokeUserFnsInHooksDEV = !1,\n localIdCounter = 0,\n thenableIndexCounter = 0,\n thenableState = null,\n globalClientIdCounter = 0;\nfunction throwInvalidHookError() {\n throw Error(formatProdErrorMessage(321));\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!objectIs(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n secondArg,\n nextRenderLanes\n) {\n renderLanes = nextRenderLanes;\n currentlyRenderingFiber = workInProgress;\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.lanes = 0;\n ReactSharedInternals.H =\n null === current || null === current.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate;\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n nextRenderLanes = Component(props, secondArg);\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n didScheduleRenderPhaseUpdateDuringThisPass &&\n (nextRenderLanes = renderWithHooksAgain(\n workInProgress,\n Component,\n props,\n secondArg\n ));\n finishRenderingHooks(current);\n return nextRenderLanes;\n}\nfunction finishRenderingHooks(current) {\n ReactSharedInternals.H = ContextOnlyDispatcher;\n var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdate = !1;\n thenableIndexCounter = 0;\n thenableState = null;\n if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));\n null === current ||\n didReceiveUpdate ||\n ((current = current.dependencies),\n null !== current &&\n checkIfContextChanged(current) &&\n (didReceiveUpdate = !0));\n}\nfunction renderWithHooksAgain(workInProgress, Component, props, secondArg) {\n currentlyRenderingFiber = workInProgress;\n var numberOfReRenders = 0;\n do {\n didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);\n thenableIndexCounter = 0;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));\n numberOfReRenders += 1;\n workInProgressHook = currentHook = null;\n if (null != workInProgress.updateQueue) {\n var children = workInProgress.updateQueue;\n children.lastEffect = null;\n children.events = null;\n children.stores = null;\n null != children.memoCache && (children.memoCache.index = 0);\n }\n ReactSharedInternals.H = HooksDispatcherOnRerender;\n children = Component(props, secondArg);\n } while (didScheduleRenderPhaseUpdateDuringThisPass);\n return children;\n}\nfunction TransitionAwareHostComponent() {\n var dispatcher = ReactSharedInternals.H,\n maybeThenable = dispatcher.useState()[0];\n maybeThenable =\n \"function\" === typeof maybeThenable.then\n ? useThenable(maybeThenable)\n : maybeThenable;\n dispatcher = dispatcher.useState()[0];\n (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher &&\n (currentlyRenderingFiber.flags |= 1024);\n return maybeThenable;\n}\nfunction checkDidRenderIdHook() {\n var didRenderIdHook = 0 !== localIdCounter;\n localIdCounter = 0;\n return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.flags &= -2053;\n current.lanes &= ~lanes;\n}\nfunction resetHooksOnUnwind(workInProgress) {\n if (didScheduleRenderPhaseUpdate) {\n for (\n workInProgress = workInProgress.memoizedState;\n null !== workInProgress;\n\n ) {\n var queue = workInProgress.queue;\n null !== queue && (queue.pending = null);\n workInProgress = workInProgress.next;\n }\n didScheduleRenderPhaseUpdate = !1;\n }\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber = null;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n thenableIndexCounter = localIdCounter = 0;\n thenableState = null;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null === currentHook) {\n var nextCurrentHook = currentlyRenderingFiber.alternate;\n nextCurrentHook =\n null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;\n } else nextCurrentHook = currentHook.next;\n var nextWorkInProgressHook =\n null === workInProgressHook\n ? currentlyRenderingFiber.memoizedState\n : workInProgressHook.next;\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (currentHook = nextCurrentHook);\n else {\n if (null === nextCurrentHook) {\n if (null === currentlyRenderingFiber.alternate)\n throw Error(formatProdErrorMessage(467));\n throw Error(formatProdErrorMessage(310));\n }\n currentHook = nextCurrentHook;\n nextCurrentHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n baseQueue: currentHook.baseQueue,\n queue: currentHook.queue,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber.memoizedState = workInProgressHook =\n nextCurrentHook)\n : (workInProgressHook = workInProgressHook.next = nextCurrentHook);\n }\n return workInProgressHook;\n}\nfunction createFunctionComponentUpdateQueue() {\n return { lastEffect: null, events: null, stores: null, memoCache: null };\n}\nfunction useThenable(thenable) {\n var index = thenableIndexCounter;\n thenableIndexCounter += 1;\n null === thenableState && (thenableState = []);\n thenable = trackUsedThenable(thenableState, thenable, index);\n index = currentlyRenderingFiber;\n null ===\n (null === workInProgressHook\n ? index.memoizedState\n : workInProgressHook.next) &&\n ((index = index.alternate),\n (ReactSharedInternals.H =\n null === index || null === index.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate));\n return thenable;\n}\nfunction use(usable) {\n if (null !== usable && \"object\" === typeof usable) {\n if (\"function\" === typeof usable.then) return useThenable(usable);\n if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);\n }\n throw Error(formatProdErrorMessage(438, String(usable)));\n}\nfunction useMemoCache(size) {\n var memoCache = null,\n updateQueue = currentlyRenderingFiber.updateQueue;\n null !== updateQueue && (memoCache = updateQueue.memoCache);\n if (null == memoCache) {\n var current = currentlyRenderingFiber.alternate;\n null !== current &&\n ((current = current.updateQueue),\n null !== current &&\n ((current = current.memoCache),\n null != current &&\n (memoCache = {\n data: current.data.map(function (array) {\n return array.slice();\n }),\n index: 0\n })));\n }\n null == memoCache && (memoCache = { data: [], index: 0 });\n null === updateQueue &&\n ((updateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = updateQueue));\n updateQueue.memoCache = memoCache;\n updateQueue = memoCache.data[memoCache.index];\n if (void 0 === updateQueue)\n for (\n updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0;\n current < size;\n current++\n )\n updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;\n memoCache.index++;\n return updateQueue;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook();\n return updateReducerImpl(hook, currentHook, reducer);\n}\nfunction updateReducerImpl(hook, current, reducer) {\n var queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var baseQueue = hook.baseQueue,\n pendingQueue = queue.pending;\n if (null !== pendingQueue) {\n if (null !== baseQueue) {\n var baseFirst = baseQueue.next;\n baseQueue.next = pendingQueue.next;\n pendingQueue.next = baseFirst;\n }\n current.baseQueue = baseQueue = pendingQueue;\n queue.pending = null;\n }\n pendingQueue = hook.baseState;\n if (null === baseQueue) hook.memoizedState = pendingQueue;\n else {\n current = baseQueue.next;\n var newBaseQueueFirst = (baseFirst = null),\n newBaseQueueLast = null,\n update = current,\n didReadFromEntangledAsyncAction$60 = !1;\n do {\n var updateLane = update.lane & -536870913;\n if (\n updateLane !== update.lane\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n var revertLane = update.revertLane;\n if (0 === revertLane)\n null !== newBaseQueueLast &&\n (newBaseQueueLast = newBaseQueueLast.next =\n {\n lane: 0,\n revertLane: 0,\n gesture: null,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$60 = !0);\n else if ((renderLanes & revertLane) === revertLane) {\n update = update.next;\n revertLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$60 = !0);\n continue;\n } else\n (updateLane = {\n lane: 0,\n revertLane: update.revertLane,\n gesture: null,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = updateLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = updateLane),\n (currentlyRenderingFiber.lanes |= revertLane),\n (workInProgressRootSkippedLanes |= revertLane);\n updateLane = update.action;\n shouldDoubleInvokeUserFnsInHooksDEV &&\n reducer(pendingQueue, updateLane);\n pendingQueue = update.hasEagerState\n ? update.eagerState\n : reducer(pendingQueue, updateLane);\n } else\n (revertLane = {\n lane: updateLane,\n revertLane: update.revertLane,\n gesture: update.gesture,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = revertLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = revertLane),\n (currentlyRenderingFiber.lanes |= updateLane),\n (workInProgressRootSkippedLanes |= updateLane);\n update = update.next;\n } while (null !== update && update !== current);\n null === newBaseQueueLast\n ? (baseFirst = pendingQueue)\n : (newBaseQueueLast.next = newBaseQueueFirst);\n if (\n !objectIs(pendingQueue, hook.memoizedState) &&\n ((didReceiveUpdate = !0),\n didReadFromEntangledAsyncAction$60 &&\n ((reducer = currentEntangledActionThenable), null !== reducer))\n )\n throw reducer;\n hook.memoizedState = pendingQueue;\n hook.baseState = baseFirst;\n hook.baseQueue = newBaseQueueLast;\n queue.lastRenderedState = pendingQueue;\n }\n null === baseQueue && (queue.lanes = 0);\n return [hook.memoizedState, queue.dispatch];\n}\nfunction rerenderReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var dispatch = queue.dispatch,\n lastRenderPhaseUpdate = queue.pending,\n newState = hook.memoizedState;\n if (null !== lastRenderPhaseUpdate) {\n queue.pending = null;\n var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);\n do (newState = reducer(newState, update.action)), (update = update.next);\n while (update !== lastRenderPhaseUpdate);\n objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n null === hook.baseQueue && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n }\n return [newState, dispatch];\n}\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = updateWorkInProgressHook(),\n isHydrating$jscomp$0 = isHydrating;\n if (isHydrating$jscomp$0) {\n if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else getServerSnapshot = getSnapshot();\n var snapshotChanged = !objectIs(\n (currentHook || hook).memoizedState,\n getServerSnapshot\n );\n snapshotChanged &&\n ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));\n hook = hook.queue;\n updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [\n subscribe\n ]);\n if (\n hook.getSnapshot !== getSnapshot ||\n snapshotChanged ||\n (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)\n ) {\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n updateStoreInstance.bind(\n null,\n fiber,\n hook,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n isHydrating$jscomp$0 ||\n 0 !== (renderLanes & 127) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n return getServerSnapshot;\n}\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n fiber.flags |= 16384;\n fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };\n getSnapshot = currentlyRenderingFiber.updateQueue;\n null === getSnapshot\n ? ((getSnapshot = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = getSnapshot),\n (getSnapshot.stores = [fiber]))\n : ((renderedSnapshot = getSnapshot.stores),\n null === renderedSnapshot\n ? (getSnapshot.stores = [fiber])\n : renderedSnapshot.push(fiber));\n}\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n inst.value = nextSnapshot;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n}\nfunction subscribeToStore(fiber, inst, subscribe) {\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n });\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction forceStoreRerender(fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root && scheduleUpdateOnFiber(root, fiber, 2);\n}\nfunction mountStateImpl(initialState) {\n var hook = mountWorkInProgressHook();\n if (\"function\" === typeof initialState) {\n var initialStateInitializer = initialState;\n initialState = initialStateInitializer();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n initialStateInitializer();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n }\n hook.memoizedState = hook.baseState = initialState;\n hook.queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n return hook;\n}\nfunction updateOptimisticImpl(hook, current, passthrough, reducer) {\n hook.baseState = passthrough;\n return updateReducerImpl(\n hook,\n currentHook,\n \"function\" === typeof reducer ? reducer : basicStateReducer\n );\n}\nfunction dispatchActionState(\n fiber,\n actionQueue,\n setPendingState,\n setState,\n payload\n) {\n if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));\n fiber = actionQueue.action;\n if (null !== fiber) {\n var actionNode = {\n payload: payload,\n action: fiber,\n next: null,\n isTransition: !0,\n status: \"pending\",\n value: null,\n reason: null,\n listeners: [],\n then: function (listener) {\n actionNode.listeners.push(listener);\n }\n };\n null !== ReactSharedInternals.T\n ? setPendingState(!0)\n : (actionNode.isTransition = !1);\n setState(actionNode);\n setPendingState = actionQueue.pending;\n null === setPendingState\n ? ((actionNode.next = actionQueue.pending = actionNode),\n runActionStateAction(actionQueue, actionNode))\n : ((actionNode.next = setPendingState.next),\n (actionQueue.pending = setPendingState.next = actionNode));\n }\n}\nfunction runActionStateAction(actionQueue, node) {\n var action = node.action,\n payload = node.payload,\n prevState = actionQueue.state;\n if (node.isTransition) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = action(prevState, payload),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n handleActionReturnValue(actionQueue, node, returnValue);\n } catch (error) {\n onActionError(actionQueue, node, error);\n } finally {\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n } else\n try {\n (prevTransition = action(prevState, payload)),\n handleActionReturnValue(actionQueue, node, prevTransition);\n } catch (error$66) {\n onActionError(actionQueue, node, error$66);\n }\n}\nfunction handleActionReturnValue(actionQueue, node, returnValue) {\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ? returnValue.then(\n function (nextState) {\n onActionSuccess(actionQueue, node, nextState);\n },\n function (error) {\n return onActionError(actionQueue, node, error);\n }\n )\n : onActionSuccess(actionQueue, node, returnValue);\n}\nfunction onActionSuccess(actionQueue, actionNode, nextState) {\n actionNode.status = \"fulfilled\";\n actionNode.value = nextState;\n notifyActionListeners(actionNode);\n actionQueue.state = nextState;\n actionNode = actionQueue.pending;\n null !== actionNode &&\n ((nextState = actionNode.next),\n nextState === actionNode\n ? (actionQueue.pending = null)\n : ((nextState = nextState.next),\n (actionNode.next = nextState),\n runActionStateAction(actionQueue, nextState)));\n}\nfunction onActionError(actionQueue, actionNode, error) {\n var last = actionQueue.pending;\n actionQueue.pending = null;\n if (null !== last) {\n last = last.next;\n do\n (actionNode.status = \"rejected\"),\n (actionNode.reason = error),\n notifyActionListeners(actionNode),\n (actionNode = actionNode.next);\n while (actionNode !== last);\n }\n actionQueue.action = null;\n}\nfunction notifyActionListeners(actionNode) {\n actionNode = actionNode.listeners;\n for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();\n}\nfunction actionStateReducer(oldState, newState) {\n return newState;\n}\nfunction mountActionState(action, initialStateProp) {\n if (isHydrating) {\n var ssrFormState = workInProgressRoot.formState;\n if (null !== ssrFormState) {\n a: {\n var JSCompiler_inline_result = currentlyRenderingFiber;\n if (isHydrating) {\n if (nextHydratableInstance) {\n b: {\n var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;\n for (\n var inRootOrSingleton = rootOrSingletonContext;\n 8 !== JSCompiler_inline_result$jscomp$0.nodeType;\n\n ) {\n if (!inRootOrSingleton) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n JSCompiler_inline_result$jscomp$0 = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n if (null === JSCompiler_inline_result$jscomp$0) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n }\n inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;\n JSCompiler_inline_result$jscomp$0 =\n \"F!\" === inRootOrSingleton || \"F\" === inRootOrSingleton\n ? JSCompiler_inline_result$jscomp$0\n : null;\n }\n if (JSCompiler_inline_result$jscomp$0) {\n nextHydratableInstance = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n JSCompiler_inline_result =\n \"F!\" === JSCompiler_inline_result$jscomp$0.data;\n break a;\n }\n }\n throwOnHydrationMismatch(JSCompiler_inline_result);\n }\n JSCompiler_inline_result = !1;\n }\n JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);\n }\n }\n ssrFormState = mountWorkInProgressHook();\n ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;\n JSCompiler_inline_result = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: actionStateReducer,\n lastRenderedState: initialStateProp\n };\n ssrFormState.queue = JSCompiler_inline_result;\n ssrFormState = dispatchSetState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result\n );\n JSCompiler_inline_result.dispatch = ssrFormState;\n JSCompiler_inline_result = mountStateImpl(!1);\n inRootOrSingleton = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !1,\n JSCompiler_inline_result.queue\n );\n JSCompiler_inline_result = mountWorkInProgressHook();\n JSCompiler_inline_result$jscomp$0 = {\n state: initialStateProp,\n dispatch: null,\n action: action,\n pending: null\n };\n JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;\n ssrFormState = dispatchActionState.bind(\n null,\n currentlyRenderingFiber,\n JSCompiler_inline_result$jscomp$0,\n inRootOrSingleton,\n ssrFormState\n );\n JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;\n JSCompiler_inline_result.memoizedState = action;\n return [initialStateProp, ssrFormState, !1];\n}\nfunction updateActionState(action) {\n var stateHook = updateWorkInProgressHook();\n return updateActionStateImpl(stateHook, currentHook, action);\n}\nfunction updateActionStateImpl(stateHook, currentStateHook, action) {\n currentStateHook = updateReducerImpl(\n stateHook,\n currentStateHook,\n actionStateReducer\n )[0];\n stateHook = updateReducer(basicStateReducer)[0];\n if (\n \"object\" === typeof currentStateHook &&\n null !== currentStateHook &&\n \"function\" === typeof currentStateHook.then\n )\n try {\n var state = useThenable(currentStateHook);\n } catch (x) {\n if (x === SuspenseException) throw SuspenseActionException;\n throw x;\n }\n else state = currentStateHook;\n currentStateHook = updateWorkInProgressHook();\n var actionQueue = currentStateHook.queue,\n dispatch = actionQueue.dispatch;\n action !== currentStateHook.memoizedState &&\n ((currentlyRenderingFiber.flags |= 2048),\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n actionStateActionEffect.bind(null, actionQueue, action),\n null\n ));\n return [state, dispatch, stateHook];\n}\nfunction actionStateActionEffect(actionQueue, action) {\n actionQueue.action = action;\n}\nfunction rerenderActionState(action) {\n var stateHook = updateWorkInProgressHook(),\n currentStateHook = currentHook;\n if (null !== currentStateHook)\n return updateActionStateImpl(stateHook, currentStateHook, action);\n updateWorkInProgressHook();\n stateHook = stateHook.memoizedState;\n currentStateHook = updateWorkInProgressHook();\n var dispatch = currentStateHook.queue.dispatch;\n currentStateHook.memoizedState = action;\n return [stateHook, dispatch, !1];\n}\nfunction pushSimpleEffect(tag, inst, create, deps) {\n tag = { tag: tag, create: create, deps: deps, inst: inst, next: null };\n inst = currentlyRenderingFiber.updateQueue;\n null === inst &&\n ((inst = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = inst));\n create = inst.lastEffect;\n null === create\n ? (inst.lastEffect = tag.next = tag)\n : ((deps = create.next),\n (create.next = tag),\n (tag.next = deps),\n (inst.lastEffect = tag));\n return tag;\n}\nfunction updateRef() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = mountWorkInProgressHook();\n currentlyRenderingFiber.flags |= fiberFlags;\n hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n { destroy: void 0 },\n create,\n void 0 === deps ? null : deps\n );\n}\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var inst = hook.memoizedState.inst;\n null !== currentHook &&\n null !== deps &&\n areHookInputsEqual(deps, currentHook.memoizedState.deps)\n ? (hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps))\n : ((currentlyRenderingFiber.flags |= fiberFlags),\n (hook.memoizedState = pushSimpleEffect(\n 1 | hookFlags,\n inst,\n create,\n deps\n )));\n}\nfunction mountEffect(create, deps) {\n mountEffectImpl(8390656, 8, create, deps);\n}\nfunction updateEffect(create, deps) {\n updateEffectImpl(2048, 8, create, deps);\n}\nfunction useEffectEventImpl(payload) {\n currentlyRenderingFiber.flags |= 4;\n var componentUpdateQueue = currentlyRenderingFiber.updateQueue;\n if (null === componentUpdateQueue)\n (componentUpdateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber.updateQueue = componentUpdateQueue),\n (componentUpdateQueue.events = [payload]);\n else {\n var events = componentUpdateQueue.events;\n null === events\n ? (componentUpdateQueue.events = [payload])\n : events.push(payload);\n }\n}\nfunction updateEvent(callback) {\n var ref = updateWorkInProgressHook().memoizedState;\n useEffectEventImpl({ ref: ref, nextImpl: callback });\n return function () {\n if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440));\n return ref.impl.apply(void 0, arguments);\n };\n}\nfunction updateInsertionEffect(create, deps) {\n return updateEffectImpl(4, 2, create, deps);\n}\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(4, 4, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref) {\n create = create();\n var refCleanup = ref(create);\n return function () {\n \"function\" === typeof refCleanup ? refCleanup() : ref(null);\n };\n }\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function () {\n ref.current = null;\n }\n );\n}\nfunction updateImperativeHandle(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);\n}\nfunction mountDebugValue() {}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n prevState = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [prevState, deps];\n return prevState;\n}\nfunction mountDeferredValueImpl(hook, value, initialValue) {\n if (\n void 0 === initialValue ||\n (0 !== (renderLanes & 1073741824) &&\n 0 === (workInProgressRootRenderLanes & 261930))\n )\n return (hook.memoizedState = value);\n hook.memoizedState = initialValue;\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return initialValue;\n}\nfunction updateDeferredValueImpl(hook, prevValue, value, initialValue) {\n if (objectIs(value, prevValue)) return value;\n if (null !== currentTreeHiddenStackCursor.current)\n return (\n (hook = mountDeferredValueImpl(hook, value, initialValue)),\n objectIs(hook, prevValue) || (didReceiveUpdate = !0),\n hook\n );\n if (\n 0 === (renderLanes & 42) ||\n (0 !== (renderLanes & 1073741824) &&\n 0 === (workInProgressRootRenderLanes & 261930))\n )\n return (didReceiveUpdate = !0), (hook.memoizedState = value);\n hook = requestDeferredLane();\n currentlyRenderingFiber.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return prevValue;\n}\nfunction startTransition(fiber, queue, pendingState, finishedState, callback) {\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p =\n 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n dispatchOptimisticSetState(fiber, !1, queue, pendingState);\n try {\n var returnValue = callback(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n if (\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ) {\n var thenableForFinishedState = chainThenableValue(\n returnValue,\n finishedState\n );\n dispatchSetStateInternal(\n fiber,\n queue,\n thenableForFinishedState,\n requestUpdateLane(fiber)\n );\n } else\n dispatchSetStateInternal(\n fiber,\n queue,\n finishedState,\n requestUpdateLane(fiber)\n );\n } catch (error) {\n dispatchSetStateInternal(\n fiber,\n queue,\n { then: function () {}, status: \"rejected\", reason: error },\n requestUpdateLane()\n );\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction noop() {}\nfunction startHostTransition(formFiber, pendingState, action, formData) {\n if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));\n var queue = ensureFormComponentIsStateful(formFiber).queue;\n startTransition(\n formFiber,\n queue,\n pendingState,\n sharedNotPendingObject,\n null === action\n ? noop\n : function () {\n requestFormReset$1(formFiber);\n return action(formData);\n }\n );\n}\nfunction ensureFormComponentIsStateful(formFiber) {\n var existingStateHook = formFiber.memoizedState;\n if (null !== existingStateHook) return existingStateHook;\n existingStateHook = {\n memoizedState: sharedNotPendingObject,\n baseState: sharedNotPendingObject,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: sharedNotPendingObject\n },\n next: null\n };\n var initialResetState = {};\n existingStateHook.next = {\n memoizedState: initialResetState,\n baseState: initialResetState,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialResetState\n },\n next: null\n };\n formFiber.memoizedState = existingStateHook;\n formFiber = formFiber.alternate;\n null !== formFiber && (formFiber.memoizedState = existingStateHook);\n return existingStateHook;\n}\nfunction requestFormReset$1(formFiber) {\n var stateHook = ensureFormComponentIsStateful(formFiber);\n null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);\n dispatchSetStateInternal(\n formFiber,\n stateHook.next.queue,\n {},\n requestUpdateLane()\n );\n}\nfunction useHostTransitionStatus() {\n return readContext(HostTransitionContext);\n}\nfunction updateId() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction updateRefresh() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction refreshCache(fiber) {\n for (var provider = fiber.return; null !== provider; ) {\n switch (provider.tag) {\n case 24:\n case 3:\n var lane = requestUpdateLane();\n fiber = createUpdate(lane);\n var root$69 = enqueueUpdate(provider, fiber, lane);\n null !== root$69 &&\n (scheduleUpdateOnFiber(root$69, provider, lane),\n entangleTransitions(root$69, provider, lane));\n provider = { cache: createCache() };\n fiber.payload = provider;\n return;\n }\n provider = provider.return;\n }\n}\nfunction dispatchReducerAction(fiber, queue, action) {\n var lane = requestUpdateLane();\n action = {\n lane: lane,\n revertLane: 0,\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n isRenderPhaseUpdate(fiber)\n ? enqueueRenderPhaseUpdate(queue, action)\n : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),\n null !== action &&\n (scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane)));\n}\nfunction dispatchSetState(fiber, queue, action) {\n var lane = requestUpdateLane();\n dispatchSetStateInternal(fiber, queue, action, lane);\n}\nfunction dispatchSetStateInternal(fiber, queue, action, lane) {\n var update = {\n lane: lane,\n revertLane: 0,\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);\n else {\n var alternate = fiber.alternate;\n if (\n 0 === fiber.lanes &&\n (null === alternate || 0 === alternate.lanes) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n update.hasEagerState = !0;\n update.eagerState = eagerState;\n if (objectIs(eagerState, currentState))\n return (\n enqueueUpdate$1(fiber, queue, update, 0),\n null === workInProgressRoot && finishQueueingConcurrentUpdates(),\n !1\n );\n } catch (error) {\n } finally {\n }\n action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n if (null !== action)\n return (\n scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane),\n !0\n );\n }\n return !1;\n}\nfunction dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {\n action = {\n lane: 2,\n revertLane: requestTransitionLane(),\n gesture: null,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) {\n if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));\n } else\n (throwIfDuringRender = enqueueConcurrentHookUpdate(\n fiber,\n queue,\n action,\n 2\n )),\n null !== throwIfDuringRender &&\n scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);\n}\nfunction isRenderPhaseUpdate(fiber) {\n var alternate = fiber.alternate;\n return (\n fiber === currentlyRenderingFiber ||\n (null !== alternate && alternate === currentlyRenderingFiber)\n );\n}\nfunction enqueueRenderPhaseUpdate(queue, update) {\n didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =\n !0;\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n}\nfunction entangleTransitionUpdate(root, queue, lane) {\n if (0 !== (lane & 4194048)) {\n var queueLanes = queue.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n queue.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n use: use,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useInsertionEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError,\n useSyncExternalStore: throwInvalidHookError,\n useId: throwInvalidHookError,\n useHostTransitionStatus: throwInvalidHookError,\n useFormState: throwInvalidHookError,\n useActionState: throwInvalidHookError,\n useOptimistic: throwInvalidHookError,\n useMemoCache: throwInvalidHookError,\n useCacheRefresh: throwInvalidHookError\n};\nContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;\nvar HooksDispatcherOnMount = {\n readContext: readContext,\n use: use,\n useCallback: function (callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n },\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function (ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n mountEffectImpl(\n 4194308,\n 4,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function (create, deps) {\n return mountEffectImpl(4194308, 4, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n mountEffectImpl(4, 2, create, deps);\n },\n useMemo: function (nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var nextValue = nextCreate();\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n nextCreate();\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n hook.memoizedState = [nextValue, deps];\n return nextValue;\n },\n useReducer: function (reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n if (void 0 !== init) {\n var initialState = init(initialArg);\n if (shouldDoubleInvokeUserFnsInHooksDEV) {\n setIsStrictModeForDevtools(!0);\n try {\n init(initialArg);\n } finally {\n setIsStrictModeForDevtools(!1);\n }\n }\n } else initialState = initialArg;\n hook.memoizedState = hook.baseState = initialState;\n reducer = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialState\n };\n hook.queue = reducer;\n reducer = reducer.dispatch = dispatchReducerAction.bind(\n null,\n currentlyRenderingFiber,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function (initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: function (initialState) {\n initialState = mountStateImpl(initialState);\n var queue = initialState.queue,\n dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);\n queue.dispatch = dispatch;\n return [initialState.memoizedState, dispatch];\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = mountWorkInProgressHook();\n return mountDeferredValueImpl(hook, value, initialValue);\n },\n useTransition: function () {\n var stateHook = mountStateImpl(!1);\n stateHook = startTransition.bind(\n null,\n currentlyRenderingFiber,\n stateHook.queue,\n !0,\n !1\n );\n mountWorkInProgressHook().memoizedState = stateHook;\n return [!1, stateHook];\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber,\n hook = mountWorkInProgressHook();\n if (isHydrating) {\n if (void 0 === getServerSnapshot)\n throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else {\n getServerSnapshot = getSnapshot();\n if (null === workInProgressRoot)\n throw Error(formatProdErrorMessage(349));\n 0 !== (workInProgressRootRenderLanes & 127) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n hook.memoizedState = getServerSnapshot;\n var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };\n hook.queue = inst;\n mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [\n subscribe\n ]);\n fiber.flags |= 2048;\n pushSimpleEffect(\n 9,\n { destroy: void 0 },\n updateStoreInstance.bind(\n null,\n fiber,\n inst,\n getServerSnapshot,\n getSnapshot\n ),\n null\n );\n return getServerSnapshot;\n },\n useId: function () {\n var hook = mountWorkInProgressHook(),\n identifierPrefix = workInProgressRoot.identifierPrefix;\n if (isHydrating) {\n var JSCompiler_inline_result = treeContextOverflow;\n var idWithLeadingBit = treeContextId;\n JSCompiler_inline_result =\n (\n idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))\n ).toString(32) + JSCompiler_inline_result;\n identifierPrefix =\n \"_\" + identifierPrefix + \"R_\" + JSCompiler_inline_result;\n JSCompiler_inline_result = localIdCounter++;\n 0 < JSCompiler_inline_result &&\n (identifierPrefix += \"H\" + JSCompiler_inline_result.toString(32));\n identifierPrefix += \"_\";\n } else\n (JSCompiler_inline_result = globalClientIdCounter++),\n (identifierPrefix =\n \"_\" +\n identifierPrefix +\n \"r_\" +\n JSCompiler_inline_result.toString(32) +\n \"_\");\n return (hook.memoizedState = identifierPrefix);\n },\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: mountActionState,\n useActionState: mountActionState,\n useOptimistic: function (passthrough) {\n var hook = mountWorkInProgressHook();\n hook.memoizedState = hook.baseState = passthrough;\n var queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: null,\n lastRenderedState: null\n };\n hook.queue = queue;\n hook = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber,\n !0,\n queue\n );\n queue.dispatch = hook;\n return [passthrough, hook];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: function () {\n return (mountWorkInProgressHook().memoizedState = refreshCache.bind(\n null,\n currentlyRenderingFiber\n ));\n },\n useEffectEvent: function (callback) {\n var hook = mountWorkInProgressHook(),\n ref = { impl: callback };\n hook.memoizedState = ref;\n return function () {\n if (0 !== (executionContext & 2))\n throw Error(formatProdErrorMessage(440));\n return ref.impl.apply(void 0, arguments);\n };\n }\n },\n HooksDispatcherOnUpdate = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: updateReducer,\n useRef: updateRef,\n useState: function () {\n return updateReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = updateReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: updateActionState,\n useActionState: updateActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n };\nHooksDispatcherOnUpdate.useEffectEvent = updateEvent;\nvar HooksDispatcherOnRerender = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: rerenderReducer,\n useRef: updateRef,\n useState: function () {\n return rerenderReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return null === currentHook\n ? mountDeferredValueImpl(hook, value, initialValue)\n : updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = rerenderReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId,\n useHostTransitionStatus: useHostTransitionStatus,\n useFormState: rerenderActionState,\n useActionState: rerenderActionState,\n useOptimistic: function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n if (null !== currentHook)\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n hook.baseState = passthrough;\n return [passthrough, hook.queue.dispatch];\n },\n useMemoCache: useMemoCache,\n useCacheRefresh: updateRefresh\n};\nHooksDispatcherOnRerender.useEffectEvent = updateEvent;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n 0 === workInProgress.lanes &&\n (workInProgress.updateQueue.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n enqueueSetState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueReplaceState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueForceUpdate: function (inst, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n callback = enqueueUpdate(inst, update, lane);\n null !== callback &&\n (scheduleUpdateOnFiber(callback, inst, lane),\n entangleTransitions(callback, inst, lane));\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction resolveClassComponentProps(Component, baseProps) {\n var newProps = baseProps;\n if (\"ref\" in baseProps) {\n newProps = {};\n for (var propName in baseProps)\n \"ref\" !== propName && (newProps[propName] = baseProps[propName]);\n }\n if ((Component = Component.defaultProps)) {\n newProps === baseProps && (newProps = assign({}, newProps));\n for (var propName$73 in Component)\n void 0 === newProps[propName$73] &&\n (newProps[propName$73] = Component[propName$73]);\n }\n return newProps;\n}\nfunction defaultOnUncaughtError(error) {\n reportGlobalError(error);\n}\nfunction defaultOnCaughtError(error) {\n console.error(error);\n}\nfunction defaultOnRecoverableError(error) {\n reportGlobalError(error);\n}\nfunction logUncaughtError(root, errorInfo) {\n try {\n var onUncaughtError = root.onUncaughtError;\n onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });\n } catch (e$74) {\n setTimeout(function () {\n throw e$74;\n });\n }\n}\nfunction logCaughtError(root, boundary, errorInfo) {\n try {\n var onCaughtError = root.onCaughtError;\n onCaughtError(errorInfo.value, {\n componentStack: errorInfo.stack,\n errorBoundary: 1 === boundary.tag ? boundary.stateNode : null\n });\n } catch (e$75) {\n setTimeout(function () {\n throw e$75;\n });\n }\n}\nfunction createRootErrorUpdate(root, errorInfo, lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n lane.payload = { element: null };\n lane.callback = function () {\n logUncaughtError(root, errorInfo);\n };\n return lane;\n}\nfunction createClassErrorUpdate(lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n return lane;\n}\nfunction initializeClassErrorUpdate(update, root, fiber, errorInfo) {\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n update.payload = function () {\n return getDerivedStateFromError(error);\n };\n update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n}\nfunction throwException(\n root,\n returnFiber,\n sourceFiber,\n value,\n rootRenderLanes\n) {\n sourceFiber.flags |= 32768;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n returnFiber = sourceFiber.alternate;\n null !== returnFiber &&\n propagateParentContextChanges(\n returnFiber,\n sourceFiber,\n rootRenderLanes,\n !0\n );\n sourceFiber = suspenseHandlerStackCursor.current;\n if (null !== sourceFiber) {\n switch (sourceFiber.tag) {\n case 31:\n case 13:\n return (\n null === shellBoundary\n ? renderDidSuspendDelayIfPossible()\n : null === sourceFiber.alternate &&\n 0 === workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 3),\n (sourceFiber.flags &= -257),\n (sourceFiber.flags |= 65536),\n (sourceFiber.lanes = rootRenderLanes),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? (sourceFiber.updateQueue = new Set([value]))\n : returnFiber.add(value),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n case 22:\n return (\n (sourceFiber.flags |= 65536),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? ((returnFiber = {\n transitions: null,\n markerInstances: null,\n retryQueue: new Set([value])\n }),\n (sourceFiber.updateQueue = returnFiber))\n : ((sourceFiber = returnFiber.retryQueue),\n null === sourceFiber\n ? (returnFiber.retryQueue = new Set([value]))\n : sourceFiber.add(value)),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n }\n throw Error(formatProdErrorMessage(435, sourceFiber.tag));\n }\n attachPingListener(root, value, rootRenderLanes);\n renderDidSuspendDelayIfPossible();\n return !1;\n }\n if (isHydrating)\n return (\n (returnFiber = suspenseHandlerStackCursor.current),\n null !== returnFiber\n ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256),\n (returnFiber.flags |= 65536),\n (returnFiber.lanes = rootRenderLanes),\n value !== HydrationMismatchException &&\n ((root = Error(formatProdErrorMessage(422), { cause: value })),\n queueHydrationError(createCapturedValueAtFiber(root, sourceFiber))))\n : (value !== HydrationMismatchException &&\n ((returnFiber = Error(formatProdErrorMessage(423), {\n cause: value\n })),\n queueHydrationError(\n createCapturedValueAtFiber(returnFiber, sourceFiber)\n )),\n (root = root.current.alternate),\n (root.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (root.lanes |= rootRenderLanes),\n (value = createCapturedValueAtFiber(value, sourceFiber)),\n (rootRenderLanes = createRootErrorUpdate(\n root.stateNode,\n value,\n rootRenderLanes\n )),\n enqueueCapturedUpdate(root, rootRenderLanes),\n 4 !== workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 2)),\n !1\n );\n var wrapperError = Error(formatProdErrorMessage(520), { cause: value });\n wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);\n null === workInProgressRootConcurrentErrors\n ? (workInProgressRootConcurrentErrors = [wrapperError])\n : workInProgressRootConcurrentErrors.push(wrapperError);\n 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);\n if (null === returnFiber) return !0;\n value = createCapturedValueAtFiber(value, sourceFiber);\n sourceFiber = returnFiber;\n do {\n switch (sourceFiber.tag) {\n case 3:\n return (\n (sourceFiber.flags |= 65536),\n (root = rootRenderLanes & -rootRenderLanes),\n (sourceFiber.lanes |= root),\n (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),\n enqueueCapturedUpdate(sourceFiber, root),\n !1\n );\n case 1:\n if (\n ((returnFiber = sourceFiber.type),\n (wrapperError = sourceFiber.stateNode),\n 0 === (sourceFiber.flags & 128) &&\n (\"function\" === typeof returnFiber.getDerivedStateFromError ||\n (null !== wrapperError &&\n \"function\" === typeof wrapperError.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError)))))\n )\n return (\n (sourceFiber.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (sourceFiber.lanes |= rootRenderLanes),\n (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)),\n initializeClassErrorUpdate(\n rootRenderLanes,\n root,\n sourceFiber,\n value\n ),\n enqueueCapturedUpdate(sourceFiber, rootRenderLanes),\n !1\n );\n }\n sourceFiber = sourceFiber.return;\n } while (null !== sourceFiber);\n return !1;\n}\nvar SelectiveHydrationException = Error(formatProdErrorMessage(461)),\n didReceiveUpdate = !1;\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n workInProgress.child =\n null === current\n ? mountChildFibers(workInProgress, null, nextChildren, renderLanes)\n : reconcileChildFibers(\n workInProgress,\n current.child,\n nextChildren,\n renderLanes\n );\n}\nfunction updateForwardRef(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n if (\"ref\" in nextProps) {\n var propsWithoutRef = {};\n for (var key in nextProps)\n \"ref\" !== key && (propsWithoutRef[key] = nextProps[key]);\n } else propsWithoutRef = nextProps;\n prepareToReadContext(workInProgress);\n nextProps = renderWithHooks(\n current,\n workInProgress,\n Component,\n propsWithoutRef,\n ref,\n renderLanes\n );\n key = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && key && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null === current) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current,\n workInProgress,\n type,\n nextProps,\n renderLanes\n )\n );\n current = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n workInProgress,\n workInProgress.mode,\n renderLanes\n );\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n }\n type = current.child;\n if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n var prevProps = type.memoizedProps;\n Component = Component.compare;\n Component = null !== Component ? Component : shallowEqual;\n if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n workInProgress.flags |= 1;\n current = createWorkInProgress(type, nextProps);\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n}\nfunction updateSimpleMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null !== current) {\n var prevProps = current.memoizedProps;\n if (\n shallowEqual(prevProps, nextProps) &&\n current.ref === workInProgress.ref\n )\n if (\n ((didReceiveUpdate = !1),\n (workInProgress.pendingProps = nextProps = prevProps),\n checkScheduledUpdateOrContext(current, renderLanes))\n )\n 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);\n else\n return (\n (workInProgress.lanes = current.lanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n }\n return updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n );\n}\nfunction updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n nextProps\n) {\n var nextChildren = nextProps.children,\n prevState = null !== current ? current.memoizedState : null;\n null === current &&\n null === workInProgress.stateNode &&\n (workInProgress.stateNode = {\n _visibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null\n });\n if (\"hidden\" === nextProps.mode) {\n if (0 !== (workInProgress.flags & 128)) {\n prevState =\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes;\n if (null !== current) {\n nextProps = workInProgress.child = current.child;\n for (nextChildren = 0; null !== nextProps; )\n (nextChildren =\n nextChildren | nextProps.lanes | nextProps.childLanes),\n (nextProps = nextProps.sibling);\n nextProps = nextChildren & ~prevState;\n } else (nextProps = 0), (workInProgress.child = null);\n return deferHiddenOffscreenComponent(\n current,\n workInProgress,\n prevState,\n renderLanes,\n nextProps\n );\n }\n if (0 !== (renderLanes & 536870912))\n (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),\n null !== current &&\n pushTransition(\n workInProgress,\n null !== prevState ? prevState.cachePool : null\n ),\n null !== prevState\n ? pushHiddenContext(workInProgress, prevState)\n : reuseHiddenContextOnStack(),\n pushOffscreenSuspenseHandler(workInProgress);\n else\n return (\n (nextProps = workInProgress.lanes = 536870912),\n deferHiddenOffscreenComponent(\n current,\n workInProgress,\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes,\n renderLanes,\n nextProps\n )\n );\n } else\n null !== prevState\n ? (pushTransition(workInProgress, prevState.cachePool),\n pushHiddenContext(workInProgress, prevState),\n reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.memoizedState = null))\n : (null !== current && pushTransition(workInProgress, null),\n reuseHiddenContextOnStack(),\n reuseSuspenseHandlerOnStack(workInProgress));\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nfunction bailoutOffscreenComponent(current, workInProgress) {\n (null !== current && 22 === current.tag) ||\n null !== workInProgress.stateNode ||\n (workInProgress.stateNode = {\n _visibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null\n });\n return workInProgress.sibling;\n}\nfunction deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextBaseLanes,\n renderLanes,\n remainingChildLanes\n) {\n var JSCompiler_inline_result = peekCacheFromPool();\n JSCompiler_inline_result =\n null === JSCompiler_inline_result\n ? null\n : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };\n workInProgress.memoizedState = {\n baseLanes: nextBaseLanes,\n cachePool: JSCompiler_inline_result\n };\n null !== current && pushTransition(workInProgress, null);\n reuseHiddenContextOnStack();\n pushOffscreenSuspenseHandler(workInProgress);\n null !== current &&\n propagateParentContextChanges(current, workInProgress, renderLanes, !0);\n workInProgress.childLanes = remainingChildLanes;\n return null;\n}\nfunction mountActivityChildren(workInProgress, nextProps) {\n nextProps = mountWorkInProgressOffscreenFiber(\n { mode: nextProps.mode, children: nextProps.children },\n workInProgress.mode\n );\n nextProps.ref = workInProgress.ref;\n workInProgress.child = nextProps;\n nextProps.return = workInProgress;\n return nextProps;\n}\nfunction retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountActivityChildren(workInProgress, workInProgress.pendingProps);\n current.flags |= 2;\n popSuspenseHandler(workInProgress);\n workInProgress.memoizedState = null;\n return current;\n}\nfunction updateActivityComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n didSuspend = 0 !== (workInProgress.flags & 128);\n workInProgress.flags &= -129;\n if (null === current) {\n if (isHydrating) {\n if (\"hidden\" === nextProps.mode)\n return (\n (current = mountActivityChildren(workInProgress, nextProps)),\n (workInProgress.lanes = 536870912),\n bailoutOffscreenComponent(null, current)\n );\n pushDehydratedActivitySuspenseHandler(workInProgress);\n (current = nextHydratableInstance)\n ? ((current = canHydrateHydrationBoundary(\n current,\n rootOrSingletonContext\n )),\n (current = null !== current && \"&\" === current.data ? current : null),\n null !== current &&\n ((workInProgress.memoizedState = {\n dehydrated: current,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912,\n hydrationErrors: null\n }),\n (renderLanes = createFiberFromDehydratedFragment(current)),\n (renderLanes.return = workInProgress),\n (workInProgress.child = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null)))\n : (current = null);\n if (null === current) throw throwOnHydrationMismatch(workInProgress);\n workInProgress.lanes = 536870912;\n return null;\n }\n return mountActivityChildren(workInProgress, nextProps);\n }\n var prevState = current.memoizedState;\n if (null !== prevState) {\n var dehydrated = prevState.dehydrated;\n pushDehydratedActivitySuspenseHandler(workInProgress);\n if (didSuspend)\n if (workInProgress.flags & 256)\n (workInProgress.flags &= -257),\n (workInProgress = retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n ));\n else if (null !== workInProgress.memoizedState)\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null);\n else throw Error(formatProdErrorMessage(558));\n else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (didSuspend = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || didSuspend)\n ) {\n nextProps = workInProgressRoot;\n if (\n null !== nextProps &&\n ((dehydrated = getBumpedLaneForHydration(nextProps, renderLanes)),\n 0 !== dehydrated && dehydrated !== prevState.retryLane)\n )\n throw (\n ((prevState.retryLane = dehydrated),\n enqueueConcurrentRenderForLane(current, dehydrated),\n scheduleUpdateOnFiber(nextProps, current, dehydrated),\n SelectiveHydrationException)\n );\n renderDidSuspendDelayIfPossible();\n workInProgress = retryActivityComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n (current = prevState.treeContext),\n (nextHydratableInstance = getNextHydratable(dehydrated.nextSibling)),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n restoreSuspendedTreeContext(workInProgress, current),\n (workInProgress = mountActivityChildren(workInProgress, nextProps)),\n (workInProgress.flags |= 4096);\n return workInProgress;\n }\n current = createWorkInProgress(current.child, {\n mode: nextProps.mode,\n children: nextProps.children\n });\n current.ref = workInProgress.ref;\n workInProgress.child = current;\n current.return = workInProgress;\n return current;\n}\nfunction markRef(current, workInProgress) {\n var ref = workInProgress.ref;\n if (null === ref)\n null !== current &&\n null !== current.ref &&\n (workInProgress.flags |= 4194816);\n else {\n if (\"function\" !== typeof ref && \"object\" !== typeof ref)\n throw Error(formatProdErrorMessage(284));\n if (null === current || current.ref !== ref)\n workInProgress.flags |= 4194816;\n }\n}\nfunction updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n Component = renderWithHooks(\n current,\n workInProgress,\n Component,\n nextProps,\n void 0,\n renderLanes\n );\n nextProps = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && nextProps && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, Component, renderLanes);\n return workInProgress.child;\n}\nfunction replayFunctionComponent(\n current,\n workInProgress,\n nextProps,\n Component,\n secondArg,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n workInProgress.updateQueue = null;\n nextProps = renderWithHooksAgain(\n workInProgress,\n Component,\n nextProps,\n secondArg\n );\n finishRenderingHooks(current);\n Component = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && Component && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n if (null === workInProgress.stateNode) {\n var context = emptyContextObject,\n contextType = Component.contextType;\n \"object\" === typeof contextType &&\n null !== contextType &&\n (context = readContext(contextType));\n context = new Component(nextProps, context);\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state ? context.state : null;\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternals = workInProgress;\n context = workInProgress.stateNode;\n context.props = nextProps;\n context.state = workInProgress.memoizedState;\n context.refs = {};\n initializeUpdateQueue(workInProgress);\n contextType = Component.contextType;\n context.context =\n \"object\" === typeof contextType && null !== contextType\n ? readContext(contextType)\n : emptyContextObject;\n context.state = workInProgress.memoizedState;\n contextType = Component.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n contextType,\n nextProps\n ),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof Component.getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n ((contextType = context.state),\n \"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount(),\n contextType !== context.state &&\n classComponentUpdater.enqueueReplaceState(context, context.state, null),\n processUpdateQueue(workInProgress, nextProps, context, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction(),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308);\n nextProps = !0;\n } else if (null === current) {\n context = workInProgress.stateNode;\n var unresolvedOldProps = workInProgress.memoizedProps,\n oldProps = resolveClassComponentProps(Component, unresolvedOldProps);\n context.props = oldProps;\n var oldContext = context.context,\n contextType$jscomp$0 = Component.contextType;\n contextType = emptyContextObject;\n \"object\" === typeof contextType$jscomp$0 &&\n null !== contextType$jscomp$0 &&\n (contextType = readContext(contextType$jscomp$0));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n contextType$jscomp$0 =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate;\n unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps;\n contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((unresolvedOldProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n oldContext = workInProgress.memoizedState;\n unresolvedOldProps || oldState !== oldContext || hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n (\"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount()),\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (context.props = nextProps),\n (context.state = oldContext),\n (context.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (nextProps = !1));\n } else {\n context = workInProgress.stateNode;\n cloneUpdateQueue(current, workInProgress);\n contextType = workInProgress.memoizedProps;\n contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);\n context.props = contextType$jscomp$0;\n getDerivedStateFromProps = workInProgress.pendingProps;\n oldState = context.context;\n oldContext = Component.contextType;\n oldProps = emptyContextObject;\n \"object\" === typeof oldContext &&\n null !== oldContext &&\n (oldProps = readContext(oldContext));\n unresolvedOldProps = Component.getDerivedStateFromProps;\n (oldContext =\n \"function\" === typeof unresolvedOldProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((contextType !== getDerivedStateFromProps || oldState !== oldProps) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n oldProps\n ));\n hasForceUpdate = !1;\n oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n var newState = workInProgress.memoizedState;\n contextType !== getDerivedStateFromProps ||\n oldState !== newState ||\n hasForceUpdate ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies))\n ? (\"function\" === typeof unresolvedOldProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n unresolvedOldProps,\n nextProps\n ),\n (newState = workInProgress.memoizedState)),\n (contextType$jscomp$0 =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n contextType$jscomp$0,\n nextProps,\n oldState,\n newState,\n oldProps\n ) ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies)))\n ? (oldContext ||\n (\"function\" !== typeof context.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof context.componentWillUpdate) ||\n (\"function\" === typeof context.componentWillUpdate &&\n context.componentWillUpdate(nextProps, newState, oldProps),\n \"function\" === typeof context.UNSAFE_componentWillUpdate &&\n context.UNSAFE_componentWillUpdate(\n nextProps,\n newState,\n oldProps\n )),\n \"function\" === typeof context.componentDidUpdate &&\n (workInProgress.flags |= 4),\n \"function\" === typeof context.getSnapshotBeforeUpdate &&\n (workInProgress.flags |= 1024))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = newState)),\n (context.props = nextProps),\n (context.state = newState),\n (context.context = oldProps),\n (nextProps = contextType$jscomp$0))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (nextProps = !1));\n }\n context = nextProps;\n markRef(current, workInProgress);\n nextProps = 0 !== (workInProgress.flags & 128);\n context || nextProps\n ? ((context = workInProgress.stateNode),\n (Component =\n nextProps && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : context.render()),\n (workInProgress.flags |= 1),\n null !== current && nextProps\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n Component,\n renderLanes\n )))\n : reconcileChildren(current, workInProgress, Component, renderLanes),\n (workInProgress.memoizedState = context.state),\n (current = workInProgress.child))\n : (current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n ));\n return current;\n}\nfunction mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextChildren,\n renderLanes\n) {\n resetHydrationState();\n workInProgress.flags |= 256;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nvar SUSPENDED_MARKER = {\n dehydrated: null,\n treeContext: null,\n retryLane: 0,\n hydrationErrors: null\n};\nfunction mountSuspenseOffscreenState(renderLanes) {\n return { baseLanes: renderLanes, cachePool: getSuspendedCache() };\n}\nfunction getRemainingWorkInPrimaryTree(\n current,\n primaryTreeDidDefer,\n renderLanes\n) {\n current = null !== current ? current.childLanes & ~renderLanes : 0;\n primaryTreeDidDefer && (current |= workInProgressDeferredLane);\n return current;\n}\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n showFallback = !1,\n didSuspend = 0 !== (workInProgress.flags & 128),\n JSCompiler_temp;\n (JSCompiler_temp = didSuspend) ||\n (JSCompiler_temp =\n null !== current && null === current.memoizedState\n ? !1\n : 0 !== (suspenseStackCursor.current & 2));\n JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));\n JSCompiler_temp = 0 !== (workInProgress.flags & 32);\n workInProgress.flags &= -33;\n if (null === current) {\n if (isHydrating) {\n showFallback\n ? pushPrimaryTreeSuspenseHandler(workInProgress)\n : reuseSuspenseHandlerOnStack(workInProgress);\n (current = nextHydratableInstance)\n ? ((current = canHydrateHydrationBoundary(\n current,\n rootOrSingletonContext\n )),\n (current = null !== current && \"&\" !== current.data ? current : null),\n null !== current &&\n ((workInProgress.memoizedState = {\n dehydrated: current,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912,\n hydrationErrors: null\n }),\n (renderLanes = createFiberFromDehydratedFragment(current)),\n (renderLanes.return = workInProgress),\n (workInProgress.child = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null)))\n : (current = null);\n if (null === current) throw throwOnHydrationMismatch(workInProgress);\n isSuspenseInstanceFallback(current)\n ? (workInProgress.lanes = 32)\n : (workInProgress.lanes = 536870912);\n return null;\n }\n var nextPrimaryChildren = nextProps.children;\n nextProps = nextProps.fallback;\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = workInProgress.mode),\n (nextPrimaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"hidden\", children: nextPrimaryChildren },\n showFallback\n )),\n (nextProps = createFiberFromFragment(\n nextProps,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextPrimaryChildren.sibling = nextProps),\n (workInProgress.child = nextPrimaryChildren),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n bailoutOffscreenComponent(null, nextProps)\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);\n }\n var prevState = current.memoizedState;\n if (\n null !== prevState &&\n ((nextPrimaryChildren = prevState.dehydrated), null !== nextPrimaryChildren)\n ) {\n if (didSuspend)\n workInProgress.flags & 256\n ? (pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags &= -257),\n (workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n )))\n : null !== workInProgress.memoizedState\n ? (reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null))\n : (reuseSuspenseHandlerOnStack(workInProgress),\n (nextPrimaryChildren = nextProps.fallback),\n (showFallback = workInProgress.mode),\n (nextProps = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: nextProps.children },\n showFallback\n )),\n (nextPrimaryChildren = createFiberFromFragment(\n nextPrimaryChildren,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.flags |= 2),\n (nextProps.return = workInProgress),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.sibling = nextPrimaryChildren),\n (workInProgress.child = nextProps),\n reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n ),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState =\n mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n (workInProgress = bailoutOffscreenComponent(null, nextProps)));\n else if (\n (pushPrimaryTreeSuspenseHandler(workInProgress),\n isSuspenseInstanceFallback(nextPrimaryChildren))\n ) {\n JSCompiler_temp =\n nextPrimaryChildren.nextSibling &&\n nextPrimaryChildren.nextSibling.dataset;\n if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;\n JSCompiler_temp = digest;\n nextProps = Error(formatProdErrorMessage(419));\n nextProps.stack = \"\";\n nextProps.digest = JSCompiler_temp;\n queueHydrationError({ value: nextProps, source: null, stack: null });\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || JSCompiler_temp)\n ) {\n JSCompiler_temp = workInProgressRoot;\n if (\n null !== JSCompiler_temp &&\n ((nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes)),\n 0 !== nextProps && nextProps !== prevState.retryLane)\n )\n throw (\n ((prevState.retryLane = nextProps),\n enqueueConcurrentRenderForLane(current, nextProps),\n scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),\n SelectiveHydrationException)\n );\n isSuspenseInstancePending(nextPrimaryChildren) ||\n renderDidSuspendDelayIfPossible();\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n isSuspenseInstancePending(nextPrimaryChildren)\n ? ((workInProgress.flags |= 192),\n (workInProgress.child = current.child),\n (workInProgress = null))\n : ((current = prevState.treeContext),\n (nextHydratableInstance = getNextHydratable(\n nextPrimaryChildren.nextSibling\n )),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n restoreSuspendedTreeContext(workInProgress, current),\n (workInProgress = mountSuspensePrimaryChildren(\n workInProgress,\n nextProps.children\n )),\n (workInProgress.flags |= 4096));\n return workInProgress;\n }\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (nextPrimaryChildren = nextProps.fallback),\n (showFallback = workInProgress.mode),\n (prevState = current.child),\n (digest = prevState.sibling),\n (nextProps = createWorkInProgress(prevState, {\n mode: \"hidden\",\n children: nextProps.children\n })),\n (nextProps.subtreeFlags = prevState.subtreeFlags & 65011712),\n null !== digest\n ? (nextPrimaryChildren = createWorkInProgress(\n digest,\n nextPrimaryChildren\n ))\n : ((nextPrimaryChildren = createFiberFromFragment(\n nextPrimaryChildren,\n showFallback,\n renderLanes,\n null\n )),\n (nextPrimaryChildren.flags |= 2)),\n (nextPrimaryChildren.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextProps.sibling = nextPrimaryChildren),\n (workInProgress.child = nextProps),\n bailoutOffscreenComponent(null, nextProps),\n (nextProps = workInProgress.child),\n (nextPrimaryChildren = current.child.memoizedState),\n null === nextPrimaryChildren\n ? (nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes))\n : ((showFallback = nextPrimaryChildren.cachePool),\n null !== showFallback\n ? ((prevState = CacheContext._currentValue),\n (showFallback =\n showFallback.parent !== prevState\n ? { parent: prevState, pool: prevState }\n : showFallback))\n : (showFallback = getSuspendedCache()),\n (nextPrimaryChildren = {\n baseLanes: nextPrimaryChildren.baseLanes | renderLanes,\n cachePool: showFallback\n })),\n (nextProps.memoizedState = nextPrimaryChildren),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n bailoutOffscreenComponent(current.child, nextProps)\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n renderLanes = current.child;\n current = renderLanes.sibling;\n renderLanes = createWorkInProgress(renderLanes, {\n mode: \"visible\",\n children: nextProps.children\n });\n renderLanes.return = workInProgress;\n renderLanes.sibling = null;\n null !== current &&\n ((JSCompiler_temp = workInProgress.deletions),\n null === JSCompiler_temp\n ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))\n : JSCompiler_temp.push(current));\n workInProgress.child = renderLanes;\n workInProgress.memoizedState = null;\n return renderLanes;\n}\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren) {\n primaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: primaryChildren },\n workInProgress.mode\n );\n primaryChildren.return = workInProgress;\n return (workInProgress.child = primaryChildren);\n}\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode) {\n offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);\n offscreenProps.lanes = 0;\n return offscreenProps;\n}\nfunction retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountSuspensePrimaryChildren(\n workInProgress,\n workInProgress.pendingProps.children\n );\n current.flags |= 2;\n workInProgress.memoizedState = null;\n return current;\n}\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n fiber.lanes |= renderLanes;\n var alternate = fiber.alternate;\n null !== alternate && (alternate.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode,\n treeForkCount\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n renderingStartTime: 0,\n last: lastContentRow,\n tail: tail,\n tailMode: tailMode,\n treeForkCount: treeForkCount\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.renderingStartTime = 0),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailMode = tailMode),\n (renderState.treeForkCount = treeForkCount));\n}\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n nextProps = nextProps.children;\n var suspenseContext = suspenseStackCursor.current,\n shouldForceFallback = 0 !== (suspenseContext & 2);\n shouldForceFallback\n ? ((suspenseContext = (suspenseContext & 1) | 2),\n (workInProgress.flags |= 128))\n : (suspenseContext &= 1);\n push(suspenseStackCursor, suspenseContext);\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n nextProps = isHydrating ? treeForkCount : 0;\n if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))\n a: for (current = workInProgress.child; null !== current; ) {\n if (13 === current.tag)\n null !== current.memoizedState &&\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (19 === current.tag)\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (null !== current.child) {\n current.child.return = current;\n current = current.child;\n continue;\n }\n if (current === workInProgress) break a;\n for (; null === current.sibling; ) {\n if (null === current.return || current.return === workInProgress)\n break a;\n current = current.return;\n }\n current.sibling.return = current.return;\n current = current.sibling;\n }\n switch (revealOrder) {\n case \"forwards\":\n renderLanes = workInProgress.child;\n for (revealOrder = null; null !== renderLanes; )\n (current = renderLanes.alternate),\n null !== current &&\n null === findFirstSuspended(current) &&\n (revealOrder = renderLanes),\n (renderLanes = renderLanes.sibling);\n renderLanes = revealOrder;\n null === renderLanes\n ? ((revealOrder = workInProgress.child), (workInProgress.child = null))\n : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderLanes,\n tailMode,\n nextProps\n );\n break;\n case \"backwards\":\n case \"unstable_legacy-backwards\":\n renderLanes = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current = revealOrder.alternate;\n if (null !== current && null === findFirstSuspended(current)) {\n workInProgress.child = revealOrder;\n break;\n }\n current = revealOrder.sibling;\n revealOrder.sibling = renderLanes;\n renderLanes = revealOrder;\n revealOrder = current;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderLanes,\n null,\n tailMode,\n nextProps\n );\n break;\n case \"together\":\n initSuspenseListRenderState(\n workInProgress,\n !1,\n null,\n null,\n void 0,\n nextProps\n );\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n null !== current && (workInProgress.dependencies = current.dependencies);\n workInProgressRootSkippedLanes |= workInProgress.lanes;\n if (0 === (renderLanes & workInProgress.childLanes))\n if (null !== current) {\n if (\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n 0 === (renderLanes & workInProgress.childLanes))\n )\n return null;\n } else return null;\n if (null !== current && workInProgress.child !== current.child)\n throw Error(formatProdErrorMessage(153));\n if (null !== workInProgress.child) {\n current = workInProgress.child;\n renderLanes = createWorkInProgress(current, current.pendingProps);\n workInProgress.child = renderLanes;\n for (renderLanes.return = workInProgress; null !== current.sibling; )\n (current = current.sibling),\n (renderLanes = renderLanes.sibling =\n createWorkInProgress(current, current.pendingProps)),\n (renderLanes.return = workInProgress);\n renderLanes.sibling = null;\n }\n return workInProgress.child;\n}\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n if (0 !== (current.lanes & renderLanes)) return !0;\n current = current.dependencies;\n return null !== current && checkIfContextChanged(current) ? !0 : !1;\n}\nfunction attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n) {\n switch (workInProgress.tag) {\n case 3:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n resetHydrationState();\n break;\n case 27:\n case 5:\n pushHostContext(workInProgress);\n break;\n case 4:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n case 10:\n pushProvider(\n workInProgress,\n workInProgress.type,\n workInProgress.memoizedProps.value\n );\n break;\n case 31:\n if (null !== workInProgress.memoizedState)\n return (\n (workInProgress.flags |= 128),\n pushDehydratedActivitySuspenseHandler(workInProgress),\n null\n );\n break;\n case 13:\n var state$102 = workInProgress.memoizedState;\n if (null !== state$102) {\n if (null !== state$102.dehydrated)\n return (\n pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags |= 128),\n null\n );\n if (0 !== (renderLanes & workInProgress.child.childLanes))\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n pushPrimaryTreeSuspenseHandler(workInProgress);\n current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n return null !== current ? current.sibling : null;\n }\n pushPrimaryTreeSuspenseHandler(workInProgress);\n break;\n case 19:\n var didSuspendBefore = 0 !== (current.flags & 128);\n state$102 = 0 !== (renderLanes & workInProgress.childLanes);\n state$102 ||\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n (state$102 = 0 !== (renderLanes & workInProgress.childLanes)));\n if (didSuspendBefore) {\n if (state$102)\n return updateSuspenseListComponent(\n current,\n workInProgress,\n renderLanes\n );\n workInProgress.flags |= 128;\n }\n didSuspendBefore = workInProgress.memoizedState;\n null !== didSuspendBefore &&\n ((didSuspendBefore.rendering = null),\n (didSuspendBefore.tail = null),\n (didSuspendBefore.lastEffect = null));\n push(suspenseStackCursor, suspenseStackCursor.current);\n if (state$102) break;\n else return null;\n case 22:\n return (\n (workInProgress.lanes = 0),\n updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n workInProgress.pendingProps\n )\n );\n case 24:\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n }\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\nfunction beginWork(current, workInProgress, renderLanes) {\n if (null !== current)\n if (current.memoizedProps !== workInProgress.pendingProps)\n didReceiveUpdate = !0;\n else {\n if (\n !checkScheduledUpdateOrContext(current, renderLanes) &&\n 0 === (workInProgress.flags & 128)\n )\n return (\n (didReceiveUpdate = !1),\n attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n )\n );\n didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;\n }\n else\n (didReceiveUpdate = !1),\n isHydrating &&\n 0 !== (workInProgress.flags & 1048576) &&\n pushTreeId(workInProgress, treeForkCount, workInProgress.index);\n workInProgress.lanes = 0;\n switch (workInProgress.tag) {\n case 16:\n a: {\n var props = workInProgress.pendingProps;\n current = resolveLazy(workInProgress.elementType);\n workInProgress.type = current;\n if (\"function\" === typeof current)\n shouldConstruct(current)\n ? ((props = resolveClassComponentProps(current, props)),\n (workInProgress.tag = 1),\n (workInProgress = updateClassComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n )))\n : ((workInProgress.tag = 0),\n (workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n )));\n else {\n if (void 0 !== current && null !== current) {\n var $$typeof = current.$$typeof;\n if ($$typeof === REACT_FORWARD_REF_TYPE) {\n workInProgress.tag = 11;\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n );\n break a;\n } else if ($$typeof === REACT_MEMO_TYPE) {\n workInProgress.tag = 14;\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n current,\n props,\n renderLanes\n );\n break a;\n }\n }\n workInProgress = getComponentNameFromType(current) || current;\n throw Error(formatProdErrorMessage(306, workInProgress, \"\"));\n }\n }\n return workInProgress;\n case 0:\n return updateFunctionComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 1:\n return (\n (props = workInProgress.type),\n ($$typeof = resolveClassComponentProps(\n props,\n workInProgress.pendingProps\n )),\n updateClassComponent(\n current,\n workInProgress,\n props,\n $$typeof,\n renderLanes\n )\n );\n case 3:\n a: {\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n if (null === current) throw Error(formatProdErrorMessage(387));\n props = workInProgress.pendingProps;\n var prevState = workInProgress.memoizedState;\n $$typeof = prevState.element;\n cloneUpdateQueue(current, workInProgress);\n processUpdateQueue(workInProgress, props, null, renderLanes);\n var nextState = workInProgress.memoizedState;\n props = nextState.cache;\n pushProvider(workInProgress, CacheContext, props);\n props !== prevState.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n );\n suspendIfUpdateReadFromEntangledAsyncAction();\n props = nextState.element;\n if (prevState.isDehydrated)\n if (\n ((prevState = {\n element: props,\n isDehydrated: !1,\n cache: nextState.cache\n }),\n (workInProgress.updateQueue.baseState = prevState),\n (workInProgress.memoizedState = prevState),\n workInProgress.flags & 256)\n ) {\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n props,\n renderLanes\n );\n break a;\n } else if (props !== $$typeof) {\n $$typeof = createCapturedValueAtFiber(\n Error(formatProdErrorMessage(424)),\n workInProgress\n );\n queueHydrationError($$typeof);\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n props,\n renderLanes\n );\n break a;\n } else {\n current = workInProgress.stateNode.containerInfo;\n switch (current.nodeType) {\n case 9:\n current = current.body;\n break;\n default:\n current =\n \"HTML\" === current.nodeName\n ? current.ownerDocument.body\n : current;\n }\n nextHydratableInstance = getNextHydratable(current.firstChild);\n hydrationParentFiber = workInProgress;\n isHydrating = !0;\n hydrationErrors = null;\n rootOrSingletonContext = !0;\n renderLanes = mountChildFibers(\n workInProgress,\n null,\n props,\n renderLanes\n );\n for (workInProgress.child = renderLanes; renderLanes; )\n (renderLanes.flags = (renderLanes.flags & -3) | 4096),\n (renderLanes = renderLanes.sibling);\n }\n else {\n resetHydrationState();\n if (props === $$typeof) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n break a;\n }\n reconcileChildren(current, workInProgress, props, renderLanes);\n }\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 26:\n return (\n markRef(current, workInProgress),\n null === current\n ? (renderLanes = getResource(\n workInProgress.type,\n null,\n workInProgress.pendingProps,\n null\n ))\n ? (workInProgress.memoizedState = renderLanes)\n : isHydrating ||\n ((renderLanes = workInProgress.type),\n (current = workInProgress.pendingProps),\n (props = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n ).createElement(renderLanes)),\n (props[internalInstanceKey] = workInProgress),\n (props[internalPropsKey] = current),\n setInitialProperties(props, renderLanes, current),\n markNodeAsHoistable(props),\n (workInProgress.stateNode = props))\n : (workInProgress.memoizedState = getResource(\n workInProgress.type,\n current.memoizedProps,\n workInProgress.pendingProps,\n current.memoizedState\n )),\n null\n );\n case 27:\n return (\n pushHostContext(workInProgress),\n null === current &&\n isHydrating &&\n ((props = workInProgress.stateNode =\n resolveSingletonInstance(\n workInProgress.type,\n workInProgress.pendingProps,\n rootInstanceStackCursor.current\n )),\n (hydrationParentFiber = workInProgress),\n (rootOrSingletonContext = !0),\n ($$typeof = nextHydratableInstance),\n isSingletonScope(workInProgress.type)\n ? ((previousHydratableOnEnteringScopedSingleton = $$typeof),\n (nextHydratableInstance = getNextHydratable(props.firstChild)))\n : (nextHydratableInstance = $$typeof)),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n markRef(current, workInProgress),\n null === current && (workInProgress.flags |= 4194304),\n workInProgress.child\n );\n case 5:\n if (null === current && isHydrating) {\n if (($$typeof = props = nextHydratableInstance))\n (props = canHydrateInstance(\n props,\n workInProgress.type,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== props\n ? ((workInProgress.stateNode = props),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = getNextHydratable(props.firstChild)),\n (rootOrSingletonContext = !1),\n ($$typeof = !0))\n : ($$typeof = !1);\n $$typeof || throwOnHydrationMismatch(workInProgress);\n }\n pushHostContext(workInProgress);\n $$typeof = workInProgress.type;\n prevState = workInProgress.pendingProps;\n nextState = null !== current ? current.memoizedProps : null;\n props = prevState.children;\n shouldSetTextContent($$typeof, prevState)\n ? (props = null)\n : null !== nextState &&\n shouldSetTextContent($$typeof, nextState) &&\n (workInProgress.flags |= 32);\n null !== workInProgress.memoizedState &&\n (($$typeof = renderWithHooks(\n current,\n workInProgress,\n TransitionAwareHostComponent,\n null,\n null,\n renderLanes\n )),\n (HostTransitionContext._currentValue = $$typeof));\n markRef(current, workInProgress);\n reconcileChildren(current, workInProgress, props, renderLanes);\n return workInProgress.child;\n case 6:\n if (null === current && isHydrating) {\n if ((current = renderLanes = nextHydratableInstance))\n (renderLanes = canHydrateTextInstance(\n renderLanes,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== renderLanes\n ? ((workInProgress.stateNode = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (current = !0))\n : (current = !1);\n current || throwOnHydrationMismatch(workInProgress);\n }\n return null;\n case 13:\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (props = workInProgress.pendingProps),\n null === current\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n props,\n renderLanes\n ))\n : reconcileChildren(current, workInProgress, props, renderLanes),\n workInProgress.child\n );\n case 11:\n return updateForwardRef(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 7:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps,\n renderLanes\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 10:\n return (\n (props = workInProgress.pendingProps),\n pushProvider(workInProgress, workInProgress.type, props.value),\n reconcileChildren(current, workInProgress, props.children, renderLanes),\n workInProgress.child\n );\n case 9:\n return (\n ($$typeof = workInProgress.type._context),\n (props = workInProgress.pendingProps.children),\n prepareToReadContext(workInProgress),\n ($$typeof = readContext($$typeof)),\n (props = props($$typeof)),\n (workInProgress.flags |= 1),\n reconcileChildren(current, workInProgress, props, renderLanes),\n workInProgress.child\n );\n case 14:\n return updateMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 15:\n return updateSimpleMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 19:\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n case 31:\n return updateActivityComponent(current, workInProgress, renderLanes);\n case 22:\n return updateOffscreenComponent(\n current,\n workInProgress,\n renderLanes,\n workInProgress.pendingProps\n );\n case 24:\n return (\n prepareToReadContext(workInProgress),\n (props = readContext(CacheContext)),\n null === current\n ? (($$typeof = peekCacheFromPool()),\n null === $$typeof &&\n (($$typeof = workInProgressRoot),\n (prevState = createCache()),\n ($$typeof.pooledCache = prevState),\n prevState.refCount++,\n null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes),\n ($$typeof = prevState)),\n (workInProgress.memoizedState = { parent: props, cache: $$typeof }),\n initializeUpdateQueue(workInProgress),\n pushProvider(workInProgress, CacheContext, $$typeof))\n : (0 !== (current.lanes & renderLanes) &&\n (cloneUpdateQueue(current, workInProgress),\n processUpdateQueue(workInProgress, null, null, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction()),\n ($$typeof = current.memoizedState),\n (prevState = workInProgress.memoizedState),\n $$typeof.parent !== props\n ? (($$typeof = { parent: props, cache: props }),\n (workInProgress.memoizedState = $$typeof),\n 0 === workInProgress.lanes &&\n (workInProgress.memoizedState =\n workInProgress.updateQueue.baseState =\n $$typeof),\n pushProvider(workInProgress, CacheContext, props))\n : ((props = prevState.cache),\n pushProvider(workInProgress, CacheContext, props),\n props !== $$typeof.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n ))),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 29:\n throw workInProgress.pendingProps;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction markUpdate(workInProgress) {\n workInProgress.flags |= 4;\n}\nfunction preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n oldProps,\n newProps,\n renderLanes\n) {\n if ((type = 0 !== (workInProgress.mode & 32))) type = !1;\n if (type) {\n if (\n ((workInProgress.flags |= 16777216),\n (renderLanes & 335544128) === renderLanes)\n )\n if (workInProgress.stateNode.complete) workInProgress.flags |= 8192;\n else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n else\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n } else workInProgress.flags &= -16777217;\n}\nfunction preloadResourceAndSuspendIfNeeded(workInProgress, resource) {\n if (\"stylesheet\" !== resource.type || 0 !== (resource.state.loading & 4))\n workInProgress.flags &= -16777217;\n else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))\n if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n else\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n}\nfunction scheduleRetryEffect(workInProgress, retryQueue) {\n null !== retryQueue && (workInProgress.flags |= 4);\n workInProgress.flags & 16384 &&\n ((retryQueue =\n 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),\n (workInProgress.lanes |= retryQueue),\n (workInProgressSuspendedRetryLanes |= retryQueue));\n}\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n if (!isHydrating)\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var lastTailNode$106 = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (lastTailNode$106 = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === lastTailNode$106\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (lastTailNode$106.sibling = null);\n }\n}\nfunction bubbleProperties(completedWork) {\n var didBailout =\n null !== completedWork.alternate &&\n completedWork.alternate.child === completedWork.child,\n newChildLanes = 0,\n subtreeFlags = 0;\n if (didBailout)\n for (var child$107 = completedWork.child; null !== child$107; )\n (newChildLanes |= child$107.lanes | child$107.childLanes),\n (subtreeFlags |= child$107.subtreeFlags & 65011712),\n (subtreeFlags |= child$107.flags & 65011712),\n (child$107.return = completedWork),\n (child$107 = child$107.sibling);\n else\n for (child$107 = completedWork.child; null !== child$107; )\n (newChildLanes |= child$107.lanes | child$107.childLanes),\n (subtreeFlags |= child$107.subtreeFlags),\n (subtreeFlags |= child$107.flags),\n (child$107.return = completedWork),\n (child$107 = child$107.sibling);\n completedWork.subtreeFlags |= subtreeFlags;\n completedWork.childLanes = newChildLanes;\n return didBailout;\n}\nfunction completeWork(current, workInProgress, renderLanes) {\n var newProps = workInProgress.pendingProps;\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return bubbleProperties(workInProgress), null;\n case 1:\n return bubbleProperties(workInProgress), null;\n case 3:\n renderLanes = workInProgress.stateNode;\n newProps = null;\n null !== current && (newProps = current.memoizedState.cache);\n workInProgress.memoizedState.cache !== newProps &&\n (workInProgress.flags |= 2048);\n popProvider(CacheContext);\n popHostContainer();\n renderLanes.pendingContext &&\n ((renderLanes.context = renderLanes.pendingContext),\n (renderLanes.pendingContext = null));\n if (null === current || null === current.child)\n popHydrationState(workInProgress)\n ? markUpdate(workInProgress)\n : null === current ||\n (current.memoizedState.isDehydrated &&\n 0 === (workInProgress.flags & 256)) ||\n ((workInProgress.flags |= 1024),\n upgradeHydrationErrorsToRecoverable());\n bubbleProperties(workInProgress);\n return null;\n case 26:\n var type = workInProgress.type,\n nextResource = workInProgress.memoizedState;\n null === current\n ? (markUpdate(workInProgress),\n null !== nextResource\n ? (bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n : (bubbleProperties(workInProgress),\n preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n null,\n newProps,\n renderLanes\n )))\n : nextResource\n ? nextResource !== current.memoizedState\n ? (markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217))\n : ((current = current.memoizedProps),\n current !== newProps && markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n type,\n current,\n newProps,\n renderLanes\n ));\n return null;\n case 27:\n popHostContext(workInProgress);\n renderLanes = rootInstanceStackCursor.current;\n type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n popHydrationState(workInProgress)\n ? prepareToHydrateHostInstance(workInProgress, current)\n : ((current = resolveSingletonInstance(type, newProps, renderLanes)),\n (workInProgress.stateNode = current),\n markUpdate(workInProgress));\n }\n bubbleProperties(workInProgress);\n return null;\n case 5:\n popHostContext(workInProgress);\n type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n nextResource = contextStackCursor.current;\n if (popHydrationState(workInProgress))\n prepareToHydrateHostInstance(workInProgress, nextResource);\n else {\n var ownerDocument = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n );\n switch (nextResource) {\n case 1:\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/2000/svg\",\n type\n );\n break;\n case 2:\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n type\n );\n break;\n default:\n switch (type) {\n case \"svg\":\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/2000/svg\",\n type\n );\n break;\n case \"math\":\n nextResource = ownerDocument.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n type\n );\n break;\n case \"script\":\n nextResource = ownerDocument.createElement(\"div\");\n nextResource.innerHTML = \"<script>\\x3c/script>\";\n nextResource = nextResource.removeChild(\n nextResource.firstChild\n );\n break;\n case \"select\":\n nextResource =\n \"string\" === typeof newProps.is\n ? ownerDocument.createElement(\"select\", {\n is: newProps.is\n })\n : ownerDocument.createElement(\"select\");\n newProps.multiple\n ? (nextResource.multiple = !0)\n : newProps.size && (nextResource.size = newProps.size);\n break;\n default:\n nextResource =\n \"string\" === typeof newProps.is\n ? ownerDocument.createElement(type, { is: newProps.is })\n : ownerDocument.createElement(type);\n }\n }\n nextResource[internalInstanceKey] = workInProgress;\n nextResource[internalPropsKey] = newProps;\n a: for (\n ownerDocument = workInProgress.child;\n null !== ownerDocument;\n\n ) {\n if (5 === ownerDocument.tag || 6 === ownerDocument.tag)\n nextResource.appendChild(ownerDocument.stateNode);\n else if (\n 4 !== ownerDocument.tag &&\n 27 !== ownerDocument.tag &&\n null !== ownerDocument.child\n ) {\n ownerDocument.child.return = ownerDocument;\n ownerDocument = ownerDocument.child;\n continue;\n }\n if (ownerDocument === workInProgress) break a;\n for (; null === ownerDocument.sibling; ) {\n if (\n null === ownerDocument.return ||\n ownerDocument.return === workInProgress\n )\n break a;\n ownerDocument = ownerDocument.return;\n }\n ownerDocument.sibling.return = ownerDocument.return;\n ownerDocument = ownerDocument.sibling;\n }\n workInProgress.stateNode = nextResource;\n a: switch (\n (setInitialProperties(nextResource, type, newProps), type)\n ) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n newProps = !!newProps.autoFocus;\n break a;\n case \"img\":\n newProps = !0;\n break a;\n default:\n newProps = !1;\n }\n newProps && markUpdate(workInProgress);\n }\n }\n bubbleProperties(workInProgress);\n preloadInstanceAndSuspendIfNeeded(\n workInProgress,\n workInProgress.type,\n null === current ? null : current.memoizedProps,\n workInProgress.pendingProps,\n renderLanes\n );\n return null;\n case 6:\n if (current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (\"string\" !== typeof newProps && null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n current = rootInstanceStackCursor.current;\n if (popHydrationState(workInProgress)) {\n current = workInProgress.stateNode;\n renderLanes = workInProgress.memoizedProps;\n newProps = null;\n type = hydrationParentFiber;\n if (null !== type)\n switch (type.tag) {\n case 27:\n case 5:\n newProps = type.memoizedProps;\n }\n current[internalInstanceKey] = workInProgress;\n current =\n current.nodeValue === renderLanes ||\n (null !== newProps && !0 === newProps.suppressHydrationWarning) ||\n checkForUnmatchedText(current.nodeValue, renderLanes)\n ? !0\n : !1;\n current || throwOnHydrationMismatch(workInProgress, !0);\n } else\n (current =\n getOwnerDocumentFromRootContainer(current).createTextNode(\n newProps\n )),\n (current[internalInstanceKey] = workInProgress),\n (workInProgress.stateNode = current);\n }\n bubbleProperties(workInProgress);\n return null;\n case 31:\n renderLanes = workInProgress.memoizedState;\n if (null === current || null !== current.memoizedState) {\n newProps = popHydrationState(workInProgress);\n if (null !== renderLanes) {\n if (null === current) {\n if (!newProps) throw Error(formatProdErrorMessage(318));\n current = workInProgress.memoizedState;\n current = null !== current ? current.dehydrated : null;\n if (!current) throw Error(formatProdErrorMessage(557));\n current[internalInstanceKey] = workInProgress;\n } else\n resetHydrationState(),\n 0 === (workInProgress.flags & 128) &&\n (workInProgress.memoizedState = null),\n (workInProgress.flags |= 4);\n bubbleProperties(workInProgress);\n current = !1;\n } else\n (renderLanes = upgradeHydrationErrorsToRecoverable()),\n null !== current &&\n null !== current.memoizedState &&\n (current.memoizedState.hydrationErrors = renderLanes),\n (current = !0);\n if (!current) {\n if (workInProgress.flags & 256)\n return popSuspenseHandler(workInProgress), workInProgress;\n popSuspenseHandler(workInProgress);\n return null;\n }\n if (0 !== (workInProgress.flags & 128))\n throw Error(formatProdErrorMessage(558));\n }\n bubbleProperties(workInProgress);\n return null;\n case 13:\n newProps = workInProgress.memoizedState;\n if (\n null === current ||\n (null !== current.memoizedState &&\n null !== current.memoizedState.dehydrated)\n ) {\n type = popHydrationState(workInProgress);\n if (null !== newProps && null !== newProps.dehydrated) {\n if (null === current) {\n if (!type) throw Error(formatProdErrorMessage(318));\n type = workInProgress.memoizedState;\n type = null !== type ? type.dehydrated : null;\n if (!type) throw Error(formatProdErrorMessage(317));\n type[internalInstanceKey] = workInProgress;\n } else\n resetHydrationState(),\n 0 === (workInProgress.flags & 128) &&\n (workInProgress.memoizedState = null),\n (workInProgress.flags |= 4);\n bubbleProperties(workInProgress);\n type = !1;\n } else\n (type = upgradeHydrationErrorsToRecoverable()),\n null !== current &&\n null !== current.memoizedState &&\n (current.memoizedState.hydrationErrors = type),\n (type = !0);\n if (!type) {\n if (workInProgress.flags & 256)\n return popSuspenseHandler(workInProgress), workInProgress;\n popSuspenseHandler(workInProgress);\n return null;\n }\n }\n popSuspenseHandler(workInProgress);\n if (0 !== (workInProgress.flags & 128))\n return (workInProgress.lanes = renderLanes), workInProgress;\n renderLanes = null !== newProps;\n current = null !== current && null !== current.memoizedState;\n renderLanes &&\n ((newProps = workInProgress.child),\n (type = null),\n null !== newProps.alternate &&\n null !== newProps.alternate.memoizedState &&\n null !== newProps.alternate.memoizedState.cachePool &&\n (type = newProps.alternate.memoizedState.cachePool.pool),\n (nextResource = null),\n null !== newProps.memoizedState &&\n null !== newProps.memoizedState.cachePool &&\n (nextResource = newProps.memoizedState.cachePool.pool),\n nextResource !== type && (newProps.flags |= 2048));\n renderLanes !== current &&\n renderLanes &&\n (workInProgress.child.flags |= 8192);\n scheduleRetryEffect(workInProgress, workInProgress.updateQueue);\n bubbleProperties(workInProgress);\n return null;\n case 4:\n return (\n popHostContainer(),\n null === current &&\n listenToAllSupportedEvents(workInProgress.stateNode.containerInfo),\n bubbleProperties(workInProgress),\n null\n );\n case 10:\n return (\n popProvider(workInProgress.type), bubbleProperties(workInProgress), null\n );\n case 19:\n pop(suspenseStackCursor);\n newProps = workInProgress.memoizedState;\n if (null === newProps) return bubbleProperties(workInProgress), null;\n type = 0 !== (workInProgress.flags & 128);\n nextResource = newProps.rendering;\n if (null === nextResource)\n if (type) cutOffTailIfNeeded(newProps, !1);\n else {\n if (\n 0 !== workInProgressRootExitStatus ||\n (null !== current && 0 !== (current.flags & 128))\n )\n for (current = workInProgress.child; null !== current; ) {\n nextResource = findFirstSuspended(current);\n if (null !== nextResource) {\n workInProgress.flags |= 128;\n cutOffTailIfNeeded(newProps, !1);\n current = nextResource.updateQueue;\n workInProgress.updateQueue = current;\n scheduleRetryEffect(workInProgress, current);\n workInProgress.subtreeFlags = 0;\n current = renderLanes;\n for (renderLanes = workInProgress.child; null !== renderLanes; )\n resetWorkInProgress(renderLanes, current),\n (renderLanes = renderLanes.sibling);\n push(\n suspenseStackCursor,\n (suspenseStackCursor.current & 1) | 2\n );\n isHydrating &&\n pushTreeFork(workInProgress, newProps.treeForkCount);\n return workInProgress.child;\n }\n current = current.sibling;\n }\n null !== newProps.tail &&\n now() > workInProgressRootRenderTargetTime &&\n ((workInProgress.flags |= 128),\n (type = !0),\n cutOffTailIfNeeded(newProps, !1),\n (workInProgress.lanes = 4194304));\n }\n else {\n if (!type)\n if (\n ((current = findFirstSuspended(nextResource)), null !== current)\n ) {\n if (\n ((workInProgress.flags |= 128),\n (type = !0),\n (current = current.updateQueue),\n (workInProgress.updateQueue = current),\n scheduleRetryEffect(workInProgress, current),\n cutOffTailIfNeeded(newProps, !0),\n null === newProps.tail &&\n \"hidden\" === newProps.tailMode &&\n !nextResource.alternate &&\n !isHydrating)\n )\n return bubbleProperties(workInProgress), null;\n } else\n 2 * now() - newProps.renderingStartTime >\n workInProgressRootRenderTargetTime &&\n 536870912 !== renderLanes &&\n ((workInProgress.flags |= 128),\n (type = !0),\n cutOffTailIfNeeded(newProps, !1),\n (workInProgress.lanes = 4194304));\n newProps.isBackwards\n ? ((nextResource.sibling = workInProgress.child),\n (workInProgress.child = nextResource))\n : ((current = newProps.last),\n null !== current\n ? (current.sibling = nextResource)\n : (workInProgress.child = nextResource),\n (newProps.last = nextResource));\n }\n if (null !== newProps.tail)\n return (\n (current = newProps.tail),\n (newProps.rendering = current),\n (newProps.tail = current.sibling),\n (newProps.renderingStartTime = now()),\n (current.sibling = null),\n (renderLanes = suspenseStackCursor.current),\n push(\n suspenseStackCursor,\n type ? (renderLanes & 1) | 2 : renderLanes & 1\n ),\n isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount),\n current\n );\n bubbleProperties(workInProgress);\n return null;\n case 22:\n case 23:\n return (\n popSuspenseHandler(workInProgress),\n popHiddenContext(),\n (newProps = null !== workInProgress.memoizedState),\n null !== current\n ? (null !== current.memoizedState) !== newProps &&\n (workInProgress.flags |= 8192)\n : newProps && (workInProgress.flags |= 8192),\n newProps\n ? 0 !== (renderLanes & 536870912) &&\n 0 === (workInProgress.flags & 128) &&\n (bubbleProperties(workInProgress),\n workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192))\n : bubbleProperties(workInProgress),\n (renderLanes = workInProgress.updateQueue),\n null !== renderLanes &&\n scheduleRetryEffect(workInProgress, renderLanes.retryQueue),\n (renderLanes = null),\n null !== current &&\n null !== current.memoizedState &&\n null !== current.memoizedState.cachePool &&\n (renderLanes = current.memoizedState.cachePool.pool),\n (newProps = null),\n null !== workInProgress.memoizedState &&\n null !== workInProgress.memoizedState.cachePool &&\n (newProps = workInProgress.memoizedState.cachePool.pool),\n newProps !== renderLanes && (workInProgress.flags |= 2048),\n null !== current && pop(resumedCache),\n null\n );\n case 24:\n return (\n (renderLanes = null),\n null !== current && (renderLanes = current.memoizedState.cache),\n workInProgress.memoizedState.cache !== renderLanes &&\n (workInProgress.flags |= 2048),\n popProvider(CacheContext),\n bubbleProperties(workInProgress),\n null\n );\n case 25:\n return null;\n case 30:\n return null;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nfunction unwindWork(current, workInProgress) {\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 1:\n return (\n (current = workInProgress.flags),\n current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 3:\n return (\n popProvider(CacheContext),\n popHostContainer(),\n (current = workInProgress.flags),\n 0 !== (current & 65536) && 0 === (current & 128)\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 26:\n case 27:\n case 5:\n return popHostContext(workInProgress), null;\n case 31:\n if (null !== workInProgress.memoizedState) {\n popSuspenseHandler(workInProgress);\n if (null === workInProgress.alternate)\n throw Error(formatProdErrorMessage(340));\n resetHydrationState();\n }\n current = workInProgress.flags;\n return current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null;\n case 13:\n popSuspenseHandler(workInProgress);\n current = workInProgress.memoizedState;\n if (null !== current && null !== current.dehydrated) {\n if (null === workInProgress.alternate)\n throw Error(formatProdErrorMessage(340));\n resetHydrationState();\n }\n current = workInProgress.flags;\n return current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null;\n case 19:\n return pop(suspenseStackCursor), null;\n case 4:\n return popHostContainer(), null;\n case 10:\n return popProvider(workInProgress.type), null;\n case 22:\n case 23:\n return (\n popSuspenseHandler(workInProgress),\n popHiddenContext(),\n null !== current && pop(resumedCache),\n (current = workInProgress.flags),\n current & 65536\n ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)\n : null\n );\n case 24:\n return popProvider(CacheContext), null;\n case 25:\n return null;\n default:\n return null;\n }\n}\nfunction unwindInterruptedWork(current, interruptedWork) {\n popTreeContext(interruptedWork);\n switch (interruptedWork.tag) {\n case 3:\n popProvider(CacheContext);\n popHostContainer();\n break;\n case 26:\n case 27:\n case 5:\n popHostContext(interruptedWork);\n break;\n case 4:\n popHostContainer();\n break;\n case 31:\n null !== interruptedWork.memoizedState &&\n popSuspenseHandler(interruptedWork);\n break;\n case 13:\n popSuspenseHandler(interruptedWork);\n break;\n case 19:\n pop(suspenseStackCursor);\n break;\n case 10:\n popProvider(interruptedWork.type);\n break;\n case 22:\n case 23:\n popSuspenseHandler(interruptedWork);\n popHiddenContext();\n null !== current && pop(resumedCache);\n break;\n case 24:\n popProvider(CacheContext);\n }\n}\nfunction commitHookEffectListMount(flags, finishedWork) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n lastEffect = void 0;\n var create = updateQueue.create,\n inst = updateQueue.inst;\n lastEffect = create();\n inst.destroy = lastEffect;\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHookEffectListUnmount(\n flags,\n finishedWork,\n nearestMountedAncestor$jscomp$0\n) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n var inst = updateQueue.inst,\n destroy = inst.destroy;\n if (void 0 !== destroy) {\n inst.destroy = void 0;\n lastEffect = finishedWork;\n var nearestMountedAncestor = nearestMountedAncestor$jscomp$0,\n destroy_ = destroy;\n try {\n destroy_();\n } catch (error) {\n captureCommitPhaseError(\n lastEffect,\n nearestMountedAncestor,\n error\n );\n }\n }\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitClassCallbacks(finishedWork) {\n var updateQueue = finishedWork.updateQueue;\n if (null !== updateQueue) {\n var instance = finishedWork.stateNode;\n try {\n commitCallbacks(updateQueue, instance);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n}\nfunction safelyCallComponentWillUnmount(\n current,\n nearestMountedAncestor,\n instance\n) {\n instance.props = resolveClassComponentProps(\n current.type,\n current.memoizedProps\n );\n instance.state = current.memoizedState;\n try {\n instance.componentWillUnmount();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n try {\n var ref = current.ref;\n if (null !== ref) {\n switch (current.tag) {\n case 26:\n case 27:\n case 5:\n var instanceToUse = current.stateNode;\n break;\n case 30:\n instanceToUse = current.stateNode;\n break;\n default:\n instanceToUse = current.stateNode;\n }\n \"function\" === typeof ref\n ? (current.refCleanup = ref(instanceToUse))\n : (ref.current = instanceToUse);\n }\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n var ref = current.ref,\n refCleanup = current.refCleanup;\n if (null !== ref)\n if (\"function\" === typeof refCleanup)\n try {\n refCleanup();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n } finally {\n (current.refCleanup = null),\n (current = current.alternate),\n null != current && (current.refCleanup = null);\n }\n else if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (error$140) {\n captureCommitPhaseError(current, nearestMountedAncestor, error$140);\n }\n else ref.current = null;\n}\nfunction commitHostMount(finishedWork) {\n var type = finishedWork.type,\n props = finishedWork.memoizedProps,\n instance = finishedWork.stateNode;\n try {\n a: switch (type) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n props.autoFocus && instance.focus();\n break a;\n case \"img\":\n props.src\n ? (instance.src = props.src)\n : props.srcSet && (instance.srcset = props.srcSet);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHostUpdate(finishedWork, newProps, oldProps) {\n try {\n var domElement = finishedWork.stateNode;\n updateProperties(domElement, finishedWork.type, oldProps, newProps);\n domElement[internalPropsKey] = newProps;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction isHostParent(fiber) {\n return (\n 5 === fiber.tag ||\n 3 === fiber.tag ||\n 26 === fiber.tag ||\n (27 === fiber.tag && isSingletonScope(fiber.type)) ||\n 4 === fiber.tag\n );\n}\nfunction getHostSibling(fiber) {\n a: for (;;) {\n for (; null === fiber.sibling; ) {\n if (null === fiber.return || isHostParent(fiber.return)) return null;\n fiber = fiber.return;\n }\n fiber.sibling.return = fiber.return;\n for (\n fiber = fiber.sibling;\n 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;\n\n ) {\n if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;\n if (fiber.flags & 2) continue a;\n if (null === fiber.child || 4 === fiber.tag) continue a;\n else (fiber.child.return = fiber), (fiber = fiber.child);\n }\n if (!(fiber.flags & 2)) return fiber.stateNode;\n }\n}\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before\n ? (9 === parent.nodeType\n ? parent.body\n : \"HTML\" === parent.nodeName\n ? parent.ownerDocument.body\n : parent\n ).insertBefore(node, before)\n : ((before =\n 9 === parent.nodeType\n ? parent.body\n : \"HTML\" === parent.nodeName\n ? parent.ownerDocument.body\n : parent),\n before.appendChild(node),\n (parent = parent._reactRootContainer),\n (null !== parent && void 0 !== parent) ||\n null !== before.onclick ||\n (before.onclick = noop$1));\n else if (\n 4 !== tag &&\n (27 === tag &&\n isSingletonScope(node.type) &&\n ((parent = node.stateNode), (before = null)),\n (node = node.child),\n null !== node)\n )\n for (\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n (node = node.sibling);\n}\nfunction insertOrAppendPlacementNode(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before ? parent.insertBefore(node, before) : parent.appendChild(node);\n else if (\n 4 !== tag &&\n (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),\n (node = node.child),\n null !== node)\n )\n for (\n insertOrAppendPlacementNode(node, before, parent), node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNode(node, before, parent), (node = node.sibling);\n}\nfunction commitHostSingletonAcquisition(finishedWork) {\n var singleton = finishedWork.stateNode,\n props = finishedWork.memoizedProps;\n try {\n for (\n var type = finishedWork.type, attributes = singleton.attributes;\n attributes.length;\n\n )\n singleton.removeAttributeNode(attributes[0]);\n setInitialProperties(singleton, type, props);\n singleton[internalInstanceKey] = finishedWork;\n singleton[internalPropsKey] = props;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nvar offscreenSubtreeIsHidden = !1,\n offscreenSubtreeWasHidden = !1,\n needsFormReset = !1,\n PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set,\n nextEffect = null;\nfunction commitBeforeMutationEffects(root, firstChild) {\n root = root.containerInfo;\n eventsEnabled = _enabled;\n root = getActiveElementDeep(root);\n if (hasSelectionCapabilities(root)) {\n if (\"selectionStart\" in root)\n var JSCompiler_temp = {\n start: root.selectionStart,\n end: root.selectionEnd\n };\n else\n a: {\n JSCompiler_temp =\n ((JSCompiler_temp = root.ownerDocument) &&\n JSCompiler_temp.defaultView) ||\n window;\n var selection =\n JSCompiler_temp.getSelection && JSCompiler_temp.getSelection();\n if (selection && 0 !== selection.rangeCount) {\n JSCompiler_temp = selection.anchorNode;\n var anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode;\n selection = selection.focusOffset;\n try {\n JSCompiler_temp.nodeType, focusNode.nodeType;\n } catch (e$20) {\n JSCompiler_temp = null;\n break a;\n }\n var length = 0,\n start = -1,\n end = -1,\n indexWithinAnchor = 0,\n indexWithinFocus = 0,\n node = root,\n parentNode = null;\n b: for (;;) {\n for (var next; ; ) {\n node !== JSCompiler_temp ||\n (0 !== anchorOffset && 3 !== node.nodeType) ||\n (start = length + anchorOffset);\n node !== focusNode ||\n (0 !== selection && 3 !== node.nodeType) ||\n (end = length + selection);\n 3 === node.nodeType && (length += node.nodeValue.length);\n if (null === (next = node.firstChild)) break;\n parentNode = node;\n node = next;\n }\n for (;;) {\n if (node === root) break b;\n parentNode === JSCompiler_temp &&\n ++indexWithinAnchor === anchorOffset &&\n (start = length);\n parentNode === focusNode &&\n ++indexWithinFocus === selection &&\n (end = length);\n if (null !== (next = node.nextSibling)) break;\n node = parentNode;\n parentNode = node.parentNode;\n }\n node = next;\n }\n JSCompiler_temp =\n -1 === start || -1 === end ? null : { start: start, end: end };\n } else JSCompiler_temp = null;\n }\n JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };\n } else JSCompiler_temp = null;\n selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };\n _enabled = !1;\n for (nextEffect = firstChild; null !== nextEffect; )\n if (\n ((firstChild = nextEffect),\n (root = firstChild.child),\n 0 !== (firstChild.subtreeFlags & 1028) && null !== root)\n )\n (root.return = firstChild), (nextEffect = root);\n else\n for (; null !== nextEffect; ) {\n firstChild = nextEffect;\n focusNode = firstChild.alternate;\n root = firstChild.flags;\n switch (firstChild.tag) {\n case 0:\n if (\n 0 !== (root & 4) &&\n ((root = firstChild.updateQueue),\n (root = null !== root ? root.events : null),\n null !== root)\n )\n for (\n JSCompiler_temp = 0;\n JSCompiler_temp < root.length;\n JSCompiler_temp++\n )\n (anchorOffset = root[JSCompiler_temp]),\n (anchorOffset.ref.impl = anchorOffset.nextImpl);\n break;\n case 11:\n case 15:\n break;\n case 1:\n if (0 !== (root & 1024) && null !== focusNode) {\n root = void 0;\n JSCompiler_temp = firstChild;\n anchorOffset = focusNode.memoizedProps;\n focusNode = focusNode.memoizedState;\n selection = JSCompiler_temp.stateNode;\n try {\n var resolvedPrevProps = resolveClassComponentProps(\n JSCompiler_temp.type,\n anchorOffset\n );\n root = selection.getSnapshotBeforeUpdate(\n resolvedPrevProps,\n focusNode\n );\n selection.__reactInternalSnapshotBeforeUpdate = root;\n } catch (error) {\n captureCommitPhaseError(\n JSCompiler_temp,\n JSCompiler_temp.return,\n error\n );\n }\n }\n break;\n case 3:\n if (0 !== (root & 1024))\n if (\n ((root = firstChild.stateNode.containerInfo),\n (JSCompiler_temp = root.nodeType),\n 9 === JSCompiler_temp)\n )\n clearContainerSparingly(root);\n else if (1 === JSCompiler_temp)\n switch (root.nodeName) {\n case \"HEAD\":\n case \"HTML\":\n case \"BODY\":\n clearContainerSparingly(root);\n break;\n default:\n root.textContent = \"\";\n }\n break;\n case 5:\n case 26:\n case 27:\n case 6:\n case 4:\n case 17:\n break;\n default:\n if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163));\n }\n root = firstChild.sibling;\n if (null !== root) {\n root.return = firstChild.return;\n nextEffect = root;\n break;\n }\n nextEffect = firstChild.return;\n }\n}\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitHookEffectListMount(5, finishedWork);\n break;\n case 1:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (flags & 4)\n if (((finishedRoot = finishedWork.stateNode), null === current))\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n else {\n var prevProps = resolveClassComponentProps(\n finishedWork.type,\n current.memoizedProps\n );\n current = current.memoizedState;\n try {\n finishedRoot.componentDidUpdate(\n prevProps,\n current,\n finishedRoot.__reactInternalSnapshotBeforeUpdate\n );\n } catch (error$139) {\n captureCommitPhaseError(\n finishedWork,\n finishedWork.return,\n error$139\n );\n }\n }\n flags & 64 && commitClassCallbacks(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (\n flags & 64 &&\n ((finishedRoot = finishedWork.updateQueue), null !== finishedRoot)\n ) {\n current = null;\n if (null !== finishedWork.child)\n switch (finishedWork.child.tag) {\n case 27:\n case 5:\n current = finishedWork.child.stateNode;\n break;\n case 1:\n current = finishedWork.child.stateNode;\n }\n try {\n commitCallbacks(finishedRoot, current);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 27:\n null === current &&\n flags & 4 &&\n commitHostSingletonAcquisition(finishedWork);\n case 26:\n case 5:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n null === current && flags & 4 && commitHostMount(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n break;\n case 31:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 13:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n flags & 64 &&\n ((finishedRoot = finishedWork.memoizedState),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.dehydrated),\n null !== finishedRoot &&\n ((finishedWork = retryDehydratedSuspenseBoundary.bind(\n null,\n finishedWork\n )),\n registerSuspenseInstanceRetry(finishedRoot, finishedWork))));\n break;\n case 22:\n flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden;\n if (!flags) {\n current =\n (null !== current && null !== current.memoizedState) ||\n offscreenSubtreeWasHidden;\n prevProps = offscreenSubtreeIsHidden;\n var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = flags;\n (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden\n ? recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n 0 !== (finishedWork.subtreeFlags & 8772)\n )\n : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n offscreenSubtreeIsHidden = prevProps;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n }\n break;\n case 30:\n break;\n default:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n }\n}\nfunction detachFiberAfterEffects(fiber) {\n var alternate = fiber.alternate;\n null !== alternate &&\n ((fiber.alternate = null), detachFiberAfterEffects(alternate));\n fiber.child = null;\n fiber.deletions = null;\n fiber.sibling = null;\n 5 === fiber.tag &&\n ((alternate = fiber.stateNode),\n null !== alternate && detachDeletedInstance(alternate));\n fiber.stateNode = null;\n fiber.return = null;\n fiber.dependencies = null;\n fiber.memoizedProps = null;\n fiber.memoizedState = null;\n fiber.pendingProps = null;\n fiber.stateNode = null;\n fiber.updateQueue = null;\n}\nvar hostParent = null,\n hostParentIsContainer = !1;\nfunction recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n parent\n) {\n for (parent = parent.child; null !== parent; )\n commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),\n (parent = parent.sibling);\n}\nfunction commitDeletionEffectsOnFiber(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n) {\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberUnmount)\n try {\n injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);\n } catch (err) {}\n switch (deletedFiber.tag) {\n case 26:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n deletedFiber.memoizedState\n ? deletedFiber.memoizedState.count--\n : deletedFiber.stateNode &&\n ((deletedFiber = deletedFiber.stateNode),\n deletedFiber.parentNode.removeChild(deletedFiber));\n break;\n case 27:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n var prevHostParent = hostParent,\n prevHostParentIsContainer = hostParentIsContainer;\n isSingletonScope(deletedFiber.type) &&\n ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1));\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n releaseSingletonInstance(deletedFiber.stateNode);\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 5:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n case 6:\n prevHostParent = hostParent;\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = null;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n if (null !== hostParent)\n if (hostParentIsContainer)\n try {\n (9 === hostParent.nodeType\n ? hostParent.body\n : \"HTML\" === hostParent.nodeName\n ? hostParent.ownerDocument.body\n : hostParent\n ).removeChild(deletedFiber.stateNode);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n else\n try {\n hostParent.removeChild(deletedFiber.stateNode);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n break;\n case 18:\n null !== hostParent &&\n (hostParentIsContainer\n ? ((finishedRoot = hostParent),\n clearHydrationBoundary(\n 9 === finishedRoot.nodeType\n ? finishedRoot.body\n : \"HTML\" === finishedRoot.nodeName\n ? finishedRoot.ownerDocument.body\n : finishedRoot,\n deletedFiber.stateNode\n ),\n retryIfBlockedOn(finishedRoot))\n : clearHydrationBoundary(hostParent, deletedFiber.stateNode));\n break;\n case 4:\n prevHostParent = hostParent;\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = deletedFiber.stateNode.containerInfo;\n hostParentIsContainer = !0;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);\n offscreenSubtreeWasHidden ||\n commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 1:\n offscreenSubtreeWasHidden ||\n (safelyDetachRef(deletedFiber, nearestMountedAncestor),\n (prevHostParent = deletedFiber.stateNode),\n \"function\" === typeof prevHostParent.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n deletedFiber,\n nearestMountedAncestor,\n prevHostParent\n ));\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 21:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 22:\n offscreenSubtreeWasHidden =\n (prevHostParent = offscreenSubtreeWasHidden) ||\n null !== deletedFiber.memoizedState;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n offscreenSubtreeWasHidden = prevHostParent;\n break;\n default:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n }\n}\nfunction commitActivityHydrationCallbacks(finishedRoot, finishedWork) {\n if (\n null === finishedWork.memoizedState &&\n ((finishedRoot = finishedWork.alternate),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.memoizedState), null !== finishedRoot))\n ) {\n finishedRoot = finishedRoot.dehydrated;\n try {\n retryIfBlockedOn(finishedRoot);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n}\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n if (\n null === finishedWork.memoizedState &&\n ((finishedRoot = finishedWork.alternate),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.memoizedState),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.dehydrated), null !== finishedRoot)))\n )\n try {\n retryIfBlockedOn(finishedRoot);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction getRetryCache(finishedWork) {\n switch (finishedWork.tag) {\n case 31:\n case 13:\n case 19:\n var retryCache = finishedWork.stateNode;\n null === retryCache &&\n (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n return retryCache;\n case 22:\n return (\n (finishedWork = finishedWork.stateNode),\n (retryCache = finishedWork._retryCache),\n null === retryCache &&\n (retryCache = finishedWork._retryCache = new PossiblyWeakSet()),\n retryCache\n );\n default:\n throw Error(formatProdErrorMessage(435, finishedWork.tag));\n }\n}\nfunction attachSuspenseRetryListeners(finishedWork, wakeables) {\n var retryCache = getRetryCache(finishedWork);\n wakeables.forEach(function (wakeable) {\n if (!retryCache.has(wakeable)) {\n retryCache.add(wakeable);\n var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n wakeable.then(retry, retry);\n }\n });\n}\nfunction recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {\n var deletions = parentFiber.deletions;\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i],\n root = root$jscomp$0,\n returnFiber = parentFiber,\n parent = returnFiber;\n a: for (; null !== parent; ) {\n switch (parent.tag) {\n case 27:\n if (isSingletonScope(parent.type)) {\n hostParent = parent.stateNode;\n hostParentIsContainer = !1;\n break a;\n }\n break;\n case 5:\n hostParent = parent.stateNode;\n hostParentIsContainer = !1;\n break a;\n case 3:\n case 4:\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = !0;\n break a;\n }\n parent = parent.return;\n }\n if (null === hostParent) throw Error(formatProdErrorMessage(160));\n commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);\n hostParent = null;\n hostParentIsContainer = !1;\n root = childToDelete.alternate;\n null !== root && (root.return = null);\n childToDelete.return = null;\n }\n if (parentFiber.subtreeFlags & 13886)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitMutationEffectsOnFiber(parentFiber, root$jscomp$0),\n (parentFiber = parentFiber.sibling);\n}\nvar currentHoistableRoot = null;\nfunction commitMutationEffectsOnFiber(finishedWork, root) {\n var current = finishedWork.alternate,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n (commitHookEffectListUnmount(3, finishedWork, finishedWork.return),\n commitHookEffectListMount(3, finishedWork),\n commitHookEffectListUnmount(5, finishedWork, finishedWork.return));\n break;\n case 1:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n flags & 64 &&\n offscreenSubtreeIsHidden &&\n ((finishedWork = finishedWork.updateQueue),\n null !== finishedWork &&\n ((flags = finishedWork.callbacks),\n null !== flags &&\n ((current = finishedWork.shared.hiddenCallbacks),\n (finishedWork.shared.hiddenCallbacks =\n null === current ? flags : current.concat(flags)))));\n break;\n case 26:\n var hoistableRoot = currentHoistableRoot;\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n if (flags & 4) {\n var currentResource = null !== current ? current.memoizedState : null;\n flags = finishedWork.memoizedState;\n if (null === current)\n if (null === flags)\n if (null === finishedWork.stateNode) {\n a: {\n flags = finishedWork.type;\n current = finishedWork.memoizedProps;\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n b: switch (flags) {\n case \"title\":\n currentResource =\n hoistableRoot.getElementsByTagName(\"title\")[0];\n if (\n !currentResource ||\n currentResource[internalHoistableMarker] ||\n currentResource[internalInstanceKey] ||\n \"http://www.w3.org/2000/svg\" ===\n currentResource.namespaceURI ||\n currentResource.hasAttribute(\"itemprop\")\n )\n (currentResource = hoistableRoot.createElement(flags)),\n hoistableRoot.head.insertBefore(\n currentResource,\n hoistableRoot.querySelector(\"head > title\")\n );\n setInitialProperties(currentResource, flags, current);\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n break a;\n case \"link\":\n var maybeNodes = getHydratableHoistableCache(\n \"link\",\n \"href\",\n hoistableRoot\n ).get(flags + (current.href || \"\"));\n if (maybeNodes)\n for (var i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"href\") ===\n (null == current.href || \"\" === current.href\n ? null\n : current.href) &&\n currentResource.getAttribute(\"rel\") ===\n (null == current.rel ? null : current.rel) &&\n currentResource.getAttribute(\"title\") ===\n (null == current.title ? null : current.title) &&\n currentResource.getAttribute(\"crossorigin\") ===\n (null == current.crossOrigin\n ? null\n : current.crossOrigin))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n case \"meta\":\n if (\n (maybeNodes = getHydratableHoistableCache(\n \"meta\",\n \"content\",\n hoistableRoot\n ).get(flags + (current.content || \"\")))\n )\n for (i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"content\") ===\n (null == current.content\n ? null\n : \"\" + current.content) &&\n currentResource.getAttribute(\"name\") ===\n (null == current.name ? null : current.name) &&\n currentResource.getAttribute(\"property\") ===\n (null == current.property\n ? null\n : current.property) &&\n currentResource.getAttribute(\"http-equiv\") ===\n (null == current.httpEquiv\n ? null\n : current.httpEquiv) &&\n currentResource.getAttribute(\"charset\") ===\n (null == current.charSet\n ? null\n : current.charSet))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n default:\n throw Error(formatProdErrorMessage(468, flags));\n }\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n }\n finishedWork.stateNode = flags;\n } else\n mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n );\n else\n finishedWork.stateNode = acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n );\n else\n currentResource !== flags\n ? (null === currentResource\n ? null !== current.stateNode &&\n ((current = current.stateNode),\n current.parentNode.removeChild(current))\n : currentResource.count--,\n null === flags\n ? mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n )\n : acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n ))\n : null === flags &&\n null !== finishedWork.stateNode &&\n commitHostUpdate(\n finishedWork,\n finishedWork.memoizedProps,\n current.memoizedProps\n );\n }\n break;\n case 27:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n null !== current &&\n flags & 4 &&\n commitHostUpdate(\n finishedWork,\n finishedWork.memoizedProps,\n current.memoizedProps\n );\n break;\n case 5:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n (offscreenSubtreeWasHidden ||\n null === current ||\n safelyDetachRef(current, current.return));\n if (finishedWork.flags & 32) {\n hoistableRoot = finishedWork.stateNode;\n try {\n setTextContent(hoistableRoot, \"\");\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n flags & 4 &&\n null != finishedWork.stateNode &&\n ((hoistableRoot = finishedWork.memoizedProps),\n commitHostUpdate(\n finishedWork,\n hoistableRoot,\n null !== current ? current.memoizedProps : hoistableRoot\n ));\n flags & 1024 && (needsFormReset = !0);\n break;\n case 6:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n if (flags & 4) {\n if (null === finishedWork.stateNode)\n throw Error(formatProdErrorMessage(162));\n flags = finishedWork.memoizedProps;\n current = finishedWork.stateNode;\n try {\n current.nodeValue = flags;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 3:\n tagCaches = null;\n hoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(root.containerInfo);\n recursivelyTraverseMutationEffects(root, finishedWork);\n currentHoistableRoot = hoistableRoot;\n commitReconciliationEffects(finishedWork);\n if (flags & 4 && null !== current && current.memoizedState.isDehydrated)\n try {\n retryIfBlockedOn(root.containerInfo);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n needsFormReset &&\n ((needsFormReset = !1), recursivelyResetForms(finishedWork));\n break;\n case 4:\n flags = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(\n finishedWork.stateNode.containerInfo\n );\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n currentHoistableRoot = flags;\n break;\n case 12:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n break;\n case 31:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 13:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n finishedWork.child.flags & 8192 &&\n (null !== finishedWork.memoizedState) !==\n (null !== current && null !== current.memoizedState) &&\n (globalMostRecentFallbackTime = now());\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 22:\n hoistableRoot = null !== finishedWork.memoizedState;\n var wasHidden = null !== current && null !== current.memoizedState,\n prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,\n prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;\n recursivelyTraverseMutationEffects(root, finishedWork);\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n commitReconciliationEffects(finishedWork);\n if (flags & 8192)\n a: for (\n root = finishedWork.stateNode,\n root._visibility = hoistableRoot\n ? root._visibility & -2\n : root._visibility | 1,\n hoistableRoot &&\n (null === current ||\n wasHidden ||\n offscreenSubtreeIsHidden ||\n offscreenSubtreeWasHidden ||\n recursivelyTraverseDisappearLayoutEffects(finishedWork)),\n current = null,\n root = finishedWork;\n ;\n\n ) {\n if (5 === root.tag || 26 === root.tag) {\n if (null === current) {\n wasHidden = current = root;\n try {\n if (((currentResource = wasHidden.stateNode), hoistableRoot))\n (maybeNodes = currentResource.style),\n \"function\" === typeof maybeNodes.setProperty\n ? maybeNodes.setProperty(\"display\", \"none\", \"important\")\n : (maybeNodes.display = \"none\");\n else {\n i = wasHidden.stateNode;\n var styleProp = wasHidden.memoizedProps.style,\n display =\n void 0 !== styleProp &&\n null !== styleProp &&\n styleProp.hasOwnProperty(\"display\")\n ? styleProp.display\n : null;\n i.style.display =\n null == display || \"boolean\" === typeof display\n ? \"\"\n : (\"\" + display).trim();\n }\n } catch (error) {\n captureCommitPhaseError(wasHidden, wasHidden.return, error);\n }\n }\n } else if (6 === root.tag) {\n if (null === current) {\n wasHidden = root;\n try {\n wasHidden.stateNode.nodeValue = hoistableRoot\n ? \"\"\n : wasHidden.memoizedProps;\n } catch (error) {\n captureCommitPhaseError(wasHidden, wasHidden.return, error);\n }\n }\n } else if (18 === root.tag) {\n if (null === current) {\n wasHidden = root;\n try {\n var instance = wasHidden.stateNode;\n hoistableRoot\n ? hideOrUnhideDehydratedBoundary(instance, !0)\n : hideOrUnhideDehydratedBoundary(wasHidden.stateNode, !1);\n } catch (error) {\n captureCommitPhaseError(wasHidden, wasHidden.return, error);\n }\n }\n } else if (\n ((22 !== root.tag && 23 !== root.tag) ||\n null === root.memoizedState ||\n root === finishedWork) &&\n null !== root.child\n ) {\n root.child.return = root;\n root = root.child;\n continue;\n }\n if (root === finishedWork) break a;\n for (; null === root.sibling; ) {\n if (null === root.return || root.return === finishedWork) break a;\n current === root && (current = null);\n root = root.return;\n }\n current === root && (current = null);\n root.sibling.return = root.return;\n root = root.sibling;\n }\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((current = flags.retryQueue),\n null !== current &&\n ((flags.retryQueue = null),\n attachSuspenseRetryListeners(finishedWork, current))));\n break;\n case 19:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 30:\n break;\n case 21:\n break;\n default:\n recursivelyTraverseMutationEffects(root, finishedWork),\n commitReconciliationEffects(finishedWork);\n }\n}\nfunction commitReconciliationEffects(finishedWork) {\n var flags = finishedWork.flags;\n if (flags & 2) {\n try {\n for (\n var hostParentFiber, parentFiber = finishedWork.return;\n null !== parentFiber;\n\n ) {\n if (isHostParent(parentFiber)) {\n hostParentFiber = parentFiber;\n break;\n }\n parentFiber = parentFiber.return;\n }\n if (null == hostParentFiber) throw Error(formatProdErrorMessage(160));\n switch (hostParentFiber.tag) {\n case 27:\n var parent = hostParentFiber.stateNode,\n before = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before, parent);\n break;\n case 5:\n var parent$141 = hostParentFiber.stateNode;\n hostParentFiber.flags & 32 &&\n (setTextContent(parent$141, \"\"), (hostParentFiber.flags &= -33));\n var before$142 = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before$142, parent$141);\n break;\n case 3:\n case 4:\n var parent$143 = hostParentFiber.stateNode.containerInfo,\n before$144 = getHostSibling(finishedWork);\n insertOrAppendPlacementNodeIntoContainer(\n finishedWork,\n before$144,\n parent$143\n );\n break;\n default:\n throw Error(formatProdErrorMessage(161));\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n finishedWork.flags &= -3;\n }\n flags & 4096 && (finishedWork.flags &= -4097);\n}\nfunction recursivelyResetForms(parentFiber) {\n if (parentFiber.subtreeFlags & 1024)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var fiber = parentFiber;\n recursivelyResetForms(fiber);\n 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset();\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseLayoutEffects(root, parentFiber) {\n if (parentFiber.subtreeFlags & 8772)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction recursivelyTraverseDisappearLayoutEffects(parentFiber) {\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedWork = parentFiber;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectListUnmount(4, finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 1:\n safelyDetachRef(finishedWork, finishedWork.return);\n var instance = finishedWork.stateNode;\n \"function\" === typeof instance.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n finishedWork,\n finishedWork.return,\n instance\n );\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 27:\n releaseSingletonInstance(finishedWork.stateNode);\n case 26:\n case 5:\n safelyDetachRef(finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 22:\n null === finishedWork.memoizedState &&\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 30:\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n default:\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseReappearLayoutEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var current = parentFiber.alternate,\n finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(4, finishedWork);\n break;\n case 1:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n current = finishedWork;\n finishedRoot = current.stateNode;\n if (\"function\" === typeof finishedRoot.componentDidMount)\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n current = finishedWork;\n finishedRoot = current.updateQueue;\n if (null !== finishedRoot) {\n var instance = current.stateNode;\n try {\n var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;\n if (null !== hiddenCallbacks)\n for (\n finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0;\n finishedRoot < hiddenCallbacks.length;\n finishedRoot++\n )\n callCallback(hiddenCallbacks[finishedRoot], instance);\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n }\n includeWorkInProgressEffects &&\n flags & 64 &&\n commitClassCallbacks(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 27:\n commitHostSingletonAcquisition(finishedWork);\n case 26:\n case 5:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n null === current &&\n flags & 4 &&\n commitHostMount(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n break;\n case 31:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 4 &&\n commitActivityHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 13:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 4 &&\n commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 22:\n null === finishedWork.memoizedState &&\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 30:\n break;\n default:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitOffscreenPassiveMountEffects(current, finishedWork) {\n var previousCache = null;\n null !== current &&\n null !== current.memoizedState &&\n null !== current.memoizedState.cachePool &&\n (previousCache = current.memoizedState.cachePool.pool);\n current = null;\n null !== finishedWork.memoizedState &&\n null !== finishedWork.memoizedState.cachePool &&\n (current = finishedWork.memoizedState.cachePool.pool);\n current !== previousCache &&\n (null != current && current.refCount++,\n null != previousCache && releaseCache(previousCache));\n}\nfunction commitCachePassiveMountEffect(current, finishedWork) {\n current = null;\n null !== finishedWork.alternate &&\n (current = finishedWork.alternate.memoizedState.cache);\n finishedWork = finishedWork.memoizedState.cache;\n finishedWork !== current &&\n (finishedWork.refCount++, null != current && releaseCache(current));\n}\nfunction recursivelyTraversePassiveMountEffects(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveMountOnFiber(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n ),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveMountOnFiber(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 && commitHookEffectListMount(9, finishedWork);\n break;\n case 1:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 3:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n ((finishedRoot = null),\n null !== finishedWork.alternate &&\n (finishedRoot = finishedWork.alternate.memoizedState.cache),\n (finishedWork = finishedWork.memoizedState.cache),\n finishedWork !== finishedRoot &&\n (finishedWork.refCount++,\n null != finishedRoot && releaseCache(finishedRoot)));\n break;\n case 12:\n if (flags & 2048) {\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n finishedRoot = finishedWork.stateNode;\n try {\n var _finishedWork$memoize2 = finishedWork.memoizedProps,\n id = _finishedWork$memoize2.id,\n onPostCommit = _finishedWork$memoize2.onPostCommit;\n \"function\" === typeof onPostCommit &&\n onPostCommit(\n id,\n null === finishedWork.alternate ? \"mount\" : \"update\",\n finishedRoot.passiveEffectDuration,\n -0\n );\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n } else\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 31:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 13:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 23:\n break;\n case 22:\n _finishedWork$memoize2 = finishedWork.stateNode;\n id = finishedWork.alternate;\n null !== finishedWork.memoizedState\n ? _finishedWork$memoize2._visibility & 2\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork)\n : _finishedWork$memoize2._visibility & 2\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : ((_finishedWork$memoize2._visibility |= 2),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n 0 !== (finishedWork.subtreeFlags & 10256) || !1\n ));\n flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);\n break;\n case 24:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n }\n}\nfunction recursivelyTraverseReconnectPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n committedLanes$jscomp$0,\n committedTransitions$jscomp$0,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects &&\n (0 !== (parentFiber.subtreeFlags & 10256) || !1);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n committedLanes = committedLanes$jscomp$0,\n committedTransitions = committedTransitions$jscomp$0,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(8, finishedWork);\n break;\n case 23:\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState\n ? instance._visibility & 2\n ? recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n )\n : recursivelyTraverseAtomicPassiveEffects(\n finishedRoot,\n finishedWork\n )\n : ((instance._visibility |= 2),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n ));\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseAtomicPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 22:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nvar suspenseyCommitFlag = 8192;\nfunction recursivelyAccumulateSuspenseyCommit(\n parentFiber,\n committedLanes,\n suspendedState\n) {\n if (parentFiber.subtreeFlags & suspenseyCommitFlag)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n accumulateSuspenseyCommitOnFiber(\n parentFiber,\n committedLanes,\n suspendedState\n ),\n (parentFiber = parentFiber.sibling);\n}\nfunction accumulateSuspenseyCommitOnFiber(\n fiber,\n committedLanes,\n suspendedState\n) {\n switch (fiber.tag) {\n case 26:\n recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n );\n fiber.flags & suspenseyCommitFlag &&\n null !== fiber.memoizedState &&\n suspendResource(\n suspendedState,\n currentHoistableRoot,\n fiber.memoizedState,\n fiber.memoizedProps\n );\n break;\n case 5:\n recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n );\n break;\n case 3:\n case 4:\n var previousHoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);\n recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n );\n currentHoistableRoot = previousHoistableRoot;\n break;\n case 22:\n null === fiber.memoizedState &&\n ((previousHoistableRoot = fiber.alternate),\n null !== previousHoistableRoot &&\n null !== previousHoistableRoot.memoizedState\n ? ((previousHoistableRoot = suspenseyCommitFlag),\n (suspenseyCommitFlag = 16777216),\n recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n ),\n (suspenseyCommitFlag = previousHoistableRoot))\n : recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n ));\n break;\n default:\n recursivelyAccumulateSuspenseyCommit(\n fiber,\n committedLanes,\n suspendedState\n );\n }\n}\nfunction detachAlternateSiblings(parentFiber) {\n var previousFiber = parentFiber.alternate;\n if (\n null !== previousFiber &&\n ((parentFiber = previousFiber.child), null !== parentFiber)\n ) {\n previousFiber.child = null;\n do\n (previousFiber = parentFiber.sibling),\n (parentFiber.sibling = null),\n (parentFiber = previousFiber);\n while (null !== parentFiber);\n }\n}\nfunction recursivelyTraversePassiveUnmountEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveUnmountOnFiber(parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n finishedWork.flags & 2048 &&\n commitHookEffectListUnmount(9, finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 12:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState &&\n instance._visibility & 2 &&\n (null === finishedWork.return || 13 !== finishedWork.return.tag)\n ? ((instance._visibility &= -3),\n recursivelyTraverseDisconnectPassiveEffects(finishedWork))\n : recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n default:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n }\n}\nfunction recursivelyTraverseDisconnectPassiveEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n deletions = parentFiber;\n switch (deletions.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, deletions, deletions.return);\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n break;\n case 22:\n i = deletions.stateNode;\n i._visibility & 2 &&\n ((i._visibility &= -3),\n recursivelyTraverseDisconnectPassiveEffects(deletions));\n break;\n default:\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n deletedSubtreeRoot,\n nearestMountedAncestor\n) {\n for (; null !== nextEffect; ) {\n var fiber = nextEffect;\n switch (fiber.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, fiber, nearestMountedAncestor);\n break;\n case 23:\n case 22:\n if (\n null !== fiber.memoizedState &&\n null !== fiber.memoizedState.cachePool\n ) {\n var cache = fiber.memoizedState.cachePool.pool;\n null != cache && cache.refCount++;\n }\n break;\n case 24:\n releaseCache(fiber.memoizedState.cache);\n }\n cache = fiber.child;\n if (null !== cache) (cache.return = fiber), (nextEffect = cache);\n else\n a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {\n cache = nextEffect;\n var sibling = cache.sibling,\n returnFiber = cache.return;\n detachFiberAfterEffects(cache);\n if (cache === fiber) {\n nextEffect = null;\n break a;\n }\n if (null !== sibling) {\n sibling.return = returnFiber;\n nextEffect = sibling;\n break a;\n }\n nextEffect = returnFiber;\n }\n }\n}\nvar DefaultAsyncDispatcher = {\n getCacheForType: function (resourceType) {\n var cache = readContext(CacheContext),\n cacheForType = cache.data.get(resourceType);\n void 0 === cacheForType &&\n ((cacheForType = resourceType()),\n cache.data.set(resourceType, cacheForType));\n return cacheForType;\n },\n cacheSignal: function () {\n return readContext(CacheContext).controller.signal;\n }\n },\n PossiblyWeakMap = \"function\" === typeof WeakMap ? WeakMap : Map,\n executionContext = 0,\n workInProgressRoot = null,\n workInProgress = null,\n workInProgressRootRenderLanes = 0,\n workInProgressSuspendedReason = 0,\n workInProgressThrownValue = null,\n workInProgressRootDidSkipSuspendedSiblings = !1,\n workInProgressRootIsPrerendering = !1,\n workInProgressRootDidAttachPingListener = !1,\n entangledRenderLanes = 0,\n workInProgressRootExitStatus = 0,\n workInProgressRootSkippedLanes = 0,\n workInProgressRootInterleavedUpdatedLanes = 0,\n workInProgressRootPingedLanes = 0,\n workInProgressDeferredLane = 0,\n workInProgressSuspendedRetryLanes = 0,\n workInProgressRootConcurrentErrors = null,\n workInProgressRootRecoverableErrors = null,\n workInProgressRootDidIncludeRecursiveRenderUpdate = !1,\n globalMostRecentFallbackTime = 0,\n globalMostRecentTransitionTime = 0,\n workInProgressRootRenderTargetTime = Infinity,\n workInProgressTransitions = null,\n legacyErrorBoundariesThatAlreadyFailed = null,\n pendingEffectsStatus = 0,\n pendingEffectsRoot = null,\n pendingFinishedWork = null,\n pendingEffectsLanes = 0,\n pendingEffectsRemainingLanes = 0,\n pendingPassiveTransitions = null,\n pendingRecoverableErrors = null,\n nestedUpdateCount = 0,\n rootWithNestedUpdates = null;\nfunction requestUpdateLane() {\n return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes\n ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes\n : null !== ReactSharedInternals.T\n ? requestTransitionLane()\n : resolveUpdatePriority();\n}\nfunction requestDeferredLane() {\n if (0 === workInProgressDeferredLane)\n if (0 === (workInProgressRootRenderLanes & 536870912) || isHydrating) {\n var lane = nextTransitionDeferredLane;\n nextTransitionDeferredLane <<= 1;\n 0 === (nextTransitionDeferredLane & 3932160) &&\n (nextTransitionDeferredLane = 262144);\n workInProgressDeferredLane = lane;\n } else workInProgressDeferredLane = 536870912;\n lane = suspenseHandlerStackCursor.current;\n null !== lane && (lane.flags |= 32);\n return workInProgressDeferredLane;\n}\nfunction scheduleUpdateOnFiber(root, fiber, lane) {\n if (\n (root === workInProgressRoot &&\n (2 === workInProgressSuspendedReason ||\n 9 === workInProgressSuspendedReason)) ||\n null !== root.cancelPendingCommit\n )\n prepareFreshStack(root, 0),\n markRootSuspended(\n root,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n );\n markRootUpdated$1(root, lane);\n if (0 === (executionContext & 2) || root !== workInProgressRoot)\n root === workInProgressRoot &&\n (0 === (executionContext & 2) &&\n (workInProgressRootInterleavedUpdatedLanes |= lane),\n 4 === workInProgressRootExitStatus &&\n markRootSuspended(\n root,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n )),\n ensureRootIsScheduled(root);\n}\nfunction performWorkOnRoot(root$jscomp$0, lanes, forceSync) {\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n var shouldTimeSlice =\n (!forceSync &&\n 0 === (lanes & 127) &&\n 0 === (lanes & root$jscomp$0.expiredLanes)) ||\n checkIfRootIsPrerendering(root$jscomp$0, lanes),\n exitStatus = shouldTimeSlice\n ? renderRootConcurrent(root$jscomp$0, lanes)\n : renderRootSync(root$jscomp$0, lanes, !0),\n renderWasConcurrent = shouldTimeSlice;\n do {\n if (0 === exitStatus) {\n workInProgressRootIsPrerendering &&\n !shouldTimeSlice &&\n markRootSuspended(root$jscomp$0, lanes, 0, !1);\n break;\n } else {\n forceSync = root$jscomp$0.current.alternate;\n if (\n renderWasConcurrent &&\n !isRenderConsistentWithExternalStores(forceSync)\n ) {\n exitStatus = renderRootSync(root$jscomp$0, lanes, !1);\n renderWasConcurrent = !1;\n continue;\n }\n if (2 === exitStatus) {\n renderWasConcurrent = lanes;\n if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)\n var JSCompiler_inline_result = 0;\n else\n (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913),\n (JSCompiler_inline_result =\n 0 !== JSCompiler_inline_result\n ? JSCompiler_inline_result\n : JSCompiler_inline_result & 536870912\n ? 536870912\n : 0);\n if (0 !== JSCompiler_inline_result) {\n lanes = JSCompiler_inline_result;\n a: {\n var root = root$jscomp$0;\n exitStatus = workInProgressRootConcurrentErrors;\n var wasRootDehydrated = root.current.memoizedState.isDehydrated;\n wasRootDehydrated &&\n (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256);\n JSCompiler_inline_result = renderRootSync(\n root,\n JSCompiler_inline_result,\n !1\n );\n if (2 !== JSCompiler_inline_result) {\n if (\n workInProgressRootDidAttachPingListener &&\n !wasRootDehydrated\n ) {\n root.errorRecoveryDisabledLanes |= renderWasConcurrent;\n workInProgressRootInterleavedUpdatedLanes |=\n renderWasConcurrent;\n exitStatus = 4;\n break a;\n }\n renderWasConcurrent = workInProgressRootRecoverableErrors;\n workInProgressRootRecoverableErrors = exitStatus;\n null !== renderWasConcurrent &&\n (null === workInProgressRootRecoverableErrors\n ? (workInProgressRootRecoverableErrors = renderWasConcurrent)\n : workInProgressRootRecoverableErrors.push.apply(\n workInProgressRootRecoverableErrors,\n renderWasConcurrent\n ));\n }\n exitStatus = JSCompiler_inline_result;\n }\n renderWasConcurrent = !1;\n if (2 !== exitStatus) continue;\n }\n }\n if (1 === exitStatus) {\n prepareFreshStack(root$jscomp$0, 0);\n markRootSuspended(root$jscomp$0, lanes, 0, !0);\n break;\n }\n a: {\n shouldTimeSlice = root$jscomp$0;\n renderWasConcurrent = exitStatus;\n switch (renderWasConcurrent) {\n case 0:\n case 1:\n throw Error(formatProdErrorMessage(345));\n case 4:\n if ((lanes & 4194048) !== lanes) break;\n case 6:\n markRootSuspended(\n shouldTimeSlice,\n lanes,\n workInProgressDeferredLane,\n !workInProgressRootDidSkipSuspendedSiblings\n );\n break a;\n case 2:\n workInProgressRootRecoverableErrors = null;\n break;\n case 3:\n case 5:\n break;\n default:\n throw Error(formatProdErrorMessage(329));\n }\n if (\n (lanes & 62914560) === lanes &&\n ((exitStatus = globalMostRecentFallbackTime + 300 - now()),\n 10 < exitStatus)\n ) {\n markRootSuspended(\n shouldTimeSlice,\n lanes,\n workInProgressDeferredLane,\n !workInProgressRootDidSkipSuspendedSiblings\n );\n if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;\n pendingEffectsLanes = lanes;\n shouldTimeSlice.timeoutHandle = scheduleTimeout(\n commitRootWhenReady.bind(\n null,\n shouldTimeSlice,\n forceSync,\n workInProgressRootRecoverableErrors,\n workInProgressTransitions,\n workInProgressRootDidIncludeRecursiveRenderUpdate,\n lanes,\n workInProgressDeferredLane,\n workInProgressRootInterleavedUpdatedLanes,\n workInProgressSuspendedRetryLanes,\n workInProgressRootDidSkipSuspendedSiblings,\n renderWasConcurrent,\n \"Throttled\",\n -0,\n 0\n ),\n exitStatus\n );\n break a;\n }\n commitRootWhenReady(\n shouldTimeSlice,\n forceSync,\n workInProgressRootRecoverableErrors,\n workInProgressTransitions,\n workInProgressRootDidIncludeRecursiveRenderUpdate,\n lanes,\n workInProgressDeferredLane,\n workInProgressRootInterleavedUpdatedLanes,\n workInProgressSuspendedRetryLanes,\n workInProgressRootDidSkipSuspendedSiblings,\n renderWasConcurrent,\n null,\n -0,\n 0\n );\n }\n }\n break;\n } while (1);\n ensureRootIsScheduled(root$jscomp$0);\n}\nfunction commitRootWhenReady(\n root,\n finishedWork,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n lanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes,\n didSkipSuspendedSiblings,\n exitStatus,\n suspendedCommitReason,\n completedRenderStartTime,\n completedRenderEndTime\n) {\n root.timeoutHandle = -1;\n suspendedCommitReason = finishedWork.subtreeFlags;\n if (\n suspendedCommitReason & 8192 ||\n 16785408 === (suspendedCommitReason & 16785408)\n ) {\n suspendedCommitReason = {\n stylesheets: null,\n count: 0,\n imgCount: 0,\n imgBytes: 0,\n suspenseyImages: [],\n waitingForImages: !0,\n waitingForViewTransition: !1,\n unsuspend: noop$1\n };\n accumulateSuspenseyCommitOnFiber(\n finishedWork,\n lanes,\n suspendedCommitReason\n );\n var timeoutOffset =\n (lanes & 62914560) === lanes\n ? globalMostRecentFallbackTime - now()\n : (lanes & 4194048) === lanes\n ? globalMostRecentTransitionTime - now()\n : 0;\n timeoutOffset = waitForCommitToBeReady(\n suspendedCommitReason,\n timeoutOffset\n );\n if (null !== timeoutOffset) {\n pendingEffectsLanes = lanes;\n root.cancelPendingCommit = timeoutOffset(\n commitRoot.bind(\n null,\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes,\n exitStatus,\n suspendedCommitReason,\n null,\n completedRenderStartTime,\n completedRenderEndTime\n )\n );\n markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);\n return;\n }\n }\n commitRoot(\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n );\n}\nfunction isRenderConsistentWithExternalStores(finishedWork) {\n for (var node = finishedWork; ; ) {\n var tag = node.tag;\n if (\n (0 === tag || 11 === tag || 15 === tag) &&\n node.flags & 16384 &&\n ((tag = node.updateQueue),\n null !== tag && ((tag = tag.stores), null !== tag))\n )\n for (var i = 0; i < tag.length; i++) {\n var check = tag[i],\n getSnapshot = check.getSnapshot;\n check = check.value;\n try {\n if (!objectIs(getSnapshot(), check)) return !1;\n } catch (error) {\n return !1;\n }\n }\n tag = node.child;\n if (node.subtreeFlags & 16384 && null !== tag)\n (tag.return = node), (node = tag);\n else {\n if (node === finishedWork) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === finishedWork) return !0;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return !0;\n}\nfunction markRootSuspended(\n root,\n suspendedLanes,\n spawnedLane,\n didAttemptEntireTree\n) {\n suspendedLanes &= ~workInProgressRootPingedLanes;\n suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;\n root.suspendedLanes |= suspendedLanes;\n root.pingedLanes &= ~suspendedLanes;\n didAttemptEntireTree && (root.warmLanes |= suspendedLanes);\n didAttemptEntireTree = root.expirationTimes;\n for (var lanes = suspendedLanes; 0 < lanes; ) {\n var index$6 = 31 - clz32(lanes),\n lane = 1 << index$6;\n didAttemptEntireTree[index$6] = -1;\n lanes &= ~lane;\n }\n 0 !== spawnedLane &&\n markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);\n}\nfunction flushSyncWork$1() {\n return 0 === (executionContext & 6)\n ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)\n : !0;\n}\nfunction resetWorkInProgressStack() {\n if (null !== workInProgress) {\n if (0 === workInProgressSuspendedReason)\n var interruptedWork = workInProgress.return;\n else\n (interruptedWork = workInProgress),\n (lastContextDependency = currentlyRenderingFiber$1 = null),\n resetHooksOnUnwind(interruptedWork),\n (thenableState$1 = null),\n (thenableIndexCounter$1 = 0),\n (interruptedWork = workInProgress);\n for (; null !== interruptedWork; )\n unwindInterruptedWork(interruptedWork.alternate, interruptedWork),\n (interruptedWork = interruptedWork.return);\n workInProgress = null;\n }\n}\nfunction prepareFreshStack(root, lanes) {\n var timeoutHandle = root.timeoutHandle;\n -1 !== timeoutHandle &&\n ((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));\n timeoutHandle = root.cancelPendingCommit;\n null !== timeoutHandle &&\n ((root.cancelPendingCommit = null), timeoutHandle());\n pendingEffectsLanes = 0;\n resetWorkInProgressStack();\n workInProgressRoot = root;\n workInProgress = timeoutHandle = createWorkInProgress(root.current, null);\n workInProgressRootRenderLanes = lanes;\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n workInProgressRootDidSkipSuspendedSiblings = !1;\n workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);\n workInProgressRootDidAttachPingListener = !1;\n workInProgressSuspendedRetryLanes =\n workInProgressDeferredLane =\n workInProgressRootPingedLanes =\n workInProgressRootInterleavedUpdatedLanes =\n workInProgressRootSkippedLanes =\n workInProgressRootExitStatus =\n 0;\n workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =\n null;\n workInProgressRootDidIncludeRecursiveRenderUpdate = !1;\n 0 !== (lanes & 8) && (lanes |= lanes & 32);\n var allEntangledLanes = root.entangledLanes;\n if (0 !== allEntangledLanes)\n for (\n root = root.entanglements, allEntangledLanes &= lanes;\n 0 < allEntangledLanes;\n\n ) {\n var index$4 = 31 - clz32(allEntangledLanes),\n lane = 1 << index$4;\n lanes |= root[index$4];\n allEntangledLanes &= ~lane;\n }\n entangledRenderLanes = lanes;\n finishQueueingConcurrentUpdates();\n return timeoutHandle;\n}\nfunction handleThrow(root, thrownValue) {\n currentlyRenderingFiber = null;\n ReactSharedInternals.H = ContextOnlyDispatcher;\n thrownValue === SuspenseException || thrownValue === SuspenseActionException\n ? ((thrownValue = getSuspendedThenable()),\n (workInProgressSuspendedReason = 3))\n : thrownValue === SuspenseyCommitException\n ? ((thrownValue = getSuspendedThenable()),\n (workInProgressSuspendedReason = 4))\n : (workInProgressSuspendedReason =\n thrownValue === SelectiveHydrationException\n ? 8\n : null !== thrownValue &&\n \"object\" === typeof thrownValue &&\n \"function\" === typeof thrownValue.then\n ? 6\n : 1);\n workInProgressThrownValue = thrownValue;\n null === workInProgress &&\n ((workInProgressRootExitStatus = 1),\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n ));\n}\nfunction shouldRemainOnPreviousScreen() {\n var handler = suspenseHandlerStackCursor.current;\n return null === handler\n ? !0\n : (workInProgressRootRenderLanes & 4194048) ===\n workInProgressRootRenderLanes\n ? null === shellBoundary\n ? !0\n : !1\n : (workInProgressRootRenderLanes & 62914560) ===\n workInProgressRootRenderLanes ||\n 0 !== (workInProgressRootRenderLanes & 536870912)\n ? handler === shellBoundary\n : !1;\n}\nfunction pushDispatcher() {\n var prevDispatcher = ReactSharedInternals.H;\n ReactSharedInternals.H = ContextOnlyDispatcher;\n return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;\n}\nfunction pushAsyncDispatcher() {\n var prevAsyncDispatcher = ReactSharedInternals.A;\n ReactSharedInternals.A = DefaultAsyncDispatcher;\n return prevAsyncDispatcher;\n}\nfunction renderDidSuspendDelayIfPossible() {\n workInProgressRootExitStatus = 4;\n workInProgressRootDidSkipSuspendedSiblings ||\n ((workInProgressRootRenderLanes & 4194048) !==\n workInProgressRootRenderLanes &&\n null !== suspenseHandlerStackCursor.current) ||\n (workInProgressRootIsPrerendering = !0);\n (0 === (workInProgressRootSkippedLanes & 134217727) &&\n 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||\n null === workInProgressRoot ||\n markRootSuspended(\n workInProgressRoot,\n workInProgressRootRenderLanes,\n workInProgressDeferredLane,\n !1\n );\n}\nfunction renderRootSync(root, lanes, shouldYieldForPrerendering) {\n var prevExecutionContext = executionContext;\n executionContext |= 2;\n var prevDispatcher = pushDispatcher(),\n prevAsyncDispatcher = pushAsyncDispatcher();\n if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)\n (workInProgressTransitions = null), prepareFreshStack(root, lanes);\n lanes = !1;\n var exitStatus = workInProgressRootExitStatus;\n a: do\n try {\n if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n var unitOfWork = workInProgress,\n thrownValue = workInProgressThrownValue;\n switch (workInProgressSuspendedReason) {\n case 8:\n resetWorkInProgressStack();\n exitStatus = 6;\n break a;\n case 3:\n case 2:\n case 9:\n case 6:\n null === suspenseHandlerStackCursor.current && (lanes = !0);\n var reason = workInProgressSuspendedReason;\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n if (\n shouldYieldForPrerendering &&\n workInProgressRootIsPrerendering\n ) {\n exitStatus = 0;\n break a;\n }\n break;\n default:\n (reason = workInProgressSuspendedReason),\n (workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);\n }\n }\n workLoopSync();\n exitStatus = workInProgressRootExitStatus;\n break;\n } catch (thrownValue$165) {\n handleThrow(root, thrownValue$165);\n }\n while (1);\n lanes && root.shellSuspendCounter++;\n lastContextDependency = currentlyRenderingFiber$1 = null;\n executionContext = prevExecutionContext;\n ReactSharedInternals.H = prevDispatcher;\n ReactSharedInternals.A = prevAsyncDispatcher;\n null === workInProgress &&\n ((workInProgressRoot = null),\n (workInProgressRootRenderLanes = 0),\n finishQueueingConcurrentUpdates());\n return exitStatus;\n}\nfunction workLoopSync() {\n for (; null !== workInProgress; ) performUnitOfWork(workInProgress);\n}\nfunction renderRootConcurrent(root, lanes) {\n var prevExecutionContext = executionContext;\n executionContext |= 2;\n var prevDispatcher = pushDispatcher(),\n prevAsyncDispatcher = pushAsyncDispatcher();\n workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes\n ? ((workInProgressTransitions = null),\n (workInProgressRootRenderTargetTime = now() + 500),\n prepareFreshStack(root, lanes))\n : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering(\n root,\n lanes\n ));\n a: do\n try {\n if (0 !== workInProgressSuspendedReason && null !== workInProgress) {\n lanes = workInProgress;\n var thrownValue = workInProgressThrownValue;\n b: switch (workInProgressSuspendedReason) {\n case 1:\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 1);\n break;\n case 2:\n case 9:\n if (isThenableResolved(thrownValue)) {\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n replaySuspendedUnitOfWork(lanes);\n break;\n }\n lanes = function () {\n (2 !== workInProgressSuspendedReason &&\n 9 !== workInProgressSuspendedReason) ||\n workInProgressRoot !== root ||\n (workInProgressSuspendedReason = 7);\n ensureRootIsScheduled(root);\n };\n thrownValue.then(lanes, lanes);\n break a;\n case 3:\n workInProgressSuspendedReason = 7;\n break a;\n case 4:\n workInProgressSuspendedReason = 5;\n break a;\n case 7:\n isThenableResolved(thrownValue)\n ? ((workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n replaySuspendedUnitOfWork(lanes))\n : ((workInProgressSuspendedReason = 0),\n (workInProgressThrownValue = null),\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 7));\n break;\n case 5:\n var resource = null;\n switch (workInProgress.tag) {\n case 26:\n resource = workInProgress.memoizedState;\n case 5:\n case 27:\n var hostFiber = workInProgress;\n if (\n resource\n ? preloadResource(resource)\n : hostFiber.stateNode.complete\n ) {\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n var sibling = hostFiber.sibling;\n if (null !== sibling) workInProgress = sibling;\n else {\n var returnFiber = hostFiber.return;\n null !== returnFiber\n ? ((workInProgress = returnFiber),\n completeUnitOfWork(returnFiber))\n : (workInProgress = null);\n }\n break b;\n }\n }\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 5);\n break;\n case 6:\n workInProgressSuspendedReason = 0;\n workInProgressThrownValue = null;\n throwAndUnwindWorkLoop(root, lanes, thrownValue, 6);\n break;\n case 8:\n resetWorkInProgressStack();\n workInProgressRootExitStatus = 6;\n break a;\n default:\n throw Error(formatProdErrorMessage(462));\n }\n }\n workLoopConcurrentByScheduler();\n break;\n } catch (thrownValue$167) {\n handleThrow(root, thrownValue$167);\n }\n while (1);\n lastContextDependency = currentlyRenderingFiber$1 = null;\n ReactSharedInternals.H = prevDispatcher;\n ReactSharedInternals.A = prevAsyncDispatcher;\n executionContext = prevExecutionContext;\n if (null !== workInProgress) return 0;\n workInProgressRoot = null;\n workInProgressRootRenderLanes = 0;\n finishQueueingConcurrentUpdates();\n return workInProgressRootExitStatus;\n}\nfunction workLoopConcurrentByScheduler() {\n for (; null !== workInProgress && !shouldYield(); )\n performUnitOfWork(workInProgress);\n}\nfunction performUnitOfWork(unitOfWork) {\n var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction replaySuspendedUnitOfWork(unitOfWork) {\n var next = unitOfWork;\n var current = next.alternate;\n switch (next.tag) {\n case 15:\n case 0:\n next = replayFunctionComponent(\n current,\n next,\n next.pendingProps,\n next.type,\n void 0,\n workInProgressRootRenderLanes\n );\n break;\n case 11:\n next = replayFunctionComponent(\n current,\n next,\n next.pendingProps,\n next.type.render,\n next.ref,\n workInProgressRootRenderLanes\n );\n break;\n case 5:\n resetHooksOnUnwind(next);\n default:\n unwindInterruptedWork(current, next),\n (next = workInProgress =\n resetWorkInProgress(next, entangledRenderLanes)),\n (next = beginWork(current, next, entangledRenderLanes));\n }\n unitOfWork.memoizedProps = unitOfWork.pendingProps;\n null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);\n}\nfunction throwAndUnwindWorkLoop(\n root,\n unitOfWork,\n thrownValue,\n suspendedReason\n) {\n lastContextDependency = currentlyRenderingFiber$1 = null;\n resetHooksOnUnwind(unitOfWork);\n thenableState$1 = null;\n thenableIndexCounter$1 = 0;\n var returnFiber = unitOfWork.return;\n try {\n if (\n throwException(\n root,\n returnFiber,\n unitOfWork,\n thrownValue,\n workInProgressRootRenderLanes\n )\n ) {\n workInProgressRootExitStatus = 1;\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n );\n workInProgress = null;\n return;\n }\n } catch (error) {\n if (null !== returnFiber) throw ((workInProgress = returnFiber), error);\n workInProgressRootExitStatus = 1;\n logUncaughtError(\n root,\n createCapturedValueAtFiber(thrownValue, root.current)\n );\n workInProgress = null;\n return;\n }\n if (unitOfWork.flags & 32768) {\n if (isHydrating || 1 === suspendedReason) root = !0;\n else if (\n workInProgressRootIsPrerendering ||\n 0 !== (workInProgressRootRenderLanes & 536870912)\n )\n root = !1;\n else if (\n ((workInProgressRootDidSkipSuspendedSiblings = root = !0),\n 2 === suspendedReason ||\n 9 === suspendedReason ||\n 3 === suspendedReason ||\n 6 === suspendedReason)\n )\n (suspendedReason = suspenseHandlerStackCursor.current),\n null !== suspendedReason &&\n 13 === suspendedReason.tag &&\n (suspendedReason.flags |= 16384);\n unwindUnitOfWork(unitOfWork, root);\n } else completeUnitOfWork(unitOfWork);\n}\nfunction completeUnitOfWork(unitOfWork) {\n var completedWork = unitOfWork;\n do {\n if (0 !== (completedWork.flags & 32768)) {\n unwindUnitOfWork(\n completedWork,\n workInProgressRootDidSkipSuspendedSiblings\n );\n return;\n }\n unitOfWork = completedWork.return;\n var next = completeWork(\n completedWork.alternate,\n completedWork,\n entangledRenderLanes\n );\n if (null !== next) {\n workInProgress = next;\n return;\n }\n completedWork = completedWork.sibling;\n if (null !== completedWork) {\n workInProgress = completedWork;\n return;\n }\n workInProgress = completedWork = unitOfWork;\n } while (null !== completedWork);\n 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);\n}\nfunction unwindUnitOfWork(unitOfWork, skipSiblings) {\n do {\n var next = unwindWork(unitOfWork.alternate, unitOfWork);\n if (null !== next) {\n next.flags &= 32767;\n workInProgress = next;\n return;\n }\n next = unitOfWork.return;\n null !== next &&\n ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null));\n if (\n !skipSiblings &&\n ((unitOfWork = unitOfWork.sibling), null !== unitOfWork)\n ) {\n workInProgress = unitOfWork;\n return;\n }\n workInProgress = unitOfWork = next;\n } while (null !== unitOfWork);\n workInProgressRootExitStatus = 6;\n workInProgress = null;\n}\nfunction commitRoot(\n root,\n finishedWork,\n lanes,\n recoverableErrors,\n transitions,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n root.cancelPendingCommit = null;\n do flushPendingEffects();\n while (0 !== pendingEffectsStatus);\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));\n if (null !== finishedWork) {\n if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));\n didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;\n didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;\n markRootFinished(\n root,\n lanes,\n didIncludeRenderPhaseUpdate,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n );\n root === workInProgressRoot &&\n ((workInProgress = workInProgressRoot = null),\n (workInProgressRootRenderLanes = 0));\n pendingFinishedWork = finishedWork;\n pendingEffectsRoot = root;\n pendingEffectsLanes = lanes;\n pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;\n pendingPassiveTransitions = transitions;\n pendingRecoverableErrors = recoverableErrors;\n 0 !== (finishedWork.subtreeFlags & 10256) ||\n 0 !== (finishedWork.flags & 10256)\n ? ((root.callbackNode = null),\n (root.callbackPriority = 0),\n scheduleCallback$1(NormalPriority$1, function () {\n flushPassiveEffects();\n return null;\n }))\n : ((root.callbackNode = null), (root.callbackPriority = 0));\n recoverableErrors = 0 !== (finishedWork.flags & 13878);\n if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {\n recoverableErrors = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n transitions = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n spawnedLane = executionContext;\n executionContext |= 4;\n try {\n commitBeforeMutationEffects(root, finishedWork, lanes);\n } finally {\n (executionContext = spawnedLane),\n (ReactDOMSharedInternals.p = transitions),\n (ReactSharedInternals.T = recoverableErrors);\n }\n }\n pendingEffectsStatus = 1;\n flushMutationEffects();\n flushLayoutEffects();\n flushSpawnedWork();\n }\n}\nfunction flushMutationEffects() {\n if (1 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);\n if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {\n rootMutationHasEffect = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n try {\n commitMutationEffectsOnFiber(finishedWork, root);\n var priorSelectionInformation = selectionInformation,\n curFocusedElem = getActiveElementDeep(root.containerInfo),\n priorFocusedElem = priorSelectionInformation.focusedElem,\n priorSelectionRange = priorSelectionInformation.selectionRange;\n if (\n curFocusedElem !== priorFocusedElem &&\n priorFocusedElem &&\n priorFocusedElem.ownerDocument &&\n containsNode(\n priorFocusedElem.ownerDocument.documentElement,\n priorFocusedElem\n )\n ) {\n if (\n null !== priorSelectionRange &&\n hasSelectionCapabilities(priorFocusedElem)\n ) {\n var start = priorSelectionRange.start,\n end = priorSelectionRange.end;\n void 0 === end && (end = start);\n if (\"selectionStart\" in priorFocusedElem)\n (priorFocusedElem.selectionStart = start),\n (priorFocusedElem.selectionEnd = Math.min(\n end,\n priorFocusedElem.value.length\n ));\n else {\n var doc = priorFocusedElem.ownerDocument || document,\n win = (doc && doc.defaultView) || window;\n if (win.getSelection) {\n var selection = win.getSelection(),\n length = priorFocusedElem.textContent.length,\n start$jscomp$0 = Math.min(priorSelectionRange.start, length),\n end$jscomp$0 =\n void 0 === priorSelectionRange.end\n ? start$jscomp$0\n : Math.min(priorSelectionRange.end, length);\n !selection.extend &&\n start$jscomp$0 > end$jscomp$0 &&\n ((curFocusedElem = end$jscomp$0),\n (end$jscomp$0 = start$jscomp$0),\n (start$jscomp$0 = curFocusedElem));\n var startMarker = getNodeForCharacterOffset(\n priorFocusedElem,\n start$jscomp$0\n ),\n endMarker = getNodeForCharacterOffset(\n priorFocusedElem,\n end$jscomp$0\n );\n if (\n startMarker &&\n endMarker &&\n (1 !== selection.rangeCount ||\n selection.anchorNode !== startMarker.node ||\n selection.anchorOffset !== startMarker.offset ||\n selection.focusNode !== endMarker.node ||\n selection.focusOffset !== endMarker.offset)\n ) {\n var range = doc.createRange();\n range.setStart(startMarker.node, startMarker.offset);\n selection.removeAllRanges();\n start$jscomp$0 > end$jscomp$0\n ? (selection.addRange(range),\n selection.extend(endMarker.node, endMarker.offset))\n : (range.setEnd(endMarker.node, endMarker.offset),\n selection.addRange(range));\n }\n }\n }\n }\n doc = [];\n for (\n selection = priorFocusedElem;\n (selection = selection.parentNode);\n\n )\n 1 === selection.nodeType &&\n doc.push({\n element: selection,\n left: selection.scrollLeft,\n top: selection.scrollTop\n });\n \"function\" === typeof priorFocusedElem.focus &&\n priorFocusedElem.focus();\n for (\n priorFocusedElem = 0;\n priorFocusedElem < doc.length;\n priorFocusedElem++\n ) {\n var info = doc[priorFocusedElem];\n info.element.scrollLeft = info.left;\n info.element.scrollTop = info.top;\n }\n }\n _enabled = !!eventsEnabled;\n selectionInformation = eventsEnabled = null;\n } finally {\n (executionContext = prevExecutionContext),\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = rootMutationHasEffect);\n }\n }\n root.current = finishedWork;\n pendingEffectsStatus = 2;\n }\n}\nfunction flushLayoutEffects() {\n if (2 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);\n if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {\n rootHasLayoutEffect = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n try {\n commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);\n } finally {\n (executionContext = prevExecutionContext),\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = rootHasLayoutEffect);\n }\n }\n pendingEffectsStatus = 3;\n }\n}\nfunction flushSpawnedWork() {\n if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {\n pendingEffectsStatus = 0;\n requestPaint();\n var root = pendingEffectsRoot,\n finishedWork = pendingFinishedWork,\n lanes = pendingEffectsLanes,\n recoverableErrors = pendingRecoverableErrors;\n 0 !== (finishedWork.subtreeFlags & 10256) ||\n 0 !== (finishedWork.flags & 10256)\n ? (pendingEffectsStatus = 5)\n : ((pendingEffectsStatus = 0),\n (pendingFinishedWork = pendingEffectsRoot = null),\n releaseRootPooledCache(root, root.pendingLanes));\n var remainingLanes = root.pendingLanes;\n 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);\n lanesToEventPriority(lanes);\n finishedWork = finishedWork.stateNode;\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberRoot)\n try {\n injectedHook.onCommitFiberRoot(\n rendererID,\n finishedWork,\n void 0,\n 128 === (finishedWork.current.flags & 128)\n );\n } catch (err) {}\n if (null !== recoverableErrors) {\n finishedWork = ReactSharedInternals.T;\n remainingLanes = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p = 2;\n ReactSharedInternals.T = null;\n try {\n for (\n var onRecoverableError = root.onRecoverableError, i = 0;\n i < recoverableErrors.length;\n i++\n ) {\n var recoverableError = recoverableErrors[i];\n onRecoverableError(recoverableError.value, {\n componentStack: recoverableError.stack\n });\n }\n } finally {\n (ReactSharedInternals.T = finishedWork),\n (ReactDOMSharedInternals.p = remainingLanes);\n }\n }\n 0 !== (pendingEffectsLanes & 3) && flushPendingEffects();\n ensureRootIsScheduled(root);\n remainingLanes = root.pendingLanes;\n 0 !== (lanes & 261930) && 0 !== (remainingLanes & 42)\n ? root === rootWithNestedUpdates\n ? nestedUpdateCount++\n : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))\n : (nestedUpdateCount = 0);\n flushSyncWorkAcrossRoots_impl(0, !1);\n }\n}\nfunction releaseRootPooledCache(root, remainingLanes) {\n 0 === (root.pooledCacheLanes &= remainingLanes) &&\n ((remainingLanes = root.pooledCache),\n null != remainingLanes &&\n ((root.pooledCache = null), releaseCache(remainingLanes)));\n}\nfunction flushPendingEffects() {\n flushMutationEffects();\n flushLayoutEffects();\n flushSpawnedWork();\n return flushPassiveEffects();\n}\nfunction flushPassiveEffects() {\n if (5 !== pendingEffectsStatus) return !1;\n var root = pendingEffectsRoot,\n remainingLanes = pendingEffectsRemainingLanes;\n pendingEffectsRemainingLanes = 0;\n var renderPriority = lanesToEventPriority(pendingEffectsLanes),\n prevTransition = ReactSharedInternals.T,\n previousPriority = ReactDOMSharedInternals.p;\n try {\n ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority;\n ReactSharedInternals.T = null;\n renderPriority = pendingPassiveTransitions;\n pendingPassiveTransitions = null;\n var root$jscomp$0 = pendingEffectsRoot,\n lanes = pendingEffectsLanes;\n pendingEffectsStatus = 0;\n pendingFinishedWork = pendingEffectsRoot = null;\n pendingEffectsLanes = 0;\n if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));\n var prevExecutionContext = executionContext;\n executionContext |= 4;\n commitPassiveUnmountOnFiber(root$jscomp$0.current);\n commitPassiveMountOnFiber(\n root$jscomp$0,\n root$jscomp$0.current,\n lanes,\n renderPriority\n );\n executionContext = prevExecutionContext;\n flushSyncWorkAcrossRoots_impl(0, !1);\n if (\n injectedHook &&\n \"function\" === typeof injectedHook.onPostCommitFiberRoot\n )\n try {\n injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);\n } catch (err) {}\n return !0;\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition),\n releaseRootPooledCache(root, remainingLanes);\n }\n}\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);\n rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);\n null !== rootFiber &&\n (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));\n}\nfunction captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {\n if (3 === sourceFiber.tag)\n captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n else\n for (; null !== nearestMountedAncestor; ) {\n if (3 === nearestMountedAncestor.tag) {\n captureCommitPhaseErrorOnRoot(\n nearestMountedAncestor,\n sourceFiber,\n error\n );\n break;\n } else if (1 === nearestMountedAncestor.tag) {\n var instance = nearestMountedAncestor.stateNode;\n if (\n \"function\" ===\n typeof nearestMountedAncestor.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValueAtFiber(error, sourceFiber);\n error = createClassErrorUpdate(2);\n instance = enqueueUpdate(nearestMountedAncestor, error, 2);\n null !== instance &&\n (initializeClassErrorUpdate(\n error,\n instance,\n nearestMountedAncestor,\n sourceFiber\n ),\n markRootUpdated$1(instance, 2),\n ensureRootIsScheduled(instance));\n break;\n }\n }\n nearestMountedAncestor = nearestMountedAncestor.return;\n }\n}\nfunction attachPingListener(root, wakeable, lanes) {\n var pingCache = root.pingCache;\n if (null === pingCache) {\n pingCache = root.pingCache = new PossiblyWeakMap();\n var threadIDs = new Set();\n pingCache.set(wakeable, threadIDs);\n } else\n (threadIDs = pingCache.get(wakeable)),\n void 0 === threadIDs &&\n ((threadIDs = new Set()), pingCache.set(wakeable, threadIDs));\n threadIDs.has(lanes) ||\n ((workInProgressRootDidAttachPingListener = !0),\n threadIDs.add(lanes),\n (root = pingSuspendedRoot.bind(null, root, wakeable, lanes)),\n wakeable.then(root, root));\n}\nfunction pingSuspendedRoot(root, wakeable, pingedLanes) {\n var pingCache = root.pingCache;\n null !== pingCache && pingCache.delete(wakeable);\n root.pingedLanes |= root.suspendedLanes & pingedLanes;\n root.warmLanes &= ~pingedLanes;\n workInProgressRoot === root &&\n (workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&\n (4 === workInProgressRootExitStatus ||\n (3 === workInProgressRootExitStatus &&\n (workInProgressRootRenderLanes & 62914560) ===\n workInProgressRootRenderLanes &&\n 300 > now() - globalMostRecentFallbackTime)\n ? 0 === (executionContext & 2) && prepareFreshStack(root, 0)\n : (workInProgressRootPingedLanes |= pingedLanes),\n workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes &&\n (workInProgressSuspendedRetryLanes = 0));\n ensureRootIsScheduled(root);\n}\nfunction retryTimedOutBoundary(boundaryFiber, retryLane) {\n 0 === retryLane && (retryLane = claimNextRetryLane());\n boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);\n null !== boundaryFiber &&\n (markRootUpdated$1(boundaryFiber, retryLane),\n ensureRootIsScheduled(boundaryFiber));\n}\nfunction retryDehydratedSuspenseBoundary(boundaryFiber) {\n var suspenseState = boundaryFiber.memoizedState,\n retryLane = 0;\n null !== suspenseState && (retryLane = suspenseState.retryLane);\n retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction resolveRetryWakeable(boundaryFiber, wakeable) {\n var retryLane = 0;\n switch (boundaryFiber.tag) {\n case 31:\n case 13:\n var retryCache = boundaryFiber.stateNode;\n var suspenseState = boundaryFiber.memoizedState;\n null !== suspenseState && (retryLane = suspenseState.retryLane);\n break;\n case 19:\n retryCache = boundaryFiber.stateNode;\n break;\n case 22:\n retryCache = boundaryFiber.stateNode._retryCache;\n break;\n default:\n throw Error(formatProdErrorMessage(314));\n }\n null !== retryCache && retryCache.delete(wakeable);\n retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction scheduleCallback$1(priorityLevel, callback) {\n return scheduleCallback$3(priorityLevel, callback);\n}\nvar firstScheduledRoot = null,\n lastScheduledRoot = null,\n didScheduleMicrotask = !1,\n mightHavePendingSyncWork = !1,\n isFlushingWork = !1,\n currentEventTransitionLane = 0;\nfunction ensureRootIsScheduled(root) {\n root !== lastScheduledRoot &&\n null === root.next &&\n (null === lastScheduledRoot\n ? (firstScheduledRoot = lastScheduledRoot = root)\n : (lastScheduledRoot = lastScheduledRoot.next = root));\n mightHavePendingSyncWork = !0;\n didScheduleMicrotask ||\n ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());\n}\nfunction flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {\n if (!isFlushingWork && mightHavePendingSyncWork) {\n isFlushingWork = !0;\n do {\n var didPerformSomeWork = !1;\n for (var root$170 = firstScheduledRoot; null !== root$170; ) {\n if (!onlyLegacy)\n if (0 !== syncTransitionLanes) {\n var pendingLanes = root$170.pendingLanes;\n if (0 === pendingLanes) var JSCompiler_inline_result = 0;\n else {\n var suspendedLanes = root$170.suspendedLanes,\n pingedLanes = root$170.pingedLanes;\n JSCompiler_inline_result =\n (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;\n JSCompiler_inline_result &=\n pendingLanes & ~(suspendedLanes & ~pingedLanes);\n JSCompiler_inline_result =\n JSCompiler_inline_result & 201326741\n ? (JSCompiler_inline_result & 201326741) | 1\n : JSCompiler_inline_result\n ? JSCompiler_inline_result | 2\n : 0;\n }\n 0 !== JSCompiler_inline_result &&\n ((didPerformSomeWork = !0),\n performSyncWorkOnRoot(root$170, JSCompiler_inline_result));\n } else\n (JSCompiler_inline_result = workInProgressRootRenderLanes),\n (JSCompiler_inline_result = getNextLanes(\n root$170,\n root$170 === workInProgressRoot ? JSCompiler_inline_result : 0,\n null !== root$170.cancelPendingCommit ||\n -1 !== root$170.timeoutHandle\n )),\n 0 === (JSCompiler_inline_result & 3) ||\n checkIfRootIsPrerendering(root$170, JSCompiler_inline_result) ||\n ((didPerformSomeWork = !0),\n performSyncWorkOnRoot(root$170, JSCompiler_inline_result));\n root$170 = root$170.next;\n }\n } while (didPerformSomeWork);\n isFlushingWork = !1;\n }\n}\nfunction processRootScheduleInImmediateTask() {\n processRootScheduleInMicrotask();\n}\nfunction processRootScheduleInMicrotask() {\n mightHavePendingSyncWork = didScheduleMicrotask = !1;\n var syncTransitionLanes = 0;\n 0 !== currentEventTransitionLane &&\n shouldAttemptEagerTransition() &&\n (syncTransitionLanes = currentEventTransitionLane);\n for (\n var currentTime = now(), prev = null, root = firstScheduledRoot;\n null !== root;\n\n ) {\n var next = root.next,\n nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime);\n if (0 === nextLanes)\n (root.next = null),\n null === prev ? (firstScheduledRoot = next) : (prev.next = next),\n null === next && (lastScheduledRoot = prev);\n else if (\n ((prev = root), 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))\n )\n mightHavePendingSyncWork = !0;\n root = next;\n }\n (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus) ||\n flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);\n 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);\n}\nfunction scheduleTaskForRootDuringMicrotask(root, currentTime) {\n for (\n var suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes,\n expirationTimes = root.expirationTimes,\n lanes = root.pendingLanes & -62914561;\n 0 < lanes;\n\n ) {\n var index$5 = 31 - clz32(lanes),\n lane = 1 << index$5,\n expirationTime = expirationTimes[index$5];\n if (-1 === expirationTime) {\n if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))\n expirationTimes[index$5] = computeExpirationTime(lane, currentTime);\n } else expirationTime <= currentTime && (root.expiredLanes |= lane);\n lanes &= ~lane;\n }\n currentTime = workInProgressRoot;\n suspendedLanes = workInProgressRootRenderLanes;\n suspendedLanes = getNextLanes(\n root,\n root === currentTime ? suspendedLanes : 0,\n null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n );\n pingedLanes = root.callbackNode;\n if (\n 0 === suspendedLanes ||\n (root === currentTime &&\n (2 === workInProgressSuspendedReason ||\n 9 === workInProgressSuspendedReason)) ||\n null !== root.cancelPendingCommit\n )\n return (\n null !== pingedLanes &&\n null !== pingedLanes &&\n cancelCallback$1(pingedLanes),\n (root.callbackNode = null),\n (root.callbackPriority = 0)\n );\n if (\n 0 === (suspendedLanes & 3) ||\n checkIfRootIsPrerendering(root, suspendedLanes)\n ) {\n currentTime = suspendedLanes & -suspendedLanes;\n if (currentTime === root.callbackPriority) return currentTime;\n null !== pingedLanes && cancelCallback$1(pingedLanes);\n switch (lanesToEventPriority(suspendedLanes)) {\n case 2:\n case 8:\n suspendedLanes = UserBlockingPriority;\n break;\n case 32:\n suspendedLanes = NormalPriority$1;\n break;\n case 268435456:\n suspendedLanes = IdlePriority;\n break;\n default:\n suspendedLanes = NormalPriority$1;\n }\n pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);\n suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);\n root.callbackPriority = currentTime;\n root.callbackNode = suspendedLanes;\n return currentTime;\n }\n null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);\n root.callbackPriority = 2;\n root.callbackNode = null;\n return 2;\n}\nfunction performWorkOnRootViaSchedulerTask(root, didTimeout) {\n if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus)\n return (root.callbackNode = null), (root.callbackPriority = 0), null;\n var originalCallbackNode = root.callbackNode;\n if (flushPendingEffects() && root.callbackNode !== originalCallbackNode)\n return null;\n var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;\n workInProgressRootRenderLanes$jscomp$0 = getNextLanes(\n root,\n root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,\n null !== root.cancelPendingCommit || -1 !== root.timeoutHandle\n );\n if (0 === workInProgressRootRenderLanes$jscomp$0) return null;\n performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);\n scheduleTaskForRootDuringMicrotask(root, now());\n return null != root.callbackNode && root.callbackNode === originalCallbackNode\n ? performWorkOnRootViaSchedulerTask.bind(null, root)\n : null;\n}\nfunction performSyncWorkOnRoot(root, lanes) {\n if (flushPendingEffects()) return null;\n performWorkOnRoot(root, lanes, !0);\n}\nfunction scheduleImmediateRootScheduleTask() {\n scheduleMicrotask(function () {\n 0 !== (executionContext & 6)\n ? scheduleCallback$3(\n ImmediatePriority,\n processRootScheduleInImmediateTask\n )\n : processRootScheduleInMicrotask();\n });\n}\nfunction requestTransitionLane() {\n if (0 === currentEventTransitionLane) {\n var actionScopeLane = currentEntangledLane;\n 0 === actionScopeLane &&\n ((actionScopeLane = nextTransitionUpdateLane),\n (nextTransitionUpdateLane <<= 1),\n 0 === (nextTransitionUpdateLane & 261888) &&\n (nextTransitionUpdateLane = 256));\n currentEventTransitionLane = actionScopeLane;\n }\n return currentEventTransitionLane;\n}\nfunction coerceFormActionProp(actionProp) {\n return null == actionProp ||\n \"symbol\" === typeof actionProp ||\n \"boolean\" === typeof actionProp\n ? null\n : \"function\" === typeof actionProp\n ? actionProp\n : sanitizeURL(\"\" + actionProp);\n}\nfunction createFormDataWithSubmitter(form, submitter) {\n var temp = submitter.ownerDocument.createElement(\"input\");\n temp.name = submitter.name;\n temp.value = submitter.value;\n form.id && temp.setAttribute(\"form\", form.id);\n submitter.parentNode.insertBefore(temp, submitter);\n form = new FormData(form);\n temp.parentNode.removeChild(temp);\n return form;\n}\nfunction extractEvents$1(\n dispatchQueue,\n domEventName,\n maybeTargetInst,\n nativeEvent,\n nativeEventTarget\n) {\n if (\n \"submit\" === domEventName &&\n maybeTargetInst &&\n maybeTargetInst.stateNode === nativeEventTarget\n ) {\n var action = coerceFormActionProp(\n (nativeEventTarget[internalPropsKey] || null).action\n ),\n submitter = nativeEvent.submitter;\n submitter &&\n ((domEventName = (domEventName = submitter[internalPropsKey] || null)\n ? coerceFormActionProp(domEventName.formAction)\n : submitter.getAttribute(\"formAction\")),\n null !== domEventName && ((action = domEventName), (submitter = null)));\n var event = new SyntheticEvent(\n \"action\",\n \"action\",\n null,\n nativeEvent,\n nativeEventTarget\n );\n dispatchQueue.push({\n event: event,\n listeners: [\n {\n instance: null,\n listener: function () {\n if (nativeEvent.defaultPrevented) {\n if (0 !== currentEventTransitionLane) {\n var formData = submitter\n ? createFormDataWithSubmitter(nativeEventTarget, submitter)\n : new FormData(nativeEventTarget);\n startHostTransition(\n maybeTargetInst,\n {\n pending: !0,\n data: formData,\n method: nativeEventTarget.method,\n action: action\n },\n null,\n formData\n );\n }\n } else\n \"function\" === typeof action &&\n (event.preventDefault(),\n (formData = submitter\n ? createFormDataWithSubmitter(nativeEventTarget, submitter)\n : new FormData(nativeEventTarget)),\n startHostTransition(\n maybeTargetInst,\n {\n pending: !0,\n data: formData,\n method: nativeEventTarget.method,\n action: action\n },\n action,\n formData\n ));\n },\n currentTarget: nativeEventTarget\n }\n ]\n });\n }\n}\nfor (\n var i$jscomp$inline_1577 = 0;\n i$jscomp$inline_1577 < simpleEventPluginEvents.length;\n i$jscomp$inline_1577++\n) {\n var eventName$jscomp$inline_1578 =\n simpleEventPluginEvents[i$jscomp$inline_1577],\n domEventName$jscomp$inline_1579 =\n eventName$jscomp$inline_1578.toLowerCase(),\n capitalizedEvent$jscomp$inline_1580 =\n eventName$jscomp$inline_1578[0].toUpperCase() +\n eventName$jscomp$inline_1578.slice(1);\n registerSimpleEvent(\n domEventName$jscomp$inline_1579,\n \"on\" + capitalizedEvent$jscomp$inline_1580\n );\n}\nregisterSimpleEvent(ANIMATION_END, \"onAnimationEnd\");\nregisterSimpleEvent(ANIMATION_ITERATION, \"onAnimationIteration\");\nregisterSimpleEvent(ANIMATION_START, \"onAnimationStart\");\nregisterSimpleEvent(\"dblclick\", \"onDoubleClick\");\nregisterSimpleEvent(\"focusin\", \"onFocus\");\nregisterSimpleEvent(\"focusout\", \"onBlur\");\nregisterSimpleEvent(TRANSITION_RUN, \"onTransitionRun\");\nregisterSimpleEvent(TRANSITION_START, \"onTransitionStart\");\nregisterSimpleEvent(TRANSITION_CANCEL, \"onTransitionCancel\");\nregisterSimpleEvent(TRANSITION_END, \"onTransitionEnd\");\nregisterDirectEvent(\"onMouseEnter\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onMouseLeave\", [\"mouseout\", \"mouseover\"]);\nregisterDirectEvent(\"onPointerEnter\", [\"pointerout\", \"pointerover\"]);\nregisterDirectEvent(\"onPointerLeave\", [\"pointerout\", \"pointerover\"]);\nregisterTwoPhaseEvent(\n \"onChange\",\n \"change click focusin focusout input keydown keyup selectionchange\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onSelect\",\n \"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\n \" \"\n )\n);\nregisterTwoPhaseEvent(\"onBeforeInput\", [\n \"compositionend\",\n \"keypress\",\n \"textInput\",\n \"paste\"\n]);\nregisterTwoPhaseEvent(\n \"onCompositionEnd\",\n \"compositionend focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onCompositionStart\",\n \"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")\n);\nregisterTwoPhaseEvent(\n \"onCompositionUpdate\",\n \"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \")\n);\nvar mediaEventTypes =\n \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\n \" \"\n ),\n nonDelegatedEvents = new Set(\n \"beforetoggle cancel close invalid load scroll scrollend toggle\"\n .split(\" \")\n .concat(mediaEventTypes)\n );\nfunction processDispatchQueue(dispatchQueue, eventSystemFlags) {\n eventSystemFlags = 0 !== (eventSystemFlags & 4);\n for (var i = 0; i < dispatchQueue.length; i++) {\n var _dispatchQueue$i = dispatchQueue[i],\n event = _dispatchQueue$i.event;\n _dispatchQueue$i = _dispatchQueue$i.listeners;\n a: {\n var previousInstance = void 0;\n if (eventSystemFlags)\n for (\n var i$jscomp$0 = _dispatchQueue$i.length - 1;\n 0 <= i$jscomp$0;\n i$jscomp$0--\n ) {\n var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0],\n instance = _dispatchListeners$i.instance,\n currentTarget = _dispatchListeners$i.currentTarget;\n _dispatchListeners$i = _dispatchListeners$i.listener;\n if (instance !== previousInstance && event.isPropagationStopped())\n break a;\n previousInstance = _dispatchListeners$i;\n event.currentTarget = currentTarget;\n try {\n previousInstance(event);\n } catch (error) {\n reportGlobalError(error);\n }\n event.currentTarget = null;\n previousInstance = instance;\n }\n else\n for (\n i$jscomp$0 = 0;\n i$jscomp$0 < _dispatchQueue$i.length;\n i$jscomp$0++\n ) {\n _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0];\n instance = _dispatchListeners$i.instance;\n currentTarget = _dispatchListeners$i.currentTarget;\n _dispatchListeners$i = _dispatchListeners$i.listener;\n if (instance !== previousInstance && event.isPropagationStopped())\n break a;\n previousInstance = _dispatchListeners$i;\n event.currentTarget = currentTarget;\n try {\n previousInstance(event);\n } catch (error) {\n reportGlobalError(error);\n }\n event.currentTarget = null;\n previousInstance = instance;\n }\n }\n }\n}\nfunction listenToNonDelegatedEvent(domEventName, targetElement) {\n var JSCompiler_inline_result = targetElement[internalEventHandlersKey];\n void 0 === JSCompiler_inline_result &&\n (JSCompiler_inline_result = targetElement[internalEventHandlersKey] =\n new Set());\n var listenerSetKey = domEventName + \"__bubble\";\n JSCompiler_inline_result.has(listenerSetKey) ||\n (addTrappedEventListener(targetElement, domEventName, 2, !1),\n JSCompiler_inline_result.add(listenerSetKey));\n}\nfunction listenToNativeEvent(domEventName, isCapturePhaseListener, target) {\n var eventSystemFlags = 0;\n isCapturePhaseListener && (eventSystemFlags |= 4);\n addTrappedEventListener(\n target,\n domEventName,\n eventSystemFlags,\n isCapturePhaseListener\n );\n}\nvar listeningMarker = \"_reactListening\" + Math.random().toString(36).slice(2);\nfunction listenToAllSupportedEvents(rootContainerElement) {\n if (!rootContainerElement[listeningMarker]) {\n rootContainerElement[listeningMarker] = !0;\n allNativeEvents.forEach(function (domEventName) {\n \"selectionchange\" !== domEventName &&\n (nonDelegatedEvents.has(domEventName) ||\n listenToNativeEvent(domEventName, !1, rootContainerElement),\n listenToNativeEvent(domEventName, !0, rootContainerElement));\n });\n var ownerDocument =\n 9 === rootContainerElement.nodeType\n ? rootContainerElement\n : rootContainerElement.ownerDocument;\n null === ownerDocument ||\n ownerDocument[listeningMarker] ||\n ((ownerDocument[listeningMarker] = !0),\n listenToNativeEvent(\"selectionchange\", !1, ownerDocument));\n }\n}\nfunction addTrappedEventListener(\n targetContainer,\n domEventName,\n eventSystemFlags,\n isCapturePhaseListener\n) {\n switch (getEventPriority(domEventName)) {\n case 2:\n var listenerWrapper = dispatchDiscreteEvent;\n break;\n case 8:\n listenerWrapper = dispatchContinuousEvent;\n break;\n default:\n listenerWrapper = dispatchEvent;\n }\n eventSystemFlags = listenerWrapper.bind(\n null,\n domEventName,\n eventSystemFlags,\n targetContainer\n );\n listenerWrapper = void 0;\n !passiveBrowserEventsSupported ||\n (\"touchstart\" !== domEventName &&\n \"touchmove\" !== domEventName &&\n \"wheel\" !== domEventName) ||\n (listenerWrapper = !0);\n isCapturePhaseListener\n ? void 0 !== listenerWrapper\n ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n capture: !0,\n passive: listenerWrapper\n })\n : targetContainer.addEventListener(domEventName, eventSystemFlags, !0)\n : void 0 !== listenerWrapper\n ? targetContainer.addEventListener(domEventName, eventSystemFlags, {\n passive: listenerWrapper\n })\n : targetContainer.addEventListener(domEventName, eventSystemFlags, !1);\n}\nfunction dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n targetInst$jscomp$0,\n targetContainer\n) {\n var ancestorInst = targetInst$jscomp$0;\n if (\n 0 === (eventSystemFlags & 1) &&\n 0 === (eventSystemFlags & 2) &&\n null !== targetInst$jscomp$0\n )\n a: for (;;) {\n if (null === targetInst$jscomp$0) return;\n var nodeTag = targetInst$jscomp$0.tag;\n if (3 === nodeTag || 4 === nodeTag) {\n var container = targetInst$jscomp$0.stateNode.containerInfo;\n if (container === targetContainer) break;\n if (4 === nodeTag)\n for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {\n var grandTag = nodeTag.tag;\n if (\n (3 === grandTag || 4 === grandTag) &&\n nodeTag.stateNode.containerInfo === targetContainer\n )\n return;\n nodeTag = nodeTag.return;\n }\n for (; null !== container; ) {\n nodeTag = getClosestInstanceFromNode(container);\n if (null === nodeTag) return;\n grandTag = nodeTag.tag;\n if (\n 5 === grandTag ||\n 6 === grandTag ||\n 26 === grandTag ||\n 27 === grandTag\n ) {\n targetInst$jscomp$0 = ancestorInst = nodeTag;\n continue a;\n }\n container = container.parentNode;\n }\n }\n targetInst$jscomp$0 = targetInst$jscomp$0.return;\n }\n batchedUpdates$1(function () {\n var targetInst = ancestorInst,\n nativeEventTarget = getEventTarget(nativeEvent),\n dispatchQueue = [];\n a: {\n var reactName = topLevelEventsToReactNames.get(domEventName);\n if (void 0 !== reactName) {\n var SyntheticEventCtor = SyntheticEvent,\n reactEventType = domEventName;\n switch (domEventName) {\n case \"keypress\":\n if (0 === getEventCharCode(nativeEvent)) break a;\n case \"keydown\":\n case \"keyup\":\n SyntheticEventCtor = SyntheticKeyboardEvent;\n break;\n case \"focusin\":\n reactEventType = \"focus\";\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"focusout\":\n reactEventType = \"blur\";\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"beforeblur\":\n case \"afterblur\":\n SyntheticEventCtor = SyntheticFocusEvent;\n break;\n case \"click\":\n if (2 === nativeEvent.button) break a;\n case \"auxclick\":\n case \"dblclick\":\n case \"mousedown\":\n case \"mousemove\":\n case \"mouseup\":\n case \"mouseout\":\n case \"mouseover\":\n case \"contextmenu\":\n SyntheticEventCtor = SyntheticMouseEvent;\n break;\n case \"drag\":\n case \"dragend\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"dragstart\":\n case \"drop\":\n SyntheticEventCtor = SyntheticDragEvent;\n break;\n case \"touchcancel\":\n case \"touchend\":\n case \"touchmove\":\n case \"touchstart\":\n SyntheticEventCtor = SyntheticTouchEvent;\n break;\n case ANIMATION_END:\n case ANIMATION_ITERATION:\n case ANIMATION_START:\n SyntheticEventCtor = SyntheticAnimationEvent;\n break;\n case TRANSITION_END:\n SyntheticEventCtor = SyntheticTransitionEvent;\n break;\n case \"scroll\":\n case \"scrollend\":\n SyntheticEventCtor = SyntheticUIEvent;\n break;\n case \"wheel\":\n SyntheticEventCtor = SyntheticWheelEvent;\n break;\n case \"copy\":\n case \"cut\":\n case \"paste\":\n SyntheticEventCtor = SyntheticClipboardEvent;\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"pointerup\":\n SyntheticEventCtor = SyntheticPointerEvent;\n break;\n case \"toggle\":\n case \"beforetoggle\":\n SyntheticEventCtor = SyntheticToggleEvent;\n }\n var inCapturePhase = 0 !== (eventSystemFlags & 4),\n accumulateTargetOnly =\n !inCapturePhase &&\n (\"scroll\" === domEventName || \"scrollend\" === domEventName),\n reactEventName = inCapturePhase\n ? null !== reactName\n ? reactName + \"Capture\"\n : null\n : reactName;\n inCapturePhase = [];\n for (\n var instance = targetInst, lastHostComponent;\n null !== instance;\n\n ) {\n var _instance = instance;\n lastHostComponent = _instance.stateNode;\n _instance = _instance.tag;\n (5 !== _instance && 26 !== _instance && 27 !== _instance) ||\n null === lastHostComponent ||\n null === reactEventName ||\n ((_instance = getListener(instance, reactEventName)),\n null != _instance &&\n inCapturePhase.push(\n createDispatchListener(instance, _instance, lastHostComponent)\n ));\n if (accumulateTargetOnly) break;\n instance = instance.return;\n }\n 0 < inCapturePhase.length &&\n ((reactName = new SyntheticEventCtor(\n reactName,\n reactEventType,\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: reactName, listeners: inCapturePhase }));\n }\n }\n if (0 === (eventSystemFlags & 7)) {\n a: {\n reactName =\n \"mouseover\" === domEventName || \"pointerover\" === domEventName;\n SyntheticEventCtor =\n \"mouseout\" === domEventName || \"pointerout\" === domEventName;\n if (\n reactName &&\n nativeEvent !== currentReplayingEvent &&\n (reactEventType =\n nativeEvent.relatedTarget || nativeEvent.fromElement) &&\n (getClosestInstanceFromNode(reactEventType) ||\n reactEventType[internalContainerInstanceKey])\n )\n break a;\n if (SyntheticEventCtor || reactName) {\n reactName =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget\n : (reactName = nativeEventTarget.ownerDocument)\n ? reactName.defaultView || reactName.parentWindow\n : window;\n if (SyntheticEventCtor) {\n if (\n ((reactEventType =\n nativeEvent.relatedTarget || nativeEvent.toElement),\n (SyntheticEventCtor = targetInst),\n (reactEventType = reactEventType\n ? getClosestInstanceFromNode(reactEventType)\n : null),\n null !== reactEventType &&\n ((accumulateTargetOnly =\n getNearestMountedFiber(reactEventType)),\n (inCapturePhase = reactEventType.tag),\n reactEventType !== accumulateTargetOnly ||\n (5 !== inCapturePhase &&\n 27 !== inCapturePhase &&\n 6 !== inCapturePhase)))\n )\n reactEventType = null;\n } else (SyntheticEventCtor = null), (reactEventType = targetInst);\n if (SyntheticEventCtor !== reactEventType) {\n inCapturePhase = SyntheticMouseEvent;\n _instance = \"onMouseLeave\";\n reactEventName = \"onMouseEnter\";\n instance = \"mouse\";\n if (\"pointerout\" === domEventName || \"pointerover\" === domEventName)\n (inCapturePhase = SyntheticPointerEvent),\n (_instance = \"onPointerLeave\"),\n (reactEventName = \"onPointerEnter\"),\n (instance = \"pointer\");\n accumulateTargetOnly =\n null == SyntheticEventCtor\n ? reactName\n : getNodeFromInstance(SyntheticEventCtor);\n lastHostComponent =\n null == reactEventType\n ? reactName\n : getNodeFromInstance(reactEventType);\n reactName = new inCapturePhase(\n _instance,\n instance + \"leave\",\n SyntheticEventCtor,\n nativeEvent,\n nativeEventTarget\n );\n reactName.target = accumulateTargetOnly;\n reactName.relatedTarget = lastHostComponent;\n _instance = null;\n getClosestInstanceFromNode(nativeEventTarget) === targetInst &&\n ((inCapturePhase = new inCapturePhase(\n reactEventName,\n instance + \"enter\",\n reactEventType,\n nativeEvent,\n nativeEventTarget\n )),\n (inCapturePhase.target = lastHostComponent),\n (inCapturePhase.relatedTarget = accumulateTargetOnly),\n (_instance = inCapturePhase));\n accumulateTargetOnly = _instance;\n if (SyntheticEventCtor && reactEventType)\n b: {\n inCapturePhase = getParent;\n reactEventName = SyntheticEventCtor;\n instance = reactEventType;\n lastHostComponent = 0;\n for (\n _instance = reactEventName;\n _instance;\n _instance = inCapturePhase(_instance)\n )\n lastHostComponent++;\n _instance = 0;\n for (var tempB = instance; tempB; tempB = inCapturePhase(tempB))\n _instance++;\n for (; 0 < lastHostComponent - _instance; )\n (reactEventName = inCapturePhase(reactEventName)),\n lastHostComponent--;\n for (; 0 < _instance - lastHostComponent; )\n (instance = inCapturePhase(instance)), _instance--;\n for (; lastHostComponent--; ) {\n if (\n reactEventName === instance ||\n (null !== instance && reactEventName === instance.alternate)\n ) {\n inCapturePhase = reactEventName;\n break b;\n }\n reactEventName = inCapturePhase(reactEventName);\n instance = inCapturePhase(instance);\n }\n inCapturePhase = null;\n }\n else inCapturePhase = null;\n null !== SyntheticEventCtor &&\n accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n reactName,\n SyntheticEventCtor,\n inCapturePhase,\n !1\n );\n null !== reactEventType &&\n null !== accumulateTargetOnly &&\n accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n accumulateTargetOnly,\n reactEventType,\n inCapturePhase,\n !0\n );\n }\n }\n }\n a: {\n reactName = targetInst ? getNodeFromInstance(targetInst) : window;\n SyntheticEventCtor =\n reactName.nodeName && reactName.nodeName.toLowerCase();\n if (\n \"select\" === SyntheticEventCtor ||\n (\"input\" === SyntheticEventCtor && \"file\" === reactName.type)\n )\n var getTargetInstFunc = getTargetInstForChangeEvent;\n else if (isTextInputElement(reactName))\n if (isInputEventSupported)\n getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n else {\n getTargetInstFunc = getTargetInstForInputEventPolyfill;\n var handleEventFunc = handleEventsForInputEventPolyfill;\n }\n else\n (SyntheticEventCtor = reactName.nodeName),\n !SyntheticEventCtor ||\n \"input\" !== SyntheticEventCtor.toLowerCase() ||\n (\"checkbox\" !== reactName.type && \"radio\" !== reactName.type)\n ? targetInst &&\n isCustomElement(targetInst.elementType) &&\n (getTargetInstFunc = getTargetInstForChangeEvent)\n : (getTargetInstFunc = getTargetInstForClickEvent);\n if (\n getTargetInstFunc &&\n (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))\n ) {\n createAndAccumulateChangeEvent(\n dispatchQueue,\n getTargetInstFunc,\n nativeEvent,\n nativeEventTarget\n );\n break a;\n }\n handleEventFunc && handleEventFunc(domEventName, reactName, targetInst);\n \"focusout\" === domEventName &&\n targetInst &&\n \"number\" === reactName.type &&\n null != targetInst.memoizedProps.value &&\n setDefaultValue(reactName, \"number\", reactName.value);\n }\n handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window;\n switch (domEventName) {\n case \"focusin\":\n if (\n isTextInputElement(handleEventFunc) ||\n \"true\" === handleEventFunc.contentEditable\n )\n (activeElement = handleEventFunc),\n (activeElementInst = targetInst),\n (lastSelection = null);\n break;\n case \"focusout\":\n lastSelection = activeElementInst = activeElement = null;\n break;\n case \"mousedown\":\n mouseDown = !0;\n break;\n case \"contextmenu\":\n case \"mouseup\":\n case \"dragend\":\n mouseDown = !1;\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n break;\n case \"selectionchange\":\n if (skipSelectionChangeEvent) break;\n case \"keydown\":\n case \"keyup\":\n constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n }\n var fallbackData;\n if (canUseCompositionEvent)\n b: {\n switch (domEventName) {\n case \"compositionstart\":\n var eventType = \"onCompositionStart\";\n break b;\n case \"compositionend\":\n eventType = \"onCompositionEnd\";\n break b;\n case \"compositionupdate\":\n eventType = \"onCompositionUpdate\";\n break b;\n }\n eventType = void 0;\n }\n else\n isComposing\n ? isFallbackCompositionEnd(domEventName, nativeEvent) &&\n (eventType = \"onCompositionEnd\")\n : \"keydown\" === domEventName &&\n 229 === nativeEvent.keyCode &&\n (eventType = \"onCompositionStart\");\n eventType &&\n (useFallbackCompositionData &&\n \"ko\" !== nativeEvent.locale &&\n (isComposing || \"onCompositionStart\" !== eventType\n ? \"onCompositionEnd\" === eventType &&\n isComposing &&\n (fallbackData = getData())\n : ((root = nativeEventTarget),\n (startText = \"value\" in root ? root.value : root.textContent),\n (isComposing = !0))),\n (handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType)),\n 0 < handleEventFunc.length &&\n ((eventType = new SyntheticCompositionEvent(\n eventType,\n domEventName,\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: eventType, listeners: handleEventFunc }),\n fallbackData\n ? (eventType.data = fallbackData)\n : ((fallbackData = getDataFromCustomEvent(nativeEvent)),\n null !== fallbackData && (eventType.data = fallbackData))));\n if (\n (fallbackData = canUseTextInputEvent\n ? getNativeBeforeInputChars(domEventName, nativeEvent)\n : getFallbackBeforeInputChars(domEventName, nativeEvent))\n )\n (eventType = accumulateTwoPhaseListeners(targetInst, \"onBeforeInput\")),\n 0 < eventType.length &&\n ((handleEventFunc = new SyntheticCompositionEvent(\n \"onBeforeInput\",\n \"beforeinput\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({\n event: handleEventFunc,\n listeners: eventType\n }),\n (handleEventFunc.data = fallbackData));\n extractEvents$1(\n dispatchQueue,\n domEventName,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n }\n processDispatchQueue(dispatchQueue, eventSystemFlags);\n });\n}\nfunction createDispatchListener(instance, listener, currentTarget) {\n return {\n instance: instance,\n listener: listener,\n currentTarget: currentTarget\n };\n}\nfunction accumulateTwoPhaseListeners(targetFiber, reactName) {\n for (\n var captureName = reactName + \"Capture\", listeners = [];\n null !== targetFiber;\n\n ) {\n var _instance2 = targetFiber,\n stateNode = _instance2.stateNode;\n _instance2 = _instance2.tag;\n (5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2) ||\n null === stateNode ||\n ((_instance2 = getListener(targetFiber, captureName)),\n null != _instance2 &&\n listeners.unshift(\n createDispatchListener(targetFiber, _instance2, stateNode)\n ),\n (_instance2 = getListener(targetFiber, reactName)),\n null != _instance2 &&\n listeners.push(\n createDispatchListener(targetFiber, _instance2, stateNode)\n ));\n if (3 === targetFiber.tag) return listeners;\n targetFiber = targetFiber.return;\n }\n return [];\n}\nfunction getParent(inst) {\n if (null === inst) return null;\n do inst = inst.return;\n while (inst && 5 !== inst.tag && 27 !== inst.tag);\n return inst ? inst : null;\n}\nfunction accumulateEnterLeaveListenersForEvent(\n dispatchQueue,\n event,\n target,\n common,\n inCapturePhase\n) {\n for (\n var registrationName = event._reactName, listeners = [];\n null !== target && target !== common;\n\n ) {\n var _instance3 = target,\n alternate = _instance3.alternate,\n stateNode = _instance3.stateNode;\n _instance3 = _instance3.tag;\n if (null !== alternate && alternate === common) break;\n (5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3) ||\n null === stateNode ||\n ((alternate = stateNode),\n inCapturePhase\n ? ((stateNode = getListener(target, registrationName)),\n null != stateNode &&\n listeners.unshift(\n createDispatchListener(target, stateNode, alternate)\n ))\n : inCapturePhase ||\n ((stateNode = getListener(target, registrationName)),\n null != stateNode &&\n listeners.push(\n createDispatchListener(target, stateNode, alternate)\n )));\n target = target.return;\n }\n 0 !== listeners.length &&\n dispatchQueue.push({ event: event, listeners: listeners });\n}\nvar NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g,\n NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\nfunction normalizeMarkupForTextOrAttribute(markup) {\n return (\"string\" === typeof markup ? markup : \"\" + markup)\n .replace(NORMALIZE_NEWLINES_REGEX, \"\\n\")\n .replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, \"\");\n}\nfunction checkForUnmatchedText(serverText, clientText) {\n clientText = normalizeMarkupForTextOrAttribute(clientText);\n return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1;\n}\nfunction setProp(domElement, tag, key, value, props, prevValue) {\n switch (key) {\n case \"children\":\n \"string\" === typeof value\n ? \"body\" === tag ||\n (\"textarea\" === tag && \"\" === value) ||\n setTextContent(domElement, value)\n : (\"number\" === typeof value || \"bigint\" === typeof value) &&\n \"body\" !== tag &&\n setTextContent(domElement, \"\" + value);\n break;\n case \"className\":\n setValueForKnownAttribute(domElement, \"class\", value);\n break;\n case \"tabIndex\":\n setValueForKnownAttribute(domElement, \"tabindex\", value);\n break;\n case \"dir\":\n case \"role\":\n case \"viewBox\":\n case \"width\":\n case \"height\":\n setValueForKnownAttribute(domElement, key, value);\n break;\n case \"style\":\n setValueForStyles(domElement, value, prevValue);\n break;\n case \"data\":\n if (\"object\" !== tag) {\n setValueForKnownAttribute(domElement, \"data\", value);\n break;\n }\n case \"src\":\n case \"href\":\n if (\"\" === value && (\"a\" !== tag || \"href\" !== key)) {\n domElement.removeAttribute(key);\n break;\n }\n if (\n null == value ||\n \"function\" === typeof value ||\n \"symbol\" === typeof value ||\n \"boolean\" === typeof value\n ) {\n domElement.removeAttribute(key);\n break;\n }\n value = sanitizeURL(\"\" + value);\n domElement.setAttribute(key, value);\n break;\n case \"action\":\n case \"formAction\":\n if (\"function\" === typeof value) {\n domElement.setAttribute(\n key,\n \"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\"\n );\n break;\n } else\n \"function\" === typeof prevValue &&\n (\"formAction\" === key\n ? (\"input\" !== tag &&\n setProp(domElement, tag, \"name\", props.name, props, null),\n setProp(\n domElement,\n tag,\n \"formEncType\",\n props.formEncType,\n props,\n null\n ),\n setProp(\n domElement,\n tag,\n \"formMethod\",\n props.formMethod,\n props,\n null\n ),\n setProp(\n domElement,\n tag,\n \"formTarget\",\n props.formTarget,\n props,\n null\n ))\n : (setProp(domElement, tag, \"encType\", props.encType, props, null),\n setProp(domElement, tag, \"method\", props.method, props, null),\n setProp(domElement, tag, \"target\", props.target, props, null)));\n if (\n null == value ||\n \"symbol\" === typeof value ||\n \"boolean\" === typeof value\n ) {\n domElement.removeAttribute(key);\n break;\n }\n value = sanitizeURL(\"\" + value);\n domElement.setAttribute(key, value);\n break;\n case \"onClick\":\n null != value && (domElement.onclick = noop$1);\n break;\n case \"onScroll\":\n null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n break;\n case \"onScrollEnd\":\n null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != value) {\n if (\"object\" !== typeof value || !(\"__html\" in value))\n throw Error(formatProdErrorMessage(61));\n key = value.__html;\n if (null != key) {\n if (null != props.children) throw Error(formatProdErrorMessage(60));\n domElement.innerHTML = key;\n }\n }\n break;\n case \"multiple\":\n domElement.multiple =\n value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n break;\n case \"muted\":\n domElement.muted =\n value && \"function\" !== typeof value && \"symbol\" !== typeof value;\n break;\n case \"suppressContentEditableWarning\":\n case \"suppressHydrationWarning\":\n case \"defaultValue\":\n case \"defaultChecked\":\n case \"innerHTML\":\n case \"ref\":\n break;\n case \"autoFocus\":\n break;\n case \"xlinkHref\":\n if (\n null == value ||\n \"function\" === typeof value ||\n \"boolean\" === typeof value ||\n \"symbol\" === typeof value\n ) {\n domElement.removeAttribute(\"xlink:href\");\n break;\n }\n key = sanitizeURL(\"\" + value);\n domElement.setAttributeNS(\n \"http://www.w3.org/1999/xlink\",\n \"xlink:href\",\n key\n );\n break;\n case \"contentEditable\":\n case \"spellCheck\":\n case \"draggable\":\n case \"value\":\n case \"autoReverse\":\n case \"externalResourcesRequired\":\n case \"focusable\":\n case \"preserveAlpha\":\n null != value && \"function\" !== typeof value && \"symbol\" !== typeof value\n ? domElement.setAttribute(key, \"\" + value)\n : domElement.removeAttribute(key);\n break;\n case \"inert\":\n case \"allowFullScreen\":\n case \"async\":\n case \"autoPlay\":\n case \"controls\":\n case \"default\":\n case \"defer\":\n case \"disabled\":\n case \"disablePictureInPicture\":\n case \"disableRemotePlayback\":\n case \"formNoValidate\":\n case \"hidden\":\n case \"loop\":\n case \"noModule\":\n case \"noValidate\":\n case \"open\":\n case \"playsInline\":\n case \"readOnly\":\n case \"required\":\n case \"reversed\":\n case \"scoped\":\n case \"seamless\":\n case \"itemScope\":\n value && \"function\" !== typeof value && \"symbol\" !== typeof value\n ? domElement.setAttribute(key, \"\")\n : domElement.removeAttribute(key);\n break;\n case \"capture\":\n case \"download\":\n !0 === value\n ? domElement.setAttribute(key, \"\")\n : !1 !== value &&\n null != value &&\n \"function\" !== typeof value &&\n \"symbol\" !== typeof value\n ? domElement.setAttribute(key, value)\n : domElement.removeAttribute(key);\n break;\n case \"cols\":\n case \"rows\":\n case \"size\":\n case \"span\":\n null != value &&\n \"function\" !== typeof value &&\n \"symbol\" !== typeof value &&\n !isNaN(value) &&\n 1 <= value\n ? domElement.setAttribute(key, value)\n : domElement.removeAttribute(key);\n break;\n case \"rowSpan\":\n case \"start\":\n null == value ||\n \"function\" === typeof value ||\n \"symbol\" === typeof value ||\n isNaN(value)\n ? domElement.removeAttribute(key)\n : domElement.setAttribute(key, value);\n break;\n case \"popover\":\n listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n listenToNonDelegatedEvent(\"toggle\", domElement);\n setValueForAttribute(domElement, \"popover\", value);\n break;\n case \"xlinkActuate\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:actuate\",\n value\n );\n break;\n case \"xlinkArcrole\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:arcrole\",\n value\n );\n break;\n case \"xlinkRole\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:role\",\n value\n );\n break;\n case \"xlinkShow\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:show\",\n value\n );\n break;\n case \"xlinkTitle\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:title\",\n value\n );\n break;\n case \"xlinkType\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/1999/xlink\",\n \"xlink:type\",\n value\n );\n break;\n case \"xmlBase\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:base\",\n value\n );\n break;\n case \"xmlLang\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:lang\",\n value\n );\n break;\n case \"xmlSpace\":\n setValueForNamespacedAttribute(\n domElement,\n \"http://www.w3.org/XML/1998/namespace\",\n \"xml:space\",\n value\n );\n break;\n case \"is\":\n setValueForAttribute(domElement, \"is\", value);\n break;\n case \"innerText\":\n case \"textContent\":\n break;\n default:\n if (\n !(2 < key.length) ||\n (\"o\" !== key[0] && \"O\" !== key[0]) ||\n (\"n\" !== key[1] && \"N\" !== key[1])\n )\n (key = aliases.get(key) || key),\n setValueForAttribute(domElement, key, value);\n }\n}\nfunction setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {\n switch (key) {\n case \"style\":\n setValueForStyles(domElement, value, prevValue);\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != value) {\n if (\"object\" !== typeof value || !(\"__html\" in value))\n throw Error(formatProdErrorMessage(61));\n key = value.__html;\n if (null != key) {\n if (null != props.children) throw Error(formatProdErrorMessage(60));\n domElement.innerHTML = key;\n }\n }\n break;\n case \"children\":\n \"string\" === typeof value\n ? setTextContent(domElement, value)\n : (\"number\" === typeof value || \"bigint\" === typeof value) &&\n setTextContent(domElement, \"\" + value);\n break;\n case \"onScroll\":\n null != value && listenToNonDelegatedEvent(\"scroll\", domElement);\n break;\n case \"onScrollEnd\":\n null != value && listenToNonDelegatedEvent(\"scrollend\", domElement);\n break;\n case \"onClick\":\n null != value && (domElement.onclick = noop$1);\n break;\n case \"suppressContentEditableWarning\":\n case \"suppressHydrationWarning\":\n case \"innerHTML\":\n case \"ref\":\n break;\n case \"innerText\":\n case \"textContent\":\n break;\n default:\n if (!registrationNameDependencies.hasOwnProperty(key))\n a: {\n if (\n \"o\" === key[0] &&\n \"n\" === key[1] &&\n ((props = key.endsWith(\"Capture\")),\n (tag = key.slice(2, props ? key.length - 7 : void 0)),\n (prevValue = domElement[internalPropsKey] || null),\n (prevValue = null != prevValue ? prevValue[key] : null),\n \"function\" === typeof prevValue &&\n domElement.removeEventListener(tag, prevValue, props),\n \"function\" === typeof value)\n ) {\n \"function\" !== typeof prevValue &&\n null !== prevValue &&\n (key in domElement\n ? (domElement[key] = null)\n : domElement.hasAttribute(key) &&\n domElement.removeAttribute(key));\n domElement.addEventListener(tag, value, props);\n break a;\n }\n key in domElement\n ? (domElement[key] = value)\n : !0 === value\n ? domElement.setAttribute(key, \"\")\n : setValueForAttribute(domElement, key, value);\n }\n }\n}\nfunction setInitialProperties(domElement, tag, props) {\n switch (tag) {\n case \"div\":\n case \"span\":\n case \"svg\":\n case \"path\":\n case \"a\":\n case \"g\":\n case \"p\":\n case \"li\":\n break;\n case \"img\":\n listenToNonDelegatedEvent(\"error\", domElement);\n listenToNonDelegatedEvent(\"load\", domElement);\n var hasSrc = !1,\n hasSrcSet = !1,\n propKey;\n for (propKey in props)\n if (props.hasOwnProperty(propKey)) {\n var propValue = props[propKey];\n if (null != propValue)\n switch (propKey) {\n case \"src\":\n hasSrc = !0;\n break;\n case \"srcSet\":\n hasSrcSet = !0;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n throw Error(formatProdErrorMessage(137, tag));\n default:\n setProp(domElement, tag, propKey, propValue, props, null);\n }\n }\n hasSrcSet &&\n setProp(domElement, tag, \"srcSet\", props.srcSet, props, null);\n hasSrc && setProp(domElement, tag, \"src\", props.src, props, null);\n return;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n var defaultValue = (propKey = propValue = hasSrcSet = null),\n checked = null,\n defaultChecked = null;\n for (hasSrc in props)\n if (props.hasOwnProperty(hasSrc)) {\n var propValue$184 = props[hasSrc];\n if (null != propValue$184)\n switch (hasSrc) {\n case \"name\":\n hasSrcSet = propValue$184;\n break;\n case \"type\":\n propValue = propValue$184;\n break;\n case \"checked\":\n checked = propValue$184;\n break;\n case \"defaultChecked\":\n defaultChecked = propValue$184;\n break;\n case \"value\":\n propKey = propValue$184;\n break;\n case \"defaultValue\":\n defaultValue = propValue$184;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propValue$184)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n setProp(domElement, tag, hasSrc, propValue$184, props, null);\n }\n }\n initInput(\n domElement,\n propKey,\n defaultValue,\n checked,\n defaultChecked,\n propValue,\n hasSrcSet,\n !1\n );\n return;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n hasSrc = propValue = propKey = null;\n for (hasSrcSet in props)\n if (\n props.hasOwnProperty(hasSrcSet) &&\n ((defaultValue = props[hasSrcSet]), null != defaultValue)\n )\n switch (hasSrcSet) {\n case \"value\":\n propKey = defaultValue;\n break;\n case \"defaultValue\":\n propValue = defaultValue;\n break;\n case \"multiple\":\n hasSrc = defaultValue;\n default:\n setProp(domElement, tag, hasSrcSet, defaultValue, props, null);\n }\n tag = propKey;\n props = propValue;\n domElement.multiple = !!hasSrc;\n null != tag\n ? updateOptions(domElement, !!hasSrc, tag, !1)\n : null != props && updateOptions(domElement, !!hasSrc, props, !0);\n return;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", domElement);\n propKey = hasSrcSet = hasSrc = null;\n for (propValue in props)\n if (\n props.hasOwnProperty(propValue) &&\n ((defaultValue = props[propValue]), null != defaultValue)\n )\n switch (propValue) {\n case \"value\":\n hasSrc = defaultValue;\n break;\n case \"defaultValue\":\n hasSrcSet = defaultValue;\n break;\n case \"children\":\n propKey = defaultValue;\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != defaultValue) throw Error(formatProdErrorMessage(91));\n break;\n default:\n setProp(domElement, tag, propValue, defaultValue, props, null);\n }\n initTextarea(domElement, hasSrc, hasSrcSet, propKey);\n return;\n case \"option\":\n for (checked in props)\n if (\n props.hasOwnProperty(checked) &&\n ((hasSrc = props[checked]), null != hasSrc)\n )\n switch (checked) {\n case \"selected\":\n domElement.selected =\n hasSrc &&\n \"function\" !== typeof hasSrc &&\n \"symbol\" !== typeof hasSrc;\n break;\n default:\n setProp(domElement, tag, checked, hasSrc, props, null);\n }\n return;\n case \"dialog\":\n listenToNonDelegatedEvent(\"beforetoggle\", domElement);\n listenToNonDelegatedEvent(\"toggle\", domElement);\n listenToNonDelegatedEvent(\"cancel\", domElement);\n listenToNonDelegatedEvent(\"close\", domElement);\n break;\n case \"iframe\":\n case \"object\":\n listenToNonDelegatedEvent(\"load\", domElement);\n break;\n case \"video\":\n case \"audio\":\n for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++)\n listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement);\n break;\n case \"image\":\n listenToNonDelegatedEvent(\"error\", domElement);\n listenToNonDelegatedEvent(\"load\", domElement);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", domElement);\n break;\n case \"embed\":\n case \"source\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", domElement),\n listenToNonDelegatedEvent(\"load\", domElement);\n case \"area\":\n case \"base\":\n case \"br\":\n case \"col\":\n case \"hr\":\n case \"keygen\":\n case \"meta\":\n case \"param\":\n case \"track\":\n case \"wbr\":\n case \"menuitem\":\n for (defaultChecked in props)\n if (\n props.hasOwnProperty(defaultChecked) &&\n ((hasSrc = props[defaultChecked]), null != hasSrc)\n )\n switch (defaultChecked) {\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n throw Error(formatProdErrorMessage(137, tag));\n default:\n setProp(domElement, tag, defaultChecked, hasSrc, props, null);\n }\n return;\n default:\n if (isCustomElement(tag)) {\n for (propValue$184 in props)\n props.hasOwnProperty(propValue$184) &&\n ((hasSrc = props[propValue$184]),\n void 0 !== hasSrc &&\n setPropOnCustomElement(\n domElement,\n tag,\n propValue$184,\n hasSrc,\n props,\n void 0\n ));\n return;\n }\n }\n for (defaultValue in props)\n props.hasOwnProperty(defaultValue) &&\n ((hasSrc = props[defaultValue]),\n null != hasSrc &&\n setProp(domElement, tag, defaultValue, hasSrc, props, null));\n}\nfunction updateProperties(domElement, tag, lastProps, nextProps) {\n switch (tag) {\n case \"div\":\n case \"span\":\n case \"svg\":\n case \"path\":\n case \"a\":\n case \"g\":\n case \"p\":\n case \"li\":\n break;\n case \"input\":\n var name = null,\n type = null,\n value = null,\n defaultValue = null,\n lastDefaultValue = null,\n checked = null,\n defaultChecked = null;\n for (propKey in lastProps) {\n var lastProp = lastProps[propKey];\n if (lastProps.hasOwnProperty(propKey) && null != lastProp)\n switch (propKey) {\n case \"checked\":\n break;\n case \"value\":\n break;\n case \"defaultValue\":\n lastDefaultValue = lastProp;\n default:\n nextProps.hasOwnProperty(propKey) ||\n setProp(domElement, tag, propKey, null, nextProps, lastProp);\n }\n }\n for (var propKey$201 in nextProps) {\n var propKey = nextProps[propKey$201];\n lastProp = lastProps[propKey$201];\n if (\n nextProps.hasOwnProperty(propKey$201) &&\n (null != propKey || null != lastProp)\n )\n switch (propKey$201) {\n case \"type\":\n type = propKey;\n break;\n case \"name\":\n name = propKey;\n break;\n case \"checked\":\n checked = propKey;\n break;\n case \"defaultChecked\":\n defaultChecked = propKey;\n break;\n case \"value\":\n value = propKey;\n break;\n case \"defaultValue\":\n defaultValue = propKey;\n break;\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propKey)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n propKey !== lastProp &&\n setProp(\n domElement,\n tag,\n propKey$201,\n propKey,\n nextProps,\n lastProp\n );\n }\n }\n updateInput(\n domElement,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n );\n return;\n case \"select\":\n propKey = value = defaultValue = propKey$201 = null;\n for (type in lastProps)\n if (\n ((lastDefaultValue = lastProps[type]),\n lastProps.hasOwnProperty(type) && null != lastDefaultValue)\n )\n switch (type) {\n case \"value\":\n break;\n case \"multiple\":\n propKey = lastDefaultValue;\n default:\n nextProps.hasOwnProperty(type) ||\n setProp(\n domElement,\n tag,\n type,\n null,\n nextProps,\n lastDefaultValue\n );\n }\n for (name in nextProps)\n if (\n ((type = nextProps[name]),\n (lastDefaultValue = lastProps[name]),\n nextProps.hasOwnProperty(name) &&\n (null != type || null != lastDefaultValue))\n )\n switch (name) {\n case \"value\":\n propKey$201 = type;\n break;\n case \"defaultValue\":\n defaultValue = type;\n break;\n case \"multiple\":\n value = type;\n default:\n type !== lastDefaultValue &&\n setProp(\n domElement,\n tag,\n name,\n type,\n nextProps,\n lastDefaultValue\n );\n }\n tag = defaultValue;\n lastProps = value;\n nextProps = propKey;\n null != propKey$201\n ? updateOptions(domElement, !!lastProps, propKey$201, !1)\n : !!nextProps !== !!lastProps &&\n (null != tag\n ? updateOptions(domElement, !!lastProps, tag, !0)\n : updateOptions(domElement, !!lastProps, lastProps ? [] : \"\", !1));\n return;\n case \"textarea\":\n propKey = propKey$201 = null;\n for (defaultValue in lastProps)\n if (\n ((name = lastProps[defaultValue]),\n lastProps.hasOwnProperty(defaultValue) &&\n null != name &&\n !nextProps.hasOwnProperty(defaultValue))\n )\n switch (defaultValue) {\n case \"value\":\n break;\n case \"children\":\n break;\n default:\n setProp(domElement, tag, defaultValue, null, nextProps, name);\n }\n for (value in nextProps)\n if (\n ((name = nextProps[value]),\n (type = lastProps[value]),\n nextProps.hasOwnProperty(value) && (null != name || null != type))\n )\n switch (value) {\n case \"value\":\n propKey$201 = name;\n break;\n case \"defaultValue\":\n propKey = name;\n break;\n case \"children\":\n break;\n case \"dangerouslySetInnerHTML\":\n if (null != name) throw Error(formatProdErrorMessage(91));\n break;\n default:\n name !== type &&\n setProp(domElement, tag, value, name, nextProps, type);\n }\n updateTextarea(domElement, propKey$201, propKey);\n return;\n case \"option\":\n for (var propKey$217 in lastProps)\n if (\n ((propKey$201 = lastProps[propKey$217]),\n lastProps.hasOwnProperty(propKey$217) &&\n null != propKey$201 &&\n !nextProps.hasOwnProperty(propKey$217))\n )\n switch (propKey$217) {\n case \"selected\":\n domElement.selected = !1;\n break;\n default:\n setProp(\n domElement,\n tag,\n propKey$217,\n null,\n nextProps,\n propKey$201\n );\n }\n for (lastDefaultValue in nextProps)\n if (\n ((propKey$201 = nextProps[lastDefaultValue]),\n (propKey = lastProps[lastDefaultValue]),\n nextProps.hasOwnProperty(lastDefaultValue) &&\n propKey$201 !== propKey &&\n (null != propKey$201 || null != propKey))\n )\n switch (lastDefaultValue) {\n case \"selected\":\n domElement.selected =\n propKey$201 &&\n \"function\" !== typeof propKey$201 &&\n \"symbol\" !== typeof propKey$201;\n break;\n default:\n setProp(\n domElement,\n tag,\n lastDefaultValue,\n propKey$201,\n nextProps,\n propKey\n );\n }\n return;\n case \"img\":\n case \"link\":\n case \"area\":\n case \"base\":\n case \"br\":\n case \"col\":\n case \"embed\":\n case \"hr\":\n case \"keygen\":\n case \"meta\":\n case \"param\":\n case \"source\":\n case \"track\":\n case \"wbr\":\n case \"menuitem\":\n for (var propKey$222 in lastProps)\n (propKey$201 = lastProps[propKey$222]),\n lastProps.hasOwnProperty(propKey$222) &&\n null != propKey$201 &&\n !nextProps.hasOwnProperty(propKey$222) &&\n setProp(domElement, tag, propKey$222, null, nextProps, propKey$201);\n for (checked in nextProps)\n if (\n ((propKey$201 = nextProps[checked]),\n (propKey = lastProps[checked]),\n nextProps.hasOwnProperty(checked) &&\n propKey$201 !== propKey &&\n (null != propKey$201 || null != propKey))\n )\n switch (checked) {\n case \"children\":\n case \"dangerouslySetInnerHTML\":\n if (null != propKey$201)\n throw Error(formatProdErrorMessage(137, tag));\n break;\n default:\n setProp(\n domElement,\n tag,\n checked,\n propKey$201,\n nextProps,\n propKey\n );\n }\n return;\n default:\n if (isCustomElement(tag)) {\n for (var propKey$227 in lastProps)\n (propKey$201 = lastProps[propKey$227]),\n lastProps.hasOwnProperty(propKey$227) &&\n void 0 !== propKey$201 &&\n !nextProps.hasOwnProperty(propKey$227) &&\n setPropOnCustomElement(\n domElement,\n tag,\n propKey$227,\n void 0,\n nextProps,\n propKey$201\n );\n for (defaultChecked in nextProps)\n (propKey$201 = nextProps[defaultChecked]),\n (propKey = lastProps[defaultChecked]),\n !nextProps.hasOwnProperty(defaultChecked) ||\n propKey$201 === propKey ||\n (void 0 === propKey$201 && void 0 === propKey) ||\n setPropOnCustomElement(\n domElement,\n tag,\n defaultChecked,\n propKey$201,\n nextProps,\n propKey\n );\n return;\n }\n }\n for (var propKey$232 in lastProps)\n (propKey$201 = lastProps[propKey$232]),\n lastProps.hasOwnProperty(propKey$232) &&\n null != propKey$201 &&\n !nextProps.hasOwnProperty(propKey$232) &&\n setProp(domElement, tag, propKey$232, null, nextProps, propKey$201);\n for (lastProp in nextProps)\n (propKey$201 = nextProps[lastProp]),\n (propKey = lastProps[lastProp]),\n !nextProps.hasOwnProperty(lastProp) ||\n propKey$201 === propKey ||\n (null == propKey$201 && null == propKey) ||\n setProp(domElement, tag, lastProp, propKey$201, nextProps, propKey);\n}\nfunction isLikelyStaticResource(initiatorType) {\n switch (initiatorType) {\n case \"css\":\n case \"script\":\n case \"font\":\n case \"img\":\n case \"image\":\n case \"input\":\n case \"link\":\n return !0;\n default:\n return !1;\n }\n}\nfunction estimateBandwidth() {\n if (\"function\" === typeof performance.getEntriesByType) {\n for (\n var count = 0,\n bits = 0,\n resourceEntries = performance.getEntriesByType(\"resource\"),\n i = 0;\n i < resourceEntries.length;\n i++\n ) {\n var entry = resourceEntries[i],\n transferSize = entry.transferSize,\n initiatorType = entry.initiatorType,\n duration = entry.duration;\n if (transferSize && duration && isLikelyStaticResource(initiatorType)) {\n initiatorType = 0;\n duration = entry.responseEnd;\n for (i += 1; i < resourceEntries.length; i++) {\n var overlapEntry = resourceEntries[i],\n overlapStartTime = overlapEntry.startTime;\n if (overlapStartTime > duration) break;\n var overlapTransferSize = overlapEntry.transferSize,\n overlapInitiatorType = overlapEntry.initiatorType;\n overlapTransferSize &&\n isLikelyStaticResource(overlapInitiatorType) &&\n ((overlapEntry = overlapEntry.responseEnd),\n (initiatorType +=\n overlapTransferSize *\n (overlapEntry < duration\n ? 1\n : (duration - overlapStartTime) /\n (overlapEntry - overlapStartTime))));\n }\n --i;\n bits += (8 * (transferSize + initiatorType)) / (entry.duration / 1e3);\n count++;\n if (10 < count) break;\n }\n }\n if (0 < count) return bits / count / 1e6;\n }\n return navigator.connection &&\n ((count = navigator.connection.downlink), \"number\" === typeof count)\n ? count\n : 5;\n}\nvar eventsEnabled = null,\n selectionInformation = null;\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n return 9 === rootContainerElement.nodeType\n ? rootContainerElement\n : rootContainerElement.ownerDocument;\n}\nfunction getOwnHostContext(namespaceURI) {\n switch (namespaceURI) {\n case \"http://www.w3.org/2000/svg\":\n return 1;\n case \"http://www.w3.org/1998/Math/MathML\":\n return 2;\n default:\n return 0;\n }\n}\nfunction getChildHostContextProd(parentNamespace, type) {\n if (0 === parentNamespace)\n switch (type) {\n case \"svg\":\n return 1;\n case \"math\":\n return 2;\n default:\n return 0;\n }\n return 1 === parentNamespace && \"foreignObject\" === type\n ? 0\n : parentNamespace;\n}\nfunction shouldSetTextContent(type, props) {\n return (\n \"textarea\" === type ||\n \"noscript\" === type ||\n \"string\" === typeof props.children ||\n \"number\" === typeof props.children ||\n \"bigint\" === typeof props.children ||\n (\"object\" === typeof props.dangerouslySetInnerHTML &&\n null !== props.dangerouslySetInnerHTML &&\n null != props.dangerouslySetInnerHTML.__html)\n );\n}\nvar currentPopstateTransitionEvent = null;\nfunction shouldAttemptEagerTransition() {\n var event = window.event;\n if (event && \"popstate\" === event.type) {\n if (event === currentPopstateTransitionEvent) return !1;\n currentPopstateTransitionEvent = event;\n return !0;\n }\n currentPopstateTransitionEvent = null;\n return !1;\n}\nvar scheduleTimeout = \"function\" === typeof setTimeout ? setTimeout : void 0,\n cancelTimeout = \"function\" === typeof clearTimeout ? clearTimeout : void 0,\n localPromise = \"function\" === typeof Promise ? Promise : void 0,\n scheduleMicrotask =\n \"function\" === typeof queueMicrotask\n ? queueMicrotask\n : \"undefined\" !== typeof localPromise\n ? function (callback) {\n return localPromise\n .resolve(null)\n .then(callback)\n .catch(handleErrorInNextTick);\n }\n : scheduleTimeout;\nfunction handleErrorInNextTick(error) {\n setTimeout(function () {\n throw error;\n });\n}\nfunction isSingletonScope(type) {\n return \"head\" === type;\n}\nfunction clearHydrationBoundary(parentInstance, hydrationInstance) {\n var node = hydrationInstance,\n depth = 0;\n do {\n var nextNode = node.nextSibling;\n parentInstance.removeChild(node);\n if (nextNode && 8 === nextNode.nodeType)\n if (((node = nextNode.data), \"/$\" === node || \"/&\" === node)) {\n if (0 === depth) {\n parentInstance.removeChild(nextNode);\n retryIfBlockedOn(hydrationInstance);\n return;\n }\n depth--;\n } else if (\n \"$\" === node ||\n \"$?\" === node ||\n \"$~\" === node ||\n \"$!\" === node ||\n \"&\" === node\n )\n depth++;\n else if (\"html\" === node)\n releaseSingletonInstance(parentInstance.ownerDocument.documentElement);\n else if (\"head\" === node) {\n node = parentInstance.ownerDocument.head;\n releaseSingletonInstance(node);\n for (var node$jscomp$0 = node.firstChild; node$jscomp$0; ) {\n var nextNode$jscomp$0 = node$jscomp$0.nextSibling,\n nodeName = node$jscomp$0.nodeName;\n node$jscomp$0[internalHoistableMarker] ||\n \"SCRIPT\" === nodeName ||\n \"STYLE\" === nodeName ||\n (\"LINK\" === nodeName &&\n \"stylesheet\" === node$jscomp$0.rel.toLowerCase()) ||\n node.removeChild(node$jscomp$0);\n node$jscomp$0 = nextNode$jscomp$0;\n }\n } else\n \"body\" === node &&\n releaseSingletonInstance(parentInstance.ownerDocument.body);\n node = nextNode;\n } while (node);\n retryIfBlockedOn(hydrationInstance);\n}\nfunction hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {\n var node = suspenseInstance;\n suspenseInstance = 0;\n do {\n var nextNode = node.nextSibling;\n 1 === node.nodeType\n ? isHidden\n ? ((node._stashedDisplay = node.style.display),\n (node.style.display = \"none\"))\n : ((node.style.display = node._stashedDisplay || \"\"),\n \"\" === node.getAttribute(\"style\") && node.removeAttribute(\"style\"))\n : 3 === node.nodeType &&\n (isHidden\n ? ((node._stashedText = node.nodeValue), (node.nodeValue = \"\"))\n : (node.nodeValue = node._stashedText || \"\"));\n if (nextNode && 8 === nextNode.nodeType)\n if (((node = nextNode.data), \"/$\" === node))\n if (0 === suspenseInstance) break;\n else suspenseInstance--;\n else\n (\"$\" !== node && \"$?\" !== node && \"$~\" !== node && \"$!\" !== node) ||\n suspenseInstance++;\n node = nextNode;\n } while (node);\n}\nfunction clearContainerSparingly(container) {\n var nextNode = container.firstChild;\n nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling);\n for (; nextNode; ) {\n var node = nextNode;\n nextNode = nextNode.nextSibling;\n switch (node.nodeName) {\n case \"HTML\":\n case \"HEAD\":\n case \"BODY\":\n clearContainerSparingly(node);\n detachDeletedInstance(node);\n continue;\n case \"SCRIPT\":\n case \"STYLE\":\n continue;\n case \"LINK\":\n if (\"stylesheet\" === node.rel.toLowerCase()) continue;\n }\n container.removeChild(node);\n }\n}\nfunction canHydrateInstance(instance, type, props, inRootOrSingleton) {\n for (; 1 === instance.nodeType; ) {\n var anyProps = props;\n if (instance.nodeName.toLowerCase() !== type.toLowerCase()) {\n if (\n !inRootOrSingleton &&\n (\"INPUT\" !== instance.nodeName || \"hidden\" !== instance.type)\n )\n break;\n } else if (!inRootOrSingleton)\n if (\"input\" === type && \"hidden\" === instance.type) {\n var name = null == anyProps.name ? null : \"\" + anyProps.name;\n if (\n \"hidden\" === anyProps.type &&\n instance.getAttribute(\"name\") === name\n )\n return instance;\n } else return instance;\n else if (!instance[internalHoistableMarker])\n switch (type) {\n case \"meta\":\n if (!instance.hasAttribute(\"itemprop\")) break;\n return instance;\n case \"link\":\n name = instance.getAttribute(\"rel\");\n if (\"stylesheet\" === name && instance.hasAttribute(\"data-precedence\"))\n break;\n else if (\n name !== anyProps.rel ||\n instance.getAttribute(\"href\") !==\n (null == anyProps.href || \"\" === anyProps.href\n ? null\n : anyProps.href) ||\n instance.getAttribute(\"crossorigin\") !==\n (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||\n instance.getAttribute(\"title\") !==\n (null == anyProps.title ? null : anyProps.title)\n )\n break;\n return instance;\n case \"style\":\n if (instance.hasAttribute(\"data-precedence\")) break;\n return instance;\n case \"script\":\n name = instance.getAttribute(\"src\");\n if (\n (name !== (null == anyProps.src ? null : anyProps.src) ||\n instance.getAttribute(\"type\") !==\n (null == anyProps.type ? null : anyProps.type) ||\n instance.getAttribute(\"crossorigin\") !==\n (null == anyProps.crossOrigin ? null : anyProps.crossOrigin)) &&\n name &&\n instance.hasAttribute(\"async\") &&\n !instance.hasAttribute(\"itemprop\")\n )\n break;\n return instance;\n default:\n return instance;\n }\n instance = getNextHydratable(instance.nextSibling);\n if (null === instance) break;\n }\n return null;\n}\nfunction canHydrateTextInstance(instance, text, inRootOrSingleton) {\n if (\"\" === text) return null;\n for (; 3 !== instance.nodeType; ) {\n if (\n (1 !== instance.nodeType ||\n \"INPUT\" !== instance.nodeName ||\n \"hidden\" !== instance.type) &&\n !inRootOrSingleton\n )\n return null;\n instance = getNextHydratable(instance.nextSibling);\n if (null === instance) return null;\n }\n return instance;\n}\nfunction canHydrateHydrationBoundary(instance, inRootOrSingleton) {\n for (; 8 !== instance.nodeType; ) {\n if (\n (1 !== instance.nodeType ||\n \"INPUT\" !== instance.nodeName ||\n \"hidden\" !== instance.type) &&\n !inRootOrSingleton\n )\n return null;\n instance = getNextHydratable(instance.nextSibling);\n if (null === instance) return null;\n }\n return instance;\n}\nfunction isSuspenseInstancePending(instance) {\n return \"$?\" === instance.data || \"$~\" === instance.data;\n}\nfunction isSuspenseInstanceFallback(instance) {\n return (\n \"$!\" === instance.data ||\n (\"$?\" === instance.data && \"loading\" !== instance.ownerDocument.readyState)\n );\n}\nfunction registerSuspenseInstanceRetry(instance, callback) {\n var ownerDocument = instance.ownerDocument;\n if (\"$~\" === instance.data) instance._reactRetry = callback;\n else if (\"$?\" !== instance.data || \"loading\" !== ownerDocument.readyState)\n callback();\n else {\n var listener = function () {\n callback();\n ownerDocument.removeEventListener(\"DOMContentLoaded\", listener);\n };\n ownerDocument.addEventListener(\"DOMContentLoaded\", listener);\n instance._reactRetry = listener;\n }\n}\nfunction getNextHydratable(node) {\n for (; null != node; node = node.nextSibling) {\n var nodeType = node.nodeType;\n if (1 === nodeType || 3 === nodeType) break;\n if (8 === nodeType) {\n nodeType = node.data;\n if (\n \"$\" === nodeType ||\n \"$!\" === nodeType ||\n \"$?\" === nodeType ||\n \"$~\" === nodeType ||\n \"&\" === nodeType ||\n \"F!\" === nodeType ||\n \"F\" === nodeType\n )\n break;\n if (\"/$\" === nodeType || \"/&\" === nodeType) return null;\n }\n }\n return node;\n}\nvar previousHydratableOnEnteringScopedSingleton = null;\nfunction getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {\n hydrationInstance = hydrationInstance.nextSibling;\n for (var depth = 0; hydrationInstance; ) {\n if (8 === hydrationInstance.nodeType) {\n var data = hydrationInstance.data;\n if (\"/$\" === data || \"/&\" === data) {\n if (0 === depth)\n return getNextHydratable(hydrationInstance.nextSibling);\n depth--;\n } else\n (\"$\" !== data &&\n \"$!\" !== data &&\n \"$?\" !== data &&\n \"$~\" !== data &&\n \"&\" !== data) ||\n depth++;\n }\n hydrationInstance = hydrationInstance.nextSibling;\n }\n return null;\n}\nfunction getParentHydrationBoundary(targetInstance) {\n targetInstance = targetInstance.previousSibling;\n for (var depth = 0; targetInstance; ) {\n if (8 === targetInstance.nodeType) {\n var data = targetInstance.data;\n if (\n \"$\" === data ||\n \"$!\" === data ||\n \"$?\" === data ||\n \"$~\" === data ||\n \"&\" === data\n ) {\n if (0 === depth) return targetInstance;\n depth--;\n } else (\"/$\" !== data && \"/&\" !== data) || depth++;\n }\n targetInstance = targetInstance.previousSibling;\n }\n return null;\n}\nfunction resolveSingletonInstance(type, props, rootContainerInstance) {\n props = getOwnerDocumentFromRootContainer(rootContainerInstance);\n switch (type) {\n case \"html\":\n type = props.documentElement;\n if (!type) throw Error(formatProdErrorMessage(452));\n return type;\n case \"head\":\n type = props.head;\n if (!type) throw Error(formatProdErrorMessage(453));\n return type;\n case \"body\":\n type = props.body;\n if (!type) throw Error(formatProdErrorMessage(454));\n return type;\n default:\n throw Error(formatProdErrorMessage(451));\n }\n}\nfunction releaseSingletonInstance(instance) {\n for (var attributes = instance.attributes; attributes.length; )\n instance.removeAttributeNode(attributes[0]);\n detachDeletedInstance(instance);\n}\nvar preloadPropsMap = new Map(),\n preconnectsSet = new Set();\nfunction getHoistableRoot(container) {\n return \"function\" === typeof container.getRootNode\n ? container.getRootNode()\n : 9 === container.nodeType\n ? container\n : container.ownerDocument;\n}\nvar previousDispatcher = ReactDOMSharedInternals.d;\nReactDOMSharedInternals.d = {\n f: flushSyncWork,\n r: requestFormReset,\n D: prefetchDNS,\n C: preconnect,\n L: preload,\n m: preloadModule,\n X: preinitScript,\n S: preinitStyle,\n M: preinitModuleScript\n};\nfunction flushSyncWork() {\n var previousWasRendering = previousDispatcher.f(),\n wasRendering = flushSyncWork$1();\n return previousWasRendering || wasRendering;\n}\nfunction requestFormReset(form) {\n var formInst = getInstanceFromNode(form);\n null !== formInst && 5 === formInst.tag && \"form\" === formInst.type\n ? requestFormReset$1(formInst)\n : previousDispatcher.r(form);\n}\nvar globalDocument = \"undefined\" === typeof document ? null : document;\nfunction preconnectAs(rel, href, crossOrigin) {\n var ownerDocument = globalDocument;\n if (ownerDocument && \"string\" === typeof href && href) {\n var limitedEscapedHref =\n escapeSelectorAttributeValueInsideDoubleQuotes(href);\n limitedEscapedHref =\n 'link[rel=\"' + rel + '\"][href=\"' + limitedEscapedHref + '\"]';\n \"string\" === typeof crossOrigin &&\n (limitedEscapedHref += '[crossorigin=\"' + crossOrigin + '\"]');\n preconnectsSet.has(limitedEscapedHref) ||\n (preconnectsSet.add(limitedEscapedHref),\n (rel = { rel: rel, crossOrigin: crossOrigin, href: href }),\n null === ownerDocument.querySelector(limitedEscapedHref) &&\n ((href = ownerDocument.createElement(\"link\")),\n setInitialProperties(href, \"link\", rel),\n markNodeAsHoistable(href),\n ownerDocument.head.appendChild(href)));\n }\n}\nfunction prefetchDNS(href) {\n previousDispatcher.D(href);\n preconnectAs(\"dns-prefetch\", href, null);\n}\nfunction preconnect(href, crossOrigin) {\n previousDispatcher.C(href, crossOrigin);\n preconnectAs(\"preconnect\", href, crossOrigin);\n}\nfunction preload(href, as, options) {\n previousDispatcher.L(href, as, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href && as) {\n var preloadSelector =\n 'link[rel=\"preload\"][as=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n '\"]';\n \"image\" === as\n ? options && options.imageSrcSet\n ? ((preloadSelector +=\n '[imagesrcset=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n options.imageSrcSet\n ) +\n '\"]'),\n \"string\" === typeof options.imageSizes &&\n (preloadSelector +=\n '[imagesizes=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n options.imageSizes\n ) +\n '\"]'))\n : (preloadSelector +=\n '[href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]')\n : (preloadSelector +=\n '[href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]');\n var key = preloadSelector;\n switch (as) {\n case \"style\":\n key = getStyleKey(href);\n break;\n case \"script\":\n key = getScriptKey(href);\n }\n preloadPropsMap.has(key) ||\n ((href = assign(\n {\n rel: \"preload\",\n href:\n \"image\" === as && options && options.imageSrcSet ? void 0 : href,\n as: as\n },\n options\n )),\n preloadPropsMap.set(key, href),\n null !== ownerDocument.querySelector(preloadSelector) ||\n (\"style\" === as &&\n ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) ||\n (\"script\" === as &&\n ownerDocument.querySelector(getScriptSelectorFromKey(key))) ||\n ((as = ownerDocument.createElement(\"link\")),\n setInitialProperties(as, \"link\", href),\n markNodeAsHoistable(as),\n ownerDocument.head.appendChild(as)));\n }\n}\nfunction preloadModule(href, options) {\n previousDispatcher.m(href, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href) {\n var as = options && \"string\" === typeof options.as ? options.as : \"script\",\n preloadSelector =\n 'link[rel=\"modulepreload\"][as=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(as) +\n '\"][href=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(href) +\n '\"]',\n key = preloadSelector;\n switch (as) {\n case \"audioworklet\":\n case \"paintworklet\":\n case \"serviceworker\":\n case \"sharedworker\":\n case \"worker\":\n case \"script\":\n key = getScriptKey(href);\n }\n if (\n !preloadPropsMap.has(key) &&\n ((href = assign({ rel: \"modulepreload\", href: href }, options)),\n preloadPropsMap.set(key, href),\n null === ownerDocument.querySelector(preloadSelector))\n ) {\n switch (as) {\n case \"audioworklet\":\n case \"paintworklet\":\n case \"serviceworker\":\n case \"sharedworker\":\n case \"worker\":\n case \"script\":\n if (ownerDocument.querySelector(getScriptSelectorFromKey(key)))\n return;\n }\n as = ownerDocument.createElement(\"link\");\n setInitialProperties(as, \"link\", href);\n markNodeAsHoistable(as);\n ownerDocument.head.appendChild(as);\n }\n }\n}\nfunction preinitStyle(href, precedence, options) {\n previousDispatcher.S(href, precedence, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && href) {\n var styles = getResourcesFromRoot(ownerDocument).hoistableStyles,\n key = getStyleKey(href);\n precedence = precedence || \"default\";\n var resource = styles.get(key);\n if (!resource) {\n var state = { loading: 0, preload: null };\n if (\n (resource = ownerDocument.querySelector(\n getStylesheetSelectorFromKey(key)\n ))\n )\n state.loading = 5;\n else {\n href = assign(\n { rel: \"stylesheet\", href: href, \"data-precedence\": precedence },\n options\n );\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForStylesheet(href, options);\n var link = (resource = ownerDocument.createElement(\"link\"));\n markNodeAsHoistable(link);\n setInitialProperties(link, \"link\", href);\n link._p = new Promise(function (resolve, reject) {\n link.onload = resolve;\n link.onerror = reject;\n });\n link.addEventListener(\"load\", function () {\n state.loading |= 1;\n });\n link.addEventListener(\"error\", function () {\n state.loading |= 2;\n });\n state.loading |= 4;\n insertStylesheet(resource, precedence, ownerDocument);\n }\n resource = {\n type: \"stylesheet\",\n instance: resource,\n count: 1,\n state: state\n };\n styles.set(key, resource);\n }\n }\n}\nfunction preinitScript(src, options) {\n previousDispatcher.X(src, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && src) {\n var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n key = getScriptKey(src),\n resource = scripts.get(key);\n resource ||\n ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n resource ||\n ((src = assign({ src: src, async: !0 }, options)),\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForScript(src, options),\n (resource = ownerDocument.createElement(\"script\")),\n markNodeAsHoistable(resource),\n setInitialProperties(resource, \"link\", src),\n ownerDocument.head.appendChild(resource)),\n (resource = {\n type: \"script\",\n instance: resource,\n count: 1,\n state: null\n }),\n scripts.set(key, resource));\n }\n}\nfunction preinitModuleScript(src, options) {\n previousDispatcher.M(src, options);\n var ownerDocument = globalDocument;\n if (ownerDocument && src) {\n var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts,\n key = getScriptKey(src),\n resource = scripts.get(key);\n resource ||\n ((resource = ownerDocument.querySelector(getScriptSelectorFromKey(key))),\n resource ||\n ((src = assign({ src: src, async: !0, type: \"module\" }, options)),\n (options = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForScript(src, options),\n (resource = ownerDocument.createElement(\"script\")),\n markNodeAsHoistable(resource),\n setInitialProperties(resource, \"link\", src),\n ownerDocument.head.appendChild(resource)),\n (resource = {\n type: \"script\",\n instance: resource,\n count: 1,\n state: null\n }),\n scripts.set(key, resource));\n }\n}\nfunction getResource(type, currentProps, pendingProps, currentResource) {\n var JSCompiler_inline_result = (JSCompiler_inline_result =\n rootInstanceStackCursor.current)\n ? getHoistableRoot(JSCompiler_inline_result)\n : null;\n if (!JSCompiler_inline_result) throw Error(formatProdErrorMessage(446));\n switch (type) {\n case \"meta\":\n case \"title\":\n return null;\n case \"style\":\n return \"string\" === typeof pendingProps.precedence &&\n \"string\" === typeof pendingProps.href\n ? ((currentProps = getStyleKey(pendingProps.href)),\n (pendingProps = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableStyles),\n (currentResource = pendingProps.get(currentProps)),\n currentResource ||\n ((currentResource = {\n type: \"style\",\n instance: null,\n count: 0,\n state: null\n }),\n pendingProps.set(currentProps, currentResource)),\n currentResource)\n : { type: \"void\", instance: null, count: 0, state: null };\n case \"link\":\n if (\n \"stylesheet\" === pendingProps.rel &&\n \"string\" === typeof pendingProps.href &&\n \"string\" === typeof pendingProps.precedence\n ) {\n type = getStyleKey(pendingProps.href);\n var styles$243 = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableStyles,\n resource$244 = styles$243.get(type);\n resource$244 ||\n ((JSCompiler_inline_result =\n JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),\n (resource$244 = {\n type: \"stylesheet\",\n instance: null,\n count: 0,\n state: { loading: 0, preload: null }\n }),\n styles$243.set(type, resource$244),\n (styles$243 = JSCompiler_inline_result.querySelector(\n getStylesheetSelectorFromKey(type)\n )) &&\n !styles$243._p &&\n ((resource$244.instance = styles$243),\n (resource$244.state.loading = 5)),\n preloadPropsMap.has(type) ||\n ((pendingProps = {\n rel: \"preload\",\n as: \"style\",\n href: pendingProps.href,\n crossOrigin: pendingProps.crossOrigin,\n integrity: pendingProps.integrity,\n media: pendingProps.media,\n hrefLang: pendingProps.hrefLang,\n referrerPolicy: pendingProps.referrerPolicy\n }),\n preloadPropsMap.set(type, pendingProps),\n styles$243 ||\n preloadStylesheet(\n JSCompiler_inline_result,\n type,\n pendingProps,\n resource$244.state\n )));\n if (currentProps && null === currentResource)\n throw Error(formatProdErrorMessage(528, \"\"));\n return resource$244;\n }\n if (currentProps && null !== currentResource)\n throw Error(formatProdErrorMessage(529, \"\"));\n return null;\n case \"script\":\n return (\n (currentProps = pendingProps.async),\n (pendingProps = pendingProps.src),\n \"string\" === typeof pendingProps &&\n currentProps &&\n \"function\" !== typeof currentProps &&\n \"symbol\" !== typeof currentProps\n ? ((currentProps = getScriptKey(pendingProps)),\n (pendingProps = getResourcesFromRoot(\n JSCompiler_inline_result\n ).hoistableScripts),\n (currentResource = pendingProps.get(currentProps)),\n currentResource ||\n ((currentResource = {\n type: \"script\",\n instance: null,\n count: 0,\n state: null\n }),\n pendingProps.set(currentProps, currentResource)),\n currentResource)\n : { type: \"void\", instance: null, count: 0, state: null }\n );\n default:\n throw Error(formatProdErrorMessage(444, type));\n }\n}\nfunction getStyleKey(href) {\n return 'href=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '\"';\n}\nfunction getStylesheetSelectorFromKey(key) {\n return 'link[rel=\"stylesheet\"][' + key + \"]\";\n}\nfunction stylesheetPropsFromRawProps(rawProps) {\n return assign({}, rawProps, {\n \"data-precedence\": rawProps.precedence,\n precedence: null\n });\n}\nfunction preloadStylesheet(ownerDocument, key, preloadProps, state) {\n ownerDocument.querySelector('link[rel=\"preload\"][as=\"style\"][' + key + \"]\")\n ? (state.loading = 1)\n : ((key = ownerDocument.createElement(\"link\")),\n (state.preload = key),\n key.addEventListener(\"load\", function () {\n return (state.loading |= 1);\n }),\n key.addEventListener(\"error\", function () {\n return (state.loading |= 2);\n }),\n setInitialProperties(key, \"link\", preloadProps),\n markNodeAsHoistable(key),\n ownerDocument.head.appendChild(key));\n}\nfunction getScriptKey(src) {\n return '[src=\"' + escapeSelectorAttributeValueInsideDoubleQuotes(src) + '\"]';\n}\nfunction getScriptSelectorFromKey(key) {\n return \"script[async]\" + key;\n}\nfunction acquireResource(hoistableRoot, resource, props) {\n resource.count++;\n if (null === resource.instance)\n switch (resource.type) {\n case \"style\":\n var instance = hoistableRoot.querySelector(\n 'style[data-href~=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(props.href) +\n '\"]'\n );\n if (instance)\n return (\n (resource.instance = instance),\n markNodeAsHoistable(instance),\n instance\n );\n var styleProps = assign({}, props, {\n \"data-href\": props.href,\n \"data-precedence\": props.precedence,\n href: null,\n precedence: null\n });\n instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement(\n \"style\"\n );\n markNodeAsHoistable(instance);\n setInitialProperties(instance, \"style\", styleProps);\n insertStylesheet(instance, props.precedence, hoistableRoot);\n return (resource.instance = instance);\n case \"stylesheet\":\n styleProps = getStyleKey(props.href);\n var instance$249 = hoistableRoot.querySelector(\n getStylesheetSelectorFromKey(styleProps)\n );\n if (instance$249)\n return (\n (resource.state.loading |= 4),\n (resource.instance = instance$249),\n markNodeAsHoistable(instance$249),\n instance$249\n );\n instance = stylesheetPropsFromRawProps(props);\n (styleProps = preloadPropsMap.get(styleProps)) &&\n adoptPreloadPropsForStylesheet(instance, styleProps);\n instance$249 = (\n hoistableRoot.ownerDocument || hoistableRoot\n ).createElement(\"link\");\n markNodeAsHoistable(instance$249);\n var linkInstance = instance$249;\n linkInstance._p = new Promise(function (resolve, reject) {\n linkInstance.onload = resolve;\n linkInstance.onerror = reject;\n });\n setInitialProperties(instance$249, \"link\", instance);\n resource.state.loading |= 4;\n insertStylesheet(instance$249, props.precedence, hoistableRoot);\n return (resource.instance = instance$249);\n case \"script\":\n instance$249 = getScriptKey(props.src);\n if (\n (styleProps = hoistableRoot.querySelector(\n getScriptSelectorFromKey(instance$249)\n ))\n )\n return (\n (resource.instance = styleProps),\n markNodeAsHoistable(styleProps),\n styleProps\n );\n instance = props;\n if ((styleProps = preloadPropsMap.get(instance$249)))\n (instance = assign({}, props)),\n adoptPreloadPropsForScript(instance, styleProps);\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n styleProps = hoistableRoot.createElement(\"script\");\n markNodeAsHoistable(styleProps);\n setInitialProperties(styleProps, \"link\", instance);\n hoistableRoot.head.appendChild(styleProps);\n return (resource.instance = styleProps);\n case \"void\":\n return null;\n default:\n throw Error(formatProdErrorMessage(443, resource.type));\n }\n else\n \"stylesheet\" === resource.type &&\n 0 === (resource.state.loading & 4) &&\n ((instance = resource.instance),\n (resource.state.loading |= 4),\n insertStylesheet(instance, props.precedence, hoistableRoot));\n return resource.instance;\n}\nfunction insertStylesheet(instance, precedence, root) {\n for (\n var nodes = root.querySelectorAll(\n 'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'\n ),\n last = nodes.length ? nodes[nodes.length - 1] : null,\n prior = last,\n i = 0;\n i < nodes.length;\n i++\n ) {\n var node = nodes[i];\n if (node.dataset.precedence === precedence) prior = node;\n else if (prior !== last) break;\n }\n prior\n ? prior.parentNode.insertBefore(instance, prior.nextSibling)\n : ((precedence = 9 === root.nodeType ? root.head : root),\n precedence.insertBefore(instance, precedence.firstChild));\n}\nfunction adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) {\n null == stylesheetProps.crossOrigin &&\n (stylesheetProps.crossOrigin = preloadProps.crossOrigin);\n null == stylesheetProps.referrerPolicy &&\n (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy);\n null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title);\n}\nfunction adoptPreloadPropsForScript(scriptProps, preloadProps) {\n null == scriptProps.crossOrigin &&\n (scriptProps.crossOrigin = preloadProps.crossOrigin);\n null == scriptProps.referrerPolicy &&\n (scriptProps.referrerPolicy = preloadProps.referrerPolicy);\n null == scriptProps.integrity &&\n (scriptProps.integrity = preloadProps.integrity);\n}\nvar tagCaches = null;\nfunction getHydratableHoistableCache(type, keyAttribute, ownerDocument) {\n if (null === tagCaches) {\n var cache = new Map();\n var caches = (tagCaches = new Map());\n caches.set(ownerDocument, cache);\n } else\n (caches = tagCaches),\n (cache = caches.get(ownerDocument)),\n cache || ((cache = new Map()), caches.set(ownerDocument, cache));\n if (cache.has(type)) return cache;\n cache.set(type, null);\n ownerDocument = ownerDocument.getElementsByTagName(type);\n for (caches = 0; caches < ownerDocument.length; caches++) {\n var node = ownerDocument[caches];\n if (\n !(\n node[internalHoistableMarker] ||\n node[internalInstanceKey] ||\n (\"link\" === type && \"stylesheet\" === node.getAttribute(\"rel\"))\n ) &&\n \"http://www.w3.org/2000/svg\" !== node.namespaceURI\n ) {\n var nodeKey = node.getAttribute(keyAttribute) || \"\";\n nodeKey = type + nodeKey;\n var existing = cache.get(nodeKey);\n existing ? existing.push(node) : cache.set(nodeKey, [node]);\n }\n }\n return cache;\n}\nfunction mountHoistable(hoistableRoot, type, instance) {\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n hoistableRoot.head.insertBefore(\n instance,\n \"title\" === type ? hoistableRoot.querySelector(\"head > title\") : null\n );\n}\nfunction isHostHoistableType(type, props, hostContext) {\n if (1 === hostContext || null != props.itemProp) return !1;\n switch (type) {\n case \"meta\":\n case \"title\":\n return !0;\n case \"style\":\n if (\n \"string\" !== typeof props.precedence ||\n \"string\" !== typeof props.href ||\n \"\" === props.href\n )\n break;\n return !0;\n case \"link\":\n if (\n \"string\" !== typeof props.rel ||\n \"string\" !== typeof props.href ||\n \"\" === props.href ||\n props.onLoad ||\n props.onError\n )\n break;\n switch (props.rel) {\n case \"stylesheet\":\n return (\n (type = props.disabled),\n \"string\" === typeof props.precedence && null == type\n );\n default:\n return !0;\n }\n case \"script\":\n if (\n props.async &&\n \"function\" !== typeof props.async &&\n \"symbol\" !== typeof props.async &&\n !props.onLoad &&\n !props.onError &&\n props.src &&\n \"string\" === typeof props.src\n )\n return !0;\n }\n return !1;\n}\nfunction preloadResource(resource) {\n return \"stylesheet\" === resource.type && 0 === (resource.state.loading & 3)\n ? !1\n : !0;\n}\nfunction suspendResource(state, hoistableRoot, resource, props) {\n if (\n \"stylesheet\" === resource.type &&\n (\"string\" !== typeof props.media ||\n !1 !== matchMedia(props.media).matches) &&\n 0 === (resource.state.loading & 4)\n ) {\n if (null === resource.instance) {\n var key = getStyleKey(props.href),\n instance = hoistableRoot.querySelector(\n getStylesheetSelectorFromKey(key)\n );\n if (instance) {\n hoistableRoot = instance._p;\n null !== hoistableRoot &&\n \"object\" === typeof hoistableRoot &&\n \"function\" === typeof hoistableRoot.then &&\n (state.count++,\n (state = onUnsuspend.bind(state)),\n hoistableRoot.then(state, state));\n resource.state.loading |= 4;\n resource.instance = instance;\n markNodeAsHoistable(instance);\n return;\n }\n instance = hoistableRoot.ownerDocument || hoistableRoot;\n props = stylesheetPropsFromRawProps(props);\n (key = preloadPropsMap.get(key)) &&\n adoptPreloadPropsForStylesheet(props, key);\n instance = instance.createElement(\"link\");\n markNodeAsHoistable(instance);\n var linkInstance = instance;\n linkInstance._p = new Promise(function (resolve, reject) {\n linkInstance.onload = resolve;\n linkInstance.onerror = reject;\n });\n setInitialProperties(instance, \"link\", props);\n resource.instance = instance;\n }\n null === state.stylesheets && (state.stylesheets = new Map());\n state.stylesheets.set(resource, hoistableRoot);\n (hoistableRoot = resource.state.preload) &&\n 0 === (resource.state.loading & 3) &&\n (state.count++,\n (resource = onUnsuspend.bind(state)),\n hoistableRoot.addEventListener(\"load\", resource),\n hoistableRoot.addEventListener(\"error\", resource));\n }\n}\nvar estimatedBytesWithinLimit = 0;\nfunction waitForCommitToBeReady(state, timeoutOffset) {\n state.stylesheets &&\n 0 === state.count &&\n insertSuspendedStylesheets(state, state.stylesheets);\n return 0 < state.count || 0 < state.imgCount\n ? function (commit) {\n var stylesheetTimer = setTimeout(function () {\n state.stylesheets &&\n insertSuspendedStylesheets(state, state.stylesheets);\n if (state.unsuspend) {\n var unsuspend = state.unsuspend;\n state.unsuspend = null;\n unsuspend();\n }\n }, 6e4 + timeoutOffset);\n 0 < state.imgBytes &&\n 0 === estimatedBytesWithinLimit &&\n (estimatedBytesWithinLimit = 62500 * estimateBandwidth());\n var imgTimer = setTimeout(\n function () {\n state.waitingForImages = !1;\n if (\n 0 === state.count &&\n (state.stylesheets &&\n insertSuspendedStylesheets(state, state.stylesheets),\n state.unsuspend)\n ) {\n var unsuspend = state.unsuspend;\n state.unsuspend = null;\n unsuspend();\n }\n },\n (state.imgBytes > estimatedBytesWithinLimit ? 50 : 800) +\n timeoutOffset\n );\n state.unsuspend = commit;\n return function () {\n state.unsuspend = null;\n clearTimeout(stylesheetTimer);\n clearTimeout(imgTimer);\n };\n }\n : null;\n}\nfunction onUnsuspend() {\n this.count--;\n if (0 === this.count && (0 === this.imgCount || !this.waitingForImages))\n if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets);\n else if (this.unsuspend) {\n var unsuspend = this.unsuspend;\n this.unsuspend = null;\n unsuspend();\n }\n}\nvar precedencesByRoot = null;\nfunction insertSuspendedStylesheets(state, resources) {\n state.stylesheets = null;\n null !== state.unsuspend &&\n (state.count++,\n (precedencesByRoot = new Map()),\n resources.forEach(insertStylesheetIntoRoot, state),\n (precedencesByRoot = null),\n onUnsuspend.call(state));\n}\nfunction insertStylesheetIntoRoot(root, resource) {\n if (!(resource.state.loading & 4)) {\n var precedences = precedencesByRoot.get(root);\n if (precedences) var last = precedences.get(null);\n else {\n precedences = new Map();\n precedencesByRoot.set(root, precedences);\n for (\n var nodes = root.querySelectorAll(\n \"link[data-precedence],style[data-precedence]\"\n ),\n i = 0;\n i < nodes.length;\n i++\n ) {\n var node = nodes[i];\n if (\n \"LINK\" === node.nodeName ||\n \"not all\" !== node.getAttribute(\"media\")\n )\n precedences.set(node.dataset.precedence, node), (last = node);\n }\n last && precedences.set(null, last);\n }\n nodes = resource.instance;\n node = nodes.getAttribute(\"data-precedence\");\n i = precedences.get(node) || last;\n i === last && precedences.set(null, nodes);\n precedences.set(node, nodes);\n this.count++;\n last = onUnsuspend.bind(this);\n nodes.addEventListener(\"load\", last);\n nodes.addEventListener(\"error\", last);\n i\n ? i.parentNode.insertBefore(nodes, i.nextSibling)\n : ((root = 9 === root.nodeType ? root.head : root),\n root.insertBefore(nodes, root.firstChild));\n resource.state.loading |= 4;\n }\n}\nvar HostTransitionContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Provider: null,\n Consumer: null,\n _currentValue: sharedNotPendingObject,\n _currentValue2: sharedNotPendingObject,\n _threadCount: 0\n};\nfunction FiberRootNode(\n containerInfo,\n tag,\n hydrate,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n onDefaultTransitionIndicator,\n formState\n) {\n this.tag = 1;\n this.containerInfo = containerInfo;\n this.pingCache = this.current = this.pendingChildren = null;\n this.timeoutHandle = -1;\n this.callbackNode =\n this.next =\n this.pendingContext =\n this.context =\n this.cancelPendingCommit =\n null;\n this.callbackPriority = 0;\n this.expirationTimes = createLaneMap(-1);\n this.entangledLanes =\n this.shellSuspendCounter =\n this.errorRecoveryDisabledLanes =\n this.expiredLanes =\n this.warmLanes =\n this.pingedLanes =\n this.suspendedLanes =\n this.pendingLanes =\n 0;\n this.entanglements = createLaneMap(0);\n this.hiddenUpdates = createLaneMap(null);\n this.identifierPrefix = identifierPrefix;\n this.onUncaughtError = onUncaughtError;\n this.onCaughtError = onCaughtError;\n this.onRecoverableError = onRecoverableError;\n this.pooledCache = null;\n this.pooledCacheLanes = 0;\n this.formState = formState;\n this.incompleteTransitions = new Map();\n}\nfunction createFiberRoot(\n containerInfo,\n tag,\n hydrate,\n initialChildren,\n hydrationCallbacks,\n isStrictMode,\n identifierPrefix,\n formState,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n onDefaultTransitionIndicator\n) {\n containerInfo = new FiberRootNode(\n containerInfo,\n tag,\n hydrate,\n identifierPrefix,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n onDefaultTransitionIndicator,\n formState\n );\n tag = 1;\n !0 === isStrictMode && (tag |= 24);\n isStrictMode = createFiberImplClass(3, null, null, tag);\n containerInfo.current = isStrictMode;\n isStrictMode.stateNode = containerInfo;\n tag = createCache();\n tag.refCount++;\n containerInfo.pooledCache = tag;\n tag.refCount++;\n isStrictMode.memoizedState = {\n element: initialChildren,\n isDehydrated: hydrate,\n cache: tag\n };\n initializeUpdateQueue(isStrictMode);\n return containerInfo;\n}\nfunction getContextForSubtree(parentComponent) {\n if (!parentComponent) return emptyContextObject;\n parentComponent = emptyContextObject;\n return parentComponent;\n}\nfunction updateContainerImpl(\n rootFiber,\n lane,\n element,\n container,\n parentComponent,\n callback\n) {\n parentComponent = getContextForSubtree(parentComponent);\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = createUpdate(lane);\n container.payload = { element: element };\n callback = void 0 === callback ? null : callback;\n null !== callback && (container.callback = callback);\n element = enqueueUpdate(rootFiber, container, lane);\n null !== element &&\n (scheduleUpdateOnFiber(element, rootFiber, lane),\n entangleTransitions(element, rootFiber, lane));\n}\nfunction markRetryLaneImpl(fiber, retryLane) {\n fiber = fiber.memoizedState;\n if (null !== fiber && null !== fiber.dehydrated) {\n var a = fiber.retryLane;\n fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane;\n }\n}\nfunction markRetryLaneIfNotHydrated(fiber, retryLane) {\n markRetryLaneImpl(fiber, retryLane);\n (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);\n}\nfunction attemptContinuousHydration(fiber) {\n if (13 === fiber.tag || 31 === fiber.tag) {\n var root = enqueueConcurrentRenderForLane(fiber, 67108864);\n null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);\n markRetryLaneIfNotHydrated(fiber, 67108864);\n }\n}\nfunction attemptHydrationAtCurrentPriority(fiber) {\n if (13 === fiber.tag || 31 === fiber.tag) {\n var lane = requestUpdateLane();\n lane = getBumpedLaneForHydrationByLane(lane);\n var root = enqueueConcurrentRenderForLane(fiber, lane);\n null !== root && scheduleUpdateOnFiber(root, fiber, lane);\n markRetryLaneIfNotHydrated(fiber, lane);\n }\n}\nvar _enabled = !0;\nfunction dispatchDiscreteEvent(\n domEventName,\n eventSystemFlags,\n container,\n nativeEvent\n) {\n var prevTransition = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n (ReactDOMSharedInternals.p = 2),\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction dispatchContinuousEvent(\n domEventName,\n eventSystemFlags,\n container,\n nativeEvent\n) {\n var prevTransition = ReactSharedInternals.T;\n ReactSharedInternals.T = null;\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n (ReactDOMSharedInternals.p = 8),\n dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction dispatchEvent(\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n if (_enabled) {\n var blockedOn = findInstanceBlockingEvent(nativeEvent);\n if (null === blockedOn)\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n return_targetInst,\n targetContainer\n ),\n clearIfContinuousEvent(domEventName, nativeEvent);\n else if (\n queueIfContinuousEvent(\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n )\n nativeEvent.stopPropagation();\n else if (\n (clearIfContinuousEvent(domEventName, nativeEvent),\n eventSystemFlags & 4 &&\n -1 < discreteReplayableEvents.indexOf(domEventName))\n ) {\n for (; null !== blockedOn; ) {\n var fiber = getInstanceFromNode(blockedOn);\n if (null !== fiber)\n switch (fiber.tag) {\n case 3:\n fiber = fiber.stateNode;\n if (fiber.current.memoizedState.isDehydrated) {\n var lanes = getHighestPriorityLanes(fiber.pendingLanes);\n if (0 !== lanes) {\n var root = fiber;\n root.pendingLanes |= 2;\n for (root.entangledLanes |= 2; lanes; ) {\n var lane = 1 << (31 - clz32(lanes));\n root.entanglements[1] |= lane;\n lanes &= ~lane;\n }\n ensureRootIsScheduled(fiber);\n 0 === (executionContext & 6) &&\n ((workInProgressRootRenderTargetTime = now() + 500),\n flushSyncWorkAcrossRoots_impl(0, !1));\n }\n }\n break;\n case 31:\n case 13:\n (root = enqueueConcurrentRenderForLane(fiber, 2)),\n null !== root && scheduleUpdateOnFiber(root, fiber, 2),\n flushSyncWork$1(),\n markRetryLaneIfNotHydrated(fiber, 2);\n }\n fiber = findInstanceBlockingEvent(nativeEvent);\n null === fiber &&\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n return_targetInst,\n targetContainer\n );\n if (fiber === blockedOn) break;\n blockedOn = fiber;\n }\n null !== blockedOn && nativeEvent.stopPropagation();\n } else\n dispatchEventForPluginEventSystem(\n domEventName,\n eventSystemFlags,\n nativeEvent,\n null,\n targetContainer\n );\n }\n}\nfunction findInstanceBlockingEvent(nativeEvent) {\n nativeEvent = getEventTarget(nativeEvent);\n return findInstanceBlockingTarget(nativeEvent);\n}\nvar return_targetInst = null;\nfunction findInstanceBlockingTarget(targetNode) {\n return_targetInst = null;\n targetNode = getClosestInstanceFromNode(targetNode);\n if (null !== targetNode) {\n var nearestMounted = getNearestMountedFiber(targetNode);\n if (null === nearestMounted) targetNode = null;\n else {\n var tag = nearestMounted.tag;\n if (13 === tag) {\n targetNode = getSuspenseInstanceFromFiber(nearestMounted);\n if (null !== targetNode) return targetNode;\n targetNode = null;\n } else if (31 === tag) {\n targetNode = getActivityInstanceFromFiber(nearestMounted);\n if (null !== targetNode) return targetNode;\n targetNode = null;\n } else if (3 === tag) {\n if (nearestMounted.stateNode.current.memoizedState.isDehydrated)\n return 3 === nearestMounted.tag\n ? nearestMounted.stateNode.containerInfo\n : null;\n targetNode = null;\n } else nearestMounted !== targetNode && (targetNode = null);\n }\n }\n return_targetInst = targetNode;\n return null;\n}\nfunction getEventPriority(domEventName) {\n switch (domEventName) {\n case \"beforetoggle\":\n case \"cancel\":\n case \"click\":\n case \"close\":\n case \"contextmenu\":\n case \"copy\":\n case \"cut\":\n case \"auxclick\":\n case \"dblclick\":\n case \"dragend\":\n case \"dragstart\":\n case \"drop\":\n case \"focusin\":\n case \"focusout\":\n case \"input\":\n case \"invalid\":\n case \"keydown\":\n case \"keypress\":\n case \"keyup\":\n case \"mousedown\":\n case \"mouseup\":\n case \"paste\":\n case \"pause\":\n case \"play\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointerup\":\n case \"ratechange\":\n case \"reset\":\n case \"resize\":\n case \"seeked\":\n case \"submit\":\n case \"toggle\":\n case \"touchcancel\":\n case \"touchend\":\n case \"touchstart\":\n case \"volumechange\":\n case \"change\":\n case \"selectionchange\":\n case \"textInput\":\n case \"compositionstart\":\n case \"compositionend\":\n case \"compositionupdate\":\n case \"beforeblur\":\n case \"afterblur\":\n case \"beforeinput\":\n case \"blur\":\n case \"fullscreenchange\":\n case \"focus\":\n case \"hashchange\":\n case \"popstate\":\n case \"select\":\n case \"selectstart\":\n return 2;\n case \"drag\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"mousemove\":\n case \"mouseout\":\n case \"mouseover\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"scroll\":\n case \"touchmove\":\n case \"wheel\":\n case \"mouseenter\":\n case \"mouseleave\":\n case \"pointerenter\":\n case \"pointerleave\":\n return 8;\n case \"message\":\n switch (getCurrentPriorityLevel()) {\n case ImmediatePriority:\n return 2;\n case UserBlockingPriority:\n return 8;\n case NormalPriority$1:\n case LowPriority:\n return 32;\n case IdlePriority:\n return 268435456;\n default:\n return 32;\n }\n default:\n return 32;\n }\n}\nvar hasScheduledReplayAttempt = !1,\n queuedFocus = null,\n queuedDrag = null,\n queuedMouse = null,\n queuedPointers = new Map(),\n queuedPointerCaptures = new Map(),\n queuedExplicitHydrationTargets = [],\n discreteReplayableEvents =\n \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\n \" \"\n );\nfunction clearIfContinuousEvent(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"focusin\":\n case \"focusout\":\n queuedFocus = null;\n break;\n case \"dragenter\":\n case \"dragleave\":\n queuedDrag = null;\n break;\n case \"mouseover\":\n case \"mouseout\":\n queuedMouse = null;\n break;\n case \"pointerover\":\n case \"pointerout\":\n queuedPointers.delete(nativeEvent.pointerId);\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n queuedPointerCaptures.delete(nativeEvent.pointerId);\n }\n}\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(\n existingQueuedEvent,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n if (\n null === existingQueuedEvent ||\n existingQueuedEvent.nativeEvent !== nativeEvent\n )\n return (\n (existingQueuedEvent = {\n blockedOn: blockedOn,\n domEventName: domEventName,\n eventSystemFlags: eventSystemFlags,\n nativeEvent: nativeEvent,\n targetContainers: [targetContainer]\n }),\n null !== blockedOn &&\n ((blockedOn = getInstanceFromNode(blockedOn)),\n null !== blockedOn && attemptContinuousHydration(blockedOn)),\n existingQueuedEvent\n );\n existingQueuedEvent.eventSystemFlags |= eventSystemFlags;\n blockedOn = existingQueuedEvent.targetContainers;\n null !== targetContainer &&\n -1 === blockedOn.indexOf(targetContainer) &&\n blockedOn.push(targetContainer);\n return existingQueuedEvent;\n}\nfunction queueIfContinuousEvent(\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n) {\n switch (domEventName) {\n case \"focusin\":\n return (\n (queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedFocus,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"dragenter\":\n return (\n (queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedDrag,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"mouseover\":\n return (\n (queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedMouse,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )),\n !0\n );\n case \"pointerover\":\n var pointerId = nativeEvent.pointerId;\n queuedPointers.set(\n pointerId,\n accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedPointers.get(pointerId) || null,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n );\n return !0;\n case \"gotpointercapture\":\n return (\n (pointerId = nativeEvent.pointerId),\n queuedPointerCaptures.set(\n pointerId,\n accumulateOrCreateContinuousQueuedReplayableEvent(\n queuedPointerCaptures.get(pointerId) || null,\n blockedOn,\n domEventName,\n eventSystemFlags,\n targetContainer,\n nativeEvent\n )\n ),\n !0\n );\n }\n return !1;\n}\nfunction attemptExplicitHydrationTarget(queuedTarget) {\n var targetInst = getClosestInstanceFromNode(queuedTarget.target);\n if (null !== targetInst) {\n var nearestMounted = getNearestMountedFiber(targetInst);\n if (null !== nearestMounted)\n if (((targetInst = nearestMounted.tag), 13 === targetInst)) {\n if (\n ((targetInst = getSuspenseInstanceFromFiber(nearestMounted)),\n null !== targetInst)\n ) {\n queuedTarget.blockedOn = targetInst;\n runWithPriority(queuedTarget.priority, function () {\n attemptHydrationAtCurrentPriority(nearestMounted);\n });\n return;\n }\n } else if (31 === targetInst) {\n if (\n ((targetInst = getActivityInstanceFromFiber(nearestMounted)),\n null !== targetInst)\n ) {\n queuedTarget.blockedOn = targetInst;\n runWithPriority(queuedTarget.priority, function () {\n attemptHydrationAtCurrentPriority(nearestMounted);\n });\n return;\n }\n } else if (\n 3 === targetInst &&\n nearestMounted.stateNode.current.memoizedState.isDehydrated\n ) {\n queuedTarget.blockedOn =\n 3 === nearestMounted.tag\n ? nearestMounted.stateNode.containerInfo\n : null;\n return;\n }\n }\n queuedTarget.blockedOn = null;\n}\nfunction attemptReplayContinuousQueuedEvent(queuedEvent) {\n if (null !== queuedEvent.blockedOn) return !1;\n for (\n var targetContainers = queuedEvent.targetContainers;\n 0 < targetContainers.length;\n\n ) {\n var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent);\n if (null === nextBlockedOn) {\n nextBlockedOn = queuedEvent.nativeEvent;\n var nativeEventClone = new nextBlockedOn.constructor(\n nextBlockedOn.type,\n nextBlockedOn\n );\n currentReplayingEvent = nativeEventClone;\n nextBlockedOn.target.dispatchEvent(nativeEventClone);\n currentReplayingEvent = null;\n } else\n return (\n (targetContainers = getInstanceFromNode(nextBlockedOn)),\n null !== targetContainers &&\n attemptContinuousHydration(targetContainers),\n (queuedEvent.blockedOn = nextBlockedOn),\n !1\n );\n targetContainers.shift();\n }\n return !0;\n}\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {\n attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key);\n}\nfunction replayUnblockedEvents() {\n hasScheduledReplayAttempt = !1;\n null !== queuedFocus &&\n attemptReplayContinuousQueuedEvent(queuedFocus) &&\n (queuedFocus = null);\n null !== queuedDrag &&\n attemptReplayContinuousQueuedEvent(queuedDrag) &&\n (queuedDrag = null);\n null !== queuedMouse &&\n attemptReplayContinuousQueuedEvent(queuedMouse) &&\n (queuedMouse = null);\n queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked) {\n queuedEvent.blockedOn === unblocked &&\n ((queuedEvent.blockedOn = null),\n hasScheduledReplayAttempt ||\n ((hasScheduledReplayAttempt = !0),\n Scheduler.unstable_scheduleCallback(\n Scheduler.unstable_NormalPriority,\n replayUnblockedEvents\n )));\n}\nvar lastScheduledReplayQueue = null;\nfunction scheduleReplayQueueIfNeeded(formReplayingQueue) {\n lastScheduledReplayQueue !== formReplayingQueue &&\n ((lastScheduledReplayQueue = formReplayingQueue),\n Scheduler.unstable_scheduleCallback(\n Scheduler.unstable_NormalPriority,\n function () {\n lastScheduledReplayQueue === formReplayingQueue &&\n (lastScheduledReplayQueue = null);\n for (var i = 0; i < formReplayingQueue.length; i += 3) {\n var form = formReplayingQueue[i],\n submitterOrAction = formReplayingQueue[i + 1],\n formData = formReplayingQueue[i + 2];\n if (\"function\" !== typeof submitterOrAction)\n if (null === findInstanceBlockingTarget(submitterOrAction || form))\n continue;\n else break;\n var formInst = getInstanceFromNode(form);\n null !== formInst &&\n (formReplayingQueue.splice(i, 3),\n (i -= 3),\n startHostTransition(\n formInst,\n {\n pending: !0,\n data: formData,\n method: form.method,\n action: submitterOrAction\n },\n submitterOrAction,\n formData\n ));\n }\n }\n ));\n}\nfunction retryIfBlockedOn(unblocked) {\n function unblock(queuedEvent) {\n return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n }\n null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n queuedPointers.forEach(unblock);\n queuedPointerCaptures.forEach(unblock);\n for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) {\n var queuedTarget = queuedExplicitHydrationTargets[i];\n queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null);\n }\n for (\n ;\n 0 < queuedExplicitHydrationTargets.length &&\n ((i = queuedExplicitHydrationTargets[0]), null === i.blockedOn);\n\n )\n attemptExplicitHydrationTarget(i),\n null === i.blockedOn && queuedExplicitHydrationTargets.shift();\n i = (unblocked.ownerDocument || unblocked).$$reactFormReplay;\n if (null != i)\n for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {\n var form = i[queuedTarget],\n submitterOrAction = i[queuedTarget + 1],\n formProps = form[internalPropsKey] || null;\n if (\"function\" === typeof submitterOrAction)\n formProps || scheduleReplayQueueIfNeeded(i);\n else if (formProps) {\n var action = null;\n if (submitterOrAction && submitterOrAction.hasAttribute(\"formAction\"))\n if (\n ((form = submitterOrAction),\n (formProps = submitterOrAction[internalPropsKey] || null))\n )\n action = formProps.formAction;\n else {\n if (null !== findInstanceBlockingTarget(form)) continue;\n }\n else action = formProps.action;\n \"function\" === typeof action\n ? (i[queuedTarget + 1] = action)\n : (i.splice(queuedTarget, 3), (queuedTarget -= 3));\n scheduleReplayQueueIfNeeded(i);\n }\n }\n}\nfunction defaultOnDefaultTransitionIndicator() {\n function handleNavigate(event) {\n event.canIntercept &&\n \"react-transition\" === event.info &&\n event.intercept({\n handler: function () {\n return new Promise(function (resolve) {\n return (pendingResolve = resolve);\n });\n },\n focusReset: \"manual\",\n scroll: \"manual\"\n });\n }\n function handleNavigateComplete() {\n null !== pendingResolve && (pendingResolve(), (pendingResolve = null));\n isCancelled || setTimeout(startFakeNavigation, 20);\n }\n function startFakeNavigation() {\n if (!isCancelled && !navigation.transition) {\n var currentEntry = navigation.currentEntry;\n currentEntry &&\n null != currentEntry.url &&\n navigation.navigate(currentEntry.url, {\n state: currentEntry.getState(),\n info: \"react-transition\",\n history: \"replace\"\n });\n }\n }\n if (\"object\" === typeof navigation) {\n var isCancelled = !1,\n pendingResolve = null;\n navigation.addEventListener(\"navigate\", handleNavigate);\n navigation.addEventListener(\"navigatesuccess\", handleNavigateComplete);\n navigation.addEventListener(\"navigateerror\", handleNavigateComplete);\n setTimeout(startFakeNavigation, 100);\n return function () {\n isCancelled = !0;\n navigation.removeEventListener(\"navigate\", handleNavigate);\n navigation.removeEventListener(\"navigatesuccess\", handleNavigateComplete);\n navigation.removeEventListener(\"navigateerror\", handleNavigateComplete);\n null !== pendingResolve && (pendingResolve(), (pendingResolve = null));\n };\n }\n}\nfunction ReactDOMRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render =\n function (children) {\n var root = this._internalRoot;\n if (null === root) throw Error(formatProdErrorMessage(409));\n var current = root.current,\n lane = requestUpdateLane();\n updateContainerImpl(current, lane, children, root, null, null);\n };\nReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount =\n function () {\n var root = this._internalRoot;\n if (null !== root) {\n this._internalRoot = null;\n var container = root.containerInfo;\n updateContainerImpl(root.current, 2, null, root, null, null);\n flushSyncWork$1();\n container[internalContainerInstanceKey] = null;\n }\n };\nfunction ReactDOMHydrationRoot(internalRoot) {\n this._internalRoot = internalRoot;\n}\nReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {\n if (target) {\n var updatePriority = resolveUpdatePriority();\n target = { blockedOn: null, target: target, priority: updatePriority };\n for (\n var i = 0;\n i < queuedExplicitHydrationTargets.length &&\n 0 !== updatePriority &&\n updatePriority < queuedExplicitHydrationTargets[i].priority;\n i++\n );\n queuedExplicitHydrationTargets.splice(i, 0, target);\n 0 === i && attemptExplicitHydrationTarget(target);\n }\n};\nvar isomorphicReactPackageVersion$jscomp$inline_1840 = React.version;\nif (\n \"19.2.6\" !==\n isomorphicReactPackageVersion$jscomp$inline_1840\n)\n throw Error(\n formatProdErrorMessage(\n 527,\n isomorphicReactPackageVersion$jscomp$inline_1840,\n \"19.2.6\"\n )\n );\nReactDOMSharedInternals.findDOMNode = function (componentOrElement) {\n var fiber = componentOrElement._reactInternals;\n if (void 0 === fiber) {\n if (\"function\" === typeof componentOrElement.render)\n throw Error(formatProdErrorMessage(188));\n componentOrElement = Object.keys(componentOrElement).join(\",\");\n throw Error(formatProdErrorMessage(268, componentOrElement));\n }\n componentOrElement = findCurrentFiberUsingSlowPath(fiber);\n componentOrElement =\n null !== componentOrElement\n ? findCurrentHostFiberImpl(componentOrElement)\n : null;\n componentOrElement =\n null === componentOrElement ? null : componentOrElement.stateNode;\n return componentOrElement;\n};\nvar internals$jscomp$inline_2347 = {\n bundleType: 0,\n version: \"19.2.6\",\n rendererPackageName: \"react-dom\",\n currentDispatcherRef: ReactSharedInternals,\n reconcilerVersion: \"19.2.6\"\n};\nif (\"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {\n var hook$jscomp$inline_2348 = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (\n !hook$jscomp$inline_2348.isDisabled &&\n hook$jscomp$inline_2348.supportsFiber\n )\n try {\n (rendererID = hook$jscomp$inline_2348.inject(\n internals$jscomp$inline_2347\n )),\n (injectedHook = hook$jscomp$inline_2348);\n } catch (err) {}\n}\nexports.createRoot = function (container, options) {\n if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n var isStrictMode = !1,\n identifierPrefix = \"\",\n onUncaughtError = defaultOnUncaughtError,\n onCaughtError = defaultOnCaughtError,\n onRecoverableError = defaultOnRecoverableError;\n null !== options &&\n void 0 !== options &&\n (!0 === options.unstable_strictMode && (isStrictMode = !0),\n void 0 !== options.identifierPrefix &&\n (identifierPrefix = options.identifierPrefix),\n void 0 !== options.onUncaughtError &&\n (onUncaughtError = options.onUncaughtError),\n void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n void 0 !== options.onRecoverableError &&\n (onRecoverableError = options.onRecoverableError));\n options = createFiberRoot(\n container,\n 1,\n !1,\n null,\n null,\n isStrictMode,\n identifierPrefix,\n null,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n defaultOnDefaultTransitionIndicator\n );\n container[internalContainerInstanceKey] = options.current;\n listenToAllSupportedEvents(container);\n return new ReactDOMRoot(options);\n};\nexports.hydrateRoot = function (container, initialChildren, options) {\n if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299));\n var isStrictMode = !1,\n identifierPrefix = \"\",\n onUncaughtError = defaultOnUncaughtError,\n onCaughtError = defaultOnCaughtError,\n onRecoverableError = defaultOnRecoverableError,\n formState = null;\n null !== options &&\n void 0 !== options &&\n (!0 === options.unstable_strictMode && (isStrictMode = !0),\n void 0 !== options.identifierPrefix &&\n (identifierPrefix = options.identifierPrefix),\n void 0 !== options.onUncaughtError &&\n (onUncaughtError = options.onUncaughtError),\n void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),\n void 0 !== options.onRecoverableError &&\n (onRecoverableError = options.onRecoverableError),\n void 0 !== options.formState && (formState = options.formState));\n initialChildren = createFiberRoot(\n container,\n 1,\n !0,\n initialChildren,\n null != options ? options : null,\n isStrictMode,\n identifierPrefix,\n formState,\n onUncaughtError,\n onCaughtError,\n onRecoverableError,\n defaultOnDefaultTransitionIndicator\n );\n initialChildren.context = getContextForSubtree(null);\n options = initialChildren.current;\n isStrictMode = requestUpdateLane();\n isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode);\n identifierPrefix = createUpdate(isStrictMode);\n identifierPrefix.callback = null;\n enqueueUpdate(options, identifierPrefix, isStrictMode);\n options = isStrictMode;\n initialChildren.current.lanes = options;\n markRootUpdated$1(initialChildren, options);\n ensureRootIsScheduled(initialChildren);\n container[internalContainerInstanceKey] = initialChildren.current;\n listenToAllSupportedEvents(container);\n return new ReactDOMHydrationRoot(initialChildren);\n};\nexports.version = \"19.2.6\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom-client.production.js');\n} else {\n module.exports = require('./cjs/react-dom-client.development.js');\n}\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"arrow-right\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 20v-9\", key: \"1qisl0\" }],\n [\"path\", { d: \"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z\", key: \"uouzyp\" }],\n [\"path\", { d: \"M14.12 3.88 16 2\", key: \"qol33r\" }],\n [\"path\", { d: \"M21 21a4 4 0 0 0-3.81-4\", key: \"1b0z45\" }],\n [\"path\", { d: \"M21 5a4 4 0 0 1-3.55 3.97\", key: \"5cxbf6\" }],\n [\"path\", { d: \"M22 13h-4\", key: \"1jl80f\" }],\n [\"path\", { d: \"M3 21a4 4 0 0 1 3.81-4\", key: \"1fjd4g\" }],\n [\"path\", { d: \"M3 5a4 4 0 0 0 3.55 3.97\", key: \"1d7oge\" }],\n [\"path\", { d: \"M6 13H2\", key: \"82j7cp\" }],\n [\"path\", { d: \"m8 2 1.88 1.88\", key: \"fmnt4t\" }],\n [\"path\", { d: \"M9 7.13V6a3 3 0 1 1 6 0v1.13\", key: \"1vgav8\" }]\n];\nconst Bug = createLucideIcon(\"bug\", __iconNode);\n\nexport { __iconNode, Bug as default };\n//# sourceMappingURL=bug.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"rect\", { width: \"12\", height: \"12\", x: \"2\", y: \"10\", rx: \"2\", ry: \"2\", key: \"6agr2n\" }],\n [\n \"path\",\n { d: \"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6\", key: \"1o487t\" }\n ],\n [\"path\", { d: \"M6 18h.01\", key: \"uhywen\" }],\n [\"path\", { d: \"M10 14h.01\", key: \"ssrbsk\" }],\n [\"path\", { d: \"M15 6h.01\", key: \"cblpky\" }],\n [\"path\", { d: \"M18 9h.01\", key: \"2061c0\" }]\n];\nconst Dices = createLucideIcon(\"dices\", __iconNode);\n\nexport { __iconNode, Dices as default };\n//# sourceMappingURL=dices.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\",\n key: \"1gvzjb\"\n }\n ],\n [\"path\", { d: \"M9 18h6\", key: \"x1upvd\" }],\n [\"path\", { d: \"M10 22h4\", key: \"ceow96\" }]\n];\nconst Lightbulb = createLucideIcon(\"lightbulb\", __iconNode);\n\nexport { __iconNode, Lightbulb as default };\n//# sourceMappingURL=lightbulb.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n key: \"1sd12s\"\n }\n ]\n];\nconst MessageCircle = createLucideIcon(\"message-circle\", __iconNode);\n\nexport { __iconNode, MessageCircle as default };\n//# sourceMappingURL=message-circle.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551\",\n key: \"1miecu\"\n }\n ]\n];\nconst Paperclip = createLucideIcon(\"paperclip\", __iconNode);\n\nexport { __iconNode, Paperclip as default };\n//# sourceMappingURL=paperclip.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\",\n key: \"1a8usu\"\n }\n ],\n [\"path\", { d: \"m15 5 4 4\", key: \"1mk7zo\" }]\n];\nconst Pencil = createLucideIcon(\"pencil\", __iconNode);\n\nexport { __iconNode, Pencil as default };\n//# sourceMappingURL=pencil.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\",\n key: \"1ffxy3\"\n }\n ],\n [\"path\", { d: \"m21.854 2.147-10.94 10.939\", key: \"12cjpa\" }]\n];\nconst Send = createLucideIcon(\"send\", __iconNode);\n\nexport { __iconNode, Send as default };\n//# sourceMappingURL=send.mjs.map\n","/**\n * @license lucide-react v1.16.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z\",\n key: \"uqj9uw\"\n }\n ],\n [\"path\", { d: \"M16 9a5 5 0 0 1 0 6\", key: \"1q6k2b\" }],\n [\"path\", { d: \"M19.364 18.364a9 9 0 0 0 0-12.728\", key: \"ijwkga\" }]\n];\nconst Volume2 = createLucideIcon(\"volume-2\", __iconNode);\n\nexport { __iconNode, Volume2 as default };\n//# sourceMappingURL=volume-2.mjs.map\n","import { hatchAssistant } from \"@app/assistant/api\";\nimport { writeSelectedAssistantId } from \"@app/assistant/selected-assistant-storage\";\n\nexport type CreateCloudAssistantResult =\n | { ok: true; id: string }\n | { ok: false; error: string };\n\nexport async function createCloudAssistant(\n name?: string,\n): Promise<CreateCloudAssistantResult> {\n const result = await hatchAssistant(name);\n if (!result.ok) {\n return { ok: false, error: result.error.detail };\n }\n writeSelectedAssistantId(result.data.id);\n return { ok: true, id: result.data.id };\n}\n","import { useState } from \"react\";\n\nimport { createCloudAssistant } from \"@app/assistant/create-cloud-assistant\";\nimport { useTranslation } from \"@app/i18n\";\nimport { Button } from \"@mycadet/design-library/components/button\";\nimport { Input } from \"@mycadet/design-library/components/input\";\nimport { Modal } from \"@mycadet/design-library/components/modal\";\nimport { toast } from \"@mycadet/design-library/components/toast\";\n\ninterface CreateAssistantDialogProps {\n open: boolean;\n onClose: () => void;\n /** Fired with the new assistant's id once the hatch succeeds — the\n * chooser navigates into the assistant with it; the desktop menu\n * command just closes. */\n onCreated?: (id: string) => void;\n}\n\nexport function CreateAssistantDialog({\n open,\n onClose,\n onCreated,\n}: CreateAssistantDialogProps) {\n const { t } = useTranslation();\n const [name, setName] = useState(\"\");\n const [pending, setPending] = useState(false);\n\n const handleCreate = async () => {\n setPending(true);\n const result = await createCloudAssistant(name.trim() || undefined);\n setPending(false);\n if (result.ok) {\n toast.success(t(\"createAssistantDialog.toastSuccess\"));\n setName(\"\");\n onCreated?.(result.id);\n onClose();\n return;\n }\n toast.error(result.error);\n };\n\n return (\n <Modal.Root\n open={open}\n onOpenChange={(next) => {\n if (!next && !pending) {\n onClose();\n }\n }}\n >\n <Modal.Content size=\"sm\">\n <Modal.Header>\n <Modal.Title>{t(\"createAssistantDialog.title\")}</Modal.Title>\n <Modal.Description>\n {t(\"createAssistantDialog.description\")}\n </Modal.Description>\n </Modal.Header>\n <Modal.Body>\n <Input\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder={t(\"createAssistantDialog.namePlaceholder\")}\n autoFocus\n disabled={pending}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" && !pending) {\n void handleCreate();\n }\n }}\n />\n </Modal.Body>\n <Modal.Footer>\n <Button variant=\"outlined\" onClick={onClose} disabled={pending}>\n {t(\"createAssistantDialog.cancel\")}\n </Button>\n <Button\n variant=\"primary\"\n onClick={() => void handleCreate()}\n disabled={pending}\n loading={pending}\n >\n {t(\"createAssistantDialog.create\")}\n </Button>\n </Modal.Footer>\n </Modal.Content>\n </Modal.Root>\n );\n}\n","/**\n * The document body's scroll state while an overlay is open, owned once.\n *\n * Every overlay wants the same thing, that the page behind it must not\n * scroll, and the naive way to get it is three lines an overlay can write for\n * itself: save `document.body.style.overflow`, set `hidden`, restore the\n * saved value on unmount. That works for one overlay and breaks for two,\n * because the saved value is not a fact about the overlay, it is a fact about\n * the page, and two overlays each holding a private copy of it disagree.\n *\n * Concretely, with two independent savers: the second overlay to open records\n * `hidden` (the first one's doing) as the value to restore, so whichever\n * closes first hands scrolling back to a page still covered by the other, and\n * whichever closes last writes `hidden` back onto a page with nothing over\n * it. The body stays unscrollable until reload, and nothing about the overlay\n * that left it that way points at the overlay that did.\n *\n * So the count is the state, not the style: the first lock records what the\n * page looked like unlocked and hides overflow, further locks only add to the\n * count, and the last release restores the one recorded value. Overlays can\n * then overlap in any order, and an overlay opened from inside another (the\n * tray's Share Feedback command lands over whatever the current page has\n * open) is no longer a special case anyone has to have thought about.\n *\n * Radix-based surfaces (`Modal`, `BottomSheet`, `Popover`) get this from\n * `react-remove-scroll` and must not call this hook; it is for the overlays\n * this app renders itself.\n */\n\nimport { useEffect } from \"react\";\n\nlet lockCount = 0;\n/** The body's own `overflow`, as it was before the first active lock. */\nlet unlockedOverflow = \"\";\n\nfunction acquireBodyScrollLock(): () => void {\n if (lockCount === 0) {\n unlockedOverflow = document.body.style.overflow;\n document.body.style.overflow = \"hidden\";\n }\n lockCount += 1;\n\n return () => {\n lockCount -= 1;\n if (lockCount === 0) {\n document.body.style.overflow = unlockedOverflow;\n }\n };\n}\n\n/**\n * Hold the body scroll lock for as long as this component wants it.\n *\n * Pass `enabled` for an overlay that stays mounted while closed; an overlay\n * that unmounts when it closes can take the default.\n */\nexport function useBodyScrollLock(enabled = true): void {\n useEffect(() => {\n if (!enabled) {\n return;\n }\n return acquireBodyScrollLock();\n }, [enabled]);\n}\n","import {\n Bug,\n Download,\n Info,\n Lightbulb,\n Loader2,\n type LucideIcon,\n MessageCircle,\n Paperclip,\n Send,\n X,\n} from \"lucide-react\";\nimport {\n type ChangeEvent,\n type CSSProperties,\n type DragEvent,\n type KeyboardEvent,\n type MouseEvent,\n useCallback,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport { Button } from \"@mycadet/design-library/components/button\";\nimport {\n Select,\n type SelectOption,\n} from \"@mycadet/design-library/components/select\";\nimport { Textarea } from \"@mycadet/design-library/components/input\";\nimport { Notice } from \"@mycadet/design-library/components/notice\";\nimport { Toggle } from \"@mycadet/design-library/components/toggle\";\nimport { useBodyScrollLock } from \"./feedback-scroll-lock\";\nimport type common from \"../i18n/locales/en/common.json\";\n\nexport type FeedbackReason = \"bug_report\" | \"feature_request\" | \"other\";\nexport type FeedbackTimeRange = \"past_hour\" | \"past_24_hours\" | \"all_time\";\ntype TranslateFeedback = (\n key: `shareFeedbackModal.${keyof typeof common.shareFeedbackModal}`,\n options?: { name: string },\n) => string;\n\nexport interface FeedbackReport {\n message: string;\n classification: FeedbackReason;\n logsFile: File | null;\n attachments: File[];\n}\n\ninterface ShareFeedbackModalProps {\n open: boolean;\n onClose: () => void;\n initialReason?: FeedbackReason;\n initialMessage?: string;\n onSubmitted?: () => void;\n t: TranslateFeedback;\n bugTip: React.ReactNode;\n featureTip: React.ReactNode;\n collectDiagnostics(range: FeedbackTimeRange): Promise<File | null>;\n submit(report: FeedbackReport): Promise<void>;\n saveDiagnostics(file: File): Promise<void>;\n}\n\nconst BACKDROP_CLASS =\n \"fixed inset-0 z-50 flex items-center justify-center bg-black/50\";\n\nconst PANEL_CLASS =\n \"mx-4 flex w-full max-w-lg flex-col rounded-xl border p-6 shadow-xl\";\n\nconst PANEL_STYLE: CSSProperties = {\n backgroundColor: \"var(--surface-lift)\",\n borderColor: \"var(--border-base)\",\n maxHeight: \"calc(100vh - 2rem)\",\n};\n\ninterface ReasonOption {\n value: FeedbackReason;\n icon: LucideIcon;\n}\n\nconst REASON_OPTIONS: ReasonOption[] = [\n {\n value: \"bug_report\",\n icon: Bug,\n },\n {\n value: \"feature_request\",\n icon: Lightbulb,\n },\n {\n value: \"other\",\n icon: MessageCircle,\n },\n];\n\nconst ALLOWED_MIME_TYPES = new Set([\n \"image/png\",\n \"image/jpeg\",\n \"image/gif\",\n \"image/webp\",\n \"video/mp4\",\n \"video/quicktime\",\n \"video/webm\",\n]);\nconst ALLOWED_EXTENSIONS = new Set([\n \"png\",\n \"jpg\",\n \"jpeg\",\n \"gif\",\n \"webp\",\n \"mp4\",\n \"mov\",\n \"webm\",\n]);\nconst MAX_ATTACHMENTS = 10;\nconst MAX_ATTACHMENT_BYTES = 50 * 1024 * 1024;\n\nfunction isAllowedFile(file: File): boolean {\n if (file.size > MAX_ATTACHMENT_BYTES) {\n return false;\n }\n if (file.type && ALLOWED_MIME_TYPES.has(file.type)) {\n return true;\n }\n if (!file.type) {\n const ext = file.name.split(\".\").pop()?.toLowerCase();\n return ext ? ALLOWED_EXTENSIONS.has(ext) : false;\n }\n return false;\n}\n\n/** Strings at or past this length are candidates for base64 stripping. */\nexport function ShareFeedbackModal({\n open,\n onClose,\n initialReason,\n initialMessage,\n onSubmitted,\n collectDiagnostics,\n submit,\n saveDiagnostics,\n t,\n bugTip,\n featureTip,\n}: ShareFeedbackModalProps) {\n const titleId = useId();\n const overlayRef = useRef<HTMLDivElement>(null);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const messageRef = useRef<HTMLTextAreaElement>(null);\n\n const timeRangeOptions: SelectOption<FeedbackTimeRange>[] = useMemo(\n () => [\n {\n value: \"past_hour\",\n label: t(\"shareFeedbackModal.timeRangePastHour\"),\n },\n {\n value: \"past_24_hours\",\n label: t(\"shareFeedbackModal.timeRangePast24Hours\"),\n },\n {\n value: \"all_time\",\n label: t(\"shareFeedbackModal.timeRangeAllTime\"),\n },\n ],\n [t],\n );\n\n const [selectedReason, setSelectedReason] = useState<FeedbackReason>(\n initialReason ?? \"bug_report\",\n );\n const [message, setMessage] = useState(\"\");\n const [includeLogs, setIncludeLogs] = useState(false);\n const [logTimeRange, setLogTimeRange] =\n useState<FeedbackTimeRange>(\"past_hour\");\n const [attachments, setAttachments] = useState<File[]>([]);\n const [submitError, setSubmitError] = useState<string | null>(null);\n const [isDragging, setIsDragging] = useState(false);\n // Optional: build the diagnostics archive locally and download it\n // instead of submitting feedback (which notifies Slack).\n const [downloadMode, setDownloadMode] = useState(false);\n\n const [isSubmitting, setIsSubmitting] = useState(false);\n\n const canSend = message.trim().length > 0;\n\n useEffect(() => {\n if (!open) {\n return;\n }\n const reason = initialReason ?? \"bug_report\";\n setSelectedReason(reason);\n setMessage(initialMessage ?? \"\");\n setIncludeLogs(false);\n setLogTimeRange(\"past_hour\");\n setAttachments([]);\n setDownloadMode(false);\n setSubmitError(null);\n setIsSubmitting(false);\n const t = setTimeout(() => {\n messageRef.current?.focus();\n }, 50);\n return () => clearTimeout(t);\n }, [open]);\n\n useBodyScrollLock(open);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === \"Escape\" && !e.defaultPrevented && !isSubmitting) {\n e.preventDefault();\n onClose();\n }\n },\n [onClose, isSubmitting],\n );\n\n const handleBackdropClick = useCallback(\n (e: MouseEvent) => {\n if (e.target === overlayRef.current && !isSubmitting) {\n onClose();\n }\n },\n [onClose, isSubmitting],\n );\n\n const addFiles = useCallback((files: File[]) => {\n setAttachments((current) => {\n const remaining = MAX_ATTACHMENTS - current.length;\n if (remaining <= 0) {\n return current;\n }\n const existingKeys = new Set(current.map((f) => `${f.name}:${f.size}`));\n const accepted: File[] = [];\n for (const file of files) {\n if (accepted.length >= remaining) {\n break;\n }\n if (!isAllowedFile(file)) {\n continue;\n }\n const key = `${file.name}:${file.size}`;\n if (existingKeys.has(key)) {\n continue;\n }\n existingKeys.add(key);\n accepted.push(file);\n }\n return accepted.length > 0 ? [...current, ...accepted] : current;\n });\n }, []);\n\n const onFileInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n if (e.target.files) {\n addFiles(Array.from(e.target.files));\n }\n e.target.value = \"\";\n };\n\n const onDrop = (e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n setIsDragging(false);\n if (e.dataTransfer.files?.length) {\n addFiles(Array.from(e.dataTransfer.files));\n }\n };\n\n const onDragOver = (e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n setIsDragging(true);\n };\n const onDragLeave = (e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n if (e.currentTarget === e.target) {\n setIsDragging(false);\n }\n };\n\n const removeAttachment = (index: number) => {\n setAttachments((current) => current.filter((_, i) => i !== index));\n };\n\n const handleSubmit = async () => {\n if (!canSend || isSubmitting) {\n return;\n }\n setSubmitError(null);\n setIsSubmitting(true);\n try {\n const logsFile =\n includeLogs && selectedReason !== \"feature_request\"\n ? await collectDiagnostics(logTimeRange)\n : null;\n await submit({\n message: message.trim(),\n classification: selectedReason,\n logsFile,\n attachments,\n });\n onSubmitted?.();\n onClose();\n } catch (err) {\n setSubmitError(\n err instanceof Error\n ? err.message\n : \"Failed to submit feedback. Please try again.\",\n );\n } finally {\n setIsSubmitting(false);\n }\n };\n\n // Build the diagnostics archive client-side and hand it to the browser\n // as a download. No feedback submission and no Slack notification.\n const handleDownload = async () => {\n if (isSubmitting) {\n return;\n }\n setSubmitError(null);\n setIsSubmitting(true);\n try {\n const logsFile = await collectDiagnostics(logTimeRange);\n if (!logsFile) {\n setSubmitError(\"Diagnostics export isn't supported in this browser.\");\n return;\n }\n await saveDiagnostics(logsFile);\n onClose();\n } catch (err) {\n setSubmitError(\n err instanceof Error\n ? err.message\n : \"Failed to build diagnostics. Please try again.\",\n );\n } finally {\n setIsSubmitting(false);\n }\n };\n\n if (!open) {\n return null;\n }\n\n return createPortal(\n <div\n ref={overlayRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={titleId}\n className={BACKDROP_CLASS}\n onKeyDown={handleKeyDown}\n onClick={handleBackdropClick}\n onDrop={onDrop}\n onDragOver={onDragOver}\n onDragLeave={onDragLeave}\n >\n <div className={PANEL_CLASS} style={PANEL_STYLE}>\n <div\n className=\"flex items-center justify-between border-b pb-4\"\n style={{ borderColor: \"var(--border-subtle)\" }}\n >\n <h2\n id={titleId}\n className=\"!m-0 text-title-small text-[var(--content-default)]\"\n >\n {t(\"shareFeedbackModal.title\")}\n </h2>\n <Button\n variant=\"ghost\"\n iconOnly={<X />}\n onClick={onClose}\n disabled={isSubmitting}\n aria-label={t(\"shareFeedbackModal.closeAria\")}\n tintColor=\"var(--content-secondary)\"\n />\n </div>\n\n <div\n className={`flex flex-col gap-3.5 overflow-y-auto pt-4 ${isSubmitting ? \"pointer-events-none opacity-60\" : \"\"}`}\n >\n <div className=\"flex flex-col gap-1.5 rounded-lg border border-[var(--border-base)] bg-[var(--surface-base)] px-3 py-2.5\">\n <label className=\"flex cursor-pointer items-center gap-3\">\n <Toggle\n checked={downloadMode}\n onChange={() => setDownloadMode((v) => !v)}\n aria-label={t(\"shareFeedbackModal.downloadDiagnosticsAria\")}\n />\n <span className=\"text-body-medium-lighter text-[var(--content-default)]\">\n {t(\"shareFeedbackModal.downloadDiagnostics\")}\n </span>\n </label>\n </div>\n\n {downloadMode ? (\n <div className=\"flex items-center gap-3\">\n <span className=\"text-body-medium-lighter text-[var(--content-default)]\">\n {t(\"shareFeedbackModal.timeRange\")}\n </span>\n <Select\n options={timeRangeOptions}\n value={logTimeRange}\n onChange={setLogTimeRange}\n aria-label={t(\"shareFeedbackModal.timeRangeAria\")}\n />\n </div>\n ) : (\n <>\n <div className=\"flex flex-col gap-1.5\">\n <span className=\"text-body-small-default text-[var(--content-secondary)]\">\n {t(\"shareFeedbackModal.category\")}\n </span>\n <div className=\"flex gap-2\">\n {REASON_OPTIONS.map((option) => (\n <ReasonChip\n key={option.value}\n t={t}\n option={option}\n isSelected={selectedReason === option.value}\n onSelect={() => setSelectedReason(option.value)}\n />\n ))}\n </div>\n </div>\n\n <hr className=\"border-[var(--border-subtle)]\" />\n\n {selectedReason === \"bug_report\" && (\n <Notice tone=\"info\">{bugTip}</Notice>\n )}\n\n {selectedReason === \"feature_request\" && (\n <Notice tone=\"info\">{featureTip}</Notice>\n )}\n\n <Textarea\n id={`${titleId}-message`}\n ref={messageRef}\n label={\n selectedReason === \"bug_report\"\n ? t(\"shareFeedbackModal.messageLabelBug\")\n : selectedReason === \"feature_request\"\n ? t(\"shareFeedbackModal.messageLabelFeature\")\n : t(\"shareFeedbackModal.messageLabelOther\")\n }\n rows={3}\n placeholder={\n selectedReason === \"bug_report\"\n ? t(\"shareFeedbackModal.messagePlaceholderBug\")\n : selectedReason === \"feature_request\"\n ? t(\"shareFeedbackModal.messagePlaceholderFeature\")\n : t(\"shareFeedbackModal.messagePlaceholderOther\")\n }\n value={message}\n onChange={(e) => setMessage(e.target.value)}\n fullWidth\n />\n\n {selectedReason !== \"feature_request\" && (\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2.5\">\n <label className=\"flex cursor-pointer items-center gap-2.5\">\n <Toggle\n checked={includeLogs}\n onChange={() => setIncludeLogs((value) => !value)}\n aria-label={t(\n \"shareFeedbackModal.includeDiagnosticsAria\",\n )}\n />\n <span className=\"text-body-medium-lighter leading-6 text-[var(--content-default)]\">\n {t(\"shareFeedbackModal.includeDiagnostics\")}\n </span>\n </label>\n <Button\n variant=\"ghost\"\n size=\"compact\"\n iconOnly={<Info />}\n expandOnMobile={false}\n aria-label={t(\"shareFeedbackModal.aboutDiagnosticsAria\")}\n tooltip={t(\"shareFeedbackModal.diagnosticsTooltip\")}\n />\n </div>\n {includeLogs && (\n <Select\n options={timeRangeOptions}\n value={logTimeRange}\n onChange={setLogTimeRange}\n aria-label={t(\"shareFeedbackModal.timeRangeAria\")}\n />\n )}\n </div>\n )}\n\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center justify-between\">\n <span className=\"text-body-small-default text-[var(--content-secondary)]\">\n {t(\"shareFeedbackModal.attachments\")}\n {attachments.length > 0 && (\n <span className=\"text-[var(--content-tertiary)]\">\n {\" · \"}\n {attachments.length}/{MAX_ATTACHMENTS}\n </span>\n )}\n </span>\n <Button\n variant=\"outlined\"\n size=\"compact\"\n leftIcon={<Paperclip />}\n onClick={() => fileInputRef.current?.click()}\n disabled={attachments.length >= MAX_ATTACHMENTS}\n >\n {t(\"shareFeedbackModal.addFiles\")}\n </Button>\n <input\n ref={fileInputRef}\n type=\"file\"\n multiple\n accept=\"image/png,image/jpeg,image/gif,image/webp,video/mp4,video/quicktime,video/webm\"\n onChange={onFileInputChange}\n className=\"hidden\"\n />\n </div>\n {attachments.length > 0 && (\n <div className=\"flex gap-2 overflow-x-auto\">\n {attachments.map((file, idx) => (\n <AttachmentThumbnail\n key={`${file.name}-${idx}`}\n t={t}\n file={file}\n onRemove={() => removeAttachment(idx)}\n />\n ))}\n </div>\n )}\n {isDragging && (\n <p className=\"text-body-small-default text-[var(--content-tertiary)]\">\n {t(\"shareFeedbackModal.dropFiles\")}\n </p>\n )}\n </div>\n </>\n )}\n\n {submitError && (\n <p className=\"text-body-medium-lighter text-[var(--system-negative-strong)]\">\n {submitError}\n </p>\n )}\n </div>\n\n <div\n className=\"mt-4 flex items-center justify-end gap-2 border-t pt-4\"\n style={{ borderColor: \"var(--border-subtle)\" }}\n >\n {isSubmitting ? (\n <span className=\"inline-flex items-center gap-2 text-body-medium-lighter text-[var(--content-secondary)]\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n {downloadMode\n ? t(\"shareFeedbackModal.preparingDiagnostics\")\n : t(\"shareFeedbackModal.sendingFeedback\")}\n </span>\n ) : (\n <>\n <Button variant=\"ghost\" onClick={onClose}>\n {t(\"shareFeedbackModal.cancel\")}\n </Button>\n {downloadMode ? (\n <Button\n variant=\"primary\"\n leftIcon={<Download />}\n onClick={handleDownload}\n >\n {t(\"shareFeedbackModal.downloadDiagnosticsButton\")}\n </Button>\n ) : (\n <Button\n variant=\"primary\"\n leftIcon={<Send />}\n onClick={handleSubmit}\n disabled={!canSend}\n >\n {t(\"shareFeedbackModal.submit\")}\n </Button>\n )}\n </>\n )}\n </div>\n </div>\n </div>,\n document.body,\n );\n}\n\nfunction ReasonChip({\n t,\n option,\n isSelected,\n onSelect,\n}: {\n t: TranslateFeedback;\n option: ReasonOption;\n isSelected: boolean;\n onSelect: () => void;\n}) {\n const Icon = option.icon;\n const label =\n option.value === \"bug_report\"\n ? t(\"shareFeedbackModal.reasonBugReport\")\n : option.value === \"feature_request\"\n ? t(\"shareFeedbackModal.reasonFeatureRequest\")\n : t(\"shareFeedbackModal.reasonOther\");\n return (\n <button\n type=\"button\"\n onClick={onSelect}\n aria-pressed={isSelected}\n className=\"flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-left transition-colors\"\n style={{\n borderColor: isSelected ? \"var(--primary-base)\" : \"var(--border-base)\",\n backgroundColor: isSelected\n ? \"color-mix(in oklab, var(--primary-base) 10%, transparent)\"\n : \"transparent\",\n }}\n >\n <Icon\n className=\"h-3.5 w-3.5 shrink-0\"\n style={{\n color: isSelected\n ? \"var(--primary-base)\"\n : \"var(--content-secondary)\",\n }}\n />\n <span\n className=\"text-body-small-default\"\n style={{\n color: isSelected ? \"var(--primary-base)\" : \"var(--content-default)\",\n }}\n >\n {label}\n </span>\n </button>\n );\n}\n\nfunction AttachmentThumbnail({\n t,\n file,\n onRemove,\n}: {\n t: TranslateFeedback;\n file: File;\n onRemove: () => void;\n}) {\n const isImage = file.type.startsWith(\"image/\");\n const previewUrl = useMemo(\n () => (isImage ? URL.createObjectURL(file) : null),\n [file, isImage],\n );\n\n useEffect(() => {\n if (!previewUrl) {\n return;\n }\n return () => URL.revokeObjectURL(previewUrl);\n }, [previewUrl]);\n\n return (\n <div\n className=\"relative flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-[var(--border-base)] bg-[var(--surface-base)]\"\n title={file.name}\n >\n {isImage && previewUrl ? (\n <img\n src={previewUrl}\n alt={file.name}\n className=\"h-full w-full object-cover\"\n />\n ) : (\n <Paperclip className=\"h-5 w-5 text-[var(--content-secondary)]\" />\n )}\n <Button\n shape=\"pill\"\n variant=\"ghost\"\n size=\"compact\"\n iconOnly={<X />}\n onClick={onRemove}\n aria-label={t(\"shareFeedbackModal.removeAttachmentAria\", {\n name: file.name,\n })}\n className=\"absolute top-0.5 right-0.5 h-4 w-4 bg-black/60 text-white hover:bg-black/70\"\n tintColor=\"#fff\"\n />\n </div>\n );\n}\n","import {\n ShareFeedbackModal,\n type FeedbackReport,\n type FeedbackTimeRange,\n} from \"./share-feedback-modal\";\nimport { Trans, useTranslation } from \"@app/i18n\";\nimport { postCloudForm } from \"@app/lib/cloud/request\";\nimport { getElectronBridge } from \"@app/runtime/electron-bridge\";\n\nconst LOG_WINDOW_MS = {\n past_hour: 60 * 60 * 1000,\n past_24_hours: 24 * 60 * 60 * 1000,\n};\n\nfunction filterLogs(logs: string, range: FeedbackTimeRange): string {\n if (range === \"all_time\") return logs;\n const cutoff = new Date(Date.now() - LOG_WINDOW_MS[range]);\n const localCutoff = new Date(\n cutoff.getTime() - cutoff.getTimezoneOffset() * 60_000,\n )\n .toISOString()\n .replace(\"T\", \" \")\n .slice(0, 23);\n let withinRange = false;\n return logs\n .split(\"\\n\")\n .filter((line) => {\n const timestamp = /^\\[(\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d\\.\\d{3})\\]/.exec(\n line,\n )?.[1];\n if (timestamp) withinRange = timestamp >= localCutoff;\n return withinRange;\n })\n .join(\"\\n\");\n}\n\nasync function collectDiagnostics(\n range: FeedbackTimeRange,\n): Promise<File | null> {\n const bridge = getElectronBridge()?.feedback;\n if (!bridge) return null;\n const [logs, diagnostics] = await Promise.all([\n bridge.logs(),\n bridge.diagnostics().catch(() => null),\n ]);\n return new File(\n [\n JSON.stringify(diagnostics, null, 2),\n \"\\n\\n\",\n filterLogs(logs, range).slice(-2_000_000),\n ],\n \"cadet-desktop-diagnostics.txt\",\n { type: \"text/plain\" },\n );\n}\n\nasync function submit({\n message,\n classification,\n logsFile,\n attachments,\n}: FeedbackReport) {\n const form = new FormData();\n form.set(\"message\", message);\n form.set(\"classification\", classification);\n form.set(\"client\", \"electron\");\n const versionInfo = await getElectronBridge()\n ?.app?.versionInfo()\n .catch(() => null);\n if (versionInfo?.version) form.set(\"client_version\", versionInfo.version);\n if (logsFile) form.set(\"logs_file\", logsFile);\n for (const file of attachments) form.append(\"attachments\", file);\n const result = await postCloudForm(\"/v1/feedback/\", form);\n if (!result.ok) throw new Error(result.error.detail);\n}\n\nasync function saveDiagnostics(file: File) {\n const url = URL.createObjectURL(file);\n const anchor = document.createElement(\"a\");\n anchor.href = url;\n anchor.download = file.name;\n anchor.click();\n setTimeout(() => URL.revokeObjectURL(url), 1000);\n}\n\nexport function DesktopShareFeedback({\n open,\n onClose,\n}: {\n open: boolean;\n onClose: () => void;\n}) {\n const { t } = useTranslation(\"common\");\n return (\n <ShareFeedbackModal\n open={open}\n onClose={onClose}\n t={t}\n bugTip={\n <Trans\n ns=\"common\"\n i18nKey=\"shareFeedbackModal.bugTip\"\n components={{\n discordLink: (\n <a\n className=\"underline\"\n href=\"https://mycadet.ai/community\"\n target=\"_blank\"\n rel=\"noreferrer\"\n />\n ),\n }}\n />\n }\n featureTip={\n <Trans\n ns=\"common\"\n i18nKey=\"shareFeedbackModal.featureTip\"\n components={{\n roadmapLink: (\n <a\n className=\"underline\"\n href=\"https://mycadet.ai/roadmap\"\n target=\"_blank\"\n rel=\"noreferrer\"\n />\n ),\n }}\n />\n }\n collectDiagnostics={collectDiagnostics}\n submit={submit}\n saveDiagnostics={saveDiagnostics}\n />\n );\n}\n","/**\n * Lazy-chunk fetch failure detection.\n *\n * Browsers expose dynamic-import (`import(\"…\")`) rejection with a few\n * different shapes depending on what went wrong: a 404 / abort / network\n * drop on Vite is typically a `TypeError` with one of the messages\n * below; Webpack-emitted bundles surface `ChunkLoadError`. We need to\n * tell these apart from real render bugs so we can:\n *\n * - Render a smaller \"section couldn't load, reload\" UI instead of\n * the full-page \"Something went wrong\" treatment used for genuine\n * render failures.\n * - Tag error reports so chunk-fetch noise is sliceable.\n *\n * Single source of truth for the predicate so route-level and\n * component-level boundaries agree.\n */\nexport function isChunkLoadError(error: unknown): boolean {\n if (!(error instanceof Error)) {\n return false;\n }\n if (error.name === \"ChunkLoadError\") {\n return true;\n }\n const msg = error.message;\n return (\n msg.includes(\"Failed to fetch dynamically imported module\") ||\n msg.includes(\"Importing a module script failed\") ||\n msg.includes(\"error loading dynamically imported module\") ||\n msg.includes(\"Loading chunk\")\n );\n}\n","import { Loader2, RotateCcw } from \"lucide-react\";\nimport { isRouteErrorResponse, useRouteError } from \"react-router\";\n\nimport { Button } from \"@mycadet/design-library/components/button\";\n\nimport { useTranslation } from \"@app/i18n\";\nimport { isChunkLoadError } from \"@app/lib/chunk-errors\";\n\n/**\n * Single error boundary used at every level of the route tree. Picks\n * one of two variants based on the error shape:\n *\n * - **Chunk-fetch failures** (stale deploy, network blip, browser\n * module-map rejection): renders an inline \"section couldn't\n * load\" message scoped to the route's content area. Mounted via\n * pathless wrappers inside layout routes (`RootLayout`,\n * `ChatLayout`) so the parent chrome stays visible.\n * - **Anything else** (genuine render error, loader exception,\n * 404 route response): renders the full-page \"Something went\n * wrong\" treatment.\n *\n * Error reporting happens once at `RouterProvider.onError` in\n * `main.tsx`; this boundary only owns the UI. That keeps a single\n * source of truth for reporting (chunk failures get the\n * `tags.boundary = \"lazy-route\"` tag) and avoids double-reporting here.\n *\n * References:\n * - https://reactrouter.com/how-to/error-boundary\n * - https://reactrouter.com/start/data/route-object\n */\nexport function RouteErrorBoundary() {\n const error = useRouteError();\n const { t } = useTranslation();\n\n if (isChunkLoadError(error)) {\n return (\n <div\n data-slot=\"route-error-boundary\"\n data-variant=\"chunk-fail\"\n role=\"alert\"\n className=\"flex h-full min-h-[200px] flex-col items-center justify-center gap-3 p-6 text-center\"\n >\n <Loader2\n className=\"size-6 text-[var(--content-tertiary)]\"\n aria-hidden\n />\n <p className=\"max-w-md text-body-medium-lighter text-[var(--content-secondary)]\">\n {t(\"routeErrorBoundary.chunkFailBody\")}\n </p>\n <Button\n variant=\"ghost\"\n size=\"compact\"\n leftIcon={<RotateCcw />}\n onClick={() => window.location.reload()}\n >\n {t(\"routeErrorBoundary.reload\")}\n </Button>\n </div>\n );\n }\n\n const status = isRouteErrorResponse(error) ? error.status : undefined;\n const heading = status === 404 ? \"Page not found\" : \"Something went wrong\";\n const message =\n status === 404\n ? \"The page you requested doesn't exist.\"\n : \"An unexpected error occurred. Try reloading the page.\";\n\n return (\n <div\n data-slot=\"route-error-boundary\"\n data-variant=\"full-page\"\n className=\"flex min-h-svh flex-col items-center justify-center gap-4 bg-[var(--surface-base)] p-6 text-center\"\n >\n <h1 className=\"text-2xl font-semibold text-[var(--content-emphasised)]\">\n {heading}\n </h1>\n <p className=\"max-w-md text-[var(--content-secondary)]\">{message}</p>\n <Button variant=\"primary\" onClick={() => window.location.reload()}>\n {t(\"routeErrorBoundary.reload\")}\n </Button>\n </div>\n );\n}\n","import { useEffect, useLayoutEffect, useRef } from \"react\";\n\nimport type { CadetCommand } from \"@mycadet/ipc-contract\";\nimport { getElectronBridge } from \"@app/runtime/electron-bridge\";\n\n/**\n * Renderer-side dispatcher for commands sent by the Electron host's\n * application menu (and, eventually, global hotkeys). The contract is\n * defined in `clients/macos/src/main/commands.ts`; this file mirrors the\n * union type via the ambient declaration in `is-electron.ts`.\n *\n * Consumers register a partial map of handlers. Missing entries no-op,\n * which is intentional: the same command stream is consumed at multiple\n * mount points (chat layout, settings, future thread pop-outs) and not\n * every consumer cares about every command.\n *\n * Handlers are held in a ref so re-renders don't re-subscribe to the IPC\n * channel, and the latest handler closure is always invoked when a\n * command arrives (avoids stale-closure bugs without forcing callers to\n * memoize).\n *\n * Handlers receive the full command object. Payload-free commands can\n * still use `() => void` — TypeScript's function compatibility rules\n * allow functions with fewer parameters to satisfy a wider signature.\n */\nexport type CommandHandlers = Partial<\n Record<CadetCommand[\"kind\"], (command: CadetCommand) => void>\n>;\n\nexport function useCadetCommands(handlers: CommandHandlers): void {\n const handlersRef = useRef<CommandHandlers>(handlers);\n useLayoutEffect(() => {\n handlersRef.current = handlers;\n });\n\n useEffect(() => {\n const bridge = getElectronBridge();\n if (!bridge) {\n return;\n }\n return bridge.commands.on((command) => {\n handlersRef.current[command.kind]?.(command);\n });\n }, []);\n}\n","/**\n * Connect-dialog state for the \"Connect a remote assistant\" dialog on the\n * assistant chooser, shared between its two openers:\n *\n * - The chooser's own affordance opens it empty.\n * - A `<scheme>://connect` deep link opens it (possibly while the chooser\n * is not mounted); the request parks here and the chooser picks it up\n * on mount.\n *\n * Why a store instead of a query param: the parked payload can carry a\n * pairing link, whose device code is secret material. Carrying it in the\n * URL would place it in browser history and in navigation breadcrumbs.\n *\n * `closeConnectDialog` clears the deep-link payload along with the open\n * flag, so a later manual open starts empty. Renderer reloads blow this\n * away because it's not persisted; deep links are transient signals.\n *\n * The store also carries `deepLinkDrainSettled`: Electron buffers deep\n * links that arrive before the renderer exists and drains them shortly\n * after mount (see the shells' deep-link consumers, which mark the flag\n * once the drain settles). The chooser's auto-skip defers to it so a\n * cold-start connect link can open this dialog before a sole assistant\n * auto-connects. It latches true for the renderer's lifetime.\n *\n * Port of web's connect-dialog store (zustand), re-homed on the app's\n * hand-rolled `useSyncExternalStore` convention (see `remembered-origins-store`).\n *\n * Leaf module: must not import from chooser/screen modules.\n */\n\nimport { useSyncExternalStore } from \"react\";\n\n/**\n * Which explanation an address-less `connect` deep link earns. `legacy`\n * marks an app version whose connect dialog took a pasted pairing bundle;\n * `generic` is a link that simply carried no usable base. The discriminant\n * is parked rather than resolved copy, so the dialog renders it through\n * its own reactive `t` and a language switch reaches it.\n */\nexport type ConnectGuidanceKind = \"legacy\" | \"generic\";\n\nexport interface ConnectDialogState {\n open: boolean;\n /** Prefill for the dialog's address field (deep-link entry), or `null`. */\n initialAddress: string | null;\n /** Which guidance the dialog shows above the form, or `null` for none. */\n guidanceKind: ConnectGuidanceKind | null;\n /** Whether the Electron cold-start deep-link drain has settled. */\n deepLinkDrainSettled: boolean;\n}\n\nexport interface ConnectDialogActions {\n /**\n * Open the dialog. Omitted fields clear any previously parked payload,\n * so a manual open never resurfaces a stale deep-link prefill.\n */\n openConnectDialog(options?: {\n initialAddress?: string;\n guidanceKind?: ConnectGuidanceKind;\n }): void;\n /** Close the dialog and clear any parked deep-link payload. */\n closeConnectDialog(): void;\n /** Latch that the startup deep-link backlog has been published (or failed). */\n markDeepLinkDrainSettled(): void;\n}\n\nexport type ConnectDialogStore = ConnectDialogState & ConnectDialogActions;\n\nconst initialState: ConnectDialogState = {\n open: false,\n initialAddress: null,\n guidanceKind: null,\n deepLinkDrainSettled: false,\n};\n\nlet state: ConnectDialogState = initialState;\n\nconst listeners = new Set<() => void>();\n\nfunction subscribe(listener: () => void): () => void {\n listeners.add(listener);\n return () => listeners.delete(listener);\n}\n\nfunction publish(next: Partial<ConnectDialogState>): void {\n state = { ...state, ...next };\n for (const listener of listeners) {\n listener();\n }\n}\n\nconst actions: ConnectDialogActions = {\n openConnectDialog(options) {\n publish({\n open: true,\n initialAddress: options?.initialAddress ?? null,\n guidanceKind: options?.guidanceKind ?? null,\n });\n },\n closeConnectDialog() {\n publish({ open: false, initialAddress: null, guidanceKind: null });\n },\n markDeepLinkDrainSettled() {\n publish({ deepLinkDrainSettled: true });\n },\n};\n\nfunction useConnectDialog<T>(selector: (state: ConnectDialogState) => T): T {\n return useSyncExternalStore(\n subscribe,\n () => selector(state),\n () => selector(state),\n );\n}\n\n/**\n * Reset hook for tests. Not intended for production callers.\n */\nexport function __resetConnectDialogForTesting(): void {\n publish({ ...initialState });\n}\n\n/**\n * The connect-dialog store: call it with a selector inside React, reach\n * `getState()` / the actions outside one (the app's `auth-store` shape).\n */\nexport const useConnectDialogStore = Object.assign(useConnectDialog, {\n getState: (): ConnectDialogStore => ({ ...state, ...actions }),\n ...actions,\n use: {\n open: (): boolean => useConnectDialog((s) => s.open),\n initialAddress: (): string | null =>\n useConnectDialog((s) => s.initialAddress),\n guidanceKind: (): ConnectGuidanceKind | null =>\n useConnectDialog((s) => s.guidanceKind),\n deepLinkDrainSettled: (): boolean =>\n useConnectDialog((s) => s.deepLinkDrainSettled),\n },\n});\n","import { useEffect, useLayoutEffect, useRef } from \"react\";\nimport { useNavigate } from \"react-router\";\n\nimport type { DeepLink } from \"@mycadet/ipc-contract\";\nimport { captureError } from \"@mycadet/design-library/utils/capture-error\";\nimport { getElectronBridge } from \"@app/runtime/electron-bridge\";\nimport { useConnectDialogStore } from \"@app/stores/connect-dialog-store\";\nimport { connectAddress } from \"@app/utils/pairing-address\";\nimport { routes } from \"@app/utils/routes\";\n\n/**\n * Renderer-side consumer for the Electron host's `cadet://` deep-link\n * bridge (`window.cadet.deepLinks`). The shells parse `<scheme>://connect`\n * pairing hand-offs and buffer anything that arrives before the renderer\n * exists; this hook subscribes to live links and drains that backlog.\n *\n * Only the `connect` arm drives an app surface: it parks the request in the\n * connect-dialog store and lands on the assistant chooser, which opens its\n * Connect a Remote Assistant dialog off that store. A `url`+`code` link\n * recomposes into the pairing link and prefills the address field, so the\n * pair completes on one click; a link carrying only a base prefills that,\n * and the dialog mints its own approval code; a link with no usable base\n * gets guidance instead of a prefill, naming its legacy pairing bundle when\n * it carried one. The remaining arms are web-chat surfaces (threads,\n * composer pre-fill, checkout) the app bundle doesn't mount, so they are\n * ignored; unknown links are unparseable shapes the shell already logs.\n *\n * Subscribe BEFORE draining (web's electron-deep-links ordering): a link\n * landing between drain completion and subscription would be lost\n * otherwise. The subscription is synchronous and the drain runs in the\n * background. Window visibility is main-side (the shells' deep-link setup\n * calls ensureVisible), so unlike web's consumer this makes no\n * ensureMainWindowVisible call.\n *\n * Off Electron (the Capacitor and browser boots) `getElectronBridge()`\n * returns undefined: no subscription, and the drain falls through to an\n * empty backlog — but the settled latch still fires, matching web's\n * no-op-then-latch shape.\n */\nexport function useDeepLinkConsumer(): void {\n const navigate = useNavigate();\n const navigateRef = useRef(navigate);\n useLayoutEffect(() => {\n navigateRef.current = navigate;\n });\n\n useEffect(() => {\n const bridge = getElectronBridge();\n const handleLink = (link: DeepLink): void => {\n if (link.kind !== \"connect\") {\n return;\n }\n const address = connectAddress(link.url ?? null, link.code ?? null);\n // Park before navigating so the chooser mounts with the dialog\n // already open (its auto-skip stands down while it is).\n useConnectDialogStore\n .getState()\n .openConnectDialog(\n address !== null\n ? { initialAddress: address }\n : { guidanceKind: link.legacy ? \"legacy\" : \"generic\" },\n );\n navigateRef.current(routes.account.selectAssistant);\n };\n // Subscribe synchronously, before the drain below.\n const unsubscribe =\n bridge?.deepLinks?.onLink(handleLink) ?? (() => undefined);\n let cancelled = false;\n void (bridge?.deepLinks?.drain() ?? Promise.resolve([]))\n .then((pending) => {\n if (cancelled) {\n return;\n }\n for (const link of pending) {\n handleLink(link);\n }\n })\n .catch((err) => {\n captureError(err, { context: \"deep_link_drain\", level: \"warning\" });\n })\n .finally(() => {\n // Latch after the backlog publishes so a buffered connect link parks\n // its dialog state before the chooser's auto-skip resumes.\n useConnectDialogStore.getState().markDeepLinkDrainSettled();\n });\n return () => {\n cancelled = true;\n unsubscribe();\n };\n }, []);\n}\n","import { getElectronBridge } from \"@app/runtime/electron-bridge\";\n\n/**\n * Per-capability wrapper for the Electron host's main-window control\n * surface. Imperative — `ensureMainWindowVisible()` brings the main\n * window forward (recreate if destroyed, restore from minimize, show,\n * focus). Off Electron the call no-ops; web and Capacitor iOS have\n * their own foregrounding semantics (web is already the foreground\n * tab if the user is interacting; iOS handles app activation\n * natively).\n *\n * Used by feature consumers that react to inbound signals (deep\n * links, future notification action clicks) and need to accompany\n * the state update with making the window user-visible. Without\n * this, a click on `cadet://send?message=hi` on a backgrounded\n * Cadet would update composer state with no visible response.\n *\n * Same wrapper shape as `dock.ts` / `app-info.ts`: no-op off\n * Electron, awaits an IPC handler that resolves once the window\n * is loaded and focused. Safe to fire-and-forget if the caller\n * doesn't need to sequence follow-up actions.\n */\n\nexport async function ensureMainWindowVisible(): Promise<void> {\n await getElectronBridge()?.mainWindow.ensureVisible();\n}\n\n/**\n * Switch the Electron main window between the onboarding layout (440×630\n * default, matching the macOS Swift client) and the main-app layout. Drive\n * it from the active route — `true` while an onboarding step is showing,\n * `false` otherwise.\n *\n * No-op off Electron: web is a single resizable browser viewport and\n * Capacitor iOS is system-managed, so neither has a window to resize.\n * Safe to call on every navigation — the main process treats re-asserting\n * the current mode as a no-op.\n */\nexport async function setOnboardingWindow(active: boolean): Promise<void> {\n await getElectronBridge()?.mainWindow.setOnboarding(active);\n}\n","import { useEffect } from \"react\";\nimport { useLocation } from \"react-router\";\n\nimport { setOnboardingWindow } from \"@app/runtime/main-window\";\n\n/**\n * Route prefixes that should render in the compact (440×630) window: the\n * onboarding flow (`/assistant/onboarding/*`) and the standalone auth\n * screens (`/account/*` — login, signup, password reset, OAuth callbacks).\n * Both are chrome-less, narrow, pre-app surfaces. Everything else (the main\n * app) uses the large window.\n *\n * The `/account` prefix assumes the hook is only mounted on `/account`\n * routes that render in the MAIN window (login, signup, etc., via\n * `AccountLayout`). The OAuth completion pages (`oauth/popup-complete` etc.)\n * also match this prefix but render inside a popup child window — they're\n * kept OUT of `AccountLayout` in `routes.tsx` so the hook never mounts\n * there. Same hazard as `/assistant/about`, which renders in a separate\n * About `BrowserWindow` and likewise never mounts this hook: the resize IPC\n * targets the main window, so signalling from any non-main window would\n * resize the wrong window.\n */\nconst COMPACT_PATH_PREFIXES = [\n \"/assistant/onboarding/\",\n \"/assistant/welcome\",\n \"/assistant/review-terms\",\n // Covers the auth screens AND select-assistant, which moved under\n // /account alongside them (account-level flows are shell territory).\n \"/account\",\n];\n\nfunction isCompactRoute(pathname: string): boolean {\n return COMPACT_PATH_PREFIXES.some((prefix) => pathname.startsWith(prefix));\n}\n\n/**\n * Keep the Electron main window sized to the compact layout (440×630,\n * matching the macOS Swift client) while on a compact route — onboarding or\n * the `/account/*` auth screens — and large everywhere else in the app.\n *\n * Mounted on every route group whose content lives in the main window:\n * `RootLayout` (the `/assistant` app, incl. onboarding) and the `/account`\n * layout. Off Electron the call is a no-op, so this is inert on web and iOS.\n * Driving it from the route — not the `onboarding.completed` flag — keeps\n * the small window applied across the whole pre-app surface, including the\n * post-completion-flag hatching and research-onboarding screens.\n */\nexport function useOnboardingWindowSize(): void {\n const { pathname } = useLocation();\n const isCompact = isCompactRoute(pathname);\n\n // Depend on the derived boolean, not the raw pathname, so the effect (and\n // its IPC round-trip) only runs when compact-ness actually flips — not on\n // every navigation within a group.\n useEffect(() => {\n void setOnboardingWindow(isCompact);\n }, [isCompact]);\n}\n","import { Outlet } from \"react-router\";\n\nimport { useOnboardingWindowSize } from \"@app/hooks/use-onboarding-window-size\";\n\n/**\n * Layout for the `/account/*` auth screens that render in the MAIN window —\n * login, signup, provider sign-in callbacks, password reset. These live\n * outside `RootLayout`, so this is where the compact-window sizing hook is\n * mounted for them: they use the same small (440×630) window as onboarding.\n *\n * Deliberately does NOT wrap the OAuth completion / loopback pages\n * (`oauth/popup-complete`, `oauth/complete`, `cloud-callback`). Those\n * render inside an OAuth popup child window, and the sizing IPC targets the\n * module-scoped main window — so signalling from a popup would shrink the\n * wrong (main) window and persist `onboardingActive`. They're kept out of\n * this layout in `routes.tsx`. Renders no chrome of its own.\n */\nexport function AccountLayout() {\n useOnboardingWindowSize();\n return <Outlet />;\n}\n","import { Navigate, useSearchParams } from \"react-router\";\n\nimport { RouteErrorBoundary } from \"@app/components/route-error-boundary\";\nimport { RootHydrateFallback } from \"@app/components/root-hydrate-fallback\";\nimport { routes } from \"@app/utils/routes\";\n\nimport { AccountLayout } from \"@app/domains/account/account-layout\";\n\n/**\n * Redirects legacy `/account/oauth/desktop-complete` to the canonical\n * `/account/oauth/complete`, preserving all query parameters. Older macOS\n * and iOS Capacitor builds have the old path baked in.\n */\nfunction OAuthDesktopCompleteRedirect() {\n const [searchParams] = useSearchParams();\n const qs = searchParams.toString();\n return (\n <Navigate\n to={`${routes.account.oauth.complete}${qs ? `?${qs}` : \"\"}`}\n replace\n />\n );\n}\n\n/**\n * The whole /account route subtree: standalone auth pages, no app chrome.\n * Lazy-loaded — only needed for unauthenticated flows.\n *\n * The desktop shell composes this into its root route tree.\n */\nexport const accountRoute = {\n path: \"/account\",\n ErrorBoundary: RouteErrorBoundary,\n HydrateFallback: RootHydrateFallback,\n children: [\n {\n ErrorBoundary: RouteErrorBoundary,\n children: [\n {\n Component: AccountLayout,\n children: [\n {\n index: true,\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/account-page\").then(\n (m) => m.AccountPage,\n ),\n },\n },\n {\n // Assistants management: the account's operator surfaces —\n // backups, upgrades, the export flow — for each assistant the\n // operator account holds. `assistants/:assistantId` deep-links\n // one assistant (the settings page's Manage Assistant button).\n path: \"assistants/:assistantId?\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/assistants-page\").then(\n (m) => m.AssistantsPage,\n ),\n },\n },\n {\n // The Doctor as an account surface: reachable (and functional)\n // with the assistant's gateway completely offline.\n path: \"doctor\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/doctor-page\").then(\n (m) => m.DoctorPage,\n ),\n },\n },\n {\n path: \"login\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/login-page\").then(\n (m) => m.LoginPage,\n ),\n },\n },\n {\n path: \"signup\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/signup-page\").then(\n (m) => m.SignupPage,\n ),\n },\n },\n {\n path: \"pair\",\n ErrorBoundary: RouteErrorBoundary,\n HydrateFallback: RootHydrateFallback,\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/pairing-page\").then(\n (m) => m.PairingPage,\n ),\n },\n },\n {\n path: \"onboarding/welcome\",\n lazy: {\n Component: () =>\n import(\"@app/domains/onboarding/pages/welcome-screen\").then(\n (m) => m.WelcomeScreen,\n ),\n },\n },\n {\n path: \"onboarding/start\",\n lazy: {\n Component: () =>\n import(\"@app/domains/onboarding/pages/start-screen\").then(\n (m) => m.StartScreen,\n ),\n },\n },\n {\n path: \"onboarding/hosting\",\n lazy: {\n Component: () =>\n import(\"@app/domains/onboarding/pages/hosting-screen\").then(\n (m) => m.HostingScreen,\n ),\n },\n },\n {\n path: \"onboarding/api-key\",\n lazy: {\n Component: () =>\n import(\"@app/domains/onboarding/pages/api-key-screen\").then(\n (m) => m.ApiKeyScreen,\n ),\n },\n },\n {\n path: \"onboarding/hatching\",\n lazy: {\n Component: () =>\n import(\"@app/domains/onboarding/pages/hatching-screen\").then(\n (m) => m.HatchingScreen,\n ),\n },\n },\n {\n path: \"provider/callback\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/provider-callback-page\").then(\n (m) => m.ProviderCallbackPage,\n ),\n },\n },\n {\n path: \"provider/signup\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/provider-signup-page\").then(\n (m) => m.ProviderSignupPage,\n ),\n },\n },\n {\n path: \"password/reset\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/password-reset-page\").then(\n (m) => m.PasswordResetPage,\n ),\n },\n },\n {\n path: \"password/reset/key/:key\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/password-reset-page\").then(\n (m) => m.PasswordResetPage,\n ),\n },\n },\n ],\n },\n {\n path: \"oauth/popup-complete\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/oauth-popup-complete-page\").then(\n (m) => m.OAuthPopupCompletePage,\n ),\n },\n },\n {\n path: \"oauth/complete\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/oauth-complete-page\").then(\n (m) => m.OAuthCompletePage,\n ),\n },\n },\n {\n path: \"oauth/desktop-complete\",\n Component: OAuthDesktopCompleteRedirect,\n },\n {\n path: \"cloud-callback\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/cloud-loopback-page\").then(\n (m) => m.CloudLoopbackPage,\n ),\n },\n },\n {\n path: \"select-assistant\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/select-assistant-screen\").then(\n (m) => m.SelectAssistantScreen,\n ),\n },\n },\n ],\n },\n ],\n};\n","/**\n * Shared contract for the first-run scope options offered by the \"Let's chat\"\n * kickoff greeting (see `lets-chat-kickoff.ts`).\n *\n * These are wire values: they ride `ui_show` choice-option `data` payloads\n * through the daemon and come back on click as the surface action's data.\n * Downstream consumers (e.g. click telemetry in the chat domain) match on\n * them, so they must stay stable — do not rename or reorder.\n *\n * Chat-domain code may import this module; the import direction mirrors\n * `PreChatOnboardingContext` in `prechat.ts` — onboarding exports, other\n * domains import.\n */\nexport const FIRST_RUN_SCOPE_DATA_KEY = \"firstRunScope\";\nexport const FIRST_RUN_SCOPES = [\"work\", \"personal\", \"both\"] as const;\nexport type FirstRunScope = (typeof FIRST_RUN_SCOPES)[number];\n\n/** Narrow an untrusted wire value (a click payload's `firstRunScope`) to a scope. */\nexport function isFirstRunScope(value: unknown): value is FirstRunScope {\n return (FIRST_RUN_SCOPES as readonly unknown[]).includes(value);\n}\n","import {\n FIRST_RUN_SCOPE_DATA_KEY,\n type FirstRunScope,\n} from \"./first-run-scope\";\n\n/** Renders one choice option's wire fields (id + data payload) for the prompt. */\nfunction optionWire(scope: FirstRunScope): string {\n return `id \\`scope_${scope}\\`, \\`data: {\"${FIRST_RUN_SCOPE_DATA_KEY}\": \"${scope}\"}\\``;\n}\n\n/**\n * Hidden kickoff sent on the user's behalf when they hit \"Let's chat\" at the\n * end of the research-onboarding flow. It drives the assistant's first\n * reply but renders no user bubble, so the chat opens with the assistant\n * proactively greeting the user in the persona they just configured.\n *\n * The greeting turn is told not to read any files, so its only sources of\n * identity are the system prompt and this message. The chosen assistant name\n * rides the message itself as a backstop: if the personality rewrite timed\n * out or IDENTITY.md's name is still a placeholder when the turn's system\n * prompt is built, the model would otherwise invent a name for its very first\n * words to the user.\n *\n * The greeting ends with a scope question backed by a single `ui_show` choice\n * surface offering three clickable options (work / personal / both). The\n * `data` payloads come from `first-run-scope.ts` — they're the wire contract a\n * click-telemetry consumer matches on. The option ids are presentation-only\n * (`scope_<scope>`), derived here.\n */\nexport function buildLetsChatKickoffMessage(assistantName?: string): string {\n const name = assistantName?.trim();\n const nameLine = name\n ? `\\nYour name is ${name} — introduce yourself as ${name}.`\n : \"\";\n return `You're about to begin your first conversation.${nameLine}\nRespond with a warm and engaging greeting. Be interesting, be real. This is your chance to get to know and impress the user.\nEnd the greeting text with one short question asking where they'd like to start, phrased so nothing feels off the table (e.g. \"…or is there anything else on your mind entirely?\").\nThen call the \\`ui_show\\` tool exactly once: \\`surface_type: \"choice\"\\`, \\`data.selectionMode: \"single\"\\`, no \\`title\\` (or a very short one), and exactly three options in this order:\n1. ${optionWire(\"work\")} — a concrete offer grounded in their work or role from your Onboarding Context (occupation, daily tools, work-related research findings).\n2. ${optionWire(\"personal\")} — a concrete offer grounded in their hobbies, interests, or personal research findings.\n3. ${optionWire(\"both\")} — an \"all of the above\" invitation.\nAn option's title becomes the user's visible reply bubble when they tap it, so every title must read naturally in the user's voice — imperative or neutral, six words or fewer (e.g. \"Help me plan my next ride\", never \"I can plan your next ride\"). Titles only: never set \\`description\\` on any option — the three options must scan in a single glance, and your greeting text already carries the color.\nThese options are conversation starters, not a menu: never imply the user is limited to them, and your closing question itself must invite free-form answers.\nAfter the \\`ui_show\\` result comes back, stop — output no further text. If \\`ui_show\\` errors or is unavailable, just end with the text question alone; the user will type. Do not set \\`await_action\\` or \\`persistent\\`.\nKeep it short! For this opening greeting only, don't use \\`recall\\`, don't read any files, and make no tool calls other than that single \\`ui_show\\`. (This applies to the greeting alone; use your tools normally for everything the user asks afterward.)`;\n}\n","/**\n * Pre-chat onboarding context handoff.\n *\n * Structured context collected by the pre-chat onboarding flow, serialized to\n * JSON and forwarded with the first chat message so the assistant can\n * personalize its opener.\n *\n * Storage choice: `sessionStorage` rather than `localStorage`. The handoff\n * is meant to bridge a single tab navigation (onboarding screen → first\n * chat) and should naturally clear on tab close — a transient, session-scoped\n * value. Using `sessionStorage` also avoids leaking a stale context into\n * another window's chat if the user opens onboarding in two tabs concurrently.\n *\n * Storage-error handling matches the pattern in\n * `@/domains/onboarding/prefs` (e.g. `readSelectedVersion`): every read/write\n * is wrapped in `try/catch` so a disabled or quota-exceeded `sessionStorage`\n * degrades to \"no pending context\" instead of throwing into the caller.\n */\n\n/** Shape of the pre-chat onboarding payload. Mirrors the Swift model. */\nexport interface PreChatOnboardingContext {\n /** e.g. [\"slack\", \"linear\", \"figma\"] */\n tools: string[];\n /** e.g. [\"code-building\", \"writing\"] */\n tasks: string[];\n /** Personality group ID: \"grounded\" | \"warm\" | \"energetic\" | \"poetic\" */\n tone: string;\n /** Undefined if the user skipped the name step. */\n userName?: string;\n /** The user's role / occupation, e.g. \"Software Engineer\". Undefined if not collected. */\n occupation?: string;\n /** Undefined if the user kept the default assistant name. */\n assistantName?: string;\n /** e.g. [\"chatgpt\", \"openclaw\", \"hermes\"] */\n priorAssistants?: string[];\n /**\n * True when the user connected Google during the pre-chat onboarding\n * OAuth screen. Undefined/absent if the screen was not shown or the\n * user skipped.\n */\n googleConnected?: boolean;\n /**\n * OAuth scopes granted by the user when googleConnected is true.\n * Undefined when the user skipped Google connection.\n */\n googleScopes?: string[];\n /** GTM cohort identifier, e.g. \"content-automation\". */\n cohort?: string;\n /** Auto-send this message on first load instead of waiting for user input. */\n initialMessage?: string;\n /**\n * When true, the auto-sent `initialMessage` is sent hidden: it drives the\n * assistant's first reply but renders no user bubble, so the chat opens as a\n * proactive greeting in the persona the user just configured. Used by the\n * research-onboarding \"Let's chat\" handoff.\n */\n initialMessageHidden?: boolean;\n /** Bootstrap template filename for the daemon to use. */\n bootstrapTemplate?: string;\n /** Skills to eagerly load. */\n skills?: string[];\n /**\n * Research findings the user explicitly KEPT on the results screen\n * (removed/rejected claims excluded). The daemon writes them into the\n * persona's onboarding section so the first greeting — which is barred\n * from recall/file reads — can still reference something real about the\n * user.\n */\n researchFindings?: string[];\n /**\n * Explicit title for the conversation minted on the first message. When set,\n * the daemon persists it as a user-set title (never overwritten by the\n * auto-titler). Used by flows like research onboarding that mint a\n * conversation behind the scenes and don't want an auto-generated title.\n */\n title?: string;\n}\n\nexport const DEFAULT_PRECHAT_INITIAL_MESSAGE = \"Wake up, my friend!\";\n\n/**\n * Build the exact user message that ChatPage will auto-send after pre-chat.\n * The pending context is the source of truth for this value; downstream chat\n * code should send it as-is rather than reconstructing it from onboarding\n * fields.\n */\nexport function buildPreChatInitialMessage(\n ctx: Pick<PreChatOnboardingContext, \"assistantName\" | \"userName\">,\n): string {\n const assistant = ctx.assistantName?.trim();\n const user = ctx.userName?.trim();\n if (!assistant && !user) {\n return DEFAULT_PRECHAT_INITIAL_MESSAGE;\n }\n const hi = assistant ? `Hi ${assistant}` : \"Hi\";\n const intro = user ? `, I'm ${user}` : \"\";\n return `${hi}${intro}. Nice to meet you.`;\n}\n\n/**\n * Map of known tool IDs from the PreChat UI to the display names the daemon\n * writes into the persona file. Kept in sync with\n * `mycadet/assistant/src/prompts/normalize-onboarding.ts`.\n */\nexport const TOOL_DISPLAY_NAMES: Record<string, string> = {\n gmail: \"Gmail\",\n outlook: \"Outlook\",\n \"google-calendar\": \"Google Calendar\",\n slack: \"Slack\",\n notion: \"Notion\",\n linear: \"Linear\",\n jira: \"Jira\",\n github: \"GitHub\",\n figma: \"Figma\",\n \"google-drive\": \"Google Drive\",\n excel: \"Excel\",\n \"apple-notes\": \"Apple Notes\",\n};\n\n/**\n * Map of known task IDs to the plain-language labels the daemon persists.\n * Kept in sync with\n * `mycadet/assistant/src/prompts/normalize-onboarding.ts`.\n */\nexport const TASK_DISPLAY_LABELS: Record<string, string> = {\n \"code-building\": \"builds code, apps, or tools\",\n writing: \"writes docs, emails, or content\",\n research: \"does research and analysis\",\n \"project-management\": \"plans and coordinates work\",\n scheduling: \"handles meetings, calendar, and logistics\",\n personal: \"handles life admin\",\n};\n\nexport const PRIOR_ASSISTANT_DISPLAY_NAMES: Record<string, string> = {\n chatgpt: \"ChatGPT\",\n claude: \"Claude\",\n openclaw: \"OpenClaw\",\n hermes: \"Hermes\",\n manus: \"Manus\",\n gemini: \"Gemini\",\n copilot: \"Copilot\",\n};\n\nfunction capitalizeFirst(value: string): string {\n if (!value) {\n return value;\n }\n return value.charAt(0).toUpperCase() + value.slice(1);\n}\n\nexport function normalizePreChatTools(tools: string[]): string[] {\n return tools.map((id) => TOOL_DISPLAY_NAMES[id] ?? capitalizeFirst(id));\n}\n\nexport function normalizePreChatTasks(tasks: string[]): string[] {\n return tasks.map((id) => TASK_DISPLAY_LABELS[id] ?? id);\n}\n\nexport function normalizePreChatPriorAssistants(ids: string[]): string[] {\n return ids.map(\n (id) => PRIOR_ASSISTANT_DISPLAY_NAMES[id] ?? capitalizeFirst(id),\n );\n}\n\n/**\n * Convert raw PreChat IDs into the display-ready shape expected by the\n * daemon's onboarding contract. Optional names are preserved as-is so the wire\n * payload keeps the same undefined-vs-empty-string semantics as macOS.\n */\nexport function normalizePreChatOnboardingContext(\n ctx: PreChatOnboardingContext,\n): PreChatOnboardingContext {\n return {\n ...ctx,\n tools: normalizePreChatTools(ctx.tools),\n tasks: normalizePreChatTasks(ctx.tasks),\n priorAssistants: ctx.priorAssistants?.length\n ? normalizePreChatPriorAssistants(ctx.priorAssistants)\n : ctx.priorAssistants,\n };\n}\n\nexport interface PreChatOnboardingProfileFields {\n preferredName?: string;\n occupation?: string;\n commonWork: string[];\n dailyTools: string[];\n}\n\nexport function preChatOnboardingProfileFields(\n ctx: PreChatOnboardingContext,\n): PreChatOnboardingProfileFields {\n const normalized = normalizePreChatOnboardingContext(ctx);\n return {\n preferredName: normalized.userName?.trim() || undefined,\n occupation: normalized.occupation?.trim() || undefined,\n commonWork: normalized.tasks,\n dailyTools: normalized.tools,\n };\n}\n\n/**\n * `sessionStorage` key under which the pending context is stashed. Public\n * so callers/tests can reference the same key without re-declaring it.\n */\nexport const STORAGE_KEY = \"onboarding.prechat.pendingContext\";\n\n/**\n * SSR-safe accessor for `sessionStorage`. Reads `globalThis.sessionStorage`\n * directly rather than going through `window`, because in browsers\n * `window === globalThis` (so the storage is the same object) and in\n * tests we can install a shim on `globalThis.sessionStorage` without\n * having to fabricate a `window` global — fabricating `window` in\n * bun-test leaks across test files and breaks heyapi-client URL\n * construction in unrelated suites. Returns `null` when storage is\n * absent (Next.js server render) or when the property getter itself\n * throws (some privacy modes do that).\n */\nfunction getSessionStorage(): Storage | null {\n try {\n const storage = (globalThis as { sessionStorage?: Storage }).sessionStorage;\n return storage ?? null;\n } catch {\n return null;\n }\n}\n\n/**\n * Validate that an arbitrary parsed JSON value matches\n * `PreChatOnboardingContext`. We hand-roll this rather than trust the\n * stored JSON because the key is in user-writable storage and a malformed\n * payload should degrade gracefully (return `null`), not propagate as a\n * runtime type error into the chat opener.\n */\nfunction isPreChatOnboardingContext(\n value: unknown,\n): value is PreChatOnboardingContext {\n if (value === null || typeof value !== \"object\") {\n return false;\n }\n\n // After the object check, use `in` narrowing for required fields and a\n // single record view for optional-field checks (TypeScript doesn't support\n // `in` narrowing on dynamic/optional keys without this step).\n const candidate = value as Record<string, unknown>; // narrowed from `object`\n\n if (!Array.isArray(candidate.tools)) {\n return false;\n }\n if (!candidate.tools.every((t) => typeof t === \"string\")) {\n return false;\n }\n\n if (!Array.isArray(candidate.tasks)) {\n return false;\n }\n if (!candidate.tasks.every((t) => typeof t === \"string\")) {\n return false;\n }\n\n if (typeof candidate.tone !== \"string\") {\n return false;\n }\n\n if (\n candidate.userName !== undefined &&\n typeof candidate.userName !== \"string\"\n ) {\n return false;\n }\n if (\n candidate.occupation !== undefined &&\n typeof candidate.occupation !== \"string\"\n ) {\n return false;\n }\n if (\n candidate.assistantName !== undefined &&\n typeof candidate.assistantName !== \"string\"\n ) {\n return false;\n }\n if (\n candidate.googleConnected !== undefined &&\n typeof candidate.googleConnected !== \"boolean\"\n ) {\n return false;\n }\n if (candidate.googleScopes !== undefined) {\n if (!Array.isArray(candidate.googleScopes)) {\n return false;\n }\n if (!candidate.googleScopes.every((s) => typeof s === \"string\")) {\n return false;\n }\n }\n if (candidate.priorAssistants !== undefined) {\n if (!Array.isArray(candidate.priorAssistants)) {\n return false;\n }\n if (!candidate.priorAssistants.every((s) => typeof s === \"string\")) {\n return false;\n }\n }\n if (candidate.cohort !== undefined && typeof candidate.cohort !== \"string\") {\n return false;\n }\n if (\n candidate.initialMessage !== undefined &&\n typeof candidate.initialMessage !== \"string\"\n ) {\n return false;\n }\n if (\n candidate.initialMessageHidden !== undefined &&\n typeof candidate.initialMessageHidden !== \"boolean\"\n ) {\n return false;\n }\n if (\n candidate.bootstrapTemplate !== undefined &&\n typeof candidate.bootstrapTemplate !== \"string\"\n ) {\n return false;\n }\n if (candidate.skills !== undefined) {\n if (!Array.isArray(candidate.skills)) {\n return false;\n }\n if (!candidate.skills.every((s) => typeof s === \"string\")) {\n return false;\n }\n }\n if (candidate.title !== undefined && typeof candidate.title !== \"string\") {\n return false;\n }\n return true;\n}\n\n/**\n * Persist a pre-chat onboarding context for the next chat surface to\n * consume. Swallows storage errors (disabled storage, quota exceeded,\n * private browsing) so the caller — typically the final onboarding step's\n * \"continue\" handler — never throws on storage failure. A dropped write\n * just means the chat opener will fall back to its un-personalized\n * default, which is the right degraded behavior.\n */\nexport function setPendingPreChatContext(ctx: PreChatOnboardingContext): void {\n const storage = getSessionStorage();\n if (storage === null) {\n return;\n }\n try {\n // Clear any prior value first so a failed `setItem` (quota exceeded,\n // private mode, etc.) leaves storage empty rather than holding the\n // previous context — otherwise `consumePendingPreChatContext()` could\n // replay stale onboarding data after the new write was supposed to\n // overwrite it.\n storage.removeItem(STORAGE_KEY);\n storage.setItem(STORAGE_KEY, JSON.stringify(ctx));\n } catch {\n // Storage unavailable / quota exceeded — degrade silently.\n }\n}\n\n/**\n * Read and remove the pending pre-chat onboarding context. Consume-once\n * semantics: after a successful read the key is cleared so a refresh of\n * the chat surface doesn't replay the personalization. Returns `null`\n * when:\n * - running on the server,\n * - storage is disabled / inaccessible,\n * - the key is absent,\n * - the stored value is malformed JSON, or\n * - the parsed value doesn't match the expected shape.\n *\n * Idempotent on the empty path: calling it twice without a matching set\n * returns `null` both times.\n */\nexport function consumePendingPreChatContext(): PreChatOnboardingContext | null {\n const storage = getSessionStorage();\n if (storage === null) {\n return null;\n }\n\n let raw: string | null;\n try {\n raw = storage.getItem(STORAGE_KEY);\n } catch {\n return null;\n }\n if (raw === null) {\n return null;\n }\n\n // Always clear on read, even if parsing/validation fails below: a\n // malformed payload is unrecoverable, so leaving it in storage just\n // wastes a slot and risks repeated parse failures.\n try {\n storage.removeItem(STORAGE_KEY);\n } catch {\n // Best-effort; continue to attempt parsing the value we already read.\n }\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch {\n return null;\n }\n\n if (!isPreChatOnboardingContext(parsed)) {\n return null;\n }\n return parsed;\n}\n\n/**\n * Drop any pending pre-chat onboarding context without consuming it.\n * Used when the onboarding flow is abandoned (e.g. user navigates back\n * out of the pre-chat steps) so a stale payload from the previous attempt\n * can't leak into a future chat.\n */\nexport function clearPendingPreChatContext(): void {\n const storage = getSessionStorage();\n if (storage === null) {\n return;\n }\n try {\n storage.removeItem(STORAGE_KEY);\n } catch {\n // Storage unavailable — nothing to clear.\n }\n}\n\n// ---------------------------------------------------------------------------\n// Optimistic assistant-name handoff\n//\n// The user-chosen assistant name lives in the full PreChatOnboardingContext\n// above, but that key is consumed on first send and is gone before the chat\n// surface mounts. A separate, lighter key carries just the name so the\n// sidebar can show it immediately on first render — no identity-fetch\n// round-trip required. The daemon writes IDENTITY.md during the first\n// message and the real fetchAssistantIdentity overwrites once it returns.\n// ---------------------------------------------------------------------------\n\n/** Storage key for the optimistic assistant-name hint. */\nexport const ASSISTANT_NAME_KEY = \"onboarding.prechat.assistantName\";\n\n/**\n * Persist the user-chosen assistant name so the chat sidebar can display\n * it immediately on mount before `fetchAssistantIdentity` resolves.\n * No-op when `name` is blank or storage is unavailable.\n */\nexport function setPendingAssistantName(name: string): void {\n const trimmed = name.trim();\n if (!trimmed) {\n return;\n }\n const storage = getSessionStorage();\n if (storage === null) {\n return;\n }\n try {\n storage.setItem(ASSISTANT_NAME_KEY, trimmed);\n } catch {\n // Storage unavailable — degrade silently.\n }\n}\n\n/**\n * Read and remove the pending assistant-name hint. Consume-once: clears\n * the key on first read so a page refresh doesn't preserve the optimistic\n * value after the real identity has loaded. Returns `null` when absent,\n * storage-disabled, or running server-side.\n */\nexport function consumePendingAssistantName(): string | null {\n const storage = getSessionStorage();\n if (storage === null) {\n return null;\n }\n try {\n const value = storage.getItem(ASSISTANT_NAME_KEY);\n storage.removeItem(ASSISTANT_NAME_KEY);\n return typeof value === \"string\" && value.length > 0 ? value : null;\n } catch {\n return null;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Peek at pre-chat context (non-destructive)\n// ---------------------------------------------------------------------------\n\n/**\n * Read the pending pre-chat onboarding context without removing it.\n * Used by ChatPage to check for an `initialMessage` before the context\n * is consumed during the first send.\n */\nexport function peekPendingPreChatContext(): PreChatOnboardingContext | null {\n const storage = getSessionStorage();\n if (storage === null) {\n return null;\n }\n\n let raw: string | null;\n try {\n raw = storage.getItem(STORAGE_KEY);\n } catch {\n return null;\n }\n if (raw === null) {\n return null;\n }\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch {\n return null;\n }\n\n if (!isPreChatOnboardingContext(parsed)) {\n return null;\n }\n return parsed;\n}\n","/**\n * Typed localStorage factory utilities.\n *\n * Provides `createStorageAccessor` for static-key storage and\n * `createKeyedStorageAccessor` for per-entity keyed storage (e.g.,\n * per-assistant). Both return type-safe `load`/`save`/`remove` plus\n * a `useValue` React hook via `useSyncExternalStore`.\n *\n * Built on `local-settings.ts` for consistent SSR guards, error\n * swallowing, and same-tab change notifications.\n *\n * References:\n * - {@link https://react.dev/reference/react/useSyncExternalStore}\n * - {@link https://zustand.docs.pmnd.rs/integrations/persisting-store-data}\n */\n\nimport { useCallback, useSyncExternalStore } from \"react\";\n\nimport {\n notifySettingChange,\n removeLocalSetting,\n setLocalSetting,\n watchSetting,\n} from \"./local-settings\";\n\n// ---------------------------------------------------------------------------\n// Types\n// ---------------------------------------------------------------------------\n\n/** Cleanup scope determines behavior on logout. */\nexport type StorageScope = \"user\" | \"device\";\n\nexport interface StorageAccessorConfig<T> {\n /** The full localStorage key (must include prefix, e.g. `cadet:pinnedApps`). */\n key: string;\n /** `user` keys are cleared on logout; `device` keys are preserved. */\n scope: StorageScope;\n /** Deserialize the raw string into a typed value. Return `null` for invalid data. */\n parse: (raw: string) => T | null;\n /** Serialize the typed value to a string for storage. */\n serialize: (value: T) => string;\n /** Value returned when the key is absent, unreadable, or fails validation. */\n fallback: T;\n}\n\nexport interface StorageAccessor<T> {\n /** Read the current value from localStorage. Returns `fallback` on any error. */\n load: () => T;\n /** Write a value to localStorage. Fires same-tab change notifications. */\n save: (value: T) => void;\n /** Remove the key from localStorage. Fires same-tab change notifications. */\n remove: () => void;\n /** The localStorage key (useful for cleanup/testing). */\n key: string;\n /** The declared scope. */\n scope: StorageScope;\n /**\n * Call `onChange` whenever this key changes, in this tab or another, and\n * return an unsubscribe. The imperative form of {@link StorageAccessor.useValue},\n * for the readers that are not components: a module-level store that mirrors\n * a key has to follow it, or it only ever learns about its own writes.\n *\n * Prefer this to reaching for `watchSetting` with {@link StorageAccessor.key},\n * which spreads the key to callers that would then have to keep it in step.\n */\n subscribe: (onChange: () => void) => () => void;\n /**\n * React hook that subscribes to storage changes via `useSyncExternalStore`.\n * Concurrent-rendering-safe, no initial null→value flicker.\n */\n useValue: () => T;\n}\n\n/** Config for per-entity keyed storage. */\nexport interface KeyedStorageAccessorConfig<T> {\n /** Builds the localStorage key from an entity ID (e.g., assistantId). */\n keyFn: (id: string) => string;\n /** `user` keys are cleared on logout; `device` keys are preserved. */\n scope: StorageScope;\n /** Deserialize the raw string into a typed value. Return `null` for invalid data. */\n parse: (raw: string) => T | null;\n /** Serialize the typed value to a string for storage. */\n serialize: (value: T) => string;\n /** Value returned when the key is absent, unreadable, or fails validation. */\n fallback: T;\n}\n\nexport interface KeyedStorageAccessor<T> {\n /** Read the current value for a given entity ID. Returns `fallback` on any error. */\n load: (id: string) => T;\n /** Write a value for a given entity ID. */\n save: (id: string, value: T) => void;\n /** Remove the key for a given entity ID. */\n remove: (id: string) => void;\n /** Build the localStorage key for a given entity ID. */\n keyFn: (id: string) => string;\n /** The declared scope. */\n scope: StorageScope;\n /**\n * React hook that subscribes to changes for one entity's key.\n * Concurrent-rendering-safe, and reads during render rather than in an\n * effect, so the first paint already carries the stored value instead of\n * the fallback.\n */\n useValue: (id: string) => T;\n}\n\n// ---------------------------------------------------------------------------\n// Internal helpers\n// ---------------------------------------------------------------------------\n\nfunction readRaw(key: string): string | null {\n if (typeof window === \"undefined\") {\n return null;\n }\n try {\n return localStorage.getItem(key);\n } catch {\n return null;\n }\n}\n\n/**\n * Session-scoped holding area for values storage refuses to take.\n *\n * `localStorage.setItem` throws in private browsing, under a policy that\n * disables storage, and on quota exhaustion. The write is best-effort and\n * fails soft, which is right for persistence but wrong for display: a value\n * read back through `useValue` would keep reporting the previous state, so a\n * control bound to it looks broken rather than merely unsaved.\n *\n * Holding the rejected value in memory and announcing it anyway keeps the\n * control honest. The choice applies for the session and is absent on the next\n * load, which is the most any storage-backed value can offer on a device that\n * rejects writes.\n *\n * An entry lives only until a write for the same id succeeds, so a browser\n * that recovers (the user leaves private browsing, quota frees up) goes back\n * to reading straight from storage.\n */\nfunction createOverrides<T>(scope: StorageScope) {\n const overrides = new Map<string, T>();\n const store = {\n has: (id: string) => overrides.has(id),\n get: (id: string) => overrides.get(id) as T,\n drop: (id: string) => overrides.delete(id),\n scope,\n clear: () => overrides.clear(),\n /** Write through to storage, holding the value in memory if it bounces. */\n write(id: string, key: string, value: T, serialized: string): void {\n // Drop first. `setLocalSetting` notifies synchronously on success, and a\n // subscriber reading its snapshot during that dispatch would see the\n // held value, match its previous snapshot, and skip the re-render. No\n // second notification follows a deletion, so the control would sit on\n // the superseded value until an unrelated render moved it.\n overrides.delete(id);\n if (setLocalSetting(key, serialized)) {\n return;\n }\n overrides.set(id, value);\n notifySettingChange(key, serialized);\n },\n };\n overrideStores.push(store);\n return store;\n}\n\n/**\n * Every override map, so logout can reach the user-scoped ones.\n *\n * Accessors are module-level singletons created at import time, so this grows\n * once per accessor and never shrinks.\n */\nconst overrideStores: { scope: StorageScope; clear: () => void }[] = [];\n\n/**\n * Drop every user-scoped value held in memory on behalf of a rejected write.\n *\n * These values live outside `localStorage`, so the logout sweep cannot see\n * them: it removes keys, and a held value is precisely the one that never\n * became a key. Without this, a preference set on a device that refuses writes\n * would outlive the session that set it and be read by whoever logs in next in\n * the same tab.\n *\n * Device-scoped values are left alone. `device:` keys survive logout by\n * design, so dropping their in-memory counterparts would make a rejected write\n * the one case where a device preference does not.\n */\nexport function clearUserScopedOverrides(): void {\n for (const store of overrideStores) {\n if (store.scope === \"user\") {\n store.clear();\n }\n }\n}\n\n/** The single entity id a static-key accessor stores its override under. */\nconst STATIC_ID = \"\";\n\n/**\n * Per-entity snapshot cache for `useValue`, keyed by entity ID.\n *\n * `useSyncExternalStore` calls `getSnapshot` on every render and bails out\n * only when the result is reference-equal, so a non-primitive `T` reparsed\n * each call would re-render forever. Caching on the raw string keeps the\n * reference stable while the stored text is unchanged, and self-heals when\n * it isn't. This is the same contract `createStorageAccessor` implements for\n * the static case.\n *\n * Deliberately not shared with `load`. `load` returns a freshly parsed value\n * that callers may mutate; handing them the cached instance would corrupt\n * every subscriber's snapshot.\n */\nfunction createSnapshotCache<T>(\n read: (id: string) => string | null,\n parseOrFallback: (raw: string | null) => T,\n) {\n const cache = new Map<string, { raw: string | null; value: T }>();\n return function snapshot(id: string): T {\n const raw = read(id);\n const cached = cache.get(id);\n if (cached !== undefined && cached.raw === raw) {\n return cached.value;\n }\n const value = parseOrFallback(raw);\n cache.set(id, { raw, value });\n return value;\n };\n}\n\n// ---------------------------------------------------------------------------\n// Shared parsers\n// ---------------------------------------------------------------------------\n\n/** Strict `parse` for boolean accessors: only \"true\"/\"false\" are valid. */\nexport function parseBool(raw: string): boolean | null {\n if (raw === \"true\") {\n return true;\n }\n if (raw === \"false\") {\n return false;\n }\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// Static-key accessor\n// ---------------------------------------------------------------------------\n\n/**\n * Create a type-safe localStorage accessor for a single key.\n *\n * Export one accessor per key from a shared module; don't re-create at\n * the call site (snapshot caching is per-instance).\n *\n * @example\n * ```ts\n * // utils/pinned-apps-storage.ts\n * export const pinnedApps = createStorageAccessor<PinnedAppEntry[]>({\n * key: \"cadet:pinnedApps\",\n * scope: \"user\",\n * parse: parsePinnedApps,\n * serialize: JSON.stringify,\n * fallback: [],\n * });\n *\n * // Imperative\n * const apps = pinnedApps.load();\n * pinnedApps.save([...apps, newApp]);\n *\n * // React component\n * function PinCount() {\n * const apps = pinnedApps.useValue();\n * return <span>{apps.length}</span>;\n * }\n * ```\n */\nexport function createStorageAccessor<T>(\n config: StorageAccessorConfig<T>,\n): StorageAccessor<T> {\n const { key, scope, parse, serialize, fallback } = config;\n\n // Cache the last raw string and parsed result so that `getSnapshot`\n // returns the same object reference when the underlying data hasn't\n // changed. Without this, `useSyncExternalStore` would see a new\n // reference on every render call for non-primitive T (arrays, objects)\n // and re-render indefinitely.\n let cachedRaw: string | null | undefined;\n let cachedValue: T = fallback;\n const overrides = createOverrides<T>(scope);\n\n function load(): T {\n if (overrides.has(STATIC_ID)) {\n return overrides.get(STATIC_ID);\n }\n const raw = readRaw(key);\n if (raw === cachedRaw) {\n return cachedValue;\n }\n cachedRaw = raw;\n if (raw === null) {\n cachedValue = fallback;\n return fallback;\n }\n try {\n const parsed = parse(raw);\n cachedValue = parsed !== null ? parsed : fallback;\n } catch {\n cachedValue = fallback;\n }\n return cachedValue;\n }\n\n function save(value: T): void {\n overrides.write(STATIC_ID, key, value, serialize(value));\n }\n\n function remove(): void {\n overrides.drop(STATIC_ID);\n removeLocalSetting(key);\n }\n\n function subscribe(onStoreChange: () => void): () => void {\n return watchSetting(key, onStoreChange);\n }\n\n function getSnapshot(): T {\n return load();\n }\n\n function getServerSnapshot(): T {\n return fallback;\n }\n\n function useValue(): T {\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n }\n\n return { load, save, remove, key, scope, subscribe, useValue };\n}\n\n// ---------------------------------------------------------------------------\n// Per-entity keyed accessor\n// ---------------------------------------------------------------------------\n\n/**\n * Create a type-safe localStorage accessor for per-entity keyed storage.\n *\n * Each entity ID maps to its own localStorage key via `keyFn`. For\n * record-based storage with entry-level CRUD and `maxEntries` trimming,\n * use `createRecordStorageAccessor` instead.\n *\n * @example\n * ```ts\n * const drafts = createKeyedStorageAccessor<DraftState>({\n * keyFn: (id) => `cadet:chatDrafts:${id}`,\n * scope: \"user\",\n * parse: parseDraftState,\n * serialize: JSON.stringify,\n * fallback: { text: \"\", attachments: [] },\n * });\n *\n * const draft = drafts.load(assistantId);\n * drafts.save(assistantId, { text: \"hello\", attachments: [] });\n * ```\n */\nexport function createKeyedStorageAccessor<T>(\n config: KeyedStorageAccessorConfig<T>,\n): KeyedStorageAccessor<T> {\n const { keyFn, scope, parse, serialize, fallback } = config;\n\n function parseOrFallback(raw: string | null): T {\n if (raw === null) {\n return fallback;\n }\n try {\n const parsed = parse(raw);\n return parsed !== null ? parsed : fallback;\n } catch {\n return fallback;\n }\n }\n\n const overrides = createOverrides<T>(scope);\n\n function load(id: string): T {\n if (overrides.has(id)) {\n return overrides.get(id);\n }\n return parseOrFallback(readRaw(keyFn(id)));\n }\n\n function save(id: string, value: T): void {\n overrides.write(id, keyFn(id), value, serialize(value));\n }\n\n function remove(id: string): void {\n overrides.drop(id);\n removeLocalSetting(keyFn(id));\n }\n\n const cachedSnapshot = createSnapshotCache<T>(\n (id) => readRaw(keyFn(id)),\n parseOrFallback,\n );\n\n function snapshot(id: string): T {\n return overrides.has(id) ? overrides.get(id) : cachedSnapshot(id);\n }\n\n function useValue(id: string): T {\n // Both callbacks are keyed on `id`: a changed entity must resubscribe to\n // the new key, or the hook would keep watching the previous one.\n const subscribe = useCallback(\n (onStoreChange: () => void) => watchSetting(keyFn(id), onStoreChange),\n [id],\n );\n const getSnapshot = useCallback(() => snapshot(id), [id]);\n return useSyncExternalStore(subscribe, getSnapshot, () => fallback);\n }\n\n return { load, save, remove, keyFn, scope, useValue };\n}\n\n// ---------------------------------------------------------------------------\n// Record-based keyed accessor (for per-assistant Maps stored as objects)\n// ---------------------------------------------------------------------------\n\nexport interface RecordStorageAccessorConfig<V> {\n /** Builds the localStorage key from an entity ID. */\n keyFn: (id: string) => string;\n /** `user` keys are cleared on logout; `device` keys are preserved. */\n scope: StorageScope;\n /** Validate a single record value entry. Return `null` for invalid data. */\n parseValue: (raw: unknown) => V | null;\n /** Value returned when the key is absent or unparseable. */\n fallback: Record<string, V>;\n /**\n * Max entries to retain. Oldest are dropped on save by Object insertion\n * order. Only works correctly with non-numeric string keys (numeric keys\n * sort first per ES2015 spec, breaking oldest-first semantics).\n */\n maxEntries?: number;\n}\n\nexport interface RecordStorageAccessor<V> {\n /** Load the full record for an entity. Returns a fresh object each call; safe to mutate. */\n load: (id: string) => Record<string, V>;\n /** Get a single entry from the record. */\n get: (id: string, entryKey: string) => V | undefined;\n /** Set a single entry in the record (merge, not overwrite). */\n set: (id: string, entryKey: string, value: V) => void;\n /** Remove a single entry from the record. */\n deleteEntry: (id: string, entryKey: string) => void;\n /** Remove the entire record for an entity. */\n remove: (id: string) => void;\n /** Build the localStorage key for a given entity ID. */\n keyFn: (id: string) => string;\n /** The declared scope. */\n scope: StorageScope;\n /**\n * React hook that subscribes to one entity's record. Returns the same\n * reference while the stored text is unchanged, so it is safe to depend on\n * but for that reason the result must be treated as read-only. Use\n * {@link RecordStorageAccessor.load} when you need a mutable copy.\n */\n useValue: (id: string) => Record<string, V>;\n}\n\n/**\n * Create a record-based (Map-like) storage accessor for per-entity data.\n *\n * Stores a `Record<string, V>` per entity. Supports `maxEntries` trimming\n * for bounded storage (oldest entries dropped first by insertion order).\n *\n * @example\n * ```ts\n * const ctxWindow = createRecordStorageAccessor<ContextWindowUsage>({\n * keyFn: (id) => `cadet:ctxwindow:${id}`,\n * scope: \"user\",\n * parseValue: validateUsage,\n * fallback: {},\n * maxEntries: 200,\n * });\n *\n * const usage = ctxWindow.get(assistantId, conversationId);\n * ctxWindow.set(assistantId, conversationId, newUsage);\n * ```\n */\nexport function createRecordStorageAccessor<V>(\n config: RecordStorageAccessorConfig<V>,\n): RecordStorageAccessor<V> {\n const { keyFn, scope, parseValue, fallback, maxEntries } = config;\n\n function parseRecord(raw: string): Record<string, V> | null {\n try {\n const parsed: unknown = JSON.parse(raw);\n if (!parsed || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n return null;\n }\n const result: Record<string, V> = {};\n for (const [k, v] of Object.entries(parsed as Record<string, unknown>)) {\n const validated = parseValue(v);\n if (validated !== null) {\n result[k] = validated;\n }\n }\n return result;\n } catch {\n return null;\n }\n }\n\n const overrides = createOverrides<Record<string, V>>(scope);\n\n function persist(id: string, record: Record<string, V>): void {\n overrides.write(id, keyFn(id), record, JSON.stringify(record));\n }\n\n function load(id: string): Record<string, V> {\n if (overrides.has(id)) {\n return { ...overrides.get(id) };\n }\n const raw = readRaw(keyFn(id));\n if (raw === null) {\n return { ...fallback };\n }\n return parseRecord(raw) ?? { ...fallback };\n }\n\n function get(id: string, entryKey: string): V | undefined {\n return load(id)[entryKey];\n }\n\n function set(id: string, entryKey: string, value: V): void {\n const existing = load(id);\n existing[entryKey] = value;\n\n if (maxEntries !== undefined) {\n const entries = Object.entries(existing);\n if (entries.length > maxEntries) {\n const trimmed = entries.slice(entries.length - maxEntries);\n const trimmedRecord: Record<string, V> = {};\n for (const [k, v] of trimmed) {\n trimmedRecord[k] = v;\n }\n persist(id, trimmedRecord);\n return;\n }\n }\n\n persist(id, existing);\n }\n\n function deleteEntry(id: string, entryKey: string): void {\n const existing = load(id);\n delete existing[entryKey];\n persist(id, existing);\n }\n\n function remove(id: string): void {\n overrides.drop(id);\n removeLocalSetting(keyFn(id));\n }\n\n const cachedSnapshot = createSnapshotCache<Record<string, V>>(\n (id) => readRaw(keyFn(id)),\n (raw) => (raw === null ? fallback : (parseRecord(raw) ?? fallback)),\n );\n\n function snapshot(id: string): Record<string, V> {\n return overrides.has(id) ? overrides.get(id) : cachedSnapshot(id);\n }\n\n function useValue(id: string): Record<string, V> {\n const subscribe = useCallback(\n (onStoreChange: () => void) => watchSetting(keyFn(id), onStoreChange),\n [id],\n );\n const getSnapshot = useCallback(() => snapshot(id), [id]);\n return useSyncExternalStore(subscribe, getSnapshot, () => fallback);\n }\n\n return { load, get, set, deleteEntry, remove, keyFn, scope, useValue };\n}\n","/**\n * Durable per-assistant record of \"this assistant finished first-run\n * onboarding\", stamped where the research/personality funnel terminates.\n *\n * Device-scoped on purpose. Onboarding completion is a property of the\n * assistant, not of the session, so it must survive the logout sweep in\n * `lib/auth/session-cleanup.ts`, which deletes every `cadet:`-prefixed key.\n *\n * Deliberately depends on nothing but `typed-storage`: the resolved-assistants\n * store reads this module, so pulling `local-mode` in here would drag the\n * lockfile transport into the store's import graph. Hatch call sites guard the\n * dead-hatch (null id) case themselves rather than routing through a wrapper.\n */\n\nimport { createStorageAccessor } from \"@app/utils/typed-storage\";\n\n/** assistantId -> ISO timestamp of the completion. */\ntype OnboardedRecord = Record<string, string>;\n\nfunction parseRecord(raw: string): OnboardedRecord | null {\n const parsed: unknown = JSON.parse(raw);\n if (!parsed || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n return null;\n }\n const result: OnboardedRecord = {};\n for (const [id, value] of Object.entries(parsed as Record<string, unknown>)) {\n if (typeof value === \"string\" && value) {\n result[id] = value;\n }\n }\n return result;\n}\n\nconst storage = createStorageAccessor<OnboardedRecord>({\n key: \"device:onboarded_assistants\",\n scope: \"device\",\n parse: parseRecord,\n serialize: JSON.stringify,\n fallback: {},\n});\n\n/** ISO completion timestamp for `assistantId`, or undefined when unstamped. */\nexport function readOnboardedAt(assistantId: string): string | undefined {\n return storage.load()[assistantId];\n}\n\n/**\n * Stamp `assistantId` as onboarded. Idempotent: an existing stamp is kept, so\n * a replayed funnel never rewrites the original completion time.\n */\nexport function markAssistantOnboarded(\n assistantId: string,\n at: string = new Date().toISOString(),\n): void {\n const record = storage.load();\n if (record[assistantId]) {\n return;\n }\n storage.save({ ...record, [assistantId]: at });\n}\n\n/** Drop the stamp, so a retired id is not pre-marked if it is ever reused. */\nexport function forgetAssistantOnboarded(assistantId: string): void {\n const record = storage.load();\n if (!(assistantId in record)) {\n return;\n }\n const { [assistantId]: _removed, ...rest } = record;\n storage.save(rest);\n}\n\n/** Test seam: the underlying localStorage key. */\nexport const ONBOARDED_ASSISTANTS_STORAGE_KEY = storage.key;\n","import { useMediaQuery } from \"@app/hooks/use-media-query\";\n\n/**\n * Media query that marks viewports narrow enough to swap a sidebar rail\n * for an overlay drawer. Mirrors `SidebarPageLayout`'s `md:` breakpoint\n * (768px).\n */\nexport const MOBILE_MEDIA_QUERY = \"(max-width: 767px)\";\n\n/**\n * Returns `true` while the viewport matches `MOBILE_MEDIA_QUERY`\n * (`max-width: 767px`).\n *\n * This is the window-size axis: how much room there is. It says nothing about\n * the pointer, so a desktop window narrowed below the breakpoint still has a\n * mouse. Interaction decisions (which overlay a trigger opens, whether a\n * hover affordance can exist) belong to `useTouchMobile()`. See\n * `docs/CLOUD_ADAPTATION.md`.\n */\nexport function useIsMobile(): boolean {\n return useMediaQuery(MOBILE_MEDIA_QUERY);\n}\n","/**\n * Layout generator for the welcome screen's avatar wave.\n *\n * A ribbon is a centerline of control points, each carrying the ribbon's\n * width and the avatar size at that point. Walking it with arc-length steps\n * and laying a row of avatars across the perpendicular at each step packs a\n * crowd that flows along the path and grows toward its tail.\n *\n * Everything is deterministic for a given seed so a re-layout (resize,\n * orientation change) reproduces the same composition instead of reshuffling\n * the crowd under the user.\n */\n\n/** Centerline control point: position, ribbon width, and avatar size here. */\nexport interface RibbonPoint {\n x: number;\n y: number;\n w: number;\n s: number;\n}\n\n/** One placed avatar in design coordinates (center point). */\nexport interface WaveItem {\n x: number;\n y: number;\n size: number;\n rotate: number;\n}\n\n/**\n * Centerline control point authored relative to the box the ribbon fills,\n * rather than in a fixed design box scaled to cover it.\n *\n * A ribbon that has to hold a composition against the content on top of it\n * (clearing a heading, returning below a pair of buttons) can't be authored\n * once and scaled: covering a shorter viewport pushes the head off the top,\n * and containing a wider one pulls the loop's excursion back on screen, which\n * is the one part that has to stay off it. Expressing each point against the\n * box keeps both ends anchored at any aspect ratio.\n *\n * The two axes are deliberately measured against different sides. `fx`/`fw`\n * are widths, so the crowd spans the box and the loop leaves it whichever way\n * the box is proportioned; `fy`/`fs` are heights, so the avatars keep their\n * size relative to the run of screen they have to fill.\n */\nexport interface RelativeRibbonPoint {\n /** Centerline x, as a fraction of the box width. Outside 0-1 is off screen. */\n fx: number;\n /** Centerline y, as a fraction of the box height. */\n fy: number;\n /** Ribbon width, as a fraction of the box width. */\n fw: number;\n /** Avatar size here, as a fraction of {@link ribbonSizingHeight}. */\n fs: number;\n}\n\n/**\n * Least ratio of height to width a relative ribbon will size its avatars\n * against. Portrait phones run from about 1.7 to 2.2, so this only bites on\n * a box far wider than the composition was authored for.\n */\nconst MIN_SIZE_ASPECT = 1.3;\n\n/**\n * The height a relative ribbon sizes its avatars against, which is the box's\n * own height until the box gets wide for its height.\n *\n * Size follows the height because that is the axis the composition is\n * authored against, but a row holds `w / s` avatars and `w` follows the\n * width, so the count in one row goes as width over height and the number of\n * rows goes as height over size. Together the whole crowd grows with the\n * box's area over its size squared: hand the same ribbon a box twice as wide\n * for its height and it packs several times the avatars, each one smaller,\n * and every one of them is simulated and drawn again on every frame. Holding\n * the sizing height to the box's aspect scales a wide box's avatars up\n * instead of multiplying them, which keeps the crowd's cost flat.\n */\nexport function ribbonSizingHeight(width: number, height: number): number {\n return Math.max(height, width * MIN_SIZE_ASPECT);\n}\n\n/**\n * Resolve a relative ribbon against a box, in pixels. The result feeds\n * {@link buildRibbonWave} directly, so the placements come back in the same\n * pixels and need no further scaling.\n */\nexport function resolveRibbon(\n points: RelativeRibbonPoint[],\n width: number,\n height: number,\n): RibbonPoint[] {\n const sizingHeight = ribbonSizingHeight(width, height);\n return points.map((p) => ({\n x: p.fx * width,\n y: p.fy * height,\n w: p.fw * width,\n s: p.fs * sizingHeight,\n }));\n}\n\n/** mulberry32 — small deterministic PRNG for layout jitter. */\nexport function mulberry32(seed: number): () => number {\n let state = seed;\n return () => {\n state |= 0;\n state = (state + 0x6d2b79f5) | 0;\n let t = Math.imul(state ^ (state >>> 15), 1 | state);\n t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n };\n}\n\n/**\n * Pack avatars along `ribbon`. Push order follows the path, so callers can\n * use the index as the reveal order and get a head-to-tail pour.\n *\n * `maxSize` caps the post-jitter avatar size so a ribbon can keep widening\n * toward its tail without any single avatar outgrowing its container.\n */\nexport function buildRibbonWave(\n ribbon: RibbonPoint[],\n seed: number,\n maxSize = Infinity,\n): WaveItem[] {\n const rng = mulberry32(seed);\n const jitter = (amount: number) => (rng() * 2 - 1) * amount;\n const items: WaveItem[] = [];\n\n for (let seg = 0; seg < ribbon.length - 1; seg++) {\n const a = ribbon[seg];\n const b = ribbon[seg + 1];\n if (!a || !b) {\n continue;\n }\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const len = Math.hypot(dx, dy);\n if (len === 0) {\n continue;\n }\n const perpX = dy / len;\n const perpY = -dx / len;\n\n let dist = 0;\n let row = 0;\n while (dist < len) {\n const t = dist / len;\n const cx = a.x + dx * t;\n const cy = a.y + dy * t;\n const width = a.w + (b.w - a.w) * t;\n const size = a.s + (b.s - a.s) * t;\n\n const count = Math.max(1, Math.round(width / (size * 0.95)));\n const spacing = width / count;\n // Alternate rows shift half a slot across the ribbon so the packing\n // nests organically instead of forming parallel strands.\n const rowShift = row % 2 === 0 ? 0 : spacing * 0.5;\n for (let k = 0; k < count; k++) {\n const offset =\n (k - (count - 1) / 2) * spacing + rowShift + jitter(size * 0.12);\n items.push({\n x: cx + perpX * offset + jitter(size * 0.08),\n y: cy + perpY * offset + jitter(size * 0.08),\n size: Math.min(maxSize, size * (0.85 + rng() * 0.3)),\n rotate: jitter(10),\n });\n }\n dist += size * 0.85 + 4;\n row++;\n }\n }\n\n return items;\n}\n","/**\n * Rasterizes one bundled character to an offscreen canvas, for the canvas\n * crowds (the welcome screen's wave, the upgrade takeover's stream) that draw\n * dozens of characters per frame: one rasterization per character, then a\n * `drawImage` each, is what lets a whole crowd run at frame rate.\n */\nimport type { CharacterComponents } from \"@app/types/avatar\";\n\n/**\n * Draw one character to an offscreen canvas at its final size. Rasterizing\n * once per character keeps the per-frame cost to a `drawImage` each, which\n * is what lets the whole crowd run at frame rate.\n */\nexport function renderAvatarSprite(\n components: CharacterComponents,\n bodyIdx: number,\n eyeIdx: number,\n colorIdx: number,\n px: number,\n): HTMLCanvasElement | null {\n const body = components.bodyShapes[bodyIdx];\n const eye = components.eyeStyles[eyeIdx];\n const color = components.colors[colorIdx];\n if (!body || !eye || !color) {\n return null;\n }\n\n const dpr = Math.min(2, window.devicePixelRatio || 1);\n const sprite = document.createElement(\"canvas\");\n sprite.width = Math.max(2, Math.ceil(px * dpr));\n sprite.height = sprite.width;\n const ctx = sprite.getContext(\"2d\");\n if (!ctx) {\n return null;\n }\n ctx.scale(dpr, dpr);\n\n const bodyBox = body.viewBox;\n const bodyScale = Math.min(px / bodyBox.width, px / bodyBox.height);\n const bodyTx = (px - bodyBox.width * bodyScale) / 2;\n const bodyTy = (px - bodyBox.height * bodyScale) / 2;\n ctx.save();\n ctx.translate(bodyTx, bodyTy);\n ctx.scale(bodyScale, bodyScale);\n ctx.fillStyle = color.hex;\n ctx.fill(new Path2D(body.svgPath));\n ctx.restore();\n\n const override = components.faceCenterOverrides.find(\n (o) => o.bodyShape === body.id && o.eyeStyle === eye.id,\n );\n const faceCenter = override ? override.faceCenter : body.faceCenter;\n const eyeBox = eye.sourceViewBox;\n const remapScale = Math.min(\n bodyBox.width / eyeBox.width,\n bodyBox.height / eyeBox.height,\n );\n ctx.save();\n ctx.translate(\n bodyScale * (faceCenter.x - eye.eyeCenter.x * remapScale) + bodyTx,\n bodyScale * (faceCenter.y - eye.eyeCenter.y * remapScale) + bodyTy,\n );\n ctx.scale(bodyScale * remapScale, bodyScale * remapScale);\n for (const path of eye.paths) {\n ctx.fillStyle = path.color;\n ctx.fill(new Path2D(path.svgPath));\n }\n ctx.restore();\n\n return sprite;\n}\n","import { useEffect, useState } from \"react\";\n\nimport type { CharacterComponents } from \"@app/types/avatar\";\n\n// Module-level cache so the dynamic import resolves once per session even if\n// multiple chips mount in parallel during the same render pass.\nlet cached: CharacterComponents | null = null;\nlet loadPromise: Promise<CharacterComponents> | null = null;\n\n// Subscribers fire exactly once, when `cached` is first populated, so that\n// hook instances that mounted *before* the load completed (and whose effect\n// observed only the still-null state) re-render and pick up the new value\n// instead of staying blank for their lifetime.\nconst subscribers = new Set<() => void>();\n\n// One short-delay retry per session if the first import attempt fails (e.g.\n// a transient network blip). If the retry also fails we stop trying and let\n// the placeholder stand — the next re-mount will get a fresh shot via the\n// `loadPromise = null` path below. Keeping this single-shot avoids spamming\n// retries against a stale-deployed chunk that's genuinely gone.\nconst RETRY_DELAY_MS = 3000;\nlet retryScheduled = false;\n\nfunction loadBundledComponents(): Promise<CharacterComponents> {\n if (cached) {\n return Promise.resolve(cached);\n }\n if (loadPromise) {\n return loadPromise;\n }\n loadPromise = import(\"@app/utils/avatar-bundled-components\")\n .then((m) => {\n cached = m.BUNDLED_COMPONENTS;\n loadPromise = null;\n for (const cb of subscribers) {\n cb();\n }\n return cached;\n })\n .catch((err) => {\n // Don't leave a rejected promise cached — that would permanently\n // poison every future caller (re-mounts, new subagent spawns, etc.)\n // and avatars would silently stay blank for the rest of the session.\n // Clearing it here lets the next consumer kick off a fresh import.\n loadPromise = null;\n // Schedule a single retry so already-mounted hooks recover from a\n // transient failure even when no new consumer arrives to trigger\n // another attempt. Gated on having active subscribers so we don't\n // burn the retry on a no-longer-visible UI.\n if (!retryScheduled && subscribers.size > 0) {\n retryScheduled = true;\n setTimeout(() => {\n if (!cached && subscribers.size > 0) {\n loadBundledComponents().catch(() => {\n // Final attempt; placeholder stands.\n });\n }\n }, RETRY_DELAY_MS);\n }\n throw err;\n });\n return loadPromise;\n}\n\n/**\n * Eagerly kick off the bundled-avatar import without mounting a consumer, so\n * the (~48 kB) chunk is already in flight — or resolved — by the time the\n * avatars first render. Safe to call repeatedly: it no-ops once cached / in\n * flight. Call it as early as a screen full of avatars is known to be coming\n * (e.g. at the onboarding route's module scope) to cut the blank-then-pop gap.\n */\nexport function preloadBundledAvatarComponents(): void {\n void loadBundledComponents().catch(() => {\n // Best-effort warm-up; the hook's own retry path handles real failures.\n });\n}\n\n/**\n * Lazily loads the bundled avatar character-components data (~48 kB of\n * inline SVG paths) on first mount of any consumer. Returns `null` until\n * the chunk resolves; the caller renders a placeholder of the same size so\n * layout doesn't reflow when the avatar pops in.\n *\n * Splitting the data out keeps it off the chat-critical bundle —\n * `SubagentAvatarChip` consumes it inline in transcript items, and a\n * static import would pull the whole payload into the main chunk.\n *\n * If the first import rejects (network blip, stale deployed chunk), the\n * loader clears its cached promise so a re-mount can retry, and mounted\n * instances subscribe to the next successful resolution so a retry\n * triggered by any other consumer fills their UI too.\n */\nexport function useBundledAvatarComponents(): CharacterComponents | null {\n // We don't store `components` in local state — the module-level `cached`\n // is the source of truth across all hook instances. `forceRender` exists\n // only to schedule a re-read of `cached` when the subscriber notifies.\n const [, forceRender] = useState(0);\n\n useEffect(() => {\n if (cached) {\n return;\n }\n let cancelled = false;\n const onLoaded = () => {\n if (!cancelled) {\n forceRender((n) => n + 1);\n }\n };\n subscribers.add(onLoaded);\n void loadBundledComponents().catch(() => {\n // Swallowed here: the loader rethrows for any awaiting caller, so\n // anything wrapping this in a Suspense/ErrorBoundary will still see\n // the failure. The hook's job is just to stay in the placeholder\n // state until a future retry succeeds.\n });\n return () => {\n cancelled = true;\n subscribers.delete(onLoaded);\n };\n }, []);\n\n return cached;\n}\n","import { useEffect, useRef } from \"react\";\n\nimport {\n buildRibbonWave,\n mulberry32,\n resolveRibbon,\n ribbonSizingHeight,\n type RelativeRibbonPoint,\n type RibbonPoint,\n} from \"@app/utils/avatar-wave-ribbon\";\nimport { renderAvatarSprite } from \"@app/utils/avatar-sprite\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\n\n/**\n * A crowd of characters flowing down a ribbon, drawn on one canvas and\n * simulated per frame: they lean away from the cursor, a quick swipe knocks\n * nearby ones loose to sail off and bounce around, and everything springs\n * back home once it settles.\n *\n * Purely decorative. The canvas never takes pointer events, and the cursor\n * is tracked on `window` so the characters still react while the pointer is\n * over the content sitting beside them.\n */\n\n/**\n * Design-space box the column ribbon is authored in. The canvas scales this\n * to cover its container, so the crowd keeps its shape at any panel size.\n */\nconst DESIGN_W = 620;\nconst DESIGN_H = 900;\n\nconst SEED = 20260807;\n\n/** Keeps the widening tail from producing one absurdly large character. */\nconst MAX_AVATAR_SIZE = 165;\n\n/**\n * The column ribbon enters cut off by the top edge as a thin thread of small\n * characters, switches back across the panel three times, and broadens into\n * a full crowd that pours off the bottom.\n *\n * Two ramps do the work, and they are deliberately different. `s` grows\n * about tenfold from head to tail, which reads as depth. `w` grows about\n * thirtyfold, and since a row holds `w / s` characters, that difference is\n * what turns a two-wide thread at the top into a six-wide crowd at the\n * bottom. Widening the two together would keep the row count flat however\n * large the characters got.\n *\n * The centerline drifts back toward the middle as `w` overtakes the panel,\n * so the broad rows bleed off the outer edge rather than being sliced by\n * the inner one.\n */\nconst COLUMN_RIBBON: RibbonPoint[] = [\n { x: 330, y: -70, w: 26, s: 13 },\n { x: 420, y: 20, w: 40, s: 18 },\n { x: 482, y: 115, w: 62, s: 25 },\n { x: 458, y: 215, w: 96, s: 34 },\n { x: 368, y: 298, w: 140, s: 45 },\n { x: 258, y: 372, w: 196, s: 57 },\n { x: 208, y: 462, w: 262, s: 70 },\n { x: 262, y: 556, w: 340, s: 84 },\n { x: 352, y: 642, w: 430, s: 98 },\n { x: 372, y: 730, w: 530, s: 112 },\n { x: 340, y: 822, w: 620, s: 124 },\n { x: 360, y: 912, w: 700, s: 132 },\n { x: 380, y: 1002, w: 760, s: 140 },\n];\n\n/**\n * The wrap ribbon is the same crowd on a screen with no column to spare: it\n * goes around the content instead of beside it. A thread of small characters\n * drops in through the top edge near the left, turns and sweeps right over\n * the heading, carries on down past its outer edge and off the screen, then\n * comes back in below the buttons, where it broadens into the crowd that\n * fills the rest of the screen.\n *\n * The loop between `fx: 1.0` and the re-entry is drawn but never seen. It\n * exists so the thread that leaves and the crowd that returns are one\n * continuous path with a continuous size ramp, rather than two pieces that\n * happen to line up at the edge.\n *\n * The two clearances the thread and the crowd have to hold are the heading's\n * top and the second button's bottom. A step's column is a fixed stack of\n * text and controls centred in what the bottom padding leaves it, so it\n * keeps its height as the screen shortens and takes a larger fraction of it:\n * the shortest screen the wrap runs on is the one that binds, and both\n * clearances are tuned against a 640-tall phone rather than an 844-tall one.\n * See {@link RelativeRibbonPoint} for why this ribbon is authored against\n * the screen and the column one is not.\n */\nconst WRAP_RIBBON: RelativeRibbonPoint[] = [\n { fx: 0.11, fy: -0.15, fw: 0.05, fs: 0.0112 },\n { fx: 0.115, fy: -0.06, fw: 0.055, fs: 0.0126 },\n { fx: 0.14, fy: 0.012, fw: 0.062, fs: 0.0142 },\n { fx: 0.21, fy: 0.055, fw: 0.07, fs: 0.016 },\n { fx: 0.34, fy: 0.072, fw: 0.077, fs: 0.0178 },\n { fx: 0.51, fy: 0.072, fw: 0.084, fs: 0.0195 },\n { fx: 0.7, fy: 0.08, fw: 0.091, fs: 0.0212 },\n { fx: 0.89, fy: 0.112, fw: 0.1, fs: 0.023 },\n { fx: 1.05, fy: 0.174, fw: 0.114, fs: 0.026 },\n { fx: 1.15, fy: 0.28, fw: 0.142, fs: 0.0316 },\n { fx: 1.19, fy: 0.4, fw: 0.18, fs: 0.0392 },\n { fx: 1.14, fy: 0.55, fw: 0.228, fs: 0.0476 },\n { fx: 0.98, fy: 0.702, fw: 0.325, fs: 0.0586 },\n { fx: 0.74, fy: 0.796, fw: 0.51, fs: 0.0724 },\n { fx: 0.58, fy: 0.866, fw: 0.84, fs: 0.0874 },\n { fx: 0.52, fy: 0.93, fw: 1.16, fs: 0.1004 },\n { fx: 0.5, fy: 0.998, fw: 1.48, fs: 0.1124 },\n { fx: 0.5, fy: 1.07, fw: 1.8, fs: 0.1224 },\n];\n\n/**\n * {@link MAX_AVATAR_SIZE}'s counterpart, against the same height the ribbon\n * sizes its avatars from. Reading it off the raw height instead would undo\n * {@link ribbonSizingHeight} on exactly the boxes it exists for: the cap\n * would clip the scaled-up avatars back down, leaving the crowd to pack\n * itself several times over.\n */\nconst WRAP_MAX_AVATAR_FRACTION = 0.135;\n\n/**\n * Shortest box the wrap composition is offered on. It holds the top fifth\n * for the thread and the bottom third for the crowd, so a shorter box has\n * nowhere left to put the content between them, and the heading ends up\n * under the thread whatever the step. Below this the layout falls back to\n * the creature footer.\n */\nexport const WRAP_WAVE_MIN_HEIGHT_QUERY = \"(min-height: 600px)\";\n\nconst REPEL_RADIUS = 170;\nconst REPEL_PUSH = 70;\n/** Kick impulse per frame per unit of cursor velocity. */\nconst FLING = 2;\n/** Speed at which a character detaches and sails off, immune from there on. */\nconst BALLISTIC_ON = 5;\nconst MAX_SPEED = 17;\nconst FLIGHT_FRICTION = 0.972;\nconst BOUNCE = 0.84;\n/** Displacement past which a merely-nudged character also goes immune. */\nconst DISTURB_DIST = 70;\nconst STIFF_BACK = 0.06;\nconst DAMP_BACK = 0.85;\nconst STIFF_HOVER = 0.12;\nconst DAMP_HOVER = 0.74;\n/** Cursor speed is clamped before it becomes an impulse. */\nconst MAX_CURSOR_SPEED = 8;\n\nconst REVEAL_MS = 550;\n/**\n * Relative gap between one character's entrance and the next: small ones at\n * the head of the ribbon follow each other quickly, large ones at the tail\n * arrive with a beat between them. These are weights, not milliseconds —\n * they are normalized to {@link POUR_TOTAL_MS} so that reshaping the ribbon\n * changes the wave's look without changing how long it takes to arrive.\n */\nconst POUR_GAP_MIN = 12;\nconst POUR_GAP_MAX = 55;\nconst POUR_GAP_NUMERATOR = 1900;\n/** How long the whole crowd takes to finish pouring in. */\nconst POUR_TOTAL_MS = 1600;\n\n/**\n * The simulation is tuned in 60fps frames, so every integration step scales\n * by how long the real frame took. Without this the wave springs and flies\n * at double speed on a 120Hz display. Capped so returning to a backgrounded\n * tab resumes rather than teleporting everything.\n */\nconst FRAME_MS = 1000 / 60;\nconst MAX_FRAME_SCALE = 3;\n\n/** Idle decay so a stationary cursor stops flinging on its last reading. */\nconst CURSOR_VELOCITY_DECAY = 0.9;\n\n/** Sprites are rasterized per size bucket so a resize reuses most of them. */\nconst SPRITE_SIZE_BUCKET = 8;\n\ninterface LiveItem {\n /** Home position and drawn size, in canvas pixels. */\n hx: number;\n hy: number;\n px: number;\n rotate: number;\n phase: number;\n pourDelay: number;\n /** Offset from home, velocity, and disturbance mode. */\n dx: number;\n dy: number;\n vx: number;\n vy: number;\n disturbed: boolean;\n flying: boolean;\n fade: number;\n sprite: HTMLCanvasElement | null;\n}\n\n/**\n * Whether the entrance has already played somewhere in this session. The\n * wave sits behind a run of screens that each mount their own copy, and\n * replaying the pour on every step reads as the page restarting rather than\n * as the same wave carrying through. One pour per visit, then it is simply\n * there.\n */\nlet hasPlayedEntrance = false;\n\n/**\n * Which composition the crowd is laid out in.\n *\n * `column` fills a panel beside the content: the split the welcome screen\n * takes once there is room for one. `wrap` fills the whole screen behind the\n * content, going around it, which is what a phone gets instead of the split.\n */\nexport type AvatarWaveVariant = \"column\" | \"wrap\";\n\ninterface AvatarWaveProps {\n className?: string;\n /**\n * Ask for the staggered entrance. Honored only on the first wave to mount\n * in a session; later ones render settled however they are configured, so\n * a screen that requests it does not have to know whether the user has\n * already come past one.\n */\n entrance?: boolean;\n variant?: AvatarWaveVariant;\n}\n\nexport function AvatarWave({\n className = \"\",\n entrance = false,\n variant = \"column\",\n}: AvatarWaveProps) {\n const components = useBundledAvatarComponents();\n const canvasRef = useRef<HTMLCanvasElement | null>(null);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas || !components) {\n return;\n }\n const ctx = canvas.getContext(\"2d\");\n if (!ctx) {\n return;\n }\n const reduce = window.matchMedia(\n \"(prefers-reduced-motion: reduce)\",\n ).matches;\n const pour = entrance && !reduce && !hasPlayedEntrance;\n if (pour) {\n hasPlayedEntrance = true;\n }\n\n let width = 0;\n let height = 0;\n let items: LiveItem[] = [];\n let pourStart = 0;\n let lastFrame = 0;\n const cursor = { x: 0, y: 0, vx: 0, vy: 0, active: false };\n let lastMove: { x: number; y: number; t: number } | null = null;\n const spriteCache = new Map<string, HTMLCanvasElement | null>();\n\n const spriteFor = (\n bodyIdx: number,\n eyeIdx: number,\n colorIdx: number,\n px: number,\n ): HTMLCanvasElement | null => {\n const bucket =\n Math.max(1, Math.round(px / SPRITE_SIZE_BUCKET)) * SPRITE_SIZE_BUCKET;\n const key = `${bodyIdx}-${eyeIdx}-${colorIdx}-${bucket}`;\n const hit = spriteCache.get(key);\n if (hit !== undefined) {\n return hit;\n }\n const made = renderAvatarSprite(\n components,\n bodyIdx,\n eyeIdx,\n colorIdx,\n bucket,\n );\n spriteCache.set(key, made);\n return made;\n };\n\n const layout = () => {\n const rect = canvas.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) {\n return;\n }\n if (\n Math.abs(rect.width - width) < 1 &&\n Math.abs(rect.height - height) < 1\n ) {\n return;\n }\n width = rect.width;\n height = rect.height;\n\n const dpr = Math.min(2, window.devicePixelRatio || 1);\n canvas.width = Math.round(width * dpr);\n canvas.height = Math.round(height * dpr);\n ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n\n // The wrap ribbon is authored against the canvas, so resolving it\n // already lands in canvas pixels and the design-box transform below is\n // the identity. The column one is authored in a fixed design box and\n // covers the panel so the ribbon always reaches every edge. Covering\n // means the design is at least as wide as the panel, so there is\n // always horizontal overflow to place. Pin it to the inner edge and\n // let all of that overflow run off the outer one: this panel sits\n // flush against the side of the window, so overflow there leaves the\n // screen, while overflow at the inner edge would slice the crowd in\n // half along the boundary with the content beside it.\n const wrap = variant === \"wrap\";\n const offsetX = 0;\n const scale = wrap ? 1 : Math.max(width / DESIGN_W, height / DESIGN_H);\n const offsetY = wrap ? 0 : (height - DESIGN_H * scale) / 2;\n\n const placements = wrap\n ? buildRibbonWave(\n resolveRibbon(WRAP_RIBBON, width, height),\n SEED,\n ribbonSizingHeight(width, height) * WRAP_MAX_AVATAR_FRACTION,\n )\n : buildRibbonWave(COLUMN_RIBBON, SEED, MAX_AVATAR_SIZE);\n\n // Normalize the size-weighted stagger to a fixed total so the crowd\n // always finishes arriving at the same moment, however many characters\n // the ribbon happens to pack.\n const gapWeight = (size: number) =>\n Math.min(\n POUR_GAP_MAX,\n Math.max(POUR_GAP_MIN, POUR_GAP_NUMERATOR / size),\n );\n const weightTotal = placements.reduce(\n (sum: number, placed) => sum + gapWeight(placed.size),\n 0,\n );\n const pourRate = weightTotal > 0 ? POUR_TOTAL_MS / weightTotal : 0;\n\n const rng = mulberry32(SEED + 1);\n let lastColor = -1;\n let pourDelay = 0;\n items = placements.map((placed): LiveItem => {\n let colorIdx = Math.floor(rng() * components.colors.length);\n if (colorIdx === lastColor) {\n colorIdx = (colorIdx + 1) % components.colors.length;\n }\n lastColor = colorIdx;\n const bodyIdx = Math.floor(rng() * components.bodyShapes.length);\n const eyeIdx = Math.floor(rng() * components.eyeStyles.length);\n const px = placed.size * scale;\n const item: LiveItem = {\n hx: offsetX + placed.x * scale,\n hy: offsetY + placed.y * scale,\n px,\n rotate: (placed.rotate * Math.PI) / 180,\n phase: rng() * Math.PI * 2,\n pourDelay,\n dx: 0,\n dy: 0,\n vx: 0,\n vy: 0,\n disturbed: false,\n flying: false,\n fade: 1,\n sprite: spriteFor(bodyIdx, eyeIdx, colorIdx, px),\n };\n pourDelay += gapWeight(placed.size) * pourRate;\n return item;\n });\n if (pourStart === 0) {\n pourStart = performance.now();\n }\n };\n\n const step = (item: LiveItem, frames: number) => {\n const posX = item.hx + item.dx;\n const posY = item.hy + item.dy;\n\n if (item.flying) {\n const friction = Math.pow(FLIGHT_FRICTION, frames);\n item.vx *= friction;\n item.vy *= friction;\n item.dx += item.vx * frames;\n item.dy += item.vy * frames;\n\n const half = item.px / 2;\n const minX = half;\n const maxX = width - half;\n const minY = half;\n const maxY = height - half;\n const cx = item.hx + item.dx;\n const cy = item.hy + item.dy;\n if (maxX > minX) {\n if (cx < minX) {\n item.dx = minX - item.hx;\n item.vx = Math.abs(item.vx) * BOUNCE;\n } else if (cx > maxX) {\n item.dx = maxX - item.hx;\n item.vx = -Math.abs(item.vx) * BOUNCE;\n }\n }\n if (maxY > minY) {\n if (cy < minY) {\n item.dy = minY - item.hy;\n item.vy = Math.abs(item.vy) * BOUNCE;\n } else if (cy > maxY) {\n item.dy = maxY - item.hy;\n item.vy = -Math.abs(item.vy) * BOUNCE;\n }\n }\n if (Math.hypot(item.vx, item.vy) < 0.7) {\n item.flying = false;\n }\n return;\n }\n\n if (item.disturbed) {\n // Immune to the cursor until it has settled back home.\n const damp = Math.pow(DAMP_BACK, frames);\n item.vx = (item.vx - item.dx * STIFF_BACK * frames) * damp;\n item.dx += item.vx * frames;\n item.vy = (item.vy - item.dy * STIFF_BACK * frames) * damp;\n item.dy += item.vy * frames;\n if (\n Math.hypot(item.dx, item.dy) < 2 &&\n Math.hypot(item.vx, item.vy) < 0.25\n ) {\n item.disturbed = false;\n }\n return;\n }\n\n let targetX = 0;\n let targetY = 0;\n if (cursor.active) {\n const awayX = posX - cursor.x;\n const awayY = posY - cursor.y;\n const dist = Math.hypot(awayX, awayY) || 1;\n if (dist < REPEL_RADIUS) {\n const falloff = 1 - dist / REPEL_RADIUS;\n targetX = (awayX / dist) * Math.pow(falloff, 1.4) * REPEL_PUSH;\n targetY = (awayY / dist) * Math.pow(falloff, 1.4) * REPEL_PUSH;\n item.vx += cursor.vx * falloff * FLING * frames;\n item.vy += cursor.vy * falloff * FLING * frames;\n const speed = Math.hypot(item.vx, item.vy);\n if (speed > MAX_SPEED) {\n item.vx = (item.vx / speed) * MAX_SPEED;\n item.vy = (item.vy / speed) * MAX_SPEED;\n }\n if (speed > BALLISTIC_ON) {\n item.flying = true;\n item.disturbed = true;\n return;\n }\n }\n }\n\n const displacing = targetX !== 0 || targetY !== 0;\n const stiff = (displacing ? STIFF_HOVER : STIFF_BACK) * frames;\n const damp = Math.pow(displacing ? DAMP_HOVER : DAMP_BACK, frames);\n item.vx = (item.vx + (targetX - item.dx) * stiff) * damp;\n item.dx += item.vx * frames;\n item.vy = (item.vy + (targetY - item.dy) * stiff) * damp;\n item.dy += item.vy * frames;\n if (Math.hypot(item.dx, item.dy) > DISTURB_DIST) {\n item.disturbed = true;\n }\n };\n\n const draw = (now: number) => {\n const frames = lastFrame\n ? Math.min(MAX_FRAME_SCALE, (now - lastFrame) / FRAME_MS)\n : 1;\n lastFrame = now;\n if (!reduce) {\n // The cursor's velocity only updates on movement, so bleed it off\n // here; otherwise a pointer that stops inside the field keeps\n // flinging characters with its last reading forever.\n const decay = Math.pow(CURSOR_VELOCITY_DECAY, frames);\n cursor.vx *= decay;\n cursor.vy *= decay;\n }\n\n ctx.clearRect(0, 0, width, height);\n for (const item of items) {\n const sprite = item.sprite;\n if (!sprite) {\n continue;\n }\n\n let revealScale = 1;\n let revealAlpha = 1;\n let revealDrop = 0;\n if (!reduce) {\n if (pour) {\n const elapsed = now - pourStart - item.pourDelay;\n if (elapsed < 0) {\n continue;\n }\n const p = Math.min(1, elapsed / REVEAL_MS);\n if (p < 1) {\n const eased =\n 1 + 2.2 * Math.pow(p - 1, 3) + 1.2 * Math.pow(p - 1, 2);\n revealScale =\n 0.3 +\n 0.7 * Math.min(1.04, eased + 0.04 * Math.sin(p * Math.PI));\n revealAlpha = Math.min(1, p * 2.2);\n revealDrop = (1 - p) * -60;\n }\n }\n step(item, frames);\n const away = Math.hypot(item.dx, item.dy);\n const targetFade = item.flying ? 0.88 : away > 20 ? 0.92 : 1;\n item.fade += (targetFade - item.fade) * Math.min(1, 0.08 * frames);\n }\n\n const bob = reduce ? 0 : Math.sin(now * 0.001 + item.phase) * 1.4;\n const wobble = reduce\n ? 0\n : Math.sin(now * 0.0008 + item.phase * 2) * 0.025;\n const size = item.px * revealScale;\n\n ctx.save();\n ctx.translate(item.hx + item.dx, item.hy + item.dy + bob + revealDrop);\n ctx.rotate(item.rotate + wobble);\n ctx.globalAlpha = item.fade * revealAlpha;\n ctx.drawImage(sprite, -size / 2, -size / 2, size, size);\n ctx.restore();\n }\n };\n\n layout();\n\n const resizeObserver = new ResizeObserver(() => {\n layout();\n if (reduce) {\n draw(performance.now());\n }\n });\n resizeObserver.observe(canvas);\n\n let raf = 0;\n if (reduce) {\n draw(performance.now());\n } else {\n const tick = (now: number) => {\n draw(now);\n raf = requestAnimationFrame(tick);\n };\n raf = requestAnimationFrame(tick);\n }\n\n const setCursor = (clientX: number, clientY: number) => {\n const now = performance.now();\n if (lastMove) {\n const dt = Math.max(1, now - lastMove.t);\n let vx = cursor.vx * 0.5 + ((clientX - lastMove.x) / dt) * 0.5;\n let vy = cursor.vy * 0.5 + ((clientY - lastMove.y) / dt) * 0.5;\n const speed = Math.hypot(vx, vy);\n if (speed > MAX_CURSOR_SPEED) {\n vx = (vx / speed) * MAX_CURSOR_SPEED;\n vy = (vy / speed) * MAX_CURSOR_SPEED;\n }\n cursor.vx = vx;\n cursor.vy = vy;\n }\n lastMove = { x: clientX, y: clientY, t: now };\n const rect = canvas.getBoundingClientRect();\n cursor.x = clientX - rect.left;\n cursor.y = clientY - rect.top;\n cursor.active = true;\n };\n const onMove = (e: MouseEvent) => setCursor(e.clientX, e.clientY);\n const onTouchMove = (e: TouchEvent) => {\n const touch = e.touches[0];\n if (touch) {\n setCursor(touch.clientX, touch.clientY);\n }\n };\n const onLeave = () => {\n cursor.active = false;\n cursor.vx = 0;\n cursor.vy = 0;\n lastMove = null;\n };\n\n if (!reduce) {\n window.addEventListener(\"mousemove\", onMove, { passive: true });\n window.addEventListener(\"mouseout\", onLeave);\n window.addEventListener(\"touchmove\", onTouchMove, { passive: true });\n window.addEventListener(\"touchend\", onLeave);\n window.addEventListener(\"touchcancel\", onLeave);\n }\n\n return () => {\n cancelAnimationFrame(raf);\n resizeObserver.disconnect();\n window.removeEventListener(\"mousemove\", onMove);\n window.removeEventListener(\"mouseout\", onLeave);\n window.removeEventListener(\"touchmove\", onTouchMove);\n window.removeEventListener(\"touchend\", onLeave);\n window.removeEventListener(\"touchcancel\", onLeave);\n };\n }, [components, entrance, variant]);\n\n return (\n <canvas\n ref={canvasRef}\n aria-hidden=\"true\"\n className={`pointer-events-none block h-full w-full ${className}`}\n />\n );\n}\n","import { publicAsset } from \"@app/utils/public-asset\";\n\n/**\n * Decorative SVG footer for onboarding screens.\n *\n * Positioned `fixed` (not `absolute`) so it anchors to the layout viewport\n * bottom and bleeds past `RootLayout`'s `app-shell` bottom safe-area padding\n * + `overflow-hidden` inner wrapper (src/root-layout.tsx). With `absolute`\n * the art floated `env(safe-area-inset-bottom)` (~34px) above the physical\n * edge on iOS, exposing the surface background beneath the creatures. `fixed`\n * escapes the clip and reaches the physical screen bottom; on desktop the\n * inset is 0 so rendering is unchanged. No transformed ancestor exists, so\n * `fixed` resolves against the viewport. `viewport-fit=cover` (index.html)\n * makes the layout viewport span the full physical screen.\n *\n * Uses a plain `<img>` (Vite serves static assets — no Next.js Image needed).\n */\nexport function CreatureFooter({ className = \"\" }: { className?: string }) {\n return (\n <div\n aria-hidden=\"true\"\n className={`pointer-events-none fixed bottom-0 left-0 right-0 flex justify-center overflow-hidden ${className}`}\n >\n <img\n src={publicAsset(\"/login-background-characters.svg\")}\n alt=\"\"\n width={1200}\n height={180}\n className=\"w-full max-w-[900px] object-cover object-bottom\"\n />\n </div>\n );\n}\n","import { useState, type ReactNode } from \"react\";\n\nimport { PortalContainerProvider } from \"@mycadet/design-library/utils/portal-container\";\nimport { useIsMobile } from \"@app/hooks/use-is-mobile\";\nimport { useMediaQuery } from \"@app/hooks/use-media-query\";\nimport { isElectron } from \"@app/runtime/is-electron\";\nimport { AvatarWave, WRAP_WAVE_MIN_HEIGHT_QUERY } from \"./avatar/avatar-wave\";\nimport { CreatureFooter } from \"./avatar/creature-footer\";\n\n/** See {@link OnboardingLayout}'s `avatarWave` prop. */\nexport type AvatarWavePlacement = \"none\" | \"beside\" | \"around\";\n\n/**\n * Shared chrome for the pre-app screens — the onboarding funnel and the\n * welcome screen both front doors show (`/assistant/welcome` and\n * `/account/login`): a full-height dark surface with the decorative creature\n * footer pinned to the bottom. Caller owns the inner column's layout and\n * padding.\n *\n * The outer div fills the RootLayout's fixed-height (100dvh) shell. Children\n * render inside a flex-1 scroll container so screens whose content exceeds\n * the viewport (e.g. ToolSelectionScreen on iPhone 13 mini) become scrollable\n * instead of clipping the Continue button off-screen. The CreatureFooter sits\n * outside the scroll container so it stays at the viewport bottom.\n *\n * Overlay components (e.g. the provider Select menu) portal into the\n * trailing at-origin element below — outside the centered, animated content\n * column. Without it the menu renders inline and anchors to the column's\n * containing block (created by the column's transform animation) instead of\n * the viewport, landing far off to the side.\n */\nexport function OnboardingLayout({\n children,\n showCreatureFooter = true,\n avatarWave = \"none\",\n animateAvatarWaveIn = false,\n}: {\n children: ReactNode;\n /**\n * Whether to render the decorative creature footer. Defaults to `true` for\n * the branded onboarding pages (welcome, hatching, etc.); the prechat funnel\n * steps pass `false` for a cleaner, footer-free layout.\n */\n showCreatureFooter?: boolean;\n /**\n * Where the live avatar wave goes. Either setting stands in for the\n * creature footer wherever it actually renders.\n *\n * `beside` seats it in a column next to the content from the `md`\n * breakpoint up, and leaves narrower viewports the footer. The wave needs\n * a column of its own, and surrendering half a phone screen to decoration\n * is not one. `around` does the same above `md` and, below it, wraps the\n * wave around the content instead: a thread arcing over the heading, off\n * the edge, and back in under the buttons as the crowd.\n *\n * `around` asks two things of a step, and a step that fails either keeps\n * `beside`:\n *\n * Its content has to clear the wave at the shortest screen the wrap runs\n * on, which is a 640-tall phone, not a 844-tall one. The step's column is\n * a fixed stack of controls centred in what the padding leaves it, so it\n * keeps its height as the screen shrinks and spreads across more of it:\n * measure there or the check passes on a screen that was never the\n * problem. The thread takes the top fifth, and the crowd comes back in on\n * the right at about 0.59 of the height, sloping down to 0.85 at the left,\n * so a full-width control below roughly 0.58 lands in the crowd and a\n * heading above 0.2 lands under the thread. Narrow centred content can sit\n * lower, where the crowd has not reached the middle yet.\n *\n * Its content also has to be bounded. A step rendering a list it does not\n * cap has no height to check: it fits until a user with enough assistants\n * arrives, and then it scrolls its cards through both.\n */\n avatarWave?: AvatarWavePlacement;\n /**\n * Ask the wave to play its entrance rather than appear settled. Reserved\n * for the screen a visit starts on: the wave spans a run of screens that\n * each mount their own copy, and pouring it in again at every step reads\n * as the page restarting. Ignored without a wave, and the wave itself\n * plays the entrance at most once per session.\n */\n animateAvatarWaveIn?: boolean;\n}) {\n const [portalContainer, setPortalContainer] = useState<HTMLElement | null>(\n null,\n );\n // Matches the `md` breakpoint. Gating in render (rather than with a\n // `hidden md:block` class) keeps the wave's canvas and its animation loop\n // from mounting at all on the layout that would not show them.\n const isMobile = useIsMobile();\n // A viewport can be narrow enough to have no column to spare and still be\n // too short to wrap: a phone in landscape, or a small window. See\n // `WRAP_WAVE_MIN_HEIGHT_QUERY`. Those fall through to the footer.\n const isTallEnoughToWrap = useMediaQuery(WRAP_WAVE_MIN_HEIGHT_QUERY);\n // The desktop shell runs its own compact, top-aligned onboarding flow in a\n // window that has neither half a screen to give to decoration nor the\n // centred column the wrap composition goes around, so it keeps the footer.\n const electron = isElectron();\n const columnWave = avatarWave !== \"none\" && !isMobile && !electron;\n const wrapWave =\n avatarWave === \"around\" && isMobile && isTallEnoughToWrap && !electron;\n\n const content = (\n <div className=\"flex-1 overflow-y-auto\">\n <PortalContainerProvider container={portalContainer}>\n {children}\n </PortalContainerProvider>\n </div>\n );\n\n return (\n // `isolate` is what puts the wrap wave behind the content: without a\n // stacking context here, its negative z-index would drop it behind this\n // element's own background and paint nothing at all.\n <div className=\"relative isolate flex h-full flex-col bg-[var(--surface-base)]\">\n {wrapWave && (\n <AvatarWave\n variant=\"wrap\"\n entrance={animateAvatarWaveIn}\n // `fixed`, for the reason `CreatureFooter` is: this layout sits\n // inside `RootLayout`'s safe-area padding, and an `absolute` wave\n // would stop short of the physical bottom edge, cutting the crowd\n // off above a strip of bare surface on iOS. The crowd is authored\n // to pour off the bottom, so it has to reach one.\n className=\"fixed inset-0 -z-10\"\n />\n )}\n {columnWave ? (\n <div className=\"flex min-h-0 flex-1\">\n {content}\n <div className=\"relative w-[46%] lg:w-1/2\">\n <AvatarWave\n className=\"absolute inset-0\"\n entrance={animateAvatarWaveIn}\n />\n </div>\n </div>\n ) : (\n content\n )}\n {showCreatureFooter && !columnWave && !wrapWave && <CreatureFooter />}\n <div ref={setPortalContainer} />\n </div>\n );\n}\n","\"use client\";\nimport { hasReducedMotionListener, initPrefersReducedMotion, prefersReducedMotion } from 'motion-dom';\nimport { warnOnce } from 'motion-utils';\nimport { useState } from 'react';\n\n/**\n * A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.\n *\n * This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing\n * `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion.\n *\n * It will actively respond to changes and re-render your components with the latest setting.\n *\n * ```jsx\n * export function Sidebar({ isOpen }) {\n * const shouldReduceMotion = useReducedMotion()\n * const closedX = shouldReduceMotion ? 0 : \"-100%\"\n *\n * return (\n * <motion.div animate={{\n * opacity: isOpen ? 1 : 0,\n * x: isOpen ? 0 : closedX\n * }} />\n * )\n * }\n * ```\n *\n * @return boolean\n *\n * @public\n */\nfunction useReducedMotion() {\n /**\n * Lazy initialisation of prefersReducedMotion\n */\n !hasReducedMotionListener.current && initPrefersReducedMotion();\n const [shouldReduceMotion] = useState(prefersReducedMotion.current);\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n }\n /**\n * TODO See if people miss automatically updating shouldReduceMotion setting\n */\n return shouldReduceMotion;\n}\n\nexport { useReducedMotion };\n//# sourceMappingURL=use-reduced-motion.mjs.map\n","import { animateVisualElement, setTarget } from 'motion-dom';\nimport { invariant } from 'motion-utils';\n\nfunction stopAnimation(visualElement) {\n visualElement.values.forEach((value) => value.stop());\n}\nfunction setVariants(visualElement, variantLabels) {\n const reversedLabels = [...variantLabels].reverse();\n reversedLabels.forEach((key) => {\n const variant = visualElement.getVariant(key);\n variant && setTarget(visualElement, variant);\n if (visualElement.variantChildren) {\n visualElement.variantChildren.forEach((child) => {\n setVariants(child, variantLabels);\n });\n }\n });\n}\nfunction setValues(visualElement, definition) {\n if (Array.isArray(definition)) {\n return setVariants(visualElement, definition);\n }\n else if (typeof definition === \"string\") {\n return setVariants(visualElement, [definition]);\n }\n else {\n setTarget(visualElement, definition);\n }\n}\n/**\n * @public\n */\nfunction animationControls() {\n /**\n * Track whether the host component has mounted.\n */\n let hasMounted = false;\n /**\n * A collection of linked component animation controls.\n */\n const subscribers = new Set();\n const controls = {\n subscribe(visualElement) {\n subscribers.add(visualElement);\n return () => void subscribers.delete(visualElement);\n },\n start(definition, transitionOverride) {\n invariant(hasMounted, \"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n const animations = [];\n subscribers.forEach((visualElement) => {\n animations.push(animateVisualElement(visualElement, definition, {\n transitionOverride,\n }));\n });\n return Promise.all(animations);\n },\n set(definition) {\n invariant(hasMounted, \"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n return subscribers.forEach((visualElement) => {\n setValues(visualElement, definition);\n });\n },\n stop() {\n subscribers.forEach((visualElement) => {\n stopAnimation(visualElement);\n });\n },\n mount() {\n hasMounted = true;\n return () => {\n hasMounted = false;\n controls.stop();\n };\n },\n };\n return controls;\n}\n\nexport { animationControls, setValues };\n//# sourceMappingURL=animation-controls.mjs.map\n","\"use client\";\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { animationControls } from './animation-controls.mjs';\n\n/**\n * Creates `LegacyAnimationControls`, which can be used to manually start, stop\n * and sequence animations on one or more components.\n *\n * The returned `LegacyAnimationControls` should be passed to the `animate` property\n * of the components you want to animate.\n *\n * These components can then be animated with the `start` method.\n *\n * ```jsx\n * import * as React from 'react'\n * import { motion, useAnimation } from 'framer-motion'\n *\n * export function MyComponent(props) {\n * const controls = useAnimation()\n *\n * controls.start({\n * x: 100,\n * transition: { duration: 0.5 },\n * })\n *\n * return <motion.div animate={controls} />\n * }\n * ```\n *\n * @returns Animation controller with `start` and `stop` methods\n *\n * @public\n */\nfunction useAnimationControls() {\n const controls = useConstant(animationControls);\n useIsomorphicLayoutEffect(controls.mount, []);\n return controls;\n}\nconst useAnimation = useAnimationControls;\n\nexport { useAnimation, useAnimationControls };\n//# sourceMappingURL=use-animation.mjs.map\n","import { useEffect, useMemo, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport {\n computeTransforms,\n resolveDefinitions,\n} from \"@app/utils/avatar-svg-compositor\";\nimport type {\n BodyShapeDefinition,\n CharacterComponents,\n CharacterTraits,\n ColorDefinition,\n EyePathDefinition,\n EyeStyleDefinition,\n} from \"@app/types/avatar\";\n\ninterface AnimatedAvatarProps {\n components: CharacterComponents;\n traits: CharacterTraits;\n size: number;\n isAssistantBusy?: boolean;\n /**\n * Widen the eyes: the creature has noticed something.\n *\n * A surface with a pointer over it uses this so the mascot answers the hand\n * reaching for it. Deliberately the eyes alone and not the body, because\n * \"noticing\" is what eyes do and a body that grew on hover would read as a\n * button rather than a creature. Composes with the blink, which wins for its\n * 150ms.\n */\n attentive?: boolean;\n /**\n * Continuous idle \"breathing\" scale pulse. On by default; pass `false` to\n * keep the avatar still while leaving blink/twitch (and streaming morph)\n * intact — e.g. the scattered onboarding edge characters.\n */\n breathe?: boolean;\n}\n\nfunction randomBetween(min: number, max: number): number {\n return min + Math.random() * (max - min);\n}\n\n// SVG path wobble — port of macOS EditablePath.wobbled()\n\ninterface PathPoint {\n x: number;\n y: number;\n}\n\nfunction parsePathNumbers(d: string): number[] {\n const nums: number[] = [];\n const re = /-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?/gi;\n let m: RegExpExecArray | null;\n while ((m = re.exec(d)) !== null) {\n nums.push(parseFloat(m[0]));\n }\n return nums;\n}\n\nfunction computeCentroid(nums: number[]): PathPoint {\n let sx = 0;\n let sy = 0;\n let count = 0;\n for (let i = 0; i < nums.length - 1; i += 2) {\n sx += nums[i]!;\n sy += nums[i + 1]!;\n count++;\n }\n return count > 0 ? { x: sx / count, y: sy / count } : { x: 0, y: 0 };\n}\n\nfunction wobblePath(\n d: string,\n nums: number[],\n center: PathPoint,\n seed: number,\n amount: number,\n): string {\n const phase = seed * 1.1;\n let idx = 0;\n\n return d.replace(/-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?/gi, () => {\n const currentIdx = idx;\n idx++;\n const val = nums[currentIdx]!;\n const isX = currentIdx % 2 === 0;\n\n const refVal = isX ? center.x : center.y;\n const pairedIdx = isX ? currentIdx + 1 : currentIdx - 1;\n const pairedVal =\n pairedIdx >= 0 && pairedIdx < nums.length ? nums[pairedIdx]! : refVal;\n\n const px = isX ? val : pairedVal;\n const py = isX ? pairedVal : val;\n\n const angle = Math.atan2(py - center.y, px - center.x);\n const wobble =\n Math.sin(angle * 2.0 + phase) * 0.7 +\n Math.sin(angle * 3.0 - phase * 0.5) * 0.3;\n const scale = 1.0 + wobble * amount;\n\n const result = refVal + (val - refVal) * scale;\n return result.toFixed(3);\n });\n}\n\nfunction precomputeWobbledPaths(\n basePath: string,\n count: number,\n amount: number,\n): string[] {\n const nums = parsePathNumbers(basePath);\n const center = computeCentroid(nums);\n const paths: string[] = [basePath];\n for (let i = 1; i < count; i++) {\n paths.push(wobblePath(basePath, nums, center, i, amount));\n }\n return paths;\n}\n\n/**\n * Character avatar rendered as React SVG elements with idle animations:\n * - Breathing: continuous 4s scale pulse (CSS keyframe)\n * - Blink: random 3-7s eye scaleY squish, 20% double-blink\n * - Twitch: random 8-15s body rotation wobble\n *\n * During streaming (`isAssistantBusy`):\n * - Morph: body path cycles through 16 wobbled variants\n * - Scale + rotation CSS animations\n * - Blink + twitch paused\n *\n * All animations respect `prefers-reduced-motion`.\n *\n * Trait ids missing from `components` render nothing. Unknown ids are a\n * fallback, not an exception: this avatar is mounted on identity and chat.\n */\nexport function AnimatedAvatar(props: AnimatedAvatarProps) {\n const { components, traits } = props;\n const resolved = resolveDefinitions(\n components,\n traits.bodyShape,\n traits.eyeStyle,\n traits.color,\n );\n if (!resolved || !resolved.eyeStyle) {\n return null;\n }\n return (\n <AnimatedAvatarResolved\n {...props}\n bodyShape={resolved.bodyShape}\n eyeStyle={resolved.eyeStyle}\n color={resolved.color}\n />\n );\n}\n\ninterface AnimatedAvatarResolvedProps extends AnimatedAvatarProps {\n bodyShape: BodyShapeDefinition;\n eyeStyle: EyeStyleDefinition;\n color: ColorDefinition;\n}\n\nfunction AnimatedAvatarResolved({\n components,\n size,\n isAssistantBusy = false,\n attentive = false,\n breathe = true,\n bodyShape,\n eyeStyle,\n color,\n}: AnimatedAvatarResolvedProps) {\n const reduce = useReducedMotion();\n const { bodyTransform, eyeTransform } = computeTransforms(\n bodyShape,\n eyeStyle,\n components,\n size,\n );\n\n const eyeVB = eyeStyle.sourceViewBox;\n const bodyVB = bodyShape.viewBox;\n const bodyScaleFactor = Math.min(size / bodyVB.width, size / bodyVB.height);\n const bodyTx = (size - bodyVB.width * bodyScaleFactor) / 2;\n const bodyTy = (size - bodyVB.height * bodyScaleFactor) / 2;\n const remapScale = Math.min(\n bodyVB.width / eyeVB.width,\n bodyVB.height / eyeVB.height,\n );\n\n const override = components.faceCenterOverrides.find(\n (o) => o.bodyShape === bodyShape.id && o.eyeStyle === eyeStyle.id,\n );\n const faceCenter = override ? override.faceCenter : bodyShape.faceCenter;\n const remapTx = faceCenter.x - eyeStyle.eyeCenter.x * remapScale;\n const remapTy = faceCenter.y - eyeStyle.eyeCenter.y * remapScale;\n\n const eyeCenterOutputX =\n bodyScaleFactor * (remapTx + eyeStyle.eyeCenter.x * remapScale) + bodyTx;\n const eyeCenterOutputY =\n bodyScaleFactor * (remapTy + eyeStyle.eyeCenter.y * remapScale) + bodyTy;\n\n // Wobble variants are only used during streaming. Compute them lazily so\n // idle avatars (including the set mounted during onboarding) do no path\n // transformation work.\n const morphPaths = useMemo(\n () =>\n isAssistantBusy\n ? precomputeWobbledPaths(bodyShape.svgPath, 16, 0.06)\n : [bodyShape.svgPath],\n [bodyShape.svgPath, isAssistantBusy],\n );\n\n const [isBlinking, setIsBlinking] = useState(false);\n const [twitchAngle, setTwitchAngle] = useState(0);\n\n const bodyPathRef = useRef<SVGPathElement | null>(null);\n\n useEffect(() => {\n // Force eyes open whenever blinking is disabled (reduced-motion or\n // streaming). A blink is a `setIsBlinking(true)` → 150ms → `false` pair;\n // if `isAssistantBusy` flips true mid-blink, this effect's cleanup cancels the\n // pending \"un-blink\" timeout, so without this reset `isBlinking` freezes\n // at `true` and the eyes stay squished (scaleY 0.1) until the component\n // remounts (page refresh / conversation switch). Mirrors the twitch\n // guard (`effectiveTwitchAngle = isAssistantBusy ? 0 : twitchAngle`).\n if (reduce || isAssistantBusy) {\n setIsBlinking(false);\n return;\n }\n let cancelled = false;\n\n function scheduleBlink() {\n return setTimeout(\n () => {\n if (cancelled) {\n return;\n }\n setIsBlinking(true);\n setTimeout(() => {\n if (cancelled) {\n return;\n }\n setIsBlinking(false);\n if (Math.random() < 0.2) {\n setTimeout(() => {\n if (cancelled) {\n return;\n }\n setIsBlinking(true);\n setTimeout(() => {\n if (cancelled) {\n return;\n }\n setIsBlinking(false);\n scheduleBlink();\n }, 150);\n }, 200);\n } else {\n scheduleBlink();\n }\n }, 150);\n },\n randomBetween(3000, 7000),\n );\n }\n\n const timer = scheduleBlink();\n\n return () => {\n cancelled = true;\n clearTimeout(timer);\n };\n }, [reduce, isAssistantBusy]);\n\n useEffect(() => {\n // Reset the body angle when twitching is disabled so a twitch interrupted\n // mid-flight by streaming can't freeze the body rotated. (The render also\n // guards this via `effectiveTwitchAngle`, but resetting the state keeps it\n // correct after streaming ends without waiting for the next twitch cycle.)\n if (reduce || isAssistantBusy) {\n setTwitchAngle(0);\n return;\n }\n let cancelled = false;\n\n function scheduleTwitch() {\n return setTimeout(\n () => {\n if (cancelled) {\n return;\n }\n const angle = (Math.random() < 0.5 ? -1 : 1) * randomBetween(1, 2);\n setTwitchAngle(angle);\n setTimeout(() => {\n if (cancelled) {\n return;\n }\n setTwitchAngle(0);\n scheduleTwitch();\n }, 200);\n },\n randomBetween(8000, 15000),\n );\n }\n\n const timer = scheduleTwitch();\n\n return () => {\n cancelled = true;\n clearTimeout(timer);\n };\n }, [reduce, isAssistantBusy]);\n\n // Morph path cycling (only during streaming).\n //\n // Written straight to the DOM rather than held in React state. The morph is\n // decoration — a 6.7Hz wobble on a body outline — but as state it put a\n // React update on the queue every 150ms, per visible busy avatar, for the\n // whole length of every streaming turn. React counts commits that finish\n // with an update already pending and throws `Maximum update depth exceeded`\n // once fifty-one land back to back, so purely visual work has no business in\n // the commit stream at all; this was the most frequently blamed frame in\n // that error family (LUM-2859). `d` stays out of the rendered props below,\n // so an unrelated re-render never clobbers the imperative value.\n useEffect(() => {\n const el = bodyPathRef.current;\n if (!el) {\n return;\n }\n const basePath = morphPaths[0] ?? bodyShape.svgPath;\n if (!isAssistantBusy || reduce || morphPaths.length <= 1) {\n el.setAttribute(\"d\", basePath);\n return;\n }\n\n let idx = 0;\n const timer = setInterval(() => {\n idx = (idx + 1) % morphPaths.length;\n const next = morphPaths[idx];\n if (next) {\n el.setAttribute(\"d\", next);\n }\n }, 150);\n\n return () => {\n clearInterval(timer);\n // A turn that ends mid-cycle would otherwise leave the body frozen on a\n // wobbled variant instead of settling back to its resting shape.\n el.setAttribute(\"d\", basePath);\n };\n }, [isAssistantBusy, reduce, morphPaths, bodyShape.svgPath]);\n\n const bodyCenterX = size / 2;\n const bodyCenterY = size / 2;\n\n const breatheAnimation = reduce\n ? \"none\"\n : isAssistantBusy\n ? \"avatar-morph-scale 2.4s ease-in-out infinite, avatar-morph-rotate 3s ease-in-out infinite\"\n : breathe\n ? \"avatar-breathe-kf 4s ease-in-out infinite\"\n : \"none\";\n\n const effectiveTwitchAngle = isAssistantBusy ? 0 : twitchAngle;\n // Never squish the eyes while streaming — guards the one frame between\n // `isAssistantBusy` flipping true and the blink effect resetting `isBlinking`.\n const effectiveBlinking = isBlinking && !isAssistantBusy;\n // Resting shape. The morph effect above drives `d` from here on, so this\n // value must stay stable across re-renders — React only patches attributes\n // whose props changed, which is what keeps the imperative writes intact.\n const baseBodyPath = morphPaths[0] ?? bodyShape.svgPath;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox={`0 0 ${size} ${size}`}\n // The morph is written straight to the DOM (see below), so this is the\n // one place the busy state is legible from outside: a test, or a reader\n // of the tree, cannot see a path wobble.\n data-busy={isAssistantBusy ? \"true\" : undefined}\n style={{\n animation: breatheAnimation,\n transformOrigin: \"center\",\n // The body fills the viewBox edge to edge, so the busy wobble (±6%) and\n // the idle twitch draw past it and would otherwise be clipped flat.\n overflow: \"visible\",\n }}\n >\n <g\n style={{\n transform: `rotate(${effectiveTwitchAngle}deg)`,\n transformOrigin: `${bodyCenterX}px ${bodyCenterY}px`,\n transition:\n effectiveTwitchAngle !== 0\n ? \"transform 0.2s ease-in-out\"\n : \"transform 0.3s ease-out\",\n }}\n >\n <path\n ref={bodyPathRef}\n d={baseBodyPath}\n fill={color.hex}\n transform={bodyTransform}\n style={{\n transition: isAssistantBusy ? \"d 0.3s ease-in-out\" : \"none\",\n }}\n />\n </g>\n\n <g\n style={{\n // Blink first: a squish that a widening cancelled would read as the\n // creature failing to blink rather than as it paying attention.\n transform: effectiveBlinking\n ? \"scaleY(0.1)\"\n : attentive\n ? \"scale(1.12, 1.22)\"\n : \"scaleY(1)\",\n transformOrigin: `${eyeCenterOutputX}px ${eyeCenterOutputY}px`,\n transition: \"transform 0.15s ease-in-out\",\n }}\n >\n {eyeStyle.paths.map((p: EyePathDefinition, i: number) => (\n <path key={i} d={p.svgPath} fill={p.color} transform={eyeTransform} />\n ))}\n </g>\n </svg>\n );\n}\n","/**\n * The size a decorative layer positions itself against, kept live.\n *\n * Two boxes qualify, so this module owns both and the fallback dimensions\n * they share: `useElementSize` for a container (via `ResizeObserver`) and\n * `useLayoutViewportSize` for the layout viewport (via `resize`).\n *\n * Which one a layer wants is the whole point of the split. Layers that anchor\n * to a container's edges (the onboarding stage, the About Assistant stage)\n * read the element box, so their `absolute` children resolve against the same\n * box the `%`-positioned foreground uses. That is what holds up on iOS, where\n * a `position: fixed` layer measured from `window.innerHeight` resolves\n * against the taller layout viewport instead of the container. Layers that\n * genuinely anchor to the screen edge, or that pair a size with a\n * (viewport-relative) `getBoundingClientRect()`, want the layout viewport.\n *\n * \"Layout viewport\" is deliberate, and is not a third name for the two things\n * that already carry one. It is `window.innerWidth` / `innerHeight`: the box\n * CSS resolves `%` and `dvh` against, which does NOT shrink when the soft\n * keyboard opens.\n *\n * - `useVisibleViewport` (`use-visible-viewport.ts`) is the *visual* viewport,\n * which does shrink with the keyboard and reports no width. Sizing artwork\n * from it would resize the artwork every time a field is focused.\n * - `useOnboardingWindowSize` (`use-onboarding-window-size.ts`) is the Electron\n * OS window, driven over IPC. Nothing to do with either viewport.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Visual_Viewport_API#visual_viewport_vs._layout_viewport\n */\n\nimport { useLayoutEffect, useState, useSyncExternalStore } from \"react\";\n\nexport interface StageSize {\n w: number;\n h: number;\n}\n\nconst FALLBACK: StageSize = { w: 1280, h: 800 };\n\nexport function layoutViewportSize(): StageSize {\n if (typeof window === \"undefined\") {\n return FALLBACK;\n }\n return { w: window.innerWidth, h: window.innerHeight };\n}\n\n/**\n * The layout viewport, as an external store: one `resize` listener and one\n * snapshot shared by every consumer, however many mount.\n *\n * `getSnapshot` reads live but returns the *previous* object whenever both\n * dimensions are unchanged. `useSyncExternalStore` calls it on every render\n * and bails out only on reference equality, so a freshly built `{ w, h }`\n * would re-render forever; this is the same caching contract\n * `typed-storage.ts` implements for its non-primitive snapshots. It also\n * means a `resize` that leaves the box alone (zoom, the iOS keyboard, an\n * orientation change that settles back) costs nothing downstream.\n */\nlet layoutViewportSnapshot: StageSize = FALLBACK;\nconst layoutViewportListeners = new Set<() => void>();\n\nfunction notifyLayoutViewportResize(): void {\n for (const listener of layoutViewportListeners) {\n listener();\n }\n}\n\nfunction subscribeToLayoutViewport(onStoreChange: () => void): () => void {\n if (layoutViewportListeners.size === 0) {\n window.addEventListener(\"resize\", notifyLayoutViewportResize);\n }\n layoutViewportListeners.add(onStoreChange);\n return () => {\n layoutViewportListeners.delete(onStoreChange);\n if (layoutViewportListeners.size === 0) {\n window.removeEventListener(\"resize\", notifyLayoutViewportResize);\n }\n };\n}\n\nfunction getLayoutViewportSnapshot(): StageSize {\n const next = layoutViewportSize();\n if (\n next.w !== layoutViewportSnapshot.w ||\n next.h !== layoutViewportSnapshot.h\n ) {\n layoutViewportSnapshot = next;\n }\n return layoutViewportSnapshot;\n}\n\nfunction getLayoutViewportServerSnapshot(): StageSize {\n return FALLBACK;\n}\n\n/** Subscribe to nothing, for the opt-out below. */\nconst noopSubscribe = () => () => {};\n\n/**\n * The layout viewport size, kept live on `resize`.\n *\n * Reach for CSS first. If what you are writing is a size or a position that\n * `clamp()`, `vmin`, `vw` or `%` can express, write it in CSS: it resolves\n * against a defined box automatically, updates without a React render, and\n * cannot disagree with the `%`-positioned foreground next to it. Most of this\n * app already sizes that way (`max-w-[min(520px,calc(100vw-8rem))]`,\n * `w-[90vw] max-w-[800px]`).\n *\n * This hook is for the cases CSS genuinely cannot reach: a number handed to\n * an animation library, or one paired with a `getBoundingClientRect()`. The\n * onboarding and voice decorative layers use it well beyond that,\n * computing `clamp()` in JavaScript, which is what LUM-3204 tracks. Adding a\n * consumer that CSS could have expressed makes that worse.\n *\n * Lives here rather than at the call site so the SSR fallback and the\n * `FALLBACK` dimensions keep one owner: a caller re-deriving this from\n * `window.innerWidth` ends up restating those constants, and then they drift\n * from the ones `layoutViewportSize` hands every other layer on the same\n * screen.\n *\n * Pass `enabled: false` when something else is supplying the size and this is\n * only a fallback. The value stays correct; it just stops subscribing.\n */\nexport function useLayoutViewportSize(enabled = true): StageSize {\n return useSyncExternalStore(\n enabled ? subscribeToLayoutViewport : noopSubscribe,\n getLayoutViewportSnapshot,\n getLayoutViewportServerSnapshot,\n );\n}\n\nexport interface ElementSize {\n /** Callback ref — attach to the element to measure (`<div ref={ref}>`). */\n ref: (el: HTMLElement | null) => void;\n size: StageSize;\n}\n\n/**\n * Measure an element's box, kept live via `ResizeObserver`. Uses a callback\n * ref (stored in state) so it re-measures whenever the element\n * mounts/unmounts — robust to containers that appear after the first render\n * (e.g. a step that's conditionally rendered). Returns the layout viewport\n * size until the element mounts.\n *\n * A measurement that leaves both dimensions alone keeps the previous object,\n * the same caching contract `useLayoutViewportSize` above holds: an observed\n * box is notified for far more than its own size (a sibling reflow, a scrollbar\n * appearing), and a consumer reading only the width should not re-render for\n * every one of those.\n */\nexport function useElementSize(): ElementSize {\n const [el, setEl] = useState<HTMLElement | null>(null);\n const [size, setSize] = useState<StageSize>(() => layoutViewportSize());\n\n useLayoutEffect(() => {\n if (!el) {\n return;\n }\n const measure = () => {\n const rect = el.getBoundingClientRect();\n setSize((prev) =>\n prev.w === rect.width && prev.h === rect.height\n ? prev\n : { w: rect.width, h: rect.height },\n );\n };\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(el);\n return () => observer.disconnect();\n }, [el]);\n\n return { ref: setEl, size };\n}\n","/**\n * Shared \"stage size\" for the research-onboarding decorative layers.\n *\n * SPIKE — research-onboarding flow.\n *\n * The decorative layers (the avatar character stage, the edge/peeking crowd, the\n * bottom eyes, the coin arc) and the foreground content must share one\n * coordinate space. Each onboarding screen measures its own `relative h-full`\n * container — the dvh-sized, safe-area-padded onboarding box (see\n * `root-layout.tsx`) — via `useElementSize` (from `@/hooks/use-element-size`)\n * and publishes that size here. The decorative layers read it with\n * `useOnboardingStageSize()` and position themselves `absolute` inside that\n * same container, so they line up with the `%`-positioned foreground\n * regardless of mobile viewport quirks. When no provider is present the hook\n * falls back to the window size so standalone use never breaks.\n */\n\nimport { createContext, useContext, type ReactNode } from \"react\";\n\nimport {\n useLayoutViewportSize,\n type StageSize,\n} from \"@app/hooks/use-element-size\";\n\nconst OnboardingStageSizeContext = createContext<StageSize | null>(null);\n\nexport function OnboardingStageSizeProvider({\n size,\n children,\n}: {\n size: StageSize;\n children: ReactNode;\n}) {\n return (\n <OnboardingStageSizeContext.Provider value={size}>\n {children}\n </OnboardingStageSizeContext.Provider>\n );\n}\n\n/**\n * The size of the onboarding stage container. Falls back to the window size\n * (kept live on resize) when used outside a provider.\n */\nexport function useOnboardingStageSize(): StageSize {\n const ctx = useContext(OnboardingStageSizeContext);\n // A provider supplies the size; no need to track the window.\n const fallback = useLayoutViewportSize(!ctx);\n return ctx ?? fallback;\n}\n","/**\n * Animated character stage for the \"Give me a face and a name\" picker step.\n *\n * SPIKE — research-onboarding flow.\n *\n * Owns all 10 pool characters in one fixed coordinate layer: 9 sit at edge\n * slots (cut off by the viewport) and 1 is the selected avatar in the center.\n * Sizes scale with the viewport so the cast reads big on desktop and still fits\n * on mobile.\n *\n * On selection nothing slides across the middle — it feels like the characters\n * step backstage and reappear:\n * - the newly selected character flies off-screen out of its edge slot, then\n * pops into the center with a tiny bounce;\n * - the previously-centered character shrinks away at the center, then fades\n * back in at the slot the new one vacated.\n *\n * Decorative layer: `aria-hidden`, `pointer-events-none` (the arrows + inputs\n * that drive it live in the screen above). Reduced-motion safe.\n */\n\nimport { useMemo } from \"react\";\nimport { motion, useReducedMotion, type Easing } from \"motion/react\";\n\nimport { AnimatedAvatar } from \"@app/components/avatar/animated-avatar\";\nimport { useOnboardingStageSize } from \"@app/domains/onboarding/hooks/use-onboarding-stage-size\";\nimport type { CharacterComponents, CharacterTraits } from \"@app/types/avatar\";\n\n/** Where the centered avatar sits, as viewport fractions. */\nconst CENTER_POINT = { x: 0.5, y: 0.43 };\n\n/**\n * Slight per-slot tilt (degrees) so the edge cast isn't all bolt-upright. Some\n * are left at 0. Indexed by edge slot; the centered avatar is always upright.\n */\nexport const SLOT_ROTATIONS = [-8, 6, 9, 0, 7, -6, 5, 0, -7, 4, -5, 6];\nfunction slotRotation(slot: number): number {\n return SLOT_ROTATIONS[slot % SLOT_ROTATIONS.length] ?? 0;\n}\n\n/**\n * Two-plane depth per edge slot — 0 = background, 1 = foreground — shared by both\n * onboarding screens (the first-screen scatter and this picker) so the cast\n * layers identically. The one value drives stacking (z-index), opacity, and\n * size together: background avatars are dimmed, shrunk, and sit behind; the\n * foreground stays full opacity and on top. No in-between opacities. Slots past\n * the table default to foreground. The centered (selected) avatar always renders\n * above every edge.\n */\nconst SLOT_DEPTH = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0];\nconst DEPTH_SCALE = [0.72, 1];\nconst DEPTH_OPACITY = [0.4, 1];\nconst DEPTH_Z = [10, 20];\n/** z-index for the centered avatar — above every edge plane. */\nconst CENTER_Z = 50;\n\n/** Per-slot size tweak on top of the depth scale. Defaults to 1 (no change). */\nconst SLOT_SIZE_MULTIPLIER: Record<number, number> = { 6: 1.1 };\n\nexport function slotDepthScale(slot: number): number {\n const base = DEPTH_SCALE[SLOT_DEPTH[slot] ?? 1] ?? 1;\n return base * (SLOT_SIZE_MULTIPLIER[slot] ?? 1);\n}\nexport function slotDepthOpacity(slot: number): number {\n return DEPTH_OPACITY[SLOT_DEPTH[slot] ?? 1] ?? 1;\n}\nexport function slotDepthZ(slot: number): number {\n return DEPTH_Z[SLOT_DEPTH[slot] ?? 1] ?? 20;\n}\n\n/**\n * Edge avatars render at this (large) px box; the center avatar is shown\n * smaller (scaled down) so it sits between the arrows. Both scale with the\n * viewport so the cast is big on desktop and fits on mobile.\n */\nexport function edgeSize(w: number, h: number): number {\n // Scales with the smaller viewport dimension so it shrinks on mobile; the low\n // floor keeps it from being oversized on narrow phones.\n return Math.round(Math.max(130, Math.min(Math.min(w, h) * 0.4, 420)));\n}\nfunction centerSize(w: number, h: number): number {\n // Kept under the arrow gap (arrows sit at 50% ± 170px) so it fits between.\n return Math.round(Math.max(110, Math.min(Math.min(w, h) * 0.21, 205)));\n}\n\n/**\n * The 9 edge slots as px center points around the perimeter. Order is stable so\n * a given slot keeps its place as characters swap through it. The top and\n * bottom slots are offset off-center so nothing sits behind the centered\n * progress header or the Continue button. Each slot's center sits well inside\n * the edge avatar's radius from the screen edge, so most of the avatar is cut\n * off — only the inner (eye-bearing) part shows.\n */\nexport function edgeSlots(\n w: number,\n h: number,\n edgeRadius: number,\n): { x: number; y: number }[] {\n const side = edgeRadius * 0.4; // ~60% of the avatar clipped off-screen\n const corner = edgeRadius * 0.48;\n // Order matches HARDCODED_POOL indices 1–11 (see onboarding-avatar-pool-store).\n return [\n { x: corner, y: corner }, // 0 top-left corner → purple blob\n { x: w * 0.3, y: side - h * 0.03 }, // 1 top, left of center → orange star\n { x: w * 0.72, y: side - h * 0.1 }, // 2 top, right of center → pink blob\n { x: w - corner, y: corner }, // 3 top-right corner → yellow ninja\n { x: w - side, y: h * 0.72 }, // 4 right lower → pink urchin\n { x: w - corner, y: h - corner }, // 5 bottom-right corner → orange burst\n { x: corner, y: h - corner }, // 6 bottom-left corner → green ghost\n { x: side, y: h * 0.5 }, // 7 left mid → orange sprout\n { x: w - side, y: h * 0.3 }, // 8 right upper → teal star\n { x: w * 0.28, y: h - side + h * 0.05 }, // 9 bottom, left of center → pink flower\n { x: w * 0.77, y: h - side }, // 10 bottom, right of center → yellow cloud\n ];\n}\n\n/** A point pushed well off-screen along the ray from center through `from`. */\nfunction offscreenPoint(\n from: { x: number; y: number },\n cx: number,\n cy: number,\n w: number,\n h: number,\n): { x: number; y: number } {\n const dx = from.x - cx;\n const dy = from.y - cy;\n const len = Math.hypot(dx, dy) || 1;\n const push = Math.max(w, h);\n return { x: from.x + (dx / len) * push, y: from.y + (dy / len) * push };\n}\n\nexport interface OnboardingCharacterStageProps {\n components: CharacterComponents;\n characters: CharacterTraits[];\n /** Index of the character shown in the center. */\n centerChar: number;\n /** Char index occupying each of the 9 edge slots, in slot order. */\n edgeOrder: number[];\n /**\n * The newly selected character + the edge slot it came from — it flies off\n * screen, then pops into the center. Null on first render.\n */\n entering: { char: number; fromSlot: number } | null;\n /**\n * The previously-centered character + the edge slot it's heading to — it\n * shrinks away at the center, then reappears at that slot. Null on first\n * render.\n */\n exiting: { char: number; toSlot: number } | null;\n /** Fired with the entering char index when its animation finishes. */\n onEnterComplete: (char: number) => void;\n /** Fired when an edge character is clicked — selects it into the center. */\n onSelectChar: (char: number) => void;\n}\n\nexport function OnboardingCharacterStage({\n components,\n characters,\n centerChar,\n edgeOrder,\n entering,\n exiting,\n onEnterComplete,\n onSelectChar,\n}: OnboardingCharacterStageProps) {\n const { w, h } = useOnboardingStageSize();\n const reduce = useReducedMotion();\n\n // On narrow screens the side avatars sit behind the title/fields and feel\n // crowded, so the edge cast is kept to the top (slots 0–3) and bottom corners\n // (5, 6). Dropped on mobile: the side slots 4 (right-lower), 7 (left-mid), 8\n // (right-upper), plus the two bottom-center slots 9/10 (desktop-only, else the\n // bottom re-crowds). Those characters stay reachable via the arrows.\n const isMobile = w < 640;\n const MOBILE_HIDDEN_SLOTS = new Set([4, 7, 8, 9, 10]);\n const slotHidden = (slot: number) =>\n isMobile && MOBILE_HIDDEN_SLOTS.has(slot);\n\n // Every avatar renders in the large edge box; the center one is scaled down.\n const size = edgeSize(w, h);\n const half = size / 2;\n const edgeRadius = size / 2;\n const centerScaleVal = centerSize(w, h) / size;\n const centerPx = centerSize(w, h);\n\n const slotOfChar = useMemo(() => {\n const map = new Map<number, number>();\n edgeOrder.forEach((charIndex, slot) => map.set(charIndex, slot));\n return map;\n }, [edgeOrder]);\n\n const centerX = CENTER_POINT.x * w;\n const centerY = CENTER_POINT.y * h;\n const centerTx = centerX - half;\n const centerTy = centerY - half;\n const slots = useMemo(() => edgeSlots(w, h, edgeRadius), [w, h, edgeRadius]);\n\n return (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute inset-0 z-0 overflow-hidden\"\n >\n {/* Soft contact shadow under the centered avatar. */}\n <div\n className=\"absolute rounded-[50%] bg-[var(--aux-black,#000)] opacity-20 blur-md\"\n style={{\n width: centerPx * 0.62,\n height: 16,\n left: centerX - centerPx * 0.31,\n top: centerY + centerPx * 0.4,\n }}\n />\n\n {characters.map((traits, i) => {\n const isCenter = i === centerChar;\n const isEntering = !reduce && entering?.char === i;\n const isExiting = !reduce && exiting?.char === i;\n\n // Newly selected: fly off-screen out of its old slot, go invisible,\n // then pop into the center with a tiny bounce. No visible cross-screen\n // slide (it's transparent while it teleports back to center).\n if (isEntering) {\n const from = slots[entering.fromSlot]!;\n const off = offscreenPoint(from, centerX, centerY, w, h);\n // Start at the source slot's depth (it may be a dim/shrunk background\n // slot), then resolve to the full-size, full-opacity centre.\n const fromScale = slotDepthScale(entering.fromSlot);\n const fromOpacity = slotDepthOpacity(entering.fromSlot);\n return (\n <motion.div\n key={i}\n className=\"absolute left-0 top-0\"\n style={{ width: size, height: size, zIndex: CENTER_Z }}\n initial={false}\n animate={{\n x: [\n from.x - half,\n off.x - half,\n off.x - half,\n centerTx,\n centerTx,\n centerTx,\n ],\n y: [\n from.y - half,\n off.y - half,\n off.y - half,\n centerTy,\n centerTy,\n centerTy,\n ],\n scale: [\n fromScale,\n fromScale,\n fromScale,\n centerScaleVal * 0.7,\n centerScaleVal * 1.08,\n centerScaleVal,\n ],\n opacity: [fromOpacity, fromOpacity, 0, 0, 1, 1],\n }}\n transition={{\n duration: 0.85,\n times: [0, 0.28, 0.34, 0.42, 0.72, 1],\n ease: [\n \"easeIn\",\n \"linear\",\n \"linear\",\n \"easeOut\",\n \"easeOut\",\n ] as Easing[],\n }}\n onAnimationComplete={() => onEnterComplete(i)}\n >\n {/* Ends upright in the center. */}\n <AnimatedAvatar\n components={components}\n traits={traits}\n size={size}\n />\n </motion.div>\n );\n }\n\n // Previously centered — the exact opposite of the entering move: it\n // shrinks + fades away at the center, teleports off-screen (invisible),\n // then flies in from the edge and bounces into its slot. If that slot is\n // hidden on mobile, skip it so it doesn't land in a dropped side slot.\n if (isExiting) {\n if (slotHidden(exiting.toSlot)) {\n return null;\n }\n const to = slots[exiting.toSlot]!;\n const off = offscreenPoint(to, centerX, centerY, w, h);\n // Settle into the destination slot's depth (dim/shrunk if it's a\n // background slot) rather than always full size + opacity.\n const toScale = slotDepthScale(exiting.toSlot);\n const toOpacity = slotDepthOpacity(exiting.toSlot);\n return (\n <motion.div\n key={i}\n className=\"absolute left-0 top-0\"\n style={{\n width: size,\n height: size,\n zIndex: slotDepthZ(exiting.toSlot),\n }}\n initial={false}\n animate={{\n x: [\n centerTx,\n centerTx,\n off.x - half,\n off.x - half,\n to.x - half,\n to.x - half,\n ],\n y: [\n centerTy,\n centerTy,\n off.y - half,\n off.y - half,\n to.y - half,\n to.y - half,\n ],\n scale: [\n centerScaleVal,\n centerScaleVal * 0.6,\n toScale,\n toScale,\n toScale * 1.1,\n toScale,\n ],\n opacity: [1, 0, 0, toOpacity, toOpacity, toOpacity],\n }}\n transition={{\n duration: 0.85,\n times: [0, 0.28, 0.34, 0.45, 0.78, 1],\n ease: [\n \"easeIn\",\n \"linear\",\n \"linear\",\n \"easeOut\",\n \"easeOut\",\n ] as Easing[],\n }}\n >\n {/* Lands tilted in its destination slot. */}\n <div\n style={{\n transform: `rotate(${slotRotation(exiting.toSlot)}deg)`,\n }}\n >\n <AnimatedAvatar\n components={components}\n traits={traits}\n size={size}\n breathe={false}\n />\n </div>\n </motion.div>\n );\n }\n\n const charSlot = slotOfChar.get(i) ?? 0;\n // Drop the side-slot characters on mobile (they're not the center).\n if (!isCenter && slotHidden(charSlot)) {\n return null;\n }\n const point = isCenter ? { x: centerX, y: centerY } : slots[charSlot]!;\n return (\n <motion.div\n key={i}\n // Edge avatars are clickable to select; the center one isn't.\n className={`absolute left-0 top-0 ${isCenter ? \"\" : \"pointer-events-auto cursor-pointer\"}`}\n style={{\n width: size,\n height: size,\n zIndex: isCenter ? CENTER_Z : slotDepthZ(charSlot),\n }}\n initial={false}\n animate={{\n x: point.x - half,\n y: point.y - half,\n // Background slots sit smaller, dimmer, and behind (see slot depth).\n scale: isCenter ? centerScaleVal : slotDepthScale(charSlot),\n opacity: isCenter ? 1 : slotDepthOpacity(charSlot),\n }}\n transition={\n reduce\n ? { duration: 0 }\n : { type: \"spring\", stiffness: 230, damping: 26 }\n }\n onClick={isCenter ? undefined : () => onSelectChar(i)}\n >\n {/* Edge avatars sit slightly tilted; the center one stays upright.\n Only the centered (selected) avatar breathes — the scattered\n edge characters stay still. */}\n <div\n style={{\n transform: isCenter\n ? undefined\n : `rotate(${slotRotation(slotOfChar.get(i) ?? 0)}deg)`,\n }}\n >\n <AnimatedAvatar\n components={components}\n traits={traits}\n size={size}\n breathe={isCenter}\n />\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n","/**\n * Shared pool of randomly-generated avatar characters for the onboarding flow.\n *\n * SPIKE — research-onboarding flow.\n *\n * The research form scatters these 10 characters, cut off, around the screen\n * edges; the upcoming \"Give me a face and a name\" step cycles through the same\n * pool (one selected in the center, the rest peeking at the edges). Keeping the\n * pool — and which one is selected — in a store lets both steps render the same\n * characters and lets the picker animate a character from its edge slot into the\n * center and back.\n *\n * The cast is a fixed, hand-picked set so the scene matches the design. Which\n * of those faces starts centered is chosen at random so the step does not\n * always open on the same character.\n */\n\nimport { create } from \"zustand\";\n\nimport { createSelectors } from \"@app/utils/create-selectors\";\nimport type { CharacterComponents, CharacterTraits } from \"@app/types/avatar\";\n\n/** How many characters to scatter / cycle through. */\nexport const AVATAR_POOL_SIZE = 12;\n\n/**\n * The hand-picked cast, chosen to match the design. Spans all 9 body shapes and\n * all 9 eye styles (a few unavoidably repeat across 12 characters) so the picker\n * shows the full variety instead of leaning on the same faces. Index 0 is the\n * picker's designed center when the random draw lands on 0.\n */\n// Indices 1–11 fill the picker's edge slots in order (see `edgeSlots` in\n// onboarding-character-stage). Tuned to match the design.\nconst HARDCODED_POOL: CharacterTraits[] = [\n { bodyShape: \"urchin\", eyeStyle: \"goofy\", color: \"teal\" }, // center: teal spiky\n { bodyShape: \"blob\", eyeStyle: \"grumpy\", color: \"purple\" }, // top-left: purple blob\n { bodyShape: \"star\", eyeStyle: \"surprised\", color: \"orange\" }, // top L: orange star\n { bodyShape: \"blob\", eyeStyle: \"gentle\", color: \"pink\" }, // top R: pink blob\n { bodyShape: \"ninja\", eyeStyle: \"angry\", color: \"yellow\" }, // top-right: yellow angular\n { bodyShape: \"urchin\", eyeStyle: \"curious\", color: \"pink\" }, // right lower: pink spiky\n { bodyShape: \"burst\", eyeStyle: \"quirky\", color: \"orange\" }, // bottom-right: orange burst\n { bodyShape: \"ghost\", eyeStyle: \"bashful\", color: \"green\" }, // bottom-left: green sleepy\n { bodyShape: \"sprout\", eyeStyle: \"dazed\", color: \"orange\" }, // left mid: orange-red\n { bodyShape: \"star\", eyeStyle: \"goofy\", color: \"teal\" }, // right upper: teal star\n { bodyShape: \"flower\", eyeStyle: \"angry\", color: \"pink\" }, // bottom L of center: pink flower\n { bodyShape: \"cloud\", eyeStyle: \"curious\", color: \"yellow\" }, // bottom R of center: yellow cloud\n];\n\ninterface OnboardingAvatarPoolState {\n /** The cast; empty until `ensureGenerated` runs. */\n characters: CharacterTraits[];\n /** Index of the character shown as the selected/center avatar in the picker. */\n selectedIndex: number;\n /** Populate the pool once (no-op if already done). */\n ensureGenerated: (\n components: CharacterComponents,\n random?: () => number,\n ) => void;\n /** Replace one character's traits (e.g. the picker's shuffle-dice reroll). */\n setCharacterTraits: (index: number, traits: CharacterTraits) => void;\n setSelectedIndex: (index: number) => void;\n selectNext: () => void;\n selectPrev: () => void;\n}\n\nconst useOnboardingAvatarPoolStoreBase = create<OnboardingAvatarPoolState>(\n (set, get) => ({\n characters: [],\n selectedIndex: 0,\n ensureGenerated: (_components, random = Math.random) => {\n if (get().characters.length > 0) {\n return;\n }\n set({\n characters: HARDCODED_POOL,\n selectedIndex: pickInitialAvatarIndex(HARDCODED_POOL.length, random),\n });\n },\n setCharacterTraits: (index, traits) =>\n set((s) => ({\n characters: s.characters.map((c, i) => (i === index ? traits : c)),\n })),\n setSelectedIndex: (index) => set({ selectedIndex: index }),\n selectNext: () =>\n set((s) => ({\n selectedIndex:\n s.characters.length === 0\n ? 0\n : (s.selectedIndex + 1) % s.characters.length,\n })),\n selectPrev: () =>\n set((s) => ({\n selectedIndex:\n s.characters.length === 0\n ? 0\n : (s.selectedIndex - 1 + s.characters.length) % s.characters.length,\n })),\n }),\n);\n\nexport const useOnboardingAvatarPoolStore = createSelectors(\n useOnboardingAvatarPoolStoreBase,\n);\n\nexport function pickInitialAvatarIndex(\n count: number,\n random: () => number = Math.random,\n): number {\n if (count <= 0) {\n return 0;\n }\n return Math.floor(random() * count);\n}\n","/**\n * The onboarding cast on the first screen: the shared pool of characters\n * scattered, cut off, around the edges.\n *\n * SPIKE — research-onboarding flow.\n *\n * Uses the same edge slots and rotations as the picker step\n * (`OnboardingCharacterStage`) so the arrangement matches between the two\n * screens, but adds a per-slot depth pass — a slight size variation and reduced\n * opacity on a few of the cast — so the first screen's ring reads with depth\n * rather than a flat, uniform border. Pool index 0 is the picker's centered\n * avatar, so it's omitted here (the form sits in the center); indices 1–9 fill\n * edge slots 0–8.\n *\n * Decorative: `aria-hidden`, `pointer-events-none`, reduced-motion safe.\n */\n\nimport { useEffect, useMemo } from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { AnimatedAvatar } from \"@app/components/avatar/animated-avatar\";\nimport {\n edgeSize,\n edgeSlots,\n slotDepthOpacity,\n slotDepthScale,\n slotDepthZ,\n SLOT_ROTATIONS,\n} from \"@app/domains/onboarding/components/onboarding-character-stage\";\nimport { useOnboardingAvatarPoolStore } from \"@app/domains/onboarding/onboarding-avatar-pool-store\";\nimport { useLayoutViewportSize } from \"@app/hooks/use-element-size\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\n\nexport function OnboardingEdgeCharacters() {\n const components = useBundledAvatarComponents();\n const characters = useOnboardingAvatarPoolStore.use.characters();\n const ensureGenerated = useOnboardingAvatarPoolStore.use.ensureGenerated();\n const reduce = useReducedMotion();\n const { w, h } = useLayoutViewportSize();\n\n useEffect(() => {\n if (components) {\n ensureGenerated(components);\n }\n }, [components, ensureGenerated]);\n\n const size = edgeSize(w, h);\n const positions = useMemo(() => edgeSlots(w, h, size / 2), [w, h, size]);\n\n // On mobile the form fills the width, so the side avatars sit right behind it\n // and feel crowded. Keep only the top edge (slots 0–3) and bottom corners\n // (5, 6), dropping the side slots 4 (right-lower), 7 (left-mid), 8 (right-\n // upper) and the desktop-only bottom-center slots 9/10.\n const isMobile = w < 640;\n const HIDDEN_ON_MOBILE = new Set([4, 7, 8, 9, 10]);\n\n if (!components || characters.length === 0) {\n return null;\n }\n\n // Indices 1–9 sit at edge slots 0–8 (same mapping as the picker); index 0 is\n // the picker's centered avatar and isn't scattered here.\n return (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none fixed inset-0 z-0 overflow-hidden\"\n >\n {characters.map((traits, i) => {\n if (i === 0) {\n return null;\n }\n const slot = i - 1;\n if (isMobile && HIDDEN_ON_MOBILE.has(slot)) {\n return null;\n }\n const p = positions[slot];\n if (!p) {\n return null;\n }\n const rotation = SLOT_ROTATIONS[slot % SLOT_ROTATIONS.length] ?? 0;\n // Depth pass: a single per-slot layer (shared with the picker screen)\n // drives size, opacity, and stacking so the further-back avatars shrink,\n // fade, AND sit behind the front ones.\n const avatarSize = size * slotDepthScale(slot);\n const opacity = slotDepthOpacity(slot);\n const zIndex = slotDepthZ(slot);\n return (\n <div\n key={i}\n className=\"absolute\"\n style={{\n left: p.x - avatarSize / 2,\n top: p.y - avatarSize / 2,\n width: avatarSize,\n height: avatarSize,\n zIndex,\n animation: reduce\n ? undefined\n : `character-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${0.1 + i * 0.05}s both`,\n }}\n >\n {/* Opacity sits on this inner wrapper, not the animated parent: the\n `character-pop-in` keyframes animate opacity 0→1 with `both`\n fill, which would otherwise override an inline opacity on the\n same element and pin every avatar to full opacity. */}\n <div style={{ opacity, transform: `rotate(${rotation}deg)` }}>\n <AnimatedAvatar\n components={components}\n traits={traits}\n size={avatarSize}\n breathe={false}\n />\n </div>\n </div>\n );\n })}\n </div>\n );\n}\n","/**\n * Shared centered content container for the onboarding step screens.\n *\n * SPIKE — research-onboarding flow.\n *\n * Keeps the heading + Continue at a consistent height and spacing across every\n * step. Width is left to each step (append a `max-w-*`), since the copy differs.\n */\nexport const ONBOARDING_STEP_CONTENT =\n \"absolute left-1/2 top-[30%] z-10 flex w-full -translate-x-1/2 flex-col items-center gap-8 px-6 text-center\";\n\n/**\n * iOS Safari / WKWebView auto-zooms the viewport when a focused form control\n * renders below 16px. The onboarding text inputs inherit the design-library\n * 14px body size (`text-body-medium-lighter`), so append this to bump them to\n * 16px on touch phones only — desktop and Electron keep the 14px design size\n * via the `touch-mobile` guard (`width < 48rem` and `pointer: coarse`).\n * See LUM-2597.\n */\nexport const MOBILE_INPUT_NO_ZOOM = \"touch-mobile:text-[16px]\";\n\n/**\n * `--surface-base` resolved in the dark theme every onboarding screen forces on\n * itself. The app shell paints the safe-area strips from outside that subtree,\n * so what it publishes has to be the value, not the token. Otherwise the home\n * indicator sits on the light canvas and leaves a pale band along the bottom\n * edge on iOS. See `page-surface-store`.\n */\nexport const ONBOARDING_DARK_SURFACE = \"#17191C\";\n","/**\n * The canvas color the active route wants behind the whole app shell.\n *\n * On the native mobile shells the safe-area strips are padding on\n * `root-layout`'s `.app-shell`, so they show that element's own background,\n * `--surface-base`. A page whose content sits on a themed surface therefore\n * reads as a themed card floating on a neutral canvas, with the status bar and\n * the home indicator visibly not part of the page.\n *\n * A route publishes its surface here and the shell paints it, which is the only\n * element that owns both the insets and the paint. The page decides, the shell\n * applies, and nothing between them has to know about either.\n *\n * Consumed only under `isNativeMobile()`: desktop web and Electron keep the\n * neutral canvas that makes `PageShell`'s card read as a card.\n *\n * Publishers register through {@link usePublishPageSurface} and clear on\n * unmount, the same convention as the header slots in `chat-layout-slots-store`.\n */\n\nimport { useId, useLayoutEffect, useRef } from \"react\";\nimport { create } from \"zustand\";\n\nimport { createSelectors } from \"@app/utils/create-selectors\";\n\ninterface PageSurfaceState {\n /**\n * A CSS color value (usually a `var(--surface-*)` reference), or null to fall\n * back to the shell's neutral canvas.\n */\n surface: string | null;\n /**\n * Which publisher {@link surface} belongs to, so an outgoing one can tell\n * whether it is still the owner before clearing. Identity rather than color:\n * two screens overlapping on the same color are indistinguishable by value,\n * and the outgoing one would clear a surface the incoming one is still\n * showing. Not read by the shell.\n */\n owner: string | null;\n /**\n * How the strips should get to {@link surface}: the tail of a CSS\n * `transition` shorthand (duration, easing, and optional delay), or null to\n * change it in one frame.\n *\n * A page whose canvas animates has to say so, because the strips are painted\n * by a different element than the page: publishing only the destination color\n * snaps them there while the canvas is still crossfading, which is the same\n * visible seam along the edge that publishing a surface at all is meant to\n * remove. Mirror the page's own motion transition here.\n *\n * Applies to a publisher's changes of color, never to its first: see\n * {@link usePublishPageSurface}.\n */\n transition: string | null;\n}\n\ninterface PageSurfaceActions {\n setSurface: (\n surface: string | null,\n transition?: string | null,\n owner?: string | null,\n ) => void;\n}\n\nconst usePageSurfaceStoreBase = create<PageSurfaceState & PageSurfaceActions>(\n (set) => ({\n surface: null,\n transition: null,\n owner: null,\n setSurface: (surface, transition = null, owner = null) =>\n set((state) =>\n state.surface === surface &&\n state.transition === transition &&\n state.owner === owner\n ? state\n : { surface, transition, owner },\n ),\n }),\n);\n\nexport const usePageSurfaceStore = createSelectors(usePageSurfaceStoreBase);\n\n/** The neutral canvas every non-publishing surface keeps. */\nexport const DEFAULT_SHELL_BACKGROUND = \"var(--surface-base)\";\n\n/**\n * The app shell's background for a published page surface.\n *\n * Split out from the shell so the cloud gate is directly testable: desktop\n * web and Electron must keep {@link DEFAULT_SHELL_BACKGROUND} no matter what a\n * page publishes.\n */\nexport function resolveShellBackground(\n pageSurface: string | null,\n nativeMobile: boolean,\n): string {\n return pageSurface && nativeMobile ? pageSurface : DEFAULT_SHELL_BACKGROUND;\n}\n\n/**\n * The app shell's `transition` for a published surface, scoped to the color so\n * it never catches the height and padding the shell re-computes for the iOS\n * keyboard. `undefined` (not `\"none\"`) when nothing is animating, so the shell\n * leaves the property off entirely.\n */\nexport function resolveShellTransition(\n pageTransition: string | null,\n nativeMobile: boolean,\n): string | undefined {\n return pageTransition && nativeMobile\n ? `background-color ${pageTransition}`\n : undefined;\n}\n\n/**\n * Motion's named easings, in the CSS spelling of the same curves. Motion's\n * `easeInOut` is `cubic-bezier(0.42, 0, 0.58, 1)` and CSS's `ease-in-out` is\n * the same, and so on down the list, so a fade stated in one form runs on the\n * identical curve in the other.\n */\nconst CSS_EASING = {\n linear: \"linear\",\n easeIn: \"ease-in\",\n easeOut: \"ease-out\",\n easeInOut: \"ease-in-out\",\n} as const;\n\n/**\n * A page's own fade, in the subset of Motion's transition that has a CSS\n * equivalent. Omitting `ease` means Motion's default for a tween, `easeOut`.\n */\nexport interface PageSurfaceFade {\n duration: number;\n delay?: number;\n ease?: keyof typeof CSS_EASING;\n}\n\n/**\n * The CSS form of a page's Motion fade, for {@link usePublishPageSurface}.\n *\n * The strips are painted by the shell and the canvas by the page, so the same\n * fade has to be expressed twice, once for each engine. Deriving the second\n * from the first is what keeps them equal: stated separately they are two\n * literals whose agreement nothing enforces, and the seam this whole mechanism\n * exists to remove comes back the moment one is edited alone.\n */\nexport function cssTransitionFor({\n duration,\n delay = 0,\n ease = \"easeOut\",\n}: PageSurfaceFade): string {\n const timing = `${duration}s ${CSS_EASING[ease]}`;\n return delay > 0 ? `${timing} ${delay}s` : timing;\n}\n\n/**\n * Publish `surface` as the shell canvas for as long as the caller is mounted,\n * reaching it over `transition` when the page's own canvas animates there.\n *\n * `transition` applies to this caller's changes of color, never to its first\n * publish, which always lands outright.\n *\n * Layout effect, not passive: the page commits and can paint before a passive\n * effect runs, so the safe-area strips would trail the page by a frame both on\n * arrival and whenever the color resolves. It also puts the strips' transition\n * in the same frame the page starts its own, which is what keeps the two in\n * step rather than merely equal in duration.\n *\n * Pass `null` to opt out (a screen whose color is owned by a child layer). The\n * cleanup only clears a surface this caller still owns, so a screen that mounts\n * before the outgoing one unmounts keeps its color instead of flashing the\n * neutral canvas, whether or not the two happen to share a color.\n */\nexport function usePublishPageSurface(\n surface: string | null,\n transition: string | null = null,\n): void {\n const setSurface = usePageSurfaceStore.use.setSurface();\n const owner = useId();\n const published = useRef<string | null>(null);\n\n useLayoutEffect(() => {\n if (surface === null) {\n return;\n }\n // A transition is for a change of color, not an arrival. A page takes its\n // canvas color outright when it mounts, so the strips do too, and only the\n // publisher's later changes animate. Without this a page resumed straight\n // onto a themed step would leave them fading up from the neutral canvas\n // while the page itself was already there.\n const changing =\n published.current !== null && published.current !== surface;\n published.current = surface;\n setSurface(surface, changing ? transition : null, owner);\n }, [surface, transition, owner, setSurface]);\n\n // Releasing is its own effect so that publishing a new color is one store\n // write rather than a clear followed by a set. The pair lands in a single\n // commit either way, but the clear would be a frame of the neutral canvas\n // the moment anything moved them apart.\n useLayoutEffect(\n () => () => {\n if (usePageSurfaceStore.getState().owner === owner) {\n setSurface(null);\n }\n },\n [owner, setSurface],\n );\n}\n","/**\n * Research-onboarding front door — collects name and role, then\n * hands off to the assistant to research the person.\n *\n * SPIKE — research-onboarding flow.\n *\n * Presentational only: owns local field state and validation, delegates the\n * context build + handoff navigation to the caller via `onSubmit`.\n */\n\nimport { useState } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\n\nimport { OnboardingEdgeCharacters } from \"@app/domains/onboarding/components/onboarding-edge-characters\";\nimport { OnboardingLayout } from \"@app/components/onboarding-layout\";\nimport { Button } from \"@mycadet/design-library/components/button\";\nimport { Input } from \"@mycadet/design-library/components/input\";\n\nimport {\n MOBILE_INPUT_NO_ZOOM,\n ONBOARDING_DARK_SURFACE,\n} from \"@app/domains/onboarding/onboarding-step-layout\";\nimport { usePublishPageSurface } from \"@app/stores/page-surface-store\";\nimport { useTranslation } from \"@app/i18n\";\n\nexport interface ResearchOnboardingValues {\n firstName: string;\n}\n\ninterface ResearchOnboardingScreenProps {\n initialFirstName?: string;\n onSubmit: (values: ResearchOnboardingValues) => void;\n /** The faint off-ramp: abandoning the funnel for the assistant as-is. */\n onSkip: () => void;\n}\n\n/**\n * One animation cadence so every element rises in the same staggered rhythm.\n *\n * The descending `zIndex` keeps each field (and its absolutely-positioned\n * autocomplete dropdown) painting above the rows below it: the entrance\n * `animation` makes every row its own stacking context, so a later row would\n * otherwise cover an earlier row's open dropdown.\n */\nfunction riseIn(delaySeconds: number, zIndex?: number): React.CSSProperties {\n return {\n animation: `fadeInUp 0.4s ease-out ${delaySeconds}s both`,\n ...(zIndex != null ? { position: \"relative\", zIndex } : {}),\n };\n}\n\nexport function ResearchOnboardingScreen({\n initialFirstName = \"\",\n onSubmit,\n onSkip,\n}: ResearchOnboardingScreenProps) {\n const { t } = useTranslation(\"onboarding\");\n // The screen owns the whole viewport, so the shell paints its safe-area\n // strips to match. See `page-surface-store`.\n usePublishPageSurface(ONBOARDING_DARK_SURFACE);\n const [firstName, setFirstName] = useState(initialFirstName);\n\n const canSubmit = firstName.trim().length > 0;\n\n function handleSubmit() {\n if (!canSubmit) {\n return;\n }\n onSubmit({ firstName });\n }\n\n return (\n // Force the dark palette for the onboarding flow regardless of app theme —\n // `data-theme=\"dark\"` re-declares the design tokens for this subtree (custom\n // props inherit down). Matches the brand onboarding design.\n <div data-theme=\"dark\" className=\"h-full\">\n <OnboardingLayout showCreatureFooter={false}>\n <OnboardingEdgeCharacters />\n <form\n className=\"relative z-10 mx-auto flex min-h-screen w-full max-w-sm flex-col items-center justify-center px-6 py-16 text-[var(--content-default)]\"\n onSubmit={(e) => {\n e.preventDefault();\n handleSubmit();\n }}\n >\n <h1\n className=\"text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight\"\n style={riseIn(0.05)}\n >\n {t(\"researchOnboardingScreen.title\")}\n </h1>\n\n <div className=\"mt-10 flex w-full flex-col gap-5\">\n <div style={riseIn(0.12, 40)}>\n <Input\n label={t(\"researchOnboardingScreen.firstNameLabel\")}\n placeholder={t(\"researchOnboardingScreen.firstNamePlaceholder\")}\n value={firstName}\n onChange={(e) => setFirstName(e.target.value)}\n className={MOBILE_INPUT_NO_ZOOM}\n autoFocus\n required\n fullWidth\n />\n </div>\n </div>\n\n <div className=\"mt-10 w-full\" style={riseIn(0.5)}>\n <Button\n type=\"submit\"\n variant=\"primary\"\n size=\"large\"\n rightIcon={<ArrowRight size={16} />}\n fullWidth\n disabled={!canSubmit}\n >\n {t(\"actions.continue\")}\n </Button>\n </div>\n </form>\n\n {/* The off-ramp: faint on purpose — findable, never competing with\n the funnel. Fixed to the viewport corner so it holds its ground\n no matter how the centered column reflows. */}\n <button\n type=\"button\"\n onClick={onSkip}\n className=\"fixed right-6 bottom-6 text-body-small text-[var(--content-tertiary)] transition-colors hover:text-[var(--content-secondary)]\"\n style={riseIn(0.6)}\n >\n {t(\"researchOnboardingScreen.skip\")}\n </button>\n </OnboardingLayout>\n </div>\n );\n}\n","/**\n * An avatar's eyes peeking up from the bottom edge of a stage.\n *\n * Renders the eye art (whites + pupils, in the style's own shapes) sized\n * against the stage box and cut off by its bottom edge, with an idle blink and\n * a slight cursor parallax. Pass `entrance` to play the grow-in: the eyes drop\n * from the stage's center (where a full avatar sits), dipping a touch below\n * rest before settling with two blinks.\n *\n * Presentational and decorative: `aria-hidden`, `pointer-events-none`,\n * reduced-motion safe. It takes the art and the stage box as props and knows\n * nothing about where either came from, so onboarding's backdrop (picker pool\n * plus onboarding stage) and the About Assistant stage (the real assistant's\n * avatar plus its own container) get one set of geometry, timings and motion\n * rather than a copy each.\n */\n\nimport { useEffect, useState } from \"react\";\nimport { motion, useAnimationControls, useReducedMotion } from \"motion/react\";\n\nimport type { StageSize } from \"@app/hooks/use-element-size\";\nimport type { BBox } from \"@app/utils/eye-bbox\";\n\n/** How much of the eyes sits below the bottom edge: at rest, and at the dip. */\nconst EYE_REST_CUTOFF = 0.25;\nconst EYE_DIP_CUTOFF = 0.46;\n/** Eye sizing: height is at most 30% of the stage, capped so width stays\n * inside the stage. */\nconst EYE_TARGET_HEIGHT = 0.3;\nconst EYE_MAX_WIDTH = 0.85;\n/** Entrance hand-off: the eyes start from the stage's centered position. */\nconst STAGE_CENTER_FRACTION = 0.4;\n/** Slight whole-eye cursor parallax. */\nconst CURSOR_MAX_X = 14;\nconst CURSOR_MAX_Y = 8;\n\n/** An eye style's paths plus the union bounding box that frames them. */\nexport interface PeekingEyeArt {\n paths: { svgPath: string; color: string }[];\n bbox: BBox;\n}\n\nexport interface PeekingEyesProps {\n art: PeekingEyeArt;\n /** The stage container's box. The eyes anchor to its bottom edge. */\n stage: StageSize;\n /**\n * Play the grow-in entrance, and the two settle blinks that close it out.\n * Otherwise the eyes are at rest and simply idle-blink, as if carried over\n * from a previous step.\n */\n entrance?: boolean;\n /** Delay before the entrance starts. */\n entranceDelay?: number;\n /**\n * Extra sink below the resting position, as a fraction of stage height, for\n * stages whose bottom edge is not where the eyes should read as cut off.\n */\n restSinkFraction?: number;\n /**\n * Increment to make the eyes jolt upward once (a Mario-style \"bump\", e.g. to\n * knock the integration-step coin up). Omit to leave out the bump layer.\n */\n bumpNonce?: number;\n}\n\nexport function PeekingEyes({\n art,\n stage,\n entrance = false,\n entranceDelay = 0,\n restSinkFraction = 0,\n bumpNonce,\n}: PeekingEyesProps) {\n const reduce = useReducedMotion();\n const { w, h } = stage;\n\n const [pointer, setPointer] = useState({ x: 0, y: 0 });\n useEffect(() => {\n if (reduce) {\n return;\n }\n const onMove = (e: MouseEvent) => {\n setPointer({\n x: (e.clientX / window.innerWidth - 0.5) * 2,\n y: (e.clientY / window.innerHeight - 0.5) * 2,\n });\n };\n window.addEventListener(\"mousemove\", onMove);\n return () => window.removeEventListener(\"mousemove\", onMove);\n }, [reduce]);\n\n const playEntrance = entrance && !reduce;\n\n // A one-shot upward jolt when `bumpNonce` increments (Mario block bump).\n const bumpControls = useAnimationControls();\n useEffect(() => {\n if ((bumpNonce ?? 0) > 0 && !reduce) {\n void bumpControls.start({\n y: [0, -34, 8, 0],\n transition: { duration: 0.45, ease: \"easeOut\" },\n });\n }\n }, [bumpNonce, reduce, bumpControls]);\n\n // Two blinks once settled (after an entrance), then a slow random idle\n // blink; resting eyes skip the settle blinks and just idle.\n const [blinking, setBlinking] = useState(false);\n const [entranceDone, setEntranceDone] = useState(!entrance);\n useEffect(() => {\n if (reduce || !entranceDone) {\n return;\n }\n let cancelled = false;\n let t: ReturnType<typeof setTimeout>;\n const blink = (next: () => void) => {\n if (cancelled) {\n return;\n }\n setBlinking(true);\n t = setTimeout(() => {\n if (cancelled) {\n return;\n }\n setBlinking(false);\n t = setTimeout(next, 140);\n }, 140);\n };\n const idle = () => {\n t = setTimeout(() => blink(idle), 2500 + Math.random() * 4000);\n };\n if (entrance) {\n blink(() => blink(idle));\n } else {\n idle();\n }\n return () => {\n cancelled = true;\n clearTimeout(t);\n };\n }, [reduce, entranceDone, entrance]);\n\n if (w === 0 || h === 0) {\n return null;\n }\n\n // Size by the smaller stage dimension so the eyes shrink on narrow stages\n // (in portrait, height alone would make them oversized), capped to the stage\n // width so wide eye styles never get cut off sideways.\n const maxEyesW = w * EYE_MAX_WIDTH;\n const eyesH = Math.min(\n Math.min(w, h) * EYE_TARGET_HEIGHT,\n (maxEyesW * art.bbox.h) / art.bbox.w,\n );\n const eyesW = (eyesH * art.bbox.w) / art.bbox.h;\n const eyesLeft = (w - eyesW) / 2;\n const eyesRestTop = h - (1 - EYE_REST_CUTOFF) * eyesH + h * restSinkFraction;\n const eyesStartY = STAGE_CENTER_FRACTION * h - (eyesRestTop + eyesH / 2);\n const eyesDipY = (EYE_DIP_CUTOFF - EYE_REST_CUTOFF) * eyesH;\n const eyeCx = art.bbox.x + art.bbox.w / 2;\n const eyeCy = art.bbox.y + art.bbox.h / 2;\n\n const eyes = (\n // Slight parallax: the whole eyes drift smoothly toward the cursor.\n <div\n style={{\n transform: `translate(${pointer.x * CURSOR_MAX_X}px, ${pointer.y * CURSOR_MAX_Y}px)`,\n transition: \"transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)\",\n }}\n >\n <svg\n viewBox={`${art.bbox.x} ${art.bbox.y} ${art.bbox.w} ${art.bbox.h}`}\n width={eyesW}\n height={eyesH}\n style={{ overflow: \"visible\", display: \"block\" }}\n >\n <g\n style={{\n transform: blinking ? \"scaleY(0.1)\" : \"scaleY(1)\",\n transformOrigin: `${eyeCx}px ${eyeCy}px`,\n transition: \"transform 0.14s ease-in-out\",\n }}\n >\n {art.paths.map((p, i) => (\n <path key={i} d={p.svgPath} fill={p.color} />\n ))}\n </g>\n </svg>\n </div>\n );\n\n return (\n <motion.div\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute z-[2]\"\n style={{\n left: eyesLeft,\n top: eyesRestTop,\n width: eyesW,\n height: eyesH,\n transformOrigin: \"center\",\n }}\n initial={playEntrance ? { y: eyesStartY, scale: 0.35 } : false}\n animate={\n playEntrance\n ? { y: [eyesStartY, eyesDipY, 0], scale: [0.35, 1, 1] }\n : { y: 0, scale: 1 }\n }\n transition={\n playEntrance\n ? {\n duration: 1,\n delay: entranceDelay,\n times: [0, 0.7, 1],\n ease: \"easeInOut\",\n }\n : { duration: 0 }\n }\n onAnimationComplete={() => setEntranceDone(true)}\n >\n {bumpNonce === undefined ? (\n eyes\n ) : (\n <motion.div animate={bumpControls}>{eyes}</motion.div>\n )}\n </motion.div>\n );\n}\n\n/**\n * Fraction of the stage's smaller dimension covered by the eyes' visible\n * portion. Content columns reserve this much at the bottom so foreground\n * controls always clear the eyes.\n */\nexport const EYES_VISIBLE_FRACTION = EYE_TARGET_HEIGHT * (1 - EYE_REST_CUTOFF);\n","/**\n * Bounding-box helpers for avatar eye art.\n *\n * The peeking/motion eye components (onboarding's bottom eyes, the voice\n * room's eyes) size and frame an avatar's eye art\n * from the union bounding box of its SVG paths. This parser walks the path\n * command-by-command, tracking the current point, so single-coordinate commands\n * — `H`/`V` (horizontal/vertical lineto) — update one axis while every other\n * command extends the box by full (x, y) pairs. Pairing every number as (x, y)\n * without tracking commands would desync on the lone `H`/`V` value; the `grumpy`\n * eye style is the only one that uses `H`, so correct handling matters for it.\n */\n\nexport type BBox = { x: number; y: number; w: number; h: number };\n\n/** A point in path space, used for curve control points and endpoints. */\ntype Point = { x: number; y: number };\n\nconst NUM = /-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?/gi;\n// One command letter plus the run of numbers that follows it.\nconst SEGMENTS = /[MmLlHhVvCcSsQqTtAaZz][^MmLlHhVvCcSsQqTtAaZz]*/g;\n\n/**\n * Tight bounding box of a path's geometry. Tracks the current point so\n * single-axis commands (`H`/`V`) extend the box on the correct axis without\n * desyncing the rest of the path. For every multi-coordinate command the values\n * are treated as (x, y) pairs and each pair extends the box — including curve\n * control points, matching the original parser so the existing eye styles size\n * identically. The arc command (`A`) extends by its endpoint only (its leading\n * radii/flags aren't points); no eye style uses it today.\n */\nexport function pathBBox(d: string): BBox {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n let cx = 0;\n let cy = 0;\n\n const extend = (x: number, y: number) => {\n if (x < minX) {\n minX = x;\n }\n if (y < minY) {\n minY = y;\n }\n if (x > maxX) {\n maxX = x;\n }\n if (y > maxY) {\n maxY = y;\n }\n };\n\n const segments = d.match(SEGMENTS) ?? [];\n for (const seg of segments) {\n const code = seg[0]!;\n const upper = code.toUpperCase();\n if (upper === \"Z\") {\n continue;\n }\n const relative = code !== upper;\n const nums = (seg.slice(1).match(NUM) ?? []).map(Number);\n\n if (upper === \"H\") {\n for (const n of nums) {\n cx = relative ? cx + n : n;\n extend(cx, cy);\n }\n } else if (upper === \"V\") {\n for (const n of nums) {\n cy = relative ? cy + n : n;\n extend(cx, cy);\n }\n } else if (upper === \"A\") {\n // rx ry rot large sweep x y — only the trailing (x, y) is a point.\n for (let i = 0; i + 7 <= nums.length; i += 7) {\n const ex = nums[i + 5]!;\n const ey = nums[i + 6]!;\n cx = relative ? cx + ex : ex;\n cy = relative ? cy + ey : ey;\n extend(cx, cy);\n }\n } else {\n // M/L/T/C/S/Q: extend by every (x, y) pair (control points included).\n // For relative curves the control points are measured from the segment's\n // start point; the current point only advances at the final pair.\n const startX = cx;\n const startY = cy;\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n const px = relative ? startX + nums[i]! : nums[i]!;\n const py = relative ? startY + nums[i + 1]! : nums[i + 1]!;\n extend(px, py);\n // Advance the current point to the last pair of the segment.\n if (i + 2 >= nums.length - (nums.length % 2)) {\n cx = px;\n cy = py;\n }\n }\n }\n }\n\n if (minX === Infinity) {\n return { x: 0, y: 0, w: 0, h: 0 };\n }\n return { x: minX, y: minY, w: maxX - minX, h: maxY - minY };\n}\n\n/**\n * Bounding box of the geometry a path actually draws, curves solved rather\n * than approximated by their control polygon.\n *\n * {@link pathBBox} extends its box by every control point. The peeking and\n * voice-room eyes intentionally frame against that control-point box, but\n * the box can sit well outside the ink: the `angry`\n * eye style is drawn with control points nowhere near the curve, which makes\n * that box 72% taller than the artwork and drops its center by roughly a third\n * of the eye height.\n *\n * A surface that has to line up with an independently measured version of the\n * same artwork needs the box the curves reach instead. The iOS app icon\n * generator measures its eyes by rasterizing them, so the app icon preview\n * frames against this function to land the eyes where the shipped PNG has\n * them.\n *\n * Curve segments (`C`/`S`/`Q`/`T`) contribute their endpoints plus their\n * per-axis extrema. `A` (arc) contributes its endpoint only, as in\n * `pathBBox`; no eye style uses it today.\n */\nexport function tightPathBBox(d: string): BBox {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n let cx = 0;\n let cy = 0;\n let startX = 0;\n let startY = 0;\n // The last curve's trailing control point, which `S`/`T` reflect. Null after\n // any other command, where the spec reflects the current point instead.\n let cubicControl: Point | null = null;\n let quadControl: Point | null = null;\n\n const extend = (x: number, y: number) => {\n if (x < minX) {\n minX = x;\n }\n if (y < minY) {\n minY = y;\n }\n if (x > maxX) {\n maxX = x;\n }\n if (y > maxY) {\n maxY = y;\n }\n };\n\n /**\n * Extend by one curve's extrema on both axes. Each axis is solved on its\n * own, and the opposite coordinate passed in is the segment's start point,\n * which is already inside the box, so an extremum only ever widens the axis\n * it was solved for.\n */\n const extendCubic = (c1: Point, c2: Point, end: Point) => {\n for (const value of cubicExtrema(cx, c1.x, c2.x, end.x)) {\n extend(value, cy);\n }\n for (const value of cubicExtrema(cy, c1.y, c2.y, end.y)) {\n extend(cx, value);\n }\n };\n\n const extendQuadratic = (c1: Point, end: Point) => {\n for (const value of quadraticExtrema(cx, c1.x, end.x)) {\n extend(value, cy);\n }\n for (const value of quadraticExtrema(cy, c1.y, end.y)) {\n extend(cx, value);\n }\n };\n\n const segments = d.match(SEGMENTS) ?? [];\n for (const seg of segments) {\n const code = seg[0]!;\n const upper = code.toUpperCase();\n const relative = code !== upper;\n const nums = (seg.slice(1).match(NUM) ?? []).map(Number);\n // Relative coordinates are measured from the current point, which advances\n // once per sub-command, so these read the live values rather than a copy.\n const absX = (value: number) => (relative ? cx + value : value);\n const absY = (value: number) => (relative ? cy + value : value);\n\n if (upper === \"Z\") {\n cx = startX;\n cy = startY;\n cubicControl = null;\n quadControl = null;\n continue;\n }\n\n if (upper === \"M\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n cx = absX(nums[i]!);\n cy = absY(nums[i + 1]!);\n if (i === 0) {\n startX = cx;\n startY = cy;\n }\n extend(cx, cy);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"L\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n cx = absX(nums[i]!);\n cy = absY(nums[i + 1]!);\n extend(cx, cy);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"H\") {\n for (const n of nums) {\n cx = relative ? cx + n : n;\n extend(cx, cy);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"V\") {\n for (const n of nums) {\n cy = relative ? cy + n : n;\n extend(cx, cy);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"C\") {\n for (let i = 0; i + 6 <= nums.length; i += 6) {\n const c1: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const c2: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n const end: Point = { x: absX(nums[i + 4]!), y: absY(nums[i + 5]!) };\n extendCubic(c1, c2, end);\n cubicControl = c2;\n cx = end.x;\n cy = end.y;\n extend(cx, cy);\n }\n quadControl = null;\n } else if (upper === \"S\") {\n for (let i = 0; i + 4 <= nums.length; i += 4) {\n const c1: Point = {\n x: 2 * cx - (cubicControl?.x ?? cx),\n y: 2 * cy - (cubicControl?.y ?? cy),\n };\n const c2: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const end: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n extendCubic(c1, c2, end);\n cubicControl = c2;\n cx = end.x;\n cy = end.y;\n extend(cx, cy);\n }\n quadControl = null;\n } else if (upper === \"Q\") {\n for (let i = 0; i + 4 <= nums.length; i += 4) {\n const c1: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const end: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n extendQuadratic(c1, end);\n quadControl = c1;\n cx = end.x;\n cy = end.y;\n extend(cx, cy);\n }\n cubicControl = null;\n } else if (upper === \"T\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n const c1: Point = {\n x: 2 * cx - (quadControl?.x ?? cx),\n y: 2 * cy - (quadControl?.y ?? cy),\n };\n const end: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n extendQuadratic(c1, end);\n quadControl = c1;\n cx = end.x;\n cy = end.y;\n extend(cx, cy);\n }\n cubicControl = null;\n } else if (upper === \"A\") {\n for (let i = 0; i + 7 <= nums.length; i += 7) {\n cx = absX(nums[i + 5]!);\n cy = absY(nums[i + 6]!);\n extend(cx, cy);\n }\n cubicControl = null;\n quadControl = null;\n }\n }\n\n if (minX === Infinity) {\n return { x: 0, y: 0, w: 0, h: 0 };\n }\n return { x: minX, y: minY, w: maxX - minX, h: maxY - minY };\n}\n\n/** Values a cubic reaches at the interior roots of its derivative. */\nfunction cubicExtrema(\n p0: number,\n p1: number,\n p2: number,\n p3: number,\n): number[] {\n const a = 3 * (-p0 + 3 * p1 - 3 * p2 + p3);\n const b = 6 * (p0 - 2 * p1 + p2);\n const c = 3 * (p1 - p0);\n return quadraticRootsInUnit(a, b, c).map((t) => {\n const mt = 1 - t;\n return (\n mt * mt * mt * p0 +\n 3 * mt * mt * t * p1 +\n 3 * mt * t * t * p2 +\n t * t * t * p3\n );\n });\n}\n\n/** Value a quadratic reaches at the interior root of its derivative. */\nfunction quadraticExtrema(p0: number, p1: number, p2: number): number[] {\n const denominator = p0 - 2 * p1 + p2;\n if (denominator === 0) {\n return [];\n }\n const t = (p0 - p1) / denominator;\n if (t <= 0 || t >= 1) {\n return [];\n }\n const mt = 1 - t;\n return [mt * mt * p0 + 2 * mt * t * p1 + t * t * p2];\n}\n\n/** Roots of `a t^2 + b t + c` that fall strictly inside the segment. */\nfunction quadraticRootsInUnit(a: number, b: number, c: number): number[] {\n const inUnit = (t: number) => t > 0 && t < 1;\n if (a === 0) {\n if (b === 0) {\n return [];\n }\n const t = -c / b;\n return inUnit(t) ? [t] : [];\n }\n const discriminant = b * b - 4 * a * c;\n if (discriminant < 0) {\n return [];\n }\n const root = Math.sqrt(discriminant);\n return [(-b + root) / (2 * a), (-b - root) / (2 * a)].filter(inUnit);\n}\n\nexport function unionBBox(boxes: BBox[]): BBox {\n const minX = Math.min(...boxes.map((b) => b.x));\n const minY = Math.min(...boxes.map((b) => b.y));\n const maxX = Math.max(...boxes.map((b) => b.x + b.w));\n const maxY = Math.max(...boxes.map((b) => b.y + b.h));\n return { x: minX, y: minY, w: maxX - minX, h: maxY - minY };\n}\n\n/** How many straight pieces a curve is cut into when it is flattened. */\nconst FLATTEN_STEPS = 16;\n\n/**\n * The horizontal extent of a path where the line `y` crosses it: the leftmost\n * and rightmost points of its outline at that height, or null where the line\n * misses it. Curves are flattened into short straight pieces, so the answer\n * is close rather than exact; `A` (arc) is treated as a straight line to its\n * endpoint, as elsewhere in this module.\n *\n * The sleep stage draws each eye's lid line across the eye at the height the\n * lid rests, and needs the eye's width there rather than its widest.\n */\nexport function pathSpanAt(\n d: string,\n y: number,\n): { x0: number; x1: number } | null {\n let x0 = Infinity;\n let x1 = -Infinity;\n let cx = 0;\n let cy = 0;\n let startX = 0;\n let startY = 0;\n let cubicControl: Point | null = null;\n let quadControl: Point | null = null;\n\n const cross = (ax: number, ay: number, bx: number, by: number) => {\n if (ay === by || (ay - y) * (by - y) > 0) {\n return;\n }\n const x = ax + ((y - ay) * (bx - ax)) / (by - ay);\n if (x < x0) {\n x0 = x;\n }\n if (x > x1) {\n x1 = x;\n }\n };\n const lineTo = (x: number, yy: number) => {\n cross(cx, cy, x, yy);\n cx = x;\n cy = yy;\n };\n const cubicTo = (c1: Point, c2: Point, end: Point) => {\n const p0: Point = { x: cx, y: cy };\n for (let i = 1; i <= FLATTEN_STEPS; i++) {\n const t = i / FLATTEN_STEPS;\n const u = 1 - t;\n lineTo(\n u * u * u * p0.x +\n 3 * u * u * t * c1.x +\n 3 * u * t * t * c2.x +\n t * t * t * end.x,\n u * u * u * p0.y +\n 3 * u * u * t * c1.y +\n 3 * u * t * t * c2.y +\n t * t * t * end.y,\n );\n }\n };\n const quadraticTo = (c1: Point, end: Point) => {\n const p0: Point = { x: cx, y: cy };\n for (let i = 1; i <= FLATTEN_STEPS; i++) {\n const t = i / FLATTEN_STEPS;\n const u = 1 - t;\n lineTo(\n u * u * p0.x + 2 * u * t * c1.x + t * t * end.x,\n u * u * p0.y + 2 * u * t * c1.y + t * t * end.y,\n );\n }\n };\n\n const segments = d.match(SEGMENTS) ?? [];\n for (const seg of segments) {\n const code = seg[0]!;\n const upper = code.toUpperCase();\n const relative = code !== upper;\n const nums = (seg.slice(1).match(NUM) ?? []).map(Number);\n const absX = (value: number) => (relative ? cx + value : value);\n const absY = (value: number) => (relative ? cy + value : value);\n\n if (upper === \"Z\") {\n lineTo(startX, startY);\n cubicControl = null;\n quadControl = null;\n continue;\n }\n\n if (upper === \"M\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n if (i === 0) {\n cx = absX(nums[i]!);\n cy = absY(nums[i + 1]!);\n startX = cx;\n startY = cy;\n } else {\n lineTo(absX(nums[i]!), absY(nums[i + 1]!));\n }\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"L\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n lineTo(absX(nums[i]!), absY(nums[i + 1]!));\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"H\") {\n for (const n of nums) {\n lineTo(relative ? cx + n : n, cy);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"V\") {\n for (const n of nums) {\n lineTo(cx, relative ? cy + n : n);\n }\n cubicControl = null;\n quadControl = null;\n } else if (upper === \"C\") {\n for (let i = 0; i + 6 <= nums.length; i += 6) {\n const c1: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const c2: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n const end: Point = { x: absX(nums[i + 4]!), y: absY(nums[i + 5]!) };\n cubicTo(c1, c2, end);\n cubicControl = c2;\n }\n quadControl = null;\n } else if (upper === \"S\") {\n for (let i = 0; i + 4 <= nums.length; i += 4) {\n const c1: Point = {\n x: 2 * cx - (cubicControl?.x ?? cx),\n y: 2 * cy - (cubicControl?.y ?? cy),\n };\n const c2: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const end: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n cubicTo(c1, c2, end);\n cubicControl = c2;\n }\n quadControl = null;\n } else if (upper === \"Q\") {\n for (let i = 0; i + 4 <= nums.length; i += 4) {\n const c1: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n const end: Point = { x: absX(nums[i + 2]!), y: absY(nums[i + 3]!) };\n quadraticTo(c1, end);\n quadControl = c1;\n }\n cubicControl = null;\n } else if (upper === \"T\") {\n for (let i = 0; i + 2 <= nums.length; i += 2) {\n const c1: Point = {\n x: 2 * cx - (quadControl?.x ?? cx),\n y: 2 * cy - (quadControl?.y ?? cy),\n };\n const end: Point = { x: absX(nums[i]!), y: absY(nums[i + 1]!) };\n quadraticTo(c1, end);\n quadControl = c1;\n }\n cubicControl = null;\n } else if (upper === \"A\") {\n for (let i = 0; i + 7 <= nums.length; i += 7) {\n lineTo(absX(nums[i + 5]!), absY(nums[i + 6]!));\n }\n cubicControl = null;\n quadControl = null;\n }\n }\n\n return x0 === Infinity ? null : { x0, x1 };\n}\n","/**\n * The onboarding backdrop's peeking eyes: {@link PeekingEyes} driven by the\n * avatar picker's chosen character and the onboarding stage box, shared by the\n * Introduction and \"How should I talk?\" steps for continuity.\n *\n * SPIKE - research-onboarding flow.\n */\n\nimport { useMemo } from \"react\";\n\nimport { PeekingEyes } from \"@app/components/avatar/peeking-eyes\";\nimport { useOnboardingStageSize } from \"@app/domains/onboarding/hooks/use-onboarding-stage-size\";\nimport { useOnboardingAvatarPoolStore } from \"@app/domains/onboarding/onboarding-avatar-pool-store\";\nimport { pathBBox, unionBBox } from \"@app/utils/eye-bbox\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\n\n/**\n * The onboarding stage's bottom edge sits above where the eyes should read as\n * cut off, so they sink a further 5% of stage height below rest.\n */\nconst REST_SINK_FRACTION = 0.05;\n\ninterface OnboardingPeekingEyesProps {\n /** Play the grow-in entrance (Introduction). Otherwise the eyes are at rest. */\n entrance?: boolean;\n /** Delay before the entrance starts (lets the body cover the screen first). */\n entranceDelay?: number;\n /**\n * Increment to make the eyes jolt upward once (a Mario-style \"bump\", e.g. to\n * knock the integration-step coin up).\n */\n bumpNonce?: number;\n}\n\nexport function OnboardingPeekingEyes({\n entrance = false,\n entranceDelay = 0,\n bumpNonce = 0,\n}: OnboardingPeekingEyesProps) {\n const components = useBundledAvatarComponents();\n const characters = useOnboardingAvatarPoolStore.use.characters();\n const selectedIndex = useOnboardingAvatarPoolStore.use.selectedIndex();\n const stage = useOnboardingStageSize();\n\n const chosen = characters.length > 0 ? characters[selectedIndex] : undefined;\n\n const art = useMemo(() => {\n if (!components || !chosen) {\n return null;\n }\n const def = components.eyeStyles.find((e) => e.id === chosen.eyeStyle);\n if (!def) {\n return null;\n }\n return {\n paths: def.paths,\n bbox: unionBBox(def.paths.map((p) => pathBBox(p.svgPath))),\n };\n }, [components, chosen]);\n\n if (!art) {\n return null;\n }\n\n return (\n <PeekingEyes\n art={art}\n stage={stage}\n entrance={entrance}\n entranceDelay={entranceDelay}\n restSinkFraction={REST_SINK_FRACTION}\n bumpNonce={bumpNonce}\n />\n );\n}\n","/**\n * The box the onboarding decorative layers position themselves against.\n *\n * Every onboarding screen puts its content inside one of these. It measures\n * itself and publishes that size through `OnboardingStageSizeProvider`, so the\n * decorative layers (the character stage, the peeking crowd, the bottom eyes,\n * the coin arc) resolve their `absolute` positions against the same box the\n * `%`-positioned foreground uses.\n *\n * Measuring the container rather than the layout viewport is the point. The app\n * shell is `100dvh` minus the safe-area insets, and shorter still while the iOS\n * keyboard is up, so a layer sized from `window.innerHeight` sits in a taller\n * coordinate space than the content it is supposed to be pinned to. See\n * `use-element-size.ts` for the same hazard stated from the other side.\n *\n * The stage is also the page's canvas, so it hands its color to the app shell\n * (see `page-surface-store`): the safe-area strips are padding on the shell, so\n * without this the home indicator sits on the shell's light `--surface-base`\n * while the stage renders dark or avatar-tinted, leaving a pale band along the\n * bottom edge on iOS.\n *\n * This exists as a component rather than a snippet each screen repeats because\n * a story that mirrors the wrapper proves nothing about the real one: the two\n * drift, and the story keeps passing. Screens differ only in the surface they\n * paint, so that is the only prop.\n */\n\nimport { type ReactNode } from \"react\";\n\nimport { OnboardingStageSizeProvider } from \"@app/domains/onboarding/hooks/use-onboarding-stage-size\";\nimport { ONBOARDING_DARK_SURFACE } from \"@app/domains/onboarding/onboarding-step-layout\";\nimport { useElementSize } from \"@app/hooks/use-element-size\";\nimport { usePublishPageSurface } from \"@app/stores/page-surface-store\";\nimport { cn } from \"@mycadet/design-library/utils/cn\";\n\ninterface OnboardingStageProps {\n /** Surface classes for this screen (background, text colour). */\n className?: string;\n /**\n * The color the shell should paint into the safe-area strips. Defaults to the\n * dark surface every screen inherits from the stage's own theme; pass the\n * avatar color on a screen tinted with it, or `null` on a screen whose color\n * is owned and animated by a child layer (that layer publishes instead).\n */\n surface?: string | null;\n /**\n * How the strips should reach {@link OnboardingStageProps.surface}: the tail\n * of a CSS `transition` shorthand, mirroring the screen's own motion timing\n * when its canvas fades in rather than appearing at once. Omit to change the\n * strips in one frame.\n */\n surfaceTransition?: string;\n /**\n * Optional: a screen waiting on its art renders the stage bare rather than\n * standing up a plain div, which would publish no surface and leave the\n * strips on the neutral canvas.\n */\n children?: ReactNode;\n}\n\nexport function OnboardingStage({\n className,\n surface = ONBOARDING_DARK_SURFACE,\n surfaceTransition,\n children,\n}: OnboardingStageProps) {\n const { ref, size } = useElementSize();\n\n usePublishPageSurface(surface, surfaceTransition ?? null);\n\n return (\n <div\n ref={ref}\n data-theme=\"dark\"\n className={cn(\"relative h-full overflow-hidden\", className)}\n >\n <OnboardingStageSizeProvider size={size}>\n {children}\n </OnboardingStageSizeProvider>\n </div>\n );\n}\n","/**\n * Foreground tone for surfaces painted with an assistant avatar's color.\n *\n * Avatar-tinted pages (research onboarding, the About Assistant overview\n * and personality pages) paint the background with the avatar's color, so\n * UI drawn on top (titles, labels, controls) needs a foreground that\n * contrasts: white on the dark/saturated colors, black on the light one\n * (yellow). `toneForBg` derives that once from the color's perceived\n * brightness, so every surface can read the same `fg`/`fgMuted` instead of\n * hard-coding white.\n */\n\nexport interface AvatarTone {\n /** Background hex (the avatar color), or a surface fallback. */\n bg: string;\n /** True when the background is light enough to need dark foreground. */\n isLight: boolean;\n /** Foreground color: black on light bg, white otherwise. */\n fg: string;\n /**\n * A deeper heading foreground: the background color itself, darkened.\n * Reads as a secondary tone against the matching background.\n */\n fgDeep: string;\n /** Muted/secondary foreground at the matching tone. */\n fgMuted: string;\n /** A subtle hover/fill wash at the matching tone. */\n wash: string;\n /**\n * Soft raised-surface fill for a user speech bubble — the room's analog of\n * the app's `--surface-lift`: a translucent lift of the foreground over the\n * avatar color (a subtle white wash over dark/saturated avatars, a subtle\n * dark wash over the light one), not an opaque max-contrast chip.\n */\n bubbleBg: string;\n /**\n * Text color for that bubble, chosen for WCAG-AA contrast against the\n * *blended* bubble pixel (the lift composited over the avatar fill) — white\n * over dark avatars, near-black over lighter/mid-tone ones — so live captions\n * stay legible on every palette color, not a fixed room foreground.\n */\n bubbleFg: string;\n}\n\nconst FG_DARK = \"#1A1A1A\";\nconst FG_LIGHT = \"#FFFFFF\";\n\n/** Near-black ground that avatar-tinted full-bleed surfaces blend over. */\nexport const SURFACE_GROUND = \"#151515\";\n\n/** Perceived brightness (YIQ), 0–1. */\nfunction brightness(hex: string): number {\n const m = /^#?([0-9a-f]{6})$/i.exec(hex);\n if (!m) {\n return 0;\n }\n const n = parseInt(m[1]!, 16);\n const r = (n >> 16) & 0xff;\n const g = (n >> 8) & 0xff;\n const b = n & 0xff;\n return (r * 299 + g * 587 + b * 114) / 1000 / 255;\n}\n\n/** Multiply each channel of a #rrggbb hex by `factor` (clamped 0–255). */\nexport function darkenHex(hex: string, factor: number): string {\n const m = /^#?([0-9a-f]{6})$/i.exec(hex);\n if (!m) {\n return hex;\n }\n const n = parseInt(m[1]!, 16);\n const ch = (shift: number) =>\n Math.max(0, Math.min(255, Math.round(((n >> shift) & 0xff) * factor)));\n return `#${((1 << 24) | (ch(16) << 16) | (ch(8) << 8) | ch(0)).toString(16).slice(1)}`;\n}\n\n/**\n * Composite `overlay` at `alpha` over the solid `base`, returning the resulting\n * opaque #rrggbb. Either hex may carry a leading `#`; a malformed input returns\n * `base` unchanged, and `alpha` is clamped to 0–1.\n */\nexport function blendHex(base: string, overlay: string, alpha: number): string {\n const b = /^#?([0-9a-f]{6})$/i.exec(base);\n const o = /^#?([0-9a-f]{6})$/i.exec(overlay);\n if (!b || !o) {\n return base;\n }\n const a = Math.max(0, Math.min(1, alpha));\n const bn = parseInt(b[1]!, 16);\n const on = parseInt(o[1]!, 16);\n const mix = (shift: number) =>\n Math.round(((bn >> shift) & 0xff) * (1 - a) + ((on >> shift) & 0xff) * a);\n return `#${((1 << 24) | (mix(16) << 16) | (mix(8) << 8) | mix(0)).toString(16).slice(1)}`;\n}\n\n/**\n * Deep full-bleed surface for an avatar accent: the accent washed over\n * {@link SURFACE_GROUND}. 0.14 is calibrated so the green character reproduces\n * the takeover's established `#1D271E`.\n */\nexport function avatarSurfaceHex(accentHex: string): string {\n return blendHex(SURFACE_GROUND, accentHex, 0.14);\n}\n\n/** WCAG relative luminance (sRGB-linearized), 0–1. */\nfunction relativeLuminance(hex: string): number {\n const m = /^#?([0-9a-f]{6})$/i.exec(hex);\n if (!m) {\n return 0;\n }\n const n = parseInt(m[1]!, 16);\n const ch = (shift: number) => {\n const c = ((n >> shift) & 0xff) / 255;\n return c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);\n };\n return 0.2126 * ch(16) + 0.7152 * ch(8) + 0.0722 * ch(0);\n}\n\n/** WCAG contrast ratio between two #rrggbb hexes, 1 to 21. */\nfunction contrastRatio(a: string, b: string): number {\n const [hi, lo] = [relativeLuminance(a), relativeLuminance(b)].sort(\n (x, y) => y - x,\n );\n return (hi! + 0.05) / (lo! + 0.05);\n}\n\n/**\n * {@link FG_DARK} or {@link FG_LIGHT}, whichever has the higher WCAG contrast\n * ratio against `bg`. An exact tie takes the light one.\n *\n * Both ratios are measured against the two values this returns, not against\n * pure black and white. A near-black loses to white at a lower background\n * luminance than #000000 does, so a luminance cutoff read off the pure pair\n * hands dark ink to a band of mid-tone backgrounds that white reads better on.\n *\n * Stricter than {@link toneForBg}'s YIQ heuristic, which gives white to the\n * mid-tone saturated colors (teal, orange) that want dark text. Use for text\n * that must stay readable on a solid fill of the avatar color.\n */\nexport function contrastForeground(bg: string): string {\n return contrastRatio(FG_DARK, bg) > contrastRatio(FG_LIGHT, bg)\n ? FG_DARK\n : FG_LIGHT;\n}\n\n/** WCAG AA for text below the large-text sizes, which is all of this ink. */\nconst TEXT_CONTRAST_FLOOR = 4.5;\n\n/**\n * The luminance window in which NEITHER ink clears the floor.\n *\n * Two inks give two passing regions and a gap between them: white carries a\n * background up to the luminance where 1.05 over it falls to the floor, and the\n * near-black carries one down to where the floor times its own luminance is\n * reached. Mid-tones sit in the gap, and no choice between two values gets\n * them out of it.\n */\nconst WHITE_INK_MAX_LUMINANCE = 1.05 / TEXT_CONTRAST_FLOOR - 0.05;\nconst DARK_INK_MIN_LUMINANCE =\n TEXT_CONTRAST_FLOOR * (relativeLuminance(FG_DARK) + 0.05) - 0.05;\nconst FLOOR_GAP_MIDPOINT =\n (WHITE_INK_MAX_LUMINANCE + DARK_INK_MIN_LUMINANCE) / 2;\n\n/** Whether {@link contrastForeground}'s answer clears the floor on `bg`. */\nfunction meetsTextFloor(bg: string): boolean {\n return contrastRatio(contrastForeground(bg), bg) >= TEXT_CONTRAST_FLOOR;\n}\n\n/** How finely {@link legibleAccentFill} steps toward the nearer edge. */\nconst FILL_ADJUST_STEPS = 100;\n\n/**\n * `accentHex` if text can sit on it, otherwise the nearest colour that text\n * can sit on: the accent walked toward black or toward white until\n * {@link contrastForeground}'s answer clears {@link TEXT_CONTRAST_FLOOR}.\n *\n * For a surface FILLED with an avatar accent, since an accent is any colour a\n * palette, an image or a user hands over, and the mid-tones between the two\n * inks' passing regions carry no readable text at all. Chrome that sits OVER\n * video rather than under text takes the raw accent instead: a ring or a line\n * has no foreground to fail.\n *\n * The direction is whichever edge of the gap is nearer in luminance, so the\n * fill moves as little as it can and keeps its hue; darkening scales the\n * channels and lightening washes toward white, which are the same two moves\n * the room's other accent surfaces make. Both edges are reachable (black and\n * white each clear the floor against one ink), so the walk always lands.\n */\nexport function legibleAccentFill(accentHex: string): string {\n if (meetsTextFloor(accentHex)) {\n return accentHex;\n }\n const darker = relativeLuminance(accentHex) < FLOOR_GAP_MIDPOINT;\n let fill = accentHex;\n for (let step = 1; step <= FILL_ADJUST_STEPS; step++) {\n const amount = step / FILL_ADJUST_STEPS;\n fill = darker\n ? darkenHex(accentHex, 1 - amount)\n : blendHex(accentHex, FG_LIGHT, amount);\n if (meetsTextFloor(fill)) {\n break;\n }\n }\n return fill;\n}\n\n/** Build a tone object from a background hex. */\nexport function toneForBg(bg: string): AvatarTone {\n const isLight = brightness(bg) > 0.6;\n const fg = isLight ? FG_DARK : FG_LIGHT;\n return {\n bg,\n isLight,\n fg,\n fgDeep: darkenHex(bg, 0.6),\n fgMuted: isLight ? \"rgba(0,0,0,0.6)\" : \"rgba(255,255,255,0.65)\",\n wash: isLight ? \"rgba(0,0,0,0.08)\" : \"rgba(255,255,255,0.12)\",\n // A soft raised surface (the room's analog of the app's --surface-lift user\n // bubble): a translucent lift of the foreground over the avatar color — not\n // an opaque max-contrast chip. Its text is chosen for WCAG-AA contrast\n // against the *blended* bubble pixel (lift over the avatar fill), so mid-tone\n // saturated avatars get near-black text instead of failing white-on-color.\n bubbleBg: isLight ? \"rgba(0,0,0,0.10)\" : \"rgba(255,255,255,0.16)\",\n bubbleFg: isLight\n ? contrastForeground(blendHex(bg, \"#000000\", 0.1))\n : contrastForeground(blendHex(bg, \"#ffffff\", 0.16)),\n };\n}\n","/**\n * Foreground tone for the avatar-tinted onboarding steps.\n *\n * SPIKE — research-onboarding flow.\n *\n * The tone derivation itself is the shared `@/utils/avatar-tone` module\n * (the About Assistant pages tint the same way); this module binds it to\n * the onboarding picker pool — the tone follows whichever avatar the user\n * has currently selected.\n *\n * The picker / first form sit on the dark app surface (not an avatar\n * color) and should stay white regardless — they pass an explicit tone\n * rather than using this hook.\n */\n\nimport { useMemo } from \"react\";\n\nimport { useOnboardingAvatarPoolStore } from \"./onboarding-avatar-pool-store\";\nimport { toneForBg, type AvatarTone } from \"@app/utils/avatar-tone\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\n\nexport { darkenHex, toneForBg } from \"@app/utils/avatar-tone\";\nexport type OnboardingTone = AvatarTone;\n\n/** Tone derived from the currently-chosen avatar's color. */\nexport function useOnboardingTone(): OnboardingTone {\n const components = useBundledAvatarComponents();\n const characters = useOnboardingAvatarPoolStore.use.characters();\n const selectedIndex = useOnboardingAvatarPoolStore.use.selectedIndex();\n return useMemo(() => {\n const chosen = characters[selectedIndex];\n const hex = components?.colors.find((c) => c.id === chosen?.color)?.hex;\n return toneForBg(hex ?? \"var(--surface-base)\");\n }, [components, characters, selectedIndex]);\n}\n","/**\n * Shared top bar for onboarding steps: a back arrow pinned top-left, plus an\n * optional forward arrow. The forward arrow only renders when `onNext` is\n * provided — the flow wires it up only after the user has stepped back, so it\n * acts as a \"redo\" rather than always offering to skip ahead.\n *\n * SPIKE — research-onboarding flow.\n *\n * `tone` picks the foreground color: \"dark\" for colored backgrounds (the\n * avatar-tinted steps), \"light\" for dark backgrounds (the picker).\n */\n\nimport { ArrowLeft, ArrowRight } from \"lucide-react\";\n\nimport { useOnboardingTone } from \"@app/domains/onboarding/onboarding-tone\";\nimport { useTranslation } from \"@app/i18n\";\n\nexport function OnboardingTopBar({\n onBack,\n onNext,\n tone,\n}: {\n onBack: () => void;\n /** When provided, renders the forward (redo) arrow. */\n onNext?: () => void;\n /**\n * Force the foreground tone. Omit on the avatar-tinted steps to auto-derive\n * from the chosen color (white on dark colors, black on yellow); pass\n * \"light\" on the dark-surface steps (picker) so they stay white.\n */\n tone?: \"dark\" | \"light\";\n}) {\n const { t } = useTranslation(\"onboarding\");\n const auto = useOnboardingTone();\n const fg = tone ? (tone === \"dark\" ? \"#1A1A1A\" : \"#FFFFFF\") : auto.fg;\n // Matches the avatar-picker's cycle arrows: a circular button tinted by its\n // own foreground color, darkening further on hover.\n const restBg = `color-mix(in srgb, ${fg} 10%, transparent)`;\n const hoverBg = `color-mix(in srgb, ${fg} 18%, transparent)`;\n\n return (\n <div className=\"absolute left-4 top-6 z-10 flex items-center gap-3\">\n <button\n type=\"button\"\n onClick={onBack}\n aria-label={t(\"actions.back\")}\n className=\"flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150\"\n style={{ color: fg, backgroundColor: restBg }}\n onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = hoverBg)}\n onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = restBg)}\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </button>\n {/* Forward (redo) arrow — only after the user has stepped back. */}\n {onNext ? (\n <button\n type=\"button\"\n onClick={onNext}\n aria-label={t(\"actions.forward\")}\n className=\"flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150\"\n style={{ color: fg, backgroundColor: restBg }}\n onMouseEnter={(e) =>\n (e.currentTarget.style.backgroundColor = hoverBg)\n }\n onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = restBg)}\n >\n <ArrowRight className=\"h-4 w-4\" />\n </button>\n ) : null}\n </div>\n );\n}\n","import { useEffect, useState } from \"react\";\n\n/**\n * Entrance-animation failsafe: true once the deadline has passed. Consumers\n * fold it into their `initial` prop so a stalled animation driver can never\n * hold entrance content invisible past the deadline.\n */\nexport function useEntranceFailsafe(\n deadlineMs: number = ENTRANCE_DEADLINE_MS,\n): boolean {\n const [expired, setExpired] = useState(false);\n useEffect(() => {\n const timer = setTimeout(() => setExpired(true), deadlineMs);\n return () => clearTimeout(timer);\n }, [deadlineMs]);\n return expired;\n}\n\n/** The failsafe deadline, in milliseconds. */\nexport const ENTRANCE_DEADLINE_MS = 3000;\n","/**\n * \"Introduction\" step — the chosen avatar fills the screen and introduces\n * itself.\n *\n * SPIKE — research-onboarding flow.\n *\n * The body (in the avatar color) grows from the picker's size up to cover the\n * screen end to end, blending into a matching color background. The eyes peek\n * up from the bottom via the shared `OnboardingPeekingEyes` (grow-in entrance,\n * delayed behind the body so they're never seen below it). Once it settles, the\n * greeting bounces in with the Continue button.\n */\n\nimport { useEffect, useMemo, useState } from \"react\";\nimport { ArrowRight } from \"lucide-react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { Button } from \"@mycadet/design-library/components/button\";\n\nimport { useTranslation } from \"@app/i18n\";\nimport {\n ONBOARDING_DARK_SURFACE,\n ONBOARDING_STEP_CONTENT,\n} from \"@app/domains/onboarding/onboarding-step-layout\";\nimport { OnboardingPeekingEyes } from \"@app/domains/onboarding/components/onboarding-peeking-eyes\";\nimport { OnboardingStage } from \"@app/domains/onboarding/components/onboarding-stage\";\nimport { OnboardingTopBar } from \"@app/domains/onboarding/components/onboarding-top-bar\";\nimport { useOnboardingStageSize } from \"@app/domains/onboarding/hooks/use-onboarding-stage-size\";\nimport { useEntranceFailsafe } from \"@app/domains/onboarding/hooks/use-entrance-failsafe\";\nimport { useOnboardingTone } from \"@app/domains/onboarding/onboarding-tone\";\nimport { useOnboardingAvatarPoolStore } from \"@app/domains/onboarding/onboarding-avatar-pool-store\";\nimport { cssTransitionFor } from \"@app/stores/page-surface-store\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\n\ninterface IntroductionScreenProps {\n firstName: string;\n /** The name the user gave the assistant on the picker step (if any). */\n assistantName?: string;\n onContinue: () => void;\n onBack: () => void;\n /** Redo into the next step — only set when the user has stepped back. */\n onForward?: () => void;\n}\n\n/** The body grow starts from the picker's centered size / position. */\nconst PICKER_SIZE = 200;\nconst PICKER_CENTER_VH = 40;\n\ninterface IntroductionArt {\n body: { viewBox: { width: number; height: number }; svgPath: string };\n color: string;\n}\n\n/**\n * The chosen avatar's body, growing from the picker's size to cover the stage.\n *\n * Reads the stage box rather than taking it as a prop so it lands in the same\n * coordinate space as the peeking eyes and the greeting beside it.\n */\nfunction IntroductionBodyGrow({\n art,\n reduce,\n}: {\n art: IntroductionArt;\n reduce: boolean;\n}) {\n const { w, h } = useOnboardingStageSize();\n const coverSize = 1.25 * Math.max(w, h);\n const coverH = (coverSize * art.body.viewBox.height) / art.body.viewBox.width;\n const bodyLeft = (w - coverSize) / 2;\n const bodyTop = (h - coverH) / 2;\n const bodyStartScale = PICKER_SIZE / coverSize;\n // Start near the picker's centre.\n const bodyStartY = (PICKER_CENTER_VH / 100 - 0.5) * h;\n\n return (\n <motion.svg\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute z-[1]\"\n viewBox={`0 0 ${art.body.viewBox.width} ${art.body.viewBox.height}`}\n width={coverSize}\n height={coverH}\n style={{ left: bodyLeft, top: bodyTop, transformOrigin: \"center\" }}\n initial={reduce ? false : { scale: bodyStartScale, y: bodyStartY }}\n animate={{ scale: 1, y: 0 }}\n transition={\n reduce\n ? { duration: 0 }\n : { type: \"spring\", stiffness: 78, damping: 18, mass: 1 }\n }\n >\n <path d={art.body.svgPath} fill={art.color} />\n </motion.svg>\n );\n}\n\n/**\n * The tint layer's fade-in. Stated once for the layer itself and derived for\n * the safe-area strips the app shell paints, so the two cannot drift apart.\n * See `page-surface-store`.\n */\nconst TINT_FADE = { duration: 0.6, delay: 0.35 } as const;\nconst TINT_FADE_CSS = cssTransitionFor(TINT_FADE);\n\nexport function IntroductionScreen({\n firstName,\n assistantName,\n onContinue,\n onBack,\n onForward,\n}: IntroductionScreenProps) {\n const { t } = useTranslation(\"onboarding\");\n const components = useBundledAvatarComponents();\n const characters = useOnboardingAvatarPoolStore.use.characters();\n const selectedIndex = useOnboardingAvatarPoolStore.use.selectedIndex();\n const reduce = useReducedMotion();\n const tone = useOnboardingTone();\n const entranceExpired = useEntranceFailsafe();\n\n const chosen = characters.length > 0 ? characters[selectedIndex] : undefined;\n\n const art = useMemo(() => {\n if (!components || !chosen) {\n return null;\n }\n const body = components.bodyShapes.find((b) => b.id === chosen.bodyShape);\n const color = components.colors.find((c) => c.id === chosen.color);\n if (!body || !color) {\n return null;\n }\n return { body, color: color.hex };\n }, [components, chosen]);\n\n // The stage paints the picker's dark surface at once and fades the tint in\n // over it, so the strips have to start dark and follow rather than open on\n // the tint. Two things make that finicky. Arriving from the pitch step by\n // Back, the backdrop has already published this same hex, so publishing the\n // tint on mount is no color change at all and nothing transitions. And a\n // transition only starts if the dark value went through a style change event\n // first, which a passive effect does not guarantee: React schedules those on\n // a macrotask that usually beats the browser's next rendering opportunity, so\n // both writes would land in one style recalculation and coalesce back into\n // tint-to-tint.\n //\n // Hence the dark surface in the mount commit and the tint two frames later:\n // the first rAF still runs before this frame's style and paint, so the second\n // is the earliest callback that the dark value is guaranteed to have been\n // painted before. Reduced motion has no fade to follow and takes the tint at\n // once.\n //\n // The color layer below waits on this same flip, so its delay and the strips'\n // start together rather than the canvas leading them by the two frames.\n const [tintPublished, setTintPublished] = useState(false);\n useEffect(() => {\n if (!art || reduce) {\n return;\n }\n let painted = 0;\n const committed = requestAnimationFrame(() => {\n painted = requestAnimationFrame(() => setTintPublished(true));\n });\n return () => {\n cancelAnimationFrame(committed);\n cancelAnimationFrame(painted);\n };\n }, [art, reduce]);\n const stripTinted = Boolean(reduce) || tintPublished;\n\n const trimmedFirstName = firstName.trim();\n const trimmedAssistantName = assistantName?.trim() ?? \"\";\n const greeting = trimmedFirstName\n ? t(\"introductionScreen.greetingNamed\", { name: trimmedFirstName })\n : t(\"introductionScreen.greeting\");\n const intro = trimmedAssistantName\n ? t(\"introductionScreen.introNamed\", { name: trimmedAssistantName })\n : t(\"introductionScreen.intro\");\n\n // The art is decoration; the funnel is function. The bundled-art import can\n // be slow on a restored journey and can fail outright, and a failed chunk\n // must never strand the customer on a bare stage — so a missing art renders\n // the same screen without the body and eyes, greeting and Continue visible\n // at once, and the art layers join when (and if) the import lands.\n //\n // The same fold covers a stalled animation driver: `entranceArmed` gates\n // every `initial` state, and once the failsafe deadline passes (or motion\n // is reduced, or the art is missing) the entrance drops and everything\n // renders at its final values. Greeting and Continue the accessibility tree\n // can see but the eye cannot is the exact bug class this fails.\n const entranceArmed = !reduce && !entranceExpired && art != null;\n\n return (\n // Starts on the picker's dark surface; the color layer below fades in.\n <OnboardingStage\n className=\"bg-[var(--surface-base)]\"\n surface={stripTinted ? art?.color : ONBOARDING_DARK_SURFACE}\n // The strips fade on the color layer's own timing rather than jumping to\n // the tint while the stage is still dark.\n surfaceTransition={tintPublished ? TINT_FADE_CSS : undefined}\n >\n {/* The avatar color fills in so coverage is end-to-end even where the\n body shape has gaps/spikes. Held at zero until the strips have their\n dark starting color on screen, so the two fades share a start. */}\n {art && (\n <motion.div\n className=\"absolute inset-0 z-0\"\n style={{ backgroundColor: art.color }}\n initial={reduce ? false : { opacity: 0 }}\n animate={{ opacity: stripTinted ? 1 : 0 }}\n transition={reduce ? { duration: 0 } : TINT_FADE}\n />\n )}\n\n {/* Body: grows from the picker size to cover the screen. */}\n {art && <IntroductionBodyGrow art={art} reduce={reduce === true} />}\n\n {/* Eyes peek up from the bottom, growing in alongside the body. */}\n {art && <OnboardingPeekingEyes entrance />}\n\n {/* Progress + back, fading in after the grow. */}\n <motion.div\n initial={entranceArmed ? { opacity: 0 } : false}\n animate={{ opacity: 1 }}\n transition={\n entranceArmed ? { duration: 0.4, delay: 1 } : { duration: 0 }\n }\n >\n <OnboardingTopBar onBack={onBack} onNext={onForward} />\n </motion.div>\n\n {/* Greeting + Continue, grouped so the button sits just under the text. */}\n <div className={ONBOARDING_STEP_CONTENT}>\n <motion.h1\n className=\"text-center leading-[1.15] max-md:leading-[1.25]\"\n style={{ fontFamily: \"var(--font-serif)\" }}\n initial={entranceArmed ? { scale: 0.9, opacity: 0 } : false}\n animate={{ scale: 1, opacity: 1 }}\n transition={\n entranceArmed\n ? { type: \"spring\", stiffness: 260, damping: 11, delay: 1 }\n : { duration: 0 }\n }\n >\n <span\n className=\"block text-[clamp(2.5rem,6vw,5rem)]\"\n style={{ color: tone.fgDeep }}\n >\n {greeting}\n </span>\n <span\n className=\"block text-[clamp(2.5rem,6vw,5rem)]\"\n style={{ color: tone.fg }}\n >\n {intro}\n </span>\n </motion.h1>\n\n <motion.div\n initial={entranceArmed ? { opacity: 0, y: 8 } : false}\n animate={{ opacity: 1, y: 0 }}\n transition={\n entranceArmed ? { duration: 0.4, delay: 1.15 } : { duration: 0 }\n }\n >\n <Button\n type=\"button\"\n variant=\"primary\"\n size=\"large\"\n rightIcon={<ArrowRight size={16} />}\n onClick={onContinue}\n className=\"w-[234px]\"\n >\n {t(\"actions.continue\")}\n </Button>\n </motion.div>\n </div>\n </OnboardingStage>\n );\n}\n","/**\n * On-demand preview of a cloud voice via its hosted sample.\n *\n * Stands on its own because two unrelated surfaces audition voices: the voice\n * pickers, which preview a row of a list, and the onboarding face step, which\n * previews the one voice belonging to the centered avatar. Both need the same\n * teardown discipline, so it exists once.\n *\n * Hosted samples are static provider-side assets, so a preview costs no\n * synthesis and no credits. All a caller needs is the catalog.\n */\n\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { toast } from \"@mycadet/design-library/components/toast\";\n\nimport { t } from \"@app/i18n\";\nimport { type CloudVoiceOption } from \"@app/lib/tts/use-cloud-voices\";\n\nexport interface UseVoiceSamplePreview {\n /** The model currently playing, or null. */\n previewingModel: string | null;\n play: (voice: CloudVoiceOption) => void;\n stop: () => void;\n}\n\n/**\n * Tracks which voice is playing so a surface can swap its play affordance for\n * a stop one; tears down on a new play and on unmount so a late-resolving\n * `play()` can't leak onto a gone component.\n */\nexport function useVoiceSamplePreview(): UseVoiceSamplePreview {\n const [previewingModel, setPreviewingModel] = useState<string | null>(null);\n const audioRef = useRef<HTMLAudioElement | null>(null);\n const tokenRef = useRef(0);\n\n const stop = () => {\n // Bump the token so a late-resolving play() bails, then tear down.\n tokenRef.current++;\n audioRef.current?.pause();\n audioRef.current = null;\n setPreviewingModel(null);\n };\n\n useEffect(\n () => () => {\n tokenRef.current++;\n audioRef.current?.pause();\n audioRef.current = null;\n },\n [],\n );\n\n function play(voice: CloudVoiceOption): void {\n if (!voice.sampleUrl) {\n return;\n }\n audioRef.current?.pause();\n const token = ++tokenRef.current;\n const audio = new Audio(voice.sampleUrl);\n audioRef.current = audio;\n setPreviewingModel(voice.model);\n const clear = () => {\n if (tokenRef.current === token) {\n setPreviewingModel(null);\n }\n };\n audio.onended = clear;\n audio.onerror = clear;\n void audio.play().catch(() => {\n if (tokenRef.current === token) {\n toast.error(t(\"useVoiceSamplePreview.playFailed\"));\n setPreviewingModel(null);\n }\n });\n }\n\n return { previewingModel, play, stop };\n}\n","/**\n * Which cloud voice belongs to which onboarding avatar.\n *\n * The pairing is the point. The face step's audition answers \"what does THIS\n * character sound like\", so the answer has to change as you cycle the carousel;\n * one shared voice across twelve faces teaches the opposite.\n *\n * Index-aligned with `HARDCODED_POOL` in `onboarding-avatar-pool-store`: the\n * cast is hand-picked and fixed, so the voices are hand-picked too. Each voice\n * is matched to its character's body/eyes/color (grumpy purple blob: dry and\n * formal; goofy teal urchin: bright and energetic), and the set spans accents\n * and registers so cycling sounds like meeting different characters.\n *\n * Index 0, the avatar the picker centers first, takes the cloud default\n * voice, so an untouched carousel hands off the voice the cloud picks on its\n * own.\n *\n * Model ids come from the cloud catalog (`speech_proxy/voice_catalog.py`),\n * which is the source of truth for what is offered and rate-carded. This list\n * is a preference, not a contract: `resolveAvatarVoice` falls back when the\n * platform stops offering one, so delisting a voice degrades the pairing\n * instead of breaking the step.\n */\n\n/** One cloud TTS voice the picker can offer. Wire shape of the cloud API's\n * voices listing (the app twin of web's `lib/tts/use-cloud-voices`). */\nexport interface CloudVoiceOption {\n model: string;\n label: string;\n description: string;\n sampleUrl: string;\n source: string;\n}\n\n/** Preferred cloud voice per avatar, indexed by position in the cast. */\nexport const AVATAR_VOICE_MODELS: readonly string[] = [\n \"EXAVITQu4vr4xnSDxMaL\", // 0 teal goofy urchin: Sarah, the cloud default\n \"onwK4e9ZLuTAKqWW03F9\", // 1 purple grumpy blob: Daniel, formal and flat\n \"TX3LPaxmHKxFdv7VOQHJ\", // 2 orange surprised star: Liam, young and eager\n \"aura-2-helena-en\", // 3 pink gentle blob: Helena, caring\n \"pNInz6obpgDQGcFmaJgB\", // 4 yellow angry ninja: Adam, deep and firm\n \"aura-2-luna-en\", // 5 pink curious urchin: Luna, friendly\n \"IKne3meq5aSn9XLyUdCD\", // 6 orange quirky burst: Charlie, loose and lively\n \"aura-2-pandora-en\", // 7 green bashful ghost: Pandora, soft and calm\n \"aura-2-apollo-en\", // 8 orange dazed sprout: Apollo, unhurried\n \"aura-2-thalia-en\", // 9 teal goofy star: Thalia, bright\n \"Xb7hH8MSUJpSbSDYk0k2\", // 10 pink angry flower: Alice, crisp and pointed\n \"aura-2-theia-en\", // 11 yellow curious cloud: Theia, expressive\n];\n\n/**\n * The voice for the avatar at `index`, resolved against the catalog the\n * platform actually serves.\n *\n * Prefers this avatar's pairing. When the cloud does not offer it (a\n * delisting, or a rate card the pairing predates) any catalog voice beats no\n * audition at all, so fall back to a stable position in the catalog: stable so\n * two visits to the same avatar audition the same voice, and offset by `index`\n * so neighbouring avatars still differ. Null only when the catalog is empty,\n * either unfetched or failed.\n */\nexport function resolveAvatarVoice(\n index: number,\n voices: readonly CloudVoiceOption[],\n): CloudVoiceOption | null {\n if (voices.length === 0) {\n return null;\n }\n const preferred = AVATAR_VOICE_MODELS[index % AVATAR_VOICE_MODELS.length];\n return (\n voices.find((voice) => voice.model === preferred) ??\n voices[index % voices.length] ??\n null\n );\n}\n","/**\n * Personality groups and assistant-name pools for the onboarding name step.\n */\n\nexport interface PersonalityGroup {\n id: string;\n label: string;\n descriptor: string;\n tagline: string;\n names: string[];\n}\n\nexport const PERSONALITY_GROUPS: readonly PersonalityGroup[] = [\n {\n id: \"grounded\",\n label: \"Grounded\",\n descriptor: \"Calm and precise\",\n tagline: \"Measured. No filler.\",\n names: [\"Penn\", \"Sage\", \"Atlas\", \"Orion\", \"Reed\", \"Quill\"],\n },\n {\n id: \"warm\",\n label: \"Warm\",\n descriptor: \"Warm and easy\",\n tagline: \"Friendly and casual.\",\n names: [\"Kit\", \"Remy\", \"Wren\", \"Milo\", \"Fenn\", \"Cleo\"],\n },\n {\n id: \"energetic\",\n label: \"Energetic\",\n descriptor: \"Fast and direct\",\n tagline: \"Brief. To the point.\",\n names: [\"Nova\", \"Ember\", \"Cade\", \"Lark\", \"Vela\", \"Ziggy\"],\n },\n {\n id: \"poetic\",\n label: \"Poetic\",\n descriptor: \"Quiet and observant\",\n tagline: \"Listens, then replies.\",\n names: [\"Luna\", \"Iris\", \"Vesper\", \"Lyra\", \"Juno\", \"Ada\"],\n },\n];\n\nexport const DEFAULT_GROUP_ID = \"grounded\";\n\nexport type AssistantNamingSource = \"randomized\" | \"custom\";\n\nexport const RESEARCH_NAMING_VARIANTS = {\n randomized: \"random_initial\",\n custom: \"custom_name\",\n} as const;\n\nconst SUGGESTION_COUNT = 6;\n\nexport function allAssistantNames(): string[] {\n return PERSONALITY_GROUPS.flatMap((group) => group.names);\n}\n\nexport function pickAssistantName(\n options: { exclude?: string; random?: () => number } = {},\n): string {\n const names = allAssistantNames();\n const random = options.random ?? Math.random;\n const candidates = options.exclude\n ? names.filter((name) => name !== options.exclude)\n : names;\n const pool = candidates.length > 0 ? candidates : names;\n return pool[Math.floor(random() * pool.length)] ?? names[0] ?? \"\";\n}\n\n/**\n * Return `SUGGESTION_COUNT` unique names sampled uniformly at random from\n * the full 24-name pool (all personality groups). Uses a Fisher-Yates\n * partial shuffle. The result is stable per call. Callers should memoize\n * with `useMemo` or `useState` to persist across re-renders.\n */\nexport function sampleSuggestionNames(\n random: () => number = Math.random,\n): string[] {\n const pool = allAssistantNames();\n const count = Math.min(SUGGESTION_COUNT, pool.length);\n for (let i = 0; i < count; i += 1) {\n const j = i + Math.floor(random() * (pool.length - i));\n const tmp = pool[i]!;\n pool[i] = pool[j]!;\n pool[j] = tmp;\n }\n return pool.slice(0, count);\n}\n","/**\n * Fetches the cloud TTS voice catalog. Fetch-only: the cloud is the single\n * source of truth for offered voices and the default, so until the catalog\n * loads (or when it fails) `voices` is empty and pickers render nothing rather\n * than a stale local list.\n *\n * Read straight from the cloud control plane, for callers that have a platform\n * session. Callers that can't reach the cloud (self-hosted, gateway-only) get\n * an empty catalog and pickers render nothing. App twin of web's\n * `use-cloud-voices`, riding the app's own cloud request client instead of the\n * generated SDK.\n */\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { z } from \"zod\";\n\nimport { resolveOrganization } from \"@app/lib/cloud/organization\";\nimport { getCloud } from \"@app/lib/cloud/request\";\n\n/** A cloud voice as offered to the UI. */\nexport interface CloudVoiceOption {\n model: string;\n label: string;\n description: string;\n sampleUrl: string;\n source: string;\n}\n\nexport interface UseCloudVoices {\n /** Offered voices; empty until the cloud catalog loads (or on failure). */\n voices: readonly CloudVoiceOption[];\n /** Platform default model; null until fetched or when none is offered. */\n defaultModel: string | null;\n /** True once the cloud catalog has loaded. */\n fetched: boolean;\n /**\n * A fetch is in flight. Distinct from `!fetched`, which is also true when the\n * catalog is disabled or has failed: surfaces that show a pending state need\n * to tell \"still coming\" from \"not coming\".\n */\n loading: boolean;\n}\n\ninterface VoiceCatalogResponse {\n voices?: readonly CloudVoiceOption[];\n defaultModel?: string | null;\n}\n\nconst CLOUD_SPEECH_VOICES_URL = \"/v1/cloud-speech/tts/voices/\";\n\nconst VoiceCatalogSchema = z.object({\n voices: z\n .array(\n z.object({\n model: z.string(),\n label: z.string(),\n description: z.string(),\n sampleUrl: z.string(),\n source: z.string(),\n }),\n )\n .optional(),\n defaultModel: z.string().nullable().optional(),\n});\n\n/**\n * The catalog read straight from the cloud. The only transport: every voice\n * surface reads the cloud directly and callers without a platform session get\n * an empty catalog.\n */\nexport function useUnscopedCloudVoices(\n options: { enabled?: boolean } = {},\n): UseCloudVoices {\n const query = useQuery({\n queryKey: [\"cloud-speech\", \"tts\", \"voices\"],\n queryFn: async (): Promise<VoiceCatalogResponse | null> => {\n const organization = await resolveOrganization();\n if (!organization.ok) {\n return null;\n }\n const result = await getCloud<VoiceCatalogResponse>(\n CLOUD_SPEECH_VOICES_URL,\n VoiceCatalogSchema,\n { organizationId: organization.data },\n );\n return result.ok ? result.data : null;\n },\n enabled: options.enabled ?? true,\n staleTime: 60_000,\n retry: false,\n });\n\n return {\n voices: query.data?.voices ?? [],\n defaultModel: query.data?.defaultModel ?? null,\n fetched: query.data != null,\n loading: query.isLoading,\n };\n}\n","/**\n * \"Give me a face and a name\" — pick an avatar for the assistant and name it.\n *\n * SPIKE — research-onboarding flow.\n *\n * Second step of the research onboarding (after the details form). Cycles\n * through the shared random character pool: the selected character sits in the\n * center, the rest peek in, cut off, from the edges. The left/right arrows swap\n * the neighbouring character into the center (it springs in and bounces) while\n * the previously-centered one flies back out to the vacated edge slot — all\n * driven by `OnboardingCharacterStage`.\n *\n * Presentational: owns the carousel arrangement + name, and reports the chosen\n * character + name up via `onContinue`.\n */\n\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n ArrowLeft,\n ArrowRight,\n Dices,\n Loader2,\n Pencil,\n Square,\n Volume2,\n} from \"lucide-react\";\n\nimport { useVoiceSamplePreview } from \"@app/components/speech/use-voice-sample-preview\";\nimport { OnboardingCharacterStage } from \"@app/domains/onboarding/components/onboarding-character-stage\";\nimport { OnboardingStage } from \"@app/domains/onboarding/components/onboarding-stage\";\nimport { OnboardingTopBar } from \"@app/domains/onboarding/components/onboarding-top-bar\";\nimport { useOnboardingAvatarPoolStore } from \"@app/domains/onboarding/onboarding-avatar-pool-store\";\nimport { resolveAvatarVoice } from \"@app/domains/onboarding/onboarding-avatar-voices\";\nimport {\n pickAssistantName,\n type AssistantNamingSource,\n} from \"@app/domains/onboarding/prechat-names\";\nimport { useUnscopedCloudVoices } from \"@app/lib/tts/use-cloud-voices\";\nimport { randomCharacterTraits } from \"@app/utils/avatar-random\";\nimport { useBundledAvatarComponents } from \"@app/utils/use-bundled-avatar-components\";\nimport type { CharacterTraits } from \"@app/types/avatar\";\nimport { Button } from \"@mycadet/design-library/components/button\";\nimport { useTranslation } from \"@app/i18n\";\n\nexport interface GiveMeAFaceValues {\n traits: CharacterTraits;\n name: string;\n /**\n * The cloud voice belonging to the chosen avatar: what the user auditioned,\n * so the assistant has to speak in it. Null when the catalog never loaded, in\n * which case the assistant keeps the cloud default.\n */\n voiceModel: string | null;\n /**\n * How the name was chosen. Set on every continue so the face-step funnel\n * event can tell a kept random pick from a typed or shuffled name.\n */\n naming?: { source: AssistantNamingSource };\n}\n\ninterface GiveMeAFaceScreenProps {\n onContinue: (values: GiveMeAFaceValues) => void;\n onBack: () => void;\n /** Name already chosen on this step. Restores it after a step back. */\n initialName?: string;\n /** Redo into the next step — only set when the user has stepped back. */\n onForward?: () => void;\n /**\n * Whether to offer the voice audition. False for onboarding flows that adopt\n * a locally-hosted assistant: those can hold no platform session, so the\n * voice catalog is unreachable and the control could only ever sit inert.\n */\n canAuditionVoice?: boolean;\n}\n\n/** The carousel arrangement: who's centered + who sits in each edge slot. */\ninterface Arrangement {\n centerChar: number;\n edgeOrder: number[];\n}\n\nfunction initialArrangement(count: number, centerChar: number): Arrangement {\n const edgeOrder: number[] = [];\n for (let i = 0; i < count; i++) {\n if (i !== centerChar) {\n edgeOrder.push(i);\n }\n }\n return { centerChar, edgeOrder };\n}\n\nexport function GiveMeAFaceScreen({\n onContinue,\n onBack,\n initialName,\n onForward,\n canAuditionVoice = true,\n}: GiveMeAFaceScreenProps) {\n const { t } = useTranslation(\"onboarding\");\n const components = useBundledAvatarComponents();\n const characters = useOnboardingAvatarPoolStore.use.characters();\n const ensureGenerated = useOnboardingAvatarPoolStore.use.ensureGenerated();\n const selectedIndex = useOnboardingAvatarPoolStore.use.selectedIndex();\n const setSelectedIndex = useOnboardingAvatarPoolStore.use.setSelectedIndex();\n const setCharacterTraits =\n useOnboardingAvatarPoolStore.use.setCharacterTraits();\n\n useEffect(() => {\n if (components) {\n ensureGenerated(components);\n }\n }, [components, ensureGenerated]);\n\n const count = characters.length;\n const restoredName = initialName?.trim() ?? \"\";\n const [arrangement, setArrangement] = useState<Arrangement | null>(null);\n const [name, setName] = useState(() => restoredName || pickAssistantName());\n const [editingName, setEditingName] = useState(false);\n // A restored or edited/shuffled name sticks across avatar cycling.\n const nameCustomized = useRef(restoredName.length > 0);\n const nameInputRef = useRef<HTMLInputElement>(null);\n // The current swap: the newly selected char + the slot it came from\n // (entering), and the old center + the slot it's heading to (exiting).\n const [swap, setSwap] = useState<{\n entering: { char: number; fromSlot: number };\n exiting: { char: number; toSlot: number };\n } | null>(null);\n\n // Seed the arrangement once the pool exists, centering the stored selection.\n useEffect(() => {\n if (count > 0 && arrangement === null) {\n setArrangement(initialArrangement(count, selectedIndex));\n }\n }, [count, selectedIndex, arrangement]);\n\n // Keep the store's selection in sync so the chosen avatar survives navigation.\n useEffect(() => {\n if (arrangement) {\n setSelectedIndex(arrangement.centerChar);\n }\n }, [arrangement, setSelectedIndex]);\n\n const centerChar = arrangement?.centerChar;\n\n // Focus (and select) the field when entering edit mode.\n useEffect(() => {\n if (editingName) {\n nameInputRef.current?.focus();\n nameInputRef.current?.select();\n }\n }, [editingName]);\n\n // Each avatar has its own voice (see onboarding-avatar-voices), auditioned\n // from the catalog's hosted sample. Samples are static provider-side assets,\n // so an audition costs no synthesis and no credits. The catalog comes\n // straight from the cloud, so the audition is live as soon as this step\n // is, independent of the assistant hatching in the background.\n const { voices, loading: voicesLoading } = useUnscopedCloudVoices({\n enabled: canAuditionVoice,\n });\n const centeredVoice = useMemo(\n () => (centerChar == null ? null : resolveAvatarVoice(centerChar, voices)),\n [centerChar, voices],\n );\n const {\n previewingModel,\n play: playVoice,\n stop: stopVoice,\n } = useVoiceSamplePreview();\n const auditioning =\n centeredVoice !== null && previewingModel === centeredVoice.model;\n // Disabled-and-still-coming, as opposed to disabled because the catalog\n // failed. Those want different affordances.\n const voicePending = !centeredVoice && voicesLoading;\n\n function toggleVoice() {\n if (!centeredVoice) {\n return;\n }\n if (auditioning) {\n stopVoice();\n return;\n }\n playVoice(centeredVoice);\n }\n\n // Swap `targetChar` into the center; the old center takes its vacated slot.\n // The incoming avatar flies off-screen then pops into the center; the old\n // center shrinks away then reappears at `slot` (both tracked via `swap`).\n function moveTo(targetChar: number) {\n if (!arrangement || targetChar === arrangement.centerChar) {\n return;\n }\n const slot = arrangement.edgeOrder.indexOf(targetChar);\n if (slot < 0) {\n return;\n }\n // The audition belongs to the avatar leaving the center; letting it run on\n // would pair a voice with a face it isn't.\n stopVoice();\n const edgeOrder = [...arrangement.edgeOrder];\n edgeOrder[slot] = arrangement.centerChar;\n setSwap({\n entering: { char: targetChar, fromSlot: slot },\n exiting: { char: arrangement.centerChar, toSlot: slot },\n });\n setArrangement({ centerChar: targetChar, edgeOrder });\n }\n\n const goNext = () =>\n arrangement && moveTo((arrangement.centerChar + 1) % count);\n const goPrev = () =>\n arrangement && moveTo((arrangement.centerChar - 1 + count) % count);\n\n const centeredTraits = useMemo(\n () => (arrangement ? characters[arrangement.centerChar] : undefined),\n [arrangement, characters],\n );\n\n const ready = !!components && !!arrangement && !!centeredTraits;\n\n function handleContinue() {\n if (centeredTraits) {\n onContinue({\n traits: centeredTraits,\n name: name.trim(),\n voiceModel: centeredVoice?.model ?? null,\n naming: {\n source: nameCustomized.current ? \"custom\" : \"randomized\",\n },\n });\n }\n }\n\n // Reroll both the name and the centered avatar's traits, each guaranteed to\n // differ from the current one. The name counts as a deliberate pick, so\n // (like editing) it sticks across avatar cycling.\n function randomizeCharacter() {\n nameCustomized.current = true;\n setName((current) => pickAssistantName({ exclude: current }));\n if (components && arrangement && centeredTraits) {\n let traits = randomCharacterTraits(components);\n while (\n traits.bodyShape === centeredTraits.bodyShape &&\n traits.eyeStyle === centeredTraits.eyeStyle &&\n traits.color === centeredTraits.color\n ) {\n traits = randomCharacterTraits(components);\n }\n setCharacterTraits(arrangement.centerChar, traits);\n }\n }\n\n const arrowClass =\n \"pointer-events-auto z-10 flex cursor-pointer h-10 w-10 items-center justify-center rounded-full \" +\n \"bg-[color-mix(in_srgb,var(--content-default)_10%,transparent)] text-[var(--content-default)] \" +\n \"transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--content-default)_18%,transparent)]\";\n\n return (\n <OnboardingStage className=\"bg-[var(--surface-base)] text-[var(--content-default)]\">\n {ready && (\n <OnboardingCharacterStage\n components={components}\n characters={characters}\n centerChar={arrangement.centerChar}\n edgeOrder={arrangement.edgeOrder}\n entering={swap?.entering ?? null}\n exiting={swap?.exiting ?? null}\n onEnterComplete={(char) =>\n setSwap((curr) => (curr?.entering.char === char ? null : curr))\n }\n onSelectChar={moveTo}\n />\n )}\n\n {/* Redo routes through Continue (not the generic step redo) so any avatar\n or name edits made after stepping back are captured before advancing —\n otherwise the redo would re-stage the previous selection. */}\n <OnboardingTopBar\n tone=\"light\"\n onBack={onBack}\n onNext={onForward ? handleContinue : undefined}\n />\n\n {/* Title */}\n <h1\n className=\"absolute left-1/2 top-[22%] z-10 -translate-x-1/2 whitespace-nowrap text-center text-[2.6rem] leading-none max-md:w-[90vw] max-md:whitespace-normal max-md:text-[2.08rem]\"\n style={{\n fontFamily: \"var(--font-serif)\",\n animation: \"fadeInUp 0.4s ease-out both\",\n }}\n >\n {t(\"giveMeAFaceScreen.title\")}\n </h1>\n\n {/* Cycle arrows, flanking the centered avatar */}\n <button\n type=\"button\"\n aria-label={t(\"giveMeAFaceScreen.previousCharacter\")}\n onClick={goPrev}\n className={`absolute left-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${arrowClass}`}\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </button>\n <button\n type=\"button\"\n aria-label={t(\"giveMeAFaceScreen.nextCharacter\")}\n onClick={goNext}\n className={`absolute right-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${arrowClass}`}\n >\n <ArrowRight className=\"h-4 w-4\" />\n </button>\n\n {/* Name (view ↔ edit) + Continue, grouped with room between them. */}\n <div className=\"absolute left-1/2 top-[58%] z-10 flex -translate-x-1/2 flex-col items-center gap-10 max-md:top-[54%]\">\n <div className=\"flex flex-col items-center gap-4\">\n {editingName ? (\n <input\n ref={nameInputRef}\n value={name}\n onChange={(e) => {\n nameCustomized.current = true;\n setName(e.target.value);\n }}\n onBlur={() => setEditingName(false)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n setEditingName(false);\n }\n }}\n placeholder={t(\"giveMeAFaceScreen.namePlaceholder\")}\n aria-label={t(\"giveMeAFaceScreen.nameAriaLabel\")}\n className=\"w-[234px] rounded-2xl border border-[var(--border-element)] bg-transparent px-4 py-2.5 text-center text-lg text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none transition-colors duration-150 focus:border-[var(--border-active)]\"\n />\n ) : (\n <div className=\"flex items-center gap-2.5\">\n <button\n type=\"button\"\n onClick={() => setEditingName(true)}\n aria-label={t(\"giveMeAFaceScreen.editName\")}\n className=\"flex cursor-pointer items-center gap-2.5\"\n >\n <span\n className={`text-2xl font-medium ${name ? \"text-[var(--content-default)]\" : \"text-[var(--content-tertiary)]\"}`}\n >\n {name || t(\"giveMeAFaceScreen.namePlaceholder\")}\n </span>\n <Pencil className=\"h-5 w-5 text-[var(--content-tertiary)]\" />\n </button>\n <button\n type=\"button\"\n onClick={randomizeCharacter}\n aria-label={t(\"giveMeAFaceScreen.shuffle\")}\n title={t(\"giveMeAFaceScreen.shuffle\")}\n className=\"cursor-pointer text-[var(--content-tertiary)] transition-[transform,color] duration-300 hover:rotate-180 hover:text-[var(--content-default)]\"\n >\n <Dices className=\"h-5 w-5\" />\n </button>\n </div>\n )}\n\n {/* The only place voice is surfaced in onboarding. It auditions the\n CENTERED avatar's own voice, so cycling the carousel is also how\n you shop for a voice. While the catalog is in flight the button\n spins rather than sitting dead: a slow fetch has to read as\n \"coming\", not \"broken\". Absent entirely where the catalog is out\n of reach, rather than offered and permanently inert. */}\n {canAuditionVoice && (\n <button\n type=\"button\"\n onClick={toggleVoice}\n disabled={!centeredVoice}\n title={t(\"giveMeAFaceScreen.hearVoice\")}\n aria-label={\n auditioning\n ? t(\"giveMeAFaceScreen.stopVoice\")\n : t(\"giveMeAFaceScreen.hearVoice\")\n }\n aria-busy={voicePending}\n className={`flex cursor-pointer items-center gap-2 rounded-full border border-[color-mix(in_srgb,var(--content-default)_22%,transparent)] px-4 py-2 text-sm text-[var(--content-default)] transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--content-default)_10%,transparent)] disabled:cursor-default ${voicePending ? \"disabled:opacity-70\" : \"disabled:opacity-40\"}`}\n >\n {voicePending ? (\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n ) : auditioning ? (\n <Square className=\"h-4 w-4\" />\n ) : (\n <Volume2 className=\"h-4 w-4\" />\n )}\n {t(\"giveMeAFaceScreen.hearVoice\")}\n </button>\n )}\n </div>\n\n <Button\n type=\"button\"\n variant=\"primary\"\n size=\"large\"\n rightIcon={<ArrowRight size={16} />}\n disabled={!ready}\n onClick={handleContinue}\n className=\"w-[234px]\"\n >\n {t(\"actions.continue\")}\n </Button>\n </div>\n </OnboardingStage>\n );\n}\n","import { useState } from \"react\";\nimport { z } from \"zod\";\nimport { useLocation, useNavigate } from \"react-router\";\nimport { patchCloud } from \"@app/lib/cloud/request\";\nimport { saveCharacterTraits } from \"@app/assistant/avatar-traits\";\nimport { resolveOrganization } from \"@app/lib/cloud/organization\";\nimport { buildLetsChatKickoffMessage } from \"@app/domains/onboarding/lets-chat-kickoff\";\nimport {\n setPendingAssistantName,\n setPendingPreChatContext,\n type PreChatOnboardingContext,\n} from \"@app/domains/onboarding/prechat\";\nimport { markAssistantOnboarded } from \"@app/domains/onboarding/onboarded-assistant-record\";\nimport { selectedAssistantState } from \"@app/assistant/assistant-selection\";\nimport { OnboardingLayout } from \"@app/components/onboarding-layout\";\nimport { routes } from \"@app/utils/routes\";\nimport { ResearchOnboardingScreen } from \"../screens/research-onboarding-screen\";\nimport { IntroductionScreen } from \"../screens/introduction-screen\";\nimport { GiveMeAFaceScreen } from \"../screens/give-me-a-face-screen\";\nimport type { GiveMeAFaceValues } from \"../screens/give-me-a-face-screen\";\nimport type { ResearchOnboardingValues } from \"../screens/research-onboarding-screen\";\n\n/**\n * The onboarding funnel's post-hatch steps, served at\n * `/assistant/onboarding/research` — the route path web's research flow owned\n * before the product ruling dropped the research turn entirely.\n *\n * The surviving funnel: who are you (form) → meet your assistant (intro) →\n * give me a face (avatar + voice) → handoff into a fresh chat with a hidden\n * kickoff. Everything that ran daemon turns is gone: the research runner, the\n * plugin pre-install, the personality rewrite, and the pre-chat profile\n * upserting. Whatever the assistant wants to know about itself, it learns from\n * the handoff context riding the first chat message — and writes itself, on\n * hatch or wake or its own onboarding, if it chooses to.\n */\n\n/** The sub-steps the funnel sequences through. */\ntype FlowStep = \"form\" | \"intro\" | \"face\";\n\n/**\n * Persists the avatar's voice to the assistant's managed-TTS config. Onboarding\n * assistants are managed, so the voice lives on the `cadet` provider block,\n * the same field every voice picker writes. A null voice is a no-op: the\n * catalog never loaded, so the assistant keeps the cloud default.\n */\nasync function saveAvatarVoice(\n assistantId: string,\n model: string | null,\n): Promise<void> {\n if (!model) {\n return;\n }\n const organization = await resolveOrganization();\n if (!organization.ok) {\n return;\n }\n // The config PATCH rides the app's cloud proxy; the body matches the\n // daemon's config patch shape (services.tts.providers.cadet.model).\n await patchCloud(\n `/v1/assistants/${encodeURIComponent(assistantId)}/config`,\n z.null(),\n { services: { tts: { providers: { cadet: { model } } } } },\n { organizationId: organization.data },\n ).catch(() => undefined);\n}\n\nexport function OnboardingFlowRoute() {\n const navigate = useNavigate();\n const location = useLocation();\n // The hatching screen hands off only once provisioning is ready, so the\n // id is already live here — no hatch-wait, no error overlay, no retry\n // arm. The selection rides history state (the chooser's convention), so\n // the route itself stays bare — no query params to keep alive across a\n // refresh.\n const assistantId = selectedAssistantState(location.state)?.id;\n\n const [step, setStep] = useState<FlowStep>(\"form\");\n const [formValues, setFormValues] = useState<ResearchOnboardingValues | null>(\n null,\n );\n const [faceValues, setFaceValues] = useState<GiveMeAFaceValues | null>(null);\n\n function goBack() {\n setStep((current) =>\n current === \"face\" ? \"intro\" : current === \"intro\" ? \"form\" : current,\n );\n }\n\n /**\n * Build the pre-chat context and hand off into a fresh chat. The hidden\n * kickoff drives the assistant's first reply without rendering a user\n * bubble, so the chat opens with a proactive greeting in the persona the\n * user just configured; the chosen name rides both the context and the\n * optimistic sidebar hint.\n */\n function enterAssistant() {\n if (!formValues) {\n return;\n }\n const userName = formValues.firstName.trim();\n const assistantName = faceValues?.name.trim() || undefined;\n\n const context: PreChatOnboardingContext = {\n // No tool/task collection in this flow.\n tools: [],\n tasks: [],\n tone: \"grounded\",\n ...(userName ? { userName } : {}),\n // Hidden kickoff: the chat opens on the assistant's proactive greeting.\n initialMessage: buildLetsChatKickoffMessage(assistantName),\n initialMessageHidden: true,\n ...(assistantName ? { assistantName } : {}),\n };\n setPendingPreChatContext(context);\n if (assistantName) {\n setPendingAssistantName(assistantName);\n }\n\n if (assistantId) {\n // The completion record this assistant is judged by from here on.\n markAssistantOnboarded(assistantId);\n // Apply the picked avatar now — the assistant is hatched, so the traits\n // land directly (no staged handoff for a later chat mount to consume).\n if (faceValues) {\n void saveCharacterTraits(assistantId, faceValues.traits).then(() =>\n saveAvatarVoice(assistantId, faceValues.voiceModel),\n );\n }\n }\n\n void navigate(`${routes.assistant}?onboarding=1`, { replace: true });\n }\n\n if (step === \"form\") {\n return (\n <OnboardingLayout avatarWave=\"none\">\n <ResearchOnboardingScreen\n onSubmit={(values) => {\n setFormValues(values);\n setStep(\"intro\");\n }}\n onSkip={() => {\n // The off-ramp lands on the assistant as-is. A known assistant\n // is marked onboarded so the funnel doesn't re-run for it; a\n // walk that hasn't provisioned one yet has nothing to mark —\n // the chooser takes it from here.\n if (assistantId) {\n markAssistantOnboarded(assistantId);\n }\n void navigate(routes.assistant, { replace: true });\n }}\n />\n </OnboardingLayout>\n );\n }\n\n if (step === \"intro\" && formValues) {\n return (\n <OnboardingLayout avatarWave=\"none\">\n <IntroductionScreen\n firstName={formValues.firstName.trim()}\n assistantName={faceValues?.name.trim() || undefined}\n onContinue={() => setStep(\"face\")}\n onBack={goBack}\n />\n </OnboardingLayout>\n );\n }\n\n if (step === \"face\" && formValues) {\n return (\n <OnboardingLayout avatarWave=\"none\">\n <GiveMeAFaceScreen\n initialName={faceValues?.name}\n onContinue={(values) => {\n setFaceValues(values);\n enterAssistant();\n }}\n onBack={goBack}\n />\n </OnboardingLayout>\n );\n }\n\n // Unreachable in practice (formValues is set before the steps that need it);\n // the fallback keeps the narrowing honest.\n return null;\n}\n","import { RouteErrorBoundary } from \"@app/components/route-error-boundary\";\nimport { RootHydrateFallback } from \"@app/components/root-hydrate-fallback\";\n\n/**\n * The shell's consent route: first consent and stale-version re-reviews both\n * render OUTSIDE the assistant — per the unbundling ruling, consent takes\n * place at the app shell before any assistant mounts. The screen carries\n * `returnTo` so accepting returns the user to where they were headed.\n */\nexport const consentRoute = {\n path: \"/account/consent\",\n ErrorBoundary: RouteErrorBoundary,\n HydrateFallback: RootHydrateFallback,\n lazy: {\n Component: () =>\n import(\"./review-terms-screen\").then((m) => m.ReviewTermsScreen),\n },\n};\n","import type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport type { AssistantStatus } from \"@mycadet/ipc-contract\";\n\nimport { getElectronBridge } from \"./electron-bridge\";\n\n/**\n * Map the app shell's own resolution state onto the five-state menu-bar\n * status the native app shows (`AssistantStatus` in\n * `clients/macos/src/main/status.ts`). Pure so the mapping is unit-tested\n * without standing up stores.\n *\n * The shell resolves the assistant BEFORE anything mounts: the web assistant\n * iframe exists only once the resolution came back `ready`, so the web bundle\n * carries no status notion at all — by the time it loads, the assistant is\n * fully loaded. The dot therefore reads the shell's own resolution, which is\n * the only place the pre-mount states can ever be observed:\n *\n * authFailed → error → disconnected → idle\n *\n * The old in-conversation `thinking` pulse dies here: turn phase and SSE\n * liveness were web's facts, and web no longer reports them. The dot rests at\n * `idle` while the assistant works; per-turn granularity returns with the\n * desktop layer's own vantage (it routes the gateway traffic), which is the\n * stated endgame for all electron logic.\n */\nexport function deriveAssistantStatus(\n state: AssistantRequestState,\n): AssistantStatus {\n // The resolution request itself failed (network, timeout, contract\n // mismatch) — the assistant failed to come up.\n if (state.status === \"error\") {\n return \"error\";\n }\n\n switch (state.status) {\n // The platform rejected the shell's credential while resolving — that IS\n // the auth failure; there is no separate session question to ask.\n case \"unauthenticated\":\n return \"authFailed\";\n // An assistant is resolved and hosting the web bundle — the assistant is\n // fully loaded.\n case \"ready\":\n return \"idle\";\n // Still resolving, or nothing to host: the chooser owns the window, no\n // assistant is paired, or the assistant isn't usable. No live data plane.\n default:\n return \"disconnected\";\n }\n}\n\n/**\n * Per-capability wrapper for the Electron host's menu-bar (Tray) status\n * indicator, matching the app bridge's other capabilities: the renderer never\n * touches `window.cadet.*` directly — feature code calls this named function.\n *\n * Publishes the assistant's connection status so the main process can drive\n * the Tray status dot. The app shell holds the resolution (it resolved the\n * assistant), so it is the source of truth; main owns only the presentation.\n * Fire-and-forget — no acknowledgement.\n *\n * Safe to call from any host — no-op off Electron.\n */\nexport function setAssistantStatus(status: AssistantStatus): void {\n getElectronBridge()?.status?.setConnection(status);\n}\n","import { useEffect } from \"react\";\n\nimport type { AssistantRequestState } from \"../assistant/use-assistant-request\";\nimport {\n deriveAssistantStatus,\n setAssistantStatus,\n} from \"../runtime/assistant-status\";\n\n// Relative imports (not `@app/*`) so this module tree stays free of app path\n// aliases for any out-of-tree consumer; the hook itself is app-internal.\n\n/**\n * Publish the assistant's connection status to the Electron host so the main\n * process can drive the menu-bar (Tray) status dot. Main de-dupes republished\n * values, so publishing on every resolution change is cheap.\n *\n * The app shell resolves the assistant itself, so the dot reads that\n * resolution — no status is gathered from the web assistant iframe, which\n * only mounts once the assistant is fully loaded and carries no status\n * notion at all. Mounted in `AssistantShell`, where the resolution state is\n * in scope. `setAssistantStatus` no-ops off Electron, so mounting is safe\n * unconditionally.\n *\n * The cleanup publishes `disconnected` on unmount: the shell leaves the tree\n * when the router swaps to a chooser route or the active assistant changes,\n * and the tray must not stick at the previous assistant's `idle`.\n *\n * This module family is the intermediate home for the renderer-side electron\n * glue; per the desktop-layer direction it eventually folds into the electron\n * main process, which will derive the dot from its own vantage.\n */\nexport function useElectronStatusSync(state: AssistantRequestState): void {\n useEffect(() => {\n setAssistantStatus(deriveAssistantStatus(state));\n }, [state]);\n\n useEffect(() => () => setAssistantStatus(\"disconnected\"), []);\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n AssistantNavigationSchema,\n HostNavigationSchema,\n ShareFeedbackRequestSchema,\n} from \"../assistant/resolution-contract\";\n\nexport interface AssistantFrameProps {\n onNavigate(path: string, options: { replace: boolean }): void;\n title: string;\n onShareFeedback?: () => void;\n}\n\nconst mount = \"/web\";\n\nfunction frameUrl(): string {\n return new URL(\n `${mount}${location.pathname}${location.search}${location.hash}`,\n window.location.origin,\n ).href;\n}\n\nexport function AssistantFrame({\n onNavigate,\n onShareFeedback,\n title,\n}: AssistantFrameProps) {\n const ref = useRef<HTMLIFrameElement>(null);\n const [src] = useState(frameUrl);\n const currentPath = useRef(src);\n const frameOrigin = useMemo(() => window.location.origin, []);\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n if (ShareFeedbackRequestSchema.safeParse(event.data).success) {\n onShareFeedback?.();\n return;\n }\n const message = AssistantNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (path === currentPath.current) {\n return;\n }\n // The frame may only steer its own url space: the mount prefix is the\n // frame's home, so anything else (host routes, protocol-relative,\n // traversal) never reaches the host router.\n if (!path.startsWith(`${mount}/`) || path.includes(\"\\\\\")) {\n return;\n }\n if (\n path\n .split(/[?#]/)[0]\n .split(\"/\")\n .some((part) => part === \".\" || part === \"..\")\n ) {\n return;\n }\n currentPath.current = path;\n const target = path.slice(mount.length) || \"/\";\n onNavigate(target, { replace: message.data.nav === \"replace\" });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate, onShareFeedback]);\n\n // The frame's HOST-navigation requests: surfaces that live outside the\n // frame's url space (the account area — e.g. the Doctor page) but that\n // the assistant bundle must be able to open. Only /account/* paths are\n // honored, so a compromised frame still cannot steer the host chrome.\n useEffect(() => {\n const listener = (event: MessageEvent) => {\n if (\n event.source !== ref.current?.contentWindow ||\n event.origin !== frameOrigin\n ) {\n return;\n }\n const message = HostNavigationSchema.safeParse(event.data);\n if (!message.success) {\n return;\n }\n const path = message.data.path;\n if (!path.startsWith(\"/account/\") || path.includes(\"\\\\\")) {\n return;\n }\n onNavigate(path, { replace: false });\n };\n window.addEventListener(\"message\", listener);\n return () => window.removeEventListener(\"message\", listener);\n }, [frameOrigin, onNavigate]);\n\n useEffect(() => {\n const next = frameUrl();\n if (next !== currentPath.current) {\n currentPath.current = next;\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: next },\n frameOrigin,\n );\n }\n }, [location, frameOrigin]);\n\n return (\n <iframe\n ref={ref}\n src={src}\n onLoad={() =>\n ref.current?.contentWindow?.postMessage(\n { source: \"mycadet-web-parent-nav\", path: currentPath.current },\n frameOrigin,\n )\n }\n title={title}\n sandbox=\"allow-scripts allow-same-origin allow-forms allow-popups\"\n allow=\"microphone; camera; clipboard-write\"\n style={{ width: \"100%\", height: \"100%\", minHeight: \"100dvh\", border: 0 }}\n />\n );\n}\n","\"use client\";\n\nimport { CloudOff } from \"lucide-react\";\nimport { useEffect, useRef, useState, type CSSProperties } from \"react\";\nimport { useAssistantRequest } from \"./assistant/use-assistant-request\";\nimport { AppI18nProvider } from \"./i18n/provider\";\nimport { useTranslation } from \"./i18n/react\";\nimport { useElectronStatusSync } from \"./hooks/use-electron-status-sync\";\nimport { AssistantFrame } from \"./shell/assistant-frame\";\nimport { routes } from \"./utils/routes\";\n\nexport interface AppShellProps {\n apiBaseUrl?: string;\n assistantId?: string;\n onNavigate(path: string, options: { replace: boolean }): void;\n title?: string;\n onShareFeedback?: () => void;\n}\n\n/** Portable React entry. Resolves assistants through the host API; the host owns browser navigation. */\nexport function AppShell(props: AppShellProps) {\n return (\n <AppI18nProvider>\n <AssistantShell key={props.assistantId} {...props} />\n </AppI18nProvider>\n );\n}\n\n// Inline styles so the portable bundle and the standalone build render the\n// failure states identically (the panel has no stylesheet contract of its\n// own). The vars are the design-library tokens the standalone bundle ships;\n// the literals are the dark-theme values they resolve to.\nconst primaryButton: CSSProperties = {\n borderRadius: 8,\n border: \"none\",\n padding: \"10px 20px\",\n fontSize: 14,\n fontWeight: 600,\n background: \"var(--primary-base, #FDFDFC)\",\n color: \"var(--content-inset, #17191C)\",\n cursor: \"pointer\",\n};\n\nconst quietButton: CSSProperties = {\n borderRadius: 8,\n border: \"1px solid var(--content-tertiary, #8D99A5)\",\n padding: \"8px 16px\",\n fontSize: 13,\n background: \"transparent\",\n color: \"inherit\",\n cursor: \"pointer\",\n};\n\n/** The wake failure's display line: the cloud route puts cadet-host's own\n * punchline in `reason` (502) and the v1 refusals in `detail` (4xx). */\nfunction wakeFailureMessage(body: unknown): string | null {\n if (typeof body !== \"object\" || body === null) return null;\n if (\"reason\" in body && typeof body.reason === \"string\") return body.reason;\n if (\"detail\" in body && typeof body.detail === \"string\") return body.detail;\n return null;\n}\n\nfunction AssistantShell({\n apiBaseUrl = \"/\",\n assistantId,\n onNavigate,\n onShareFeedback,\n title,\n}: AppShellProps) {\n const { t } = useTranslation(\"account\");\n const [wakePending, setWakePending] = useState(false);\n const [wakeReason, setWakeReason] = useState<string | null>(null);\n const { state, retry: reload } = useAssistantRequest({\n apiBaseUrl,\n assistantId,\n });\n\n // The tray's status logic lives with the resolution\n useElectronStatusSync(state);\n\n const chooserOwned = state.status === \"selection\" || state.status === \"empty\";\n const redirected = useRef(false);\n useEffect(() => {\n if (chooserOwned && !redirected.current) {\n redirected.current = true;\n onNavigate(routes.account.selectAssistant, { replace: true });\n }\n }, [chooserOwned, onNavigate]);\n\n async function wake() {\n if (!assistantId || wakePending) return;\n setWakePending(true);\n setWakeReason(null);\n try {\n const base = new URL(apiBaseUrl, window.location.origin);\n base.pathname = base.pathname.replace(/\\/*$/, \"/\");\n const response = await fetch(\n new URL(`v1/assistants/${encodeURIComponent(assistantId)}/wake/`, base),\n { method: \"POST\", credentials: \"include\" },\n );\n if (response.ok) {\n setWakePending(false);\n reload();\n return;\n }\n const body: unknown = await response.json().catch(() => null);\n setWakeReason(wakeFailureMessage(body) ?? t(\"appShell.wakeFailed\"));\n } catch {\n setWakeReason(t(\"appShell.wakeFailed\"));\n }\n setWakePending(false);\n }\n\n if (state.status === \"unauthenticated\")\n return <PairRedirect onNavigate={onNavigate} />;\n\n if (state.status !== \"ready\") {\n const alert = state.status === \"notReady\" || state.status === \"error\";\n const canRetry = state.status === \"error\" || state.status === \"unavailable\";\n return (\n <div\n role={alert ? \"alert\" : \"status\"}\n style={{\n minHeight: \"100svh\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 12,\n padding: 24,\n textAlign: \"center\",\n }}\n >\n {state.status === \"notReady\" ? (\n <NotReadyBody\n wakePending={wakePending}\n wakeReason={wakeReason}\n onWake={wake}\n />\n ) : state.status === \"error\" ? (\n <ErrorBody />\n ) : (\n <p style={{ margin: 0 }}>{t(`appShell.${state.status}`)}</p>\n )}\n {(canRetry || state.status === \"notReady\") && (\n <div style={{ display: \"flex\", gap: 8 }}>\n {canRetry && (\n <button type=\"button\" onClick={reload} style={quietButton}>\n {t(\"appShell.retry\")}\n </button>\n )}\n <button\n type=\"button\"\n onClick={() =>\n onNavigate(routes.account.selectAssistant, { replace: false })\n }\n style={quietButton}\n >\n {t(\"appShell.switchAssistant\")}\n </button>\n </div>\n )}\n </div>\n );\n }\n\n const assistant = state.assistant;\n return (\n <AssistantFrame\n onShareFeedback={onShareFeedback}\n key={`${assistant.id}:${assistant.version}`}\n onNavigate={onNavigate}\n title={title ?? t(\"appShell.title\")}\n />\n );\n}\n\n/** The 409 \"assistant is not ready\" resolution — deliberately NOT the\n * starting sentiment: the API only reports that the assistant isn't ready\n * (never hatched, stopped, or mid-release-resolution). The action is the\n * wake: the same recovery drive the admin console's Wake button gets, so\n * both the admin and the user hold a path back into the assistant (the\n * retry stays for the states where nothing can be woken). Modeled on the\n * web app's full-page failure treatment (icon + title + body + a primary\n * action, centered); inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction NotReadyBody({\n wakePending,\n wakeReason,\n onWake,\n}: {\n wakePending: boolean;\n wakeReason: string | null;\n onWake(): void;\n}) {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.notReadyTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.notReadyBody\")}\n </p>\n {wakeReason !== null && (\n <p\n style={{\n margin: 0,\n maxWidth: 420,\n fontSize: 13,\n opacity: 0.6,\n lineHeight: 1.5,\n }}\n >\n {wakeReason}\n </p>\n )}\n <button\n type=\"button\"\n onClick={onWake}\n disabled={wakePending}\n style={{ ...primaryButton, opacity: wakePending ? 0.6 : 1 }}\n >\n {wakePending ? t(\"appShell.waking\") : t(\"appShell.wake\")}\n </button>\n </>\n );\n}\n\n/** An unauthenticated shell IS a pairing problem — forward to the pair\n * page once, replaced, so the dead assistant URL doesn't linger in\n * history. Renders nothing; the unauthenticated message shows for the\n * beat before the navigation lands. */\nfunction PairRedirect({\n onNavigate,\n}: {\n onNavigate: (path: string, options: { replace: boolean }) => void;\n}): null {\n const forwarded = useRef(false);\n useEffect(() => {\n if (forwarded.current) return;\n forwarded.current = true;\n onNavigate(routes.account.pair, { replace: true });\n }, [onNavigate]);\n return null;\n}\n\n/** The generic resolution failure — the request itself did not go through\n * (network trouble, an unreachable API, a 5xx). Deliberately NOT the\n * starting sentiment: nothing about the assistant's lifecycle is known,\n * so retry (not wake) is the action. Modeled on the web app's full-page\n * failure treatment; inline styles so the portable bundle and the\n * standalone build render it identically.\n */\nfunction ErrorBody() {\n const { t } = useTranslation(\"account\");\n return (\n <>\n <CloudOff size={28} aria-hidden=\"true\" />\n <h1 style={{ margin: 0, fontSize: 20, fontWeight: 600 }}>\n {t(\"appShell.errorTitle\")}\n </h1>\n <p style={{ margin: 0, maxWidth: 420, opacity: 0.7, lineHeight: 1.5 }}>\n {t(\"appShell.errorBody\")}\n </p>\n </>\n );\n}\n","import { useMemo } from \"react\";\n\nimport { useAuthStore } from \"@app/stores/auth-store\";\n\nimport {\n readConsentCurrency,\n type ConsentCurrency,\n} from \"./consent-persistence\";\n\nexport interface ConsentGateState {\n /** False while the session or user identity is still resolving. */\n settled: boolean;\n /** Whether there is a live cloud session to consent against. */\n hasCloudSession: boolean;\n userId: string | null;\n currency: ConsentCurrency | null;\n}\n\n/**\n * The shell consent gate's read model, mirroring web's resolver semantics:\n * consent is a cloud-account concern, so the gate only decides once there is\n * a cloud session and a user id to read acks against. Awaiting those\n * signals reads `settled: false`.\n */\nexport function useConsentGate(): ConsentGateState {\n const user = useAuthStore.use.user();\n const sessionStatus = useAuthStore(\n (state: { sessionStatus: string; cloudSession: string }) =>\n `${state.sessionStatus}:${state.cloudSession}`,\n );\n\n return useMemo(() => {\n const [status, cloudSession] = sessionStatus.split(\":\") as [string, string];\n const settled = status !== \"initializing\" && cloudSession !== \"unknown\";\n const hasCloudSession = cloudSession === \"present\";\n const userId = user?.id ?? null;\n return {\n settled,\n hasCloudSession,\n userId,\n currency:\n settled && hasCloudSession && userId\n ? readConsentCurrency(userId)\n : null,\n };\n }, [sessionStatus, user?.id]);\n}\n","import {\n Navigate,\n useLocation,\n useNavigate,\n useOutletContext,\n} from \"react-router\";\nimport { AppShell } from \"@app/app-shell\";\nimport { useTranslation } from \"@app/i18n\";\nimport { selectedAssistantState } from \"@app/assistant/assistant-selection\";\nimport { routes } from \"@app/utils/routes\";\nimport { useConsentGate } from \"@app/domains/consent/use-consent-gate\";\n\nexport function AssistantPage() {\n useTranslation();\n const location = useLocation();\n const navigate = useNavigate();\n const onShareFeedback = useOutletContext<(() => void) | undefined>();\n const selection = selectedAssistantState(location.state);\n\n const consent = useConsentGate();\n if (\n consent.settled &&\n consent.hasCloudSession &&\n (!consent.currency?.hasConsentRecord ||\n !consent.currency.tos ||\n !consent.currency.privacy)\n ) {\n const returnTo = encodeURIComponent(\n `${location.pathname}${location.search}${location.hash}`,\n );\n return (\n <Navigate to={`${routes.account.consent}?returnTo=${returnTo}`} replace />\n );\n }\n\n return (\n <AppShell\n onShareFeedback={onShareFeedback}\n assistantId={selection?.id}\n apiBaseUrl={selection?.apiBase}\n onNavigate={(path, options) => {\n void navigate(path, {\n ...options,\n // The selection state rides every frame-driven navigation\n // unwrapped-and-verbatim, so a reload of the deeper entry still\n // restores it (the reader parses the wrapped shape).\n state: location.state,\n });\n }}\n />\n );\n}\n","import { useState } from \"react\";\nimport {\n createBrowserRouter,\n Navigate,\n Outlet,\n useLocation,\n useNavigate,\n} from \"react-router\";\nimport { toast, Toaster } from \"@mycadet/design-library/components/toast\";\nimport { CreateAssistantDialog } from \"@app/components/create-assistant-dialog\";\nimport { DesktopShareFeedback } from \"@app/components/desktop-share-feedback\";\nimport { RetireConfirmDialog } from \"@app/components/retire-confirm-dialog\";\nimport { retireAssistant } from \"@app/assistant/retire-assistant\";\nimport { RouteErrorBoundary } from \"@app/components/route-error-boundary\";\nimport { RootHydrateFallback } from \"@app/components/root-hydrate-fallback\";\nimport { useCadetCommands } from \"@app/runtime/cadet-commands\";\nimport { useDeepLinkConsumer } from \"@app/runtime/deep-links\";\nimport { accountRoute } from \"@app/domains/account/account-route\";\nimport { OnboardingFlowRoute } from \"@app/domains/onboarding/pages/onboarding-flow-route\";\nimport { consentRoute } from \"@app/domains/consent/consent-route\";\nimport { AssistantPage } from \"@app/shell/assistant-page\";\nimport {\n assistantSelectionState,\n selectedAssistantState,\n} from \"@app/assistant/assistant-selection\";\nimport { listAssistants } from \"@app/assistant/api\";\nimport { useTranslation } from \"@app/i18n\";\nimport { routes } from \"@app/utils/routes\";\n\nexport function DesktopChrome() {\n const [createOpen, setCreateOpen] = useState(false);\n const [feedbackOpen, setFeedbackOpen] = useState(false);\n const openFeedback = () => setFeedbackOpen(true);\n // Id of the assistant a tray \"Retire <assistant>…\" command targets. The\n // retire lives here in the shell — the chooser's dialog is the cloud row's\n // path; the command carries the id so the retire runs without routing\n // through the chooser screen first.\n const [retireTargetId, setRetireTargetId] = useState<string | null>(null);\n const [retirePending, setRetirePending] = useState(false);\n const [retireError, setRetireError] = useState<string | null>(null);\n const navigate = useNavigate();\n const location = useLocation();\n const { t } = useTranslation(\"account\");\n\n /**\n * The shell's assistant commands (the palette's switch action and the\n * re-pair menu item) drive the same connect flow the chooser's\n * card-select owns: resolve the lockfile entry, connect by navigating\n * with the selection state, and route any failure to the chooser — whose\n * connect path owns the recovery dialog — under a toast, mirroring web's\n * command-failure shape.\n */\n const connectAssistantById = (assistantId: string): void => {\n void (async () => {\n // The palette switch resolves through the list assistants api — the\n // platform's rows are the roster (registered local assistants included);\n // the bundle never reads a lockfile.\n const result = await listAssistants();\n const entry = result.ok\n ? result.data.find((candidate) => candidate.id === assistantId)\n : undefined;\n if (entry) {\n // The shell owns recovery: an entry whose gateway can't resolve\n // lands on the not-ready panel's wake, whatever its remote type.\n navigate(routes.assistant, {\n state: assistantSelectionState(entry.id),\n });\n return;\n }\n // Not a listed row (an unregistered local, or no session): the chooser\n // owns the full list.\n toast.error(t(\"appShell.assistantSwitchFailed\"));\n navigate(routes.account.selectAssistant);\n })();\n };\n\n useCadetCommands({\n createAssistant: () => setCreateOpen(true),\n shareFeedback: openFeedback,\n selectAssistant: (command) => {\n if (command.kind !== \"selectAssistant\") {\n return;\n }\n connectAssistantById(command.assistantId);\n },\n retireAssistant: (command) => {\n if (command.kind === \"retireAssistant\") {\n setRetireTargetId(command.assistantId);\n }\n },\n rePair: () => {\n // The current selection is the thing to re-pair; nothing selected\n // means nothing to re-pair (web's guard).\n const id = selectedAssistantState(location.state)?.id;\n if (!id) {\n return;\n }\n connectAssistantById(id);\n },\n });\n const handleRetireConfirm = async () => {\n if (!retireTargetId || retirePending) {\n return;\n }\n setRetirePending(true);\n setRetireError(null);\n // One endpoint for every entry type: the same-origin retire route, whose\n // serving host (the desktop proxy for on-machine entries, the cloud for\n // platform rows) decides how to honor it.\n const outcome = await retireAssistant(retireTargetId);\n setRetirePending(false);\n if (!outcome.ok) {\n setRetireError(outcome.error || \"Failed to retire assistant.\");\n return;\n }\n setRetireTargetId(null);\n navigate(routes.account.selectAssistant);\n };\n\n useDeepLinkConsumer();\n return (\n <>\n <CreateAssistantDialog\n open={createOpen}\n onClose={() => setCreateOpen(false)}\n />\n <DesktopShareFeedback\n open={feedbackOpen}\n onClose={() => setFeedbackOpen(false)}\n />\n <Toaster />\n <RetireConfirmDialog\n open={retireTargetId !== null}\n error={retireError}\n isPending={retirePending}\n onConfirm={() => void handleRetireConfirm()}\n onCancel={() => {\n if (!retirePending) {\n setRetireTargetId(null);\n setRetireError(null);\n }\n }}\n />\n <Outlet context={openFeedback} />\n </>\n );\n}\n\nexport const router = createBrowserRouter(\n [\n {\n Component: DesktopChrome,\n ErrorBoundary: RouteErrorBoundary,\n HydrateFallback: RootHydrateFallback,\n children: [\n accountRoute,\n consentRoute,\n {\n // Standalone About page rendered inside the Electron About\n // BrowserWindow — metadata, not the app: a sibling of the auth\n // tree so no auth middleware or shell chrome wraps it.\n path: \"/about\",\n HydrateFallback: RootHydrateFallback,\n lazy: {\n Component: () =>\n import(\"@app/components/about-page\").then((m) => m.AboutPage),\n },\n },\n {\n path: \"/\",\n lazy: {\n Component: () =>\n import(\"@app/shell/startup-page\").then((m) => m.StartupPage),\n },\n },\n {\n // The onboarding funnel's post-hatch steps — claimed before the\n // /assistant/* shell catch-all so the funnel renders app-native\n // (web's research route died with the research turn).\n path: routes.onboarding.research,\n Component: OnboardingFlowRoute,\n },\n { path: \"/assistant/*\", Component: AssistantPage },\n {\n path: \"/logout\",\n lazy: {\n Component: () =>\n import(\"@app/domains/account/pages/logout-page\").then(\n (m) => m.LogoutPage,\n ),\n },\n },\n ],\n },\n ],\n { future: { v8_middleware: true } },\n);\n","import \"@app/utils/run-storage-migrations\";\nimport { StrictMode } from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { RouterProvider } from \"react-router\";\nimport { initI18n } from \"@app/i18n\";\nimport { router } from \"./standalone\";\nimport \"./index.css\";\n\nawait initI18n();\nconst root = document.getElementById(\"root\");\nif (!root) {\n throw new Error(\"App root element is missing.\");\n}\ncreateRoot(root).render(\n <StrictMode>\n <RouterProvider router={router} />\n </StrictMode>,\n);\n"],"file":"index-D72X30LM.js"}
|