@remit/web-client-dist 0.0.657 → 0.0.659
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/assets/BriefPane-BdrK2exQ.js +1 -0
- package/assets/CalendarComposePane-C4QJ-2yz.js +1 -0
- package/assets/{CalendarComposeSeed-B3HKxMFT.js → CalendarComposeSeed-DDQ_6KwG.js} +1 -1
- package/assets/{CalendarShell-D9HK76un.js → CalendarShell-BxWfrZ1K.js} +1 -1
- package/assets/{EmptyState-1soLLrUm.js → EmptyState-DfgfTFyx.js} +1 -1
- package/assets/{ErrorState-DPzwHis8.js → ErrorState-BxamrMX4.js} +1 -1
- package/assets/{FlaggedPane-C6qW3NPH.js → FlaggedPane-B81F-Ius.js} +1 -1
- package/assets/{FullCompose-rxgtwgLT.js → FullCompose-CGEtdvHI.js} +1 -1
- package/assets/MailListHeader-DKQDxTr-.js +1 -0
- package/assets/MailNav-BtDjmyjz.js +1 -0
- package/assets/MailShell-Bz1hiaGc.js +1 -0
- package/assets/{MailViewChrome-HO-DgTY5.js → MailViewChrome-jgVI0MNT.js} +1 -1
- package/assets/MailboxPane-xtVMKMJI.js +1 -0
- package/assets/{NavMenuButton-DLvNMRhx.js → NavMenuButton-D9CW9yXs.js} +1 -1
- package/assets/{OnboardingWizard-BwiBwlF7.js → OnboardingWizard-C4yhjGtR.js} +1 -1
- package/assets/OpenCalendarEvent-GIzII9CD.js +2 -0
- package/assets/OutboxPane-CGpgJAXw.js +1 -0
- package/assets/SignInAgain-jn58nQP6.js +1 -0
- package/assets/_calendarObjectId-nxT9Cd4b.js +1 -0
- package/assets/_mailboxId-oLYxQCD3.js +1 -0
- package/assets/_messageId-CCO8nZeh.js +1 -0
- package/assets/_messageId-i0DWT1LI.js +1 -0
- package/assets/_messageId-mRTnvK5c.js +1 -0
- package/assets/_outboxMessageId-ChboPh8E.js +1 -0
- package/assets/_recurrenceId-BGJ8Sm-l.js +1 -0
- package/assets/_threadId-CaYtB_WN.js +1 -0
- package/assets/_threadId-OVejPT9k.js +1 -0
- package/assets/_threadId-fRx1zVFy.js +1 -0
- package/assets/_view._date-CIup_Q5W.js +1 -0
- package/assets/accounts-SAuzFQ3C.js +1 -0
- package/assets/advanced-DQMn-u_6.js +1 -0
- package/assets/{appearance-C5blyz0O.js → appearance-GEiZelw-.js} +1 -1
- package/assets/{attendee-row-CvGDzdA4.js → attendee-row-uWc3noHO.js} +1 -1
- package/assets/{avatar-Bb8ScTir.js → avatar-DcDIT3A8.js} +1 -1
- package/assets/{bell-off-CS6Duk18.js → bell-off-DUtdhBfF.js} +1 -1
- package/assets/{bottom-sheet-B5cf6MWK.js → bottom-sheet-l0no0Avc.js} +1 -1
- package/assets/brief-BDAlZsbh.js +1 -0
- package/assets/{brief-sKxBiyAp.js → brief-CrG0TXf-.js} +1 -1
- package/assets/{bug-BZRMWJ8e.js → bug-DucI4vmB.js} +1 -1
- package/assets/calendar-boBQgeWi.js +1 -0
- package/assets/{calendar-clash-strip-BFmDAwFK.js → calendar-clash-strip-BpOMxYTS.js} +1 -1
- package/assets/{calendar-format-Dl_kGdpq.js → calendar-format-D-v5Wjn8.js} +1 -1
- package/assets/{calendar-report-Dq8_JMmG.js → calendar-report-BTxDp0XA.js} +1 -1
- package/assets/{calendar-suggestion-CRkDiioj.js → calendar-suggestion-j6PFwg_2.js} +1 -1
- package/assets/{calendars-DbaCmJpW.js → calendars-BRMCZNMT.js} +1 -1
- package/assets/{card-BrGvFBtQ.js → card-VSc_eLI7.js} +1 -1
- package/assets/{checkbox-7X0zR8En.js → checkbox-DyheZb9X.js} +1 -1
- package/assets/chevron-left-DYU2nQOC.js +1 -0
- package/assets/{circle-check-big-BpsV2KD8.js → circle-check-big-3kpPwCgK.js} +1 -1
- package/assets/{circle-check-BAFZLxGj.js → circle-check-makGBNzJ.js} +1 -1
- package/assets/{circle-help-BizC7pb0.js → circle-help-De0-XbHV.js} +1 -1
- package/assets/{clock-CPsIZ6zJ.js → clock-tuesWj8Y.js} +1 -1
- package/assets/compose._-_outboxMessageId_-D3PM2hJA.js +1 -0
- package/assets/compose._-_outboxMessageId_-D3dfLj3E.js +1 -0
- package/assets/compose._-_outboxMessageId_-by9UvleU.js +1 -0
- package/assets/compose._-_outboxMessageId_-t0uDuGCl.js +1 -0
- package/assets/{config-import-Dx5GIogE.js → config-import-D3RZSoC0.js} +1 -1
- package/assets/{confirm-dialog-Cv8nzgk0.js → confirm-dialog-DyvhMD1R.js} +1 -1
- package/assets/{copy-CkXIeeHD.js → copy-Zm_0Ajof.js} +1 -1
- package/assets/{credential-steps-BZUL46-x.js → credential-steps-ub2ww0ge.js} +1 -1
- package/assets/{download-C4etwdLI.js → download-B8H9UItJ.js} +1 -1
- package/assets/external-link-CGtw0pwj.js +1 -0
- package/assets/{file-json-DqsJ4xJs.js → file-json-BTzNgrHv.js} +1 -1
- package/assets/filters-B12L_wOK.js +1 -0
- package/assets/flagged-CB_iIMnJ.js +1 -0
- package/assets/{flagged-DRgV59IG.js → flagged-DglDNhoh.js} +1 -1
- package/assets/folders-C2jVZZ1E.js +1 -0
- package/assets/{help-copy-tJC0-ZMl.js → help-copy-ETAaDkc7.js} +1 -1
- package/assets/{import-CELB-bnR.js → import-BeylQ7Mh.js} +1 -1
- package/assets/{index-BLTKJWNr.js → index-BD0xR1To.js} +8 -8
- package/assets/index-BLnfv0a9.js +1 -0
- package/assets/{index-BtYEmjxr.css → index-C2Hz4y-Q.css} +1 -1
- package/assets/index-CFZD4Llh.js +1 -0
- package/assets/index-CcJMBsLJ.js +1 -0
- package/assets/index-CtuiSaCS.js +1 -0
- package/assets/{index-BhjCjLJw.js → index-Cw5aGFb4.js} +1 -1
- package/assets/index-D0DzGa5J.js +293 -0
- package/assets/index-T7UWz5y9.js +1 -0
- package/assets/index-WIu9MfmE.js +1 -0
- package/assets/index-WRGoXiDS.js +1 -0
- package/assets/index-i0DWT1LI.js +1 -0
- package/assets/index-mRTnvK5c.js +1 -0
- package/assets/{kbd-lTvecOmZ.js → kbd-BHwdDuqC.js} +1 -1
- package/assets/{labels-DiA2JGmB.js → labels-CYFWEYMz.js} +1 -1
- package/assets/{mail-BxwAAW5X.js → mail-DPTdQBcn.js} +1 -1
- package/assets/mail-Hxhm7JAo.js +1 -0
- package/assets/{map-pin-D6VMw4yS.js → map-pin-DxzepqfO.js} +1 -1
- package/assets/{menu-BQKKG_dY.js → menu-rin4kYB3.js} +1 -1
- package/assets/minus-BnkvlNMP.js +1 -0
- package/assets/{new-CJ6kSPRF.js → new-BCF8EX_O.js} +1 -1
- package/assets/onboarding-BJbB8X0X.js +1 -0
- package/assets/{onboarding-completion-BbqmDbx7.js → onboarding-completion-6rCRGnvt.js} +1 -1
- package/assets/outbox-e5Vzaasr.js +1 -0
- package/assets/{pencil-DiRy6H7l.js → pencil-3eT8l-dG.js} +1 -1
- package/assets/{popover-menu-B4BMf6LK.js → popover-menu-CIQ9EMwG.js} +1 -1
- package/assets/{refresh-cw-Bot6vhqM.js → refresh-cw-C9XDa0FY.js} +1 -1
- package/assets/result-count-DKmjOSbb.js +1 -0
- package/assets/{rich-text-BUR-C2Q6.js → rich-text-D9jhmnjK.js} +1 -1
- package/assets/{rich-text-spellcheck-worker-provider-CQ8rF4WA.js → rich-text-spellcheck-worker-provider-DJhYkD50.js} +1 -1
- package/assets/{rotate-ccw-gjLXKk9W.js → rotate-ccw-VkL9A6f1.js} +1 -1
- package/assets/{roving-focus-C3VQzsoq.js → roving-focus-DprxQ_bn.js} +1 -1
- package/assets/{row-actions-_wAkj89Q.js → row-actions-D_7JYBtJ.js} +1 -1
- package/assets/{search-mirror-a3wl8YKf.js → search-mirror-BysDlccX.js} +1 -1
- package/assets/search-query-DwbiCfJg.js +1 -0
- package/assets/search-scope-UI1H6AzA.js +1 -0
- package/assets/{search-token-index-BwY3fr3v.js → search-token-index-BvfhQWOt.js} +1 -1
- package/assets/{sections-DKODQMWX.js → sections-BDzSu1iK.js} +1 -1
- package/assets/senders-CpVur9bb.js +1 -0
- package/assets/settings-D3ZXcAs5.js +1 -0
- package/assets/{settings-screen-3GaT_yCl.js → settings-screen-Bj41qBzw.js} +1 -1
- package/assets/{shield-check-t1RKp08F.js → shield-check-CIfUEzg6.js} +1 -1
- package/assets/suggested-vips-BmIFp0CH.js +1 -0
- package/assets/{suggestion._suggestionId-DSs2aOE3.js → suggestion._suggestionId-Dxf5-pZK.js} +1 -1
- package/assets/{undo-2-CjsdasNX.js → undo-2-M8rPT8DL.js} +1 -1
- package/assets/{useCalendarData-BNg59BCE.js → useCalendarData-BXOzhj4q.js} +1 -1
- package/assets/useCalendarFreeBusy-Lcu0PN0A.js +1 -0
- package/assets/{useCalendarWrites-onNcOsh0.js → useCalendarWrites-DLWNbspq.js} +1 -1
- package/assets/{useCalendars-LZefvRrA.js → useCalendars-C0yLfYxq.js} +1 -1
- package/assets/{useDebouncedValue-WWRLD9R5.js → useDebouncedValue-DKRtYZvq.js} +1 -1
- package/assets/useFilters-DUTq-e5L.js +1 -0
- package/assets/{useLabels-C955uVg_.js → useLabels-oOwVRlpl.js} +1 -1
- package/assets/useLayoutTier-BQZGFMh6.js +1 -0
- package/assets/useMessageBodyContent-UsHOXnjm.js +1 -0
- package/assets/{useQueries-jIdAkC8e.js → useQueries-C45-CTu6.js} +1 -1
- package/assets/useRefreshControl-ayWr09Y0.js +1 -0
- package/assets/{useResultFolderIndex-CTrDyucm.js → useResultFolderIndex-jVeEM1tT.js} +1 -1
- package/assets/{useSearchTokenContext-CDbE53C_.js → useSearchTokenContext-CWaQeo6z.js} +3 -3
- package/assets/{useSignature-BqhqHAev.js → useSignature-DGhao7OD.js} +1 -1
- package/assets/warnings-DRuw_qoM.js +5 -0
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/BriefPane-DSaOlf0F.js +0 -1
- package/assets/CalendarComposePane-BU_sayZB.js +0 -1
- package/assets/MailListHeader-BFFGRKyg.js +0 -1
- package/assets/MailNav-DJlI7RmG.js +0 -1
- package/assets/MailShell-DWiQS--r.js +0 -1
- package/assets/MailboxPane-hAP08rcM.js +0 -1
- package/assets/OpenCalendarEvent-BnGbsK2W.js +0 -2
- package/assets/OutboxPane-BoLQds66.js +0 -1
- package/assets/_calendarObjectId-Dk6ypYk-.js +0 -1
- package/assets/_mailboxId-BI2fCYSk.js +0 -1
- package/assets/_messageId-BojdkbIt.js +0 -1
- package/assets/_messageId-Br63cxHP.js +0 -1
- package/assets/_messageId-CElscOOg.js +0 -1
- package/assets/_outboxMessageId-B-LOsBw2.js +0 -1
- package/assets/_recurrenceId-CVQPBnfp.js +0 -1
- package/assets/_threadId-CBcvsEMo.js +0 -1
- package/assets/_threadId-DYIW9tHx.js +0 -1
- package/assets/_threadId-DbH9GuNd.js +0 -1
- package/assets/_view._date-DzTM5JlS.js +0 -1
- package/assets/accounts-Dvrx4IYM.js +0 -1
- package/assets/advanced-CJg3p5Bv.js +0 -4
- package/assets/brief-BFYTJF86.js +0 -1
- package/assets/browser-ponyfill-GPT1caT6.js +0 -2
- package/assets/calendar-Bkx3aBLi.js +0 -1
- package/assets/chevron-left-BLnMK6Hm.js +0 -1
- package/assets/compose._-_outboxMessageId_-BmM1JqAv.js +0 -1
- package/assets/compose._-_outboxMessageId_-CXeMohJi.js +0 -1
- package/assets/compose._-_outboxMessageId_-ColAL-TU.js +0 -1
- package/assets/compose._-_outboxMessageId_-RC8PrqCU.js +0 -1
- package/assets/filters-vQ_2-kyd.js +0 -1
- package/assets/flagged-DseDsjLu.js +0 -1
- package/assets/folders-DyTauiz9.js +0 -1
- package/assets/index-B9DvuvdG.js +0 -1
- package/assets/index-BK6Ub1jz.js +0 -1
- package/assets/index-BWg_f2zC.js +0 -1
- package/assets/index-BojdkbIt.js +0 -1
- package/assets/index-CElscOOg.js +0 -1
- package/assets/index-DQGwT3GV.js +0 -1
- package/assets/index-DXKcs-mY.js +0 -1
- package/assets/index-KSHhd0R1.js +0 -1
- package/assets/index-_GSqQaV3.js +0 -1
- package/assets/index-owcFTp8Y.js +0 -294
- package/assets/mail-CBC7EsCL.js +0 -1
- package/assets/minus-6qNWLdn9.js +0 -1
- package/assets/onboarding-GJtMi48D.js +0 -1
- package/assets/outbox-B0H34lHj.js +0 -1
- package/assets/pane-header-Ca09EcL8.js +0 -1
- package/assets/search-query-Cr_ZXBCp.js +0 -1
- package/assets/search-scope-B5-OK3Cq.js +0 -1
- package/assets/senders-Dpwg8Gn7.js +0 -1
- package/assets/settings-CasU94x9.js +0 -1
- package/assets/suggested-vips-CAHDehKY.js +0 -1
- package/assets/useCalendarFreeBusy-ClOpmxzB.js +0 -1
- package/assets/useFilters-1hN5d4xr.js +0 -1
- package/assets/useLayoutTier-A889tOk-.js +0 -1
- package/assets/useMessageBodyContent-C6R-iTkz.js +0 -1
- package/assets/useRefreshControl-DT4gm04X.js +0 -1
- package/assets/useSemanticSearch-CX-jW79N.js +0 -1
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/calendar-boBQgeWi.js","assets/ErrorState-BxamrMX4.js","assets/CalendarShell-BxWfrZ1K.js","assets/MailNav-BtDjmyjz.js","assets/roving-focus-DprxQ_bn.js","assets/useLayoutTier-BQZGFMh6.js","assets/bell-off-DUtdhBfF.js","assets/useQueries-C45-CTu6.js","assets/folder-failure-CqkVSsrb.js","assets/outbox-status-BlKn6P0x.js","assets/bug-DucI4vmB.js","assets/import-BeylQ7Mh.js","assets/credential-steps-ub2ww0ge.js","assets/card-VSc_eLI7.js","assets/config-import-D3RZSoC0.js","assets/file-json-BTzNgrHv.js","assets/onboarding-completion-6rCRGnvt.js","assets/mail-Hxhm7JAo.js","assets/search-token-index-BvfhQWOt.js","assets/search-scope-UI1H6AzA.js","assets/kbd-BHwdDuqC.js","assets/pencil-3eT8l-dG.js","assets/useMessageBodyContent-UsHOXnjm.js","assets/MailShell-Bz1hiaGc.js","assets/FullCompose-CGEtdvHI.js","assets/index-BD0xR1To.js","assets/useSignature-DGhao7OD.js","assets/account-form-helpers-DhckT_PN.js","assets/useDebouncedValue-DKRtYZvq.js","assets/sections-BDzSu1iK.js","assets/confirm-dialog-DyvhMD1R.js","assets/useRefreshControl-ayWr09Y0.js","assets/circle-check-big-3kpPwCgK.js","assets/refresh-cw-C9XDa0FY.js","assets/menu-rin4kYB3.js","assets/avatar-DcDIT3A8.js","assets/popover-menu-CIQ9EMwG.js","assets/useResultFolderIndex-jVeEM1tT.js","assets/onboarding-BJbB8X0X.js","assets/OnboardingWizard-C4yhjGtR.js","assets/checkbox-DyheZb9X.js","assets/minus-BnkvlNMP.js","assets/mail-DPTdQBcn.js","assets/_mailboxId-oLYxQCD3.js","assets/MailboxPane-xtVMKMJI.js","assets/useSearchTokenContext-CWaQeo6z.js","assets/MailListHeader-DKQDxTr-.js","assets/EmptyState-DfgfTFyx.js","assets/undo-2-M8rPT8DL.js","assets/download-B8H9UItJ.js","assets/useCalendarFreeBusy-Lcu0PN0A.js","assets/calendar-format-D-v5Wjn8.js","assets/useCalendars-C0yLfYxq.js","assets/map-pin-DxzepqfO.js","assets/calendar-suggestion-j6PFwg_2.js","assets/attendee-row-uWc3noHO.js","assets/clock-tuesWj8Y.js","assets/calendar-clash-strip-BpOMxYTS.js","assets/shield-check-CIfUEzg6.js","assets/calendar-report-BTxDp0XA.js","assets/useFilters-DUTq-e5L.js","assets/MailViewChrome-jgVI0MNT.js","assets/search-query-DwbiCfJg.js","assets/NavMenuButton-D9CW9yXs.js","assets/useLabels-oOwVRlpl.js","assets/result-count-DKmjOSbb.js","assets/bottom-sheet-l0no0Avc.js","assets/circle-help-De0-XbHV.js","assets/circle-check-makGBNzJ.js","assets/search-mirror-BysDlccX.js","assets/brief-CrG0TXf-.js","assets/brief-BDAlZsbh.js","assets/BriefPane-BdrK2exQ.js","assets/wizard-selection-zWa1qc6-.js","assets/flagged-DglDNhoh.js","assets/flagged-CB_iIMnJ.js","assets/FlaggedPane-B81F-Ius.js","assets/outbox-e5Vzaasr.js","assets/OutboxPane-CGpgJAXw.js","assets/row-actions-D_7JYBtJ.js","assets/rotate-ccw-VkL9A6f1.js","assets/accounts-SAuzFQ3C.js","assets/settings-screen-Bj41qBzw.js","assets/chevron-left-DYU2nQOC.js","assets/help-copy-ETAaDkc7.js","assets/advanced-DQMn-u_6.js","assets/external-link-CGtw0pwj.js","assets/appearance-GEiZelw-.js","assets/calendars-BRMCZNMT.js","assets/copy-Zm_0Ajof.js","assets/useCalendarWrites-DLWNbspq.js","assets/calendar-subscription-B-aAc2Gy.js","assets/filters-B12L_wOK.js","assets/folders-C2jVZZ1E.js","assets/labels-CYFWEYMz.js","assets/senders-CpVur9bb.js","assets/warnings-DRuw_qoM.js","assets/SignInAgain-jn58nQP6.js","assets/_view._date-CIup_Q5W.js","assets/useCalendarData-BXOzhj4q.js","assets/CalendarComposeSeed-DDQ_6KwG.js","assets/index-CFZD4Llh.js","assets/index-WRGoXiDS.js","assets/index-CtuiSaCS.js","assets/index-CcJMBsLJ.js","assets/index-Cw5aGFb4.js","assets/new-BCF8EX_O.js","assets/CalendarComposePane-C4QJ-2yz.js","assets/index-mRTnvK5c.js","assets/_messageId-mRTnvK5c.js","assets/compose._-_outboxMessageId_-D3dfLj3E.js","assets/index-i0DWT1LI.js","assets/_messageId-i0DWT1LI.js","assets/compose._-_outboxMessageId_-D3PM2hJA.js","assets/index-BLnfv0a9.js","assets/_messageId-CCO8nZeh.js","assets/compose._-_outboxMessageId_-t0uDuGCl.js","assets/compose._-_outboxMessageId_-by9UvleU.js","assets/_outboxMessageId-ChboPh8E.js","assets/index-T7UWz5y9.js","assets/OpenCalendarEvent-GIzII9CD.js","assets/_recurrenceId-BGJ8Sm-l.js","assets/suggestion._suggestionId-Dxf5-pZK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function ZL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var _g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZS={exports:{}},Qf={};var o5;function SK(){if(o5)return Qf;o5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:s}}return Qf.Fragment=t,Qf.jsx=n,Qf.jsxs=n,Qf}var i5;function wK(){return i5||(i5=1,ZS.exports=SK()),ZS.exports}var C=wK();const xK="Logging",CK="x-amz-user-agent",EK="NoHubcallbackProvidedException";var ma;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"})(ma||(ma={}));const l5={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class hr{constructor(t,n=ma.WARN){this.name=t,this.level=n,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){const t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t?(this._config=t,this._config):this._config}_log(t,...n){let r=this.level;hr.LOG_LEVEL&&(r=hr.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const a=l5[r];if(!(l5[t]>=a))return;let i=console.log.bind(console);t===ma.ERROR&&console.error&&(i=console.error.bind(console)),t===ma.WARN&&console.warn&&(i=console.warn.bind(console)),hr.BIND_ALL_LOG_LEVELS&&(t===ma.INFO&&console.info&&(i=console.info.bind(console)),t===ma.DEBUG&&console.debug&&(i=console.debug.bind(console)));const c=`[${t}] ${this._ts()} ${this.name}`;let u="";if(n.length===1&&typeof n[0]=="string")u=`${c} - ${n[0]}`,i(u);else if(n.length===1)u=`${c} ${n[0]}`,i(c,n[0]);else if(typeof n[0]=="string"){let f=n.slice(1);f.length===1&&(f=f[0]),u=`${c} - ${n[0]} ${f}`,i(`${c} - ${n[0]}`,f)}else u=`${c} ${n}`,i(c,n);for(const f of this._pluggables){const h={message:u,timestamp:Date.now()};f.pushLogs([h])}}log(...t){this._log(ma.INFO,...t)}info(...t){this._log(ma.INFO,...t)}warn(...t){this._log(ma.WARN,...t)}error(...t){this._log(ma.ERROR,...t)}debug(...t){this._log(ma.DEBUG,...t)}verbose(...t){this._log(ma.VERBOSE,...t)}addPluggable(t){t&&t.getCategoryName()===xK&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}hr.LOG_LEVEL=null;hr.BIND_ALL_LOG_LEVELS=!1;class ta extends Error{constructor({message:t,name:n,recoverySuggestion:r,underlyingError:a,metadata:s}){if(super(t),this.name=n,this.underlyingError=a,this.recoverySuggestion=r,s){const{extendedRequestId:i,httpStatusCode:c,requestId:u}=s;this.metadata={extendedRequestId:i,httpStatusCode:c,requestId:u}}this.constructor=ta,Object.setPrototypeOf(this,ta.prototype)}}var rl;(function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"})(rl||(rl={}));const Sv=(e,t=ta)=>(n,r,a)=>{const{message:s,recoverySuggestion:i}=e[r];if(!n)throw new t({name:r,message:a?`${s} ${a}`:s,recoverySuggestion:i})},$s=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",Jf=new hr("Hub");class XL{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,n){const r=this.listeners.get(t);if(!r){Jf.warn(`No listeners for ${t}`);return}this.listeners.set(t,[...r.filter(({callback:a})=>a!==n)])}dispatch(t,n,r,a){typeof t=="string"&&this.protectedChannels.indexOf(t)>-1&&(a===$s||Jf.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`));const s={channel:t,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){Jf.error(i)}}listen(t,n,r="noname"){let a;if(typeof n!="function")throw new ta({name:EK,message:"No callback supplied to Hub"});a=n;let s=this.listeners.get(t);return s||(s=[],this.listeners.set(t,s)),s.push({name:r,callback:a}),()=>{this._remove(t,a)}}_toListeners(t){const{channel:n,payload:r}=t,a=this.listeners.get(n);a&&a.forEach(s=>{Jf.debug(`Dispatching to ${n} with `,r);try{s.callback(t)}catch(i){Jf.error(i)}})}}const Bs=new XL("__default__"),l1=new XL("internal-hub"),xk=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new ta({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},_K=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new ta({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},kK=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new ta({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},Ck={convert(e,t){let n=e;return t?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),kK()(n)}};var Ls;(function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"})(Ls||(Ls={}));const AK={[Ls.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[Ls.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[Ls.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[Ls.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[Ls.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},Ek=Sv(AK);function ht(e){let t=!0;e?t=!!e.userPoolId&&!!e.userPoolClientId:t=!1,Ek(t,Ls.AuthUserPoolException)}function wv(e){const t=!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType;Ek(t,Ls.OAuthNotConfigureException)}function O0(e){const t=!!e?.identityPoolId;Ek(t,Ls.InvalidIdentityPoolIdException)}function Fo(e){const t=e.split(".");if(t.length!==3)throw new Error("Invalid token");try{const r=t[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(Ck.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(a);return{toString:()=>e,payload:s}}catch{throw new Error("Invalid token payload")}}const QL=e=>{const t=Reflect.ownKeys(e);for(const n of t){const r=e[n];(r&&typeof r=="object"||typeof r=="function")&&QL(r)}return Object.freeze(e)},IK=new hr("parseAWSExports"),TK={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},RK=(e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new ta({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:a,aws_bots_config:s,aws_cognito_identity_pool_id:i,aws_cognito_sign_up_verification_method:c,aws_cognito_mfa_configuration:u,aws_cognito_mfa_types:f,aws_cognito_password_protection_settings:h,aws_cognito_verification_mechanisms:m,aws_cognito_signup_attributes:g,aws_cognito_social_providers:y,aws_cognito_username_attributes:w,aws_mandatory_sign_in:b,aws_mobile_analytics_app_id:x,aws_mobile_analytics_app_region:E,aws_user_files_s3_bucket:k,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:P,aws_user_pools_web_client_id:O,geo:T,oauth:M,predictions:z,aws_cloud_logic_custom:q,Notifications:U,modelIntrospection:L}=e,B={};x&&(B.Analytics={Pinpoint:{appId:x,region:E}});const{InAppMessaging:G,Push:ie}=U??{};if(G?.AWSPinpoint||ie?.AWSPinpoint){if(G?.AWSPinpoint){const{appId:Q,region:se}=G.AWSPinpoint;B.Notifications={InAppMessaging:{Pinpoint:{appId:Q,region:se}}}}if(ie?.AWSPinpoint){const{appId:Q,region:se}=ie.AWSPinpoint;B.Notifications={...B.Notifications,PushNotification:{Pinpoint:{appId:Q,region:se}}}}}if(Array.isArray(s)&&(B.Interactions={LexV1:Object.fromEntries(s.map(Q=>[Q.name,Q]))}),r){const Q=TK[n];Q||IK.debug(`Invalid authentication type ${n}. Falling back to IAM.`),B.API={GraphQL:{endpoint:r,apiKey:t,region:a,defaultAuthMode:Q??"iam"}},L&&(B.API.GraphQL.modelIntrospection=L)}const $=u?{status:u&&u.toLowerCase(),totpEnabled:f?.includes("TOTP")??!1,smsEnabled:f?.includes("SMS")??!1}:void 0,X=h?{minLength:h.passwordPolicyMinLength,requireLowercase:h.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:h.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:h.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:h.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,pe=Array.from(new Set([...m??[],...g??[]])).reduce((Q,se)=>({...Q,[se.toLowerCase()]:{required:!0}}),{}),_e=w?.includes("EMAIL")??!1,j=w?.includes("PHONE_NUMBER")??!1;(i||P)&&(B.Auth={Cognito:{identityPoolId:i,allowGuestAccess:b!=="enable",signUpVerificationMethod:c,userAttributes:pe,userPoolClientId:O,userPoolId:P,mfa:$,passwordFormat:X,loginWith:{username:!(_e||j),email:_e,phone:j}}});const Y=M?Object.keys(M).length>0:!1,Z=y?y.length>0:!1;if(B.Auth&&Y&&(B.Auth.Cognito.loginWith={...B.Auth.Cognito.loginWith,oauth:{...OK(M),...Z&&{providers:NK(y)}}}),k&&(B.Storage={S3:{bucket:k,region:A,dangerouslyConnectToHttpEndpointForTesting:R}}),T){const{amazon_location_service:Q}=T;B.Geo={LocationService:{maps:Q.maps,geofenceCollections:Q.geofenceCollections,searchIndices:Q.search_indices,region:Q.region}}}if(q&&(B.API={...B.API,REST:q.reduce((Q,se)=>{const{name:le,endpoint:me,region:te,service:ve}=se;return{...Q,[le]:{endpoint:me,...ve?{service:ve}:void 0,...te?{region:te}:void 0}}},{})}),z){const{VoiceId:Q}=z?.convert?.speechGenerator?.defaults??{};B.Predictions=Q?{...z,convert:{...z.convert,speechGenerator:{...z.convert.speechGenerator,defaults:{voiceId:Q}}}}:z}return B},c5=e=>e?.split(",")??[],OK=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:r,responseType:a})=>({domain:e,scopes:t,redirectSignIn:c5(n),redirectSignOut:c5(r),responseType:a}),NK=e=>e.map(t=>{const n=t.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),JL=Symbol("oauth-listener"),ur=[];for(let e=0;e<256;++e)ur.push((e+256).toString(16).slice(1));function MK(e,t=0){return(ur[e[t+0]]+ur[e[t+1]]+ur[e[t+2]]+ur[e[t+3]]+"-"+ur[e[t+4]]+ur[e[t+5]]+"-"+ur[e[t+6]]+ur[e[t+7]]+"-"+ur[e[t+8]]+ur[e[t+9]]+"-"+ur[e[t+10]]+ur[e[t+11]]+ur[e[t+12]]+ur[e[t+13]]+ur[e[t+14]]+ur[e[t+15]]).toLowerCase()}let XS;const PK=new Uint8Array(16);function DK(){if(!XS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");XS=crypto.getRandomValues.bind(crypto)}return XS(PK)}const LK=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),u5={randomUUID:LK};function UK(e,t,n){e=e||{};const r=e.random??e.rng?.()??DK();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=r[a];return t}return MK(r)}function ld(e,t,n){return u5.randomUUID&&!t&&!e?u5.randomUUID():UK(e,t,n)}function zK(e){const{version:t}=e;return t?t.startsWith("1"):!1}function jK(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&ZK(r)}}}function FK(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:a,mfa_configuration:s,mfa_methods:i,unauthenticated_identities_enabled:c,oauth:u,username_attributes:f,standard_required_attributes:h,groups:m,passwordless:g}=e,y={Cognito:{userPoolId:t,userPoolClientId:n,groups:m}};return r&&(y.Cognito={...y.Cognito,identityPoolId:r}),a&&(y.Cognito.passwordFormat={requireLowercase:a.require_lowercase,requireNumbers:a.require_numbers,requireUppercase:a.require_uppercase,requireSpecialCharacters:a.require_symbols,minLength:a.min_length??6}),s&&(y.Cognito.mfa={status:YK(s),smsEnabled:i?.includes("SMS"),totpEnabled:i?.includes("TOTP")}),c&&(y.Cognito.allowGuestAccess=c),u&&(y.Cognito.loginWith={oauth:{domain:u.domain,redirectSignIn:u.redirect_sign_in_uri,redirectSignOut:u.redirect_sign_out_uri,responseType:u.response_type==="token"?"token":"code",scopes:u.scopes,providers:KK(u.identity_providers)}}),f&&(y.Cognito.loginWith={...y.Cognito.loginWith,email:f.includes("email"),phone:f.includes("phone_number"),username:f.includes("username")}),h&&(y.Cognito.userAttributes=h.reduce((w,b)=>({...w,[b]:{required:!0}}),{})),g&&(y.Cognito.passwordless={emailOtpEnabled:g.email_otp_enabled,smsOtpEnabled:g.sms_otp_enabled,webAuthn:g.web_authn?{relyingPartyId:g.web_authn.relying_party_id,userVerification:g.web_authn.user_verification}:void 0,preferredChallenge:g.preferred_challenge}),y}function $K(e){if(!e?.amazon_pinpoint)return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function BK(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:r,search_indices:a}=e;return{LocationService:{region:t,searchIndices:a,geofenceCollections:n,maps:r}}}function HK(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:r,api_key:a,model_introspection:s}=e;return{GraphQL:{endpoint:r,defaultAuthMode:eU(n),region:t,apiKey:a,modelIntrospection:s}}}function qK(e){if(!e?.events)return;const{url:t,aws_region:n,api_key:r,default_authorization_type:a}=e.events;return{Events:{endpoint:t,defaultAuthMode:eU(a),region:n,apiKey:r}}}function VK(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:r}=e,a=n.includes("IN_APP_MESSAGING"),s=n.includes("APNS")||n.includes("FCM");if(!(a||s))return;const i={};return a&&(i.InAppMessaging={Pinpoint:{appId:r,region:t}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:t}}),i}function WK(e){const t={};if(e.storage&&(t.Storage=jK(e.storage)),e.auth&&(t.Auth=FK(e.auth)),e.analytics&&(t.Analytics=$K(e.analytics)),e.geo&&(t.Geo=BK(e.geo)),e.data&&(t.API=HK(e.data)),e.custom){const n=qK(e.custom);n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=VK(e.notifications)),t}const GK={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function eU(e){return GK[e]}const d5={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function KK(e=[]){return e.reduce((t,n)=>(d5[n]!==void 0&&t.push(d5[n]),t),[])}function YK(e){return e==="OPTIONAL"?"optional":e==="REQUIRED"?"on":"off"}function ZK(e){const t={};return e.forEach(({name:n,bucket_name:r,aws_region:a,paths:s})=>{if(n in t)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const i=s?Object.entries(s).reduce((c,[u,f])=>(f!==void 0&&(c[u]=f),c),{}):void 0;t[n]={bucketName:r,region:a,paths:i}}),t}const tU=e=>Object.keys(e).some(t=>t.startsWith("aws_"))?RK(e):zK(e)?WK(e):e;var f5=function(){return f5=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},f5.apply(this,arguments)};function k8e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function XK(e,t,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function c(h){try{f(r.next(h))}catch(m){i(m)}}function u(h){try{f(r.throw(h))}catch(m){i(m)}}function f(h){h.done?s(h.value):a(h.value).then(c,u)}f((r=r.apply(e,t||[])).next())})}function QK(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(f){return function(h){return u([f,h])}}function u(f){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,f[0]&&(n=0)),n;)try{if(r=1,a&&(s=f[0]&2?a.return:f[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,f[1])).done)return s;switch(a=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],a=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function A8e(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ua=64,JK=32,eY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),tY=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],nY=Math.pow(2,53)-1,N0=(function(){function e(){this.state=Int32Array.from(tY),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>nY)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Ua&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Ua>=Ua-8){for(var a=this.bufferLength;a<Ua;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<Ua-8;a++)n.setUint8(a,0);n.setUint32(Ua-8,Math.floor(t/4294967296),!0),n.setUint32(Ua-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(JK),a=0;a<8;a++)s[a*4]=this.state[a]>>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,a=r[0],s=r[1],i=r[2],c=r[3],u=r[4],f=r[5],h=r[6],m=r[7],g=0;g<Ua;g++){if(g<16)this.temp[g]=(n[g*4]&255)<<24|(n[g*4+1]&255)<<16|(n[g*4+2]&255)<<8|n[g*4+3]&255;else{var y=this.temp[g-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var b=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(w+this.temp[g-7]|0)+(b+this.temp[g-16]|0)}var x=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&h)|0)+(m+(eY[g]+this.temp[g]|0)|0)|0,E=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&i^s&i)|0;m=h,h=f,f=u,u=c+x|0,c=i,i=s,s=a,a=x+E|0}r[0]+=a,r[1]+=s,r[2]+=i,r[3]+=c,r[4]+=u,r[5]+=f,r[6]+=h,r[7]+=m},e})();const rY=e=>new TextEncoder().encode(e);var aY=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:rY;function nU(e){return e instanceof Uint8Array?e:typeof e=="string"?aY(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function sY(e){return typeof e=="string"?e.length===0:e.byteLength===0}var hc=(function(){function e(t){this.secret=t,this.hash=new N0,this.reset()}return e.prototype.update=function(t){if(!(sY(t)||this.error))try{this.hash.update(nU(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return XK(this,void 0,void 0,function(){return QK(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new N0,this.secret){this.outer=new N0;var t=oY(this.secret),n=new Uint8Array(Ua);n.set(t);for(var r=0;r<Ua;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e})();function oY(e){var t=nU(e);if(t.byteLength>Ua){var n=new N0;n.update(t),t=n.digest()}var r=new Uint8Array(Ua);return r.set(t),r}for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`)}var Ln;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(Ln||(Ln={}));var Ba;(function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(Ba||(Ba={}));var Ro;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"})(Ro||(Ro={}));var h5;(function(e){e.Record="1",e.IdentifyUser="2"})(h5||(h5={}));var p5;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(p5||(p5={}));var tt;(function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"})(tt||(tt={}));var m5;(function(e){e.Subscribe="1",e.GraphQl="2"})(m5||(m5={}));var Fh;(function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"})(Fh||(Fh={}));var e3;(function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"})(e3||(e3={}));var g5;(function(e){e.None="0"})(g5||(g5={}));var v5;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(v5||(v5={}));var y5;(function(e){e.Subscribe="1"})(y5||(y5={}));var b5;(function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"})(b5||(b5={}));var ss;(function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"})(ss||(ss={}));const iY="6.18.0",xv=()=>typeof global<"u",$d=()=>typeof window<"u",rU=()=>typeof document<"u",_k=()=>typeof process<"u",ep=(e,t)=>!!Object.keys(e).find(n=>n.startsWith(t));var S5={};function lY(){const e=r=>r.startsWith("_react")||r.startsWith("__react"),t=r=>Object.keys(r).find(e),n=()=>Array.from(document.querySelectorAll("[id]"));return rU()&&n().some(t)}function cY(){return _k()&&typeof S5<"u"&&!!Object.keys(S5).find(e=>e.includes("react"))}function uY(){return $d()&&ep(window,"__VUE")}function dY(){return xv()&&ep(global,"__VUE")}var w5={};function fY(){return $d()&&ep(window,"__SVELTE")}function hY(){return _k()&&typeof w5<"u"&&!!Object.keys(w5).find(e=>e.includes("svelte"))}function pY(){return $d()&&window.next&&typeof window.next=="object"}function mY(){return xv()&&(ep(global,"__next")||ep(global,"__NEXT"))}function gY(){return $d()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function vY(){return xv()&&typeof global.__NUXT_PATHS__<"u"}var x5={};function yY(){const e=!!(rU()&&document.querySelector("[ng-version]")),t=!!($d()&&typeof window.ng<"u");return e||t}function bY(){return _k()&&typeof x5=="object"&&x5.npm_lifecycle_script?.startsWith("ng ")||!1}function SY(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function wY(){return xv()&&typeof global.expo<"u"}function xY(){return $d()}const CY=[{platform:Ln.Expo,detectionMethod:wY},{platform:Ln.ReactNative,detectionMethod:SY},{platform:Ln.NextJs,detectionMethod:pY},{platform:Ln.Nuxt,detectionMethod:gY},{platform:Ln.Angular,detectionMethod:yY},{platform:Ln.React,detectionMethod:lY},{platform:Ln.VueJs,detectionMethod:uY},{platform:Ln.Svelte,detectionMethod:fY},{platform:Ln.WebUnknown,detectionMethod:xY},{platform:Ln.NextJsSSR,detectionMethod:mY},{platform:Ln.NuxtSSR,detectionMethod:vY},{platform:Ln.ReactSSR,detectionMethod:cY},{platform:Ln.VueJsSSR,detectionMethod:dY},{platform:Ln.AngularSSR,detectionMethod:bY},{platform:Ln.SvelteSSR,detectionMethod:hY}];function EY(){return CY.find(e=>e.detectionMethod())?.platform||Ln.ServerSideUnknown}let $h;const QS=[];let t3=!1;const _Y=10,kY=10,AY=1e3,aU=()=>{if(!$h){if($h=EY(),t3)for(;QS.length;)QS.pop()?.();else QS.forEach(e=>{e()});C5(Ln.ServerSideUnknown,_Y),C5(Ln.WebUnknown,kY)}return $h};function IY(){$h=void 0}function C5(e,t){$h===e&&!t3&&setTimeout(()=>{IY(),t3=!0,setTimeout(aU,AY)},t)}const ji={},xo=e=>{ji[e.category]=e.apis.reduce((r,a)=>({...r,[a]:{refCount:r[a]?.refCount?r[a].refCount+1:1,additionalDetails:e.additionalDetails}}),ji[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(r=>{const a=ji[e.category][r].refCount;a>1?ji[e.category][r].refCount=a-1:(delete ji[e.category][r],Object.keys(ji[e.category]).length||delete ji[e.category])}))}},TY=(e,t)=>ji[e]?.[t]?.additionalDetails,RY="aws-amplify",OY=e=>e.replace(/\+.*/,""),NY=({category:e,action:t}={})=>{const n=[[RY,OY(iY)]];if(e&&n.push([e,t]),n.push(["framework",aU()]),e&&t){const r=TY(e,t);r&&r.forEach(a=>{n.push(a)})}return n},Cv=e=>NY(e).map(([r,a])=>r&&a?`${r}/${a}`:r).join(" "),Ev=()=>typeof window<"u"&&typeof window.document<"u",E5=new hr("Auth");class MY{configure(t,n){this.authConfig=t,this.authOptions=n,t&&t.Cognito?.userPoolEndpoint&&E5.warn(_5("Amazon Cognito User Pool")),t&&t.Cognito?.identityPoolEndpoint&&E5.warn(_5("Amazon Cognito Identity Pool"))}async fetchAuthSession(t={}){let n,r;const a=await this.getTokens(t);return a?(r=a.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:t.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:t.forceRefresh}),{tokens:a,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(t){return await this.authOptions?.tokenProvider?.getTokens(t)??void 0}}const _5=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;class PY{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new MY}configure(t,n){const r=tU(t);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=QL(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),Bs.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",$s),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[JL](t){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?t(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=t}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const Zt=new PY,sU=(e,t)=>e.Auth.fetchAuthSession(t),_v=e=>sU(Zt,e);function oU(){return Zt.Auth.clearCredentials()}const kv=e=>{const{headers:t,statusCode:n}=e;return{...DY(e)?e.$metadata:{},httpStatusCode:n,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},DY=e=>typeof e?.$metadata=="object",Bd=async e=>{if(!e||e.statusCode<300)return;const t=await zp(e),r=(i=>{const[c]=i.toString().split(/[,:]+/);return c.includes("#")?c.split("#")[1]:c})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),a=t.message??t.Message??"Unknown error",s=new Error(a);return Object.assign(s,{name:r,$metadata:kv(e)})},zp=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:kv(e)})},jn=(e,t,n,r)=>async(a,s)=>{const i={...r,...a},c=await i.endpointResolver(i,s),u=await t(s,c),f=await e(u,{...i});return n(f)},LY=300*1e3;function UY(e=LY){return r=>{const a=2**r*100+100*Math.random();return a>e?!1:a}}const iU=3,k5="amz-sdk-invocation-id",zY="amz-sdk-request",A5=300*1e3,lU=e=>{const n=UY(A5)(e);return n===!1?A5:n},jY=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],FY=e=>!!e&&jY.includes(e),cU=e=>async(t,n)=>{const r=n??await e(t)??void 0,a=r?.code||r?.name,s=t?.statusCode;return{retryable:qY(n)||HY(s,a)||FY(a)||VY(s,a)}},$Y=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],BY=["TimeoutError","RequestTimeout","RequestTimeoutException"],HY=(e,t)=>e===429||!!t&&$Y.includes(t),qY=e=>[rl.NetworkError,"ERR_NETWORK"].includes(e?.name),VY=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&BY.includes(t),uU="cognito-identity",dU={service:uU,retryDecider:cU(Bd),computeDelay:lU,cache:"no-store"},WY=({maxAttempts:e=iU,retryDecider:t,computeDelay:n,abortSignal:r})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(a,s)=>async function(c){let u,f=s.attemptsCount??0,h;const m=()=>{if(h)return I5(h,f),h;throw I5(u,f),u};for(;!r?.aborted&&f<e;){try{h=await a(c),u=void 0}catch(w){u=w,h=void 0}f=(s.attemptsCount??0)>f?s.attemptsCount??0:f+1,s.attemptsCount=f;const{isCredentialsExpiredError:g,retryable:y}=await t(h,u,s);if(y){if(s.isCredentialsExpired=!!g,!r?.aborted&&f<e){const w=n(f);await GY(w,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},GY=(e,t)=>{if(t?.aborted)return Promise.resolve();let n,r;const a=new Promise(s=>{r=s,n=setTimeout(s,e)});return t?.addEventListener("abort",function s(i){clearTimeout(n),t?.removeEventListener("abort",s),r()}),a},I5=(e,t)=>{Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata={...e.$metadata??{},attempts:t})},KY=ld,YY=()=>e=>async function(n){return n.headers[k5]||(n.headers[k5]=KY()),e(n)},ZY=({maxAttempts:e=iU})=>(t,n)=>async function(a){const s=n.attemptsCount??0;return a.headers[zY]=`attempt=${s+1}; max=${e}`,t(a)},XY=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>n=>async function(a){if(t.trim().length===0)return await n(a);{const s=e.toLowerCase();return a.headers[s]=a.headers[s]?`${a.headers[s]} ${t}`:t,await n(a)}},kk=(e,t)=>(n,r)=>{const a={};let s=i=>e(i,r);for(let i=t.length-1;i>=0;i--){const c=t[i];s=c(r)(s,a)}return s(n)},JS=e=>{let t;return()=>(t||(t=e()),t)},QY=e=>!["HEAD","GET"].includes(e.toUpperCase()),JY=async({url:e,method:t,headers:n,body:r},{abortSignal:a,cache:s,withCrossDomainCredentials:i})=>{let c;try{c=await fetch(e,{method:t,headers:n,body:QY(t)?r:void 0,signal:a,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new ta({name:rl.NetworkError,message:"A network error has occurred.",underlyingError:m}):m}const u={};c.headers?.forEach((m,g)=>{u[g.toLowerCase()]=m});const f={statusCode:c.status,headers:u,body:null},h=Object.assign(c.body??{},{text:JS(()=>c.text()),blob:JS(()=>c.blob()),json:JS(()=>c.json())});return{...f,body:h}},fU=kk(JY,[XY,YY,WY,ZY]),eZ=()=>e=>async function(n){return n.headers["cache-control"]="no-store",e(n)},hU=kk(fU,[eZ]),pU=e=>(t,n)=>{const r=tZ(e),a=JSON.stringify(t);return nZ(n,r,a)},tZ=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),nZ=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"}),T5=e=>jn(hU,pU("GetCredentialsForIdentity"),rZ,{...dU,...e,userAgentValue:Cv()}),rZ=async e=>{if(e.statusCode>=300)throw await Bd(e);const t=await zp(e);return{IdentityId:t.IdentityId,Credentials:aZ(t.Credentials),$metadata:kv(e)}},aZ=({Expiration:e,...t}={})=>({...t,Expiration:e&&new Date(e*1e3)}),sZ=e=>jn(hU,pU("GetId"),oZ,{...dU,...e,userAgentValue:Cv()}),oZ=async e=>{if(e.statusCode>=300)throw await Bd(e);return{IdentityId:(await zp(e)).IdentityId,$metadata:kv(e)}},mU={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},iZ={partitions:[mU,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},gU=e=>{const{partitions:t}=iZ;for(const{regions:n,outputs:r,regionRegex:a}of t){const s=new RegExp(a);if(n.includes(e)||s.test(e))return r.dnsSuffix}return mU.outputs.dnsSuffix},hl=URL,lZ=({region:e})=>({url:new hl(`https://${uU}.${e}.${gU(e)}`)});class kh extends ta{constructor(){super({name:rl.PlatformNotSupported,message:"Function not supported on current platform"})}}class vU{constructor(t){this.storage=t}async setItem(t,n){if(!this.storage)throw new kh;this.storage.setItem(t,n)}async getItem(t){if(!this.storage)throw new kh;return this.storage.getItem(t)}async removeItem(t){if(!this.storage)throw new kh;this.storage.removeItem(t)}async clear(){if(!this.storage)throw new kh;this.storage.clear()}}class yU{constructor(){this.storage=new Map}get length(){return this.storage.size}key(t){return t>this.length-1?null:Array.from(this.storage.keys())[t]}setItem(t,n){this.storage.set(t,n)}getItem(t){return this.storage.get(t)??null}removeItem(t){this.storage.delete(t)}clear(){this.storage.clear()}}const bU=new hr("CoreStorageUtils"),cZ=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{bU.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new yU},SU=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return bU.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new yU}};class uZ extends vU{constructor(){super(cZ())}}class dZ extends vU{constructor(){super(SU())}}class fZ{constructor(t){this._storage=t}get storage(){if(!this._storage)throw new kh;return this._storage}setItem(t,n){this.storage.setItem(t,n)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}}class hZ extends fZ{constructor(){super(SU())}}function kg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var pZ={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function n3(e,t){function n(a,s,i){if(!(typeof document>"u")){i=kg({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,i[u]!==!0&&(c+="="+i[u].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+c}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;c<s.length;c++){var u=s[c].split("="),f=u.slice(1).join("=");try{var h=decodeURIComponent(u[0]);if(h in i||(i[h]=e.read(f,h)),a===h)break}catch{}}return a?i[a]:i}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",kg({},s,{expires:-1}))},withAttributes:function(a){return n3(this.converter,kg({},this.attributes,a))},withConverter:function(a){return n3(kg({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ag=n3(pZ,{path:"/"});class mZ{constructor(t={}){const{path:n,domain:r,expires:a,sameSite:s,secure:i}=t;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(t,"expires")?a:365,this.secure=Object.prototype.hasOwnProperty.call(t,"secure")?i:!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(t,n){Ag.set(t,n,this.getData())}async getItem(t){return Ag.get(t)??null}async removeItem(t){Ag.remove(t,this.getData())}async clear(){const t=Ag.get(),n=Object.keys(t).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const jp=new uZ;new dZ;const Lo=new hZ,gZ=new hr("I18n");let vZ=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),gZ.debug(this._lang)}setLanguage(t){this._lang=t}get(t,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:t;const r=this._lang;let a=this.getByLanguage(t,r);return a||(r.indexOf("-")>0&&(a=this.getByLanguage(t,r.split("-")[0])),a)?a:typeof n<"u"?n:t}getByLanguage(t,n,r=null){if(!n)return r;const a=this._dict[n];return a?a[t]:r}putVocabulariesForLanguage(t,n){let r=this._dict[t];r||(r=this._dict[t]={}),this._dict[t]={...r,...n}}putVocabularies(t){Object.keys(t).forEach(n=>{this.putVocabulariesForLanguage(n,t[n])})}};var Gl;(function(e){e.NotConfigured="NotConfigured"})(Gl||(Gl={}));const yZ={[Gl.NotConfigured]:{message:"i18n is not configured."}},Ig=Sv(yZ),R5=new hr("I18n");let Tg={language:null},ts=null,wU=class Hl{static configure(t){return R5.debug("configure I18n"),t&&(Tg=Object.assign({},Tg,t.I18n||t),Hl.createInstance()),Tg}static getModuleName(){return"I18n"}static createInstance(){R5.debug("create I18n instance"),!ts&&(ts=new vZ)}static setLanguage(t){Hl.checkConfig(),Ig(!!ts,Gl.NotConfigured),ts.setLanguage(t)}static get(t,n){return Hl.checkConfig(),Ig(!!ts,Gl.NotConfigured),ts.get(t,n)}static putVocabulariesForLanguage(t,n){Hl.checkConfig(),Ig(!!ts,Gl.NotConfigured),ts.putVocabulariesForLanguage(t,n)}static putVocabularies(t){Hl.checkConfig(),Ig(!!ts,Gl.NotConfigured),ts.putVocabularies(t)}static checkConfig(){return ts||Hl.createInstance(),!0}};wU.createInstance();const bZ=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(e);xk().getRandomValues(r);for(const a of r)n.push(t[a%t.length]);return n.join("")};function SZ(e){return(e.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function wZ(e){return e.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const xZ=e=>{let t;return async(...n)=>t||(t=new Promise((r,a)=>{e(...n).then(s=>{r(s)}).catch(s=>{a(s)}).finally(()=>{t=void 0})}),t)};function O5({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}const CZ=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:n="",model:r="",architecture:a="",fullVersionList:s=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(u=>`${u.brand}/${u.version}`).join(";");return[t,n,a,r,t,i].filter(u=>u).join(" ")||navigator.userAgent};function EZ(e){return Array.from(e,t=>String.fromCodePoint(t)).join("")}const bd={convert(e,t={urlSafe:!1,skipPadding:!1}){const n=typeof e=="string"?e:EZ(e);let r=_K()(n);return t.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(r=r.replace(/=/g,"")),r}};function _Z(){return xk().getRandomValues(new Uint32Array(1))[0]}function kZ(e){const{words:t}=e,{sigBytes:n}=e,r=[];for(let a=0;a<n;a++){const s=t[a>>>2]>>>24-a%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class Ak{constructor(t,n){this.words=[];let r=t;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(t){const n=[];for(let r=0;r<t;r+=4)n.push(_Z());return new Ak(n,t)}toString(){return kZ(this)}}var et;(function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyChallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword",e.InvalidPreferredChallenge="InvalidPreferredChallenge"})(et||(et={}));const xU={[et.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[et.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[et.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[et.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[et.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[et.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[et.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[et.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[et.EmptySignInPassword]:{message:"password is required to signIn"},[et.EmptySignInUsername]:{message:"username is required to signIn"},[et.EmptySignUpPassword]:{message:"password is required to signUp"},[et.EmptySignUpUsername]:{message:"username is required to signUp"},[et.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[et.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[et.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[et.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[et.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[et.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var Xn;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Xn||(Xn={}));var Hs;(function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"})(Hs||(Hs={}));class Be extends ta{constructor(t){super(t),this.constructor=Be,Object.setPrototypeOf(this,Be.prototype)}}function bn(e,t){const{message:n,recoverySuggestion:r}=xU[t];if(!e)throw new Be({name:t,message:n,recoverySuggestion:r})}function xt(e){const t=e?.split("_")[0];if(!e||e.indexOf("_")<0||!t||typeof t!="string")throw new Be({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function r3(e){if(!e||!e.includes(":"))throw new Be({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}function N5(e){return Object.entries(e).map(([t,n])=>({Name:t,Value:n}))}function AZ(e){const t={};return e?.forEach(n=>{n.Name&&(t[n.Name]=n.Value)}),t}var M5;(function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(M5||(M5={}));var P5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(P5||(P5={}));var D5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(D5||(D5={}));var L5;(function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(L5||(L5={}));var U5;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(U5||(U5={}));var z5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(z5||(z5={}));var j5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(j5||(j5={}));var F5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(F5||(F5={}));var $5;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})($5||($5={}));var B5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(B5||(B5={}));var H5;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(H5||(H5={}));var q5;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(q5||(q5={}));var V5;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(V5||(V5={}));var W5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"})(W5||(W5={}));var c1;(function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(c1||(c1={}));var G5;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(G5||(G5={}));var K5;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(K5||(K5={}));var Y5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Y5||(Y5={}));var a3;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"})(a3||(a3={}));var Z5;(function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Z5||(Z5={}));var X5;(function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(X5||(X5={}));var Q5;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Q5||(Q5={}));var J5;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(J5||(J5={}));var e6;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(e6||(e6={}));const Av="UserUnAuthenticatedException",IZ="UserAlreadyAuthenticatedException",TZ="DeviceMetadataNotFoundException",CU="AutoSignInException",RZ="InvalidRedirectException",OZ="InvalidAppSchemeException",NZ="InvalidPreferredRedirectUrlException",MZ=new Be({name:RZ,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new Be({name:OZ,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new Be({name:NZ,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const PZ="InvalidOriginException",DZ=new Be({name:PZ,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),LZ="OAuthSignOutException",UZ="TokenRefreshException",zZ="UnexpectedSignInInterruptionException";function Hd(e){if(!e||!e.accessToken)throw new Be({name:Av,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function jZ(e){if(!e||!e.idToken)throw new Be({name:Av,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const FZ=new Be({name:UZ,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow.
|
|
3
|
+
Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow.
|
|
4
|
+
E.g { responseType: 'code' }`}),$Z=new Be({name:Av,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function EU(e){if(qZ(e))throw FZ;if(!HZ(e))throw $Z}function _U(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new Be({name:TZ,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const BZ={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function kU(e){return e?.accessToken||e?.idToken}function HZ(e){return kU(e)&&e?.refreshToken}function qZ(e){return kU(e)&&!e?.refreshToken}const VZ=async e=>{const t=e.getConfig().Auth?.Cognito;ht(t);const n=await e.Auth.getTokens({forceRefresh:!1});Hd(n);const{"cognito:username":r,sub:a}=n.idToken?.payload??{},s={username:r,userId:a},i=WZ(n);return i&&(s.signInDetails=i),s};function WZ(e){return e?.signInDetails}const Iv=async()=>VZ(Zt),Ut=(e,t)=>Cv({category:Ba.Auth,action:e,...t}),Jn=e=>(t,n)=>{const r=GZ(e),a=JSON.stringify(t);return KZ(n,r,a)},GZ=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),KZ=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"});function Ha(e){if(!e||e.name==="Error"||e instanceof TypeError)throw new Be({name:rl.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const mr=()=>async e=>{if(e.statusCode>=300){const t=await Bd(e);throw Ha(t),new Be({name:t.name,message:t.message,metadata:t.$metadata})}return zp(e)},YZ=()=>(e,t)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await Zt.libraryOptions?.Auth?.headers?.()},e(r)},er=kk(fU,[YZ]),AU="cognito-idp",tr={service:AU,retryDecider:cU(Bd),computeDelay:lU,get userAgentValue(){return Cv()},cache:"no-store"},Fp=e=>jn(er,Jn("InitiateAuth"),mr(),{...tr,...e}),Sa=e=>jn(er,Jn("RespondToAuthChallenge"),mr(),{...tr,...e}),ZZ=e=>jn(er,Jn("VerifySoftwareToken"),mr(),{...tr,...e}),XZ=e=>jn(er,Jn("AssociateSoftwareToken"),mr(),{...tr,...e}),QZ=({region:e})=>({url:new hl(`https://${AU}.${e}.${gU(e)}`)}),Ct=({endpointOverride:e})=>t=>e?{url:new hl(e)}:QZ(t),JZ=e=>jn(er,Jn("GetTokensFromRefreshToken"),mr(),{...tr,...e}),eX=async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>{ht(t?.Cognito);const{userPoolId:a,userPoolClientId:s,userPoolEndpoint:i}=t.Cognito,c=xt(a);EU(e);const u=JZ({endpointResolver:Ct({endpointOverride:i})}),{AuthenticationResult:f}=await u({region:c},{ClientId:s,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:r}),h=Fo(f?.AccessToken??""),m=f?.IdToken?Fo(f.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new Be({name:"iatNotFoundException",message:"iat not found in access token"});const y=g*1e3-new Date().getTime();return{accessToken:h,idToken:m,clockDrift:y,refreshToken:f?.RefreshToken??e.refreshToken,username:n}},tX=xZ(eX),nX={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var u1;(function(e){e.InvalidAuthTokens="InvalidAuthTokens"})(u1||(u1={}));const rX={[u1.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},aX=Sv(rX),t6="CognitoIdentityServiceProvider";class sX{getKeyValueStorage(){if(!this.keyValueStorage)throw new Be({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(t){this.keyValueStorage=t}setAuthConfig(t){this.authConfig=t}async loadTokens(){try{const t=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t.accessToken);if(!n)throw new Be({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=Fo(n),a=await this.getKeyValueStorage().getItem(t.idToken),s=a?Fo(a):void 0,i=await this.getKeyValueStorage().getItem(t.refreshToken)??void 0,c=await this.getKeyValueStorage().getItem(t.clockDrift)??"0",u=Number.parseInt(c),f=await this.getKeyValueStorage().getItem(t.signInDetails),h={accessToken:r,idToken:s,refreshToken:i,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:u,username:await this.getLastAuthUser()};return f&&(h.signInDetails=JSON.parse(f)),h}catch{return null}}async storeTokens(t){aX(t!==void 0,u1.InvalidAuthTokens);const n=t.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,t.accessToken.toString()),t.idToken?await this.getKeyValueStorage().setItem(r.idToken,t.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),t.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,t.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),t.deviceMetadata&&(t.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,t.deviceMetadata.deviceKey),t.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,t.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,t.deviceMetadata.randomPassword)),t.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(t.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${t.clockDrift}`)}async clearTokens(){const t=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(t.accessToken),this.getKeyValueStorage().removeItem(t.idToken),this.getKeyValueStorage().removeItem(t.clockDrift),this.getKeyValueStorage().removeItem(t.refreshToken),this.getKeyValueStorage().removeItem(t.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(t.oauthMetadata)])}async getDeviceMetadata(t){const n=await this.getAuthKeys(t),r=await this.getKeyValueStorage().getItem(n.deviceKey),a=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s&&a&&r?{deviceKey:r,deviceGroupKey:a,randomPassword:s}:null}async clearDeviceMetadata(t){const n=await this.getAuthKeys(t);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(t){ht(this.authConfig?.Cognito);const n=t??await this.getLastAuthUser();return oX(t6,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){ht(this.authConfig?.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return`${t6}.${t}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(t){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(t))}async getOAuthMetadata(){const{oauthMetadata:t}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t);return n&&JSON.parse(n)}}const oX=(e,t)=>Ik(nX)(`${e}`,t);function Ik(e){const t=Object.values({...e});return(n,r)=>t.reduce((a,s)=>({...a,[s]:`${n}.${r}.${s}`}),{})}const n6="amplify-signin-with-hostedUI",Is="CognitoIdentityServiceProvider";class IU{constructor(t){this.keyValueStorage=t}async clearOAuthInflightData(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(t.inflightOAuth),this.keyValueStorage.removeItem(t.oauthPKCE),this.keyValueStorage.removeItem(t.oauthState)])}async clearOAuthData(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(n6),this.keyValueStorage.removeItem(t.oauthSignIn)}loadOAuthState(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthState)}storeOAuthState(t){ht(this.cognitoConfig);const n=Ts(Is,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,t)}loadPKCE(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthPKCE)}storePKCE(t){ht(this.cognitoConfig);const n=Ts(Is,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,t)}setAuthConfig(t){this.cognitoConfig=t}async loadOAuthInFlight(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(t.inflightOAuth)==="true"}async storeOAuthInFlight(t){ht(this.cognitoConfig);const n=Ts(Is,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${t}`)}async loadOAuthSignIn(){ht(this.cognitoConfig);const t=Ts(Is,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(n6),[r,a]=(await this.keyValueStorage.getItem(t.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:a==="true"}}async storeOAuthSignIn(t,n=!1){ht(this.cognitoConfig);const r=Ts(Is,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${t},${n}`)}}const Ts=(e,t)=>Ik(BZ)(e,t),Xr=new IU(jp),s3=[],iX=e=>{s3.push(e)},TU=()=>{for(;s3.length;)s3.pop()?.()};class lX{constructor(){this.waitForInflightOAuth=Ev()?async()=>{if(await Xr.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((t,n)=>{iX(t)}),this.inflightPromise)}:async()=>{}}setAuthConfig(t){Xr.setAuthConfig(t.Cognito),this.authConfig=t}setTokenRefresher(t){this.tokenRefresher=t}setAuthTokenStore(t){this.tokenStore=t}getTokenStore(){if(!this.tokenStore)throw new Be({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new Be({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(t){this.clientMetadataProvider=t}async getTokens(t){let n;try{ht(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const a=!!n?.idToken&&O5({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=O5({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(t?.forceRefresh||a||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:t?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:t,username:n,clientMetadata:r}){try{const{signInDetails:a}=t,s=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=a,await this.setTokens({tokens:s}),Bs.dispatch("auth",{event:"tokenRefresh"},"Auth",$s),s}catch(a){return this.handleErrors(a)}}handleErrors(t){if(Ha(t),this.isAuthenticationError(t)&&this.clearTokens(),Bs.dispatch("auth",{event:"tokenRefresh_failure",data:{error:t}},"Auth",$s),t.name.startsWith("NotAuthorizedException"))return null;throw t}isAuthenticationError(t){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>t?.name?.startsWith?.(r))}async setTokens({tokens:t}){return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(t){return this.getTokenStore().getDeviceMetadata(t)}clearDeviceMetadata(t){return this.getTokenStore().clearDeviceMetadata(t)}setOAuthMetadata(t){return this.getTokenStore().setOAuthMetadata(t)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class cX{constructor(){this.authTokenStore=new sX,this.authTokenStore.setKeyValueStorage(jp),this.tokenOrchestrator=new lX,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(tX)}getTokens(t={}){return this.tokenOrchestrator.getTokens(t)}setKeyValueStorage(t){this.authTokenStore.setKeyValueStorage(t)}setClientMetadataProvider(t){this.tokenOrchestrator.setClientMetadataProvider(t)}setAuthConfig(t){this.authTokenStore.setAuthConfig(t),this.tokenOrchestrator.setAuthConfig(t)}}const M0=new cX,{tokenOrchestrator:na}=M0;async function Xo(e){if(e.AccessToken){const t=Fo(e.AccessToken),n=(t.payload.iat||0)*1e3,r=new Date().getTime(),a=n>0?n-r:0;let s,i,c;e.RefreshToken&&(i=e.RefreshToken),e.IdToken&&(s=Fo(e.IdToken)),e?.NewDeviceMetadata&&(c=e.NewDeviceMetadata);const u={accessToken:t,idToken:s,refreshToken:i,clockDrift:a,deviceMetadata:c,username:e.username};e?.signInDetails&&(u.signInDetails=e.signInDetails),await na.setTokens({tokens:u})}else throw new ta({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const uX="Unable to get user session following successful sign-in.",pl=async()=>{try{Bs.dispatch("auth",{event:"signedIn",data:await Iv()},"Auth",$s)}catch(e){throw e.name===Av?new Be({name:zZ,message:uX,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):e}};function RU(){return{active:!1}}const dX=(e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return RU();default:return e}},fX=e=>{let t=e(RU(),{type:"RESET"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},Zi=fX(dX),hX=180*1e3,Rg="CognitoSignInState",Uo={username:`${Rg}.username`,challengeName:`${Rg}.challengeName`,signInSession:`${Rg}.signInSession`,expiry:`${Rg}.expiry`},pX=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return Og({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return Og(t.value),{...t.value};case"SET_CHALLENGE_NAME":return Og({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return Og({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return gX();case"RESET_STATE":return OU(),Tk();default:return e}},mX=e=>{const t=Number(e),n=Date.now();return t<=n},fs=()=>{qs.dispatch({type:"RESET_STATE"})},OU=()=>{for(const e of Object.values(Uo))Lo.removeItem(e)},Tk=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),gX=()=>{const e=Lo.getItem(Uo.expiry);if(!e||mX(e))return OU(),Tk();const t=Lo.getItem(Uo.username)??void 0,n=Lo.getItem(Uo.challengeName)??void 0,r=Lo.getItem(Uo.signInSession)??void 0;return{username:t,challengeName:n,signInSession:r}},vX=e=>{let t=e(Tk(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},qs=vX(pX);function Ic(e){qs.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const Og=({challengeName:e,signInSession:t,username:n})=>{n&&Lo.setItem(Uo.username,n),e&&Lo.setItem(Uo.challengeName,e),t&&(Lo.setItem(Uo.signInSession,t),Lo.setItem(Uo.expiry,String(Date.now()+hX)))},r6="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class $a extends ta{constructor(t){super(t),this.constructor=$a,Object.setPrototypeOf(this,$a.prototype)}}var Gt;(function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"})(Gt||(Gt={}));const ew="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",a6="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",Sd={[Gt.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:r6},[Gt.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:a6},[Gt.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:a6},[Gt.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:r6},[Gt.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[Gt.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[Gt.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:ew},[Gt.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:ew},[Gt.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:ew},[Gt.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},qd=Sv(Sd,$a),NU=e=>{if(e instanceof Error){if(e.name==="AbortError"){const{message:t,recoverySuggestion:n}=Sd[Gt.PasskeyOperationAborted];return new $a({name:Gt.PasskeyOperationAborted,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="SecurityError"){const{message:t,recoverySuggestion:n}=Sd[Gt.RelyingPartyMismatch];return new $a({name:Gt.RelyingPartyMismatch,message:t,recoverySuggestion:n,underlyingError:e})}}return new $a({name:rl.Unknown,message:"An unknown error has occurred.",underlyingError:e})},yX=e=>{if(e instanceof $a)return e;if(e instanceof Error&&e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=Sd[Gt.PasskeyAuthenticationCanceled];return new $a({name:Gt.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}return NU(e)},MU=()=>Ev()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",Us=e=>bd.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),Bh=e=>Uint8Array.from(Ck.convert(e,{urlSafe:!0}),t=>t.charCodeAt(0)).buffer,bX=e=>{const t=Bh(e.user.id),n=Bh(e.challenge),r=(e.excludeCredentials||[]).map(a=>({...a,id:Bh(a.id)}));return{...e,excludeCredentials:r,challenge:n,user:{...e.user,id:t}}},SX=e=>{const t={clientDataJSON:Us(e.response.clientDataJSON),attestationObject:Us(e.response.attestationObject),transports:e.response.getTransports(),publicKeyAlgorithm:e.response.getPublicKeyAlgorithm(),authenticatorData:Us(e.response.getAuthenticatorData())},n=e.response.getPublicKey();n&&(t.publicKey=Us(n));const r={type:e.type,id:e.id,rawId:Us(e.rawId),clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(r.authenticatorAttachment=e.authenticatorAttachment),r},wX=e=>{const t=Bh(e.challenge),n=(e.allowCredentials||[]).map(r=>({...r,id:Bh(r.id)}));return{...e,challenge:t,allowCredentials:n}},xX=e=>{const t={clientDataJSON:Us(e.response.clientDataJSON),authenticatorData:Us(e.response.authenticatorData),signature:Us(e.response.signature)};e.response.userHandle&&(t.userHandle=Us(e.response.userHandle));const n={id:e.id,rawId:Us(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorAttachment),n};function CX(e){qd([!!e,!!e?.challenge,!!e?.user,!!e?.rp,!!e?.pubKeyCredParams].every(Boolean),Gt.InvalidPasskeyRegistrationOptions)}function EX(e){qd(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAttestationResponse,Gt.PasskeyRegistrationFailed)}function _X(e){qd(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,Gt.PasskeyRetrievalFailed)}const kX=async e=>{try{const t=MU();qd(t,Gt.PasskeyNotSupported);const n=wX(e),r=await navigator.credentials.get({publicKey:n});return _X(r),xX(r)}catch(t){throw yX(t)}},AX=e=>jn(er,Jn("ConfirmDevice"),mr(),{...tr,...e}),P0={convert(e){return new TextEncoder().encode(e)}};function Re(e,t){e!=null&&this.fromString(e,t)}function Lr(){return new Re(null,null)}let Ji;const IX=0xdeadbeefcafe,s6=(IX&16777215)===15715070;function TX(e,t,n,r,a,s){for(;--s>=0;){const i=t*this[e++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=i&67108863}return a}function RX(e,t,n,r,a,s){const i=t&32767,c=t>>15;for(;--s>=0;){let u=this[e]&32767;const f=this[e++]>>15,h=c*u+f*i;u=i*u+((h&32767)<<15)+n[r]+(a&1073741823),a=(u>>>30)+(h>>>15)+c*f+(a>>>30),n[r++]=u&1073741823}return a}function OX(e,t,n,r,a,s){const i=t&16383,c=t>>14;for(;--s>=0;){let u=this[e]&16383;const f=this[e++]>>14,h=c*u+f*i;u=i*u+((h&16383)<<14)+n[r]+a,a=(u>>28)+(h>>14)+c*f,n[r++]=u&268435455}return a}const o6=typeof navigator<"u";o6&&s6&&navigator.appName==="Microsoft Internet Explorer"?(Re.prototype.am=RX,Ji=30):o6&&s6&&navigator.appName!=="Netscape"?(Re.prototype.am=TX,Ji=26):(Re.prototype.am=OX,Ji=28);Re.prototype.DB=Ji;Re.prototype.DM=(1<<Ji)-1;Re.prototype.DV=1<<Ji;const Rk=52;Re.prototype.FV=Math.pow(2,Rk);Re.prototype.F1=Rk-Ji;Re.prototype.F2=2*Ji-Rk;const NX="0123456789abcdefghijklmnopqrstuvwxyz",Tv=[];let Vd,ja;Vd=48;for(ja=0;ja<=9;++ja)Tv[Vd++]=ja;Vd=97;for(ja=10;ja<36;++ja)Tv[Vd++]=ja;Vd=65;for(ja=10;ja<36;++ja)Tv[Vd++]=ja;function i6(e){return NX.charAt(e)}function MX(e,t){const n=Tv[e.charCodeAt(t)];return n??-1}function PX(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function DX(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function Ok(e){const t=Lr();return t.fromInt(e),t}function LX(e,t){let n;if(t===16)n=4;else if(t===8)n=3;else if(t===2)n=1;else if(t===32)n=5;else if(t===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=e.length,a=!1,s=0;for(;--r>=0;){const i=MX(e,r);if(i<0){e.charAt(r)==="-"&&(a=!0);continue}a=!1,s===0?this[this.t++]=i:s+n>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),a&&Re.ZERO.subTo(this,this)}function UX(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t}function zX(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(e==16)t=4;else if(e===8)t=3;else if(e===2)t=1;else if(e===32)t=5;else if(e===4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<t)-1;let r,a=!1,s="",i=this.t,c=this.DB-i*this.DB%t;if(i-- >0)for(c<this.DB&&(r=this[i]>>c)>0&&(a=!0,s=i6(r));i>=0;)c<t?(r=(this[i]&(1<<c)-1)<<t-c,r|=this[--i]>>(c+=this.DB-t)):(r=this[i]>>(c-=t)&n,c<=0&&(c+=this.DB,--i)),r>0&&(a=!0),a&&(s+=i6(r));return a?s:"0"}function jX(){const e=Lr();return Re.ZERO.subTo(this,e),e}function FX(){return this.s<0?this.negate():this}function $X(e){let t=this.s-e.s;if(t!=0)return t;let n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0}function Nk(e){let t=1,n;return(n=e>>>16)!==0&&(e=n,t+=16),(n=e>>8)!==0&&(e=n,t+=8),(n=e>>4)!==0&&(e=n,t+=4),(n=e>>2)!==0&&(e=n,t+=2),(n=e>>1)!==0&&(e=n,t+=1),t}function BX(){return this.t<=0?0:this.DB*(this.t-1)+Nk(this[this.t-1]^this.s&this.DM)}function HX(e,t){let n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function qX(e,t){for(let n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function VX(e,t){const n=e%this.DB,r=this.DB-n,a=(1<<r)-1,s=Math.floor(e/this.DB);let i=this.s<<n&this.DM,c;for(c=this.t-1;c>=0;--c)t[c+s+1]=this[c]>>r|i,i=(this[c]&a)<<n;for(c=s-1;c>=0;--c)t[c]=0;t[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function WX(e,t){t.s=this.s;const n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}const r=e%this.DB,a=this.DB-r,s=(1<<r)-1;t[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&s)<<a,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&s)<<a),t.t=this.t-n,t.clamp()}function GX(e,t){let n=0,r=0;const a=Math.min(e.t,this.t);for(;n<a;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function KX(e,t){const n=this.abs(),r=e.abs();let a=n.t;for(t.t=a+r.t;--a>=0;)t[a]=0;for(a=0;a<r.t;++a)t[a+n.t]=n.am(0,r[a],t,a,0,n.t);t.s=0,t.clamp(),this.s!==e.s&&Re.ZERO.subTo(t,t)}function YX(e){const t=this.abs();let n=e.t=2*t.t;for(;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){const r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function ZX(e,t,n){const r=e.abs();if(r.t<=0)return;const a=this.abs();if(a.t<r.t){t?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=Lr());const s=Lr(),i=this.s,c=e.s,u=this.DB-Nk(r[r.t-1]);u>0?(r.lShiftTo(u,s),a.lShiftTo(u,n)):(r.copyTo(s),a.copyTo(n));const f=s.t,h=s[f-1];if(h===0)return;const m=h*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,w=1<<this.F2;let b=n.t,x=b-f;const E=t===null?Lr():t;for(s.dlShiftTo(x,E),n.compareTo(E)>=0&&(n[n.t++]=1,n.subTo(E,n)),Re.ONE.dlShiftTo(f,E),E.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--x>=0;){let k=n[--b]===h?this.DM:Math.floor(n[b]*g+(n[b-1]+w)*y);if((n[b]+=s.am(0,k,n,x,0,f))<k)for(s.dlShiftTo(x,E),n.subTo(E,n);n[b]<--k;)n.subTo(E,n)}t!==null&&(n.drShiftTo(f,t),i!==c&&Re.ZERO.subTo(t,t)),n.t=f,n.clamp(),u>0&&n.rShiftTo(u,n),i<0&&Re.ZERO.subTo(n,n)}function XX(e){const t=Lr();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Re.ZERO)>0&&e.subTo(t,t),t}function QX(){if(this.t<1)return 0;const e=this[0];if((e&1)===0)return 0;let t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function JX(e){return this.compareTo(e)===0}function eQ(e,t){let n=0,r=0;const a=Math.min(e.t,this.t);for(;n<a;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function tQ(e){const t=Lr();return this.addTo(e,t),t}function nQ(e){const t=Lr();return this.subTo(e,t),t}function rQ(e){const t=Lr();return this.multiplyTo(e,t),t}function aQ(e){const t=Lr();return this.divRemTo(e,t,null),t}function Wd(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function sQ(e){const t=Lr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Re.ZERO)>0&&this.m.subTo(t,t),t}function oQ(e){const t=Lr();return e.copyTo(t),this.reduce(t),t}function iQ(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let n=e[t]&32767;const r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function lQ(e,t){e.squareTo(t),this.reduce(t)}function cQ(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Wd.prototype.convert=sQ;Wd.prototype.revert=oQ;Wd.prototype.reduce=iQ;Wd.prototype.mulTo=cQ;Wd.prototype.sqrTo=lQ;function uQ(e,t,n){let r=e.bitLength(),a,s=Ok(1);const i=new Wd(t);if(r<=0)return s;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6;const c=[];let u=3;const f=a-1,h=(1<<a)-1;if(c[1]=i.convert(this),a>1){const E=Lr();for(i.sqrTo(c[1],E);u<=h;)c[u]=Lr(),i.mulTo(E,c[u-2],c[u]),u+=2}let m=e.t-1,g,y=!0,w=Lr(),b;for(r=Nk(e[m])-1;m>=0;){for(r>=f?g=e[m]>>r-f&h:(g=(e[m]&(1<<r+1)-1)<<f-r,m>0&&(g|=e[m-1]>>this.DB+r-f)),u=a;(g&1)===0;)g>>=1,--u;if((r-=u)<0&&(r+=this.DB,--m),y)c[g].copyTo(s),y=!1;else{for(;u>1;)i.sqrTo(s,w),i.sqrTo(w,s),u-=2;u>0?i.sqrTo(s,w):(b=s,s=w,w=b),i.mulTo(w,c[g],s)}for(;m>=0&&(e[m]&1<<r)===0;)i.sqrTo(s,w),b=s,s=w,w=b,--r<0&&(r=this.DB-1,--m)}const x=i.revert(s);return n(null,x),x}Re.prototype.copyTo=PX;Re.prototype.fromInt=DX;Re.prototype.fromString=LX;Re.prototype.clamp=UX;Re.prototype.dlShiftTo=HX;Re.prototype.drShiftTo=qX;Re.prototype.lShiftTo=VX;Re.prototype.rShiftTo=WX;Re.prototype.subTo=GX;Re.prototype.multiplyTo=KX;Re.prototype.squareTo=YX;Re.prototype.divRemTo=ZX;Re.prototype.invDigit=QX;Re.prototype.addTo=eQ;Re.prototype.toString=zX;Re.prototype.negate=jX;Re.prototype.abs=FX;Re.prototype.compareTo=$X;Re.prototype.bitLength=BX;Re.prototype.mod=XX;Re.prototype.equals=JX;Re.prototype.add=tQ;Re.prototype.subtract=nQ;Re.prototype.multiply=rQ;Re.prototype.divide=aQ;Re.prototype.modPow=uQ;Re.ZERO=Ok(0);Re.ONE=Ok(1);const dQ=async({a:e,g:t,k:n,x:r,B:a,N:s,U:i})=>new Promise((c,u)=>{t.modPow(r,s,(f,h)=>{if(f){u(f);return}a.subtract(n.multiply(h)).modPow(e.add(i.multiply(r)),s,(m,g)=>{if(m){u(m);return}c(g.mod(s))})})}),fQ="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",PU={},o3={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),PU[e]=t,o3[t]=e}const wd=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in o3)t[n/2]=o3[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t},Mk=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=PU[e[n]];return t},i3=e=>{const t=new hc;t.update(e);const n=t.digestSync(),r=Mk(n);return new Array(64-r.length).join("0")+r},D0=e=>i3(wd(e)),hQ=/^[89a-f]/i,Oo=e=>{if(!(e instanceof Re))throw new Error("Not a BigInteger");const t=e.compareTo(Re.ZERO)<0;let n=e.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=hQ.test(n)?`00${n}`:n,t){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Re(r,16).add(Re.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},pQ=({A:e,B:t})=>{const n=new Re(D0(Oo(e)+Oo(t)),16);if(n.equals(Re.ZERO))throw new Error("U cannot be zero.");return n},mQ=(e,t,n)=>{const r=new hc(t);r.update(e);const a=r.digestSync(),s=new hc(a);return s.update(n),s.digestSync().slice(0,16)},Pk=e=>{const t=new Ak().random(e).toString();return wd(t)},gQ=()=>bd.convert(Pk(40));class vQ{constructor({userPoolName:t,a:n,g:r,A:a,N:s}){this.encoder=P0,this.userPoolName=t,this.a=n,this.g=r,this.A=a,this.N=s,this.k=new Re(D0(`${Oo(s)}${Oo(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new Be({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new Be({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new Be({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(t,n){this.randomPassword=gQ();const r=`${t}${n}:${this.randomPassword}`,a=i3(r),s=Mk(Pk(16));return this.saltToHashDevices=Oo(new Re(s,16)),new Promise((i,c)=>{this.g.modPow(new Re(D0(this.saltToHashDevices+a),16),this.N,(u,f)=>{if(u){c(u);return}this.verifierDevices=Oo(f),i()})})}async getPasswordAuthenticationKey({username:t,password:n,serverBValue:r,salt:a}){if(r.mod(this.N).equals(Re.ZERO))throw new Error("B cannot be zero.");const s=pQ({A:this.A,B:r}),i=`${this.userPoolName}${t}:${n}`,c=i3(i),u=new Re(D0(Oo(a)+c),16),f=await dQ({a:this.a,g:this.g,k:this.k,x:u,B:r,N:this.N,U:s}),h=this.encoder.convert("Caldera Derived Key"),m=this.encoder.convert(""),g=new Uint8Array(h.byteLength+m.byteLength);return g.set(h,0),g.set(m,h.byteLength),mQ(wd(Oo(f)),wd(Oo(s)),g)}}const yQ=async({a:e,g:t,N:n})=>new Promise((r,a)=>{t.modPow(e,n,(s,i)=>{if(s){a(s);return}if(i.mod(n).equals(Re.ZERO)){a(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),$p=async e=>{const t=new Re(fQ,16),n=new Re("2",16),r=bQ(),a=await yQ({a:r,g:n,N:t});return new vQ({userPoolName:e,a:r,g:n,A:a,N:t})},bQ=()=>{const e=Mk(Pk(128));return new Re(e,16)};async function Tc({userPoolId:e,userPoolEndpoint:t,newDeviceMetadata:n,accessToken:r}){if(!n)return;const a=e.split("_")[1]||"",s=await $p(a),i=n?.DeviceKey,c=n?.DeviceGroupKey;try{await s.generateHashDevice(c??"",i??"")}catch{return}const u={Salt:bd.convert(wd(s.getSaltToHashDevices())),PasswordVerifier:bd.convert(wd(s.getVerifierDevices()))},f=s.getRandomPassword();try{return await AX({endpointResolver:Ct({endpointOverride:t})})({region:xt(e)},{AccessToken:r,DeviceName:await CZ(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:u}),{deviceKey:i,deviceGroupKey:c,randomPassword:f}}catch{return}}async function SQ(e){const t=Zt.getConfig().Auth?.Cognito;ht(t);const{username:n,signInSession:r,signInDetails:a,challengeName:s}=qs.getState();if(s!=="WEB_AUTHN"||!n)throw new Be({name:Hs.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=e;qd(!!i,Gt.InvalidPasskeyAuthenticationOptions);const c=await kX(JSON.parse(i)),u=Sa({endpointResolver:Ct({endpointOverride:t.userPoolEndpoint})}),{ChallengeName:f,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await u({region:xt(t.userPoolId),userAgentValue:Ut(tt.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(c)},ClientId:t.userPoolClientId,Session:r});if(Ic({signInSession:g,username:n,challengeName:f,signInDetails:a}),m)return await Xo({...m,username:n,NewDeviceMetadata:await Tc({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:a}),qs.dispatch({type:"RESET_STATE"}),await pl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(f==="WEB_AUTHN")throw new Be({name:Hs.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:f,challengeParameters:h}}function nr({username:e,userPoolId:t,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const a=r.getData(e,t,n);return a?{EncodedData:a}:{}}const wQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DU=()=>{const e=new Date,t=xQ[e.getUTCDay()],n=wQ[e.getUTCMonth()],r=e.getUTCDate();let a=e.getUTCHours();a<10&&(a=`0${a}`);let s=e.getUTCMinutes();s<10&&(s=`0${s}`);let i=e.getUTCSeconds();i<10&&(i=`0${i}`);const c=e.getUTCFullYear();return`${t} ${n} ${r} ${a}:${s}:${i} UTC ${c}`},LU=({userPoolName:e,username:t,challengeParameters:n,dateNow:r,hkdf:a})=>{const s=P0.convert(e),i=P0.convert(t),c=CQ(n.SECRET_BLOCK),u=P0.convert(r),f=new Uint8Array(s.byteLength+i.byteLength+c.byteLength+u.byteLength);f.set(s,0),f.set(i,s.byteLength),f.set(c,s.byteLength+i.byteLength),f.set(u,s.byteLength+i.byteLength+c.byteLength);const h=new hc(a);h.update(f);const m=h.digestSync();return bd.convert(m)},CQ=e=>{const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=Ck.convert(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a};async function Bp({username:e,config:t,clientMetadata:n,session:r,tokenOrchestrator:a}){const{userPoolId:s,userPoolEndpoint:i}=t,c=t.userPoolClientId,u=await a?.getDeviceMetadata(e);_U(u);const f=await $p(u.deviceGroupKey),h={USERNAME:e,SRP_A:f.A.toString(16),DEVICE_KEY:u.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:c,ChallengeResponses:h,ClientMetadata:n,Session:r},g=Sa({endpointResolver:Ct({endpointOverride:i})}),{ChallengeParameters:y,Session:w}=await g({region:xt(s)},m);return EQ(e,y,n,w,f,t,a)}async function EQ(e,t,n,r,a,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c},u){const f=await u?.getDeviceMetadata(e);_U(f);const h=new Re(t?.SRP_B,16),m=new Re(t?.SALT,16),{deviceKey:g}=f,{deviceGroupKey:y}=f,w=await a.getPasswordAuthenticationKey({username:f.deviceKey,password:f.randomPassword,serverBValue:h,salt:m}),b=DU(),x={USERNAME:t?.USERNAME??e,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:b,PASSWORD_CLAIM_SIGNATURE:LU({username:g,userPoolName:y,challengeParameters:t,dateNow:b,hkdf:w}),DEVICE_KEY:g},E=nr({username:e,userPoolId:s,userPoolClientId:i}),k={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:x,Session:r,ClientMetadata:n,UserContextData:E};return Sa({endpointResolver:Ct({endpointOverride:c})})({region:xt(s)},k)}async function Dk(e,t,n,r,a,s,i){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:f}=s,h=c?.split("_")[1]||"",m=new Re(t?.SRP_B,16),g=new Re(t?.SALT,16),y=t?.USER_ID_FOR_SRP;if(!y)throw new Be({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const w=await a.getPasswordAuthenticationKey({username:y,password:e,serverBValue:m,salt:g}),b=DU(),x={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:b,PASSWORD_CLAIM_SIGNATURE:LU({username:y,userPoolName:h,challengeParameters:t,dateNow:b,hkdf:w})},E=await i.getDeviceMetadata(y);E&&E.deviceKey&&(x.DEVICE_KEY=E.deviceKey);const k=nr({username:y,userPoolId:c,userPoolClientId:u}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:x,ClientMetadata:n,Session:r,ClientId:u,UserContextData:k},P=await Sa({endpointResolver:Ct({endpointOverride:f})})({region:xt(c)},A);return P.ChallengeName==="DEVICE_SRP_AUTH"?Bp({username:y,config:s,clientMetadata:n,session:P.Session,tokenOrchestrator:i}):P}async function Gd(e,t,n,r){try{return await e(...t)}catch(a){if(a instanceof Be&&a.name==="ResourceNotFoundException"&&a.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),e(...t);throw a}}function Rc(e){const{dispatch:t}=qs;t({type:"SET_USERNAME",value:e})}async function UU({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:s,preferredChallenge:i}){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:f}=r,h=c?.split("_")[1]||"",m=await $p(h),g={USERNAME:e,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const y=nr({username:e,userPoolId:c,userPoolClientId:u}),w={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:u,UserContextData:y},x=await Fp({endpointResolver:Ct({endpointOverride:f})})({region:xt(c),userAgentValue:Ut(tt.SignIn)},w),{ChallengeParameters:E,Session:k}=x,A=E?.USERNAME??e;return Rc(A),x.ChallengeName==="PASSWORD_VERIFIER"?Gd(Dk,[t,E,n,k,m,r,a],A,a):x}async function _Q({username:e,session:t,selectedChallenge:n,config:r,clientMetadata:a}){return Sa({endpointResolver:Ct({endpointOverride:r.userPoolEndpoint})})({region:xt(r.userPoolId),userAgentValue:Ut(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:e,ANSWER:n},ClientId:r.userPoolClientId,Session:t,ClientMetadata:a})}async function kQ(e,t,n,r,a){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=r,u={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},f=nr({username:e,userPoolId:s,userPoolClientId:i}),m=await Sa({endpointResolver:Ct({endpointOverride:c})})({region:xt(s),userAgentValue:Ut(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:u,ClientId:i,ClientMetadata:n,Session:a,UserContextData:f}),g=m.ChallengeParameters?.USERNAME??e;return Rc(g),m}async function AQ(e,t,n,r,a,s){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=r,f=i.split("_")[1]||"",h=await $p(f),m={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:h.A.toString(16)},g=nr({username:e,userPoolId:i,userPoolClientId:c}),w=await Sa({endpointResolver:Ct({endpointOverride:u})})({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:c,ClientMetadata:n,Session:a,UserContextData:g}),b=w.ChallengeParameters?.USERNAME??e;return Rc(b),w.ChallengeName==="PASSWORD_VERIFIER"?Gd(Dk,[t,w.ChallengeParameters,n,w.Session,h,r,s],b,s):w}const l3="userAttributes.";function IQ(e){return"isSignedIn"in e&&"nextStep"in e}async function TQ({challengeResponse:e,clientMetadata:t,session:n,username:r,config:a,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=a,f={USERNAME:r,ANSWER:e},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const m=nr({username:r,userPoolId:i,userPoolClientId:c}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,Session:n,ClientMetadata:t,ClientId:c,UserContextData:m},w=await Sa({endpointResolver:Ct({endpointOverride:u})})({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},g);return w.ChallengeName==="DEVICE_SRP_AUTH"?Bp({username:r,config:a,clientMetadata:t,session:w.Session,tokenOrchestrator:s}):w}async function RQ({challengeResponse:e,username:t,clientMetadata:n,session:r,deviceName:a,config:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=s;if(e==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(e==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const f={USERNAME:t};if(/^\d+$/.test(e)){const g=ZZ({endpointResolver:Ct({endpointOverride:u})}),{Session:y}=await g({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},{UserCode:e,Session:r,FriendlyDeviceName:a});qs.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const w={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:y,ClientMetadata:n,ClientId:c};return Sa({endpointResolver:Ct({endpointOverride:u})})({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},w)}if(e.includes("@")){f.EMAIL=e;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:r,ClientMetadata:n,ClientId:c};return Sa({endpointResolver:Ct({endpointOverride:u})})({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},g)}throw new Be({name:Hs.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${e}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function OQ({challengeResponse:e,username:t,clientMetadata:n,session:r,config:a}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=a;bn(e==="TOTP"||e==="SMS"||e==="EMAIL",et.IncorrectMFAMethod);const u={USERNAME:t,ANSWER:$Q(e)},f=nr({username:t,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:u,Session:r,ClientMetadata:n,ClientId:i,UserContextData:f};return Sa({endpointResolver:Ct({endpointOverride:c})})({region:xt(s),userAgentValue:Ut(tt.ConfirmSignIn)},h)}async function NQ({challengeResponse:e,clientMetadata:t,session:n,username:r,requiredAttributes:a,config:s}){const{userPoolId:i,userPoolClientId:c,userPoolEndpoint:u}=s,f={...jQ(a),NEW_PASSWORD:e,USERNAME:r},h=nr({username:r,userPoolId:i,userPoolClientId:c}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:f,ClientMetadata:t,Session:n,ClientId:c,UserContextData:h};return Sa({endpointResolver:Ct({endpointOverride:u})})({region:xt(i),userAgentValue:Ut(tt.ConfirmSignIn)},m)}async function MQ(e,t,n,r,a){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:c}=r,u={USERNAME:e,PASSWORD:t},f=await a.getDeviceMetadata(e);f&&f.deviceKey&&(u.DEVICE_KEY=f.deviceKey);const h=nr({username:e,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:u,ClientMetadata:n,ClientId:s,UserContextData:h},y=await Fp({endpointResolver:Ct({endpointOverride:c})})({region:xt(i),userAgentValue:Ut(tt.SignIn)},m),w=y.ChallengeParameters?.USERNAME??y.ChallengeParameters?.USER_ID_FOR_SRP??e;return Rc(w),y.ChallengeName==="DEVICE_SRP_AUTH"?Bp({username:w,config:r,clientMetadata:n,session:y.Session,tokenOrchestrator:a}):y}async function PQ(e,t,n,r,a){return UU({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:"USER_SRP_AUTH"})}async function DQ(e,t,n,r){const{userPoolClientId:a,userPoolId:s,userPoolEndpoint:i}=n,c={USERNAME:e},u=await r.getDeviceMetadata(e);u&&u.deviceKey&&(c.DEVICE_KEY=u.deviceKey);const f=nr({username:e,userPoolId:s,userPoolClientId:a}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:c,ClientMetadata:t,ClientId:a,UserContextData:f},g=await Fp({endpointResolver:Ct({endpointOverride:i})})({region:xt(s),userAgentValue:Ut(tt.SignIn)},h),y=g.ChallengeParameters?.USERNAME??e;return Rc(y),g.ChallengeName==="DEVICE_SRP_AUTH"?Bp({username:y,config:n,clientMetadata:t,session:g.Session,tokenOrchestrator:r}):g}async function LQ(e,t,n,r,a){ht(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=r,u=s?.split("_")[1]||"",f=await $p(u),h={USERNAME:e,SRP_A:f.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=nr({username:e,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},y=Fp({endpointResolver:Ct({endpointOverride:c})}),{ChallengeParameters:w,Session:b}=await y({region:xt(s),userAgentValue:Ut(tt.SignIn)},g),x=w?.USERNAME??e;return Rc(x),Gd(Dk,[t,w,n,b,f,r,a],x,a)}async function Oc(e){const{challengeName:t,challengeParameters:n,availableChallenges:r}=e,a=Zt.getConfig().Auth?.Cognito;switch(ht(a),t){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=qs.getState(),c=l6(c6(n.MFAS_CAN_SETUP))||[],u=HQ(c),f=u.includes("TOTP"),h=u.includes("EMAIL");if(f&&h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:u}};if(h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(f){const m=XZ({endpointResolver:Ct({endpointOverride:a.userPoolEndpoint})}),{Session:g,SecretCode:y}=await m({region:xt(a.userPoolId)},{Session:s});return qs.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:UQ(y,i)}}}throw new Be({name:Hs.SignInException,message:`Cannot initiate MFA setup from available types: ${c}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:zQ(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:l6(c6(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await SQ(n);return IQ(s)?s:Oc(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new Be({name:Hs.SignInException,message:`An error occurred during the sign in process. ${t} challengeName returned by the underlying service was not addressed.`})}function UQ(e,t){return{sharedSecret:e,getSetupUri:(n,r)=>{const a=`otpauth://totp/${n}:${r??t}?secret=${e}&issuer=${n}`;return new hl(a)}}}function Kd(e){if(e===c1.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(e===c1.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function zQ(e){return e?JSON.parse(e).map(n=>n.includes(l3)?n.replace(l3,""):n):[]}function jQ(e){if(!e)return{};const t={};return Object.entries(e).forEach(([n,r])=>{r&&(t[`${l3}${n}`]=r)}),t}async function FQ(e,t,n,r,a,s,i,c){const u=c?.userAttributes,f=c?.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:_Q({username:e,session:n,selectedChallenge:r,config:a,clientMetadata:i});case"SELECT_MFA_TYPE":return OQ({challengeResponse:r,clientMetadata:i,session:n,username:e,config:a});case"MFA_SETUP":return RQ({challengeResponse:r,clientMetadata:i,session:n,username:e,deviceName:f,config:a});case"NEW_PASSWORD_REQUIRED":return NQ({challengeResponse:r,clientMetadata:i,session:n,username:e,requiredAttributes:u,config:a});case"CUSTOM_CHALLENGE":return Gd(TQ,[{challengeResponse:r,clientMetadata:i,session:n,username:e,config:a,tokenOrchestrator:s}],e,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return qQ({challengeName:t,challengeResponse:r,clientMetadata:i,session:n,username:e,config:a,tokenOrchestrator:s});case"PASSWORD":return kQ(e,r,i,a,n);case"PASSWORD_SRP":return AQ(e,r,i,a,n,s)}throw new Be({name:Hs.SignInException,message:`An error occurred during the sign in process.
|
|
5
|
+
${t} challengeName returned by the underlying service was not addressed.`})}function $Q(e){let t="SMS_MFA";return e==="TOTP"&&(t="SOFTWARE_TOKEN_MFA"),e==="EMAIL"&&(t="EMAIL_OTP"),t}function BQ(e){if(e==="SMS_MFA")return"SMS";if(e==="SOFTWARE_TOKEN_MFA")return"TOTP";if(e==="EMAIL_OTP")return"EMAIL"}function l6(e){if(e)return e.map(BQ).filter(Boolean)}function c6(e){return e?JSON.parse(e):[]}function HQ(e){return e.filter(t=>t==="EMAIL"||t==="TOTP")}async function zU(){let e;try{e=await Iv()}catch{}if(e&&e.userId&&e.username)throw new Be({name:IZ,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function Hp(e){return qs.getState().username??e}async function qQ({challengeName:e,challengeResponse:t,clientMetadata:n,session:r,username:a,config:s,tokenOrchestrator:i}){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:f}=s,h={USERNAME:a};e==="EMAIL_OTP"&&(h.EMAIL_OTP_CODE=t),e==="SMS_MFA"&&(h.SMS_MFA_CODE=t),e==="SMS_OTP"&&(h.SMS_OTP_CODE=t),e==="SOFTWARE_TOKEN_MFA"&&(h.SOFTWARE_TOKEN_MFA_CODE=t);const m=await i?.getDeviceMetadata(a);m&&m.deviceKey&&(h.DEVICE_KEY=m.deviceKey);const g=nr({username:a,userPoolId:c,userPoolClientId:u}),y={ChallengeName:e,ChallengeResponses:h,Session:r,ClientMetadata:n,ClientId:u,UserContextData:g},b=await Sa({endpointResolver:Ct({endpointOverride:f})})({region:xt(c),userAgentValue:Ut(tt.ConfirmSignIn)},y);return b.ChallengeName==="DEVICE_SRP_AUTH"?Bp({username:a,config:s,clientMetadata:n,session:b.Session,tokenOrchestrator:i}):b}async function VQ(e){const t=Zt.getConfig().Auth?.Cognito;ht(t);const{username:n,password:r,options:a}=e,s={loginId:n,authFlowType:"CUSTOM_WITHOUT_SRP"},i=a?.clientMetadata;bn(!!n,et.EmptySignInUsername),bn(!r,et.CustomAuthSignInPassword);try{const{ChallengeName:c,ChallengeParameters:u,AuthenticationResult:f,Session:h}=await Gd(DQ,[n,i,t,na],n,na),m=Hp(n);return Ic({signInSession:h,username:m,challengeName:c,signInDetails:s}),f?(await Xo({username:m,...f,NewDeviceMetadata:await Tc({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),fs(),await pl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:c,challengeParameters:u})}catch(c){fs(),Ha(c);const u=Kd(c.name);if(u)return u;throw c}}async function WQ(e){const{username:t,password:n,options:r}=e,a={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},s=Zt.getConfig().Auth?.Cognito;ht(s);const i=r?.clientMetadata;bn(!!t,et.EmptySignInUsername),bn(!!n,et.EmptySignInPassword);try{const{ChallengeName:c,ChallengeParameters:u,AuthenticationResult:f,Session:h}=await LQ(t,n,i,s,na),m=Hp(t);return Ic({signInSession:h,username:m,challengeName:c,signInDetails:a}),f?(await Xo({username:m,...f,NewDeviceMetadata:await Tc({userPoolId:s.userPoolId,userPoolEndpoint:s.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:a}),fs(),await pl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:c,challengeParameters:u})}catch(c){fs(),Ha(c);const u=Kd(c.name);if(u)return u;throw c}}const jU=async()=>{throw new Be({name:CU,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})};let Lk=jU;function c3(e){Lk=e}function Jr(e=!0){e&&(Lk=jU),Zi.dispatch({type:"RESET"})}async function u6(e){const{username:t,password:n}=e,r=Zt.getConfig().Auth?.Cognito,a={loginId:t,authFlowType:"USER_SRP_AUTH"};ht(r);const s=e.options?.clientMetadata;bn(!!t,et.EmptySignInUsername),bn(!!n,et.EmptySignInPassword);try{const{ChallengeName:i,ChallengeParameters:c,AuthenticationResult:u,Session:f}=await PQ(t,n,s,r,na),h=Hp(t);return Ic({signInSession:f,username:h,challengeName:i,signInDetails:a}),u?(await Xo({username:h,...u,NewDeviceMetadata:await Tc({userPoolId:r.userPoolId,userPoolEndpoint:r.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:a}),fs(),await pl(),Jr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:i,challengeParameters:c})}catch(i){fs(),Jr(),Ha(i);const c=Kd(i.name);if(c)return c;throw i}}async function GQ(e){const{username:t,password:n,options:r}=e,a=Zt.getConfig().Auth?.Cognito,s={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};ht(a);const i=r?.clientMetadata;bn(!!t,et.EmptySignInUsername),bn(!!n,et.EmptySignInPassword);try{const{ChallengeName:c,ChallengeParameters:u,AuthenticationResult:f,Session:h}=await Gd(MQ,[t,n,i,a,na],t,na),m=Hp(t);return Ic({signInSession:h,username:m,challengeName:c,signInDetails:s}),f?(await Xo({...f,username:m,NewDeviceMetadata:await Tc({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),fs(),await pl(),Jr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:c,challengeParameters:u})}catch(c){fs(),Jr(),Ha(c);const u=Kd(c.name);if(u)return u;throw c}}async function KQ({username:e,clientMetadata:t,config:n,tokenOrchestrator:r,preferredChallenge:a,password:s,session:i}){const{userPoolId:c,userPoolClientId:u,userPoolEndpoint:f}=n,h=nr({username:e,userPoolId:c,userPoolClientId:u}),m={USERNAME:e};if(a){if(n.passwordless&&(a==="EMAIL_OTP"&&!n.passwordless.emailOtpEnabled||a==="SMS_OTP"&&!n.passwordless.smsOtpEnabled||a==="WEB_AUTHN"&&!n.passwordless.webAuthn)&&bn(!1,et.InvalidPreferredChallenge),a==="PASSWORD_SRP")return bn(!!s,et.EmptySignInPassword),UU({username:e,password:s,clientMetadata:t,config:n,tokenOrchestrator:r,authFlow:"USER_AUTH",preferredChallenge:a});a==="PASSWORD"&&(bn(!!s,et.EmptySignInPassword),m.PASSWORD=s),m.PREFERRED_CHALLENGE=a}const g={AuthFlow:"USER_AUTH",AuthParameters:m,ClientMetadata:t,ClientId:u,UserContextData:h};i&&(g.Session=i);const w=await Fp({endpointResolver:Ct({endpointOverride:f})})({region:xt(c),userAgentValue:Ut(tt.SignIn)},g);return Rc(e),w}async function FU(e){const{username:t,password:n,options:r}=e,a=Zt.getConfig().Auth?.Cognito,s={loginId:t,authFlowType:"USER_AUTH"};ht(a);const i=r?.clientMetadata,c=r?.preferredChallenge??a?.passwordless?.preferredChallenge;bn(!!t,et.EmptySignInUsername);try{const u={username:t,config:a,tokenOrchestrator:na,clientMetadata:i,preferredChallenge:c,password:n},f=Zi.getState();f.active&&f.username===t&&(u.session=f.session);const h=await KQ(u),m=Hp(t);return Ic({signInSession:h.Session,username:m,challengeName:h.ChallengeName,signInDetails:s}),h.AuthenticationResult?(await Xo({username:m,...h.AuthenticationResult,NewDeviceMetadata:await Tc({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:h.AuthenticationResult.NewDeviceMetadata,accessToken:h.AuthenticationResult.AccessToken}),signInDetails:s}),fs(),await pl(),Jr(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:h.ChallengeName,challengeParameters:h.ChallengeParameters,availableChallenges:"AvailableChallenges"in h?h.AvailableChallenges:void 0})}catch(u){fs(),Jr(),Ha(u);const f=Kd(u.name);if(f)return f;throw u}}async function Uk(e){Jr(!1);const t=e.options?.authFlowType;switch(await zU(),t){case"USER_SRP_AUTH":return u6(e);case"USER_PASSWORD_AUTH":return GQ(e);case"CUSTOM_WITHOUT_SRP":return VQ(e);case"CUSTOM_WITH_SRP":return WQ(e);case"USER_AUTH":return FU(e);default:return u6(e)}}const $U=180*1e3;function YQ(e){const t=l1.listen("auth-internal",async({payload:r})=>{r.event==="confirmSignUp"&&r.data?.isSignUpComplete&&(l1.dispatch("auth-internal",{event:"autoSignIn"}),c3(HU(e)),t())}),n=setTimeout(()=>{t(),clearTimeout(n),Jr()},$U)}function BU(e,t){let n;return r=>{n||e(...r),clearTimeout(n),n=setTimeout(()=>{n=void 0},t)}}function ZQ(e,t,n){const r=Date.now(),a=setInterval(async()=>{if(Date.now()-r>$U)clearInterval(a),n(new Be({name:CU,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),Jr();else try{const c=await Uk(e);c.nextStep.signInStep!=="CONFIRM_SIGN_UP"&&(t(c),clearInterval(a),Jr())}catch(c){clearInterval(a),n(c),Jr()}},5e3)}const XQ=BU(ZQ,300),QQ=BU(eJ,300);function JQ(e){return async()=>new Promise((t,n)=>{XQ([e,t,n])})}async function eJ(e,t,n){try{const r=e?.options?.authFlowType==="USER_AUTH"?await FU(e):await Uk(e);t(r),Jr()}catch(r){n(r),Jr()}}function HU(e){return async()=>new Promise((t,n)=>{QQ([e,t,n])})}const tJ=HU,nJ=()=>async e=>{if(e.statusCode>=300){const t=await Bd(e);if(Ha(t),t.name===a3.InvalidParameterException&&/'password'/.test(t.message)&&/Member must not be null/.test(t.message)){const n=et.EmptySignUpPassword,{message:r,recoverySuggestion:a}=xU[n];throw new Be({name:n,message:r,recoverySuggestion:a})}throw new Be({name:t.name,message:t.message})}return zp(e)},rJ=e=>jn(er,Jn("SignUp"),nJ(),{...tr,...e});async function aJ(e){const{username:t,password:n,options:r}=e,a=Zt.getConfig().Auth?.Cognito,s=a?.signUpVerificationMethod??"code",{clientMetadata:i,validationData:c,autoSignIn:u}=e.options??{};ht(a),bn(!!t,et.EmptySignUpUsername);const f=typeof u!="boolean"?u:void 0,h={username:t,options:f};f?.authFlowType!=="CUSTOM_WITHOUT_SRP"&&(h.password=n);const{userPoolId:m,userPoolClientId:g,userPoolEndpoint:y}=a,w=rJ({endpointResolver:Ct({endpointOverride:y})}),b={Username:t,Password:void 0,UserAttributes:r?.userAttributes&&N5(r?.userAttributes),ClientMetadata:i,ValidationData:c&&N5(c),ClientId:g,UserContextData:nr({username:t,userPoolId:m,userPoolClientId:g})};n&&(b.Password=n);const{UserSub:x,CodeDeliveryDetails:E,UserConfirmed:k,Session:A}=await w({region:xt(m),userAgentValue:Ut(tt.SignUp)},b);(f||u===!0)&&(Zi.dispatch({type:"START"}),Zi.dispatch({type:"SET_USERNAME",value:t}),Zi.dispatch({type:"SET_SESSION",value:A}));const R={destination:E?.Destination,deliveryMedium:E?.DeliveryMedium,attributeName:E?.AttributeName},P=!!k,O=Zi.getState().active;if(P)return O?(c3(tJ(h)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:x}):{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:x};if(O){if(s==="link")return c3(JQ(h)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:R},userId:x};YQ(h)}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:R},userId:x}}const sJ=e=>jn(er,Jn("ForgotPassword"),mr(),{...tr,...e});async function qU(e){const{username:t}=e;bn(!!t,et.EmptyResetPasswordUsername);const n=Zt.getConfig().Auth?.Cognito;ht(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=e.options?.clientMetadata,c=nr({username:t,userPoolId:a,userPoolClientId:r}),h=(await sJ({endpointResolver:Ct({endpointOverride:s})})({region:xt(a),userAgentValue:Ut(tt.ResetPassword)},{Username:t,ClientMetadata:i,ClientId:r,UserContextData:c})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:h?.DeliveryMedium,destination:h?.Destination,attributeName:h?.AttributeName}}}}const oJ=e=>jn(er,Jn("ConfirmForgotPassword"),mr(),{...tr,...e});async function iJ(e){const t=Zt.getConfig().Auth?.Cognito;ht(t);const{userPoolClientId:n,userPoolId:r,userPoolEndpoint:a}=t,{username:s,newPassword:i}=e;bn(!!s,et.EmptyConfirmResetPasswordUsername),bn(!!i,et.EmptyConfirmResetPasswordNewPassword);const c=e.confirmationCode;bn(!!c,et.EmptyConfirmResetPasswordConfirmationCode);const u=e.options?.clientMetadata,f=nr({username:s,userPoolId:r,userPoolClientId:n});await oJ({endpointResolver:Ct({endpointOverride:a})})({region:xt(t.userPoolId),userAgentValue:Ut(tt.ConfirmResetPassword)},{Username:s,ConfirmationCode:c,Password:i,ClientMetadata:u,ClientId:t.userPoolClientId,UserContextData:f})}const lJ=e=>jn(er,Jn("ResendConfirmationCode"),mr(),{...tr,...e});async function cJ(e){const{username:t}=e;bn(!!t,et.EmptySignUpUsername);const n=Zt.getConfig().Auth?.Cognito;ht(n);const{userPoolClientId:r,userPoolId:a,userPoolEndpoint:s}=n,i=e.options?.clientMetadata,c=nr({username:t,userPoolId:a,userPoolClientId:r}),u=lJ({endpointResolver:Ct({endpointOverride:s})}),{CodeDeliveryDetails:f}=await u({region:xt(n.userPoolId),userAgentValue:Ut(tt.ResendSignUpCode)},{Username:t,ClientMetadata:i,ClientId:n.userPoolClientId,UserContextData:c}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m||void 0}}const uJ=e=>jn(er,Jn("ConfirmSignUp"),mr(),{...tr,...e});async function dJ(e){const{username:t,confirmationCode:n,options:r}=e,a=Zt.getConfig().Auth?.Cognito;ht(a);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:c}=a,u=r?.clientMetadata;bn(!!t,et.EmptyConfirmSignUpUsername),bn(!!n,et.EmptyConfirmSignUpCode);const f=nr({username:t,userPoolId:s,userPoolClientId:i}),h=uJ({endpointResolver:Ct({endpointOverride:c})}),{Session:m}=await h({region:xt(a.userPoolId),userAgentValue:Ut(tt.ConfirmSignUp)},{Username:t,ConfirmationCode:n,ClientMetadata:u,ForceAliasCreation:r?.forceAliasCreation,ClientId:a.userPoolClientId,UserContextData:f});return new Promise((g,y)=>{try{const w={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},b=Zi.getState();if(!b.active||b.username!==t){g(w),Jr();return}Zi.dispatch({type:"SET_SESSION",value:m});const x=l1.listen("auth-internal",({payload:E})=>{E.event==="autoSignIn"&&(g({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),x())});l1.dispatch("auth-internal",{event:"confirmSignUp",data:w})}catch(w){y(w)}})}async function VU(e){const{challengeResponse:t,options:n}=e,{username:r,challengeName:a,signInSession:s,signInDetails:i}=qs.getState(),c=Zt.getConfig().Auth?.Cognito;ht(c);const u=n?.clientMetadata;if(bn(!!t,et.EmptyChallengeResponse),!r||!a||!s)throw new Be({name:Hs.SignInException,message:`
|
|
6
|
+
An error occurred during the sign in process.
|
|
7
|
+
|
|
8
|
+
This most likely occurred due to:
|
|
9
|
+
1. signIn was not called before confirmSignIn.
|
|
10
|
+
2. signIn threw an exception.
|
|
11
|
+
3. page was refreshed during the sign in flow and session has expired.
|
|
12
|
+
`,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:f,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await FQ(r,a,s,t,c,na,u,n);return Ic({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await Xo({username:r,...m,NewDeviceMetadata:await Tc({userPoolId:c.userPoolId,userPoolEndpoint:c.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),fs(),await pl(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):Oc({challengeName:h,challengeParameters:g})}catch(f){Ha(f);const h=Kd(f.name);if(h)return h;throw f}}const fJ=e=>jn(er,Jn("GetUser"),mr(),{...tr,...e}),hJ=e=>jn(er,Jn("VerifyUserAttribute"),mr(),{...tr,...e});async function pJ(e){const t=Zt.getConfig().Auth?.Cognito;ht(t);const{userPoolEndpoint:n,userPoolId:r}=t,{confirmationCode:a,userAttributeKey:s}=e;bn(!!a,et.EmptyConfirmUserAttributeCode);const{tokens:i}=await _v({forceRefresh:!1});Hd(i),await hJ({endpointResolver:Ct({endpointOverride:n})})({region:xt(r),userAgentValue:Ut(tt.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new hr("AuthError");const mJ={oauthSignInError:{message:Xn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Xn.DEFAULT_MSG},missingAuthConfig:{message:Xn.DEFAULT_MSG},emptyUsername:{message:Xn.EMPTY_USERNAME},invalidUsername:{message:Xn.INVALID_USERNAME},emptyPassword:{message:Xn.EMPTY_PASSWORD},emptyCode:{message:Xn.EMPTY_CODE},signUpError:{message:Xn.SIGN_UP_ERROR},noMFA:{message:Xn.NO_MFA},invalidMFA:{message:Xn.INVALID_MFA},emptyChallengeResponse:{message:Xn.EMPTY_CHALLENGE},noUserSession:{message:Xn.NO_USER_SESSION},deviceConfig:{message:Xn.DEVICE_CONFIG},networkError:{message:Xn.NETWORK_ERROR},autoSignInError:{message:Xn.AUTOSIGNIN_ERROR},default:{message:Xn.DEFAULT_MSG}},al=(e,t)=>new Be({message:e??"An error has occurred during the oauth process.",name:Hs.OAuthSignInError,recoverySuggestion:mJ.oauthSignInError.log});var u3;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(u3||(u3={}));const gJ="`signInWithRedirect` has been canceled.",vJ="An error occurred while validating the state.",yJ="Try to initiate an OAuth flow from Amplify",WU=async e=>{const t=await Xr.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new Be({name:u3.OAuthSignInError,message:e===null?gJ:vJ,recoverySuggestion:e===null?void 0:yJ});return n},GU=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const c=new hl(e),u=c.searchParams.get("error"),f=c.searchParams.get("error_description");if(u)throw al(f??u);return a==="code"?bJ({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):SJ({currentUrl:e,redirectUri:r,preferPrivateSession:i})},bJ=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new hl(e),c=i.searchParams.get("code"),u=i.searchParams.get("state");if(!c||!u)throw al("User cancelled OAuth flow.");const f=await WU(u),h="https://"+a+"/oauth2/token",m=await Xr.loadPKCE(),g={grant_type:"authorization_code",code:c,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},y=Object.entries(g).map(([O,T])=>`${encodeURIComponent(O)}=${encodeURIComponent(T)}`).join("&"),{access_token:w,refresh_token:b,id_token:x,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[CK]:t},body:y})).json();if(E)throw al(k??E);const P=(w&&Fo(w).payload.username)??"username";return await Xo({username:P,AccessToken:w,IdToken:x,RefreshToken:b}),KU({redirectUri:r,state:f,preferPrivateSession:s})},SJ=async({currentUrl:e,redirectUri:t,preferPrivateSession:n})=>{const r=new hl(e),{id_token:a,access_token:s,state:i,token_type:c,expires_in:u,error_description:f,error:h}=(r.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[w,b])=>({...y,[w]:b}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw al(f??h);if(!s)throw al("No access token returned from OAuth flow.");const m=await WU(i),g=(s&&Fo(s).payload.username)??"username";return await Xo({username:g,AccessToken:s,IdToken:a}),KU({redirectUri:t,state:m,preferPrivateSession:n})},KU=async({redirectUri:e,state:t,preferPrivateSession:n})=>{await na.setOAuthMetadata({oauthSignIn:!0}),await Xr.clearOAuthData(),await Xr.storeOAuthSignIn(!0,n),TU(),CJ(e),wJ(t)&&Bs.dispatch("auth",{event:"customOAuthState",data:SZ(xJ(t))},"Auth",$s),Bs.dispatch("auth",{event:"signInWithRedirect"},"Auth",$s),await pl()},wJ=e=>/-/.test(e),xJ=e=>e.split("-").splice(1).join("-"),CJ=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function zk(e,t){{const n=e?.find(EJ)??e?.find(_J),r=e?.find(AJ)??e?.find(kJ);if(n)return n;throw r?DZ:MZ}}const EJ=e=>e.startsWith(String(window.location.origin+(window.location.pathname||"/"))),_J=e=>e.includes(String(window.location.hostname)),kJ=e=>e.startsWith("http://"),AJ=e=>e.startsWith("https://"),jk=async e=>{TU(),await Xr.clearOAuthInflightData(),Bs.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",$s)},IJ=async e=>{try{ht(e),wv(e),Xr.setAuthConfig(e)}catch{return}if(await Xr.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,c=zk(s);await GU({currentUrl:t,clientId:r,domain:a,redirectUri:c,responseType:i,userAgentValue:Ut(tt.SignInWithRedirect)})}catch(t){await jk(t)}};Ev()&&Zt[JL](IJ);const TJ={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},YU=async e=>{window?.location&&(window.location.href=e.replace("http://","https://"))},d6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",RJ=e=>{const t=new Uint8Array(e);xk().getRandomValues(t);let n="",r;for(const a of t)n+=d6.charAt(a%d6.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=OJ(n),r)}}};function OJ(e){const t=new hc;return t.update(e),NJ(bd.convert(t.digestSync(),{urlSafe:!0}))}function NJ(e){return e.replace(/=/g,"")}const MJ=()=>bZ(32),PJ=e=>{async function t(n){if(n.persisted&&await e.loadOAuthInFlight()){const a=al("User cancelled OAuth flow.");await jk(a)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function ZU(e){const t=Zt.getConfig().Auth?.Cognito;ht(t),wv(t),Xr.setAuthConfig(t),e?.options?.prompt||await zU();let n="COGNITO",r;return typeof e?.provider=="string"?n=TJ[e.provider]:e?.provider?.custom?n=e.provider.custom:e?.provider?.idpIdentifier&&({idpIdentifier:r}=e.provider),DJ({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:n,idpIdentifier:r,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession,options:{loginHint:e?.options?.loginHint,lang:e?.options?.lang,nonce:e?.options?.nonce,prompt:e?.options?.prompt},authSessionOpener:e?.options?.authSessionOpener})}const DJ=async({oauthConfig:e,provider:t,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:c})=>{const{domain:u,redirectSignIn:f,responseType:h,scopes:m}=e,{loginHint:g,lang:y,nonce:w,prompt:b}=i??{},x=MJ(),E=c||YU,k=a?`${x}-${wZ(a)}`:x,{value:A,method:R,toCodeChallenge:P}=RJ(128),O=zk(e.redirectSignIn);Ev()&&Xr.storeOAuthInFlight(!0),Xr.storeOAuthState(k),Xr.storePKCE(A);const T=new URLSearchParams;T.append("redirect_uri",O),T.append("response_type",h),T.append("client_id",r),n?T.append("idp_identifier",n):T.append("identity_provider",t),T.append("scope",m.join(" ")),g&&T.append("login_hint",g),y&&T.append("lang",y),w&&T.append("nonce",w),b&&T.append("prompt",b.toLowerCase()),T.append("state",k),h==="code"&&(T.append("code_challenge",P()),T.append("code_challenge_method",R));const M=`https://${u}/oauth2/authorize?${T.toString()}`;PJ(Xr);const{type:z,error:q,url:U}=await E(M,f,s)??{};try{if(z==="error")throw al(String(q));if(z==="canceled")throw al(String(z));z==="success"&&U&&await GU({currentUrl:U,clientId:r,domain:u,redirectUri:O,responseType:h,userAgentValue:Ut(tt.SignInWithRedirect),preferPrivateSession:s})}catch(L){throw await jk(L),L}},LJ=async e=>{const t=e.getConfig().Auth?.Cognito;ht(t);const{userPoolEndpoint:n,userPoolId:r}=t,{tokens:a}=await sU(e,{forceRefresh:!1});Hd(a);const s=fJ({endpointResolver:Ct({endpointOverride:n})}),{UserAttributes:i}=await s({region:xt(r),userAgentValue:Ut(tt.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return AZ(i)},XU=()=>LJ(Zt),UJ=async e=>{await e.clearOAuthData(),na.clearTokens(),await oU(),Bs.dispatch("auth",{event:"signedOut"},"Auth",$s)},zJ=async(e,t=!1,n)=>{wv(e);const{loginWith:r,userPoolClientId:a}=e,{domain:s,redirectSignOut:i}=r.oauth,c=zk(i),u=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(c)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return YU(u)},jJ=async(e,t,n,r)=>{const{isOAuthSignIn:a}=await t.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await UJ(t),a||s?.oauthSignIn)return zJ(e,!1)},FJ=e=>jn(er,Jn("RevokeToken"),mr(),{...tr,...e}),$J=new hr("Auth");async function BJ(e){const t=Zt.getConfig().Auth?.Cognito;ht(t),await HJ(t);let n;try{wv(t),n=!0}catch{n=!1}if(n){const r=new IU(jp);r.setAuthConfig(t);const{type:a}=await jJ(t,r,na)??{};if(a==="error")throw new Be({name:LZ,message:"An error occurred when attempting to log out from OAuth provider."})}else na.clearTokens(),await oU(),Bs.dispatch("auth",{event:"signedOut"},"Auth",$s)}async function HJ(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,a=await na.getTokenStore().loadTokens();EU(a),qJ(a.accessToken)&&await FJ({endpointResolver:Ct({endpointOverride:t})})({region:xt(n),userAgentValue:Ut(tt.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{$J.debug("Client signOut error caught but will proceed with token removal")}}const qJ=e=>!!e?.payload?.origin_jti,VJ=e=>jn(er,Jn("GetUserAttributeVerificationCode"),mr(),{...tr,...e}),WJ=async e=>{const{userAttributeKey:t,options:n}=e,r=Zt.getConfig().Auth?.Cognito,a=n?.clientMetadata;ht(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:c}=await _v({forceRefresh:!1});Hd(c);const u=VJ({endpointResolver:Ct({endpointOverride:s})}),{CodeDeliveryDetails:f}=await u({region:xt(i),userAgentValue:Ut(tt.SendUserAttributeVerificationCode)},{AccessToken:c.accessToken.toString(),ClientMetadata:a,AttributeName:t}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},GJ={identityId:"identityId"},KJ=new hr("DefaultIdentityIdStore");class QU{setAuthConfig(t){O0(t.Cognito),this.authConfig=t,this._authKeys=YJ("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){O0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const t=await this.keyValueStorage.getItem(this._authKeys.identityId);return t?(this._hasGuestIdentityId=!0,{id:t,type:"guest"}):null}}catch(t){return KJ.log("Error getting stored IdentityId.",t),null}}async storeIdentityId(t){O0(this.authConfig?.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const YJ=(e,t)=>Ik(GJ)(`com.amplify.${e}`,t),d3=({endpointOverride:e})=>t=>e?{url:new hl(e)}:lZ(t);function JU(e){const t=Fo(e).payload.iss,n={};if(!t)throw new Be({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=t.replace(/(^\w+:|^)\/\//,"");return n[r]=e,n}async function ZJ({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const r=await n.loadIdentityId();if(r)return r.id;const a=e?.idToken?JU(e.idToken.toString()):{},s=await XJ(a,t);return n.storeIdentityId({id:s,type:e?"primary":"guest"}),s}async function XJ(e,t){const n=t?.identityPoolId,r=r3(n),a=sZ({endpointResolver:d3({endpointOverride:t.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:e})).IdentityId}catch(i){throw Ha(i),new Be(i)}if(!s)throw new Be({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const Ng=new hr("CognitoCredentialsProvider"),f6=3e3*1e3;class ez{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){Ng.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){Ng.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const n=t.authenticated,{tokens:r}=t,{authConfig:a}=t;try{O0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=t,i=this.hasTokenChanged(r),c=await ZJ({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(jZ(r),this.credsForOIDCTokens(a.Cognito,r,c)):this.getGuestCredentials(c,a.Cognito)}async getGuestCredentials(t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return Ng.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=r3(n.identityPoolId),a=T5({endpointResolver:d3({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:t})}catch(i){throw Ha(i),new Be(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+f6;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:t};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new Be({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return Ng.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?JU(n.idToken.toString()):{},s=r3(t.identityPoolId),i=T5({endpointResolver:d3({endpointOverride:t.identityPoolEndpoint})});let c;try{c=await i({region:s},{IdentityId:r,Logins:a})}catch(u){throw Ha(u),new Be(u)}if(c?.Credentials?.AccessKeyId&&c?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+f6;const u={credentials:{accessKeyId:c.Credentials.AccessKeyId,secretAccessKey:c.Credentials.SecretKey,sessionToken:c.Credentials.SessionToken,expiration:c.Credentials.Expiration},identityId:r};return c.IdentityId&&(u.identityId=c.IdentityId,this._identityIdStore.storeIdentityId({id:c.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...u,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},u}else throw new Be({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){return!!t&&!!this._credentialsAndIdentityId?.associatedIdToken&&t.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const QJ=new ez(new QU(jp)),tz={configure(e,t){const n=tU(e),r=new mZ({sameSite:"lax"}),a=t?.ssr?r:jp,s=t?.ssr?new ez(new QU(r)):QJ;if(!n.Auth||t?.Auth){Zt.configure(n,t);return}M0.setAuthConfig(n.Auth),M0.setKeyValueStorage(a),Zt.configure(n,{...t,Auth:{tokenProvider:M0,credentialsProvider:s}})},getConfig(){return Zt.getConfig()}},JJ="https://github.com/remit-mail/reader/issues/new",eee=["internal","acme","tailscale","off"],tee=e=>typeof e=="string"&&eee.includes(e),qp=()=>{const e=globalThis.__REMIT_CONFIG__??{};return{apiUrl:e.apiUrl??"/api",appOrigin:e.appOrigin??"",betterAuthEnabled:e.betterAuthEnabled??!1,cognito:{userPoolId:e.cognito?.userPoolId??"",clientId:e.cognito?.clientId??"",domain:e.cognito?.domain??"",region:e.cognito?.region??""},rum:{appMonitorId:e.rum?.appMonitorId??"",identityPoolId:e.rum?.identityPoolId??"",region:e.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:e.mailboxPollIntervalSeconds!=null?String(e.mailboxPollIntervalSeconds):void 0,disableDevtools:e.disableDevtools??!1,tlsMode:tee(e.tlsMode)?e.tlsMode:"off",issuesUrl:e.issuesUrl??JJ}},nz=()=>{const e=qp(),{userPoolId:t,clientId:n,domain:r,region:a}=e.cognito;return!t||!n?null:{userPoolId:t,userPoolClientId:n,domain:r,region:a,appOrigin:e.appOrigin}},Rv=()=>nz()!==null,rz=()=>{const e=nz();if(!e){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:n,domain:r,appOrigin:a}=e;tz.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:n,loginWith:r?{oauth:{domain:r,scopes:["openid","email","profile"],redirectSignIn:a?[a]:[],redirectSignOut:a?[a]:[],responseType:"code"}}:void 0}}})};var nee={};const L0=Object.create(null),eh=e=>nee||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?L0:globalThis),Fi=new Proxy(L0,{get(e,t){return eh()[t]??L0[t]},has(e,t){return t in eh()||t in L0},set(e,t,n){const r=eh(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=eh(!0);return delete n[t],!0},ownKeys(){const e=eh(!0);return Object.keys(e)}});Fi.NODE_ENV;var U0=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};const ree=47;function az(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===ree;)t--;return t===e.length?e:e.slice(0,t)}function aee(e){try{return(az(new URL(e).pathname)||"/")!=="/"}catch{throw new U0(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function see(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new U0(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof U0?t:new U0(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function h6(e,t="/api/auth"){if(see(e),aee(e))return e;const n=az(e);return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function oee(e,t,n,r,a){{const s=Fi.BETTER_AUTH_URL||Fi.NEXT_PUBLIC_BETTER_AUTH_URL||Fi.PUBLIC_BETTER_AUTH_URL||Fi.NUXT_PUBLIC_BETTER_AUTH_URL||Fi.NUXT_PUBLIC_AUTH_URL||(Fi.BASE_URL!=="/"?Fi.BASE_URL:void 0);if(s)return h6(s,t)}if(typeof window<"u"&&window.location)return h6(window.location.origin,t)}const iee={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},lee=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,p6={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},cee=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function uee(e){return e instanceof Date&&!isNaN(e.getTime())}function dee(e){const t=cee.exec(e);if(!t)return null;const[,n,r,a,s,i,c,u,f,h,m]=t,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(i,10),parseInt(c,10),u?parseInt(u.padEnd(3,"0"),10):0));if(f){const y=(parseInt(h,10)*60+parseInt(m,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return uee(g)?g:null}function fee(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=t;if(typeof e!="string")return e;const i=e.trim(),c=i.toLowerCase();if(c.length<=9&&c in p6)return p6[c];if(!lee.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(iee).some(([u,f])=>{const h=f.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${u} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(f,h)=>{if(f==="__proto__"||f==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=dee(h);if(m)return m}return a?a(f,h):h})}catch(u){if(n)throw u;return e}}function hee(e,t={strict:!0}){return fee(e,t)}const pee=["javascript:","data:","vbscript:"];function mee(e){let t;try{t=new URL(e)}catch{return!0}return!pee.includes(t.protocol)}const gee={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&mee(e.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let is=[],$i=0;const z0=4,vee=globalThis.nanostoresGlobal||={epoch:0};let yee=()=>{for($i=0;$i<is.length;$i+=z0)is[$i](is[$i+1].value,is[$i+2],is[$i+3]);is.length=0};const sz=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let s=$i+z0;s<is.length;)is[s]===r?is.splice(s,z0):s+=z0;let a=t.indexOf(r);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(r,a){vee.epoch++;let s=!is.length&&!0;for(let i of t)is.push(i,n,r,a);s&&yee()},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:e};return n},bee=2,See=5,Mg=6,Pg=10;let oz=(e,t,n,r)=>(e.events=e.events||{},e.events[n+Pg]||(e.events[n+Pg]=r(a=>{e.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],s=a.indexOf(t);a.splice(s,1),a.length||(delete e.events[n],e.events[n+Pg](),delete e.events[n+Pg])}),wee=(e,t)=>oz(e,t,bee,n=>{let r=e.set,a=e.setKey;return e.setKey&&(e.setKey=(s,i)=>{let c;if(n({abort:()=>{c=!0},changed:s,newValue:{...e.value,[s]:i}}),!c)return a(s,i)}),e.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{e.set=r,e.setKey=a}});const iz=1e3;let xee=(e,t)=>oz(e,r=>{let a=t(r);a&&e.events[Mg].push(a)},See,r=>{let a=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),a(...i));let s=e.off;return e.events[Mg]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[Mg])i();e.events[Mg]=[]}},iz)},()=>{e.listen=a,e.off=s}});function Cee(e,t,n){let r=new Set(t);return e.listen((a,s,i)=>{(i===void 0?t.some(c=>a[c]!==s[c]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function m6(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function d1(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!d1(e[n],t[n]))return!1;return!0}if(m6(e)&&m6(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n)if(!(a in t)||!d1(e[a],t[a]))return!1;return!0}return!1}function Eee(e,t){return wee(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}const f3=Symbol.for("better-auth:auth-query");function _ee(e){return f3 in e&&e[f3]===!0}function kee(e){const t=sz(e);return Object.defineProperty(t,f3,{value:!0}),t}const tw=Symbol.for("better-auth:broadcast-channel"),Aee=()=>Math.floor(Date.now()/1e3);var Iee=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Aee()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function nw(e="better-auth.message"){return globalThis[tw]||(globalThis[tw]=new Iee(e)),globalThis[tw]}const rw=Symbol.for("better-auth:focus-manager");var Tee=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function g6(){return globalThis[rw]||(globalThis[rw]=new Tee),globalThis[rw]}const aw=Symbol.for("better-auth:online-manager");var Ree=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function sw(){return globalThis[aw]||(globalThis[aw]=new Ree),globalThis[aw]}const ow=()=>Math.floor(Date.now()/1e3),Oee=5;function Nee(e){const{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=e,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,c=a.sessionOptions?.refetchWhenOffline??!1,u={isInitialized:!1,lastSessionRequest:0},f=()=>c||sw().isOnline,h=A=>{if(f()){if(A?.event==="storage"){t();return}if(A?.event==="poll"){u.lastSessionRequest=ow(),t();return}if(A?.event==="visibilitychange"){if(ow()-u.lastSessionRequest<Oee)return;u.lastSessionRequest=ow(),t();return}t()}},m=A=>{nw().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(u.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{u.unsubscribeBroadcast=nw().subscribe(()=>{h({event:"storage"})})},w=()=>{i&&(u.unsubscribeFocus=g6().subscribe(()=>{h({event:"visibilitychange"})}))},b=()=>{u.unsubscribeOnline=sw().subscribe(A=>{A&&h({event:"visibilitychange"})})},x=()=>{u.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{u.isInitialized||(u.isInitialized=!0,g(),y(),w(),b(),x(),u.cleanupBroadcastSetup=nw().setup(),u.cleanupFocusSetup=g6().setup(),u.cleanupOnlineSetup=sw().setup())},cleanup:()=>{u.isInitialized&&(u.pollInterval&&(clearInterval(u.pollInterval),u.pollInterval=void 0),u.unsubscribeBroadcast&&(u.unsubscribeBroadcast(),u.unsubscribeBroadcast=void 0),u.unsubscribeFocus&&(u.unsubscribeFocus(),u.unsubscribeFocus=void 0),u.unsubscribeOnline&&(u.unsubscribeOnline(),u.unsubscribeOnline=void 0),u.unsubscribeSignal&&(u.unsubscribeSignal(),u.unsubscribeSignal=void 0),u.cleanupBroadcastSetup&&(u.cleanupBroadcastSetup(),u.cleanupBroadcastSetup=void 0),u.cleanupFocusSetup&&(u.cleanupFocusSetup(),u.cleanupFocusSetup=void 0),u.cleanupOnlineSetup&&(u.cleanupOnlineSetup(),u.cleanupOnlineSetup=void 0),u.isInitialized=!1,u.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const Mee=()=>typeof window>"u",Pee=iz;function Dee(e,t){if(typeof window>"u")return;const n=e.get();n.data!==null||t===null||e.set({...n,data:t,error:null,isPending:!1})}function v6(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}function Lee(e){return!e||e.session===null&&e.user===null?null:e}function Uee(e,t){return d1(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function zee(e,t){const n=sz(!1);let r,a=0,s=0;n.listen(()=>{s++,a=0});const i=y=>h(y),c=kee({data:null,error:null,isPending:!0,isRefetching:!1,refetch:i});Eee(c,Uee);const u=async(y,w)=>{const b=c.value;if(c.set({...b,isPending:b.data===null,isRefetching:!0,error:null,refetch:i}),y.aborted)return"aborted";try{const x=await e("/get-session",{method:"GET",query:w?.query,signal:y});if(y.aborted)return"aborted";let{data:E,error:k}=v6(x),A="fresh";if(E?.needsRefresh)try{const T=await e("/get-session",{method:"POST",signal:y});if(y.aborted)return"aborted";({data:E,error:k}=v6(T))}catch{if(y.aborted)return"aborted";A="stale"}if(k){const T=c.value,M=k?.status===401;return c.set({data:M?null:T.data,error:k,isPending:!1,isRefetching:!1,refetch:i}),"failed"}const R=Lee(E),P=c.value,O=P.data!=null&&R!=null&&d1(P.data,R)?P.data:R;return c.set({data:O,error:null,isPending:!1,isRefetching:!1,refetch:i}),A}catch(x){if(y.aborted)return"aborted";const E=c.value;return c.set({data:E.data,error:x,isPending:!1,isRefetching:!1,refetch:i}),"failed"}},f=()=>{const y=c.value.data?.session?.expiresAt,w=y instanceof Date?y.getTime():Number.POSITIVE_INFINITY;return Math.min(Date.now()+Pee,w)},h=y=>{a=0,r?.cancel();const w=new AbortController,b={cancel:()=>w.abort(),promise:Promise.resolve().then(()=>w.signal.aborted?"aborted":u(w.signal,y)),revision:s};r=b;const x=E=>{r===b&&(r=void 0,E==="fresh"&&b.revision===s&&(a=f()))};return b.promise.then(x,()=>x("failed")),b.promise.then(()=>{})},m=()=>r?.revision===s?r.promise.then(()=>{}):Date.now()<a?Promise.resolve():h();let g=()=>{};return xee(c,()=>{let y;Mee()||(y=setTimeout(()=>{m()},0));const w=Nee({fetchSession:h,shouldPollSession:()=>c.value.data!=null,sessionSignal:n,options:t});return w.init(),g=w.broadcastSessionUpdate,()=>{y&&clearTimeout(y),w.cleanup()}}),{session:c,$sessionSignal:n,broadcastSessionUpdate:y=>g(y)}}function iw(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function h3(e,t,n=".",r){if(!iw(t))return h3(e,{},n,r);const a={...t};for(const s of Object.keys(e)){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:iw(i)&&iw(a[s])?a[s]=h3(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function jee(e){return(...t)=>t.reduce((n,r)=>h3(n,r,"",e),{})}const Fee=jee();var $ee=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}};const Bee=async(e,t)=>{let n=t||{};const r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(const h of t?.plugins||[]){var a,s,i,c,u;if(h.init){var f;const m=await((f=h.init)===null||f===void 0?void 0:f.call(h,e.toString(),n));n=m.options||n,e=m.url}r.onRequest.push((a=h.hooks)===null||a===void 0?void 0:a.onRequest),r.onResponse.push((s=h.hooks)===null||s===void 0?void 0:s.onResponse),r.onSuccess.push((i=h.hooks)===null||i===void 0?void 0:i.onSuccess),r.onError.push((c=h.hooks)===null||c===void 0?void 0:c.onError),r.onRetry.push((u=h.hooks)===null||u===void 0?void 0:u.onRetry)}return{url:e,options:n,hooks:r}};var y6=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Hee=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function qee(e){if(typeof e=="number")return new y6({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new y6(e);case"exponential":return new Hee(e);default:throw new Error("Invalid retry strategy")}}const Vee=["get","post","put","patch","delete"];function Fk(e){if(!e.startsWith("@"))return{method:void 0,path:e};const t=e.indexOf("/"),n=e.slice(1,t===-1?void 0:t);return Vee.includes(n)?{method:n,path:t===-1?e:e.slice(t+1)}:{method:void 0,path:e}}const Wee=e=>e==="."||e==="..",Gee=e=>e.split(":").map(t=>encodeURIComponent(t)).join(":");function Kee(e,t){const n=t.get(e);if(n===void 0)return Gee(e);if(Wee(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function Yee(e,t){const{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""};let s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";const{path:i}=Fk(e);i!==e&&(e=`/${i}`),s.endsWith("/")||(s+="/");let[c,u]=e.replace(s,"").split("?");const f=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{})){if(y==null)continue;let w;if(typeof y=="string")w=y;else if(Array.isArray(y)){for(const b of y)f.append(g,b);continue}else w=JSON.stringify(y);f.set(g,w)}const h=new Map;if(r)if(Array.isArray(r)){const g=c.split("/").filter(y=>y.startsWith(":"));for(const[y,w]of g.entries()){const b=r[y];h.set(w,String(b))}}else for(const[g,y]of Object.entries(r))h.set(`:${g}`,String(y));c=c.split("/").map(g=>Kee(g,h)).join("/"),c=c.replace(/^\/+/,"");let m=f.toString();return m=m.length>0?`?${m}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${c}${m}`,s):`${s}${c}${m}`}const Zee=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,a]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const[r,a]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!a)return t;t.authorization=`${r??""} ${a}`}}return t},Xee=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Qee(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return Xee.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function Jee(e){try{return JSON.parse(e),!0}catch{return!1}}function lz(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function b6(e){try{return JSON.parse(e)}catch{return e}}function S6(e){return typeof e=="function"}function ete(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&S6(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&S6(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function cz(...e){const t={};for(const n of e)if(n)if(n instanceof Headers)n.forEach((r,a)=>{t[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(t[a]=s)}return t}async function tte(e){const t=new Headers(cz(e?.headers,await Zee(e)));if(!t.has("content-type")){const n=nte(e?.body);n&&t.set("content-type",n)}return t}function nte(e){return lz(e)?"application/json":null}function rte(e){const t=e.get("content-type");return t?t.split(";")[0].trim().toLowerCase():null}function ate(e,t){const{body:n}=e;return n?!lz(n)||typeof n=="string"?n:rte(t)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function ste(e,t){if(t?.method)return t.method.toUpperCase();const{method:n}=Fk(e);return n?n.toUpperCase():t?.body?"POST":"GET"}function ote(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var ite=class uz extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,uz.prototype)}};async function Ah(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new ite(n.issues);return n.value}function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}function lte(e,t){if(tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cte(e){var t=lte(e,"string");return tp(t)=="symbol"?t:t+""}function ute(e,t,n){return(t=cte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w6(Object(n),!0).forEach(function(r){ute(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const p3=async(e,t)=>{var n,r,a;const{hooks:s,url:i,options:c}=await Bee(e,t),u=ete(c),f=new AbortController,h=(n=c.signal)!==null&&n!==void 0?n:f.signal,m=Yee(i,c),g=await tte(c),y=ate(c,g),w=ste(i,c),b=Mt(Mt({},c),{},{url:m,headers:g,body:y,method:w,signal:h});for(const B of s.onRequest)if(B){const G=await B(b);typeof G=="object"&&G!==null&&Object.assign(b,G)}("pipeTo"in b&&typeof b.pipeTo=="function"||typeof(t==null||(r=t.body)===null||r===void 0?void 0:r.pipe)=="function")&&("duplex"in b||(b.duplex="half"));const{clearTimeout:x}=ote(c,f);let E=await u(b.url,b);x();const k={response:E,request:b};for(const B of s.onResponse)if(B){var A;const G=await B(Mt(Mt({},k),{},{response:!(t==null||(A=t.hookOptions)===null||A===void 0)&&A.cloneResponse?E.clone():E}));G instanceof Response?E=G:typeof G=="object"&&G!==null&&(E=G.response)}if(E.ok){if(b.method==="HEAD")return{data:"",error:null};const B=Qee(E),G={data:null,response:E,request:b};if(B==="json"||B==="text"){var R;const ie=await E.text();G.data=await((R=b.jsonParser)!==null&&R!==void 0?R:b6)(ie)}else G.data=await E[B]();b?.output&&b.output&&!b.disableValidation&&(G.data=await Ah(b.output,G.data));for(const ie of s.onSuccess)if(ie){var P;await ie(Mt(Mt({},G),{},{response:!(t==null||(P=t.hookOptions)===null||P===void 0)&&P.cloneResponse?E.clone():E}))}return t?.throw?G.data:{data:G.data,error:null}}const O=(a=t?.jsonParser)!==null&&a!==void 0?a:b6,T=await E.text(),M=Jee(T),z=M?await O(T):null,q={response:E,responseText:T,request:b,error:Mt(Mt({},z),{},{status:E.status,statusText:E.statusText})};for(const B of s.onError)if(B){var U;await B(Mt(Mt({},q),{},{response:!(t==null||(U=t.hookOptions)===null||U===void 0)&&U.cloneResponse?E.clone():E}))}if(t?.retry){var L;const B=qee(t.retry),G=(L=t.retryAttempt)!==null&&L!==void 0?L:0;if(await B.shouldAttemptRetry(G,E)){for(const $ of s.onRetry)$&&await $(k);const ie=B.getDelay(G);return await new Promise($=>setTimeout($,ie)),await p3(e,Mt(Mt({},t),{},{retryAttempt:G+1}))}}if(t?.throw)throw new $ee(E.status,E.statusText,M?z:T);return{data:null,error:Mt(Mt({},z),{},{status:E.status,statusText:E.statusText})}},dte=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r;let a=Mt(Mt({},n),e.query!==void 0&&{query:Mt(Mt({},e.query),n?.query)});const s=((r=e.plugins)===null||r===void 0||(r=r.find(f=>{var h;return!((h=f.schema)===null||h===void 0)&&h.config?t.startsWith(f.schema.config.baseURL||"")||t.startsWith(f.schema.config.prefix||""):!1}))===null||r===void 0?void 0:r.schema)||e.schema;if(s){var i,c;let f=t;!((i=s.config)===null||i===void 0)&&i.prefix&&f.startsWith(s.config.prefix)&&(f=f.replace(s.config.prefix,""),s.config.baseURL&&(t=t.replace(s.config.prefix,s.config.baseURL))),!((c=s.config)===null||c===void 0)&&c.baseURL&&f.startsWith(s.config.baseURL)&&(f=f.replace(s.config.baseURL,"")),f.startsWith("/")&&f.charAt(1)==="@"&&(f=f.substring(1));const h=s.schema[f];if(h){var u;const{method:m,path:g}=Fk(f);m&&(t=t.slice(0,t.length-f.length)+g);let y=n?.headers;if(h.headers&&!n?.disableValidation){const b={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((k,A)=>{b[A.toLowerCase()]=k});else if(typeof n.headers=="object")for(const[k,A]of Object.entries(n.headers))A!=null&&(b[k.toLowerCase()]=A)}const x=await Ah(h.headers,b),E={};for(const[k,A]of Object.entries(x))E[k.toLowerCase()]=A;y=E}const w=(u=h.method)!==null&&u!==void 0?u:m;if(a=Mt(Mt(Mt(Mt({},a),w!==void 0&&{method:w}),h.output!==void 0&&{output:h.output}),y!==void 0&&{headers:y}),!n?.disableValidation){if(h.query&&(a.query=await Ah(h.query,n?.query),a.query!==null&&typeof a.query=="object")){const b=Mt({},e.query);for(const x of Object.keys(b))n?.query&&Object.prototype.hasOwnProperty.call(n.query,x)&&(b[x]=n.query[x]);a.query=Mt(Mt({},b),a.query)}a=Mt(Mt({},a),{},{body:h.input?await Ah(h.input,n?.body):n?.body,params:h.params?await Ah(h.params,n?.params):n?.params})}return{url:t,options:a}}}return Mt({url:t},(n!==void 0||e.query!==void 0)&&{options:a})}}),fte=e=>{async function t(n,r){const a=Mt(Mt(Mt({},e),r),{},{headers:cz(e?.headers,r?.headers),plugins:[...e?.plugins||[],dte(e||{}),...r?.plugins||[]]});if(e?.catchAllError)try{return await p3(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await p3(n,a)}return t};var Fl={};const hte=e=>{if(typeof process>"u")return;const t="/api/auth";if(Fl.NEXT_PUBLIC_AUTH_URL)return Fl.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(Fl.NEXTAUTH_URL)try{return Fl.NEXTAUTH_URL}catch{}if(Fl.VERCEL_URL)try{const n=Fl.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${Fl.VERCEL_URL}`).origin}${t}`}catch{}}},pte=e=>e==="/sign-out"||e==="/update-user"||e==="/update-session"||e==="/sign-up/email"||e==="/sign-in/email"||e==="/delete-user"||e==="/verify-email"||e==="/revoke-sessions"||e==="/revoke-session"||e==="/revoke-other-sessions"||e==="/change-email"||e==="/change-password",mte=(e,t)=>{const n="credentials"in Request.prototype,r=oee(e?.baseURL,e?.basePath)??hte()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:u,onResponse:f,...h}={},m=fte({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(T){return T?hee(T,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],gee,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:w}=zee(m,e);let b=!1;const x=T=>{b||T===null||(b=!0,Dee(y,T))},E=[];let k={};const A={$sessionSignal:g,session:y},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},P=[{signal:"$sessionSignal",matcher:pte,callback(T){T==="/sign-out"?w("signout"):(T==="/update-user"||T==="/update-session")&&w("updateUser")}}];for(const T of E)T.getAtoms&&Object.assign(A,T.getAtoms?.(m)),T.pathMethods&&Object.assign(R,T.pathMethods),T.atomListeners&&P.push(...T.atomListeners);const O={notify:T=>{A[T].set(!A[T].get())},listen:(T,M)=>{A[T].subscribe(M)},atoms:A};for(const T of E)T.getActions&&(k=Fee(T.getActions?.(m,O,e)??{},k));return{get baseURL(){return r},pluginsActions:k,pluginsAtoms:A,pluginPathMethods:R,atomListeners:P,hydrateSession:x,$sessionSignal:g,$fetch:m,$store:O}};function gte(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function vte(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yte=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),bte=/['\u2019]/g;function Ste(e){return e.replace(bte,"").match(yte)??[]}function wte(e){return Ste(e).map(t=>t.toLowerCase()).join("-")}function xte(e,t,n){const r=t[e],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function Cte(e,t,n,r,a){function s(i=[]){return new Proxy(function(){},{get(c,u){if(typeof u!="string"||u==="then"||u==="catch"||u==="finally")return;const f=[...i,u];let h=e;for(const m of f)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||gte(h)?h:s(f)},apply:async(c,u,f)=>{const h="/"+i.map(wte).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:w,...b}=m,x={...g,...w},E=xte(h,n,m);return await t(h,{...x,body:E==="GET"?void 0:{...b,...x?.body||{}},query:y||x?.query,method:E,async onSuccess(k){if(await x?.onSuccess?.(k),!a||x.disableSignal)return;const A=a.filter(P=>P.matcher(h));if(!A.length)return;const R=new Set;for(const P of A){const O=r[P.signal];if(!O)return;if(R.has(P.signal))continue;R.add(P.signal);const T=O.get();setTimeout(()=>{O.set(!T)},10),P.callback?.(h)}}})}})}return s()}var lw={exports:{}},Je={};var x6;function Ete(){if(x6)return Je;x6=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function y(j){return j===null||typeof j!="object"?null:(j=g&&j[g]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function E(j,Y,Z){this.props=j,this.context=Y,this.refs=x,this.updater=Z||w}E.prototype.isReactComponent={},E.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(j,Y,Z){this.props=j,this.context=Y,this.refs=x,this.updater=Z||w}var R=A.prototype=new k;R.constructor=A,b(R,E.prototype),R.isPureReactComponent=!0;var P=Array.isArray;function O(){}var T={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function z(j,Y,Z){var Q=Z.ref;return{$$typeof:e,type:j,key:Y,ref:Q!==void 0?Q:null,props:Z}}function q(j,Y){return z(j.type,Y,j.props)}function U(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function L(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return Y[Z]})}var B=/\/+/g;function G(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?L(""+j.key):Y.toString(36)}function ie(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(O,O):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function $(j,Y,Z,Q,se){var le=typeof j;(le==="undefined"||le==="boolean")&&(j=null);var me=!1;if(j===null)me=!0;else switch(le){case"bigint":case"string":case"number":me=!0;break;case"object":switch(j.$$typeof){case e:case t:me=!0;break;case h:return me=j._init,$(me(j._payload),Y,Z,Q,se)}}if(me)return se=se(j),me=Q===""?"."+G(j,0):Q,P(se)?(Z="",me!=null&&(Z=me.replace(B,"$&/")+"/"),$(se,Y,Z,"",function(Le){return Le})):se!=null&&(U(se)&&(se=q(se,Z+(se.key==null||j&&j.key===se.key?"":(""+se.key).replace(B,"$&/")+"/")+me)),Y.push(se)),1;me=0;var te=Q===""?".":Q+":";if(P(j))for(var ve=0;ve<j.length;ve++)Q=j[ve],le=te+G(Q,ve),me+=$(Q,Y,Z,le,se);else if(ve=y(j),typeof ve=="function")for(j=ve.call(j),ve=0;!(Q=j.next()).done;)Q=Q.value,le=te+G(Q,ve++),me+=$(Q,Y,Z,le,se);else if(le==="object"){if(typeof j.then=="function")return $(ie(j),Y,Z,Q,se);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return me}function X(j,Y,Z){if(j==null)return j;var Q=[],se=0;return $(j,Q,"","",function(le){return Y.call(Z,le,se++)}),Q}function re(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var pe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},_e={map:X,forEach:function(j,Y,Z){X(j,function(){Y.apply(this,arguments)},Z)},count:function(j){var Y=0;return X(j,function(){Y++}),Y},toArray:function(j){return X(j,function(Y){return Y})||[]},only:function(j){if(!U(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Je.Activity=m,Je.Children=_e,Je.Component=E,Je.Fragment=n,Je.Profiler=a,Je.PureComponent=A,Je.StrictMode=r,Je.Suspense=u,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Je.__COMPILER_RUNTIME={__proto__:null,c:function(j){return T.H.useMemoCache(j)}},Je.cache=function(j){return function(){return j.apply(null,arguments)}},Je.cacheSignal=function(){return null},Je.cloneElement=function(j,Y,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var Q=b({},j.props),se=j.key;if(Y!=null)for(le in Y.key!==void 0&&(se=""+Y.key),Y)!M.call(Y,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&Y.ref===void 0||(Q[le]=Y[le]);var le=arguments.length-2;if(le===1)Q.children=Z;else if(1<le){for(var me=Array(le),te=0;te<le;te++)me[te]=arguments[te+2];Q.children=me}return z(j.type,se,Q)},Je.createContext=function(j){return j={$$typeof:i,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},Je.createElement=function(j,Y,Z){var Q,se={},le=null;if(Y!=null)for(Q in Y.key!==void 0&&(le=""+Y.key),Y)M.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(se[Q]=Y[Q]);var me=arguments.length-2;if(me===1)se.children=Z;else if(1<me){for(var te=Array(me),ve=0;ve<me;ve++)te[ve]=arguments[ve+2];se.children=te}if(j&&j.defaultProps)for(Q in me=j.defaultProps,me)se[Q]===void 0&&(se[Q]=me[Q]);return z(j,le,se)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(j){return{$$typeof:c,render:j}},Je.isValidElement=U,Je.lazy=function(j){return{$$typeof:h,_payload:{_status:-1,_result:j},_init:re}},Je.memo=function(j,Y){return{$$typeof:f,type:j,compare:Y===void 0?null:Y}},Je.startTransition=function(j){var Y=T.T,Z={};T.T=Z;try{var Q=j(),se=T.S;se!==null&&se(Z,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(O,pe)}catch(le){pe(le)}finally{Y!==null&&Z.types!==null&&(Y.types=Z.types),T.T=Y}},Je.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Je.use=function(j){return T.H.use(j)},Je.useActionState=function(j,Y,Z){return T.H.useActionState(j,Y,Z)},Je.useCallback=function(j,Y){return T.H.useCallback(j,Y)},Je.useContext=function(j){return T.H.useContext(j)},Je.useDebugValue=function(){},Je.useDeferredValue=function(j,Y){return T.H.useDeferredValue(j,Y)},Je.useEffect=function(j,Y){return T.H.useEffect(j,Y)},Je.useEffectEvent=function(j){return T.H.useEffectEvent(j)},Je.useId=function(){return T.H.useId()},Je.useImperativeHandle=function(j,Y,Z){return T.H.useImperativeHandle(j,Y,Z)},Je.useInsertionEffect=function(j,Y){return T.H.useInsertionEffect(j,Y)},Je.useLayoutEffect=function(j,Y){return T.H.useLayoutEffect(j,Y)},Je.useMemo=function(j,Y){return T.H.useMemo(j,Y)},Je.useOptimistic=function(j,Y){return T.H.useOptimistic(j,Y)},Je.useReducer=function(j,Y,Z){return T.H.useReducer(j,Y,Z)},Je.useRef=function(j){return T.H.useRef(j)},Je.useState=function(j){return T.H.useState(j)},Je.useSyncExternalStore=function(j,Y,Z){return T.H.useSyncExternalStore(j,Y,Z)},Je.useTransition=function(){return T.H.useTransition()},Je.version="19.2.7",Je}var C6;function Vp(){return C6||(C6=1,lw.exports=Ete()),lw.exports}var _=Vp();const F=Fd(_),dz=ZL({__proto__:null,default:F},[_]);function _te(e,t={}){const n=_.useRef(e.get()),{keys:r,deps:a=[e,r]}=t,s=_.useCallback(c=>{const u=f=>{n.current!==f&&(n.current=f,c())};return u(e.value),r?.length?Cee(e,r,u):e.listen(u)},a),i=()=>n.current;return _.useSyncExternalStore(s,i,_ee(e)?()=>e.init:i)}function kte(e){return`use${vte(e)}`}function Ate(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,hydrateSession:a,$fetch:s,$store:i,atomListeners:c}=mte(e),u={};for(const[f,h]of Object.entries(r))u[kte(f)]=()=>_te(h);return Cte({...n,...u,hydrateSession:a,$fetch:s,$store:i},s,t,r,c)}const Ite=10,cd=[],Tte=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function Rte(e){const t=typeof e=="string"?e:e instanceof URL?e.href:e.url;try{return new URL(t,window.location.origin).pathname}catch{return t.split(/[?#]/)[0]}}function Ote(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function Nte(e){for(const t of Tte){const n=e.headers.get(t);if(n)return n}}function Mte(e){cd.push(e),cd.length>Ite&&cd.shift()}function E6(e){const{input:t,init:n,response:r,durationMs:a}=e;Mte({method:Ote(t,n),path:Rte(t),status:r?.status??0,durationMs:Math.round(a),correlationId:r?Nte(r):void 0,timestamp:new Date().toISOString()})}function Pte(){return cd.slice()}function Dte(){for(let e=cd.length-1;e>=0;e--){const t=cd[e];if(t.status===0||t.status>=400)return t}}class $k extends Error{constructor(t){super(t instanceof Error&&t.message?t.message:"The request could not be completed.",{cause:t}),this.name="NetworkError"}}const Lte=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",fz=async(e,t)=>{const n=performance.now();try{const r=await fetch(e,t);return E6({input:e,init:t,response:r,durationMs:performance.now()-n}),r}catch(r){throw Lte(r)?r:(E6({input:e,init:t,durationMs:performance.now()-n}),new $k(r))}},Ov=()=>qp().betterAuthEnabled,Ute="EMAIL_PASSWORD_SIGN_UP_DISABLED",zte=e=>typeof e=="object"&&e!==null&&e.code===Ute,np=Ate(),jte=60,Fte=30,m3="remit.better-auth.token",hz=()=>{try{return globalThis.sessionStorage??null}catch{return null}},$te=()=>{const e=hz()?.getItem(m3);if(!e)return null;try{const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.value=="string"&&typeof t.expiresAt=="number")return{value:t.value,expiresAt:t.expiresAt}}catch{}return null},pz=e=>{const t=hz();if(t)try{if(!e){t.removeItem(m3);return}t.setItem(m3,JSON.stringify(e))}catch{}};let Kl=null,f1=0;const Bte=()=>Kl||(Kl=$te(),Kl),tc=()=>Math.floor(Date.now()/1e3),Hte=e=>{const[,t]=e.split(".");if(!t)return tc();try{const n=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:tc()}catch{return tc()}};class h1 extends Error{status;constructor(t,n){super(t),this.name="AuthTokenError",this.status=n}}const qte=async()=>{const e=await fz("/api/auth/token",{credentials:"include"});if(!e.ok)throw new h1(`Could not mint a session token: ${e.status} ${e.statusText}`,e.status);const t=await e.json();if(t&&typeof t=="object"&&"token"in t&&typeof t.token=="string")return t.token;throw new h1("The token endpoint returned no token")};let th=null;const Vte=()=>th||(th=qte().then(e=>(Kl={value:e,expiresAt:Hte(e)},pz(Kl),f1=0,e)).finally(()=>{th=null}),th),Wte=e=>e.expiresAt-jte>tc(),_6=e=>e.expiresAt>tc(),Gte=e=>e instanceof $k?!0:e instanceof h1?e.status===408||e.status===429||(e.status??0)>=500:!1,Kte=e=>e instanceof h1&&(e.status===401||e.status===403),Yte=async()=>{const e=Bte();if(e&&Wte(e)||e&&_6(e)&&tc()<f1)return e.value;try{return await Vte()}catch(t){if(Kte(t))throw Bk(),t;if(e&&_6(e)&&Gte(t))return f1=tc()+Fte,e.value;throw t}},Bk=()=>{f1=0,pz(null),Kl=null};function mz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=mz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zte(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=mz(e))&&(r&&(r+=" "),r+=t);return r}var cw={exports:{}},Sr={};var k6;function Xte(){if(k6)return Sr;k6=1;var e=Vp();function t(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(u,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:u,containerInfo:f,implementation:h}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sr.createPortal=function(u,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(u,f,null,h)},Sr.flushSync=function(u){var f=i.T,h=r.p;try{if(i.T=null,r.p=2,u)return u()}finally{i.T=f,r.p=h,r.d.f()}},Sr.preconnect=function(u,f){typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(u,f))},Sr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Sr.preinit=function(u,f){if(typeof u=="string"&&f&&typeof f.as=="string"){var h=f.as,m=c(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(u,{crossOrigin:m,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Sr.preinitModule=function(u,f){if(typeof u=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=c(f.as,f.crossOrigin);r.d.M(u,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(u)},Sr.preload=function(u,f){if(typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=c(h,f.crossOrigin);r.d.L(u,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Sr.preloadModule=function(u,f){if(typeof u=="string")if(f){var h=c(f.as,f.crossOrigin);r.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(u)},Sr.requestFormReset=function(u){r.d.r(u)},Sr.unstable_batchedUpdates=function(u,f){return u(f)},Sr.useFormState=function(u,f,h){return i.H.useFormState(u,f,h)},Sr.useFormStatus=function(){return i.H.useHostTransitionStatus()},Sr.version="19.2.7",Sr}var A6;function gz(){if(A6)return cw.exports;A6=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),cw.exports=Xte(),cw.exports}var Qte=gz(),uw={exports:{}},dw={};var I6;function Jte(){if(I6)return dw;I6=1;var e=Vp();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function c(m,g){var y=g(),w=r({inst:{value:y,getSnapshot:g}}),b=w[0].inst,x=w[1];return s(function(){b.value=y,b.getSnapshot=g,u(b)&&x({inst:b})},[m,y,g]),a(function(){return u(b)&&x({inst:b}),m(function(){u(b)&&x({inst:b})})},[m]),i(y),y}function u(m){var g=m.getSnapshot;m=m.value;try{var y=g();return!n(m,y)}catch{return!0}}function f(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return dw.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,dw}var T6;function ene(){return T6||(T6=1,uw.exports=Jte()),uw.exports}const Hk=[{category:"personal",label:"Personal",tone:"accent",section:1},{category:"uncategorized",label:"Unclassified",tone:"neutral",section:7},{category:"transactional",label:"Transactional",tone:"positive",section:2},{category:"newsletter",label:"Newsletter",tone:"neutral",section:3},{category:"marketing",label:"Marketing",tone:"neutral",section:4},{category:"social",label:"Social",tone:"warning",section:5},{category:"automated",label:"Automated",tone:"neutral",section:6}],T8e=[...Hk].sort((e,t)=>e.section-t.section).map(e=>e.category),vz=e=>Object.fromEntries(Hk.map(t=>[t.category,e(t)])),tne=vz(e=>e.label),nne=vz(e=>e.tone),R8e=e=>!e||e==="personal"?null:tne[e];function rne(e){return Object.hasOwn(nne,e)}function O8e(e){return e==="all"||rne(e)}const N8e=[{id:"all",label:"All",tone:"neutral"},...Hk.map(e=>({id:e.category,label:e.label,tone:e.tone}))];const ane=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yz=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var sne={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const one=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...c},u)=>_.createElement("svg",{ref:u,...sne,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yz("lucide",a),...c},[...i.map(([f,h])=>_.createElement(f,h)),...Array.isArray(s)?s:[s]]));const Ot=(e,t)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(one,{ref:s,iconNode:t,className:yz(`lucide-${ane(e)}`,r),...a}));return n.displayName=`${e}`,n};const ine=Ot("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const bz=Ot("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const lne=Ot("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const cne=Ot("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);const Nv=Ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const une=Ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const dne=Ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Sz=Ot("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const fne=Ot("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const hne=Ot("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const pne=Ot("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const mne=Ot("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const gne=Ot("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const vne=Ot("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const yne=Ot("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const bne=Ot("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const wz=Ot("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const xz=Ot("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const rp=Ot("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Sne=Ot("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const qk=Ot("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const wne=Ot("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const xne=Ot("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Cne=Ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const Ene=Ot("Send",[["path",{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",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const _ne=Ot("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const kne=Ot("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Ane=Ot("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const pc=Ot("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Ine=Ot("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const Tne=Ot("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const $o=Ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vk="-",Rne=e=>{const t=Nne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const c=i.split(Vk);return c[0]===""&&c.length!==1&&c.shift(),Cz(c,t)||One(i)},getConflictingClassGroupIds:(i,c)=>{const u=n[i]||[];return c&&r[i]?[...u,...r[i]]:u}}},Cz=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Cz(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Vk);return t.validators.find(({validator:i})=>i(s))?.classGroupId},R6=/^\[(.+)\]$/,One=e=>{if(R6.test(e)){const t=R6.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Nne=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Pne(Object.entries(e.classGroups),n).forEach(([s,i])=>{g3(i,r,s,t)}),r},g3=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:O6(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(Mne(a)){g3(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{g3(i,O6(t,s),n,r)})})},O6=(e,t)=>{let n=e;return t.split(Vk).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mne=e=>e.isThemeGetter,Pne=(e,t)=>t?e.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,c])=>[t+i,c])):s);return[n,a]}):e,Dne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},Ez="!",Lne=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],s=t.length,i=c=>{const u=[];let f=0,h=0,m;for(let x=0;x<c.length;x++){let E=c[x];if(f===0){if(E===a&&(r||c.slice(x,x+s)===t)){u.push(c.slice(h,x)),h=x+s;continue}if(E==="/"){m=x;continue}}E==="["?f++:E==="]"&&f--}const g=u.length===0?c:c.substring(h),y=g.startsWith(Ez),w=y?g.substring(1):g,b=m&&m>h?m-h:void 0;return{modifiers:u,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:i}):i},Une=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},zne=e=>({cache:Dne(e.cacheSize),parseClassName:Lne(e),...Rne(e)}),jne=/\s+/,Fne=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(jne);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(f);let w=!!y,b=r(w?g.substring(0,y):g);if(!b){if(!w){c=f+(c.length>0?" "+c:c);continue}if(b=r(g),!b){c=f+(c.length>0?" "+c:c);continue}w=!1}const x=Une(h).join(":"),E=m?x+Ez:x,k=E+b;if(s.includes(k))continue;s.push(k);const A=a(b,w);for(let R=0;R<A.length;++R){const P=A[R];s.push(E+P)}c=f+(c.length>0?" "+c:c)}return c};function $ne(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_z(t))&&(r&&(r+=" "),r+=n);return r}const _z=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_z(e[r]))&&(n&&(n+=" "),n+=t);return n};function Bne(e,...t){let n,r,a,s=i;function i(u){const f=t.reduce((h,m)=>m(h),e());return n=zne(f),r=n.cache.get,a=n.cache.set,s=c,c(u)}function c(u){const f=r(u);if(f)return f;const h=Fne(u,n);return a(u,h),h}return function(){return s($ne.apply(null,arguments))}}const an=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kz=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hne=/^\d+\/\d+$/,qne=new Set(["px","full","screen"]),Vne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yne=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Co=e=>ud(e)||qne.has(e)||Hne.test(e),Di=e=>Yd(e,"length",rre),ud=e=>!!e&&!Number.isNaN(Number(e)),fw=e=>Yd(e,"number",ud),nh=e=>!!e&&Number.isInteger(Number(e)),Zne=e=>e.endsWith("%")&&ud(e.slice(0,-1)),ot=e=>kz.test(e),Li=e=>Vne.test(e),Xne=new Set(["length","size","percentage"]),Qne=e=>Yd(e,Xne,Az),Jne=e=>Yd(e,"position",Az),ere=new Set(["image","url"]),tre=e=>Yd(e,ere,sre),nre=e=>Yd(e,"",are),rh=()=>!0,Yd=(e,t,n)=>{const r=kz.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},rre=e=>Wne.test(e)&&!Gne.test(e),Az=()=>!1,are=e=>Kne.test(e),sre=e=>Yne.test(e),ore=()=>{const e=an("colors"),t=an("spacing"),n=an("blur"),r=an("brightness"),a=an("borderColor"),s=an("borderRadius"),i=an("borderSpacing"),c=an("borderWidth"),u=an("contrast"),f=an("grayscale"),h=an("hueRotate"),m=an("invert"),g=an("gap"),y=an("gradientColorStops"),w=an("gradientColorStopPositions"),b=an("inset"),x=an("margin"),E=an("opacity"),k=an("padding"),A=an("saturate"),R=an("scale"),P=an("sepia"),O=an("skew"),T=an("space"),M=an("translate"),z=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",ot,t],L=()=>[ot,t],B=()=>["",Co,Di],G=()=>["auto",ud,ot],ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",ot],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[ud,ot];return{cacheSize:500,separator:":",theme:{colors:[rh],spacing:[Co,Di],blur:["none","",Li,ot],brightness:j(),borderColor:[e],borderRadius:["none","","full",Li,ot],borderSpacing:L(),borderWidth:B(),contrast:j(),grayscale:pe(),hueRotate:j(),invert:pe(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[Zne,Di],inset:U(),margin:U(),opacity:j(),padding:L(),saturate:j(),scale:j(),sepia:pe(),skew:j(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ot]}],container:["container"],columns:[{columns:[Li]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ie(),ot]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",nh,ot]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ot]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",nh,ot]}],"grid-cols":[{"grid-cols":[rh]}],"col-start-end":[{col:["auto",{span:["full",nh,ot]},ot]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[rh]}],"row-start-end":[{row:["auto",{span:[nh,ot]},ot]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ot]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ot]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ot,t]}],"min-w":[{"min-w":[ot,t,"min","max","fit"]}],"max-w":[{"max-w":[ot,t,"none","full","min","max","fit","prose",{screen:[Li]},Li]}],h:[{h:[ot,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ot,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ot,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ot,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Li,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fw]}],"font-family":[{font:[rh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ot]}],"line-clamp":[{"line-clamp":["none",ud,fw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Co,ot]}],"list-image":[{"list-image":["none",ot]}],"list-style-type":[{list:["none","disc","decimal",ot]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Co,Di]}],"underline-offset":[{"underline-offset":["auto",Co,ot]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ot]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ot]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ie(),Jne]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tre]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Co,ot]}],"outline-w":[{outline:[Co,Di]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Co,Di]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Li,nre]}],"shadow-color":[{shadow:[rh]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Li,ot]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ot]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",ot]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",ot]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[nh,ot]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ot]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ot]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ot]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Co,Di,fw]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ire=Bne(ore);function Pe(...e){return ire(Zte(e))}const ah={action:null,nextPrefix:null,preventDefault:!1},lre={b:"goBrief",i:"goInbox",s:"goSent",f:"goFlagged",",":"goSettings"},cre={j:{action:"focusNext"},k:{action:"focusPrevious"},arrowdown:{action:"focusNext"},arrowup:{action:"focusPrevious"},home:{action:"focusFirst"},end:{action:"focusLast"},enter:{action:"openFocused"}," ":{action:"toggleSelect"},delete:{action:"delete"},backspace:{action:"delete"},u:{action:"toggleRead"},x:{action:"toggleSelect"},r:{action:"reply"},a:{action:"replyAll"},f:{action:"forward"},"#":{action:"delete"},s:{action:"toggleStar"},m:{action:"muteSender"},b:{action:"blockSender"},v:{action:"vipSender"},"!":{action:"markJunk"},i:{action:"toggleIntelligence"},d:{action:"toggleDensity"},"/":{action:"focusSearch"},c:{action:"compose"},"?":{action:"help"}};function ure(e,t){const n=e.key.toLowerCase(),r=e.metaKey||e.ctrlKey;if(e.inEditable)return{...ah,nextPrefix:t==="g"?null:t};if(e.onControl&&(n==="enter"||n===" "))return{...ah,nextPrefix:t==="g"?null:t};if(r&&n==="n")return{action:"compose",nextPrefix:null,preventDefault:!0};if(r&&n==="a")return{action:"selectAll",nextPrefix:null,preventDefault:!0};if(r)return{...ah,nextPrefix:t==="g"?null:t};if(n==="escape")return{action:"back",nextPrefix:null,preventDefault:!1};if(t==="g"){const i=lre[n===","?",":n]??null;return{action:i,nextPrefix:null,preventDefault:i!==null}}if(n==="g"&&!e.shiftKey)return{action:null,nextPrefix:"g",preventDefault:!0};if(e.shiftKey){const s=n==="j"||n==="arrowdown";if(s||(n==="k"||n==="arrowup"))return{action:s?"extendSelectDown":"extendSelectUp",nextPrefix:null,preventDefault:!0}}const a=cre[n];if(a){const s=a.requireShift===!0,i=n.length===1&&!/[a-z0-9]/.test(n);return!s&&e.shiftKey&&!i?ah:{action:a.action,nextPrefix:null,preventDefault:!0}}return ah}function dre(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}const fre="data-message-row",hre='button, a[href], summary, [role="button"], [role="menuitem"], [role="tab"], [role="switch"], [role="checkbox"]';function pre(e){if(!(e instanceof HTMLElement))return!1;const t=e.closest(hre);return t?!t.hasAttribute(fre):!1}const mre=["reply","replyAll","forward","delete","toggleStar","toggleRead","muteSender","blockSender","vipSender","markJunk"],gre=["focusNext","focusPrevious","focusFirst","focusLast","openFocused","toggleSelect","extendSelectDown","extendSelectUp","selectAll","toggleDensity"],Zn=(e,...t)=>({action:e,requires:t});Zn("help"),Zn("goBrief",{listIsNot:"brief"}),Zn("goFlagged",{listIsNot:"flagged"}),Zn("goInbox",{listIsNot:"inbox"}),Zn("goSent",{listIsNot:"sent"}),Zn("goSettings"),Zn("compose"),Zn("focusSearch"),Zn("toggleIntelligence"),[...gre.map(e=>Zn(e,"listVisible")),...mre.map(e=>Zn(e,"aimed")),Zn("back","selection")],Zn("focusNext","threadOpen",{not:"listVisible"}),Zn("focusPrevious","threadOpen",{not:"listVisible"}),Zn("reply","threadOpen"),Zn("replyAll","threadOpen"),Zn("forward","threadOpen"),Zn("back");function vre(e,t){const n=t.at(-1);return n?n.handles.includes(e)?{outcome:"act",target:{kind:"overlay",frame:n}}:{outcome:"contained",by:{kind:"overlay",frame:n}}:null}const yre="[data-escape-owner]";let xd=[],bre=0;const Sre=()=>++bre;function Iz(){const[e]=_.useState(Sre);return e}const wre=(e,t)=>e.depth-t.depth;function xre(){return[...xd].sort(wre).map(e=>({id:e.id,handles:Object.entries(e.run()).filter(([,t])=>t).map(([t])=>t)}))}function Cre(){let e;for(const t of xd)(!e||t.depth>e.depth)&&(e=t);return e}function M8e(e){return vre(e,xre())}function Ere(e){if(e.key==="Escape"){const t=document.activeElement;return t instanceof Element&&t.closest(yre)?null:"back"}return ure({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,inEditable:dre(e.target),onControl:pre(e.target)},null).action}function N6(e){const t=Cre();if(!t)return;const n=Ere(e);if(!n)return;const r=t.run()[n];r&&(e.preventDefault(),e.stopImmediatePropagation(),r())}function M6(e){const t=xd.length===0;if(xd=e,t!==(e.length===0)){if(e.length>0){window.addEventListener("keydown",N6,!0);return}window.removeEventListener("keydown",N6,!0)}}function Wk({id:e,open:t,answers:n={}}){const r=_.useRef(n);r.current=n;const a=Iz();_.useEffect(()=>{if(!t)return;const s={id:e,depth:a,run:()=>r.current};return M6([...xd,s]),()=>{M6(xd.filter(i=>i!==s))}},[e,t,a])}const Tz="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",Rz={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},Oz={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function Kt({variant:e="primary",size:t="md",icon:n,className:r,children:a,ref:s,...i}){return C.jsxs("button",{type:"button",ref:s,className:Pe(Tz,Rz[e],Oz[t],r),...i,children:[n,a]})}function P8e({variant:e="primary",size:t="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Pe(Tz,Rz[e],Oz[t],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const _re='a[href], button, input, select, textarea, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])';function kre(e){if(Number(e.getAttribute("tabindex")??0)<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||e.closest("[inert], [hidden], [aria-hidden='true']"))return!1;const t=getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function P6(e){const t=e.querySelectorAll('[role="dialog"][aria-modal="true"]');return[...(t[t.length-1]??e).querySelectorAll(_re)].filter(kre)}const v3=new Set;function Are(e){for(const t of v3)if(t>e)return!1;return!0}function Ire(e,t){return!(t instanceof HTMLElement)||t===document.body||t===document.documentElement?!1:!e.contains(t)}function Mv(e,t){const n=Iz();_.useEffect(()=>{if(t)return v3.add(n),()=>{v3.delete(n)}},[t,n]),_.useEffect(()=>{if(!t)return;const r=document.activeElement instanceof HTMLElement?document.activeElement:null,a=e.current;return a&&(P6(a)[0]??a).focus(),()=>{r?.isConnected&&r.focus()}},[t,e]),_.useEffect(()=>{if(!t)return;const r=a=>{if(a.key!=="Tab"||a.defaultPrevented||!Are(n))return;const s=e.current;if(!s)return;const i=document.activeElement;if(Ire(s,i))return;const c=P6(s),u=c[0],f=c.at(-1);if(!u||!f){a.preventDefault(),s.focus();return}const h=i instanceof HTMLElement&&c.includes(i);if(a.shiftKey){(!h||i===u)&&(a.preventDefault(),f.focus());return}(!h||i===f)&&(a.preventDefault(),u.focus())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t,e,n])}const Tre=({label:e,onDismiss:t,className:n})=>C.jsx("button",{type:"button","aria-label":e,tabIndex:-1,onClick:t,className:Pe("absolute inset-0 bg-canvas/80",n)}),Rre={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Ore={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Nre={info:"status",success:"status",warning:"alert",danger:"alert"};function ap({tone:e="info",variant:t="framed",onDismiss:n,role:r,className:a,children:s,...i}){const c=t==="soft";return C.jsxs("div",{role:r??Nre[e],className:Pe("flex gap-2 px-3 py-2 text-sm",c?Pe("items-start rounded-md",Ore[e]):Pe("items-center border",Rre[e]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(c?C.jsx(Kt,{variant:"ghost",size:"sm",icon:C.jsx($o,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx($o,{className:"size-4","aria-hidden":"true"})}))]})}const Mre={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},Pre={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function y3({tone:e="neutral",dot:t,className:n,children:r,...a}){return C.jsxs("span",{className:Pe("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",Mre[e],n),...a,children:[t&&C.jsx("span",{className:Pe("size-1.5 rounded-full",Pre[e])}),r]})}const Dre=1024,Lre=1280;function Ure(e,t=Dre,n=Lre){const r=e>=t;return{nav:r,reading:r,intelligence:e>=n}}function D8e(e){return e===void 0?!1:e.handlers.focusNext!==void 0&&e.handlers.focusPrevious!==void 0}function zre(e){const t=_.useRef(null),[n,r]=_.useState(e??null);return _.useEffect(()=>{const a=t.current;if(!a||typeof ResizeObserver>"u")return;const s=new ResizeObserver(u=>{const f=u[0];f&&r(f.contentRect.width)});s.observe(a);const i=getComputedStyle(a),c=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(a.clientWidth-c),()=>s.disconnect()},[]),[t,n]}function b3({open:e,onClose:t,title:n,children:r,className:a,anchor:s="center"}){const i=_.useRef(null);if(Wk({id:"dialog",open:e,answers:{back:t}}),Mv(i,e),!e)return null;const c=s==="left",u=s==="right";return C.jsxs("div",{className:Pe("fixed inset-0 z-50 flex",c?"items-stretch justify-start":u?"items-stretch justify-end":"items-center justify-center px-4"),children:[C.jsx(Tre,{label:"Dismiss dialog",onDismiss:t}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",tabIndex:-1,className:Pe("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":u?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",a),children:[C.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const Pv=_.createContext(null);Pv.displayName="PanelGroupContext";const Cn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Gk=10,nc=_.useLayoutEffect,D6=dz.useId,jre=typeof D6=="function"?D6:()=>null;let Fre=0;function Kk(e=null){const t=jre(),n=_.useRef(e||t||null);return n.current===null&&(n.current=""+Fre++),e??n.current}function Nz({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:s,id:i,maxSize:c,minSize:u,onCollapse:f,onExpand:h,onResize:m,order:g,style:y,tagName:w="div",...b}){const x=_.useContext(Pv);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:P,isPanelCollapsed:O,reevaluatePanelConstraints:T,registerPanel:M,resizePanel:z,unregisterPanel:q}=x,U=Kk(i),L=_.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:c,minSize:u},id:U,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),nc(()=>{const{callbacks:G,constraints:ie}=L.current,$={...ie};L.current.id=U,L.current.idIsFromProps=i!==void 0,L.current.order=g,G.onCollapse=f,G.onExpand=h,G.onResize=m,ie.collapsedSize=n,ie.collapsible=r,ie.defaultSize=a,ie.maxSize=c,ie.minSize=u,($.collapsedSize!==ie.collapsedSize||$.collapsible!==ie.collapsible||$.maxSize!==ie.maxSize||$.minSize!==ie.minSize)&&T(L.current,$)}),nc(()=>{const G=L.current;return M(G),()=>{q(G)}},[g,U,M,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(L.current)},expand:G=>{k(L.current,G)},getId(){return U},getSize(){return A(L.current)},isCollapsed(){return O(L.current)},isExpanded(){return!O(L.current)},resize:G=>{z(L.current,G)}}),[E,k,A,O,U,z]);const B=R(L.current,a);return _.createElement(w,{...b,children:e,className:t,id:U,style:{...B,...y},[Cn.groupId]:P,[Cn.panel]:"",[Cn.panelCollapsible]:r||void 0,[Cn.panelId]:U,[Cn.panelSize]:parseFloat(""+B.flexGrow).toFixed(1)})}const Mz=_.forwardRef((e,t)=>_.createElement(Nz,{...e,forwardedRef:t}));Nz.displayName="Panel";Mz.displayName="forwardRef(Panel)";let S3=null,j0=-1,Wi=null;function $re(e,t){if(t){const n=(t&zz)!==0,r=(t&jz)!==0,a=(t&Fz)!==0,s=(t&$z)!==0;if(n)return a?"se-resize":s?"ne-resize":"e-resize";if(r)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Bre(){Wi!==null&&(document.head.removeChild(Wi),S3=null,Wi=null,j0=-1)}function hw(e,t){var n,r;const a=$re(e,t);if(S3!==a){if(S3=a,Wi===null&&(Wi=document.createElement("style"),document.head.appendChild(Wi)),j0>=0){var s;(s=Wi.sheet)===null||s===void 0||s.removeRule(j0)}j0=(n=(r=Wi.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function Pz(e){return e.type==="keydown"}function Dz(e){return e.type.startsWith("pointer")}function Lz(e){return e.type.startsWith("mouse")}function Dv(e){if(Dz(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Lz(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Hre(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function qre(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Vre(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:z6(e),b:z6(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;it(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:U6(L6(n.a)),b:U6(L6(n.b))};if(a.a===a.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let c=s.length;for(;c--;){const u=s[c];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(a.a-a.b)}const Wre=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Gre(e){var t;const n=getComputedStyle((t=Uz(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function Kre(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Gre(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Wre.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function L6(e){let t=e.length;for(;t--;){const n=e[t];if(it(n,"Missing node"),Kre(n))return n}return null}function U6(e){return e&&Number(getComputedStyle(e).zIndex)||0}function z6(e){const t=[];for(;e;)t.push(e),e=Uz(e);return t}function Uz(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const zz=1,jz=2,Fz=4,$z=8,Yre=Hre()==="coarse";let cs=[],dd=!1,Wl=new Map,Lv=new Map;const sp=new Set;function Zre(e,t,n,r,a){var s;const{ownerDocument:i}=t,c={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},u=(s=Wl.get(i))!==null&&s!==void 0?s:0;return Wl.set(i,u+1),sp.add(c),p1(),function(){var h;Lv.delete(e),sp.delete(c);const m=(h=Wl.get(i))!==null&&h!==void 0?h:1;if(Wl.set(i,m-1),p1(),m===1&&Wl.delete(i),cs.includes(c)){const g=cs.indexOf(c);g>=0&&cs.splice(g,1),Zk(),a("up",!0,null)}}}function Xre(e){const{target:t}=e,{x:n,y:r}=Dv(e);dd=!0,Yk({target:t,x:n,y:r}),p1(),cs.length>0&&(m1("down",e),e.preventDefault(),Bz(t)||e.stopImmediatePropagation())}function pw(e){const{x:t,y:n}=Dv(e);if(dd&&e.buttons===0&&(dd=!1,m1("up",e)),!dd){const{target:r}=e;Yk({target:r,x:t,y:n})}m1("move",e),Zk(),cs.length>0&&e.preventDefault()}function mw(e){const{target:t}=e,{x:n,y:r}=Dv(e);Lv.clear(),dd=!1,cs.length>0&&(e.preventDefault(),Bz(t)||e.stopImmediatePropagation()),m1("up",e),Yk({target:t,x:n,y:r}),Zk(),p1()}function Bz(e){let t=e;for(;t;){if(t.hasAttribute(Cn.resizeHandle))return!0;t=t.parentElement}return!1}function Yk({target:e,x:t,y:n}){cs.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),sp.forEach(a=>{const{element:s,hitAreaMargins:i}=a,c=s.getBoundingClientRect(),{bottom:u,left:f,right:h,top:m}=c,g=Yre?i.coarse:i.fine;if(t>=f-g&&t<=h+g&&n>=m-g&&n<=u+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Vre(r,s)>0){let w=r,b=!1;for(;w&&!w.contains(s);){if(qre(w.getBoundingClientRect(),c)){b=!0;break}w=w.parentElement}if(b)return}cs.push(a)}})}function gw(e,t){Lv.set(e,t)}function Zk(){let e=!1,t=!1;cs.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;Lv.forEach(r=>{n|=r}),e&&t?hw("intersection",n):e?hw("horizontal",n):t?hw("vertical",n):Bre()}let vw=new AbortController;function p1(){vw.abort(),vw=new AbortController;const e={capture:!0,signal:vw.signal};sp.size&&(dd?(cs.length>0&&Wl.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("contextmenu",mw,e),r.addEventListener("pointerleave",pw,e),r.addEventListener("pointermove",pw,e))}),window.addEventListener("pointerup",mw,e),window.addEventListener("pointercancel",mw,e)):Wl.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("pointerdown",Xre,e),r.addEventListener("pointermove",pw,e))}))}function m1(e,t){sp.forEach(n=>{const{setResizeHandlerState:r}=n,a=cs.includes(n);r(e,a,t)})}function Qre(){const[e,t]=_.useState(0);return _.useCallback(()=>t(n=>n+1),[])}function it(e,t){if(!e)throw console.error(t),Error(t)}function mc(e,t,n=Gk){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Mo(e,t,n=Gk){return mc(e,t,n)===0}function va(e,t,n){return mc(e,t,n)===0}function Jre(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const a=e[r],s=t[r];if(!va(a,s,n))return!1}return!0}function Ju({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];it(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:c=0}=r;if(mc(n,c)<0)if(s){const u=(a+c)/2;mc(n,u)<0?n=a:n=c}else n=c;return n=Math.min(i,n),n=parseFloat(n.toFixed(Gk)),n}function Ih({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(va(e,0))return t;const i=[...t],[c,u]=r;it(c!=null,"Invalid first pivot index"),it(u!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=e<0?u:c,g=n[m];it(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:w,minSize:b=0}=g;if(w){const x=t[m];if(it(x!=null,`Previous layout not found for panel index ${m}`),va(x,y)){const E=b-x;mc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}{const m=e<0?c:u,g=n[m];it(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:w,minSize:b=0}=g;if(w){const x=t[m];if(it(x!=null,`Previous layout not found for panel index ${m}`),va(x,b)){const E=x-y;mc(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}}{const m=e<0?1:-1;let g=e<0?u:c,y=0;for(;;){const b=t[g];it(b!=null,`Previous layout not found for panel index ${g}`);const E=Ju({panelConstraints:n,panelIndex:g,size:100})-b;if(y+=E,g+=m,g<0||g>=n.length)break}const w=Math.min(Math.abs(e),Math.abs(y));e=e<0?0-w:w}{let g=e<0?c:u;for(;g>=0&&g<n.length;){const y=Math.abs(e)-Math.abs(f),w=t[g];it(w!=null,`Previous layout not found for panel index ${g}`);const b=w-y,x=Ju({panelConstraints:n,panelIndex:g,size:b});if(!va(w,x)&&(f+=w-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(Jre(a,i))return a;{const m=e<0?u:c,g=t[m];it(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,w=Ju({panelConstraints:n,panelIndex:m,size:y});if(i[m]=w,!va(w,y)){let b=y-w,E=e<0?u:c;for(;E>=0&&E<n.length;){const k=i[E];it(k!=null,`Previous layout not found for panel index ${E}`);const A=k+b,R=Ju({panelConstraints:n,panelIndex:E,size:A});if(va(k,R)||(b-=R-k,i[E]=R),va(b,0))break;e>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return va(h,100)?i:a}function eae({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,s=0,i=0;const c=n[0];it(c!=null,"No pivot index found"),t.forEach((m,g)=>{const{constraints:y}=m,{maxSize:w=100,minSize:b=0}=y;g===c?(r=b,a=w):(s+=b,i+=w)});const u=Math.min(a,100-s),f=Math.max(r,100-i),h=e[c];return{valueMax:u,valueMin:f,valueNow:h}}function op(e,t=document){return Array.from(t.querySelectorAll(`[${Cn.resizeHandleId}][data-panel-group-id="${e}"]`))}function Hz(e,t,n=document){const a=op(e,n).findIndex(s=>s.getAttribute(Cn.resizeHandleId)===t);return a??null}function qz(e,t,n){const r=Hz(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function Vz(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Uv(e,t=document){const n=t.querySelector(`[${Cn.resizeHandleId}="${e}"]`);return n||null}function tae(e,t,n,r=document){var a,s,i,c;const u=Uv(t,r),f=op(e,r),h=u?f.indexOf(u):-1,m=(a=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,g=(i=(c=n[h+1])===null||c===void 0?void 0:c.id)!==null&&i!==void 0?i:null;return[m,g]}function nae({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),nc(()=>{if(!s)return;const c=op(n,s);for(let u=0;u<a.length-1;u++){const{valueMax:f,valueMin:h,valueNow:m}=eae({layout:r,panelsArray:a,pivotIndices:[u,u+1]}),g=c[u];if(g!=null){const y=a[u];it(y,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",y.id),g.setAttribute("aria-valuemax",""+Math.round(f)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{c.forEach((u,f)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,a,s]),_.useEffect(()=>{if(!s)return;const c=t.current;it(c,"Eager values not found");const{panelDataArray:u}=c,f=Vz(n,s);it(f!=null,`No group found for id "${n}"`);const h=op(n,s);it(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(Cn.resizeHandleId);it(y,"Resize handle element has no handle id attribute");const[w,b]=tae(n,y,u,s);if(w==null||b==null)return()=>{};const x=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=u.findIndex(A=>A.id===w);if(k>=0){const A=u[k];it(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:P=0,collapsible:O,minSize:T=0}=A.constraints;if(R!=null&&O){const M=Ih({delta:va(R,P)?T-P:P-R,initialLayout:r,panelConstraints:u.map(z=>z.constraints),pivotIndices:qz(n,y,s),prevLayout:r,trigger:"keyboard"});r!==M&&i(M)}}break}}};return g.addEventListener("keydown",x),()=>{g.removeEventListener("keydown",x)}});return()=>{m.forEach(g=>g())}},[s,e,t,n,r,a,i])}function j6(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Wz(e,t){const n=e==="horizontal",{x:r,y:a}=Dv(t);return n?r:a}function rae(e,t,n,r,a){const s=n==="horizontal",i=Uv(t,a);it(i,`No resize handle element found for id "${t}"`);const c=i.getAttribute(Cn.groupId);it(c,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const f=Wz(n,e),h=Vz(c,a);it(h,`No group element found for id "${c}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-u)/g*100}function aae(e,t,n,r,a,s){if(Pz(e)){const i=n==="horizontal";let c=0;e.shiftKey?c=100:a!=null?c=a:c=10;let u=0;switch(e.key){case"ArrowDown":u=i?0:c;break;case"ArrowLeft":u=i?-c:0;break;case"ArrowRight":u=i?c:0;break;case"ArrowUp":u=i?0:-c;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:rae(e,t,n,r,s)}function sae({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<e.length;s++){const i=n[s];it(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;c!=null&&(r++,t[s]=c,a-=c)}for(let s=0;s<e.length;s++){const i=n[s];it(i,`Panel constraints not found for index ${s}`);const{defaultSize:c}=i;if(c!=null)continue;const u=e.length-r,f=a/u;r++,t[s]=f,a-=f}return t}function Tu(e,t,n){t.forEach((r,a)=>{const s=e[a];it(s,`Panel data not found for index ${a}`);const{callbacks:i,constraints:c,id:u}=s,{collapsedSize:f=0,collapsible:h}=c,m=n[u];if(m==null||r!==m){n[u]=r;const{onCollapse:g,onExpand:y,onResize:w}=i;w&&w(r,m),h&&(g||y)&&(y&&(m==null||Mo(m,f))&&!Mo(r,f)&&y(),g&&(m==null||!Mo(m,f))&&Mo(r,f)&&g())}})}function Dg(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function oae({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let c;return i==null?c=e!=null?e.toPrecision(s):"1":r.length===1?c="1":c=i.toPrecision(s),{flexBasis:0,flexGrow:c,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function iae(e,t=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function F6(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Gz(e){return`react-resizable-panels:${e}`}function Kz(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=t;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function Yz(e,t){try{const n=Gz(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function lae(e,t,n){var r,a;const s=(r=Yz(e,n))!==null&&r!==void 0?r:{},i=Kz(t);return(a=s[i])!==null&&a!==void 0?a:null}function cae(e,t,n,r,a){var s;const i=Gz(e),c=Kz(t),u=(s=Yz(e,a))!==null&&s!==void 0?s:{};u[c]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(u))}catch(f){console.error(f)}}function $6({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!va(r,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];it(i!=null,`No layout data found for index ${s}`);const c=100/r*i;n[s]=c}let a=0;for(let s=0;s<t.length;s++){const i=n[s];it(i!=null,`No layout data found for index ${s}`);const c=Ju({panelConstraints:t,panelIndex:s,size:i});i!=c&&(a+=i-c,n[s]=c)}if(!va(a,0))for(let s=0;s<t.length;s++){const i=n[s];it(i!=null,`No layout data found for index ${s}`);const c=i+a,u=Ju({panelConstraints:t,panelIndex:s,size:c});if(i!==u&&(a-=u-i,n[s]=u,va(a,0)))break}return n}const uae=100,Th={getItem:e=>(F6(Th),Th.getItem(e)),setItem:(e,t)=>{F6(Th),Th.setItem(e,t)}},B6={};function Zz({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:c=null,storage:u=Th,style:f,tagName:h="div",...m}){const g=Kk(s),y=_.useRef(null),[w,b]=_.useState(null),[x,E]=_.useState([]),k=Qre(),A=_.useRef({}),R=_.useRef(new Map),P=_.useRef(0),O=_.useRef({autoSaveId:e,direction:r,dragState:w,id:g,keyboardResizeBy:c,onLayout:i,storage:u}),T=_.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:Z}=T.current;return Z},setLayout:Z=>{const{onLayout:Q}=O.current,{layout:se,panelDataArray:le}=T.current,me=$6({layout:Z,panelConstraints:le.map(te=>te.constraints)});j6(se,me)||(E(me),T.current.layout=me,Q&&Q(me),Tu(le,me,A.current))}}),[]),nc(()=>{O.current.autoSaveId=e,O.current.direction=r,O.current.dragState=w,O.current.id=g,O.current.onLayout=i,O.current.storage=u}),nae({committedValuesRef:O,eagerValuesRef:T,groupId:g,layout:x,panelDataArray:T.current.panelDataArray,setLayout:E,panelGroupElement:y.current}),_.useEffect(()=>{const{panelDataArray:Z}=T.current;if(e){if(x.length===0||x.length!==Z.length)return;let Q=B6[e];Q==null&&(Q=iae(cae,uae),B6[e]=Q);const se=[...Z],le=new Map(R.current);Q(e,se,le,x,u)}},[e,x,u]),_.useEffect(()=>{});const M=_.useCallback(Z=>{const{onLayout:Q}=O.current,{layout:se,panelDataArray:le}=T.current;if(Z.constraints.collapsible){const me=le.map(we=>we.constraints),{collapsedSize:te=0,panelSize:ve,pivotIndices:Le}=$l(le,Z,se);if(it(ve!=null,`Panel size not found for panel "${Z.id}"`),!Mo(ve,te)){R.current.set(Z.id,ve);const nt=qu(le,Z)===le.length-1?ve-te:te-ve,Ue=Ih({delta:nt,initialLayout:se,panelConstraints:me,pivotIndices:Le,prevLayout:se,trigger:"imperative-api"});Dg(se,Ue)||(E(Ue),T.current.layout=Ue,Q&&Q(Ue),Tu(le,Ue,A.current))}}},[]),z=_.useCallback((Z,Q)=>{const{onLayout:se}=O.current,{layout:le,panelDataArray:me}=T.current;if(Z.constraints.collapsible){const te=me.map(He=>He.constraints),{collapsedSize:ve=0,panelSize:Le=0,minSize:we=0,pivotIndices:nt}=$l(me,Z,le),Ue=Q??we;if(Mo(Le,ve)){const He=R.current.get(Z.id),Ht=He!=null&&He>=Ue?He:Ue,gr=qu(me,Z)===me.length-1?Le-Ht:Ht-Le,qe=Ih({delta:gr,initialLayout:le,panelConstraints:te,pivotIndices:nt,prevLayout:le,trigger:"imperative-api"});Dg(le,qe)||(E(qe),T.current.layout=qe,se&&se(qe),Tu(me,qe,A.current))}}},[]),q=_.useCallback(Z=>{const{layout:Q,panelDataArray:se}=T.current,{panelSize:le}=$l(se,Z,Q);return it(le!=null,`Panel size not found for panel "${Z.id}"`),le},[]),U=_.useCallback((Z,Q)=>{const{panelDataArray:se}=T.current,le=qu(se,Z);return oae({defaultSize:Q,dragState:w,layout:x,panelData:se,panelIndex:le})},[w,x]),L=_.useCallback(Z=>{const{layout:Q,panelDataArray:se}=T.current,{collapsedSize:le=0,collapsible:me,panelSize:te}=$l(se,Z,Q);return it(te!=null,`Panel size not found for panel "${Z.id}"`),me===!0&&Mo(te,le)},[]),B=_.useCallback(Z=>{const{layout:Q,panelDataArray:se}=T.current,{collapsedSize:le=0,collapsible:me,panelSize:te}=$l(se,Z,Q);return it(te!=null,`Panel size not found for panel "${Z.id}"`),!me||mc(te,le)>0},[]),G=_.useCallback(Z=>{const{panelDataArray:Q}=T.current;Q.push(Z),Q.sort((se,le)=>{const me=se.order,te=le.order;return me==null&&te==null?0:me==null?-1:te==null?1:me-te}),T.current.panelDataArrayChanged=!0,k()},[k]);nc(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:Z,onLayout:Q,storage:se}=O.current,{layout:le,panelDataArray:me}=T.current;let te=null;if(Z){const Le=lae(Z,me,se);Le&&(R.current=new Map(Object.entries(Le.expandToSizes)),te=Le.layout)}te==null&&(te=sae({panelDataArray:me}));const ve=$6({layout:te,panelConstraints:me.map(Le=>Le.constraints)});j6(le,ve)||(E(ve),T.current.layout=ve,Q&&Q(ve),Tu(me,ve,A.current))}}),nc(()=>{const Z=T.current;return()=>{Z.layout=[]}},[]);const ie=_.useCallback(Z=>{let Q=!1;const se=y.current;return se&&window.getComputedStyle(se,null).getPropertyValue("direction")==="rtl"&&(Q=!0),function(me){me.preventDefault();const te=y.current;if(!te)return()=>null;const{direction:ve,dragState:Le,id:we,keyboardResizeBy:nt,onLayout:Ue}=O.current,{layout:He,panelDataArray:Ht}=T.current,{initialLayout:Ie}=Le??{},gr=qz(we,Z,te);let qe=aae(me,Z,ve,Le,nt,te);const jr=ve==="horizontal";jr&&Q&&(qe=-qe);const un=Ht.map(Fr=>Fr.constraints),rr=Ih({delta:qe,initialLayout:Ie??He,panelConstraints:un,pivotIndices:gr,prevLayout:He,trigger:Pz(me)?"keyboard":"mouse-or-touch"}),gs=!Dg(He,rr);(Dz(me)||Lz(me))&&P.current!=qe&&(P.current=qe,!gs&&qe!==0?jr?gw(Z,qe<0?zz:jz):gw(Z,qe<0?Fz:$z):gw(Z,0)),gs&&(E(rr),T.current.layout=rr,Ue&&Ue(rr),Tu(Ht,rr,A.current))}},[]),$=_.useCallback((Z,Q)=>{const{onLayout:se}=O.current,{layout:le,panelDataArray:me}=T.current,te=me.map(He=>He.constraints),{panelSize:ve,pivotIndices:Le}=$l(me,Z,le);it(ve!=null,`Panel size not found for panel "${Z.id}"`);const nt=qu(me,Z)===me.length-1?ve-Q:Q-ve,Ue=Ih({delta:nt,initialLayout:le,panelConstraints:te,pivotIndices:Le,prevLayout:le,trigger:"imperative-api"});Dg(le,Ue)||(E(Ue),T.current.layout=Ue,se&&se(Ue),Tu(me,Ue,A.current))},[]),X=_.useCallback((Z,Q)=>{const{layout:se,panelDataArray:le}=T.current,{collapsedSize:me=0,collapsible:te}=Q,{collapsedSize:ve=0,collapsible:Le,maxSize:we=100,minSize:nt=0}=Z.constraints,{panelSize:Ue}=$l(le,Z,se);Ue!=null&&(te&&Le&&Mo(Ue,me)?Mo(me,ve)||$(Z,ve):Ue<nt?$(Z,nt):Ue>we&&$(Z,we))},[$]),re=_.useCallback((Z,Q)=>{const{direction:se}=O.current,{layout:le}=T.current;if(!y.current)return;const me=Uv(Z,y.current);it(me,`Drag handle element not found for id "${Z}"`);const te=Wz(se,Q);b({dragHandleId:Z,dragHandleRect:me.getBoundingClientRect(),initialCursorPosition:te,initialLayout:le})},[]),pe=_.useCallback(()=>{b(null)},[]),_e=_.useCallback(Z=>{const{panelDataArray:Q}=T.current,se=qu(Q,Z);se>=0&&(Q.splice(se,1),delete A.current[Z.id],T.current.panelDataArrayChanged=!0,k())},[k]),j=_.useMemo(()=>({collapsePanel:M,direction:r,dragState:w,expandPanel:z,getPanelSize:q,getPanelStyle:U,groupId:g,isPanelCollapsed:L,isPanelExpanded:B,reevaluatePanelConstraints:X,registerPanel:G,registerResizeHandle:ie,resizePanel:$,startDragging:re,stopDragging:pe,unregisterPanel:_e,panelGroupElement:y.current}),[M,w,r,z,q,U,g,L,B,X,G,ie,$,re,pe,_e]),Y={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(Pv.Provider,{value:j},_.createElement(h,{...m,children:t,className:n,id:s,ref:y,style:{...Y,...f},[Cn.group]:"",[Cn.groupDirection]:r,[Cn.groupId]:g}))}const Xz=_.forwardRef((e,t)=>_.createElement(Zz,{...e,forwardedRef:t}));Zz.displayName="PanelGroup";Xz.displayName="forwardRef(PanelGroup)";function qu(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function $l(e,t,n){const r=qu(e,t),s=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:s}}function dae({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(e||n==null||r==null)return;const a=Uv(t,r);if(a==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const c=a.getAttribute(Cn.groupId);it(c,`No group element found for id "${c}"`);const u=op(c,r),f=Hz(c,t,r);it(f!==null,`No resize element found for id "${t}"`);const h=i.shiftKey?f>0?f-1:u.length-1:f+1<u.length?f+1:0;u[h].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[r,e,t,n])}function Qz({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:s,onClick:i,onDragging:c,onFocus:u,onPointerDown:f,onPointerUp:h,style:m={},tabIndex:g=0,tagName:y="div",...w}){var b,x;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:c,onPointerDown:f,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=c,k.current.onPointerDown=f,k.current.onPointerUp=h});const A=_.useContext(Pv);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:P,registerResizeHandle:O,startDragging:T,stopDragging:M,panelGroupElement:z}=A,q=Kk(a),[U,L]=_.useState("inactive"),[B,G]=_.useState(!1),[ie,$]=_.useState(null),X=_.useRef({state:U});nc(()=>{X.current.state=U}),_.useEffect(()=>{if(n)$(null);else{const j=O(q);$(()=>j)}},[n,q,O]);const re=(b=r?.coarse)!==null&&b!==void 0?b:15,pe=(x=r?.fine)!==null&&x!==void 0?x:5;_.useEffect(()=>{if(n||ie==null)return;const j=E.current;it(j,"Element ref not attached");let Y=!1;return Zre(q,j,R,{coarse:re,fine:pe},(Q,se,le)=>{if(!se){L("inactive");return}switch(Q){case"down":{L("drag"),Y=!1,it(le,'Expected event to be defined for "down" action'),T(q,le);const{onDragging:me,onPointerDown:te}=k.current;me?.(!0),te?.();break}case"move":{const{state:me}=X.current;Y=!0,me!=="drag"&&L("hover"),it(le,'Expected event to be defined for "move" action'),ie(le);break}case"up":{L("hover"),M();const{onClick:me,onDragging:te,onPointerUp:ve}=k.current;te?.(!1),ve?.(),Y||me?.();break}}})},[re,R,n,pe,O,q,ie,T,M]),dae({disabled:n,handleId:q,resizeHandler:ie,panelGroupElement:z});const _e={touchAction:"none",userSelect:"none"};return _.createElement(y,{...w,children:e,className:t,id:a,onBlur:()=>{G(!1),s?.()},onFocus:()=>{G(!0),u?.()},ref:E,role:"separator",style:{..._e,...m},tabIndex:g,[Cn.groupDirection]:R,[Cn.groupId]:P,[Cn.resizeHandle]:"",[Cn.resizeHandleActive]:U==="drag"?"pointer":B?"keyboard":void 0,[Cn.resizeHandleEnabled]:!n,[Cn.resizeHandleId]:q,[Cn.resizeHandleState]:U})}Qz.displayName="PanelResizeHandle";function H6({className:e,...t}){return C.jsx(Xz,{className:Pe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}const sh=Mz;function yw({className:e,...t}){return C.jsx(Qz,{className:Pe("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",e),...t})}function fae({className:e,children:t}){const n=_.useRef(null),[r,a]=_.useState(null);return _.useEffect(()=>{const s=n.current?.parentElement;if(!s||typeof ResizeObserver>"u")return;const i=()=>{const u=Math.floor(s.getBoundingClientRect().width);a(f=>f===u?f:u)};i();const c=new ResizeObserver(i);return c.observe(s),()=>c.disconnect()},[]),C.jsx("div",{ref:n,className:e,style:r===null?void 0:{width:`${r}px`},children:t})}const Jz=_.createContext(null);function hae(e,t){return e==="list"?{size:62,max:78}:e==="detail"?{size:26,max:45}:{size:t==="compact"?43:33,max:58}}function L8e(){return _.useContext(Jz)}function U8e({nav:e,list:t,reading:n,intelligence:r,intelligenceOpen:a=!0,hasThread:s=!0,density:i="comfortable",listBias:c="balanced",header:u,topBar:f,overlay:h,skeleton:m,isLoading:g=!1,initialWidth:y,navOpen:w,onOpenNav:b,onCloseNav:x}){const[E,k]=zre(y),A=Ure(k??0),[R,P]=_.useState(!1),O=A.nav,T=O&&!R,M=A.reading&&!!n,z=A.intelligence,[q,U]=_.useState(!1),L=w!==void 0,B=L?w:q,G=()=>{L||U(!0),b?.()},ie=()=>{L||U(!1),x?.()},$=z&&a&&s&&!!r,re={panes:A,containerWidth:k,showNavPane:O,openNav:G,navCollapsed:R,toggleNav:()=>{if(!O){B?ie():G();return}P(Y=>!Y)},showReadingPane:M,showIntelligencePane:z},pe=hae(c,i),_e=C.jsxs(H6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(sh,{id:"list",order:1,defaultSize:M?pe.size:100,minSize:22,maxSize:M?pe.max:100,className:"min-w-0",children:t}),M&&C.jsxs(C.Fragment,{children:[C.jsx(yw,{}),C.jsx(sh,{id:"reading",order:2,minSize:29,className:"min-w-0",children:C.jsx(fae,{className:"h-full",children:n})})]}),$&&C.jsxs(C.Fragment,{children:[C.jsx(yw,{}),C.jsx(sh,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]},M?"list-reading":"list-only"),j=C.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!O&&u&&C.jsx("div",{className:"shrink-0",children:u}),_e]});return C.jsx(Jz.Provider,{value:re,children:C.jsx("div",{ref:E,className:"safe-area-frame @container flex h-dvh w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:g&&m?m:C.jsxs(C.Fragment,{children:[f,T?C.jsxs(H6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(sh,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:e}),C.jsx(yw,{}),C.jsx(sh,{id:"content",order:2,className:"flex min-w-0 flex-col",children:j})]}):j,!O&&C.jsx(b3,{open:B,onClose:ie,title:"Folders",anchor:"left",children:e}),h]})})})}function ej({children:e,label:t}){return C.jsxs("span",{className:"relative inline-flex",children:[e,t!==void 0&&C.jsxs(C.Fragment,{children:[C.jsx("span",{"data-testid":"attention-dot",className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:t})]})]})}function Xk({children:e,className:t}){return C.jsx("div",{"data-auth-page":!0,className:Pe("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",t),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:e})})}const pae="Secure sign-in powered by AWS Cognito";function tj(e){const t=e?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:t})})}const mae=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function Qk({wordmark:e="remit,",tagline:t="your email client in the cloud.",mark:n=C.jsx(mae,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:e}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:t})]})}function gae({id:e,reason:t,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:e,className:Pe(r,!n&&"sr-only"),children:t}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?t:""})]})}function vae(e){return e.sentDate!=null?new Date(e.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(e.timeLabel)}const nj=[{id:"unread",label:"Unread",match:e=>!e.isRead},{id:"attachment",label:"Has attachment",match:e=>!!e.hasAttachment},{id:"contacts",label:"From contacts",match:e=>e.trust==="vip"||e.trust==="wellknown"},{id:"today",label:"Today",match:vae}],z8e=nj.map(({id:e,label:t})=>({id:e,label:t}));function j8e(e,t){return nj.every(n=>!t.has(n.id)||n.match(e))}function yae(e){return e.target!==e.currentTarget?!1:e.key==="Enter"||e.key===" "}function rj({className:e}){return C.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function q6({className:e}){return C.jsx("svg",{viewBox:"0 0 12 12",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const zv=_.createContext(null);function F8e({children:e,hasSheet:t,open:n,onOpenChange:r}){const[a,s]=_.useState(!1),[i,c]=_.useState(!1),u=n??a,f=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:u,setOpen:f,active:i,setActive:c,hasSheet:t}),[u,f,i,t]);return C.jsx(zv.Provider,{value:h,children:e})}function $8e({children:e}){return C.jsx(zv.Provider,{value:null,children:e})}function B8e(){const e=_.useContext(zv);if(!e?.hasSheet)return null;const{open:t,active:n,setOpen:r}=e;return C.jsx("button",{type:"button",onClick:()=>r(!t),"aria-expanded":t,"aria-label":t?"Collapse filters":"Expand filters",title:"Filters",className:Pe("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:C.jsx(rj,{className:Pe("size-3 transition-transform duration-200",t?"rotate-180":"rotate-0")})})}function H8e({categories:e,filters:t,sources:n,sourcesNote:r,selectedCategory:a,activeFilters:s,expanded:i,onSelectCategory:c,onSelectSource:u,onToggleFilter:f,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:y}){const w=_.useContext(zv),b=i!==void 0,[x,E]=_.useState(!1),k=w?.open??(b?i:x),A=_.useCallback(re=>{b||E(re),w?.setOpen(re),m?.(re)},[b,m,w]),R=e[0],P=R!==void 0&&a===R.id,O=n?.[0],T=n?.find(re=>re.active),M=O===void 0||T?.id===O.id,z=!P||s.size>0||!M&&!!T,q=w?.setActive;_.useEffect(()=>{if(q)return q(z),()=>q(!1)},[z,q]);const U=_.useCallback(()=>{O&&u?.(O.id)},[O,u]),L=_.useCallback(()=>{h(),U()},[h,U]),B=e.find(re=>re.id===a),G=z?C.jsxs(C.Fragment,{children:[!M&&T&&C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:T.label}),!P&&B&&C.jsx(y3,{tone:B.tone??"neutral",children:B.label}),t.filter(re=>s.has(re.id)).map(re=>C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:re.label},re.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),ie=n&&n.length>1&&C.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(re=>C.jsxs("button",{type:"button","aria-pressed":!!re.active,onClick:()=>u?.(re.id),className:Pe("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",re.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[re.label,re.count!=null&&re.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:re.count})]},re.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),$=C.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:e.map(re=>{const pe=a===re.id;return C.jsx("button",{type:"button","aria-pressed":pe,onClick:()=>c(re.id),className:Pe("shrink-0 rounded-full transition-opacity",pe?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(y3,{tone:re.tone??"neutral",children:re.label})},re.id)})}),X=C.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[t.map(re=>{const pe=s.has(re.id);return C.jsx("button",{type:"button","aria-pressed":pe,onClick:()=>f(re.id),className:Pe("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",pe?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:re.label},re.id)}),z&&C.jsxs("button",{type:"button",onClick:L,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(q6,{className:"size-3"}),"Clear"]})]});return C.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!w&&C.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:re=>{yae(re)&&(re.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[G,z&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:re=>{re.stopPropagation(),L()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(q6,{className:"size-3"})}),C.jsx(rj,{className:Pe("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&C.jsxs("div",{className:"shrink-0",children:[ie,$,X]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}const V6={type:"none"};function bae(e){if(!e.open||e.count<=0)return V6;if(e.key==="ArrowDown"){const n=e.activeIndex+1;return{type:"move",index:n>=e.count?0:n}}if(e.key==="ArrowUp"){const n=e.activeIndex-1;return{type:"move",index:n<0?e.count-1:n}}return e.key==="Escape"?{type:"dismiss"}:(e.key==="Enter"||(e.acceptKeys??[]).includes(e.key))&&e.activeIndex>=0&&e.activeIndex<e.count?{type:"accept",index:e.activeIndex}:V6}function Sae({count:e,onAccept:t,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),c=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),u=`suggest-${c}`,f=_.useCallback(w=>`suggest-${c}-option-${w}`,[c]);_.useEffect(()=>{i(-1),a(!1)},[e]);const h=e>0&&!r,m=_.useRef({open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t});m.current={open:h,count:e,activeIndex:s,acceptKeys:n,onAccept:t};const g=_.useCallback(w=>{const b=m.current,x=bae({key:w.key,open:b.open,count:b.count,activeIndex:b.activeIndex,acceptKeys:b.acceptKeys});return x.type==="none"?!1:(w.preventDefault(),x.type==="move"&&i(x.index),x.type==="dismiss"&&a(!0),x.type==="accept"&&b.onAccept(x.index),!0)},[]),y=_.useMemo(()=>({role:"combobox","aria-expanded":h,"aria-controls":u,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}),[h,u,s,f]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.useCallback(()=>a(!1),[]),handleKeyDown:g,listId:u,optionId:f,comboboxProps:y}}function wae({id:e,suggestions:t,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:c}){return t.length===0?null:C.jsx("div",{id:e,role:"listbox","aria-label":i,className:Pe("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",c),children:t.map((u,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Pe("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(u)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:u.label??u.value}),u.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:u.hint}),u.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:u.source})]},u.value))})}var W6={en:1199414,"en-GB":1199758,nl:3180464},G6=["en","en-GB","nl"];const aj=()=>typeof G6>"u"?[]:G6,q8e=()=>{const e="/spellcheck/de99b00dc30674fd/";return typeof document>"u"?e:new URL(e,document.baseURI).href},V8e=e=>typeof W6>"u"?0:W6[e]??0,W8e=(e,t=aj())=>{const n=e.toLowerCase(),r=t.find(s=>s.toLowerCase()===n);if(r)return r;const a=n.split("-")[0];return t.find(s=>s.toLowerCase().split("-")[0]===a)??null},xae=[{tag:"ar",detectionCode:"arb"},{tag:"az",detectionCode:"azj"},{tag:"be",detectionCode:"bel"},{tag:"bg",detectionCode:"bul"},{tag:"bs",detectionCode:"bos"},{tag:"cs",detectionCode:"ces"},{tag:"de",detectionCode:"deu"},{tag:"en",detectionCode:"eng"},{tag:"es",detectionCode:"spa"},{tag:"fa",detectionCode:"pes"},{tag:"fr",detectionCode:"fra"},{tag:"ha",detectionCode:"hau"},{tag:"hi",detectionCode:"hin"},{tag:"hr",detectionCode:"hrv"},{tag:"hu",detectionCode:"hun"},{tag:"id",detectionCode:"ind"},{tag:"ig",detectionCode:"ibo"},{tag:"it",detectionCode:"ita"},{tag:"jv",detectionCode:"jav"},{tag:"kk",detectionCode:"kaz"},{tag:"mr",detectionCode:"mar"},{tag:"ms",detectionCode:"zlm"},{tag:"ne",detectionCode:"npi"},{tag:"nl",detectionCode:"nld"},{tag:"pl",detectionCode:"pol"},{tag:"ps",detectionCode:"pbu"},{tag:"pt",detectionCode:"por"},{tag:"ro",detectionCode:"ron"},{tag:"ru",detectionCode:"rus"},{tag:"so",detectionCode:"som"},{tag:"sr",detectionCode:"srp"},{tag:"su",detectionCode:"sun"},{tag:"sv",detectionCode:"swe"},{tag:"sw",detectionCode:"swh"},{tag:"tl",detectionCode:"tgl"},{tag:"tr",detectionCode:"tur"},{tag:"uk",detectionCode:"ukr"},{tag:"ur",detectionCode:"urd"},{tag:"vi",detectionCode:"vie"},{tag:"yo",detectionCode:"yor"},{tag:"zu",detectionCode:"zul"}],Jk=e=>(e.split("-")[0]??"").toLowerCase(),Cae=new Map(xae.map(e=>[e.tag,e])),Eae=e=>Cae.get(Jk(e))?.detectionCode??null,_ae=/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i,G8e=e=>Jk(e).toUpperCase(),K8e=e=>{if(!_ae.test(e))return e;const n=new Intl.DisplayNames([e],{type:"language",fallback:"none"}).of(e);return n?n.charAt(0).toLocaleUpperCase(e)+n.slice(1):e},Y8e=(e,t=aj())=>{const n=[...e,...t].filter(a=>Eae(a)!==null),r=[...new Set(n.map(Jk))];return r.includes("en")||r.push("en"),r},Z8e=e=>/iPhone|iPad|iPod/.test(e)?"On iPhone and iPad the keyboard decides this. Add the language under Settings, then General, then Keyboard.":/Edg\//.test(e)?"Edge checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Firefox\//.test(e)?"Firefox uses this setting. Right-click the message to add a dictionary for it.":/Chrome\/|Chromium\//.test(e)?"Chrome checks every language you add under Settings, then Languages. Adding one there checks it alongside the others.":/Safari\//.test(e)?"macOS decides this under Keyboard, then Text Input, then Spelling. Automatic by Language covers every language enabled there.":"Your browser decides which dictionaries it checks. Add this language in its own language settings to have it spellchecked.",sj=e=>new DOMParser().parseFromString(e,"text/html"),oj=e=>{const t=[...e.children];if(t.length!==1)return null;const n=t[0];return n?[...e.childNodes].some(a=>a!==n&&(a.textContent??"").trim()!=="")?null:n:null},X8e=(e,t)=>{if(e==="")return"";const n=sj(e),r=oj(n.body);if(r?.tagName==="DIV"&&r.hasAttribute("lang"))return r.setAttribute("lang",t),n.body.innerHTML;const a=n.createElement("div");for(a.setAttribute("lang",t);n.body.firstChild;)a.append(n.body.firstChild);return n.body.append(a),n.body.innerHTML},Q8e=e=>{if(e==="")return{html:e,language:null};const t=sj(e),n=oj(t.body);return n?.tagName!=="DIV"||!n.hasAttribute("lang")?{html:e,language:null}:{html:n.innerHTML,language:n.getAttribute("lang")}},kae={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},Aae={error:Sz,warning:pc,info:xz},Iae={error:"Error",warning:"Warning",info:"Information"},Tae=({id:e,severity:t,title:n,detail:r,action:a,onDismiss:s})=>{const i=kae[t],c=Aae[t];return C.jsxs("div",{role:t==="error"?"alert":"status","aria-live":t==="error"?"assertive":"polite",className:Pe("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",i.container),children:[C.jsx(c,{className:Pe("size-5 shrink-0 mt-0.5",i.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:Pe("text-sm font-medium",i.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r}),a&&C.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs font-medium text-accent-2 underline underline-offset-2",children:a.label})]}),C.jsx("button",{type:"button",onClick:()=>s(e),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${Iae[t].toLowerCase()}`,children:C.jsx($o,{className:"size-4","aria-hidden":"true"})})]})},Rae=({errors:e,onDismiss:t})=>e.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:e.map(n=>C.jsx(Tae,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,action:n.action,onDismiss:t},n.id))})}),Oae={default:Pe("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function hs({icon:e,className:t,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Pe(Oae[n],t),children:[e&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:e}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function ij({icon:e,className:t,children:n,ref:r,...a}){return C.jsxs("div",{className:Pe("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",t),children:[e&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:e}),C.jsx("select",{ref:r,className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...a,children:n}),C.jsx(une,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function eA({className:e,children:t,...n}){return C.jsx("label",{className:Pe("mb-1 block text-xs font-medium text-fg-muted",e),...n,children:t})}const Nae="Matches on what the messages say about themselves — sender, subject, list. No reading involved.",Mae={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function fd(e){return Mae[e]}const Pae={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function Dae(e){return Pae[e]}function Lae(e){return e==="HasWords"}function lj(e){return e.clauses.length>0}function cj(e){return e.clauses.filter(t=>Lae(t.field))}const Uae=["From","Subject","HasWords","ListId","FromDomain"],zae={all:"Match all",any:"Match any"};function g1(e){return zae[e]}function tA(e){return e==="all"?"and":"or"}function uj(e){if(e.status==="loading")return"Counting matches…";if(e.status==="error")return e.reason;if(e.count===0)return"No mail matches yet";const t=e.count===1?"message":"messages",n=`${e.count} ${t} match`;return e.stale?`${n} — recounting`:n}const jae={once:"Just once",standing:"Keep doing this",until:"Until a date"};function F0(e){return jae[e]}function dj(e){return e==="once"?"Apply now":e==="standing"?"Save rule":"Save until then"}const ba={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},J8e="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function fj(e){if(e.status==="loading")return ba.counting;if(e.status==="ready"&&e.stale)return ba.recounting}function Fae(e,t){return lj(e)?e.scope==="once"&&cj(e).length>0?ba.bodyTextOnce:!e.moveMailboxId&&!e.labelId?ba.noAction:(e.scope==="standing"||e.scope==="until")&&(e.name??"").trim()===""?ba.unnamed:e.scope==="until"&&!e.until?ba.noUntilDate:fj(t):ba.noMatch}const hj="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function pj({clause:e,onEdit:t,onRemove:n}){return C.jsxs("span",{className:Pe(hj,e.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:t,"aria-label":`Edit ${fd(e.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:fd(e.field)}),C.jsx("span",{className:"text-fg",children:e.value})]}),e.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${fd(e.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx($o,{className:"size-3"})})]})}function mj({label:e,onClick:t}){return C.jsxs("button",{type:"button",onClick:t,className:Pe(hj,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(xne,{className:"size-3","aria-hidden":"true"}),e]})}function gj({draft:e,mode:t,fields:n=Uae,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:c}){const u=Dae(e.field),f=Sae({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(ij,{"aria-label":"Clause field",value:e.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:fd(h)},h))}),C.jsx(hs,{"aria-label":"Clause value",value:e.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(Kt,{variant:"primary",size:"sm",onClick:i,disabled:e.value.trim()==="",className:"shrink-0",children:t==="add"?"Add":"Save"}),C.jsx(Kt,{variant:"ghost",size:"sm",onClick:c,"aria-label":"Cancel clause edit",icon:C.jsx($o,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(wae,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${fd(e.field)} suggestions`}),u&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:u})]})}function $ae({preview:e}){const t=uj(e);if(e.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(rp,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]});if(e.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(pc,{className:"size-3.5 shrink-0","aria-hidden":"true"}),t]});const n=e.count===0;return C.jsxs("p",{className:Pe("flex items-center gap-2 text-xs",e.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[e.stale&&C.jsx(rp,{className:"size-3.5 animate-spin","aria-hidden":"true"}),t]})}const jv=(e,t)=>t.length===0?[e]:e.split(t),Bae=(e,t)=>{const n=jv(e,t);return n[n.length-1]||e},ip=(e,t)=>{if(t.length===0)return"";const n=e.lastIndexOf(t);return n===-1?"":e.slice(0,n)},vj=(e,t)=>jv(e,t).length-1,lp=(e,t)=>{const n=[];let r=e,a=ip(r,t);for(;a&&a.length<r.length;)n.push(a),r=a,a=ip(r,t);return n},Hae=(e,t)=>{const n=new Set(e.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const c of e)ip(c.path,t)===i.path&&s(c)}};for(const i of e){const c=ip(i.path,t);c&&n.has(c)||s(i)}return a},yj=(e,t)=>e.label.toLowerCase().includes(t)||e.path.toLowerCase().includes(t),qae=(e,t,n)=>{const r=new Set;if(!t)return r;for(const a of e)if(yj(a,t))for(const s of lp(a.path,n))r.add(s);return r},Vae=(e,t,n,r=new Set)=>{const a=(c,u)=>({folder:c,depth:vj(c.path,n),context:u,expanded:r.has(c.path)});if(!t)return e.map(c=>a(c,!1));const s=new Set;for(const c of e)yj(c,t)&&s.add(c.path);const i=new Set(s);for(const c of s)for(const u of lp(c,n))i.add(u);return e.filter(c=>i.has(c.path)).map(c=>a(c,!s.has(c.path)))},Wae=(e,t,n)=>{const r=new Set(e.map(a=>a.path));return e.filter(a=>lp(a.path,n).every(s=>!r.has(s)||t.has(s))).map(a=>({folder:a,depth:vj(a.path,n),context:!1,expanded:t.has(a.path)}))},Gae=(e,t)=>{if(t.length===0)return e.map((s,i)=>({kind:"folder",row:s,index:i}));const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${t}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return e.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},Kae=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",Ds=e=>e!==void 0&&!e.context,bw=e=>e!==void 0&&!e.folder.isCurrent&&!e.context,Sw=e=>{for(let t=0;t<e.length;t+=1)if(Ds(e[t]))return t;return-1},Yae=e=>{for(let t=e.length-1;t>=0;t-=1)if(Ds(e[t]))return t;return-1},K6=(e,t,n)=>{const r=e.length;if(r<=0)return-1;const a=t<0?n===1?-1:r:t;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Ds(e[i]))return i}return-1},Zae=(e,t,n)=>{const r=e[t];if(!r)return-1;const a=ip(r.folder.path,n);if(!a)return-1;for(let s=t-1;s>=0;s-=1)if(e[s]?.folder.path===a)return Ds(e[s])?s:-1;return-1},w3="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",bj=14,Xae=60,x3=({depth:e})=>e>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:e*bj}}):null,C3=({depth:e})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:Xae+e*bj}}),Qae=({label:e,depth:t,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:c,messageCount:u,failure:f,separated:h=!1,actions:m,tabIndex:g,onActivate:y,onFocus:w,ref:b})=>{const x=C.jsx(dne,{className:Pe("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),E=C.jsx(bne,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"}),k=u===void 0?null:C.jsxs("span",{"aria-hidden":"true",className:"shrink-0 text-2xs text-fg-subtle",children:[u," ",u===1?"msg":"msgs"]}),A=C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block truncate",children:e}),f&&C.jsxs("span",{className:"flex items-center gap-1 text-2xs text-danger",children:[C.jsx(Sz,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"truncate",children:f})]})]}),R=f?`${r} — ${f}`:r;return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":t+1,"aria-selected":!1,"aria-expanded":n,"aria-label":R,className:Pe(w3,"opacity-60"),children:[C.jsx(x3,{depth:t}),x,E,A,k]}),m,h&&C.jsx(C3,{depth:t})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:b,type:"button",role:"treeitem","aria-level":t+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":R,tabIndex:g,onClick:y,onFocus:w,className:Pe(w3,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(x3,{depth:t}),x,E,A,k,i&&c&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:c}),a&&C.jsx(Nv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),m,h&&C.jsx(C3,{depth:t})]})},Y6=({label:e,ariaLabel:t,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Pe("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":t,"data-prominence":r,className:Pe(w3,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(x3,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(vne,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:e})]}),a&&C.jsx(C3,{depth:n})]}),Sj={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},Jae=({parentLabel:e,name:t,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:c})=>{const u={...Sj,...c},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(eA,{htmlFor:f,children:u.nameLabel}),C.jsx(hs,{id:f,ref:h,value:t,placeholder:u.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[u.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:e})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(Kt,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:u.cancel}),C.jsx(Kt,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?u.createPending:u.create})]})]})},ese={...Sj,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:e=>`No folders match "${e}"`,noFolders:"No folders to show",optionLabel:e=>`Move to ${e.label}`,newFolder:"New folder",newSubfolder:e=>`New folder inside ${e}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},nA=({folders:e,selectedId:t,onSelect:n,rowActions:r,rowFailure:a,onCreateFolder:s,onCancel:i,delimiter:c="/",labels:u,autoFocusFilter:f=!1})=>{const h={...ese,...u},[m,g]=_.useState(""),[y,w]=_.useState(()=>{const te=e.find(ve=>ve.id===t);return new Set(te?lp(te.path,c):[])}),[b,x]=_.useState(null),[E,k]=_.useState(""),[A,R]=_.useState(),[P,O]=_.useState(!1),[T,M]=_.useState(-1),z=_.useRef([]),q=_.useRef(null),U=_.useRef(!1),L=_.useRef(null);_.useEffect(()=>()=>L.current?.abort(),[]),_.useEffect(()=>{f&&q.current?.focus()},[f]);const B=m.trim().toLowerCase(),G=_.useMemo(()=>Hae(e,c),[e,c]),ie=_.useMemo(()=>{const te=qae(G,B,c);return te.size===0?y:new Set([...y,...te])},[G,y,B,c]),$=_.useMemo(()=>B?Vae(G,B,c,ie):Wae(G,ie,c),[G,B,c,ie]),X=_.useMemo(()=>s?Gae($,c):void 0,[$,c,s]);_.useEffect(()=>{M(te=>Ds($[te])?te:Sw($))},[$]),_.useEffect(()=>{U.current&&(U.current=!1,!(T<0)&&z.current[T]?.focus())},[T]);const re=_.useCallback((te,ve)=>{w(Le=>{if(ve)return new Set([...lp(te,c),te]);const we=new Set(Le);return we.delete(te),we})},[c]),pe=_.useCallback(te=>{bw(te)&&n?.(te.folder.id),re(te.folder.path,!te.expanded)},[n,re]),_e=_.useCallback(()=>{L.current?.abort(),x(null),k(""),R(void 0),O(!1)},[]),j=_.useCallback(te=>{L.current?.abort(),x({anchorId:te?.id??null,parentPath:te?.path??"",parentLabel:te?.label??h.topLevel}),k(""),R(void 0),O(!1)},[h.topLevel]),Y=_.useCallback(()=>{if(!s||!b||P)return;const te=E.trim();if(te===""){R(h.nameRequired);return}O(!0),R(void 0),L.current?.abort();const ve=new AbortController;L.current=ve;const Le=b.parentPath;s(te,Le,ve.signal).then(we=>{O(!1),x(null),k(""),Le&&re(Le,!0),n?.(we.id)}).catch(we=>{Kae(we)||(R(we instanceof Error?we.message:h.createError),O(!1))})},[s,b,P,E,n,re,h.nameRequired,h.createError]),Z=_.useCallback(te=>{const ve=te.target;if(!(ve instanceof Element)||!ve.closest('[role="treeitem"]'))return;const Le=nt=>{te.preventDefault(),U.current=!0,M(nt)},we=$[T];switch(te.key){case"ArrowDown":return Le(K6($,T,1));case"ArrowUp":return Le(K6($,T,-1));case"Home":return Le(Sw($));case"End":return Le(Yae($));case"ArrowRight":{if(!Ds(we)||!we)return;if(te.preventDefault(),!we.expanded){re(we.folder.path,!0);return}const nt=T+1;Ds($[nt])&&Le(nt);return}case"ArrowLeft":{if(!Ds(we)||!we)return;if(te.preventDefault(),we.expanded){re(we.folder.path,!1);return}const nt=Zae($,T,c);nt>=0&&Le(nt);return}case"Enter":case" ":{if(!Ds(we)||!we)return;te.preventDefault(),pe(we);return}case"Escape":te.preventDefault(),i?.();return;default:return}},[$,T,c,pe,re,i]),Q=b!==null&&b.anchorId!==null&&(X?.some(te=>te.kind==="create"&&te.parent.id===b.anchorId)??!1),se=b&&C.jsx(Jae,{parentLabel:b.parentLabel,name:E,onNameChange:te=>{k(te),R(void 0)},onSubmit:Y,onCancel:_e,pending:P,error:A,labels:h}),le=te=>te.context?`${te.folder.label} ${h.contextSuffix}`:bw(te)?h.optionLabel(te.folder):`${te.folder.label} ${h.currentSuffix}`,me=(te,ve,Le)=>{const{folder:we,depth:nt}=te,Ue=bw(te);return C.jsx(Qae,{ref:He=>{z.current[ve]=He},label:we.label,depth:nt,expanded:te.expanded,context:te.context,current:we.isCurrent,currentTag:h.currentTag,messageCount:we.messageCount,selected:Ue&&we.id===t,separated:Le,failure:a?.(we),actions:r?.(we),ariaLabel:le(te),tabIndex:ve===T?0:-1,onActivate:()=>pe(te),onFocus:()=>M(ve)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(hs,{ref:q,variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(Cne,{className:"size-4","aria-hidden":"true"}),type:"search",value:m,onChange:te=>g(te.target.value),onKeyDown:te=>{if(te.key==="Escape"){te.preventDefault(),i?.();return}if(te.key!=="ArrowDown")return;te.preventDefault();const ve=Ds($[T])?T:Sw($);ve<0||(U.current=!0,M(ve),z.current[ve]?.focus())},placeholder:h.filterPlaceholder,"aria-label":h.filterAriaLabel}),s&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:b&&!Q?se:C.jsx(Y6,{label:h.newFolder,ariaLabel:h.newFolder,prominence:"prominent",onOpen:()=>j(null)})}),$.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:e.length===0?h.noFolders:h.emptyMessage(m)}):C.jsx("div",{role:"tree","aria-label":h.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:Z,children:(X??$.map((te,ve)=>({kind:"folder",row:te,index:ve}))).map((te,ve,Le)=>{const we=ve<Le.length-1;return te.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":te.parent.id,children:b?.anchorId===te.parent.id?se:C.jsx(Y6,{label:h.newFolder,ariaLabel:h.newSubfolder(te.parent.label),depth:te.depth,prominence:"quiet",separated:we,onOpen:()=>j(te.parent)})},`new:${te.parent.id}`):C.jsx("div",{role:"none",children:me(te.row,te.index,we)},te.row.folder.id)})})]})},E3={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},ePe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],tse=e=>Object.hasOwn(E3,e);function nse({label:e,onRemove:t,className:n}){const r=tse(e.color)?E3[e.color]:E3.Default;return C.jsxs("span",{className:Pe("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[C.jsx("span",{className:Pe("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:e.name}),t&&C.jsx("button",{type:"button",onClick:()=>t(e.labelId),"aria-label":`Remove label ${e.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}const rse={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function _3({name:e,options:t,value:n,onChange:r,size:a="md","aria-label":s}){const i=t.findIndex(c=>c.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:t.map((c,u)=>{const f=c.value===n,h=!f&&u<t.length-1&&i!==u+1;return C.jsxs("label",{className:Pe("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",rse[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:e,value:c.value,checked:f,onChange:()=>r(c.value),className:"sr-only"}),c.label]},c.value)})})}const ase=[{value:"all",label:g1("all")},{value:"any",label:g1("any")}],Z6=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],X6="__filter_create_label__";function sse({folders:e,value:t,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[c,u]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(e.map(k=>k.id));return[...e,...f.filter(k=>!E.has(k.id))]},[e,f]),g=_.useMemo(()=>{if(a)return async(E,k,A)=>{const R=await a(E,k,A);return h(P=>P.some(O=>O.id===R.id)?P:[...P,R]),R}},[a]),y=m.find(E=>E.id===t),w=m.find(E=>E.id===c),b=E=>{const k=jv(E.path,n);return k.map((A,R)=>{const P=k.slice(0,R+1).join(n);return m.find(O=>O.path===P)?.label??A}).join(" / ")},x=()=>{i(!1),u(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(nA,{folders:m,selectedId:c,delimiter:n,onSelect:u,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),w?C.jsx(Kt,{variant:"primary",onClick:()=>{r?.(w.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${b(w)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(Kt,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?b(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(Kt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{u(t),i(!0)},children:"Choose a folder"}),y&&C.jsx(Kt,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function ose({labels:e,value:t,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,c]=_.useState(""),[u,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),w=_.useMemo(()=>{const A=new Set(e.map(R=>R.id));return[...e,...g.filter(R=>!A.has(R.id))]},[e,g]),b=w.find(A=>A.id===t),x=A=>{if(A===X6){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(P=>P.some(O=>O.id===R.id)?P:[...P,R]),n?.(R.id),s(!1),c(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),c(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(ij,{"aria-label":"Label to apply",value:t,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),w.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:X6,children:"+ New label…"})]}),b&&C.jsx(nse,{label:{...b,labelId:b.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(hs,{value:i,onChange:A=>c(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:u,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(Kt,{variant:"primary",size:"sm",onClick:E,disabled:u||i.trim()==="",children:u?"Creating…":"Create label"}),C.jsx(Kt,{variant:"ghost",size:"sm",onClick:k,disabled:u,children:"Cancel"})]})]})]})}function tPe({rule:e,folders:t,delimiter:n,labels:r=[],preview:a,notice:s,clauseFields:i,persisted:c=!1,clauseSuggestions:u,clauseEdit:f,onStartAddClause:h,onStartEditClause:m,onRemoveClause:g,onChangeDraftField:y,onChangeDraftValue:w,onSubmitClause:b,onCancelClause:x,onChangeMatchOperator:E,onChangeMove:k,onCreateFolder:A,onChangeLabel:R,onCreateLabel:P,onChangeScope:O,onChangeName:T,onChangeUntil:M,onCommit:z,onCancel:q}){const U=e.clauses.length>=2,L=tA(e.matchOperator),B=Fae(e,a),G=e.scope==="standing"||e.scope==="until",ie=c?Z6.filter($=>$.value!=="once"):Z6;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.clauses.map(($,X)=>C.jsxs(_.Fragment,{children:[X>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:L}),C.jsx(pj,{clause:$,onEdit:()=>m?.($.id),onRemove:()=>g?.($.id)})]},$.id)),!f&&C.jsx(mj,{label:"Add clause",onClick:h})]}),f&&C.jsx(gj,{draft:f.draft,mode:f.mode,fields:i,suggestions:u,onChangeField:y,onChangeValue:w,onSubmit:b,onCancel:x}),U&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(_3,{name:"match-operator",size:"sm","aria-label":"Match operator",options:ase,value:e.matchOperator,onChange:$=>E?.($)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(sse,{folders:t,value:e.moveMailboxId,delimiter:n,onChangeMove:k,onCreateFolder:A})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(ose,{labels:r,value:e.labelId??"",onChangeLabel:R,onCreateLabel:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(_3,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:ie,value:e.scope,onChange:$=>O?.($)}),G&&C.jsx(hs,{value:e.name??"",onChange:$=>T?.($.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),e.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(hs,{type:"date",value:e.until??"",onChange:$=>M?.($.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx($ae,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[B&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:B}),C.jsx(Kt,{variant:"primary",onClick:z,disabled:B!==void 0,className:"w-full",children:dj(e.scope)}),C.jsx(Kt,{variant:"ghost",onClick:q,className:"w-full",children:"Not now"})]})]})}function ise({count:e,activeStep:t}){return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:Array.from({length:e},(n,r)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Pe("h-1 flex-1 rounded-full transition-colors",r<=t?"bg-accent":"bg-surface-sunken"),"aria-current":r===t?"step":void 0})},r))})}function lse({title:e,subtitle:t,steps:n,activeStep:r,onBack:a,onExit:s,footer:i,children:c,anchor:u="viewport",bodyFit:f="scroll"}){const h=u==="container",m=_.useRef(null);Mv(m,!h);const g=Pe("z-50 flex flex-col font-sans text-fg",h?"absolute inset-0":"fixed inset-0 md:items-center md:justify-center md:bg-black/40 md:p-6"),y=C.jsxs("div",{className:Pe("flex min-h-0 w-full flex-1 flex-col bg-canvas",!h&&"md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg"),children:[C.jsxs("header",{className:Pe("shrink-0 border-b border-line px-3 pb-2",h?"pt-3":"pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3"),children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(bz,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:e}),t&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:t})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx($o,{className:"size-5"})})]}),n.length>1&&C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(ise,{count:n.length,activeStep:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",r+1," of ",n.length," · ",n[r]]})]})]}),C.jsx("div",{className:Pe("min-h-0 flex-1",f==="fill"?"overflow-hidden":"overflow-y-auto px-4 py-4"),children:c}),i&&C.jsx("footer",{className:Pe("shrink-0 border-t border-line px-4 py-3",h?"":"pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3"),children:i})]});return h?C.jsx("section",{ref:m,"aria-label":e,tabIndex:-1,className:g,children:y}):C.jsx("section",{ref:m,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,className:g,children:y})}const cse={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function use(e){return cse[e]}const dse=new Set(["all","flagged"]);function fse(e){return dse.has(e)}const hse=new Set(["[Gmail]","[Google Mail]"]);function pse(e){if(e.role)return fse(e.role)?void 0:use(e.role);if(!e.providerPath)return;const t=jv(e.providerPath,e.hierarchyDelimiter);if(!hse.has(t[0]))return Bae(e.providerPath,e.hierarchyDelimiter)}function nPe(e){return e==="inbox"?C.jsx(wz,{className:"size-4"}):e==="drafts"?C.jsx(pne,{className:"size-4"}):e==="sent"?C.jsx(Ene,{className:"size-4"}):e==="archive"?C.jsx(ine,{className:"size-4"}):e==="junk"?C.jsx(qk,{className:"size-4"}):e==="trash"?C.jsx(Ane,{className:"size-4"}):e==="flagged"?C.jsx(_ne,{className:"size-4"}):C.jsx(Sne,{className:"size-4"})}function mse(e,t,n){return Math.max(t,Math.min(e,n))}const xr={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Q6(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function J6(e,t,n,r=.15){return r===0?mse(e,t,n):e<t?-Q6(t-e,n-t,r)+t:e>n?+Q6(e-n,n-t,r)+n:e}function gse(e,[t,n],[r,a]){const[[s,i],[c,u]]=e;return[J6(t,s,i,r),J6(n,c,u,a)]}function vse(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yse(e){var t=vse(e,"string");return typeof t=="symbol"?t:String(t)}function Zr(e,t,n){return t=yse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(r){Zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const wj={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function tN(e){return e?e[0].toUpperCase()+e.slice(1):""}const bse=["enter","leave"];function Sse(e=!1,t){return e&&!bse.includes(t)}function wse(e,t="",n=!1){const r=wj[e],a=r&&r[t]||t;return"on"+tN(e)+tN(a)+(Sse(n,a)?"Capture":"")}const xse=["gotpointercapture","lostpointercapture"];function Cse(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=xse.includes(t)?"capturecapture":"capture",a=!!~t.indexOf(r);return a&&(t=t.replace("capture","")),{device:t,capture:a,passive:n}}function Ese(e,t=""){const n=wj[e],r=n&&n[t]||t;return e+r}function Fv(e){return"touches"in e}function xj(e){return Fv(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function _se(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function kse(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Cj(e){return Fv(e)?kse(e)[0]:e}function Ase(e){return _se(e).map(t=>t.identifier)}function ww(e){const t=Cj(e);return Fv(e)?t.identifier:t.pointerId}function nN(e){const t=Cj(e);return[t.clientX,t.clientY]}function Ise(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:a,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:a,ctrlKey:s})}return t}function v1(e,...t){return typeof e=="function"?e(...t):e}function Tse(){}function Rse(...e){return e.length===0?Tse:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function rN(e,t){return Object.assign({},t,e||{})}const Ose=32;class Nse{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:a}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=a,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?v1(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:a}=this;n.args=this.args;let s=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,a.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,a.locked=!!document.pointerLockElement,Object.assign(a,Ise(t)),a.down=a.pressed=a.buttons%2===1||a.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const O=n._delta.map(Math.abs);xr.addTo(n._distance,O)}this.axisIntent&&this.axisIntent(t);const[i,c]=n._movement,[u,f]=r.threshold,{_step:h,values:m}=n;if(r.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(i)>=u&&m[0]),h[1]===!1&&(h[1]=Math.abs(c)>=f&&m[1])):(h[0]===!1&&(h[0]=Math.abs(i)>=u&&Math.sign(i)*u),h[1]===!1&&(h[1]=Math.abs(c)>=f&&Math.sign(c)*f)),n.intentional=h[0]!==!1||h[1]!==!1,!n.intentional)return;const g=[0,0];if(r.hasCustomTransform){const[O,T]=m;g[0]=h[0]!==!1?O-h[0]:0,g[1]=h[1]!==!1?T-h[1]:0}else g[0]=h[0]!==!1?i-h[0]:0,g[1]=h[1]!==!1?c-h[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const y=n.offset,w=n._active&&!n._blocked||n.active;w&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=a[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=v1(r.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[b,x]=n.offset,[[E,k],[A,R]]=n._bounds;n.overflow=[b<E?-1:b>k?1:0,x<A?-1:x>R?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const P=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=gse(n._bounds,n.offset,P),n.delta=xr.sub(n.offset,y),this.computeMovement(),w&&(!n.last||s>Ose)){n.delta=xr.sub(n.offset,y);const O=n.delta.map(Math.abs);xr.addTo(n.distance,O),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[O[0]/s,O[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const a=this.handler(yn(yn(yn({},n),t),{},{[this.aliasKey]:t.values}));a!==void 0&&(t.memo=a)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Mse([e,t],n){const r=Math.abs(e),a=Math.abs(t);if(r>a&&r>n)return"x";if(a>r&&a>n)return"y"}class Pse extends Nse{constructor(...t){super(...t),Zr(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=xr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=xr.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const a=typeof r.axisThreshold=="object"?r.axisThreshold[xj(t)]:r.axisThreshold;n.axis=Mse(n._movement,a)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Dse=e=>e,aN=.15,Ej={enabled(e=!0){return e},eventOptions(e,t,n){return yn(yn({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[aN,aN];case!1:return[0,0];default:return xr.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return xr.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Dse},threshold(e){return xr.toVector(e,0)}},Lse=0,Wp=yn(yn({},Ej),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Lse){return e},bounds(e={}){if(typeof e=="function")return s=>Wp.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:a=1/0}=e;return[[t,n],[r,a]]}}),sN={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Use extends Pse{constructor(...t){super(...t),Zr(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),a={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Wp.bounds(a)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const a=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(a&&a.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=ww(t),r._pointerActive=!0,this.computeValues(nN(t)),this.computeInitial(),n.preventScrollAxis&&xj(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const a=ww(t);if(n._pointerId!==void 0&&a!==n._pointerId)return;const s=nN(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=xr.sub(s,n._values),this.computeValues(s)),xr.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const a=ww(t);if(n._pointerId!==void 0&&a!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[s,i]=n._distance;if(n.tap=s<=r.tapsThreshold&&i<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[c,u]=n._delta,[f,h]=n._movement,[m,g]=r.swipe.velocity,[y,w]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTime<b){const x=Math.abs(c/n.timeDelta),E=Math.abs(u/n.timeDelta);x>m&&Math.abs(f)>y&&(n.swipe[0]=Math.sign(c)),E>g&&Math.abs(h)>w&&(n.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,zse(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=sN[t.key];if(n){const r=this.state,a=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,a),r._keyboardActive=!0,xr.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in sN&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function zse(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Gp=typeof window<"u"&&window.document&&window.document.createElement;function _j(){return Gp&&"ontouchstart"in window}function jse(){return _j()||Gp&&window.navigator.maxTouchPoints>1}function Fse(){return Gp&&"onpointerdown"in window}function $se(){return Gp&&"exitPointerLock"in window.document}function Bse(){try{return"constructor"in GestureEvent}catch{return!1}}const za={isBrowser:Gp,gesture:Bse(),touch:_j(),touchscreen:jse(),pointer:Fse(),pointerLock:$se()},Hse=250,qse=180,Vse=.5,Wse=50,Gse=250,Kse=10,oN={mouse:0,touch:0,pen:8},Yse=yn(yn({},Wp),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:a=!1}={}}){return this.pointerLock=r&&za.pointerLock,za.touch&&n?"touch":this.pointerLock?"mouse":za.pointer&&!a?"pointer":za.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Hse:void 0,!(!za.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:a=!0}={}}){return this.pointerButtons=r,this.keys=a,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:a=void 0}){const s=xr.toVector(e,n?r:a?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:e=Vse,distance:t=Wse,duration:n=Gse}={}){return{velocity:this.transform(xr.toVector(e)),distance:this.transform(xr.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return qse;case!1:return 0;default:return e}},axisThreshold(e){return e?yn(yn({},oN),e):oN},keyboardDisplacement(e=Kse){return e}});yn(yn({},Ej),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!za.touch&&za.gesture)return"gesture";if(za.touch&&r)return"touch";if(za.touchscreen){if(za.pointer)return"pointer";if(za.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const a=i=>{const c=rN(v1(n,i),{min:-1/0,max:1/0});return[c.min,c.max]},s=i=>{const c=rN(v1(r,i),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof n!="function"&&typeof r!="function"?[a(),s()]:i=>[a(i),s(i)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",xr.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});yn(yn({},Wp),{},{mouseOnly:(e=!0)=>e});yn(yn({},Wp),{},{mouseOnly:(e=!0)=>e});const kj=new Map,k3=new Map;function Zse(e){kj.set(e.key,e.engine),k3.set(e.key,e.resolver)}const Xse={key:"drag",engine:Use,resolver:Yse};function Qse(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Jse(e,t){if(e==null)return{};var n=Qse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const eoe={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=za.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},toe=["target","eventOptions","window","enabled","transform"];function $0(e={},t){const n={};for(const[r,a]of Object.entries(t))switch(typeof a){case"function":n[r]=a.call(n,e[r],r,e);break;case"object":n[r]=$0(e[r],a);break;case"boolean":a&&(n[r]=e[r]);break}return n}function noe(e,t,n={}){const r=e,{target:a,eventOptions:s,window:i,enabled:c,transform:u}=r,f=Jse(r,toe);if(n.shared=$0({target:a,eventOptions:s,window:i,enabled:c,transform:u},eoe),t){const h=k3.get(t);n[t]=$0(yn({shared:n.shared},f),h)}else for(const h in f){const m=k3.get(h);m&&(n[h]=$0(yn({shared:n.shared},f[h]),m))}return n}class Aj{constructor(t,n){Zr(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,a,s){const i=this._listeners,c=Ese(n,r),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},f=yn(yn({},u),s);t.addEventListener(c,a,f);const h=()=>{t.removeEventListener(c,a,f),i.delete(h)};return i.add(h),h}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class roe{constructor(){Zr(this,"_timeouts",new Map)}add(t,n,r=140,...a){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...a))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>{window.clearTimeout(t)}),this._timeouts.clear()}}class aoe{constructor(t){Zr(this,"gestures",new Set),Zr(this,"_targetEventStore",new Aj(this)),Zr(this,"gestureEventStores",{}),Zr(this,"gestureTimeoutStores",{}),Zr(this,"handlers",{}),Zr(this,"config",{}),Zr(this,"pointerIds",new Set),Zr(this,"touchIds",new Set),Zr(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),soe(this,t)}setEventIds(t){if(Fv(t))return this.touchIds=new Set(Ase(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=noe(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let a;if(!(n.target&&(a=n.target(),!a))){if(n.enabled){for(const i of this.gestures){const c=this.config[i],u=iN(r,c.eventOptions,!!a);if(c.enabled){const f=kj.get(i);new f(this,t,i).bind(u)}}const s=iN(r,n.eventOptions,!!a);for(const i in this.nativeHandlers)s(i,"",c=>this.nativeHandlers[i](yn(yn({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const s in r)r[s]=Rse(...r[s]);if(!a)return r;for(const s in r){const{device:i,capture:c,passive:u}=Cse(s);this._targetEventStore.add(a,i,"",r[s],{capture:c,passive:u})}}}}function Ru(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Aj(e,t),e.gestureTimeoutStores[t]=new roe}function soe(e,t){t.drag&&Ru(e,"drag"),t.wheel&&Ru(e,"wheel"),t.scroll&&Ru(e,"scroll"),t.move&&Ru(e,"move"),t.pinch&&Ru(e,"pinch"),t.hover&&Ru(e,"hover")}const iN=(e,t,n)=>(r,a,s,i={},c=!1)=>{var u,f;const h=(u=i.capture)!==null&&u!==void 0?u:t.capture,m=(f=i.passive)!==null&&f!==void 0?f:t.passive;let g=c?r:wse(r,a,h);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},xw=10,ooe={axisThreshold:{mouse:xw,touch:xw,pen:xw},swipe:{distance:60,velocity:.3,duration:600},pointer:{keys:!1,capture:!1}};function ioe(e,t={},n,r){const a=F.useMemo(()=>new aoe(e),[]);if(a.applyHandlers(e,r),a.applyConfig(t,n),F.useEffect(a.effect.bind(a)),F.useEffect(()=>a.clean.bind(a),[]),t.target===void 0)return a.bind.bind(a)}function loe(e,t){return Zse(Xse),ioe({drag:e},t||{},"drag")}const lN="remit:swipe",rPe=_.createContext(!1),coe=1.01,uoe=e=>{const{event:t}=e;if("pointerType"in t&&t.pointerType!=="touch"||t.type!=="pointerup")return null;const n=e.swipe[0];return n<0?"left":n>0?"right":null},doe=e=>{const t=window.visualViewport;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)},foe=()=>(window.visualViewport?.scale??1)>coe,aPe=({onSwipeLeft:e,onSwipeRight:t})=>{const n=_.useRef(null),r=e!==void 0||t!==void 0,a=_.useSyncExternalStore(doe,foe,()=>!1),s=c=>{c==="left"&&e?.(),c==="right"&&t?.()},i=loe(c=>s(uoe(c)),{...ooe,axis:"x",enabled:r&&!a});return _.useEffect(()=>{const c=n.current;if(!c||!r||a)return;const u=f=>{if(!(f instanceof CustomEvent))return;const{detail:h}=f;(h==="left"||h==="right")&&s(h)};return c.addEventListener(lN,u),()=>c.removeEventListener(lN,u)}),{ref:n,bind:i,touchAction:r&&!a?"pan-y pinch-zoom":"auto",enabled:r}},Ij={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},hoe=({label:e,onRemove:t,tone:n="filter",className:r})=>C.jsxs("span",{className:Pe("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",Ij[n],r),children:[C.jsx("span",{children:e}),C.jsx("button",{type:"button",onClick:t,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${e}`,children:C.jsx($o,{className:"size-3"})})]}),poe=_.forwardRef(({label:e,onRemove:t,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:c},u)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Pe("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",Ij[r],a&&"ring-2 ring-ring",c),children:[C.jsx("button",{ref:u,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Pe("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:e}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:t,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${e}`,children:C.jsx($o,{className:"size-3"})})]}));poe.displayName="SearchChipRow";const sPe=({tokens:e,className:t})=>e.length===0?null:C.jsx("div",{className:Pe("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",t),children:e.map(n=>C.jsx(hoe,{label:n.label,onRemove:n.onRemove},n.label))});function cN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function moe(e){if(Array.isArray(e))return e}function goe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,i,c=[],u=!0,f=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(h){f=!0,a=h}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw a}}return c}}function voe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yoe(e,t){return moe(e)||goe(e,t)||boe(e,t)||voe()}function boe(e,t){if(e){if(typeof e=="string")return cN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cN(e,t):void 0}}const Tj=Object.entries,uN=Object.setPrototypeOf,Soe=Object.isFrozen,Rj=Object.getPrototypeOf,Oj=Object.getOwnPropertyDescriptor;let Qn=Object.freeze,pr=Object.seal,Vu=Object.create,Nj=typeof Reflect<"u"&&Reflect,A3=Nj.apply,I3=Nj.construct;Qn||(Qn=function(t){return t});pr||(pr=function(t){return t});A3||(A3=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];return t.apply(n,a)});I3||(I3=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new t(...r)});const Eo=hn(Array.prototype.forEach),woe=hn(Array.prototype.lastIndexOf),dN=hn(Array.prototype.pop),oh=hn(Array.prototype.push),xoe=hn(Array.prototype.slice),Coe=hn(Array.prototype.splice),hd=Array.isArray,Cw=Mj(Set),Ew=hn(Set.prototype.add),ih=hn(Set.prototype.has),ql=hn(String.prototype.toLowerCase),_w=hn(String.prototype.toString),fN=hn(String.prototype.match),lh=hn(String.prototype.replace),hN=hn(String.prototype.indexOf),Eoe=hn(String.prototype.trim),_oe=hn(Number.prototype.toString),koe=hn(Boolean.prototype.toString),pN=typeof BigInt>"u"?null:hn(BigInt.prototype.toString),mN=typeof Symbol>"u"?null:hn(Symbol.prototype.toString),Yr=hn(Object.prototype.hasOwnProperty),ch=hn(Object.prototype.toString),dr=hn(RegExp.prototype.test),_o=Mj(TypeError);function hn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return A3(e,t,r)}}function Mj(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return I3(e,n)}}function _t(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ql;if(uN&&uN(e,null),!hd(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const s=n(a);s!==a&&(Soe(t)||(t[r]=s),a=s)}e[a]=!0}return e}function Aoe(e){for(let t=0;t<e.length;t++)Yr(e,t)||(e[t]=null);return e}function ga(e){const t=Vu(null);for(const r of Tj(e)){var n=yoe(r,2);const a=n[0],s=n[1];Yr(e,a)&&(hd(s)?t[a]=Aoe(s):s&&typeof s=="object"&&s.constructor===Object?t[a]=ga(s):t[a]=s)}return t}function Ioe(e){switch(typeof e){case"string":return e;case"number":return _oe(e);case"boolean":return koe(e);case"bigint":return pN?pN(e):"0";case"symbol":return mN?mN(e):"Symbol()";case"undefined":return ch(e);case"function":case"object":{if(e===null)return ch(e);const t=e,n=Da(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:ch(r)}return ch(e)}default:return ch(e)}}function Da(e,t){for(;e!==null;){const r=Oj(e,t);if(r){if(r.get)return hn(r.get);if(typeof r.value=="function")return hn(r.value)}e=Rj(e)}function n(){return null}return n}function Toe(e,t){for(;e!==null;){const n=Oj(e,t);if(n)return n.get?hn(n.get):null;e=Rj(e)}return null}function Roe(e){try{return dr(e,""),!0}catch{return!1}}const gN=Qn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kw=Qn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Aw=Qn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ooe=Qn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Iw=Qn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Noe=Qn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vN=Qn(["#text"]),yN=Qn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Tw=Qn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),bN=Qn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lg=Qn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Moe=pr(/{{[\w\W]*|^[\w\W]*}}/g),Poe=pr(/<%[\w\W]*|^[\w\W]*%>/g),Doe=pr(/\${[\w\W]*/g),Loe=pr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uoe=pr(/^aria-[\-\w]+$/),SN=pr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zoe=pr(/^(?:\w+script|data):/i),joe=pr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Foe=pr(/^html$/i),$oe=pr(/^[a-z][.\w]*(-[.\w]+)+$/i),Rw=pr(/<[/\w!]/g),wN=pr(/<[/\w]/g),Boe=pr(/<\/no(script|embed|frames)/i),xN=pr(/\/>/i),Dn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hoe=Qn(_t({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),qoe=function(){return typeof window>"u"?null:window},Voe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},CN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ui=function(t,n,r,a){return Yr(t,n)&&hd(t[n])?_t(a.base?ga(a.base):{},t[n],a.transform):r},Ow=function(t,n,r){const a=Yr(t,n)?t[n]:void 0;return a&&typeof a=="object"?ga(a):r()};function Pj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qoe();const t=ge=>Pj(ge);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Dn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,a=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,i=e.Node,c=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,h=e.trustedTypes,m=c.prototype,g=Da(m,"cloneNode"),y=Da(m,"remove"),w=Da(m,"removeAttributeNode"),b=Da(m,"nextSibling"),x=Da(m,"childNodes"),E=Da(m,"parentNode"),k=Da(m,"shadowRoot"),A=Da(m,"attributes"),R=i&&i.prototype?Da(i.prototype,"nodeType"):null,P=i&&i.prototype?Da(i.prototype,"nodeName"):null,O=i&&i.prototype?Da(i.prototype,"ownerDocument"):null,T=function(D){return R?R(D):D.nodeType},M=function(D){return P?P(D):D.nodeName},z=Toe(m,"namespaceURI"),q=function(D){return z?z(D):D.namespaceURI};if(typeof s=="function"){const ge=n.createElement("template");ge.content&&ge.content.ownerDocument&&(n=ge.content.ownerDocument)}let U,L="",B,G=!1,ie=0;const $=function(){if(ie>0)throw _o('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},X=function(D){$(),ie++;try{return U.createHTML(D)}finally{ie--}},re=function(D){$(),ie++;try{return U.createScriptURL(D)}finally{ie--}},pe=function(){return G||(B=Voe(h,a),G=!0),B},_e=n,j=_e.implementation,Y=_e.createNodeIterator,Z=_e.createDocumentFragment,Q=_e.getElementsByTagName,se=r.importNode;let le=CN();t.isSupported=typeof Tj=="function"&&typeof E=="function"&&j&&j.createHTMLDocument!==void 0;const me=Moe,te=Poe,ve=Doe,Le=Loe,we=Uoe,nt=zoe,Ue=joe,He=$oe;let Ht=SN,Ie=null;const gr=_t({},[...gN,...kw,...Aw,...Iw,...vN]);let qe=null;const jr=_t({},[...yN,...Tw,...bN,...Lg]);let un=Object.seal(Vu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rr=null,gs=null;const Fr=Object.seal(Vu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Fn=!0,Lt=!0,In=!1,$r=!0,vr=!1,Js=!0,vs=!1,nf=!1,qc=null,ys=null,ar=!1,Ar=!1,Wn=!1,Vc=!1,cm=!0,um=!1;const ml="user-content-";let ri=!0,ai=!1,Ir=null,Ka={},sa=null;const dm=_t({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let rf=null;const Wc=_t({},["audio","video","img","source","image","track"]);let si=null;const fm=_t({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gl="http://www.w3.org/1998/Math/MathML",vl="http://www.w3.org/2000/svg",oa="http://www.w3.org/1999/xhtml";let bs=oa,yl=!1,Gc=null;const hm=_t({},[gl,vl,oa],_w),Ya=Qn(["mi","mo","mn","ms","mtext"]);let En=_t({},Ya);const sr=Qn(["annotation-xml"]);let Ss=_t({},sr);const af=_t({},["title","style","font","a","script"]);let bl=null;const Xy=["application/xhtml+xml","text/html"],pm="text/html";let Qt=null,ws=null;const oi=n.createElement("form"),eo=function(D){return D instanceof RegExp||D instanceof Function},to=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ws&&ws===D)return;(!D||typeof D!="object")&&(D={}),D=ga(D),bl=Xy.indexOf(D.PARSER_MEDIA_TYPE)===-1?pm:D.PARSER_MEDIA_TYPE,Qt=bl==="application/xhtml+xml"?_w:ql,Ie=Ui(D,"ALLOWED_TAGS",gr,{transform:Qt}),qe=Ui(D,"ALLOWED_ATTR",jr,{transform:Qt}),Gc=Ui(D,"ALLOWED_NAMESPACES",hm,{transform:_w}),si=Ui(D,"ADD_URI_SAFE_ATTR",fm,{transform:Qt,base:fm}),rf=Ui(D,"ADD_DATA_URI_TAGS",Wc,{transform:Qt,base:Wc}),sa=Ui(D,"FORBID_CONTENTS",dm,{transform:Qt}),rr=Ui(D,"FORBID_TAGS",ga({}),{transform:Qt}),gs=Ui(D,"FORBID_ATTR",ga({}),{transform:Qt}),Ka=Yr(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?ga(D.USE_PROFILES):D.USE_PROFILES:!1,Fn=D.ALLOW_ARIA_ATTR!==!1,Lt=D.ALLOW_DATA_ATTR!==!1,In=D.ALLOW_UNKNOWN_PROTOCOLS||!1,$r=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vr=D.SAFE_FOR_TEMPLATES||!1,Js=D.SAFE_FOR_XML!==!1,vs=D.WHOLE_DOCUMENT||!1,Ar=D.RETURN_DOM||!1,Wn=D.RETURN_DOM_FRAGMENT||!1,Vc=D.RETURN_TRUSTED_TYPE||!1,ar=D.FORCE_BODY||!1,cm=D.SANITIZE_DOM!==!1,um=D.SANITIZE_NAMED_PROPS||!1,ri=D.KEEP_CONTENT!==!1,ai=D.IN_PLACE||!1,Ht=Roe(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:SN,bs=typeof D.NAMESPACE=="string"?D.NAMESPACE:oa,En=Ow(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>_t({},Ya)),Ss=Ow(D,"HTML_INTEGRATION_POINTS",()=>_t({},sr));const W=Ow(D,"CUSTOM_ELEMENT_HANDLING",()=>Vu(null));if(un=Vu(null),Yr(W,"tagNameCheck")&&eo(W.tagNameCheck)&&(un.tagNameCheck=W.tagNameCheck),Yr(W,"attributeNameCheck")&&eo(W.attributeNameCheck)&&(un.attributeNameCheck=W.attributeNameCheck),Yr(W,"allowCustomizedBuiltInElements")&&typeof W.allowCustomizedBuiltInElements=="boolean"&&(un.allowCustomizedBuiltInElements=W.allowCustomizedBuiltInElements),pr(un),vr&&(Lt=!1),Wn&&(Ar=!0),Ka&&(Ie=_t({},vN),qe=Vu(null),Ka.html===!0&&(_t(Ie,gN),_t(qe,yN)),Ka.svg===!0&&(_t(Ie,kw),_t(qe,Tw),_t(qe,Lg)),Ka.svgFilters===!0&&(_t(Ie,Aw),_t(qe,Tw),_t(qe,Lg)),Ka.mathMl===!0&&(_t(Ie,Iw),_t(qe,bN),_t(qe,Lg))),Fr.tagCheck=null,Fr.attributeCheck=null,Yr(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?Fr.tagCheck=D.ADD_TAGS:hd(D.ADD_TAGS)&&(Ie===gr&&(Ie=ga(Ie)),_t(Ie,D.ADD_TAGS,Qt))),Yr(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?Fr.attributeCheck=D.ADD_ATTR:hd(D.ADD_ATTR)&&(qe===jr&&(qe=ga(qe)),_t(qe,D.ADD_ATTR,Qt))),Yr(D,"ADD_FORBID_CONTENTS")&&hd(D.ADD_FORBID_CONTENTS)&&(sa===dm&&(sa=ga(sa)),_t(sa,D.ADD_FORBID_CONTENTS,Qt)),ri&&(Ie["#text"]=!0),vs&&_t(Ie,["html","head","body"]),Ie.table&&(_t(Ie,["tbody"]),delete rr.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw _o('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _o('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=U;U=D.TRUSTED_TYPES_POLICY;try{L=X("")}catch(de){throw U=ue,de}}else D.TRUSTED_TYPES_POLICY===null?(U=void 0,L=""):(U===void 0&&(U=pe()),U&&typeof L=="string"&&(L=X("")));Qn&&Qn(D),ws=D},no=_t({},[...kw,...Aw,...Ooe]),_n=_t({},[...Iw,...Noe]),mm=function(D,W,ue){return W.namespaceURI===oa?D==="svg":W.namespaceURI===gl?D==="svg"&&(ue==="annotation-xml"||En[ue]):!!no[D]},gm=function(D,W,ue){return W.namespaceURI===oa?D==="math":W.namespaceURI===vl?D==="math"&&Ss[ue]:!!_n[D]},ro=function(D,W,ue){return W.namespaceURI===vl&&!Ss[ue]||W.namespaceURI===gl&&!En[ue]?!1:!_n[D]&&(af[D]||!no[D])},ii=function(D){const W=q(D),ue=ql(M(D)),de=E(D);let Ne,je;return de&&T(de)===Dn.element?(Ne={namespaceURI:q(de)},je=ql(M(de))):(Ne={namespaceURI:bs},je="template"),Gc[W]?W===vl?mm(ue,Ne,je):W===gl?gm(ue,Ne,je):W===oa?ro(ue,Ne,je):!!(bl==="application/xhtml+xml"&&Gc[W]):!1},xs=function(D){oh(t.removed,{element:D});try{E(D).removeChild(D)}catch{if(y(D),!E(D))throw _o("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},sf=function(D,W,ue){try{w(D,W)}catch{try{D.removeAttribute(ue)}catch{}}},Kc=function(D){ia(D);const W=x(D);W&&Eo(xoe(W),de=>{try{y(de)}catch{}});const ue=T(D)===Dn.element?A(D):null;if(ue)for(let de=ue.length-1;de>=0;--de){const Ne=ue[de],je=Ne&&Ne.name;typeof je=="string"&&sf(D,Ne,je)}},li=function(D,W,ue){if(!ue)try{ue=W.getAttributeNode(D)}catch{ue=null}oh(t.removed,{attribute:ue||null,from:W});try{ue?w(W,ue):W.removeAttribute(D)}catch{try{W.removeAttribute(D)}catch{}}if(D==="is")if(Ar||Wn)try{xs(W)}catch{}else try{W.setAttribute(D,"")}catch{}},Sl=function(D){const W=A(D);if(W)for(let ue=W.length-1;ue>=0;--ue){const de=W[ue],Ne=de&&de.name;typeof Ne!="string"||qe[Qt(Ne)]||sf(D,de,Ne)}},ci=function(D,W){let ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const de=[D];for(;de.length>0;){const Ne=de.pop();if(W(Ne)===!1)continue;if(ue&&T(Ne)===Dn.element){const at=k(Ne);Cs(at)&&de.push(at)}const je=x(Ne);if(je)for(let at=je.length-1;at>=0;--at)de.push(je[at])}},ia=function(D){ci(D,W=>{T(W)===Dn.element&&Sl(W)})},yr=function(D){const W=[];return ci(D,ue=>{W.push(ue)},!0),W},vm=function(D,W){const ue=Cw();Eo(yr(D),de=>{T(de)===Dn.element&&Ew(ue,de)}),Eo(W,de=>{T(de)===Dn.element&&!ih(ue,de)&&Sl(de)})},ym=function(D,W){let ue=!1;return Eo(t.removed,de=>{de.element&&(ue=ue||de.element===D,ia(de.element))}),vm(D,W),ue},of=8,bm=function(D,W){const ue=Ir;let de=null;const Ne=()=>(de||(de=Cw(),Eo(W,je=>{Ew(de,je)})),de);for(let je=0;;je++){const at=yr(D),St=[D];let Gn=!1;if(Eo(at,Tn=>{T(Tn)===Dn.documentFragment?oh(St,Tn):!Gn&&!ih(ue,Tn)&&(Gn=ih(Ne(),Tn))}),!Gn)return;if(je>=of)throw _o("the tree kept changing during in-place sanitization; refusing to return it");Eo(St,(Tn,Rn)=>{Yc(Tn,Rn>0,D,Ne())})}},Yc=function(D,W,ue,de){const Ne=wl(D);let je;for(;je=Ne.nextNode();)!ih(de,je)||ih(Ir,je)||(W&&Br(le.uponSanitizeShadowNode,je,null),Cl(je,ue),so(je,ue),Cs(je.content)&&Rr(je.content))},Qy=function(D){Ir&&Ew(Ir,D)},Tr=function(D,W){return Js?D==="patchsrc"?!0:D==="for"&&W!=="label"&&W!=="output":!1},lf=function(D){Js&&ci(D,W=>{const ue=T(W);if(ue===Dn.processingInstruction||ue===Dn.comment&&dr(wN,W.data)){try{y(W)}catch{}return!1}if(ue===Dn.element){const de=W,Ne=Qt(M(W));try{de.hasAttribute&&de.hasAttribute("patchsrc")&&de.removeAttribute("patchsrc"),de.hasAttribute&&de.hasAttribute("for")&&Tr("for",Ne)&&de.removeAttribute("for")}catch{}}return!0})},cf=function(D){let W=null,ue=null;if(ar)D="<remove></remove>"+D;else{const je=fN(D,/^[\r\n\t ]+/);ue=je&&je[0]}bl==="application/xhtml+xml"&&bs===oa&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const de=U?X(D):D;if(bs===oa)try{W=new f().parseFromString(de,bl)}catch{}if(!W||!W.documentElement){W=j.createDocument(bs,"template",null);try{W.documentElement.innerHTML=yl?L:de}catch{}}const Ne=W.body||W.documentElement;return D&&ue&&Ne.insertBefore(n.createTextNode(ue),Ne.childNodes[0]||null),bs===oa?Q.call(W,vs?"html":"body")[0]:vs?W.documentElement:Ne},wl=function(D){const W=O?O(D):D.ownerDocument;return Y.call(W||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Za=function(D){return D=lh(D,me," "),D=lh(D,te," "),D=lh(D,ve," "),D},Zc=function(D){var W;uf(D);const ue=(W=D.querySelectorAll)===null||W===void 0?void 0:W.call(D,"template");ue&&Eo(ue,de=>{Cs(de.content)&&Zc(de.content)})},uf=function(D){D.normalize();const W=O?O(D):D.ownerDocument,ue=Y.call(W||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let de=ue.nextNode();for(;de;)de.data=Za(de.data),de=ue.nextNode()},Xa=function(D){const W=P?P(D):null;return typeof W!="string"||Qt(W)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==A(D)||typeof D.removeAttribute!="function"||typeof D.removeAttributeNode!="function"||typeof D.getAttributeNode!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==R(D)||D.childNodes!==x(D)},Cs=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return R(D)===Dn.documentFragment}catch{return!1}},ui=function(D){if(!R||typeof D!="object"||D===null)return!1;try{return typeof R(D)=="number"}catch{return!1}};function Br(ge,D,W){ge.length!==0&&Eo(ge,ue=>{ue.call(t,D,W,ws)})}const df=function(D,W){return!!(Js&&D.hasChildNodes()&&!ui(D.firstElementChild)&&dr(Rw,D.textContent)&&dr(Rw,D.innerHTML)||Js&&Hoe[W]&&T(D)===Dn.element&&q(D)===oa&&(ui(D.firstElementChild)||typeof D.textContent=="string"&&dr(Rw,D.textContent))||D.nodeType===Dn.processingInstruction||Js&&D.nodeType===Dn.comment&&dr(wN,D.data))},Xc=function(D,W){if(D instanceof RegExp)return dr(D,W);if(D instanceof Function){for(var ue=arguments.length,de=new Array(ue>2?ue-2:0),Ne=2;Ne<ue;Ne++)de[Ne-2]=arguments[Ne];return!!D(W,...de)}return!1},Jy=function(D,W,ue){if(!rr[W]&&ao(W)&&Xc(un.tagNameCheck,W))return!1;if(ri&&!sa[W]&&!sa[ql(W)]){const de=E(D),Ne=x(D);if(Ne&&de){const je=Ne.length;for(let at=je-1;at>=0;--at){const St=D===ue?g(Ne[at],!0):Ne[at];de.insertBefore(St,b(D))}}}return xs(D),!0},xl=function(D,W,ue,de){return D.length===0?W:W===ue||W===de?ga(W):W},br=function(D,W){return D===W||E(D)!==null?!1:(ai&&ia(D),!0)},Cl=function(D,W){if(Qy(D),Br(le.beforeSanitizeElements,D,null),br(D,W))return!0;if(Xa(D))return xs(D),!0;const ue=Qt(M(D));if(Ie=xl(le.uponSanitizeElement,Ie,gr,qc),Br(le.uponSanitizeElement,D,{tagName:ue,allowedTags:Ie}),br(D,W))return!0;if(df(D,ue))return xs(D),!0;if(rr[ue]||!(Fr.tagCheck instanceof Function&&Fr.tagCheck(ue))&&!Ie[ue]){const de=Jy(D,ue,W);return de===!1&&(Br(le.afterSanitizeElements,D,null),br(D,W))?!0:de}if(T(D)===Dn.element&&!ii(D)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&dr(Boe,D.innerHTML))return xs(D),!0;if(vr&&D.nodeType===Dn.text){const de=Za(D.textContent);D.textContent!==de&&(oh(t.removed,{element:D.cloneNode()}),D.textContent=de)}return Br(le.afterSanitizeElements,D,null),br(D,W)},Qc=function(D,W,ue){if(gs[W]||Tr(W,D)||cm&&(W==="id"||W==="name")&&(ue in n||ue in oi))return!1;const de=qe[W]||Fr.attributeCheck instanceof Function&&Fr.attributeCheck(W,D);return Lt&&dr(Le,W)||Fn&&dr(we,W)?!0:de?si[W]||dr(Ht,lh(ue,Ue,""))||(W==="src"||W==="xlink:href"||W==="href")&&D!=="script"&&hN(ue,"data:")===0&&rf[D]||In&&!dr(nt,lh(ue,Ue,""))?!0:!ue:ao(D)&&Xc(un.tagNameCheck,D)&&Xc(un.attributeNameCheck,W,D)||W==="is"&&un.allowCustomizedBuiltInElements&&Xc(un.tagNameCheck,ue)},di=_t({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ao=function(D){return!di[ql(D)]&&dr(He,D)},Sm=function(D,W,ue,de){if(U&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ue)switch(h.getAttributeType(D,W)){case"TrustedHTML":return X(de);case"TrustedScriptURL":return re(de)}return de},ff=function(D,W,ue,de){try{return ue?D.setAttributeNS(ue,W,de):D.setAttribute(W,de),Xa(D)?(xs(D),!1):!0}catch{return li(W,D),!1}},hf=function(D,W){return Js&&dr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)?!0:ql(D)==="attributename"&&fN(W,"href")!==null},so=function(D,W){if(Br(le.beforeSanitizeAttributes,D,null),br(D,W))return;const ue=D.attributes;if(!ue||Xa(D))return;qe=xl(le.uponSanitizeAttribute,qe,jr,ys);const de={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0};let Ne=ue.length;const je=Qt(D.nodeName);for(;Ne--;){const at=ue[Ne],St=at.name,Gn=at.namespaceURI,Tn=at.value,Rn=Qt(St),fi=Tn;let Kn=St==="value"?fi:Eoe(fi),Jc=!1;if(de.attrName=Rn,de.attrValue=Kn,de.keepAttr=!0,de.forceKeepAttr=void 0,Br(le.uponSanitizeAttribute,D,de),Kn=de.attrValue,um&&(Rn==="id"||Rn==="name")&&hN(Kn,ml)!==0&&(li(St,D,at),Kn=ml+Kn,Jc=!0),hf(St,Kn)){li(St,D,at);continue}if(!de.forceKeepAttr){if(!de.keepAttr){li(St,D,at);continue}if(!$r&&dr(xN,Kn)){li(St,D,at);continue}if(vr&&(Kn=Za(Kn)),!Qc(je,Rn,Kn)){li(St,D,at);continue}Kn=Sm(je,Rn,Gn,Kn),Kn!==fi&&ff(D,St,Gn,Kn)&&Jc&&dN(t.removed)}}Br(le.afterSanitizeAttributes,D,null),br(D,W)},Rr=function(D){let W=null;const ue=wl(D);for(Br(le.beforeSanitizeShadowDOM,D,null);W=ue.nextNode();)if(Br(le.uponSanitizeShadowNode,W,null),Cl(W,D),so(W,D),Cs(W.content)&&Rr(W.content),T(W)===Dn.element){const de=k(W);Cs(de)&&(El(de),Rr(de))}vr&&uf(D),Br(le.afterSanitizeShadowDOM,D,null)},El=function(D){const W=[{node:D,shadow:null}];for(;W.length>0;){const ue=W.pop();if(ue.shadow){Rr(ue.shadow);continue}const de=ue.node,Ne=T(de)===Dn.element,je=x(de);if(je)for(let at=je.length-1;at>=0;--at)W.push({node:je[at],shadow:null});if(Ne){const at=P?P(de):null;if(typeof at=="string"&&Qt(at)==="template"){const St=de.content;Cs(St)&&W.push({node:St,shadow:null})}}if(Ne){const at=k(de);Cs(at)&&W.push({node:null,shadow:at},{node:at,shadow:null})}}};return t.sanitize=function(ge){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ue=null,de=null,Ne=null;if(yl=!ge,yl&&(ge="<!-->"),typeof ge!="string"&&!ui(ge)&&(ge=Ioe(ge),typeof ge!="string"))throw _o("dirty is not a string, aborting");if(!t.isSupported)return ge;nf?(Ie=qc,qe=ys):to(D),(le.uponSanitizeElement.length>0||le.uponSanitizeAttribute.length>0)&&(Ie=ga(Ie)),le.uponSanitizeAttribute.length>0&&(qe=ga(qe)),t.removed=[];const je=ai&&typeof ge!="string"&&ui(ge);let at=[];const St=Ir;if(je){lf(ge);const Rn=M(ge);if(typeof Rn=="string"){const fi=Qt(Rn);if(!Ie[fi]||rr[fi])throw Kc(ge),_o("root node is forbidden and cannot be sanitized in-place")}if(Xa(ge))throw Kc(ge),_o("root node is clobbered and cannot be sanitized in-place");at=yr(ge),Ir=Cw()}else if(ui(ge))W=cf("<!---->"),ue=W.ownerDocument.importNode(ge,!0),ue.nodeType===Dn.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?W=ue:W.appendChild(ue),El(W);else{if(!Ar&&!vr&&!vs&&ge.indexOf("<")===-1)return U&&Vc?X(ge):ge;if(W=cf(ge),!W)return Ar?null:Vc?L:""}W&&ar&&xs(W.firstChild);const Gn=je?ge:W;try{je&&El(ge);const Rn=wl(Gn);for(;de=Rn.nextNode();)Cl(de,Gn),so(de,Gn),Cs(de.content)&&Rr(de.content);je&&bm(ge,at)}catch(Rn){throw je&&(Kc(ge),ym(ge,at)),Rn}finally{Ir=St}if(je){if(ym(ge,at))throw _o("a node selected for removal could not be safely returned; refusing to sanitize in place");return vr&&Zc(ge),ge}if(Ar){if(vr&&Zc(W),Wn)for(Ne=Z.call(W.ownerDocument);W.firstChild;)Ne.appendChild(W.firstChild);else Ne=W;return(qe.shadowroot||qe.shadowrootmode)&&(Ne=se.call(r,Ne,!0)),Ne}let Tn=vs?W.outerHTML:W.innerHTML;return vs&&Ie["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&dr(Foe,W.ownerDocument.doctype.name)&&(Tn="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
14
|
+
`+Tn),vr&&(Tn=Za(Tn)),U&&Vc?X(Tn):Tn},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};to(ge),nf=!0,qc=Ie,ys=qe},t.clearConfig=function(){ws=null,nf=!1,qc=null,ys=null,U=B,L=""},t.isValidAttribute=function(ge,D,W){ws||to({});const ue=Qt(ge),de=Qt(D);return typeof W=="string"&&(hf(D,W)||!$r&&dr(xN,W))?!1:Qc(ue,de,W)},t.addHook=function(ge,D){typeof D=="function"&&Yr(le,ge)&&oh(le[ge],D)},t.removeHook=function(ge,D){if(Yr(le,ge)){if(D!==void 0){const W=woe(le[ge],D);return W===-1?void 0:Coe(le[ge],W,1)[0]}return dN(le[ge])}},t.removeHooks=function(ge){Yr(le,ge)&&(le[ge]=[])},t.removeAllHooks=function(){le=CN()},t}var oPe=Pj();const EN="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface",Woe="outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",Goe={nav:{base:Pe("flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors",EN),rest:"text-fg-muted hover:bg-surface hover:text-fg",current:"bg-accent-2-soft font-medium text-accent-2"},row:{base:Pe("relative flex w-full items-start text-left transition-colors",Woe),rest:"hover:bg-surface-sunken",current:"bg-accent-2-soft"},inline:{base:Pe("rounded-sm underline-offset-2 transition-colors hover:underline",EN),rest:"text-accent hover:text-accent-hover",current:"font-medium text-accent"}};function Koe(e){return e!==void 0&&e!==!1&&e!=="false"}function Yoe({variant:e="nav",current:t,"aria-current":n,className:r,children:a,ref:s,...i}){const c=t??n,u=Goe[e];return C.jsx("a",{ref:s,"aria-current":c,className:Pe(u.base,Koe(c)?u.current:u.rest,r),...i,children:a})}function Zoe(e){const[t,n]=_.useState(!1),r=t?fne:hne,a=t?"Hide password":"Show password";return C.jsx(hs,{...e,type:t?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":t,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Xoe={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function Qoe({value:e,max:t,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:t<=0?0:Math.min(100,Math.max(0,e/t*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:e,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:t,className:Pe("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Pe("h-full rounded-full transition-[width] duration-300 ease-out",Xoe[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var cp;(function(e){e[e.UP=-1]="UP",e[e.DOWN=1]="DOWN"})(cp||(cp={}));function Joe(e){var t=getComputedStyle(e).overflowY;return e===document.scrollingElement&&t==="visible"?!0:!(t!=="scroll"&&t!=="auto")}function eie(e,t){if(!Joe(e))return!1;if(t===cp.DOWN){var n=e.scrollTop+e.clientHeight;return n<e.scrollHeight}if(t===cp.UP)return e.scrollTop>0;throw new Error("unsupported direction")}function Dj(e,t){return eie(e,t)?!0:e.parentElement==null?!1:Dj(e.parentElement,t)}function Lj(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var tie=`.lds-ellipsis {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
position: relative;
|
|
17
|
+
width: 64px;
|
|
18
|
+
height: 64px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lds-ellipsis div {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 27px;
|
|
24
|
+
width: 11px;
|
|
25
|
+
height: 11px;
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
background: rgb(54, 54, 54);
|
|
28
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lds-ellipsis div:nth-child(1) {
|
|
32
|
+
left: 6px;
|
|
33
|
+
animation: lds-ellipsis1 0.6s infinite;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.lds-ellipsis div:nth-child(2) {
|
|
37
|
+
left: 6px;
|
|
38
|
+
animation: lds-ellipsis2 0.6s infinite;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.lds-ellipsis div:nth-child(3) {
|
|
42
|
+
left: 26px;
|
|
43
|
+
animation: lds-ellipsis2 0.6s infinite;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lds-ellipsis div:nth-child(4) {
|
|
47
|
+
left: 45px;
|
|
48
|
+
animation: lds-ellipsis3 0.6s infinite;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes lds-ellipsis1 {
|
|
52
|
+
0% {
|
|
53
|
+
transform: scale(0);
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
transform: scale(1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@keyframes lds-ellipsis3 {
|
|
60
|
+
0% {
|
|
61
|
+
transform: scale(1);
|
|
62
|
+
}
|
|
63
|
+
100% {
|
|
64
|
+
transform: scale(0);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@keyframes lds-ellipsis2 {
|
|
68
|
+
0% {
|
|
69
|
+
transform: translate(0, 0);
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
transform: translate(19px, 0);
|
|
73
|
+
}
|
|
74
|
+
}`;Lj(tie);var nie=function(){return F.createElement("div",{className:"lds-ellipsis"},F.createElement("div",null),F.createElement("div",null),F.createElement("div",null),F.createElement("div",null))},rie=function(){return F.createElement("div",null,F.createElement("p",null,"↧ pull to refresh ↧"))},aie=`.ptr,
|
|
75
|
+
.ptr__children {
|
|
76
|
+
height: 100%;
|
|
77
|
+
width: 100%;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
-webkit-overflow-scrolling: touch;
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ptr.ptr--fetch-more-treshold-breached .ptr__fetch-more {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ptr__fetch-more {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Pull down transition
|
|
93
|
+
*/
|
|
94
|
+
.ptr__children,
|
|
95
|
+
.ptr__pull-down {
|
|
96
|
+
transition: transform 0.2s cubic-bezier(0, 0, 0.31, 1);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ptr__pull-down {
|
|
100
|
+
position: absolute;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
top: 0;
|
|
105
|
+
visibility: hidden;
|
|
106
|
+
}
|
|
107
|
+
.ptr__pull-down > div {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ptr--dragging {
|
|
112
|
+
/**
|
|
113
|
+
* Hide PullMore content is treshold breached
|
|
114
|
+
*/
|
|
115
|
+
}
|
|
116
|
+
.ptr--dragging.ptr--pull-down-treshold-breached .ptr__pull-down--pull-more {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
.ptr--dragging {
|
|
120
|
+
/**
|
|
121
|
+
* Otherwize, display content
|
|
122
|
+
*/
|
|
123
|
+
}
|
|
124
|
+
.ptr--dragging .ptr__pull-down--pull-more {
|
|
125
|
+
display: block;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ptr--pull-down-treshold-breached {
|
|
129
|
+
/**
|
|
130
|
+
* Force opacity to 1 is pull down trashold breached
|
|
131
|
+
*/
|
|
132
|
+
}
|
|
133
|
+
.ptr--pull-down-treshold-breached .ptr__pull-down {
|
|
134
|
+
opacity: 1 !important;
|
|
135
|
+
}
|
|
136
|
+
.ptr--pull-down-treshold-breached {
|
|
137
|
+
/**
|
|
138
|
+
* And display loader
|
|
139
|
+
*/
|
|
140
|
+
}
|
|
141
|
+
.ptr--pull-down-treshold-breached .ptr__pull-down--loading {
|
|
142
|
+
display: block;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ptr__loader {
|
|
146
|
+
margin: 0 auto;
|
|
147
|
+
text-align: center;
|
|
148
|
+
}`;Lj(aie);var iPe=function(e){var t=e.isPullable,n=t===void 0?!0:t,r=e.canFetchMore,a=r===void 0?!1:r,s=e.onRefresh,i=e.onFetchMore,c=e.refreshingContent,u=c===void 0?F.createElement(nie,null):c,f=e.pullingContent,h=f===void 0?F.createElement(rie,null):f,m=e.children,g=e.pullDownThreshold,y=g===void 0?67:g,w=e.fetchMoreThreshold,b=w===void 0?100:w,x=e.maxPullDownDistance,E=x===void 0?95:x,k=e.resistance,A=k===void 0?1:k,R=e.backgroundColor,P=e.className,O=P===void 0?"":P,T=_.useRef(null),M=_.useRef(null),z=_.useRef(null),q=_.useRef(null),U=!1,L=!1,B=!1,G=0,ie=0;_.useEffect(function(){if(!(!n||!M||!M.current)){var Y=M.current;return Y.addEventListener("touchstart",re,{passive:!0}),Y.addEventListener("mousedown",re),Y.addEventListener("touchmove",pe,{passive:!1}),Y.addEventListener("mousemove",pe),window.addEventListener("scroll",_e),Y.addEventListener("touchend",j),Y.addEventListener("mouseup",j),document.body.addEventListener("mouseleave",j),function(){Y.removeEventListener("touchstart",re),Y.removeEventListener("mousedown",re),Y.removeEventListener("touchmove",pe),Y.removeEventListener("mousemove",pe),window.removeEventListener("scroll",_e),Y.removeEventListener("touchend",j),Y.removeEventListener("mouseup",j),document.body.removeEventListener("mouseleave",j)}}},[m,n,s,y,E,a,b]),_.useEffect(function(){var Y;if(!((Y=T)===null||Y===void 0)&&Y.current){var Z=T.current.classList.contains("ptr--fetch-more-treshold-breached");Z||a&&$()<b&&i&&(T.current.classList.add("ptr--fetch-more-treshold-breached"),L=!0,i().then(X).catch(X))}},[a,m]);var $=function(){if(!M||!M.current)return-1;var Y=window.scrollY,Z=M.current.scrollHeight;return Z-Y-window.innerHeight},X=function(){requestAnimationFrame(function(){M.current&&(M.current.style.overflowX="hidden",M.current.style.overflowY="auto",M.current.style.transform="unset"),z.current&&(z.current.style.opacity="0"),T.current&&(T.current.classList.remove("ptr--pull-down-treshold-breached"),T.current.classList.remove("ptr--dragging"),T.current.classList.remove("ptr--fetch-more-treshold-breached")),U&&(U=!1),L&&(L=!1)})},re=function(Y){B=!1,Y instanceof MouseEvent&&(G=Y.pageY),window.TouchEvent&&Y instanceof TouchEvent&&(G=Y.touches[0].pageY),ie=G,!(Y.type==="touchstart"&&Dj(Y.target,cp.UP))&&(M.current.getBoundingClientRect().top<0||(B=!0))},pe=function(Y){if(B){if(window.TouchEvent&&Y instanceof TouchEvent?ie=Y.touches[0].pageY:ie=Y.pageY,T.current.classList.add("ptr--dragging"),ie<G){B=!1;return}Y.cancelable&&Y.preventDefault();var Z=Math.min((ie-G)/A,E);Z>=y&&(B=!0,U=!0,T.current.classList.remove("ptr--dragging"),T.current.classList.add("ptr--pull-down-treshold-breached")),!(Z>=E)&&(z.current.style.opacity=(Z/65).toString(),M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+Z+"px)",z.current.style.visibility="visible")}},_e=function(Y){L||a&&$()<b&&i&&(L=!0,T.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(X).catch(X))},j=function(){if(B=!1,G=0,ie=0,!U){z.current&&(z.current.style.visibility="hidden"),X();return}M.current&&(M.current.style.overflow="visible",M.current.style.transform="translate(0px, "+y+"px)"),s().then(X).catch(X)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:T},F.createElement("div",{className:"ptr__pull-down",ref:z},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},u),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:M},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},u))))};const sie=1024,oie=`(min-width: ${sie}px) and (not ((orientation: portrait) and (pointer: coarse)))`,iie=e=>{const[t,n]=_.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return _.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e);n(r.matches);const a=s=>n(s.matches);return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),t},lie=e=>e===1?"message":"messages",y1=e=>`${e.toLocaleString()} ${lie(e)}`,Nw=(e,t)=>e.kind==="delete"?`delete ${y1(e.count)}`:t===void 0?"empty it":`empty ${y1(t)}`,Uj=e=>e.kind==="delete"?"Nothing has been deleted.":"Nothing has been emptied.",cie=(e,t,n={})=>{const{trashFolderLabel:r,staleFolderLabel:a,selectedCount:s}=n,i=Uj(t);if(e==="none")return{title:"No folder is set as Trash",description:`${i} reader files deleted mail in the folder you set as Trash, and this account has none.`,pickerPrompt:"Which folder does this account use for deleted mail?",confirmLabel:`Set as Trash and ${Nw(t,void 0)}`,cancelLabel:"Cancel"};if(e==="stale")return{title:"The Trash folder you chose is gone",description:a?`${i} You set ${a} as this account's Trash and it is no longer on the mail server — another mail app may have renamed or removed it.`:`${i} The folder you set as this account's Trash is no longer on the mail server — another mail app may have renamed or removed it.`,pickerPrompt:"Which folder should reader use instead?",confirmLabel:`Set as Trash and ${Nw(t,void 0)}`,cancelLabel:"Cancel"};const c=t.kind==="delete"?`Deleting ${y1(t.count)} there erases them from the mail server, and that cannot be restored.`:"Emptying a folder erases everything in it from the mail server, and that cannot be restored.";return{title:"Confirm this account's Trash folder",description:r?`${i} reader files this account's deleted mail in ${r} because of its name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`:`${i} reader files this account's deleted mail in a folder it matched by name — you never chose it, and the mail server doesn't mark it as Trash. ${c}`,pickerPrompt:r?`Confirm ${r}, or pick the folder this account really uses.`:"Pick the folder this account really uses for deleted mail.",confirmLabel:`Set as Trash and ${Nw(t,s)}`,cancelLabel:"Cancel"}},uie=(e,t,n,r)=>e.kind==="appointing"?{headline:"Setting the Trash folder…",status:n}:t.kind==="delete"?{headline:`Deleting ${y1(t.count)}…`,status:r?`Erasing them from ${n}. This can't be undone.`:`Moving them to ${n}`}:{headline:`Emptying ${n}…`,status:"This can't be undone."},die=(e,t,n,r)=>e==="unconfirmed"&&t.kind==="delete"&&n!==void 0&&r===n,fie=(e,t,n)=>e==="mailbox-pending"?`${n} is still being created on the mail server. Wait for it to finish, then try again.`:`Couldn't set that folder as Trash. ${Uj(t)} Please try again.`,hie=({open:e,reason:t,action:n,folders:r,delimiter:a,trashFolderLabel:s,guessedMailboxId:i,staleFolderLabel:c,accountEmail:u,phase:f,selectedId:h,onSelect:m,onCreateFolder:g,onConfirm:y,onCancel:w})=>{const b=_.useRef(null),x=f.kind==="appointing"||f.kind==="acting";_.useEffect(()=>{x&&b.current?.focus()},[x]);const E=r.find(P=>P.id===h),k=cie(t,n,{trashFolderLabel:s,staleFolderLabel:c,selectedCount:E?.messageCount}),A=die(t,n,i,h),R=n.kind==="emptyTrash"||A;if(!e)return null;if(x){const P=uie(f,n,E?.label??"",A);return C.jsx(b3,{open:e,onClose:()=>{},title:k.title,children:C.jsxs("div",{ref:b,"data-escape-owner":!0,tabIndex:-1,className:"flex flex-col items-center gap-3 px-5 py-10 text-center outline-none",children:[C.jsx(rp,{className:"size-8 animate-spin text-accent-2"}),C.jsx("p",{className:"text-sm font-medium text-fg",children:P.headline}),C.jsx("p",{className:"text-xs text-fg-muted",role:"status","aria-live":"polite",children:P.status})]})})}return C.jsxs(b3,{open:e,onClose:w,title:k.title,children:[C.jsxs("header",{className:"flex items-center gap-2 border-b border-line px-5 py-3",children:[C.jsx(pc,{className:`size-4 shrink-0 ${R?"text-danger":"text-warning"}`}),C.jsx("span",{className:"flex-1 text-sm font-semibold text-fg",children:k.title})]}),C.jsxs("div",{className:"flex max-h-[70vh] flex-col",children:[C.jsxs("div",{className:"space-y-1 px-5 py-4",children:[C.jsx("p",{className:"text-sm text-fg-muted",children:k.description}),u&&C.jsx("p",{className:"text-xs text-fg-subtle",children:u})]}),f.kind==="appoint-failed"&&C.jsx("div",{className:"px-5 pb-3",children:C.jsx(ap,{tone:"danger",variant:"soft",children:fie(f.cause,n,E?.label??"That folder")})}),C.jsx("p",{className:"px-5 pb-2 text-sm text-fg-muted",children:k.pickerPrompt}),C.jsx("div",{className:"flex h-[26rem] min-h-0 flex-1 overflow-hidden",children:C.jsx(nA,{folders:r,selectedId:h,delimiter:a,onSelect:m,onCreateFolder:t==="none"?g:void 0,onCancel:w,labels:{treeAriaLabel:"Folders on this account",optionLabel:P=>`Set ${P.label}${P.messageCount===void 0?"":`, ${P.messageCount} messages`}, as Trash`}})})]}),C.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-line px-5 py-3",children:[C.jsx(Kt,{variant:"secondary",size:"sm",onClick:w,children:k.cancelLabel}),E&&C.jsx(Kt,{variant:R?"danger":"primary",size:"sm",onClick:()=>y(E.id),children:C.jsx("span",{className:"truncate",children:k.confirmLabel})})]})]})};function pie(e){return e.scopedOutFolder!==void 0||(e.droppedFacets?.length??0)>0}function mie(e){return`Your search was limited to ${e}. This filter matches these messages in any folder — it can't be pinned to one.`}const zj=e=>e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`;function gie(e){const t=e.length===1?"a filter condition":"filter conditions",n=e.length===1?"isn't":"aren't";return`${zj(e)} ${n} ${t}, so ${e.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const Mw="add a sender or words to filter on";function lPe(e){if(e.length===0)return`${Mw[0].toUpperCase()}${Mw.slice(1)}`;const t=e.length===1?"isn't":"aren't",n=e.length===1?"a filter condition":"filter conditions";return`${zj(e)} ${t} ${n} — ${Mw}`}function _N({icon:e,children:t}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:e}),C.jsx("span",{children:t})]})}function vie({notice:e}){return pie(e)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[e.scopedOutFolder!==void 0&&C.jsx(_N,{icon:C.jsx(gne,{className:"size-3.5"}),children:mie(e.scopedOutFolder)}),e.droppedFacets&&e.droppedFacets.length>0&&C.jsx(_N,{icon:C.jsx(xz,{className:"size-3.5"}),children:gie(e.droppedFacets)})]})]}):null}const yie={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},rA=e=>yie[e],bie={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},jj=e=>bie[e],cPe=({verb:e,mode:t,scope:n,fromSearch:r})=>{const a=r?["properties"]:t==="properties"?["match","properties"]:["match"];return e==="move"?[...a,"folder","review","run"]:e==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},$v=(e,t)=>Math.max(0,e.indexOf(t)),Sie=(e,t)=>$v(e,t)===0||t==="run",Fj=(e,t)=>({clauses:[...e.clauses],matchOperator:e.matchOperator,moveMailboxId:e.moveMailboxId,scope:t,until:e.until,name:e.name}),$j=e=>cj(Fj(e,e.scope??"once")),kN=e=>{if(!(e.scope!=="standing"&&e.scope!=="until")&&!lj(Fj(e,e.scope)))return ba.noMatch},wie="A rule only works within one account — clear the selection, or pick messages from a single account.",xie="A destination only works within one account — clear the selection, or pick messages from a single account.",Cie="Matching beyond the messages you picked only works within one account — clear the selection, or pick messages from a single account.",Eie="A rule only works within one folder — clear the selection, or pick messages from a single folder.",_ie="A destination only works within one folder — clear the selection, or pick messages from a single folder.",kie={spansAccounts:{rule:wie,destination:xie},spansFolders:{rule:Eie,destination:_ie}},Aie="A match this wide applies once — use “Make this a filter” above the results to keep doing it.",uPe=(e,t)=>e==="escalated"?Aie:t.rule,dPe=(e,t)=>{const n=e===void 0?"spansAccounts":t;if(!n)return{accountId:e};const r=kie[n];return{accountId:n==="spansAccounts"?void 0:e,rule:r.rule,destination:r.destination}},Iie=e=>e===void 0?["selected"]:["selected","properties"],Tie="This matches no messages, so there is nothing to do. Go back and change what it applies to.",Rie="Fill in every property, or take the empty one off.",Oie="Pick a destination first.",Nie="Choose one of the three first.",fPe=(e,t,n)=>{if(e==="properties")return t.clauses.length===0?ba.noMatch:t.clauses.some(r=>r.value.trim()==="")?Rie:void 0;if(e==="folder")return t.moveMailboxId?void 0:Oie;if(e==="rule"){if(!t.scope)return Nie;const r=kN(t);return r||(t.scope==="once"&&$j(t).length>0?ba.bodyTextOnce:t.scope==="until"&&!t.until?.trim()?ba.noUntilDate:void 0)}if(e==="name"&&!t.name?.trim())return ba.unnamed;if(e==="review"){const r=kN(t);return r||(n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?Tie:fj(n))}},Mie="Nothing matches this yet. Widen a property, or match on a different one.",aA=({state:e,verb:t,scope:n,matched:r,applied:a,failed:s,failureReason:i})=>{const{label:c,present:u,past:f}=rA(t),h=f.toLowerCase(),m=n==="standing"||n==="until",y={screenTitle:e==="saving"||e==="backApplyRunning"||e==="statusUnknown"||e==="commitFailed"?c:"Done",showProgress:e==="backApplyRunning"||e==="backApplyComplete"||e==="backApplyFailed"||e==="backApplyRestartFailed"||e==="statusUnknown"||e==="runStopped",failureListLabel:`Not ${h}`};return e==="saving"?{...y,title:m?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:e==="backApplyRunning"?{...y,title:m?"Rule saved. Moving the mail already in your mailbox…":`${u} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:e==="statusUnknown"?{...y,title:m?"Rule saved. Its progress over your existing mail is unknown":`${u} — progress unknown`,detail:m?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:e==="backApplyComplete"?{...y,title:m?"Rule saved and applied":`${f} ${a}`,detail:m?`${a} of ${r} already in your mailbox ${h}. New mail follows the rule as it arrives.`:`Every message the match reached was ${h}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:e==="backApplyFailed"?{...y,title:m?"Rule saved — some mail stayed put":`Not everything was ${h}`,detail:`${a} of ${r} ${h} · the mail server rejected ${s}.${m?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="runStopped"?{...y,title:`Stopped after ${a}`,detail:`${a} of ${r} ${h}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyRestartFailed"?{...y,title:m?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${h} · the mail server rejected ${s}, which are still where they were.${m?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:e==="backApplyStartFailed"?{...y,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:e==="filterSaved"?{...y,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...y,title:m?"Couldn't save the rule":`Couldn't start ${c.toLowerCase()}`,detail:i??"Nothing has changed.",tone:"danger",dismissLabel:i===void 0?"Not now":"Close",retryLabel:i===void 0?"Try again":void 0}},Pie=e=>`${fd(e.field)} "${e.value}"`,Bj=(e,t)=>e.map(Pie).join(` ${tA(t)} `),T3=(e,t)=>e==="selected"?`These ${t} messages`:"Its properties",AN=e=>e==="selected"?"Only the messages ticked in the list.":Nae,Hj=e=>`Every message ${e}`,sA="the list is showing",Die="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",Lie="This covers messages not shown in the list, and anything else matching by the time it runs.",Uie=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:a})=>e==="escalated"?Hj(a??sA):e==="properties"?Bj(n,r):T3(e,t),zie=({mode:e,selectedCount:t,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(e==="selected")return`${t} messages`;if(e==="escalated"){const i=a??sA;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return n.length===0?"every message":`every message where ${Bj(n,r)}`};function jie({title:e,subtitle:t,steps:n,step:r,onBack:a,onExit:s,footer:i,children:c}){return C.jsx(lse,{title:e,subtitle:t,steps:n.map(jj),activeStep:$v(n,r),onBack:a,onExit:s,footer:i,children:c})}function Hh({selected:e,title:t,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":e,"aria-describedby":r&&s?i:void 0,className:Pe("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",e?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Pe("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",e?"border-accent bg-accent text-accent-fg":"border-line"),children:e&&C.jsx(Nv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:t}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const Fie=(e,t)=>e.status==="uncounted"?"The first matches. The total is not known until the run finishes.":e.status==="ready"&&e.count>t&&!e.stale?`and ${e.count-t} more`:uj(e),$ie=(e,t)=>t?"Fetching the messages this covers…":e.status==="error"?e.reason:Mie;function b1({messages:e,count:t,label:n,loading:r}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),e.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:$ie(t,r)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:e.map(a=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:a.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:a.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:a.subject})]},a.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:Fie(t,e.length)})]})]})}function IN({onBack:e,nextLabel:t,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(gae,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(Kt,{variant:"ghost",size:"touch",onClick:e,icon:C.jsx(bz,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(Kt,{variant:r==="danger"?"danger":"primary",size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Pe("flex-1",a&&"opacity-55"),children:[t,r==="primary"&&C.jsx(lne,{className:"size-4"})]})]})]})}function Bie({selectedCount:e,mode:t,accountId:n,onModeChange:r,escalatedScope:a,sample:s}){if(t==="escalated")return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:Hj(a??sA)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:Die})]}),C.jsx("div",{className:"mt-4",children:C.jsx(b1,{...s})})]});const c=Iie(n).length>1;return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[!c&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Cie}),C.jsx(Hh,{selected:t==="selected",onSelect:()=>r("selected"),title:T3("selected",e),description:AN("selected")}),c&&C.jsx(Hh,{selected:t==="properties",onSelect:()=>r("properties"),title:T3("properties",e),description:AN("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(b1,{...s})})]})}const Hie=[{value:"all",label:g1("all")},{value:"any",label:g1("any")}];function qie({clauses:e,matchOperator:t,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:c,onSubmitClause:u,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,sample:y}){const w=tA(t);return C.jsxs("div",{className:"space-y-4",children:[g&&C.jsx(vie,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.map((b,x)=>C.jsxs(_.Fragment,{children:[x>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(pj,{clause:b,onEdit:()=>s(b.id),onRemove:()=>i(b.id)})]},b.id)),!r&&C.jsx(mj,{label:"Add clause",onClick:a})]}),r&&C.jsx(gj,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:b=>c({...r.draft,field:b}),onChangeValue:b=>c({...r.draft,value:b}),onSubmit:u,onCancel:f}),e.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(_3,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:Hie,value:t,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(b1,{...y})]})}function Vie({folders:e,mailboxId:t,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=e.find(c=>c.id===t);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Pe("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(nA,{folders:e,selectedId:t,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Wie({draft:e,onScopeChange:t,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=e,c=$j(e).length>0,u=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx(Hh,{selected:s==="once",onSelect:()=>t("once"),title:F0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:c&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:ba.bodyTextOnce})}),C.jsx(Hh,{selected:s==="standing",unavailable:!!r,onSelect:()=>t("standing"),title:F0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:u}),C.jsxs(Hh,{selected:s==="until",unavailable:!!r,onSelect:()=>t("until"),title:F0("until"),description:"The same rule, and it stops on a day you pick.",children:[u,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(eA,{htmlFor:a,children:"Stops on"}),C.jsx(hs,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function Gie({name:e,onNameChange:t,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(eA,{htmlFor:r,children:"Rule name"}),C.jsx(hs,{id:r,ref:a,value:e,placeholder:"Travel confirmations",onChange:s=>t(s.target.value),trailing:e?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{t(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx($o,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function Kie({verb:e,mode:t,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:c,ruleName:u,escalatedScope:f,sample:h}){const{label:m}=rA(e),g={mode:t,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=t!=="selected",w=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",zie(g),s?` to ${s}`:"",w&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&c&&` until ${c}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(pc,{className:"mt-px size-3.5 shrink-0"}),t==="escalated"?Lie:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:Uie(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[F0(i),i==="until"&&c?` · ${c}`:""]})]}),u!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:u})]})]}),C.jsx(b1,{...h})]})}const oA=e=>({state:e.state,verb:e.verb,scope:e.scope,matched:e.matched,applied:e.applied,failed:e.failedCount??e.failures.length,failureReason:e.failureReason}),Yie=e=>e==="progress"?C.jsx(rp,{className:"size-10 animate-spin text-accent"}):e==="warning"?C.jsx(pc,{className:"size-10 text-warning"}):e==="danger"?C.jsx(pc,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(Nv,{className:"size-6"})});function Zie(e){const{matched:t,applied:n,failures:r}=e,a=oA(e),s=aA(a),i=e.state==="runStopped"?"Not confirmed":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Yie(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx(Qoe,{value:n,max:t,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(c=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:c.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:c.subject}),C.jsx(y3,{className:"mt-1",tone:"warning",children:i})]},c.id))})]})]})}function Xie(e){const{onRetry:t,onDismiss:n,onCancelRun:r}=e,a=aA(oA(e));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(Kt,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(Kt,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(Kt,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(Kt,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(Kt,{variant:"primary",size:"touch",className:"flex-1",onClick:t,children:a.retryLabel})]})}const Qie={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},Rs=(e,t)=>{if(e===void 0)throw new Error(`The ${jj(t)} step was rendered without its answers.`);return e};function hPe(e){const{verb:t,steps:n,onExit:r,onContinue:a,onCommit:s}=e,{label:i,destructive:c}=rA(t),u=n[$v(n,e.step)],f=Qie[u],h=Sie(n,u)?r:e.onBack,m=()=>u==="match"?C.jsx(Bie,{...Rs(e.match,u)}):u==="properties"?C.jsx(qie,{...Rs(e.properties,u)}):u==="folder"?C.jsx(Vie,{...Rs(e.folder,u)}):u==="rule"?C.jsx(Wie,{...Rs(e.rule,u)}):u==="name"?C.jsx(Gie,{...Rs(e.name,u),nudged:e.nudged}):u==="review"?C.jsx(Kie,{...Rs(e.review,u)}):C.jsx(Zie,{...Rs(e.run,u)}),g=()=>{if(u==="run")return C.jsx(Xie,{...Rs(e.run,u)});if(u==="review"){const b=Rs(e.review,u);return C.jsx(IN,{onBack:h,nextLabel:b.scope?dj(b.scope):i,nextVariant:c?"danger":"primary",onNext:s,blockedReason:e.blockedReason,nudged:e.nudged})}return C.jsx(IN,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:e.blockedReason,nudged:e.nudged})},y=()=>u!=="run"?f.title??i:aA(oA(Rs(e.run,u))).screenTitle,w=u==="match"&&e.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(jie,{title:y(),subtitle:w,steps:n,step:u,onBack:h,onExit:r,footer:g(),children:m()})}const Jie={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function TN(e){return Jie[e]}function ele(e){return e<90?"This usually takes about a minute.":e<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function pPe(e,t=Date.now()){const n=Math.floor((t-e)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function mPe(e){return new Date(e).toLocaleDateString(void 0,{dateStyle:"medium"})}const RN=["preparing","restarting","reconnecting"],qj="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function tle({target:e,phase:t,elapsedSeconds:n}){const r=_.useRef(null);Mv(r,!0),Wk({id:"self-update",open:!0});const a=RN.indexOf(t);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:qj,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",e]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:RN.map((s,i)=>{const c=i<a,u=i===a;return C.jsxs("li",{className:Pe("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",u?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[c?C.jsx(Nv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):u?C.jsx(rp,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),TN(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${TN(t)}. `}),ele(n)]})]})}function nle({attemptedVersion:e,previousVersion:t,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);Mv(s,!0);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:qj,children:[C.jsx(qk,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",e," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",t," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(Kt,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function rle(e,t,n){if(!t.allowPrivateDomains&&e.length>3){const r=e.length-1,a=e.charCodeAt(r),s=e.charCodeAt(r-1),i=e.charCodeAt(r-2),c=e.charCodeAt(r-3);if(a===109&&s===111&&i===99&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&c===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Yl=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),S1=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),w1=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),ON=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),R3="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",ale=621,sle=625,Vj=Yl.length,Wj=w1.length,Gj=new Uint32Array(Wj),B0=new Uint32Array(Wj),O3=new Int32Array(Vj).fill(-1);for(let e=0,t=0;e<Vj;e+=1)for(let n=S1[e];n<S1[e+1];n+=1){Gj[n]=t;const r=t+w1[n];let a=5381;for(let s=r-1;s>=t;s-=1)a=a*33^R3.charCodeAt(s);B0[n]=a>>>0,w1[n]===1&&R3.charCodeAt(t)===42&&(O3[e]=n),t=r}let Po=-1,N3=0,M3=0;function NN(e,t,n,r){if(w1[e]!==r)return!1;const a=Gj[e];for(let s=0;s<r;s+=1)if(R3.charCodeAt(a+s)!==t.charCodeAt(n+s))return!1;return!0}function MN(e,t,n,r,a){let s=S1[e],i=S1[e+1];for(;s<i;){const c=s+i>>>1,u=B0[c];if(u<t)s=c+1;else if(u>t)i=c;else{for(let f=c;f>=s&&B0[f]===t;f-=1)if(NN(f,n,r,a))return f;for(let f=c+1;f<i&&B0[f]===t;f+=1)if(NN(f,n,r,a))return f;return-1}}return-1}function PN(e,t,n){let r=t,a=e.length,s=5381;Po=-1;for(let c=e.length-1;c>=0;c-=1){const u=e.charCodeAt(c);if(u===46){const f=c+1;let h=MN(r,s>>>0,e,f,a-f);if(h===-1&&(h=O3[r]),h===-1)return Po!==-1;r=ON[h],(Yl[r]&n)!==0&&(Po=r,N3=f,M3=a),a=c,s=5381}else s=s*33^u}let i=MN(r,s>>>0,e,0,a);return i===-1&&(i=O3[r]),i!==-1&&(r=ON[i],(Yl[r]&n)!==0&&(Po=r,N3=0,M3=a)),Po!==-1}function gPe(e,t,n){if(rle(e,t,n))return;const r=(t.allowPrivateDomains?2:0)|(t.allowIcannDomains?1:0);if(PN(e,sle,r)){n.isIcann=(Yl[Po]&1)!==0,n.isPrivate=(Yl[Po]&2)!==0,n.publicSuffix=e.slice(M3+1);return}if(PN(e,ale,r)){n.isIcann=(Yl[Po]&1)!==0,n.isPrivate=(Yl[Po]&2)!==0,n.publicSuffix=e.slice(N3);return}n.isIcann=!1,n.isPrivate=!1;const a=e.lastIndexOf(".");n.publicSuffix=a===-1?e:e.slice(a+1)}const ole=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((e,t)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},t))]}),ile=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((e,t)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},t))}),Bv=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(ole,{}),C.jsx(ile,{})]}),iA="f1adedb369083ce374d7ee8198e12a4c7be527ad",lle="2026-10-25T09:57:46.266Z",cle=iA.slice(0,7),ule=/^[0-9a-f]{40}$/.test(iA),dle=ule?`https://github.com/remit-mail/reader/commit/${iA}`:void 0;class Hv extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}status;body}const P3=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),lA=e=>{const t=e instanceof Hv?e.body:e;if(!P3(t))return;const{code:n,details:r}=t;if(typeof n=="string")return{code:n,details:P3(r)?r:void 0}},fle=(e,t)=>{if(P3(e)&&e.message!==void 0&&e.message!==null){const n=String(e.message);if(n)return n}return`Request failed with status ${t}`},hle=(e,t)=>new Hv(fle(e,t),t,e),xa=e=>{if(e instanceof Hv)return e.status;if(e&&typeof e=="object"){const t=e;if(typeof t.status=="number")return t.status;if(typeof t.statusCode=="number")return t.statusCode}},Kj=e=>xa(e)!==void 0,qv=e=>{const t=xa(e);return t!==void 0&&t>=500&&t<=599},Vv=e=>!!(typeof DOMException<"u"&&e instanceof DOMException&&e.name==="AbortError"||e&&typeof e=="object"&&"name"in e&&e.name==="AbortError"),ple=()=>typeof navigator<"u"&&navigator.onLine===!1,Yj=e=>Vv(e)||Kj(e)?!1:e instanceof $k?!0:ple(),mle=e=>!Kj(e)&&!Vv(e)&&!Yj(e),Zj=e=>qv(e)||mle(e),Xj=e=>xa(e)===401,gle=(e,t)=>{if(t?.softError===!0)return!0;const n=t?.softErrorStatuses;if(!Array.isArray(n))return!1;const r=xa(e);return r!==void 0&&n.includes(r)},vle=[502,503,504],yle=(e,t)=>{if(t?.restartExpected!==!0)return!1;const n=xa(e);return n!==void 0&&vle.includes(n)},cA=(e,t,n="nobody")=>qv(e)?!yle(e,t):Vv(e)||Yj(e)?!1:n==="user"&&Xj(e)||Zj(e)?!0:!gle(e,t),uA={softError:!0},dA=(...e)=>({softErrorStatuses:e}),ble={restartExpected:!0},Sle=e=>xa(e)===404,wle=e=>qv(e),D3=new Set;let Qj=null,Jj=null;const xle=e=>{Jj=e},Cle=e=>e instanceof Error?e:new Error(eF(e)),eF=e=>e instanceof Error?e.message||e.name:typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:"An unexpected server error occurred.",Ele=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,sl=(e,t)=>{const n={error:e,message:eF(e),correlationId:Ele(),at:Date.now(),recoverable:t?.recoverable??wle(e),stack:e instanceof Error?e.stack:void 0,componentStack:t?.componentStack};Qj=n,Rle(`Fatal: ${n.message} [${n.correlationId}]`),Jj?.recordError(Cle(e),{fatal:"true",correlationId:n.correlationId});for(const r of D3)r(n);return n},_le=e=>(D3.add(e),()=>{D3.delete(e)}),kle=()=>Qj,Ale=20,H0=[],Ile=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function Tle(e){return typeof e!="string"?!1:Ile.has(e.replace(/\.\s*$/,""))}function q0(e){H0.push(e),H0.length>Ale&&H0.shift()}function Rle(e){q0(e)}function Ole(e){return e.map(t=>{if(typeof t=="string")return t;if(t instanceof Error)return`${t.name}: ${t.message}`;try{return JSON.stringify(t)}catch{return String(t)}}).join(" ")}function Nle(){const e=console.error.bind(console);console.error=(...t)=>{q0(Ole(t)),e(...t)},window.addEventListener("error",t=>{Tle(t.message)||(q0(`Uncaught ${t.error instanceof Error?`${t.error.name}: ${t.error.message}`:String(t.message)} (${t.filename}:${t.lineno})`),sl(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{const n=t.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);q0(`Unhandled rejection: ${r}`),sl(n)})}function Mle(){return H0.slice()}const Ple=8,Wu=[];function Dle(e){const t=e.split(/[?#]/)[0],n=Wu[Wu.length-1];n&&n.path===t||(Wu.push({path:t,timestamp:new Date().toISOString()}),Wu.length>Ple&&Wu.shift())}function Lle(){return Wu.slice()}const Pw=7500,DN=`
|
|
149
|
+
… (truncated — the copy action on this screen has the full report)`;function x1(e){return{appShortSha:cle,appCommitUrl:dle,appBuildTime:lle,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:Mle(),requests:Pte(),routes:Lle(),failingRequest:Dte(),errorMessage:e?.errorMessage,stack:e?.stack,componentStack:e?.componentStack,quarantine:e?.quarantine,syncWarning:e?.syncWarning,title:e?.title}}function Dw(e){return["```",e,"```"].join(`
|
|
150
|
+
`)}function tF(e){const t=/T(\d{2}:\d{2}:\d{2})/.exec(e);return t?t[1]:e}function Ule(e){return`- **Version**: ${e.appCommitUrl?`[\`${e.appShortSha}\`](${e.appCommitUrl})`:`\`${e.appShortSha}\``} built ${e.appBuildTime}`}function zle(e){const t=e.status===0?"no response (transport failure)":`${e.status}`;return["## Failing request",`- **Endpoint**: \`${e.path}\``,`- **Method**: ${e.method}`,`- **Status**: ${t}`,`- **Correlation id**: ${e.correlationId??"(none)"}`,""]}function jle(e){return e.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...e.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${tF(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function Fle(e){return e.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...e.map(n=>`- ${tF(n.timestamp)} \`${n.path}\``),""]}function nF(e,t){const n=e.recentErrors.length>0?e.recentErrors.map(s=>` - ${s}`).join(`
|
|
151
|
+
`):" (none)",r=["## Environment",Ule(e),`- **Browser**: ${e.userAgent}`,`- **Viewport**: ${e.viewport}`,`- **Time**: ${e.timestamp} (${e.timezone})`,"","## URL",e.href,""];if(e.errorMessage&&r.push("## Error",e.errorMessage,""),e.failingRequest&&r.push(...zle(e.failingRequest)),e.quarantine){const s=t?.quarantineStructure??e.quarantine.structure;r.push(e.quarantine.head,"",Dw(s),"",e.quarantine.disclaimer,"")}e.syncWarning&&r.push(e.syncWarning,"");const a=t?.stack??e.stack;return a&&r.push("## Stacktrace",Dw(a),""),e.componentStack&&r.push("## Component stack",Dw(e.componentStack),""),r.push(...jle(e.requests)),r.push(...Fle(e.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
|
|
152
|
+
`)}function $le(e){if(e.title)return e.title;if(!e.errorMessage)return"Bug: ";const t=e.errorMessage.split(`
|
|
153
|
+
`)[0].trim();return`Bug: ${t.length>120?`${t.slice(0,117)}…`:t}`}function Ug(e,t){const n=new URLSearchParams({title:$le(e),body:nF(e,t)});return`${qp().issuesUrl}?${n.toString()}`}function Ble(e){return nF(e)}function fA(e){const t=Ug(e);if(t.length<=Pw)return t;const n={...e,componentStack:void 0},r=[];e.stack&&r.push(["stack",e.stack]),e.quarantine?.structure&&r.push(["quarantineStructure",e.quarantine.structure]),r.sort((s,i)=>i[1].length-s[1].length);let a={};for(const[s,i]of r){if(Ug(n,a).length<=Pw)break;let c=0,u=i.length,f=0;for(;c<=u;){const h=c+u>>1;Ug(n,{...a,[s]:i.slice(0,h)+DN}).length<=Pw?(f=h,c=h+1):u=h-1}a={...a,[s]:i.slice(0,f)+DN}}return Ug(n,a)}function Hle(){const e=fA(x1());window.open(e,"_blank","noopener,noreferrer")}const qle="/mail",rF=()=>{const[e,t]=_.useState(()=>kle());return _.useEffect(()=>_le(t),[]),e?C.jsx(aF,{fatal:e}):null},LN=e=>({errorMessage:e.message,stack:e.stack,componentStack:e.componentStack}),aF=({fatal:e,onRetry:t})=>{Wk({id:"fatal-error",open:!0});const[n,r]=_.useState(!1),a=()=>{window.location.reload()},s=()=>{if(t){t();return}a()},i=()=>{const f=fA(x1(LN(e)));window.open(f,"_blank","noopener,noreferrer")},c=async()=>{const f=Ble(x1(LN(e)));await navigator.clipboard.writeText(f),r(!0),window.setTimeout(()=>r(!1),2e3)},u=e.recoverable?"The server returned an unexpected error. This is not your fault — nothing was saved or sent. Retry, or report a bug so we can fix it.":"Something went wrong and this page can't recover. This is not your fault — nothing was saved or sent. Go to your inbox, or report a bug so we can fix it.";return C.jsxs("div",{role:"alert","aria-live":"assertive","data-testid":"fatal-error-overlay",className:"fixed inset-0 z-[1000] flex flex-col items-center justify-center gap-6 bg-red-700 p-6 text-center text-white",children:[C.jsx(qk,{className:"size-16 shrink-0","aria-hidden":"true"}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Something broke"}),C.jsx("p",{className:"text-base text-red-50",children:u}),C.jsx("p",{className:"break-words font-mono text-sm text-red-100",children:e.message}),C.jsxs("p",{className:"font-mono text-xs text-red-200",children:["Reference: ",e.correlationId]})]}),C.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[e.recoverable?C.jsx("button",{type:"button",onClick:s,className:"inline-flex min-h-11 items-center rounded-md bg-white px-5 text-sm font-semibold text-red-700 transition-colors hover:bg-red-50",children:"Retry"}):C.jsx("a",{href:qle,className:"inline-flex min-h-11 items-center rounded-md bg-white px-5 text-sm font-semibold text-red-700 transition-colors hover:bg-red-50",children:"Go to inbox"}),C.jsx("button",{type:"button",onClick:i,className:"inline-flex min-h-11 items-center rounded-md border border-white/70 px-5 text-sm font-semibold text-white transition-colors hover:bg-white/10",children:"Report a bug"}),C.jsx("button",{type:"button",onClick:c,className:"inline-flex min-h-11 items-center rounded-md border border-white/70 px-5 text-sm font-semibold text-white transition-colors hover:bg-white/10",children:n?"Copied":"Copy full details"})]})]})},Vle=({betterAuthEnabled:e,cognitoConfigured:t})=>e?"betterAuth":t?"cognito":"none",sF=e=>Vle(e)==="cognito"?pae:void 0,Wle="Fetch Error",Gle=429,hA=(e,t)=>{if(e&&typeof e=="object"&&t in e){const n=e[t];if(typeof n=="string"&&n.trim().length>0)return n}},pA=e=>hA(e,"message"),Kle=e=>Vv(e)?!1:hA(e,"statusText")===Wle?!0:xa(e)===void 0,Yle=e=>{if(Kle(e))return"network";const t=xa(e);return t===void 0?"fatal":t===Gle?"rateLimited":t===404||t>=500?"fatal":pA(e)?"validation":"fatal"},Zle="Can't reach the server. You may be offline — check your connection and try again.",Xle="Too many requests from this address. Everyone behind the same address — other people on this network, and every tab you have open — shares one limit. Wait a minute and try again.",Qle=(e,t)=>t==="network"?Zle:t==="rateLimited"?Xle:pA(e)??"Please check your details and try again.",Jle=e=>{const t=xa(e);if(t===void 0)return"no response";const n=hA(e,"statusText");return n?`${t} ${n}`:String(t)},ece=(e,t)=>{const n=Jle(e),r=xa(e)===404?"The endpoint did not respond as expected — check that the backend is running and up to date (see the deployment guide's troubleshooting section).":"The server returned an unexpected response.",a=pA(e),s=a?` Server said: ${a}.`:"";return`${t.method} ${t.path} failed: ${n}. ${r}${s}`},tce=(e,t)=>{sl(new Error(ece(e,t)),{recoverable:!1})},nce=({onRetry:e,onReport:t})=>C.jsxs(Xk,{children:[C.jsx(Qk,{}),C.jsxs("div",{className:"flex flex-col gap-4 rounded-lg border border-line bg-surface p-7 shadow-lg",children:[C.jsxs(ap,{tone:"warning",children:[C.jsx("p",{className:"font-medium",children:"Too many requests from this address"}),C.jsx("p",{className:"mt-1",children:"The server is limiting requests from your network address, so it could not check whether you are signed in. You have not been signed out."})]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Wait a minute and try again. Everyone behind the same address — other people on this network, and every tab you have open — shares one limit."}),C.jsx(Kt,{onClick:e,children:"Try again"}),C.jsx(Kt,{variant:"ghost",size:"sm",onClick:t,children:"Report an issue"})]})]}),rce=429,ace=({data:e,isPending:t,error:n})=>e?{kind:"active"}:t?{kind:"pending"}:xa(n)===rce?{kind:"rateLimited"}:{kind:"signedOut"},sce={method:"POST",path:"/api/auth/sign-up/email"},oce={method:"POST",path:"/api/auth/sign-in/email"},ice=()=>{const[e,t]=_.useState("signIn"),[n,r]=_.useState(""),[a,s]=_.useState(""),[i,c]=_.useState(""),[u,f]=_.useState(null),[h,m]=_.useState(!1),[g,y]=_.useState(!1),w=g?"signIn":e,b=(E,k)=>{if(zte(E)){y(!0),t("signIn");return}const A=Yle(E);if(A==="fatal"){tce(E,k);return}f(Qle(E,A))},x=async E=>{if(E.preventDefault(),h)return;f(null),m(!0);const k=w==="signUp"?sce:oce,A=await(w==="signUp"?np.signUp.email({email:a,password:i,name:n}):np.signIn.email({email:a,password:i})).then(R=>R.error??null,R=>R);m(!1),A&&b(A,k)};return C.jsxs(C.Fragment,{children:[C.jsx(rF,{}),C.jsxs(Xk,{children:[C.jsx(Qk,{}),C.jsxs("form",{onSubmit:x,className:"mt-6 flex flex-col gap-4 rounded-lg border border-line bg-surface p-7 shadow-lg",children:[g?C.jsx(ap,{tone:"info",children:"New signups are currently closed. Sign in with an existing account, or contact your administrator for access."}):C.jsxs("div",{className:"flex gap-1",children:[C.jsx(Kt,{size:"sm",variant:w==="signIn"?"secondary":"ghost","aria-pressed":w==="signIn",onClick:()=>t("signIn"),children:"Sign in"}),C.jsx(Kt,{size:"sm",variant:w==="signUp"?"secondary":"ghost","aria-pressed":w==="signUp",onClick:()=>t("signUp"),children:"Create account"})]}),u&&C.jsx(ap,{tone:"danger",children:u}),w==="signUp"&&C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-name",className:"text-fg-muted",children:"Name"}),C.jsx(hs,{id:"ba-name",type:"text",autoComplete:"name",value:n,onChange:E=>r(E.target.value),placeholder:"Your name",required:!0})]}),C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-email",className:"text-fg-muted",children:"Email"}),C.jsx(hs,{id:"ba-email",type:"email",autoComplete:"email",value:a,onChange:E=>s(E.target.value),placeholder:"you@example.com",required:!0})]}),C.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[C.jsx("label",{htmlFor:"ba-password",className:"text-fg-muted",children:"Password"}),C.jsx(Zoe,{id:"ba-password",autoComplete:w==="signUp"?"new-password":"current-password",value:i,onChange:E=>c(E.target.value),placeholder:"Your password",required:!0})]}),C.jsx(Kt,{type:"submit",children:w==="signUp"?"Create account":"Sign in"})]}),C.jsx(tj,{note:sF({betterAuthEnabled:Ov(),cognitoConfigured:!1})})]})]})},lce=({session:e,onRetry:t,children:n})=>{const r=ace(e);return r.kind==="active"?C.jsx(C.Fragment,{children:n}):r.kind==="pending"?C.jsx(Bv,{}):r.kind==="rateLimited"?C.jsx(nce,{onRetry:t,onReport:Hle}):C.jsx(ice,{})},cce=({children:e})=>{const{data:t,isPending:n,error:r,refetch:a}=np.useSession();return C.jsx(lce,{session:{data:t,isPending:n,error:r},onRetry:()=>{a()},children:e})},uce=({children:e,fallback:t=null})=>{const{data:n}=np.useSession();if(!n)return C.jsx(C.Fragment,{children:t});const r=async()=>{await np.signOut(),Bk()};return C.jsx(C.Fragment,{children:e({email:n.user.email??null,signOut:r})})},C1={configure:()=>{},getToken:Yte,resetToken:Bk,Shell:cce,Account:uce};var Lw,UN;function dce(){if(UN)return Lw;UN=1;function e(){this.__data__=[],this.size=0}return Lw=e,Lw}var Uw,zN;function Kp(){if(zN)return Uw;zN=1;function e(t,n){return t===n||t!==t&&n!==n}return Uw=e,Uw}var zw,jN;function Wv(){if(jN)return zw;jN=1;var e=Kp();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return zw=t,zw}var jw,FN;function fce(){if(FN)return jw;FN=1;var e=Wv(),t=Array.prototype,n=t.splice;function r(a){var s=this.__data__,i=e(s,a);if(i<0)return!1;var c=s.length-1;return i==c?s.pop():n.call(s,i,1),--this.size,!0}return jw=r,jw}var Fw,$N;function hce(){if($N)return Fw;$N=1;var e=Wv();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Fw=t,Fw}var $w,BN;function pce(){if(BN)return $w;BN=1;var e=Wv();function t(n){return e(this.__data__,n)>-1}return $w=t,$w}var Bw,HN;function mce(){if(HN)return Bw;HN=1;var e=Wv();function t(n,r){var a=this.__data__,s=e(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return Bw=t,Bw}var Hw,qN;function Gv(){if(qN)return Hw;qN=1;var e=dce(),t=fce(),n=hce(),r=pce(),a=mce();function s(i){var c=-1,u=i==null?0:i.length;for(this.clear();++c<u;){var f=i[c];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Hw=s,Hw}var qw,VN;function gce(){if(VN)return qw;VN=1;var e=Gv();function t(){this.__data__=new e,this.size=0}return qw=t,qw}var Vw,WN;function vce(){if(WN)return Vw;WN=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Vw=e,Vw}var Ww,GN;function yce(){if(GN)return Ww;GN=1;function e(t){return this.__data__.get(t)}return Ww=e,Ww}var Gw,KN;function bce(){if(KN)return Gw;KN=1;function e(t){return this.__data__.has(t)}return Gw=e,Gw}var Kw,YN;function oF(){if(YN)return Kw;YN=1;var e=typeof _g=="object"&&_g&&_g.Object===Object&&_g;return Kw=e,Kw}var Yw,ZN;function Ys(){if(ZN)return Yw;ZN=1;var e=oF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Yw=n,Yw}var Zw,XN;function Kv(){if(XN)return Zw;XN=1;var e=Ys(),t=e.Symbol;return Zw=t,Zw}var Xw,QN;function Sce(){if(QN)return Xw;QN=1;var e=Kv(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(i){var c=n.call(i,a),u=i[a];try{i[a]=void 0;var f=!0}catch{}var h=r.call(i);return f&&(c?i[a]=u:delete i[a]),h}return Xw=s,Xw}var Qw,JN;function wce(){if(JN)return Qw;JN=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Qw=n,Qw}var Jw,eM;function Zd(){if(eM)return Jw;eM=1;var e=Kv(),t=Sce(),n=wce(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function i(c){return c==null?c===void 0?a:r:s&&s in Object(c)?t(c):n(c)}return Jw=i,Jw}var ex,tM;function Qo(){if(tM)return ex;tM=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ex=e,ex}var tx,nM;function mA(){if(nM)return tx;nM=1;var e=Zd(),t=Qo(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function i(c){if(!t(c))return!1;var u=e(c);return u==r||u==a||u==n||u==s}return tx=i,tx}var nx,rM;function xce(){if(rM)return nx;rM=1;var e=Ys(),t=e["__core-js_shared__"];return nx=t,nx}var rx,aM;function Cce(){if(aM)return rx;aM=1;var e=xce(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return rx=n,rx}var ax,sM;function iF(){if(sM)return ax;sM=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return ax=n,ax}var sx,oM;function Ece(){if(oM)return sx;oM=1;var e=mA(),t=Cce(),n=Qo(),r=iF(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,i=Function.prototype,c=Object.prototype,u=i.toString,f=c.hasOwnProperty,h=RegExp("^"+u.call(f).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var y=e(g)?h:s;return y.test(r(g))}return sx=m,sx}var ox,iM;function _ce(){if(iM)return ox;iM=1;function e(t,n){return t?.[n]}return ox=e,ox}var ix,lM;function Nc(){if(lM)return ix;lM=1;var e=Ece(),t=_ce();function n(r,a){var s=t(r,a);return e(s)?s:void 0}return ix=n,ix}var lx,cM;function gA(){if(cM)return lx;cM=1;var e=Nc(),t=Ys(),n=e(t,"Map");return lx=n,lx}var cx,uM;function Yv(){if(uM)return cx;uM=1;var e=Nc(),t=e(Object,"create");return cx=t,cx}var ux,dM;function kce(){if(dM)return ux;dM=1;var e=Yv();function t(){this.__data__=e?e(null):{},this.size=0}return ux=t,ux}var dx,fM;function Ace(){if(fM)return dx;fM=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return dx=e,dx}var fx,hM;function Ice(){if(hM)return fx;hM=1;var e=Yv(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var i=this.__data__;if(e){var c=i[s];return c===t?void 0:c}return r.call(i,s)?i[s]:void 0}return fx=a,fx}var hx,pM;function Tce(){if(pM)return hx;pM=1;var e=Yv(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var s=this.__data__;return e?s[a]!==void 0:n.call(s,a)}return hx=r,hx}var px,mM;function Rce(){if(mM)return px;mM=1;var e=Yv(),t="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&a===void 0?t:a,this}return px=n,px}var mx,gM;function Oce(){if(gM)return mx;gM=1;var e=kce(),t=Ace(),n=Ice(),r=Tce(),a=Rce();function s(i){var c=-1,u=i==null?0:i.length;for(this.clear();++c<u;){var f=i[c];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,mx=s,mx}var gx,vM;function Nce(){if(vM)return gx;vM=1;var e=Oce(),t=Gv(),n=gA();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return gx=r,gx}var vx,yM;function Mce(){if(yM)return vx;yM=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return vx=e,vx}var yx,bM;function Zv(){if(bM)return yx;bM=1;var e=Mce();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return yx=t,yx}var bx,SM;function Pce(){if(SM)return bx;SM=1;var e=Zv();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return bx=t,bx}var Sx,wM;function Dce(){if(wM)return Sx;wM=1;var e=Zv();function t(n){return e(this,n).get(n)}return Sx=t,Sx}var wx,xM;function Lce(){if(xM)return wx;xM=1;var e=Zv();function t(n){return e(this,n).has(n)}return wx=t,wx}var xx,CM;function Uce(){if(CM)return xx;CM=1;var e=Zv();function t(n,r){var a=e(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return xx=t,xx}var Cx,EM;function vA(){if(EM)return Cx;EM=1;var e=Nce(),t=Pce(),n=Dce(),r=Lce(),a=Uce();function s(i){var c=-1,u=i==null?0:i.length;for(this.clear();++c<u;){var f=i[c];this.set(f[0],f[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Cx=s,Cx}var Ex,_M;function zce(){if(_M)return Ex;_M=1;var e=Gv(),t=gA(),n=vA(),r=200;function a(s,i){var c=this.__data__;if(c instanceof e){var u=c.__data__;if(!t||u.length<r-1)return u.push([s,i]),this.size=++c.size,this;c=this.__data__=new n(u)}return c.set(s,i),this.size=c.size,this}return Ex=a,Ex}var _x,kM;function yA(){if(kM)return _x;kM=1;var e=Gv(),t=gce(),n=vce(),r=yce(),a=bce(),s=zce();function i(c){var u=this.__data__=new e(c);this.size=u.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=r,i.prototype.has=a,i.prototype.set=s,_x=i,_x}var kx,AM;function jce(){if(AM)return kx;AM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return kx=t,kx}var Ax,IM;function Fce(){if(IM)return Ax;IM=1;function e(t){return this.__data__.has(t)}return Ax=e,Ax}var Ix,TM;function $ce(){if(TM)return Ix;TM=1;var e=vA(),t=jce(),n=Fce();function r(a){var s=-1,i=a==null?0:a.length;for(this.__data__=new e;++s<i;)this.add(a[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ix=r,Ix}var Tx,RM;function Bce(){if(RM)return Tx;RM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return Tx=e,Tx}var Rx,OM;function Hce(){if(OM)return Rx;OM=1;function e(t,n){return t.has(n)}return Rx=e,Rx}var Ox,NM;function lF(){if(NM)return Ox;NM=1;var e=$ce(),t=Bce(),n=Hce(),r=1,a=2;function s(i,c,u,f,h,m){var g=u&r,y=i.length,w=c.length;if(y!=w&&!(g&&w>y))return!1;var b=m.get(i),x=m.get(c);if(b&&x)return b==c&&x==i;var E=-1,k=!0,A=u&a?new e:void 0;for(m.set(i,c),m.set(c,i);++E<y;){var R=i[E],P=c[E];if(f)var O=g?f(P,R,E,c,i,m):f(R,P,E,i,c,m);if(O!==void 0){if(O)continue;k=!1;break}if(A){if(!t(c,function(T,M){if(!n(A,M)&&(R===T||h(R,T,u,f,m)))return A.push(M)})){k=!1;break}}else if(!(R===P||h(R,P,u,f,m))){k=!1;break}}return m.delete(i),m.delete(c),k}return Ox=s,Ox}var Nx,MM;function cF(){if(MM)return Nx;MM=1;var e=Ys(),t=e.Uint8Array;return Nx=t,Nx}var Mx,PM;function qce(){if(PM)return Mx;PM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,s){r[++n]=[s,a]}),r}return Mx=e,Mx}var Px,DM;function Vce(){if(DM)return Px;DM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Px=e,Px}var Dx,LM;function Wce(){if(LM)return Dx;LM=1;var e=Kv(),t=cF(),n=Kp(),r=lF(),a=qce(),s=Vce(),i=1,c=2,u="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",y="[object RegExp]",w="[object Set]",b="[object String]",x="[object Symbol]",E="[object ArrayBuffer]",k="[object DataView]",A=e?e.prototype:void 0,R=A?A.valueOf:void 0;function P(O,T,M,z,q,U,L){switch(M){case k:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case E:return!(O.byteLength!=T.byteLength||!U(new t(O),new t(T)));case u:case f:case g:return n(+O,+T);case h:return O.name==T.name&&O.message==T.message;case y:case b:return O==T+"";case m:var B=a;case w:var G=z&i;if(B||(B=s),O.size!=T.size&&!G)return!1;var ie=L.get(O);if(ie)return ie==T;z|=c,L.set(O,T);var $=r(B(O),B(T),z,q,U,L);return L.delete(O),$;case x:if(R)return R.call(O)==R.call(T)}return!1}return Dx=P,Dx}var Lx,UM;function uF(){if(UM)return Lx;UM=1;function e(t,n){for(var r=-1,a=n.length,s=t.length;++r<a;)t[s+r]=n[r];return t}return Lx=e,Lx}var Ux,zM;function Jo(){if(zM)return Ux;zM=1;var e=Array.isArray;return Ux=e,Ux}var zx,jM;function dF(){if(jM)return zx;jM=1;var e=uF(),t=Jo();function n(r,a,s){var i=a(r);return t(r)?i:e(i,s(r))}return zx=n,zx}var jx,FM;function Gce(){if(FM)return jx;FM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=0,i=[];++r<a;){var c=t[r];n(c,r,t)&&(i[s++]=c)}return i}return jx=e,jx}var Fx,$M;function fF(){if($M)return Fx;$M=1;function e(){return[]}return Fx=e,Fx}var $x,BM;function hF(){if(BM)return $x;BM=1;var e=Gce(),t=fF(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(i){return i==null?[]:(i=Object(i),e(a(i),function(c){return r.call(i,c)}))}:t;return $x=s,$x}var Bx,HM;function Kce(){if(HM)return Bx;HM=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return Bx=e,Bx}var Hx,qM;function Mc(){if(qM)return Hx;qM=1;function e(t){return t!=null&&typeof t=="object"}return Hx=e,Hx}var qx,VM;function Yce(){if(VM)return qx;VM=1;var e=Zd(),t=Mc(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return qx=r,qx}var Vx,WM;function bA(){if(WM)return Vx;WM=1;var e=Yce(),t=Mc(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(i){return t(i)&&r.call(i,"callee")&&!a.call(i,"callee")};return Vx=s,Vx}var Rh={exports:{}},Wx,GM;function Zce(){if(GM)return Wx;GM=1;function e(){return!1}return Wx=e,Wx}Rh.exports;var KM;function SA(){return KM||(KM=1,(function(e,t){var n=Ys(),r=Zce(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i?n.Buffer:void 0,u=c?c.isBuffer:void 0,f=u||r;e.exports=f})(Rh,Rh.exports)),Rh.exports}var Gx,YM;function Xv(){if(YM)return Gx;YM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??e,!!a&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Gx=n,Gx}var Kx,ZM;function wA(){if(ZM)return Kx;ZM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Kx=t,Kx}var Yx,XM;function Xce(){if(XM)return Yx;XM=1;var e=Zd(),t=wA(),n=Mc(),r="[object Arguments]",a="[object Array]",s="[object Boolean]",i="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",w="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",k="[object Float32Array]",A="[object Float64Array]",R="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",M="[object Uint8ClampedArray]",z="[object Uint16Array]",q="[object Uint32Array]",U={};U[k]=U[A]=U[R]=U[P]=U[O]=U[T]=U[M]=U[z]=U[q]=!0,U[r]=U[a]=U[x]=U[s]=U[E]=U[i]=U[c]=U[u]=U[f]=U[h]=U[m]=U[g]=U[y]=U[w]=U[b]=!1;function L(B){return n(B)&&t(B.length)&&!!U[e(B)]}return Yx=L,Yx}var Zx,QM;function Qce(){if(QM)return Zx;QM=1;function e(t){return function(n){return t(n)}}return Zx=e,Zx}var Oh={exports:{}};Oh.exports;var JM;function Jce(){return JM||(JM=1,(function(e,t){var n=oF(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,i=s&&n.process,c=(function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}})();e.exports=c})(Oh,Oh.exports)),Oh.exports}var Xx,e8;function xA(){if(e8)return Xx;e8=1;var e=Xce(),t=Qce(),n=Jce(),r=n&&n.isTypedArray,a=r?t(r):e;return Xx=a,Xx}var Qx,t8;function pF(){if(t8)return Qx;t8=1;var e=Kce(),t=bA(),n=Jo(),r=SA(),a=Xv(),s=xA(),i=Object.prototype,c=i.hasOwnProperty;function u(f,h){var m=n(f),g=!m&&t(f),y=!m&&!g&&r(f),w=!m&&!g&&!y&&s(f),b=m||g||y||w,x=b?e(f.length,String):[],E=x.length;for(var k in f)(h||c.call(f,k))&&!(b&&(k=="length"||y&&(k=="offset"||k=="parent")||w&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||a(k,E)))&&x.push(k);return x}return Qx=u,Qx}var Jx,n8;function CA(){if(n8)return Jx;n8=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Jx=t,Jx}var e2,r8;function mF(){if(r8)return e2;r8=1;function e(t,n){return function(r){return t(n(r))}}return e2=e,e2}var t2,a8;function eue(){if(a8)return t2;a8=1;var e=mF(),t=e(Object.keys,Object);return t2=t,t2}var n2,s8;function tue(){if(s8)return n2;s8=1;var e=CA(),t=eue(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!e(s))return t(s);var i=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&i.push(c);return i}return n2=a,n2}var r2,o8;function Qv(){if(o8)return r2;o8=1;var e=mA(),t=wA();function n(r){return r!=null&&t(r.length)&&!e(r)}return r2=n,r2}var a2,i8;function gF(){if(i8)return a2;i8=1;var e=pF(),t=tue(),n=Qv();function r(a){return n(a)?e(a):t(a)}return a2=r,a2}var s2,l8;function nue(){if(l8)return s2;l8=1;var e=dF(),t=hF(),n=gF();function r(a){return e(a,n,t)}return s2=r,s2}var o2,c8;function rue(){if(c8)return o2;c8=1;var e=nue(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,i,c,u,f,h){var m=c&t,g=e(s),y=g.length,w=e(i),b=w.length;if(y!=b&&!m)return!1;for(var x=y;x--;){var E=g[x];if(!(m?E in i:r.call(i,E)))return!1}var k=h.get(s),A=h.get(i);if(k&&A)return k==i&&A==s;var R=!0;h.set(s,i),h.set(i,s);for(var P=m;++x<y;){E=g[x];var O=s[E],T=i[E];if(u)var M=m?u(T,O,E,i,s,h):u(O,T,E,s,i,h);if(!(M===void 0?O===T||f(O,T,c,u,h):M)){R=!1;break}P||(P=E=="constructor")}if(R&&!P){var z=s.constructor,q=i.constructor;z!=q&&"constructor"in s&&"constructor"in i&&!(typeof z=="function"&&z instanceof z&&typeof q=="function"&&q instanceof q)&&(R=!1)}return h.delete(s),h.delete(i),R}return o2=a,o2}var i2,u8;function aue(){if(u8)return i2;u8=1;var e=Nc(),t=Ys(),n=e(t,"DataView");return i2=n,i2}var l2,d8;function sue(){if(d8)return l2;d8=1;var e=Nc(),t=Ys(),n=e(t,"Promise");return l2=n,l2}var c2,f8;function oue(){if(f8)return c2;f8=1;var e=Nc(),t=Ys(),n=e(t,"Set");return c2=n,c2}var u2,h8;function iue(){if(h8)return u2;h8=1;var e=Nc(),t=Ys(),n=e(t,"WeakMap");return u2=n,u2}var d2,p8;function lue(){if(p8)return d2;p8=1;var e=aue(),t=gA(),n=sue(),r=oue(),a=iue(),s=Zd(),i=iF(),c="[object Map]",u="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=i(e),w=i(t),b=i(n),x=i(r),E=i(a),k=s;return(e&&k(new e(new ArrayBuffer(1)))!=g||t&&k(new t)!=c||n&&k(n.resolve())!=f||r&&k(new r)!=h||a&&k(new a)!=m)&&(k=function(A){var R=s(A),P=R==u?A.constructor:void 0,O=P?i(P):"";if(O)switch(O){case y:return g;case w:return c;case b:return f;case x:return h;case E:return m}return R}),d2=k,d2}var f2,m8;function cue(){if(m8)return f2;m8=1;var e=yA(),t=lF(),n=Wce(),r=rue(),a=lue(),s=Jo(),i=SA(),c=xA(),u=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,y=g.hasOwnProperty;function w(b,x,E,k,A,R){var P=s(b),O=s(x),T=P?h:a(b),M=O?h:a(x);T=T==f?m:T,M=M==f?m:M;var z=T==m,q=M==m,U=T==M;if(U&&i(b)){if(!i(x))return!1;P=!0,z=!1}if(U&&!z)return R||(R=new e),P||c(b)?t(b,x,E,k,A,R):n(b,x,T,E,k,A,R);if(!(E&u)){var L=z&&y.call(b,"__wrapped__"),B=q&&y.call(x,"__wrapped__");if(L||B){var G=L?b.value():b,ie=B?x.value():x;return R||(R=new e),A(G,ie,E,k,R)}}return U?(R||(R=new e),r(b,x,E,k,A,R)):!1}return f2=w,f2}var h2,g8;function vF(){if(g8)return h2;g8=1;var e=cue(),t=Mc();function n(r,a,s,i,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,s,i,n,c)}return h2=n,h2}var p2={exports:{}},m2={};var v8;function uue(){if(v8)return m2;v8=1;var e=Vp(),t=ene();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,c=e.useMemo,u=e.useDebugValue;return m2.useSyncExternalStoreWithSelector=function(f,h,m,g,y){var w=s(null);if(w.current===null){var b={hasValue:!1,value:null};w.current=b}else b=w.current;w=c(function(){function E(O){if(!k){if(k=!0,A=O,O=g(O),y!==void 0&&b.hasValue){var T=b.value;if(y(T,O))return R=T}return R=O}if(T=R,r(A,O))return T;var M=g(O);return y!==void 0&&y(T,M)?(A=O,T):(A=O,R=M)}var k=!1,A,R,P=m===void 0?null:m;return[function(){return E(h())},P===null?void 0:function(){return E(P())}]},[h,m,g,y]);var x=a(f,w[0],w[1]);return i(function(){b.hasValue=!0,b.value=x},[x]),u(x),x},m2}var y8;function due(){return y8||(y8=1,p2.exports=uue()),p2.exports}var yF=due();var be=function(){return be=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},be.apply(this,arguments)};function EA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function yt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(c){i={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function ln(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ft;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(Ft||(Ft={}));var gc;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(gc||(gc={}));var L3=Ft.Start,_A=Ft.Stop,Yp=Ft.Raise,Jv=Ft.Send,bF=Ft.Cancel,fue=Ft.NullEvent,kA=Ft.Assign;Ft.After;Ft.DoneState;var SF=Ft.Log,hue=Ft.Init,U3=Ft.Invoke;Ft.ErrorExecution;var b8=Ft.ErrorPlatform,pue=Ft.ErrorCustom,AA=Ft.Update,mue=Ft.Choose,gue=Ft.Pure,wF=".",S8={},z3="xstate.guard",vue="",zg;function IA(e,t,n){n===void 0&&(n=wF);var r=qh(e,n),a=qh(t,n);return Pt(a)?Pt(r)?a===r:!1:Pt(r)?r in a:Object.keys(r).every(function(s){return s in a?IA(r[s],a[s]):!1})}function xF(e){try{return Pt(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function j3(e,t){try{return Xd(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function yue(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function qh(e,t){if(yue(e))return e.value;if(Xd(e))return E1(e);if(typeof e!="string")return e;var n=j3(e,t);return E1(n)}function E1(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Nh(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var s=r[a];n[s]=t(e[s],s,e,a)}return n}function w8(e,t,n){var r,a,s={};try{for(var i=yt(Object.keys(e)),c=i.next();!c.done;c=i.next()){var u=c.value,f=e[u];n(f)&&(s[u]=t(f,u,e))}}catch(h){r={error:h}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}var bue=function(e){return function(t){var n,r,a=t;try{for(var s=yt(e),i=s.next();!i.done;i=s.next()){var c=i.value;a=a[c]}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}};function Sue(e,t){return function(n){var r,a,s=n;try{for(var i=yt(e),c=i.next();!c.done;c=i.next()){var u=c.value;s=s[t][u]}}catch(f){r={error:f}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}}function V0(e){if(!e)return[[]];if(Pt(e))return[[e]];var t=vn(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:V0(e[n]).map(function(a){return[n].concat(a)})}));return t}function vn(e){var t;return(t=[]).concat.apply(t,ln([],Tt(e),!1))}function CF(e){return Xd(e)?e:[e]}function rs(e){return e===void 0?[]:CF(e)}function _1(e,t,n){var r,a;if(Dt(e))return e(t,n.data);var s={};try{for(var i=yt(Object.keys(e)),c=i.next();!c.done;c=i.next()){var u=c.value,f=e[u];Dt(f)?s[u]=f(t,n.data):s[u]=f}}catch(h){r={error:h}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return s}function wue(e){return/^(done|error)\./.test(e)}function x8(e){return!!(e instanceof Promise||e!==null&&(Dt(e)||typeof e=="object")&&Dt(e.then))}function xue(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Cue(e,t){var n,r,a=Tt([[],[]],2),s=a[0],i=a[1];try{for(var c=yt(e),u=c.next();!u.done;u=c.next()){var f=u.value;t(f)?s.push(f):i.push(f)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return[s,i]}function EF(e,t){return Nh(e.states,function(n,r){if(n){var a=(Pt(t)?void 0:t[r])||(n?n.current:void 0);if(a)return{current:a,states:EF(n,a)}}})}function Eue(e,t){return{current:t,states:EF(e,t)}}function C8(e,t,n,r){var a=e&&n.reduce(function(s,i){var c,u,f=i.assignment,h={state:r,action:i,_event:t},m={};if(Dt(f))m=f(s,t.data,h);else try{for(var g=yt(Object.keys(f)),y=g.next();!y.done;y=g.next()){var w=y.value,b=f[w];m[w]=Dt(b)?b(s,t.data,h):b}}catch(x){c={error:x}}finally{try{y&&!y.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}return Object.assign({},s,m)},e);return a}var _ue=function(){};function Xd(e){return Array.isArray(e)}function Dt(e){return typeof e=="function"}function Pt(e){return typeof e=="string"}function _F(e,t){if(e)return Pt(e)?{type:z3,name:e,predicate:t?t[e]:void 0}:Dt(e)?{type:z3,name:e.name,predicate:e}:e}function kue(e){try{return"subscribe"in e&&Dt(e.subscribe)}catch{return!1}}var Gi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();zg={},zg[Gi]=function(){return this},zg[Symbol.observable]=function(){return this};function Cd(e){return!!e&&"__xstatenode"in e}function Aue(e){return!!e&&typeof e.send=="function"}var Iue=(function(){var e=0;return function(){return e++,e.toString(16)}})();function ey(e,t){return Pt(e)||typeof e=="number"?be({type:e},t):e}function fr(e,t){if(!Pt(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ey(e);return be({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Ou(e,t){var n=CF(t).map(function(r){return typeof r>"u"||typeof r=="string"||Cd(r)?{target:r,event:e}:be(be({},r),{event:e})});return n}function Tue(e){if(!(e===void 0||e===vue))return rs(e)}function kF(e,t,n,r,a){var s=e.options.guards,i={state:a,cond:t,_event:r};if(t.type===z3)return(s?.[t.name]||t.predicate)(n,r.data,i);var c=s?.[t.type];if(!c)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return c(n,r.data,i)}function AF(e){return typeof e=="string"?{type:e}:e}function Vh(e,t,n){var r=function(){},a=typeof e=="object",s=a?e:null;return{next:((a?e.next:e)||r).bind(s),error:((a?e.error:t)||r).bind(s),complete:((a?e.complete:n)||r).bind(s)}}function jg(e,t){return"".concat(e,":invocation[").concat(t,"]")}function F3(e){return(e.type===Yp||e.type===Jv&&e.to===gc.Internal)&&typeof e.delay!="number"}var rc=fr({type:hue});function k1(e,t){return t&&t[e]||void 0}function Ed(e,t){var n;if(Pt(e)||typeof e=="number"){var r=k1(e,t);Dt(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Dt(e))n={type:e.name||e.toString(),exec:e};else{var r=k1(e.type,t);if(Dt(r))n=be(be({},e),{exec:r});else if(r){var a=r.type||e.type;n=be(be(be({},r),e),{type:a})}else n=e}return n}var Do=function(e,t){if(!e)return[];var n=Xd(e)?e:[e];return n.map(function(r){return Ed(r,t)})};function ty(e){var t=Ed(e);return be(be({id:Pt(e)?e:t.id},t),{type:t.type})}function IF(e,t){return{type:Yp,event:typeof e=="function"?e:ey(e),delay:t?t.delay:void 0,id:t?.id}}function TF(e,t,n,r){var a={_event:n},s=fr(Dt(e.event)?e.event(t,n.data,a):e.event),i;if(Pt(e.delay)){var c=r&&r[e.delay];i=Dt(c)?c(t,n.data,a):c}else i=Dt(e.delay)?e.delay(t,n.data,a):e.delay;return be(be({},e),{type:Yp,_event:s,delay:i})}function ny(e,t){return{to:t?t.to:void 0,type:Jv,event:Dt(e)?e:ey(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Dt(e)?e.name:xF(e)}}function RF(e,t,n,r){var a={_event:n},s=fr(Dt(e.event)?e.event(t,n.data,a):e.event),i;if(Pt(e.delay)){var c=r&&r[e.delay];i=Dt(c)?c(t,n.data,a):c}else i=Dt(e.delay)?e.delay(t,n.data,a):e.delay;var u=Dt(e.to)?e.to(t,n.data,a):e.to;return be(be({},e),{to:u,_event:s,event:s.data,delay:i})}function OF(e,t){return ny(e,be(be({},t),{to:gc.Parent}))}function NF(){return OF(AA)}var MF=function(e,t,n){return be(be({},e),{value:Pt(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},PF=function(e){return{type:bF,sendId:e}};function DF(e){var t=ty(e);return{type:Ft.Start,activity:t,exec:void 0}}function LF(e){var t=Dt(e)?e:ty(e);return{type:Ft.Stop,activity:t,exec:void 0}}function UF(e,t,n){var r=Dt(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,s={type:Ft.Stop,activity:a};return s}var zF=function(e){return{type:kA,assignment:e}};function jF(e,t){var n=t?"#".concat(t):"";return"".concat(Ft.After,"(").concat(e,")").concat(n)}function Mh(e,t){var n="".concat(Ft.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Wh(e,t){var n="".concat(Ft.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function ed(e,t){var n="".concat(Ft.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function FF(e,t){return ny(function(n,r){return r},be(be({},t),{to:e}))}function Rue(e){return{type:Ft.Choose,conds:e}}var Oue=function(e){var t,n,r=[];try{for(var a=yt(e),s=a.next();!s.done;s=a.next())for(var i=s.value,c=0;c<i.actions.length;){if(i.actions[c].type===kA){r.push(i.actions[c]),i.actions.splice(c,1);continue}c++}}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r};function up(e,t,n,r,a,s,i){i===void 0&&(i=!1);var c=i?[]:Oue(a),u=c.length?C8(n,r,c,t):n,f=i?[n]:void 0,h=[];function m(w,b){var x;switch(b.type){case Yp:{var E=TF(b,u,r,e.options.delays);return s&&typeof E.delay=="number"&&s(E,u,r),E}case Jv:var k=RF(b,u,r,e.options.delays);return s&&k.to!==gc.Internal&&(w==="entry"?h.push(k):s(k,u,r)),k;case SF:{var A=MF(b,u,r);return s?.(A,u,r),A}case mue:{var R=b,P=(x=R.conds.find(function($){var X=_F($.cond,e.options.guards);return!X||kF(e,X,u,r,s?void 0:t)}))===null||x===void 0?void 0:x.actions;if(!P)return[];var O=Tt(up(e,t,u,r,[{type:w,actions:Do(rs(P),e.options.actions)}],s,i),2),T=O[0],M=O[1];return u=M,f?.push(u),T}case gue:{var P=b.get(u,r.data);if(!P)return[];var z=Tt(up(e,t,u,r,[{type:w,actions:Do(rs(P),e.options.actions)}],s,i),2),q=z[0],U=z[1];return u=U,f?.push(u),q}case _A:{var A=UF(b,u,r);return s?.(A,n,r),A}case kA:{u=C8(u,r,[b],s?void 0:t),f?.push(u);break}default:var L=Ed(b,e.options.actions),B=L.exec;if(s)s(L,u,r);else if(B&&f){var G=f.length-1,ie=be(be({},L),{exec:function($){for(var X=[],re=1;re<arguments.length;re++)X[re-1]=arguments[re];B.apply(void 0,ln([f[G]],Tt(X),!1))}});L=ie}return L}}function g(w){var b,x,E=[];try{for(var k=yt(w.actions),A=k.next();!A.done;A=k.next()){var R=A.value,P=m(w.type,R);P&&(E=E.concat(P))}}catch(O){b={error:O}}finally{try{A&&!A.done&&(x=k.return)&&x.call(k)}finally{if(b)throw b.error}}return h.forEach(function(O){s(O,u,r)}),h.length=0,E}var y=vn(a.map(g));return[y,u]}const $F=Object.freeze(Object.defineProperty({__proto__:null,after:jF,assign:zF,cancel:PF,choose:Rue,done:Mh,doneInvoke:Wh,error:ed,forwardTo:FF,getActionFunction:k1,initEvent:rc,raise:IF,resolveActions:up,resolveLog:MF,resolveRaise:TF,resolveSend:RF,resolveStop:UF,send:ny,sendParent:OF,sendUpdate:NF,start:DF,stop:LF,toActionObject:Ed,toActionObjects:Do,toActivityDefinition:ty},Symbol.toStringTag,{value:"Module"}));var A1=[],Gu=function(e,t){A1.push(e);var n=t(e);return A1.pop(),n},Nue=function(e){return e(A1[A1.length-1])};function BF(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Gi]=function(){return this},t}function Mue(e,t,n,r){var a,s=AF(e.src),i=(a=t?.options.services)===null||a===void 0?void 0:a[s.type],c=e.data?_1(e.data,n,r):void 0,u=i?TA(i,e.id,c):BF(e.id);return u.meta=e,u}function TA(e,t,n){var r=BF(t);if(r.deferred=!0,Cd(e)){var a=r.state=Gu(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Pue(e){try{return typeof e.send=="function"}catch{return!1}}function Due(e){return Pue(e)&&"id"in e}function Lue(e){var t;return be((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Gi]=function(){return this},t),e)}var I1=function(e){return e.type==="atomic"||e.type==="final"};function HF(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function dp(e){return HF(e).filter(function(t){return t.type!=="history"})}function qF(e){var t=[e];return I1(e)?t:t.concat(vn(dp(e).map(qF)))}function Ph(e,t){var n,r,a,s,i,c,u,f,h=new Set(e),m=$3(h),g=new Set(t);try{for(var y=yt(g),w=y.next();!w.done;w=y.next())for(var b=w.value,x=b.parent;x&&!g.has(x);)g.add(x),x=x.parent}catch(z){n={error:z}}finally{try{w&&!w.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}var E=$3(g);try{for(var k=yt(g),A=k.next();!A.done;A=k.next()){var b=A.value;if(b.type==="compound"&&(!E.get(b)||!E.get(b).length))m.get(b)?m.get(b).forEach(function(q){return g.add(q)}):b.initialStateNodes.forEach(function(q){return g.add(q)});else if(b.type==="parallel")try{for(var R=(i=void 0,yt(dp(b))),P=R.next();!P.done;P=R.next()){var O=P.value;g.has(O)||(g.add(O),m.get(O)?m.get(O).forEach(function(q){return g.add(q)}):O.initialStateNodes.forEach(function(q){return g.add(q)}))}}catch(q){i={error:q}}finally{try{P&&!P.done&&(c=R.return)&&c.call(R)}finally{if(i)throw i.error}}}}catch(z){a={error:z}}finally{try{A&&!A.done&&(s=k.return)&&s.call(k)}finally{if(a)throw a.error}}try{for(var T=yt(g),M=T.next();!M.done;M=T.next())for(var b=M.value,x=b.parent;x&&!g.has(x);)g.add(x),x=x.parent}catch(z){u={error:z}}finally{try{M&&!M.done&&(f=T.return)&&f.call(T)}finally{if(u)throw u.error}}return g}function VF(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(I1(r))return r.key}else return{}}var a={};return n.forEach(function(s){a[s.key]=VF(s,t)}),a}function $3(e){var t,n,r=new Map;try{for(var a=yt(e),s=a.next();!s.done;s=a.next()){var i=s.value;r.has(i)||r.set(i,[]),i.parent&&(r.has(i.parent)||r.set(i.parent,[]),r.get(i.parent).push(i))}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function Uue(e,t){var n=Ph([e],t);return VF(e,$3(n))}function Dh(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function zue(e){return ln([],Tt(new Set(vn(ln([],Tt(e.map(function(t){return t.ownEvents})),!1)))),!1)}function W0(e,t){return t.type==="compound"?dp(t).some(function(n){return n.type==="final"&&Dh(e,n)}):t.type==="parallel"?dp(t).every(function(n){return W0(e,n)}):!1}function jue(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function E8(e){return new Set(vn(e.map(function(t){return t.tags})))}function WF(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Pt(e)||Pt(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return WF(e[a],t[a])})}function Fue(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function $ue(e,t){var n=e.exec,r=be(be({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var as=(function(){function e(t){var n=this,r;this.actions=[],this.activities=S8,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||S8,this.meta=jue(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return zue(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t;var r=rc;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=rc;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),Pt(t))return[t];var a=Object.keys(t);return a.concat.apply(a,ln([],Tt(a.map(function(s){return r.toStrings(t[s],n).map(function(i){return s+n+i})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=EA(t,["configuration","transitions","tags","machine"]);return be(be({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return IA(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;_ue(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!r?.transitions.length&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e})(),Bue={deferEvents:!1},_8=(function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=be(be({},Bue),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e})(),g2=new Map,Hue=0,uh={bookId:function(){return"x:".concat(Hue++)},register:function(e,t){return g2.set(e,t),e},get:function(e){return g2.get(e)},free:function(e){g2.delete(e)}};function RA(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function que(){var e=RA();if(e&&"__xstate__"in e)return e.__xstate__}function Vue(e){if(RA()){var t=que();t&&t.register(e)}}function Wue(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],s=!1,i=function(){if(!s){for(s=!0;a.length>0;){var f=a.shift();n=e.transition(n,f,u),r.forEach(function(h){return h.next(n)})}s=!1}},c=Lue({id:t.id,send:function(f){a.push(f),i()},getSnapshot:function(){return n},subscribe:function(f,h,m){var g=Vh(f,h,m);return r.add(g),g.next(n),{unsubscribe:function(){r.delete(g)}}}}),u={parent:t.parent,self:c,id:t.id||"anonymous",observers:r};return n=e.start?e.start(u):n,c}var B3={sync:!1,autoForward:!1},Bn;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Bn||(Bn={}));var Gue=(function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Bn.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(h,m){if(Xd(h))return r.batch(h),r.state;var g=fr(ey(h,m));if(r.status===Bn.Stopped)return r.state;if(r.status!==Bn.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(g.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
154
|
+
Event: `).concat(JSON.stringify(g.data)));return r.scheduler.schedule(function(){r.forward(g);var y=r._nextState(g);r.update(y,g)}),r._state},this.sendTo=function(h,m,g){var y=r.parent&&(m===gc.Parent||r.parent.id===m),w=y?r.parent:Pt(m)?m===gc.Internal?r:r.children.get(m)||uh.get(m):Aue(m)?m:void 0;if(!w){if(!y)throw new Error("Unable to send event to child '".concat(m,"' from service '").concat(r.id,"'."));return}if("machine"in w){if(r.status!==Bn.Stopped||r.parent!==w||r.state.done){var b=be(be({},h),{name:h.name===pue?"".concat(ed(r.id)):h.name,origin:r.sessionId});!g&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([w,b]):w.send(b)}}else!g&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([w,h.data]):w.send(h.data)},this._exec=function(h,m,g,y){y===void 0&&(y=r.machine.options.actions);var w=h.exec||k1(h.type,y),b=Dt(w)?w:w?w.exec:h.exec;if(b)try{return b(m,g.data,r.machine.config.predictableActionArguments?{action:h,_event:g}:{action:h,state:r.state,_event:g})}catch(G){throw r.parent&&r.parent.send({type:"xstate.error",data:G}),G}switch(h.type){case Yp:{var x=h;r.defer(x);break}case Jv:var E=h;if(typeof E.delay=="number"){r.defer(E);return}else E.to?r.sendTo(E._event,E.to,g===rc):r.send(E._event);break;case bF:r.cancel(h.sendId);break;case L3:{if(r.status!==Bn.Running)return;var k=h.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[k.id||k.type])break;if(k.type===Ft.Invoke){var A=AF(k.src),R=r.machine.options.services?r.machine.options.services[A.type]:void 0,P=k.id,O=k.data,T="autoForward"in k?k.autoForward:!!k.forward;if(!R)return;var M=O?_1(O,m,g):void 0;if(typeof R=="string")return;var z=Dt(R)?R(m,g.data,{data:M,src:A,meta:k.meta}):R;if(!z)return;var q=void 0;Cd(z)&&(z=M?z.withContext(M):z,q={autoForward:T}),r.spawn(z,P,q)}else r.spawnActivity(k);break}case _A:{r.stopChild(h.activity.id);break}case SF:var U=h,L=U.label,B=U.value;L?r.logger(L,B):r.logger(B);break}};var a=be(be({},e.defaultOptions),n),s=a.clock,i=a.logger,c=a.parent,u=a.id,f=u!==void 0?u:t.id;this.id=f,this.logger=i,this.clock=s,this.parent=c,this.options=a,this.scheduler=new _8({deferEvents:this.options.deferEvents}),this.sessionId=uh.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Gu(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var s=yt(t.actions),i=s.next();!i.done;i=s.next()){var c=i.value;this.exec(c,t,n)}}catch(u){r={error:u}}finally{try{i&&!i.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,s,i,c,u,f,h,m=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===rc)&&this.options.execute)this.execute(this.state);else for(var g=void 0;g=this._outgoingQueue.shift();)g[0].send(g[1]);if(this.children.forEach(function(z){m.state.children[z.id]=z}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var y=yt(this.eventListeners),w=y.next();!w.done;w=y.next()){var b=w.value;b(t.event)}}catch(z){r={error:z}}finally{try{w&&!w.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}try{for(var x=yt(this.listeners),E=x.next();!E.done;E=x.next()){var b=E.value;b(t,t.event)}}catch(z){s={error:z}}finally{try{E&&!E.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var k=yt(this.contextListeners),A=k.next();!A.done;A=k.next()){var R=A.value;R(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(z){c={error:z}}finally{try{A&&!A.done&&(u=k.return)&&u.call(k)}finally{if(c)throw c.error}}if(this.state.done){var P=t.configuration.find(function(z){return z.type==="final"&&z.parent===m.machine}),O=P&&P.doneData?_1(P.doneData,t.context,n):void 0;this._doneEvent=Wh(this.id,O);try{for(var T=yt(this.doneListeners),M=T.next();!M.done;M=T.next()){var b=M.value;b(this._doneEvent)}}catch(z){f={error:z}}finally{try{M&&!M.done&&(h=T.return)&&h.call(T)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),uh.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Bn.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this,s=Vh(t,n,r);this.listeners.add(s.next),this.status!==Bn.NotStarted&&s.next(this.state);var i=function(){a.doneListeners.delete(i),a.stopListeners.delete(i),s.complete()};return this.status===Bn.Stopped?s.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){a.listeners.delete(s.next),a.doneListeners.delete(i),a.stopListeners.delete(i)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===Bn.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===Bn.Running)return this;this.machine._init(),uh.register(this.sessionId,this),this.initialized=!0,this.status=Bn.Running;var r=t===void 0?this.initialState:Gu(this,function(){return Fue(t)?n.machine.resolveState(t):n.machine.resolveState(as.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,rc)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){Dt(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,a,s,i,c,u,f,h;try{for(var m=yt(this.listeners),g=m.next();!g.done;g=m.next()){var y=g.value;this.listeners.delete(y)}}catch(T){t={error:T}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}try{for(var w=yt(this.stopListeners),b=w.next();!b.done;b=w.next()){var y=b.value;y(),this.stopListeners.delete(y)}}catch(T){r={error:T}}finally{try{b&&!b.done&&(a=w.return)&&a.call(w)}finally{if(r)throw r.error}}try{for(var x=yt(this.contextListeners),E=x.next();!E.done;E=x.next()){var y=E.value;this.contextListeners.delete(y)}}catch(T){s={error:T}}finally{try{E&&!E.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}try{for(var k=yt(this.doneListeners),A=k.next();!A.done;A=k.next()){var y=A.value;this.doneListeners.delete(y)}}catch(T){c={error:T}}finally{try{A&&!A.done&&(u=k.return)&&u.call(k)}finally{if(c)throw c.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Bn.Stopped,this._initialState=void 0;try{for(var R=yt(Object.keys(this.delayedEventsMap)),P=R.next();!P.done;P=R.next()){var O=P.value;this.clock.clearTimeout(this.delayedEventsMap[O])}}catch(T){f={error:T}}finally{try{P&&!P.done&&(h=R.return)&&h.call(R)}finally{if(f)throw f.error}}this.scheduler.clear(),this.scheduler=new _8({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r;if(!(!((r=t._state)===null||r===void 0)&&r.done)){var a=fr({type:"xstate.stop"}),s=Gu(t,function(){var i=vn(ln([],Tt(t.state.configuration),!1).sort(function(m,g){return g.order-m.order}).map(function(m){return Do(m.onExit,t.machine.options.actions)})),c=Tt(up(t.machine,t.state,t.state.context,a,[{type:"exit",actions:i}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),u=c[0],f=c[1],h=new as({value:t.state.value,context:f,_event:a,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:u.filter(function(m){return!F3(m)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return h.changed=!0,h});t.update(s,a),t._stopChildren(),uh.free(t.sessionId)}}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===Bn.NotStarted&&this.options.deferEvents)){if(this.status!==Bn.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var a,s,i=n.state,c=!1,u=[],f=function(y){var w=fr(y);n.forward(w),i=Gu(n,function(){return n.machine.transition(i,w,void 0,r||void 0)}),u.push.apply(u,ln([],Tt(n.machine.config.predictableActionArguments?i.actions:i.actions.map(function(b){return $ue(b,i)})),!1)),c=c||!!i.changed};try{for(var h=yt(t),m=h.next();!m.done;m=h.next()){var g=m.value;f(g)}}catch(y){a={error:y}}finally{try{m&&!m.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}i.changed=c,i.actions=u,n.update(i,fr(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var a=fr(t);if(a.name.indexOf(b8)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(b8)===0}))throw a.data.data;var s=Gu(this,function(){return r.machine.transition(r.state,a,void 0,n||void 0)});return s},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var a=yt(this.forwardTo),s=a.next();!s.done;s=a.next()){var i=s.value,c=this.children.get(i);if(!c)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));c.send(t)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this,r=this.clock.setTimeout(function(){"to"in t&&t.to?n.sendTo(t._event,t.to,!0):n.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=r)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);n&&(this.removeChild(t),Dt(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==Bn.Running)return TA(t,n);if(x8(t))return this.spawnPromise(Promise.resolve(t),n);if(Dt(t))return this.spawnCallback(t,n);if(Due(t))return this.spawnActor(t,n);if(kue(t))return this.spawnObservable(t,n);if(Cd(t))return this.spawnMachine(t,be(be({},r),{id:n}));if(xue(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,be(be({},this.options),{parent:this,id:n.id||t.id})),s=be(be({},B3),n);s.sync&&a.onTransition(function(c){r.send(AA,{state:c,id:a.id})});var i=a;return this.children.set(a.id,i),s.autoForward&&this.forwardTo.add(a.id),a.onDone(function(c){r.removeChild(a.id),r.send(fr(c,{origin:a.id}))}).start(),i},e.prototype.spawnBehavior=function(t,n){var r=Wue(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,s=!1,i;t.then(function(u){s||(i=u,a.removeChild(n),a.send(fr(Wh(n,u),{origin:n})))},function(u){if(!s){a.removeChild(n);var f=ed(n,u);try{a.send(fr(f,{origin:n}))}catch{a.devTools&&a.devTools.send(f,a.state),a.machine.strict&&a.stop()}}});var c=(r={id:n,send:function(){},subscribe:function(u,f,h){var m=Vh(u,f,h),g=!1;return t.then(function(y){g||(m.next(y),!g&&m.complete())},function(y){g||m.error(y)}),{unsubscribe:function(){return g=!0}}},stop:function(){s=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return i}},r[Gi]=function(){return this},r);return this.children.set(n,c),c},e.prototype.spawnCallback=function(t,n){var r,a=this,s=!1,i=new Set,c=new Set,u,f=function(g){u=g,c.forEach(function(y){return y(g)}),!s&&a.send(fr(g,{origin:n}))},h;try{h=t(f,function(g){i.add(g)})}catch(g){this.send(ed(n,g))}if(x8(h))return this.spawnPromise(h,n);var m=(r={id:n,send:function(g){return i.forEach(function(y){return y(g)})},subscribe:function(g){var y=Vh(g);return c.add(y.next),{unsubscribe:function(){c.delete(y.next)}}},stop:function(){s=!0,Dt(h)&&h()},toJSON:function(){return{id:n}},getSnapshot:function(){return u}},r[Gi]=function(){return this},r);return this.children.set(n,m),m},e.prototype.spawnObservable=function(t,n){var r,a=this,s,i=t.subscribe(function(u){s=u,a.send(fr(u,{origin:n}))},function(u){a.removeChild(n),a.send(fr(ed(n,u),{origin:n}))},function(){a.removeChild(n),a.send(fr(Wh(n),{origin:n}))}),c=(r={id:n,send:function(){},subscribe:function(u,f,h){return t.subscribe(u,f,h)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return s},toJSON:function(){return{id:n}}},r[Gi]=function(){return this},r);return this.children.set(n,c),c},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Gi]=function(){return this},r))},e.prototype.attachDev=function(){var t=RA();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(be(be({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:be({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Vue(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Gi]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Bn.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=GF,e})(),Kue=function(e){return Pt(e)?be(be({},B3),{name:e}):be(be(be({},B3),{name:Iue()}),e)};function dh(e,t){var n=Kue(t);return Nue(function(r){return r?r.spawn(e,n.name,n):TA(e,n.name)})}function GF(e,t){var n=new Gue(e,t);return n}function Yue(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function Fg(e){return be(be({type:U3},e),{toJSON:function(){e.onDone,e.onError;var t=EA(e,["onDone","onError"]);return be(be({},t),{type:U3,src:Yue(e.src)})}})}var $g="",H3="#",v2="*",Nu={},Mu=function(e){return e[0]===H3},Zue=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Xue=(function(){function e(t,n,r,a){r===void 0&&(r="context"in t?t.context:void 0);var s=this,i;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Zue(),n),this.parent=a?.parent,this.key=this.config.key||a?.key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:wF),this.id=this.config.id||ln([this.machine.key],Tt(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Nh(this.config.states,function(f,h){var m,g=new e(f,{},void 0,{parent:s,key:h});return Object.assign(s.idMap,be((m={},m[g.id]=g,m),g.idMap)),g}):Nu;var c=0;function u(f){var h,m;f.order=c++;try{for(var g=yt(HF(f)),y=g.next();!y.done;y=g.next()){var w=y.value;u(w)}}catch(b){h={error:b}}finally{try{y&&!y.done&&(m=g.return)&&m.call(g)}finally{if(h)throw h.error}}}u(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(f){var h=f.event;return h===$g}):$g in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=rs(this.config.entry||this.config.onEntry).map(function(f){return Ed(f)}),this.onExit=rs(this.config.exit||this.config.onExit).map(function(f){return Ed(f)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=rs(this.config.invoke).map(function(f,h){var m,g;if(Cd(f)){var y=jg(s.id,h);return s.machine.options.services=be((m={},m[y]=f,m),s.machine.options.services),Fg({src:y,id:y})}else if(Pt(f.src)){var y=f.id||jg(s.id,h);return Fg(be(be({},f),{id:y,src:f.src}))}else if(Cd(f.src)||Dt(f.src)){var y=f.id||jg(s.id,h);return s.machine.options.services=be((g={},g[y]=f.src,g),s.machine.options.services),Fg(be(be({id:y},f),{src:y}))}else{var w=f.src;return Fg(be(be({id:jg(s.id,h)},f),{src:w}))}}),this.activities=rs(this.config.activities).concat(this.invoke).map(function(f){return ty(f)}),this.transition=this.transition.bind(this),this.tags=rs(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||qF(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,s=r.activities,i=r.guards,c=r.services,u=r.delays;return new e(this.config,{actions:be(be({},a),t.actions),activities:be(be({},s),t.activities),guards:be(be({},i),t.guards),services:be(be({},c),t.services),delays:be(be({},u),t.delays)},n??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Dt(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Nh(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===$g,r=this.transitions.filter(function(a){var s=a.eventType===t;return n?s:s||a.eventType===v2});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(s,i){var c=Dt(s)?"".concat(t.id,":delay[").concat(i,"]"):s,u=jF(c,t.id);return t.onEntry.push(ny(u,{delay:s})),t.onExit.push(PF(u)),u},a=Xd(n)?n.map(function(s,i){var c=r(s.delay,i);return be(be({},s),{event:c})}):vn(Object.keys(n).map(function(s,i){var c=n[s],u=Pt(c)?{target:c}:c,f=isNaN(+s)?s:+s,h=r(f,i);return rs(u).map(function(m){return be(be({},m),{event:h,delay:f})})}));return a.map(function(s){var i=s.delay;return be(be({},t.formatTransition(s)),{delay:i})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof as?t.value:qh(t,this.delimiter);if(Pt(a)){var s=this.getStateNode(a).initial;return s!==void 0?this.getStateNodes((n={},n[a]=s,n)):[this,this.states[a]]}var i=Object.keys(a),c=[this];return c.push.apply(c,ln([],Tt(vn(i.map(function(u){return r.getStateNode(u).getStateNodes(a[u])}))),!1)),c},e.prototype.handles=function(t){var n=xF(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof as?t:as.create(t),r=Array.from(Ph([],this.getStateNodes(n.value)));return new as(be(be({},n),{value:this.resolve(n.value),configuration:r,done:W0(r,this),tags:E8(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),s=a.next(n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),s=this.getStateNode(a[0]),i=s._transition(t[a[0]],n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionParallelNode=function(t,n,r){var a,s,i={};try{for(var c=yt(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var m=this.getStateNode(f),g=m._transition(h,n,r);g&&(i[f]=g)}}}catch(E){a={error:E}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}var y=Object.keys(i).map(function(E){return i[E]}),w=vn(y.map(function(E){return E.transitions})),b=y.some(function(E){return E.transitions.length>0});if(!b)return this.next(n,r);var x=vn(Object.keys(i).map(function(E){return i[E].configuration}));return{transitions:w,exitSet:vn(y.map(function(E){return E.exitSet})),configuration:x,source:n,actions:vn(Object.keys(i).map(function(E){return i[E].actions}))}},e.prototype._transition=function(t,n,r){return Pt(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,fr(n))},e.prototype.next=function(t,n){var r,a,s=this,i=n.name,c=[],u=[],f;try{for(var h=yt(this.getCandidates(i)),m=h.next();!m.done;m=h.next()){var g=m.value,y=g.cond,w=g.in,b=t.context,x=w?Pt(w)&&Mu(w)?t.matches(qh(this.getStateNodeById(w).path,this.delimiter)):IA(qh(w,this.delimiter),bue(this.path.slice(0,-2))(t.value)):!0,E=!1;try{E=!y||kF(this.machine,y,b,n,t)}catch(R){throw new Error("Unable to evaluate guard '".concat(y.name||y.type,"' in transition for event '").concat(i,"' in state node '").concat(this.id,`':
|
|
155
|
+
`).concat(R.message))}if(E&&x){g.target!==void 0&&(u=g.target),c.push.apply(c,ln([],Tt(g.actions),!1)),f=g;break}}}catch(R){r={error:R}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}if(f){if(!u.length)return{transitions:[f],exitSet:[],configuration:t.value?[this]:[],source:t,actions:c};var k=vn(u.map(function(R){return s.getRelativeStateNodes(R,t.historyValue)})),A=!!f.internal;return{transitions:[f],exitSet:A?[]:vn(u.map(function(R){return s.getPotentiallyReenteringNodes(R)})),configuration:k,source:t,actions:c}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var n=[],r=this,a=t;r&&r!==a;)n.push(r),r=r.parent;return r!==a?[]:(n.push(a),n)},e.prototype.getActions=function(t,n,r,a,s,i,c){var u,f,h,m,g=this,y=i?Ph([],this.getStateNodes(i.value)):[],w=new Set;try{for(var b=yt(Array.from(t).sort(function(U,L){return U.order-L.order})),x=b.next();!x.done;x=b.next()){var E=x.value;(!Dh(y,E)||Dh(r.exitSet,E)||E.parent&&w.has(E.parent))&&w.add(E)}}catch(U){u={error:U}}finally{try{x&&!x.done&&(f=b.return)&&f.call(b)}finally{if(u)throw u.error}}try{for(var k=yt(y),A=k.next();!A.done;A=k.next()){var E=A.value;(!Dh(t,E)||Dh(r.exitSet,E.parent))&&r.exitSet.push(E)}}catch(U){h={error:U}}finally{try{A&&!A.done&&(m=k.return)&&m.call(k)}finally{if(h)throw h.error}}r.exitSet.sort(function(U,L){return L.order-U.order});var R=Array.from(w).sort(function(U,L){return U.order-L.order}),P=new Set(r.exitSet),O=vn(R.map(function(U){var L=[];if(U.type!=="final")return L;var B=U.parent;if(!B.parent)return L;L.push(Mh(U.id,U.doneData),Mh(B.id,U.doneData?_1(U.doneData,a,s):void 0));var G=B.parent;return G.type==="parallel"&&dp(G).every(function(ie){return W0(r.configuration,ie)})&&L.push(Mh(G.id)),L})),T=R.map(function(U){var L=U.onEntry,B=U.activities.map(function(G){return DF(G)});return{type:"entry",actions:Do(c?ln(ln([],Tt(L),!1),Tt(B),!1):ln(ln([],Tt(B),!1),Tt(L),!1),g.machine.options.actions)}}).concat({type:"state_done",actions:O.map(function(U){return IF(U)})}),M=Array.from(P).map(function(U){return{type:"exit",actions:Do(ln(ln([],Tt(U.onExit),!1),Tt(U.activities.map(function(L){return LF(L)})),!1),g.machine.options.actions)}}),z=M.concat({type:"transition",actions:Do(r.actions,this.machine.options.actions)}).concat(T);if(n){var q=Do(vn(ln([],Tt(t),!1).sort(function(U,L){return L.order-U.order}).map(function(U){return U.onExit})),this.machine.options.actions).filter(function(U){return!F3(U)});return z.concat({type:"stop",actions:q})}return z},e.prototype.transition=function(t,n,r,a){t===void 0&&(t=this.initialState);var s=fr(n),i;if(t instanceof as)i=r===void 0?t:this.resolveState(as.from(t,r));else{var c=Pt(t)?this.resolve(E1(this.getResolvedPath(t))):this.resolve(t),u=r??this.machine.context;i=this.resolveState(as.from(c,u))}if(this.strict&&!this.events.includes(s.name)&&!wue(s.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var f=this._transition(i.value,i,s)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},h=Ph([],this.getStateNodes(i.value)),m=f.configuration.length?Ph(h,f.configuration):h;return f.configuration=ln([],Tt(m),!1),this.resolveTransition(f,i,i.context,a,s)},e.prototype.resolveRaisedTransition=function(t,n,r,a){var s,i=t.actions;return t=this.transition(t,n,void 0,a),t._event=r,t.event=r.data,(s=t.actions).unshift.apply(s,ln([],Tt(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a,s){var i,c,u,f,h=this;s===void 0&&(s=rc);var m=t.configuration,g=!n||t.transitions.length>0,y=g?t.configuration:n?n.configuration:[],w=W0(y,this),b=g?Uue(this.machine,m):void 0,x=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,E=this.getActions(new Set(y),w,t,r,s,n,a),k=n?be({},n.activities):{};try{for(var A=yt(E),R=A.next();!R.done;R=A.next()){var P=R.value;try{for(var O=(u=void 0,yt(P.actions)),T=O.next();!T.done;T=O.next()){var M=T.value;M.type===L3?k[M.activity.id||M.activity.type]=M:M.type===_A&&(k[M.activity.id||M.activity.type]=!1)}}catch(Q){u={error:Q}}finally{try{T&&!T.done&&(f=O.return)&&f.call(O)}finally{if(u)throw u.error}}}}catch(Q){i={error:Q}}finally{try{R&&!R.done&&(c=A.return)&&c.call(A)}finally{if(i)throw i.error}}var z=Tt(up(this,n,r,s,E,a,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),q=z[0],U=z[1],L=Tt(Cue(q,F3),2),B=L[0],G=L[1],ie=q.filter(function(Q){var se;return Q.type===L3&&((se=Q.activity)===null||se===void 0?void 0:se.type)===U3}),$=ie.reduce(function(Q,se){return Q[se.activity.id]=Mue(se.activity,h.machine,U,s),Q},n?be({},n.children):{}),X=new as({value:b||n.value,context:U,_event:s,_sessionid:n?n._sessionid:null,historyValue:b?x?Eue(x,b):void 0:n?n.historyValue:void 0,history:!b||t.source?n:void 0,actions:b?G:[],activities:b?k:n?n.activities:{},events:[],configuration:y,transitions:t.transitions,children:$,done:w,tags:E8(y),machine:this}),re=r!==U;X.changed=s.name===AA||re;var pe=X.history;pe&&delete pe.history;var _e=!w&&(this._transient||m.some(function(Q){return Q._transient}));if(!g&&(!_e||s.name===$g))return X;var j=X;if(!w)for(_e&&(j=this.resolveRaisedTransition(j,{type:fue},s,a));B.length;){var Y=B.shift();j=this.resolveRaisedTransition(j,Y._event,s,a)}var Z=j.changed||(pe?!!j.actions.length||re||typeof pe.value!=typeof j.value||!WF(j.value,pe.value):void 0);return j.changed=Z,j.history=pe,j},e.prototype.getStateNode=function(t){if(Mu(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=Mu(t)?t.slice(H3.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&Mu(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=j3(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||Nu;switch(this.type){case"parallel":return Nh(this.initialStateValue,function(s,i){return s?r.getStateNode(i).resolve(t[i]||s):Nu});case"compound":if(Pt(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?Nh(t,function(s,i){return s?r.getStateNode(i).resolve(s):Nu}):this.initialStateValue||{};default:return t||Nu}},e.prototype.getResolvedPath=function(t){if(Mu(t)){var n=this.machine.idMap[t.slice(H3.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return j3(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=w8(this.states,function(r){return r.initialStateValue||Nu},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=I1(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;Pt(n.target)?t=Mu(n.target)?E1(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(I1(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=V0(this.initialStateValue);return vn(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=Tt(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var s=this.getStateNode(r);if(s.type==="history")return s.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:w8(this.states,function(n,r){if(!t)return n.historyValue();var a=Pt(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?vn(V0(a).map(function(i){return r.getFromRelativePath(i)})):r.initialStateNodes}var s=Sue(r.path,"states")(t).current;return Pt(s)?[r.getStateNode(s)]:vn(V0(s).map(function(i){return n.history==="deep"?r.getFromRelativePath(i):[r.states[i[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=vn(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var s=this.states,i=new Set(this.ownEvents);if(s)try{for(var c=yt(Object.keys(s)),u=c.next();!u.done;u=c.next()){var f=u.value,h=s[f];if(h.states)try{for(var m=(r=void 0,yt(h.events)),g=m.next();!g.done;g=m.next()){var y=g.value;i.add("".concat(y))}}catch(w){r={error:w}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}}}catch(w){t={error:w}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!Pt(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var s=a?n.key+r:r;if(n.parent)try{var i=n.parent.getStateNodeByPath(s);return i}catch(c){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
156
|
+
`).concat(c.message))}else return n.getStateNodeByPath(s)})},e.prototype.formatTransition=function(t){var n=this,r=Tue(t.target),a="internal"in t?t.internal:r?r.some(function(u){return Pt(u)&&u[0]===n.delimiter}):!0,s=this.machine.options.guards,i=this.resolveTarget(r),c=be(be({},t),{actions:Do(rs(t.actions)),cond:_F(t.cond,s),target:i,source:this,internal:a,eventType:t.event,toJSON:function(){return be(be({},c),{target:c.target?c.target.map(function(u){return"#".concat(u.id)}):void 0,source:"#".concat(n.id)})}});return c},e.prototype.formatTransitions=function(){var t,n,r=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var s=this.config.on,i=v2,c=s[i],u=c===void 0?[]:c,f=EA(s,[typeof i=="symbol"?i:i+""]);a=vn(Object.keys(f).map(function(k){var A=Ou(k,f[k]);return A}).concat(Ou(v2,u)))}var h=this.config.always?Ou("",this.config.always):[],m=this.config.onDone?Ou(String(Mh(this.id)),this.config.onDone):[],g=vn(this.invoke.map(function(k){var A=[];return k.onDone&&A.push.apply(A,ln([],Tt(Ou(String(Wh(k.id)),k.onDone)),!1)),k.onError&&A.push.apply(A,ln([],Tt(Ou(String(ed(k.id)),k.onError)),!1)),A})),y=this.after,w=vn(ln(ln(ln(ln([],Tt(m),!1),Tt(g),!1),Tt(a),!1),Tt(h),!1).map(function(k){return rs(k).map(function(A){return r.formatTransition(A)})}));try{for(var b=yt(y),x=b.next();!x.done;x=b.next()){var E=x.value;w.push(E)}}catch(k){t={error:k}}finally{try{x&&!x.done&&(n=b.return)&&n.call(b)}finally{if(t)throw t.error}}return w},e})();function Qd(e,t){return new Xue(e,t)}var ko=zF,ry=NF,Que=FF,Jue=_.useLayoutEffect;function k8(e){var t=_.useRef();return t.current||(t.current={v:e()}),t.current.v}var T1=function(){return T1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},T1.apply(this,arguments)},ede=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},tde=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(c){i={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s};function nde(e,t){var n=k8(function(){return typeof e=="function"?e():e}),r=t.context,a=t.guards,s=t.actions,i=t.activities,c=t.services,u=t.delays;t.state;var f=ede(t,["context","guards","actions","activities","services","delays","state"]),h=k8(function(){var m={context:r,guards:a,actions:s,activities:i,services:c,delays:u},g=n.withConfig(m,function(){return T1(T1({},n.context),r)});return GF(g,f)});return Jue(function(){Object.assign(h.machine.options.actions,s),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,i),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,u)},[s,a,i,c,u]),h}function rde(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=tde(t,2),a=r[0],s=a===void 0?{}:a,i=r[1],c=nde(e,s);return _.useEffect(function(){if(i){var u=c.subscribe(Vh(i));return function(){u.unsubscribe()}}},[i]),_.useEffect(function(){var u=s.state;return c.start(u?as.create(u):void 0),function(){c.stop(),c.status=Bn.NotStarted}},[]),c}function ade(e){return e.status!==0?e.getSnapshot():e.machine.initialState}function sde(e){return"state"in e&&"machine"in e}function ode(e){return"state"in e}var ide=function(e,t){return e===t},lde=function(e,t){if(sde(e)){if(e.status===0&&t.current)return t.current;var n=ade(e);return t.current=e.status===0?n:null,n}return ode(e)?e.state:void 0};function cde(e,t,n,r){n===void 0&&(n=ide);var a=_.useRef(null),s=_.useCallback(function(u){var f=e.subscribe(u).unsubscribe;return f},[e]),i=_.useCallback(function(){return lde(e,a)},[e,r]),c=yF.useSyncExternalStoreWithSelector(s,i,i,t,n);return c}const ude=e=>{if(e instanceof $a)return e;if(e instanceof Error){if(e.name==="InvalidStateError"){const{message:t,recoverySuggestion:n}=Sd[Gt.PasskeyAlreadyExists];return new $a({name:Gt.PasskeyAlreadyExists,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=Sd[Gt.PasskeyRegistrationCanceled];return new $a({name:Gt.PasskeyRegistrationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}}return NU(e)},dde=async e=>{try{const t=MU();qd(t,Gt.PasskeyNotSupported);const n=bX(e),r=await navigator.credentials.create({publicKey:n});return EX(r),SX(r)}catch(t){throw ude(t)}},fde=e=>jn(er,Jn("StartWebAuthnRegistration"),mr(),{...tr,...e}),hde=e=>jn(er,Jn("CompleteWebAuthnRegistration"),mr(),{...tr,...e});async function pde(){const e=Zt.getConfig().Auth?.Cognito;ht(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await _v();Hd(r);const a=fde({endpointResolver:Ct({endpointOverride:t})}),{CredentialCreationOptions:s}=await a({region:xt(n),userAgentValue:Ut(tt.StartWebAuthnRegistration)},{AccessToken:r.accessToken.toString()});CX(s);const i=await dde(s);await hde({endpointResolver:Ct({endpointOverride:t})})({region:xt(n),userAgentValue:Ut(tt.CompleteWebAuthnRegistration)},{AccessToken:r.accessToken.toString(),Credential:i})}const mde=e=>jn(er,Jn("ListWebAuthnCredentials"),mr(),{...tr,...e});async function gde(e,t){const n=e.getConfig().Auth?.Cognito;ht(n);const{userPoolEndpoint:r,userPoolId:a}=n,{tokens:s}=await e.Auth.fetchAuthSession();Hd(s);const i=mde({endpointResolver:Ct({endpointOverride:r})}),{Credentials:c=[],NextToken:u}=await i({region:xt(a),userAgentValue:Ut(tt.ListWebAuthnCredentials)},{AccessToken:s.accessToken.toString(),MaxResults:t?.pageSize,NextToken:t?.nextToken});return{credentials:c.map(h=>({credentialId:h.CredentialId,friendlyCredentialName:h.FriendlyCredentialName,relyingPartyId:h.RelyingPartyId,authenticatorAttachment:h.AuthenticatorAttachment,authenticatorTransports:h.AuthenticatorTransports,createdAt:h.CreatedAt?new Date(h.CreatedAt*1e3):void 0})),nextToken:u}}async function OA(e){return gde(Zt,e)}const NA=e=>e.context.actorRef?.getSnapshot(),fp=e=>NA(e)?.context,vde={category:Ba.AI,apis:[Ro.CreateConversation,Ro.DeleteConversation,Ro.ListConversations,Ro.UpdateConversation,Ro.OnMessage,Ro.SendMessage,Ro.Generation]},yde={apis:[tt.DeleteUser,tt.UpdatePassword],category:Ba.Auth},bde={apis:[tt.SignUp,tt.ConfirmSignUp,tt.ResendSignUpCode,tt.SignIn,tt.ConfirmSignIn,tt.FetchUserAttributes,tt.SignOut,tt.ResetPassword,tt.ConfirmResetPassword,tt.SignInWithRedirect],category:Ba.Auth},Sde={apis:[ss.UploadData],category:Ba.Storage},wde={apis:[e3.NotifyMessageInteraction],category:Ba.InAppMessaging},xde={category:Ba.Geo,apis:[Fh.SearchByText,Fh.SearchForSuggestions,Fh.SearchByPlaceId]},Cde={category:Ba.Geo,apis:[]},Ede={apis:[ss.UploadData],category:Ba.Storage},_de={apis:[ss.UploadData,ss.Copy,ss.GetUrl,ss.List,ss.Remove,ss.GetDataAccess,ss.ListCallerAccessGrants],category:Ba.Storage};function wa(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Bo(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function kde(e){return wa(e)&&Object.prototype.toString.call(e)==="[object Map]"}function Ade(e){return wa(e)&&Object.prototype.toString.call(e)==="[object Set]"}function MA(e){if(e==null)return!0;if(wa(e)&&(kde(e)||Ade(e)))return!e.size;if(wa(e)&&(Bo(e)||Array.isArray(e)))return!e.length;for(const t in e)if(Ho(e,t))return!1;return!0}function Ide(e){return Array.isArray(e)&&MA(e)}function Tde(...e){return e.every(Ide)}function KF(e){return wa(e)&&MA(e)}function Rde(...e){return e.every(KF)}function Ho(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function qo(e){return typeof e=="function"}const Yt=(e,t)=>t?`${e}--${t}`:"",ea=(e,t,n)=>n?`${e}--${t}`:"";function Ode(...e){}function Nde(e,t){const n={},r={};return Object.entries(e).forEach(([a,s])=>{t(a)?n[a]=s:r[a]=s}),[n,r]}const YF=({payload:e},t,n)=>{const{data:r,event:a}=e,{send:s}=t,{onSignIn:i,onSignOut:c}=n??{};switch(a){case"signedIn":{qo(i)&&i(e);break}case"signInWithRedirect":{s("SIGN_IN_WITH_REDIRECT");break}case"signedOut":{qo(c)&&c(),s("SIGN_OUT");break}case"tokenRefresh_failure":{if(r?.error?.name===rl.NetworkError)return;s("SIGN_OUT");break}}},Mde=(e,t=YF)=>{const n=r=>t(r,e);return Bs.listen("auth",n,"authenticator-hub-handler")},ZF=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],ay={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:ZF,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},Pde=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Dde=(e,t)=>{if(t?.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case t?.matches("confirmSignUp"):case t?.matches("resendSignUpCode"):return"confirmSignUp";case t?.matches("confirmSignIn"):return"confirmSignIn";case t?.matches("setupTotp.edit"):case t?.matches("setupTotp.submit"):return"setupTotp";case t?.matches("signIn.submit"):return t?.context.selectedAuthMethod!=null?"signInSelectAuthFactor":"signIn";case t?.matches("signIn.selectMethod"):return"signInSelectAuthFactor";case t?.matches("passkeyPrompt"):return"passkeyPrompt";case t?.matches("signIn"):return"signIn";case t?.matches("signUp"):case t?.matches("autoSignIn"):return"signUp";case t?.matches("forceChangePassword"):return"forceNewPassword";case t?.matches("forgotPassword"):return"forgotPassword";case t?.matches("confirmResetPassword"):return"confirmResetPassword";case t?.matches("selectUserAttributes"):return"verifyUser";case t?.matches("confirmVerifyUserAttribute"):return"confirmVerifyUser";case t?.matches("setupEmail"):return"setupEmail";case t?.matches("selectMfaType"):return"selectMfaType";case e.matches("getCurrentUser"):case t?.matches("fetchUserAttributes"):return"transition";default:return null}},Lde=e=>{const t=n=>r=>e({type:n,data:r});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),selectAuthMethod:t("SELECT_METHOD"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),toShowAuthMethods:t("SHOW_AUTH_METHODS"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},Ude=e=>{const t=fp(e)??{},{allowedMfaTypes:n,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,preferredChallenge:i,remoteError:c,selectedAuthMethod:u,validationError:f,totpSecretCode:h=null,unverifiedUserAttributes:m,username:g}=t,{socialProviders:y=[],loginMechanisms:w}=e.context?.config??{},b=w?.[0],x=t?.user??e.context?.user,E=!!(f&&Object.keys(f).length>0),k=NA(e),A=e.hasTag("pending")||k?.hasTag("pending"),R=Dde(e,k),P=(T=>{switch(T){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(R);return{allowedMfaTypes:n,authStatus:P,availableAuthMethods:r,challengeName:a,codeDeliveryDetails:s,error:c,hasValidationErrors:E,isPending:A,loginMechanism:b,preferredChallenge:i,route:R,selectedAuthMethod:u,socialProviders:y,totpSecretCode:h,unverifiedUserAttributes:m,user:x,username:g,validationErrors:f}},zde=({send:e,state:t})=>{const n=Lde(e),r=Ude(t);return{...n,...r}};var td;(function(e){e.Apple="Apple",e.Amazon="Amazon",e.Facebook="Facebook",e.Google="Google"})(td||(td={}));var A8;(function(e){e.Email="email",e.PhoneNumber="phone_number"})(A8||(A8={}));const jde=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Fde=["username","email","phone_number"],XF=[...Fde,...jde,"confirmation_code","password","confirm_password"],$de=e=>XF.includes(e),QF=e=>XF.includes(e),Bde=e=>Array.isArray(e),Hde=e=>e?Bde(e)?e:[e]:null,qde=e=>{const t=e.trim().split("");for(let n=0;n<t.length;n++)n>0&&n<t.length-1&&(t[n]="*");return t.join("")},Vde=e=>{if(e.length<4)return e;const t=e.split("");for(let n=0;n<t.length-4;n++)t[n]="*";return t.join("")},Wde=e=>{const t=e.split("@");return`${qde(t[0])}@${t[1]}`},Gde=(e,t)=>e==="Phone Number"?Vde(t):Wde(t),Kde=e=>Pde.some(t=>e.includes(t)),Yde=(e,t,n)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${n}&issuer=${e}`);function Zde(e,...t){return Object.entries(e).reduce((n,[r,a])=>({...n,[r]:t.includes(r)?a:a?.trim()}),{})}const Xde={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_EMAIL:"Confirm Email Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CONTINUE:"Continue",CONTINUE_WITHOUT_PASSKEY:"Continue without a Passkey",CREATE_ACCOUNT:"Create Account",CREATE_ACCOUNT_WITH_EMAIL_OTP:"Create account with Email OTP",CREATE_ACCOUNT_WITH_PASSWORD:"Create account with Password",CREATE_ACCOUNT_WITH_SMS_OTP:"Create account with SMS OTP",CREATE_PASSKEY:"Create a Passkey",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",EMAIL_OTP:"Email Message",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",ENTER_USERNAME_FIRST:"Please enter your username first",EXISTING_PASSKEYS:"Existing Passkeys",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",MFA_SETUP_SELECTION:"Multi-Factor Authentication Setup",MFA_SELECTION:"Multi-Factor Authentication",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",OTHER_SIGN_IN_OPTIONS:"Other sign-in options",PASSKEY_AUTHENTICATION_CANCELED:"Passkey authentication was canceled. Please try again or use a different sign-in method.",PASSKEY_CREATED_SUCCESS:"Passkey created successfully!",PASSKEY_LABEL:"Passkey",PASSKEY_PROMPT_DESCRIPTION:"Passkeys are WebAuthn credentials that validate your identity using biometric data like touch or facial recognition or device authentication like passwords or PINs, serving as a secure password replacement.",PASSKEY_PROMPT_HEADING:"Sign in faster with Passkey",PASSKEY_REGISTERED:"Your passkey has been successfully registered.",PASSKEY_REGISTRATION_FAILED:"Failed to create passkey. Please try again.",PASSWORD:"Password",PASSWORDLESS_NOT_ENABLED:"Passwordless authentication is not enabled for this account. Please contact your administrator or use password sign-in.",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",REGISTERING:"Registering",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",CODE_DELIVERY_FAILED:"Unable to send verification code. Please try again.",VERIFICATION_CODE_EXPIRED:"Your verification code has expired. Please request a new code.",VERIFICATION_CODE_INVALID:"The verification code you entered is incorrect. Please try again.",SENDING:"Sending",SELECT_MFA_TYPE:"Select MFA Type",SETUP_ANOTHER_PASSKEY:"Setup another Passkey",SETUP_EMAIL:"Setup Email",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_EMAIL:"Sign In with Email",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN_WITH_PASSKEY:"Sign In with Passkey",SIGN_IN_WITH_PASSWORD:"Sign In with Password",SIGN_IN_WITH_SMS:"Sign In with SMS",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SMS_MFA:"Text Message (SMS)",SUBMIT:"Submit",SUBMITTING:"Submitting",SOFTWARE_TOKEN_MFA:"Authenticator App (TOTP)",UPPERCASE_COPY:"COPY",USERNAME:"Username",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"},G0={...Xde},ke={...G0};function Se(e){return wU.get(e)}const PA=e=>{const t=e?.context.config?.loginMechanisms,[n]=t??["username"];return n},Qde=e=>{const t={...e};for(const[n,r]of Object.entries(e)){const{label:a,placeholder:s}=r;t[n]={...r,label:a?Se(a):void 0,placeholder:s?Se(s):void 0}}return t},Jde=e=>Object.entries(e).sort((t,n)=>{const r=t[1].order||Number.MAX_VALUE,a=n[1].order||Number.MAX_VALUE;return r-a}).filter(t=>t[1]!==void 0),efe="+1",Vo=e=>{let t=ay[e];const{type:n}=t;return n==="tel"&&(t={...t,dialCode:efe}),t},sy=e=>{const t=PA(e);return{...Vo(t),autocomplete:"username"}},K0=e=>({confirmation_code:{...Vo("confirmation_code"),label:"Code *",placeholder:"Code"}}),tfe=e=>{const t=e.context.actorRef?.getSnapshot()?.context,n=t?.availableAuthMethods,r=t?.preferredChallenge,a=!n?.length||n.length===1&&n[0]==="PASSWORD"||n.length>1&&(!r||r==="PASSWORD"),s={username:{...sy(e)}};return a&&(s.password={...Vo("password"),autocomplete:"current-password"}),s},nfe=e=>{const{loginMechanisms:t,signUpAttributes:n}=e.context.config,r=PA(e),s=e.context.actorRef?.getSnapshot()?.context?.availableAuthMethods,i=s&&s.length>1,c=Array.from(new Set([...t,"password","confirm_password",...n])),u={};for(const f of c)if(QF(f)){const h=f===r?sy(e):Vo(f),m=i&&(f==="email"||f==="phone_number"||f==="password"||f==="confirm_password");u[f]={...h,...m&&{isRequired:!1}}}else console.debug(`Authenticator does not have a default implementation for ${f}. Customize SignUp FormFields to add your own.`);return u},rfe=e=>({confirmation_code:{...Vo("confirmation_code"),placeholder:"Enter your code"}}),afe=e=>{const t=PA(e),{label:n}=ay[t];return{username:{...sy(e),label:`Enter your ${n.toLowerCase()}`,placeholder:`Enter your ${n.toLowerCase()}`}}},sfe=e=>({...K0(),password:{...Vo("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Vo("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),ofe=e=>{const t=NA(e),{missingAttributes:n}=t.context,r=Array.from(new Set(["password","confirm_password",...n??[]])),a={};for(const s of r)QF(s)?a[s]={...Vo(s)}:console.debug(`Authenticator does not have a default implementation for ${s}. Customize ForceNewPassword FormFields to add your own.`);return a},ife=e=>({email:Vo("email")}),lfe={signIn:tfe,signUp:nfe,confirmSignUp:rfe,confirmSignIn:K0,forceNewPassword:ofe,forgotPassword:afe,confirmResetPassword:sfe,confirmVerifyUser:K0,setupEmail:ife,setupTotp:K0},cfe=(e,t)=>{const n=lfe[e];return n(t)},ufe=(e,t)=>{const n=fp(t)?.formFields?.[e];return!n||Object.keys(n).length===0?{}:Object.entries(n).reduce((r,[a,s])=>{if((e==="signIn"||e==="forgotPassword")&&a==="username"){const c={...sy(t),...s};return{...r,[a]:c}}else if($de(a)){const c={...ay[a],...s};return{...r,[a]:c}}else return{...r,[a]:s}},{})},dfe=(e,t)=>{const n=cfe(e,t),r=ufe(e,t),a={...n,...r};return delete a.QR,Qde(a)},ffe=e=>e.map(t=>{const n=t[0],r={...t[1],order:void 0};return[n,r]}),hfe=(e,t)=>{const n=dfe(e,t);return ffe(Jde(n))},pfe=e=>{switch(e){case"EMAIL_OTP":return Se(ke.CONFIRM_EMAIL);case"SMS_MFA":return Se(ke.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return Se(ke.CONFIRM_TOTP);default:return Se(ke.CONFIRM_MFA_DEFAULT)}},mfe=e=>{const{DeliveryMedium:t,Destination:n}=e??{},r=t==="EMAIL",a=t==="SMS",s=Se(ke.CODE_ARRIVAL);return r||a?`${Se(r?ke.CODE_EMAILED:ke.CODE_TEXTED)} ${n}. ${s}.`:`${Se(ke.CODE_SENT)}. ${s}.`},gfe=e=>{const{DeliveryMedium:t}=e??{},n=t==="EMAIL";return Se(!n&&t==="SMS"?ke.WE_SENT_CODE:n?ke.WE_EMAILED:ke.WE_TEXTED)},vfe={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},yfe=(e,t)=>Se(`Sign ${e==="signIn"?"In":"Up"} with ${vfe[t]}`),bfe=e=>Se(e==="MFA_SETUP"?ke.MFA_SETUP_SELECTION:ke.MFA_SELECTION),Sfe=e=>{switch(e){case"email":return Se(ke.EMAIL_ADDRESS);case"phone_number":return Se(ke.PHONE_NUMBER);default:return Se(ke.USERNAME)}},wfe=e=>{switch(e){case"EMAIL":return Se(G0.EMAIL_OTP);case"SMS":return Se(G0.SMS_MFA);case"TOTP":return Se(G0.SOFTWARE_TOKEN_MFA);default:return Se(e)}},Vn={getBackToSignInText:()=>Se(ke.BACK_SIGN_IN),getChangePasswordText:()=>Se(ke.CHANGE_PASSWORD),getChangingText:()=>Se(ke.CHANGING_PASSWORD),getConfirmText:()=>Se(ke.CONFIRM),getConfirmingText:()=>Se(ke.CONFIRMING),getContinueText:()=>Se(ke.CONTINUE),getCopyText:()=>Se(ke.UPPERCASE_COPY),getHidePasswordText:()=>Se(ke.HIDE_PASSWORD),getLoadingText:()=>Se(ke.LOADING),getOrText:()=>Se(ke.OR),getResendCodeText:()=>Se(ke.RESEND_CODE),getSendCodeText:()=>Se(ke.SEND_CODE),getSendingText:()=>Se(ke.SENDING),getShowPasswordText:()=>Se(ke.SHOW_PASSWORD),getSubmitText:()=>Se(ke.SUBMIT),getSubmittingText:()=>Se(ke.SUBMITTING),getSignInTabText:()=>Se(ke.SIGN_IN_TAB),getSignUpTabText:()=>Se(ke.CREATE_ACCOUNT),getForgotPasswordText:e=>Se(e?ke.FORGOT_PASSWORD:ke.FORGOT_YOUR_PASSWORD),getSigningInText:()=>Se(ke.SIGNING_IN_BUTTON),getSignInText:()=>Se(ke.SIGN_IN_BUTTON),getCreatingAccountText:()=>Se(ke.CREATING_ACCOUNT),getCreateAccountText:()=>Se(ke.CREATE_ACCOUNT),getCreateAccountWithEmailText:()=>Se(ke.CREATE_ACCOUNT_WITH_EMAIL_OTP),getCreateAccountWithPasswordText:()=>Se(ke.CREATE_ACCOUNT_WITH_PASSWORD),getCreateAccountWithSmsText:()=>Se(ke.CREATE_ACCOUNT_WITH_SMS_OTP),getDeliveryMessageText:mfe,getDeliveryMethodText:gfe,getChallengeText:pfe,getResetYourPasswordText:()=>Se(ke.RESET_PASSWORD),getSetupEmailText:()=>Se(ke.SETUP_EMAIL),getSetupTotpText:()=>Se(ke.SETUP_TOTP),getSetupTotpInstructionsText:()=>Se("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>Se("COPIED"),getSignInWithFederationText:yfe,getMfaTypeLabelByValue:wfe,getSelectMfaTypeByChallengeName:bfe,getSelectMfaTypeText:()=>Se(ke.SELECT_MFA_TYPE),getSkipText:()=>Se(ke.SKIP),getVerifyText:()=>Se(ke.VERIFY),getVerifyContactText:()=>Se(ke.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>Se(ke.VERIFY_HEADING),getPasskeyPromptHeadingText:()=>Se(ke.PASSKEY_PROMPT_HEADING),getPasskeyPromptDescriptionText:()=>Se(ke.PASSKEY_PROMPT_DESCRIPTION),getCreatePasskeyText:()=>Se(ke.CREATE_PASSKEY),getRegisteringText:()=>Se(ke.REGISTERING),getContinueWithoutPasskeyText:()=>Se(ke.CONTINUE_WITHOUT_PASSKEY),getPasskeyCreatedSuccessText:()=>Se(ke.PASSKEY_CREATED_SUCCESS),getPasskeyRegisteredText:()=>Se(ke.PASSKEY_REGISTERED),getPasskeyRegistrationFailedText:()=>Se(ke.PASSKEY_REGISTRATION_FAILED),getPasskeyLabelText:()=>Se(ke.PASSKEY_LABEL),getExistingPasskeysText:()=>Se(ke.EXISTING_PASSKEYS),getSetupAnotherPasskeyText:()=>Se(ke.SETUP_ANOTHER_PASSKEY),getSignInWithPasswordText:()=>Se(ke.SIGN_IN_WITH_PASSWORD),getSignInWithEmailText:()=>Se(ke.SIGN_IN_WITH_EMAIL),getSignInWithSmsText:()=>Se(ke.SIGN_IN_WITH_SMS),getSignInWithPasskeyText:()=>Se(ke.SIGN_IN_WITH_PASSKEY),getOtherSignInOptionsText:()=>Se(ke.OTHER_SIGN_IN_OPTIONS),getEnterUsernameFirstText:()=>Se(ke.ENTER_USERNAME_FIRST),getUsernameLabelByLoginMechanism:Sfe,getInvalidEmailText:()=>Se("Please enter a valid email"),getRequiredFieldText:()=>Se("This field is required")};var y2,I8;function JF(){if(I8)return y2;I8=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=Array(a);++r<a;)s[r]=n(t[r],r,t);return s}return y2=e,y2}var b2,T8;function xfe(){if(T8)return b2;T8=1;var e=yA(),t=vF(),n=1,r=2;function a(s,i,c,u){var f=c.length,h=f,m=!u;if(s==null)return!h;for(s=Object(s);f--;){var g=c[f];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++f<h;){g=c[f];var y=g[0],w=s[y],b=g[1];if(m&&g[2]){if(w===void 0&&!(y in s))return!1}else{var x=new e;if(u)var E=u(w,b,y,s,i,x);if(!(E===void 0?t(b,w,n|r,u,x):E))return!1}}return!0}return b2=a,b2}var S2,R8;function e$(){if(R8)return S2;R8=1;var e=Qo();function t(n){return n===n&&!e(n)}return S2=t,S2}var w2,O8;function Cfe(){if(O8)return w2;O8=1;var e=e$(),t=gF();function n(r){for(var a=t(r),s=a.length;s--;){var i=a[s],c=r[i];a[s]=[i,c,e(c)]}return a}return w2=n,w2}var x2,N8;function t$(){if(N8)return x2;N8=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return x2=e,x2}var C2,M8;function Efe(){if(M8)return C2;M8=1;var e=xfe(),t=Cfe(),n=t$();function r(a){var s=t(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(i){return i===a||e(i,a,s)}}return C2=r,C2}var E2,P8;function DA(){if(P8)return E2;P8=1;var e=Zd(),t=Mc(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return E2=r,E2}var _2,D8;function LA(){if(D8)return _2;D8=1;var e=Jo(),t=DA(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,i){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||i!=null&&s in Object(i)}return _2=a,_2}var k2,L8;function _fe(){if(L8)return k2;L8=1;var e=vA(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var s=function(){var i=arguments,c=a?a.apply(this,i):i[0],u=s.cache;if(u.has(c))return u.get(c);var f=r.apply(this,i);return s.cache=u.set(c,f)||u,f};return s.cache=new(n.Cache||e),s}return n.Cache=e,k2=n,k2}var A2,U8;function kfe(){if(U8)return A2;U8=1;var e=_fe(),t=500;function n(r){var a=e(r,function(i){return s.size===t&&s.clear(),i}),s=a.cache;return a}return A2=n,A2}var I2,z8;function Afe(){if(z8)return I2;z8=1;var e=kfe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(t,function(i,c,u,f){s.push(u?f.replace(n,"$1"):c||i)}),s});return I2=r,I2}var T2,j8;function Ife(){if(j8)return T2;j8=1;var e=Kv(),t=JF(),n=Jo(),r=DA(),a=e?e.prototype:void 0,s=a?a.toString:void 0;function i(c){if(typeof c=="string")return c;if(n(c))return t(c,i)+"";if(r(c))return s?s.call(c):"";var u=c+"";return u=="0"&&1/c==-1/0?"-0":u}return T2=i,T2}var R2,F8;function UA(){if(F8)return R2;F8=1;var e=Ife();function t(n){return n==null?"":e(n)}return R2=t,R2}var O2,$8;function oy(){if($8)return O2;$8=1;var e=Jo(),t=LA(),n=Afe(),r=UA();function a(s,i){return e(s)?s:t(s,i)?[s]:n(r(s))}return O2=a,O2}var N2,B8;function Zp(){if(B8)return N2;B8=1;var e=DA();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return N2=t,N2}var M2,H8;function zA(){if(H8)return M2;H8=1;var e=oy(),t=Zp();function n(r,a){a=e(a,r);for(var s=0,i=a.length;r!=null&&s<i;)r=r[t(a[s++])];return s&&s==i?r:void 0}return M2=n,M2}var P2,q8;function Tfe(){if(q8)return P2;q8=1;var e=zA();function t(n,r,a){var s=n==null?void 0:e(n,r);return s===void 0?a:s}return P2=t,P2}var D2,V8;function Rfe(){if(V8)return D2;V8=1;function e(t,n){return t!=null&&n in Object(t)}return D2=e,D2}var L2,W8;function Ofe(){if(W8)return L2;W8=1;var e=oy(),t=bA(),n=Jo(),r=Xv(),a=wA(),s=Zp();function i(c,u,f){u=e(u,c);for(var h=-1,m=u.length,g=!1;++h<m;){var y=s(u[h]);if(!(g=c!=null&&f(c,y)))break;c=c[y]}return g||++h!=m?g:(m=c==null?0:c.length,!!m&&a(m)&&r(y,m)&&(n(c)||t(c)))}return L2=i,L2}var U2,G8;function Nfe(){if(G8)return U2;G8=1;var e=Rfe(),t=Ofe();function n(r,a){return r!=null&&t(r,a,e)}return U2=n,U2}var z2,K8;function Mfe(){if(K8)return z2;K8=1;var e=vF(),t=Tfe(),n=Nfe(),r=LA(),a=e$(),s=t$(),i=Zp(),c=1,u=2;function f(h,m){return r(h)&&a(m)?s(i(h),m):function(g){var y=t(g,h);return y===void 0&&y===m?n(g,h):e(m,y,c|u)}}return z2=f,z2}var j2,Y8;function jA(){if(Y8)return j2;Y8=1;function e(t){return t}return j2=e,j2}var F2,Z8;function Pfe(){if(Z8)return F2;Z8=1;function e(t){return function(n){return n?.[t]}}return F2=e,F2}var $2,X8;function Dfe(){if(X8)return $2;X8=1;var e=zA();function t(n){return function(r){return e(r,n)}}return $2=t,$2}var B2,Q8;function Lfe(){if(Q8)return B2;Q8=1;var e=Pfe(),t=Dfe(),n=LA(),r=Zp();function a(s){return n(s)?e(r(s)):t(s)}return B2=a,B2}var H2,J8;function Ufe(){if(J8)return H2;J8=1;var e=Efe(),t=Mfe(),n=jA(),r=Jo(),a=Lfe();function s(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?r(i)?t(i[0],i[1]):e(i):a(i)}return H2=s,H2}var q2,eP;function n$(){if(eP)return q2;eP=1;var e=Nc(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return q2=t,q2}var V2,tP;function FA(){if(tP)return V2;tP=1;var e=n$();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return V2=t,V2}var W2,nP;function r$(){if(nP)return W2;nP=1;var e=FA(),t=Kp(),n=Object.prototype,r=n.hasOwnProperty;function a(s,i,c){var u=s[i];(!(r.call(s,i)&&t(u,c))||c===void 0&&!(i in s))&&e(s,i,c)}return W2=a,W2}var G2,rP;function zfe(){if(rP)return G2;rP=1;var e=r$(),t=oy(),n=Xv(),r=Qo(),a=Zp();function s(i,c,u,f){if(!r(i))return i;c=t(c,i);for(var h=-1,m=c.length,g=m-1,y=i;y!=null&&++h<m;){var w=a(c[h]),b=u;if(w==="__proto__"||w==="constructor"||w==="prototype")return i;if(h!=g){var x=y[w];b=f?f(x,w,y):void 0,b===void 0&&(b=r(x)?x:n(c[h+1])?[]:{})}e(y,w,b),y=y[w]}return i}return G2=s,G2}var K2,aP;function jfe(){if(aP)return K2;aP=1;var e=zA(),t=zfe(),n=oy();function r(a,s,i){for(var c=-1,u=s.length,f={};++c<u;){var h=s[c],m=e(a,h);i(m,h)&&t(f,n(h,a),m)}return f}return K2=r,K2}var Y2,sP;function $A(){if(sP)return Y2;sP=1;var e=mF(),t=e(Object.getPrototypeOf,Object);return Y2=t,Y2}var Z2,oP;function Ffe(){if(oP)return Z2;oP=1;var e=uF(),t=$A(),n=hF(),r=fF(),a=Object.getOwnPropertySymbols,s=a?function(i){for(var c=[];i;)e(c,n(i)),i=t(i);return c}:r;return Z2=s,Z2}var X2,iP;function $fe(){if(iP)return X2;iP=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return X2=e,X2}var Q2,lP;function Bfe(){if(lP)return Q2;lP=1;var e=Qo(),t=CA(),n=$fe(),r=Object.prototype,a=r.hasOwnProperty;function s(i){if(!e(i))return n(i);var c=t(i),u=[];for(var f in i)f=="constructor"&&(c||!a.call(i,f))||u.push(f);return u}return Q2=s,Q2}var J2,cP;function BA(){if(cP)return J2;cP=1;var e=pF(),t=Bfe(),n=Qv();function r(a){return n(a)?e(a,!0):t(a)}return J2=r,J2}var eC,uP;function Hfe(){if(uP)return eC;uP=1;var e=dF(),t=Ffe(),n=BA();function r(a){return e(a,n,t)}return eC=r,eC}var tC,dP;function qfe(){if(dP)return tC;dP=1;var e=JF(),t=Ufe(),n=jfe(),r=Hfe();function a(s,i){if(s==null)return{};var c=e(r(s),function(u){return[u]});return i=t(i),n(s,c,function(u,f){return i(u,f[0])})}return tC=a,tC}var Vfe=qfe();const Wfe=Fd(Vfe),Gfe=!0,Kfe="",hp=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),Yfe=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},Zfe=e=>{const{phone_number:t,...n}=Wfe(e,Yfe);if(Bo(t)&&t!==Kfe){const{country_code:r}=e;return{...n,phone_number:hp(r,t)}}return n},Xfe=(e,t,n,r)=>{const{password:a,...s}=t,i=Zfe(s),c=r&&r!=="PASSWORD";let u=i;r==="SMS_OTP"&&i.email&&(u={...i,email:""});const f={autoSignIn:c?{enabled:!0,authFlowType:"USER_AUTH",preferredChallenge:r}:Gfe,userAttributes:{...n==="phone_number"?{...u,phone_number:e}:u}};return{username:e,password:c?void 0:a,options:f}},Qfe=({formValues:e,loginMechanisms:t})=>{const n=e.__authMethod;if(n==="SMS_OTP"){const{country_code:a,phone_number:s}=e;return hp(a,s)}if(n==="EMAIL_OTP")return e.email;if(t.includes("username"))return e.username;const r=t[0];if(r==="phone_number"){const{country_code:a,phone_number:s}=e;return hp(a,s)}return e[r]},Jfe=(e,t)=>{const n=[],r=t!==void 0;n.push("PASSWORD"),(r||e?.emailOtpEnabled)&&n.push("EMAIL_OTP"),(r||e?.smsOtpEnabled)&&n.push("SMS_OTP"),(r||e?.webAuthnEnabled)&&n.push("WEB_AUTHN");const a=t??[],s=n.filter(i=>!a.includes(i));if(s.length===0)throw new Error("InvalidPasswordlessSettings: All authentication methods are hidden");return s},{assign:ut}=$F,ehe=ut({actorDoneData:void 0}),the=ut({challengeName:void 0}),nhe=ut({missingAttributes:void 0}),rhe=ut({remoteError:void 0}),ahe=ut({formValues:e=>({username:e.formValues?.username})}),she=ut({touched:{}}),ohe=ut({user:void 0}),ihe=ut({validationError:{}}),lhe=ut({totpSecretCode:(e,{data:t})=>{const{sharedSecret:n}=t.nextStep?.totpSetupDetails??{};return n}}),che=ut({allowedMfaTypes:(e,{data:t})=>t.nextStep?.allowedMFATypes}),uhe=ut({step:"SIGN_IN"}),dhe=ut({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),fhe=ut({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),hhe=ut({challengeName:(e,{data:t})=>{const{signInStep:n}=t.nextStep;switch(n){case"CONFIRM_SIGN_IN_WITH_SMS_CODE":return"SMS_MFA";case"CONFIRM_SIGN_IN_WITH_TOTP_CODE":return"SOFTWARE_TOKEN_MFA";case"CONFIRM_SIGN_IN_WITH_EMAIL_CODE":return"EMAIL_OTP";case"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION":case"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP":case"CONTINUE_SIGN_IN_WITH_TOTP_SETUP":return"MFA_SETUP";case"CONTINUE_SIGN_IN_WITH_MFA_SELECTION":return"SELECT_MFA_TYPE";default:return}}}),phe=ut({username:({formValues:e,loginMechanisms:t})=>{const n=t[0],{username:r,country_code:a}=e;return n==="phone_number"?hp(a,r):r}}),mhe=ut({username:Qfe}),ghe=ut({username:({formValues:e,loginMechanisms:t})=>{const n=t[0],{username:r,country_code:a}=e;return n==="phone_number"?hp(a,r):r}}),vhe=ut({step:(e,{data:t})=>t.nextStep.signInStep==="DONE"?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),yhe=ut({step:(e,{data:t})=>t.nextStep.signUpStep==="DONE"?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),bhe=ut({step:(e,{data:t})=>t.nextStep.resetPasswordStep==="DONE"?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),She=ut({missingAttributes:(e,{data:t})=>t.nextStep?.missingAttributes}),whe=ut({validationError:(e,{data:t})=>t}),xhe=ut({remoteError:(e,{data:t})=>{if(t.name==="NoUserPoolError")return"Configuration error (see console) – please contact the administrator";const n=t?.message||"";return n.includes("USER_AUTH flow not enabled")?Se(ke.PASSWORDLESS_NOT_ENABLED):n.includes("Cannot send code to either")?Se(ke.CODE_DELIVERY_FAILED):n.includes("Invalid code or auth state")?Se(ke.VERIFICATION_CODE_INVALID):n.includes("session is expired")?Se(ke.VERIFICATION_CODE_EXPIRED):n.includes("ceremony has been canceled")?Se(ke.PASSKEY_AUTHENTICATION_CANCELED):n||t}}),Che=ut({user:(e,{data:t})=>t}),fP=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),Ehe=ut({codeDeliveryDetails:(e,{data:t})=>t?.nextStep?.codeDeliveryDetails?fP(t.nextStep.codeDeliveryDetails):fP(t)}),_he=ut({formValues:(e,{data:t})=>{const{name:n,value:r}=t;return{...e.formValues,[n]:r}}}),khe=ut({formValues:(e,{data:t})=>Zde({...e.formValues,...t},"password")}),Ahe=ut({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),Ihe=ut({unverifiedUserAttributes:(e,{data:t})=>{const n=t||e.fetchedUserAttributes;if(!n)return{};const{email:r,phone_number:a}=n;return{...r&&{email:r},...a&&{phone_number:a}}}}),The=ut({selectedUserAttribute:void 0}),Rhe=ut({selectedUserAttribute:e=>e.formValues?.unverifiedAttr}),Ohe=ut({step:"CONFIRM_SIGN_UP"}),Nhe=ut({selectedAuthMethod:(e,{data:t})=>t.method}),Mhe=ut({selectedAuthMethod:(e,{data:t})=>t?.__authMethod||"PASSWORD"}),Phe=ut({step:"SELECT_AUTH_METHOD"}),Dhe=ut({fetchedUserAttributes:(e,t)=>t.data}),Lhe=ut({hasExistingPasskeys:(e,t)=>t.data}),Uhe=ut({hasExistingPasskeys:!1}),Xp={clearActorDoneData:ehe,clearChallengeName:the,clearError:rhe,clearFormValues:ahe,clearHasExistingPasskeys:Uhe,clearMissingAttributes:nhe,clearSelectedUserAttribute:The,clearTouched:she,clearUser:ohe,clearValidationError:ihe,handleBlur:Ahe,handleInput:_he,handleSubmit:khe,setAllowedMfaTypes:che,setChallengeName:hhe,setCodeDeliveryDetails:Ehe,setFetchedUserAttributes:Dhe,setFieldErrors:whe,setHasExistingPasskeys:Lhe,setMissingAttributes:She,setNextResetPasswordStep:bhe,setNextSignInStep:vhe,setNextSignUpStep:yhe,setRemoteError:xhe,setConfirmAttributeCompleteStep:fhe,setConfirmSignUpSignUpStep:Ohe,setSelectAuthMethodStep:Phe,setSelectedAuthMethod:Nhe,setSelectedAuthMethodFromForm:Mhe,setShouldVerifyUserAttributeStep:dhe,setSelectedUserAttribute:Rhe,setSignInStep:uhe,setTotpSecretCode:lhe,setUser:Che,setUnverifiedUserAttributes:Ihe,setUsernameForgotPassword:phe,setUsernameSignIn:ghe,setUsernameSignUp:mhe},zhe=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE","CONFIRM_SIGN_IN_WITH_EMAIL_CODE"],jhe=(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",Fhe=(e,{data:t})=>t?.nextStep?.signInStep==="RESET_PASSWORD",$he=(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_UP",Bhe=(e,{data:t})=>t?.nextStep.signUpStep==="COMPLETE_AUTO_SIGN_IN",Hhe=(e,{data:t})=>t?.nextStep.signUpStep==="DONE"&&e.step==="CONFIRM_SIGN_UP",qhe=(e,{data:t})=>t?.nextStep.signInStep==="DONE",Vhe=(e,{data:t})=>t?.nextStep.signUpStep==="DONE",Whe=(e,{data:t})=>t?.nextStep.resetPasswordStep==="DONE",Ghe=(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_COMPLETE",Khe=(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_WITH_CODE",Yhe=(e,{data:t})=>t?.step==="SHOULD_CONFIRM_USER_ATTRIBUTE",Zhe=(e,{data:t})=>t?.step==="RESET_PASSWORD",Xhe=(e,{data:t})=>t?.step==="CONFIRM_SIGN_UP",Qhe=({step:e})=>zhe.includes(e),Jhe=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_TOTP_SETUP",epe=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP",tpe=({step:e})=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e),npe=({step:e})=>e==="RESET_PASSWORD",rpe=({step:e})=>e==="CONFIRM_RESET_PASSWORD_WITH_CODE",ape=({step:e})=>e==="CONFIRM_SIGN_UP",spe=(e,t)=>{const n=t.data||e.fetchedUserAttributes;if(!n)return!1;const{email:r,phone_number:a,phone_number_verified:s,email_verified:i}=n;return!r&&!a?!1:(i===void 0||i==="false")&&(s===void 0||s==="false")},ope=(e,{data:t})=>t.message==="User is already confirmed.",ipe=({availableAuthMethods:e,preferredChallenge:t,selectedAuthMethod:n})=>e&&e.length>1&&(!t||n===null),lpe=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:n}=e||{};return!n||t?!1:typeof n=="boolean"?n:n.afterSignin==="ALWAYS"},cpe=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:n}=e||{};return!n||t?!1:typeof n=="boolean"?n:n.afterSignup==="ALWAYS"},upe=({passwordless:e})=>e?.passkeyRegistrationPrompts!=null,dpe=({selectedAuthMethod:e,step:t})=>e!=null&&t==="SELECT_AUTH_METHOD",iy={hasCompletedAttributeConfirmation:Ghe,hasCompletedResetPassword:Whe,hasCompletedSignIn:qhe,hasCompletedSignUp:Vhe,hasPasskeyRegistrationPrompts:upe,isConfirmSignUpStep:Xhe,isConfirmUserAttributeStep:Khe,isResetPasswordStep:Zhe,isShouldConfirmUserAttributeStep:Yhe,isUserAlreadyConfirmed:ope,shouldAutoSignIn:Bhe,shouldManualSignIn:Hhe,shouldConfirmResetPassword:rpe,shouldConfirmSignIn:Qhe,shouldConfirmSignInWithNewPassword:jhe,shouldConfirmSignUp:ape,shouldConfirmSignUpFromSignIn:$he,shouldResetPassword:npe,shouldResetPasswordFromSignIn:Fhe,shouldReturnToSelectMethod:dpe,shouldSelectAuthMethod:ipe,shouldSetupTotp:Jhe,shouldSetupEmail:epe,shouldSelectMfaType:tpe,shouldVerifyAttribute:spe,shouldPromptPasskeyRegistration:lpe,shouldPromptPasskeyRegistrationAfterSignup:cpe};var nC,hP;function a$(){if(hP)return nC;hP=1;var e=FA(),t=Kp();function n(r,a,s){(s!==void 0&&!t(r[a],s)||s===void 0&&!(a in r))&&e(r,a,s)}return nC=n,nC}var rC,pP;function fpe(){if(pP)return rC;pP=1;function e(t){return function(n,r,a){for(var s=-1,i=Object(n),c=a(n),u=c.length;u--;){var f=c[t?u:++s];if(r(i[f],f,i)===!1)break}return n}}return rC=e,rC}var aC,mP;function hpe(){if(mP)return aC;mP=1;var e=fpe(),t=e();return aC=t,aC}var Lh={exports:{}};Lh.exports;var gP;function ppe(){return gP||(gP=1,(function(e,t){var n=Ys(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,i=s?n.Buffer:void 0,c=i?i.allocUnsafe:void 0;function u(f,h){if(h)return f.slice();var m=f.length,g=c?c(m):new f.constructor(m);return f.copy(g),g}e.exports=u})(Lh,Lh.exports)),Lh.exports}var sC,vP;function mpe(){if(vP)return sC;vP=1;var e=cF();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return sC=t,sC}var oC,yP;function gpe(){if(yP)return oC;yP=1;var e=mpe();function t(n,r){var a=r?e(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}return oC=t,oC}var iC,bP;function vpe(){if(bP)return iC;bP=1;function e(t,n){var r=-1,a=t.length;for(n||(n=Array(a));++r<a;)n[r]=t[r];return n}return iC=e,iC}var lC,SP;function ype(){if(SP)return lC;SP=1;var e=Qo(),t=Object.create,n=(function(){function r(){}return function(a){if(!e(a))return{};if(t)return t(a);r.prototype=a;var s=new r;return r.prototype=void 0,s}})();return lC=n,lC}var cC,wP;function bpe(){if(wP)return cC;wP=1;var e=ype(),t=$A(),n=CA();function r(a){return typeof a.constructor=="function"&&!n(a)?e(t(a)):{}}return cC=r,cC}var uC,xP;function Spe(){if(xP)return uC;xP=1;var e=Qv(),t=Mc();function n(r){return t(r)&&e(r)}return uC=n,uC}var dC,CP;function wpe(){if(CP)return dC;CP=1;var e=Zd(),t=$A(),n=Mc(),r="[object Object]",a=Function.prototype,s=Object.prototype,i=a.toString,c=s.hasOwnProperty,u=i.call(Object);function f(h){if(!n(h)||e(h)!=r)return!1;var m=t(h);if(m===null)return!0;var g=c.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&i.call(g)==u}return dC=f,dC}var fC,EP;function s$(){if(EP)return fC;EP=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return fC=e,fC}var hC,_P;function xpe(){if(_P)return hC;_P=1;var e=r$(),t=FA();function n(r,a,s,i){var c=!s;s||(s={});for(var u=-1,f=a.length;++u<f;){var h=a[u],m=i?i(s[h],r[h],h,s,r):void 0;m===void 0&&(m=r[h]),c?t(s,h,m):e(s,h,m)}return s}return hC=n,hC}var pC,kP;function Cpe(){if(kP)return pC;kP=1;var e=xpe(),t=BA();function n(r){return e(r,t(r))}return pC=n,pC}var mC,AP;function Epe(){if(AP)return mC;AP=1;var e=a$(),t=ppe(),n=gpe(),r=vpe(),a=bpe(),s=bA(),i=Jo(),c=Spe(),u=SA(),f=mA(),h=Qo(),m=wpe(),g=xA(),y=s$(),w=Cpe();function b(x,E,k,A,R,P,O){var T=y(x,k),M=y(E,k),z=O.get(M);if(z){e(x,k,z);return}var q=P?P(T,M,k+"",x,E,O):void 0,U=q===void 0;if(U){var L=i(M),B=!L&&u(M),G=!L&&!B&&g(M);q=M,L||B||G?i(T)?q=T:c(T)?q=r(T):B?(U=!1,q=t(M,!0)):G?(U=!1,q=n(M,!0)):q=[]:m(M)||s(M)?(q=T,s(T)?q=w(T):(!h(T)||f(T))&&(q=a(M))):U=!1}U&&(O.set(M,q),R(q,M,A,P,O),O.delete(M)),e(x,k,q)}return mC=b,mC}var gC,IP;function _pe(){if(IP)return gC;IP=1;var e=yA(),t=a$(),n=hpe(),r=Epe(),a=Qo(),s=BA(),i=s$();function c(u,f,h,m,g){u!==f&&n(f,function(y,w){if(g||(g=new e),a(y))r(u,f,w,h,c,m,g);else{var b=m?m(i(u,w),y,w+"",u,f,g):void 0;b===void 0&&(b=y),t(u,w,b)}},s)}return gC=c,gC}var vC,TP;function kpe(){if(TP)return vC;TP=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return vC=e,vC}var yC,RP;function Ape(){if(RP)return yC;RP=1;var e=kpe(),t=Math.max;function n(r,a,s){return a=t(a===void 0?r.length-1:a,0),function(){for(var i=arguments,c=-1,u=t(i.length-a,0),f=Array(u);++c<u;)f[c]=i[a+c];c=-1;for(var h=Array(a+1);++c<a;)h[c]=i[c];return h[a]=s(f),e(r,this,h)}}return yC=n,yC}var bC,OP;function Ipe(){if(OP)return bC;OP=1;function e(t){return function(){return t}}return bC=e,bC}var SC,NP;function Tpe(){if(NP)return SC;NP=1;var e=Ipe(),t=n$(),n=jA(),r=t?function(a,s){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return SC=r,SC}var wC,MP;function Rpe(){if(MP)return wC;MP=1;var e=800,t=16,n=Date.now;function r(a){var s=0,i=0;return function(){var c=n(),u=t-(c-i);if(i=c,u>0){if(++s>=e)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return wC=r,wC}var xC,PP;function Ope(){if(PP)return xC;PP=1;var e=Tpe(),t=Rpe(),n=t(e);return xC=n,xC}var CC,DP;function Npe(){if(DP)return CC;DP=1;var e=jA(),t=Ape(),n=Ope();function r(a,s){return n(t(a,s,e),a+"")}return CC=r,CC}var EC,LP;function Mpe(){if(LP)return EC;LP=1;var e=Kp(),t=Qv(),n=Xv(),r=Qo();function a(s,i,c){if(!r(c))return!1;var u=typeof i;return(u=="number"?t(c)&&n(i,c.length):u=="string"&&i in c)?e(c[i],s):!1}return EC=a,EC}var _C,UP;function Ppe(){if(UP)return _C;UP=1;var e=Npe(),t=Mpe();function n(r){return e(function(a,s){var i=-1,c=s.length,u=c>1?s[c-1]:void 0,f=c>2?s[2]:void 0;for(u=r.length>3&&typeof u=="function"?(c--,u):void 0,f&&t(s[0],s[1],f)&&(u=c<3?void 0:u,c=1),a=Object(a);++i<c;){var h=s[i];h&&r(a,h,i,u)}return a})}return _C=n,_C}var kC,zP;function Dpe(){if(zP)return kC;zP=1;var e=_pe(),t=Ppe(),n=t(function(r,a,s){e(r,a,s)});return kC=n,kC}var Lpe=Dpe();const Upe=Fd(Lpe),ly=async(e,t,n,r)=>{const a=await Promise.all(r.map(i=>i(e,t,n))),s=Upe({},...a);return MA(s)?Promise.resolve():Promise.reject(s)},zpe=8,jpe=e=>Array.isArray(e),Fpe=e=>{if(e)return jpe(e)?Object.entries(e).map(([t,n])=>Object.keys(n)[0]):Object.keys(e)},ol={async getAmplifyConfig(){const e=tz.getConfig(),t=e.Auth?.Cognito,{loginWith:n,userAttributes:r}=e.Auth?.Cognito??{},a=n?Object.entries(n).filter(([f,h])=>f!=="oauth").filter(([f,h])=>!!h).map(f=>f[0]==="phone"?"phone_number":f[0]):void 0,s=Fpe(r),i=n?.oauth?.providers?n.oauth.providers?.map(f=>f.toString().toLowerCase()):void 0,c=e.Auth?.Cognito?.passwordless,u={emailOtpEnabled:c?.emailOtpEnabled??c?.email_otp_enabled===!0,smsOtpEnabled:c?.smsOtpEnabled??c?.sms_otp_enabled===!0,webAuthnEnabled:!!(c?.webAuthn??c?.web_authn),preferredChallenge:c?.preferredChallenge??c?.preferred_challenge};return{...t,loginMechanisms:a,signUpAttributes:s,socialProviders:i,passwordlessCapabilities:u}},getCurrentUser:Iv,handleSignIn:Uk,handleSignUp:aJ,handleConfirmSignIn:VU,handleConfirmSignUp:dJ,handleForgotPasswordSubmit:iJ,handleForgotPassword:qU,handleResendSignUpCode:cJ,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,n){const{password:r}=e,{password:a}=t;if(!a||!n)return null;const s=[],i=n.minLength??zpe;return r.length<i&&s.push(`Password must have at least ${i} characters`),n.requireLowercase&&!/[a-z]/.test(r)&&s.push("Password must have lower case letters"),n.requireUppercase&&!/[A-Z]/.test(r)&&s.push("Password must have upper case letters"),n.requireNumbers&&!/[0-9]/.test(r)&&s.push("Password must have numbers"),n.requireSpecialCharacters&&!Kde(r)&&s.push("Password must have special characters"),s.length!==0?{password:s}:null},async validateConfirmPassword(e,t){const{password:n,confirm_password:r}=e,{confirm_password:a,password:s}=t;if(!n&&!r)return null;if((n||r)&&n!==r&&(a&&s||n?.length>=6&&r?.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){},async validateRequiredFieldsForAuthMethod(e){const t=e.__authMethod;if(!t)return null;if(t==="EMAIL_OTP"&&!e.email)return{email:"Email is required for Email OTP sign up"};if(t==="SMS_OTP"&&!e.phone_number)return{phone_number:"Phone number is required for SMS OTP sign up"};if(t==="PASSWORD"){const n={};return e.password||(n.password="Password is required"),e.confirm_password||(n.confirm_password="Confirm Password is required"),Object.keys(n).length>0?n:null}return null}};function $pe({services:e}){return Qd({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:t})=>({step:t})}}},{actions:{...Xp,sendUpdate:ry()},guards:iy,services:{handleResetPassword({username:t}){return e.handleForgotPassword({username:t})},handleConfirmResetPassword({formValues:t,username:n}){const{confirmation_code:r,password:a}=t;return e.handleForgotPasswordSubmit({confirmationCode:r,newPassword:a,username:n})},validateFields(t){return ly(t.formValues,t.touched,t.passwordSettings,[ol.validateFormPassword,ol.validateConfirmPassword])}}})}const o$=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),Bpe=e=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e)?"mfa_type":e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"?"email":"confirmation_code",Y0={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode","setAllowedMfaTypes","setCodeDeliveryDetails"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},Bg=e=>({initial:"edit",exit:e,states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"},RESEND:{target:"resend"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...Y0}},resend:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"resendSignInCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"edit"},onError:{actions:"setRemoteError",target:"edit"}}}}});function Hpe({services:e}){return Qd({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:"shouldSetupEmail",target:"setupEmail"},{cond:"shouldSelectMfaType",target:"selectMfaType"},{cond:({step:t})=>t==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:{...o$("signIn")},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await OA();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistration",target:"#signInActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}]},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SHOW_AUTH_METHODS:{actions:"setUsernameSignIn",target:"selectMethod"},SUBMIT:[{cond:"shouldSelectAuthMethod",actions:"handleSubmit",target:"selectMethod"},{actions:"handleSubmit",target:"submit"}]}},selectMethod:{entry:["sendUpdate","setSelectAuthMethodStep","setUsernameSignIn"],on:{SELECT_METHOD:{actions:"setSelectedAuthMethod",target:"submit"},SUBMIT:{actions:["handleSubmit","setSelectedAuthMethodFromForm"],target:"submit"},SIGN_IN:{target:"edit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",onDone:Y0.onDone,onError:[{cond:"shouldReturnToSelectMethod",actions:"setRemoteError",target:"selectMethod"},Y0.onError]}}}},confirmSignIn:{...Bg(["clearChallengeName","clearFormValues","clearError","clearTouched"])},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...Y0}}}}}},setupTotp:{...Bg(["clearFormValues","clearError","clearTouched"])},setupEmail:{...Bg(["clearFormValues","clearError","clearTouched"])},selectMfaType:{...Bg(["clearFormValues","clearError","clearTouched"])},passkeyPrompt:{entry:"sendUpdate",on:{SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:t=>({codeDeliveryDetails:t.codeDeliveryDetails,remoteError:t.remoteError,step:t.step,unverifiedUserAttributes:t.unverifiedUserAttributes,username:t.username})}}},{actions:{...Xp,sendUpdate:ry()},guards:iy,services:{async fetchUserAttributes(){return XU()},resetPassword({username:t}){return qU({username:t})},handleResendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},resendSignInCode({username:t,selectedAuthMethod:n,availableAuthMethods:r,preferredChallenge:a}){const s=n??a??r?.[0]??"PASSWORD";return e.handleSignIn({username:t,options:{authFlowType:"USER_AUTH",preferredChallenge:s}})},handleSignIn({formValues:t,username:n,selectedAuthMethod:r,availableAuthMethods:a,preferredChallenge:s}){const i=r??s??a?.[0]??"PASSWORD";if(i==="PASSWORD"){const{password:c}=t;return e.handleSignIn({username:n,password:c})}else return e.handleSignIn({username:n,options:{authFlowType:"USER_AUTH",preferredChallenge:i}})},confirmSignIn({formValues:t,step:n}){const r=Bpe(n),{[r]:a}=t;return e.handleConfirmSignIn({challengeResponse:a})},async handleForceChangePassword({formValues:t}){let{password:n,phone_number:r,country_code:a,confirm_password:s,username:i,...c}=t,u;return r&&(u=`${a}${r}`.replace(/[^A-Z0-9+]/gi,""),c={...c,phone_number:u}),VU({challengeResponse:n,options:{userAttributes:c}})},signInWithRedirect(t,{data:n}){return ZU(n)},async validateFields(t){return ly(t.formValues,t.touched,t.passwordSettings,[ol.validateFormPassword,ol.validateConfirmPassword])}}})}const qpe={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},Vpe={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode","setAllowedMfaTypes"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}};function Wpe({services:e}){return Qd({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...Vpe}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await OA();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistrationAfterSignup",target:"#signUpActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}]},federatedSignIn:{...o$("signUp")},resetPassword:{invoke:{src:"resetPassword",...qpe}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"],target:"#signUpActor.confirmSignUp"}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:["setSelectedAuthMethodFromForm","handleSubmit"],target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{cond:"shouldManualSignIn",actions:["clearFormValues","setSignInStep"],target:"#signUpActor.resolved"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},passkeyPrompt:{entry:"sendUpdate",on:{SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:t=>({challengeName:t.challengeName,missingAttributes:t.missingAttributes,remoteError:t.remoteError,step:t.step,totpSecretCode:t.totpSecretCode,username:t.username,unverifiedUserAttributes:t.unverifiedUserAttributes,allowedMfaTypes:t.allowedMfaTypes})}}},{actions:{...Xp,sendUpdate:ry()},guards:iy,services:{autoSignIn(){return Lk()},async fetchUserAttributes(){return XU()},confirmSignUp({formValues:t,username:n}){const{confirmation_code:r}=t,a={username:n,confirmationCode:r};return e.handleConfirmSignUp(a)},resendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},signInWithRedirect(t,{data:n}){return ZU(n)},handleSignUp(t){const{formValues:n,loginMechanisms:r,username:a,selectedAuthMethod:s,preferredChallenge:i}=t,c=r[0],f=Xfe(a,n,c,s??i);return e.handleSignUp(f)},async validateSignUp(t){return ly(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateRequiredFieldsForAuthMethod,e.validateCustomSignUp])}}})}const Gpe=()=>Qd({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>BJ()}});function Kpe(){return Qd({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...Xp,sendUpdate:ry()},services:{sendUserAttributeVerificationCode({formValues:{unverifiedAttr:e}}){return WJ({userAttributeKey:e})},async confirmVerifyUserAttribute({formValues:{confirmation_code:e},selectedUserAttribute:t}){return pJ({confirmationCode:e,userAttributeKey:t})},async validateFields(e){return ly(e.formValues,e.touched,e.passwordSettings,[ol.validateFormPassword,ol.validateConfirmPassword])}}})}const Hg=(e,t)=>{const n=Jfe(e.passwordlessCapabilities,e.config?.passwordless?.hiddenAuthMethods),r=e.config?.passwordless?.preferredAuthMethod??e.passwordlessCapabilities?.preferredChallenge;return{...e.actorDoneData,step:e?.actorDoneData?.step??t,formValues:{},touched:{},validationError:{},formFields:e.config?.formFields,loginMechanisms:e.config?.loginMechanisms,passwordSettings:e.config?.passwordSettings,signUpAttributes:e.config?.signUpAttributes,socialProviders:e.config?.socialProviders,availableAuthMethods:n,preferredChallenge:r,passwordless:e.config?.passwordless}},{choose:Ype,stop:Zpe}=$F,fh=e=>Zpe(e),Xpe={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},Qpe={always:{actions:"configure",target:"getConfig"}};function Jpe(e){const{useNextWaitConfig:t,...n}=e??{};return Qd({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:ol,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?Qpe:Xpe,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:fh("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SELECT_METHOD:{actions:"forwardToActor"},SHOW_AUTH_METHODS:{actions:"forwardToActor"},SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:fh("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:fh("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:fh("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:fh("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...Xp,forwardToActor:Ype([{cond:"hasActor",actions:Que(({actorRef:a})=>a)}]),setActorDoneData:ko({actorDoneData:(a,s)=>({challengeName:s.data.challengeName,codeDeliveryDetails:s.data.codeDeliveryDetails,missingAttributes:s.data.missingAttributes,remoteError:s.data.remoteError,username:s.data.username,step:s.data.step,totpSecretCode:s.data.totpSecretCode,unverifiedUserAttributes:s.data.unverifiedUserAttributes,allowedMfaTypes:s.data.allowedMfaTypes})}),applyAmplifyConfig:ko({passwordlessCapabilities:(a,{data:s})=>s.passwordlessCapabilities,config(a,{data:s}){const{loginMechanisms:i=s.loginMechanisms??[],signUpAttributes:c=s.signUpAttributes??[],socialProviders:u=s.socialProviders??[],initialState:f,formFields:h,passwordSettings:m=s.passwordFormat??{},passwordless:g}=a.config;return i.length===0&&i.push("username"),{formFields:eme(h)??{},initialState:f,loginMechanisms:i,passwordSettings:m,passwordless:g,signUpAttributes:c,socialProviders:u}}}),spawnSignInActor:ko({actorRef:(a,s)=>{const{services:i}=a,c=Hpe({services:i}).withContext(Hg(a,"SIGN_IN"));return dh(c,{name:"signInActor"})}}),spawnSignUpActor:ko({actorRef:(a,s)=>{const{services:i}=a,c=Wpe({services:i}).withContext(Hg(a,"SIGN_UP"));return dh(c,{name:"signUpActor"})}}),spawnForgotPasswordActor:ko({actorRef:(a,s)=>{const{services:i}=a,c=$pe({services:i}).withContext(Hg(a,"FORGOT_PASSWORD"));return dh(c,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:ko({actorRef:a=>{const s=Kpe().withContext(Hg(a));return dh(s,{name:"verifyUserAttributesActor"})}}),spawnSignOutActor:ko({actorRef:a=>{const s=Gpe().withContext({user:a?.user});return dh(s,{name:"signOutActor"})}}),configure:ko((a,s)=>{const{services:i,...c}=KF(n)?s.data??{}:n;return{services:{...ol,...i},config:c}}),setHasSetup:ko({hasSetup:!0})},guards:{...iy,hasActor:({actorRef:a})=>!!a,isInitialStateSignUp:({config:a})=>a.initialState==="signUp",isInitialStateResetPassword:({config:a})=>a.initialState==="forgotPassword",shouldSetup:({hasSetup:a})=>!a,hasUser:({user:a})=>!!a},services:{getAmplifyConfig:({services:a})=>a.getAmplifyConfig(),handleGetCurrentUser:({services:a})=>a.getCurrentUser()}})}function eme(e){return e&&Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{let r=e[t][n];r.required=r.isRequired})}),e}const tme={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},nme={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{5:{value:"hsla(0, 0%, 0%, 0.05)"},10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},rme={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},ame={message:{backgroundColor:{value:"{colors.background.secondary.value}"},borderRadius:{value:"{radii.large.value}"},gap:{value:"{space.small.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.small.value}"},user:{backgroundColor:{value:"{colors.background.secondary.value}"}},assistant:{backgroundColor:{value:"{colors.primary.10.value}"}},sender:{gap:{value:"{space.small.value}"},username:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"{fontWeights.bold.value}"}},timestamp:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"inherit"}}},body:{gap:{value:"{space.xs.value}"}},actions:{gap:{value:"{space.xs.value}"}}},form:{gap:{value:"{space.small.value}"},padding:{value:"{space.small.value}"}},attachment:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},fontSize:{value:"{fontSizes.small.value}"},paddingBlock:{value:"{space.xxxs.value}"},paddingInline:{value:"{space.xs.value}"},gap:{value:"{space.xs.value}"},list:{padding:{value:"{space.xs.value}"},paddingBlockStart:{value:"0"},gap:{value:"{space.xxs.value}"}},name:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},size:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},remove:{padding:{value:"{space.xxs.value}"}},image:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}}}},sme={menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},ome={maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},ime={color:{value:"{colors.font.tertiary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},backgroundColor:{value:"{colors.background.tertiary}"},borderRadius:{value:"100%"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"{colors.border.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"{colors.border.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"{colors.border.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"{colors.border.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},width:{value:"{fontSizes.xl.value}"},height:{value:"{fontSizes.xl.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}}},lme={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},cme={flexDirection:{value:"row"},flexWrap:{value:"wrap"},gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},ume={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},dme={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},fme={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},hme={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},pme={pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},mme={fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},gme={height:{value:"{space.relative.full.value}"}},vme={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},yme={backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},bme={backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},Sme={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},wme={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},xme={gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},Cme={backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},Eme={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},_me={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},kme={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},Ame={color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},Ime={highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},Tme={lineHeight:{value:1},height:{value:"1em"}},Rme={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},Ome={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},Nme={banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},Mme={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},Pme={cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},Dme={width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},Lme={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},Ume={alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},zme={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},jme={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},Fme={color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},$me={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},Bme={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},Hme={radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},qme={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},Vme={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},Wme={color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},Gme={borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},Kme={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},Yme={borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},Zme={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},Xme={_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},Qme={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},Jme={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},ege={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},tge={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},nge={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},rge={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},age={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}},sge={accordion:bme,aiConversation:ame,alert:rme,authenticator:ome,autocomplete:sme,avatar:ime,badge:lme,breadcrumbs:cme,button:ume,card:dme,checkbox:fme,checkboxfield:hme,collection:pme,copy:mme,countrycodeselect:gme,divider:vme,dropzone:yme,field:Sme,fieldcontrol:wme,fieldgroup:xme,fieldmessages:Eme,fieldset:Cme,fileuploader:_me,flex:kme,heading:Ame,icon:Tme,highlightmatch:Ime,image:Ome,inappmessaging:Nme,input:Rme,link:Mme,liveness:Pme,loader:Dme,menu:Lme,message:Ume,pagination:zme,passwordfield:jme,phonenumberfield:Fme,placeholder:$me,radio:Bme,radiogroup:Hme,rating:qme,searchfield:Vme,select:Wme,selectfield:Gme,sliderfield:Kme,stepperfield:Yme,storagemanager:Zme,switchfield:Xme,table:Qme,tabs:Jme,text:ege,textareafield:tge,textfield:nge,togglebutton:rge,togglebuttongroup:age},oge={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
|
|
157
|
+
'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
158
|
+
sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
159
|
+
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}},Ao={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},ige={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},lge={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},cge={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},uge={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},dge={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},fge={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},hge={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},Io={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}},pge={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},mge={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},gge={components:sge,borderWidths:tme,colors:nme,fonts:oge,fontSizes:Ao,fontWeights:ige,lineHeights:lge,opacities:cge,outlineOffsets:uge,outlineWidths:dge,radii:fge,shadows:hge,space:Io,time:pge,transforms:mge};Ao.xxs,Ao.xs,Ao.small,Ao.medium,Ao.large,Ao.xl,Ao.xxl,Ao.xxxl,Io.xxxs,Io.xs,Io.small,Io.medium,Io.large,Io.xl,Io.xxl,Io.xxxl;const vge={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},i$={tokens:gge,breakpoints:vge,name:"default-theme"};var AC,jP;function yge(){if(jP)return AC;jP=1;function e(t,n,r,a){var s=-1,i=t==null?0:t.length;for(a&&i&&(r=t[++s]);++s<i;)r=n(r,t[s],s,t);return r}return AC=e,AC}var IC,FP;function bge(){if(FP)return IC;FP=1;function e(t){return function(n){return t?.[n]}}return IC=e,IC}var TC,$P;function Sge(){if($P)return TC;$P=1;var e=bge(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},n=e(t);return TC=n,TC}var RC,BP;function wge(){if(BP)return RC;BP=1;var e=Sge(),t=UA(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",i=r+a+s,c="["+i+"]",u=RegExp(c,"g");function f(h){return h=t(h),h&&h.replace(n,e).replace(u,"")}return RC=f,RC}var OC,HP;function xge(){if(HP)return OC;HP=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(n){return n.match(e)||[]}return OC=t,OC}var NC,qP;function Cge(){if(qP)return NC;qP=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(n){return e.test(n)}return NC=t,NC}var MC,VP;function Ege(){if(VP)return MC;VP=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",c="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",h=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",y=c+u+f+h,w="['’]",b="["+y+"]",x="["+a+"]",E="\\d+",k="["+s+"]",A="["+i+"]",R="[^"+e+y+E+s+i+m+"]",P="\\ud83c[\\udffb-\\udfff]",O="(?:"+x+"|"+P+")",T="[^"+e+"]",M="(?:\\ud83c[\\udde6-\\uddff]){2}",z="[\\ud800-\\udbff][\\udc00-\\udfff]",q="["+m+"]",U="\\u200d",L="(?:"+A+"|"+R+")",B="(?:"+q+"|"+R+")",G="(?:"+w+"(?:d|ll|m|re|s|t|ve))?",ie="(?:"+w+"(?:D|LL|M|RE|S|T|VE))?",$=O+"?",X="["+g+"]?",re="(?:"+U+"(?:"+[T,M,z].join("|")+")"+X+$+")*",pe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j=X+$+re,Y="(?:"+[k,M,z].join("|")+")"+j,Z=RegExp([q+"?"+A+"+"+G+"(?="+[b,q,"$"].join("|")+")",B+"+"+ie+"(?="+[b,q+L,"$"].join("|")+")",q+"?"+L+"+"+G,q+"+"+ie,_e,pe,E,Y].join("|"),"g");function Q(se){return se.match(Z)||[]}return MC=Q,MC}var PC,WP;function _ge(){if(WP)return PC;WP=1;var e=xge(),t=Cge(),n=UA(),r=Ege();function a(s,i,c){return s=n(s),i=c?void 0:i,i===void 0?t(s)?r(s):e(s):s.match(i)||[]}return PC=a,PC}var DC,GP;function kge(){if(GP)return DC;GP=1;var e=yge(),t=wge(),n=_ge(),r="['’]",a=RegExp(r,"g");function s(i){return function(c){return e(n(t(c).replace(a,"")),i,"")}}return DC=s,DC}var LC,KP;function Age(){if(KP)return LC;KP=1;var e=kge(),t=e(function(n,r,a){return n+(a?"-":"")+r.toLowerCase()});return LC=t,LC}var Ige=Age();const l$=Fd(Ige),Tge=/\{([^}]+)\}/g;function c$(e){const t=new RegExp(Tge);if(typeof e=="string")return t.test(e);if(typeof e=="object"){let n=!1;for(const r in e)if(Ho(e,r)){const a=e[r];if(c$(a)){n=!0;break}}return n}return!1}const Rge="amplify";function q3(e){return Object.entries(e).map(([t,n])=>{const r=cy(n)?n.toString():u$({value:n});return`${l$(t)}:${r}; `}).join(" ")}function HA({path:e=[]}){return`${l$([Rge,...e].join(" "))}`}const Oge=["offsetX","offsetY","blurRadius","spreadRadius","color"];function u$(e){const{value:t}=e;return Bo(t)?ZP(t):YP(t)?Oge.map(n=>ZP(YP(e)?e[n]:t[n])).join(" "):t}function cy(e){return wa(e)&&Ho(e,"value")}function YP(e){return wa(e)&&Ho(e,"offsetX")}function ZP(e){if(!e)return"";if(c$(e)){const t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${HA({path:t})})`}return e}const XP=({token:e,path:t})=>{const n=`--${HA({path:t})}`,{value:r}=e,a=u$(e);return{name:n,original:r,path:t,value:a,toString:()=>`var(${n})`}};function V3({tokens:e,path:t=[],setupToken:n}){if(Ho(e,"value"))return n({token:e,path:t});const r={};for(const a in e)if(Ho(e,a)){const s=e[a],i=wa(s)?s:{value:s};r[a]=V3({tokens:i,path:t.concat(a),setupToken:n})}return r}function W3(e,t){t=t||[];for(var n in e)Ho(e,n)&&(wa(e[n])&&"value"in e[n]?t.push(e[n]):wa(e[n])&&W3(e[n],t));return t}function d$(e,t,n){if(e==null)return{};var r,a,s,i,c,u,f=e[0]||{},h=1,m=e.length;for(n=n||[],typeof f!="object"&&(f={});h<m;h++)if((c=e[h])!=null){for(i in c)if(Ho(c,i)&&i!=="__proto__"&&(r=f[i],s=c[i],f!==s))if(s&&(wa(s)||(a=Array.isArray(s)))){a?(a=!1,u=r&&Array.isArray(r)?r:[]):u=r&&wa(r)?r:{};var g=n.slice(0);g.push(i),f[i]=d$([u,s],t,g)}else s!==void 0&&(f[i]=s)}return f}function QP(e,t){return t?`${e} { ${Object.entries(t).map(([n,r])=>`--${n}:${r}; `).join(" ")}}
|
|
160
|
+
`:""}function Bi(e,t){let n="";const{_modifiers:r={},_element:a={},_vars:s,...i}=t;if(Object.keys(i).length){const[c,u]=Nde(i,f=>f.startsWith(":")||f.startsWith("["));Object.entries(c).forEach(([f,h])=>{const{_modifiers:m={},_element:g={},_vars:y,...w}=h;n+=`${e}${f} { ${q3(w)} }
|
|
161
|
+
`,n+=QP(`${e}${f}`,y)}),n+=`${e} { ${q3(u)} }
|
|
162
|
+
`}return n+=QP(e,s),Object.entries(r).forEach(([c,u])=>{u&&Object.keys(u).length&&(n+=Bi(`${e}--${c}`,u))}),Object.entries(a).forEach(([c,u])=>{u&&Object.keys(u).length&&(n+=Bi(`${e}__${c}`,u))}),n}function Nge({theme:e,components:t}){let n="";const{tokens:r,name:a,breakpoints:s}=e;return t.forEach(({name:i,theme:c,overrides:u})=>{const f=`amplify-${i}`,h=`[data-amplify-theme="${a}"] .${f}`,m=qo(c)?c(r):c;n+=Bi(h,m),u&&u.forEach(g=>{const y=qo(g.theme)?g.theme(r):g.theme;if("mediaQuery"in g&&(n+=`@media (${g.mediaQuery}) {
|
|
163
|
+
${Bi(h,y)}
|
|
164
|
+
}`),"breakpoint"in g){const w=s.values[g.breakpoint];n+=`
|
|
165
|
+
@media (min-width: ${w}px) {
|
|
166
|
+
${Bi(h,y)}
|
|
167
|
+
}`}"selector"in g&&(n+=Bi(`${g.selector} .${f}`,y)),"colorMode"in g&&(n+=`
|
|
168
|
+
@media (prefers-color-scheme: ${g.colorMode}) {
|
|
169
|
+
${Bi(`[data-amplify-theme="${a}"][data-amplify-color-mode="system"] .${f}`,y)}
|
|
170
|
+
}
|
|
171
|
+
`,n+=Bi(`[data-amplify-theme="${a}"][data-amplify-color-mode="${g.colorMode}"] .${f}`,y))})}),n}function JP({keys:e,value:t}){return e.reduce((n,r)=>({...n,[r]:{value:`{colors.${t}.${r}.value}`}}),{})}function Mge({animations:e,tokens:t}){let n="";return Object.entries(e).forEach(([r,a])=>{n+=`
|
|
172
|
+
@keyframes ${r} {`,Object.entries(a).forEach(([s,i])=>{n+=`
|
|
173
|
+
${s} {
|
|
174
|
+
`;const c=qo(i)?i(t):i;n+=q3(c),n+=`
|
|
175
|
+
}`}),n+=`
|
|
176
|
+
}`}),n}function uy(e,t=i$){const n=d$([{},t,{...e,components:{}}]),{primaryColor:r,secondaryColor:a}=n;Bo(r)&&(n.tokens.colors.primary=JP({keys:Object.keys(n.tokens.colors[r]),value:r})),Bo(a)&&(n.tokens.colors.secondary=JP({keys:Object.keys(n.tokens.colors[a]),value:a}));const s=V3({tokens:n.tokens,setupToken:XP}),{breakpoints:i,name:c}=n;let u=`[data-amplify-theme="${c}"] {
|
|
177
|
+
`+W3(s).map(h=>`${h.name}: ${h.value};`).join(`
|
|
178
|
+
`)+`
|
|
179
|
+
}
|
|
180
|
+
`;e?.components&&(u+=Nge({theme:{...n,tokens:s},components:e.components}));let f=[];return n.animations&&(u+=Mge({animations:n.animations,tokens:s})),n.overrides&&(f=n.overrides.map(h=>{const m=V3({tokens:h.tokens,setupToken:XP}),g=W3(m).map(y=>`${y.name}: ${y.value};`).join(`
|
|
181
|
+
`);if("selector"in h&&(u+=`
|
|
182
|
+
${h.selector} {
|
|
183
|
+
${g}
|
|
184
|
+
}
|
|
185
|
+
`),"mediaQuery"in h&&(u+=`
|
|
186
|
+
@media (${h.mediaQuery}) {
|
|
187
|
+
[data-amplify-theme="${c}"] {
|
|
188
|
+
${g}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`),"breakpoint"in h){const y=n.breakpoints.values[h.breakpoint];u+=`
|
|
192
|
+
@media (min-width: ${y}px) {
|
|
193
|
+
[data-amplify-theme="${c}"] {
|
|
194
|
+
${g}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
`}return"colorMode"in h&&(u+=`
|
|
198
|
+
@media (prefers-color-scheme: ${h.colorMode}) {
|
|
199
|
+
[data-amplify-theme="${c}"][data-amplify-color-mode="system"] {
|
|
200
|
+
${g}
|
|
201
|
+
color-scheme: ${h.colorMode};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`,u+=`
|
|
205
|
+
[data-amplify-theme="${c}"][data-amplify-color-mode="${h.colorMode}"] {
|
|
206
|
+
${g}
|
|
207
|
+
color-scheme: ${h.colorMode};
|
|
208
|
+
}
|
|
209
|
+
`),{...h,tokens:m}})),{tokens:s,breakpoints:i,name:c,cssText:u,containerProps:({colorMode:h}={})=>({"data-amplify-theme":c,"data-amplify-color-mode":h}),overrides:f}}const We=(...e)=>{const t=[];for(const n of e)if(n){if(Bo(n)){t.push(n);continue}if(typeof n=="number"){t.push(n.toString());continue}if(Array.isArray(n)){t.push(We(...n));continue}if(wa(n)){if(n.toString!==Object.prototype.toString&&n.toString()!=="[object Object]"){t.push(n.toString());continue}for(const r in n)Ho(n,r)&&n[r]&&t.push(r)}}return t.join(" ")},he={Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Button:"amplify-button",ButtonLoaderWrapper:"amplify-button__loader-wrapper",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",Flex:"amplify-flex",Heading:"amplify-heading",Icon:"amplify-icon",Input:"amplify-input",Label:"amplify-label",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",TextField:"amplify-textfield",VisuallyHidden:"amplify-visually-hidden"},Pge=({componentName:e,packageName:t,version:n})=>{const r=[`ui-${t}`,n];switch(e){case"AIConversation":{xo({...vde,additionalDetails:[[e],r]});break}case"Authenticator":{xo({...bde,additionalDetails:[[e],r]});break}case"ChangePassword":case"DeleteUser":{xo({...yde,additionalDetails:[["AccountSettings"],r]});break}case"FileUploader":{xo({...Sde,additionalDetails:[[e],r]});break}case"InAppMessaging":{xo({...wde,additionalDetails:[[e],r]});break}case"LocationSearch":{xo({...xde,additionalDetails:[[e],r]});break}case"MapView":{xo({...Cde,additionalDetails:[[e],r]});break}case"StorageManager":{xo({...Ede,additionalDetails:[[e],r]});break}case"StorageBrowser":{xo({..._de,additionalDetails:[[e],r]});break}}return Ode},G3=F.createContext(null),Dge=e=>(t,n)=>{YF(t,n,e)};function f$({children:e}){const[t,n]=F.useState("configuring");F.useEffect(()=>{Iv().then(()=>{n("authenticated")}).catch(()=>{n("unauthenticated")})},[]);const r=_.useContext(G3),a=rde(Jpe),s=_.useMemo(()=>r??{authStatus:t,service:a},[t,r,a]),{service:i}=s;return _.useEffect(()=>Mde(i,Dge({onSignIn:()=>{n("authenticated")},onSignOut:()=>{n("unauthenticated")}})),[i]),F.createElement(G3.Provider,{value:s},e)}const Lge="`useAuthenticator` must be used inside an `Authenticator.Provider`.",Uge=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","selectMfaType","setupEmail","setupTotp","signIn","signUp","verifyUser"],zge=e=>Uge.some(t=>t===e),jge=()=>!1;function Fge(e,t){return e.length!==t.length?!1:e.every((n,r)=>{const a=t[r];return Tde(n,a)||Rde(n,a)?!0:n===a})}const $ge=e=>(t,n)=>{const r=e(t),a=e(n);return Fge(r,a)},Bge=e=>({...fp(e)?.formFields?.setupTotp?.QR}),Hge=e=>e.flatMap(([t,n])=>({name:t,...n})),qge=(e={})=>e&&Object.entries(e).map(([t,n])=>!Bo(n)||!t?{}:{name:t,label:n,type:"radio",value:n}),Vge=(e=[])=>e.map(t=>({name:"mfa_type",label:Vn.getMfaTypeLabelByValue(t),type:"radio",value:t})),Wge=(e,t)=>zge(e)?e==="verifyUser"?qge(fp(t).unverifiedUserAttributes):e==="selectMfaType"?Vge(fp(t).allowedMfaTypes):Hge(hfe(e,t)):[];function Et(e){const t=F.useContext(G3);if(!t)throw new Error(Lge);const{service:n}=t,{send:r}=n,a=_.useCallback(b=>({...zde({send:r,state:b})}),[r]),s=e?$ge(e):jge,{authStatus:i}=t,c=cde(n,a,s),{route:u,totpSecretCode:f,user:h,...m}=c,g=n.getSnapshot(),y=u==="setupTotp"?Bge(g):null,w=Wge(u,g);return{...m,authStatus:i,route:u,totpSecretCode:f,user:h,fields:w,QRFields:y}}const Gge=({route:e})=>[e];function Kge(e){const{route:t,initializeMachine:n}=Et(Gge),r=F.useRef(!1);F.useEffect(()=>{!r.current&&t==="setup"&&(n(e),r.current=!0)},[n,t,e])}const Yge=({shouldWarn:e,message:t})=>{_.useEffect(()=>{},[e,t])};function Zge({componentName:e,packageName:t,version:n}){_.useEffect(()=>Pge({componentName:e,packageName:t,version:n}),[e,t,n])}const h$=_.createContext({theme:uy(),colorMode:void 0}),qA={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},VA={Alert:{dismissButtonLabel:"Dismiss alert"},PhoneNumberField:{countryCodeLabel:"Country code"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"}},K3={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},Xge=e=>e in K3,p$=e=>typeof e=="string"&&e.length===0,e7=e=>e==null||p$(e),dy=e=>Object.keys(e),WA=(e,t,n)=>{if(typeof t!="string")return t;if(t.includes(" "))return t.split(" ").map(r=>WA(e,r,n)).join(" ");if(Xge(e)){const r=t.split("."),a=K3[e];let s=n[a];for(let i=0;i<r.length;i++){if(s){s=s[r[i]];continue}break}return cy(s)?`var(--${HA({path:[K3[e],...r]})})`:t}return t},Qge=({breakpoint:e,breakpoints:t,values:n})=>{const r=n[e];if(r!==void 0)return r;const a=dy(t).sort((i,c)=>t[c]-t[i]),s=a.slice(a.indexOf(e));for(const i of s){const c=n[i];if(c!==void 0)return c}return null},Jge=e=>dy(e).reduce((t,n)=>n in i$.breakpoints.values?{...t,[n]:e[n]}:t,{}),e0e=({breakpoint:e,breakpoints:t,values:n})=>{let r={};const a=dy(t).sort((s,i)=>t[s]-t[i]);return Array.isArray(n)?n.forEach((s,i)=>{r[a[i]]=s}):typeof n=="object"&&(r=Jge(n)),Qge({breakpoint:e,breakpoints:t,values:r})},t0e=({breakpoints:e})=>{const t=dy(e).sort((n,r)=>e[r]-e[n]);return t.map((n,r)=>{let a="";const s=e[n],i=t[r-1],c=i?e[i]-1:null;return s>=0&&(a=`(min-width: ${s}px)`),c!==null&&(a&&(a+=" and "),a+=`(max-width: ${c}px)`),{breakpoint:n,query:a,maxWidth:c,minWidth:s}})},n0e=typeof window>"u"?_.useEffect:_.useLayoutEffect,r0e=({breakpoints:e,defaultBreakpoint:t})=>{const r=typeof window<"u"&&typeof window.matchMedia<"u"?window.matchMedia:null,a=_.useMemo(()=>t0e({breakpoints:e}),[e]),[s,i]=_.useState(t),c=_.useCallback((u,f)=>{u&&i(f)},[i]);return n0e(()=>{if(!r)return;const u=a.map(({query:f,breakpoint:h})=>{const m=r(f);c(m.matches,h);const g=y=>{y.matches&&i(h)};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)});return()=>{u.forEach(f=>f())}},[e,i,r,a]),_.useDebugValue(s,u=>u),s},a0e=e=>typeof e>"u"||typeof e.theme>"u"?uy():e.theme,s0e=()=>{const e=_.useContext(h$);return a0e(e)},o0e=({value:e,propKey:t,tokens:n})=>cy(e)?e.toString():Bo(e)?Bo(t)?WA(t,e,n):e:null,i0e=e=>e==="auto"||typeof e=="number"&&!isNaN(e)||typeof e=="string"&&!isNaN(parseFloat(e)),UC=e=>e==="auto"?"auto":`span ${e}`,t7=e=>i0e(e)?UC(e):Array.isArray(e)?e.map(t=>UC(t)):typeof e=="object"&&e!=null?Object.entries(e).reduce((t,[n,r])=>({...t,[n]:UC(r)}),{}):null,l0e=e=>{const{rowSpan:t,columnSpan:n,row:r,column:a,...s}=e,{rowFromSpanValue:i,columnFromSpanValue:c}=_.useMemo(()=>({rowFromSpanValue:t7(t),columnFromSpanValue:t7(n)}),[t,n]);return{row:e7(r)?i:r,column:e7(a)?c:a,...s}},c0e=e=>e in qA,u0e=({props:e={},style:t={},breakpoint:n,breakpoints:r,tokens:a})=>{const s={};return Object.keys(e).filter(i=>e[i]!==null).forEach(i=>{if(c0e(i)){const c=e[i];if(c==null||p$(c))return;const u=qA[i];let f="";cy(c)?f=c.toString():typeof c=="string"?f=WA(i,c,a):typeof c=="number"?f=c:typeof c=="object"&&(f=o0e({propKey:i,tokens:a,value:e0e({values:c,breakpoint:n,breakpoints:r})})),t={...t,[u]:f}}else typeof e[i]<"u"&&(s[i]=e[i])}),{propStyles:t,nonStyleProps:s}},d0e=(e,t)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:a}=s0e(),s=r0e({breakpoints:n,defaultBreakpoint:r}),i=l0e(e);return _.useMemo(()=>u0e({props:i,style:t,breakpoint:s,breakpoints:n,tokens:a}),[i,t,n,s,a])},Xt=e=>_.forwardRef(e),f0e=({as:e="div",children:t,testId:n,ariaLabel:r,isDisabled:a,style:s,inert:i,...c},u)=>{const{propStyles:f,nonStyleProps:h}=d0e(c,s);return _.createElement(e,{"aria-label":r,"data-testid":n,disabled:a,ref:u,inert:i?"":null,style:f,...h},t)},Ye=Xt(f0e);Ye.displayName="View";const hh={minX:0,minY:0,width:24,height:24},h0e=({className:e,as:t="svg",fill:n="currentColor",pathData:r,viewBox:a=hh,children:s,paths:i,...c},u)=>{const f=a.minX??hh.minX,h=a.minY??hh.minY,m=a.width??hh.width,g=a.height??hh.height;let y;return s&&(y=s),i&&(y=i.map((w,b)=>_.createElement("path",{...w,key:b}))),r&&(y=_.createElement("path",{d:r,fill:n})),_.createElement(Ye,{as:t,className:We(he.Icon,e),ref:u,viewBox:`${f} ${h} ${m} ${g}`,...c},y)},m$=Xt(h0e);m$.displayName="Icon";const p0e=_.createContext({});function fy(e){const t=_.useContext(p0e);if(e&&t)return t[e]}const m0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},g0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},v0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},y0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},g$=({variation:e,ariaHidden:t,ariaLabel:n,role:r})=>{const a=fy("alert");let s;switch(e){case"info":s=a?.info??_.createElement(v0e,{"aria-hidden":t,"aria-label":n,role:r});break;case"error":s=a?.error??_.createElement(g0e,{"aria-hidden":t,"aria-label":n,role:r});break;case"warning":s=a?.warning??_.createElement(y0e,{"aria-hidden":t,"aria-label":n,role:r});break;case"success":s=a?.success??_.createElement(m0e,{"aria-hidden":t,"aria-label":n,role:r});break}return s?_.createElement("span",{className:he.AlertIcon},s):null};g$.displayName="AlertIcon";const b0e=globalThis?.document?_.useLayoutEffect:()=>{},S0e="amplify-id",w0e=dz.useId||(()=>{});let x0e=0;const il=e=>{const[t,n]=_.useState(w0e());return b0e(()=>{e||n(r=>r??String(x0e++))},[e]),e??(t?`${S0e}-${t}`:"")},v$=_.createContext({isFieldsetDisabled:!1}),Qp=e=>{let n=_.useContext(v$).isFieldsetDisabled;return(n===void 0||n===!1)&&(n=e),{isFieldsetDisabled:n}},C0e=({className:e,children:t,...n},r)=>_.createElement(Ye,{className:We(he.Flex,e),ref:r,...n},t),Ve=Xt(C0e);Ve.displayName="Flex";const E0e="linear-empty",_0e="linear-filled",k0e="circular-empty",A0e="circular-filled",n7=8,Y3=42,qg=2*Y3*Math.PI,I0e=({className:e,filledColor:t,emptyColor:n,size:r,variation:a,isDeterminate:s=!1,isPercentageTextHidden:i=!1,percentage:c=0,...u},f)=>{c=Math.min(c,100),c=Math.max(c,0);const h=`${c}%`,m=We(he.Loader,Yt(he.Loader,r),Yt(he.Loader,a),ea(he.Loader,"determinate",s),e),g=_.createElement("g",null,_.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(n)},"data-testid":E0e}),_.createElement("line",{x1:"0",x2:s?h:"100%",y1:"50%",y2:"50%",style:{stroke:s&&c===0?"none":t?String(t):void 0},"data-testid":_0e}),s?_.createElement("text",{"aria-live":"polite",className:We(he.LoaderLabel,i?he.VisuallyHidden:null),x:`${-1+c}%`,y:"200%"},h):null),y=_.createElement("g",null,_.createElement("circle",{cx:"50%",cy:"50%",r:`${Y3}%`,strokeWidth:`${n7}%`,style:{stroke:String(n)},"data-testid":k0e}),_.createElement("circle",{cx:"50%",cy:"50%",r:`${Y3}%`,strokeWidth:`${n7}%`,style:{stroke:String(t),strokeDasharray:s?`${qg}% ${qg}%`:void 0,strokeDashoffset:s?`${qg-qg*c/100}%`:void 0},"data-testid":A0e}),s?_.createElement("text",{"aria-live":"polite",className:We(he.LoaderLabel,i?he.VisuallyHidden:null),x:"130%",y:"80%"},h):null);return _.createElement(Ye,{as:"svg","aria-valuenow":s?c:void 0,className:m,ref:f,role:"progressbar",...u},a==="linear"?g:y)},y$=Xt(I0e);y$.displayName="Loader";const T0e=["link","primary",void 0],R0e=({className:e,children:t,colorTheme:n,isFullWidth:r=!1,isDisabled:a,isLoading:s,loadingText:i="",size:c,type:u="button",variation:f,...h},m)=>{const g=T0e.includes(f)&&n?`${f??"outlined"}--${n}`:void 0,{isFieldsetDisabled:y}=Qp(a??s??h.disabled),w=We(he.Button,he.FieldGroupControl,Yt(he.Button,f),Yt(he.Button,g),Yt(he.Button,c),ea(he.Button,"disabled",y),ea(he.Button,"loading",s),ea(he.Button,"fullwidth",r),e);return _.createElement(Ye,{ref:m,as:"button",className:w,isDisabled:y,type:u,...h},s?_.createElement(Ve,{as:"span",className:he.ButtonLoaderWrapper},_.createElement(y$,{size:c}),i||null):t)},cn=Xt(R0e);cn.displayName="Button";const O0e=e=>{const{className:t,size:n,...r}=e;return _.createElement(Ye,{as:"span",width:n??"1em",height:n??"1em",className:We(he.Icon,t),...r},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n?{width:n,height:n}:void 0},_.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},N0e=({as:e="p",className:t,children:n,isTruncated:r,variation:a,...s},i)=>{const c=We(he.Text,Yt(he.Text,a),ea(he.Text,"truncated",r),t);return _.createElement(Ye,{as:e,className:c,ref:i,...s},n)},Fa=Xt(N0e);Fa.displayName="Text";const M0e="qa-field-description",hy=({descriptiveText:e,labelHidden:t,...n})=>e?_.createElement(Fa,{"data-testid":M0e,className:We(he.FieldDescription,{[he.VisuallyHidden]:t}),...n},e):null;hy.displayName="FieldDescription";const py=({errorMessage:e,hasError:t,...n})=>t&&e?_.createElement(Fa,{className:he.FieldErrorMessage,...n},e):null;py.displayName="FieldErrorMessage";const P0e=({children:e,className:t,visuallyHidden:n,...r},a)=>_.createElement(Ye,{as:"label",className:We(he.Label,t,{[he.VisuallyHidden]:n}),ref:a,...r},e),GA=Xt(P0e);GA.displayName="Label";const D0e=({buttonRef:e,children:t,className:n,dismissButtonLabel:r=VA.Alert.dismissButtonLabel,hasIcon:a=!0,heading:s,isDismissible:i=!1,onDismiss:c,variation:u,...f},h)=>{const[m,g]=_.useState(!1),y=fy("alert"),w=_.useCallback(()=>{g(!m),qo(c)&&c()},[g,c,m]);return m?null:_.createElement(Ve,{className:We(he.Alert,n,Yt(he.Alert,u)),ref:h,role:"alert",...f},a&&_.createElement(g$,{variation:u,ariaHidden:!0}),_.createElement(Ye,{flex:"1"},s&&_.createElement(Ye,{className:he.AlertHeading},s),_.createElement(Ye,{className:he.AlertBody},t)),i&&_.createElement(cn,{ariaLabel:r,variation:"link",className:he.AlertDismiss,onClick:w,ref:e},y?.close??_.createElement(O0e,{"aria-hidden":"true"})))},b$=Xt(D0e);b$.displayName="Alert";const ac=(e,t)=>e&&t?`${e}-${t}`:void 0,L0e=({children:e,className:t,innerEndComponent:n,innerStartComponent:r,orientation:a="horizontal",outerEndComponent:s,outerStartComponent:i,variation:c,...u},f)=>{const h=r!=null,m=n!=null,g=h?he.FieldGroupHasInnerStart:null,y=m?he.FieldGroupHasInnerEnd:null,w=We(he.FieldGroup,g,y,Yt(he.FieldGroup,a),t);return _.createElement(Ve,{className:w,ref:f,...u},i&&_.createElement(Ye,{className:We(he.FieldGroupOuterStart,Yt(he.FieldGroupOuterStart,c))},i),_.createElement(Ye,{className:We(he.FieldGroupFieldWrapper,Yt(he.FieldGroupFieldWrapper,a))},r&&_.createElement(Ye,{className:he.FieldGroupInnerStart},r),e,n&&_.createElement(Ye,{className:he.FieldGroupInnerEnd},n)),s&&_.createElement(Ye,{className:We(he.FieldGroupOuterEnd,Yt(he.FieldGroupOuterEnd,c))},s))},S$=Xt(L0e);S$.displayName="FieldGroup";const U0e=({autoComplete:e,checked:t,className:n,defaultChecked:r,defaultValue:a,id:s,isDisabled:i,isReadOnly:c,isRequired:u,size:f,type:h="text",hasError:m=!1,value:g,variation:y,...w},b)=>{const x=We(he.Input,he.FieldGroupControl,Yt(he.Input,y),ea(he.Input,"error",m),Yt(he.Input,f),n),{isFieldsetDisabled:E}=Qp(i);return _.createElement(Ye,{"aria-invalid":m,as:"input",autoComplete:e,checked:t,className:x,defaultChecked:r,defaultValue:a,isDisabled:E,id:s,readOnly:c,ref:b,required:u,type:h,value:g,...w})},KA=Xt(U0e);KA.displayName="Input";const z0e=e=>e in qA,w$=e=>{const t={styleProps:{},rest:{}};return Object.keys(e).forEach(n=>{z0e(n)?t.styleProps={...t.styleProps,[n]:e[n]}:t.rest={...t.rest,[n]:e[n]}}),t},YA=e=>{const t=e.filter(n=>n!==void 0).join(" ");return t.length>0?t:void 0},ZA="error",XA="description",j0e=(e,t)=>{const{className:n,descriptiveText:r,errorMessage:a,hasError:s=!1,id:i,innerEndComponent:c,innerStartComponent:u,label:f,labelHidden:h=!1,outerEndComponent:m,outerStartComponent:g,size:y,testId:w,variation:b,inputStyles:x,...E}=e,k=il(i),A=il(),R=r?ac(A,XA):void 0,P=s?ac(A,ZA):void 0,O=YA([P,R]),{styleProps:T,rest:M}=w$(E);return _.createElement(Ve,{className:We(he.Field,Yt(he.Field,y),he.TextField,n),testId:w,...T},_.createElement(GA,{htmlFor:k,visuallyHidden:h},f),_.createElement(hy,{id:R,labelHidden:h,descriptiveText:r}),_.createElement(S$,{outerStartComponent:g,outerEndComponent:m,innerStartComponent:u,innerEndComponent:c,variation:b},_.createElement(KA,{"aria-describedby":O,hasError:s,id:k,ref:t,size:y,variation:b,...x,...M})),_.createElement(py,{id:P,hasError:s,errorMessage:a}))},Jp=Xt(j0e);Jp.displayName="TextField";const F0e=({as:e="span",children:t,className:n,...r},a)=>_.createElement(Ye,{as:e,className:We(he.VisuallyHidden,n),ref:a,...r},t),my=Xt(F0e);my.displayName="VisuallyHidden";const $0e=({className:e,orientation:t="horizontal",size:n,label:r,...a},s)=>{const i=We(he.Divider,Yt(he.Divider,t),Yt(he.Divider,n),e);return _.createElement(Ye,{"aria-orientation":t,as:"hr",className:i,"data-label":r,ref:s,...a})},QA=Xt($0e);QA.displayName="Divider";const B0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},H0e=({children:e,className:t,isDisabled:n,legend:r,legendHidden:a,size:s,testId:i,variation:c="plain",...u},f)=>{const{isFieldsetDisabled:h}=Qp(n),m=_.useMemo(()=>({isFieldsetDisabled:h}),[h]),g=We(he.Fieldset,Yt(he.Fieldset,c),Yt(he.Fieldset,s),t),y=We(he.FieldsetLegend,Yt(he.FieldsetLegend,s),{[he.VisuallyHidden]:a});return _.createElement(v$.Provider,{value:m},_.createElement(Ve,{as:"fieldset",className:g,ref:f,disabled:h,testId:i,...u},_.createElement(my,{as:"legend"},r),_.createElement(Ye,{as:"div","aria-hidden":"true",className:y},r),e))},x$=Xt(H0e);x$.displayName="Fieldset";const q0e={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},V0e=({className:e,children:t,isTruncated:n,level:r=6,...a},s)=>_.createElement(Ye,{as:q0e[r],className:We(he.Heading,Yt(he.Heading,r),ea(he.Heading,"truncated",n),e),ref:s,...a},t),Ur=Xt(V0e);Ur.displayName="Heading";var W0e=_.createContext(void 0),G0e=e=>{const{dir:t,children:n}=e;return C.jsx(W0e.Provider,{value:t,children:n})};const K0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))},Y0e=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:Z0e,passwordIsShown:X0e,showPassword:Q0e}=VA.PasswordField,J0e=({fieldType:e,passwordIsHiddenLabel:t=Z0e,passwordIsShownLabel:n=X0e,showPasswordButtonLabel:r=Q0e,size:a,hasError:s,...i},c)=>{const u=fy("passwordField"),f=We(he.FieldShowPassword,ea(he.FieldShowPassword,"error",s)),h=e==="password"?u?.visibility??_.createElement(Y0e,{"aria-hidden":"true"}):u?.visibilityOff??_.createElement(K0e,{"aria-hidden":"true"});return _.createElement(cn,{"aria-checked":e!=="password",ariaLabel:r,className:f,colorTheme:s?"error":void 0,ref:c,role:"switch",size:a,...i},_.createElement(my,{"aria-live":"polite"},e==="password"?t:n),h)},C$=Xt(J0e);C$.displayName="ShowPasswordButton";const e1e=({autoComplete:e="current-password",label:t,className:n,hideShowPassword:r=!1,passwordIsHiddenLabel:a,passwordIsShownLabel:s,showPasswordButtonLabel:i,showPasswordButtonRef:c,size:u,hasError:f,...h},m)=>{const[g,y]=_.useState("password"),w=_.useCallback(()=>{y(g==="password"?"text":"password")},[y,g]);return _.createElement(Jp,{autoComplete:e,outerEndComponent:r?null:_.createElement(C$,{fieldType:g,onClick:w,passwordIsHiddenLabel:a,passwordIsShownLabel:s,ref:c,size:u,showPasswordButtonLabel:i,hasError:f}),size:u,type:g,label:t,className:We(he.PasswordField,n),ref:m,hasError:f,...h})},JA=Xt(e1e);JA.displayName="PasswordField";const t1e=({autoComplete:e,className:t,size:n,variation:r,value:a,defaultValue:s,hasError:i,icon:c,iconColor:u,children:f,placeholder:h,isDisabled:m,isRequired:g,isMultiple:y=!1,selectSize:w=1,...b},x)=>{const k=a===void 0&&s===void 0&&h,A=y||w>1,R=We(he.Select,he.FieldGroupControl,Yt(he.Select,n),Yt(he.Select,r),ea(he.Select,"error",i),ea(he.Select,"expanded",A),t),P=fy("select"),{isFieldsetDisabled:O}=Qp(m);return _.createElement(Ye,{className:he.SelectWrapper},_.createElement(Ye,{"aria-invalid":i,as:"select",autoComplete:e,value:a,defaultValue:k?"":s,isDisabled:O,multiple:y,size:w,required:g,className:R,ref:x,...b},h&&_.createElement("option",{value:""},h),f),A?null:_.createElement(Ve,{className:We(he.SelectIcon,Yt(he.SelectIcon,n)),color:u,"aria-hidden":"true"},c??P?.expand??_.createElement(B0e,null)))},E$=Xt(t1e);E$.displayName="Select";const n1e=({children:e,options:t})=>e?(t?.length&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),e):t?.map((n,r)=>_.createElement("option",{label:n,value:n,key:`${n}-${r}`},n)),r1e=(e,t)=>{const{children:n,className:r,descriptiveText:a,errorMessage:s,hasError:i=!1,id:c,label:u,labelHidden:f=!1,options:h,size:m,testId:g,inputStyles:y,...w}=e,b=il(c),x=il(),E=a?ac(x,XA):void 0,k=i?ac(x,ZA):void 0,A=YA([k,E]),{styleProps:R,rest:P}=w$(w);return _.createElement(Ve,{className:We(he.Field,Yt(he.Field,m),he.SelectField,r),testId:g,...R},_.createElement(GA,{htmlFor:b,visuallyHidden:f},u),_.createElement(hy,{id:E,labelHidden:f,descriptiveText:a}),_.createElement(E$,{"aria-describedby":A,hasError:i,id:b,ref:t,size:m,...P,...y},n1e({children:n,options:h})),_.createElement(py,{id:k,hasError:i,errorMessage:s}))},_$=Xt(r1e);_$.displayName="SelectField";const a1e=({className:e,dialCodeList:t,isReadOnly:n,...r},a)=>{const s=t??ZF,i=_.useMemo(()=>s.map(c=>_.createElement("option",{key:c,value:c,disabled:n},c)),[s,n]);return _.createElement(_$,{"aria-disabled":n,autoComplete:"tel-country-code",className:We(he.CountryCodeSelect,he.DialCodeSelect,e),labelHidden:!0,ref:a,...r},i)},k$=Xt(a1e);k$.displayName="DialCodeSelect";const s1e=({autoComplete:e="tel-national",className:t,defaultDialCode:n,dialCodeLabel:r=VA.PhoneNumberField.countryCodeLabel,dialCodeList:a,dialCodeName:s,dialCodeRef:i,hasError:c,isDisabled:u,isReadOnly:f,onDialCodeChange:h,onInput:m,size:g,variation:y,...w},b)=>_.createElement(Jp,{outerStartComponent:_.createElement(k$,{defaultValue:n,dialCodeList:a,className:t,hasError:c,isDisabled:u,isReadOnly:f,label:r,name:s,onChange:h,ref:i,size:g,variation:y}),autoComplete:e,className:We(he.PhoneNumberField,t),hasError:c,isDisabled:u,isReadOnly:f,onInput:m,ref:b,size:g,type:"tel",variation:y,...w}),A$=Xt(s1e);A$.displayName="PhoneNumberField";const o1e={name:"default"},I$=F.createContext(o1e),i1e=()=>_.useContext(I$),l1e=({children:e,className:t,id:n,isDisabled:r=!1,testId:a,value:s,labelPosition:i,...c},u)=>{const{currentValue:f,defaultValue:h,name:m,hasError:g,isGroupDisabled:y=!1,isRequired:w,isReadOnly:b,onChange:x,size:E,labelPosition:k}=i1e(),{isFieldsetDisabled:A}=Qp(y||r||b&&h!==s),R=f!==void 0?s===f:void 0,P=h!==void 0?s===h:void 0,O=i??k;return _.createElement(Ve,{as:"label",className:We(he.Radio,ea(he.Radio,"disabled",A),O?`amplify-label-${O}`:null,t)},e&&_.createElement(Fa,{as:"span",className:We(he.RadioLabel,ea(he.RadioLabel,"disabled",A))},e),_.createElement(KA,{checked:R,className:We(he.VisuallyHidden,he.RadioInput),defaultChecked:P,hasError:g,id:n,isDisabled:A,isReadOnly:b,isRequired:w,onChange:x,ref:u,type:"radio",name:m,value:s,...c}),_.createElement(Ve,{"aria-hidden":"true",as:"span",className:We(he.RadioButton,Yt(he.RadioButton,E)),testId:a}))},eI=Xt(l1e);eI.displayName="Radio";const c1e=({children:e,className:t,defaultValue:n,descriptiveText:r,errorMessage:a,hasError:s=!1,id:i,isDisabled:c,isRequired:u,isReadOnly:f,legend:h,legendHidden:m=!1,labelPosition:g,onChange:y,name:w,size:b,testId:x,value:E,variation:k,...A},R)=>{const P=il(i),O=il(),T=r?ac(O,XA):void 0,M=s?ac(O,ZA):void 0,z=YA([M,T]),q=ac(x,he.RadioGroup),U=_.useMemo(()=>({currentValue:E,defaultValue:n,hasError:s,isRequired:u,isReadOnly:f,isGroupDisabled:c,onChange:y,size:b,name:w,labelPosition:g}),[n,s,c,u,f,y,b,w,E,g]);return _.createElement(x$,{className:We(he.Field,Yt(he.Field,b),he.RadioGroupField,t),isDisabled:c,legend:h,legendHidden:m,ref:R,role:"radiogroup",size:b,testId:x,variation:k,...A},_.createElement(hy,{id:T,labelHidden:m,descriptiveText:r}),_.createElement(Ve,{"aria-describedby":z,className:he.RadioGroup,id:P,testId:q},_.createElement(I$.Provider,{value:U},e)),_.createElement(py,{id:M,hasError:s,errorMessage:a}))},tI=Xt(c1e);tI.displayName="RadioGroupField";const gy=_.createContext({groupId:"",activeTab:"",setActiveTab:()=>{}}),T$="-",u1e=({className:e,value:t,children:n,onClick:r,as:a="button",role:s="tab",...i},c)=>{const{activeTab:u,setActiveTab:f,groupId:h}=_.useContext(gy);let m=t;typeof m=="string"&&(m=m.replace(" ",T$));const g=u===t,y=w=>{qo(r)&&r?.(w),f(t)};return _.createElement(Ye,{...i,role:s,as:a,id:`${h}-tab-${m}`,"aria-selected":g,"aria-controls":`${h}-panel-${m}`,tabIndex:g?void 0:-1,className:We(he.TabsItem,ea(he.TabsItem,"active",u===t),e),ref:c,onClick:y},n)},nI=Xt(u1e);nI.displayName="Tabs.Item";const d1e=e=>_.isValidElement(e),f1e=({className:e,children:t,indicatorPosition:n,spacing:r,role:a="tablist",...s},i)=>{const c=_.useRef(null),{activeTab:u,setActiveTab:f}=_.useContext(gy);_.useImperativeHandle(i,()=>c.current);const h=_.useMemo(()=>_.Children.toArray(t).map(b=>{if(b&&d1e(b))return b.props.value}).filter(b=>!!b),[t]),m=h.indexOf(u),g=_.useCallback(()=>{let b=m===h.length-1?0:m+1;const x=c.current?.querySelectorAll("button")??[];for(;x[b].disabled;)b===h.length-1?b=0:b++;const E=h[b];if(E){f(E);const k=x[b];k?.focus(),k?.click()}},[m,f,h]),y=_.useCallback(()=>{let b=m===0?h.length-1:m-1;const x=c.current?.querySelectorAll("button")??[];for(;x[b].disabled;)b===0?b=h.length-1:b--;const E=h[b];if(E){f(E);const k=x[b];k?.focus(),k?.click()}},[m,f,h]),w=_.useCallback(b=>{switch(b.key){case"ArrowLeft":b.preventDefault(),b.stopPropagation(),y();break;case"ArrowUp":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g();break}},[y,g]);return _.createElement(Ye,{...s,role:a,onKeyDown:w,className:We(he.TabsList,n?Yt(he.TabsList,n):null,r?Yt(he.TabsList,r):null,e),ref:c},t)},rI=Xt(f1e);rI.displayName="Tabs.List";const h1e=({className:e,value:t,children:n,role:r="tabpanel",...a},s)=>{const{activeTab:i,isLazy:c,groupId:u}=_.useContext(gy);if(c&&i!==t)return null;let f=t;return typeof f=="string"&&(f=f.replace(" ",T$)),_.createElement(Ye,{...a,role:r,id:`${u}-panel-${f}`,"aria-labelledby":`${u}-tab-${f}`,className:We(he.TabsPanel,ea(he.TabsPanel,"active",i===t),e),ref:s},n)},aI=Xt(h1e);aI.displayName="Tabs.Panel";const p1e=({children:e,defaultValue:t,className:n,value:r,onValueChange:a,isLazy:s,...i},c)=>{const u=il(),f=r!==void 0,[h,m]=_.useState(()=>f?r:t),g=f?r:h??"",y=_.useCallback(b=>{qo(a)&&a(b),f||m(b)},[a,f]),w=_.useMemo(()=>({activeTab:g,isLazy:s,setActiveTab:y,groupId:u}),[g,y,s,u]);return _.createElement(gy.Provider,{value:w},_.createElement(Ye,{...i,ref:c,className:We(n,he.Tabs)},e))},sI=Xt(p1e);sI.displayName="Tabs.Container";const m1e=({items:e,indicatorPosition:t,justifyContent:n,spacing:r,...a},s)=>_.createElement(sI,{...a,ref:s},_.createElement(rI,{indicatorPosition:t,justifyContent:n,spacing:r},e?.map(({value:i,label:c,content:u,...f})=>_.createElement(nI,{...f,key:i,value:i},c))),e?.map(({value:i,content:c,isDisabled:u})=>_.createElement(aI,{key:i,value:i,isDisabled:u},c))),Vl=Object.assign(Xt(m1e),{Item:nI,List:rI,Panel:aI,Container:sI});Vl.displayName="Tabs";const zC=({errors:e,id:t,dataAttr:n})=>{if(!(e?.length>0))return null;const r=n?{[n]:!0}:{};return F.createElement(Ye,{...r,id:t},e.map(a=>F.createElement(Fa,{key:a,role:"alert",variation:"error"},Se(a))))},g1e="6.15.4",v1e=({message:e,shouldWarn:t})=>{Yge({message:e,shouldWarn:t})},R$=_.createContext(null),Ca=()=>{const e=_.useContext(R$);if(!e)throw new Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e},y1e=e=>{const t=new FormData(e.target);return Object.fromEntries(t)};function Ea(){const{submitForm:e,updateBlur:t,updateForm:n}=Et(i=>[i.submitForm,i.updateBlur,i.updateForm]),r=_.useCallback(({target:{name:i}})=>{t({name:i})},[t]),a=_.useCallback(({target:{checked:i,name:c,type:u,value:f}})=>{n({name:c,value:u==="checkbox"&&!i?void 0:f})},[n]),s=_.useCallback(i=>{i.preventDefault(),e(y1e(i))},[e]);return{handleBlur:r,handleChange:a,handleSubmit:s}}const aa=()=>{const{error:e}=Et(t=>[t.error]);return F.createElement(F.Fragment,null,e?F.createElement(b$,{variation:"error",isDismissible:!0},Se(e)):null)};function r7({autocomplete:e,dialCode:t,name:n,type:r,...a}){const{validationErrors:s}=Et(({validationErrors:h})=>[h]),i=_.useMemo(()=>Hde(s[n]),[n,s]),c=i?.length>0,u=il(),f=c?u:void 0;return r==="tel"?_.createElement(_.Fragment,null,_.createElement(A$,{...a,name:n,defaultDialCode:t,dialCodeName:"country_code",autoComplete:e,hasError:c,"aria-describedby":f}),_.createElement(zC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:u})):r==="password"?_.createElement(_.Fragment,null,_.createElement(JA,{...a,name:n,autoCapitalize:"off",autoComplete:e,hasError:c,"aria-describedby":f}),_.createElement(zC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:u})):_.createElement(_.Fragment,null,_.createElement(Jp,{...a,name:n,autoCapitalize:"off",autoComplete:e,hasError:c,type:r,"aria-describedby":f}),_.createElement(zC,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:u}))}function Zs({includePassword:e}={}){const{fields:t}=Et(({route:c})=>[c]),{selectedAuthMethod:n,preferredChallenge:r}=Et(c=>[c.selectedAuthMethod,c.preferredChallenge]),a=n??r,s=e??(!a||a==="PASSWORD"),i=_.useRef(t.map((c,u)=>(c.name==="password"||c.name==="confirm_password")&&!s?_.createElement(r7,{key:u,...c,isRequired:!1}):_.createElement(r7,{key:u,...c})).filter(Boolean)).current;return _.createElement(_.Fragment,null,i)}function ra({children:e,className:t,variation:n="default"}){Et(({route:s})=>[s]);const{components:{Header:r,Footer:a}}=Ca();return F.createElement(Ye,{className:t,"data-amplify-authenticator":"","data-variation":n},F.createElement(Ye,{"data-amplify-container":""},F.createElement(r,null),F.createElement(Ye,{"data-amplify-router":"","data-amplify-router-content":void 0},e),F.createElement(a,null)))}const{getDeliveryMessageText:b1e,getDeliveryMethodText:S1e,getConfirmingText:w1e,getConfirmText:x1e,getResendCodeText:C1e}=Vn;function vc({className:e,variation:t}){const{isPending:n,resendCode:r,codeDeliveryDetails:a}=Et(f=>[f.isPending,f.resendCode,f.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=Ea(),{components:{ConfirmSignUp:{Header:c=vc.Header,Footer:u=vc.Footer}}}=Ca();return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:s,onSubmit:i},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(c,null),F.createElement(Ve,{direction:"column"},F.createElement(Fa,{className:"amplify-authenticator__subtitle"},b1e(a)),F.createElement(Zs,null),F.createElement(aa,null),F.createElement(cn,{variation:"primary",isDisabled:n,type:"submit",loadingText:w1e(),isLoading:n},x1e()),F.createElement(cn,{onClick:r,type:"button"},C1e())),F.createElement(u,null))))}const E1e=()=>{const{codeDeliveryDetails:e}=Et(t=>[t.codeDeliveryDetails]);return F.createElement(Ur,{level:4},S1e(e))};vc.Header=E1e;vc.Footer=function(){return null};const{getChangePasswordText:O$,getChangingText:_1e,getBackToSignInText:k1e}=Vn,us=({className:e,variation:t})=>{const{isPending:n,toSignIn:r}=Et(h=>[h.isPending,h.toSignIn]),{handleBlur:a,handleChange:s,handleSubmit:i}=Ea(),{components:{ForceNewPassword:{FormFields:c=us.FormFields,Header:u=us.Header,Footer:f=us.Footer}}}=Ca();return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:s,onSubmit:i,onBlur:a},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(u,null),F.createElement(c,null),F.createElement(aa,null),F.createElement(cn,{isDisabled:n,type:"submit",variation:"primary",isLoading:n,loadingText:_1e()},O$()),F.createElement(cn,{onClick:r,type:"button",variation:"link",size:"small"},k1e()),F.createElement(f,null))))};us.FormFields=function(){return F.createElement(Zs,null)};us.Header=function(){return F.createElement(Ur,{level:4},O$())};us.Footer=function(){return null};var Pu={},jC,a7;function A1e(){return a7||(a7=1,jC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),jC}var FC={},zi={},s7;function Pc(){if(s7)return zi;s7=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return zi.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},zi.getSymbolTotalCodewords=function(r){return t[r]},zi.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},zi.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},zi.isKanjiModeEnabled=function(){return typeof e<"u"},zi.toSJIS=function(r){return e(r)},zi}var $C={},o7;function oI(){return o7||(o7=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})($C)),$C}var BC,i7;function I1e(){if(i7)return BC;i7=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},BC=e,BC}var HC,l7;function T1e(){if(l7)return HC;l7=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,a){const s=t*this.size+n;this.data[s]=r,a&&(this.reservedBit[s]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},HC=e,HC}var qC={},c7;function R1e(){return c7||(c7=1,(function(e){const t=Pc().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,s=t(r),i=s===145?26:Math.ceil((s-13)/(2*a-2))*2,c=[s-7];for(let u=1;u<a-1;u++)c[u]=c[u-1]-i;return c.push(6),c.reverse()},e.getPositions=function(r){const a=[],s=e.getRowColCoords(r),i=s.length;for(let c=0;c<i;c++)for(let u=0;u<i;u++)c===0&&u===0||c===0&&u===i-1||c===i-1&&u===0||a.push([s[c],s[u]]);return a}})(qC)),qC}var VC={},u7;function O1e(){if(u7)return VC;u7=1;const e=Pc().getSymbolSize,t=7;return VC.getPositions=function(r){const a=e(r);return[[0,0],[a-t,0],[0,a-t]]},VC}var WC={},d7;function N1e(){return d7||(d7=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const s=a.size;let i=0,c=0,u=0,f=null,h=null;for(let m=0;m<s;m++){c=u=0,f=h=null;for(let g=0;g<s;g++){let y=a.get(m,g);y===f?c++:(c>=5&&(i+=t.N1+(c-5)),f=y,c=1),y=a.get(g,m),y===h?u++:(u>=5&&(i+=t.N1+(u-5)),h=y,u=1)}c>=5&&(i+=t.N1+(c-5)),u>=5&&(i+=t.N1+(u-5))}return i},e.getPenaltyN2=function(a){const s=a.size;let i=0;for(let c=0;c<s-1;c++)for(let u=0;u<s-1;u++){const f=a.get(c,u)+a.get(c,u+1)+a.get(c+1,u)+a.get(c+1,u+1);(f===4||f===0)&&i++}return i*t.N2},e.getPenaltyN3=function(a){const s=a.size;let i=0,c=0,u=0;for(let f=0;f<s;f++){c=u=0;for(let h=0;h<s;h++)c=c<<1&2047|a.get(f,h),h>=10&&(c===1488||c===93)&&i++,u=u<<1&2047|a.get(h,f),h>=10&&(u===1488||u===93)&&i++}return i*t.N3},e.getPenaltyN4=function(a){let s=0;const i=a.data.length;for(let u=0;u<i;u++)s+=a.data[u];return Math.abs(Math.ceil(s*100/i/5)-10)*t.N4};function n(r,a,s){switch(r){case e.Patterns.PATTERN000:return(a+s)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(a+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return a*s%2+a*s%3===0;case e.Patterns.PATTERN110:return(a*s%2+a*s%3)%2===0;case e.Patterns.PATTERN111:return(a*s%3+(a+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,s){const i=s.size;for(let c=0;c<i;c++)for(let u=0;u<i;u++)s.isReserved(u,c)||s.xor(u,c,n(a,u,c))},e.getBestMask=function(a,s){const i=Object.keys(e.Patterns).length;let c=0,u=1/0;for(let f=0;f<i;f++){s(f),e.applyMask(f,a);const h=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(f,a),h<u&&(u=h,c=f)}return c}})(WC)),WC}var Vg={},f7;function N$(){if(f7)return Vg;f7=1;const e=oI(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Vg.getBlocksCount=function(a,s){switch(s){case e.L:return t[(a-1)*4+0];case e.M:return t[(a-1)*4+1];case e.Q:return t[(a-1)*4+2];case e.H:return t[(a-1)*4+3];default:return}},Vg.getTotalCodewordsCount=function(a,s){switch(s){case e.L:return n[(a-1)*4+0];case e.M:return n[(a-1)*4+1];case e.Q:return n[(a-1)*4+2];case e.H:return n[(a-1)*4+3];default:return}},Vg}var GC={},ph={},h7;function M1e(){if(h7)return ph;h7=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let a=0;a<255;a++)e[a]=r,t[r]=a,r<<=1,r&256&&(r^=285);for(let a=255;a<512;a++)e[a]=e[a-255]})(),ph.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},ph.exp=function(r){return e[r]},ph.mul=function(r,a){return r===0||a===0?0:e[t[r]+t[a]]},ph}var p7;function P1e(){return p7||(p7=1,(function(e){const t=M1e();e.mul=function(r,a){const s=new Uint8Array(r.length+a.length-1);for(let i=0;i<r.length;i++)for(let c=0;c<a.length;c++)s[i+c]^=t.mul(r[i],a[c]);return s},e.mod=function(r,a){let s=new Uint8Array(r);for(;s.length-a.length>=0;){const i=s[0];for(let u=0;u<a.length;u++)s[u]^=t.mul(a[u],i);let c=0;for(;c<s.length&&s[c]===0;)c++;s=s.slice(c)}return s},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let s=0;s<r;s++)a=e.mul(a,new Uint8Array([1,t.exp(s)]));return a}})(GC)),GC}var KC,m7;function D1e(){if(m7)return KC;m7=1;const e=P1e();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(r.length+this.degree);a.set(r);const s=e.mod(a,this.genPoly),i=this.degree-s.length;if(i>0){const c=new Uint8Array(this.degree);return c.set(s,i),c}return s},KC=t,KC}var YC={},ZC={},XC={},g7;function M$(){return g7||(g7=1,XC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),XC}var Os={},v7;function P$(){if(v7)return Os;v7=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
210
|
+
]))+`;Os.KANJI=new RegExp(n,"g"),Os.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Os.BYTE=new RegExp(r,"g"),Os.NUMERIC=new RegExp(e,"g"),Os.ALPHANUMERIC=new RegExp(t,"g");const a=new RegExp("^"+n+"$"),s=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Os.testKanji=function(u){return a.test(u)},Os.testNumeric=function(u){return s.test(u)},Os.testAlphanumeric=function(u){return i.test(u)},Os}var y7;function Dc(){return y7||(y7=1,(function(e){const t=M$(),n=P$();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,i){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?s.ccBits[0]:i<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return n.testNumeric(s)?e.NUMERIC:n.testAlphanumeric(s)?e.ALPHANUMERIC:n.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(s,i){if(e.isValid(s))return s;try{return r(s)}catch{return i}}})(ZC)),ZC}var b7;function L1e(){return b7||(b7=1,(function(e){const t=Pc(),n=N$(),r=oI(),a=Dc(),s=M$(),i=7973,c=t.getBCHDigit(i);function u(g,y,w){for(let b=1;b<=40;b++)if(y<=e.getCapacity(b,w,g))return b}function f(g,y){return a.getCharCountIndicator(g,y)+4}function h(g,y){let w=0;return g.forEach(function(b){const x=f(b.mode,y);w+=x+b.getBitsLength()}),w}function m(g,y){for(let w=1;w<=40;w++)if(h(g,w)<=e.getCapacity(w,y,a.MIXED))return w}e.from=function(y,w){return s.isValid(y)?parseInt(y,10):w},e.getCapacity=function(y,w,b){if(!s.isValid(y))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=a.BYTE);const x=t.getSymbolTotalCodewords(y),E=n.getTotalCodewordsCount(y,w),k=(x-E)*8;if(b===a.MIXED)return k;const A=k-f(b,y);switch(b){case a.NUMERIC:return Math.floor(A/10*3);case a.ALPHANUMERIC:return Math.floor(A/11*2);case a.KANJI:return Math.floor(A/13);case a.BYTE:default:return Math.floor(A/8)}},e.getBestVersionForData=function(y,w){let b;const x=r.from(w,r.M);if(Array.isArray(y)){if(y.length>1)return m(y,x);if(y.length===0)return 1;b=y[0]}else b=y;return u(b.mode,b.getLength(),x)},e.getEncodedBits=function(y){if(!s.isValid(y)||y<7)throw new Error("Invalid QR Code version");let w=y<<12;for(;t.getBCHDigit(w)-c>=0;)w^=i<<t.getBCHDigit(w)-c;return y<<12|w}})(YC)),YC}var QC={},S7;function U1e(){if(S7)return QC;S7=1;const e=Pc(),t=1335,n=21522,r=e.getBCHDigit(t);return QC.getEncodedBits=function(s,i){const c=s.bit<<3|i;let u=c<<10;for(;e.getBCHDigit(u)-r>=0;)u^=t<<e.getBCHDigit(u)-r;return(c<<10|u)^n},QC}var JC={},eE,w7;function z1e(){if(w7)return eE;w7=1;const e=Dc();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let a,s,i;for(a=0;a+3<=this.data.length;a+=3)s=this.data.substr(a,3),i=parseInt(s,10),r.put(i,10);const c=this.data.length-a;c>0&&(s=this.data.substr(a),i=parseInt(s,10),r.put(i,c*3+1))},eE=t,eE}var tE,x7;function j1e(){if(x7)return tE;x7=1;const e=Dc(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(a){let s;for(s=0;s+2<=this.data.length;s+=2){let i=t.indexOf(this.data[s])*45;i+=t.indexOf(this.data[s+1]),a.put(i,11)}this.data.length%2&&a.put(t.indexOf(this.data[s]),6)},tE=n,tE}var nE,C7;function F1e(){return C7||(C7=1,nE=function(t){for(var n=[],r=t.length,a=0;a<r;a++){var s=t.charCodeAt(a);if(s>=55296&&s<=56319&&r>a+1){var i=t.charCodeAt(a+1);i>=56320&&i<=57343&&(s=(s-55296)*1024+i-56320+65536,a+=1)}if(s<128){n.push(s);continue}if(s<2048){n.push(s>>6|192),n.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128);continue}if(s>=65536&&s<=1114111){n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer}),nE}var rE,E7;function $1e(){if(E7)return rE;E7=1;const e=F1e(),t=Dc();function n(r){this.mode=t.BYTE,this.data=new Uint8Array(e(r))}return n.getBitsLength=function(a){return a*8},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){for(let a=0,s=this.data.length;a<s;a++)r.put(this.data[a],8)},rE=n,rE}var aE,_7;function B1e(){if(_7)return aE;_7=1;const e=Dc(),t=Pc();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(a){return a*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let a;for(a=0;a<this.data.length;a++){let s=t.toSJIS(this.data[a]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
|
|
211
|
+
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),r.put(s,13)}},aE=n,aE}var sE={exports:{}},k7;function H1e(){return k7||(k7=1,(function(e){var t={single_source_shortest_paths:function(n,r,a){var s={},i={};i[r]=0;var c=t.PriorityQueue.make();c.push(r,0);for(var u,f,h,m,g,y,w,b,x;!c.empty();){u=c.pop(),f=u.value,m=u.cost,g=n[f]||{};for(h in g)g.hasOwnProperty(h)&&(y=g[h],w=m+y,b=i[h],x=typeof i[h]>"u",(x||b>w)&&(i[h]=w,c.push(h,w),s[h]=f))}if(typeof a<"u"&&typeof i[a]>"u"){var E=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(E)}return s},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],s=r;s;)a.push(s),n[s],s=n[s];return a.reverse(),a},find_path:function(n,r,a){var s=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(s,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},s;n=n||{};for(s in r)r.hasOwnProperty(s)&&(a[s]=r[s]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(sE)),sE.exports}var A7;function q1e(){return A7||(A7=1,(function(e){const t=Dc(),n=z1e(),r=j1e(),a=$1e(),s=B1e(),i=P$(),c=Pc(),u=H1e();function f(E){return unescape(encodeURIComponent(E)).length}function h(E,k,A){const R=[];let P;for(;(P=E.exec(A))!==null;)R.push({data:P[0],index:P.index,mode:k,length:P[0].length});return R}function m(E){const k=h(i.NUMERIC,t.NUMERIC,E),A=h(i.ALPHANUMERIC,t.ALPHANUMERIC,E);let R,P;return c.isKanjiModeEnabled()?(R=h(i.BYTE,t.BYTE,E),P=h(i.KANJI,t.KANJI,E)):(R=h(i.BYTE_KANJI,t.BYTE,E),P=[]),k.concat(A,R,P).sort(function(T,M){return T.index-M.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function g(E,k){switch(k){case t.NUMERIC:return n.getBitsLength(E);case t.ALPHANUMERIC:return r.getBitsLength(E);case t.KANJI:return s.getBitsLength(E);case t.BYTE:return a.getBitsLength(E)}}function y(E){return E.reduce(function(k,A){const R=k.length-1>=0?k[k.length-1]:null;return R&&R.mode===A.mode?(k[k.length-1].data+=A.data,k):(k.push(A),k)},[])}function w(E){const k=[];for(let A=0;A<E.length;A++){const R=E[A];switch(R.mode){case t.NUMERIC:k.push([R,{data:R.data,mode:t.ALPHANUMERIC,length:R.length},{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.ALPHANUMERIC:k.push([R,{data:R.data,mode:t.BYTE,length:R.length}]);break;case t.KANJI:k.push([R,{data:R.data,mode:t.BYTE,length:f(R.data)}]);break;case t.BYTE:k.push([{data:R.data,mode:t.BYTE,length:f(R.data)}])}}return k}function b(E,k){const A={},R={start:{}};let P=["start"];for(let O=0;O<E.length;O++){const T=E[O],M=[];for(let z=0;z<T.length;z++){const q=T[z],U=""+O+z;M.push(U),A[U]={node:q,lastCount:0},R[U]={};for(let L=0;L<P.length;L++){const B=P[L];A[B]&&A[B].node.mode===q.mode?(R[B][U]=g(A[B].lastCount+q.length,q.mode)-g(A[B].lastCount,q.mode),A[B].lastCount+=q.length):(A[B]&&(A[B].lastCount=q.length),R[B][U]=g(q.length,q.mode)+4+t.getCharCountIndicator(q.mode,k))}}P=M}for(let O=0;O<P.length;O++)R[P[O]].end=0;return{map:R,table:A}}function x(E,k){let A;const R=t.getBestModeForData(E);if(A=t.from(k,R),A!==t.BYTE&&A.bit<R.bit)throw new Error('"'+E+'" cannot be encoded with mode '+t.toString(A)+`.
|
|
212
|
+
Suggested mode is: `+t.toString(R));switch(A===t.KANJI&&!c.isKanjiModeEnabled()&&(A=t.BYTE),A){case t.NUMERIC:return new n(E);case t.ALPHANUMERIC:return new r(E);case t.KANJI:return new s(E);case t.BYTE:return new a(E)}}e.fromArray=function(k){return k.reduce(function(A,R){return typeof R=="string"?A.push(x(R,null)):R.data&&A.push(x(R.data,R.mode)),A},[])},e.fromString=function(k,A){const R=m(k,c.isKanjiModeEnabled()),P=w(R),O=b(P,A),T=u.find_path(O.map,"start","end"),M=[];for(let z=1;z<T.length-1;z++)M.push(O.table[T[z]].node);return e.fromArray(y(M))},e.rawSplit=function(k){return e.fromArray(m(k,c.isKanjiModeEnabled()))}})(JC)),JC}var I7;function V1e(){if(I7)return FC;I7=1;const e=Pc(),t=oI(),n=I1e(),r=T1e(),a=R1e(),s=O1e(),i=N1e(),c=N$(),u=D1e(),f=L1e(),h=U1e(),m=Dc(),g=q1e();function y(O,T){const M=O.size,z=s.getPositions(T);for(let q=0;q<z.length;q++){const U=z[q][0],L=z[q][1];for(let B=-1;B<=7;B++)if(!(U+B<=-1||M<=U+B))for(let G=-1;G<=7;G++)L+G<=-1||M<=L+G||(B>=0&&B<=6&&(G===0||G===6)||G>=0&&G<=6&&(B===0||B===6)||B>=2&&B<=4&&G>=2&&G<=4?O.set(U+B,L+G,!0,!0):O.set(U+B,L+G,!1,!0))}}function w(O){const T=O.size;for(let M=8;M<T-8;M++){const z=M%2===0;O.set(M,6,z,!0),O.set(6,M,z,!0)}}function b(O,T){const M=a.getPositions(T);for(let z=0;z<M.length;z++){const q=M[z][0],U=M[z][1];for(let L=-2;L<=2;L++)for(let B=-2;B<=2;B++)L===-2||L===2||B===-2||B===2||L===0&&B===0?O.set(q+L,U+B,!0,!0):O.set(q+L,U+B,!1,!0)}}function x(O,T){const M=O.size,z=f.getEncodedBits(T);let q,U,L;for(let B=0;B<18;B++)q=Math.floor(B/3),U=B%3+M-8-3,L=(z>>B&1)===1,O.set(q,U,L,!0),O.set(U,q,L,!0)}function E(O,T,M){const z=O.size,q=h.getEncodedBits(T,M);let U,L;for(U=0;U<15;U++)L=(q>>U&1)===1,U<6?O.set(U,8,L,!0):U<8?O.set(U+1,8,L,!0):O.set(z-15+U,8,L,!0),U<8?O.set(8,z-U-1,L,!0):U<9?O.set(8,15-U-1+1,L,!0):O.set(8,15-U-1,L,!0);O.set(z-8,8,1,!0)}function k(O,T){const M=O.size;let z=-1,q=M-1,U=7,L=0;for(let B=M-1;B>0;B-=2)for(B===6&&B--;;){for(let G=0;G<2;G++)if(!O.isReserved(q,B-G)){let ie=!1;L<T.length&&(ie=(T[L]>>>U&1)===1),O.set(q,B-G,ie),U--,U===-1&&(L++,U=7)}if(q+=z,q<0||M<=q){q-=z,z=-z;break}}}function A(O,T,M){const z=new n;M.forEach(function(G){z.put(G.mode.bit,4),z.put(G.getLength(),m.getCharCountIndicator(G.mode,O)),G.write(z)});const q=e.getSymbolTotalCodewords(O),U=c.getTotalCodewordsCount(O,T),L=(q-U)*8;for(z.getLengthInBits()+4<=L&&z.put(0,4);z.getLengthInBits()%8!==0;)z.putBit(0);const B=(L-z.getLengthInBits())/8;for(let G=0;G<B;G++)z.put(G%2?17:236,8);return R(z,O,T)}function R(O,T,M){const z=e.getSymbolTotalCodewords(T),q=c.getTotalCodewordsCount(T,M),U=z-q,L=c.getBlocksCount(T,M),B=z%L,G=L-B,ie=Math.floor(z/L),$=Math.floor(U/L),X=$+1,re=ie-$,pe=new u(re);let _e=0;const j=new Array(L),Y=new Array(L);let Z=0;const Q=new Uint8Array(O.buffer);for(let ve=0;ve<L;ve++){const Le=ve<G?$:X;j[ve]=Q.slice(_e,_e+Le),Y[ve]=pe.encode(j[ve]),_e+=Le,Z=Math.max(Z,Le)}const se=new Uint8Array(z);let le=0,me,te;for(me=0;me<Z;me++)for(te=0;te<L;te++)me<j[te].length&&(se[le++]=j[te][me]);for(me=0;me<re;me++)for(te=0;te<L;te++)se[le++]=Y[te][me];return se}function P(O,T,M,z){let q;if(Array.isArray(O))q=g.fromArray(O);else if(typeof O=="string"){let ie=T;if(!ie){const $=g.rawSplit(O);ie=f.getBestVersionForData($,M)}q=g.fromString(O,ie||40)}else throw new Error("Invalid data");const U=f.getBestVersionForData(q,M);if(!U)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=U;else if(T<U)throw new Error(`
|
|
213
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
214
|
+
Minimum version required to store current data is: `+U+`.
|
|
215
|
+
`);const L=A(T,M,q),B=e.getSymbolSize(T),G=new r(B);return y(G,T),w(G),b(G,T),E(G,M,0),T>=7&&x(G,T),k(G,L),isNaN(z)&&(z=i.getBestMask(G,E.bind(null,G,M))),i.applyMask(z,G),E(G,M,z),{modules:G,version:T,errorCorrectionLevel:M,maskPattern:z,segments:q}}return FC.create=function(T,M){if(typeof T>"u"||T==="")throw new Error("No input text");let z=t.M,q,U;return typeof M<"u"&&(z=t.from(M.errorCorrectionLevel,t.M),q=f.from(M.version),U=i.from(M.maskPattern),M.toSJISFunc&&e.setToSJISFunction(M.toSJISFunc)),P(T,q,z,U)},FC}var oE={},iE={},T7;function D$(){return T7||(T7=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(s){return[s,s]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,s=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:s,scale:s?4:i,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const s=e.getScale(r,a);return Math.floor((r+a.margin*2)*s)},e.qrToImageData=function(r,a,s){const i=a.modules.size,c=a.modules.data,u=e.getScale(i,s),f=Math.floor((i+s.margin*2)*u),h=s.margin*u,m=[s.color.light,s.color.dark];for(let g=0;g<f;g++)for(let y=0;y<f;y++){let w=(g*f+y)*4,b=s.color.light;if(g>=h&&y>=h&&g<f-h&&y<f-h){const x=Math.floor((g-h)/u),E=Math.floor((y-h)/u);b=m[c[x*i+E]?1:0]}r[w++]=b.r,r[w++]=b.g,r[w++]=b.b,r[w]=b.a}}})(iE)),iE}var R7;function W1e(){return R7||(R7=1,(function(e){const t=D$();function n(a,s,i){a.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=i,s.width=i,s.style.height=i+"px",s.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(s,i,c){let u=c,f=i;typeof u>"u"&&(!i||!i.getContext)&&(u=i,i=void 0),i||(f=r()),u=t.getOptions(u);const h=t.getImageWidth(s.modules.size,u),m=f.getContext("2d"),g=m.createImageData(h,h);return t.qrToImageData(g.data,s,u),n(m,f,h),m.putImageData(g,0,0),f},e.renderToDataURL=function(s,i,c){let u=c;typeof u>"u"&&(!i||!i.getContext)&&(u=i,i=void 0),u||(u={});const f=e.render(s,i,u),h=u.type||"image/png",m=u.rendererOpts||{};return f.toDataURL(h,m.quality)}})(oE)),oE}var lE={},O7;function G1e(){if(O7)return lE;O7=1;const e=D$();function t(a,s){const i=a.a/255,c=s+'="'+a.hex+'"';return i<1?c+" "+s+'-opacity="'+i.toFixed(2).slice(1)+'"':c}function n(a,s,i){let c=a+s;return typeof i<"u"&&(c+=" "+i),c}function r(a,s,i){let c="",u=0,f=!1,h=0;for(let m=0;m<a.length;m++){const g=Math.floor(m%s),y=Math.floor(m/s);!g&&!f&&(f=!0),a[m]?(h++,m>0&&g>0&&a[m-1]||(c+=f?n("M",g+i,.5+y+i):n("m",u,0),u=0,f=!1),g+1<s&&a[m+1]||(c+=n("h",h),h=0)):u++}return c}return lE.render=function(s,i,c){const u=e.getOptions(i),f=s.modules.size,h=s.modules.data,m=f+u.margin*2,g=u.color.light.a?"<path "+t(u.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",y="<path "+t(u.color.dark,"stroke")+' d="'+r(h,f,u.margin)+'"/>',w='viewBox="0 0 '+m+" "+m+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+w+' shape-rendering="crispEdges">'+g+y+`</svg>
|
|
216
|
+
`;return typeof c=="function"&&c(null,x),x},lE}var N7;function K1e(){if(N7)return Pu;N7=1;const e=A1e(),t=V1e(),n=W1e(),r=G1e();function a(s,i,c,u,f){const h=[].slice.call(arguments,1),m=h.length,g=typeof h[m-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(m<2)throw new Error("Too few arguments provided");m===2?(f=c,c=i,i=u=void 0):m===3&&(i.getContext&&typeof f>"u"?(f=u,u=void 0):(f=u,u=c,c=i,i=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(c=i,i=u=void 0):m===2&&!i.getContext&&(u=c,c=i,i=void 0),new Promise(function(y,w){try{const b=t.create(c,u);y(s(b,i,u))}catch(b){w(b)}})}try{const y=t.create(c,u);f(null,s(y,i,u))}catch(y){f(y)}}return Pu.create=t.create,Pu.toCanvas=a.bind(null,n.render),Pu.toDataURL=a.bind(null,n.renderToDataURL),Pu.toString=a.bind(null,function(s,i,c){return r.render(s,c)}),Pu}var Y1e=K1e();const Z1e=Fd(Y1e),X1e=e=>e==="signIn"||e==="signUp",iI=e=>!!e&&(e==="EMAIL_OTP"||e==="SMS_MFA"),{getConfirmText:Q1e,getConfirmingText:J1e,getBackToSignInText:eve,getResendCodeText:tve}=Vn,vy=()=>{const{isPending:e,toSignIn:t,challengeName:n,resendCode:r,selectedAuthMethod:a,availableAuthMethods:s}=Et(u=>[u.isPending,u.toSignIn,u.challengeName,u.resendCode,u.selectedAuthMethod,u.availableAuthMethods]),i=!!a&&a!=="PASSWORD"||!!s?.some(u=>u!=="PASSWORD"),c=iI(n)&&i&&r;return F.createElement(Ve,{direction:"column"},F.createElement(cn,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:J1e()},Q1e()),c&&F.createElement(cn,{onClick:r,type:"button"},tve()),F.createElement(cn,{onClick:t,type:"button",variation:"link",size:"small"},eve()))},nve=new hr("SetupTotp-logger"),{getSetupTotpText:rve,getCopiedText:ave,getLoadingText:sve}=Vn,ll=({className:e,variation:t})=>{const{totpSecretCode:n,isPending:r,username:a,QRFields:s}=Et(R=>[R.isPending,R.totpSecretCode,R.username]),{handleChange:i,handleSubmit:c}=Ea(),{components:{SetupTotp:{Header:u=ll.Header,Footer:f=ll.Footer}}}=Ca(),[h,m]=_.useState(!0),[g,y]=_.useState(),[w,b]=_.useState("COPY"),{totpIssuer:x="AWSCognito",totpUsername:E=a}=s??{},k=_.useCallback(async()=>{try{const R=Yde(x,E,n),P=await Z1e.toDataURL(R);y(P)}catch(R){nve.error(R)}finally{m(!1)}},[x,E,n]);_.useEffect(()=>{g||k()},[k,g]);const A=()=>{navigator.clipboard.writeText(n),b(ave())};return _.createElement(ra,{className:e,variation:t},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:i,onSubmit:c},_.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:r},_.createElement(u,null),_.createElement(Ve,{direction:"column"},h?_.createElement("p",null,sve(),"…"):_.createElement("img",{"data-amplify-qrcode":!0,src:g,alt:"qr code",width:"228",height:"228"}),_.createElement(Ve,{"data-amplify-copy":!0},_.createElement("div",null,n),_.createElement(Ve,{"data-amplify-copy-svg":!0,onClick:A},_.createElement("div",{"data-amplify-copy-tooltip":!0},w),_.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),_.createElement(Zs,null),_.createElement(aa,null)),_.createElement(vy,null),_.createElement(f,null))))};ll.Header=function(){return _.createElement(Ur,{level:3},rve())};ll.Footer=function(){return null};const{getSubmitText:ove,getSubmittingText:ive}=Vn,yy=e=>{const{cancelButtonSendType:t,cancelButtonText:n,submitButtonText:r}=e,{isPending:a,resendCode:s,skipVerification:i,toSignIn:c}=Et(m=>[m.isPending]),u=()=>{switch(t){case"SKIP":i();break;case"RESEND":s();break;case"SIGN_IN":c();break;default:return}},f=a?F.createElement(F.Fragment,null,ive(),"…"):F.createElement(F.Fragment,null,ove()),h=r??f;return F.createElement(Ve,{direction:"column"},F.createElement(cn,{variation:"primary",isDisabled:a,type:"submit"},h),F.createElement(Ve,{direction:"column",alignItems:"center"},F.createElement(cn,{onClick:u,type:"button",variation:"link",size:"small"},n)))},lve=()=>F.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),cve=()=>F.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},F.createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),F.createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),F.createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),F.createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),uve=()=>F.createElement(m$,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),dve=()=>F.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},F.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),Wg=e=>{const{icon:t,provider:n,text:r}=e,{toFederatedSignIn:a}=Et(),s=c=>{c.preventDefault(),a({provider:n})};let i;return t==="facebook"?i=F.createElement(uve,null):t==="google"?i=F.createElement(cve,null):t==="amazon"?i=F.createElement(dve,null):t==="apple"&&(i=F.createElement(lve,null)),F.createElement(cn,{onClick:s,className:"federated-sign-in-button",gap:"1rem"},i,F.createElement(Fa,{as:"span"},r))},{getSignInWithFederationText:Gg,getOrText:fve}=Vn;function L$(){const{route:e,socialProviders:t}=Et(({route:n,socialProviders:r})=>[n,r]);return t.length===0?null:F.createElement(Ve,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map(n=>{switch(n){case"amazon":return F.createElement(Wg,{icon:"amazon",key:n,provider:td.Amazon,text:Gg(e,n)});case"apple":return F.createElement(Wg,{icon:"apple",key:n,provider:td.Apple,text:Gg(e,n)});case"facebook":return F.createElement(Wg,{icon:"facebook",key:n,provider:td.Facebook,text:Gg(e,n)});case"google":return F.createElement(Wg,{icon:"google",key:n,provider:td.Google,text:Gg(e,n)});default:console.error(`Authenticator does not support ${n}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}}),F.createElement(QA,{size:"small",label:fve()}))}const{getSignInText:Kg,getSigningInText:hve,getForgotPasswordText:pve,getSignInWithEmailText:mve,getSignInWithSmsText:gve,getSignInWithPasskeyText:vve,getOtherSignInOptionsText:yve,getEnterUsernameFirstText:bve}=Vn;function Wo(){const{isPending:e,availableAuthMethods:t,preferredChallenge:n,toShowAuthMethods:r}=Et(E=>[E.isPending,E.availableAuthMethods,E.preferredChallenge,E.toShowAuthMethods]),{handleChange:a,handleSubmit:s}=Ea(),[i,c]=F.useState(""),{components:{SignIn:{Header:u=Wo.Header,Footer:f=Wo.Footer}}}=Ca(),m=t&&t.length>1&&n,g=i.trim().length>0,y=F.useCallback(E=>{const{name:k,value:A}=E.target;k==="username"&&typeof A=="string"&&c(A),a(E)},[a]),w=()=>{if(!n)return Kg();switch(n){case"EMAIL_OTP":return mve();case"SMS_OTP":return gve();case"WEB_AUTHN":return vve();default:return Kg()}},b=E=>{E.preventDefault(),s(E)},x=E=>{E.preventDefault(),r()};return F.createElement(Ye,null,F.createElement(u,null),F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:m?b:s,onChange:y},F.createElement(L$,null),F.createElement(Ve,{direction:"column"},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:e},F.createElement(my,null,F.createElement("legend",null,Kg())),F.createElement(Zs,null)),F.createElement(aa,null),F.createElement(cn,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:hve()},m?w():Kg()),m&&F.createElement(cn,{onClick:x,size:"small",variation:"link",isDisabled:e||!g,title:g?void 0:bve()},yve()),F.createElement(f,null))))}const Sve=()=>{const{toForgotPassword:e}=Et(t=>[t.toForgotPassword]);return F.createElement(Ye,{"data-amplify-footer":""},F.createElement(cn,{onClick:e,size:"small",variation:"link"},pve()))};Wo.Footer=Sve;Wo.Header=function(){return null};const{getCreateAccountText:M7,getCreatingAccountText:wve,getCreateAccountWithEmailText:xve,getCreateAccountWithPasswordText:Cve,getCreateAccountWithSmsText:Eve,getOrText:_ve}=Vn;function ds(){const{hasValidationErrors:e,isPending:t,availableAuthMethods:n,preferredChallenge:r,selectedAuthMethod:a}=Et(A=>[A.hasValidationErrors,A.isPending,A.availableAuthMethods,A.preferredChallenge,A.selectedAuthMethod]),{handleChange:s,handleBlur:i,handleSubmit:c}=Ea(),{components:{SignUp:{Header:u=ds.Header,FormFields:f=ds.FormFields,Footer:h=ds.Footer}}}=Ca(),m=n?.filter(A=>A!=="WEB_AUTHN"),g=m&&m.length>1,y=r&&r!=="WEB_AUTHN"?r:"PASSWORD",w=m?.filter(A=>A!==y)??[],x=(a??y)!=="PASSWORD",E=A=>{switch(A){case"EMAIL_OTP":return xve();case"SMS_OTP":return Eve();case"PASSWORD":return g?Cve():M7();default:return M7()}},k=A=>R=>{R.preventDefault();const P=R.target.closest("form");if(P){if(!P.__authMethod){const O=document.createElement("input");O.name="__authMethod",P.appendChild(O)}P.__authMethod.type="hidden",P.__authMethod.value=A,P.requestSubmit()}};return F.createElement(Ye,null,F.createElement(u,null),F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:s,onSubmit:c,onBlur:i},F.createElement(L$,null),F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:t},F.createElement(Ve,{direction:"column"},F.createElement(f,{includePassword:!x}),F.createElement(aa,null)),F.createElement(cn,{isDisabled:(!g||w.length==0)&&e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:wve(),onClick:k(y)},E(y)),g&&w.length>0&&F.createElement(F.Fragment,null,F.createElement(Ve,{justifyContent:"center",padding:"medium 0"},_ve()),w.map(A=>F.createElement(cn,{key:A,isDisabled:t,isFullWidth:!0,type:"button",variation:"primary",onClick:k(A)},E(A)))),F.createElement(h,null))))}ds.Header=function(){return null};ds.FormFields=function(){return F.createElement(Zs,null)};ds.Footer=function(){return null};const{getSignInTabText:kve,getSignUpTabText:Ave}=Vn,Ive=({className:e,hideSignUp:t,variation:n})=>{const{route:r,toSignIn:a,toSignUp:s}=Et(i=>[i.route,i.toSignIn,i.toSignUp]);return F.createElement(ra,{className:e,variation:n},t?F.createElement(Ye,{"data-amplify-router-content":""},r==="signIn"&&F.createElement(Wo,null)):F.createElement(Vl.Container,{value:r,isLazy:!0,onValueChange:i=>{i!==r&&(i==="signIn"?a():s())}},F.createElement(Vl.List,{spacing:"equal",indicatorPosition:"top"},F.createElement(Vl.Item,{value:"signIn"},kve()),F.createElement(Vl.Item,{value:"signUp"},Ave())),F.createElement(Vl.Panel,{value:"signIn","data-amplify-router-content":""},F.createElement(Wo,null)),F.createElement(Vl.Panel,{value:"signUp","data-amplify-router-content":""},F.createElement(ds,null))))},{getAccountRecoveryInfoText:Tve,getSkipText:Rve}=Vn,yc=({className:e,variation:t})=>{const{isPending:n}=Et(c=>[c.isPending]),{handleChange:r,handleSubmit:a}=Ea(),{components:{ConfirmVerifyUser:{Header:s=yc.Header,Footer:i=yc.Footer}}}=Ca();return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:r,onSubmit:a},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(Ve,{direction:"column"},F.createElement(Zs,null)),F.createElement(aa,null),F.createElement(yy,{cancelButtonText:Rve(),cancelButtonSendType:"SKIP"}),F.createElement(i,null))))};yc.Header=function(){return F.createElement(Ur,{level:3},Tve())};yc.Footer=function(){return null};const{getSkipText:Ove,getVerifyText:Nve,getVerifyContactText:Mve,getAccountRecoveryInfoText:Pve}=Vn,Dve=e=>Object.entries(e).map(([t,n],r)=>{const a=ay[t].label;return F.createElement(eI,{name:"unverifiedAttr",value:t,key:t,defaultChecked:r===0},Se(a),":"," ",Gde(a,n))}),bc=({className:e,variation:t})=>{const{components:{VerifyUser:{Header:n=bc.Header,Footer:r=bc.Footer}}}=Ca(),{isPending:a,unverifiedUserAttributes:s}=Et(({isPending:h,unverifiedUserAttributes:m})=>[h,m]),{handleChange:i,handleSubmit:c}=Ea(),u=a?F.createElement(F.Fragment,null,"Verifying…"):F.createElement(F.Fragment,null,Nve()),f=F.createElement(tI,{legend:Mve(),name:"verify_context",isDisabled:a,legendHidden:!0},Dve(s));return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:i,onSubmit:c},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:a},F.createElement(n,null),f,F.createElement(aa,null),F.createElement(yy,{cancelButtonText:Ove(),cancelButtonSendType:"SKIP",submitButtonText:u}),F.createElement(r,null))))};bc.Header=function(){return F.createElement(Ur,{level:3},Pve())};bc.Footer=function(){return null};const{getChallengeText:Lve,getDeliveryMessageText:Uve,getDeliveryMethodText:zve}=Vn,Sc=({className:e,variation:t})=>{const{isPending:n,challengeName:r,codeDeliveryDetails:a}=Et(h=>[h.isPending,h.challengeName,h.codeDeliveryDetails]),{handleChange:s,handleSubmit:i}=Ea(),{components:{ConfirmSignIn:{Header:c=Sc.Header,Footer:u=Sc.Footer}}}=Ca(),f=iI(r)&&a;return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:s,onSubmit:i},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(c,null),F.createElement(Ve,{direction:"column"},f&&F.createElement(Fa,{className:"amplify-authenticator__subtitle"},Uve(a)),F.createElement(Zs,null),F.createElement(aa,null)),F.createElement(vy,null),F.createElement(u,null))))};function jve(){const{challengeName:e,codeDeliveryDetails:t}=Et(({challengeName:r,codeDeliveryDetails:a})=>[r,a]),n=iI(e)&&t;return F.createElement(F.Fragment,null,F.createElement(Ur,{level:3},Lve(e)),n&&F.createElement(Ur,{level:5},zve(t)))}Sc.Header=jve;Sc.Footer=function(){return null};const{getResendCodeText:Fve,getResetYourPasswordText:$ve}=Vn,wc=({className:e,variation:t})=>{const{isPending:n}=Et(u=>[u.isPending]),{handleBlur:r,handleChange:a,handleSubmit:s}=Ea(),{components:{ConfirmResetPassword:{Header:i=wc.Header,Footer:c=wc.Footer}}}=Ca();return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:s,onChange:a,onBlur:r},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(i,null),F.createElement(Ve,{direction:"column"},F.createElement(Zs,null)),F.createElement(aa,null),F.createElement(yy,{cancelButtonSendType:"RESEND",cancelButtonText:Fve()}),F.createElement(c,null))))};wc.Header=function(){const t=$ve();return F.createElement(Ur,{level:3},t)};wc.Footer=function(){return null};const{getBackToSignInText:Bve,getSendingText:Hve,getSendCodeText:qve,getResetYourPasswordText:Vve}=Vn,cl=({className:e,variation:t})=>{const{isPending:n}=Et(c=>[c.isPending]),{handleChange:r,handleSubmit:a}=Ea(),{components:{ForgotPassword:{Header:s=cl.Header,Footer:i=cl.Footer}}}=Ca();return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:r,onSubmit:a},F.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},F.createElement(s,null),F.createElement(Ve,{direction:"column"},F.createElement(Zs,null)),F.createElement(aa,null),F.createElement(yy,{cancelButtonText:Bve(),cancelButtonSendType:"SIGN_IN",submitButtonText:n?F.createElement(F.Fragment,null,Hve(),"…"):F.createElement(F.Fragment,null,qve())}),F.createElement(i,null))))};cl.Header=function(){return F.createElement(Ur,{level:3},Vve())};cl.Footer=function(){return null};const{getMfaTypeLabelByValue:Wve,getSelectMfaTypeByChallengeName:Gve,getSelectMfaTypeText:Kve}=Vn,ul=({className:e,variation:t})=>{const{isPending:n,allowedMfaTypes:r=[]}=Et(u=>[u.isPending,u.allowedMfaTypes]),{handleChange:a,handleSubmit:s}=Ea(),{components:{SelectMfaType:{Header:i=ul.Header,Footer:c=ul.Footer}}}=Ca();return _.createElement(ra,{className:e,variation:t},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-select-mfa-type":"",method:"post",onChange:a,onSubmit:s},_.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},_.createElement(i,null),_.createElement(Ve,{direction:"column"},_.createElement(tI,{name:"mfa_type",legend:Kve(),legendHidden:!0,isDisabled:n,isRequired:!0},r.map((u,f)=>_.createElement(eI,{name:"mfa_type",key:u,value:u,defaultChecked:f===0},Wve(u)))),_.createElement(aa,null)),_.createElement(vy,null),_.createElement(c,null))))};ul.Header=function(){const{challengeName:t}=Et(n=>[n.challengeName]);return _.createElement(Ur,{level:3},Gve(t))};ul.Footer=function(){return null};const{getSetupEmailText:Yve}=Vn,dl=({className:e,variation:t})=>{const{isPending:n}=Et(c=>[c.isPending]),{handleChange:r,handleSubmit:a}=Ea(),{components:{SetupEmail:{Header:s=dl.Header,Footer:i=dl.Footer}}}=Ca();return _.createElement(ra,{className:e,variation:t},_.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-email":"",method:"post",onChange:r,onSubmit:a},_.createElement(Ve,{as:"fieldset",direction:"column",isDisabled:n},_.createElement(s,null),_.createElement(Ve,{direction:"column"},_.createElement(Zs,null),_.createElement(aa,null)),_.createElement(vy,null),_.createElement(i,null))))};dl.Header=function(){return _.createElement(Ur,{level:3},Yve())};dl.Footer=function(){return null};const{getSignInWithPasswordText:Z3,getSignInWithEmailText:Zve,getSignInWithSmsText:Xve,getSignInWithPasskeyText:Qve,getSigningInText:Jve,getBackToSignInText:eye,getOrText:tye,getUsernameLabelByLoginMechanism:nye}=Vn,rye=e=>{switch(e){case"EMAIL_OTP":return Zve();case"SMS_OTP":return Xve();case"WEB_AUTHN":return Qve();case"PASSWORD":return Z3();default:return Z3()}},aye=({className:e,variation:t})=>{const{isPending:n,username:r,availableAuthMethods:a,toSignIn:s,selectAuthMethod:i,loginMechanism:c}=Et(b=>[b.isPending,b.username,b.availableAuthMethods,b.toSignIn,b.selectAuthMethod,b.loginMechanism]),{handleChange:u,handleSubmit:f}=Ea(),h=a??[],m=h.includes("PASSWORD"),g=h.filter(b=>b!=="PASSWORD"),y=b=>{i({method:b})},w=nye(c);return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":!0,"data-amplify-authenticator-signinselect":!0,method:"post",onSubmit:f,onChange:u},F.createElement(Ve,{direction:"column"},F.createElement(Jp,{label:w,name:"username",value:r,isReadOnly:!0,isDisabled:!0}),m&&F.createElement(F.Fragment,null,F.createElement(JA,{label:"Password",name:"password",autoComplete:"current-password",isDisabled:n}),F.createElement(cn,{isDisabled:n,type:"submit",variation:"primary",isFullWidth:!0,isLoading:n,loadingText:Jve()},Z3())),m&&g.length>0&&F.createElement(QA,{label:tye()}),g.length>0&&F.createElement(Ve,{direction:"column",gap:"0.5rem"},g.map(b=>F.createElement(cn,{key:b,variation:"primary",isFullWidth:!0,isDisabled:n,onClick:()=>y(b)},rye(b)))),F.createElement(aa,null),F.createElement(cn,{onClick:s,size:"small",variation:"link",isDisabled:n},eye()))))},sye=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("path",{d:"M22.9333 38.9333L41.7333 20.1333L38 16.4L22.9333 31.4667L15.3333 23.8667L11.6 27.6L22.9333 38.9333ZM26.6667 53.3333C22.9778 53.3333 19.5111 52.6333 16.2667 51.2333C13.0222 49.8333 10.2 47.9333 7.8 45.5333C5.4 43.1333 3.5 40.3111 2.1 37.0667C0.7 33.8222 0 30.3556 0 26.6667C0 22.9778 0.7 19.5111 2.1 16.2667C3.5 13.0222 5.4 10.2 7.8 7.8C10.2 5.4 13.0222 3.5 16.2667 2.1C19.5111 0.7 22.9778 0 26.6667 0C30.3556 0 33.8222 0.7 37.0667 2.1C40.3111 3.5 43.1333 5.4 45.5333 7.8C47.9333 10.2 49.8333 13.0222 51.2333 16.2667C52.6333 19.5111 53.3333 22.9778 53.3333 26.6667C53.3333 30.3556 52.6333 33.8222 51.2333 37.0667C49.8333 40.3111 47.9333 43.1333 45.5333 45.5333C43.1333 47.9333 40.3111 49.8333 37.0667 51.2333C33.8222 52.6333 30.3556 53.3333 26.6667 53.3333Z",fill:"currentColor"})))},oye=e=>{const{className:t,...n}=e;return _.createElement(Ye,{as:"span",width:"1em",height:"1em",className:We(he.Icon,t),...n},_.createElement("svg",{width:"195",height:"128",viewBox:"0 0 195 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.createElement("circle",{cx:"60",cy:"36",r:"31",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M60 69C84.4313 69 105.396 83.8504 114.357 105.021C116.774 110.729 115.382 116.168 111.798 120.23C108.191 124.319 102.358 127 96 127H24C17.6416 127 11.8094 124.319 8.20215 120.23C4.61836 116.168 3.22626 110.729 5.64258 105.021C14.6036 83.8504 35.5687 69 60 69Z",stroke:"#00404D",strokeWidth:"2"}),_.createElement("circle",{cx:"122",cy:"26",r:"25",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),_.createElement("mask",{id:"path-4-inside-1_4178_10171",fill:"white"},_.createElement("path",{d:"M121.951 13.927C124.887 13.927 127.658 14.5348 130.262 15.7503C132.866 16.9658 135.04 18.7222 136.786 21.0197C136.98 21.2601 137.042 21.4738 136.973 21.6608C136.903 21.8478 136.786 22.0081 136.619 22.1417C136.453 22.2753 136.259 22.3354 136.038 22.322C135.816 22.3086 135.622 22.1951 135.456 21.9814C133.932 19.8977 131.972 18.3015 129.576 17.1928C127.18 16.0842 124.638 15.5299 121.951 15.5299C119.264 15.5299 116.743 16.0842 114.388 17.1928C112.034 18.3015 110.081 19.8977 108.529 21.9814C108.363 22.2218 108.169 22.3554 107.947 22.3821C107.726 22.4088 107.532 22.3554 107.366 22.2218C107.172 22.0883 107.054 21.9213 107.012 21.7209C106.971 21.5206 107.033 21.3135 107.199 21.0998C108.917 18.8291 111.071 17.066 113.661 15.8104C116.251 14.5548 119.015 13.927 121.951 13.927ZM121.951 17.6937C125.691 17.6937 128.904 18.8959 131.591 21.3002C134.279 23.7045 135.622 26.6831 135.622 30.2361C135.622 31.5719 135.13 32.6872 134.147 33.5821C133.164 34.477 131.965 34.9245 130.553 34.9245C129.14 34.9245 127.928 34.477 126.917 33.5821C125.906 32.6872 125.4 31.5719 125.4 30.2361C125.4 29.3546 125.061 28.6132 124.382 28.0122C123.703 27.4111 122.893 27.1106 121.951 27.1106C121.009 27.1106 120.199 27.4111 119.52 28.0122C118.841 28.6132 118.502 29.3546 118.502 30.2361C118.502 32.8274 119.299 34.9913 120.891 36.7277C122.484 38.4642 124.541 39.6797 127.062 40.3742C127.311 40.4544 127.478 40.588 127.561 40.775C127.644 40.962 127.658 41.1623 127.602 41.376C127.547 41.563 127.436 41.7233 127.27 41.8569C127.104 41.9905 126.896 42.0305 126.647 41.9771C123.766 41.2825 121.411 39.9001 119.582 37.8297C117.754 35.7593 116.84 33.2281 116.84 30.2361C116.84 28.9004 117.339 27.7784 118.336 26.8701C119.333 25.9618 120.538 25.5077 121.951 25.5077C123.364 25.5077 124.569 25.9618 125.566 26.8701C126.563 27.7784 127.062 28.9004 127.062 30.2361C127.062 31.1177 127.408 31.859 128.101 32.4601C128.794 33.0612 129.611 33.3617 130.553 33.3617C131.495 33.3617 132.298 33.0612 132.963 32.4601C133.628 31.859 133.96 31.1177 133.96 30.2361C133.96 27.1373 132.783 24.5326 130.428 22.4222C128.073 20.3117 125.261 19.2565 121.993 19.2565C118.724 19.2565 115.912 20.3117 113.557 22.4222C111.202 24.5326 110.025 27.1239 110.025 30.1961C110.025 30.8372 110.087 31.6386 110.212 32.6004C110.337 33.5621 110.635 34.6841 111.106 35.9664C111.189 36.2068 111.182 36.4205 111.085 36.6075C110.988 36.7945 110.828 36.9281 110.607 37.0082C110.385 37.0884 110.171 37.0817 109.963 36.9882C109.755 36.8947 109.61 36.7411 109.526 36.5274C109.111 35.4855 108.813 34.4503 108.633 33.4218C108.453 32.3933 108.363 31.3314 108.363 30.2361C108.363 26.6831 109.7 23.7045 112.373 21.3002C115.046 18.8959 118.239 17.6937 121.951 17.6937ZM121.951 10C123.724 10 125.455 10.207 127.145 10.6211C128.835 11.0352 130.47 11.6296 132.049 12.4043C132.298 12.5379 132.443 12.6982 132.485 12.8852C132.526 13.0722 132.506 13.2592 132.423 13.4462C132.339 13.6332 132.201 13.7801 132.007 13.8869C131.813 13.9938 131.578 13.9804 131.301 13.8469C129.832 13.1256 128.316 12.5713 126.75 12.1839C125.185 11.7965 123.585 11.6029 121.951 11.6029C120.344 11.6029 118.765 11.7832 117.214 12.1438C115.663 12.5045 114.18 13.0722 112.768 13.8469C112.546 13.9804 112.324 14.0138 112.103 13.947C111.881 13.8803 111.715 13.74 111.604 13.5263C111.493 13.3126 111.466 13.1189 111.521 12.9453C111.576 12.7716 111.715 12.618 111.937 12.4844C113.488 11.683 115.109 11.0686 116.798 10.6411C118.488 10.2137 120.206 10 121.951 10ZM121.951 21.5807C124.527 21.5807 126.744 22.4155 128.6 24.0852C130.456 25.7548 131.384 27.8051 131.384 30.2361C131.384 30.4766 131.308 30.6702 131.155 30.8172C131.003 30.9641 130.802 31.0376 130.553 31.0376C130.331 31.0376 130.137 30.9641 129.971 30.8172C129.805 30.6702 129.722 30.4766 129.722 30.2361C129.722 28.2326 128.953 26.5562 127.415 25.2072C125.878 23.8581 124.056 23.1835 121.951 23.1835C119.846 23.1835 118.038 23.8581 116.528 25.2072C115.018 26.5562 114.264 28.2326 114.264 30.2361C114.264 32.4 114.651 34.2366 115.427 35.746C116.203 37.2553 117.339 38.7714 118.834 40.2941C119.001 40.4544 119.084 40.6414 119.084 40.8551C119.084 41.0688 119.001 41.2558 118.834 41.4161C118.668 41.5764 118.474 41.6565 118.253 41.6565C118.031 41.6565 117.837 41.5764 117.671 41.4161C116.037 39.7598 114.783 38.0701 113.91 36.347C113.038 34.624 112.601 32.587 112.601 30.2361C112.601 27.8051 113.516 25.7548 115.344 24.0852C117.172 22.4155 119.375 21.5807 121.951 21.5807ZM121.909 29.4347C122.159 29.4347 122.36 29.5148 122.512 29.6751C122.664 29.8354 122.741 30.0224 122.741 30.2361C122.741 32.2397 123.488 33.8826 124.984 35.1649C126.48 36.4472 128.226 37.0884 130.22 37.0884C130.386 37.0884 130.622 37.075 130.927 37.0483C131.231 37.0216 131.55 36.9815 131.882 36.9281C132.132 36.8747 132.346 36.9081 132.526 37.0283C132.706 37.1485 132.824 37.3288 132.88 37.5692C132.935 37.7829 132.893 37.9699 132.755 38.1302C132.616 38.2905 132.436 38.3974 132.215 38.4508C131.716 38.5844 131.28 38.6578 130.906 38.6712C130.532 38.6846 130.303 38.6912 130.22 38.6912C127.755 38.6912 125.615 37.8898 123.8 36.2869C121.986 34.6841 121.078 32.6671 121.078 30.2361C121.078 30.0224 121.155 29.8354 121.307 29.6751C121.459 29.5148 121.66 29.4347 121.909 29.4347Z"})),_.createElement("path",{d:"M121.951 13.927C124.887 13.927 127.658 14.5348 130.262 15.7503C132.866 16.9658 135.04 18.7222 136.786 21.0197C136.98 21.2601 137.042 21.4738 136.973 21.6608C136.903 21.8478 136.786 22.0081 136.619 22.1417C136.453 22.2753 136.259 22.3354 136.038 22.322C135.816 22.3086 135.622 22.1951 135.456 21.9814C133.932 19.8977 131.972 18.3015 129.576 17.1928C127.18 16.0842 124.638 15.5299 121.951 15.5299C119.264 15.5299 116.743 16.0842 114.388 17.1928C112.034 18.3015 110.081 19.8977 108.529 21.9814C108.363 22.2218 108.169 22.3554 107.947 22.3821C107.726 22.4088 107.532 22.3554 107.366 22.2218C107.172 22.0883 107.054 21.9213 107.012 21.7209C106.971 21.5206 107.033 21.3135 107.199 21.0998C108.917 18.8291 111.071 17.066 113.661 15.8104C116.251 14.5548 119.015 13.927 121.951 13.927ZM121.951 17.6937C125.691 17.6937 128.904 18.8959 131.591 21.3002C134.279 23.7045 135.622 26.6831 135.622 30.2361C135.622 31.5719 135.13 32.6872 134.147 33.5821C133.164 34.477 131.965 34.9245 130.553 34.9245C129.14 34.9245 127.928 34.477 126.917 33.5821C125.906 32.6872 125.4 31.5719 125.4 30.2361C125.4 29.3546 125.061 28.6132 124.382 28.0122C123.703 27.4111 122.893 27.1106 121.951 27.1106C121.009 27.1106 120.199 27.4111 119.52 28.0122C118.841 28.6132 118.502 29.3546 118.502 30.2361C118.502 32.8274 119.299 34.9913 120.891 36.7277C122.484 38.4642 124.541 39.6797 127.062 40.3742C127.311 40.4544 127.478 40.588 127.561 40.775C127.644 40.962 127.658 41.1623 127.602 41.376C127.547 41.563 127.436 41.7233 127.27 41.8569C127.104 41.9905 126.896 42.0305 126.647 41.9771C123.766 41.2825 121.411 39.9001 119.582 37.8297C117.754 35.7593 116.84 33.2281 116.84 30.2361C116.84 28.9004 117.339 27.7784 118.336 26.8701C119.333 25.9618 120.538 25.5077 121.951 25.5077C123.364 25.5077 124.569 25.9618 125.566 26.8701C126.563 27.7784 127.062 28.9004 127.062 30.2361C127.062 31.1177 127.408 31.859 128.101 32.4601C128.794 33.0612 129.611 33.3617 130.553 33.3617C131.495 33.3617 132.298 33.0612 132.963 32.4601C133.628 31.859 133.96 31.1177 133.96 30.2361C133.96 27.1373 132.783 24.5326 130.428 22.4222C128.073 20.3117 125.261 19.2565 121.993 19.2565C118.724 19.2565 115.912 20.3117 113.557 22.4222C111.202 24.5326 110.025 27.1239 110.025 30.1961C110.025 30.8372 110.087 31.6386 110.212 32.6004C110.337 33.5621 110.635 34.6841 111.106 35.9664C111.189 36.2068 111.182 36.4205 111.085 36.6075C110.988 36.7945 110.828 36.9281 110.607 37.0082C110.385 37.0884 110.171 37.0817 109.963 36.9882C109.755 36.8947 109.61 36.7411 109.526 36.5274C109.111 35.4855 108.813 34.4503 108.633 33.4218C108.453 32.3933 108.363 31.3314 108.363 30.2361C108.363 26.6831 109.7 23.7045 112.373 21.3002C115.046 18.8959 118.239 17.6937 121.951 17.6937ZM121.951 10C123.724 10 125.455 10.207 127.145 10.6211C128.835 11.0352 130.47 11.6296 132.049 12.4043C132.298 12.5379 132.443 12.6982 132.485 12.8852C132.526 13.0722 132.506 13.2592 132.423 13.4462C132.339 13.6332 132.201 13.7801 132.007 13.8869C131.813 13.9938 131.578 13.9804 131.301 13.8469C129.832 13.1256 128.316 12.5713 126.75 12.1839C125.185 11.7965 123.585 11.6029 121.951 11.6029C120.344 11.6029 118.765 11.7832 117.214 12.1438C115.663 12.5045 114.18 13.0722 112.768 13.8469C112.546 13.9804 112.324 14.0138 112.103 13.947C111.881 13.8803 111.715 13.74 111.604 13.5263C111.493 13.3126 111.466 13.1189 111.521 12.9453C111.576 12.7716 111.715 12.618 111.937 12.4844C113.488 11.683 115.109 11.0686 116.798 10.6411C118.488 10.2137 120.206 10 121.951 10ZM121.951 21.5807C124.527 21.5807 126.744 22.4155 128.6 24.0852C130.456 25.7548 131.384 27.8051 131.384 30.2361C131.384 30.4766 131.308 30.6702 131.155 30.8172C131.003 30.9641 130.802 31.0376 130.553 31.0376C130.331 31.0376 130.137 30.9641 129.971 30.8172C129.805 30.6702 129.722 30.4766 129.722 30.2361C129.722 28.2326 128.953 26.5562 127.415 25.2072C125.878 23.8581 124.056 23.1835 121.951 23.1835C119.846 23.1835 118.038 23.8581 116.528 25.2072C115.018 26.5562 114.264 28.2326 114.264 30.2361C114.264 32.4 114.651 34.2366 115.427 35.746C116.203 37.2553 117.339 38.7714 118.834 40.2941C119.001 40.4544 119.084 40.6414 119.084 40.8551C119.084 41.0688 119.001 41.2558 118.834 41.4161C118.668 41.5764 118.474 41.6565 118.253 41.6565C118.031 41.6565 117.837 41.5764 117.671 41.4161C116.037 39.7598 114.783 38.0701 113.91 36.347C113.038 34.624 112.601 32.587 112.601 30.2361C112.601 27.8051 113.516 25.7548 115.344 24.0852C117.172 22.4155 119.375 21.5807 121.951 21.5807ZM121.909 29.4347C122.159 29.4347 122.36 29.5148 122.512 29.6751C122.664 29.8354 122.741 30.0224 122.741 30.2361C122.741 32.2397 123.488 33.8826 124.984 35.1649C126.48 36.4472 128.226 37.0884 130.22 37.0884C130.386 37.0884 130.622 37.075 130.927 37.0483C131.231 37.0216 131.55 36.9815 131.882 36.9281C132.132 36.8747 132.346 36.9081 132.526 37.0283C132.706 37.1485 132.824 37.3288 132.88 37.5692C132.935 37.7829 132.893 37.9699 132.755 38.1302C132.616 38.2905 132.436 38.3974 132.215 38.4508C131.716 38.5844 131.28 38.6578 130.906 38.6712C130.532 38.6846 130.303 38.6912 130.22 38.6912C127.755 38.6912 125.615 37.8898 123.8 36.2869C121.986 34.6841 121.078 32.6671 121.078 30.2361C121.078 30.0224 121.155 29.8354 121.307 29.6751C121.459 29.5148 121.66 29.4347 121.909 29.4347Z",fill:"#00404D",stroke:"#00404D",strokeWidth:"4",mask:"url(#path-4-inside-1_4178_10171)"}),_.createElement("circle",{cx:"167.5",cy:"49.5",r:"19.5",fill:"#E9F9FC",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M167.89 43.65L161.26 54.18H167.89",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M167.5 60.42C173.316 60.42 178.03 55.7056 178.03 49.89V48.72",stroke:"#00404D",strokeWidth:"2"}),_.createElement("circle",{cx:"173.74",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),_.createElement("circle",{cx:"160.48",cy:"43.26",r:"1",fill:"#00404D",stroke:"#00404D",strokeWidth:"1.12"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104 112C116.129 112 126.457 104.288 130.347 93.5H147.5L155.5 101.5L168 89L180.5 101.5L193 89L180.5 76.5H130.984C127.705 64.6779 116.866 56 104 56C88.536 56 76 68.536 76 84C76 99.464 88.536 112 104 112ZM104 98C111.732 98 118 91.732 118 84C118 76.268 111.732 70 104 70C96.268 70 90 76.268 90 84C90 91.732 96.268 98 104 98Z",fill:"#BCECF5"}),_.createElement("path",{d:"M130.347 93.5V92.5H129.645L129.407 93.1608L130.347 93.5ZM147.5 93.5L148.207 92.7929L147.914 92.5H147.5V93.5ZM155.5 101.5L154.793 102.207L155.5 102.914L156.207 102.207L155.5 101.5ZM168 89L168.707 88.2929L168 87.5858L167.293 88.2929L168 89ZM180.5 101.5L179.793 102.207L180.5 102.914L181.207 102.207L180.5 101.5ZM193 89L193.707 89.7071L194.414 89L193.707 88.2929L193 89ZM180.5 76.5L181.207 75.7929L180.914 75.5H180.5V76.5ZM130.984 76.5L130.021 76.7673L130.224 77.5H130.984V76.5ZM129.407 93.1608C125.655 103.565 115.694 111 104 111V113C116.564 113 127.259 105.011 131.288 93.8392L129.407 93.1608ZM147.5 92.5H130.347V94.5H147.5V92.5ZM156.207 100.793L148.207 92.7929L146.793 94.2071L154.793 102.207L156.207 100.793ZM167.293 88.2929L154.793 100.793L156.207 102.207L168.707 89.7071L167.293 88.2929ZM181.207 100.793L168.707 88.2929L167.293 89.7071L179.793 102.207L181.207 100.793ZM192.293 88.2929L179.793 100.793L181.207 102.207L193.707 89.7071L192.293 88.2929ZM179.793 77.2071L192.293 89.7071L193.707 88.2929L181.207 75.7929L179.793 77.2071ZM130.984 77.5H180.5V75.5H130.984V77.5ZM104 57C116.405 57 126.859 65.3669 130.021 76.7673L131.948 76.2327C128.552 63.9889 117.327 55 104 55V57ZM77 84C77 69.0883 89.0883 57 104 57V55C87.9837 55 75 67.9837 75 84H77ZM104 111C89.0883 111 77 98.9117 77 84H75C75 100.016 87.9837 113 104 113V111ZM117 84C117 91.1797 111.18 97 104 97V99C112.284 99 119 92.2843 119 84H117ZM104 71C111.18 71 117 76.8203 117 84H119C119 75.7157 112.284 69 104 69V71ZM91 84C91 76.8203 96.8203 71 104 71V69C95.7157 69 89 75.7157 89 84H91ZM104 97C96.8203 97 91 91.1797 91 84H89C89 92.2843 95.7157 99 104 99V97Z",fill:"#00404D"}),_.createElement("path",{d:"M138.5 57V66",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M139 104V124",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M134 61.5L143 61.5",stroke:"#00404D",strokeWidth:"2"}),_.createElement("path",{d:"M129 114L149 114",stroke:"#00404D",strokeWidth:"2"})))},{getPasskeyPromptHeadingText:iye,getPasskeyPromptDescriptionText:lye,getCreatePasskeyText:cye,getRegisteringText:uye,getContinueWithoutPasskeyText:dye,getPasskeyCreatedSuccessText:fye,getPasskeyRegisteredText:hye,getPasskeyRegistrationFailedText:pye,getPasskeyLabelText:mye,getExistingPasskeysText:gye,getSetupAnotherPasskeyText:vye,getContinueText:yye}=Vn;function bye({className:e,variation:t}){const[n,r]=F.useState(!1),[a,s]=F.useState(null),[i,c]=F.useState(!1),[u,f]=F.useState([]),{submitForm:h,isPending:m}=Et(E=>[E.submitForm,E.isPending]),g=F.useCallback(async()=>{try{const E=await OA();f(E.credentials||[])}catch{}},[]);F.useEffect(()=>{n&&g()},[n,g]);const y=F.useCallback(()=>{h({type:"SKIP"})},[h]),w=F.useCallback(()=>{h({type:"SUBMIT"})},[h]),b=F.useCallback(async()=>{try{s(null),c(!0),await pde(),r(!0)}catch(E){const k=E,A=k.name??"",R=k.message??"";if(A==="PasskeyRegistrationCanceled"||A==="NotAllowedError"||R.includes("canceled")||R.includes("cancelled")||R.includes("ceremony has been canceled")||R.includes("not allowed")){y();return}s(pye())}finally{c(!1)}},[y]);if(n)return F.createElement(ra,{className:e,variation:t},F.createElement(Ve,{direction:"column",padding:"large","data-amplify-authenticator-passkeyprompt":""},F.createElement(Ve,{direction:"column",gap:"xs"},F.createElement(sye,{className:"amplify-authenticator__passkey-success-icon"}),F.createElement(Ur,{level:4},fye()),F.createElement(Fa,null,hye())),u.length>0&&F.createElement(Ye,{marginTop:"large"},F.createElement(Ur,{level:5},gye()),F.createElement(Ve,{direction:"column",gap:"xs",marginTop:"xs"},u.map((E,k)=>F.createElement(Ye,{key:E.credentialId,className:"amplify-authenticator__passkey-credential-item"},F.createElement(Fa,{fontSize:"small"},E.friendlyCredentialName??`${mye()} ${k+1}`))))),F.createElement(Ve,{direction:"column",gap:"medium",marginTop:"large"},F.createElement(cn,{onClick:()=>{r(!1),b()},variation:"link"},vye()),F.createElement(cn,{onClick:()=>w(),variation:"primary",isFullWidth:!0},yye()))));const x=m||i;return F.createElement(ra,{className:e,variation:t},F.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-passkeyprompt":""},F.createElement(Ve,{direction:"column",gap:"medium"},F.createElement(Ur,{level:4},iye()),F.createElement(Fa,null,lye()),F.createElement(Ve,{justifyContent:"center"},F.createElement(oye,{className:"amplify-authenticator__passkey-icon"})),F.createElement(Ve,{direction:"column",gap:"medium"},F.createElement(cn,{onClick:()=>{b()},variation:"primary",isDisabled:x,isLoading:i,loadingText:uye()},cye()),F.createElement(cn,{onClick:y,variation:"link",isDisabled:x},dye()),a&&F.createElement(Fa,{className:"amplify-authenticator__passkey-error"},a),F.createElement(aa,null)))))}function P7(){return null}const Sye=e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return P7;case"confirmSignUp":return vc;case"confirmSignIn":return Sc;case"selectMfaType":return ul;case"setupEmail":return dl;case"setupTotp":return ll;case"signIn":case"signUp":return Ive;case"signInSelectAuthFactor":return aye;case"passkeyPrompt":return bye;case"forceNewPassword":return us;case"forgotPassword":return cl;case"confirmResetPassword":return wc;case"verifyUser":return bc;case"confirmVerifyUser":return yc;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${e}`),P7}};function wye({className:e,hideSignUp:t,variation:n}){const{route:r}=Et(({route:s})=>[s]),a=_.useMemo(()=>Sye(r),[r]);return F.createElement(a,{className:e,hideSignUp:X1e(r)?t:void 0,variation:n})}const xye={Header:()=>null,SignIn:{Header:Wo.Header,Footer:Wo.Footer},SignUp:{Header:ds.Header,FormFields:ds.FormFields,Footer:ds.Footer},ConfirmSignUp:{Header:vc.Header,Footer:vc.Footer},SelectMfaType:{Header:ul.Header,Footer:ul.Footer},SetupEmail:{Header:dl.Header,Footer:dl.Footer},SetupTotp:{Header:ll.Header,Footer:ll.Footer},ConfirmResetPassword:{Header:wc.Header,Footer:wc.Footer},ConfirmSignIn:{Header:Sc.Header,Footer:Sc.Footer},VerifyUser:{Header:bc.Header,Footer:bc.Footer},ConfirmVerifyUser:{Header:yc.Header,Footer:yc.Footer},ForceNewPassword:{Header:us.Header,Footer:us.Footer,FormFields:us.FormFields},ForgotPassword:{Header:cl.Header,Footer:cl.Footer},Footer:()=>null};function Cye({children:e,className:t,components:n,formFields:r,hideSignUp:a,initialState:s,loginMechanisms:i,passwordSettings:c,passwordless:u,signUpAttributes:f,services:h,socialProviders:m,variation:g}){v1e({message:"The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.",shouldWarn:!1});const{route:y,signOut:w,user:b}=Et(({route:k,signOut:A,user:R})=>[k,A,R]);Kge({initialState:s,loginMechanisms:i,passwordSettings:c,passwordless:u,services:h,signUpAttributes:f,socialProviders:m,formFields:r});const x=_.useMemo(()=>({components:{...xye,...n}}),[n]);return y==="authenticated"||y==="signOut"?e?_.createElement(_.Fragment,null,qo(e)?e({signOut:w,user:b}):e):null:_.createElement(R$.Provider,{value:x},_.createElement(wye,{className:t,hideSignUp:a,variation:g}))}function Xs(e){return Zge({componentName:"Authenticator",packageName:"react",version:g1e}),_.createElement(f$,null,_.createElement(Cye,{...e}))}Xs.Provider=f$;Xs.ForgotPassword=cl;Xs.SetupTotp=ll;Xs.SignIn=Wo;Xs.SignUp=ds;Xs.ForceNewPassword=us;Xs.SelectMfaType=ul;Xs.SetupEmail=dl;const U$=({cssText:e,...t})=>e===void 0||/<\/style/i.test(e)?null:_.createElement("style",{...t,dangerouslySetInnerHTML:{__html:e}});U$.displayName="Style";const z$=({theme:e,...t})=>{if(!e)return null;const{name:n,cssText:r}=e;return _.createElement(U$,{...t,cssText:r,id:`amplify-theme-${n}`})};z$.displayName="ThemeStyle";function Eye({children:e,colorMode:t,direction:n="ltr",nonce:r,theme:a}){const s=_.useMemo(()=>({theme:uy(a),colorMode:t}),[a,t]);return _.createElement(h$.Provider,{value:s},_.createElement(G0e,{dir:n},_.createElement("div",{"data-amplify-theme":s.theme.name,"data-amplify-color-mode":t,dir:n},e),a?_.createElement(z$,{theme:s.theme,nonce:r}):null))}const _ye=({configured:e,authStatus:t})=>t==="authenticated",kye=e=>e?e.signInDetails?.loginId??e.username??null:null,Aye=({children:e,fallback:t=null})=>{const{authStatus:n,signOut:r,user:a}=Et(s=>[s.authStatus,s.signOut,s.user]);return _ye({configured:!0,authStatus:n})?C.jsx(C.Fragment,{children:e({email:kye(a),signOut:()=>r()})}):C.jsx(C.Fragment,{children:t})},Iye=({children:e,fallback:t=null})=>Rv()?C.jsx(Aye,{fallback:t,children:e}):C.jsx(C.Fragment,{children:t}),D7='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ei=e=>`var(${e})`,gn=ei("--accent"),Tye=ei("--accent-hover"),L7=ei("--accent-soft"),mh=ei("--accent-fg"),U7=ei("--surface"),Du=ei("--fg"),Rye=ei("--surface-sunken"),Yg=ei("--fg-muted"),gh=ei("--line"),Oye=uy({name:"remit",tokens:{colors:{brand:{primary:{10:{value:L7},20:{value:L7},40:{value:gn},60:{value:gn},80:{value:gn},90:{value:gn},100:{value:gn}}},background:{primary:{value:U7},secondary:{value:Rye}},font:{primary:{value:Du},secondary:{value:Yg},tertiary:{value:Yg},interactive:{value:gn},inverse:{value:mh},hover:{value:gn},focus:{value:gn},active:{value:gn}},border:{primary:{value:gh},secondary:{value:gh},focus:{value:gn}}},fonts:{default:{variable:{value:D7},static:{value:D7}}},radii:{small:{value:"3px"},medium:{value:"5px"},large:{value:"7px"}},components:{authenticator:{router:{borderColor:{value:gh},borderWidth:{value:"1px"},boxShadow:{value:"0 10px 30px -10px rgb(15 23 42 / 0.18), 0 4px 12px -6px rgb(15 23 42 / 0.1)"},backgroundColor:{value:U7}},form:{padding:{value:"1.75rem"}},orContainer:{color:{value:Yg}}},button:{color:{value:Du},primary:{backgroundColor:{value:gn},color:{value:mh},_hover:{backgroundColor:{value:Tye},color:{value:mh}},_focus:{backgroundColor:{value:gn},color:{value:mh}},_active:{backgroundColor:{value:gn},color:{value:mh}}},link:{color:{value:gn},_hover:{color:{value:gn},backgroundColor:{value:"transparent"}},_focus:{color:{value:gn},backgroundColor:{value:"transparent"}},_active:{color:{value:gn},backgroundColor:{value:"transparent"}}}},fieldcontrol:{color:{value:Du},borderColor:{value:gh},_focus:{borderColor:{value:gn},boxShadow:{value:`0 0 0 2px ${gn}`}}},field:{label:{color:{value:Du}}},tabs:{borderColor:{value:gh},item:{color:{value:Yg},backgroundColor:{value:"transparent"},_active:{color:{value:gn},borderColor:{value:gn},backgroundColor:{value:"transparent"}},_hover:{color:{value:gn}},_focus:{color:{value:gn}}}},heading:{color:{value:Du}},text:{color:{value:Du}}}}}),Nye={signIn:{username:{placeholder:"Enter your username"},password:{placeholder:"Enter your password"}},signUp:{username:{placeholder:"Enter your username"},password:{placeholder:"Enter your password"},confirm_password:{placeholder:"Confirm your password"}}},Mye=()=>C.jsx(ap,{tone:"warning",className:"fixed top-0 left-0 right-0 z-50 h-7 sm:h-10 overflow-hidden border-x-0 border-t-0",children:C.jsxs("span",{className:"flex items-center gap-2",children:[C.jsx("strong",{className:"font-semibold shrink-0",children:"Local dev"}),C.jsx("span",{className:"truncate hidden sm:inline",children:"— Cognito not configured. Set VITE_COGNITO_USER_POOL_ID and VITE_COGNITO_CLIENT_ID in .env.local to enable sign-in."}),C.jsx("span",{className:"truncate sm:hidden",children:"— no Cognito; signed out"})]})}),Pye=()=>C.jsx(tj,{note:sF({betterAuthEnabled:!1,cognitoConfigured:Rv()})}),Dye=({children:e})=>{const{authStatus:t}=Et(n=>[n.authStatus]);return t==="authenticated"?C.jsx(C.Fragment,{children:e}):t==="configuring"?C.jsx(Bv,{}):C.jsx(Eye,{theme:Oye,children:C.jsxs(Xk,{children:[C.jsx(Qk,{}),C.jsx(Xs,{hideSignUp:!1,formFields:Nye,components:{Footer:Pye}})]})})},Lye=({children:e})=>Rv()?C.jsx(Xs.Provider,{children:C.jsx(Dye,{children:e})}):C.jsxs("div",{className:"pt-7 sm:pt-10 [&_#main-content]:h-[calc(100dvh-1.75rem)] sm:[&_#main-content]:h-[calc(100dvh-2.5rem)]",children:[C.jsx(Mye,{}),e]}),j$=60;let pd=null;const F$=()=>Math.floor(Date.now()/1e3),Uye=e=>e!==null&&e.expiresAt-j$>F$(),zye=async()=>{const t=(await _v()).tokens?.idToken;return t?(pd={value:t.toString(),expiresAt:t.payload.exp??F$()+j$},pd.value):(pd=null,null)},jye=async()=>Rv()?Uye(pd)?pd.value:zye():null,Fye=()=>{pd=null},R1={configure:rz,getToken:jye,resetToken:Fye,Shell:Lye,Account:Iye},$ye=({children:e})=>Ov()?C.jsx(C1.Shell,{children:e}):C.jsx(R1.Shell,{children:e}),Bye=e=>Ov()?C.jsx(C1.Account,{...e}):C.jsx(R1.Account,{...e}),Hye={configure:rz,getToken:()=>Ov()?C1.getToken():R1.getToken(),resetToken:()=>{C1.resetToken(),R1.resetToken()},Shell:$ye,Account:Bye};var Jd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qye=class extends Jd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},lI=new qye,Vye={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wye=class{#e=Vye;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Zl=new Wye;function Gye(e){setTimeout(e,0)}var Kye=typeof window>"u"||"Deno"in globalThis;function Nr(){}function Yye(e,t){return typeof e=="function"?e(t):e}function X3(e){return typeof e=="number"&&e>=0&&e!==1/0}function $$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function el(e,t){return typeof e=="function"?e(t):e}function ya(e,t){return typeof e=="function"?e(t):e}function z7(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:c}=e;if(i){if(r){if(t.queryHash!==cI(i,t.options))return!1}else if(!pp(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||s&&!s(t))}function j7(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(xc(t.options.mutationKey)!==xc(s))return!1}else if(!pp(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function cI(e,t){return(t?.queryKeyHashFn||xc)(e)}function xc(e){return JSON.stringify(e,(t,n)=>Q3(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function pp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>pp(e[n],t[n])):!1}var Zye=Object.prototype.hasOwnProperty;function B$(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=F7(e)&&F7(t);if(!r&&!(Q3(e)&&Q3(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),c=i.length,u=r?new Array(c):{};let f=0;for(let h=0;h<c;h++){const m=r?h:i[h],g=e[m],y=t[m];if(g===y){u[m]=g,(r?h<s:Zye.call(e,m))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){u[m]=y;continue}const w=B$(g,y,n+1);u[m]=w,w===g&&f++}return s===c&&f===s?e:u}function O1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function F7(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Q3(e){if(!$7(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$7(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $7(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xye(e){return new Promise(t=>{Zl.setTimeout(t,e)})}function J3(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?B$(e,t):t}function Qye(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Jye(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uI=Symbol();function H$(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===uI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dI(e,t){return typeof e=="function"?e(...t):!!e}function ebe(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var mp=(()=>{let e=()=>Kye;return{isServer(){return e()},setIsServer(t){e=t}}})();function e_(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var tbe=Gye;function nbe(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=tbe;const s=c=>{t?e.push(c):a(()=>{n(c)})},i=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||i()}return u},batchCalls:c=>(...u)=>{s(()=>{c(...u)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var qn=nbe(),rbe=class extends Jd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},N1=new rbe;function abe(e){return Math.min(1e3*2**e,3e4)}function q$(e){return(e??"online")==="online"?N1.isOnline():!0}var t_=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function V$(e){let t=!1,n=0,r;const a=e_(),s=()=>a.status!=="pending",i=b=>{if(!s()){const x=new t_(b);g(x),e.onCancel?.(x)}},c=()=>{t=!0},u=()=>{t=!1},f=()=>lI.isFocused()&&(e.networkMode==="always"||N1.isOnline())&&e.canRun(),h=()=>q$(e.networkMode)&&e.canRun(),m=b=>{s()||(r?.(),a.resolve(b))},g=b=>{s()||(r?.(),a.reject(b))},y=()=>new Promise(b=>{r=x=>{(s()||f())&&b(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(E){b=Promise.reject(E)}Promise.resolve(b).then(m).catch(E=>{if(s())return;const k=e.retry??(mp.isServer()?0:3),A=e.retryDelay??abe,R=typeof A=="function"?A(n,E):A,P=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,E);if(t||!P){g(E);return}n++,e.onFail?.(n,E),Xye(R).then(()=>f()?void 0:y()).then(()=>{t?g(E):w()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:u,canStart:h,start:()=>(h()?w():y().then(w),a)}}var W$=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),X3(this.gcTime)&&(this.#e=Zl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mp.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Zl.clearTimeout(this.#e),this.#e=void 0)}};function sbe(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const f=async()=>{let h=!1;const m=w=>{ebe(w,()=>t.signal,()=>h=!0)},g=H$(t.options,t.fetchOptions),y=async(w,b,x)=>{if(h)return Promise.reject(t.signal.reason);if(b==null&&w.pages.length)return Promise.resolve(w);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:b,direction:x?"backward":"forward",meta:t.options.meta};return m(O),O})(),A=await g(k),{maxPages:R}=t.options,P=x?Jye:Qye;return{pages:P(w.pages,A,R),pageParams:P(w.pageParams,b,R)}};if(a&&s.length){const w=a==="backward",b=w?G$:n_,x={pages:s,pageParams:i},E=b(r,x);c=await y(x,E,w)}else{const w=e??s.length;do{const b=u===0?i[0]??r.initialPageParam:n_(r,c);if(u>0&&b==null)break;c=await y(c,b),u++}while(u<w)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function n_(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function G$(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function vPe(e,t){return t?n_(e,t)!=null:!1}function yPe(e,t){return!t||!e.getPreviousPageParam?!1:G$(e,t)!=null}var obe=class extends W${#e;#t;#n;#r;#s;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=H7(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=H7(this.options);t.data!==void 0&&(this.setState(B7(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=J3(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Nr).catch(Nr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ya(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uI||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>el(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!$$(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o||this.#u()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const u=H$(this.options,t),h=(()=>{const m={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(u,h,this):u(h)},i=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return r(u),u})();(this.#e==="infinite"?sbe(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#l({type:"fetch",meta:i.fetchOptions?.meta}),this.#a=V$({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:u=>{u instanceof t_&&u.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(u,f)=>{this.#l({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const u=await this.#a.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#r.config.onSuccess?.(u,this),this.#r.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof t_){if(u.silent)return this.#a.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#l({type:"error",error:u}),this.#r.config.onError?.(u,this),this.#r.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...K$(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...B7(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function K$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function B7(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function H7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ibe=class extends Jd{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#i=e_(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#i;#o;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),q7(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return r_(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return r_(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ya(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),t._defaulted&&!O1(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&V7(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ya(this.options.enabled,this.#t)!==ya(t.enabled,this.#t)||el(this.options.staleTime,this.#t)!==el(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||ya(this.options.enabled,this.#t)!==ya(t.enabled,this.#t)||a!==this.#c)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return cbe(this,n)&&(this.#r=n,this.#a=this.options,this.#s=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#x();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Nr)),t}#g(){this.#S();const e=el(this.options.staleTime,this.#t);if(mp.isServer()||this.#r.isStale||!X3(e))return;const n=$$(this.#r.dataUpdatedAt,e)+1;this.#d=Zl.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#c=e,!(mp.isServer()||ya(this.options.enabled,this.#t)===!1||!X3(this.#c)||this.#c===0)&&(this.#f=Zl.setInterval(()=>{(this.options.refetchIntervalInBackground||lI.isFocused())&&this.#h()},this.#c))}#b(){this.#g(),this.#y(this.#v())}#S(){this.#d!==void 0&&(Zl.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Zl.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#r,s=this.#s,i=this.#a,u=e!==n?e.state:this.#n,{state:f}=e;let h={...f},m=!1,g;if(t._optimisticResults){const M=this.hasListeners(),z=!M&&q7(e,t),q=M&&V7(e,n,t,r);(z||q)&&(h={...h,...K$(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:y,errorUpdatedAt:w,status:b}=h;g=h.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let M;a?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(M=a.data,x=!0):M=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,M!==void 0&&(b="success",g=J3(a?.data,M,t),m=!0)}if(t.select&&g!==void 0&&!x)if(a&&g===s?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=J3(a?.data,g,t),this.#l=g,this.#o=null}catch(M){this.#o=M}this.#o&&(y=this.#o,g=this.#l,w=Date.now(),b="error");const E=h.fetchStatus==="fetching",k=b==="pending",A=b==="error",R=k&&E,P=g!==void 0,T={status:b,fetchStatus:h.fetchStatus,isPending:k,isSuccess:b==="success",isError:A,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:h.dataUpdatedAt,error:y,errorUpdatedAt:w,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!k,isLoadingError:A&&!P,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:A&&P,isStale:fI(e,t),refetch:this.refetch,promise:this.#i,isEnabled:ya(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=T.data!==void 0,z=T.status==="error"&&!M,q=B=>{z?B.reject(T.error):M&&B.resolve(T.data)},U=()=>{const B=this.#i=T.promise=e_();q(B)},L=this.#i;switch(L.status){case"pending":e.queryHash===n.queryHash&&q(L);break;case"fulfilled":(z||T.data!==L.value)&&U();break;case"rejected":(!z||T.error!==L.reason)&&U();break}}return T}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#a=this.options,this.#s.data!==void 0&&(this.#p=this.#t),O1(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const s=new Set(a??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(i=>{const c=i;return this.#r[c]!==e[c]&&s.has(c)})};this.#C({listeners:n()})}#x(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#C(e){qn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function lbe(e,t){return ya(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&ya(t.retryOnMount,e)===!1)}function q7(e,t){return lbe(e,t)||e.state.data!==void 0&&r_(e,t,t.refetchOnMount)}function r_(e,t,n){if(ya(t.enabled,e)!==!1&&el(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&fI(e,t)}return!1}function V7(e,t,n,r){return(e!==t||ya(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fI(e,n)}function fI(e,t){return ya(t.enabled,e)!==!1&&e.isStaleByTime(el(t.staleTime,e))}function cbe(e,t){return!O1(e.getCurrentResult(),t)}var ube=class extends W${#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Y$(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=V$({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,i)=>{this.#s({type:"failed",failureCount:s,error:i})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#s({type:"pending",context:i,variables:e,isPaused:a})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#s({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(i){Promise.reject(i)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(i){Promise.reject(i)}throw this.#s({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Y$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Z$=class extends Jd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new ube({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Zg(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Zg(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Zg(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Zg(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>j7(t,n))}findAll(e={}){return this.getAll().filter(t=>j7(e,t))}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nr))))}};function Zg(e){return e.options.scope?.id}var dbe=class extends Jd{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),O1(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&xc(n.mutationKey)!==xc(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??Y$();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){qn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,a)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,a)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},X$=class extends Jd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??cI(r,t);let s=this.get(a);return s||(s=new obe({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>z7(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>z7(e,n)):t}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fbe=class{#e;#t;#n;#r;#s;#a;#i;#o;constructor(e={}){this.#e=e.queryCache||new X$,this.#t=e.mutationCache||new Z$,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=lI.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=N1.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(el(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,i=Yye(t,s);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return qn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Nr).catch(Nr)}invalidateQueries(e,t={}){return qn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=qn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(Nr)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Nr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(el(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nr).catch(Nr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nr).catch(Nr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return N1.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(xc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{pp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(xc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{pp(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cI(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===uI&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Q$=_.createContext(void 0),Lc=e=>{const t=_.useContext(Q$);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hbe=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(Q$.Provider,{value:e,children:t})),J$=_.createContext(!1),pbe=()=>_.useContext(J$);J$.Provider;function mbe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gbe=_.createContext(mbe()),vbe=()=>_.useContext(gbe),ybe=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?dI(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},bbe=e=>{_.useEffect(()=>{e.clearReset()},[e])},Sbe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||dI(n,[e.error,r])),wbe=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},xbe=(e,t)=>e.isLoading&&e.isFetching&&!t,Cbe=(e,t)=>e?.suspense&&t.isPending,W7=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ebe(e,t,n){const r=pbe(),a=vbe(),s=Lc(),i=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const c=s.getQueryCache().get(i.queryHash),u=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":u?"optimistic":void 0,wbe(i),ybe(i,a,c),bbe(a);const f=!s.getQueryCache().get(i.queryHash),[h]=_.useState(()=>new t(s,i)),m=h.getOptimisticResult(i),g=!r&&u;if(_.useSyncExternalStore(_.useCallback(y=>{const w=g?h.subscribe(qn.batchCalls(y)):Nr;return h.updateResult(),w},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),_.useEffect(()=>{h.setOptions(i)},[i,h]),Cbe(i,m))throw W7(i,h,a);if(Sbe({result:m,errorResetBoundary:a,throwOnError:i.throwOnError,query:c,suspense:i.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(i,m),i.experimental_prefetchInRender&&!mp.isServer()&&xbe(m,r)&&(f?W7(i,h,a):c?.promise)?.catch(Nr).finally(()=>{h.updateResult()}),i.notifyOnChangeProps?m:h.trackResult(m)}function _d(e,t){return Ebe(e,ibe)}function hI(e,t){const n=Lc(),[r]=_.useState(()=>new dbe(n,e));_.useEffect(()=>{r.setOptions(e)},[r,e]);const a=_.useSyncExternalStore(_.useCallback(i=>r.subscribe(qn.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=_.useCallback((i,c)=>{r.mutate(i,c).catch(Nr)},[r]);if(a.error&&dI(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}const _be="modulepreload",kbe=function(e){return"/"+e},G7={},Ke=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=i?.nonce||i?.getAttribute("nonce");a=u(n.map(f=>{if(f=kbe(f),f in G7)return;G7[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":_be,h||(g.as="script"),g.crossOrigin="",g.href=f,c&&g.setAttribute("nonce",c),document.head.appendChild(g),h)return new Promise((y,w)=>{g.addEventListener("load",y),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return a.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var K7=_.use,nd=typeof window<"u"?_.useLayoutEffect:_.useEffect;function cE(e){const t=_.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Abe(e,t,n={},r={}){_.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([s])=>{t(s)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,r.disabled,e])}function Ibe(e){const t=_.useRef(null);return _.useImperativeHandle(e,()=>t.current,[]),t}const eB=!1;function gp(e){return e[e.length-1]}function Tbe(e){return typeof e=="function"}function Xl(e,t){return Tbe(e)?e(t):e}const tB=Object.prototype.hasOwnProperty,Y7=Object.prototype.propertyIsEnumerable;function nB(e){for(const t in e)if(tB.call(e,t))return!0;return!1}const Rbe=()=>Object.create(null),Bl=(e,t)=>Ql(e,t,Rbe);function Ql(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const a=t,s=Q7(e)&&Q7(a);if(!s&&!(M1(e)&&M1(a)))return a;const i=s?e:Z7(e);if(!i)return a;const c=s?a:Z7(a);if(!c)return a;const u=i.length,f=c.length,h=s?new Array(f):n();let m=0;for(let g=0;g<f;g++){const y=s?g:c[g],w=e[y],b=a[y];if(w===b){h[y]=w,(s?g<u:tB.call(e,y))&&m++;continue}if(w===null||b===null||typeof w!="object"||typeof b!="object"){h[y]=b;continue}const x=Ql(w,b,n,r+1);h[y]=x,x===w&&m++}return u===f&&m===u?e:h}function Z7(e){const t=Object.getOwnPropertyNames(e);for(const a of t)if(!Y7.call(e,a))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const a of n){if(!Y7.call(e,a))return!1;r.push(a)}return r}function M1(e){if(!X7(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!X7(n)||!n.hasOwnProperty("isPrototypeOf"))}function X7(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q7(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sc(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!sc(e[r],t[r],n))return!1;return!0}if(M1(e)&&M1(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const i in t)if((!r||t[i]!==void 0)&&!sc(e[i],t[i],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const i in e)e[i]!==void 0&&a++;let s=0;for(const i in t)if((!r||t[i]!==void 0)&&(s++,s>a||!sc(e[i],t[i],n)))return!1;return a===s}return!1}function kd(e){let t,n;const r=new Promise((a,s)=>{t=a,n=s});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function Obe(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function vp(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const Nbe=/[\x00-\x1f\x7f"<>`{}]/g;function Mbe(e){return e.replace(Nbe,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function J7(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return Mbe(t)}const Pbe=["http:","https:","mailto:","tel:"];function P1(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function vh(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",a;for(;(a=t.exec(e))!==null;)r+=J7(e.slice(n,a.index))+a[0],n=t.lastIndex;r=r+J7(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function Dbe(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Lbe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function jo(){throw new Error("Invariant failed")}function yp(e){const t=new Map;let n,r;const a=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const i=t.get(s);if(i)return a(i),i.value},set(s,i){if(t.size>=e&&n){const u=n;t.delete(u.key),u.next&&(n=u.next,u.next.prev=void 0),u===r&&(r=void 0)}const c=t.get(s);if(c)c.value=i,a(c);else{const u={key:s,value:i,prev:r};r&&(r.next=u),r=u,n||(n=u),t.set(s,u)}},clear(){t.clear(),n=void 0,r=void 0}}}const Xi=4,rB=5;function Ube(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function aB(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,s=e.substring(t,a);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(s==="$"){const c=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const i=Ube(s);if(i){const[c,u]=i,f=s.charCodeAt(c+1);if(f===45){if(c+2<s.length&&s.charCodeAt(c+2)===36){const h=c+3,m=u;if(h<m)return n[0]=3,n[1]=t+c,n[2]=t+h,n[3]=t+m,n[4]=t+u+1,n[5]=a,n}}else if(f===36){const h=c+1,m=c+2;return m===u?(n[0]=2,n[1]=t+c,n[2]=t+h,n[3]=t+m,n[4]=t+u+1,n[5]=e.length,n):(n[0]=1,n[1]=t+c,n[2]=t+m,n[3]=t+u,n[4]=t+u+1,n[5]=a,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function by(e,t,n,r,a,s,i){i?.(n);let c=r;{const u=n.fullPath??n.from,f=u.length,h=n.options?.caseSensitive??e,m=n.options?.params?.parse??n.options?.parseParams;for(;c<f;){const y=aB(u,c,t);let w;const b=c,x=y[5];switch(c=x+1,s++,y[0]){case 0:{const E=u.substring(y[2],y[3]);if(h){const k=a.static?.get(E);if(k)w=k;else{a.static??=new Map;const A=Jl(n.fullPath??n.from);A.parent=a,A.depth=s,w=A,a.static.set(E,A)}}else{const k=E.toLowerCase(),A=a.staticInsensitive?.get(k);if(A)w=A;else{a.staticInsensitive??=new Map;const R=Jl(n.fullPath??n.from);R.parent=a,R.depth=s,w=R,a.staticInsensitive.set(k,R)}}break}case 1:{const E=u.substring(b,y[1]),k=u.substring(y[4],x),A=h&&!!(E||k),R=E?A?E:E.toLowerCase():void 0,P=k?A?k:k.toLowerCase():void 0,O=!m&&a.dynamic?.find(T=>!T.parse&&T.caseSensitive===A&&T.prefix===R&&T.suffix===P);if(O)w=O;else{const T=dE(1,n.fullPath??n.from,A,R,P);w=T,T.depth=s,T.parent=a,a.dynamic??=[],a.dynamic.push(T)}break}case 3:{const E=u.substring(b,y[1]),k=u.substring(y[4],x),A=h&&!!(E||k),R=E?A?E:E.toLowerCase():void 0,P=k?A?k:k.toLowerCase():void 0,O=!m&&a.optional?.find(T=>!T.parse&&T.caseSensitive===A&&T.prefix===R&&T.suffix===P);if(O)w=O;else{const T=dE(3,n.fullPath??n.from,A,R,P);w=T,T.parent=a,T.depth=s,a.optional??=[],a.optional.push(T)}break}case 2:{const E=u.substring(b,y[1]),k=u.substring(y[4],x),A=h&&!!(E||k),R=E?A?E:E.toLowerCase():void 0,P=k?A?k:k.toLowerCase():void 0,O=dE(2,n.fullPath??n.from,A,R,P);w=O,O.parent=a,O.depth=s,a.wildcard??=[],a.wildcard.push(O)}}a=w}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const y=Jl(n.fullPath??n.from);y.kind=rB,y.parent=a,s++,y.depth=s,a.pathless??=[],a.pathless.push(y),a=y}const g=(n.path||!n.children)&&!n.isRoot;if(g&&u.endsWith("/")){const y=Jl(n.fullPath??n.from);y.kind=Xi,y.parent=a,s++,y.depth=s,a.index=y,a=y}a.parse=m??null,a.priority=n.options?.params?.priority??0,g&&!a.route&&(a.route=n,a.fullPath=n.fullPath??n.from)}if(n.children)for(const u of n.children)by(e,t,u,c,a,s,i)}function uE(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Hi(e){if(e.pathless)for(const t of e.pathless)Hi(t);if(e.static)for(const t of e.static.values())Hi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Hi(t);if(e.dynamic?.length){e.dynamic.sort(uE);for(const t of e.dynamic)Hi(t)}if(e.optional?.length){e.optional.sort(uE);for(const t of e.optional)Hi(t)}if(e.wildcard?.length){e.wildcard.sort(uE);for(const t of e.wildcard)Hi(t)}}function Jl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function dE(e,t,n,r,a){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:a}}function zbe(e,t){const n=Jl("/"),r=new Uint16Array(6);for(const a of e)by(!1,r,a,1,n,0);Hi(n),t.masksTree=n,t.flatCache=yp(1e3)}function jbe(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=pI(e,t.masksTree);return t.flatCache.set(e,r),r}function Fbe(e,t,n,r,a){e||="/",r||="/";const s=t?`case\0${e}`:e;let i=a.singleCache.get(s);return i||(i=Jl("/"),by(t,new Uint16Array(6),{from:e},1,i,0),a.singleCache.set(s,i)),pI(r,i,n)}function $be(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";let s;try{s=pI(e,t.segmentTree,n)}catch(i){if(i instanceof URIError)s=null;else throw i}return s&&(s.branch=oB(s.route)),t.matchCache.set(r,s),s}function Bbe(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Hbe(e,t=!1,n){const r=Jl(e.fullPath),a=new Uint16Array(6),s={},i={};let c=0;return by(t,a,e,1,r,0,u=>{if(n?.(u,c),u.id in s&&jo(),s[u.id]=u,c!==0&&u.path){const f=Bbe(u.fullPath);(!i[f]||u.fullPath.endsWith("/"))&&(i[f]=u)}c++}),Hi(r),{processedTree:{segmentTree:r,singleCache:yp(1e3),matchCache:yp(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:i}}function pI(e,t,n=!1){const r=e.split("/"),a=Vbe(e,r,t,n);if(!a)return null;const[s]=sB(e,r,a);return{route:a.node.route,rawParams:s}}function sB(e,t,n){const r=qbe(n.node);let a=null;const s=Object.create(null);let i=n.extract?.part??0,c=n.extract?.node??0,u=n.extract?.path??0,f=n.extract?.segment??0;for(;c<r.length;i++,c++,u++,f++){const h=r[c];if(h.kind===Xi)break;if(h.kind===rB){f--,i--,u--;continue}const m=t[i],g=u;if(m&&(u+=m.length),h.kind===1){a??=n.node.fullPath.split("/");const y=a[f],w=h.prefix?.length??0;if(y.charCodeAt(w)===123){const b=h.suffix?.length??0,x=y.substring(w+2,y.length-b-1),E=m.substring(w,m.length-b);s[x]=decodeURIComponent(E)}else{const b=y.substring(1);s[b]=decodeURIComponent(m)}}else if(h.kind===3){if(n.skipped&1<<c){i--,u=g-1;continue}a??=n.node.fullPath.split("/");const y=a[f],w=h.prefix?.length??0,b=h.suffix?.length??0,x=y.substring(w+3,y.length-b-1),E=h.suffix||h.prefix?m.substring(w,m.length-b):m;E&&(s[x]=decodeURIComponent(E))}else if(h.kind===2){const y=h,w=e.substring(g+(y.prefix?.length??0),e.length-(y.suffix?.length??0)),b=decodeURIComponent(w);s["*"]=b,s._splat=b;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:i,node:c,path:u,segment:f}]}function oB(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function qbe(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Vbe(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const a=!gp(t),s=a&&e!=="/",i=t.length-(a?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let u=null,f=null;for(;c.length;){const h=c.pop(),{node:m,index:g,skipped:y,depth:w,statics:b,dynamics:x,optionals:E}=h;let{extract:k,rawParams:A}=h;if(m.kind===2&&m.route&&!Qg(f,h))continue;if(m.parse){if(!eD(e,t,h))continue;A=h.rawParams,k=h.extract}r&&m.route&&m.kind!==Xi&&Qg(u,h)&&(u=h);const R=g===i;if(R&&(m.route&&(!s||m.kind===Xi||m.kind===2)&&Qg(f,h)&&(f=h),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const P=R?void 0:t[g];let O;if(R&&m.index){const T={node:m.index,index:g,skipped:y,depth:w+1,statics:b,dynamics:x,optionals:E,extract:k,rawParams:A};let M=!0;if(m.index.parse&&(eD(e,t,T)||(M=!1)),M){if(!x&&!E&&!y&&Wbe(b,i))return T;Qg(f,T)&&(f=T)}}if(m.wildcard)for(let T=m.wildcard.length-1;T>=0;T--){const M=m.wildcard[T],{prefix:z,suffix:q}=M;if(!(z&&(R||!(M.caseSensitive?P:O??=P.toLowerCase()).startsWith(z)))){if(q){if(R)continue;const U=t.slice(g).join("/").slice(-q.length);if((M.caseSensitive?U:U.toLowerCase())!==q)continue}c.push({node:M,index:i,skipped:y,depth:w+1,statics:b,dynamics:x,optionals:E,extract:k,rawParams:A})}}if(m.optional){const T=y|1<<w,M=w+1;for(let z=m.optional.length-1;z>=0;z--){const q=m.optional[z];c.push({node:q,index:g,skipped:T,depth:M,statics:b,dynamics:x,optionals:E,extract:k,rawParams:A})}if(!R)for(let z=m.optional.length-1;z>=0;z--){const q=m.optional[z],{prefix:U,suffix:L}=q;if(U||L){const B=q.caseSensitive?P:O??=P.toLowerCase();if(U&&!B.startsWith(U)||L&&!B.endsWith(L))continue}c.push({node:q,index:g+1,skipped:y,depth:M,statics:b,dynamics:x,optionals:E+Xg(i,g),extract:k,rawParams:A})}}if(!R&&m.dynamic&&P)for(let T=m.dynamic.length-1;T>=0;T--){const M=m.dynamic[T],{prefix:z,suffix:q}=M;if(z||q){const U=M.caseSensitive?P:O??=P.toLowerCase();if(z&&!U.startsWith(z)||q&&!U.endsWith(q))continue}c.push({node:M,index:g+1,skipped:y,depth:w+1,statics:b,dynamics:x+Xg(i,g),optionals:E,extract:k,rawParams:A})}if(!R&&m.staticInsensitive){const T=m.staticInsensitive.get(O??=P.toLowerCase());T&&c.push({node:T,index:g+1,skipped:y,depth:w+1,statics:b+Xg(i,g),dynamics:x,optionals:E,extract:k,rawParams:A})}if(!R&&m.static){const T=m.static.get(P);T&&c.push({node:T,index:g+1,skipped:y,depth:w+1,statics:b+Xg(i,g),dynamics:x,optionals:E,extract:k,rawParams:A})}if(m.pathless){const T=w+1;for(let M=m.pathless.length-1;M>=0;M--){const z=m.pathless[M];c.push({node:z,index:g,skipped:y,depth:T,statics:b,dynamics:x,optionals:E,extract:k,rawParams:A})}}}if(f)return f;if(r&&u){let h=u.index;for(let g=0;g<u.index;g++)h+=t[g].length;const m=h===e.length?"/":e.slice(h);return u.rawParams??=Object.create(null),u.rawParams["**"]=decodeURIComponent(m),u}return null}function Xg(e,t){return 2**(e-t-1)}function Wbe(e,t){return e===2**(t-1)-1}function eD(e,t,n){let r,a;try{[r,a]=sB(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=a,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Qg(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Xi)>(e.node.kind===Xi)||t.node.kind===Xi==(e.node.kind===Xi)&&t.depth>e.depth))):!0}function Z0(e){return mI(e.filter(t=>t!==void 0).join("/"))}function mI(e){return e.replace(/\/{2,}/g,"/")}function iB(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function zo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function lB(e){return zo(iB(e))}function D1(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Gbe(e,t,n){return D1(e,n)===D1(t,n)}function Kbe({base:e,to:t,trailingSlash:n="never",cache:r}){const a=t.startsWith("/"),s=!a&&t===".";let i;if(r){i=a?t:s?e:e+"\0"+t;const f=r.get(i);if(f)return f}let c;if(s)c=e.split("/");else if(a)c=t.split("/");else{for(c=e.split("/");c.length>1&&gp(c)==="";)c.pop();const f=t.split("/");for(let h=0,m=f.length;h<m;h++){const g=f[h];g===""?h?h===m-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(gp(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));const u=mI(c.join("/"))||"/";return i&&r&&r.set(i,u),u}function Ybe(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),n=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return a=>a.replace(r,s=>t.get(s)??s)}function fE(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(a=>nD(a,n)).join("/"):nD(r,n)}function tD({path:e,params:t,decoder:n,...r}){let a=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:a};const i=e.length;let c=0,u,f="";for(;c<i;){const h=c;u=aB(e,h,u);const m=u[5];if(c=m+1,h===m)continue;const g=u[0];if(g===0){f+="/"+e.substring(h,m);continue}if(g===2){const y=t._splat;s._splat=y,s["*"]=y;const w=e.substring(h,u[1]),b=e.substring(u[4],m);if(!y){a=!0,(w||b)&&(f+="/"+w+b);continue}const x=fE("_splat",t,n);f+="/"+w+x+b;continue}if(g===1){const y=e.substring(u[2],u[3]);!a&&!(y in t)&&(a=!0),s[y]=t[y];const w=e.substring(h,u[1]),b=e.substring(u[4],m),x=fE(y,t,n)??"undefined";f+="/"+w+x+b;continue}if(g===3){const y=e.substring(u[2],u[3]),w=t[y];if(w==null)continue;s[y]=w;const b=e.substring(h,u[1]),x=e.substring(u[4],m),E=fE(y,t,n)??"";f+="/"+b+E+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:a}}function nD(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Cr(e){return e?.isNotFound===!0}function Zbe(){try{return sessionStorage}catch{return}}const Xbe="tsr-scroll-restoration-v1_3",cB=Zbe();function Qbe(){try{return JSON.parse(cB?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function Jbe(){try{cB?.setItem(Xbe,JSON.stringify(Ku))}catch{}}const Ku=Qbe(),rD="data-scroll-restoration-id",eSe=e=>e.state.__TSR_key||e.href;function tSe(e){const t=e.getAttribute(rD);if(t)return`[${rD}="${t}"]`;let n="",r=e,a;for(;a=r.parentNode;){let s=1,i=r;for(;i=i.previousElementSibling;)s++;const c=`${r.localName}:nth-child(${s})`;n=n?`${c} > ${n}`:c,r=a}return n}let Jg=!1;const X0="window";function a_(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function aD(e){const t=new Set;for(const n of e){if(n===X0)continue;const r=a_(n);r&&t.add(r)}return t}function nSe(e,t){const n=e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);const a=e.options.getScrollRestorationKey||eSe,s=new Set,i=c=>{const u=Ku[c]||={};for(const f of s)f===document?u[X0]={scrollX,scrollY}:f.isConnected&&(u[tSe(f)]={scrollX:f.scrollLeft,scrollY:f.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Jg=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Jg||s.add(c.target)},!0),e.subscribe("onBeforeLoad",c=>{c.fromLocation&&i(a(c.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{i(a(e.stores.resolvedLocation.get()??e.stores.location.get())),Jbe()})),!r.reset&&(r.reset=!0,e.subscribe("onRendered",c=>{const u=e.options.scrollRestorationBehavior,f=e.options.scrollToTopSelectors,h=r.next,m=r.hash;let g;if(s.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const y=a(c.toLocation),w=c.fromLocation&&a(c.fromLocation);if(r.restoring&&w&&w!==y){const b=Ku[w];if(b){let x=Ku[y];for(const E in b){if(E===X0){if(h)continue}else{const k=a_(E);if(!k||h&&f&&(g??=aD(f),g.has(k)))continue}x||(x=Ku[y]={}),x[E]??=b[E]}}}Jg=!0;try{const b=c.toLocation.hash,x=c.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(h){!b&&f&&(g??=aD(f));const k=b&&x&&m,A=r.restoring?Ku[y]:void 0;if(A)for(const R in A){const{scrollX:P,scrollY:O}=A[R];if(R===X0){if(k)continue;scrollTo({top:O,left:P,behavior:u}),E=!0}else{const T=a_(R);T&&(T.scrollLeft=P,T.scrollTop=O,g?.delete(T))}}if(!b){const R={top:0,left:0,behavior:u};if(E||scrollTo(R),g)for(const P of g)P.scrollTo(R)}}!E&&b&&x&&document.getElementById(b)?.scrollIntoView(x)}finally{Jg=!1}}))}function rSe(e,t=String){const n=new URLSearchParams;for(const r in e){const a=e[r];a!==void 0&&n.set(r,t(a))}return n.toString()}function hE(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function aSe(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,a]of t.entries()){const s=n[r];s==null?n[r]=hE(a):Array.isArray(s)?s.push(hE(a)):n[r]=[s,hE(a)]}return n}const sSe=iSe(JSON.parse),oSe=lSe(JSON.stringify,JSON.parse);function iSe(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=aSe(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function lSe(e,t){const n=typeof t=="function";function r(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const s=rSe(a,r);return s?`?${s}`:""}}const oc="__root__";function em(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Qr(e){return e instanceof Response&&!!e.options}function cSe(e){return{input:({url:t})=>{for(const n of e)t=s_(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=uB(e[n],t);return t}}}function uSe(e){const t=lB(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),a=`${r}/`;return{input:({url:s})=>{const i=e.caseSensitive?s.pathname:s.pathname.toLowerCase();return i===r?s.pathname="/":i.startsWith(a)&&(s.pathname=s.pathname.slice(n.length)),s},output:({url:s})=>(s.pathname=Z0(["/",t,s.pathname]),s)}}function s_(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function uB(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function dSe(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:a,init:s}=t,i=new Map,c=new Map,u=new Map,f=n(e.status),h=n(e.loadedAt),m=n(e.isLoading),g=n(e.isTransitioning),y=n(e.location),w=n(e.resolvedLocation),b=n(e.statusCode),x=n(e.redirect),E=n([]),k=n([]),A=n([]),R=r(()=>pE(i,E.get())),P=r(()=>pE(c,k.get())),O=r(()=>pE(u,A.get())),T=r(()=>E.get()[0]),M=r(()=>E.get().some(X=>i.get(X)?.get().status==="pending")),z=r(()=>({locationHref:y.get().href,resolvedLocationHref:w.get()?.href,status:f.get()})),q=r(()=>({status:f.get(),loadedAt:h.get(),isLoading:m.get(),isTransitioning:g.get(),matches:R.get(),location:y.get(),resolvedLocation:w.get(),statusCode:b.get(),redirect:x.get()})),U=yp(64);function L(X){let re=U.get(X);return re||(re=r(()=>{const pe=E.get();for(const _e of pe){const j=i.get(_e);if(j&&j.routeId===X)return j.get()}}),U.set(X,re)),re}const B={status:f,loadedAt:h,isLoading:m,isTransitioning:g,location:y,resolvedLocation:w,statusCode:b,redirect:x,matchesId:E,pendingIds:k,cachedIds:A,matches:R,pendingMatches:P,cachedMatches:O,firstId:T,hasPending:M,matchRouteDeps:z,matchStores:i,pendingMatchStores:c,cachedMatchStores:u,__store:q,getRouteMatchStore:L,setMatches:G,setPending:ie,setCached:$};G(e.matches),s?.(B);function G(X){mE(X,i,E,n,a)}function ie(X){mE(X,c,k,n,a)}function $(X){mE(X,u,A,n,a)}return B}function pE(e,t){const n=[];for(const r of t){const a=e.get(r);a&&n.push(a.get())}return n}function mE(e,t,n,r,a){const s=e.map(c=>c.id),i=new Set(s);a(()=>{for(const c of t.keys())i.has(c)||t.delete(c);for(const c of e){const u=t.get(c.id);if(!u){const f=r(c);f.routeId=c.routeId,t.set(c.id,f);continue}u.routeId=c.routeId,u.get()!==c&&u.set(c)}Lbe(n.get(),s)||n.set(s)})}const o_=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},fSe=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Sy=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ic=(e,t,n=!0)=>{const r={...e.router.options.context??{}},a=n?t:t-1;for(let s=0;s<=a;s++){const i=e.matches[s];if(!i)continue;const c=e.router.getMatch(i.id);c&&Object.assign(r,c.__routeContext,c.__beforeLoadContext)}return r},sD=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(i=>i.routeId===e.router.routeTree.id),a=r>=0?r:0;let s=n?e.matches.findIndex(i=>i.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=a);for(let i=s;i>=0;i--){const c=e.matches[i];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return i}return n?s:a},Qi=(e,t,n)=>{if(!(!Qr(n)&&!Cr(n)))throw Qr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Qr(n)?"redirected":Cr(n)?"notFound":r.status==="pending"?"success":r.status,context:ic(e,t.index),isFetching:!1,error:n})),Cr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Qr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},dB=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},oD=(e,t,n)=>{const r=ic(e,n);e.updateMatch(t,a=>({...a,context:r}))},yh=(e,t,n)=>{const{id:r,routeId:a}=e.matches[t],s=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Qi(e,e.router.getMatch(r),n);try{s.options.onError?.(n)}catch(i){n=i,Qi(e,e.router.getMatch(r),n)}e.updateMatch(r,i=>(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loadPromise?.resolve(),{...i,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Qr(n)&&!Cr(n)&&(e.serialError??=n)},fB=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Sy(e,t)&&(n.options.loader||n.options.beforeLoad||pB(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{o_(e)},a);r._nonReactive.pendingTimeout=s}},hSe=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;fB(e,t,n,r);const a=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Qi(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},pSe=(e,t,n,r)=>{const a=e.router.getMatch(t);let s=a._nonReactive.loadPromise;a._nonReactive.loadPromise=kd(()=>{s?.resolve(),s=void 0});const{paramsError:i,searchError:c}=a;i&&yh(e,n,i),c&&yh(e,n,c),fB(e,t,r,a);const u=new AbortController;let f=!1;const h=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:u})))},m=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{h(),m()});return}a._nonReactive.beforeLoadPromise=kd();const g={...ic(e,n,!1),...a.__routeContext},{search:y,params:w,cause:b}=a,x=Sy(e,t),E={search:y,abortController:u,params:w,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":b,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},k=R=>{if(R===void 0){e.router.batch(()=>{h(),m()});return}(Qr(R)||Cr(R))&&(h(),yh(e,n,R)),e.router.batch(()=>{h(),e.updateMatch(t,P=>({...P,__beforeLoadContext:R})),m()})};let A;try{if(A=r.options.beforeLoad(E),vp(A))return h(),A.catch(R=>{yh(e,n,R)}).then(k)}catch(R){h(),yh(e,n,R)}k(A)},mSe=(e,t)=>{const{id:n,routeId:r}=e.matches[t],a=e.router.looseRoutesById[r],s=()=>c(),i=()=>pSe(e,n,t,a),c=()=>{if(dB(e,n))return;const u=hSe(e,n,a);return vp(u)?u.then(i):i()};return s()},gSe=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([s,i,c])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:c,scripts:i,styles:s?.styles}))},hB=(e,t,n,r,a)=>{const s=t[r-1],{params:i,loaderDeps:c,abortController:u,cause:f}=e.router.getMatch(n),h=ic(e,r),m=Sy(e,n);return{params:i,deps:c,preload:!!m,parentMatchPromise:s,abortController:u,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:m?"preload":f,route:a,...e.router.options.additionalContext}},iD=async(e,t,n,r,a)=>{try{const s=e.router.getMatch(n);try{(!(eB??e.router.isServer)||s.ssr===!0)&&bp(a);const i=a.options.loader,c=typeof i=="function"?i:i?.handler,u=c?.(hB(e,t,n,r,a)),f=!!c&&vp(u);if((f||a._lazyPromise||a._componentsPromise||a.options.head||a.options.scripts||a.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,m=>({...m,isFetching:"loader"})),c){const m=f?await u:u;Qi(e,e.router.getMatch(n),m),m!==void 0&&e.updateMatch(n,g=>({...g,loaderData:m}))}a._lazyPromise&&await a._lazyPromise;const h=s._nonReactive.minPendingPromise;h&&await h,a._componentsPromise&&await a._componentsPromise,e.updateMatch(n,m=>({...m,error:void 0,context:ic(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(i){let c=i;if(c?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:ic(e,r)}));return}const u=s._nonReactive.minPendingPromise;u&&await u,Cr(i)&&await a.options.notFoundComponent?.preload?.(),Qi(e,e.router.getMatch(n),i);try{a.options.onError?.(i)}catch(f){c=f,Qi(e,e.router.getMatch(n),f)}!Qr(c)&&!Cr(c)&&await bp(a,["errorComponent"]),e.updateMatch(n,f=>({...f,error:c,context:ic(e,r),status:"error",isFetching:!1}))}}catch(s){const i=e.router.getMatch(n);i&&(i._nonReactive.loaderPromise=void 0),Qi(e,i,s)}},vSe=async(e,t,n)=>{async function r(y,w,b,x,E){const k=Date.now()-w.updatedAt,A=y?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,R=E.options.shouldReload,P=typeof R=="function"?R(hB(e,t,a,n,E)):R,{status:O,invalid:T}=x,M=k>=A&&(!!e.forceStaleReload||x.cause==="enter"||b!==void 0&&b!==x.id);i=O==="success"&&(T||(P??M)),y&&E.options.preload===!1||(i&&!e.sync&&h?(c=!0,(async()=>{try{await iD(e,t,a,n,E);const z=e.router.getMatch(a);z._nonReactive.loaderPromise?.resolve(),z._nonReactive.loadPromise?.resolve(),z._nonReactive.loaderPromise=void 0,z._nonReactive.loadPromise=void 0}catch(z){Qr(z)&&await e.router.navigate(z.options)}})()):O!=="success"||i?await iD(e,t,a,n,E):oD(e,a,n))}const{id:a,routeId:s}=e.matches[n];let i=!1,c=!1;const u=e.router.looseRoutesById[s],f=u.options.loader,h=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(dB(e,a)){if(!e.router.getMatch(a))return e.matches[n];oD(e,a,n)}else{const y=e.router.getMatch(a),w=e.router.stores.matchesId.get()[n],b=(w&&e.router.stores.matchStores.get(w)||null)?.routeId===s?w:e.router.stores.matches.get().find(E=>E.routeId===s)?.id,x=Sy(e,a);if(y._nonReactive.loaderPromise){if(y.status==="success"&&!e.sync&&!y.preload&&h)return y;await y._nonReactive.loaderPromise;const E=e.router.getMatch(a),k=E._nonReactive.error||E.error;k&&Qi(e,E,k),E.status==="pending"&&await r(x,y,b,E,u)}else{const E=x&&!e.router.stores.matchStores.has(a),k=e.router.getMatch(a);k._nonReactive.loaderPromise=kd(),E!==k.preload&&e.updateMatch(a,A=>({...A,preload:E})),await r(x,y,b,k,u)}}const m=e.router.getMatch(a);c||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,c||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const g=c?m.isFetching:!1;return g!==m.isFetching||m.invalid!==!1?(e.updateMatch(a,y=>({...y,isFetching:g,invalid:!1})),e.router.getMatch(a)):m};async function lD(e){const t=e,n=[];fSe(t.router)&&o_(t);let r;for(let g=0;g<t.matches.length;g++){try{const y=mSe(t,g);vp(y)&&await y}catch(y){if(Qr(y))throw y;if(Cr(y))r=y;else if(!t.preload)throw y;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const a=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?sD(t,r):void 0,i=r&&t.preload?0:s!==void 0?Math.min(s+1,a):a;let c,u;for(let g=0;g<i;g++)n.push(vSe(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const y of g){if(y.status!=="rejected")continue;const w=y.reason;if(Qr(w))throw w;Cr(w)?c??=w:u??=w}if(u!==void 0)throw u}const f=c??(r&&!t.preload?r:void 0);let h=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=sD(t,f);g===void 0&&jo();const y=t.matches[g],w=t.router.looseRoutesById[y.routeId],b=t.router.options?.defaultNotFoundComponent;!w.options.notFoundComponent&&b&&(w.options.notFoundComponent=b),f.routeId=y.routeId;const x=y.routeId===t.router.routeTree.id;t.updateMatch(y.id,E=>({...E,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),h=g,await bp(w,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,y=>({...y,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await bp(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:y,routeId:w}=t.matches[g],b=t.router.looseRoutesById[w];try{const x=gSe(t,y,b);if(x){const E=await x;t.updateMatch(y,k=>({...k,...E}))}}catch(x){console.error(`Error executing head for route ${w}:`,x)}}const m=o_(t);if(vp(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function cD(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function bp(e,t=Q0){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:a,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===Q0?(()=>{if(e._componentsPromise===void 0){const r=cD(e,Q0);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():cD(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function pB(e){for(const t of Q0)if(e.options[t]?.preload)return!0;return!1}const Q0=["component","errorComponent","pendingComponent","notFoundComponent"];var tl="__TSR_index",uD="popstate",dD="beforeunload";function ySe(e){let t=e.getLocation();const n=new Set,r=i=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:i}))},a=i=>{e.notifyOnIndexChange??!0?r(i):t=e.getLocation()},s=async({task:i,navigateOpts:c,...u})=>{if(c?.ignoreBlocker??!1){i();return}const f=e.getBlockers?.()??[],h=u.type==="PUSH"||u.type==="REPLACE";if(typeof document<"u"&&f.length&&h)for(const m of f){const g=L1(u.path,u.state);if(await m.blockerFn({currentLocation:t,nextLocation:g,action:u.type})){e.onBlocked?.();return}}i()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:i=>(n.add(i),()=>{n.delete(i)}),push:(i,c,u)=>{const f=t.state[tl];c=fD(f+1,c),s({task:()=>{e.pushState(i,c),r({type:"PUSH"})},navigateOpts:u,type:"PUSH",path:i,state:c})},replace:(i,c,u)=>{const f=t.state[tl];c=fD(f,c),s({task:()=>{e.replaceState(i,c),r({type:"REPLACE"})},navigateOpts:u,type:"REPLACE",path:i,state:c})},go:(i,c)=>{s({task:()=>{e.go(i),a({type:"GO",index:i})},navigateOpts:c,type:"GO"})},back:i=>{s({task:()=>{e.back(i?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{s({task:()=>{e.forward(i?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[tl]!==0,createHref:i=>e.createHref(i),block:i=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,i]),()=>{const u=e.getBlockers?.()??[];e.setBlockers?.(u.filter(f=>f!==i))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function fD(e,t){t||(t={});const n=gI();return{...t,key:n,__TSR_key:n,[tl]:e}}function bSe(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const s=()=>a,i=M=>a=M,c=(M=>M),u=(()=>L1(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const M=gI();t.history.replaceState({[tl]:0,key:M,__TSR_key:M},"")}let f=u(),h,m=!1,g=!1,y=!1,w=!1;const b=()=>f;let x,E;const k=()=>{x&&(T._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),T._ignoreSubscribers=!1,x=void 0,E=void 0,h=void 0)},A=(M,z,q)=>{const U=c(z);E||(h=f),f=L1(z,q),x={href:U,state:q,isPush:x?.isPush||M==="push"},E||(E=Promise.resolve().then(()=>k()))},R=M=>{f=u(),T.notify({type:M})},P=async()=>{if(g){g=!1;return}const M=u(),z=M.state[tl]-f.state[tl],q=z===1,U=z===-1,L=!q&&!U||m;m=!1;const B=L?"GO":U?"BACK":"FORWARD",G=L?{type:"GO",index:z}:{type:U?"BACK":"FORWARD"};if(y)y=!1;else{const ie=s();if(typeof document<"u"&&ie.length){for(const $ of ie)if(await $.blockerFn({currentLocation:f,nextLocation:M,action:B})){g=!0,t.history.go(1),T.notify(G);return}}}f=u(),T.notify(G)},O=M=>{if(w){w=!1;return}let z=!1;const q=s();if(typeof document<"u"&&q.length)for(const U of q){const L=U.enableBeforeUnload??!0;if(L===!0){z=!0;break}if(typeof L=="function"&&L()===!0){z=!0;break}}if(z)return M.preventDefault(),M.returnValue=""},T=ySe({getLocation:b,getLength:()=>t.history.length,pushState:(M,z)=>A("push",M,z),replaceState:(M,z)=>A("replace",M,z),back:M=>(M&&(y=!0),w=!0,t.history.back()),forward:M=>{M&&(y=!0),w=!0,t.history.forward()},go:M=>{m=!0,t.history.go(M)},createHref:M=>c(M),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(dD,O,{capture:!0}),t.removeEventListener(uD,P)},onBlocked:()=>{h&&f!==h&&(f=h)},getBlockers:s,setBlockers:i,notifyOnIndexChange:!1});return t.addEventListener(dD,O,{capture:!0}),t.addEventListener(uD,P),t.history.pushState=function(...M){const z=n.apply(t.history,M);return T._ignoreSubscribers||R("PUSH"),z},t.history.replaceState=function(...M){const z=r.apply(t.history,M);return T._ignoreSubscribers||R("REPLACE"),z},T}function SSe(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function L1(e,t){const n=SSe(e),r=n.indexOf("#"),a=n.indexOf("?"),s=gI();return{href:n,pathname:n.substring(0,r>0?a>0?Math.min(r,a):r:a>0?a:n.length),hash:r>-1?n.substring(r):"",search:a>-1?n.slice(a,r===-1?void 0:r):"",state:t||{[tl]:0,key:s,__TSR_key:s}}}function gI(){return(Math.random()+1).toString(36).substring(7)}function md(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var wSe=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,a=this.basepath??r?.basepath??"/",s=this.basepath===void 0,i=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ybe(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=bSe()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=yp(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=dSe(CSe(this.latestLocation),h),nSe(this)}let c=!1;const u=this.options.basepath??"/",f=this.options.rewrite;if(s||a!==u||i!==f){this.basepath=u;const h=[],m=lB(u);m&&m!=="/"&&h.push(uSe({basepath:u})),f&&h.push(f),this.rewrite=h.length===0?void 0:h.length===1?h[0]:cSe(h),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=Hbe(this.routeTree,this.options.caseSensitive,(r,a)=>{r.init({originalIndex:a})});return this.options.routeMasks&&zbe(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({pathname:u,search:f,hash:h,href:m,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(u)){const E=this.options.parseSearch(f),k=this.options.stringifySearch(E);return{href:u+k+h,publicHref:u+k+h,pathname:vh(u).path,external:!1,searchStr:k,search:Bl(r?.search,E),hash:vh(h.slice(1)).path,state:Ql(r?.state,g)}}const y=new URL(m,this.origin),w=s_(this.rewrite,y),b=this.options.parseSearch(w.search),x=this.options.stringifySearch(b);return w.search=x,{href:w.href.replace(w.origin,""),publicHref:m,pathname:vh(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:x,search:Bl(r?.search,b),hash:vh(w.hash.slice(1)).path,state:Ql(r?.state,g)}},s=a(n),{__tempLocation:i,__tempKey:c}=s.state;if(i&&(!c||c===this.tempLocationKey)){const u=a(i);return u.state.key=s.state.key,u.state.__TSR_key=s.state.__TSR_key,delete u.state.__tempLocation,{...u,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>Kbe({base:n,to:r.includes("//")?mI(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>ESe({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const i=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(i);s.from;const u=s.unsafeRelative==="path"?i.pathname:s.from??c.fullPath,f=s.to?`${s.to}`:void 0,h=c.search,m=Object.assign(Object.create(null),c.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(u,"."),y=f?this.resolvePathWithBase(g,f):g,w=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?m:Object.assign(m,Xl(s.params,m)),b=this.routesByPath[zo(y)];let x;if(b)x=this.getRouteBranch(b);else if(y.includes("$"))x=[];else{const U=this.getMatchedRoutes(y);x=U.matchedRoutes,this.options.notFoundRoute&&(!U.foundRoute||U.foundRoute.path!=="/"&&U.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&nB(w))for(const U of x){const L=U.options.params?.stringify??U.options.stringifyParams;if(L)try{Object.assign(w,L(w))}catch{}}const E=n.leaveParams?y:vh(tD({path:y,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let k=h;if(n._includeValidateSearch&&this.options.search?.strict){const U={};x.forEach(L=>{if(L.options.validateSearch)try{Object.assign(U,J0(L.options.validateSearch,{...U,...k}))}catch{}}),k=U}k=_Se({search:k,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),k=Bl(h,k);const A=this.options.stringifySearch(k),R=s.hash===!0?i.hash:s.hash?Xl(s.hash,i.hash):void 0,P=R?`#${R}`:"";let O=s.state===!0?i.state:s.state?Xl(s.state,i.state):{};O=Ql(i.state,O);const T=`${E}${A}${P}`;let M,z,q=!1;if(this.rewrite){const U=new URL(T,this.origin),L=uB(this.rewrite,U);M=U.href.replace(U.origin,""),L.origin!==this.origin?(z=L.href,q=!0):z=L.pathname+L.search+L.hash}else M=Dbe(T),z=M;return{publicHref:z,href:M,pathname:E,search:k,searchStr:A,state:O,hash:R??"",external:q,unmaskOnReload:s.unmaskOnReload}},a=(s={},i)=>{const c=r(s);let u=i?r(i):void 0;if(!u){const f=Object.create(null);if(this.options.routeMasks){const h=jbe(c.pathname,this.processedTree);if(h){Object.assign(f,h.rawParams);const{from:m,params:g,...y}=h.route,w=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,Xl(g,f));i={from:n.from,...y,params:w},u=r(i)}}}return u&&(c.maskedLocation=u),c};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...a})=>{let s;const i=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(m=>{a.state[m]=this.latestLocation.state[m]});const h=sc(a.state,this.latestLocation.state);return f.forEach(m=>{delete a.state[m]}),h},c=zo(this.latestLocation.href)===zo(a.href);let u=this.commitLocationPromise;if(this.commitLocationPromise=kd(()=>{u?.resolve(),u=void 0}),c&&i())this.load();else{let{maskedLocation:f,hashScrollIntoView:h,...m}=a;f&&(m={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,s=a.replace?"REPLACE":"PUSH",this.history[s==="REPLACE"?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this._scroll.next=a.resetScroll??!0,this.history.subscribers.size||this.load(s?{action:{type:s}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:s,ignoreBlocker:i,href:c,...u}={})=>{if(c){const m=this.history.location.state.__TSR_index,g=L1(c,{__TSR_index:n?m:m+1}),y=new URL(g.pathname,this.origin);u.to=s_(this.rewrite,y).pathname,u.search=this.options.parseSearch(g.search),u.hash=g.hash.slice(1)}const f=this.buildLocation({...u,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const h=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:r,href:a,publicHref:s,...i})=>{let c=!1;if(a)try{new URL(`${a}`),c=!0}catch{}if(c&&!r&&(r=!0),r){if(n!==void 0||!a){const f=this.buildLocation({to:n,...i});a=a??f.publicHref,s=s??f.publicHref}const u=!c&&s?s:a;if(P1(u,this.protocolAllowlist))return;if(!i.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const h of f)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}i.replace?window.location.replace(u):window.location.href=u;return}return this.buildAndCommitLocation({...i,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(a=>!n.some(s=>s.id===a.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{const r=n?.action?.type;let a,s,i;const c=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad(),r&&(this._scroll.hash=r==="PUSH"||r==="REPLACE");const h=this.latestLocation,m=md(h,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await lD({router:this,sync:n?.sync,forceStaleReload:c.href===h.href,matches:this.stores.pendingMatches.get(),location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,y=null,w=null,b=null;this.batch(()=>{const x=this.stores.pendingMatches.get(),E=x.length,k=this.stores.matches.get();g=E?k.filter(P=>!this.stores.pendingMatchStores.has(P.id)):null;const A=new Set;for(const P of this.stores.pendingMatchStores.values())P.routeId&&A.add(P.routeId);const R=new Set;for(const P of this.stores.matchStores.values())P.routeId&&R.add(P.routeId);y=E?k.filter(P=>!A.has(P.routeId)):null,w=E?x.filter(P=>!R.has(P.routeId)):null,b=E?x.filter(P=>R.has(P.routeId)):k,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),E&&(this.stores.setMatches(x),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[x,E]of[[y,"onLeave"],[w,"onEnter"],[b,"onStay"]])if(x)for(const k of x)this.looseRoutesById[k.routeId].options[E]?.(k)})})}})}catch(h){Qr(h)?(a=h,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):Cr(h)&&(s=h);const m=a?a.status:s?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(a)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.stores.matches.get().some(f=>f.status==="error")&&(u=500),u!==void 0&&this.stores.statusCode.set(u)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,i=this.stores.resolvedLocation.get(),c=typeof r.types=="function"?r.types(md(s,i)):r.types;if(c===!1){n();return}a={update:n,types:c}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const a=this.stores.pendingMatchStores.get(n);if(a){a.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const i=this.stores.cachedMatchStores.get(n);if(i){const c=r(i.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(u=>u.filter(f=>f!==n)):i.set(c)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const a=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(a);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const a=new URL(r);if(this.origin&&a.origin===this.origin){const s=a.pathname+a.search+a.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&P1(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(a=>!r(a))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=a=>{const s=this.looseRoutesById[a.routeId];if(!s.options.loader)return!0;const i=(a.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return a.status==="error"?!0:n-a.updatedAt>=i};this.clearCache({filter:r})},this.loadRouteChunk=bp,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...s,...this.stores.cachedIds.get()]),c=a.filter(u=>!i.has(u.id));if(c.length){const u=this.stores.cachedMatches.get();this.stores.setCached([...u,...c])}try{return a=await lD({router:this,matches:a,location:r,preload:!0,updateMatch:(u,f)=>{s.has(u)?a=a.map(h=>h.id===u?f(h):h):this.updateMatch(u,f)}}),a}catch(u){if(Qr(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:r});Cr(u)||console.error(u);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(a);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const i=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=Fbe(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,i.pathname,this.processedTree);return!c||n.params&&!sc(c.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?sc(i.search,s.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??oSe,parseSearch:e.parseSearch??sSe,protocolAllowlist:e.protocolAllowlist??Pbe}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oB(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:a}=n;let{matchedRoutes:s}=n,i=!1;(r?r.path!=="/"&&a["**"]:zo(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:i=!0);const c=i?ASe(this.options.notFoundMode,s):void 0,u=new Array(s.length),f=new Map;for(const h of this.stores.matchStores.values())h.routeId&&f.set(h.routeId,h.get());for(let h=0;h<s.length;h++){const m=s[h],g=u[h-1];let y,w,b;{const L=g?.search??e.search,B=g?._strictSearch??void 0;try{const G=J0(m.options.validateSearch,{...L})??void 0;y={...L,...G},w={...B,...G},b=void 0}catch(G){let ie=G;if(G instanceof U1||(ie=new U1(G.message,{cause:G})),t?.throwOnError)throw ie;y=L,w={},b=ie}}const x=m.options.loaderDeps?.({search:y})??"",E=x?JSON.stringify(x):"",{interpolatedPath:k,usedParams:A}=tD({path:m.fullPath,params:a,decoder:this.pathParamsDecoder,server:this.isServer}),R=m.id+k+E,P=this.getMatch(R),O=f.get(m.id),T=P?._strictParams??A;let M;if(!P)try{hD(m,T)}catch(L){if(Cr(L)||Qr(L)?M=L:M=new xSe(L.message,{cause:L}),t?.throwOnError)throw M}Object.assign(a,T);const z=O?"stay":"enter";let q;if(P)q={...P,cause:z,params:O?.params??a,_strictParams:T,search:Bl(O?O.search:P.search,y),_strictSearch:w};else{const L=m.options.loader||m.options.beforeLoad||m.lazyFn||pB(m)?"pending":"success";q={id:R,ssr:m.options.ssr,index:h,routeId:m.id,params:O?.params??a,_strictParams:T,pathname:k,updatedAt:Date.now(),search:O?Bl(O.search,y):y,_strictSearch:w,searchError:void 0,status:L,isFetching:!1,error:void 0,paramsError:M,__routeContext:void 0,_nonReactive:{loadPromise:kd()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:z,loaderDeps:O?Ql(O.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(q.globalNotFound=c===m.id),q.searchError=b;const U=this.getParentContext(g);q.context={...U,...q.__routeContext,...q.__beforeLoadContext},u[h]=q}for(let h=0;h<u.length;h++){const m=u[h],g=this.looseRoutesById[m.routeId],y=this.getMatch(m.id),w=f.get(m.routeId);if(m.params=w?Bl(w.params,a):a,!y){const b=u[h-1],x=this.getParentContext(b);if(g.options.context){const E={deps:m.loaderDeps,params:m.params,context:x??{},location:e,navigate:k=>this.navigate({...k,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:u,routeId:g.id};m.__routeContext=g.options.context(E)??void 0}m.context={...x,...m.__routeContext,...m.__beforeLoadContext}}}return u}matchRoutesLightweight(e){const t=gp(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];const{matchedRoutes:r,routeParams:a}=this.getMatchedRoutes(e.pathname),s=gp(r),i={...e.search};for(const m of r)try{Object.assign(i,J0(m.options.validateSearch,i))}catch{}const c=t&&this.stores.matchStores.get(t)?.get(),u=c&&c.routeId===s.id&&c.pathname===e.pathname;let f;if(u)f=c.params;else{const m=Object.assign(Object.create(null),a);for(const g of r)try{hD(g,m)}catch{}f=m}const h={matchedRoutes:r,fullPath:s.fullPath,search:i,params:f};return this.lightweightCache.set(e,[t,h]),h}},U1=class extends Error{},xSe=class extends Error{};function CSe(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function J0(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new U1("Async validation not supported");if(n.issues)throw new U1(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function ESe({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),a=zo(e);let s;const i=$be(a,n,!0);return i&&(s=i.route,Object.assign(r,i.rawParams)),{matchedRoutes:i?.branch||[t.__root__],routeParams:r,foundRoute:s}}function _Se({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return kSe(n)(e,t,r??!1)}function kSe(e){let t,n;const r=[];for(const s of e){const i=s.options;if("search"in i)i.search?.middlewares&&r.push(...i.search.middlewares);else if(i.preSearchFilters||i.postSearchFilters){const u=({search:f,next:h})=>{const m=h(i.preSearchFilters?i.preSearchFilters.reduce((g,y)=>y(g),f):f);return i.postSearchFilters?i.postSearchFilters.reduce((g,y)=>y(g),m):m};r.push(u)}const c=i.validateSearch;if(c){const u=({search:f,next:h,meta:m})=>{const g=h(f);if(n)try{const y=J0(c,g);if(m&&y)for(const w in y)w in g||(m.defaulted||=new Map).set(w,y[w]);return{...g,...y}}catch{}return g};r.push(u)}}const a=(s,i,c)=>{if(s>=r.length){if(!t.search)return{};if(t.search===!0)return i;const f=Xl(t.search,i);return c&&(c.explicit=f),f}const u=(f,h)=>{if(h){const m=c||{};return{search:a(s+1,f,m),meta:m}}return a(s+1,f,c)};return r[s]({search:i,next:u,meta:c})};return function(i,c,u){return t=c,n=u,a(0,i)}}function ASe(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return oc}function hD(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const ISe="Error preloading route! ☝️";var mB=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=oc:this.parentRoute||jo();let a=r?oc:n?.path;a&&a!=="/"&&(a=iB(a));const s=n?.id||a;let i=r?oc:Z0([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);a==="__root__"&&(a="/"),i!=="__root__"&&(i=Z0(["/",i]));const c=i==="__root__"?"/":Z0([this.parentRoute.fullPath,a]);this._path=a,this._id=i,this._fullPath=c,this._to=zo(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>em({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},TSe=class extends mB{constructor(e){super(e)}};function vI(e){const t=e.errorComponent??yI;return C.jsx(RSe,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?_.createElement(t,{error:n,reset:r}):e.children})}var RSe=class extends _.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function yI({error:e}){const[t,n]=_.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function OSe({children:e,fallback:t=null}){return gB()?C.jsx(F.Fragment,{children:e}):C.jsx(F.Fragment,{children:t})}function gB(){return F.useSyncExternalStore(NSe,()=>!0,()=>!1)}function NSe(){return()=>{}}var vB=_.createContext(null);function _r(e){return _.useContext(vB)}var wy=_.createContext(void 0),MSe=_.createContext(void 0),fn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(fn||{});function PSe({update:e,notify:t,unwatched:n}){return{link:r,unlink:a,propagate:s,checkDirty:i,shallowPropagate:c};function r(f,h,m){const g=h.depsTail;if(g!==void 0&&g.dep===f)return;const y=g!==void 0?g.nextDep:h.deps;if(y!==void 0&&y.dep===f){y.version=m,h.depsTail=y;return}const w=f.subsTail;if(w!==void 0&&w.version===m&&w.sub===h)return;const b=h.depsTail=f.subsTail={version:m,dep:f,sub:h,prevDep:g,nextDep:y,prevSub:w,nextSub:void 0};y!==void 0&&(y.prevDep=b),g!==void 0?g.nextDep=b:h.deps=b,w!==void 0?w.nextSub=b:f.subs=b}function a(f,h=f.sub){const m=f.dep,g=f.prevDep,y=f.nextDep,w=f.nextSub,b=f.prevSub;return y!==void 0?y.prevDep=g:h.depsTail=g,g!==void 0?g.nextDep=y:h.deps=y,w!==void 0?w.prevSub=b:m.subsTail=b,b!==void 0?b.nextSub=w:(m.subs=w)===void 0&&n(m),y}function s(f){let h=f.nextSub,m;e:do{const g=f.sub;let y=g.flags;if(y&60?y&12?y&4?!(y&48)&&u(f,g)?(g.flags=y|40,y&=1):y=0:g.flags=y&-9|32:y=0:g.flags=y|32,y&2&&t(g),y&1){const w=g.subs;if(w!==void 0){const b=(f=w).nextSub;b!==void 0&&(m={value:h,prev:m},h=b);continue}}if((f=h)!==void 0){h=f.nextSub;continue}for(;m!==void 0;)if(f=m.value,m=m.prev,f!==void 0){h=f.nextSub;continue e}break}while(!0)}function i(f,h){let m,g=0,y=!1;e:do{const w=f.dep,b=w.flags;if(h.flags&16)y=!0;else if((b&17)===17){if(e(w)){const x=w.subs;x.nextSub!==void 0&&c(x),y=!0}}else if((b&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(m={value:f,prev:m}),f=w.deps,h=w,++g;continue}if(!y){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=h.subs,E=x.nextSub!==void 0;if(E?(f=m.value,m=m.prev):f=x,y){if(e(h)){E&&c(x),h=f.sub;continue}y=!1}else h.flags&=-33;h=f.sub;const k=f.nextDep;if(k!==void 0){f=k;continue e}}return y}while(!0)}function c(f){do{const h=f.sub,m=h.flags;(m&48)===32&&(h.flags=m|16,(m&6)===2&&t(h))}while((f=f.nextSub)!==void 0)}function u(f,h){let m=h.depsTail;for(;m!==void 0;){if(m===f)return!0;m=m.prevDep}return!1}}function DSe(e,t,n){const r=typeof e=="object",a=r?e:void 0;return{next:(r?e.next:e)?.bind(a),error:(r?e.error:t)?.bind(a),complete:(r?e.complete:n)?.bind(a)}}const i_=[];let e1=0;const{link:pD,unlink:LSe,propagate:USe,checkDirty:yB,shallowPropagate:mD}=PSe({update(e){return e._update()},notify(e){i_[l_++]=e,e.flags&=~fn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=fn.Mutable|fn.Dirty,z1(e))}});let e0=0,l_=0,Ps,c_=0;function bB(e){try{++c_,e()}finally{--c_||SB()}}function z1(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=LSe(n,e)}function SB(){if(!(c_>0)){for(;e0<l_;){const e=i_[e0];i_[e0++]=void 0,e.notify()}e0=0,l_=0}}function gD(e,t){const n=typeof e=="function",r=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?fn.None:fn.Mutable,get(){return Ps!==void 0&&pD(a,Ps,e1),a._snapshot},subscribe(s){const i=DSe(s),c={current:!1},u=zSe(()=>{a.get(),c.current?i.next?.(a._snapshot):c.current=!0});return{unsubscribe:()=>{u.stop()}}},_update(s){const i=Ps,c=t?.compare??Object.is;if(n)Ps=a,++e1,a.depsTail=void 0;else if(s===void 0)return!1;n&&(a.flags=fn.Mutable|fn.RecursedCheck);try{const u=a._snapshot,f=typeof s=="function"?s(u):s===void 0&&n?r(u):s;return u===void 0||!c(u,f)?(a._snapshot=f,!0):!1}finally{Ps=i,n&&(a.flags&=~fn.RecursedCheck),z1(a)}}};return n?(a.flags=fn.Mutable|fn.Dirty,a.get=function(){const s=a.flags;if(s&fn.Dirty||s&fn.Pending&&yB(a.deps,a)){if(a._update()){const i=a.subs;i!==void 0&&mD(i)}}else s&fn.Pending&&(a.flags=s&~fn.Pending);return Ps!==void 0&&pD(a,Ps,e1),a._snapshot}):a.set=function(s){if(a._update(s)){const i=a.subs;i!==void 0&&(USe(i),mD(i),SB())}},a}function zSe(e){const t=()=>{const r=Ps;Ps=n,++e1,n.depsTail=void 0,n.flags=fn.Watching|fn.RecursedCheck;try{return e()}finally{Ps=r,n.flags&=~fn.RecursedCheck,z1(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:fn.Watching|fn.RecursedCheck,notify(){const r=this.flags;r&fn.Dirty||r&fn.Pending&&yB(this.deps,this)?t():this.flags=fn.Watching},stop(){this.flags=fn.None,this.depsTail=void 0,z1(this)}};return t(),n}function jSe(e,t){return e===t}function Er(e,t,n=jSe){const r=_.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(i);return c},[e]),a=_.useCallback(()=>e?.get(),[e]);return yF.useSyncExternalStoreWithSelector(r,a,a,t,n)}var gE={get(){},subscribe(){return{unsubscribe(){}}}};function bI(e,t){const n=_.useRef();return r=>{const a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ql(n.current,a):a}}function Uc(e){const t=_r(),n=_.useContext(e.from?MSe:wy),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=bI(e,t),s=Er(r??gE,i=>i?a(i):gE);if(s!==gE)return s;(e.shouldThrow??!0)&&jo()}function wB(e){return Uc({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function xB(e){const{select:t,...n}=e;return Uc({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function gd(e){return Uc({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function lc(e){return Uc({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Qs(e){const t=_r();return _.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function SPe(e){const t=_r(),n=Qs(),r=_.useRef(null);return nd(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function CB(e){return Uc({...e,select:t=>e.select?e.select(t.context):t.context})}function FSe(e,t){const n=_r(),r=Ibe(t),{activeProps:a,inactiveProps:s,activeOptions:i,to:c,preload:u,preloadDelay:f,preloadIntentProximity:h,hashScrollIntoView:m,replace:g,startTransition:y,resetScroll:w,viewTransition:b,children:x,target:E,disabled:k,style:A,className:R,onClick:P,onBlur:O,onFocus:T,onMouseEnter:M,onMouseLeave:z,onTouchStart:q,ignoreBlocker:U,params:L,search:B,hash:G,state:ie,mask:$,reloadDocument:X,unsafeRelative:re,from:pe,_fromLocation:_e,...j}=e,Y=gB(),Z=_.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Q=Er(n.stores.location,Lt=>Lt,(Lt,In)=>Lt.href===In.href),se=_.useMemo(()=>{const Lt={_fromLocation:Q,...Z};return n.buildLocation(Lt)},[n,Q,Z]),le=se.maskedLocation?se.maskedLocation.publicHref:se.publicHref,me=se.maskedLocation?se.maskedLocation.external:se.external,te=_.useMemo(()=>WSe(le,me,n.history,k),[k,me,le,n.history]),ve=_.useMemo(()=>{if(te?.external)return P1(te.href,n.protocolAllowlist)?void 0:te.href;if(!GSe(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),P1(c,n.protocolAllowlist)?void 0:c}catch{}},[c,te,n.protocolAllowlist]),Le=_.useMemo(()=>{if(ve)return!1;if(i?.exact){if(!Gbe(Q.pathname,se.pathname,n.basepath))return!1}else{const Lt=D1(Q.pathname,n.basepath),In=D1(se.pathname,n.basepath);if(!(Lt.startsWith(In)&&(Lt.length===In.length||Lt[In.length]==="/")))return!1}return(i?.includeSearch??!0)&&!sc(Q.search,se.search,{partial:!i?.exact,ignoreUndefined:!i?.explicitUndefined})?!1:i?.includeHash?Y&&Q.hash===se.hash:!0},[i?.exact,i?.explicitUndefined,i?.includeHash,i?.includeSearch,Q,ve,Y,se.hash,se.pathname,se.search,n.basepath]),we=Le?Xl(a,{})??$Se:vE,nt=Le?vE:Xl(s,{})??vE,Ue=[R,we.className,nt.className].filter(Boolean).join(" "),He=(A||we.style||nt.style)&&{...A,...we.style,...nt.style},[Ht,Ie]=_.useState(!1),gr=_.useRef(!1),qe=e.reloadDocument||ve?!1:u??n.options.defaultPreload,jr=f??n.options.defaultPreloadDelay??0,un=_.useCallback(()=>{n.preloadRoute({...Z,_builtLocation:se}).catch(Lt=>{console.warn(Lt),console.warn(ISe)})},[n,Z,se]);Abe(r,_.useCallback(Lt=>{Lt?.isIntersecting&&un()},[un]),VSe,{disabled:!!k||qe!=="viewport"}),_.useEffect(()=>{gr.current||!k&&qe==="render"&&(un(),gr.current=!0)},[k,un,qe]);const rr=Lt=>{const In=Lt.currentTarget.getAttribute("target"),$r=E!==void 0?E:In;if(!k&&!YSe(Lt)&&!Lt.defaultPrevented&&(!$r||$r==="_self")&&Lt.button===0){Lt.preventDefault(),Qte.flushSync(()=>{Ie(!0)});const vr=n.subscribe("onResolved",()=>{vr(),Ie(!1)});n.navigate({...Z,replace:g,resetScroll:w,hashScrollIntoView:m,startTransition:y,viewTransition:b,ignoreBlocker:U})}};if(ve)return{...j,ref:r,href:ve,...x&&{children:x},...E&&{target:E},...k&&{disabled:k},...A&&{style:A},...R&&{className:R},...P&&{onClick:P},...O&&{onBlur:O},...T&&{onFocus:T},...M&&{onMouseEnter:M},...z&&{onMouseLeave:z},...q&&{onTouchStart:q}};const gs=Lt=>{if(k||qe!=="intent")return;if(!jr){un();return}const In=Lt.currentTarget;if(bh.has(In))return;const $r=setTimeout(()=>{bh.delete(In),un()},jr);bh.set(In,$r)},Fr=Lt=>{k||qe!=="intent"||un()},Fn=Lt=>{if(k||!qe||!jr)return;const In=Lt.currentTarget,$r=bh.get(In);$r&&(clearTimeout($r),bh.delete(In))};return{...j,...we,...nt,href:te?.href,ref:r,onClick:Lu([P,rr]),onBlur:Lu([O,Fn]),onFocus:Lu([T,gs]),onMouseEnter:Lu([M,gs]),onMouseLeave:Lu([z,Fn]),onTouchStart:Lu([q,Fr]),disabled:!!k,target:E,...He&&{style:He},...Ue&&{className:Ue},...k&&BSe,...Le&&HSe,...Y&&Ht&&qSe}}var vE={},$Se={className:"active"},BSe={role:"link","aria-disabled":!0},HSe={"data-status":"active","aria-current":"page"},qSe={"data-transitioning":"transitioning"},bh=new WeakMap,VSe={rootMargin:"100px"},Lu=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function WSe(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function GSe(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}function KSe(e){return _.forwardRef(function(n,r){return C.jsx(SI,{...n,_asChild:e,ref:r})})}var SI=_.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,...s}=FSe(r,t),i=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:c,...u}=s;return _.createElement("a",u,i)}return _.createElement(n,s,i)});function YSe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var ZSe=class extends mB{constructor(t){super(t),this.useMatch=n=>Uc({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>CB({...n,from:this.id}),this.useSearch=n=>lc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>gd({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>xB({...n,from:this.id}),this.useLoaderData=n=>wB({...n,from:this.id}),this.useNavigate=()=>Qs({from:this.fullPath}),this.Link=F.forwardRef((n,r)=>C.jsx(SI,{ref:r,from:this.fullPath,...n}))}};function XSe(e){return new ZSe(e)}function QSe(){return e=>ewe(e)}var JSe=class extends TSe{constructor(e){super(e),this.useMatch=t=>Uc({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>CB({...t,from:this.id}),this.useSearch=t=>lc({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>gd({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>xB({...t,from:this.id}),this.useLoaderData=t=>wB({...t,from:this.id}),this.useNavigate=()=>Qs({from:this.fullPath}),this.Link=F.forwardRef((t,n)=>C.jsx(SI,{ref:n,from:this.fullPath,...t}))}};function ewe(e){return new JSe(e)}function $e(e){return new twe(e,{silent:!0}).createRoute}var twe=class{constructor(e,t){this.path=e,this.createRoute=n=>{const r=XSe(n);return r.isRoot=!1,r},this.silent=t?.silent}};function Ge(e,t){let n,r,a,s;const i=()=>(n||(n=e().then(u=>{n=void 0,r=u[t??"default"]}).catch(u=>{if(a=u,Obe(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),c=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!r)if(K7)K7(i());else throw i();return _.createElement(r,f)};return c.preload=i,c}function nwe(e){const t=_r(),n=`not-found-${Er(t.stores.location,r=>r.pathname)}-${Er(t.stores.status,r=>r)}`;return C.jsx(vI,{getResetKey:()=>n,onCatch:(r,a)=>{if(Cr(r))e.onCatch?.(r,a);else throw r},errorComponent:({error:r})=>{if(Cr(r))return e.fallback?.(r);throw r},children:e.children})}function rwe(){return C.jsx("p",{children:"Not Found"})}function Yu(e){return C.jsx(C.Fragment,{children:e.children})}function EB(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(rwe,{})}function awe(e){return null}function swe(){return awe(_r()),null}var owe=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,iwe=(e,t)=>e[0]===t[0]&&e[1]===t[1],_B=_.memo(function({matchId:t}){const n=_r(),r=n.stores.matchStores.get(t);r||jo();const a=Er(n.stores.loadedAt,i=>i),s=Er(r,i=>i,owe);return C.jsx(lwe,{router:n,matchId:t,resetKey:a,matchState:_.useMemo(()=>{const i=s.routeId,c=n.routesById[i].parentRoute?.id;return{routeId:i,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:c}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function lwe({router:e,matchId:t,resetKey:n,matchState:r}){const a=e.routesById[r.routeId],s=a.options.pendingComponent??e.options.defaultPendingComponent,i=s?C.jsx(s,{}):null,c=a.options.errorComponent??e.options.defaultErrorComponent,u=a.options.onCatch??e.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,h=r.ssr===!1||r.ssr==="data-only",m=(!a.isRoot||a.options.wrapInSuspense||h)&&(a.options.wrapInSuspense??s??(a.options.errorComponent?.preload||h))?_.Suspense:Yu,g=c?vI:Yu,y=f?nwe:Yu;return C.jsxs(a.isRoot?a.options.shellComponent??Yu:Yu,{children:[C.jsx(wy.Provider,{value:t,children:C.jsx(m,{fallback:i,children:C.jsx(g,{getResetKey:()=>n,errorComponent:c||yI,onCatch:(w,b)=>{if(Cr(w))throw w.routeId??=r.routeId,w;u?.(w,b)},children:C.jsx(y,{fallback:w=>{if(w.routeId??=r.routeId,!f||w.routeId&&w.routeId!==r.routeId||!w.routeId&&!a.isRoot)throw w;return _.createElement(f,w)},children:h||r._displayPending?C.jsx(OSe,{fallback:i,children:C.jsx(vD,{matchId:t})}):C.jsx(vD,{matchId:t})})})})}),r.parentRouteId===oc?C.jsxs(C.Fragment,{children:[C.jsx(cwe,{}),e.options.scrollRestoration&&eB?C.jsx(swe,{}):null]}):null]})}function cwe(){const e=_r(),t=_.useRef();return nd(()=>{const n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:"onRendered",...md(e.stores.location.get(),r??n)}),t.current=n},[Er(e.stores.resolvedLocation,n=>n?.state.__TSR_key),e]),null}var vD=_.memo(function({matchId:t}){const n=_r(),r=(h,m)=>n.getMatch(h.id)?._nonReactive[m]??h._nonReactive[m],a=n.stores.matchStores.get(t);a||jo();const s=Er(a,h=>h),i=s.routeId,c=n.routesById[i],u=_.useMemo(()=>{const h=(n.routesById[i].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:i,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return h?JSON.stringify(h):void 0},[i,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=_.useMemo(()=>{const h=c.options.component??n.options.defaultComponent;return h?C.jsx(h,{},u):C.jsx(kB,{})},[u,c.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const h=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(h){const m=n.getMatch(s.id);if(m&&!m._nonReactive.minPendingPromise){const g=kd();m._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Cr(s.error)||jo(),EB(n,c,s.error);if(s.status==="redirected")throw Qr(s.error)||jo(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),kB=_.memo(function(){const t=_r(),n=_.useContext(wy);let r,a=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,a]=Er(f,h=>[h?.routeId,h?.globalNotFound??!1],iwe),s=Er(t.stores.matchesId,h=>h[h.findIndex(m=>m===n)+1])}const i=r?t.routesById[r]:void 0,c=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(a)return i||jo(),EB(t,i,void 0);if(!s)return null;const u=C.jsx(_B,{matchId:s});return r===oc?C.jsx(_.Suspense,{fallback:c,children:u}):u});function uwe(){const e=_r(),t=_.useRef({router:e,mounted:!1}),[n,r]=_.useState(!1),a=Er(e.stores.isLoading,m=>m),s=Er(e.stores.hasPending,m=>m),i=cE(a),c=a||n||s,u=cE(c),f=a||s,h=cE(f);return e.startTransition=m=>{r(!0),_.startTransition(()=>{m(),r(!1)})},_.useEffect(()=>{const m=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return zo(e.latestLocation.publicHref)!==zo(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{m()}},[e,e.history]),nd(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),nd(()=>{i&&!a&&e.emit({type:"onLoad",...md(e.stores.location.get(),e.stores.resolvedLocation.get())})},[i,e,a]),nd(()=>{h&&!f&&e.emit({type:"onBeforeRouteMount",...md(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,h,e]),nd(()=>{if(u&&!c){const m=md(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...m}),bB(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[c,u,e]),null}function dwe(){const e=_r(),t=e.routesById[oc].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?Yu:_.Suspense,{fallback:n,children:[C.jsx(uwe,{}),C.jsx(fwe,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function fwe(){const e=_r(),t=Er(e.stores.firstId,a=>a),n=Er(e.stores.loadedAt,a=>a),r=t?C.jsx(_B,{matchId:t}):null;return C.jsx(wy.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(vI,{getResetKey:()=>n,errorComponent:yI,onCatch:void 0,children:r})})}var hwe=e=>({createMutableStore:gD,createReadonlyStore:gD,batch:bB}),pwe=e=>new mwe(e),mwe=class extends wSe{constructor(e){super(e,hwe)}};function gwe({router:e,children:t,...n}){nB(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(vB.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function vwe({router:e,...t}){return C.jsx(gwe,{router:e,...t,children:C.jsx(dwe,{})})}function ywe(e){const t=_r({warn:e?.router===void 0}),n=e?.router||t;return Er(n.stores.__store,bI(e,n))}function AB(e){const t=_r();return Er(t.stores.location,bI(e,t))}var yE={exports:{}},Sh={},bE={exports:{}},SE={};var yD;function bwe(){return yD||(yD=1,(function(e){function t($,X){var re=$.length;$.push(X);e:for(;0<re;){var pe=re-1>>>1,_e=$[pe];if(0<a(_e,X))$[pe]=X,$[re]=_e,re=pe;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var X=$[0],re=$.pop();if(re!==X){$[0]=re;e:for(var pe=0,_e=$.length,j=_e>>>1;pe<j;){var Y=2*(pe+1)-1,Z=$[Y],Q=Y+1,se=$[Q];if(0>a(Z,re))Q<_e&&0>a(se,Z)?($[pe]=se,$[Q]=re,pe=Q):($[pe]=Z,$[Y]=re,pe=Y);else if(Q<_e&&0>a(se,re))$[pe]=se,$[Q]=re,pe=Q;else break e}}return X}function a($,X){var re=$.sortIndex-X.sortIndex;return re!==0?re:$.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var u=[],f=[],h=1,m=null,g=3,y=!1,w=!1,b=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function R($){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=$)r(f),X.sortIndex=X.expirationTime,t(u,X);else break;X=n(f)}}function P($){if(b=!1,R($),!w)if(n(u)!==null)w=!0,O||(O=!0,L());else{var X=n(f);X!==null&&ie(P,X.startTime-$)}}var O=!1,T=-1,M=5,z=-1;function q(){return x?!0:!(e.unstable_now()-z<M)}function U(){if(x=!1,O){var $=e.unstable_now();z=$;var X=!0;try{e:{w=!1,b&&(b=!1,k(T),T=-1),y=!0;var re=g;try{t:{for(R($),m=n(u);m!==null&&!(m.expirationTime>$&&q());){var pe=m.callback;if(typeof pe=="function"){m.callback=null,g=m.priorityLevel;var _e=pe(m.expirationTime<=$);if($=e.unstable_now(),typeof _e=="function"){m.callback=_e,R($),X=!0;break t}m===n(u)&&r(u),R($)}else r(u);m=n(u)}if(m!==null)X=!0;else{var j=n(f);j!==null&&ie(P,j.startTime-$),X=!1}}break e}finally{m=null,g=re,y=!1}X=void 0}}finally{X?L():O=!1}}}var L;if(typeof A=="function")L=function(){A(U)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,G=B.port2;B.port1.onmessage=U,L=function(){G.postMessage(null)}}else L=function(){E(U,0)};function ie($,X){T=E(function(){$(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var re=g;g=X;try{return $()}finally{g=re}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var re=g;g=$;try{return X()}finally{g=re}},e.unstable_scheduleCallback=function($,X,re){var pe=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,$){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=re+_e,$={id:h++,callback:X,priorityLevel:$,startTime:re,expirationTime:_e,sortIndex:-1},re>pe?($.sortIndex=re,t(f,$),n(u)===null&&$===n(f)&&(b?(k(T),T=-1):b=!0,ie(P,re-pe))):($.sortIndex=_e,t(u,$),w||y||(w=!0,O||(O=!0,L()))),$},e.unstable_shouldYield=q,e.unstable_wrapCallback=function($){var X=g;return function(){var re=g;g=X;try{return $.apply(this,arguments)}finally{g=re}}}})(SE)),SE}var bD;function Swe(){return bD||(bD=1,bE.exports=bwe()),bE.exports}var SD;function wwe(){if(SD)return Sh;SD=1;var e=Swe(),t=Vp(),n=gz();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function i(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(s(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=s(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,p=l;;){var v=d.return;if(v===null)break;var S=v.alternate;if(S===null){if(p=v.return,p!==null){d=p;continue}break}if(v.child===S.child){for(S=v.child;S;){if(S===d)return u(v),o;if(S===p)return u(v),l;S=S.sibling}throw Error(r(188))}if(d.return!==p.return)d=v,p=S;else{for(var I=!1,N=v.child;N;){if(N===d){I=!0,d=v,p=S;break}if(N===p){I=!0,p=v,d=S;break}N=N.sibling}if(!I){for(N=S.child;N;){if(N===d){I=!0,d=S,p=v;break}if(N===p){I=!0,p=S,d=v;break}N=N.sibling}if(!I)throw Error(r(189))}}if(d.alternate!==p)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function h(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=h(o),l!==null)return l;o=o.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function L(o){return o===null||typeof o!="object"?null:(o=U&&o[U]||o["@@iterator"],typeof o=="function"?o:null)}var B=Symbol.for("react.client.reference");function G(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===B?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case E:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList";case z:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case w:return"Portal";case A:return o.displayName||"Context";case k:return(o._context.displayName||"Context")+".Consumer";case R:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case T:return l=o.displayName||null,l!==null?l:G(o.type)||"Memo";case M:l=o._payload,o=o._init;try{return G(o(l))}catch{}}return null}var ie=Array.isArray,$=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},pe=[],_e=-1;function j(o){return{current:o}}function Y(o){0>_e||(o.current=pe[_e],pe[_e]=null,_e--)}function Z(o,l){_e++,pe[_e]=o.current,o.current=l}var Q=j(null),se=j(null),le=j(null),me=j(null);function te(o,l){switch(Z(le,l),Z(se,o),Z(Q,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?T4(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=T4(l),o=R4(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Y(Q),Z(Q,o)}function ve(){Y(Q),Y(se),Y(le)}function Le(o){o.memoizedState!==null&&Z(me,o);var l=Q.current,d=R4(l,o.type);l!==d&&(Z(se,o),Z(Q,d))}function we(o){se.current===o&&(Y(Q),Y(se)),me.current===o&&(Y(me),Kf._currentValue=re)}var nt,Ue;function He(o){if(nt===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);nt=l&&l[1]||"",Ue=-1<d.stack.indexOf(`
|
|
217
|
+
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
218
|
+
`+nt+o+Ue}var Ht=!1;function Ie(o,l){if(!o||Ht)return"";Ht=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(l){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ae){var ne=ae}Reflect.construct(o,[],fe)}else{try{fe.call()}catch(ae){ne=ae}o.call(fe.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(fe=o())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=p.DetermineComponentFrameRoot(),I=S[0],N=S[1];if(I&&N){var H=I.split(`
|
|
219
|
+
`),ee=N.split(`
|
|
220
|
+
`);for(v=p=0;p<H.length&&!H[p].includes("DetermineComponentFrameRoot");)p++;for(;v<ee.length&&!ee[v].includes("DetermineComponentFrameRoot");)v++;if(p===H.length||v===ee.length)for(p=H.length-1,v=ee.length-1;1<=p&&0<=v&&H[p]!==ee[v];)v--;for(;1<=p&&0<=v;p--,v--)if(H[p]!==ee[v]){if(p!==1||v!==1)do if(p--,v--,0>v||H[p]!==ee[v]){var oe=`
|
|
221
|
+
`+H[p].replace(" at new "," at ");return o.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",o.displayName)),oe}while(1<=p&&0<=v);break}}}finally{Ht=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?He(d):""}function gr(o,l){switch(o.tag){case 26:case 27:case 5:return He(o.type);case 16:return He("Lazy");case 13:return o.child!==l&&l!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return Ie(o.type,!1);case 11:return Ie(o.type.render,!1);case 1:return Ie(o.type,!0);case 31:return He("Activity");default:return""}}function qe(o){try{var l="",d=null;do l+=gr(o,d),d=o,o=o.return;while(o);return l}catch(p){return`
|
|
222
|
+
Error generating stack: `+p.message+`
|
|
223
|
+
`+p.stack}}var jr=Object.prototype.hasOwnProperty,un=e.unstable_scheduleCallback,rr=e.unstable_cancelCallback,gs=e.unstable_shouldYield,Fr=e.unstable_requestPaint,Fn=e.unstable_now,Lt=e.unstable_getCurrentPriorityLevel,In=e.unstable_ImmediatePriority,$r=e.unstable_UserBlockingPriority,vr=e.unstable_NormalPriority,Js=e.unstable_LowPriority,vs=e.unstable_IdlePriority,nf=e.log,qc=e.unstable_setDisableYieldValue,ys=null,ar=null;function Ar(o){if(typeof nf=="function"&&qc(o),ar&&typeof ar.setStrictMode=="function")try{ar.setStrictMode(ys,o)}catch{}}var Wn=Math.clz32?Math.clz32:um,Vc=Math.log,cm=Math.LN2;function um(o){return o>>>=0,o===0?32:31-(Vc(o)/cm|0)|0}var ml=256,ri=262144,ai=4194304;function Ir(o){var l=o&42;if(l!==0)return l;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Ka(o,l,d){var p=o.pendingLanes;if(p===0)return 0;var v=0,S=o.suspendedLanes,I=o.pingedLanes;o=o.warmLanes;var N=p&134217727;return N!==0?(p=N&~S,p!==0?v=Ir(p):(I&=N,I!==0?v=Ir(I):d||(d=N&~o,d!==0&&(v=Ir(d))))):(N=p&~S,N!==0?v=Ir(N):I!==0?v=Ir(I):d||(d=p&~o,d!==0&&(v=Ir(d)))),v===0?0:l!==0&&l!==v&&(l&S)===0&&(S=v&-v,d=l&-l,S>=d||S===32&&(d&4194048)!==0)?l:v}function sa(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function dm(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rf(){var o=ai;return ai<<=1,(ai&62914560)===0&&(ai=4194304),o}function Wc(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function si(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function fm(o,l,d,p,v,S){var I=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var N=o.entanglements,H=o.expirationTimes,ee=o.hiddenUpdates;for(d=I&~d;0<d;){var oe=31-Wn(d),fe=1<<oe;N[oe]=0,H[oe]=-1;var ne=ee[oe];if(ne!==null)for(ee[oe]=null,oe=0;oe<ne.length;oe++){var ae=ne[oe];ae!==null&&(ae.lane&=-536870913)}d&=~fe}p!==0&&gl(o,p,0),S!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=S&~(I&~l))}function gl(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var p=31-Wn(l);o.entangledLanes|=l,o.entanglements[p]=o.entanglements[p]|1073741824|d&261930}function vl(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var p=31-Wn(d),v=1<<p;v&l|o[p]&l&&(o[p]|=l),d&=~v}}function oa(o,l){var d=l&-l;return d=(d&42)!==0?1:bs(d),(d&(o.suspendedLanes|l))!==0?0:d}function bs(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function yl(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Gc(){var o=X.p;return o!==0?o:(o=window.event,o===void 0?32:J4(o.type))}function hm(o,l){var d=X.p;try{return X.p=o,l()}finally{X.p=d}}var Ya=Math.random().toString(36).slice(2),En="__reactFiber$"+Ya,sr="__reactProps$"+Ya,Ss="__reactContainer$"+Ya,af="__reactEvents$"+Ya,bl="__reactListeners$"+Ya,Xy="__reactHandles$"+Ya,pm="__reactResources$"+Ya,Qt="__reactMarker$"+Ya;function ws(o){delete o[En],delete o[sr],delete o[af],delete o[bl],delete o[Xy]}function oi(o){var l=o[En];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Ss]||d[En]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=U4(o);o!==null;){if(d=o[En])return d;o=U4(o)}return l}o=d,d=o.parentNode}return null}function eo(o){if(o=o[En]||o[Ss]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function to(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function no(o){var l=o[pm];return l||(l=o[pm]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function _n(o){o[Qt]=!0}var mm=new Set,gm={};function ro(o,l){ii(o,l),ii(o+"Capture",l)}function ii(o,l){for(gm[o]=l,o=0;o<l.length;o++)mm.add(l[o])}var xs=RegExp("^[: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]*$"),sf={},Kc={};function li(o){return jr.call(Kc,o)?!0:jr.call(sf,o)?!1:xs.test(o)?Kc[o]=!0:(sf[o]=!0,!1)}function Sl(o,l,d){if(li(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var p=l.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function ci(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function ia(o,l,d,p){if(p===null)o.removeAttribute(d);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+p)}}function yr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function vm(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ym(o,l,d){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,S=p.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return v.call(this)},set:function(I){d=""+I,S.call(this,I)}}),Object.defineProperty(o,l,{enumerable:p.enumerable}),{getValue:function(){return d},setValue:function(I){d=""+I},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function of(o){if(!o._valueTracker){var l=vm(o)?"checked":"value";o._valueTracker=ym(o,l,""+o[l])}}function bm(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),p="";return o&&(p=vm(o)?o.checked?"true":"false":o.value),o=p,o!==d?(l.setValue(o),!0):!1}function Yc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Qy=/[\n"\\]/g;function Tr(o){return o.replace(Qy,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function lf(o,l,d,p,v,S,I,N){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),l!=null?I==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+yr(l)):o.value!==""+yr(l)&&(o.value=""+yr(l)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),l!=null?wl(o,I,yr(l)):d!=null?wl(o,I,yr(d)):p!=null&&o.removeAttribute("value"),v==null&&S!=null&&(o.defaultChecked=!!S),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?o.name=""+yr(N):o.removeAttribute("name")}function cf(o,l,d,p,v,S,I,N){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(o.type=S),l!=null||d!=null){if(!(S!=="submit"&&S!=="reset"||l!=null)){of(o);return}d=d!=null?""+yr(d):"",l=l!=null?""+yr(l):d,N||l===o.value||(o.value=l),o.defaultValue=l}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=N?o.checked:!!p,o.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I),of(o)}function wl(o,l,d){l==="number"&&Yc(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Za(o,l,d,p){if(o=o.options,l){l={};for(var v=0;v<d.length;v++)l["$"+d[v]]=!0;for(d=0;d<o.length;d++)v=l.hasOwnProperty("$"+o[d].value),o[d].selected!==v&&(o[d].selected=v),v&&p&&(o[d].defaultSelected=!0)}else{for(d=""+yr(d),l=null,v=0;v<o.length;v++){if(o[v].value===d){o[v].selected=!0,p&&(o[v].defaultSelected=!0);return}l!==null||o[v].disabled||(l=o[v])}l!==null&&(l.selected=!0)}}function Zc(o,l,d){if(l!=null&&(l=""+yr(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+yr(d):""}function uf(o,l,d,p){if(l==null){if(p!=null){if(d!=null)throw Error(r(92));if(ie(p)){if(1<p.length)throw Error(r(93));p=p[0]}d=p}d==null&&(d=""),l=d}d=yr(l),o.defaultValue=d,p=o.textContent,p===d&&p!==""&&p!==null&&(o.value=p),of(o)}function Xa(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var Cs=new Set("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(" "));function ui(o,l,d){var p=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?p?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":p?o.setProperty(l,d):typeof d!="number"||d===0||Cs.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function Br(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var p in d)!d.hasOwnProperty(p)||l!=null&&l.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var v in l)p=l[v],l.hasOwnProperty(v)&&d[v]!==p&&ui(o,v,p)}else for(var S in l)l.hasOwnProperty(S)&&ui(o,S,l[S])}function df(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xc=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jy=/^[\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;function xl(o){return Jy.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function br(){}var Cl=null;function Qc(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var di=null,ao=null;function Sm(o){var l=eo(o);if(l&&(o=l.stateNode)){var d=o[sr]||null;e:switch(o=l.stateNode,l.type){case"input":if(lf(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Tr(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var p=d[l];if(p!==o&&p.form===o.form){var v=p[sr]||null;if(!v)throw Error(r(90));lf(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<d.length;l++)p=d[l],p.form===o.form&&bm(p)}break e;case"textarea":Zc(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&Za(o,!!d.multiple,l,!1)}}}var ff=!1;function hf(o,l,d){if(ff)return o(l,d);ff=!0;try{var p=o(l);return p}finally{if(ff=!1,(di!==null||ao!==null)&&(rg(),di&&(l=di,o=ao,ao=di=null,Sm(l),o)))for(l=0;l<o.length;l++)Sm(o[l])}}function so(o,l){var d=o.stateNode;if(d===null)return null;var p=d[sr]||null;if(p===null)return null;d=p[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),El=!1;if(Rr)try{var ge={};Object.defineProperty(ge,"passive",{get:function(){El=!0}}),window.addEventListener("test",ge,ge),window.removeEventListener("test",ge,ge)}catch{El=!1}var D=null,W=null,ue=null;function de(){if(ue)return ue;var o,l=W,d=l.length,p,v="value"in D?D.value:D.textContent,S=v.length;for(o=0;o<d&&l[o]===v[o];o++);var I=d-o;for(p=1;p<=I&&l[d-p]===v[S-p];p++);return ue=v.slice(o,1<p?1-p:void 0)}function Ne(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function je(){return!0}function at(){return!1}function St(o){function l(d,p,v,S,I){this._reactName=d,this._targetInst=v,this.type=p,this.nativeEvent=S,this.target=I,this.currentTarget=null;for(var N in o)o.hasOwnProperty(N)&&(d=o[N],this[N]=d?d(S):S[N]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?je:at,this.isPropagationStopped=at,this}return m(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=je)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=je)},persist:function(){},isPersistent:je}),l}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tn=St(Gn),Rn=m({},Gn,{view:0,detail:0}),fi=St(Rn),Kn,Jc,pf,wm=m({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tb,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==pf&&(pf&&o.type==="mousemove"?(Kn=o.screenX-pf.screenX,Jc=o.screenY-pf.screenY):Jc=Kn=0,pf=o),Kn)},movementY:function(o){return"movementY"in o?o.movementY:Jc}}),NT=St(wm),bW=m({},wm,{dataTransfer:0}),SW=St(bW),wW=m({},Rn,{relatedTarget:0}),eb=St(wW),xW=m({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),CW=St(xW),EW=m({},Gn,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),_W=St(EW),kW=m({},Gn,{data:0}),MT=St(kW),AW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IW={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},TW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RW(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=TW[o])?!!l[o]:!1}function tb(){return RW}var OW=m({},Rn,{key:function(o){if(o.key){var l=AW[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Ne(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?IW[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tb,charCode:function(o){return o.type==="keypress"?Ne(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Ne(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),NW=St(OW),MW=m({},wm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PT=St(MW),PW=m({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tb}),DW=St(PW),LW=m({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),UW=St(LW),zW=m({},wm,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),jW=St(zW),FW=m({},Gn,{newState:0,oldState:0}),$W=St(FW),BW=[9,13,27,32],nb=Rr&&"CompositionEvent"in window,mf=null;Rr&&"documentMode"in document&&(mf=document.documentMode);var HW=Rr&&"TextEvent"in window&&!mf,DT=Rr&&(!nb||mf&&8<mf&&11>=mf),LT=" ",UT=!1;function zT(o,l){switch(o){case"keyup":return BW.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jT(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var eu=!1;function qW(o,l){switch(o){case"compositionend":return jT(l);case"keypress":return l.which!==32?null:(UT=!0,LT);case"textInput":return o=l.data,o===LT&&UT?null:o;default:return null}}function VW(o,l){if(eu)return o==="compositionend"||!nb&&zT(o,l)?(o=de(),ue=W=D=null,eu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return DT&&l.locale!=="ko"?null:l.data;default:return null}}var WW={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function FT(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!WW[o.type]:l==="textarea"}function $T(o,l,d,p){di?ao?ao.push(p):ao=[p]:di=p,l=ug(l,"onChange"),0<l.length&&(d=new Tn("onChange","change",null,d,p),o.push({event:d,listeners:l}))}var gf=null,vf=null;function GW(o){C4(o,0)}function xm(o){var l=to(o);if(bm(l))return o}function BT(o,l){if(o==="change")return l}var HT=!1;if(Rr){var rb;if(Rr){var ab="oninput"in document;if(!ab){var qT=document.createElement("div");qT.setAttribute("oninput","return;"),ab=typeof qT.oninput=="function"}rb=ab}else rb=!1;HT=rb&&(!document.documentMode||9<document.documentMode)}function VT(){gf&&(gf.detachEvent("onpropertychange",WT),vf=gf=null)}function WT(o){if(o.propertyName==="value"&&xm(vf)){var l=[];$T(l,vf,o,Qc(o)),hf(GW,l)}}function KW(o,l,d){o==="focusin"?(VT(),gf=l,vf=d,gf.attachEvent("onpropertychange",WT)):o==="focusout"&&VT()}function YW(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return xm(vf)}function ZW(o,l){if(o==="click")return xm(l)}function XW(o,l){if(o==="input"||o==="change")return xm(l)}function QW(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var la=typeof Object.is=="function"?Object.is:QW;function yf(o,l){if(la(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),p=Object.keys(l);if(d.length!==p.length)return!1;for(p=0;p<d.length;p++){var v=d[p];if(!jr.call(l,v)||!la(o[v],l[v]))return!1}return!0}function GT(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function KT(o,l){var d=GT(o);o=0;for(var p;d;){if(d.nodeType===3){if(p=o+d.textContent.length,o<=l&&p>=l)return{node:d,offset:l-o};o=p}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=GT(d)}}function YT(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?YT(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function ZT(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Yc(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=Yc(o.document)}return l}function sb(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var JW=Rr&&"documentMode"in document&&11>=document.documentMode,tu=null,ob=null,bf=null,ib=!1;function XT(o,l,d){var p=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;ib||tu==null||tu!==Yc(p)||(p=tu,"selectionStart"in p&&sb(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),bf&&yf(bf,p)||(bf=p,p=ug(ob,"onSelect"),0<p.length&&(l=new Tn("onSelect","select",null,l,d),o.push({event:l,listeners:p}),l.target=tu)))}function _l(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var nu={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},lb={},QT={};Rr&&(QT=document.createElement("div").style,"AnimationEvent"in window||(delete nu.animationend.animation,delete nu.animationiteration.animation,delete nu.animationstart.animation),"TransitionEvent"in window||delete nu.transitionend.transition);function kl(o){if(lb[o])return lb[o];if(!nu[o])return o;var l=nu[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in QT)return lb[o]=l[d];return o}var JT=kl("animationend"),eR=kl("animationiteration"),tR=kl("animationstart"),eG=kl("transitionrun"),tG=kl("transitionstart"),nG=kl("transitioncancel"),nR=kl("transitionend"),rR=new Map,cb="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(" ");cb.push("scrollEnd");function Qa(o,l){rR.set(o,l),ro(l,[o])}var Cm=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ka=[],ru=0,ub=0;function Em(){for(var o=ru,l=ub=ru=0;l<o;){var d=ka[l];ka[l++]=null;var p=ka[l];ka[l++]=null;var v=ka[l];ka[l++]=null;var S=ka[l];if(ka[l++]=null,p!==null&&v!==null){var I=p.pending;I===null?v.next=v:(v.next=I.next,I.next=v),p.pending=v}S!==0&&aR(d,v,S)}}function _m(o,l,d,p){ka[ru++]=o,ka[ru++]=l,ka[ru++]=d,ka[ru++]=p,ub|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function db(o,l,d,p){return _m(o,l,d,p),km(o)}function Al(o,l){return _m(o,null,null,l),km(o)}function aR(o,l,d){o.lanes|=d;var p=o.alternate;p!==null&&(p.lanes|=d);for(var v=!1,S=o.return;S!==null;)S.childLanes|=d,p=S.alternate,p!==null&&(p.childLanes|=d),S.tag===22&&(o=S.stateNode,o===null||o._visibility&1||(v=!0)),o=S,S=S.return;return o.tag===3?(S=o.stateNode,v&&l!==null&&(v=31-Wn(d),o=S.hiddenUpdates,p=o[v],p===null?o[v]=[l]:p.push(l),l.lane=d|536870912),S):null}function km(o){if(50<$f)throw $f=0,SS=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var au={};function rG(o,l,d,p){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(o,l,d,p){return new rG(o,l,d,p)}function fb(o){return o=o.prototype,!(!o||!o.isReactComponent)}function oo(o,l){var d=o.alternate;return d===null?(d=ca(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function sR(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Am(o,l,d,p,v,S){var I=0;if(p=o,typeof o=="function")fb(o)&&(I=1);else if(typeof o=="string")I=lK(o,d,Q.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case z:return o=ca(31,d,l,v),o.elementType=z,o.lanes=S,o;case b:return Il(d.children,v,S,l);case x:I=8,v|=24;break;case E:return o=ca(12,d,l,v|2),o.elementType=E,o.lanes=S,o;case P:return o=ca(13,d,l,v),o.elementType=P,o.lanes=S,o;case O:return o=ca(19,d,l,v),o.elementType=O,o.lanes=S,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case A:I=10;break e;case k:I=9;break e;case R:I=11;break e;case T:I=14;break e;case M:I=16,p=null;break e}I=29,d=Error(r(130,o===null?"null":typeof o,"")),p=null}return l=ca(I,d,l,v),l.elementType=o,l.type=p,l.lanes=S,l}function Il(o,l,d,p){return o=ca(7,o,p,l),o.lanes=d,o}function hb(o,l,d){return o=ca(6,o,null,l),o.lanes=d,o}function oR(o){var l=ca(18,null,null,0);return l.stateNode=o,l}function pb(o,l,d){return l=ca(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var iR=new WeakMap;function Aa(o,l){if(typeof o=="object"&&o!==null){var d=iR.get(o);return d!==void 0?d:(l={value:o,source:l,stack:qe(l)},iR.set(o,l),l)}return{value:o,source:l,stack:qe(l)}}var su=[],ou=0,Im=null,Sf=0,Ia=[],Ta=0,hi=null,Es=1,_s="";function io(o,l){su[ou++]=Sf,su[ou++]=Im,Im=o,Sf=l}function lR(o,l,d){Ia[Ta++]=Es,Ia[Ta++]=_s,Ia[Ta++]=hi,hi=o;var p=Es;o=_s;var v=32-Wn(p)-1;p&=~(1<<v),d+=1;var S=32-Wn(l)+v;if(30<S){var I=v-v%5;S=(p&(1<<I)-1).toString(32),p>>=I,v-=I,Es=1<<32-Wn(l)+v|d<<v|p,_s=S+o}else Es=1<<S|d<<v|p,_s=o}function mb(o){o.return!==null&&(io(o,1),lR(o,1,0))}function gb(o){for(;o===Im;)Im=su[--ou],su[ou]=null,Sf=su[--ou],su[ou]=null;for(;o===hi;)hi=Ia[--Ta],Ia[Ta]=null,_s=Ia[--Ta],Ia[Ta]=null,Es=Ia[--Ta],Ia[Ta]=null}function cR(o,l){Ia[Ta++]=Es,Ia[Ta++]=_s,Ia[Ta++]=hi,Es=l.id,_s=l.overflow,hi=o}var or=null,nn=null,gt=!1,pi=null,Ra=!1,vb=Error(r(519));function mi(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wf(Aa(l,o)),vb}function uR(o){var l=o.stateNode,d=o.type,p=o.memoizedProps;switch(l[En]=o,l[sr]=p,d){case"dialog":ft("cancel",l),ft("close",l);break;case"iframe":case"object":case"embed":ft("load",l);break;case"video":case"audio":for(d=0;d<Hf.length;d++)ft(Hf[d],l);break;case"source":ft("error",l);break;case"img":case"image":case"link":ft("error",l),ft("load",l);break;case"details":ft("toggle",l);break;case"input":ft("invalid",l),cf(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":ft("invalid",l);break;case"textarea":ft("invalid",l),uf(l,p.value,p.defaultValue,p.children)}d=p.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||p.suppressHydrationWarning===!0||A4(l.textContent,d)?(p.popover!=null&&(ft("beforetoggle",l),ft("toggle",l)),p.onScroll!=null&&ft("scroll",l),p.onScrollEnd!=null&&ft("scrollend",l),p.onClick!=null&&(l.onclick=br),l=!0):l=!1,l||mi(o,!0)}function dR(o){for(or=o.return;or;)switch(or.tag){case 5:case 31:case 13:Ra=!1;return;case 27:case 3:Ra=!0;return;default:or=or.return}}function iu(o){if(o!==or)return!1;if(!gt)return dR(o),gt=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||DS(o.type,o.memoizedProps)),d=!d),d&&nn&&mi(o),dR(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));nn=L4(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));nn=L4(o)}else l===27?(l=nn,Ti(o.type)?(o=FS,FS=null,nn=o):nn=l):nn=or?Na(o.stateNode.nextSibling):null;return!0}function Tl(){nn=or=null,gt=!1}function yb(){var o=pi;return o!==null&&(Wr===null?Wr=o:Wr.push.apply(Wr,o),pi=null),o}function wf(o){pi===null?pi=[o]:pi.push(o)}var bb=j(null),Rl=null,lo=null;function gi(o,l,d){Z(bb,l._currentValue),l._currentValue=d}function co(o){o._currentValue=bb.current,Y(bb)}function Sb(o,l,d){for(;o!==null;){var p=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,p!==null&&(p.childLanes|=l)):p!==null&&(p.childLanes&l)!==l&&(p.childLanes|=l),o===d)break;o=o.return}}function wb(o,l,d,p){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var S=v.dependencies;if(S!==null){var I=v.child;S=S.firstContext;e:for(;S!==null;){var N=S;S=v;for(var H=0;H<l.length;H++)if(N.context===l[H]){S.lanes|=d,N=S.alternate,N!==null&&(N.lanes|=d),Sb(S.return,d,o),p||(I=null);break e}S=N.next}}else if(v.tag===18){if(I=v.return,I===null)throw Error(r(341));I.lanes|=d,S=I.alternate,S!==null&&(S.lanes|=d),Sb(I,d,o),I=null}else I=v.child;if(I!==null)I.return=v;else for(I=v;I!==null;){if(I===o){I=null;break}if(v=I.sibling,v!==null){v.return=I.return,I=v;break}I=I.return}v=I}}function lu(o,l,d,p){o=null;for(var v=l,S=!1;v!==null;){if(!S){if((v.flags&524288)!==0)S=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var I=v.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var N=v.type;la(v.pendingProps.value,I.value)||(o!==null?o.push(N):o=[N])}}else if(v===me.current){if(I=v.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Kf):o=[Kf])}v=v.return}o!==null&&wb(l,o,d,p),l.flags|=262144}function Tm(o){for(o=o.firstContext;o!==null;){if(!la(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ol(o){Rl=o,lo=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ir(o){return fR(Rl,o)}function Rm(o,l){return Rl===null&&Ol(o),fR(o,l)}function fR(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},lo===null){if(o===null)throw Error(r(308));lo=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else lo=lo.next=l;return d}var aG=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,p){o.push(p)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},sG=e.unstable_scheduleCallback,oG=e.unstable_NormalPriority,On={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xb(){return{controller:new aG,data:new Map,refCount:0}}function xf(o){o.refCount--,o.refCount===0&&sG(oG,function(){o.controller.abort()})}var Cf=null,Cb=0,cu=0,uu=null;function iG(o,l){if(Cf===null){var d=Cf=[];Cb=0,cu=kS(),uu={status:"pending",value:void 0,then:function(p){d.push(p)}}}return Cb++,l.then(hR,hR),l}function hR(){if(--Cb===0&&Cf!==null){uu!==null&&(uu.status="fulfilled");var o=Cf;Cf=null,cu=0,uu=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function lG(o,l){var d=[],p={status:"pending",value:null,reason:null,then:function(v){d.push(v)}};return o.then(function(){p.status="fulfilled",p.value=l;for(var v=0;v<d.length;v++)(0,d[v])(l)},function(v){for(p.status="rejected",p.reason=v,v=0;v<d.length;v++)(0,d[v])(void 0)}),p}var pR=$.S;$.S=function(o,l){XO=Fn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&iG(o,l),pR!==null&&pR(o,l)};var Nl=j(null);function Eb(){var o=Nl.current;return o!==null?o:Jt.pooledCache}function Om(o,l){l===null?Z(Nl,Nl.current):Z(Nl,l.pool)}function mR(){var o=Eb();return o===null?null:{parent:On._currentValue,pool:o}}var du=Error(r(460)),_b=Error(r(474)),Nm=Error(r(542)),Mm={then:function(){}};function gR(o){return o=o.status,o==="fulfilled"||o==="rejected"}function vR(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(br,br),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,bR(o),o;default:if(typeof l.status=="string")l.then(br,br);else{if(o=Jt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(p){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=p}},function(p){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=p}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,bR(o),o}throw Pl=l,du}}function Ml(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Pl=d,du):d}}var Pl=null;function yR(){if(Pl===null)throw Error(r(459));var o=Pl;return Pl=null,o}function bR(o){if(o===du||o===Nm)throw Error(r(483))}var fu=null,Ef=0;function Pm(o){var l=Ef;return Ef+=1,fu===null&&(fu=[]),vR(fu,o,l)}function _f(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function Dm(o,l){throw l.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function SR(o){function l(K,V){if(o){var J=K.deletions;J===null?(K.deletions=[V],K.flags|=16):J.push(V)}}function d(K,V){if(!o)return null;for(;V!==null;)l(K,V),V=V.sibling;return null}function p(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function v(K,V){return K=oo(K,V),K.index=0,K.sibling=null,K}function S(K,V,J){return K.index=J,o?(J=K.alternate,J!==null?(J=J.index,J<V?(K.flags|=67108866,V):J):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function I(K){return o&&K.alternate===null&&(K.flags|=67108866),K}function N(K,V,J,ce){return V===null||V.tag!==6?(V=hb(J,K.mode,ce),V.return=K,V):(V=v(V,J),V.return=K,V)}function H(K,V,J,ce){var ze=J.type;return ze===b?oe(K,V,J.props.children,ce,J.key):V!==null&&(V.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===M&&Ml(ze)===V.type)?(V=v(V,J.props),_f(V,J),V.return=K,V):(V=Am(J.type,J.key,J.props,null,K.mode,ce),_f(V,J),V.return=K,V)}function ee(K,V,J,ce){return V===null||V.tag!==4||V.stateNode.containerInfo!==J.containerInfo||V.stateNode.implementation!==J.implementation?(V=pb(J,K.mode,ce),V.return=K,V):(V=v(V,J.children||[]),V.return=K,V)}function oe(K,V,J,ce,ze){return V===null||V.tag!==7?(V=Il(J,K.mode,ce,ze),V.return=K,V):(V=v(V,J),V.return=K,V)}function fe(K,V,J){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=hb(""+V,K.mode,J),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case y:return J=Am(V.type,V.key,V.props,null,K.mode,J),_f(J,V),J.return=K,J;case w:return V=pb(V,K.mode,J),V.return=K,V;case M:return V=Ml(V),fe(K,V,J)}if(ie(V)||L(V))return V=Il(V,K.mode,J,null),V.return=K,V;if(typeof V.then=="function")return fe(K,Pm(V),J);if(V.$$typeof===A)return fe(K,Rm(K,V),J);Dm(K,V)}return null}function ne(K,V,J,ce){var ze=V!==null?V.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return ze!==null?null:N(K,V,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case y:return J.key===ze?H(K,V,J,ce):null;case w:return J.key===ze?ee(K,V,J,ce):null;case M:return J=Ml(J),ne(K,V,J,ce)}if(ie(J)||L(J))return ze!==null?null:oe(K,V,J,ce,null);if(typeof J.then=="function")return ne(K,V,Pm(J),ce);if(J.$$typeof===A)return ne(K,V,Rm(K,J),ce);Dm(K,J)}return null}function ae(K,V,J,ce,ze){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return K=K.get(J)||null,N(V,K,""+ce,ze);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case y:return K=K.get(ce.key===null?J:ce.key)||null,H(V,K,ce,ze);case w:return K=K.get(ce.key===null?J:ce.key)||null,ee(V,K,ce,ze);case M:return ce=Ml(ce),ae(K,V,J,ce,ze)}if(ie(ce)||L(ce))return K=K.get(J)||null,oe(V,K,ce,ze,null);if(typeof ce.then=="function")return ae(K,V,J,Pm(ce),ze);if(ce.$$typeof===A)return ae(K,V,J,Rm(V,ce),ze);Dm(V,ce)}return null}function Te(K,V,J,ce){for(var ze=null,At=null,Me=V,st=V=0,mt=null;Me!==null&&st<J.length;st++){Me.index>st?(mt=Me,Me=null):mt=Me.sibling;var It=ne(K,Me,J[st],ce);if(It===null){Me===null&&(Me=mt);break}o&&Me&&It.alternate===null&&l(K,Me),V=S(It,V,st),At===null?ze=It:At.sibling=It,At=It,Me=mt}if(st===J.length)return d(K,Me),gt&&io(K,st),ze;if(Me===null){for(;st<J.length;st++)Me=fe(K,J[st],ce),Me!==null&&(V=S(Me,V,st),At===null?ze=Me:At.sibling=Me,At=Me);return gt&&io(K,st),ze}for(Me=p(Me);st<J.length;st++)mt=ae(Me,K,st,J[st],ce),mt!==null&&(o&&mt.alternate!==null&&Me.delete(mt.key===null?st:mt.key),V=S(mt,V,st),At===null?ze=mt:At.sibling=mt,At=mt);return o&&Me.forEach(function(Pi){return l(K,Pi)}),gt&&io(K,st),ze}function Fe(K,V,J,ce){if(J==null)throw Error(r(151));for(var ze=null,At=null,Me=V,st=V=0,mt=null,It=J.next();Me!==null&&!It.done;st++,It=J.next()){Me.index>st?(mt=Me,Me=null):mt=Me.sibling;var Pi=ne(K,Me,It.value,ce);if(Pi===null){Me===null&&(Me=mt);break}o&&Me&&Pi.alternate===null&&l(K,Me),V=S(Pi,V,st),At===null?ze=Pi:At.sibling=Pi,At=Pi,Me=mt}if(It.done)return d(K,Me),gt&&io(K,st),ze;if(Me===null){for(;!It.done;st++,It=J.next())It=fe(K,It.value,ce),It!==null&&(V=S(It,V,st),At===null?ze=It:At.sibling=It,At=It);return gt&&io(K,st),ze}for(Me=p(Me);!It.done;st++,It=J.next())It=ae(Me,K,st,It.value,ce),It!==null&&(o&&It.alternate!==null&&Me.delete(It.key===null?st:It.key),V=S(It,V,st),At===null?ze=It:At.sibling=It,At=It);return o&&Me.forEach(function(bK){return l(K,bK)}),gt&&io(K,st),ze}function Wt(K,V,J,ce){if(typeof J=="object"&&J!==null&&J.type===b&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case y:e:{for(var ze=J.key;V!==null;){if(V.key===ze){if(ze=J.type,ze===b){if(V.tag===7){d(K,V.sibling),ce=v(V,J.props.children),ce.return=K,K=ce;break e}}else if(V.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===M&&Ml(ze)===V.type){d(K,V.sibling),ce=v(V,J.props),_f(ce,J),ce.return=K,K=ce;break e}d(K,V);break}else l(K,V);V=V.sibling}J.type===b?(ce=Il(J.props.children,K.mode,ce,J.key),ce.return=K,K=ce):(ce=Am(J.type,J.key,J.props,null,K.mode,ce),_f(ce,J),ce.return=K,K=ce)}return I(K);case w:e:{for(ze=J.key;V!==null;){if(V.key===ze)if(V.tag===4&&V.stateNode.containerInfo===J.containerInfo&&V.stateNode.implementation===J.implementation){d(K,V.sibling),ce=v(V,J.children||[]),ce.return=K,K=ce;break e}else{d(K,V);break}else l(K,V);V=V.sibling}ce=pb(J,K.mode,ce),ce.return=K,K=ce}return I(K);case M:return J=Ml(J),Wt(K,V,J,ce)}if(ie(J))return Te(K,V,J,ce);if(L(J)){if(ze=L(J),typeof ze!="function")throw Error(r(150));return J=ze.call(J),Fe(K,V,J,ce)}if(typeof J.then=="function")return Wt(K,V,Pm(J),ce);if(J.$$typeof===A)return Wt(K,V,Rm(K,J),ce);Dm(K,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,V!==null&&V.tag===6?(d(K,V.sibling),ce=v(V,J),ce.return=K,K=ce):(d(K,V),ce=hb(J,K.mode,ce),ce.return=K,K=ce),I(K)):d(K,V)}return function(K,V,J,ce){try{Ef=0;var ze=Wt(K,V,J,ce);return fu=null,ze}catch(Me){if(Me===du||Me===Nm)throw Me;var At=ca(29,Me,null,K.mode);return At.lanes=ce,At.return=K,At}}}var Dl=SR(!0),wR=SR(!1),vi=!1;function kb(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ab(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function yi(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function bi(o,l,d){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(Nt&2)!==0){var v=p.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),p.pending=l,l=km(o),aR(o,null,d),l}return _m(o,p,l,d),km(o)}function kf(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var p=l.lanes;p&=o.pendingLanes,d|=p,l.lanes=d,vl(o,d)}}function Ib(o,l){var d=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,d===p)){var v=null,S=null;if(d=d.firstBaseUpdate,d!==null){do{var I={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};S===null?v=S=I:S=S.next=I,d=d.next}while(d!==null);S===null?v=S=l:S=S.next=l}else v=S=l;d={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:S,shared:p.shared,callbacks:p.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var Tb=!1;function Af(){if(Tb){var o=uu;if(o!==null)throw o}}function If(o,l,d,p){Tb=!1;var v=o.updateQueue;vi=!1;var S=v.firstBaseUpdate,I=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var H=N,ee=H.next;H.next=null,I===null?S=ee:I.next=ee,I=H;var oe=o.alternate;oe!==null&&(oe=oe.updateQueue,N=oe.lastBaseUpdate,N!==I&&(N===null?oe.firstBaseUpdate=ee:N.next=ee,oe.lastBaseUpdate=H))}if(S!==null){var fe=v.baseState;I=0,oe=ee=H=null,N=S;do{var ne=N.lane&-536870913,ae=ne!==N.lane;if(ae?(pt&ne)===ne:(p&ne)===ne){ne!==0&&ne===cu&&(Tb=!0),oe!==null&&(oe=oe.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Te=o,Fe=N;ne=l;var Wt=d;switch(Fe.tag){case 1:if(Te=Fe.payload,typeof Te=="function"){fe=Te.call(Wt,fe,ne);break e}fe=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Fe.payload,ne=typeof Te=="function"?Te.call(Wt,fe,ne):Te,ne==null)break e;fe=m({},fe,ne);break e;case 2:vi=!0}}ne=N.callback,ne!==null&&(o.flags|=64,ae&&(o.flags|=8192),ae=v.callbacks,ae===null?v.callbacks=[ne]:ae.push(ne))}else ae={lane:ne,tag:N.tag,payload:N.payload,callback:N.callback,next:null},oe===null?(ee=oe=ae,H=fe):oe=oe.next=ae,I|=ne;if(N=N.next,N===null){if(N=v.shared.pending,N===null)break;ae=N,N=ae.next,ae.next=null,v.lastBaseUpdate=ae,v.shared.pending=null}}while(!0);oe===null&&(H=fe),v.baseState=H,v.firstBaseUpdate=ee,v.lastBaseUpdate=oe,S===null&&(v.shared.lanes=0),Ei|=I,o.lanes=I,o.memoizedState=fe}}function xR(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function CR(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)xR(d[o],l)}var hu=j(null),Lm=j(0);function ER(o,l){o=bo,Z(Lm,o),Z(hu,l),bo=o|l.baseLanes}function Rb(){Z(Lm,bo),Z(hu,hu.current)}function Ob(){bo=Lm.current,Y(hu),Y(Lm)}var ua=j(null),Oa=null;function Si(o){var l=o.alternate;Z(kn,kn.current&1),Z(ua,o),Oa===null&&(l===null||hu.current!==null||l.memoizedState!==null)&&(Oa=o)}function Nb(o){Z(kn,kn.current),Z(ua,o),Oa===null&&(Oa=o)}function _R(o){o.tag===22?(Z(kn,kn.current),Z(ua,o),Oa===null&&(Oa=o)):wi()}function wi(){Z(kn,kn.current),Z(ua,ua.current)}function da(o){Y(ua),Oa===o&&(Oa=null),Y(kn)}var kn=j(0);function Um(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||zS(d)||jS(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var uo=0,rt=null,qt=null,Nn=null,zm=!1,pu=!1,Ll=!1,jm=0,Tf=0,mu=null,cG=0;function Sn(){throw Error(r(321))}function Mb(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!la(o[d],l[d]))return!1;return!0}function Pb(o,l,d,p,v,S){return uo=S,rt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,$.H=o===null||o.memoizedState===null?lO:Yb,Ll=!1,S=d(p,v),Ll=!1,pu&&(S=AR(l,d,p,v)),kR(o),S}function kR(o){$.H=Nf;var l=qt!==null&&qt.next!==null;if(uo=0,Nn=qt=rt=null,zm=!1,Tf=0,mu=null,l)throw Error(r(300));o===null||Mn||(o=o.dependencies,o!==null&&Tm(o)&&(Mn=!0))}function AR(o,l,d,p){rt=o;var v=0;do{if(pu&&(mu=null),Tf=0,pu=!1,25<=v)throw Error(r(301));if(v+=1,Nn=qt=null,o.updateQueue!=null){var S=o.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}$.H=cO,S=l(d,p)}while(pu);return S}function uG(){var o=$.H,l=o.useState()[0];return l=typeof l.then=="function"?Rf(l):l,o=o.useState()[0],(qt!==null?qt.memoizedState:null)!==o&&(rt.flags|=1024),l}function Db(){var o=jm!==0;return jm=0,o}function Lb(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function Ub(o){if(zm){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}zm=!1}uo=0,Nn=qt=rt=null,pu=!1,Tf=jm=0,mu=null}function Or(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nn===null?rt.memoizedState=Nn=o:Nn=Nn.next=o,Nn}function An(){if(qt===null){var o=rt.alternate;o=o!==null?o.memoizedState:null}else o=qt.next;var l=Nn===null?rt.memoizedState:Nn.next;if(l!==null)Nn=l,qt=o;else{if(o===null)throw rt.alternate===null?Error(r(467)):Error(r(310));qt=o,o={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Nn===null?rt.memoizedState=Nn=o:Nn=Nn.next=o}return Nn}function Fm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rf(o){var l=Tf;return Tf+=1,mu===null&&(mu=[]),o=vR(mu,o,l),l=rt,(Nn===null?l.memoizedState:Nn.next)===null&&(l=l.alternate,$.H=l===null||l.memoizedState===null?lO:Yb),o}function $m(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Rf(o);if(o.$$typeof===A)return ir(o)}throw Error(r(438,String(o)))}function zb(o){var l=null,d=rt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var p=rt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(l={data:p.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Fm(),rt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),p=0;p<o;p++)d[p]=q;return l.index++,d}function fo(o,l){return typeof l=="function"?l(o):l}function Bm(o){var l=An();return jb(l,qt,o)}function jb(o,l,d){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=d;var v=o.baseQueue,S=p.pending;if(S!==null){if(v!==null){var I=v.next;v.next=S.next,S.next=I}l.baseQueue=v=S,p.pending=null}if(S=o.baseState,v===null)o.memoizedState=S;else{l=v.next;var N=I=null,H=null,ee=l,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(pt&fe)===fe:(uo&fe)===fe){var ne=ee.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===cu&&(oe=!0);else if((uo&ne)===ne){ee=ee.next,ne===cu&&(oe=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(N=H=fe,I=S):H=H.next=fe,rt.lanes|=ne,Ei|=ne;fe=ee.action,Ll&&d(S,fe),S=ee.hasEagerState?ee.eagerState:d(S,fe)}else ne={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(N=H=ne,I=S):H=H.next=ne,rt.lanes|=fe,Ei|=fe;ee=ee.next}while(ee!==null&&ee!==l);if(H===null?I=S:H.next=N,!la(S,o.memoizedState)&&(Mn=!0,oe&&(d=uu,d!==null)))throw d;o.memoizedState=S,o.baseState=I,o.baseQueue=H,p.lastRenderedState=S}return v===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function Fb(o){var l=An(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var p=d.dispatch,v=d.pending,S=l.memoizedState;if(v!==null){d.pending=null;var I=v=v.next;do S=o(S,I.action),I=I.next;while(I!==v);la(S,l.memoizedState)||(Mn=!0),l.memoizedState=S,l.baseQueue===null&&(l.baseState=S),d.lastRenderedState=S}return[S,p]}function IR(o,l,d){var p=rt,v=An(),S=gt;if(S){if(d===void 0)throw Error(r(407));d=d()}else d=l();var I=!la((qt||v).memoizedState,d);if(I&&(v.memoizedState=d,Mn=!0),v=v.queue,Hb(OR.bind(null,p,v,o),[o]),v.getSnapshot!==l||I||Nn!==null&&Nn.memoizedState.tag&1){if(p.flags|=2048,gu(9,{destroy:void 0},RR.bind(null,p,v,d,l),null),Jt===null)throw Error(r(349));S||(uo&127)!==0||TR(p,l,d)}return d}function TR(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=rt.updateQueue,l===null?(l=Fm(),rt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function RR(o,l,d,p){l.value=d,l.getSnapshot=p,NR(l)&&MR(o)}function OR(o,l,d){return d(function(){NR(l)&&MR(o)})}function NR(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!la(o,d)}catch{return!0}}function MR(o){var l=Al(o,2);l!==null&&Gr(l,o,2)}function $b(o){var l=Or();if(typeof o=="function"){var d=o;if(o=d(),Ll){Ar(!0);try{d()}finally{Ar(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:o},l}function PR(o,l,d,p){return o.baseState=d,jb(o,qt,typeof p=="function"?p:fo)}function dG(o,l,d,p,v){if(Vm(o))throw Error(r(485));if(o=l.action,o!==null){var S={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){S.listeners.push(I)}};$.T!==null?d(!0):S.isTransition=!1,p(S),d=l.pending,d===null?(S.next=l.pending=S,DR(l,S)):(S.next=d.next,l.pending=d.next=S)}}function DR(o,l){var d=l.action,p=l.payload,v=o.state;if(l.isTransition){var S=$.T,I={};$.T=I;try{var N=d(v,p),H=$.S;H!==null&&H(I,N),LR(o,l,N)}catch(ee){Bb(o,l,ee)}finally{S!==null&&I.types!==null&&(S.types=I.types),$.T=S}}else try{S=d(v,p),LR(o,l,S)}catch(ee){Bb(o,l,ee)}}function LR(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(p){UR(o,l,p)},function(p){return Bb(o,l,p)}):UR(o,l,d)}function UR(o,l,d){l.status="fulfilled",l.value=d,zR(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,DR(o,d)))}function Bb(o,l,d){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=d,zR(l),l=l.next;while(l!==p)}o.action=null}function zR(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function jR(o,l){return l}function FR(o,l){if(gt){var d=Jt.formState;if(d!==null){e:{var p=rt;if(gt){if(nn){t:{for(var v=nn,S=Ra;v.nodeType!==8;){if(!S){v=null;break t}if(v=Na(v.nextSibling),v===null){v=null;break t}}S=v.data,v=S==="F!"||S==="F"?v:null}if(v){nn=Na(v.nextSibling),p=v.data==="F!";break e}}mi(p)}p=!1}p&&(l=d[0])}}return d=Or(),d.memoizedState=d.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jR,lastRenderedState:l},d.queue=p,d=sO.bind(null,rt,p),p.dispatch=d,p=$b(!1),S=Kb.bind(null,rt,!1,p.queue),p=Or(),v={state:l,dispatch:null,action:o,pending:null},p.queue=v,d=dG.bind(null,rt,v,S,d),v.dispatch=d,p.memoizedState=o,[l,d,!1]}function $R(o){var l=An();return BR(l,qt,o)}function BR(o,l,d){if(l=jb(o,l,jR)[0],o=Bm(fo)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=Rf(l)}catch(I){throw I===du?Nm:I}else p=l;l=An();var v=l.queue,S=v.dispatch;return d!==l.memoizedState&&(rt.flags|=2048,gu(9,{destroy:void 0},fG.bind(null,v,d),null)),[p,S,o]}function fG(o,l){o.action=l}function HR(o){var l=An(),d=qt;if(d!==null)return BR(l,d,o);An(),l=l.memoizedState,d=An();var p=d.queue.dispatch;return d.memoizedState=o,[l,p,!1]}function gu(o,l,d,p){return o={tag:o,create:d,deps:p,inst:l,next:null},l=rt.updateQueue,l===null&&(l=Fm(),rt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(p=d.next,d.next=o,o.next=p,l.lastEffect=o),o}function qR(){return An().memoizedState}function Hm(o,l,d,p){var v=Or();rt.flags|=o,v.memoizedState=gu(1|l,{destroy:void 0},d,p===void 0?null:p)}function qm(o,l,d,p){var v=An();p=p===void 0?null:p;var S=v.memoizedState.inst;qt!==null&&p!==null&&Mb(p,qt.memoizedState.deps)?v.memoizedState=gu(l,S,d,p):(rt.flags|=o,v.memoizedState=gu(1|l,S,d,p))}function VR(o,l){Hm(8390656,8,o,l)}function Hb(o,l){qm(2048,8,o,l)}function hG(o){rt.flags|=4;var l=rt.updateQueue;if(l===null)l=Fm(),rt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function WR(o){var l=An().memoizedState;return hG({ref:l,nextImpl:o}),function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function GR(o,l){return qm(4,2,o,l)}function KR(o,l){return qm(4,4,o,l)}function YR(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function ZR(o,l,d){d=d!=null?d.concat([o]):null,qm(4,4,YR.bind(null,l,o),d)}function qb(){}function XR(o,l){var d=An();l=l===void 0?null:l;var p=d.memoizedState;return l!==null&&Mb(l,p[1])?p[0]:(d.memoizedState=[o,l],o)}function QR(o,l){var d=An();l=l===void 0?null:l;var p=d.memoizedState;if(l!==null&&Mb(l,p[1]))return p[0];if(p=o(),Ll){Ar(!0);try{o()}finally{Ar(!1)}}return d.memoizedState=[p,l],p}function Vb(o,l,d){return d===void 0||(uo&1073741824)!==0&&(pt&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=JO(),rt.lanes|=o,Ei|=o,d)}function JR(o,l,d,p){return la(d,l)?d:hu.current!==null?(o=Vb(o,d,p),la(o,l)||(Mn=!0),o):(uo&42)===0||(uo&1073741824)!==0&&(pt&261930)===0?(Mn=!0,o.memoizedState=d):(o=JO(),rt.lanes|=o,Ei|=o,l)}function eO(o,l,d,p,v){var S=X.p;X.p=S!==0&&8>S?S:8;var I=$.T,N={};$.T=N,Kb(o,!1,l,d);try{var H=v(),ee=$.S;if(ee!==null&&ee(N,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var oe=lG(H,p);Of(o,l,oe,pa(o))}else Of(o,l,p,pa(o))}catch(fe){Of(o,l,{then:function(){},status:"rejected",reason:fe},pa())}finally{X.p=S,I!==null&&N.types!==null&&(I.types=N.types),$.T=I}}function pG(){}function Wb(o,l,d,p){if(o.tag!==5)throw Error(r(476));var v=tO(o).queue;eO(o,v,l,re,d===null?pG:function(){return nO(o),d(p)})}function tO(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:re},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function nO(o){var l=tO(o);l.next===null&&(l=o.alternate.memoizedState),Of(o,l.next.queue,{},pa())}function Gb(){return ir(Kf)}function rO(){return An().memoizedState}function aO(){return An().memoizedState}function mG(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=pa();o=yi(d);var p=bi(l,o,d);p!==null&&(Gr(p,l,d),kf(p,l,d)),l={cache:xb()},o.payload=l;return}l=l.return}}function gG(o,l,d){var p=pa();d={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Vm(o)?oO(l,d):(d=db(o,l,d,p),d!==null&&(Gr(d,o,p),iO(d,l,p)))}function sO(o,l,d){var p=pa();Of(o,l,d,p)}function Of(o,l,d,p){var v={lane:p,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Vm(o))oO(l,v);else{var S=o.alternate;if(o.lanes===0&&(S===null||S.lanes===0)&&(S=l.lastRenderedReducer,S!==null))try{var I=l.lastRenderedState,N=S(I,d);if(v.hasEagerState=!0,v.eagerState=N,la(N,I))return _m(o,l,v,0),Jt===null&&Em(),!1}catch{}if(d=db(o,l,v,p),d!==null)return Gr(d,o,p),iO(d,l,p),!0}return!1}function Kb(o,l,d,p){if(p={lane:2,revertLane:kS(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Vm(o)){if(l)throw Error(r(479))}else l=db(o,d,p,2),l!==null&&Gr(l,o,2)}function Vm(o){var l=o.alternate;return o===rt||l!==null&&l===rt}function oO(o,l){pu=zm=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function iO(o,l,d){if((d&4194048)!==0){var p=l.lanes;p&=o.pendingLanes,d|=p,l.lanes=d,vl(o,d)}}var Nf={readContext:ir,use:$m,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useLayoutEffect:Sn,useInsertionEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useSyncExternalStore:Sn,useId:Sn,useHostTransitionStatus:Sn,useFormState:Sn,useActionState:Sn,useOptimistic:Sn,useMemoCache:Sn,useCacheRefresh:Sn};Nf.useEffectEvent=Sn;var lO={readContext:ir,use:$m,useCallback:function(o,l){return Or().memoizedState=[o,l===void 0?null:l],o},useContext:ir,useEffect:VR,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,Hm(4194308,4,YR.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Hm(4194308,4,o,l)},useInsertionEffect:function(o,l){Hm(4,2,o,l)},useMemo:function(o,l){var d=Or();l=l===void 0?null:l;var p=o();if(Ll){Ar(!0);try{o()}finally{Ar(!1)}}return d.memoizedState=[p,l],p},useReducer:function(o,l,d){var p=Or();if(d!==void 0){var v=d(l);if(Ll){Ar(!0);try{d(l)}finally{Ar(!1)}}}else v=l;return p.memoizedState=p.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},p.queue=o,o=o.dispatch=gG.bind(null,rt,o),[p.memoizedState,o]},useRef:function(o){var l=Or();return o={current:o},l.memoizedState=o},useState:function(o){o=$b(o);var l=o.queue,d=sO.bind(null,rt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:qb,useDeferredValue:function(o,l){var d=Or();return Vb(d,o,l)},useTransition:function(){var o=$b(!1);return o=eO.bind(null,rt,o.queue,!0,!1),Or().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var p=rt,v=Or();if(gt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Jt===null)throw Error(r(349));(pt&127)!==0||TR(p,l,d)}v.memoizedState=d;var S={value:d,getSnapshot:l};return v.queue=S,VR(OR.bind(null,p,S,o),[o]),p.flags|=2048,gu(9,{destroy:void 0},RR.bind(null,p,S,d,l),null),d},useId:function(){var o=Or(),l=Jt.identifierPrefix;if(gt){var d=_s,p=Es;d=(p&~(1<<32-Wn(p)-1)).toString(32)+d,l="_"+l+"R_"+d,d=jm++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=cG++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:Gb,useFormState:FR,useActionState:FR,useOptimistic:function(o){var l=Or();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=Kb.bind(null,rt,!0,d),d.dispatch=l,[o,l]},useMemoCache:zb,useCacheRefresh:function(){return Or().memoizedState=mG.bind(null,rt)},useEffectEvent:function(o){var l=Or(),d={impl:o};return l.memoizedState=d,function(){if((Nt&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},Yb={readContext:ir,use:$m,useCallback:XR,useContext:ir,useEffect:Hb,useImperativeHandle:ZR,useInsertionEffect:GR,useLayoutEffect:KR,useMemo:QR,useReducer:Bm,useRef:qR,useState:function(){return Bm(fo)},useDebugValue:qb,useDeferredValue:function(o,l){var d=An();return JR(d,qt.memoizedState,o,l)},useTransition:function(){var o=Bm(fo)[0],l=An().memoizedState;return[typeof o=="boolean"?o:Rf(o),l]},useSyncExternalStore:IR,useId:rO,useHostTransitionStatus:Gb,useFormState:$R,useActionState:$R,useOptimistic:function(o,l){var d=An();return PR(d,qt,o,l)},useMemoCache:zb,useCacheRefresh:aO};Yb.useEffectEvent=WR;var cO={readContext:ir,use:$m,useCallback:XR,useContext:ir,useEffect:Hb,useImperativeHandle:ZR,useInsertionEffect:GR,useLayoutEffect:KR,useMemo:QR,useReducer:Fb,useRef:qR,useState:function(){return Fb(fo)},useDebugValue:qb,useDeferredValue:function(o,l){var d=An();return qt===null?Vb(d,o,l):JR(d,qt.memoizedState,o,l)},useTransition:function(){var o=Fb(fo)[0],l=An().memoizedState;return[typeof o=="boolean"?o:Rf(o),l]},useSyncExternalStore:IR,useId:rO,useHostTransitionStatus:Gb,useFormState:HR,useActionState:HR,useOptimistic:function(o,l){var d=An();return qt!==null?PR(d,qt,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:zb,useCacheRefresh:aO};cO.useEffectEvent=WR;function Zb(o,l,d,p){l=o.memoizedState,d=d(p,l),d=d==null?l:m({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var Xb={enqueueSetState:function(o,l,d){o=o._reactInternals;var p=pa(),v=yi(p);v.payload=l,d!=null&&(v.callback=d),l=bi(o,v,p),l!==null&&(Gr(l,o,p),kf(l,o,p))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var p=pa(),v=yi(p);v.tag=1,v.payload=l,d!=null&&(v.callback=d),l=bi(o,v,p),l!==null&&(Gr(l,o,p),kf(l,o,p))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=pa(),p=yi(d);p.tag=2,l!=null&&(p.callback=l),l=bi(o,p,d),l!==null&&(Gr(l,o,d),kf(l,o,d))}};function uO(o,l,d,p,v,S,I){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,S,I):l.prototype&&l.prototype.isPureReactComponent?!yf(d,p)||!yf(v,S):!0}function dO(o,l,d,p){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,p),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,p),l.state!==o&&Xb.enqueueReplaceState(l,l.state,null)}function Ul(o,l){var d=l;if("ref"in l){d={};for(var p in l)p!=="ref"&&(d[p]=l[p])}if(o=o.defaultProps){d===l&&(d=m({},d));for(var v in o)d[v]===void 0&&(d[v]=o[v])}return d}function fO(o){Cm(o)}function hO(o){console.error(o)}function pO(o){Cm(o)}function Wm(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function mO(o,l,d){try{var p=o.onCaughtError;p(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Qb(o,l,d){return d=yi(d),d.tag=3,d.payload={element:null},d.callback=function(){Wm(o,l)},d}function gO(o){return o=yi(o),o.tag=3,o}function vO(o,l,d,p){var v=d.type.getDerivedStateFromError;if(typeof v=="function"){var S=p.value;o.payload=function(){return v(S)},o.callback=function(){mO(l,d,p)}}var I=d.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(o.callback=function(){mO(l,d,p),typeof v!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var N=p.stack;this.componentDidCatch(p.value,{componentStack:N!==null?N:""})})}function vG(o,l,d,p,v){if(d.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=d.alternate,l!==null&&lu(l,d,v,!0),d=ua.current,d!==null){switch(d.tag){case 31:case 13:return Oa===null?ag():d.alternate===null&&wn===0&&(wn=3),d.flags&=-257,d.flags|=65536,d.lanes=v,p===Mm?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([p]):l.add(p),CS(o,p,v)),!1;case 22:return d.flags|=65536,p===Mm?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([p])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([p]):d.add(p)),CS(o,p,v)),!1}throw Error(r(435,d.tag))}return CS(o,p,v),ag(),!1}if(gt)return l=ua.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,p!==vb&&(o=Error(r(422),{cause:p}),wf(Aa(o,d)))):(p!==vb&&(l=Error(r(423),{cause:p}),wf(Aa(l,d))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,p=Aa(p,d),v=Qb(o.stateNode,p,v),Ib(o,v),wn!==4&&(wn=2)),!1;var S=Error(r(520),{cause:p});if(S=Aa(S,d),Ff===null?Ff=[S]:Ff.push(S),wn!==4&&(wn=2),l===null)return!0;p=Aa(p,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=v&-v,d.lanes|=o,o=Qb(d.stateNode,p,o),Ib(d,o),!1;case 1:if(l=d.type,S=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(_i===null||!_i.has(S))))return d.flags|=65536,v&=-v,d.lanes|=v,v=gO(v),vO(v,o,d,p),Ib(d,v),!1}d=d.return}while(d!==null);return!1}var Jb=Error(r(461)),Mn=!1;function lr(o,l,d,p){l.child=o===null?wR(l,null,d,p):Dl(l,o.child,d,p)}function yO(o,l,d,p,v){d=d.render;var S=l.ref;if("ref"in p){var I={};for(var N in p)N!=="ref"&&(I[N]=p[N])}else I=p;return Ol(l),p=Pb(o,l,d,I,S,v),N=Db(),o!==null&&!Mn?(Lb(o,l,v),ho(o,l,v)):(gt&&N&&mb(l),l.flags|=1,lr(o,l,p,v),l.child)}function bO(o,l,d,p,v){if(o===null){var S=d.type;return typeof S=="function"&&!fb(S)&&S.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=S,SO(o,l,S,p,v)):(o=Am(d.type,null,p,l,l.mode,v),o.ref=l.ref,o.return=l,l.child=o)}if(S=o.child,!iS(o,v)){var I=S.memoizedProps;if(d=d.compare,d=d!==null?d:yf,d(I,p)&&o.ref===l.ref)return ho(o,l,v)}return l.flags|=1,o=oo(S,p),o.ref=l.ref,o.return=l,l.child=o}function SO(o,l,d,p,v){if(o!==null){var S=o.memoizedProps;if(yf(S,p)&&o.ref===l.ref)if(Mn=!1,l.pendingProps=p=S,iS(o,v))(o.flags&131072)!==0&&(Mn=!0);else return l.lanes=o.lanes,ho(o,l,v)}return eS(o,l,d,p,v)}function wO(o,l,d,p){var v=p.children,S=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((l.flags&128)!==0){if(S=S!==null?S.baseLanes|d:d,o!==null){for(p=l.child=o.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;p=v&~S}else p=0,l.child=null;return xO(o,l,S,d,p)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&Om(l,S!==null?S.cachePool:null),S!==null?ER(l,S):Rb(),_R(l);else return p=l.lanes=536870912,xO(o,l,S!==null?S.baseLanes|d:d,d,p)}else S!==null?(Om(l,S.cachePool),ER(l,S),wi(),l.memoizedState=null):(o!==null&&Om(l,null),Rb(),wi());return lr(o,l,v,d),l.child}function Mf(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function xO(o,l,d,p,v){var S=Eb();return S=S===null?null:{parent:On._currentValue,pool:S},l.memoizedState={baseLanes:d,cachePool:S},o!==null&&Om(l,null),Rb(),_R(l),o!==null&&lu(o,l,p,!0),l.childLanes=v,null}function Gm(o,l){return l=Ym({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function CO(o,l,d){return Dl(l,o.child,null,d),o=Gm(l,l.pendingProps),o.flags|=2,da(l),l.memoizedState=null,o}function yG(o,l,d){var p=l.pendingProps,v=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(gt){if(p.mode==="hidden")return o=Gm(l,p),l.lanes=536870912,Mf(null,o);if(Nb(l),(o=nn)?(o=D4(o,Ra),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:hi!==null?{id:Es,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},d=oR(o),d.return=l,l.child=d,or=l,nn=null)):o=null,o===null)throw mi(l);return l.lanes=536870912,null}return Gm(l,p)}var S=o.memoizedState;if(S!==null){var I=S.dehydrated;if(Nb(l),v)if(l.flags&256)l.flags&=-257,l=CO(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(Mn||lu(o,l,d,!1),v=(d&o.childLanes)!==0,Mn||v){if(p=Jt,p!==null&&(I=oa(p,d),I!==0&&I!==S.retryLane))throw S.retryLane=I,Al(o,I),Gr(p,o,I),Jb;ag(),l=CO(o,l,d)}else o=S.treeContext,nn=Na(I.nextSibling),or=l,gt=!0,pi=null,Ra=!1,o!==null&&cR(l,o),l=Gm(l,p),l.flags|=4096;return l}return o=oo(o.child,{mode:p.mode,children:p.children}),o.ref=l.ref,l.child=o,o.return=l,o}function Km(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function eS(o,l,d,p,v){return Ol(l),d=Pb(o,l,d,p,void 0,v),p=Db(),o!==null&&!Mn?(Lb(o,l,v),ho(o,l,v)):(gt&&p&&mb(l),l.flags|=1,lr(o,l,d,v),l.child)}function EO(o,l,d,p,v,S){return Ol(l),l.updateQueue=null,d=AR(l,p,d,v),kR(o),p=Db(),o!==null&&!Mn?(Lb(o,l,S),ho(o,l,S)):(gt&&p&&mb(l),l.flags|=1,lr(o,l,d,S),l.child)}function _O(o,l,d,p,v){if(Ol(l),l.stateNode===null){var S=au,I=d.contextType;typeof I=="object"&&I!==null&&(S=ir(I)),S=new d(p,S),l.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=Xb,l.stateNode=S,S._reactInternals=l,S=l.stateNode,S.props=p,S.state=l.memoizedState,S.refs={},kb(l),I=d.contextType,S.context=typeof I=="object"&&I!==null?ir(I):au,S.state=l.memoizedState,I=d.getDerivedStateFromProps,typeof I=="function"&&(Zb(l,d,I,p),S.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(I=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),I!==S.state&&Xb.enqueueReplaceState(S,S.state,null),If(l,p,S,v),Af(),S.state=l.memoizedState),typeof S.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(o===null){S=l.stateNode;var N=l.memoizedProps,H=Ul(d,N);S.props=H;var ee=S.context,oe=d.contextType;I=au,typeof oe=="object"&&oe!==null&&(I=ir(oe));var fe=d.getDerivedStateFromProps;oe=typeof fe=="function"||typeof S.getSnapshotBeforeUpdate=="function",N=l.pendingProps!==N,oe||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(N||ee!==I)&&dO(l,S,p,I),vi=!1;var ne=l.memoizedState;S.state=ne,If(l,p,S,v),Af(),ee=l.memoizedState,N||ne!==ee||vi?(typeof fe=="function"&&(Zb(l,d,fe,p),ee=l.memoizedState),(H=vi||uO(l,d,H,p,ne,ee,I))?(oe||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(l.flags|=4194308)):(typeof S.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=p,l.memoizedState=ee),S.props=p,S.state=ee,S.context=I,p=H):(typeof S.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{S=l.stateNode,Ab(o,l),I=l.memoizedProps,oe=Ul(d,I),S.props=oe,fe=l.pendingProps,ne=S.context,ee=d.contextType,H=au,typeof ee=="object"&&ee!==null&&(H=ir(ee)),N=d.getDerivedStateFromProps,(ee=typeof N=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(I!==fe||ne!==H)&&dO(l,S,p,H),vi=!1,ne=l.memoizedState,S.state=ne,If(l,p,S,v),Af();var ae=l.memoizedState;I!==fe||ne!==ae||vi||o!==null&&o.dependencies!==null&&Tm(o.dependencies)?(typeof N=="function"&&(Zb(l,d,N,p),ae=l.memoizedState),(oe=vi||uO(l,d,oe,p,ne,ae,H)||o!==null&&o.dependencies!==null&&Tm(o.dependencies))?(ee||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(p,ae,H),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(p,ae,H)),typeof S.componentDidUpdate=="function"&&(l.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof S.componentDidUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=ae),S.props=p,S.state=ae,S.context=H,p=oe):(typeof S.componentDidUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ne===o.memoizedState||(l.flags|=1024),p=!1)}return S=p,Km(o,l),p=(l.flags&128)!==0,S||p?(S=l.stateNode,d=p&&typeof d.getDerivedStateFromError!="function"?null:S.render(),l.flags|=1,o!==null&&p?(l.child=Dl(l,o.child,null,v),l.child=Dl(l,null,d,v)):lr(o,l,d,v),l.memoizedState=S.state,o=l.child):o=ho(o,l,v),o}function kO(o,l,d,p){return Tl(),l.flags|=256,lr(o,l,d,p),l.child}var tS={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nS(o){return{baseLanes:o,cachePool:mR()}}function rS(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=ha),o}function AO(o,l,d){var p=l.pendingProps,v=!1,S=(l.flags&128)!==0,I;if((I=S)||(I=o!==null&&o.memoizedState===null?!1:(kn.current&2)!==0),I&&(v=!0,l.flags&=-129),I=(l.flags&32)!==0,l.flags&=-33,o===null){if(gt){if(v?Si(l):wi(),(o=nn)?(o=D4(o,Ra),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:hi!==null?{id:Es,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},d=oR(o),d.return=l,l.child=d,or=l,nn=null)):o=null,o===null)throw mi(l);return jS(o)?l.lanes=32:l.lanes=536870912,null}var N=p.children;return p=p.fallback,v?(wi(),v=l.mode,N=Ym({mode:"hidden",children:N},v),p=Il(p,v,d,null),N.return=l,p.return=l,N.sibling=p,l.child=N,p=l.child,p.memoizedState=nS(d),p.childLanes=rS(o,I,d),l.memoizedState=tS,Mf(null,p)):(Si(l),aS(l,N))}var H=o.memoizedState;if(H!==null&&(N=H.dehydrated,N!==null)){if(S)l.flags&256?(Si(l),l.flags&=-257,l=sS(o,l,d)):l.memoizedState!==null?(wi(),l.child=o.child,l.flags|=128,l=null):(wi(),N=p.fallback,v=l.mode,p=Ym({mode:"visible",children:p.children},v),N=Il(N,v,d,null),N.flags|=2,p.return=l,N.return=l,p.sibling=N,l.child=p,Dl(l,o.child,null,d),p=l.child,p.memoizedState=nS(d),p.childLanes=rS(o,I,d),l.memoizedState=tS,l=Mf(null,p));else if(Si(l),jS(N)){if(I=N.nextSibling&&N.nextSibling.dataset,I)var ee=I.dgst;I=ee,p=Error(r(419)),p.stack="",p.digest=I,wf({value:p,source:null,stack:null}),l=sS(o,l,d)}else if(Mn||lu(o,l,d,!1),I=(d&o.childLanes)!==0,Mn||I){if(I=Jt,I!==null&&(p=oa(I,d),p!==0&&p!==H.retryLane))throw H.retryLane=p,Al(o,p),Gr(I,o,p),Jb;zS(N)||ag(),l=sS(o,l,d)}else zS(N)?(l.flags|=192,l.child=o.child,l=null):(o=H.treeContext,nn=Na(N.nextSibling),or=l,gt=!0,pi=null,Ra=!1,o!==null&&cR(l,o),l=aS(l,p.children),l.flags|=4096);return l}return v?(wi(),N=p.fallback,v=l.mode,H=o.child,ee=H.sibling,p=oo(H,{mode:"hidden",children:p.children}),p.subtreeFlags=H.subtreeFlags&65011712,ee!==null?N=oo(ee,N):(N=Il(N,v,d,null),N.flags|=2),N.return=l,p.return=l,p.sibling=N,l.child=p,Mf(null,p),p=l.child,N=o.child.memoizedState,N===null?N=nS(d):(v=N.cachePool,v!==null?(H=On._currentValue,v=v.parent!==H?{parent:H,pool:H}:v):v=mR(),N={baseLanes:N.baseLanes|d,cachePool:v}),p.memoizedState=N,p.childLanes=rS(o,I,d),l.memoizedState=tS,Mf(o.child,p)):(Si(l),d=o.child,o=d.sibling,d=oo(d,{mode:"visible",children:p.children}),d.return=l,d.sibling=null,o!==null&&(I=l.deletions,I===null?(l.deletions=[o],l.flags|=16):I.push(o)),l.child=d,l.memoizedState=null,d)}function aS(o,l){return l=Ym({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function Ym(o,l){return o=ca(22,o,null,l),o.lanes=0,o}function sS(o,l,d){return Dl(l,o.child,null,d),o=aS(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function IO(o,l,d){o.lanes|=l;var p=o.alternate;p!==null&&(p.lanes|=l),Sb(o.return,l,d)}function oS(o,l,d,p,v,S){var I=o.memoizedState;I===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:v,treeForkCount:S}:(I.isBackwards=l,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=d,I.tailMode=v,I.treeForkCount=S)}function TO(o,l,d){var p=l.pendingProps,v=p.revealOrder,S=p.tail;p=p.children;var I=kn.current,N=(I&2)!==0;if(N?(I=I&1|2,l.flags|=128):I&=1,Z(kn,I),lr(o,l,p,d),p=gt?Sf:0,!N&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&IO(o,d,l);else if(o.tag===19)IO(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(d=l.child,v=null;d!==null;)o=d.alternate,o!==null&&Um(o)===null&&(v=d),d=d.sibling;d=v,d===null?(v=l.child,l.child=null):(v=d.sibling,d.sibling=null),oS(l,!1,v,d,S,p);break;case"backwards":case"unstable_legacy-backwards":for(d=null,v=l.child,l.child=null;v!==null;){if(o=v.alternate,o!==null&&Um(o)===null){l.child=v;break}o=v.sibling,v.sibling=d,d=v,v=o}oS(l,!0,d,null,S,p);break;case"together":oS(l,!1,null,null,void 0,p);break;default:l.memoizedState=null}return l.child}function ho(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),Ei|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(lu(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=oo(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=oo(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function iS(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&Tm(o)))}function bG(o,l,d){switch(l.tag){case 3:te(l,l.stateNode.containerInfo),gi(l,On,o.memoizedState.cache),Tl();break;case 27:case 5:Le(l);break;case 4:te(l,l.stateNode.containerInfo);break;case 10:gi(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Nb(l),null;break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(Si(l),l.flags|=128,null):(d&l.child.childLanes)!==0?AO(o,l,d):(Si(l),o=ho(o,l,d),o!==null?o.sibling:null);Si(l);break;case 19:var v=(o.flags&128)!==0;if(p=(d&l.childLanes)!==0,p||(lu(o,l,d,!1),p=(d&l.childLanes)!==0),v){if(p)return TO(o,l,d);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Z(kn,kn.current),p)break;return null;case 22:return l.lanes=0,wO(o,l,d,l.pendingProps);case 24:gi(l,On,o.memoizedState.cache)}return ho(o,l,d)}function RO(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)Mn=!0;else{if(!iS(o,d)&&(l.flags&128)===0)return Mn=!1,bG(o,l,d);Mn=(o.flags&131072)!==0}else Mn=!1,gt&&(l.flags&1048576)!==0&&lR(l,Sf,l.index);switch(l.lanes=0,l.tag){case 16:e:{var p=l.pendingProps;if(o=Ml(l.elementType),l.type=o,typeof o=="function")fb(o)?(p=Ul(o,p),l.tag=1,l=_O(null,l,o,p,d)):(l.tag=0,l=eS(null,l,o,p,d));else{if(o!=null){var v=o.$$typeof;if(v===R){l.tag=11,l=yO(null,l,o,p,d);break e}else if(v===T){l.tag=14,l=bO(null,l,o,p,d);break e}}throw l=G(o)||o,Error(r(306,l,""))}}return l;case 0:return eS(o,l,l.type,l.pendingProps,d);case 1:return p=l.type,v=Ul(p,l.pendingProps),_O(o,l,p,v,d);case 3:e:{if(te(l,l.stateNode.containerInfo),o===null)throw Error(r(387));p=l.pendingProps;var S=l.memoizedState;v=S.element,Ab(o,l),If(l,p,null,d);var I=l.memoizedState;if(p=I.cache,gi(l,On,p),p!==S.cache&&wb(l,[On],d,!0),Af(),p=I.element,S.isDehydrated)if(S={element:p,isDehydrated:!1,cache:I.cache},l.updateQueue.baseState=S,l.memoizedState=S,l.flags&256){l=kO(o,l,p,d);break e}else if(p!==v){v=Aa(Error(r(424)),l),wf(v),l=kO(o,l,p,d);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,nn=Na(o.firstChild),or=l,gt=!0,pi=null,Ra=!0,d=wR(l,null,p,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Tl(),p===v){l=ho(o,l,d);break e}lr(o,l,p,d)}l=l.child}return l;case 26:return Km(o,l),o===null?(d=$4(l.type,null,l.pendingProps,null))?l.memoizedState=d:gt||(d=l.type,o=l.pendingProps,p=dg(le.current).createElement(d),p[En]=l,p[sr]=o,cr(p,d,o),_n(p),l.stateNode=p):l.memoizedState=$4(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Le(l),o===null&>&&(p=l.stateNode=z4(l.type,l.pendingProps,le.current),or=l,Ra=!0,v=nn,Ti(l.type)?(FS=v,nn=Na(p.firstChild)):nn=v),lr(o,l,l.pendingProps.children,d),Km(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&>&&((v=p=nn)&&(p=YG(p,l.type,l.pendingProps,Ra),p!==null?(l.stateNode=p,or=l,nn=Na(p.firstChild),Ra=!1,v=!0):v=!1),v||mi(l)),Le(l),v=l.type,S=l.pendingProps,I=o!==null?o.memoizedProps:null,p=S.children,DS(v,S)?p=null:I!==null&&DS(v,I)&&(l.flags|=32),l.memoizedState!==null&&(v=Pb(o,l,uG,null,null,d),Kf._currentValue=v),Km(o,l),lr(o,l,p,d),l.child;case 6:return o===null&>&&((o=d=nn)&&(d=ZG(d,l.pendingProps,Ra),d!==null?(l.stateNode=d,or=l,nn=null,o=!0):o=!1),o||mi(l)),null;case 13:return AO(o,l,d);case 4:return te(l,l.stateNode.containerInfo),p=l.pendingProps,o===null?l.child=Dl(l,null,p,d):lr(o,l,p,d),l.child;case 11:return yO(o,l,l.type,l.pendingProps,d);case 7:return lr(o,l,l.pendingProps,d),l.child;case 8:return lr(o,l,l.pendingProps.children,d),l.child;case 12:return lr(o,l,l.pendingProps.children,d),l.child;case 10:return p=l.pendingProps,gi(l,l.type,p.value),lr(o,l,p.children,d),l.child;case 9:return v=l.type._context,p=l.pendingProps.children,Ol(l),v=ir(v),p=p(v),l.flags|=1,lr(o,l,p,d),l.child;case 14:return bO(o,l,l.type,l.pendingProps,d);case 15:return SO(o,l,l.type,l.pendingProps,d);case 19:return TO(o,l,d);case 31:return yG(o,l,d);case 22:return wO(o,l,d,l.pendingProps);case 24:return Ol(l),p=ir(On),o===null?(v=Eb(),v===null&&(v=Jt,S=xb(),v.pooledCache=S,S.refCount++,S!==null&&(v.pooledCacheLanes|=d),v=S),l.memoizedState={parent:p,cache:v},kb(l),gi(l,On,v)):((o.lanes&d)!==0&&(Ab(o,l),If(l,null,null,d),Af()),v=o.memoizedState,S=l.memoizedState,v.parent!==p?(v={parent:p,cache:p},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),gi(l,On,p)):(p=S.cache,gi(l,On,p),p!==v.cache&&wb(l,[On],d,!0))),lr(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function po(o){o.flags|=4}function lS(o,l,d,p,v){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(r4())o.flags|=8192;else throw Pl=Mm,_b}else o.flags&=-16777217}function OO(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!W4(l))if(r4())o.flags|=8192;else throw Pl=Mm,_b}function Zm(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?rf():536870912,o.lanes|=l,Su|=l)}function Pf(o,l){if(!gt)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function rn(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,p=0;if(l)for(var v=o.child;v!==null;)d|=v.lanes|v.childLanes,p|=v.subtreeFlags&65011712,p|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)d|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=p,o.childLanes=d,l}function SG(o,l,d){var p=l.pendingProps;switch(gb(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(l),null;case 1:return rn(l),null;case 3:return d=l.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),co(On),ve(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(iu(l)?po(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,yb())),rn(l),null;case 26:var v=l.type,S=l.memoizedState;return o===null?(po(l),S!==null?(rn(l),OO(l,S)):(rn(l),lS(l,v,null,p,d))):S?S!==o.memoizedState?(po(l),rn(l),OO(l,S)):(rn(l),l.flags&=-16777217):(o=o.memoizedProps,o!==p&&po(l),rn(l),lS(l,v,o,p,d)),null;case 27:if(we(l),d=le.current,v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&po(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return rn(l),null}o=Q.current,iu(l)?uR(l):(o=z4(v,p,d),l.stateNode=o,po(l))}return rn(l),null;case 5:if(we(l),v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==p&&po(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return rn(l),null}if(S=Q.current,iu(l))uR(l);else{var I=dg(le.current);switch(S){case 1:S=I.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:S=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":S=I.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":S=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":S=I.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?S.multiple=!0:p.size&&(S.size=p.size);break;default:S=typeof p.is=="string"?I.createElement(v,{is:p.is}):I.createElement(v)}}S[En]=l,S[sr]=p;e:for(I=l.child;I!==null;){if(I.tag===5||I.tag===6)S.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===l)break e;for(;I.sibling===null;){if(I.return===null||I.return===l)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}l.stateNode=S;e:switch(cr(S,v,p),v){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&po(l)}}return rn(l),lS(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==p&&po(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(r(166));if(o=le.current,iu(l)){if(o=l.stateNode,d=l.memoizedProps,p=null,v=or,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}o[En]=l,o=!!(o.nodeValue===d||p!==null&&p.suppressHydrationWarning===!0||A4(o.nodeValue,d)),o||mi(l,!0)}else o=dg(o).createTextNode(p),o[En]=l,l.stateNode=o}return rn(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(p=iu(l),d!==null){if(o===null){if(!p)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[En]=l}else Tl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;rn(l),o=!1}else d=yb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(da(l),l):(da(l),null);if((l.flags&128)!==0)throw Error(r(558))}return rn(l),null;case 13:if(p=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=iu(l),p!==null&&p.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[En]=l}else Tl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;rn(l),v=!1}else v=yb(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(da(l),l):(da(l),null)}return da(l),(l.flags&128)!==0?(l.lanes=d,l):(d=p!==null,o=o!==null&&o.memoizedState!==null,d&&(p=l.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),S=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(S=p.memoizedState.cachePool.pool),S!==v&&(p.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),Zm(l,l.updateQueue),rn(l),null);case 4:return ve(),o===null&&RS(l.stateNode.containerInfo),rn(l),null;case 10:return co(l.type),rn(l),null;case 19:if(Y(kn),p=l.memoizedState,p===null)return rn(l),null;if(v=(l.flags&128)!==0,S=p.rendering,S===null)if(v)Pf(p,!1);else{if(wn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(S=Um(o),S!==null){for(l.flags|=128,Pf(p,!1),o=S.updateQueue,l.updateQueue=o,Zm(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)sR(d,o),d=d.sibling;return Z(kn,kn.current&1|2),gt&&io(l,p.treeForkCount),l.child}o=o.sibling}p.tail!==null&&Fn()>tg&&(l.flags|=128,v=!0,Pf(p,!1),l.lanes=4194304)}else{if(!v)if(o=Um(S),o!==null){if(l.flags|=128,v=!0,o=o.updateQueue,l.updateQueue=o,Zm(l,o),Pf(p,!0),p.tail===null&&p.tailMode==="hidden"&&!S.alternate&&!gt)return rn(l),null}else 2*Fn()-p.renderingStartTime>tg&&d!==536870912&&(l.flags|=128,v=!0,Pf(p,!1),l.lanes=4194304);p.isBackwards?(S.sibling=l.child,l.child=S):(o=p.last,o!==null?o.sibling=S:l.child=S,p.last=S)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=Fn(),o.sibling=null,d=kn.current,Z(kn,v?d&1|2:d&1),gt&&io(l,p.treeForkCount),o):(rn(l),null);case 22:case 23:return da(l),Ob(),p=l.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(l.flags|=8192):p&&(l.flags|=8192),p?(d&536870912)!==0&&(l.flags&128)===0&&(rn(l),l.subtreeFlags&6&&(l.flags|=8192)):rn(l),d=l.updateQueue,d!==null&&Zm(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048),o!==null&&Y(Nl),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),co(On),rn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function wG(o,l){switch(gb(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return co(On),ve(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return we(l),null;case 31:if(l.memoizedState!==null){if(da(l),l.alternate===null)throw Error(r(340));Tl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(da(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Tl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Y(kn),null;case 4:return ve(),null;case 10:return co(l.type),null;case 22:case 23:return da(l),Ob(),o!==null&&Y(Nl),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return co(On),null;case 25:return null;default:return null}}function NO(o,l){switch(gb(l),l.tag){case 3:co(On),ve();break;case 26:case 27:case 5:we(l);break;case 4:ve();break;case 31:l.memoizedState!==null&&da(l);break;case 13:da(l);break;case 19:Y(kn);break;case 10:co(l.type);break;case 22:case 23:da(l),Ob(),o!==null&&Y(Nl);break;case 24:co(On)}}function Df(o,l){try{var d=l.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next;d=v;do{if((d.tag&o)===o){p=void 0;var S=d.create,I=d.inst;p=S(),I.destroy=p}d=d.next}while(d!==v)}}catch(N){jt(l,l.return,N)}}function xi(o,l,d){try{var p=l.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var S=v.next;p=S;do{if((p.tag&o)===o){var I=p.inst,N=I.destroy;if(N!==void 0){I.destroy=void 0,v=l;var H=d,ee=N;try{ee()}catch(oe){jt(v,H,oe)}}}p=p.next}while(p!==S)}}catch(oe){jt(l,l.return,oe)}}function MO(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{CR(l,d)}catch(p){jt(o,o.return,p)}}}function PO(o,l,d){d.props=Ul(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(p){jt(o,l,p)}}function Lf(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof d=="function"?o.refCleanup=d(p):d.current=p}}catch(v){jt(o,l,v)}}function ks(o,l){var d=o.ref,p=o.refCleanup;if(d!==null)if(typeof p=="function")try{p()}catch(v){jt(o,l,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(v){jt(o,l,v)}else d.current=null}function DO(o){var l=o.type,d=o.memoizedProps,p=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&p.focus();break e;case"img":d.src?p.src=d.src:d.srcSet&&(p.srcset=d.srcSet)}}catch(v){jt(o,o.return,v)}}function cS(o,l,d){try{var p=o.stateNode;HG(p,o.type,d,l),p[sr]=l}catch(v){jt(o,o.return,v)}}function LO(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ti(o.type)||o.tag===4}function uS(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||LO(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ti(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function dS(o,l,d){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=br));else if(p!==4&&(p===27&&Ti(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(dS(o,l,d),o=o.sibling;o!==null;)dS(o,l,d),o=o.sibling}function Xm(o,l,d){var p=o.tag;if(p===5||p===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(p!==4&&(p===27&&Ti(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Xm(o,l,d),o=o.sibling;o!==null;)Xm(o,l,d),o=o.sibling}function UO(o){var l=o.stateNode,d=o.memoizedProps;try{for(var p=o.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);cr(l,p,d),l[En]=o,l[sr]=d}catch(S){jt(o,o.return,S)}}var mo=!1,Pn=!1,fS=!1,zO=typeof WeakSet=="function"?WeakSet:Set,Yn=null;function xG(o,l){if(o=o.containerInfo,MS=yg,o=ZT(o),sb(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var p=d.getSelection&&d.getSelection();if(p&&p.rangeCount!==0){d=p.anchorNode;var v=p.anchorOffset,S=p.focusNode;p=p.focusOffset;try{d.nodeType,S.nodeType}catch{d=null;break e}var I=0,N=-1,H=-1,ee=0,oe=0,fe=o,ne=null;t:for(;;){for(var ae;fe!==d||v!==0&&fe.nodeType!==3||(N=I+v),fe!==S||p!==0&&fe.nodeType!==3||(H=I+p),fe.nodeType===3&&(I+=fe.nodeValue.length),(ae=fe.firstChild)!==null;)ne=fe,fe=ae;for(;;){if(fe===o)break t;if(ne===d&&++ee===v&&(N=I),ne===S&&++oe===p&&(H=I),(ae=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=ae}d=N===-1||H===-1?null:{start:N,end:H}}else d=null}d=d||{start:0,end:0}}else d=null;for(PS={focusedElem:o,selectionRange:d},yg=!1,Yn=l;Yn!==null;)if(l=Yn,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Yn=o;else for(;Yn!==null;){switch(l=Yn,S=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)v=o[d],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&S!==null){o=void 0,d=l,v=S.memoizedProps,S=S.memoizedState,p=d.stateNode;try{var Te=Ul(d.type,v);o=p.getSnapshotBeforeUpdate(Te,S),p.__reactInternalSnapshotBeforeUpdate=o}catch(Fe){jt(d,d.return,Fe)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)US(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":US(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,Yn=o;break}Yn=l.return}}function jO(o,l,d){var p=d.flags;switch(d.tag){case 0:case 11:case 15:vo(o,d),p&4&&Df(5,d);break;case 1:if(vo(o,d),p&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(I){jt(d,d.return,I)}else{var v=Ul(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(v,l,o.__reactInternalSnapshotBeforeUpdate)}catch(I){jt(d,d.return,I)}}p&64&&MO(d),p&512&&Lf(d,d.return);break;case 3:if(vo(o,d),p&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{CR(o,l)}catch(I){jt(d,d.return,I)}}break;case 27:l===null&&p&4&&UO(d);case 26:case 5:vo(o,d),l===null&&p&4&&DO(d),p&512&&Lf(d,d.return);break;case 12:vo(o,d);break;case 31:vo(o,d),p&4&&BO(o,d);break;case 13:vo(o,d),p&4&&HO(o,d),p&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=OG.bind(null,d),XG(o,d))));break;case 22:if(p=d.memoizedState!==null||mo,!p){l=l!==null&&l.memoizedState!==null||Pn,v=mo;var S=Pn;mo=p,(Pn=l)&&!S?yo(o,d,(d.subtreeFlags&8772)!==0):vo(o,d),mo=v,Pn=S}break;case 30:break;default:vo(o,d)}}function FO(o){var l=o.alternate;l!==null&&(o.alternate=null,FO(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&ws(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var dn=null,Hr=!1;function go(o,l,d){for(d=d.child;d!==null;)$O(o,l,d),d=d.sibling}function $O(o,l,d){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(ys,d)}catch{}switch(d.tag){case 26:Pn||ks(d,l),go(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Pn||ks(d,l);var p=dn,v=Hr;Ti(d.type)&&(dn=d.stateNode,Hr=!1),go(o,l,d),Vf(d.stateNode),dn=p,Hr=v;break;case 5:Pn||ks(d,l);case 6:if(p=dn,v=Hr,dn=null,go(o,l,d),dn=p,Hr=v,dn!==null)if(Hr)try{(dn.nodeType===9?dn.body:dn.nodeName==="HTML"?dn.ownerDocument.body:dn).removeChild(d.stateNode)}catch(S){jt(d,l,S)}else try{dn.removeChild(d.stateNode)}catch(S){jt(d,l,S)}break;case 18:dn!==null&&(Hr?(o=dn,M4(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),Iu(o)):M4(dn,d.stateNode));break;case 4:p=dn,v=Hr,dn=d.stateNode.containerInfo,Hr=!0,go(o,l,d),dn=p,Hr=v;break;case 0:case 11:case 14:case 15:xi(2,d,l),Pn||xi(4,d,l),go(o,l,d);break;case 1:Pn||(ks(d,l),p=d.stateNode,typeof p.componentWillUnmount=="function"&&PO(d,l,p)),go(o,l,d);break;case 21:go(o,l,d);break;case 22:Pn=(p=Pn)||d.memoizedState!==null,go(o,l,d),Pn=p;break;default:go(o,l,d)}}function BO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Iu(o)}catch(d){jt(l,l.return,d)}}}function HO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Iu(o)}catch(d){jt(l,l.return,d)}}function CG(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new zO),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new zO),l;default:throw Error(r(435,o.tag))}}function Qm(o,l){var d=CG(o);l.forEach(function(p){if(!d.has(p)){d.add(p);var v=NG.bind(null,o,p);p.then(v,v)}})}function qr(o,l){var d=l.deletions;if(d!==null)for(var p=0;p<d.length;p++){var v=d[p],S=o,I=l,N=I;e:for(;N!==null;){switch(N.tag){case 27:if(Ti(N.type)){dn=N.stateNode,Hr=!1;break e}break;case 5:dn=N.stateNode,Hr=!1;break e;case 3:case 4:dn=N.stateNode.containerInfo,Hr=!0;break e}N=N.return}if(dn===null)throw Error(r(160));$O(S,I,v),dn=null,Hr=!1,S=v.alternate,S!==null&&(S.return=null),v.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)qO(l,o),l=l.sibling}var Ja=null;function qO(o,l){var d=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:qr(l,o),Vr(o),p&4&&(xi(3,o,o.return),Df(3,o),xi(5,o,o.return));break;case 1:qr(l,o),Vr(o),p&512&&(Pn||d===null||ks(d,d.return)),p&64&&mo&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?p:d.concat(p))));break;case 26:var v=Ja;if(qr(l,o),Vr(o),p&512&&(Pn||d===null||ks(d,d.return)),p&4){var S=d!==null?d.memoizedState:null;if(p=o.memoizedState,d===null)if(p===null)if(o.stateNode===null){e:{p=o.type,d=o.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":S=v.getElementsByTagName("title")[0],(!S||S[Qt]||S[En]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=v.createElement(p),v.head.insertBefore(S,v.querySelector("head > title"))),cr(S,p,d),S[En]=o,_n(S),p=S;break e;case"link":var I=q4("link","href",v).get(p+(d.href||""));if(I){for(var N=0;N<I.length;N++)if(S=I[N],S.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&S.getAttribute("rel")===(d.rel==null?null:d.rel)&&S.getAttribute("title")===(d.title==null?null:d.title)&&S.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){I.splice(N,1);break t}}S=v.createElement(p),cr(S,p,d),v.head.appendChild(S);break;case"meta":if(I=q4("meta","content",v).get(p+(d.content||""))){for(N=0;N<I.length;N++)if(S=I[N],S.getAttribute("content")===(d.content==null?null:""+d.content)&&S.getAttribute("name")===(d.name==null?null:d.name)&&S.getAttribute("property")===(d.property==null?null:d.property)&&S.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&S.getAttribute("charset")===(d.charSet==null?null:d.charSet)){I.splice(N,1);break t}}S=v.createElement(p),cr(S,p,d),v.head.appendChild(S);break;default:throw Error(r(468,p))}S[En]=o,_n(S),p=S}o.stateNode=p}else V4(v,o.type,o.stateNode);else o.stateNode=H4(v,p,o.memoizedProps);else S!==p?(S===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):S.count--,p===null?V4(v,o.type,o.stateNode):H4(v,p,o.memoizedProps)):p===null&&o.stateNode!==null&&cS(o,o.memoizedProps,d.memoizedProps)}break;case 27:qr(l,o),Vr(o),p&512&&(Pn||d===null||ks(d,d.return)),d!==null&&p&4&&cS(o,o.memoizedProps,d.memoizedProps);break;case 5:if(qr(l,o),Vr(o),p&512&&(Pn||d===null||ks(d,d.return)),o.flags&32){v=o.stateNode;try{Xa(v,"")}catch(Te){jt(o,o.return,Te)}}p&4&&o.stateNode!=null&&(v=o.memoizedProps,cS(o,v,d!==null?d.memoizedProps:v)),p&1024&&(fS=!0);break;case 6:if(qr(l,o),Vr(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,d=o.stateNode;try{d.nodeValue=p}catch(Te){jt(o,o.return,Te)}}break;case 3:if(pg=null,v=Ja,Ja=fg(l.containerInfo),qr(l,o),Ja=v,Vr(o),p&4&&d!==null&&d.memoizedState.isDehydrated)try{Iu(l.containerInfo)}catch(Te){jt(o,o.return,Te)}fS&&(fS=!1,VO(o));break;case 4:p=Ja,Ja=fg(o.stateNode.containerInfo),qr(l,o),Vr(o),Ja=p;break;case 12:qr(l,o),Vr(o);break;case 31:qr(l,o),Vr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Qm(o,p)));break;case 13:qr(l,o),Vr(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(eg=Fn()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Qm(o,p)));break;case 22:v=o.memoizedState!==null;var H=d!==null&&d.memoizedState!==null,ee=mo,oe=Pn;if(mo=ee||v,Pn=oe||H,qr(l,o),Pn=oe,mo=ee,Vr(o),p&8192)e:for(l=o.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(d===null||H||mo||Pn||zl(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){H=d=l;try{if(S=H.stateNode,v)I=S.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{N=H.stateNode;var fe=H.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;N.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Te){jt(H,H.return,Te)}}}else if(l.tag===6){if(d===null){H=l;try{H.stateNode.nodeValue=v?"":H.memoizedProps}catch(Te){jt(H,H.return,Te)}}}else if(l.tag===18){if(d===null){H=l;try{var ae=H.stateNode;v?P4(ae,!0):P4(H.stateNode,!1)}catch(Te){jt(H,H.return,Te)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}p&4&&(p=o.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,Qm(o,d))));break;case 19:qr(l,o),Vr(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Qm(o,p)));break;case 30:break;case 21:break;default:qr(l,o),Vr(o)}}function Vr(o){var l=o.flags;if(l&2){try{for(var d,p=o.return;p!==null;){if(LO(p)){d=p;break}p=p.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var v=d.stateNode,S=uS(o);Xm(o,S,v);break;case 5:var I=d.stateNode;d.flags&32&&(Xa(I,""),d.flags&=-33);var N=uS(o);Xm(o,N,I);break;case 3:case 4:var H=d.stateNode.containerInfo,ee=uS(o);dS(o,ee,H);break;default:throw Error(r(161))}}catch(oe){jt(o,o.return,oe)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function VO(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;VO(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function vo(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)jO(o,l.alternate,l),l=l.sibling}function zl(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:xi(4,l,l.return),zl(l);break;case 1:ks(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&PO(l,l.return,d),zl(l);break;case 27:Vf(l.stateNode);case 26:case 5:ks(l,l.return),zl(l);break;case 22:l.memoizedState===null&&zl(l);break;case 30:zl(l);break;default:zl(l)}o=o.sibling}}function yo(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,v=o,S=l,I=S.flags;switch(S.tag){case 0:case 11:case 15:yo(v,S,d),Df(4,S);break;case 1:if(yo(v,S,d),p=S,v=p.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ee){jt(p,p.return,ee)}if(p=S,v=p.updateQueue,v!==null){var N=p.stateNode;try{var H=v.shared.hiddenCallbacks;if(H!==null)for(v.shared.hiddenCallbacks=null,v=0;v<H.length;v++)xR(H[v],N)}catch(ee){jt(p,p.return,ee)}}d&&I&64&&MO(S),Lf(S,S.return);break;case 27:UO(S);case 26:case 5:yo(v,S,d),d&&p===null&&I&4&&DO(S),Lf(S,S.return);break;case 12:yo(v,S,d);break;case 31:yo(v,S,d),d&&I&4&&BO(v,S);break;case 13:yo(v,S,d),d&&I&4&&HO(v,S);break;case 22:S.memoizedState===null&&yo(v,S,d),Lf(S,S.return);break;case 30:break;default:yo(v,S,d)}l=l.sibling}}function hS(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&xf(d))}function pS(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&xf(o))}function es(o,l,d,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)WO(o,l,d,p),l=l.sibling}function WO(o,l,d,p){var v=l.flags;switch(l.tag){case 0:case 11:case 15:es(o,l,d,p),v&2048&&Df(9,l);break;case 1:es(o,l,d,p);break;case 3:es(o,l,d,p),v&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&xf(o)));break;case 12:if(v&2048){es(o,l,d,p),o=l.stateNode;try{var S=l.memoizedProps,I=S.id,N=S.onPostCommit;typeof N=="function"&&N(I,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(H){jt(l,l.return,H)}}else es(o,l,d,p);break;case 31:es(o,l,d,p);break;case 13:es(o,l,d,p);break;case 23:break;case 22:S=l.stateNode,I=l.alternate,l.memoizedState!==null?S._visibility&2?es(o,l,d,p):Uf(o,l):S._visibility&2?es(o,l,d,p):(S._visibility|=2,vu(o,l,d,p,(l.subtreeFlags&10256)!==0||!1)),v&2048&&hS(I,l);break;case 24:es(o,l,d,p),v&2048&&pS(l.alternate,l);break;default:es(o,l,d,p)}}function vu(o,l,d,p,v){for(v=v&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var S=o,I=l,N=d,H=p,ee=I.flags;switch(I.tag){case 0:case 11:case 15:vu(S,I,N,H,v),Df(8,I);break;case 23:break;case 22:var oe=I.stateNode;I.memoizedState!==null?oe._visibility&2?vu(S,I,N,H,v):Uf(S,I):(oe._visibility|=2,vu(S,I,N,H,v)),v&&ee&2048&&hS(I.alternate,I);break;case 24:vu(S,I,N,H,v),v&&ee&2048&&pS(I.alternate,I);break;default:vu(S,I,N,H,v)}l=l.sibling}}function Uf(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,p=l,v=p.flags;switch(p.tag){case 22:Uf(d,p),v&2048&&hS(p.alternate,p);break;case 24:Uf(d,p),v&2048&&pS(p.alternate,p);break;default:Uf(d,p)}l=l.sibling}}var zf=8192;function yu(o,l,d){if(o.subtreeFlags&zf)for(o=o.child;o!==null;)GO(o,l,d),o=o.sibling}function GO(o,l,d){switch(o.tag){case 26:yu(o,l,d),o.flags&zf&&o.memoizedState!==null&&cK(d,Ja,o.memoizedState,o.memoizedProps);break;case 5:yu(o,l,d);break;case 3:case 4:var p=Ja;Ja=fg(o.stateNode.containerInfo),yu(o,l,d),Ja=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=zf,zf=16777216,yu(o,l,d),zf=p):yu(o,l,d));break;default:yu(o,l,d)}}function KO(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function jf(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];Yn=p,ZO(p,o)}KO(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)YO(o),o=o.sibling}function YO(o){switch(o.tag){case 0:case 11:case 15:jf(o),o.flags&2048&&xi(9,o,o.return);break;case 3:jf(o);break;case 12:jf(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Jm(o)):jf(o);break;default:jf(o)}}function Jm(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];Yn=p,ZO(p,o)}KO(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:xi(8,l,l.return),Jm(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Jm(l));break;default:Jm(l)}o=o.sibling}}function ZO(o,l){for(;Yn!==null;){var d=Yn;switch(d.tag){case 0:case 11:case 15:xi(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var p=d.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:xf(d.memoizedState.cache)}if(p=d.child,p!==null)p.return=d,Yn=p;else e:for(d=o;Yn!==null;){p=Yn;var v=p.sibling,S=p.return;if(FO(p),p===d){Yn=null;break e}if(v!==null){v.return=S,Yn=v;break e}Yn=S}}}var EG={getCacheForType:function(o){var l=ir(On),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return ir(On).controller.signal}},_G=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Jt=null,dt=null,pt=0,zt=0,fa=null,Ci=!1,bu=!1,mS=!1,bo=0,wn=0,Ei=0,jl=0,gS=0,ha=0,Su=0,Ff=null,Wr=null,vS=!1,eg=0,XO=0,tg=1/0,ng=null,_i=null,$n=0,ki=null,wu=null,So=0,yS=0,bS=null,QO=null,$f=0,SS=null;function pa(){return(Nt&2)!==0&&pt!==0?pt&-pt:$.T!==null?kS():Gc()}function JO(){if(ha===0)if((pt&536870912)===0||gt){var o=ri;ri<<=1,(ri&3932160)===0&&(ri=262144),ha=o}else ha=536870912;return o=ua.current,o!==null&&(o.flags|=32),ha}function Gr(o,l,d){(o===Jt&&(zt===2||zt===9)||o.cancelPendingCommit!==null)&&(xu(o,0),Ai(o,pt,ha,!1)),si(o,d),((Nt&2)===0||o!==Jt)&&(o===Jt&&((Nt&2)===0&&(jl|=d),wn===4&&Ai(o,pt,ha,!1)),As(o))}function e4(o,l,d){if((Nt&6)!==0)throw Error(r(327));var p=!d&&(l&127)===0&&(l&o.expiredLanes)===0||sa(o,l),v=p?IG(o,l):xS(o,l,!0),S=p;do{if(v===0){bu&&!p&&Ai(o,l,0,!1);break}else{if(d=o.current.alternate,S&&!kG(d)){v=xS(o,l,!1),S=!1;continue}if(v===2){if(S=l,o.errorRecoveryDisabledLanes&S)var I=0;else I=o.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){l=I;e:{var N=o;v=Ff;var H=N.current.memoizedState.isDehydrated;if(H&&(xu(N,I).flags|=256),I=xS(N,I,!1),I!==2){if(mS&&!H){N.errorRecoveryDisabledLanes|=S,jl|=S,v=4;break e}S=Wr,Wr=v,S!==null&&(Wr===null?Wr=S:Wr.push.apply(Wr,S))}v=I}if(S=!1,v!==2)continue}}if(v===1){xu(o,0),Ai(o,l,0,!0);break}e:{switch(p=o,S=v,S){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Ai(p,l,ha,!Ci);break e;case 2:Wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=eg+300-Fn(),10<v)){if(Ai(p,l,ha,!Ci),Ka(p,0,!0)!==0)break e;So=l,p.timeoutHandle=O4(t4.bind(null,p,d,Wr,ng,vS,l,ha,jl,Su,Ci,S,"Throttled",-0,0),v);break e}t4(p,d,Wr,ng,vS,l,ha,jl,Su,Ci,S,null,-0,0)}}break}while(!0);As(o)}function t4(o,l,d,p,v,S,I,N,H,ee,oe,fe,ne,ae){if(o.timeoutHandle=-1,fe=l.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:br},GO(l,S,fe);var Te=(S&62914560)===S?eg-Fn():(S&4194048)===S?XO-Fn():0;if(Te=uK(fe,Te),Te!==null){So=S,o.cancelPendingCommit=Te(c4.bind(null,o,l,S,d,p,v,I,N,H,oe,fe,null,ne,ae)),Ai(o,S,I,!ee);return}}c4(o,l,S,d,p,v,I,N,H)}function kG(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var p=0;p<d.length;p++){var v=d[p],S=v.getSnapshot;v=v.value;try{if(!la(S(),v))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ai(o,l,d,p){l&=~gS,l&=~jl,o.suspendedLanes|=l,o.pingedLanes&=~l,p&&(o.warmLanes|=l),p=o.expirationTimes;for(var v=l;0<v;){var S=31-Wn(v),I=1<<S;p[S]=-1,v&=~I}d!==0&&gl(o,d,l)}function rg(){return(Nt&6)===0?(Bf(0),!1):!0}function wS(){if(dt!==null){if(zt===0)var o=dt.return;else o=dt,lo=Rl=null,Ub(o),fu=null,Ef=0,o=dt;for(;o!==null;)NO(o.alternate,o),o=o.return;dt=null}}function xu(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,WG(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),So=0,wS(),Jt=o,dt=d=oo(o.current,null),pt=l,zt=0,fa=null,Ci=!1,bu=sa(o,l),mS=!1,Su=ha=gS=jl=Ei=wn=0,Wr=Ff=null,vS=!1,(l&8)!==0&&(l|=l&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=l;0<p;){var v=31-Wn(p),S=1<<v;l|=o[v],p&=~S}return bo=l,Em(),d}function n4(o,l){rt=null,$.H=Nf,l===du||l===Nm?(l=yR(),zt=3):l===_b?(l=yR(),zt=4):zt=l===Jb?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,fa=l,dt===null&&(wn=1,Wm(o,Aa(l,o.current)))}function r4(){var o=ua.current;return o===null?!0:(pt&4194048)===pt?Oa===null:(pt&62914560)===pt||(pt&536870912)!==0?o===Oa:!1}function a4(){var o=$.H;return $.H=Nf,o===null?Nf:o}function s4(){var o=$.A;return $.A=EG,o}function ag(){wn=4,Ci||(pt&4194048)!==pt&&ua.current!==null||(bu=!0),(Ei&134217727)===0&&(jl&134217727)===0||Jt===null||Ai(Jt,pt,ha,!1)}function xS(o,l,d){var p=Nt;Nt|=2;var v=a4(),S=s4();(Jt!==o||pt!==l)&&(ng=null,xu(o,l)),l=!1;var I=wn;e:do try{if(zt!==0&&dt!==null){var N=dt,H=fa;switch(zt){case 8:wS(),I=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(l=!0);var ee=zt;if(zt=0,fa=null,Cu(o,N,H,ee),d&&bu){I=0;break e}break;default:ee=zt,zt=0,fa=null,Cu(o,N,H,ee)}}AG(),I=wn;break}catch(oe){n4(o,oe)}while(!0);return l&&o.shellSuspendCounter++,lo=Rl=null,Nt=p,$.H=v,$.A=S,dt===null&&(Jt=null,pt=0,Em()),I}function AG(){for(;dt!==null;)o4(dt)}function IG(o,l){var d=Nt;Nt|=2;var p=a4(),v=s4();Jt!==o||pt!==l?(ng=null,tg=Fn()+500,xu(o,l)):bu=sa(o,l);e:do try{if(zt!==0&&dt!==null){l=dt;var S=fa;t:switch(zt){case 1:zt=0,fa=null,Cu(o,l,S,1);break;case 2:case 9:if(gR(S)){zt=0,fa=null,i4(l);break}l=function(){zt!==2&&zt!==9||Jt!==o||(zt=7),As(o)},S.then(l,l);break e;case 3:zt=7;break e;case 4:zt=5;break e;case 7:gR(S)?(zt=0,fa=null,i4(l)):(zt=0,fa=null,Cu(o,l,S,7));break;case 5:var I=null;switch(dt.tag){case 26:I=dt.memoizedState;case 5:case 27:var N=dt;if(I?W4(I):N.stateNode.complete){zt=0,fa=null;var H=N.sibling;if(H!==null)dt=H;else{var ee=N.return;ee!==null?(dt=ee,sg(ee)):dt=null}break t}}zt=0,fa=null,Cu(o,l,S,5);break;case 6:zt=0,fa=null,Cu(o,l,S,6);break;case 8:wS(),wn=6;break e;default:throw Error(r(462))}}TG();break}catch(oe){n4(o,oe)}while(!0);return lo=Rl=null,$.H=p,$.A=v,Nt=d,dt!==null?0:(Jt=null,pt=0,Em(),wn)}function TG(){for(;dt!==null&&!gs();)o4(dt)}function o4(o){var l=RO(o.alternate,o,bo);o.memoizedProps=o.pendingProps,l===null?sg(o):dt=l}function i4(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=EO(d,l,l.pendingProps,l.type,void 0,pt);break;case 11:l=EO(d,l,l.pendingProps,l.type.render,l.ref,pt);break;case 5:Ub(l);default:NO(d,l),l=dt=sR(l,bo),l=RO(d,l,bo)}o.memoizedProps=o.pendingProps,l===null?sg(o):dt=l}function Cu(o,l,d,p){lo=Rl=null,Ub(l),fu=null,Ef=0;var v=l.return;try{if(vG(o,v,l,d,pt)){wn=1,Wm(o,Aa(d,o.current)),dt=null;return}}catch(S){if(v!==null)throw dt=v,S;wn=1,Wm(o,Aa(d,o.current)),dt=null;return}l.flags&32768?(gt||p===1?o=!0:bu||(pt&536870912)!==0?o=!1:(Ci=o=!0,(p===2||p===9||p===3||p===6)&&(p=ua.current,p!==null&&p.tag===13&&(p.flags|=16384))),l4(l,o)):sg(l)}function sg(o){var l=o;do{if((l.flags&32768)!==0){l4(l,Ci);return}o=l.return;var d=SG(l.alternate,l,bo);if(d!==null){dt=d;return}if(l=l.sibling,l!==null){dt=l;return}dt=l=o}while(l!==null);wn===0&&(wn=5)}function l4(o,l){do{var d=wG(o.alternate,o);if(d!==null){d.flags&=32767,dt=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){dt=o;return}dt=o=d}while(o!==null);wn=6,dt=null}function c4(o,l,d,p,v,S,I,N,H){o.cancelPendingCommit=null;do og();while($n!==0);if((Nt&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(S=l.lanes|l.childLanes,S|=ub,fm(o,d,S,I,N,H),o===Jt&&(dt=Jt=null,pt=0),wu=l,ki=o,So=d,yS=S,bS=v,QO=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,MG(vr,function(){return p4(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=$.T,$.T=null,v=X.p,X.p=2,I=Nt,Nt|=4;try{xG(o,l,d)}finally{Nt=I,X.p=v,$.T=p}}$n=1,u4(),d4(),f4()}}function u4(){if($n===1){$n=0;var o=ki,l=wu,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=$.T,$.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{qO(l,o);var S=PS,I=ZT(o.containerInfo),N=S.focusedElem,H=S.selectionRange;if(I!==N&&N&&N.ownerDocument&&YT(N.ownerDocument.documentElement,N)){if(H!==null&&sb(N)){var ee=H.start,oe=H.end;if(oe===void 0&&(oe=ee),"selectionStart"in N)N.selectionStart=ee,N.selectionEnd=Math.min(oe,N.value.length);else{var fe=N.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),Te=N.textContent.length,Fe=Math.min(H.start,Te),Wt=H.end===void 0?Fe:Math.min(H.end,Te);!ae.extend&&Fe>Wt&&(I=Wt,Wt=Fe,Fe=I);var K=KT(N,Fe),V=KT(N,Wt);if(K&&V&&(ae.rangeCount!==1||ae.anchorNode!==K.node||ae.anchorOffset!==K.offset||ae.focusNode!==V.node||ae.focusOffset!==V.offset)){var J=fe.createRange();J.setStart(K.node,K.offset),ae.removeAllRanges(),Fe>Wt?(ae.addRange(J),ae.extend(V.node,V.offset)):(J.setEnd(V.node,V.offset),ae.addRange(J))}}}}for(fe=[],ae=N;ae=ae.parentNode;)ae.nodeType===1&&fe.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<fe.length;N++){var ce=fe[N];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}yg=!!MS,PS=MS=null}finally{Nt=v,X.p=p,$.T=d}}o.current=l,$n=2}}function d4(){if($n===2){$n=0;var o=ki,l=wu,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=$.T,$.T=null;var p=X.p;X.p=2;var v=Nt;Nt|=4;try{jO(o,l.alternate,l)}finally{Nt=v,X.p=p,$.T=d}}$n=3}}function f4(){if($n===4||$n===3){$n=0,Fr();var o=ki,l=wu,d=So,p=QO;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?$n=5:($n=0,wu=ki=null,h4(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(_i=null),yl(d),l=l.stateNode,ar&&typeof ar.onCommitFiberRoot=="function")try{ar.onCommitFiberRoot(ys,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=$.T,v=X.p,X.p=2,$.T=null;try{for(var S=o.onRecoverableError,I=0;I<p.length;I++){var N=p[I];S(N.value,{componentStack:N.stack})}}finally{$.T=l,X.p=v}}(So&3)!==0&&og(),As(o),v=o.pendingLanes,(d&261930)!==0&&(v&42)!==0?o===SS?$f++:($f=0,SS=o):$f=0,Bf(0)}}function h4(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,xf(l)))}function og(){return u4(),d4(),f4(),p4()}function p4(){if($n!==5)return!1;var o=ki,l=yS;yS=0;var d=yl(So),p=$.T,v=X.p;try{X.p=32>d?32:d,$.T=null,d=bS,bS=null;var S=ki,I=So;if($n=0,wu=ki=null,So=0,(Nt&6)!==0)throw Error(r(331));var N=Nt;if(Nt|=4,YO(S.current),WO(S,S.current,I,d),Nt=N,Bf(0,!1),ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(ys,S)}catch{}return!0}finally{X.p=v,$.T=p,h4(o,l)}}function m4(o,l,d){l=Aa(d,l),l=Qb(o.stateNode,l,2),o=bi(o,l,2),o!==null&&(si(o,2),As(o))}function jt(o,l,d){if(o.tag===3)m4(o,o,d);else for(;l!==null;){if(l.tag===3){m4(l,o,d);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(_i===null||!_i.has(p))){o=Aa(d,o),d=gO(2),p=bi(l,d,2),p!==null&&(vO(d,p,l,o),si(p,2),As(p));break}}l=l.return}}function CS(o,l,d){var p=o.pingCache;if(p===null){p=o.pingCache=new _G;var v=new Set;p.set(l,v)}else v=p.get(l),v===void 0&&(v=new Set,p.set(l,v));v.has(d)||(mS=!0,v.add(d),o=RG.bind(null,o,l,d),l.then(o,o))}function RG(o,l,d){var p=o.pingCache;p!==null&&p.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Jt===o&&(pt&d)===d&&(wn===4||wn===3&&(pt&62914560)===pt&&300>Fn()-eg?(Nt&2)===0&&xu(o,0):gS|=d,Su===pt&&(Su=0)),As(o)}function g4(o,l){l===0&&(l=rf()),o=Al(o,l),o!==null&&(si(o,l),As(o))}function OG(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),g4(o,d)}function NG(o,l){var d=0;switch(o.tag){case 31:case 13:var p=o.stateNode,v=o.memoizedState;v!==null&&(d=v.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(l),g4(o,d)}function MG(o,l){return un(o,l)}var ig=null,Eu=null,ES=!1,lg=!1,_S=!1,Ii=0;function As(o){o!==Eu&&o.next===null&&(Eu===null?ig=Eu=o:Eu=Eu.next=o),lg=!0,ES||(ES=!0,DG())}function Bf(o,l){if(!_S&&lg){_S=!0;do for(var d=!1,p=ig;p!==null;){if(o!==0){var v=p.pendingLanes;if(v===0)var S=0;else{var I=p.suspendedLanes,N=p.pingedLanes;S=(1<<31-Wn(42|o)+1)-1,S&=v&~(I&~N),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(d=!0,S4(p,S))}else S=pt,S=Ka(p,p===Jt?S:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(S&3)===0||sa(p,S)||(d=!0,S4(p,S));p=p.next}while(d);_S=!1}}function PG(){v4()}function v4(){lg=ES=!1;var o=0;Ii!==0&&VG()&&(o=Ii);for(var l=Fn(),d=null,p=ig;p!==null;){var v=p.next,S=y4(p,l);S===0?(p.next=null,d===null?ig=v:d.next=v,v===null&&(Eu=d)):(d=p,(o!==0||(S&3)!==0)&&(lg=!0)),p=v}$n!==0&&$n!==5||Bf(o),Ii!==0&&(Ii=0)}function y4(o,l){for(var d=o.suspendedLanes,p=o.pingedLanes,v=o.expirationTimes,S=o.pendingLanes&-62914561;0<S;){var I=31-Wn(S),N=1<<I,H=v[I];H===-1?((N&d)===0||(N&p)!==0)&&(v[I]=dm(N,l)):H<=l&&(o.expiredLanes|=N),S&=~N}if(l=Jt,d=pt,d=Ka(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,d===0||o===l&&(zt===2||zt===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&rr(p),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||sa(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(p!==null&&rr(p),yl(d)){case 2:case 8:d=$r;break;case 32:d=vr;break;case 268435456:d=vs;break;default:d=vr}return p=b4.bind(null,o),d=un(d,p),o.callbackPriority=l,o.callbackNode=d,l}return p!==null&&p!==null&&rr(p),o.callbackPriority=2,o.callbackNode=null,2}function b4(o,l){if($n!==0&&$n!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(og()&&o.callbackNode!==d)return null;var p=pt;return p=Ka(o,o===Jt?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(e4(o,p,l),y4(o,Fn()),o.callbackNode!=null&&o.callbackNode===d?b4.bind(null,o):null)}function S4(o,l){if(og())return null;e4(o,l,!0)}function DG(){GG(function(){(Nt&6)!==0?un(In,PG):v4()})}function kS(){if(Ii===0){var o=cu;o===0&&(o=ml,ml<<=1,(ml&261888)===0&&(ml=256)),Ii=o}return Ii}function w4(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:xl(""+o)}function x4(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function LG(o,l,d,p,v){if(l==="submit"&&d&&d.stateNode===v){var S=w4((v[sr]||null).action),I=p.submitter;I&&(l=(l=I[sr]||null)?w4(l.formAction):I.getAttribute("formAction"),l!==null&&(S=l,I=null));var N=new Tn("action","action",null,p,v);o.push({event:N,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ii!==0){var H=I?x4(v,I):new FormData(v);Wb(d,{pending:!0,data:H,method:v.method,action:S},null,H)}}else typeof S=="function"&&(N.preventDefault(),H=I?x4(v,I):new FormData(v),Wb(d,{pending:!0,data:H,method:v.method,action:S},S,H))},currentTarget:v}]})}}for(var AS=0;AS<cb.length;AS++){var IS=cb[AS],UG=IS.toLowerCase(),zG=IS[0].toUpperCase()+IS.slice(1);Qa(UG,"on"+zG)}Qa(JT,"onAnimationEnd"),Qa(eR,"onAnimationIteration"),Qa(tR,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(eG,"onTransitionRun"),Qa(tG,"onTransitionStart"),Qa(nG,"onTransitionCancel"),Qa(nR,"onTransitionEnd"),ii("onMouseEnter",["mouseout","mouseover"]),ii("onMouseLeave",["mouseout","mouseover"]),ii("onPointerEnter",["pointerout","pointerover"]),ii("onPointerLeave",["pointerout","pointerover"]),ro("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ro("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ro("onBeforeInput",["compositionend","keypress","textInput","paste"]),ro("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hf="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(" "),jG=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hf));function C4(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var p=o[d],v=p.event;p=p.listeners;e:{var S=void 0;if(l)for(var I=p.length-1;0<=I;I--){var N=p[I],H=N.instance,ee=N.currentTarget;if(N=N.listener,H!==S&&v.isPropagationStopped())break e;S=N,v.currentTarget=ee;try{S(v)}catch(oe){Cm(oe)}v.currentTarget=null,S=H}else for(I=0;I<p.length;I++){if(N=p[I],H=N.instance,ee=N.currentTarget,N=N.listener,H!==S&&v.isPropagationStopped())break e;S=N,v.currentTarget=ee;try{S(v)}catch(oe){Cm(oe)}v.currentTarget=null,S=H}}}}function ft(o,l){var d=l[af];d===void 0&&(d=l[af]=new Set);var p=o+"__bubble";d.has(p)||(E4(l,o,2,!1),d.add(p))}function TS(o,l,d){var p=0;l&&(p|=4),E4(d,o,p,l)}var cg="_reactListening"+Math.random().toString(36).slice(2);function RS(o){if(!o[cg]){o[cg]=!0,mm.forEach(function(d){d!=="selectionchange"&&(jG.has(d)||TS(d,!1,o),TS(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[cg]||(l[cg]=!0,TS("selectionchange",!1,l))}}function E4(o,l,d,p){switch(J4(l)){case 2:var v=hK;break;case 8:v=pK;break;default:v=VS}d=v.bind(null,l,d,o),v=void 0,!El||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),p?v!==void 0?o.addEventListener(l,d,{capture:!0,passive:v}):o.addEventListener(l,d,!0):v!==void 0?o.addEventListener(l,d,{passive:v}):o.addEventListener(l,d,!1)}function OS(o,l,d,p,v){var S=p;if((l&1)===0&&(l&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var N=p.stateNode.containerInfo;if(N===v)break;if(I===4)for(I=p.return;I!==null;){var H=I.tag;if((H===3||H===4)&&I.stateNode.containerInfo===v)return;I=I.return}for(;N!==null;){if(I=oi(N),I===null)return;if(H=I.tag,H===5||H===6||H===26||H===27){p=S=I;continue e}N=N.parentNode}}p=p.return}hf(function(){var ee=S,oe=Qc(d),fe=[];e:{var ne=rR.get(o);if(ne!==void 0){var ae=Tn,Te=o;switch(o){case"keypress":if(Ne(d)===0)break e;case"keydown":case"keyup":ae=NW;break;case"focusin":Te="focus",ae=eb;break;case"focusout":Te="blur",ae=eb;break;case"beforeblur":case"afterblur":ae=eb;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=NT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=SW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=DW;break;case JT:case eR:case tR:ae=CW;break;case nR:ae=UW;break;case"scroll":case"scrollend":ae=fi;break;case"wheel":ae=jW;break;case"copy":case"cut":case"paste":ae=_W;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=PT;break;case"toggle":case"beforetoggle":ae=$W}var Fe=(l&4)!==0,Wt=!Fe&&(o==="scroll"||o==="scrollend"),K=Fe?ne!==null?ne+"Capture":null:ne;Fe=[];for(var V=ee,J;V!==null;){var ce=V;if(J=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||J===null||K===null||(ce=so(V,K),ce!=null&&Fe.push(qf(V,ce,J))),Wt)break;V=V.return}0<Fe.length&&(ne=new ae(ne,Te,null,d,oe),fe.push({event:ne,listeners:Fe}))}}if((l&7)===0){e:{if(ne=o==="mouseover"||o==="pointerover",ae=o==="mouseout"||o==="pointerout",ne&&d!==Cl&&(Te=d.relatedTarget||d.fromElement)&&(oi(Te)||Te[Ss]))break e;if((ae||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(Te=d.relatedTarget||d.toElement,ae=ee,Te=Te?oi(Te):null,Te!==null&&(Wt=s(Te),Fe=Te.tag,Te!==Wt||Fe!==5&&Fe!==27&&Fe!==6)&&(Te=null)):(ae=null,Te=ee),ae!==Te)){if(Fe=NT,ce="onMouseLeave",K="onMouseEnter",V="mouse",(o==="pointerout"||o==="pointerover")&&(Fe=PT,ce="onPointerLeave",K="onPointerEnter",V="pointer"),Wt=ae==null?ne:to(ae),J=Te==null?ne:to(Te),ne=new Fe(ce,V+"leave",ae,d,oe),ne.target=Wt,ne.relatedTarget=J,ce=null,oi(oe)===ee&&(Fe=new Fe(K,V+"enter",Te,d,oe),Fe.target=J,Fe.relatedTarget=Wt,ce=Fe),Wt=ce,ae&&Te)t:{for(Fe=FG,K=ae,V=Te,J=0,ce=K;ce;ce=Fe(ce))J++;ce=0;for(var ze=V;ze;ze=Fe(ze))ce++;for(;0<J-ce;)K=Fe(K),J--;for(;0<ce-J;)V=Fe(V),ce--;for(;J--;){if(K===V||V!==null&&K===V.alternate){Fe=K;break t}K=Fe(K),V=Fe(V)}Fe=null}else Fe=null;ae!==null&&_4(fe,ne,ae,Fe,!1),Te!==null&&Wt!==null&&_4(fe,Wt,Te,Fe,!0)}}e:{if(ne=ee?to(ee):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var At=BT;else if(FT(ne))if(HT)At=XW;else{At=YW;var Me=KW}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&df(ee.elementType)&&(At=BT):At=ZW;if(At&&(At=At(o,ee))){$T(fe,At,d,oe);break e}Me&&Me(o,ne,ee),o==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&wl(ne,"number",ne.value)}switch(Me=ee?to(ee):window,o){case"focusin":(FT(Me)||Me.contentEditable==="true")&&(tu=Me,ob=ee,bf=null);break;case"focusout":bf=ob=tu=null;break;case"mousedown":ib=!0;break;case"contextmenu":case"mouseup":case"dragend":ib=!1,XT(fe,d,oe);break;case"selectionchange":if(JW)break;case"keydown":case"keyup":XT(fe,d,oe)}var st;if(nb)e:{switch(o){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else eu?zT(o,d)&&(mt="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(mt="onCompositionStart");mt&&(DT&&d.locale!=="ko"&&(eu||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&eu&&(st=de()):(D=oe,W="value"in D?D.value:D.textContent,eu=!0)),Me=ug(ee,mt),0<Me.length&&(mt=new MT(mt,o,null,d,oe),fe.push({event:mt,listeners:Me}),st?mt.data=st:(st=jT(d),st!==null&&(mt.data=st)))),(st=HW?qW(o,d):VW(o,d))&&(mt=ug(ee,"onBeforeInput"),0<mt.length&&(Me=new MT("onBeforeInput","beforeinput",null,d,oe),fe.push({event:Me,listeners:mt}),Me.data=st)),LG(fe,o,ee,d,oe)}C4(fe,l)})}function qf(o,l,d){return{instance:o,listener:l,currentTarget:d}}function ug(o,l){for(var d=l+"Capture",p=[];o!==null;){var v=o,S=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||S===null||(v=so(o,d),v!=null&&p.unshift(qf(o,v,S)),v=so(o,l),v!=null&&p.push(qf(o,v,S))),o.tag===3)return p;o=o.return}return[]}function FG(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function _4(o,l,d,p,v){for(var S=l._reactName,I=[];d!==null&&d!==p;){var N=d,H=N.alternate,ee=N.stateNode;if(N=N.tag,H!==null&&H===p)break;N!==5&&N!==26&&N!==27||ee===null||(H=ee,v?(ee=so(d,S),ee!=null&&I.unshift(qf(d,ee,H))):v||(ee=so(d,S),ee!=null&&I.push(qf(d,ee,H)))),d=d.return}I.length!==0&&o.push({event:l,listeners:I})}var $G=/\r\n?/g,BG=/\u0000|\uFFFD/g;function k4(o){return(typeof o=="string"?o:""+o).replace($G,`
|
|
224
|
+
`).replace(BG,"")}function A4(o,l){return l=k4(l),k4(o)===l}function Vt(o,l,d,p,v,S){switch(d){case"children":typeof p=="string"?l==="body"||l==="textarea"&&p===""||Xa(o,p):(typeof p=="number"||typeof p=="bigint")&&l!=="body"&&Xa(o,""+p);break;case"className":ci(o,"class",p);break;case"tabIndex":ci(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(o,d,p);break;case"style":Br(o,p,S);break;case"data":if(l!=="object"){ci(o,"data",p);break}case"src":case"href":if(p===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(d);break}p=xl(""+p),o.setAttribute(d,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(d,"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().')");break}else typeof S=="function"&&(d==="formAction"?(l!=="input"&&Vt(o,l,"name",v.name,v,null),Vt(o,l,"formEncType",v.formEncType,v,null),Vt(o,l,"formMethod",v.formMethod,v,null),Vt(o,l,"formTarget",v.formTarget,v,null)):(Vt(o,l,"encType",v.encType,v,null),Vt(o,l,"method",v.method,v,null),Vt(o,l,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(d);break}p=xl(""+p),o.setAttribute(d,p);break;case"onClick":p!=null&&(o.onclick=br);break;case"onScroll":p!=null&&ft("scroll",o);break;case"onScrollEnd":p!=null&&ft("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(d=p.__html,d!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}d=xl(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,""+p):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":p===!0?o.setAttribute(d,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(d,p):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(d,p):o.removeAttribute(d);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(d):o.setAttribute(d,p);break;case"popover":ft("beforetoggle",o),ft("toggle",o),Sl(o,"popover",p);break;case"xlinkActuate":ia(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":ia(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":ia(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":ia(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":ia(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":ia(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":ia(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":ia(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":ia(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Sl(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Xc.get(d)||d,Sl(o,d,p))}}function NS(o,l,d,p,v,S){switch(d){case"style":Br(o,p,S);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(d=p.__html,d!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof p=="string"?Xa(o,p):(typeof p=="number"||typeof p=="bigint")&&Xa(o,""+p);break;case"onScroll":p!=null&&ft("scroll",o);break;case"onScrollEnd":p!=null&&ft("scrollend",o);break;case"onClick":p!=null&&(o.onclick=br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gm.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(v=d.endsWith("Capture"),l=d.slice(2,v?d.length-7:void 0),S=o[sr]||null,S=S!=null?S[d]:null,typeof S=="function"&&o.removeEventListener(l,S,v),typeof p=="function")){typeof S!="function"&&S!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,p,v);break e}d in o?o[d]=p:p===!0?o.setAttribute(d,""):Sl(o,d,p)}}}function cr(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",o),ft("load",o);var p=!1,v=!1,S;for(S in d)if(d.hasOwnProperty(S)){var I=d[S];if(I!=null)switch(S){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Vt(o,l,S,I,d,null)}}v&&Vt(o,l,"srcSet",d.srcSet,d,null),p&&Vt(o,l,"src",d.src,d,null);return;case"input":ft("invalid",o);var N=S=I=v=null,H=null,ee=null;for(p in d)if(d.hasOwnProperty(p)){var oe=d[p];if(oe!=null)switch(p){case"name":v=oe;break;case"type":I=oe;break;case"checked":H=oe;break;case"defaultChecked":ee=oe;break;case"value":S=oe;break;case"defaultValue":N=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,l));break;default:Vt(o,l,p,oe,d,null)}}cf(o,S,N,H,ee,I,v,!1);return;case"select":ft("invalid",o),p=I=S=null;for(v in d)if(d.hasOwnProperty(v)&&(N=d[v],N!=null))switch(v){case"value":S=N;break;case"defaultValue":I=N;break;case"multiple":p=N;default:Vt(o,l,v,N,d,null)}l=S,d=I,o.multiple=!!p,l!=null?Za(o,!!p,l,!1):d!=null&&Za(o,!!p,d,!0);return;case"textarea":ft("invalid",o),S=v=p=null;for(I in d)if(d.hasOwnProperty(I)&&(N=d[I],N!=null))switch(I){case"value":p=N;break;case"defaultValue":v=N;break;case"children":S=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:Vt(o,l,I,N,d,null)}uf(o,p,v,S);return;case"option":for(H in d)d.hasOwnProperty(H)&&(p=d[H],p!=null)&&(H==="selected"?o.selected=p&&typeof p!="function"&&typeof p!="symbol":Vt(o,l,H,p,d,null));return;case"dialog":ft("beforetoggle",o),ft("toggle",o),ft("cancel",o),ft("close",o);break;case"iframe":case"object":ft("load",o);break;case"video":case"audio":for(p=0;p<Hf.length;p++)ft(Hf[p],o);break;case"image":ft("error",o),ft("load",o);break;case"details":ft("toggle",o);break;case"embed":case"source":case"link":ft("error",o),ft("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in d)if(d.hasOwnProperty(ee)&&(p=d[ee],p!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Vt(o,l,ee,p,d,null)}return;default:if(df(l)){for(oe in d)d.hasOwnProperty(oe)&&(p=d[oe],p!==void 0&&NS(o,l,oe,p,d,void 0));return}}for(N in d)d.hasOwnProperty(N)&&(p=d[N],p!=null&&Vt(o,l,N,p,d,null))}function HG(o,l,d,p){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,S=null,I=null,N=null,H=null,ee=null,oe=null;for(ae in d){var fe=d[ae];if(d.hasOwnProperty(ae)&&fe!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":H=fe;default:p.hasOwnProperty(ae)||Vt(o,l,ae,null,p,fe)}}for(var ne in p){var ae=p[ne];if(fe=d[ne],p.hasOwnProperty(ne)&&(ae!=null||fe!=null))switch(ne){case"type":S=ae;break;case"name":v=ae;break;case"checked":ee=ae;break;case"defaultChecked":oe=ae;break;case"value":I=ae;break;case"defaultValue":N=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,l));break;default:ae!==fe&&Vt(o,l,ne,ae,p,fe)}}lf(o,I,N,H,ee,oe,S,v);return;case"select":ae=I=N=ne=null;for(S in d)if(H=d[S],d.hasOwnProperty(S)&&H!=null)switch(S){case"value":break;case"multiple":ae=H;default:p.hasOwnProperty(S)||Vt(o,l,S,null,p,H)}for(v in p)if(S=p[v],H=d[v],p.hasOwnProperty(v)&&(S!=null||H!=null))switch(v){case"value":ne=S;break;case"defaultValue":N=S;break;case"multiple":I=S;default:S!==H&&Vt(o,l,v,S,p,H)}l=N,d=I,p=ae,ne!=null?Za(o,!!d,ne,!1):!!p!=!!d&&(l!=null?Za(o,!!d,l,!0):Za(o,!!d,d?[]:"",!1));return;case"textarea":ae=ne=null;for(N in d)if(v=d[N],d.hasOwnProperty(N)&&v!=null&&!p.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Vt(o,l,N,null,p,v)}for(I in p)if(v=p[I],S=d[I],p.hasOwnProperty(I)&&(v!=null||S!=null))switch(I){case"value":ne=v;break;case"defaultValue":ae=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==S&&Vt(o,l,I,v,p,S)}Zc(o,ne,ae);return;case"option":for(var Te in d)ne=d[Te],d.hasOwnProperty(Te)&&ne!=null&&!p.hasOwnProperty(Te)&&(Te==="selected"?o.selected=!1:Vt(o,l,Te,null,p,ne));for(H in p)ne=p[H],ae=d[H],p.hasOwnProperty(H)&&ne!==ae&&(ne!=null||ae!=null)&&(H==="selected"?o.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":Vt(o,l,H,ne,p,ae));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Fe in d)ne=d[Fe],d.hasOwnProperty(Fe)&&ne!=null&&!p.hasOwnProperty(Fe)&&Vt(o,l,Fe,null,p,ne);for(ee in p)if(ne=p[ee],ae=d[ee],p.hasOwnProperty(ee)&&ne!==ae&&(ne!=null||ae!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,l));break;default:Vt(o,l,ee,ne,p,ae)}return;default:if(df(l)){for(var Wt in d)ne=d[Wt],d.hasOwnProperty(Wt)&&ne!==void 0&&!p.hasOwnProperty(Wt)&&NS(o,l,Wt,void 0,p,ne);for(oe in p)ne=p[oe],ae=d[oe],!p.hasOwnProperty(oe)||ne===ae||ne===void 0&&ae===void 0||NS(o,l,oe,ne,p,ae);return}}for(var K in d)ne=d[K],d.hasOwnProperty(K)&&ne!=null&&!p.hasOwnProperty(K)&&Vt(o,l,K,null,p,ne);for(fe in p)ne=p[fe],ae=d[fe],!p.hasOwnProperty(fe)||ne===ae||ne==null&&ae==null||Vt(o,l,fe,ne,p,ae)}function I4(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qG(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),p=0;p<d.length;p++){var v=d[p],S=v.transferSize,I=v.initiatorType,N=v.duration;if(S&&N&&I4(I)){for(I=0,N=v.responseEnd,p+=1;p<d.length;p++){var H=d[p],ee=H.startTime;if(ee>N)break;var oe=H.transferSize,fe=H.initiatorType;oe&&I4(fe)&&(H=H.responseEnd,I+=oe*(H<N?1:(N-ee)/(H-ee)))}if(--p,l+=8*(S+I)/(v.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var MS=null,PS=null;function dg(o){return o.nodeType===9?o:o.ownerDocument}function T4(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function R4(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function DS(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var LS=null;function VG(){var o=window.event;return o&&o.type==="popstate"?o===LS?!1:(LS=o,!0):(LS=null,!1)}var O4=typeof setTimeout=="function"?setTimeout:void 0,WG=typeof clearTimeout=="function"?clearTimeout:void 0,N4=typeof Promise=="function"?Promise:void 0,GG=typeof queueMicrotask=="function"?queueMicrotask:typeof N4<"u"?function(o){return N4.resolve(null).then(o).catch(KG)}:O4;function KG(o){setTimeout(function(){throw o})}function Ti(o){return o==="head"}function M4(o,l){var d=l,p=0;do{var v=d.nextSibling;if(o.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"||d==="/&"){if(p===0){o.removeChild(v),Iu(l);return}p--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")p++;else if(d==="html")Vf(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,Vf(d);for(var S=d.firstChild;S;){var I=S.nextSibling,N=S.nodeName;S[Qt]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&S.rel.toLowerCase()==="stylesheet"||d.removeChild(S),S=I}}else d==="body"&&Vf(o.ownerDocument.body);d=v}while(d);Iu(l)}function P4(o,l){var d=o;o=0;do{var p=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),p&&p.nodeType===8)if(d=p.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=p}while(d)}function US(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":US(d),ws(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function YG(o,l,d,p){for(;o.nodeType===1;){var v=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Qt])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(S=o.getAttribute("rel"),S==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(S!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(S=o.getAttribute("src"),(S!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&S&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var S=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===S)return o}else return o;if(o=Na(o.nextSibling),o===null)break}return null}function ZG(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=Na(o.nextSibling),o===null))return null;return o}function D4(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=Na(o.nextSibling),o===null))return null;return o}function zS(o){return o.data==="$?"||o.data==="$~"}function jS(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function XG(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var p=function(){l(),d.removeEventListener("DOMContentLoaded",p)};d.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function Na(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var FS=null;function L4(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return Na(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function U4(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function z4(o,l,d){switch(l=dg(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Vf(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);ws(o)}var Ma=new Map,j4=new Set;function fg(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var wo=X.d;X.d={f:QG,r:JG,D:eK,C:tK,L:nK,m:rK,X:sK,S:aK,M:oK};function QG(){var o=wo.f(),l=rg();return o||l}function JG(o){var l=eo(o);l!==null&&l.tag===5&&l.type==="form"?nO(l):wo.r(o)}var _u=typeof document>"u"?null:document;function F4(o,l,d){var p=_u;if(p&&typeof l=="string"&&l){var v=Tr(l);v='link[rel="'+o+'"][href="'+v+'"]',typeof d=="string"&&(v+='[crossorigin="'+d+'"]'),j4.has(v)||(j4.add(v),o={rel:o,crossOrigin:d,href:l},p.querySelector(v)===null&&(l=p.createElement("link"),cr(l,"link",o),_n(l),p.head.appendChild(l)))}}function eK(o){wo.D(o),F4("dns-prefetch",o,null)}function tK(o,l){wo.C(o,l),F4("preconnect",o,l)}function nK(o,l,d){wo.L(o,l,d);var p=_u;if(p&&o&&l){var v='link[rel="preload"][as="'+Tr(l)+'"]';l==="image"&&d&&d.imageSrcSet?(v+='[imagesrcset="'+Tr(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(v+='[imagesizes="'+Tr(d.imageSizes)+'"]')):v+='[href="'+Tr(o)+'"]';var S=v;switch(l){case"style":S=ku(o);break;case"script":S=Au(o)}Ma.has(S)||(o=m({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),Ma.set(S,o),p.querySelector(v)!==null||l==="style"&&p.querySelector(Wf(S))||l==="script"&&p.querySelector(Gf(S))||(l=p.createElement("link"),cr(l,"link",o),_n(l),p.head.appendChild(l)))}}function rK(o,l){wo.m(o,l);var d=_u;if(d&&o){var p=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Tr(p)+'"][href="'+Tr(o)+'"]',S=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Au(o)}if(!Ma.has(S)&&(o=m({rel:"modulepreload",href:o},l),Ma.set(S,o),d.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Gf(S)))return}p=d.createElement("link"),cr(p,"link",o),_n(p),d.head.appendChild(p)}}}function aK(o,l,d){wo.S(o,l,d);var p=_u;if(p&&o){var v=no(p).hoistableStyles,S=ku(o);l=l||"default";var I=v.get(S);if(!I){var N={loading:0,preload:null};if(I=p.querySelector(Wf(S)))N.loading=5;else{o=m({rel:"stylesheet",href:o,"data-precedence":l},d),(d=Ma.get(S))&&$S(o,d);var H=I=p.createElement("link");_n(H),cr(H,"link",o),H._p=new Promise(function(ee,oe){H.onload=ee,H.onerror=oe}),H.addEventListener("load",function(){N.loading|=1}),H.addEventListener("error",function(){N.loading|=2}),N.loading|=4,hg(I,l,p)}I={type:"stylesheet",instance:I,count:1,state:N},v.set(S,I)}}}function sK(o,l){wo.X(o,l);var d=_u;if(d&&o){var p=no(d).hoistableScripts,v=Au(o),S=p.get(v);S||(S=d.querySelector(Gf(v)),S||(o=m({src:o,async:!0},l),(l=Ma.get(v))&&BS(o,l),S=d.createElement("script"),_n(S),cr(S,"link",o),d.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(v,S))}}function oK(o,l){wo.M(o,l);var d=_u;if(d&&o){var p=no(d).hoistableScripts,v=Au(o),S=p.get(v);S||(S=d.querySelector(Gf(v)),S||(o=m({src:o,async:!0,type:"module"},l),(l=Ma.get(v))&&BS(o,l),S=d.createElement("script"),_n(S),cr(S,"link",o),d.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(v,S))}}function $4(o,l,d,p){var v=(v=le.current)?fg(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=ku(d.href),d=no(v).hoistableStyles,p=d.get(l),p||(p={type:"style",instance:null,count:0,state:null},d.set(l,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=ku(d.href);var S=no(v).hoistableStyles,I=S.get(o);if(I||(v=v.ownerDocument||v,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(o,I),(S=v.querySelector(Wf(o)))&&!S._p&&(I.instance=S,I.state.loading=5),Ma.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Ma.set(o,d),S||iK(v,o,d,I.state))),l&&p===null)throw Error(r(528,""));return I}if(l&&p!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Au(d),d=no(v).hoistableScripts,p=d.get(l),p||(p={type:"script",instance:null,count:0,state:null},d.set(l,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function ku(o){return'href="'+Tr(o)+'"'}function Wf(o){return'link[rel="stylesheet"]['+o+"]"}function B4(o){return m({},o,{"data-precedence":o.precedence,precedence:null})}function iK(o,l,d,p){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?p.loading=1:(l=o.createElement("link"),p.preload=l,l.addEventListener("load",function(){return p.loading|=1}),l.addEventListener("error",function(){return p.loading|=2}),cr(l,"link",d),_n(l),o.head.appendChild(l))}function Au(o){return'[src="'+Tr(o)+'"]'}function Gf(o){return"script[async]"+o}function H4(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var p=o.querySelector('style[data-href~="'+Tr(d.href)+'"]');if(p)return l.instance=p,_n(p),p;var v=m({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),_n(p),cr(p,"style",v),hg(p,d.precedence,o),l.instance=p;case"stylesheet":v=ku(d.href);var S=o.querySelector(Wf(v));if(S)return l.state.loading|=4,l.instance=S,_n(S),S;p=B4(d),(v=Ma.get(v))&&$S(p,v),S=(o.ownerDocument||o).createElement("link"),_n(S);var I=S;return I._p=new Promise(function(N,H){I.onload=N,I.onerror=H}),cr(S,"link",p),l.state.loading|=4,hg(S,d.precedence,o),l.instance=S;case"script":return S=Au(d.src),(v=o.querySelector(Gf(S)))?(l.instance=v,_n(v),v):(p=d,(v=Ma.get(S))&&(p=m({},d),BS(p,v)),o=o.ownerDocument||o,v=o.createElement("script"),_n(v),cr(v,"link",p),o.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(p=l.instance,l.state.loading|=4,hg(p,d.precedence,o));return l.instance}function hg(o,l,d){for(var p=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,S=v,I=0;I<p.length;I++){var N=p[I];if(N.dataset.precedence===l)S=N;else if(S!==v)break}S?S.parentNode.insertBefore(o,S.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function $S(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function BS(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var pg=null;function q4(o,l,d){if(pg===null){var p=new Map,v=pg=new Map;v.set(d,p)}else v=pg,p=v.get(d),p||(p=new Map,v.set(d,p));if(p.has(o))return p;for(p.set(o,null),d=d.getElementsByTagName(o),v=0;v<d.length;v++){var S=d[v];if(!(S[Qt]||S[En]||o==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var I=S.getAttribute(l)||"";I=o+I;var N=p.get(I);N?N.push(S):p.set(I,[S])}}return p}function V4(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function lK(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function W4(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function cK(o,l,d,p){if(d.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var v=ku(p.href),S=l.querySelector(Wf(v));if(S){l=S._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=mg.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=S,_n(S);return}S=l.ownerDocument||l,p=B4(p),(v=Ma.get(v))&&$S(p,v),S=S.createElement("link"),_n(S);var I=S;I._p=new Promise(function(N,H){I.onload=N,I.onerror=H}),cr(S,"link",p),d.instance=S}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=mg.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var HS=0;function uK(o,l){return o.stylesheets&&o.count===0&&vg(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var p=setTimeout(function(){if(o.stylesheets&&vg(o,o.stylesheets),o.unsuspend){var S=o.unsuspend;o.unsuspend=null,S()}},6e4+l);0<o.imgBytes&&HS===0&&(HS=62500*qG());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&vg(o,o.stylesheets),o.unsuspend)){var S=o.unsuspend;o.unsuspend=null,S()}},(o.imgBytes>HS?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function mg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vg(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var gg=null;function vg(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,gg=new Map,l.forEach(dK,o),gg=null,mg.call(o))}function dK(o,l){if(!(l.state.loading&4)){var d=gg.get(o);if(d)var p=d.get(null);else{d=new Map,gg.set(o,d);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<v.length;S++){var I=v[S];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(d.set(I.dataset.precedence,I),p=I)}p&&d.set(null,p)}v=l.instance,I=v.getAttribute("data-precedence"),S=d.get(I)||p,S===p&&d.set(null,v),d.set(I,v),this.count++,p=mg.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),S?S.parentNode.insertBefore(v,S.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),l.state.loading|=4}}var Kf={$$typeof:A,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function fK(o,l,d,p,v,S,I,N,H){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.hiddenUpdates=Wc(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=S,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function G4(o,l,d,p,v,S,I,N,H,ee,oe,fe){return o=new fK(o,l,d,I,H,ee,oe,fe,N),l=1,S===!0&&(l|=24),S=ca(3,null,null,l),o.current=S,S.stateNode=o,l=xb(),l.refCount++,o.pooledCache=l,l.refCount++,S.memoizedState={element:p,isDehydrated:d,cache:l},kb(S),o}function K4(o){return o?(o=au,o):au}function Y4(o,l,d,p,v,S){v=K4(v),p.context===null?p.context=v:p.pendingContext=v,p=yi(l),p.payload={element:d},S=S===void 0?null:S,S!==null&&(p.callback=S),d=bi(o,p,l),d!==null&&(Gr(d,o,l),kf(d,o,l))}function Z4(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function qS(o,l){Z4(o,l),(o=o.alternate)&&Z4(o,l)}function X4(o){if(o.tag===13||o.tag===31){var l=Al(o,67108864);l!==null&&Gr(l,o,67108864),qS(o,67108864)}}function Q4(o){if(o.tag===13||o.tag===31){var l=pa();l=bs(l);var d=Al(o,l);d!==null&&Gr(d,o,l),qS(o,l)}}var yg=!0;function hK(o,l,d,p){var v=$.T;$.T=null;var S=X.p;try{X.p=2,VS(o,l,d,p)}finally{X.p=S,$.T=v}}function pK(o,l,d,p){var v=$.T;$.T=null;var S=X.p;try{X.p=8,VS(o,l,d,p)}finally{X.p=S,$.T=v}}function VS(o,l,d,p){if(yg){var v=WS(p);if(v===null)OS(o,l,p,bg,d),e5(o,p);else if(gK(v,o,l,d,p))p.stopPropagation();else if(e5(o,p),l&4&&-1<mK.indexOf(o)){for(;v!==null;){var S=eo(v);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var I=Ir(S.pendingLanes);if(I!==0){var N=S;for(N.pendingLanes|=2,N.entangledLanes|=2;I;){var H=1<<31-Wn(I);N.entanglements[1]|=H,I&=~H}As(S),(Nt&6)===0&&(tg=Fn()+500,Bf(0))}}break;case 31:case 13:N=Al(S,2),N!==null&&Gr(N,S,2),rg(),qS(S,2)}if(S=WS(p),S===null&&OS(o,l,p,bg,d),S===v)break;v=S}v!==null&&p.stopPropagation()}else OS(o,l,p,null,d)}}function WS(o){return o=Qc(o),GS(o)}var bg=null;function GS(o){if(bg=null,o=oi(o),o!==null){var l=s(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=i(l),o!==null)return o;o=null}else if(d===31){if(o=c(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return bg=o,null}function J4(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lt()){case In:return 2;case $r:return 8;case vr:case Js:return 32;case vs:return 268435456;default:return 32}default:return 32}}var KS=!1,Ri=null,Oi=null,Ni=null,Yf=new Map,Zf=new Map,Mi=[],mK="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(" ");function e5(o,l){switch(o){case"focusin":case"focusout":Ri=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":Ni=null;break;case"pointerover":case"pointerout":Yf.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zf.delete(l.pointerId)}}function Xf(o,l,d,p,v,S){return o===null||o.nativeEvent!==S?(o={blockedOn:l,domEventName:d,eventSystemFlags:p,nativeEvent:S,targetContainers:[v]},l!==null&&(l=eo(l),l!==null&&X4(l)),o):(o.eventSystemFlags|=p,l=o.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),o)}function gK(o,l,d,p,v){switch(l){case"focusin":return Ri=Xf(Ri,o,l,d,p,v),!0;case"dragenter":return Oi=Xf(Oi,o,l,d,p,v),!0;case"mouseover":return Ni=Xf(Ni,o,l,d,p,v),!0;case"pointerover":var S=v.pointerId;return Yf.set(S,Xf(Yf.get(S)||null,o,l,d,p,v)),!0;case"gotpointercapture":return S=v.pointerId,Zf.set(S,Xf(Zf.get(S)||null,o,l,d,p,v)),!0}return!1}function t5(o){var l=oi(o.target);if(l!==null){var d=s(l);if(d!==null){if(l=d.tag,l===13){if(l=i(d),l!==null){o.blockedOn=l,hm(o.priority,function(){Q4(d)});return}}else if(l===31){if(l=c(d),l!==null){o.blockedOn=l,hm(o.priority,function(){Q4(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Sg(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=WS(o.nativeEvent);if(d===null){d=o.nativeEvent;var p=new d.constructor(d.type,d);Cl=p,d.target.dispatchEvent(p),Cl=null}else return l=eo(d),l!==null&&X4(l),o.blockedOn=d,!1;l.shift()}return!0}function n5(o,l,d){Sg(o)&&d.delete(l)}function vK(){KS=!1,Ri!==null&&Sg(Ri)&&(Ri=null),Oi!==null&&Sg(Oi)&&(Oi=null),Ni!==null&&Sg(Ni)&&(Ni=null),Yf.forEach(n5),Zf.forEach(n5)}function wg(o,l){o.blockedOn===l&&(o.blockedOn=null,KS||(KS=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,vK)))}var xg=null;function r5(o){xg!==o&&(xg=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xg===o&&(xg=null);for(var l=0;l<o.length;l+=3){var d=o[l],p=o[l+1],v=o[l+2];if(typeof p!="function"){if(GS(p||d)===null)continue;break}var S=eo(d);S!==null&&(o.splice(l,3),l-=3,Wb(S,{pending:!0,data:v,method:d.method,action:p},p,v))}}))}function Iu(o){function l(H){return wg(H,o)}Ri!==null&&wg(Ri,o),Oi!==null&&wg(Oi,o),Ni!==null&&wg(Ni,o),Yf.forEach(l),Zf.forEach(l);for(var d=0;d<Mi.length;d++){var p=Mi[d];p.blockedOn===o&&(p.blockedOn=null)}for(;0<Mi.length&&(d=Mi[0],d.blockedOn===null);)t5(d),d.blockedOn===null&&Mi.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(p=0;p<d.length;p+=3){var v=d[p],S=d[p+1],I=v[sr]||null;if(typeof S=="function")I||r5(d);else if(I){var N=null;if(S&&S.hasAttribute("formAction")){if(v=S,I=S[sr]||null)N=I.formAction;else if(GS(v)!==null)continue}else N=I.action;typeof N=="function"?d[p+1]=N:(d.splice(p,3),p-=3),r5(d)}}}function a5(){function o(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(I){return v=I})},focusReset:"manual",scroll:"manual"})}function l(){v!==null&&(v(),v=null),p||setTimeout(d,20)}function d(){if(!p&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),v!==null&&(v(),v=null)}}}function YS(o){this._internalRoot=o}Cg.prototype.render=YS.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,p=pa();Y4(d,p,o,l,null,null)},Cg.prototype.unmount=YS.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;Y4(o.current,2,null,o,null,null),rg(),l[Ss]=null}};function Cg(o){this._internalRoot=o}Cg.prototype.unstable_scheduleHydration=function(o){if(o){var l=Gc();o={blockedOn:null,target:o,priority:l};for(var d=0;d<Mi.length&&l!==0&&l<Mi[d].priority;d++);Mi.splice(d,0,o),d===0&&t5(o)}};var s5=t.version;if(s5!=="19.2.7")throw Error(r(527,s5,"19.2.7"));X.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(l),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var yK={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eg.isDisabled&&Eg.supportsFiber)try{ys=Eg.inject(yK),ar=Eg}catch{}}return Sh.createRoot=function(o,l){if(!a(o))throw Error(r(299));var d=!1,p="",v=fO,S=hO,I=pO;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(I=l.onRecoverableError)),l=G4(o,1,!1,null,null,d,p,null,v,S,I,a5),o[Ss]=l.current,RS(o),new YS(l)},Sh.hydrateRoot=function(o,l,d){if(!a(o))throw Error(r(299));var p=!1,v="",S=fO,I=hO,N=pO,H=null;return d!=null&&(d.unstable_strictMode===!0&&(p=!0),d.identifierPrefix!==void 0&&(v=d.identifierPrefix),d.onUncaughtError!==void 0&&(S=d.onUncaughtError),d.onCaughtError!==void 0&&(I=d.onCaughtError),d.onRecoverableError!==void 0&&(N=d.onRecoverableError),d.formState!==void 0&&(H=d.formState)),l=G4(o,1,!0,l,d??null,p,v,H,S,I,N,a5),l.context=K4(null),d=l.current,p=pa(),p=bs(p),v=yi(p),v.callback=null,bi(d,v,p),d=p,l.current.lanes=d,si(l,d),As(l),o[Ss]=l.current,RS(o),new Cg(l)},Sh.version="19.2.7",Sh}var wD;function xwe(){if(wD)return yE.exports;wD=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yE.exports=wwe(),yE.exports}var Cwe=xwe();const Ewe={bodySerializer:e=>JSON.stringify(e,(t,n)=>typeof n=="bigint"?n.toString():n)};function _we({onRequest:e,onSseError:t,onSseEvent:n,responseTransformer:r,responseValidator:a,sseDefaultRetryDelay:s,sseMaxRetryAttempts:i,sseMaxRetryDelay:c,sseSleepFn:u,url:f,...h}){let m;const g=u??(b=>new Promise(x=>setTimeout(x,b)));return{stream:async function*(){let b=s??3e3,x=0;const E=h.signal??new AbortController().signal;for(;!E.aborted;){x++;const k=h.headers instanceof Headers?h.headers:new Headers(h.headers);m!==void 0&&k.set("Last-Event-ID",m);try{const A={redirect:"follow",...h,body:h.serializedBody,headers:k,signal:E};let R=new Request(f,A);e&&(R=await e(f,A));const O=await(h.fetch??globalThis.fetch)(R);if(!O.ok)throw new Error(`SSE failed: ${O.status} ${O.statusText}`);if(!O.body)throw new Error("No body in SSE response");const T=O.body.pipeThrough(new TextDecoderStream).getReader();let M="";const z=()=>{try{T.cancel()}catch{}};E.addEventListener("abort",z);try{for(;;){const{done:q,value:U}=await T.read();if(q)break;M+=U,M=M.replace(/\r\n?/g,`
|
|
225
|
+
`);const L=M.split(`
|
|
226
|
+
|
|
227
|
+
`);M=L.pop()??"";for(const B of L){const G=B.split(`
|
|
228
|
+
`),ie=[];let $;for(const pe of G)if(pe.startsWith("data:"))ie.push(pe.replace(/^data:\s*/,""));else if(pe.startsWith("event:"))$=pe.replace(/^event:\s*/,"");else if(pe.startsWith("id:"))m=pe.replace(/^id:\s*/,"");else if(pe.startsWith("retry:")){const _e=Number.parseInt(pe.replace(/^retry:\s*/,""),10);Number.isNaN(_e)||(b=_e)}let X,re=!1;if(ie.length){const pe=ie.join(`
|
|
229
|
+
`);try{X=JSON.parse(pe),re=!0}catch{X=pe}}re&&(a&&await a(X),r&&(X=await r(X))),n?.({data:X,event:$,id:m,retry:b}),ie.length&&(yield X)}}}finally{E.removeEventListener("abort",z),T.releaseLock()}break}catch(A){if(t?.(A),i!==void 0&&x>=i)break;const R=Math.min(b*2**(x-1),c??3e4);await g(R)}}}()}}const kwe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Awe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Iwe=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},IB=({allowReserved:e,explode:t,name:n,style:r,value:a})=>{if(!t){const c=(e?a:a.map(u=>encodeURIComponent(u))).join(Awe(r));switch(r){case"label":return`.${c}`;case"matrix":return`;${n}=${c}`;case"simple":return c;default:return`${n}=${c}`}}const s=kwe(r),i=a.map(c=>r==="label"||r==="simple"?e?c:encodeURIComponent(c):xy({allowReserved:e,name:n,value:c})).join(s);return r==="label"||r==="matrix"?s+i:i},xy=({allowReserved:e,name:t,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},TB=({allowReserved:e,explode:t,name:n,style:r,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${n}=${a.toISOString()}`;if(r!=="deepObject"&&!t){let u=[];Object.entries(a).forEach(([h,m])=>{u=[...u,h,e?m:encodeURIComponent(m)]});const f=u.join(",");switch(r){case"form":return`${n}=${f}`;case"label":return`.${f}`;case"matrix":return`;${n}=${f}`;default:return f}}const i=Iwe(r),c=Object.entries(a).map(([u,f])=>xy({allowReserved:e,name:r==="deepObject"?`${n}[${u}]`:u,value:f})).join(i);return r==="label"||r==="matrix"?i+c:c},Twe=/\{[^{}]+\}/g,Rwe=({path:e,url:t})=>{let n=t;const r=t.match(Twe);if(r)for(const a of r){let s=!1,i=a.substring(1,a.length-1),c="simple";i.endsWith("*")&&(s=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(i=i.substring(1),c="label"):i.startsWith(";")&&(i=i.substring(1),c="matrix");const u=e[i];if(u==null)continue;if(Array.isArray(u)){n=n.replace(a,IB({explode:s,name:i,style:c,value:u}));continue}if(typeof u=="object"){n=n.replace(a,TB({explode:s,name:i,style:c,value:u,valueOnly:!0}));continue}if(c==="matrix"){n=n.replace(a,`;${xy({name:i,value:u})}`);continue}const f=encodeURIComponent(c==="label"?`.${u}`:u);n=n.replace(a,f)}return n},Owe=({baseUrl:e,path:t,query:n,querySerializer:r,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let i=(e??"")+s;t&&(i=Rwe({path:t,url:i}));let c=n?r(n):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(i+=`?${c}`),i};function xD(e){const t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}const Nwe=async(e,t)=>{const n=typeof t=="function"?await t(e):t;if(n)return e.scheme==="bearer"?`Bearer ${n}`:e.scheme==="basic"?`Basic ${btoa(n)}`:n},RB=({parameters:e={},...t}={})=>r=>{const a=[];if(r&&typeof r=="object")for(const s in r){const i=r[s];if(i==null)continue;const c=e[s]||t;if(Array.isArray(i)){const u=IB({allowReserved:c.allowReserved,explode:!0,name:s,style:"form",value:i,...c.array});u&&a.push(u)}else if(typeof i=="object"){const u=TB({allowReserved:c.allowReserved,explode:!0,name:s,style:"deepObject",value:i,...c.object});u&&a.push(u)}else{const u=xy({allowReserved:c.allowReserved,name:s,value:i});u&&a.push(u)}}return a.join("&")},Mwe=e=>{if(!e)return"stream";const t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(n=>t.startsWith(n)))return"blob";if(t.startsWith("text/"))return"text"}},Pwe=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1;async function Dwe(e){for(const t of e.security??[]){if(Pwe(e,t.name))continue;const n=await Nwe(t,e.auth);if(!n)continue;const r=t.name??"Authorization";switch(t.in){case"query":e.query||(e.query={}),e.query[r]=n;break;case"cookie":e.headers.append("Cookie",`${r}=${n}`);break;default:e.headers.set(r,n);break}}}const CD=e=>Owe({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:RB(e.querySerializer),url:e.url}),ED=(e,t)=>{const n={...e,...t};return n.baseUrl?.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=OB(e.headers,t.headers),n},Lwe=e=>{const t=[];return e.forEach((n,r)=>{t.push([r,n])}),t},OB=(...e)=>{const t=new Headers;for(const n of e){if(!n)continue;const r=n instanceof Headers?Lwe(n):Object.entries(n);for(const[a,s]of r)if(s===null)t.delete(a);else if(Array.isArray(s))for(const i of s)t.append(a,i);else s!==void 0&&t.set(a,typeof s=="object"?JSON.stringify(s):s)}return t};class wE{fns=[];clear(){this.fns=[]}eject(t){const n=this.getInterceptorIndex(t);this.fns[n]&&(this.fns[n]=null)}exists(t){const n=this.getInterceptorIndex(t);return!!this.fns[n]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,n){const r=this.getInterceptorIndex(t);return this.fns[r]?(this.fns[r]=n,t):!1}use(t){return this.fns.push(t),this.fns.length-1}}const Uwe=()=>({error:new wE,request:new wE,response:new wE}),zwe=RB({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),jwe={"Content-Type":"application/json"},NB=(e={})=>({...Ewe,headers:jwe,parseAs:"auto",querySerializer:zwe,...e}),Fwe=(e={})=>{let t=ED(NB(),e);const n=()=>({...t}),r=h=>(t=ED(t,h),n()),a=Uwe(),s=async h=>{const m={...t,...h,fetch:h.fetch??t.fetch??globalThis.fetch,headers:OB(t.headers,h.headers),serializedBody:void 0};m.security&&await Dwe(m),m.requestValidator&&await m.requestValidator(m),m.body!==void 0&&m.bodySerializer&&(m.serializedBody=m.bodySerializer(m.body)),(m.body===void 0||m.serializedBody==="")&&m.headers.delete("Content-Type");const g=m,y=CD(g);return{opts:g,url:y}},i=async h=>{const m=h.throwOnError??t.throwOnError,g=h.responseStyle??t.responseStyle;let y,w;try{const{opts:b,url:x}=await s(h),E={redirect:"follow",...b,body:xD(b)};y=new Request(x,E);for(const O of a.request.fns)O&&(y=await O(y,b));const k=b.fetch;w=await k(y);for(const O of a.response.fns)O&&(w=await O(w,y,b));const A={request:y,response:w};if(w.ok){const O=(b.parseAs==="auto"?Mwe(w.headers.get("Content-Type")):b.parseAs)??"json";if(w.status===204||w.headers.get("Content-Length")==="0"){let M;switch(O){case"arrayBuffer":case"blob":case"text":M=await w[O]();break;case"formData":M=new FormData;break;case"stream":M=w.body;break;default:M={};break}return b.responseStyle==="data"?M:{data:M,...A}}let T;switch(O){case"arrayBuffer":case"blob":case"formData":case"text":T=await w[O]();break;case"json":{const M=await w.text();T=M?JSON.parse(M):{};break}case"stream":return b.responseStyle==="data"?w.body:{data:w.body,...A}}return O==="json"&&(b.responseValidator&&await b.responseValidator(T),b.responseTransformer&&(T=await b.responseTransformer(T))),b.responseStyle==="data"?T:{data:T,...A}}const R=await w.text();let P;try{P=JSON.parse(R)}catch{}throw P??R}catch(b){let x=b;for(const E of a.error.fns)E&&(x=await E(x,w,y,h));if(x=x||{},m)throw x;return g==="data"?void 0:{error:x,request:y,response:w}}},c=h=>m=>i({...m,method:h}),u=h=>async m=>{const{opts:g,url:y}=await s(m);return _we({...g,body:g.body,method:h,onRequest:async(w,b)=>{let x=new Request(w,b);for(const E of a.request.fns)E&&(x=await E(x,g));return x},serializedBody:xD(g),url:y})};return{buildUrl:h=>CD({...t,...h}),connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:n,head:c("HEAD"),interceptors:a,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:i,setConfig:r,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:c("TRACE")}},Ce=Fwe(NB({baseUrl:"https://api.remit.example.com"}));let _D=!1;const $we=e=>{_D||(Ce.interceptors.request.use(async t=>{const n=await e.getToken();return n&&t.headers.set("Authorization",`Bearer ${n}`),t}),_D=!0)},Bwe=({children:e})=>C.jsx(C.Fragment,{children:e}),Hwe={configure:()=>{},getToken:async()=>null,resetToken:()=>{},Shell:Bwe,Account:({fallback:e=null})=>C.jsx(C.Fragment,{children:e})},MB=_.createContext(Hwe),qwe=MB.Provider,xPe=()=>_.useContext(MB),Vwe=(e,t)=>{cA(e,t.meta,"nobody")&&sl(e)},Wwe=(e,t,n,r)=>{cA(e,r.meta,"user")&&sl(e)},u_=e=>new TextEncoder().encode(e),PB={},d_={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),PB[e]=t,d_[t]=e}function Gwe(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in d_)t[n/2]=d_[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}function cc(e){let t="";for(let n=0;n<e.byteLength;n++)t+=PB[e[n]];return t}const Sp=e=>e instanceof Uint8Array?e:typeof e=="string"?u_(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Kwe=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";class Go{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new Go({...t,headers:{...t.headers}});return n.query&&(n.query=Ywe(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return Go.clone(this)}}function Ywe(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class wp{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}const kD=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},uc=e=>encodeURIComponent(e).replace(/[!'()*]/g,Zwe),Zwe=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function wI(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=uc(n),Array.isArray(r))for(let a=0,s=r.length;a<s;a++)t.push(`${n}=${uc(r[a])}`);else{let a=n;(r||typeof r=="string")&&(a+=`=${uc(r)}`),t.push(a)}}return t.join("&")}const t0="[aws-rum-web:unknown.unknown]";class xe{static configure(t){xe.debugEnabled=t}static getCallerInfo(){var t,n;try{const r=new Error().stack;if(!r)return t0;const a=r.split(`
|
|
230
|
+
`);if(a.length<4)return t0;const s=a[3];if(!s)return t0;const i=s.match(/at (?:(.+?)\s+\()?/);if(i&&i.length>=2){const c=i[1].trim(),u=c.split(".");if(u.length>=2){const f=(t=u[u.length-2])!==null&&t!==void 0?t:"unknown",h=(n=u[u.length-1])!==null&&n!==void 0?n:"unknown";return`[aws-rum-web:${f}.${h}]`}return`[aws-rum-web:${c}]`}}catch{}return t0}static info(t,...n){if(!xe.debugEnabled)return;const r=this.getCallerInfo();console.info(r,t,...n)}static debug(t,...n){if(!xe.debugEnabled)return;const r=this.getCallerInfo();console.debug(r,t,...n)}static warn(t,...n){if(!xe.debugEnabled)return;const r=this.getCallerInfo();console.warn(r,t,...n)}static error(t,...n){if(!xe.debugEnabled)return;const r=this.getCallerInfo();console.error(r,t,...n)}}xe.debugEnabled=!1;const AD=2048,ID=.2,Xwe=()=>typeof CompressionStream<"u",Qwe=async e=>{const t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"));return new Uint8Array(await new Response(t).arrayBuffer())},Jwe=async e=>{const t=e.length;if(xe.debug(`compressIfBeneficial called, payload size: ${t}B`),!Xwe())return xe.debug("CompressionStream not supported, skipping compression"),{body:e,compressed:!1};if(t<AD)return xe.debug(`Payload size ${t}B below threshold ${AD}B, skipping compression`),{body:e,compressed:!1};const n=await Qwe(e),r=1-n.length/t;return r>=ID?(xe.debug(`Compressed ${t}B -> ${n.length}B (${(r*100).toFixed(1)}% reduction)`),{body:n,compressed:!0}):(xe.debug(`Compression ratio ${(r*100).toFixed(1)}% below threshold ${ID*100}%, skipping`),{body:e,compressed:!1})},exe="POST",txe="application/json",nxe="text/plain;charset=UTF-8",rxe=64e3;class axe{constructor(t,n){this.sendFetch=async r=>{var a,s;const i=JSON.stringify(TD(r)),c=(s=(a=this.config.compressionStrategy)===null||a===void 0?void 0:a.enabled)!==null&&s!==void 0?s:!1,{body:u,compressed:f}=c?await Jwe(i):{body:i,compressed:!1},h=await this.getHttpRequestOptions(r,u,txe,f);let m=new Go(h);return this.signing&&(m=await this.signing.sign(m)),this.config.fetchRequestHandler.handle(m)},this.sendBeacon=async r=>{const a=JSON.stringify(TD(r));if(a.length>rxe)throw new Error("Payload too large for sendBeacon");const s=await this.getHttpRequestOptions(r,a,nxe,!1);let i=new Go(s);return this.signing&&(i=await this.signing.presign(i)),this.config.beaconRequestHandler.handle(i)},this.getHttpRequestOptions=async(r,a,s,i)=>{const c=this.config.endpoint.pathname.replace(/\/$/,""),u=Object.assign({"content-type":s,host:this.config.endpoint.host},this.config.headers);i&&(u["Content-Encoding"]="gzip");const f={method:exe,protocol:this.config.endpoint.protocol,port:Number(this.config.endpoint.port)||void 0,headers:u,hostname:this.config.endpoint.hostname,path:`${c}/appmonitors/${r.AppMonitorDetails.id}`,body:a};return this.signing?Object.assign(Object.assign({},f),{headers:Object.assign(Object.assign({},f.headers),{"X-Amz-Content-Sha256":await this.signing.hashAndEncode(a)})}):f},this.config=t,this.signing=n}}const TD=e=>{const t=[];e.RumEvents.forEach(r=>t.push(sxe(r)));let n={BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:t};return e.SessionMetadata&&(n=Object.assign(Object.assign({},n),{SessionMetadata:e.SessionMetadata})),e.Alias&&(n=Object.assign(Object.assign({},n),{Alias:e.Alias})),n},sxe=e=>({id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details});class oxe{handle(t){const n=this.sendBeacon(t);return new Promise((r,a)=>{n?r({response:new wp({statusCode:200})}):a()})}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}sendBeacon(t){let n=t.path;if(t.query){const s=wI(t.query);s&&(n+=`?${s}`)}const{port:r}=t,a=`${t.protocol}//${t.hostname}${r?`:${r}`:""}${n}`;return navigator.sendBeacon(a,t.body)}}const ixe=(e=0)=>new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)});let lxe=class{constructor({fetchFunction:t,requestTimeout:n}={}){this.requestTimeout=n,this.fetchFunction=t}destroy(){}handle(t,{abortSignal:n}={}){const r=this.requestTimeout;if(n?.aborted){const g=new Error("Request aborted");return g.name="AbortError",Promise.reject(g)}let a=t.path;if(t.query){const g=wI(t.query);g&&(a+=`?${g}`)}const{port:s,method:i}=t,c=`${t.protocol}//${t.hostname}${s?`:${s}`:""}${a}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=n);const h=new Request(c,f),m=[this.fetchFunction.apply(window,[h]).then(g=>{const y=g.headers,w={};for(const x of y.entries())w[x[0]]=x[1];return g.body!==void 0?{response:new wp({headers:w,statusCode:g.status,body:g.body})}:g.blob().then(x=>({response:new wp({headers:w,statusCode:g.status,body:x})}))}),ixe(r)];return n&&m.push(new Promise((g,y)=>{n.onabort=()=>{const w=new Error("Request aborted");w.name="AbortError",y(w)}})),Promise.race(m)}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}};const xI=e=>{if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")},DB=[];for(let e=0;e<256;e++)DB[e]=(e+256).toString(16).substr(1);const Cy="X-Amzn-Trace-Id",Ey="traceparent",cxe=2,uxe=32,dxe=16,fxe=4,LB=(e,t)=>Array.isArray(t)?t.some(n=>n.test(e)):t,UB={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},hxe=e=>200<=e&&e<300,zB=e=>Math.floor(e/100)===4,CI=e=>Math.floor(e/100)===5,EI=e=>e===429,jB=(e,t)=>{const n=t.urlsToInclude.some(a=>a.test(e)),r=t.urlsToExclude.some(a=>a.test(e));return n&&!r},rd=()=>Date.now()/1e3,pxe=(e,t,n)=>{const r={request:{}};return r.request.method=t?.method?t.method:"GET",r.request.traced=n,r.request.url=t1(e),r},FB=(e,t,n,r)=>({version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:HB(),start_time:t,trace_id:n?Sxe():bxe(),end_time:void 0,subsegments:[],in_progress:!1}),$B=(e,t,n)=>{const r={id:HB(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith(".amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},BB=e=>{try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch{return window.location.hostname}},mxe=(e,t,n,r)=>{e.headers||(e.headers={}),r?e.headers[Ey]=kI(t,n):e.headers[Cy]=_I(t,n)},gxe=(e,t,n,r)=>{r?e.set(Ey,kI(t,n)):e.set(Cy,_I(t,n))},_I=(e,t)=>"Root="+e+";Parent="+t+";Sampled=1",kI=(e,t)=>"00-"+e+"-"+t+"-01",vxe=e=>e?.length===fxe&&e[0].length===cxe&&e[1].length===uxe&&e[2].length===dxe&&(e[3]==="00"||e[3]==="01"),yxe=(e,t)=>{var n,r;const a={};if(e)if(t){const s=(n=e.get(Ey))===null||n===void 0?void 0:n.split("-");s&&vxe(s)&&(a.traceId=s[1],a.segmentId=s[2])}else{const s=(r=e.get(Cy))===null||r===void 0?void 0:r.split(";");s?.length===3&&(a.traceId=s[0].split("Root=")[1],a.segmentId=s[1].split("Parent=")[1])}return a},t1=e=>e.url?e.url:e.toString(),bxe=()=>`1-${wxe()}-${xxe()}`,Sxe=()=>{const e=new Uint8Array(16);return xI(e),`${AI(e)}`},HB=()=>{const e=new Uint8Array(8);return xI(e),AI(e)},wxe=()=>Math.floor(Date.now()/1e3).toString(16),xxe=()=>{const e=new Uint8Array(12);return xI(e),AI(e)},AI=e=>{let t="";for(let n=0;n<e.length;n++)t+=DB[e[n]];return t};class Cxe{constructor(t,n,r=a=>2e3*Math.pow(2,a-1)){this.handler=t,this.retries=n,this.backoff=r}async handle(t){let n=this.retries;for(;;)try{const r=await this.handler.handle(t);if(hxe(r.response.statusCode))return r;throw r.response.statusCode}catch(r){if(typeof r=="number"&&!EI(r)&&!CI(r))throw new Error(`${r}`);if(n<=0)throw r;n--,await this.sleep(this.backoff(this.retries-n))}}async sleep(t){return new Promise(n=>setTimeout(n,t))}updateHttpClientConfig(t,n){}httpHandlerConfigs(){return{}}}const Ad="cwr_c",j1="cwr_i",F1="cwr_s",$1="cwr_u",Exe=3e4,_xe="arw-module",RD="CWR: Cannot dispatch; no AWS credentials.";class kxe{constructor(t,n,r,a,s){this.disableCodes=["403","404"],this.shouldPurgeCredentials=!0,this.dispatchFetch=async()=>{if(this.doRequest()){const i=this.createRequest();return xe.info(`Dispatching ${i.RumEvents.length} events via fetch`),this.rum.sendFetch(i).catch(this.handleReject)}},this.dispatchBeacon=async()=>{if(this.doRequest()){const i=this.createRequest();return xe.info(`Dispatching ${i.RumEvents.length} events via beacon`),this.rum.sendBeacon(i).catch(()=>this.rum.sendFetch(i))}},this.dispatchFetchFailSilent=async()=>this.dispatchFetch().catch(i=>{xe.error("Dispatch fetch failed silently:",i)}),this.dispatchBeaconFailSilent=async()=>this.dispatchBeacon().catch(i=>{xe.error("Dispatch beacon failed silently:",i)}),this.flushSync=()=>{if(document.visibilityState==="hidden"&&this.doRequest(!0)){let i=this.rum.sendBeacon,c=this.rum.sendFetch;this.config.useBeacon||([i,c]=[c,i]);const u=this.createRequest(!0);xe.debug(`Flushing ${u.RumEvents.length} events on page hide`),i(u).catch(()=>c(u)).catch(f=>{xe.error("Page hide flush failed:",f)})}},this.handleReject=i=>{throw i instanceof Error&&(i.message==="403"&&this.config.signing&&this.shouldPurgeCredentials?(this.shouldPurgeCredentials=!1,this.forceRebuildClient()):this.disableCodes.includes(i.message)&&(xe.error("Dispatch failed with status code:",i.message),this.disable())),i},this.defaultClientBuilder=(i,c,u,f)=>{const h=u&&this.signingConfigFactory?this.signingConfigFactory(u,c):void 0;return new axe({fetchRequestHandler:new Cxe(new lxe({fetchFunction:this.config.fetchFunction}),this.config.retries),beaconRequestHandler:new oxe,endpoint:i,region:c,credentials:u,headers:this.headers,compressionStrategy:f},h)},this.applicationId=t,this.region=n,this.endpoint=r,this.eventCache=a,this.enabled=!0,this.buildClient=s.clientBuilder||this.defaultClientBuilder,this.config=s,this.headers=s.headers,this.startDispatchTimer(),s.signing?this.rum={sendFetch:()=>Promise.reject(new Error(RD)),sendBeacon:()=>Promise.reject(new Error(RD))}:this.rum=this.buildClient(this.endpoint,this.region,void 0,this.config.compressionStrategy),this.credentialStorageKey=this.config.cookieAttributes.unique?`${Ad}_${t}`:Ad,this.identityStorageKey=this.config.cookieAttributes.unique?`${j1}_${t}`:j1}enable(){this.enabled=!0,this.startDispatchTimer()}disable(){this.stopDispatchTimer(),this.enabled=!1,xe.warn("Dispatch disabled")}setAwsCredentials(t){this.credentialProvider=t,this.rum=this.buildClient(this.endpoint,this.region,t,this.config.compressionStrategy),typeof t=="function"&&t()}setCognitoCredentialProviderFactory(t){this.cognitoCredentialProviderFactory=t}setSigningConfigFactory(t){this.signingConfigFactory=t}setCognitoCredentials(t,n){this.identityPoolId=t,this.guestRoleArn=n,this.cognitoCredentialProviderFactory&&this.setAwsCredentials(this.cognitoCredentialProviderFactory(this.config,this.applicationId,t,n))}startDispatchTimer(){document.addEventListener("visibilitychange",this.flushSync),document.addEventListener("pagehide",this.flushSync),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))}stopDispatchTimer(){document.removeEventListener("visibilitychange",this.flushSync),document.removeEventListener("pagehide",this.flushSync),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)}doRequest(t=!1){return this.enabled?t&&this.eventCache.hasCandidates()?!0:this.eventCache.hasEvents():!1}createRequest(t=!1){return{BatchId:ld(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),SessionMetadata:JSON.stringify(this.eventCache.getCommonMetadata()),RumEvents:this.eventCache.getEventBatch(t),Alias:this.config.alias}}forceRebuildClient(){xe.warn("Removing credentials from local storage"),localStorage.removeItem(this.credentialStorageKey),this.identityPoolId?(xe.info("Rebuilding client with fresh cognito credentials"),localStorage.removeItem(this.identityStorageKey),this.setCognitoCredentials(this.identityPoolId,this.guestRoleArn)):this.credentialProvider&&(xe.info("Rebuilding client with most recently passed provider"),this.setAwsCredentials(this.credentialProvider))}}const qB={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),qB[e]=t}function Axe(e){let t="";for(let n=0;n<e.byteLength;n++)t+=qB[e[n]];return t}class Ixe{format(t){const n=[];for(const s of Object.keys(t)){const i=u_(s);n.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[s]))}const r=new Uint8Array(n.reduce((s,i)=>s+i.byteLength,0));let a=0;for(const s of n)r.set(s,a),a+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?La.boolTrue:La.boolFalse]);case"byte":return Uint8Array.from([La.byte,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,La.short),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,La.integer),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const a=new Uint8Array(9);return a[0]=La.long,a.set(t.value.bytes,1),a;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,La.byteArray),s.setUint16(1,t.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(t.value,3),i;case"string":const c=u_(t.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,La.string),u.setUint16(1,c.byteLength,!1);const f=new Uint8Array(u.buffer);return f.set(c,3),f;case"timestamp":const h=new Uint8Array(9);return h[0]=La.timestamp,h.set(II.fromNumber(t.value.valueOf()).bytes,1),h;case"uuid":if(!Txe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const m=new Uint8Array(17);return m[0]=La.uuid,m.set(Gwe(t.value.replace(/-/g,"")),1),m}}}var La;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(La||(La={}));const Txe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class II{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,a=Math.abs(Math.round(t));r>-1&&a>0;r--,a/=256)n[r]=a;return t<0&&OD(n),new II(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&OD(t),parseInt(cc(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function OD(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const Rxe="X-Amz-Algorithm",Oxe="X-Amz-Credential",VB="X-Amz-Date",Nxe="X-Amz-SignedHeaders",Mxe="X-Amz-Expires",WB="X-Amz-Signature",GB="X-Amz-Security-Token",KB="authorization",YB=VB.toLowerCase(),Pxe="date",Dxe=[KB,YB,Pxe],Lxe=WB.toLowerCase(),f_="x-amz-content-sha256",Uxe=GB.toLowerCase(),zxe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},jxe=/^proxy-/,Fxe=/^sec-/,xE="AWS4-HMAC-SHA256",$xe="AWS4-HMAC-SHA256-PAYLOAD",Bxe="UNSIGNED-PAYLOAD",Hxe=50,ZB="aws4_request",qxe=3600*24*7,Vxe=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===Lxe)continue;const a=uc(r);t.push(a);const s=e[r];typeof s=="string"?n[a]=`${a}=${uc(s)}`:Array.isArray(s)&&(n[a]=s.slice(0).reduce((i,c)=>i.concat([`${a}=${uc(c)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},Wxe=e=>Gxe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),Gxe=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class Kxe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){this.service=a,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=kD(r),this.credentialProvider=kD(n)}createCanonicalRequest(t,n,r){const a=Object.keys(n).sort();return`${t.method}
|
|
231
|
+
${this.getCanonicalPath(t)}
|
|
232
|
+
${Vxe(t)}
|
|
233
|
+
${a.map(s=>`${s}:${n[s]}`).join(`
|
|
234
|
+
`)}
|
|
235
|
+
|
|
236
|
+
${a.join(";")}
|
|
237
|
+
${r}`}async createStringToSign(t,n,r,a){const s=new this.sha256;s.update(Sp(r));const i=await s.digest();return`${a}
|
|
238
|
+
${t}
|
|
239
|
+
${n}
|
|
240
|
+
${cc(i)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const s of t.split("/"))s?.length!==0&&s!=="."&&(s===".."?n.pop():n.push(s));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return uc(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=Wxe(t).replace(/[-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}const n0={},CE=[],EE=(e,t,n)=>`${e}/${t}/${n}/${ZB}`,Yxe=async(e,t,n,r,a)=>{const s=await ND(e,t.secretAccessKey,t.accessKeyId),i=`${n}:${r}:${a}:${cc(s)}:${t.sessionToken}`;if(i in n0)return n0[i];for(CE.push(i);CE.length>Hxe;)delete n0[CE.shift()];let c=`AWS4${t.secretAccessKey}`;for(const u of[n,r,a,ZB])c=await ND(e,c,u);return n0[i]=c},ND=(e,t,n)=>{const r=new e(t);return r.update(Sp(n)),r.digest()},MD=({headers:e},t,n)=>{const r={};for(const a of Object.keys(e).sort()){if(e[a]==null)continue;const s=a.toLowerCase();(s in zxe||t?.has(s)||jxe.test(s)||Fxe.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[a].trim().replace(/\s+/g," "))}return r},_E=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===f_)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||Kwe(t)){const r=new n;return r.update(Sp(t)),cc(await r.digest())}return Bxe},Zxe=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},Xxe=(e,t={})=>{const{headers:n,query:r={}}=Go.clone(e);for(const a of Object.keys(n)){const s=a.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(r[a]=n[a],delete n[a])}return{...e,headers:n,query:r}},PD=e=>{e=Go.clone(e);for(const t of Object.keys(e.headers))Dxe.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class Qxe extends Kxe{headerFormatter=new Ixe;constructor({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:t,credentials:n,region:r,service:a,sha256:s,uriEscapePath:i})}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:a=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:c,hoistableHeaders:u,signingRegion:f,signingService:h}=n,m=await this.credentialProvider();this.validateResolvedCredentials(m);const g=f??await this.regionProvider(),{longDate:y,shortDate:w}=this.formatDate(r);if(a>qxe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const b=EE(w,g,h??this.service),x=Xxe(PD(t),{unhoistableHeaders:i,hoistableHeaders:u});m.sessionToken&&(x.query[GB]=m.sessionToken),x.query[Rxe]=xE,x.query[Oxe]=`${m.accessKeyId}/${b}`,x.query[VB]=y,x.query[Mxe]=a.toString(10);const E=MD(x,s,c);return x.query[Nxe]=this.getCanonicalHeaderList(E),x.query[WB]=await this.getSignature(y,b,this.getSigningKey(m,g,w,h),this.createCanonicalRequest(x,E,await _E(t,this.sha256))),x}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:a,signingRegion:s,signingService:i,eventStreamCredentials:c}){const u=s??await this.regionProvider(),{shortDate:f,longDate:h}=this.formatDate(r),m=EE(f,u,i??this.service),g=await _E({headers:{},body:n},this.sha256),y=new this.sha256;y.update(t);const w=cc(await y.digest()),b=[$xe,h,m,a,w,g].join(`
|
|
241
|
+
`);return this.signString(b,{signingDate:r,signingRegion:u,signingService:i,eventStreamCredentials:c})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:a,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:a,priorSignature:t.priorSignature,eventStreamCredentials:s}).then(c=>({message:t.message,signature:c}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:a,eventStreamCredentials:s}={}){const i=s??await this.credentialProvider();this.validateResolvedCredentials(i);const c=r??await this.regionProvider(),{shortDate:u}=this.formatDate(n),f=new this.sha256(await this.getSigningKey(i,c,u,a));return f.update(Sp(t)),cc(await f.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:a,signingRegion:s,signingService:i}={}){const c=await this.credentialProvider();this.validateResolvedCredentials(c);const u=s??await this.regionProvider(),f=PD(t),{longDate:h,shortDate:m}=this.formatDate(n),g=EE(m,u,i??this.service);f.headers[YB]=h,c.sessionToken&&(f.headers[Uxe]=c.sessionToken);const y=await _E(f,this.sha256);!Zxe(f_,f.headers)&&this.applyChecksum&&(f.headers[f_]=y);const w=MD(f,a,r),b=await this.getSignature(h,g,this.getSigningKey(c,u,m,i),this.createCanonicalRequest(f,w,y));return f.headers[KB]=`${xE} Credential=${c.accessKeyId}/${g}, SignedHeaders=${this.getCanonicalHeaderList(w)}, Signature=${b}`,f}async getSignature(t,n,r,a){const s=await this.createStringToSign(t,n,a,xE),i=new this.sha256(await r);return i.update(Sp(s)),cc(await i.digest())}getSigningKey(t,n,r,a){return Yxe(this.sha256,t,r,n,a||this.service)}}const Jxe="rum",e2e={expiresIn:60},t2e=(e,t)=>{const n=new Qxe({applyChecksum:!0,credentials:e,region:t,service:Jxe,uriEscapePath:!0,sha256:hc});return{sign:async r=>await n.sign(r),presign:async r=>await n.presign(r,e2e),hashAndEncode:async r=>{const a=new hc;return a.update(r),Axe(await a.digest()).toLowerCase()}}};function DD(e,t){return new Request(e,t)}function n2e(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const kE={supported:void 0};class _y{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new _y(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),kE.supported===void 0&&(kE.supported=typeof Request<"u"&&"keepalive"in DD("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const a=r??this.config.requestTimeout,s=this.config.keepAlive===!0,i=this.config.credentials;if(n?.aborted){const k=LD(n);return Promise.reject(k)}let c=t.path;const u=wI(t.query||{});u&&(c+=`?${u}`),t.fragment&&(c+=`#${t.fragment}`);let f="";if(t.username!=null||t.password!=null){const k=t.username??"",A=t.password??"";f=`${k}:${A}@`}const{port:h,method:m}=t,g=`${t.protocol}//${f}${t.hostname}${h?`:${h}`:""}${c}`,y=m==="GET"||m==="HEAD"?void 0:t.body,w={body:y,headers:new Headers(t.headers),method:m,credentials:i};this.config?.cache&&(w.cache=this.config.cache),y&&(w.duplex="half"),typeof AbortController<"u"&&(w.signal=n),kE.supported&&(w.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(w,this.config.requestInit(t));let b=()=>{};const x=DD(g,w),E=[fetch(x).then(k=>{const A=k.headers,R={};for(const O of A.entries())R[O[0]]=O[1];return k.body!=null?{response:new wp({headers:R,reason:k.statusText,statusCode:k.status,body:k.body})}:k.blob().then(O=>({response:new wp({headers:R,reason:k.statusText,statusCode:k.status,body:O})}))}),n2e(a)];return n&&E.push(new Promise((k,A)=>{const R=()=>{const P=LD(n);A(P)};if(typeof n.addEventListener=="function"){const P=n;P.addEventListener("abort",R,{once:!0}),b=()=>P.removeEventListener("abort",R)}else n.onabort=R})),Promise.race(E).finally(b)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}function LD(e){const t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const a=new Error("Request aborted");return a.name="AbortError",a.cause=t,a}const r=new Error(String(t));return r.name="AbortError",r}const n=new Error("Request aborted");return n.name="AbortError",n}const AE=async e=>{const{value:t}=await e.body.getReader().read();return JSON.parse(String.fromCharCode.apply(null,t))},r2e=async e=>{const{value:t}=await e.body.getReader().read();return String.fromCharCode.apply(null,t)},a2e="POST",s2e="application/x-www-form-urlencoded",o2e="https:",i2e="AssumeRoleWithWebIdentity",l2e="2011-06-15";class c2e{constructor(t){this.assumeRoleWithWebIdentity=async n=>{try{const r=Object.assign(Object.assign({},n),{Action:i2e,Version:l2e}),a=new URLSearchParams(Object.entries(r)).toString(),s=new Go({method:a2e,headers:{"content-type":s2e,host:this.hostname},protocol:o2e,hostname:this.hostname,body:a}),{response:i}=await this.fetchRequestHandler.handle(s),c=await r2e(i);return{accessKeyId:c.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:c.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:c.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(c.split("<Expiration>")[1].split("</Expiration>")[0])}}catch(r){throw new Error(`CWR: Failed to retrieve credentials from STS: ${r}`)}},this.hostname=`sts.${t.region}.amazonaws.com`,this.fetchRequestHandler=t.fetchRequestHandler}}const u2e="POST",d2e="application/x-amz-json-1.1",f2e="https:",h2e="AWSCognitoIdentityService.GetId",p2e="AWSCognitoIdentityService.GetOpenIdToken",m2e="AWSCognitoIdentityService.GetCredentialsForIdentity";class g2e{constructor(t){var n;this.getId=async r=>{var a;let s=null;try{s=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(i){!((a=this.config)===null||a===void 0)&&a.debug&&xe.error("Failed to parse stored identity:",i)}if(s&&s.IdentityId)return Promise.resolve(s);try{const i=JSON.stringify(r),c=this.getHttpRequest(h2e,i),u=await AE((await this.fetchRequestHandler.handle(c)).response);try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:u.IdentityId}))}catch(f){xe.error("Failed to store identity:",f)}return u}catch(i){throw new Error(`CWR: Failed to retrieve Cognito identity: ${i}`)}},this.getOpenIdToken=async r=>{try{const a=JSON.stringify(r),s=this.getHttpRequest(p2e,a),{response:i}=await this.fetchRequestHandler.handle(s);return this.validateOpenIdTokenResponse(await AE(i))}catch(a){throw localStorage.removeItem(this.identityStorageKey),new Error(`CWR: Failed to retrieve Cognito OpenId token: ${a}`)}},this.getCredentialsForIdentity=async r=>{try{const a=JSON.stringify({IdentityId:r}),s=this.getHttpRequest(m2e,a),{response:i}=await this.fetchRequestHandler.handle(s),{AccessKeyId:c,Expiration:u,SecretKey:f,SessionToken:h}=this.validateCredenentialsResponse(await AE(i));return{accessKeyId:c,secretAccessKey:f,sessionToken:h,expiration:new Date(u*1e3)}}catch(a){throw localStorage.removeItem(this.identityStorageKey),new Error(`CWR: Failed to retrieve credentials for Cognito identity: ${a}`)}},this.validateOpenIdTokenResponse=r=>{if("IdentityId"in r&&"Token"in r)return r;throw r&&"__type"in r&&"message"in r?new Error(`${r.__type}: ${r.message}`):new Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=r=>{if("IdentityId"in r&&"Credentials"in r)return r.Credentials;throw r&&"__type"in r&&"message"in r?new Error(`${r.__type}: ${r.message}`):new Error("Unknown Credentials response")},this.getHttpRequest=(r,a)=>new Go({method:u2e,headers:{"content-type":d2e,"x-amz-target":r},protocol:f2e,hostname:this.hostname,body:a}),this.hostname=`cognito-identity.${t.region}.amazonaws.com`,this.fetchRequestHandler=t.fetchRequestHandler,this.config=t.clientConfig,this.identityStorageKey=!((n=t.clientConfig)===null||n===void 0)&&n.cookieAttributes.unique?`${j1}_${t.applicationId}`:j1}}class XB{constructor(t,n){this.ChainAnonymousCredentialsProvider=async()=>this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider),this.AnonymousCredentialsProvider=async()=>new Promise((a,s)=>{if(this.renewCredentials())return s();a(this.credentials)}),this.AnonymousStorageCredentialsProvider=async()=>new Promise((a,s)=>{let i;try{i=JSON.parse(localStorage.getItem(this.credentialStorageKey))}catch{return s()}if(this.credentials=Object.assign(Object.assign({},i),{expiration:new Date(i.expiration)}),this.renewCredentials())return s();a(this.credentials)});const r=t.identityPoolId.split(":")[0];this.config=t,this.cognitoIdentityClient=new g2e({fetchRequestHandler:new _y,region:r,clientConfig:t,applicationId:n}),this.credentialStorageKey=this.config.cookieAttributes.unique?`${Ad}_${n}`:Ad}renewCredentials(){if(!this.credentials||!this.credentials.expiration)return!0;const t=new Date(this.credentials.expiration.getTime()-Exe);return new Date>t}}class v2e extends XB{constructor(t,n){super(t,n),this.AnonymousCognitoCredentialsProvider=async()=>{let a=1;for(;;)try{const s=await this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}),i=await this.cognitoIdentityClient.getOpenIdToken(s),c=await this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:i.Token});this.credentials=c;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(c))}catch{}return xe.debug("AWS credentials fetched successfully"),c}catch(s){if(a)a--,xe.warn("AWS credential fetch failed, retrying");else throw xe.error("AWS credential fetch failed:",s),s}};const r=t.identityPoolId.split(":")[0];this.stsClient=new c2e({fetchRequestHandler:new _y,region:r})}}class y2e extends XB{constructor(t,n){super(t,n),this.AnonymousCognitoCredentialsProvider=async()=>{let r=1;for(;;)try{const a=await this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}),s=await this.cognitoIdentityClient.getCredentialsForIdentity(a.IdentityId);this.credentials=s;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(s))}catch{}return xe.debug("AWS credentials fetched successfully"),s}catch(a){if(r)r--,xe.warn("AWS credential fetch failed, retrying");else throw xe.error("AWS credential fetch failed:",a),a}}}}const _a="com.amazon.rum",b2e="com.amazonaws.rum",B1=`${_a}.http_event`,QB=`${_a}.xray_trace_event`,S2e=`${_a}.largest_contentful_paint_event`,w2e=`${_a}.first_input_delay_event`,x2e=`${_a}.cumulative_layout_shift_event`,C2e=`${_a}.interaction_to_next_paint_event`,h_=`${_a}.performance_navigation_event`,JB=`${_a}.performance_resource_event`,E2e=`${_a}.dom_event`,_2e=`${_a}.js_error_event`,k2e=`${_a}.page_view_event`,p_=`${_a}.session_start_event`,UD=`${_a}.rrweb_event`;class qa{constructor(t){this.enabled=!0,this.pluginId=qa.generatePluginId(t)}static generatePluginId(t){return`${qa.idPrefix}.${t}`}load(t){var n;this.context=t,(n=this.onload)===null||n===void 0||n.call(this)}getPluginId(){return this.pluginId}}qa.idPrefix=b2e;class A2e{constructor(t){this.context=t,this.plugins=new Map}addPlugin(t){const n=t.getPluginId();if(this.hasPlugin(n))throw new Error(`Plugin "${n}" already defined in the PluginManager`);this.plugins.set(n,t),t.load(this.context),xe.debug(`Plugin loaded: ${n}`)}updatePlugin(t,n){var r;const a=this.getPlugin(t);(r=a?.update)===null||r===void 0||r.call(a,n)}enable(){this.plugins.forEach(t=>t.enable())}disable(){this.plugins.forEach(t=>t.disable())}flush(){this.plugins.forEach(t=>{var n;return(n=t.flush)===null||n===void 0?void 0:n.call(t)})}hasPlugin(t){return!!this.getPlugin(t)}record(t,n){const r=this.getPlugin(t);if(r?.record instanceof Function)r.record(n);else throw new Error("AWS RUM Client record: Invalid plugin ID")}getPlugin(t){var n;return(n=this.plugins.get(t))!==null&&n!==void 0?n:this.plugins.get(qa.generatePluginId(t))}}const zD=(e,t,n,r,a)=>{let s=e+"=";s+=t||"",a!==void 0&&(s+=`; Expires=${a.toUTCString()}`),s+=`; Domain=${n.domain}`,s+=`; Path=${n.path}`,s+=`; SameSite=${n.sameSite}`,s+=n.secure?"; Secure":"",document.cookie=s},I2e=(e,t)=>{let n=e+"=";n+=`; Expires=${new Date(0)}`,n+=`; Domain=${t.domain}`,n+=`; Path=${t.path}`,n+=`; SameSite=${t.sameSite}`,n+=t.secure?"Secure":"",document.cookie=n},jD=e=>{const t=document.cookie.split("; ");for(const n of t){const r=n.split("=");if(r[0]===e)return r[1]}return""};var Gh;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(Gh||(Gh={}));const T2e=()=>{var e,t;const n=navigator.userAgentData;if(!n)return;const r=(e=n.brands)!==null&&e!==void 0?e:[],a=(t=r.find(s=>s.brand!=="Chromium"&&!s.brand.startsWith("Not")))!==null&&t!==void 0?t:r[0];return{browserName:a?.brand,browserVersion:a?.version,osName:n.platform,deviceType:n.mobile?"mobile":"desktop"}},r0="00000000-0000-0000-0000-000000000000",R2e="desktop",O2e="web";class N2e{constructor(t,n,r,a){this.isSessionIdManual=!1,this.isUserIdManual=!1,this.appMonitorDetails=t,this.config=n,this.recordEvent=r,this.pageManager=a,this.sessionCookieName=this.config.cookieAttributes.unique?`${F1}_${this.appMonitorDetails.id}`:F1,this.session={sessionId:r0,record:this.sample(),eventCount:0},this.config.userId||this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie(),this.config.userId&&(this.isUserIdManual=!0,this.adoptUser(this.config.userId)),this.config.sessionId&&(this.isSessionIdManual=!0,this.adoptSession(this.config.sessionId))}isSampled(){return this.session.record}getSession(){return this.isSessionIdManual?(new Date>=this.sessionExpiry&&(this.session.eventCount=0,this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie()),this.session):(this.session.sessionId===r0?this.createSession():new Date>=this.sessionExpiry&&this.createSession(),this.session)}getAttributes(){return this.attributes}addSessionAttributes(t){this.attributes=Object.assign(Object.assign({},this.attributes),t)}pinSessionId(t){if(!t){xe.warn("pinSessionId called with empty value; ignoring.");return}this.isSessionIdManual=!0,t!==this.session.sessionId&&this.adoptSession(t)}startSession(t){return t?.userId!==void 0&&(t.userId?(this.isUserIdManual=!0,t.userId!==this.userId&&this.adoptUser(t.userId)):xe.warn("startSession called with empty userId; ignoring user rotation.")),t?.sessionId!==void 0?t.sessionId?(this.isSessionIdManual=!0,this.adoptSession(t.sessionId),this.config.suppressSessionStartEvent||this.recordEvent(p_,{version:"1.0.0"})):(xe.warn("startSession called with empty sessionId; minting a fresh session."),this.isSessionIdManual=!1,this.createSession()):(this.isSessionIdManual=!1,this.createSession()),this.session.sessionId}getUserId(){return this.isUserIdManual?this.userId:this.useCookies()?this.userId:r0}pinUserId(t){if(!t){xe.warn("pinUserId called with empty value; ignoring.");return}this.isUserIdManual=!0,t!==this.userId&&this.adoptUser(t)}incrementSessionEventCount(){this.session.eventCount++,this.renewSession()}isLimitExceeded(){return this.session.eventCount>=this.config.sessionEventLimit&&this.config.sessionEventLimit>0}canRecord(){return this.session.record&&!this.isLimitExceeded()}initializeUser(){let t="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(t=this.getUserIdCookie(),this.userId=t||ld(),this.createOrRenewUserCookie(t,this.userExpiry)):this.userId=ld()}createOrRenewSessionCookie(t,n){btoa&&zD(this.sessionCookieName,btoa(JSON.stringify(t)),this.config.cookieAttributes,void 0,n)}createOrRenewUserCookie(t,n){zD($1,t,this.config.cookieAttributes,void 0,n)}getUserIdCookie(){return jD($1)}getSessionFromCookie(){if(this.useCookies()){const t=jD(this.sessionCookieName);if(t&&atob)try{this.session=JSON.parse(atob(t)),this.pageManager.resumeSession(this.session.page),xe.info(`Restored session: ${this.session.sessionId}`)}catch(n){xe.error("Failed to restore session",n)}}}storeSessionAsCookie(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)}createSession(){this.session={sessionId:ld(),record:this.session.sessionId===r0?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),xe.info(`Session start: ${this.session.sessionId}`),this.session.record||xe.warn(`Session is NOT sampled. Consider increasing sessionSampleRate to avoid data loss (currently ${this.config.sessionSampleRate})`),this.config.suppressSessionStartEvent||this.recordEvent(p_,{version:"1.0.0"})}adoptSession(t){this.session={sessionId:t,record:this.session.record,eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),xe.info(`Adopted session: ${t}`)}adoptUser(t){this.userId=t,this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),xe.info(`Adopted user: ${t}`)}renewSession(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()}collectAttributes(){var t;const n=T2e();this.attributes={browserLanguage:navigator.language,browserName:n?.browserName,browserVersion:n?.browserVersion,osName:n?.osName,osVersion:n?.osVersion,deviceType:(t=n?.deviceType)!==null&&t!==void 0?t:R2e,platformType:O2e,domain:window.location.hostname,"aws:releaseId":this.config.releaseId},n||(this.attributes["aws:userAgent"]=navigator.userAgent)}useCookies(){return navigator.cookieEnabled&&this.config.allowCookies}sample(){return Math.random()<this.config.sessionSampleRate}}class M2e{constructor(t,n){this.config=t,this.record=n,this.page=void 0,this.resumed=!1,this.recordInteraction=!1}getPage(){return this.page}getAttributes(){return this.attributes}resumeSession(t){this.recordInteraction=!0,t&&(this.page=t,this.resumed=!0)}recordPageView(t){let n;if(typeof t=="string"?n=t:n=t.pageId,xe.debug(`recordPageView called with pageId: ${n}`),this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(n),xe.info(`Landing page created: ${n}`);else if(this.page.pageId!==n)this.createNextPage(this.page,n),xe.debug(`Navigation to new page: ${n}`);else if(this.resumed){xe.info(`Resumed session for page: ${n}`),this.collectAttributes(this.page,typeof t=="object"?t:void 0);return}else{xe.debug(`No page change detected for: ${n}`);return}this.collectAttributes(this.page,typeof t=="object"?t:void 0),this.recordPageViewEvent(this.page)}createNextPage(t,n){const r=Date.now();xe.debug(`Creating next page ${n}, interaction: ${t.interaction+1}`),this.timeOnParentPage=r-t.start,this.resumed=!1,this.page={pageId:n,parentPageId:t.pageId,interaction:t.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:r}}createLandingPage(t){this.page={pageId:t,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}}collectAttributes(t,n){var r;this.attributes={title:!((r=n?.pageAttributes)===null||r===void 0)&&r.title?n.pageAttributes.title:document.title,pageId:t.pageId},this.recordInteraction&&(this.attributes.interaction=t.interaction,t.parentPageId!==void 0&&(this.attributes.parentPageId=t.parentPageId)),n?.pageTags&&(this.attributes.pageTags=n.pageTags),n?.pageAttributes&&(this.attributes=Object.assign(Object.assign({},n.pageAttributes),this.attributes))}createPageViewEvent(t){const n={version:"1.0.0",pageId:t.pageId};return this.recordInteraction&&(n.interaction=t.interaction,n.pageInteractionId=t.pageId+"-"+t.interaction,t.parentPageId!==void 0&&(n.parentPageInteractionId=t.parentPageId+"-"+(t.interaction-1),n.timeOnParentPage=this.timeOnParentPage),n.referrer=document.referrer,n.referrerDomain=this.getDomainFromReferrer()),n}recordPageViewEvent(t){this.record(k2e,this.createPageViewEvent(t))}useCookies(){return navigator.cookieEnabled&&this.config.allowCookies}getDomainFromReferrer(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}}}var xp;(function(e){e.EVENT="event"})(xp||(xp={}));class eH{constructor(){this.subscribers=new Map}subscribe(t,n){var r;const a=(r=this.subscribers.get(t))!==null&&r!==void 0?r:[];a.length||this.subscribers.set(t,a),a.push(n)}unsubscribe(t,n){const r=this.subscribers.get(t);if(r){for(let a=0;a<r.length;a++)if(r[a]===n)return r.splice(a,1),!0}return!1}dispatch(t,n){const r=this.subscribers.get(t);if(r)for(const a of r)a(n)}}const P2e="3.1.0",D2e=new Set(["pageId","parentPageId","interaction","pageTags","title"]),IE=(e,t)=>{if(!e)return{};const n={};for(const[r,a]of Object.entries(e)){if(r.startsWith("aws:")){xe.warn(`Dropping ${t} metadata key "${r}": "aws:" namespace is reserved.`);continue}if((t==="event"||t==="hook")&&D2e.has(r)){xe.warn(`Dropping ${t} metadata key "${r}": owned by page state.`);continue}const s=typeof a;if(s!=="string"&&s!=="number"&&s!=="boolean"){xe.warn(`Dropping ${t} metadata key "${r}": value must be string|number|boolean.`);continue}n[r]=a}return n};class L2e{constructor(t,n,r=new eH){this.eventBus=r,this.events=[],this.candidates=new Map,this.droppedEvent=0,this.sessionLimitExceeded=0,this.recordPageView=a=>{this.isCurrentUrlAllowed()&&this.pageManager.recordPageView(a)},this.recordEvent=(a,s,i)=>{this.enabled&&this.isCurrentUrlAllowed()&&(a!==p_&&this.sessionManager.getSession(),this.sessionManager.canRecord()?(this.sessionManager.incrementSessionEventCount(),this.addRecordToCache(a,s,i)):this.sessionLimitExceeded++)},this.recordCandidate=(a,s,i)=>{const c=this.sessionManager.getSession();if(!this.enabled||!this.isCurrentUrlAllowed()||!c.record)return;const[u]=this.createEvent(a,s,i);if(this.candidates.has(a)){this.candidates.set(a,u);return}this.candidates.size<this.config.candidatesCacheSize&&!this.sessionManager.isLimitExceeded()&&(this.candidates.set(a,u),this.sessionManager.incrementSessionEventCount())},this.getSession=()=>{if(this.isCurrentUrlAllowed())return this.sessionManager.getSession()},this.getSessionId=()=>this.sessionManager.getSession().sessionId,this.pinSessionId=a=>{this.sessionManager.pinSessionId(a)},this.startSession=a=>this.sessionManager.startSession(a),this.getUserId=()=>this.sessionManager.getUserId(),this.pinUserId=a=>{this.sessionManager.pinUserId(a)},this.addRecordToCache=(a,s,i)=>{if(!this.enabled)return;if(this.events.length>=this.config.eventCacheSize){this.droppedEvent+=1;return}const[c,u]=this.createEvent(a,s,i);this.eventBus.dispatch(xp.EVENT,u),this.events.push(c)},this.createEvent=(a,s,i)=>{var c;const u=(c=this.pageManager.getAttributes())!==null&&c!==void 0?c:{},f=IE(i,"event");let h={};if(this.eventMetadataHook)try{const y=Object.freeze(Object.assign({},u)),w=this.eventMetadataHook(a,s,y);w&&(h=IE(w,"hook"))}catch(y){xe.warn(`eventMetadataHook threw for type "${a}"; dropping hook output for this event.`,y)}const m=Object.assign(Object.assign(Object.assign({},u),h),f),g={id:ld(),timestamp:new Date,type:a};return[Object.assign(Object.assign({},g),{details:JSON.stringify(s),metadata:JSON.stringify(m)}),Object.assign(Object.assign({},g),{details:s,metadata:m})]},this.appMonitorDetails=t,this.config=n,this.enabled=!0,this.pageManager=new M2e(n,this.recordEvent),this.sessionManager=new N2e(t,n,this.recordEvent,this.pageManager),this.installationMethod=n.client,this.applicationAttributes=Object.freeze(IE(n.applicationAttributes,"application"))}enable(){this.enabled=!0}disable(){this.enabled=!1}setPluginFlushHook(t){this.pluginFlushHook=t}isSessionSampled(){return this.sessionManager.isSampled()}hasEvents(){if(this.sessionLimitExceeded>0){const t=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?xe.warn(`Dropped ${this.sessionLimitExceeded} of ${t} recently observed events (${(this.sessionLimitExceeded/t*100).toFixed(2)}%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ${this.config.sessionEventLimit}) to ${t} or more to avoid data loss.`):xe.warn(`Dropped ${this.sessionLimitExceeded} of ${t} recently observed events (${(this.sessionLimitExceeded/t*100).toFixed(2)}%) because current session is not sampled. Consider increasing sessionSampleRate (currently ${this.config.sessionSampleRate}) to capture more user sessions.`),this.sessionLimitExceeded=0}return this.events.length!==0}hasCandidates(){return this.candidates.size!==0}getEventBatch(t=!1){var n;if(this.droppedEvent>0){const a=this.events.length+this.droppedEvent;xe.warn(`Dropped ${this.droppedEvent} of ${a} recently observed events (${(this.droppedEvent/a*100).toFixed(2)}%) due to insufficient in-memory queue. Increase eventCacheSize to ${a} (currently ${this.config.eventCacheSize}) to avoid data loss.`),this.droppedEvent=0}let r=[];if(t&&((n=this.pluginFlushHook)===null||n===void 0||n.call(this)),t&&this.hasCandidates())if(this.candidates.size<=this.config.batchLimit)r=Array.from(this.candidates.values()),this.candidates.clear();else{let a=0;for(const s of Array.from(this.candidates.keys())){if(a++>=this.config.batchLimit)break;const i=this.candidates.get(s);i&&(r.push(i),this.candidates.delete(s))}}return this.events.length&&(this.events.length<=this.config.batchLimit-r.length?(r.push(...this.events),this.events=[]):r.push(...this.events.splice(0,this.config.batchLimit-r.length))),r}getAppMonitorDetails(){return this.appMonitorDetails}getUserDetails(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}}addSessionAttributes(t){this.sessionManager.addSessionAttributes(t)}getCommonMetadata(){return Object.assign(Object.assign(Object.assign({},this.sessionManager.getAttributes()),this.applicationAttributes),{version:"1.0.0","aws:client":this.installationMethod,"aws:clientVersion":P2e})}setEventMetadataHook(t){this.eventMetadataHook=t}clearEventMetadataHook(){this.eventMetadataHook=void 0}isCurrentUrlAllowed(){const t=document.location.toString(),n=this.config.pagesToExclude.some(a=>a.test(t));return this.config.pagesToInclude.some(a=>a.test(t))&&!n}}var zn;(function(e){e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font"})(zn||(zn={}));var No;(function(e){e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.FRAME="frame",e.SCRIPT="script",e.CSS="css"})(No||(No={}));const FD=e=>[e.startTime,e.duration].join("#"),U2e=[{name:zn.STYLESHEET,list:["css","less"]},{name:zn.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:zn.SCRIPT,list:["js"]},{name:zn.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:zn.FONT,list:["fnt","fon","otf","ttf","woff"]}],$D=(e,t)=>{let n=zn.OTHER;if(e){const r=e.substring(e.lastIndexOf("/")+1),a=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0];U2e.forEach(s=>{s.list.indexOf(a)>-1&&(n=s.name)})}if(t&&n===zn.OTHER)switch(t){case No.IMAGE:case No.IMG:case No.INPUT:n=zn.IMAGE;break;case No.IFRAME:case No.FRAME:n=zn.DOCUMENT;break;case No.SCRIPT:n=zn.SCRIPT;break;case No.CSS:n=zn.STYLESHEET;break}return n},z2e=()=>PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint"),j2e=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,F2e=(e,t)=>{try{return new URL(e).hostname===t&&j2e.test(e)}catch{return!1}},tH="dom-event",$2e={interactionId:()=>"",enableMutationObserver:!1,events:[]};class TI extends qa{constructor(t){super(tH),this.enabled=!1,this.eventListenerMap=new Map,this.config=Object.assign(Object.assign({},$2e),t)}static getElementInfo(t){const n={name:"UNKNOWN"};return t.target instanceof Node&&(n.name=t.target.nodeName),t.target instanceof Element&&t.target.id&&(n.id=t.target.id),n}enable(){if(document.readyState!=="complete"){window.addEventListener("load",()=>this.enable());return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)}disable(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)}update(t){t.forEach(n=>{this.addEventHandler(n),this.config.events.push(n)})}onload(){this.enable()}removeListeners(){this.config.events.forEach(t=>this.removeEventHandler(t))}addListeners(){this.config.events.forEach(t=>this.addEventHandler(t))}getEventListener(t){return n=>{var r;const a=TI.getElementInfo(n),s=this.config.interactionId(n),i=Object.assign(Object.assign(Object.assign({version:"1.1.0",event:n.type,element:a.name},a.id?{elementId:a.id}:{}),s?{interactionId:s}:{}),t?{cssLocator:t}:{});!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(E2e,i)}}addEventHandler(t){const n=t.event,r=this.getEventListener(t.cssLocator),a=[],s=this.eventListenerMap.has(t)?this.eventListenerMap.get(t):[];if(t.cssLocator)document.querySelectorAll(t.cssLocator).forEach(c=>{a.push(c)});else if(t.elementId){const i=document.getElementById(t.elementId);i&&a.push(i)}else t.element&&a.push(t.element);a.forEach(i=>{i.addEventListener(n,r),s.push({element:i,eventListener:r})}),this.eventListenerMap.set(t,s)}removeEventHandler(t){const n=this.eventListenerMap.get(t);n&&(n.forEach(r=>{const a=r.element,s=r.eventListener;a.removeEventListener(t.event,s)}),this.eventListenerMap.delete(t))}observeDOMMutation(){this.observer=new MutationObserver(()=>{this.removeListeners(),this.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})}}const B2e=e=>{const t=typeof e;return(t==="object"||t==="function")&&!!e},H2e=e=>{const t={version:"1.0.0",type:"undefined",message:"undefined"};return e.type!==void 0&&(t.type=e.type),e.message!==void 0&&(t.message=e.message),e.filename!==void 0&&(t.filename=e.filename),e.lineno!==void 0&&(t.lineno=e.lineno),e.colno!==void 0&&(t.colno=e.colno),t},q2e=(e,t)=>{e.type!=="unhandledrejection"&&(e.type=t.toString()),e.message=t.toString()},V2e=(e,t,n)=>{t.name&&(e.type=t.name),t.message&&(e.message=t.message),t.fileName&&(e.filename=t.fileName),t.lineNumber&&(e.lineno=t.lineNumber),t.columnNumber&&(e.colno=t.columnNumber),n&&t.stack&&(e.stack=t.stack.length>n?t.stack.substring(0,n)+"...":t.stack)},nH=e=>e!==Object(e)&&e!==void 0&&e!==null,RI=(e,t)=>{const n=H2e(e),r=e.error;return B2e(r)?V2e(n,r,t):nH(r)&&q2e(n,r),n},rH="js-error",W2e={stackTraceLength:1e3,ignore:()=>!1};class G2e extends qa{constructor(t){super(rH),this.eventHandler=n=>{this.config.ignore(n)||this.recordJsErrorEvent(n)},this.promiseRejectEventHandler=n=>{this.config.ignore(n)||this.recordJsErrorEvent({type:n.type,error:n.reason})},this.config=Object.assign(Object.assign({},W2e),t)}enable(){this.enabled||(this.addEventHandler(),this.enabled=!0)}disable(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)}record(t){t instanceof ErrorEvent?this.recordJsErrorEvent(t):this.recordJsErrorEvent({type:"error",error:t})}onload(){this.addEventHandler()}recordJsErrorEvent(t){var n;(n=this.context)===null||n===void 0||n.record(_2e,RI(t,this.config.stackTraceLength))}addEventHandler(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)}removeEventHandler(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)}}const K2e=e=>e.entryType==="resource"&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType)),OI={eventLimit:10,ignore:K2e,recordAllTypes:[zn.DOCUMENT,zn.SCRIPT,zn.STYLESHEET,zn.FONT],sampleTypes:[zn.IMAGE,zn.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1},Y2e="navigation",Uu="navigation",TE="load";class Z2e extends qa{constructor(t){super(Y2e),this.eventListener=()=>{performance.getEntriesByType(Uu).length===0?this.performanceNavigationEventHandlerTimingLevel1():new PerformanceObserver(r=>{r.getEntries().filter(a=>a.entryType===Uu).filter(a=>!this.config.ignore(a)).forEach(a=>{this.performanceNavigationEventHandlerTimingLevel2(a)})}).observe({entryTypes:[Uu]})},this.performanceNavigationEventHandlerTimingLevel1=()=>{setTimeout(()=>{var r;const a=performance.timing,s=a.navigationStart,i={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:a.unloadEventStart>0?a.unloadEventStart-s:0,promptForUnload:a.unloadEventEnd-a.unloadEventStart,redirectStart:a.redirectStart>0?a.redirectStart-s:0,redirectTime:a.redirectEnd-a.redirectStart,fetchStart:a.fetchStart>0?a.fetchStart-s:0,domainLookupStart:a.domainLookupStart>0?a.domainLookupStart-s:0,dns:a.domainLookupEnd-a.domainLookupStart,connectStart:a.connectStart>0?a.connectStart-s:0,connect:a.connectEnd-a.connectStart,secureConnectionStart:a.secureConnectionStart>0?a.secureConnectionStart-s:0,tlsTime:a.secureConnectionStart>0?a.connectEnd-a.secureConnectionStart:0,requestStart:a.requestStart>0?a.requestStart-s:0,timeToFirstByte:a.responseStart-a.requestStart,responseStart:a.responseStart>0?a.responseStart-s:0,responseTime:a.responseStart>0?a.responseEnd-a.responseStart:0,domInteractive:a.domInteractive>0?a.domInteractive-s:0,domContentLoadedEventStart:a.domContentLoadedEventStart>0?a.domContentLoadedEventStart-s:0,domContentLoaded:a.domContentLoadedEventEnd-a.domContentLoadedEventStart,domComplete:a.domComplete>0?a.domComplete-s:0,domProcessingTime:a.loadEventStart-a.responseEnd,loadEventStart:a.loadEventStart>0?a.loadEventStart-s:0,loadEventTime:a.loadEventEnd-a.loadEventStart,duration:a.loadEventEnd-a.navigationStart,navigationTimingLevel:1};!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(h_,i)},0)},this.performanceNavigationEventHandlerTimingLevel2=n=>{var r;const a={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize>0?n.transferSize-n.encodedBodySize:0,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((r=this.context)===null||r===void 0)&&r.record&&this.context.record(h_,a)},this.config=Object.assign(Object.assign({},OI),t)}enable(){this.enabled||(this.enabled=!0,window.addEventListener(TE,this.eventListener))}disable(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(TE,this.eventListener))}hasTheWindowLoadEventFired(){return window.performance&&window.performance.getEntriesByType(Uu).length?!!window.performance.getEntriesByType(Uu)[0].loadEventEnd:!1}onload(){this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(Uu).filter(t=>!this.config.ignore(t)).forEach(t=>this.performanceNavigationEventHandlerTimingLevel2(t)):window.addEventListener(TE,this.eventListener))}}var RE,BD;function X2e(){if(BD)return RE;BD=1;function e(u){return typeof u=="function"}var t=console.error.bind(console);function n(u,f,h){var m=!!u[f]&&u.propertyIsEnumerable(f);Object.defineProperty(u,f,{configurable:!0,enumerable:m,writable:!0,value:h})}function r(u){u&&u.logger&&(e(u.logger)?t=u.logger:t("new logger isn't a function, not replacing"))}function a(u,f,h){if(!u||!u[f]){t("no original function "+f+" to wrap");return}if(!h){t("no wrapper function"),t(new Error().stack);return}if(!e(u[f])||!e(h)){t("original object and wrapper must be functions");return}var m=u[f],g=h(m,f);return n(g,"__original",m),n(g,"__unwrap",function(){u[f]===g&&n(u,f,m)}),n(g,"__wrapped",!0),n(u,f,g),g}function s(u,f,h){if(u)Array.isArray(u)||(u=[u]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(f&&Array.isArray(f))){t("must provide one or more functions to wrap on modules");return}u.forEach(function(m){f.forEach(function(g){a(m,g,h)})})}function i(u,f){if(!u||!u[f]){t("no function to unwrap."),t(new Error().stack);return}if(!u[f].__unwrap)t("no original to unwrap to -- has "+f+" already been unwrapped?");else return u[f].__unwrap()}function c(u,f){if(u)Array.isArray(u)||(u=[u]);else{t("must provide one or more modules to patch"),t(new Error().stack);return}if(!(f&&Array.isArray(f))){t("must provide one or more functions to unwrap on modules");return}u.forEach(function(h){f.forEach(function(m){i(h,m)})})}return r.wrap=a,r.massWrap=s,r.unwrap=i,r.massUnwrap=c,RE=r,RE}var H1=X2e();const Q2e=Fd(H1),HD=ZL({__proto__:null,default:Q2e},[H1]);class NI extends qa{constructor(){super(...arguments),this.enable=this.patch.bind(this,!0),this.disable=this.patch.bind(this,!1),this.enabled=!1}patchAll(){const t=H1.wrap.bind(HD);for(const n of this.patches)t(n.nodule,n.name,n.wrapper())}unpatchAll(){const t=H1.unwrap.bind(HD);for(const n of this.patches)t(n.nodule,n.name)}patch(t=!0){this.enabled!==t&&(this.enabled=t,t?this.patchAll():this.unpatchAll())}}const J2e="page-view";class eCe extends NI{constructor(){super(J2e),this.pushState=()=>{const t=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return t.recordPageView(),i}},this.replaceState=()=>{const t=this;return n=>function(r,a,s){const i=n.apply(this,arguments);return t.recordPageView(),i}},this.popstateListener=t=>{this.recordPageView()},this.recordPageView=()=>{this.context.recordPageView(this.createIdForCurrentPage())},this.enable()}onload(){this.addListener(),this.recordPageView()}get patches(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]}addListener(){window.addEventListener("popstate",this.popstateListener)}createIdForCurrentPage(){const t=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case Gh.PathAndHash:return t&&n?t+n:t||n||"";case Gh.Hash:return n||"";case Gh.Path:default:return t||""}}}const tCe="resource",OE="resource";class nCe extends qa{constructor(t){super(tCe),this.performanceEntryHandler=n=>{this.recordPerformanceEntries(n.getEntries())},this.recordPerformanceEntries=n=>{n.forEach(r=>{if(r.entryType!==OE||this.config.ignore(r))return;const{name:a,initiatorType:s}=r,i=$D(a,s);this.config.recordAllTypes.includes(i)?this.recordResourceEvent(r):this.config.sampleTypes.includes(i)&&this.eventCount<this.config.eventLimit&&(this.recordResourceEvent(r),this.eventCount++)})},this.recordResourceEvent=({name:n,startTime:r,initiatorType:a,duration:s,transferSize:i})=>{var c;if(!F2e(n,this.context.config.endpointUrl.hostname)&&!((c=this.context)===null||c===void 0)&&c.record){const u={version:"1.0.0",initiatorType:a,startTime:r,duration:s,fileType:$D(n,a),transferSize:i};this.context.config.recordResourceUrl&&(u.targetUrl=n),this.context.record(JB,u)}},this.config=Object.assign(Object.assign({},OI),t),this.eventCount=0,this.resourceObserver=new PerformanceObserver(this.performanceEntryHandler)}enable(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:OE,buffered:!0}))}disable(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())}onload(){this.resourceObserver.observe({type:OE,buffered:!0})}}var m_,qD,ky=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},MI=function(e){if(document.readyState==="loading")return"loading";var t=ky();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},rCe=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Ay=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var r=e,a=r.id?"#"+r.id:rCe(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+a.length>(t||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;e=r.parentNode}}catch{}return n},aH=-1,aCe=function(){return aH},ef=function(e){addEventListener("pageshow",(function(t){t.persisted&&(aH=t.timeStamp,e(t))}),!0)},PI=function(){var e=ky();return e&&e.activationStart||0},Vs=function(e,t){var n=ky(),r="navigate";return aCe()>=0?r="back-forward-cache":n&&(document.prerendering||PI()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},zc=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(a){Promise.resolve().then((function(){t(a.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ws=function(e,t,n,r){var a,s;return function(i){t.value>=0&&(i||r)&&((s=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=s,t.rating=(function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},DI=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},tm=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},Iy=function(e){var t=!1;return function(){t||(e(),t=!0)}},ad=-1,VD=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},q1=function(e){document.visibilityState==="hidden"&&ad>-1&&(ad=e.type==="visibilitychange"?e.timeStamp:0,sCe())},WD=function(){addEventListener("visibilitychange",q1,!0),addEventListener("prerenderingchange",q1,!0)},sCe=function(){removeEventListener("visibilitychange",q1,!0),removeEventListener("prerenderingchange",q1,!0)},LI=function(){return ad<0&&(ad=VD(),WD(),ef((function(){setTimeout((function(){ad=VD(),WD()}),0)}))),{get firstHiddenTime(){return ad}}},Ty=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},GD=[1800,3e3],oCe=function(e,t){t=t||{},Ty((function(){var n,r=LI(),a=Vs("FCP"),s=zc("paint",(function(i){i.forEach((function(c){c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<r.firstHiddenTime&&(a.value=Math.max(c.startTime-PI(),0),a.entries.push(c),n(!0)))}))}));s&&(n=Ws(e,a,GD,t.reportAllChanges),ef((function(i){a=Vs("FCP"),n=Ws(e,a,GD,t.reportAllChanges),DI((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},KD=[.1,.25],iCe=function(e,t){(function(n,r){r=r||{},oCe(Iy((function(){var a,s=Vs("CLS",0),i=0,c=[],u=function(h){h.forEach((function(m){if(!m.hadRecentInput){var g=c[0],y=c[c.length-1];i&&m.startTime-y.startTime<1e3&&m.startTime-g.startTime<5e3?(i+=m.value,c.push(m)):(i=m.value,c=[m])}})),i>s.value&&(s.value=i,s.entries=c,a())},f=zc("layout-shift",u);f&&(a=Ws(n,s,KD,r.reportAllChanges),tm((function(){u(f.takeRecords()),a(!0)})),ef((function(){i=0,s=Vs("CLS",0),a=Ws(n,s,KD,r.reportAllChanges),DI((function(){return a()}))})),setTimeout(a,0))})))})((function(n){var r=(function(a){var s,i={};if(a.entries.length){var c=a.entries.reduce((function(f,h){return f&&f.value>h.value?f:h}));if(c&&c.sources&&c.sources.length){var u=(s=c.sources).find((function(f){return f.node&&f.node.nodeType===1}))||s[0];u&&(i={largestShiftTarget:Ay(u.node),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:u,largestShiftEntry:c,loadState:MI(c.startTime)})}}return Object.assign(a,{attribution:i})})(n);e(r)}),t)},sH=0,NE=1/0,a0=0,lCe=function(e){e.forEach((function(t){t.interactionId&&(NE=Math.min(NE,t.interactionId),a0=Math.max(a0,t.interactionId),sH=a0?(a0-NE)/7+1:0)}))},oH=function(){return m_?sH:performance.interactionCount||0},cCe=function(){"interactionCount"in performance||m_||(m_=zc("event",lCe,{type:"event",buffered:!0,durationThreshold:0}))},os=[],Kh=new Map,iH=0,uCe=function(){var e=Math.min(os.length-1,Math.floor((oH()-iH)/50));return os[e]},lH=[],dCe=function(e){if(lH.forEach((function(a){return a(e)})),e.interactionId||e.entryType==="first-input"){var t=os[os.length-1],n=Kh.get(e.interactionId);if(n||os.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Kh.set(r.id,r),os.push(r)}os.sort((function(a,s){return s.latency-a.latency})),os.length>10&&os.splice(10).forEach((function(a){return Kh.delete(a.id)}))}}},UI=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=Iy(e),document.visibilityState==="hidden"?e():(n=t(e),tm(e)),n},YD=[200,500],fCe=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Ty((function(){var n;cCe();var r,a=Vs("INP"),s=function(c){UI((function(){c.forEach(dCe);var u=uCe();u&&u.latency!==a.value&&(a.value=u.latency,a.entries=u.entries,r())}))},i=zc("event",s,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=Ws(e,a,YD,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),tm((function(){s(i.takeRecords()),r(!0)})),ef((function(){iH=oH(),os.length=0,Kh.clear(),a=Vs("INP"),r=Ws(e,a,YD,t.reportAllChanges)})))})))},vd=[],Ki=[],g_=0,zI=new WeakMap,yd=new Map,v_=-1,hCe=function(e){vd=vd.concat(e),cH()},cH=function(){v_<0&&(v_=UI(pCe))},pCe=function(){yd.size>10&&yd.forEach((function(i,c){Kh.has(c)||yd.delete(c)}));var e=os.map((function(i){return zI.get(i.entries[0])})),t=Ki.length-50;Ki=Ki.filter((function(i,c){return c>=t||e.includes(i)}));for(var n=new Set,r=0;r<Ki.length;r++){var a=Ki[r];dH(a.startTime,a.processingEnd).forEach((function(i){n.add(i)}))}var s=vd.length-1-50;vd=vd.filter((function(i,c){return i.startTime>g_&&c>s||n.has(i)})),v_=-1};lH.push((function(e){e.interactionId&&e.target&&!yd.has(e.interactionId)&&yd.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;g_=Math.max(g_,e.processingEnd);for(var r=Ki.length-1;r>=0;r--){var a=Ki[r];if(Math.abs(n-a.renderTime)<=8){(t=a).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Ki.push(t)),(e.interactionId||e.entryType==="first-input")&&zI.set(e,t),cH()}));var Yi,Yh,uH,V1,dH=function(e,t){for(var n,r=[],a=0;n=vd[a];a++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},mCe=function(e,t){qD||(qD=zc("long-animation-frame",hCe)),fCe((function(n){var r=(function(a){var s=a.entries[0],i=zI.get(s),c=s.processingStart,u=i.processingEnd,f=i.entries.sort((function(x,E){return x.processingStart-E.processingStart})),h=dH(s.startTime,u),m=a.entries.find((function(x){return x.target})),g=m&&m.target||yd.get(s.interactionId),y=[s.startTime+s.duration,u].concat(h.map((function(x){return x.startTime+x.duration}))),w=Math.max.apply(Math,y),b={interactionTarget:Ay(g),interactionTargetElement:g,interactionType:s.name.startsWith("key")?"keyboard":"pointer",interactionTime:s.startTime,nextPaintTime:w,processedEventEntries:f,longAnimationFrameEntries:h,inputDelay:c-s.startTime,processingDuration:u-c,presentationDelay:Math.max(w-u,0),loadState:MI(s.startTime)};return Object.assign(a,{attribution:b})})(n);e(r)}),t)},ZD=[2500,4e3],ME={},gCe=function(e,t){(function(n,r){r=r||{},Ty((function(){var a,s=LI(),i=Vs("LCP"),c=function(h){r.reportAllChanges||(h=h.slice(-1)),h.forEach((function(m){m.startTime<s.firstHiddenTime&&(i.value=Math.max(m.startTime-PI(),0),i.entries=[m],a())}))},u=zc("largest-contentful-paint",c);if(u){a=Ws(n,i,ZD,r.reportAllChanges);var f=Iy((function(){ME[i.id]||(c(u.takeRecords()),u.disconnect(),ME[i.id]=!0,a(!0))}));["keydown","click"].forEach((function(h){addEventListener(h,(function(){return UI(f)}),{once:!0,capture:!0})})),tm(f),ef((function(h){i=Vs("LCP"),a=Ws(n,i,ZD,r.reportAllChanges),DI((function(){i.value=performance.now()-h.timeStamp,ME[i.id]=!0,a(!0)}))}))}}))})((function(n){var r=(function(a){var s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){var i=ky();if(i){var c=i.activationStart||0,u=a.entries[a.entries.length-1],f=u.url&&performance.getEntriesByType("resource").filter((function(w){return w.name===u.url}))[0],h=Math.max(0,i.responseStart-c),m=Math.max(h,f?(f.requestStart||f.startTime)-c:0),g=Math.max(m,f?f.responseEnd-c:0),y=Math.max(g,u.startTime-c);s={element:Ay(u.element),timeToFirstByte:h,resourceLoadDelay:m-h,resourceLoadDuration:g-m,elementRenderDelay:y-g,navigationEntry:i,lcpEntry:u},u.url&&(s.url=u.url),f&&(s.lcpResourceEntry=f)}}return Object.assign(a,{attribution:s})})(n);e(r)}),t)},Uh={passive:!0,capture:!0},vCe=new Date,XD=function(e,t){Yi||(Yi=t,Yh=e,uH=new Date,hH(removeEventListener),fH())},fH=function(){if(Yh>=0&&Yh<uH-vCe){var e={entryType:"first-input",name:Yi.type,target:Yi.target,cancelable:Yi.cancelable,startTime:Yi.timeStamp,processingStart:Yi.timeStamp+Yh};V1.forEach((function(t){t(e)})),V1=[]}},yCe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(n,r){var a=function(){XD(n,r),i()},s=function(){i()},i=function(){removeEventListener("pointerup",a,Uh),removeEventListener("pointercancel",s,Uh)};addEventListener("pointerup",a,Uh),addEventListener("pointercancel",s,Uh)})(t,e):XD(t,e)}},hH=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,yCe,Uh)}))},QD=[100,300],bCe=function(e,t){t=t||{},Ty((function(){var n,r=LI(),a=Vs("FID"),s=function(u){u.startTime<r.firstHiddenTime&&(a.value=u.processingStart-u.startTime,a.entries.push(u),n(!0))},i=function(u){u.forEach(s)},c=zc("first-input",i);n=Ws(e,a,QD,t.reportAllChanges),c&&(tm(Iy((function(){i(c.takeRecords()),c.disconnect()}))),ef((function(){var u;a=Vs("FID"),n=Ws(e,a,QD,t.reportAllChanges),V1=[],Yh=-1,Yi=null,hH(addEventListener),u=s,V1.push(u),fH()})))}))},SCe=function(e,t){bCe((function(n){var r=(function(a){var s=a.entries[0],i={eventTarget:Ay(s.target),eventType:s.name,eventTime:s.startTime,eventEntry:s,loadState:MI(s.startTime)};return Object.assign(a,{attribution:i})})(n);e(r)}),t)};const wCe="web-vitals";class xCe extends qa{constructor(t){super(wCe),this.resourceEventIds=new Map,this.cacheLCPCandidates=z2e(),this.handleEvent=n=>{switch(n.type){case JB:const r=n.details;this.cacheLCPCandidates&&r.fileType===zn.IMAGE&&this.resourceEventIds.set(FD(n.details),n.id);break;case h_:this.navigationEventId=n.id;break}},this.config=Object.assign(Object.assign({},OI),t)}enable(){}disable(){}onload(){this.context.eventBus.subscribe(xp.EVENT,this.handleEvent),gCe(t=>this.handleLCP(t),{reportAllChanges:this.config.reportAllLCP}),SCe(t=>this.handleFID(t)),iCe(t=>this.handleCLS(t),{reportAllChanges:!0}),mCe(t=>this.handleINP(t),{reportAllChanges:!0})}handleLCP(t){var n,r;const a=t.attribution,s={element:a?.element,url:a?.url,timeToFirstByte:a?.timeToFirstByte,resourceLoadDelay:a?.resourceLoadDelay,resourceLoadTime:a?.resourceLoadDuration,elementRenderDelay:a?.elementRenderDelay};if(a?.lcpResourceEntry){const i=FD(a?.lcpResourceEntry);s.lcpResourceEntry=this.resourceEventIds.get(i)}this.navigationEventId&&(s.navigationEntry=this.navigationEventId),(n=this.context)===null||n===void 0||n.record(S2e,{version:"1.0.0",value:t.value,attribution:s}),(r=this.context)===null||r===void 0||r.eventBus.unsubscribe(xp.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0}handleCLS(t){const n=t.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllCLS?r:a)(x2e,{version:"1.0.0",value:t.value,attribution:{largestShiftTarget:n?.largestShiftTarget,largestShiftValue:n?.largestShiftValue,largestShiftTime:n?.largestShiftTime,loadState:n?.loadState}})}handleFID(t){var n;const r=t.attribution;(n=this.context)===null||n===void 0||n.record(w2e,{version:"1.0.0",value:t.value,attribution:{eventTarget:r?.eventTarget,eventType:r?.eventType,eventTime:r?.eventTime,loadState:r?.loadState}})}handleINP(t){const n=t.attribution,{record:r,recordCandidate:a}=this.context;(this.config.reportAllINP?r:a)(C2e,{version:"1.0.0",value:t.value,attribution:{interactionTarget:n?.interactionTarget,interactionTime:n?.interactionTime,nextPaintTime:n?.nextPaintTime,interactionType:n?.interactionType,inputDelay:n?.inputDelay,processingDuration:n?.processingDuration,presentationDelay:n?.presentationDelay,loadState:n?.loadState}})}}const CCe="fetch";class ECe extends NI{constructor(t){super(CCe),this.isTracingEnabled=()=>this.context.config.enableXRay,this.isSessionRecorded=()=>{var n;return((n=this.context.getSession())===null||n===void 0?void 0:n.record)||!1},this.beginTrace=(n,r,a)=>{const s=rd(),i=pxe(n,r,!0),c=FB(this.config.logicalServiceName,s,this.context.config.enableW3CTraceId),u=$B(BB(n),s,i);return c.subsegments.push(u),this.isTraceIdHeaderEnabled(n)&&this.addXRayTraceIdHeader(n,r,a,c),c},this.addXRayTraceIdHeader=(n,r,a,s)=>{if(n.headers)return gxe(n.headers,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId);r||(r={},[].push.call(a,r)),mxe(r,s.trace_id,s.subsegments[0].id,this.context.config.enableW3CTraceId)},this.endTrace=(n,r,a)=>{if(n){const s=rd();if(n.subsegments[0].end_time=s,n.end_time=s,r){n.subsegments[0].http.response={status:r.status},EI(r.status)?(n.subsegments[0].throttle=!0,n.throttle=!0):zB(r.status)?(n.subsegments[0].error=!0,n.error=!0):CI(r.status)&&(n.subsegments[0].fault=!0,n.fault=!0);const i=r.headers.get("Content-Length"),c=i?parseInt(i,10):NaN;isNaN(c)||(n.subsegments[0].http.response.content_length=c)}a&&(n.fault=!0,n.subsegments[0].fault=!0,a instanceof Object?this.appendErrorCauseFromObject(n.subsegments[0],a):nH(a)&&this.appendErrorCauseFromPrimitive(n.subsegments[0],a.toString())),this.context.record(QB,n)}},this.createHttpEvent=(n,r)=>{const a=n;return{version:"1.0.0",request:{url:t1(n),method:r?.method?r.method:a.method?a.method:"GET"}}},this.recordHttpEventWithResponse=(n,r)=>{(this.config.recordAllRequests||!r.ok)&&(n.response={status:r.status,statusText:r.statusText},this.context.record(B1,n))},this.recordHttpEventWithError=(n,r)=>{n.error=RI({type:"error",error:r},this.config.stackTraceLength),this.context.record(B1,n)},this.fetch=(n,r,a,s,i)=>{const c=this.createHttpEvent(s,i);let u;if(!jB(t1(s),this.config))return n.apply(r,a);const f=yxe(s.headers,this.context.config.enableW3CTraceId);return f.traceId&&f.segmentId?(c.trace_id=f.traceId,c.segment_id=f.segmentId):this.isTracingEnabled()&&this.isSessionRecorded()&&(u=this.beginTrace(s,i,a),c.trace_id=u.trace_id,c.segment_id=u.subsegments[0].id),n.apply(r,a).then(h=>(this.endTrace(u,h,void 0),this.recordHttpEventWithResponse(c,h),h)).catch(h=>{throw this.endTrace(u,void 0,h),this.recordHttpEventWithError(c,h),h})},this.fetchWrapper=()=>{const n=this;return r=>function(a,s){return n.fetch(r,this,arguments,a,s)}},this.config=Object.assign(Object.assign({},UB),t)}get patches(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}onload(){this.enable()}isTraceIdHeaderEnabled(t){const n=t1(t);return LB(n,this.config.addXRayTraceIdHeader)}appendErrorCauseFromPrimitive(t,n){t.cause={exceptions:[{type:n}]}}appendErrorCauseFromObject(t,n){t.cause={exceptions:[{type:n.name,message:n.message}]}}}class _Ce extends Error{constructor(t){super(t),this.name="XMLHttpRequest error"}}const kCe="xhr";class ACe extends NI{constructor(t){super(kCe),this.addXRayTraceIdHeader=n=>LB(n,this.config.addXRayTraceIdHeader),this.isTracingEnabled=()=>this.context.config.enableXRay,this.isSessionRecorded=()=>{var n;return((n=this.context.getSession())===null||n===void 0?void 0:n.record)||!1},this.handleXhrLoadEvent=n=>{const r=n.target,a=this.xhrMap.get(r);if(a){const s=rd();a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].http.response={status:r.status},EI(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):zB(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):CI(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);const i=r.getResponseHeader("Content-Length"),c=i?parseInt(i,10):NaN;isNaN(c)||(a.trace.subsegments[0].http.response.content_length=c),this.recordTraceEvent(a.trace),this.recordHttpEventWithResponse(a,r)}},this.handleXhrErrorEvent=n=>{const r=n.target,a=this.xhrMap.get(r),s="XMLHttpRequest error",i=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){const c=rd();a.trace.fault=!0,a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:s,message:i}]},this.recordTraceEvent(a.trace),this.recordHttpEventWithError(a,r,new _Ce(i))}},this.handleXhrAbortEvent=n=>{const r=n.target,a=this.xhrMap.get(r);a&&this.handleXhrDetailsOnError(a,r,"XMLHttpRequest abort")},this.handleXhrTimeoutEvent=n=>{const r=n.target,a=this.xhrMap.get(r);this.handleXhrDetailsOnError(a,r,"XMLHttpRequest timeout")},this.initializeTrace=n=>{const r=rd();n.trace=FB(this.config.logicalServiceName,r,this.context.config.enableW3CTraceId),n.trace.subsegments.push($B(BB(n.url),r,{request:{method:n.method,url:n.url,traced:!0}}))},this.sendWrapper=()=>{const n=this;return r=>function(){const a=n.xhrMap.get(this);return a&&(this.addEventListener("load",n.handleXhrLoadEvent),this.addEventListener("error",n.handleXhrErrorEvent),this.addEventListener("abort",n.handleXhrAbortEvent),this.addEventListener("timeout",n.handleXhrTimeoutEvent),n.initializeTrace(a),!n.isSyntheticsUA&&n.isTracingEnabled()&&n.addXRayTraceIdHeader(a.url)&&n.isSessionRecorded()&&(n.context.config.enableW3CTraceId?this.setRequestHeader(Ey,kI(a.trace.trace_id,a.trace.subsegments[0].id)):this.setRequestHeader(Cy,_I(a.trace.trace_id,a.trace.subsegments[0].id)))),r.apply(this,arguments)}},this.openWrapper=()=>{const n=this;return r=>function(a,s,i){return jB(s,n.config)&&n.xhrMap.set(this,{url:s,method:a,async:i}),r.apply(this,arguments)}},this.config=Object.assign(Object.assign({},UB),t),this.xhrMap=new Map,this.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics")}onload(){this.enable()}get patches(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]}handleXhrDetailsOnError(t,n,r){if(t){const a=rd();t.trace.end_time=a,t.trace.subsegments[0].end_time=a,t.trace.subsegments[0].error=!0,t.trace.subsegments[0].cause={exceptions:[{type:r}]},this.recordTraceEvent(t.trace),this.recordHttpEventWithError(t,n,r)}}statusOk(t){return t>=200&&t<300}recordHttpEventWithResponse(t,n){this.xhrMap.delete(n);const r={version:"1.0.0",request:{method:t.method,url:t.url},response:{status:n.status,statusText:n.statusText}};this.isTracingEnabled()&&(r.trace_id=t.trace.trace_id,r.segment_id=t.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(B1,r)}recordHttpEventWithError(t,n,r){this.xhrMap.delete(n);const a={version:"1.0.0",request:{method:t.method,url:t.url},error:RI({type:"error",error:r},this.config.stackTraceLength)};this.isTracingEnabled()&&(a.trace_id=t.trace.trace_id,a.segment_id=t.trace.subsegments[0].id),this.context.record(B1,a)}recordTraceEvent(t){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(QB,t)}}var W1={},ICe=Object.defineProperty,TCe=(e,t,n)=>t in e?ICe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>TCe(e,typeof t!="symbol"?t+"":t,n),JD,RCe=Object.defineProperty,OCe=(e,t,n)=>t in e?RCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e9=(e,t,n)=>OCe(e,typeof t!="symbol"?t+"":t,n),Hn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Hn||{});const t9={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},n9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},s0={},NCe=()=>!!globalThis.Zone;function jI(e){if(s0[e])return s0[e];const t=globalThis[e],n=t.prototype,r=e in t9?t9[e]:void 0,a=!!(r&&r.every(c=>{var u,f;return!!((f=(u=Object.getOwnPropertyDescriptor(n,c))==null?void 0:u.get)!=null&&f.toString().includes("[native code]"))})),s=e in n9?n9[e]:void 0,i=!!(s&&s.every(c=>{var u;return typeof n[c]=="function"&&((u=n[c])==null?void 0:u.toString().includes("[native code]"))}));if(a&&i&&!NCe())return s0[e]=t.prototype,t.prototype;try{const c=document.createElement("iframe");document.body.appendChild(c);const u=c.contentWindow;if(!u)return t.prototype;const f=u[e].prototype;return document.body.removeChild(c),f?s0[e]=f:n}catch{return n}}const PE={};function ti(e,t,n){var r;const a=`${e}.${String(n)}`;if(PE[a])return PE[a].call(t);const s=jI(e),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(PE[a]=i,i.call(t)):t[n]}const DE={};function pH(e,t,n){const r=`${e}.${String(n)}`;if(DE[r])return DE[r].bind(t);const s=jI(e)[n];return typeof s!="function"?t[n]:(DE[r]=s,s.bind(t))}function MCe(e){return ti("Node",e,"ownerDocument")}function PCe(e){return ti("Node",e,"childNodes")}function DCe(e){return ti("Node",e,"parentNode")}function LCe(e){return ti("Node",e,"parentElement")}function UCe(e){return ti("Node",e,"textContent")}function zCe(e,t){return pH("Node",e,"contains")(t)}function jCe(e){return pH("Node",e,"getRootNode")()}function FCe(e){return!e||!("host"in e)?null:ti("ShadowRoot",e,"host")}function $Ce(e){return e.styleSheets}function BCe(e){return!e||!("shadowRoot"in e)?null:ti("Element",e,"shadowRoot")}function HCe(e,t){return ti("Element",e,"querySelector")(t)}function qCe(e,t){return ti("Element",e,"querySelectorAll")(t)}function VCe(){return jI("MutationObserver").constructor}function WCe(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}const wr={ownerDocument:MCe,childNodes:PCe,parentNode:DCe,parentElement:LCe,textContent:UCe,contains:zCe,getRootNode:jCe,host:FCe,styleSheets:$Ce,shadowRoot:BCe,querySelector:HCe,querySelectorAll:qCe,mutationObserver:VCe,patch:WCe};function mH(e){return e.nodeType===e.ELEMENT_NODE}function Zh(e){const t=e&&"host"in e&&"mode"in e&&wr.host(e)||null;return!!(t&&"shadowRoot"in t&&wr.shadowRoot(t)===e)}function Xh(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function GCe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function KCe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function y_(e){try{const t=e.rules||e.cssRules;if(!t)return null;let n=e.href;!n&&e.ownerNode&&(n=e.ownerNode.baseURI);const r=Array.from(t,a=>gH(a,n)).join("");return GCe(r)}catch{return null}}function gH(e,t){if(ZCe(e)){let n;try{n=y_(e.styleSheet)||KCe(e)}catch{n=e.cssText}return e.styleSheet.href?Y1(n,e.styleSheet.href):n}else{let n=e.cssText;return XCe(e)&&e.selectorText.includes(":")&&(n=YCe(n)),t?Y1(n,t):n}}function YCe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ZCe(e){return"styleSheet"in e}function XCe(e){return"selectorText"in e}class vH{constructor(){e9(this,"idNodeMap",new Map),e9(this,"nodeMetaMap",new WeakMap)}getId(t){var n;return t?((n=this.getMeta(t))==null?void 0:n.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const a=this.nodeMetaMap.get(r);a&&this.nodeMetaMap.set(n,a)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function QCe(){return new vH}function G1({element:e,maskInputOptions:t,tagName:n,type:r,value:a,maskInputFn:s}){let i=a||"";const c=r&&Cc(r);return(t[n.toLowerCase()]||c&&t[c])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Cc(e){return e.toLowerCase()}const r9="__rrweb_original__";function JCe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let a=0;a<e.height;a+=n){const s=t.getImageData,i=r9 in s?s[r9]:s;if(new Uint32Array(i.call(t,r,a,Math.min(n,e.width-r),Math.min(n,e.height-a)).data.buffer).some(u=>u!==0))return!1}return!0}function K1(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Cc(t):null}function yH(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,a=n.pathname.match(r);return a?.[1]??null}function eEe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const tEe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nEe=/^(?:[a-z+]+:)?\/\//i,rEe=/^www\..*/i,aEe=/^(data:)([^,]*),(.*)/i;function Y1(e,t){return(e||"").replace(tEe,(n,r,a,s,i,c)=>{const u=a||i||c,f=r||s||"";if(!u)return n;if(nEe.test(u)||rEe.test(u))return`url(${f}${u}${f})`;if(aEe.test(u))return`url(${f}${u}${f})`;if(u[0]==="/")return`url(${f}${eEe(t)+u}${f})`;const h=t.split("/"),m=u.split("/");h.pop();for(const g of m)g!=="."&&(g===".."?h.pop():h.push(g));return`url(${f}${h.join("/")}${f})`})}function o0(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function sEe(e,t,n=!1){const r=Array.from(t.childNodes),a=[];let s=0;if(r.length>1&&e&&typeof e=="string"){let i=o0(e,n);const c=i.length/e.length;for(let u=1;u<r.length;u++)if(r[u].textContent&&typeof r[u].textContent=="string"){const f=o0(r[u].textContent,n),h=100;let m=3;for(;m<f.length&&(f[m].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,m),1)!==-1);m++);for(;m<f.length;m++){let g=f.substring(0,m),y=i.split(g),w=-1;if(y.length===2)w=y[0].length;else if(y.length>2&&y[0]===""&&r[u-1].textContent!=="")w=i.indexOf(g,1);else if(y.length===1){if(g=g.substring(0,g.length-1),y=i.split(g),y.length<=1)return a.push(e),a;m=h+1}else m===f.length-1&&(w=i.indexOf(g));if(y.length>=2&&m>h){const b=r[u-1].textContent;if(b&&typeof b=="string"){const x=o0(b).length;w=i.indexOf(g,x)}w===-1&&(w=y[0].length)}if(w!==-1){let b=Math.floor(w/c);for(;b>0&&b<e.length;){if(s+=1,s>50*r.length)return a.push(e),a;const x=o0(e.substring(0,b),n);if(x.length===w){a.push(e.substring(0,b)),e=e.substring(b),i=i.substring(w);break}else x.length<w?b+=Math.max(1,Math.floor((w-x.length)/c)):b-=Math.max(1,Math.floor((x.length-w)*c))}break}}}}return a.push(e),a}function oEe(e,t){return sEe(e,t).join("/* rr_split */")}let iEe=1;const lEe=new RegExp("[^a-z0-9-_:]"),Cp=-2;function bH(){return iEe++}function cEe(e){if(e instanceof HTMLFormElement)return"form";const t=Cc(e.tagName);return lEe.test(t)?"div":t}let zu,a9;const uEe=/^[^ \t\n\r\u000c]+/,dEe=/^[, \t\n\r\u000c]+/;function fEe(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const c=s.exec(t.substring(n));return c?(i=c[0],n+=i.length,i):""}const a=[];for(;r(dEe),!(n>=t.length);){let s=r(uEe);if(s.slice(-1)===",")s=sd(e,s.substring(0,s.length-1)),a.push(s);else{let i="";s=sd(e,s);let c=!1;for(;;){const u=t.charAt(n);if(u===""){a.push((s+i).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){n+=1,a.push((s+i).trim());break}else u==="("&&(c=!0);i+=u,n+=1}}}return a.join(", ")}const s9=new WeakMap;function sd(e,t){return!t||t.trim()===""?t:FI(e,t)}function hEe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function FI(e,t){let n=s9.get(e);if(n||(n=e.createElement("a"),s9.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function SH(e,t,n,r){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&["table","td","th"].includes(t)?sd(e,r):n==="srcset"?fEe(e,r):n==="style"?Y1(r,FI(e)):t==="object"&&n==="data"?sd(e,r):r)}function wH(e,t,n){return["video","audio"].includes(e)&&t==="autoplay"}function pEe(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const a=e.classList[r];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function Z1(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Z1(wr.parentNode(e),t,n):!1;for(let r=e.classList.length;r--;){const a=e.classList[r];if(t.test(a))return!0}return n?Z1(wr.parentNode(e),t,n):!1}function xH(e,t,n,r){let a;if(mH(e)){if(a=e,!wr.childNodes(a).length)return!1}else{if(wr.parentElement(e)===null)return!1;a=wr.parentElement(e)}try{if(typeof t=="string"){if(r){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(Z1(a,t,r))return!0;if(n){if(r){if(a.closest(n))return!0}else if(a.matches(n))return!0}}catch{}return!1}function mEe(e,t,n){const r=e.contentWindow;if(!r)return;let a=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const c=setTimeout(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{clearTimeout(c),a=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function gEe(e,t,n){let r=!1,a;try{a=e.sheet}catch{return}if(a)return;const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()})}function vEe(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:i,inlineStylesheet:c,maskInputOptions:u={},maskTextFn:f,maskInputFn:h,dataURLOptions:m={},inlineImages:g,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:b=!1,cssCaptured:x=!1}=t,E=yEe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Hn.Document,childNodes:[],compatMode:e.compatMode}:{type:Hn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Hn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return SEe(e,{doc:n,blockClass:a,blockSelector:s,inlineStylesheet:c,maskInputOptions:u,maskInputFn:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:b,rootId:E});case e.TEXT_NODE:return bEe(e,{doc:n,needsMask:i,maskTextFn:f,rootId:E,cssCaptured:x});case e.CDATA_SECTION_NODE:return{type:Hn.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:Hn.Comment,textContent:wr.textContent(e)||"",rootId:E};default:return!1}}function yEe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function bEe(e,t){const{needsMask:n,maskTextFn:r,rootId:a,cssCaptured:s}=t,i=wr.parentNode(e),c=i&&i.tagName;let u="";const f=c==="STYLE"?!0:void 0,h=c==="SCRIPT"?!0:void 0;return h?u="SCRIPT_PLACEHOLDER":s||(u=wr.textContent(e),f&&u&&(u=Y1(u,FI(t.doc)))),!f&&!h&&u&&n&&(u=r?r(u,wr.parentElement(e)):u.replace(/[\S]/g,"*")),{type:Hn.Text,textContent:u||"",rootId:a}}function SEe(e,t){const{doc:n,blockClass:r,blockSelector:a,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:c,dataURLOptions:u={},inlineImages:f,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:g=!1,rootId:y}=t,w=pEe(e,r,a),b=cEe(e);let x={};const E=e.attributes.length;for(let A=0;A<E;A++){const R=e.attributes[A];wH(b,R.name,R.value)||(x[R.name]=SH(n,b,Cc(R.name),R.value))}if(b==="link"&&s){const A=Array.from(n.styleSheets).find(P=>P.href===e.href);let R=null;A&&(R=y_(A)),R&&(delete x.rel,delete x.href,x._cssText=R)}if(b==="style"&&e.sheet){let A=y_(e.sheet);A&&(e.childNodes.length>1&&(A=oEe(A,e)),x._cssText=A)}if(["input","textarea","select"].includes(b)){const A=e.value,R=e.checked;x.type!=="radio"&&x.type!=="checkbox"&&x.type!=="submit"&&x.type!=="button"&&A?x.value=G1({element:e,type:K1(e),tagName:b,value:A,maskInputOptions:i,maskInputFn:c}):R&&(x.checked=R)}if(b==="option"&&(e.selected&&!i.select?x.selected=!0:delete x.selected),b==="dialog"&&e.open&&(x.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),b==="canvas"&&h){if(e.__context==="2d")JCe(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const A=e.toDataURL(u.type,u.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height;const P=R.toDataURL(u.type,u.quality);A!==P&&(x.rr_dataURL=A)}}if(b==="img"&&f){zu||(zu=n.createElement("canvas"),a9=zu.getContext("2d"));const A=e,R=A.currentSrc||A.getAttribute("src")||"<unknown-src>",P=A.crossOrigin,O=()=>{A.removeEventListener("load",O);try{zu.width=A.naturalWidth,zu.height=A.naturalHeight,a9.drawImage(A,0,0),x.rr_dataURL=zu.toDataURL(u.type,u.quality)}catch(T){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?O():A.addEventListener("load",O);return}else console.warn(`Cannot inline img src=${R}! Error: ${T}`)}A.crossOrigin==="anonymous"&&(P?x.crossOrigin=P:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?O():A.addEventListener("load",O)}if(["audio","video"].includes(b)){const A=x;A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime,A.rr_mediaPlaybackRate=e.playbackRate,A.rr_mediaMuted=e.muted,A.rr_mediaLoop=e.loop,A.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),w){const{width:A,height:R}=e.getBoundingClientRect();x={class:x.class,rr_width:`${A}px`,rr_height:`${R}px`}}b==="iframe"&&!m(x.src)&&(e.contentDocument||(x.rr_src=x.src),delete x.src);let k;try{customElements.get(b)&&(k=!0)}catch{}return{type:Hn.Element,tagName:b,attributes:x,childNodes:[],isSVG:hEe(e)||void 0,needBlock:w,rootId:y,isCustom:k}}function tn(e){return e==null?"":e.toLowerCase()}function CH(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function wEe(e,t){if(t.comment&&e.type===Hn.Comment)return!0;if(e.type===Hn.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&yH(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(tn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||tn(e.attributes.name)==="application-name"||tn(e.attributes.rel)==="icon"||tn(e.attributes.rel)==="apple-touch-icon"||tn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&tn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(tn(e.attributes.property).match(/^(og|twitter|fb):/)||tn(e.attributes.name).match(/^(og|twitter):/)||tn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(tn(e.attributes.name)==="robots"||tn(e.attributes.name)==="googlebot"||tn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(tn(e.attributes.name)==="author"||tn(e.attributes.name)==="generator"||tn(e.attributes.name)==="framework"||tn(e.attributes.name)==="publisher"||tn(e.attributes.name)==="progid"||tn(e.attributes.property).match(/^article:/)||tn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(tn(e.attributes.name)==="google-site-verification"||tn(e.attributes.name)==="yandex-verification"||tn(e.attributes.name)==="csrf-token"||tn(e.attributes.name)==="p:domain_verify"||tn(e.attributes.name)==="verify-v1"||tn(e.attributes.name)==="verification"||tn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function od(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:s,maskTextClass:i,maskTextSelector:c,skipChild:u=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:w={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:E,onIframeLoad:k,iframeLoadTimeout:A=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:P=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:T=!1,cssCaptured:M=!1}=t;let{needsMask:z}=t,{preserveWhiteSpace:q=!0}=t;z||(z=xH(e,i,c,z===void 0));const U=vEe(e,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:z,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,dataURLOptions:w,inlineImages:b,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:T,cssCaptured:M});if(!U)return console.warn(e,"not serialized"),null;let L;r.hasNode(e)?L=r.getId(e):wEe(U,y)||!q&&U.type===Hn.Text&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?L=Cp:L=bH();const B=Object.assign(U,{id:L});if(r.add(e,B),L===Cp)return null;E&&E(e);let G=!u;if(B.type===Hn.Element){G=G&&!B.needBlock,delete B.needBlock;const $=wr.shadowRoot(e);$&&Xh($)&&(B.isShadowHost=!0)}if((B.type===Hn.Document||B.type===Hn.Element)&&G){y.headWhitespace&&B.type===Hn.Element&&B.tagName==="head"&&(q=!1);const $={doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:z,maskTextClass:i,maskTextSelector:c,skipChild:u,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:q,onSerialize:E,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:P,keepIframeSrcFn:O,cssCaptured:!1};if(!(B.type===Hn.Element&&B.tagName==="textarea"&&B.attributes.value!==void 0)){B.type===Hn.Element&&B.attributes._cssText!==void 0&&typeof B.attributes._cssText=="string"&&($.cssCaptured=!0);for(const re of Array.from(wr.childNodes(e))){const pe=od(re,$);pe&&B.childNodes.push(pe)}}let X=null;if(mH(e)&&(X=wr.shadowRoot(e)))for(const re of Array.from(wr.childNodes(X))){const pe=od(re,$);pe&&(Xh(X)&&(pe.isShadow=!0),B.childNodes.push(pe))}}const ie=wr.parentNode(e);return ie&&Zh(ie)&&Xh(ie)&&(B.isShadow=!0),B.type===Hn.Element&&B.tagName==="iframe"&&mEe(e,()=>{const $=e.contentDocument;if($&&k){const X=od($,{doc:$,mirror:r,blockClass:a,blockSelector:s,needsMask:z,maskTextClass:i,maskTextSelector:c,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:q,onSerialize:E,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:P,keepIframeSrcFn:O});X&&k(e,X)}},A),B.type===Hn.Element&&B.tagName==="link"&&typeof B.attributes.rel=="string"&&(B.attributes.rel==="stylesheet"||B.attributes.rel==="preload"&&typeof B.attributes.href=="string"&&yH(B.attributes.href)==="css")&&gEe(e,()=>{if(R){const $=od(e,{doc:n,mirror:r,blockClass:a,blockSelector:s,needsMask:z,maskTextClass:i,maskTextSelector:c,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:q,onSerialize:E,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:P,keepIframeSrcFn:O});$&&R(e,$)}},P),B}function xEe(e,t){const{mirror:n=new vH,blockClass:r="rr-block",blockSelector:a=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:c=!0,inlineImages:u=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:w,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:P=()=>!1}=t||{},O=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:h===!1?{password:!0}:h,T=CH(y);return od(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:c,maskInputOptions:O,maskTextFn:m,maskInputFn:g,slimDOMOptions:T,dataURLOptions:w,inlineImages:u,recordCanvas:f,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:P,newlyAddedElement:!1})}function CEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function EEe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var $I={exports:{}},sn=String,EH=function(){return{isColorSupported:!1,reset:sn,bold:sn,dim:sn,italic:sn,underline:sn,inverse:sn,hidden:sn,strikethrough:sn,black:sn,red:sn,green:sn,yellow:sn,blue:sn,magenta:sn,cyan:sn,white:sn,gray:sn,bgBlack:sn,bgRed:sn,bgGreen:sn,bgYellow:sn,bgBlue:sn,bgMagenta:sn,bgCyan:sn,bgWhite:sn}};$I.exports=EH();$I.exports.createColors=EH;var _Ee=$I.exports;const kEe={},AEe=Object.freeze(Object.defineProperty({__proto__:null,default:kEe},Symbol.toStringTag,{value:"Module"})),ps=EEe(AEe);let o9=_Ee,i9=ps,b_=class _H extends Error{constructor(t,n,r,a,s,i){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),a&&(this.source=a),i&&(this.plugin=i),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,_H)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=o9.isColorSupported),i9&&t&&(n=i9(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),i=String(s).length,c,u;if(t){let{bold:f,gray:h,red:m}=o9.createColors(!0);c=g=>f(m(g)),u=g=>h(g)}else c=u=f=>f;return r.slice(a,s).map((f,h)=>{let m=a+1+h,g=" "+(" "+m).slice(-i)+" | ";if(m===this.line){let y=u(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+u(g)+f+`
|
|
242
|
+
`+y+c("^")}return" "+u(g)+f}).join(`
|
|
243
|
+
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
244
|
+
|
|
245
|
+
`+t+`
|
|
246
|
+
`),this.name+": "+this.message+t}};var BI=b_;b_.default=b_;var nm={};nm.isClean=Symbol("isClean");nm.my=Symbol("my");const l9={after:`
|
|
247
|
+
`,beforeClose:`
|
|
248
|
+
`,beforeComment:`
|
|
249
|
+
`,beforeDecl:`
|
|
250
|
+
`,beforeOpen:" ",beforeRule:`
|
|
251
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function IEe(e){return e[0].toUpperCase()+e.slice(1)}let S_=class{constructor(t){this.builder=t}atrule(t,n){let r="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:a&&(r+=" "),t.nodes)this.block(t,r+a);else{let s=(t.raws.between||"")+(n?";":"");this.builder(r+a+s,t)}}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let a=t.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
|
|
252
|
+
`)){let i=this.raw(t,null,"indent");if(i.length)for(let c=0;c<s;c++)r+=i}return r}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let s=t.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),a=t.prop+r+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),n&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,n,r){let a;if(r||(r=n),n&&(a=t.raws[n],typeof a<"u"))return a;let s=t.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return l9[r];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let c="raw"+IEe(r);this[c]?a=this[c](i,t):i.walk(u=>{if(a=u.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=l9[r]),i.rawCache[r]=a,a}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
|
|
253
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let r;return t.walkComments(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
|
|
254
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
|
|
255
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
|
|
256
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let a=r.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
|
|
257
|
+
`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let r=t[n],a=t.raws[n];return a&&a.value===r?a.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};var kH=S_;S_.default=S_;let TEe=kH;function w_(e,t){new TEe(t).stringify(e)}var Ry=w_;w_.default=w_;let{isClean:i0,my:REe}=nm,OEe=BI,NEe=kH,MEe=Ry;function x_(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let a=e[r],s=typeof a;r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>x_(i,n)):(s==="object"&&a!==null&&(a=x_(a)),n[r]=a)}return n}let C_=class{constructor(t={}){this.raws={},this[i0]=!1,this[REe]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=x_(this);for(let r in t)n[r]=t[r];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(t,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new OEe(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[i0]){this[i0]=!1;let t=this;for(;t=t.parent;)t[i0]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let r=this.source.start;if(t.index)r=this.positionInside(t.index,n);else if(t.word){n=this.toString();let a=n.indexOf(t.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(t,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<t;i++)r[i]===`
|
|
258
|
+
`?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let a=this.toString(),s=a.indexOf(t.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+t.word.length,a))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(t,n){return new NEe().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let a of t)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let r={},a=n==null;n=n||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let c=this[i];if(Array.isArray(c))r[i]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof c=="object"&&c.toJSON)r[i]=c.toJSON(null,n);else if(i==="source"){let u=n.get(c.input);u==null&&(u=s,n.set(c.input,s),s++),r[i]={end:c.end,inputId:u,start:c.start}}else r[i]=c}return a&&(r.inputs=[...n.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=MEe){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}warn(t,n,r){let a={node:this};for(let s in r)a[s]=r[s];return t.warn(n,a)}get proxyOf(){return this}};var Oy=C_;C_.default=C_;let PEe=Oy,E_=class extends PEe{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Ny=E_;E_.default=E_;let DEe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",LEe=(e=21)=>{let t="",n=e;for(;n--;)t+=DEe[Math.random()*64|0];return t};var UEe={nanoid:LEe};let{SourceMapConsumer:c9,SourceMapGenerator:u9}=ps,{existsSync:zEe,readFileSync:jEe}=ps,{dirname:LE,join:FEe}=ps;function $Ee(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let __=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,a=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=LE(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new c9(this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(t)||s.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return $Ee(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),a=t.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,a)))}loadFile(t){if(this.root=LE(t),zEe(t))return this.mapFile=t,jEe(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let a=this.loadFile(r);if(!a)throw new Error("Unable to load previous source map: "+r.toString());return a}}else{if(n instanceof c9)return u9.fromSourceMap(n).toString();if(n instanceof u9)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=FEe(LE(t),r)),this.loadFile(r)}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var AH=__;__.default=__;let{SourceMapConsumer:BEe,SourceMapGenerator:HEe}=ps,{fileURLToPath:d9,pathToFileURL:l0}=ps,{isAbsolute:k_,resolve:A_}=ps,{nanoid:qEe}=UEe,UE=ps,f9=BI,VEe=AH,zE=Symbol("fromOffsetCache"),WEe=!!(BEe&&HEe),h9=!!(A_&&k_),X1=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!h9||/^\w+:\/\//.test(n.from)||k_(n.from)?this.file=n.from:this.file=A_(n.from)),h9&&WEe){let r=new VEe(this.css,n);if(r.text){this.map=r;let a=r.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+qEe(6)+">"),this.map&&(this.map.file=this.from)}error(t,n,r,a={}){let s,i,c;if(n&&typeof n=="object"){let f=n,h=r;if(typeof f.offset=="number"){let m=this.fromOffset(f.offset);n=m.line,r=m.col}else n=f.line,r=f.column;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);i=m.line,c=m.col}else i=h.line,c=h.column}else if(!r){let f=this.fromOffset(n);n=f.line,r=f.col}let u=this.origin(n,r,i,c);return u?s=new f9(t,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,a.plugin):s=new f9(t,i===void 0?n:{column:r,line:n},i===void 0?r:{column:c,line:i},this.css,this.file,a.plugin),s.input={column:r,endColumn:c,endLine:i,line:n,source:this.css},this.file&&(l0&&(s.input.url=l0(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let n,r;if(this[zE])r=this[zE];else{let s=this.css.split(`
|
|
259
|
+
`);r=new Array(s.length);let i=0;for(let c=0,u=s.length;c<u;c++)r[c]=i,i+=s[c].length+1;this[zE]=r}n=r[r.length-1];let a=0;if(t>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),t<r[i])s=i-1;else if(t>=r[i+1])a=i+1;else{a=i;break}}return{col:t-r[a]+1,line:a+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:A_(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:t});if(!i.source)return!1;let c;typeof r=="number"&&(c=s.originalPositionFor({column:a,line:r}));let u;k_(i.source)?u=l0(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||l0(this.map.mapFile));let f={column:i.column,endColumn:c&&c.column,endLine:c&&c.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(d9)f.file=d9(u);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(f.source=h),f}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var My=X1;X1.default=X1;UE&&UE.registerInput&&UE.registerInput(X1);let{SourceMapConsumer:IH,SourceMapGenerator:n1}=ps,{dirname:r1,relative:TH,resolve:RH,sep:OH}=ps,{pathToFileURL:p9}=ps,GEe=My,KEe=!!(IH&&n1),YEe=!!(r1&&RH&&TH&&OH),ZEe=class{constructor(t,n,r,a){this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
|
|
260
|
+
`;this.css.includes(`\r
|
|
261
|
+
`)&&(n=`\r
|
|
262
|
+
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||r1(t.file),a;this.mapOpts.sourcesContent===!1?(a=new IH(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),YEe&&KEe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=n1.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new n1({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new n1({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(a.generated.line=t,a.generated.column=n-1,u.source&&u.source.start?(a.source=this.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),s=c.match(/\n/g),s?(t+=s.length,i=c.lastIndexOf(`
|
|
263
|
+
`),n=c.length-i):n+=c.length,u&&f!=="start"){let h=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(a.source=this.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=t,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?r1(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=r1(RH(r,this.mapOpts.annotation)));let a=TH(r,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new GEe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let a=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(a,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(p9){let r=p9(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;OH==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var NH=ZEe;let XEe=Oy,I_=class extends XEe{constructor(t){super(t),this.type="comment"}};var Py=I_;I_.default=I_;let{isClean:MH,my:PH}=nm,DH=Ny,LH=Py,QEe=Oy,UH,HI,qI,zH;function jH(e){return e.map(t=>(t.nodes&&(t.nodes=jH(t.nodes)),delete t.source,t))}function FH(e){if(e[MH]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)FH(t)}let Ko=class $H extends QEe{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=t(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>t[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let i of a)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)s=this.indexes[i],r<s&&(this.indexes[i]=s+a.length);return this.markDirty(),this}insertBefore(t,n){let r=this.index(t),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(t);for(let c of s)this.proxyOf.nodes.splice(r,0,c);let i;for(let c in this.indexes)i=this.indexes[c],r<=i&&(this.indexes[c]=i+s.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=jH(UH(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new DH(t)]}else if(t.selector)t=[new HI(t)];else if(t.name)t=[new qI(t)];else if(t.text)t=[new LH(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[PH]||$H.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[MH]&&FH(a),typeof a.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(a.raws.before=n.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let a of r)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(a=>{n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let a;try{a=t(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(t)),a})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="rule")return n(r,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ko.registerParse=e=>{UH=e};Ko.registerRule=e=>{HI=e};Ko.registerAtRule=e=>{qI=e};Ko.registerRoot=e=>{zH=e};var jc=Ko;Ko.default=Ko;Ko.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,qI.prototype):e.type==="rule"?Object.setPrototypeOf(e,HI.prototype):e.type==="decl"?Object.setPrototypeOf(e,DH.prototype):e.type==="comment"?Object.setPrototypeOf(e,LH.prototype):e.type==="root"&&Object.setPrototypeOf(e,zH.prototype),e[PH]=!0,e.nodes&&e.nodes.forEach(t=>{Ko.rebuild(t)})};let JEe=jc,BH,HH,Ep=class extends JEe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new BH(new HH,this,t).stringify()}};Ep.registerLazyResult=e=>{BH=e};Ep.registerProcessor=e=>{HH=e};var VI=Ep;Ep.default=Ep;let T_=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var qH=T_;T_.default=T_;let e3e=qH,R_=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e3e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var WI=R_;R_.default=R_;const jE=39,m9=34,c0=92,g9=47,u0=10,wh=32,d0=12,f0=9,h0=13,t3e=91,n3e=93,r3e=40,a3e=41,s3e=123,o3e=125,i3e=59,l3e=42,c3e=58,u3e=64,p0=/[\t\n\f\r "#'()/;[\\\]{}]/g,m0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,d3e=/.[\r\n"'(/\\]/,v9=/[\da-f]/i;var f3e=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,i,c,u,f,h,m,g,y,w,b=r.length,x=0,E=[],k=[];function A(){return x}function R(M){throw t.error("Unclosed "+M,x)}function P(){return k.length===0&&x>=b}function O(M){if(k.length)return k.pop();if(x>=b)return;let z=M?M.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case u0:case wh:case f0:case h0:case d0:{i=x;do i+=1,s=r.charCodeAt(i);while(s===wh||s===u0||s===f0||s===h0||s===d0);w=["space",r.slice(x,i)],x=i-1;break}case t3e:case n3e:case s3e:case o3e:case c3e:case i3e:case a3e:{let q=String.fromCharCode(s);w=[q,q,x];break}case r3e:{if(g=E.length?E.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==jE&&y!==m9&&y!==wh&&y!==u0&&y!==f0&&y!==d0&&y!==h0){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||z){i=x;break}else R("bracket");for(m=i;r.charCodeAt(m-1)===c0;)m-=1,h=!h}while(h);w=["brackets",r.slice(x,i+1),x,i],x=i}else i=r.indexOf(")",x+1),u=r.slice(x,i+1),i===-1||d3e.test(u)?w=["(","(",x]:(w=["brackets",u,x,i],x=i);break}case jE:case m9:{c=s===jE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(c,i+1),i===-1)if(a||z){i=x+1;break}else R("string");for(m=i;r.charCodeAt(m-1)===c0;)m-=1,h=!h}while(h);w=["string",r.slice(x,i+1),x,i],x=i;break}case u3e:{p0.lastIndex=x+1,p0.test(r),p0.lastIndex===0?i=r.length-1:i=p0.lastIndex-2,w=["at-word",r.slice(x,i+1),x,i],x=i;break}case c0:{for(i=x,f=!0;r.charCodeAt(i+1)===c0;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==g9&&s!==wh&&s!==u0&&s!==f0&&s!==h0&&s!==d0&&(i+=1,v9.test(r.charAt(i)))){for(;v9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===wh&&(i+=1)}w=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===g9&&r.charCodeAt(x+1)===l3e?(i=r.indexOf("*/",x+2)+1,i===0&&(a||z?i=r.length:R("comment")),w=["comment",r.slice(x,i+1),x,i],x=i):(m0.lastIndex=x+1,m0.test(r),m0.lastIndex===0?i=r.length-1:i=m0.lastIndex-2,w=["word",r.slice(x,i+1),x,i],E.push(w),x=i);break}}return x++,w}function T(M){k.push(M)}return{back:T,endOfFile:P,nextToken:O,position:A}};let VH=jc,Q1=class extends VH{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var GI=Q1;Q1.default=Q1;VH.registerAtRule(Q1);let WH=jc,GH,KH,Id=class extends WH{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new GH(new KH,this,t).stringify()}};Id.registerLazyResult=e=>{GH=e};Id.registerProcessor=e=>{KH=e};var rm=Id;Id.default=Id;WH.registerRoot(Id);let _p={comma(e){return _p.split(e,[","],!0)},space(e){let t=[" ",`
|
|
264
|
+
`," "];return _p.split(e,t)},split(e,t,n){let r=[],a="",s=!1,i=0,c=!1,u="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:c?h===u&&(c=!1):h==='"'||h==="'"?(c=!0,u=h):h==="("?i+=1:h===")"?i>0&&(i-=1):i===0&&t.includes(h)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=h;return(n||a!=="")&&r.push(a.trim()),r}};var YH=_p;_p.default=_p;let ZH=jc,h3e=YH,J1=class extends ZH{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return h3e.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var KI=J1;J1.default=J1;ZH.registerRule(J1);let p3e=Ny,m3e=f3e,g3e=Py,v3e=GI,y3e=rm,y9=KI;const b9={empty:!0,space:!0};function b3e(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let S3e=class{constructor(t){this.input=t,this.root=new y3e,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new v3e;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,a,s,i=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){c=!0;break}else if(r==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(n.source.end=this.getPosition(a[3]||a[2]),n.source.end.offset++)}this.end(t);break}else u.push(t);else u.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),i&&(t=u[u.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),c&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=t[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let n=0,r,a,s;for(let[i,c]of t.entries()){if(r=c,a=r[0],a==="("&&(n+=1),a===")"&&(n-=1),n===0&&a===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(t){let n=new g3e;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let a=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=a[2],n.raws.left=a[1],n.raws.right=a[3]}}createTokenizer(){this.tokenizer=m3e(this.input)}decl(t,n){let r=new p3e;this.init(r,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(a[3]||a[2]||b3e(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],c;for(;t.length&&(c=t[0][0],!(c!=="space"&&c!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(s=t[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=f;g>0;g--){let y=h[g][0];if(m.trim().indexOf("!")===0&&y!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=m,t=h)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new y9;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,a=!1,s=null,i=[],c=t[1].startsWith("--"),u=[],f=t;for(;f;){if(r=f[0],u.push(f),r==="("||r==="[")s||(s=f),i.push(r==="("?")":"]");else if(c&&a&&r==="{")s||(s=f),i.push("}");else if(i.length===0)if(r===";")if(a){this.decl(u,c);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(a=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),i.length>0&&this.unclosedBracket(s),n&&a){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,a){let s,i,c=r.length,u="",f=!0,h,m;for(let g=0;g<c;g+=1)s=r[g],i=s[0],i==="space"&&g===c-1&&!a?f=!1:i==="comment"?(m=r[g-1]?r[g-1][0]:"empty",h=r[g+1]?r[g+1][0]:"empty",!b9[m]&&!b9[h]?u.slice(-1)===","?f=!1:u+=s[1]:f=!1):u+=s[1];if(!f){let g=r.reduce((y,w)=>y+w[1],"");t.raws[n]={raw:g,value:u}}t[n]=u}rule(t){t.pop();let n=new y9;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let a=n;a<t.length;a++)r+=t[a][1];return t.splice(n,t.length-n),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var w3e=S3e;let x3e=jc,C3e=w3e,E3e=My;function ev(e,t){let n=new E3e(e,t),r=new C3e(n);try{r.parse()}catch(a){throw a}return r.root}var YI=ev;ev.default=ev;x3e.registerParse(ev);let{isClean:Ns,my:_3e}=nm,k3e=NH,A3e=Ry,I3e=jc,T3e=VI,S9=WI,R3e=YI,O3e=rm;const N3e={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},M3e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},P3e={Once:!0,postcssPlugin:!0,prepare:!0},Td=0;function xh(e){return typeof e=="object"&&typeof e.then=="function"}function XH(e){let t=!1,n=N3e[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,Td,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,Td,n+"Exit"]:[n,n+"Exit"]}function w9(e){let t;return e.type==="document"?t=["Document",Td,"DocumentExit"]:e.type==="root"?t=["Root",Td,"RootExit"]:t=XH(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function O_(e){return e[Ns]=!1,e.nodes&&e.nodes.forEach(t=>O_(t)),e}let N_={},Rd=class QH{constructor(t,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=O_(n);else if(n instanceof QH||n instanceof S9)a=O_(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=R3e;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{a=s(n,r)}catch(i){this.processed=!0,this.error=i}a&&!a[_3e]&&I3e.rebuild(a)}this.result=new S9(t,a,r),this.helpers={...N_,postcss:N_,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(n,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,a])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!M3e[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!P3e[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?t(n,r,n[r][a]):t(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(xh(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ns];){t[Ns]=!0;let n=[w9(t)];for(;n.length>0;){let r=this.visitTick(n);if(xh(r))try{await r}catch(a){let s=n[n.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let a=t.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return xh(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=A3e;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let a=new k3e(n,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(xh(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ns];)t[Ns]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,a]of t){this.result.lastPlugin=r;let s;try{s=a(n,this.helpers)}catch(i){throw this.handleError(i,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(xh(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(a.length>0&&n.visitorIndex<a.length){let[i,c]=a[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===a.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=i;try{return c(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(n.iterator!==0){let i=n.iterator,c;for(;c=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!c[Ns]){c[Ns]=!0,t.push(w9(c));return}n.iterator=0,delete r.indexes[i]}let s=n.events;for(;n.eventIndex<s.length;){let i=s[n.eventIndex];if(n.eventIndex+=1,i===Td){r.nodes&&r.nodes.length&&(r[Ns]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}t.pop()}walkSync(t){t[Ns]=!0;let n=XH(t);for(let r of n)if(r===Td)t.nodes&&t.each(a=>{a[Ns]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Rd.registerPostcss=e=>{N_=e};var JH=Rd;Rd.default=Rd;O3e.registerLazyResult(Rd);T3e.registerLazyResult(Rd);let D3e=NH,L3e=Ry,U3e=YI;const z3e=WI;let M_=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let a,s=L3e;this.result=new z3e(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let c=new D3e(s,a,this._opts,n);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=U3e;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var j3e=M_;M_.default=M_;let F3e=j3e,$3e=JH,B3e=VI,H3e=rm,kp=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new F3e(this,t,n):new $3e(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var q3e=kp;kp.default=kp;H3e.registerProcessor(kp);B3e.registerProcessor(kp);let V3e=Ny,W3e=AH,G3e=Py,K3e=GI,Y3e=My,Z3e=rm,X3e=KI;function Ap(e,t){if(Array.isArray(e))return e.map(a=>Ap(a));let{inputs:n,...r}=e;if(n){t=[];for(let a of n){let s={...a,__proto__:Y3e.prototype};s.map&&(s.map={...s.map,__proto__:W3e.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(a=>Ap(a,t))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=t[a])}if(r.type==="root")return new Z3e(r);if(r.type==="decl")return new V3e(r);if(r.type==="rule")return new X3e(r);if(r.type==="comment")return new G3e(r);if(r.type==="atrule")return new K3e(r);throw new Error("Unknown node type: "+e.type)}var Q3e=Ap;Ap.default=Ap;let J3e=BI,eq=Ny,e_e=JH,t_e=jc,ZI=q3e,n_e=Ry,r_e=Q3e,tq=VI,a_e=qH,nq=Py,rq=GI,s_e=WI,o_e=My,i_e=YI,l_e=YH,aq=KI,sq=rm,c_e=Oy;function $t(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new ZI(e)}$t.plugin=function(t,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
265
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),W1.LANG&&W1.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
266
|
+
https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.postcssVersion=new ZI().version,c}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,c,u){return $t([a(u)]).process(i,c)},a};$t.stringify=n_e;$t.parse=i_e;$t.fromJSON=r_e;$t.list=l_e;$t.comment=e=>new nq(e);$t.atRule=e=>new rq(e);$t.decl=e=>new eq(e);$t.rule=e=>new aq(e);$t.root=e=>new sq(e);$t.document=e=>new tq(e);$t.CssSyntaxError=J3e;$t.Declaration=eq;$t.Container=t_e;$t.Processor=ZI;$t.Document=tq;$t.Comment=nq;$t.Warning=a_e;$t.AtRule=rq;$t.Result=s_e;$t.Input=o_e;$t.Rule=aq;$t.Root=sq;$t.Node=c_e;e_e.registerPostcss($t);var u_e=$t;$t.default=$t;const pn=CEe(u_e);pn.stringify;pn.fromJSON;pn.plugin;pn.parse;pn.list;pn.document;pn.comment;pn.atRule;pn.rule;pn.decl;pn.root;pn.CssSyntaxError;pn.Declaration;pn.Container;pn.Processor;pn.Document;pn.Comment;pn.Warning;pn.AtRule;pn.Result;pn.Input;pn.Rule;pn.Root;pn.Node;var d_e=Object.defineProperty,f_e=(e,t,n)=>t in e?d_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t,n)=>f_e(e,typeof t!="symbol"?t+"":t,n);function h_e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p_e(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var XI={exports:{}},on=String,oq=function(){return{isColorSupported:!1,reset:on,bold:on,dim:on,italic:on,underline:on,inverse:on,hidden:on,strikethrough:on,black:on,red:on,green:on,yellow:on,blue:on,magenta:on,cyan:on,white:on,gray:on,bgBlack:on,bgRed:on,bgGreen:on,bgYellow:on,bgBlue:on,bgMagenta:on,bgCyan:on,bgWhite:on}};XI.exports=oq();XI.exports.createColors=oq;var m_e=XI.exports;const g_e={},v_e=Object.freeze(Object.defineProperty({__proto__:null,default:g_e},Symbol.toStringTag,{value:"Module"})),ms=p_e(v_e);let x9=m_e,C9=ms,P_=class iq extends Error{constructor(t,n,r,a,s,i){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),a&&(this.source=a),i&&(this.plugin=i),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,iq)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=x9.isColorSupported),C9&&t&&(n=C9(n));let r=n.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,r.length),i=String(s).length,c,u;if(t){let{bold:f,gray:h,red:m}=x9.createColors(!0);c=g=>f(m(g)),u=g=>h(g)}else c=u=f=>f;return r.slice(a,s).map((f,h)=>{let m=a+1+h,g=" "+(" "+m).slice(-i)+" | ";if(m===this.line){let y=u(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+u(g)+f+`
|
|
267
|
+
`+y+c("^")}return" "+u(g)+f}).join(`
|
|
268
|
+
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
269
|
+
|
|
270
|
+
`+t+`
|
|
271
|
+
`),this.name+": "+this.message+t}};var QI=P_;P_.default=P_;var am={};am.isClean=Symbol("isClean");am.my=Symbol("my");const E9={after:`
|
|
272
|
+
`,beforeClose:`
|
|
273
|
+
`,beforeComment:`
|
|
274
|
+
`,beforeDecl:`
|
|
275
|
+
`,beforeOpen:" ",beforeRule:`
|
|
276
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function y_e(e){return e[0].toUpperCase()+e.slice(1)}let D_=class{constructor(t){this.builder=t}atrule(t,n){let r="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:a&&(r+=" "),t.nodes)this.block(t,r+a);else{let s=(t.raws.between||"")+(n?";":"");this.builder(r+a+s,t)}}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let a=t.parent,s=0;for(;a&&a.type!=="root";)s+=1,a=a.parent;if(r.includes(`
|
|
277
|
+
`)){let i=this.raw(t,null,"indent");if(i.length)for(let c=0;c<s;c++)r+=i}return r}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let s=t.nodes[a],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,n!==a||r)}}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),a=t.prop+r+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),n&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,n,r){let a;if(r||(r=n),n&&(a=t.raws[n],typeof a<"u"))return a;let s=t.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return E9[r];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[r]<"u")return i.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let c="raw"+y_e(r);this[c]?a=this[c](i,t):i.walk(u=>{if(a=u.raws[n],typeof a<"u")return!1})}return typeof a>"u"&&(a=E9[r]),i.rawCache[r]=a,a}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
|
|
278
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let r;return t.walkComments(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
|
|
279
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return r=a.raws.before,r.includes(`
|
|
280
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
|
|
281
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let a=r.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
|
|
282
|
+
`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let r=t[n],a=t.raws[n];return a&&a.value===r?a.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};var lq=D_;D_.default=D_;let b_e=lq;function L_(e,t){new b_e(t).stringify(e)}var Dy=L_;L_.default=L_;let{isClean:g0,my:S_e}=am,w_e=QI,x_e=lq,C_e=Dy;function U_(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let a=e[r],s=typeof a;r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=a:Array.isArray(a)?n[r]=a.map(i=>U_(i,n)):(s==="object"&&a!==null&&(a=U_(a)),n[r]=a)}return n}let z_=class{constructor(t={}){this.raws={},this[g0]=!1,this[S_e]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=U_(this);for(let r in t)n[r]=t[r];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:r,start:a}=this.rangeBy(n);return this.source.input.error(t,{column:a.column,line:a.line},{column:r.column,line:r.line},n)}return new w_e(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[g0]){this[g0]=!1;let t=this;for(;t=t.parent;)t[g0]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let r=this.source.start;if(t.index)r=this.positionInside(t.index,n);else if(t.word){n=this.toString();let a=n.indexOf(t.word);a!==-1&&(r=this.positionInside(a,n))}return r}positionInside(t,n){let r=n||this.toString(),a=this.source.start.column,s=this.source.start.line;for(let i=0;i<t;i++)r[i]===`
|
|
283
|
+
`?(a=1,s+=1):a+=1;return{column:a,line:s}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let a=this.toString(),s=a.indexOf(t.word);s!==-1&&(n=this.positionInside(s,a),r=this.positionInside(s+t.word.length,a))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(t,n){return new x_e().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let a of t)a===this?r=!0:r?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let r={},a=n==null;n=n||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let c=this[i];if(Array.isArray(c))r[i]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,n):u);else if(typeof c=="object"&&c.toJSON)r[i]=c.toJSON(null,n);else if(i==="source"){let u=n.get(c.input);u==null&&(u=s,n.set(c.input,s),s++),r[i]={end:c.end,inputId:u,start:c.start}}else r[i]=c}return a&&(r.inputs=[...n.keys()].map(i=>i.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=C_e){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}warn(t,n,r){let a={node:this};for(let s in r)a[s]=r[s];return t.warn(n,a)}get proxyOf(){return this}};var Ly=z_;z_.default=z_;let E_e=Ly,j_=class extends E_e{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Uy=j_;j_.default=j_;let __e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",k_e=(e=21)=>{let t="",n=e;for(;n--;)t+=__e[Math.random()*64|0];return t};var A_e={nanoid:k_e};let{SourceMapConsumer:_9,SourceMapGenerator:k9}=ms,{existsSync:I_e,readFileSync:T_e}=ms,{dirname:FE,join:R_e}=ms;function O_e(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let F_=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,a=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=FE(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new _9(this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(t)||s.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return O_e(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),a=t.indexOf("*/",r);r>-1&&a>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,a)))}loadFile(t){if(this.root=FE(t),I_e(t))return this.mapFile=t,T_e(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let a=this.loadFile(r);if(!a)throw new Error("Unable to load previous source map: "+r.toString());return a}}else{if(n instanceof _9)return k9.fromSourceMap(n).toString();if(n instanceof k9)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=R_e(FE(t),r)),this.loadFile(r)}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var cq=F_;F_.default=F_;let{SourceMapConsumer:N_e,SourceMapGenerator:M_e}=ms,{fileURLToPath:A9,pathToFileURL:v0}=ms,{isAbsolute:$_,resolve:B_}=ms,{nanoid:P_e}=A_e,$E=ms,I9=QI,D_e=cq,BE=Symbol("fromOffsetCache"),L_e=!!(N_e&&M_e),T9=!!(B_&&$_),tv=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!T9||/^\w+:\/\//.test(n.from)||$_(n.from)?this.file=n.from:this.file=B_(n.from)),T9&&L_e){let r=new D_e(this.css,n);if(r.text){this.map=r;let a=r.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+P_e(6)+">"),this.map&&(this.map.file=this.from)}error(t,n,r,a={}){let s,i,c;if(n&&typeof n=="object"){let f=n,h=r;if(typeof f.offset=="number"){let m=this.fromOffset(f.offset);n=m.line,r=m.col}else n=f.line,r=f.column;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);i=m.line,c=m.col}else i=h.line,c=h.column}else if(!r){let f=this.fromOffset(n);n=f.line,r=f.col}let u=this.origin(n,r,i,c);return u?s=new I9(t,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,a.plugin):s=new I9(t,i===void 0?n:{column:r,line:n},i===void 0?r:{column:c,line:i},this.css,this.file,a.plugin),s.input={column:r,endColumn:c,endLine:i,line:n,source:this.css},this.file&&(v0&&(s.input.url=v0(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let n,r;if(this[BE])r=this[BE];else{let s=this.css.split(`
|
|
284
|
+
`);r=new Array(s.length);let i=0;for(let c=0,u=s.length;c<u;c++)r[c]=i,i+=s[c].length+1;this[BE]=r}n=r[r.length-1];let a=0;if(t>=n)a=r.length-1;else{let s=r.length-2,i;for(;a<s;)if(i=a+(s-a>>1),t<r[i])s=i-1;else if(t>=r[i+1])a=i+1;else{a=i;break}}return{col:t-r[a]+1,line:a+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:B_(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,r,a){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:n,line:t});if(!i.source)return!1;let c;typeof r=="number"&&(c=s.originalPositionFor({column:a,line:r}));let u;$_(i.source)?u=v0(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||v0(this.map.mapFile));let f={column:i.column,endColumn:c&&c.column,endLine:c&&c.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(A9)f.file=A9(u);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(i.source);return h&&(f.source=h),f}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var zy=tv;tv.default=tv;$E&&$E.registerInput&&$E.registerInput(tv);let{SourceMapConsumer:uq,SourceMapGenerator:a1}=ms,{dirname:s1,relative:dq,resolve:fq,sep:hq}=ms,{pathToFileURL:R9}=ms,U_e=zy,z_e=!!(uq&&a1),j_e=!!(s1&&fq&&dq&&hq),F_e=class{constructor(t,n,r,a){this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
|
|
285
|
+
`;this.css.includes(`\r
|
|
286
|
+
`)&&(n=`\r
|
|
287
|
+
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||s1(t.file),a;this.mapOpts.sourcesContent===!1?(a=new uq(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),j_e&&z_e&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=a1.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new a1({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a1({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(a.generated.line=t,a.generated.column=n-1,u.source&&u.source.start?(a.source=this.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),s=c.match(/\n/g),s?(t+=s.length,i=c.lastIndexOf(`
|
|
288
|
+
`),n=c.length-i):n+=c.length,u&&f!=="start"){let h=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(a.source=this.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=t,a.generated.column=n-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?s1(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=s1(fq(r,this.mapOpts.annotation)));let a=dq(r,t);return this.memoizedPaths.set(t,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new U_e(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let a=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(a,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(R9){let r=R9(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;hq==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var pq=F_e;let $_e=Ly,H_=class extends $_e{constructor(t){super(t),this.type="comment"}};var jy=H_;H_.default=H_;let{isClean:mq,my:gq}=am,vq=Uy,yq=jy,B_e=Ly,bq,JI,eT,Sq;function wq(e){return e.map(t=>(t.nodes&&(t.nodes=wq(t.nodes)),delete t.source,t))}function xq(e){if(e[mq]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)xq(t)}let Yo=class Cq extends B_e{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let a of r)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,a;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],a=t(this.proxyOf.nodes[r],r),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(a=>typeof a=="function"?(s,i)=>a(s.toProxy(),i):a)):n==="every"||n==="some"?r=>t[n]((a,...s)=>r(a.toProxy(),...s)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),a=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let i of a)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)s=this.indexes[i],r<s&&(this.indexes[i]=s+a.length);return this.markDirty(),this}insertBefore(t,n){let r=this.index(t),a=r===0?"prepend":!1,s=this.normalize(n,this.proxyOf.nodes[r],a).reverse();r=this.index(t);for(let c of s)this.proxyOf.nodes.splice(r,0,c);let i;for(let c in this.indexes)i=this.indexes[c],r<=i&&(this.indexes[c]=i+s.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=wq(bq(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let a of t)a.parent&&a.parent.removeChild(a,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new vq(t)]}else if(t.selector)t=[new JI(t)];else if(t.name)t=[new eT(t)];else if(t.text)t=[new yq(t)];else throw new Error("Unknown node type in node creation");return t.map(a=>(a[gq]||Cq.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[mq]&&xq(a),typeof a.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(a.raws.before=n.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let a of r)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(a=>{n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let a;try{a=t(n,r)}catch(s){throw n.addToError(s)}return a!==!1&&n.walk&&(a=n.walk(t)),a})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,a)}):this.walk((r,a)=>{if(r.type==="atrule"&&r.name===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="atrule")return n(r,a)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,a)}):this.walk((r,a)=>{if(r.type==="decl"&&r.prop===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="decl")return n(r,a)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,a)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,a)}):this.walk((r,a)=>{if(r.type==="rule"&&r.selector===t)return n(r,a)}):(n=t,this.walk((r,a)=>{if(r.type==="rule")return n(r,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Yo.registerParse=e=>{bq=e};Yo.registerRule=e=>{JI=e};Yo.registerAtRule=e=>{eT=e};Yo.registerRoot=e=>{Sq=e};var Fc=Yo;Yo.default=Yo;Yo.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,eT.prototype):e.type==="rule"?Object.setPrototypeOf(e,JI.prototype):e.type==="decl"?Object.setPrototypeOf(e,vq.prototype):e.type==="comment"?Object.setPrototypeOf(e,yq.prototype):e.type==="root"&&Object.setPrototypeOf(e,Sq.prototype),e[gq]=!0,e.nodes&&e.nodes.forEach(t=>{Yo.rebuild(t)})};let H_e=Fc,Eq,_q,Ip=class extends H_e{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Eq(new _q,this,t).stringify()}};Ip.registerLazyResult=e=>{Eq=e};Ip.registerProcessor=e=>{_q=e};var tT=Ip;Ip.default=Ip;let q_=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var kq=q_;q_.default=q_;let q_e=kq,V_=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new q_e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var nT=V_;V_.default=V_;const HE=39,O9=34,y0=92,N9=47,b0=10,Ch=32,S0=12,w0=9,x0=13,V_e=91,W_e=93,G_e=40,K_e=41,Y_e=123,Z_e=125,X_e=59,Q_e=42,J_e=58,eke=64,C0=/[\t\n\f\r "#'()/;[\\\]{}]/g,E0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tke=/.[\r\n"'(/\\]/,M9=/[\da-f]/i;var nke=function(t,n={}){let r=t.css.valueOf(),a=n.ignoreErrors,s,i,c,u,f,h,m,g,y,w,b=r.length,x=0,E=[],k=[];function A(){return x}function R(M){throw t.error("Unclosed "+M,x)}function P(){return k.length===0&&x>=b}function O(M){if(k.length)return k.pop();if(x>=b)return;let z=M?M.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case b0:case Ch:case w0:case x0:case S0:{i=x;do i+=1,s=r.charCodeAt(i);while(s===Ch||s===b0||s===w0||s===x0||s===S0);w=["space",r.slice(x,i)],x=i-1;break}case V_e:case W_e:case Y_e:case Z_e:case J_e:case X_e:case K_e:{let q=String.fromCharCode(s);w=[q,q,x];break}case G_e:{if(g=E.length?E.pop()[1]:"",y=r.charCodeAt(x+1),g==="url"&&y!==HE&&y!==O9&&y!==Ch&&y!==b0&&y!==w0&&y!==S0&&y!==x0){i=x;do{if(h=!1,i=r.indexOf(")",i+1),i===-1)if(a||z){i=x;break}else R("bracket");for(m=i;r.charCodeAt(m-1)===y0;)m-=1,h=!h}while(h);w=["brackets",r.slice(x,i+1),x,i],x=i}else i=r.indexOf(")",x+1),u=r.slice(x,i+1),i===-1||tke.test(u)?w=["(","(",x]:(w=["brackets",u,x,i],x=i);break}case HE:case O9:{c=s===HE?"'":'"',i=x;do{if(h=!1,i=r.indexOf(c,i+1),i===-1)if(a||z){i=x+1;break}else R("string");for(m=i;r.charCodeAt(m-1)===y0;)m-=1,h=!h}while(h);w=["string",r.slice(x,i+1),x,i],x=i;break}case eke:{C0.lastIndex=x+1,C0.test(r),C0.lastIndex===0?i=r.length-1:i=C0.lastIndex-2,w=["at-word",r.slice(x,i+1),x,i],x=i;break}case y0:{for(i=x,f=!0;r.charCodeAt(i+1)===y0;)i+=1,f=!f;if(s=r.charCodeAt(i+1),f&&s!==N9&&s!==Ch&&s!==b0&&s!==w0&&s!==x0&&s!==S0&&(i+=1,M9.test(r.charAt(i)))){for(;M9.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===Ch&&(i+=1)}w=["word",r.slice(x,i+1),x,i],x=i;break}default:{s===N9&&r.charCodeAt(x+1)===Q_e?(i=r.indexOf("*/",x+2)+1,i===0&&(a||z?i=r.length:R("comment")),w=["comment",r.slice(x,i+1),x,i],x=i):(E0.lastIndex=x+1,E0.test(r),E0.lastIndex===0?i=r.length-1:i=E0.lastIndex-2,w=["word",r.slice(x,i+1),x,i],E.push(w),x=i);break}}return x++,w}function T(M){k.push(M)}return{back:T,endOfFile:P,nextToken:O,position:A}};let Aq=Fc,nv=class extends Aq{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var rT=nv;nv.default=nv;Aq.registerAtRule(nv);let Iq=Fc,Tq,Rq,Od=class extends Iq{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let a=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of a)s.raws.before=n.raws.before}return a}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new Tq(new Rq,this,t).stringify()}};Od.registerLazyResult=e=>{Tq=e};Od.registerProcessor=e=>{Rq=e};var sm=Od;Od.default=Od;Iq.registerRoot(Od);let Tp={comma(e){return Tp.split(e,[","],!0)},space(e){let t=[" ",`
|
|
289
|
+
`," "];return Tp.split(e,t)},split(e,t,n){let r=[],a="",s=!1,i=0,c=!1,u="",f=!1;for(let h of e)f?f=!1:h==="\\"?f=!0:c?h===u&&(c=!1):h==='"'||h==="'"?(c=!0,u=h):h==="("?i+=1:h===")"?i>0&&(i-=1):i===0&&t.includes(h)&&(s=!0),s?(a!==""&&r.push(a.trim()),a="",s=!1):a+=h;return(n||a!=="")&&r.push(a.trim()),r}};var Oq=Tp;Tp.default=Tp;let Nq=Fc,rke=Oq,rv=class extends Nq{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rke.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var aT=rv;rv.default=rv;Nq.registerRule(rv);let ake=Uy,ske=nke,oke=jy,ike=rT,lke=sm,P9=aT;const D9={empty:!0,space:!0};function cke(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let uke=class{constructor(t){this.input=t,this.root=new lke,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new ike;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,a,s,i=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){c=!0;break}else if(r==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(n.source.end=this.getPosition(a[3]||a[2]),n.source.end.offset++)}this.end(t);break}else u.push(t);else u.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(n.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(n,"params",u),i&&(t=u[u.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),c&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,a;for(let s=n-1;s>=0&&(a=t[s],!(a[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(t){let n=0,r,a,s;for(let[i,c]of t.entries()){if(r=c,a=r[0],a==="("&&(n+=1),a===")"&&(n-=1),n===0&&a===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return i}s=r}return!1}comment(t){let n=new oke;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let a=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=a[2],n.raws.left=a[1],n.raws.right=a[3]}}createTokenizer(){this.tokenizer=ske(this.input)}decl(t,n){let r=new ake;this.init(r,t[0][2]);let a=t[t.length-1];for(a[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(a[3]||a[2]||cke(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let s;for(;t.length;)if(s=t.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],c;for(;t.length&&(c=t[0][0],!(c!=="space"&&c!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(s=t[f],s[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(t,f);h=this.spacesFromEnd(t)+h,h!==" !important"&&(r.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=t.slice(0),m="";for(let g=f;g>0;g--){let y=h[g][0];if(m.trim().indexOf("!")===0&&y!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=m,t=h)}if(s[0]!=="space"&&s[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=i.map(f=>f[1]).join(""),i=[]),this.raw(r,"value",i.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new P9;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,a=!1,s=null,i=[],c=t[1].startsWith("--"),u=[],f=t;for(;f;){if(r=f[0],u.push(f),r==="("||r==="[")s||(s=f),i.push(r==="("?")":"]");else if(c&&a&&r==="{")s||(s=f),i.push("}");else if(i.length===0)if(r===";")if(a){this.decl(u,c);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),n=!0;break}else r===":"&&(a=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),i.length>0&&this.unclosedBracket(s),n&&a){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,a){let s,i,c=r.length,u="",f=!0,h,m;for(let g=0;g<c;g+=1)s=r[g],i=s[0],i==="space"&&g===c-1&&!a?f=!1:i==="comment"?(m=r[g-1]?r[g-1][0]:"empty",h=r[g+1]?r[g+1][0]:"empty",!D9[m]&&!D9[h]?u.slice(-1)===","?f=!1:u+=s[1]:f=!1):u+=s[1];if(!f){let g=r.reduce((y,w)=>y+w[1],"");t.raws[n]={raw:g,value:u}}t[n]=u}rule(t){t.pop();let n=new P9;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let a=n;a<t.length;a++)r+=t[a][1];return t.splice(n,t.length-n),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var dke=uke;let fke=Fc,hke=dke,pke=zy;function av(e,t){let n=new pke(e,t),r=new hke(n);try{r.parse()}catch(a){throw a}return r.root}var sT=av;av.default=av;fke.registerParse(av);let{isClean:Ms,my:mke}=am,gke=pq,vke=Dy,yke=Fc,bke=tT,L9=nT,Ske=sT,wke=sm;const xke={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cke={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Eke={Once:!0,postcssPlugin:!0,prepare:!0},Nd=0;function Eh(e){return typeof e=="object"&&typeof e.then=="function"}function Mq(e){let t=!1,n=xke[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,Nd,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,Nd,n+"Exit"]:[n,n+"Exit"]}function U9(e){let t;return e.type==="document"?t=["Document",Nd,"DocumentExit"]:e.type==="root"?t=["Root",Nd,"RootExit"]:t=Mq(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function W_(e){return e[Ms]=!1,e.nodes&&e.nodes.forEach(t=>W_(t)),e}let G_={},Md=class Pq{constructor(t,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=W_(n);else if(n instanceof Pq||n instanceof L9)a=W_(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let s=Ske;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{a=s(n,r)}catch(i){this.processed=!0,this.error=i}a&&!a[mke]&&yke.rebuild(a)}this.result=new L9(t,a,r),this.helpers={...G_,postcss:G_,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(a){console&&console.error&&console.error(a)}return t}prepareVisitors(){this.listeners={};let t=(n,r,a)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,a])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!Cke[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Eke[r])if(typeof n[r]=="object")for(let a in n[r])a==="*"?t(n,r,n[r][a]):t(n,r+"-"+a.toLowerCase(),n[r][a]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(Eh(r))try{await r}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ms];){t[Ms]=!0;let n=[U9(t)];for(;n.length>0;){let r=this.visitTick(n);if(Eh(r))try{await r}catch(a){let s=n[n.length-1].node;throw this.handleError(a,s)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let a=t.nodes.map(s=>r(s,this.helpers));await Promise.all(a)}else await r(t,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return Eh(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=vke;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let a=new gke(n,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(Eh(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ms];)t[Ms]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,a]of t){this.result.lastPlugin=r;let s;try{s=a(n,this.helpers)}catch(i){throw this.handleError(i,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(Eh(s))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:a}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(a.length>0&&n.visitorIndex<a.length){let[i,c]=a[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===a.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=i;try{return c(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(n.iterator!==0){let i=n.iterator,c;for(;c=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!c[Ms]){c[Ms]=!0,t.push(U9(c));return}n.iterator=0,delete r.indexes[i]}let s=n.events;for(;n.eventIndex<s.length;){let i=s[n.eventIndex];if(n.eventIndex+=1,i===Nd){r.nodes&&r.nodes.length&&(r[Ms]=!0,n.iterator=r.getIterator());return}else if(this.listeners[i]){n.visitors=this.listeners[i];return}}t.pop()}walkSync(t){t[Ms]=!0;let n=Mq(t);for(let r of n)if(r===Nd)t.nodes&&t.each(a=>{a[Ms]||this.walkSync(a)});else{let a=this.listeners[r];if(a&&this.visitSync(a,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Md.registerPostcss=e=>{G_=e};var Dq=Md;Md.default=Md;wke.registerLazyResult(Md);bke.registerLazyResult(Md);let _ke=pq,kke=Dy,Ake=sT;const Ike=nT;let K_=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let a,s=kke;this.result=new Ike(this._processor,a,this._opts),this.result.css=n;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let c=new _ke(s,a,this._opts,n);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=Ake;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var Tke=K_;K_.default=K_;let Rke=Tke,Oke=Dq,Nke=tT,Mke=sm,Rp=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new Rke(this,t,n):new Oke(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var Pke=Rp;Rp.default=Rp;Mke.registerProcessor(Rp);Nke.registerProcessor(Rp);let Dke=Uy,Lke=cq,Uke=jy,zke=rT,jke=zy,Fke=sm,$ke=aT;function Op(e,t){if(Array.isArray(e))return e.map(a=>Op(a));let{inputs:n,...r}=e;if(n){t=[];for(let a of n){let s={...a,__proto__:jke.prototype};s.map&&(s.map={...s.map,__proto__:Lke.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(a=>Op(a,t))),r.source){let{inputId:a,...s}=r.source;r.source=s,a!=null&&(r.source.input=t[a])}if(r.type==="root")return new Fke(r);if(r.type==="decl")return new Dke(r);if(r.type==="rule")return new $ke(r);if(r.type==="comment")return new Uke(r);if(r.type==="atrule")return new zke(r);throw new Error("Unknown node type: "+e.type)}var Bke=Op;Op.default=Op;let Hke=QI,Lq=Uy,qke=Dq,Vke=Fc,oT=Pke,Wke=Dy,Gke=Bke,Uq=tT,Kke=kq,zq=jy,jq=rT,Yke=nT,Zke=zy,Xke=sT,Qke=Oq,Fq=aT,$q=sm,Jke=Ly;function Bt(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new oT(e)}Bt.plugin=function(t,n){let r=!1;function a(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
290
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),W1.LANG&&W1.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
291
|
+
https://www.w3ctech.com/topic/2226`));let c=n(...i);return c.postcssPlugin=t,c.postcssVersion=new oT().version,c}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,c,u){return Bt([a(u)]).process(i,c)},a};Bt.stringify=Wke;Bt.parse=Xke;Bt.fromJSON=Gke;Bt.list=Qke;Bt.comment=e=>new zq(e);Bt.atRule=e=>new jq(e);Bt.decl=e=>new Lq(e);Bt.rule=e=>new Fq(e);Bt.root=e=>new $q(e);Bt.document=e=>new Uq(e);Bt.CssSyntaxError=Hke;Bt.Declaration=Lq;Bt.Container=Vke;Bt.Processor=oT;Bt.Document=Uq;Bt.Comment=zq;Bt.Warning=Kke;Bt.AtRule=jq;Bt.Result=Yke;Bt.Input=Zke;Bt.Rule=Fq;Bt.Root=$q;Bt.Node=Jke;qke.registerPostcss(Bt);var eAe=Bt;Bt.default=Bt;const mn=h_e(eAe);mn.stringify;mn.fromJSON;mn.plugin;mn.parse;mn.list;mn.document;mn.comment;mn.atRule;mn.rule;mn.decl;mn.root;mn.CssSyntaxError;mn.Declaration;mn.Container;mn.Processor;mn.Document;mn.Comment;mn.Warning;mn.AtRule;mn.Result;mn.Input;mn.Rule;mn.Root;mn.Node;class iT{constructor(...t){Pa(this,"parentElement",null),Pa(this,"parentNode",null),Pa(this,"ownerDocument"),Pa(this,"firstChild",null),Pa(this,"lastChild",null),Pa(this,"previousSibling",null),Pa(this,"nextSibling",null),Pa(this,"ELEMENT_NODE",1),Pa(this,"TEXT_NODE",3),Pa(this,"nodeType"),Pa(this,"nodeName"),Pa(this,"RRNodeType")}get childNodes(){const t=[];let n=this.firstChild;for(;n;)t.push(n),n=n.nextSibling;return t}contains(t){if(t instanceof iT){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const z9={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},j9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_0={},tAe=()=>!!globalThis.Zone;function lT(e){if(_0[e])return _0[e];const t=globalThis[e],n=t.prototype,r=e in z9?z9[e]:void 0,a=!!(r&&r.every(c=>{var u,f;return!!((f=(u=Object.getOwnPropertyDescriptor(n,c))==null?void 0:u.get)!=null&&f.toString().includes("[native code]"))})),s=e in j9?j9[e]:void 0,i=!!(s&&s.every(c=>{var u;return typeof n[c]=="function"&&((u=n[c])==null?void 0:u.toString().includes("[native code]"))}));if(a&&i&&!tAe())return _0[e]=t.prototype,t.prototype;try{const c=document.createElement("iframe");document.body.appendChild(c);const u=c.contentWindow;if(!u)return t.prototype;const f=u[e].prototype;return document.body.removeChild(c),f?_0[e]=f:n}catch{return n}}const qE={};function ni(e,t,n){var r;const a=`${e}.${String(n)}`;if(qE[a])return qE[a].call(t);const s=lT(e),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(qE[a]=i,i.call(t)):t[n]}const VE={};function Bq(e,t,n){const r=`${e}.${String(n)}`;if(VE[r])return VE[r].bind(t);const s=lT(e)[n];return typeof s!="function"?t[n]:(VE[r]=s,s.bind(t))}function nAe(e){return ni("Node",e,"ownerDocument")}function rAe(e){return ni("Node",e,"childNodes")}function aAe(e){return ni("Node",e,"parentNode")}function sAe(e){return ni("Node",e,"parentElement")}function oAe(e){return ni("Node",e,"textContent")}function iAe(e,t){return Bq("Node",e,"contains")(t)}function lAe(e){return Bq("Node",e,"getRootNode")()}function cAe(e){return!e||!("host"in e)?null:ni("ShadowRoot",e,"host")}function uAe(e){return e.styleSheets}function dAe(e){return!e||!("shadowRoot"in e)?null:ni("Element",e,"shadowRoot")}function fAe(e,t){return ni("Element",e,"querySelector")(t)}function hAe(e,t){return ni("Element",e,"querySelectorAll")(t)}function Hq(){return lT("MutationObserver").constructor}function $c(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}const ct={ownerDocument:nAe,childNodes:rAe,parentNode:aAe,parentElement:sAe,textContent:oAe,contains:iAe,getRootNode:lAe,host:cAe,styleSheets:uAe,shadowRoot:dAe,querySelector:fAe,querySelectorAll:hAe,mutationObserver:Hq,patch:$c};function Mr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Zu=`Please stop import mirror directly. Instead of that,\r
|
|
292
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
293
|
+
or you can use record.mirror to access the mirror instance during recording.`;let F9={map:{},getId(){return console.error(Zu),-1},getNode(){return console.error(Zu),null},removeNodeFromMap(){console.error(Zu)},has(){return console.error(Zu),!1},reset(){console.error(Zu)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(F9=new Proxy(F9,{get(e,t,n){return t==="map"&&console.error(Zu),Reflect.get(e,t,n)}}));function Np(e,t,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const c=t-(i-a),u=this;c<=0||c>t?(r&&(clearTimeout(r),r=null),a=i,e.apply(u,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,e.apply(u,s)},c))}}function Fy(e,t,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Fy(e,t,s||{},!0)}let sv=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(sv=()=>new Date().getTime());function qq(e){var t,n,r,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:s.documentElement.scrollLeft||s?.body&&((t=ct.parentElement(s.body))==null?void 0:t.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=ct.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function Vq(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Wq(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Gq(e){return e?e.nodeType===e.ELEMENT_NODE?e:ct.parentElement(e):null}function Pr(e,t,n,r){if(!e)return!1;const a=Gq(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||r&&a.closest("."+t)!==null)return!0}else if(Z1(a,t,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function pAe(e,t){return t.getId(e)!==-1}function WE(e,t,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:t.getId(e)===Cp}function Kq(e,t){if(Zh(e))return!1;const n=t.getId(e);if(!t.has(n))return!0;const r=ct.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:r?Kq(r,t):!0}function Y_(e){return!!e.changedTouches}function mAe(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Yq(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Zq(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Z_(e){return e?e instanceof iT&&"shadowRoot"in e?!!e.shadowRoot:!!ct.shadowRoot(e):!1}class gAe{constructor(){Ee(this,"id",1),Ee(this,"styleIDMap",new WeakMap),Ee(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Xq(e){var t;let n=null;return"getRootNode"in e&&((t=ct.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ct.host(ct.getRootNode(e))&&(n=ct.host(ct.getRootNode(e))),n}function vAe(e){let t=e,n;for(;n=Xq(t);)t=n;return t}function yAe(e){const t=ct.ownerDocument(e);if(!t)return!1;const n=vAe(e);return ct.contains(t,n)}function Qq(e){const t=ct.ownerDocument(e);return t?ct.contains(t,e)||yAe(e):!1}var kt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(kt||{}),vt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(vt||{}),Kr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Kr||{}),To=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(To||{}),Pd=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Pd||{}),Xu=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Xu||{}),Jq=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Jq||{});function $9(e){return"__ln"in e}class bAe{constructor(){Ee(this,"length",0),Ee(this,"head",null),Ee(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&$9(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&$9(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const B9=(e,t)=>`${e}@${t}`;class SAe{constructor(){Ee(this,"frozen",!1),Ee(this,"locked",!1),Ee(this,"texts",[]),Ee(this,"attributes",[]),Ee(this,"attributeMap",new WeakMap),Ee(this,"removes",[]),Ee(this,"mapRemoves",[]),Ee(this,"movedMap",{}),Ee(this,"addedSet",new Set),Ee(this,"movedSet",new Set),Ee(this,"droppedSet",new Set),Ee(this,"removesSubTreeCache",new Set),Ee(this,"mutationCb"),Ee(this,"blockClass"),Ee(this,"blockSelector"),Ee(this,"maskTextClass"),Ee(this,"maskTextSelector"),Ee(this,"inlineStylesheet"),Ee(this,"maskInputOptions"),Ee(this,"maskTextFn"),Ee(this,"maskInputFn"),Ee(this,"keepIframeSrcFn"),Ee(this,"recordCanvas"),Ee(this,"inlineImages"),Ee(this,"slimDOMOptions"),Ee(this,"dataURLOptions"),Ee(this,"doc"),Ee(this,"mirror"),Ee(this,"iframeManager"),Ee(this,"stylesheetManager"),Ee(this,"shadowDomManager"),Ee(this,"canvasManager"),Ee(this,"processedNodeManager"),Ee(this,"unattachedDoc"),Ee(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),Ee(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new bAe,a=u=>{let f=u,h=Cp;for(;h===Cp;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=u=>{const f=ct.parentNode(u);if(!f||!Qq(u))return;let h=!1;if(u.nodeType===Node.TEXT_NODE){const w=f.tagName;if(w==="TEXTAREA")return;w==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=Zh(f)?this.mirror.getId(Xq(u)):this.mirror.getId(f),g=a(u);if(m===-1||g===-1)return r.addNode(u);const y=od(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:w=>{Yq(w,this.mirror)&&this.iframeManager.addIframe(w),Zq(w,this.mirror)&&this.stylesheetManager.trackLinkElement(w),Z_(u)&&this.shadowDomManager.addShadowRoot(ct.shadowRoot(u),this.doc)},onIframeLoad:(w,b)=>{this.iframeManager.attachIframe(w,b),this.shadowDomManager.observeAttachShadow(w)},onStylesheetLoad:(w,b)=>{this.stylesheetManager.attachLinkElement(w,b)},cssCaptured:h});y&&(t.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)H9(this.removesSubTreeCache,u,this.mirror)&&!this.movedSet.has(ct.parentNode(u))||s(u);for(const u of this.addedSet)!q9(this.droppedSet,u)&&!H9(this.removesSubTreeCache,u,this.mirror)||q9(this.movedSet,u)?s(u):this.droppedSet.add(u);let i=null;for(;r.length;){let u=null;if(i){const f=this.mirror.getId(ct.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(u=i)}if(!u){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(ct.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){u=h;break}else{const y=h.value,w=ct.parentNode(y);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const b=ct.host(w);if(this.mirror.getId(b)!==-1){u=h;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}i=u.previous,r.removeNode(u.value),s(u.value)}const c={texts:this.texts.map(u=>{const f=u.node,h=ct.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:u.value}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:f}=u;if(typeof f.style=="string"){const h=JSON.stringify(u.styleDiff),m=JSON.stringify(u._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:f}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(c))}),Ee(this,"genTextAreaValueMutation",t=>{let n=this.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(t,n));const r=Array.from(ct.childNodes(t),a=>ct.textContent(a)||"").join("");n.attributes.value=G1({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:K1(t),value:r,maskInputFn:this.maskInputFn})}),Ee(this,"processMutation",t=>{if(!WE(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const n=ct.textContent(t.target);!Pr(t.target,this.blockClass,this.blockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:xH(t.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,Gq(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,a=t.target.getAttribute(r);if(r==="value"){const i=K1(n);a=G1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Pr(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!wH(n.tagName,r))if(s.attributes[r]=SH(this.doc,Cc(n.tagName),Cc(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const u=n.style.getPropertyValue(c),f=n.style.getPropertyPriority(c);u!==i.style.getPropertyValue(c)||f!==i.style.getPropertyPriority(c)?f===""?s.styleDiff[c]=u:s.styleDiff[c]=[u,f]:s._unchangedStyles[c]=[u,f]}for(const c of Array.from(i.style))n.style.getPropertyValue(c)===""&&(s.styleDiff[c]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Pr(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=Zh(t.target)?this.mirror.getId(ct.host(t.target)):this.mirror.getId(t.target);Pr(t.target,this.blockClass,this.blockSelector,!1)||WE(n,this.mirror,this.slimDOMOptions)||!pAe(n,this.mirror)||(this.addedSet.has(n)?(X_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Kq(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[B9(r,a)]?X_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:Zh(t.target)&&Xh(t.target)?!0:void 0}),wAe(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),Ee(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(WE(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[B9(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Pr(t,this.blockClass,this.blockSelector,!1)||(ct.childNodes(t).forEach(r=>this.genAdds(r)),Z_(t)&&ct.childNodes(ct.shadowRoot(t)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function X_(e,t){e.delete(t),ct.childNodes(t).forEach(n=>X_(e,n))}function wAe(e,t){const n=[e];for(;n.length;){const r=n.pop();t.has(r)||(t.add(r),ct.childNodes(r).forEach(a=>n.push(a)))}}function H9(e,t,n){return e.size===0?!1:xAe(e,t)}function xAe(e,t,n){const r=ct.parentNode(t);return r?e.has(r):!1}function q9(e,t){return e.size===0?!1:eV(e,t)}function eV(e,t){const n=ct.parentNode(t);return n?e.has(n)?!0:eV(e,n):!1}let Qh;function CAe(e){Qh=e}function EAe(){Qh=void 0}const wt=e=>Qh?(...n)=>{try{return e(...n)}catch(r){if(Qh&&Qh(r)===!0)return;throw r}}:e,ec=[];function om(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function tV(e,t){const n=new SAe;ec.push(n),n.init(e);const r=new(Hq())(wt(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function _Ae({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const a=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],c;const u=Np(wt(m=>{const g=Date.now()-c;e(i.map(y=>(y.timeOffset-=g,y)),m),i=[],c=null}),s),f=wt(Np(wt(m=>{const g=om(m),{clientX:y,clientY:w}=Y_(m)?m.changedTouches[0]:m;c||(c=sv()),i.push({x:y,y:w,id:r.getId(g),timeOffset:sv()-c}),u(typeof DragEvent<"u"&&m instanceof DragEvent?vt.Drag:m instanceof MouseEvent?vt.MouseMove:vt.TouchMove)}),a,{trailing:!1})),h=[Mr("mousemove",f,n),Mr("touchmove",f,n),Mr("drag",f,n)];return wt(()=>{h.forEach(m=>m())})}function kAe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const f=h=>m=>{const g=om(m);if(Pr(g,r,a,!0))return;let y=null,w=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=To.Mouse;break;case"touch":y=To.Touch;break;case"pen":y=To.Pen;break}y===To.Touch?Kr[h]===Kr.MouseDown?w="TouchStart":Kr[h]===Kr.MouseUp&&(w="TouchEnd"):To.Pen}else Y_(m)&&(y=To.Touch);y!==null?(u=y,(w.startsWith("Touch")&&y===To.Touch||w.startsWith("Mouse")&&y===To.Mouse)&&(y=null)):Kr[h]===Kr.Click&&(y=u,u=null);const b=Y_(m)?m.changedTouches[0]:m;if(!b)return;const x=n.getId(g),{clientX:E,clientY:k}=b;wt(e)({type:Kr[w],id:x,x:E,y:k,...y!==null&&{pointerType:y}})};return Object.keys(Kr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=Cc(h);const g=f(h);if(window.PointerEvent)switch(Kr[h]){case Kr.MouseDown:case Kr.MouseUp:m=m.replace("mouse","pointer");break;case Kr.TouchStart:case Kr.TouchEnd:return}c.push(Mr(m,g,t))}),wt(()=>{c.forEach(h=>h())})}function nV({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=wt(Np(wt(c=>{const u=om(c);if(!u||Pr(u,r,a,!0))return;const f=n.getId(u);if(u===t&&t.defaultView){const h=qq(t.defaultView);e({id:f,x:h.left,y:h.top})}else e({id:f,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return Mr("scroll",i,t)}function AAe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const a=wt(Np(wt(()=>{const s=Vq(),i=Wq();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Mr("resize",a,t)}const IAe=["INPUT","TEXTAREA","SELECT"],V9=new WeakMap;function TAe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:c,maskInputFn:u,sampling:f,userTriggeredOnInput:h}){function m(k){let A=om(k);const R=k.isTrusted,P=A&&A.tagName;if(A&&P==="OPTION"&&(A=ct.parentElement(A)),!A||!P||IAe.indexOf(P)<0||Pr(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,T=!1;const M=K1(A)||"";M==="radio"||M==="checkbox"?T=A.checked:(c[P.toLowerCase()]||c[M])&&(O=G1({element:A,maskInputOptions:c,tagName:P,type:M,value:O,maskInputFn:u})),g(A,h?{text:O,isChecked:T,userTriggered:R}:{text:O,isChecked:T});const z=A.name;M==="radio"&&z&&T&&t.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach(q=>{if(q!==A){const U=q.value;g(q,h?{text:U,isChecked:!T,userTriggered:!1}:{text:U,isChecked:!T})}})}function g(k,A){const R=V9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){V9.set(k,A);const P=n.getId(k);wt(e)({...A,id:P})}}const w=(f.input==="last"?["change"]:["input","change"]).map(k=>Mr(k,wt(m),t)),b=t.defaultView;if(!b)return()=>{w.forEach(k=>k())};const x=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&w.push(...E.map(k=>Fy(k[0],k[1],{set(){wt(m)({target:this,isTrusted:!1})}},!1,b))),wt(()=>{w.forEach(k=>k())})}function ov(e){const t=[];function n(r,a){if(k0("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||k0("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||k0("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||k0("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(e,t)}function qi(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function RAe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:wt((h,m,g)=>{const[y,w]=g,{id:b,styleId:x}=qi(m,t,n.styleMirror);return(b&&b!==-1||x&&x!==-1)&&e({id:b,styleId:x,adds:[{rule:y,index:w}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:wt((h,m,g)=>{const[y]=g,{id:w,styleId:b}=qi(m,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:wt((h,m,g)=>{const[y]=g,{id:w,styleId:b}=qi(m,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,replace:y}),h.apply(m,g)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:wt((h,m,g)=>{const[y]=g,{id:w,styleId:b}=qi(m,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,replaceSync:y}),h.apply(m,g)})}));const u={};A0("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(A0("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),A0("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),A0("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(u).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:wt((g,y,w)=>{const[b,x]=w,{id:E,styleId:k}=qi(y.parentStyleSheet,t,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&e({id:E,styleId:k,adds:[{rule:b,index:[...ov(y),x||0]}]}),g.apply(y,w)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:wt((g,y,w)=>{const[b]=w,{id:x,styleId:E}=qi(y.parentStyleSheet,t,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&e({id:x,styleId:E,removes:[{index:[...ov(y),b]}]}),g.apply(y,w)})})}),wt(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function rV({mirror:e,stylesheetManager:t},n){var r,a,s;let i=null;n.nodeName==="#document"?i=e.getId(n):i=e.getId(ct.host(n));const c=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,u=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!c||!u?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var f;return(f=u.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=u.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{t.adoptStyleSheets(f,i)}catch{}return m}}),wt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function OAe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:wt((c,u,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(u,[m,g,y]);const{id:w,styleId:b}=qi((h=u.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,set:{property:m,value:g,priority:y},index:ov(u.parentRule)}),c.apply(u,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:wt((c,u,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(u,[m]);const{id:g,styleId:y}=qi((h=u.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,remove:{property:m},index:ov(u.parentRule)}),c.apply(u,f)})}),wt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function NAe({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=wt(u=>Np(wt(f=>{const h=om(f);if(!h||Pr(h,t,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:w,loop:b}=h;e({type:u,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:w,loop:b})}),a.media||500)),c=[Mr("play",i(Xu.Play),s),Mr("pause",i(Xu.Pause),s),Mr("seeked",i(Xu.Seeked),s),Mr("volumechange",i(Xu.VolumeChange),s),Mr("ratechange",i(Xu.RateChange),s)];return wt(()=>{c.forEach(u=>u())})}function MAe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(u,f,h){const m=new s(u,f,h);return a.set(m,{family:u,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=$c(t.fonts,"add",function(c){return function(u){return setTimeout(wt(()=>{const f=a.get(u);f&&(e(f),a.delete(u))}),0),c.apply(this,[u])}});return r.push(()=>{n.FontFace=s}),r.push(i),wt(()=>{r.forEach(c=>c())})}function PAe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=e;let i=!0;const c=wt(()=>{const u=t.getSelection();if(!u||i&&u?.isCollapsed)return;i=u.isCollapsed||!1;const f=[],h=u.rangeCount||0;for(let m=0;m<h;m++){const g=u.getRangeAt(m),{startContainer:y,startOffset:w,endContainer:b,endOffset:x}=g;Pr(y,r,a,!0)||Pr(b,r,a,!0)||f.push({start:n.getId(y),startOffset:w,end:n.getId(b),endOffset:x})}s({ranges:f})});return c(),Mr("selectionchange",c)}function DAe({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:$c(n.customElements,"define",function(a){return function(s,i,c){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,c])}})}function LAe(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:c,mediaInteractionCb:u,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:w}=e;e.mutationCb=(...b)=>{t.mutation&&t.mutation(...b),n(...b)},e.mousemoveCb=(...b)=>{t.mousemove&&t.mousemove(...b),r(...b)},e.mouseInteractionCb=(...b)=>{t.mouseInteraction&&t.mouseInteraction(...b),a(...b)},e.scrollCb=(...b)=>{t.scroll&&t.scroll(...b),s(...b)},e.viewportResizeCb=(...b)=>{t.viewportResize&&t.viewportResize(...b),i(...b)},e.inputCb=(...b)=>{t.input&&t.input(...b),c(...b)},e.mediaInteractionCb=(...b)=>{t.mediaInteaction&&t.mediaInteaction(...b),u(...b)},e.styleSheetRuleCb=(...b)=>{t.styleSheetRule&&t.styleSheetRule(...b),f(...b)},e.styleDeclarationCb=(...b)=>{t.styleDeclaration&&t.styleDeclaration(...b),h(...b)},e.canvasMutationCb=(...b)=>{t.canvasMutation&&t.canvasMutation(...b),m(...b)},e.fontCb=(...b)=>{t.font&&t.font(...b),g(...b)},e.selectionCb=(...b)=>{t.selection&&t.selection(...b),y(...b)},e.customElementCb=(...b)=>{t.customElement&&t.customElement(...b),w(...b)}}function UAe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};LAe(e,t);let r;e.recordDOM&&(r=tV(e,e.doc));const a=_Ae(e),s=kAe(e),i=nV(e),c=AAe(e,{win:n}),u=TAe(e),f=NAe(e);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};e.recordDOM&&(h=RAe(e,{win:n}),m=rV(e,e.doc),g=OAe(e,{win:n}),e.collectFonts&&(y=MAe(e)));const w=PAe(e),b=DAe(e),x=[];for(const E of e.plugins)x.push(E.observer(E.callback,n,E.options));return wt(()=>{ec.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),c(),u(),f(),h(),m(),g(),y(),w(),b(),x.forEach(E=>E())})}function k0(e){return typeof window[e]<"u"}function A0(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class W9{constructor(t){Ee(this,"iframeIdToRemoteIdMap",new WeakMap),Ee(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,n,r,a){const s=r||this.getIdToRemoteIdMap(t),i=a||this.getRemoteIdToIdMap(t);let c=s.get(n);return c||(c=this.generateIdFn(),s.set(n,c),i.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,a))}getRemoteId(t,n,r){const a=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(a=>this.getRemoteId(t,a,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class zAe{constructor(t){Ee(this,"iframes",new WeakMap),Ee(this,"crossOriginIframeMap",new WeakMap),Ee(this,"crossOriginIframeMirror",new W9(bH)),Ee(this,"crossOriginIframeStyleMirror"),Ee(this,"crossOriginIframeRootIdMap",new WeakMap),Ee(this,"mirror"),Ee(this,"mutationCb"),Ee(this,"wrappedEmit"),Ee(this,"loadListener"),Ee(this,"stylesheetManager"),Ee(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new W9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=t.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const a=this.crossOriginIframeMap.get(t.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case kt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:kt.IncrementalSnapshot,data:{source:vt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case kt.Meta:case kt.Load:case kt.DomContentLoaded:return!1;case kt.Plugin:return n;case kt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case kt.IncrementalSnapshot:switch(n.data.source){case vt.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case vt.Drag:case vt.TouchMove:case vt.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case vt.ViewportResize:return!1;case vt.MediaInteraction:case vt.MouseInteraction:case vt.Scroll:case vt.CanvasMutation:case vt.Input:return this.replaceIds(n.data,t,["id"]),n;case vt.StyleSheetRule:case vt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case vt.Font:return n;case vt.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case vt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Jq.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class jAe{constructor(t){Ee(this,"shadowDoms",new WeakSet),Ee(this,"mutationCb"),Ee(this,"scrollCb"),Ee(this,"bypassOptions"),Ee(this,"mirror"),Ee(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Xh(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=tV({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(nV({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(ct.host(t))),this.restoreHandlers.push(rV({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push($c(t.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),c=ct.shadowRoot(this);return c&&Qq(this)&&r.addShadowRoot(c,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",FAe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var I0=0;I0<id.length;I0++)FAe[id.charCodeAt(I0)]=I0;var $Ae=function(e){var t=new Uint8Array(e),n,r=t.length,a="";for(n=0;n<r;n+=3)a+=id[t[n]>>2],a+=id[(t[n]&3)<<4|t[n+1]>>4],a+=id[(t[n+1]&15)<<2|t[n+2]>>6],a+=id[t[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const G9=new Map;function BAe(e,t){let n=G9.get(e);return n||(n=new Map,G9.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const aV=(e,t,n)=>{if(!e||!(oV(e,t)||typeof e=="object"))return;const r=e.constructor.name,a=BAe(n,r);let s=a.indexOf(e);return s===-1&&(s=a.length,a.push(e)),s};function o1(e,t,n){if(e instanceof Array)return e.map(r=>o1(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,a=$Ae(e);return{rr_type:r,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[o1(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:a}=e;return{rr_type:r,src:a}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",a=e.toDataURL();return{rr_type:r,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[o1(e.data,t,n),e.width,e.height]};if(oV(e,t)||typeof e=="object"){const r=e.constructor.name,a=aV(e,t,n);return{rr_type:r,index:a}}}}return e}const sV=(e,t,n)=>e.map(r=>o1(r,t,n)),oV=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function HAe(e,t,n,r){const a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const c=$c(t.CanvasRenderingContext2D.prototype,i,function(u){return function(...f){return Pr(this.canvas,n,r,!0)||setTimeout(()=>{const h=sV(f,t,this);e(this.canvas,{type:Pd["2D"],property:i,args:h})},0),u.apply(this,f)}});a.push(c)}catch{const c=Fy(t.CanvasRenderingContext2D.prototype,i,{set(u){e(this.canvas,{type:Pd["2D"],property:i,args:[u],setter:!0})}});a.push(c)}return()=>{a.forEach(i=>i())}}function qAe(e){return e==="experimental-webgl"?"webgl":e}function K9(e,t,n,r){const a=[];try{const s=$c(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(c,...u){if(!Pr(this,t,n,!0)){const f=qAe(c);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(u[0]&&typeof u[0]=="object"){const h=u[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[c,...u])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function Y9(e,t,n,r,a,s){const i=[],c=Object.getOwnPropertyNames(e);for(const u of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{if(typeof e[u]!="function")continue;const f=$c(e,u,function(h){return function(...m){const g=h.apply(this,m);if(aV(g,s,this),"tagName"in this.canvas&&!Pr(this.canvas,r,a,!0)){const y=sV(m,s,this),w={type:t,property:u,args:y};n(this.canvas,w)}return g}});i.push(f)}catch{const f=Fy(e,u,{set(h){n(this.canvas,{type:t,property:u,args:[h],setter:!0})}});i.push(f)}return i}function VAe(e,t,n,r){const a=[];return a.push(...Y9(t.WebGLRenderingContext.prototype,Pd.WebGL,e,n,r,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...Y9(t.WebGL2RenderingContext.prototype,Pd.WebGL2,e,n,r,t)),()=>{a.forEach(s=>s())}}const iV="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",WAe=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Z9=typeof window<"u"&&window.Blob&&new Blob([WAe(iV)],{type:"text/javascript;charset=utf-8"});function GAe(e){let t;try{if(t=Z9&&(window.URL||window.webkitURL).createObjectURL(Z9),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+iV,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class KAe{constructor(t){Ee(this,"pendingCanvasMutations",new Map),Ee(this,"rafStamps",{latestId:0,invokeId:null}),Ee(this,"mirror"),Ee(this,"mutationCb"),Ee(this,"resetObservers"),Ee(this,"frozen",!1),Ee(this,"locked",!1),Ee(this,"processMutation",(u,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(u)||this.pendingCanvasMutations.set(u,[]),this.pendingCanvasMutations.get(u).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:c}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:c})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,n,r,a,s){const i=K9(n,r,a,!0),c=new Map,u=new GAe;u.onmessage=w=>{const{id:b}=w.data;if(c.set(b,!1),!("base64"in w.data))return;const{base64:x,type:E,width:k,height:A}=w.data;this.mutationCb({id:b,type:Pd["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/t;let h=0,m;const g=()=>{const w=[];return n.document.querySelectorAll("canvas").forEach(b=>{Pr(b,r,a,!0)||w.push(b)}),w},y=w=>{if(h&&w-h<f){m=requestAnimationFrame(y);return}h=w,g().forEach(async b=>{var x;const E=this.mirror.getId(b);if(c.get(E)||b.width===0||b.height===0)return;if(c.set(E,!0),["webgl","webgl2"].includes(b.__context)){const A=b.getContext(b.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(b);u.postMessage({id:E,bitmap:k,width:b.width,height:b.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=K9(t,n,r,!1),s=HAe(this.processMutation.bind(this),t,n,r),i=VAe(this.processMutation.bind(this),t,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const a=r.map(i=>{const{type:c,...u}=i;return u}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(t)}}class YAe{constructor(t){Ee(this,"trackedLinkElements",new WeakSet),Ee(this,"mutationCb"),Ee(this,"adoptedStyleSheetCb"),Ee(this,"styleMirror",new gAe),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(c,u)=>({rule:gH(c,s.href),index:u}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class ZAe{constructor(){Ee(this,"nodeMap",new WeakMap),Ee(this,"active",!1)}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(a=>a!==n)}add(t,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let xn,i1,GE,iv=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((JD=e.contentWindow)==null?void 0:JD.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ns=QCe();function im(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:c=null,maskTextClass:u="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:w,maskTextFn:b,hooks:x,packFn:E,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:P=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:z=!1,collectFonts:q=!1,inlineImages:U=!1,plugins:L,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:G=new Set([]),errorHandler:ie}=e;CAe(ie);const $=T?window.parent===window:!0;let X=!1;if(!$)try{window.parent.document&&(X=!1)}catch{X=!0}if($&&!t)throw new Error("emit function is required");if(!$&&!X)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),ns.reset();const re=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},pe=CH(y);mAe();let _e,j=0;const Y=we=>{for(const nt of L||[])nt.eventProcessor&&(we=nt.eventProcessor(we));return E&&!X&&(we=E(we)),we};xn=(we,nt)=>{var Ue;const He=we;if(He.timestamp=sv(),(Ue=ec[0])!=null&&Ue.isFrozen()&&He.type!==kt.FullSnapshot&&!(He.type===kt.IncrementalSnapshot&&He.data.source===vt.Mutation)&&ec.forEach(Ht=>Ht.unfreeze()),$)t?.(Y(He),nt);else if(X){const Ht={type:"rrweb",event:Y(He),origin:window.location.origin,isCheckout:nt};window.parent.postMessage(Ht,"*")}if(He.type===kt.FullSnapshot)_e=He,j=0;else if(He.type===kt.IncrementalSnapshot){if(He.data.source===vt.Mutation&&He.data.isAttachIframe)return;j++;const Ht=r&&j>=r,Ie=n&&He.timestamp-_e.timestamp>n;(Ht||Ie)&&i1(!0)}};const Z=we=>{xn({type:kt.IncrementalSnapshot,data:{source:vt.Mutation,...we}})},Q=we=>xn({type:kt.IncrementalSnapshot,data:{source:vt.Scroll,...we}}),se=we=>xn({type:kt.IncrementalSnapshot,data:{source:vt.CanvasMutation,...we}}),le=we=>xn({type:kt.IncrementalSnapshot,data:{source:vt.AdoptedStyleSheet,...we}}),me=new YAe({mutationCb:Z,adoptedStyleSheetCb:le}),te=new zAe({mirror:ns,mutationCb:Z,stylesheetManager:me,recordCrossOriginIframes:T,wrappedEmit:xn});for(const we of L||[])we.getMirror&&we.getMirror({nodeMirror:ns,crossOriginIframeMirror:te.crossOriginIframeMirror,crossOriginIframeStyleMirror:te.crossOriginIframeStyleMirror});const ve=new ZAe;GE=new KAe({recordCanvas:O,mutationCb:se,win:window,blockClass:a,blockSelector:s,mirror:ns,sampling:k.canvas,dataURLOptions:A});const Le=new jAe({mutationCb:Z,scrollCb:Q,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:u,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:re,dataURLOptions:A,maskTextFn:b,maskInputFn:w,recordCanvas:O,inlineImages:U,sampling:k,slimDOMOptions:pe,iframeManager:te,stylesheetManager:me,canvasManager:GE,keepIframeSrcFn:B,processedNodeManager:ve},mirror:ns});i1=(we=!1)=>{if(!P)return;xn({type:kt.Meta,data:{href:window.location.href,width:Wq(),height:Vq()}},we),me.reset(),Le.init(),ec.forEach(Ue=>Ue.lock());const nt=xEe(document,{mirror:ns,blockClass:a,blockSelector:s,maskTextClass:u,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:re,maskTextFn:b,maskInputFn:w,slimDOM:pe,dataURLOptions:A,recordCanvas:O,inlineImages:U,onSerialize:Ue=>{Yq(Ue,ns)&&te.addIframe(Ue),Zq(Ue,ns)&&me.trackLinkElement(Ue),Z_(Ue)&&Le.addShadowRoot(ct.shadowRoot(Ue),document)},onIframeLoad:(Ue,He)=>{te.attachIframe(Ue,He),Le.observeAttachShadow(Ue)},onStylesheetLoad:(Ue,He)=>{me.attachLinkElement(Ue,He)},keepIframeSrcFn:B});if(!nt)return console.warn("Failed to snapshot the document");xn({type:kt.FullSnapshot,data:{node:nt,initialOffset:qq(window)}},we),ec.forEach(Ue=>Ue.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&me.adoptStyleSheets(document.adoptedStyleSheets,ns.getId(document))};try{const we=[],nt=He=>{var Ht;return wt(UAe)({mutationCb:Z,mousemoveCb:(Ie,gr)=>xn({type:kt.IncrementalSnapshot,data:{source:gr,positions:Ie}}),mouseInteractionCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.MouseInteraction,...Ie}}),scrollCb:Q,viewportResizeCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.ViewportResize,...Ie}}),inputCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.Input,...Ie}}),mediaInteractionCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.MediaInteraction,...Ie}}),styleSheetRuleCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.StyleSheetRule,...Ie}}),styleDeclarationCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.StyleDeclaration,...Ie}}),canvasMutationCb:se,fontCb:Ie=>xn({type:kt.IncrementalSnapshot,data:{source:vt.Font,...Ie}}),selectionCb:Ie=>{xn({type:kt.IncrementalSnapshot,data:{source:vt.Selection,...Ie}})},customElementCb:Ie=>{xn({type:kt.IncrementalSnapshot,data:{source:vt.CustomElement,...Ie}})},blockClass:a,ignoreClass:i,ignoreSelector:c,maskTextClass:u,maskTextSelector:f,maskInputOptions:re,inlineStylesheet:h,sampling:k,recordDOM:P,recordCanvas:O,inlineImages:U,userTriggeredOnInput:z,collectFonts:q,doc:He,maskInputFn:w,maskTextFn:b,keepIframeSrcFn:B,blockSelector:s,slimDOMOptions:pe,dataURLOptions:A,mirror:ns,iframeManager:te,stylesheetManager:me,shadowDomManager:Le,processedNodeManager:ve,canvasManager:GE,ignoreCSSAttributes:G,plugins:((Ht=L?.filter(Ie=>Ie.observer))==null?void 0:Ht.map(Ie=>({observer:Ie.observer,options:Ie.options,callback:gr=>xn({type:kt.Plugin,data:{plugin:Ie.name,payload:gr}})})))||[]},x)};te.addLoadListener(He=>{try{we.push(nt(He.contentDocument))}catch(Ht){console.warn(Ht)}});const Ue=()=>{i1(),we.push(nt(document)),iv=!0};return["interactive","complete"].includes(document.readyState)?Ue():(we.push(Mr("DOMContentLoaded",()=>{xn({type:kt.DomContentLoaded,data:{}}),M==="DOMContentLoaded"&&Ue()})),we.push(Mr("load",()=>{xn({type:kt.Load,data:{}}),M==="load"&&Ue()},window))),()=>{we.forEach(He=>{try{He()}catch(Ht){String(Ht).toLowerCase().includes("cross-origin")||console.warn(Ht)}}),ve.destroy(),iv=!1,EAe()}}catch(we){console.warn(we)}}im.addCustomEvent=(e,t)=>{if(!iv)throw new Error("please add custom event after start recording");xn({type:kt.Custom,data:{tag:e,payload:t}})};im.freezePage=()=>{ec.forEach(e=>e.freeze())};im.takeFullSnapshot=e=>{if(!iv)throw new Error("please take full snapshot after start recording");i1(e)};im.mirror=ns;var X9;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(X9||(X9={}));const XAe="rrweb",QAe={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},JAe={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},Q9=JAe;class eIe extends qa{constructor(t){super(XAe),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},Q9.recordOptions),t?.recordOptions),QAe);this.config=Object.assign(Object.assign(Object.assign({},Q9),t),{recordOptions:n}),xe.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var t;if(this.enabled){xe.info("RRWebPlugin already enabled");return}const n=(t=this.context)===null||t===void 0?void 0:t.getSession();if(!n||!n.record){xe.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){xe.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,xe.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){xe.info("RRWebPlugin already disabled");return}xe.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(t){const n=t?.action;n==="start"?(xe.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(xe.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,xe.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const t=im(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));t?(this.stopRecording=t,xe.info("RRWebPlugin rrweb recording initialized successfully")):xe.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){xe.info("RRWebPlugin stopCurrentRecording called but not recording");return}xe.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,xe.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,xe.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(t){this.isRecording&&(this.recordingEvents.push(t),this.recordingEvents.length>=this.config.batchSize&&(xe.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){xe.info("RRWebPlugin flushEvent called but no events to flush");return}xe.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const t=[...this.recordingEvents],n={version:"1.0.0",events:t,eventCount:t.length};this.context.record(UD,n),xe.info("RRWebPlugin events sent to RUM",{eventType:UD,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var tIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},Q_;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(Q_||(Q_={}));const lV="us-west-2",J_=`https://dataplane.rum.${lV}.amazonaws.com`,cV=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),uV=e=>({allowCookies:!1,batchLimit:100,client:_xe,compressionStrategy:{enabled:!0},cookieAttributes:e,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:J_,endpointUrl:new URL(J_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:Q_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let nIe=class{constructor(t,n,r,a={}){var{cookieAttributes:s}=a,i=tIe(a,["cookieAttributes"]);this.eventBus=new eH,typeof r>"u"&&(r="us-west-2"),this.applicationId=t;const c=Object.assign(Object.assign({},cV()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},uV(c)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:J_.replace(lV,r),this.config.endpointUrl=new URL(this.config.endpoint),xe.configure(this.config.debug),xe.info("Initialized RUM Slim"),this.eventCache=new L2e({id:t,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,t),this.pluginManager=this.initPluginManager(t,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(t){this.dispatchManager.setAwsCredentials(t)}setSigningConfigFactory(t){this.dispatchManager.setSigningConfigFactory(t)}addSessionAttributes(t){this.eventCache.addSessionAttributes(t)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(t){this.eventCache.pinSessionId(t)}startSession(t){return this.eventCache.startSession(t)}getUserId(){return this.eventCache.getUserId()}pinUserId(t){this.eventCache.pinUserId(t)}setEventMetadataHook(t){this.eventCache.setEventMetadataHook(t)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(t){this.pluginManager.addPlugin(t)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(t){this.config.allowCookies=t}clearCookies(){const t=this.config.cookieAttributes;[F1,$1,Ad,`${F1}_${this.applicationId}`,`${$1}_${this.applicationId}`,`${Ad}_${this.applicationId}`].forEach(r=>I2e(r,t))}recordPageView(t){this.eventCache.recordPageView(t)}recordError(t){this.pluginManager.record("com.amazonaws.rum.js-error",t)}registerDomEvents(t){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",t)}recordEvent(t,n,r){this.eventCache.recordEvent(t,n,r)}initDispatch(t,n){return new kxe(n,t,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(t,n){const r={applicationId:t,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new A2e(r);return this.config.disableAutoPageView||a.addPlugin(new eCe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var ls;(function(e){e.Errors="errors",e.Performance="performance",e.Interaction="interaction",e.Http="http",e.Replay="replay"})(ls||(ls={}));var J9;(function(e){e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH"})(J9||(J9={}));const rIe=e=>Object.assign(Object.assign({},uV(e)),{signing:!0,telemetries:[ls.Errors,ls.Performance,ls.Http,ls.Replay]});class aIe extends nIe{constructor(t,n,r,a={}){super(t,n,r,Object.assign(Object.assign({},rIe(cV())),a)),xe.info(`RUM client initialized for app: ${t}`),xe.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(t,n){const r=super.initDispatch(t,n);return r.setSigningConfigFactory(t2e),r.setCognitoCredentialProviderFactory((a,s,i,c)=>{const u={identityPoolId:i,guestRoleArn:c,cookieAttributes:a.cookieAttributes};return i&&c?new v2e(u,s).ChainAnonymousCredentialsProvider:new y2e(u,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(t,n){const r=super.initPluginManager(t,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(t){this.pluginManager.record(rH,t)}registerDomEvents(t){this.pluginManager.updatePlugin(tH,t)}constructBuiltinPlugins(){let t=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?t=[...t,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(t=[...t,...n[r[0].toLowerCase()](r[1])])}),t}telemetryFunctor(){return{[ls.Errors]:t=>[new G2e(t)],[ls.Performance]:t=>[new Z2e(t),new nCe(t),new xCe(t)],[ls.Interaction]:t=>[new TI(t)],[ls.Http]:t=>[new ACe(t),new ECe(t)],[ls.Replay]:t=>[new eIe(t)]}}}const dV={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},sIe=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function fV(e){return e.replace(sIe,"[redacted]")}function oIe(e){const t=e.indexOf("?"),n=e.indexOf("#"),r=t===-1&&n===-1?e.length:t===-1?n:n===-1?t:Math.min(t,n);return fV(e.slice(0,r))}function iIe(e){const t=fV(e.message);if(t===e.message)return e;const n=new Error(t);return n.name=e.name,n.stack=e.stack,n}function lIe(e){return{recordPageView(t){e.recordPageView(oIe(t))},recordError(t,n){e.recordError(iIe(t)),n&&e.recordEvent("telemetry.error_context",n)},recordEvent(t,n){e.recordEvent(t,n??{})},recordTiming(t,n,r){e.recordEvent("telemetry.timing",{...r,name:t,durationMs:String(n)})}}}function eL(e){return e instanceof Error?e:new Error(String(e))}function cIe(e){window.addEventListener("error",t=>{e.recordError(eL(t.error??t.message))}),window.addEventListener("unhandledrejection",t=>{e.recordError(eL(t.reason))})}function uIe(){const{appMonitorId:e,identityPoolId:t,region:n}=qp().rum;if(!e)return dV;const r=new aIe(e,"1.0.0",n,{sessionSampleRate:1,identityPoolId:t,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=lIe(r);return cIe(a),a}const hV=_.createContext(dV);function r7e(){return _.useContext(hV)}const ek="remit.theme",dIe="dark";function tL(){return typeof localStorage>"u"?"system":localStorage.getItem(ek)??"system"}function tk(e){if(typeof document>"u")return;const t=e==="dark"||e==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(dIe,t)}function a7e(e){typeof localStorage<"u"&&(e==="system"?localStorage.removeItem(ek):localStorage.setItem(ek,e)),tk(e)}const fIe=()=>{if(typeof window>"u"||(tk(tL()),typeof window.matchMedia!="function"))return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>{tk(tL())};typeof e.addEventListener=="function"?e.addEventListener("change",t):e.addListener(t)},hIe=e=>e==="true"||e==="false"||e==="null"||/^["[{]/.test(e)||e!==""&&Number.isFinite(Number(e));function nL(e){return typeof e=="object"&&e!==null?JSON.stringify(e):typeof e=="string"?hIe(e)?JSON.stringify(e):e:String(e)}function pIe(e){const t=new URLSearchParams;for(const r of Object.keys(e)){const a=e[r];if(a!==void 0){if(Array.isArray(a)){for(const s of a)t.append(r,nL(s));continue}t.set(r,nL(a))}}const n=t.toString();return n===""?"":`?${n}`}const mIe=(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);dc(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},rL={},nk=(e,t,n,r)=>{dc(n)&&rL[n]||(dc(n)&&(rL[n]=new Date),mIe(e,t,n,r))},pV=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},rk=(e,t,n)=>{e.loadNamespaces(t,pV(e,n))},aL=(e,t,n,r)=>{if(dc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return rk(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,pV(e,r))},gIe=(e,t,n={})=>!t.languages||!t.languages.length?(nk(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),dc=e=>typeof e=="string",vIe=e=>typeof e=="object"&&e!==null,yIe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,bIe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},SIe=e=>bIe[e],wIe=e=>e.replace(yIe,SIe);let ak={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wIe};const xIe=(e={})=>{ak={...ak,...e}},CIe=()=>ak;let mV;const EIe=e=>{mV=e},_Ie=()=>mV,kIe={type:"3rdParty",init(e){xIe(e.options.react),EIe(e)}},AIe=_.createContext();class IIe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const TIe=(e,t)=>{const n=_.useRef();return _.useEffect(()=>{n.current=e},[e,t]),n.current},gV=(e,t,n,r)=>e.getFixedT(t,n,r),RIe=(e,t,n,r)=>_.useCallback(gV(e,t,n,r),[e,t,n,r]),vV=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:a}=_.useContext(AIe)||{},s=n||r||_Ie();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new IIe),!s){nk(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,T)=>dc(T)?T:vIe(T)&&dc(T.defaultValue)?T.defaultValue:Array.isArray(O)?O[O.length-1]:O,P=[R,{},!1];return P.t=R,P.i18n={},P.ready=!1,P}s.options.react?.wait&&nk(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...CIe(),...s.options.react,...t},{useSuspense:c,keyPrefix:u}=i;let f=e||a||s.options?.defaultNS;f=dc(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>gIe(R,s,i)),m=RIe(s,t.lng||null,i.nsMode==="fallback"?f:f[0],u),g=()=>m,y=()=>gV(s,t.lng||null,i.nsMode==="fallback"?f:f[0],u),[w,b]=_.useState(g);let x=f.join();t.lng&&(x=`${t.lng}${x}`);const E=TIe(x),k=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:P}=i;k.current=!0,!h&&!c&&(t.lng?aL(s,t.lng,f,()=>{k.current&&b(y)}):rk(s,f,()=>{k.current&&b(y)})),h&&E&&E!==x&&k.current&&b(y);const O=()=>{k.current&&b(y)};return R&&s?.on(R,O),P&&s?.store.on(P,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(T=>s.off(T,O)),P&&s&&P.split(" ").forEach(T=>s.store.off(T,O))}},[s,x]),_.useEffect(()=>{k.current&&h&&b(g)},[s,u,h]);const A=[w,s,h];if(A.t=w,A.i18n=s,A.ready=h,h||!h&&!c)return A;throw new Promise(R=>{t.lng?aL(s,t.lng,f,()=>R()):rk(s,f,()=>R())})},OIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),NIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...e,headers:{"Content-Type":"application/json",...e.headers}}),MIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...e,headers:{"Content-Type":"application/json",...e.headers}}),PIe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...e}),DIe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),LIe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...e}),UIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...e,headers:{"Content-Type":"application/json",...e.headers}}),zIe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...e}),jIe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),FIe=e=>(e.client??Ce).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$Ie=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...e}),BIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),HIe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...e}),qIe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),VIe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...e}),WIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...e,headers:{"Content-Type":"application/json",...e.headers}}),s7e=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...e}),GIe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),KIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...e,headers:{"Content-Type":"application/json",...e.headers}}),YIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),ZIe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...e}),XIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...e}),QIe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...e}),JIe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/trash/empty",...e}),eTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...e}),tTe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),nTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events",...e}),rTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events",...e,headers:{"Content-Type":"application/json",...e.headers}}),aTe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e}),sTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e}),oTe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-events/{calendarObjectId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),iTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-free-busy",...e}),lTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-suggestions",...e}),cTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-suggestions/{suggestionId}/accept",...e,headers:{"Content-Type":"application/json",...e.headers}}),uTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-suggestions/{suggestionId}/decline",...e}),dTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-suggestions/{suggestionId}/dismiss",...e,headers:{"Content-Type":"application/json",...e.headers}}),fTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendar-suggestions/{suggestionId}/reopen",...e}),hTe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars",...e}),pTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars",...e,headers:{"Content-Type":"application/json",...e.headers}}),mTe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}",...e}),gTe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),vTe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),yTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),bTe=e=>(e.client??Ce).put({security:[{name:"Authorization",type:"apiKey"}],url:"/calendars/{calendarId}/feed",...e}),STe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...e}),wTe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config/export",...e}),xTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/config/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),o7e=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...e}),CTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...e}),ETe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...e,headers:{"Content-Type":"application/json",...e.headers}}),_Te=e=>(e?.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...e}),kTe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/quarantine",...e}),ATe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...e}),ITe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...e,headers:{"Content-Type":"application/json",...e.headers}}),TTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...e,headers:{"Content-Type":"application/json",...e.headers}}),RTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...e,headers:{"Content-Type":"application/json",...e.headers}}),OTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...e,headers:{"Content-Type":"application/json",...e.headers}}),i7e=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/not-spam",...e,headers:{"Content-Type":"application/json",...e.headers}}),l7e=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/report-spam",...e,headers:{"Content-Type":"application/json",...e.headers}}),NTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...e}),MTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/calendar-suggestions",...e}),PTe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...e,headers:{"Content-Type":"application/json",...e.headers}}),DTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...e}),LTe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...e}),UTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...e,headers:{"Content-Type":"application/json",...e.headers}}),zTe=e=>(e.client??Ce).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e}),jTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e}),FTe=e=>(e.client??Ce).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$Te=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/attachments",...e,headers:{"Content-Type":"application/json",...e.headers}}),BTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/attachments/{outboxAttachmentId}/complete",...e}),HTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...e}),yV=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...e}),qTe=e=>(e.client??Ce).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...e,headers:{"Content-Type":"application/json",...e.headers}}),VTe=e=>(e?.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...e}),WTe=e=>(e.client??Ce).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...e}),c7e=e=>({mutationFn:async n=>{const{data:r}=await OIe({...e,...n,throwOnError:!0});return r}}),en=(e,t,n,r)=>{const a={_id:e,baseUrl:t?.baseUrl||(t?.client??Ce).getConfig().baseUrl};return t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},u7e=e=>({mutationFn:async n=>{const{data:r}=await NIe({...e,...n,throwOnError:!0});return r}}),d7e=e=>({mutationFn:async n=>{const{data:r}=await MIe({...e,...n,throwOnError:!0});return r}}),f7e=e=>({mutationFn:async n=>{const{data:r}=await PIe({...e,...n,throwOnError:!0});return r}}),h7e=e=>({mutationFn:async n=>{const{data:r}=await DIe({...e,...n,throwOnError:!0});return r}}),GTe=e=>en("filterOperationsListFilters",e),p7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await LIe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:GTe(e)}),m7e=e=>({mutationFn:async n=>{const{data:r}=await UIe({...e,...n,throwOnError:!0});return r}}),g7e=e=>({mutationFn:async n=>{const{data:r}=await zIe({...e,...n,throwOnError:!0});return r}}),v7e=e=>en("filterDetailOperationsGetFilter",e),y7e=e=>({mutationFn:async n=>{const{data:r}=await jIe({...e,...n,throwOnError:!0});return r}}),KTe=e=>({mutationFn:async n=>{const{data:r}=await FIe({...e,...n,throwOnError:!0});return r}}),YTe=e=>en("labelOperationsListLabels",e),b7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await $Ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:YTe(e)}),S7e=e=>({mutationFn:async n=>{const{data:r}=await BIe({...e,...n,throwOnError:!0});return r}}),w7e=e=>({mutationFn:async n=>{const{data:r}=await HIe({...e,...n,throwOnError:!0});return r}}),x7e=e=>({mutationFn:async n=>{const{data:r}=await qIe({...e,...n,throwOnError:!0});return r}}),cT=e=>en("mailboxOperationsListMailboxes",e),sk=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await VIe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:cT(e)}),ZTe=e=>({mutationFn:async n=>{const{data:r}=await WIe({...e,...n,throwOnError:!0});return r}}),C7e=e=>({mutationFn:async n=>{const{data:r}=await GIe({...e,...n,throwOnError:!0});return r}}),E7e=e=>({mutationFn:async n=>{const{data:r}=await KIe({...e,...n,throwOnError:!0});return r}}),_7e=e=>({mutationFn:async n=>{const{data:r}=await YIe({...e,...n,throwOnError:!0});return r}}),XTe=e=>en("organizeJobDetailOperationsGetOrganizeJob",e),k7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await ZIe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:XTe(e)}),A7e=e=>({mutationFn:async n=>{const{data:r}=await XIe({...e,...n,throwOnError:!0});return r}}),QTe=e=>en("syncOperationsGetSyncStatus",e),I7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await QIe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:QTe(e)}),T7e=e=>({mutationFn:async n=>{const{data:r}=await JIe({...e,...n,throwOnError:!0});return r}}),JTe=e=>en("addressOperationsSearchAddresses",e),R7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await eTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:JTe(e)}),O7e=e=>({mutationFn:async n=>{const{data:r}=await tTe({...e,...n,throwOnError:!0});return r}}),eRe=e=>en("calendarEventOperationsListCalendarEvents",e),N7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await nTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:eRe(e)}),M7e=e=>({mutationFn:async n=>{const{data:r}=await rTe({...e,...n,throwOnError:!0});return r}}),P7e=e=>({mutationFn:async n=>{const{data:r}=await aTe({...e,...n,throwOnError:!0});return r}}),tRe=e=>en("calendarEventDetailOperationsGetCalendarEvent",e),D7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await sTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:tRe(e)}),L7e=e=>({mutationFn:async n=>{const{data:r}=await oTe({...e,...n,throwOnError:!0});return r}}),nRe=e=>en("calendarFreeBusyOperationsListCalendarFreeBusy",e),U7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await iTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nRe(e)}),rRe=e=>en("calendarSuggestionOperationsListCalendarSuggestions",e),z7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await lTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:rRe(e)}),j7e=e=>({mutationFn:async n=>{const{data:r}=await cTe({...e,...n,throwOnError:!0});return r}}),F7e=e=>({mutationFn:async n=>{const{data:r}=await uTe({...e,...n,throwOnError:!0});return r}}),$7e=e=>({mutationFn:async n=>{const{data:r}=await dTe({...e,...n,throwOnError:!0});return r}}),B7e=e=>({mutationFn:async n=>{const{data:r}=await fTe({...e,...n,throwOnError:!0});return r}}),aRe=e=>en("calendarOperationsListCalendars",e),H7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await hTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:aRe(e)}),q7e=e=>({mutationFn:async n=>{const{data:r}=await pTe({...e,...n,throwOnError:!0});return r}}),V7e=e=>({mutationFn:async n=>{const{data:r}=await mTe({...e,...n,throwOnError:!0});return r}}),W7e=e=>({mutationFn:async n=>{const{data:r}=await gTe({...e,...n,throwOnError:!0});return r}}),G7e=e=>({mutationFn:async n=>{const{data:r}=await vTe({...e,...n,throwOnError:!0});return r}}),sRe=e=>en("calendarDetailOperationsGetCalendarFeed",e),K7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await yTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:sRe(e)}),Y7e=e=>({mutationFn:async n=>{const{data:r}=await bTe({...e,...n,throwOnError:!0});return r}}),bV=e=>en("configOperationsGetConfig",e),uT=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await STe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:bV(e)}),oRe=e=>en("configOperationsExportConfig",e),Z7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await wTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:oRe(e)}),X7e=e=>({mutationFn:async n=>{const{data:r}=await xTe({...e,...n,throwOnError:!0});return r}}),iRe=e=>en("threadOperationsListThreads",e),SV=e=>en("threadOperationsSearchThreads",e),Q7e=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await CTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:SV(e)}),J7e=e=>({mutationFn:async n=>{const{data:r}=await ETe({...e,...n,throwOnError:!0});return r}}),eDe=e=>({mutationFn:async n=>{const{data:r}=await _Te({...e,...n,throwOnError:!0});return r}}),lRe=e=>en("meOperationsListQuarantine",e),cRe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await kTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:lRe(e)}),uRe=e=>en("meOperationsListVipSuggestions",e),tDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await ATe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:uRe(e)}),nDe=e=>({mutationFn:async n=>{const{data:r}=await ITe({...e,...n,throwOnError:!0});return r}}),rDe=e=>({mutationFn:async n=>{const{data:r}=await TTe({...e,...n,throwOnError:!0});return r}}),aDe=e=>({mutationFn:async n=>{const{data:r}=await RTe({...e,...n,throwOnError:!0});return r}}),sDe=e=>({mutationFn:async n=>{const{data:r}=await OTe({...e,...n,throwOnError:!0});return r}}),dRe=e=>en("messageOperationsDescribeMessage",e),oDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await NTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dRe(e)}),fRe=e=>en("messageCalendarSuggestionOperationsListMessageCalendarSuggestions",e),iDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await MTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:fRe(e)}),lDe=e=>({mutationFn:async n=>{const{data:r}=await PTe({...e,...n,throwOnError:!0});return r}}),hRe=e=>en("messageOperationsGetRawMessage",e),cDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await DTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hRe(e)}),wV=e=>en("outboxOperationsListOutboxMessages",e),uDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await LTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wV(e)}),dDe=e=>({mutationFn:async n=>{const{data:r}=await UTe({...e,...n,throwOnError:!0});return r}}),fDe=e=>({mutationFn:async n=>{const{data:r}=await zTe({...e,...n,throwOnError:!0});return r}}),pRe=e=>en("outboxDetailOperationsGetOutboxMessage",e),mRe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await jTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pRe(e)}),hDe=e=>({mutationFn:async n=>{const{data:r}=await FTe({...e,...n,throwOnError:!0});return r}}),pDe=e=>({mutationFn:async n=>{const{data:r}=await $Te({...e,...n,throwOnError:!0});return r}}),mDe=e=>({mutationFn:async n=>{const{data:r}=await BTe({...e,...n,throwOnError:!0});return r}}),gDe=e=>({mutationFn:async n=>{const{data:r}=await HTe({...e,...n,throwOnError:!0});return r}}),ok=e=>en("systemOperationsGetSystemUpdate",e),gRe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await yV({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ok(e)}),vRe=e=>({mutationFn:async n=>{const{data:r}=await qTe({...e,...n,throwOnError:!0});return r}}),xV=e=>en("unifiedThreadOperationsListAllThreads",e),yRe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await VTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xV(e)}),bRe=e=>en("threadDetailOperationsListThreadMessages",e),vDe=e=>({queryFn:async({queryKey:t,signal:n})=>{const{data:r}=await WTe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:bRe(e)}),CV=_.createContext(void 0),SRe=2e3,wRe=6e4,xRe=e=>e==="unfiled"||e==="failed"||e==="blocked",CRe=dA(404),sL=(e,t)=>xRe(e)||t!=null,ERe=({children:e})=>{const[t,n]=_.useState(),r=Lc(),{data:a,error:s}=_d({...mRe({path:{outboxMessageId:t??""}}),enabled:!!t,meta:CRe,retry:(g,y)=>!Sle(y)&&g<1,refetchInterval:g=>sL(g.state.data?.status,g.state.error)?!1:SRe}),i=_.useCallback(()=>{n(void 0),r.invalidateQueries({queryKey:wV()})},[r]);_.useEffect(()=>{t&&sL(a?.status,s)&&i()},[a,s,t,i]),_.useEffect(()=>{if(!t)return;const g=setTimeout(i,wRe);return()=>clearTimeout(g)},[t,i]);const c=_.useCallback(g=>{n(g)},[]),u=_.useRef(new Map),f=_.useCallback((g,y)=>{const w=u.current.get(g);return w?(w(y),!0):!1},[]),h=_.useCallback((g,y)=>(u.current.set(g,y),()=>{u.current.get(g)===y&&u.current.delete(g)}),[]),m=_.useMemo(()=>({startSendPolling:c,insertIntoOpenReply:f,registerOpenReply:h}),[c,f,h]);return C.jsx(CV.Provider,{value:m,children:e})},yDe=()=>{const e=_.useContext(CV);if(!e)throw new Error("useCompose must be used within a ComposeProvider");return e},oL=5,_Re=(e,t,n)=>({title:e,detail:EV(n)??t,error:n}),EV=e=>{if(e!=null){if(e instanceof Error)return e.message||void 0;if(typeof e=="string")return e||void 0;if(typeof e=="object"&&"message"in e&&typeof e.message=="string")return e.message||void 0}},bDe=e=>lA(e)?.code==="message_gone_from_server",SDe=e=>{const t=EV(e);return t?t.startsWith("Message not found"):!1},kRe=(e,t,n)=>e.severity===n&&e.title===t.title&&e.detail===t.detail,ARe=(e,t)=>{const r=[...e.filter(a=>!kRe(a,{title:t.title,detail:t.detail,severity:t.severity},t.severity)),t];return r.length<=oL?r:r.slice(r.length-oL)},IRe=(e,t)=>e.filter(n=>n.id!==t),TRe=(e,t,n)=>({id:t,severity:e.severity??"error",title:e.title,detail:e.detail,action:e.action,createdAt:n}),_V=_.createContext(void 0),RRe=e=>{if(e.action)return e.action;if((e.severity??"error")==="error")return{label:"Report an issue",href:fA(x1({title:`Bug: ${e.title}`,errorMessage:e.detail?`${e.title} — ${e.detail}`:e.title,stack:e.error instanceof Error?e.error.stack:void 0}))}},ORe=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,NRe=({children:e})=>{const[t,n]=_.useState([]),r=_.useCallback(c=>{if(c.error!=null&&Zj(c.error))return sl(c.error).correlationId;const u=TRe({...c,action:RRe(c)},ORe(),Date.now());return n(f=>ARe(f,u)),u.id},[]),a=_.useCallback(c=>{n(u=>IRe(u,c))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:t,pushError:r,dismissError:a,clearAll:s}),[t,r,a,s]);return C.jsxs(_V.Provider,{value:i,children:[e,C.jsx(Rae,{errors:t,onDismiss:a})]})},MRe=()=>{const e=_.useContext(_V);if(!e)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return e},PRe={Inbox:"Inbox",Drafts:"Drafts",Sent:"Sent",Archive:"Archive",Junk:"Junk",Trash:"Trash",All:"All",Flagged:"Flagged"},wDe={Body:"Body"},xDe={Mail:"Mail",Calendar:"Calendar"},ju={Appointed:"Appointed",Flagged:"Flagged",Reserved:"Reserved",Proposed:"Proposed",Stale:"Stale",None:"None"},iL={synced:"synced",failed:"failed"},CDe={uncategorized:"uncategorized",personal:"personal",newsletter:"newsletter",marketing:"marketing",automated:"automated",transactional:"transactional",social:"social"},EDe={Lookalike:"Lookalike",ForeignAddress:"ForeignAddress",Unrelated:"Unrelated"},_De={abandoned:"abandoned"},kDe={none:"none",move:"move",delete:"delete"},ADe={MoveToInbox:"MoveToInbox",MoveToJunk:"MoveToJunk"},IDe={Attachment:"attachment"},TDe={None:"None"},RDe={Retrying:"Retrying",GaveUp:"GaveUp"},DRe=new Set(["none","stale","unconfirmed"]),LRe=new Set(Object.values(PRe)),KE=(e,t)=>{const n=e?.[t];return typeof n=="string"?n:void 0},URe=e=>{const t=lA(e);if(t?.code!=="folder_role_unresolved")return;const{details:n}=t;if(!n)return;const r=KE(n,"reason"),a=KE(n,"role"),s=KE(n,"accountId");if(!(!r||!DRe.has(r))&&!(!a||!LRe.has(a)||!s))return{reason:r,role:a,accountId:s}},zRe=e=>lA(e)?.code==="mailbox_not_settled";var Rt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},e.getValidEnumValues=a=>{const s=e.objectKeys(a).filter(c=>typeof a[a[c]]!="number"),i={};for(const c of s)i[c]=a[c];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(s){return a[s]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},e.find=(a,s)=>{for(const i of a)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Rt||(Rt={}));var lL;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(lL||(lL={}));const Oe=Rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vi=e=>{switch(typeof e){case"undefined":return Oe.undefined;case"string":return Oe.string;case"number":return Number.isNaN(e)?Oe.nan:Oe.number;case"boolean":return Oe.boolean;case"function":return Oe.function;case"bigint":return Oe.bigint;case"symbol":return Oe.symbol;case"object":return Array.isArray(e)?Oe.array:e===null?Oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Oe.promise:typeof Map<"u"&&e instanceof Map?Oe.map:typeof Set<"u"&&e instanceof Set?Oe.set:typeof Date<"u"&&e instanceof Date?Oe.date:Oe.object;default:return Oe.unknown}},ye=Rt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Zo extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let c=r,u=0;for(;u<i.path.length;){const f=i.path[u];u===i.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(n(i))):c[f]=c[f]||{_errors:[]},c=c[f],u++}}};return a(this),r}static assert(t){if(!(t instanceof Zo))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Zo.create=e=>new Zo(e);const ik=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Rt.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${Rt.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Rt.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${Rt.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Rt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,Rt.assertNever(e)}return{message:n}};let jRe=ik;function FRe(){return jRe}const $Re=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let c="";const u=r.filter(f=>!!f).slice().reverse();for(const f of u)c=f(i,{data:t,defaultError:c}).message;return{...a,path:s,message:c}};function Ae(e,t){const n=FRe(),r=$Re({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ik?void 0:ik].filter(a=>!!a)});e.common.issues.push(r)}class zr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Qe;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return zr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Qe;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const Qe=Object.freeze({status:"aborted"}),zh=e=>({status:"dirty",value:e}),Wa=e=>({status:"valid",value:e}),cL=e=>e.status==="aborted",uL=e=>e.status==="dirty",Dd=e=>e.status==="valid",lv=e=>typeof Promise<"u"&&e instanceof Promise;var De;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(De||(De={}));class Gs{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const dL=(e,t)=>{if(Dd(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Zo(e.common.issues);return this._error=n,this._error}}};function lt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,c)=>{const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??r??c.defaultError}:i.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},description:a}}class bt{get description(){return this._def.description}_getType(t){return Vi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Vi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new zr,ctx:{common:t.parent.common,data:t.data,parsedType:Vi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(lv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vi(t)},a=this._parseSync({data:t,path:r.path,parent:r});return dL(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vi(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Dd(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Dd(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vi(t)},a=this._parse({data:t,path:r.path,parent:r}),s=await(lv(a)?a:Promise.resolve(a));return dL(r,s)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=t(a),c=()=>s.addIssue({code:ye.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(c(),!1)):i?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Ac({schema:this,typeName:Ze.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return nl.create(this,this._def)}nullable(){return zd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fs.create(this)}promise(){return hv.create(this,this._def)}or(t){return uv.create([this,t],this._def)}and(t){return dv.create(this,t,this._def)}transform(t){return new Ac({...lt(this._def),schema:this,typeName:Ze.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new dk({...lt(this._def),innerType:this,defaultValue:n,typeName:Ze.ZodDefault})}brand(){return new uOe({typeName:Ze.ZodBranded,type:this,...lt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new fk({...lt(this._def),innerType:this,catchValue:n,typeName:Ze.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return dT.create(this,t)}readonly(){return hk.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const BRe=/^c[^\s-]{8,}$/i,HRe=/^[0-9a-z]+$/,qRe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,VRe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,WRe=/^[a-z0-9_-]{21}$/i,GRe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,KRe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,YRe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ZRe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let YE;const XRe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,QRe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,JRe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eOe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tOe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nOe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rOe=new RegExp(`^${kV}$`);function AV(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function aOe(e){return new RegExp(`^${AV(e)}$`)}function sOe(e){let t=`${kV}T${AV(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oOe(e,t){return!!((t==="v4"||!t)&&XRe.test(e)||(t==="v6"||!t)&&JRe.test(e))}function iOe(e,t){if(!GRe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function lOe(e,t){return!!((t==="v4"||!t)&&QRe.test(e)||(t==="v6"||!t)&&eOe.test(e))}class zs extends bt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Oe.string){const s=this._getOrReturnCtx(t);return Ae(s,{code:ye.invalid_type,expected:Oe.string,received:s.parsedType}),Qe}const r=new zr;let a;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,c=t.data.length<s.value;(i||c)&&(a=this._getOrReturnCtx(t,a),i?Ae(a,{code:ye.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&Ae(a,{code:ye.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")YRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"email",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")YE||(YE=new RegExp(ZRe,"u")),YE.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"emoji",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")VRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"uuid",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")WRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"nanoid",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")BRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"cuid",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")HRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"cuid2",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")qRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"ulid",code:ye.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ae(a,{validation:"url",code:ye.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"regex",code:ye.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?sOe(s).test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?rOe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?aOe(s).test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?KRe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"duration",code:ye.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?oOe(t.data,s.version)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"ip",code:ye.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?iOe(t.data,s.alg)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"jwt",code:ye.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?lOe(t.data,s.version)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"cidr",code:ye.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?tOe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"base64",code:ye.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?nOe.test(t.data)||(a=this._getOrReturnCtx(t,a),Ae(a,{validation:"base64url",code:ye.invalid_string,message:s.message}),r.dirty()):Rt.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ye.invalid_string,...De.errToObj(r)})}_addCheck(t){return new zs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...De.errToObj(t)})}url(t){return this._addCheck({kind:"url",...De.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...De.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...De.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...De.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...De.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...De.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...De.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...De.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...De.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...De.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...De.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...De.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...De.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...De.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...De.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...De.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...De.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...De.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...De.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...De.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...De.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...De.errToObj(n)})}nonempty(t){return this.min(1,De.errToObj(t))}trim(){return new zs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}zs.create=e=>new zs({checks:[],typeName:Ze.ZodString,coerce:e?.coerce??!1,...lt(e)});function cOe(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(e.toFixed(a).replace(".","")),i=Number.parseInt(t.toFixed(a).replace(".",""));return s%i/10**a}class Ec extends bt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Oe.number){const s=this._getOrReturnCtx(t);return Ae(s,{code:ye.invalid_type,expected:Oe.number,received:s.parsedType}),Qe}let r;const a=new zr;for(const s of this._def.checks)s.kind==="int"?Rt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?cOe(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.not_finite,message:s.message}),a.dirty()):Rt.assertNever(s);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,De.toString(n))}gt(t,n){return this.setLimit("min",t,!1,De.toString(n))}lte(t,n){return this.setLimit("max",t,!0,De.toString(n))}lt(t,n){return this.setLimit("max",t,!1,De.toString(n))}setLimit(t,n,r,a){return new Ec({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:De.toString(a)}]})}_addCheck(t){return new Ec({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:De.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:De.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:De.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:De.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:De.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:De.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:De.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:De.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:De.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Rt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ec.create=e=>new Ec({checks:[],typeName:Ze.ZodNumber,coerce:e?.coerce||!1,...lt(e)});class _c extends bt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Oe.bigint)return this._getInvalidInput(t);let r;const a=new zr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ae(r,{code:ye.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Rt.assertNever(s);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ae(n,{code:ye.invalid_type,expected:Oe.bigint,received:n.parsedType}),Qe}gte(t,n){return this.setLimit("min",t,!0,De.toString(n))}gt(t,n){return this.setLimit("min",t,!1,De.toString(n))}lte(t,n){return this.setLimit("max",t,!0,De.toString(n))}lt(t,n){return this.setLimit("max",t,!1,De.toString(n))}setLimit(t,n,r,a){return new _c({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:De.toString(a)}]})}_addCheck(t){return new _c({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:De.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:De.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:De.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:De.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:De.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_c.create=e=>new _c({checks:[],typeName:Ze.ZodBigInt,coerce:e?.coerce??!1,...lt(e)});class cv extends bt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Oe.boolean){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.boolean,received:r.parsedType}),Qe}return Wa(t.data)}}cv.create=e=>new cv({typeName:Ze.ZodBoolean,coerce:e?.coerce||!1,...lt(e)});class Ld extends bt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Oe.date){const s=this._getOrReturnCtx(t);return Ae(s,{code:ye.invalid_type,expected:Oe.date,received:s.parsedType}),Qe}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return Ae(s,{code:ye.invalid_date}),Qe}const r=new zr;let a;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(a=this._getOrReturnCtx(t,a),Ae(a,{code:ye.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Rt.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ld({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:De.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:De.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ld.create=e=>new Ld({checks:[],coerce:e?.coerce||!1,typeName:Ze.ZodDate,...lt(e)});class fL extends bt{_parse(t){if(this._getType(t)!==Oe.symbol){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.symbol,received:r.parsedType}),Qe}return Wa(t.data)}}fL.create=e=>new fL({typeName:Ze.ZodSymbol,...lt(e)});class hL extends bt{_parse(t){if(this._getType(t)!==Oe.undefined){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.undefined,received:r.parsedType}),Qe}return Wa(t.data)}}hL.create=e=>new hL({typeName:Ze.ZodUndefined,...lt(e)});class pL extends bt{_parse(t){if(this._getType(t)!==Oe.null){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.null,received:r.parsedType}),Qe}return Wa(t.data)}}pL.create=e=>new pL({typeName:Ze.ZodNull,...lt(e)});class mL extends bt{constructor(){super(...arguments),this._any=!0}_parse(t){return Wa(t.data)}}mL.create=e=>new mL({typeName:Ze.ZodAny,...lt(e)});class lk extends bt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Wa(t.data)}}lk.create=e=>new lk({typeName:Ze.ZodUnknown,...lt(e)});class fl extends bt{_parse(t){const n=this._getOrReturnCtx(t);return Ae(n,{code:ye.invalid_type,expected:Oe.never,received:n.parsedType}),Qe}}fl.create=e=>new fl({typeName:Ze.ZodNever,...lt(e)});class gL extends bt{_parse(t){if(this._getType(t)!==Oe.undefined){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.void,received:r.parsedType}),Qe}return Wa(t.data)}}gL.create=e=>new gL({typeName:Ze.ZodVoid,...lt(e)});class Fs extends bt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Oe.array)return Ae(n,{code:ye.invalid_type,expected:Oe.array,received:n.parsedType}),Qe;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,c=n.data.length<a.exactLength.value;(i||c)&&(Ae(n,{code:i?ye.too_big:ye.too_small,minimum:c?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ae(n,{code:ye.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ae(n,{code:ye.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,c)=>a.type._parseAsync(new Gs(n,i,n.path,c)))).then(i=>zr.mergeArray(r,i));const s=[...n.data].map((i,c)=>a.type._parseSync(new Gs(n,i,n.path,c)));return zr.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Fs({...this._def,minLength:{value:t,message:De.toString(n)}})}max(t,n){return new Fs({...this._def,maxLength:{value:t,message:De.toString(n)}})}length(t,n){return new Fs({...this._def,exactLength:{value:t,message:De.toString(n)}})}nonempty(t){return this.min(1,t)}}Fs.create=(e,t)=>new Fs({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ze.ZodArray,...lt(t)});function Qu(e){if(e instanceof Un){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=nl.create(Qu(r))}return new Un({...e._def,shape:()=>t})}else return e instanceof Fs?new Fs({...e._def,type:Qu(e.element)}):e instanceof nl?nl.create(Qu(e.unwrap())):e instanceof zd?zd.create(Qu(e.unwrap())):e instanceof kc?kc.create(e.items.map(t=>Qu(t))):e}class Un extends bt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Rt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Oe.object){const f=this._getOrReturnCtx(t);return Ae(f,{code:ye.invalid_type,expected:Oe.object,received:f.parsedType}),Qe}const{status:r,ctx:a}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),c=[];if(!(this._def.catchall instanceof fl&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||c.push(f);const u=[];for(const f of i){const h=s[f],m=a.data[f];u.push({key:{status:"valid",value:f},value:h._parse(new Gs(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof fl){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of c)u.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")c.length>0&&(Ae(a,{code:ye.unrecognized_keys,keys:c}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of c){const m=a.data[h];u.push({key:{status:"valid",value:h},value:f._parse(new Gs(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of u){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>zr.mergeObjectSync(r,f)):zr.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return De.errToObj,new Un({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:De.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Un({...this._def,unknownKeys:"strip"})}passthrough(){return new Un({...this._def,unknownKeys:"passthrough"})}extend(t){return new Un({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Un({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ze.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Un({...this._def,catchall:t})}pick(t){const n={};for(const r of Rt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Un({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Rt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Un({...this._def,shape:()=>n})}deepPartial(){return Qu(this)}partial(t){const n={};for(const r of Rt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Un({...this._def,shape:()=>n})}required(t){const n={};for(const r of Rt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof nl;)s=s._def.innerType;n[r]=s}return new Un({...this._def,shape:()=>n})}keyof(){return IV(Rt.objectKeys(this.shape))}}Un.create=(e,t)=>new Un({shape:()=>e,unknownKeys:"strip",catchall:fl.create(),typeName:Ze.ZodObject,...lt(t)});Un.strictCreate=(e,t)=>new Un({shape:()=>e,unknownKeys:"strict",catchall:fl.create(),typeName:Ze.ZodObject,...lt(t)});Un.lazycreate=(e,t)=>new Un({shape:e,unknownKeys:"strip",catchall:fl.create(),typeName:Ze.ZodObject,...lt(t)});class uv extends bt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(s){for(const c of s)if(c.result.status==="valid")return c.result;for(const c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const i=s.map(c=>new Zo(c.ctx.common.issues));return Ae(n,{code:ye.invalid_union,unionErrors:i}),Qe}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const u of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=u._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const c=i.map(u=>new Zo(u));return Ae(n,{code:ye.invalid_union,unionErrors:c}),Qe}}get options(){return this._def.options}}uv.create=(e,t)=>new uv({options:e,typeName:Ze.ZodUnion,...lt(t)});function ck(e,t){const n=Vi(e),r=Vi(t);if(e===t)return{valid:!0,data:e};if(n===Oe.object&&r===Oe.object){const a=Rt.objectKeys(t),s=Rt.objectKeys(e).filter(c=>a.indexOf(c)!==-1),i={...e,...t};for(const c of s){const u=ck(e[c],t[c]);if(!u.valid)return{valid:!1};i[c]=u.data}return{valid:!0,data:i}}else if(n===Oe.array&&r===Oe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let s=0;s<e.length;s++){const i=e[s],c=t[s],u=ck(i,c);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return n===Oe.date&&r===Oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class dv extends bt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(s,i)=>{if(cL(s)||cL(i))return Qe;const c=ck(s.value,i.value);return c.valid?((uL(s)||uL(i))&&n.dirty(),{status:n.value,value:c.data}):(Ae(r,{code:ye.invalid_intersection_types}),Qe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}dv.create=(e,t,n)=>new dv({left:e,right:t,typeName:Ze.ZodIntersection,...lt(n)});class kc extends bt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Oe.array)return Ae(r,{code:ye.invalid_type,expected:Oe.array,received:r.parsedType}),Qe;if(r.data.length<this._def.items.length)return Ae(r,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Qe;!this._def.rest&&r.data.length>this._def.items.length&&(Ae(r,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,c)=>{const u=this._def.items[c]||this._def.rest;return u?u._parse(new Gs(r,i,r.path,c)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>zr.mergeArray(n,i)):zr.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new kc({...this._def,rest:t})}}kc.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new kc({items:e,typeName:Ze.ZodTuple,rest:null,...lt(t)})};class fv extends bt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Oe.object)return Ae(r,{code:ye.invalid_type,expected:Oe.object,received:r.parsedType}),Qe;const a=[],s=this._def.keyType,i=this._def.valueType;for(const c in r.data)a.push({key:s._parse(new Gs(r,c,r.path,c)),value:i._parse(new Gs(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?zr.mergeObjectAsync(n,a):zr.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof bt?new fv({keyType:t,valueType:n,typeName:Ze.ZodRecord,...lt(r)}):new fv({keyType:zs.create(),valueType:t,typeName:Ze.ZodRecord,...lt(n)})}}class vL extends bt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Oe.map)return Ae(r,{code:ye.invalid_type,expected:Oe.map,received:r.parsedType}),Qe;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([c,u],f)=>({key:a._parse(new Gs(r,c,r.path,[f,"key"])),value:s._parse(new Gs(r,u,r.path,[f,"value"]))}));if(r.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const u of i){const f=await u.key,h=await u.value;if(f.status==="aborted"||h.status==="aborted")return Qe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),c.set(f.value,h.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const u of i){const f=u.key,h=u.value;if(f.status==="aborted"||h.status==="aborted")return Qe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),c.set(f.value,h.value)}return{status:n.value,value:c}}}}vL.create=(e,t,n)=>new vL({valueType:t,keyType:e,typeName:Ze.ZodMap,...lt(n)});class Mp extends bt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Oe.set)return Ae(r,{code:ye.invalid_type,expected:Oe.set,received:r.parsedType}),Qe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Ae(r,{code:ye.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Ae(r,{code:ye.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(u){const f=new Set;for(const h of u){if(h.status==="aborted")return Qe;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const c=[...r.data.values()].map((u,f)=>s._parse(new Gs(r,u,r.path,f)));return r.common.async?Promise.all(c).then(u=>i(u)):i(c)}min(t,n){return new Mp({...this._def,minSize:{value:t,message:De.toString(n)}})}max(t,n){return new Mp({...this._def,maxSize:{value:t,message:De.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Mp.create=(e,t)=>new Mp({valueType:e,minSize:null,maxSize:null,typeName:Ze.ZodSet,...lt(t)});class yL extends bt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yL.create=(e,t)=>new yL({getter:e,typeName:Ze.ZodLazy,...lt(t)});class uk extends bt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ae(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Qe}return{status:"valid",value:t.data}}get value(){return this._def.value}}uk.create=(e,t)=>new uk({value:e,typeName:Ze.ZodLiteral,...lt(t)});function IV(e,t){return new Ud({values:e,typeName:Ze.ZodEnum,...lt(t)})}class Ud extends bt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ae(n,{expected:Rt.joinValues(r),received:n.parsedType,code:ye.invalid_type}),Qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ae(n,{received:n.data,code:ye.invalid_enum_value,options:r}),Qe}return Wa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ud.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ud.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ud.create=IV;class bL extends bt{_parse(t){const n=Rt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Oe.string&&r.parsedType!==Oe.number){const a=Rt.objectValues(n);return Ae(r,{expected:Rt.joinValues(a),received:r.parsedType,code:ye.invalid_type}),Qe}if(this._cache||(this._cache=new Set(Rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Rt.objectValues(n);return Ae(r,{received:r.data,code:ye.invalid_enum_value,options:a}),Qe}return Wa(t.data)}get enum(){return this._def.values}}bL.create=(e,t)=>new bL({values:e,typeName:Ze.ZodNativeEnum,...lt(t)});class hv extends bt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Oe.promise&&n.common.async===!1)return Ae(n,{code:ye.invalid_type,expected:Oe.promise,received:n.parsedType}),Qe;const r=n.parsedType===Oe.promise?n.data:Promise.resolve(n.data);return Wa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}hv.create=(e,t)=>new hv({type:e,typeName:Ze.ZodPromise,...lt(t)});class Ac extends bt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,s={addIssue:i=>{Ae(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async c=>{if(n.value==="aborted")return Qe;const u=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return u.status==="aborted"?Qe:u.status==="dirty"||n.value==="dirty"?zh(u.value):u});{if(n.value==="aborted")return Qe;const c=this._def.schema._parseSync({data:i,path:r.path,parent:r});return c.status==="aborted"?Qe:c.status==="dirty"||n.value==="dirty"?zh(c.value):c}}if(a.type==="refinement"){const i=c=>{const u=a.refinement(c,s);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status==="aborted"?Qe:(c.status==="dirty"&&n.dirty(),i(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status==="aborted"?Qe:(c.status==="dirty"&&n.dirty(),i(c.value).then(()=>({status:n.value,value:c.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Dd(i))return Qe;const c=a.transform(i.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Dd(i)?Promise.resolve(a.transform(i.value,s)).then(c=>({status:n.value,value:c})):Qe);Rt.assertNever(a)}}Ac.create=(e,t,n)=>new Ac({schema:e,typeName:Ze.ZodEffects,effect:t,...lt(n)});Ac.createWithPreprocess=(e,t,n)=>new Ac({schema:t,effect:{type:"preprocess",transform:e},typeName:Ze.ZodEffects,...lt(n)});class nl extends bt{_parse(t){return this._getType(t)===Oe.undefined?Wa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nl.create=(e,t)=>new nl({innerType:e,typeName:Ze.ZodOptional,...lt(t)});class zd extends bt{_parse(t){return this._getType(t)===Oe.null?Wa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zd.create=(e,t)=>new zd({innerType:e,typeName:Ze.ZodNullable,...lt(t)});class dk extends bt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Oe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}dk.create=(e,t)=>new dk({innerType:e,typeName:Ze.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...lt(t)});class fk extends bt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return lv(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Zo(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Zo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}fk.create=(e,t)=>new fk({innerType:e,typeName:Ze.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...lt(t)});class SL extends bt{_parse(t){if(this._getType(t)!==Oe.nan){const r=this._getOrReturnCtx(t);return Ae(r,{code:ye.invalid_type,expected:Oe.nan,received:r.parsedType}),Qe}return{status:"valid",value:t.data}}}SL.create=e=>new SL({typeName:Ze.ZodNaN,...lt(e)});class uOe extends bt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class dT extends bt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Qe:s.status==="dirty"?(n.dirty(),zh(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Qe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new dT({in:t,out:n,typeName:Ze.ZodPipeline})}}class hk extends bt{_parse(t){const n=this._def.innerType._parse(t),r=a=>(Dd(a)&&(a.value=Object.freeze(a.value)),a);return lv(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}hk.create=(e,t)=>new hk({innerType:e,typeName:Ze.ZodReadonly,...lt(t)});var Ze;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ze||(Ze={}));const Dr=zs.create,pk=Ec.create;_c.create;const fT=cv.create;Ld.create;const TV=lk.create;fl.create;const RV=Fs.create,Va=Un.create;uv.create;dv.create;kc.create;const dOe=fv.create,Bc=uk.create,$y=Ud.create;hv.create;nl.create;zd.create;const fOe=Ac.createWithPreprocess,ODe={string:(e=>zs.create({...e,coerce:!0})),number:(e=>Ec.create({...e,coerce:!0})),boolean:(e=>cv.create({...e,coerce:!0})),bigint:(e=>_c.create({...e,coerce:!0})),date:(e=>Ld.create({...e,coerce:!0}))};Va({kind:Bc("Boolean"),value:fT()});Va({kind:Bc("String"),value:Dr()});Va({kind:Bc("Number"),value:pk()});Va({kind:Bc("StringList"),value:RV(Dr())});Va({kind:Bc("Map"),value:dOe(Dr(),Dr())});Va({kind:Bc("MutedFlag"),value:Va({value:fT(),setAt:pk(),setBy:Dr().optional(),expiresAt:pk().optional(),reason:Dr().optional()})});const hOe=e=>e.hierarchyDelimiter.length===0?[e.fullPath]:e.fullPath.split(e.hierarchyDelimiter),Pp=e=>{const t=hOe(e);return t[t.length-1]||e.fullPath},pOe=(e,t)=>{switch(e.kind){case"appointed":case"flagged":return{allowed:!0,mailbox:e.mailbox};case"proposed":return t==="resolved"?{allowed:!0,mailbox:e.mailbox}:{allowed:!1,reason:"unconfirmed"};case"appointment_stale":return{allowed:!1,reason:"stale"};default:return{allowed:!1,reason:"none"}}},mOe=(e,t)=>pOe(e,t).allowed,gOe={[ju.Appointed]:{kind:"appointed",mailbox:null},[ju.Flagged]:{kind:"flagged",mailbox:null},[ju.Reserved]:{kind:"reserved",mailbox:null},[ju.Proposed]:{kind:"proposed",mailbox:null},[ju.Stale]:{kind:"appointment_stale",appointedMailboxId:"",fallback:{kind:"none"}},[ju.None]:{kind:"none"}},vOe=(e,t)=>mOe(gOe[e],t),hT=()=>typeof navigator<"u"&&(navigator.language||navigator.languages?.[0])||"en-US",Ks=(e,t)=>new Intl.NumberFormat(hT(),t).format(e),yOe=/^-?\d+$/,pT=e=>{if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){const t=e.trim();return yOe.test(t)?new Date(Number(t)):new Date(t)}return new Date(Number.NaN)},mT=e=>Number.isFinite(e.getTime()),jh=(e,t)=>{const n=pT(e);return mT(n)?new Intl.DateTimeFormat(hT(),t).format(n):""},bOe=(e,t)=>jh(e,{short:{month:"short",day:"numeric"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{month:"short",day:"numeric",hour:"numeric",minute:"numeric"}}[t]),NDe=e=>{const t=pT(e);if(!mT(t))return"";const n=new Intl.RelativeTimeFormat(hT(),{numeric:"auto"}),r=Date.now(),a=t.getTime()-r,s=Math.round(a/1e3),i=Math.round(a/(1e3*60)),c=Math.round(a/(1e3*60*60)),u=Math.round(a/(1e3*60*60*24)),f=Math.round(a/(1e3*60*60*24*7));return Math.abs(s)<60?n.format(s,"second"):Math.abs(i)<60?n.format(i,"minute"):Math.abs(c)<24?n.format(c,"hour"):Math.abs(u)<7?n.format(u,"day"):Math.abs(f)<4?n.format(f,"week"):bOe(t,"medium")},MDe=e=>{const t=pT(e);if(!mT(t))return"";const n=new Date,r=t.toDateString()===n.toDateString(),a=new Date(n);a.setDate(a.getDate()-1);const s=t.toDateString()===a.toDateString(),i=new Date(n);i.setDate(i.getDate()-6);const c=t>=i&&t<n,u=t.getFullYear()===n.getFullYear();return r?jh(t,{hour:"numeric",minute:"numeric"}):s?"Yesterday":c?jh(t,{weekday:"long"}):u?jh(t,{month:"short",day:"numeric"}):jh(t,{month:"short",day:"numeric",year:"numeric"})},SOe=e=>`Move ${e===1?"1":Ks(e)} ${e===1?"message":"messages"} to Trash?`,PDe=({targets:e,trashByAccount:t,hasAppointments:n,isError:r})=>{if(r)return"unavailable";if(!n||e.length===0)return"unknown";let a=!1,s=!1;for(const i of e){if(i.accountId===void 0)return"unknown";const c=t.get(i.accountId);if(c===void 0)return"unknown";if(c.source==="Stale")return"staleTrash";if(c.mailboxId===void 0)return"noTrash";c.mailboxId===i.mailboxId&&(a=!0,vOe(c.source,"confirmed")||(s=!0))}return s?"unconfirmed":a?"permanent":"trash"},wOe=e=>e==="permanent"||e==="unconfirmed",DDe=(e,t,n={})=>{const r=e===1?"1":Ks(e),a=e===1?"message":"messages",{trashFolderLabel:s,staleFolderLabel:i}=n;if(t==="noTrash")return{title:`Can't delete ${r} ${a} yet`,description:"No folder on this account is set as Trash, so there is nowhere to move the mail. Nothing has been deleted.",confirmLabel:"Pick a Trash folder"};if(t==="staleTrash")return{title:`Can't delete ${r} ${a} yet`,description:i?`The folder you set as this account's Trash — ${i} — is gone from the mail server. Nothing has been deleted.`:"The folder you set as this account's Trash is gone from the mail server. Nothing has been deleted.",confirmLabel:"Pick another folder"};if(t==="unconfirmed"){const c=s?`reader files this account's deleted mail in ${s} because of its name — nobody confirmed it.`:"reader files this account's deleted mail in a folder it matched by name — nobody confirmed it.";return{title:"Confirm this account's Trash folder",description:e>0?`${c} Deleting ${r} ${a} there erases them from the mail server, and that cannot be restored. Nothing has been deleted.`:`${c} Emptying a folder erases everything in it from the mail server, and that cannot be restored. Nothing has been emptied.`,confirmLabel:"Confirm the folder"}}return t==="unavailable"?{title:`Can't delete ${r} ${a}`,description:"reader couldn't read this account's folder settings, so it can't say whether this would move the mail to Trash or erase it. Nothing has been deleted.",confirmLabel:"Sign in again"}:t==="unknown"?{title:`Delete ${r} ${a}?`,description:"Checking where this account files deleted mail…",confirmLabel:"Delete"}:t==="permanent"?{title:`Permanently delete ${r} ${a}?`,description:"They are erased from the mail server and cannot be restored.",confirmLabel:"Delete permanently"}:{title:SOe(e),description:"You can restore them from Trash later.",confirmLabel:"Move to Trash"}},xOe={delete:(e,t)=>`Deleting ${e} of ${t}…`,move:(e,t)=>`Moving ${e} of ${t}…`,markRead:(e,t)=>`Marking ${e} of ${t} as read…`},COe={delete:"moved to Trash",move:"moved",markRead:"marked as read"},OV=(e,t)=>e==="delete"&&wOe(t)?"permanently deleted":COe[e],EOe={delete:"couldn't be deleted",move:"couldn't be moved",markRead:"couldn't be marked as read"},_Oe={delete:"Couldn't delete these messages",move:"Couldn't move these messages",markRead:"Couldn't mark these messages as read"},kOe={delete:"The delete didn't finish.",move:"The move didn't finish.",markRead:"The update didn't finish."},LDe=(e,t,n)=>xOe[e](Ks(t),Ks(n)),AOe=(e,t,n="trash")=>`${Ks(t)} ${OV(e,n)}. Your mail server is still catching up.`,IOe=e=>`Stopped after ${Ks(e)}`,TOe=(e,t,n,r="trash")=>`${Ks(t)} of ${Ks(n)} ${OV(e,r)}. The rest were not sent, apart from the ones already on their way when you stopped — those may still have gone through.`,wL=(e,t)=>t>0?`Stopped after ${Ks(t)} — some messages ${EOe[e]}`:_Oe[e],ROe=e=>kOe[e],OOe={delete:e=>`A delete of ${e} messages`,move:e=>`A move of ${e} messages`,markRead:e=>`Marking ${e} messages as read`},NOe=(e,t,n)=>`${OOe[e](Ks(t))}${n?` in ${n}`:""} is still running — stop it first.`,UDe=e=>e==="delete"?"danger":"info",zDe=(e,t,n,r)=>n.error!==void 0?null:n.cancelled?{severity:"warning",title:IOe(n.done),detail:TOe(e,n.done,t,r)}:{severity:"info",title:AOe(e,n.done,r)},NV=100,MOe=(e,t)=>e.kind==="move"?[t,e.destinationMailboxId]:[t],POe=new AbortController().signal,mk=async e=>e.then(t=>({ok:!0,value:t}),t=>({ok:!1,error:t})),DOe=(e,t=NV)=>{if(e.length===0)return[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},LOe=(e,t=NV)=>{const n=new Map;for(const r of e){const a=n.get(r.accountId);if(a){a.push(r.id);continue}n.set(r.accountId,[r.id])}return[...n.values()].flatMap(r=>DOe(r,t))},MV=async(e,t,n,r)=>{const a=LOe(e),s=e.length;let i=0,c=0;const u=[];for(let f=0;f<a.length;f++){if(r.aborted)return u.push(...a.slice(f).flat()),{done:i,failedIds:u,refused:c,cancelled:!0};const h=a[f],m=await mk(t(h,r));if(!m.ok)return u.push(...a.slice(f).flat()),r.aborted?{done:i,failedIds:u,refused:c,cancelled:!0}:(n({done:i,total:s}),{done:i,failedIds:u,refused:c,cancelled:!1,error:m.error});c+=m.value?.failureCount??0,i+=h.length,n({done:i,total:s})}return{done:i,failedIds:u,refused:c,cancelled:!1}},jDe=async(e,t)=>{await MV(e.map(n=>({id:n,accountId:void 0})),async n=>(await t(n),{successCount:n.length,failureCount:0}),()=>{},POe)},UOe=async(e,t,n,r,a)=>{let s=0,i=0;const c=[];let u;do{if(a.aborted)return{done:s,failedIds:c,refused:i,cancelled:!0};const f=await mk(e(u,a));if(!f.ok)return a.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:f.error};const h=f.value;if(h.ids.length>0){const m=await mk(n(h.ids,a));if(!m.ok)return a.aborted?{done:s,failedIds:c,refused:i,cancelled:!0}:{done:s,failedIds:c,refused:i,cancelled:!1,error:m.error};i+=m.value?.failureCount??0,s+=h.ids.length,r({done:s,total:t})}u=h.continuationToken}while(u);return{done:s,failedIds:c,refused:i,cancelled:!1}},zOe=e=>({done:e.done,total:Math.max(e.total,e.done)}),jOe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.pages),FOe=e=>typeof e=="object"&&e!==null&&Array.isArray(e.items),$Oe=(e,t)=>e===void 0?e:jOe(e)?{...e,pages:e.pages.map(n=>({...n,items:t(n.items)}))}:FOe(e)?{...e,items:t(e.items)}:e,BOe=e=>{const t=[];for(const n of new Set(e))t.push(iRe({path:{mailboxId:n}})),t.push(SV({path:{mailboxId:n}}));return t.push(xV()),t},FDe=(e,t)=>Promise.all(t.map(n=>e.cancelQueries({queryKey:n}))),$De=(e,t)=>t.flatMap(n=>e.getQueriesData({queryKey:n})).filter(n=>n[1]!==void 0).map(([n,r])=>({queryKey:n,data:r})),BDe=(e,t,n)=>{const r=a=>$Oe(a,n);for(const a of t)e.setQueriesData({queryKey:a},r)},HDe=(e,t)=>{for(const n of t)e.setQueryData(n.queryKey,n.data)},HOe=(e,t)=>{for(const n of t)e.invalidateQueries({queryKey:n})},qOe=3e4,VOe=1e3,WOe="The folder couldn't be created on the mail server. Please try again.",GOe="The folder was created but the mail server hasn't confirmed it yet, so nothing was attached to it. It's in your folder list — try again in a moment.",KOe=(e,t)=>new Promise((n,r)=>{if(t?.aborted){r(t.reason);return}const a=setTimeout(()=>{t?.removeEventListener("abort",s),n()},e),s=()=>{clearTimeout(a),r(t?.reason)};t?.addEventListener("abort",s,{once:!0})});async function YOe({fetchMailboxes:e,mailboxId:t,signal:n,timeoutMs:r=qOe,pollIntervalMs:a=VOe,delay:s=KOe,now:i=Date.now}){const c=i()+r;for(;;){n?.throwIfAborted();const f=(await e()).find(h=>h.mailboxId===t);if(f?.syncStatus===iL.synced)return f;if(f?.syncStatus===iL.failed)throw new Error(WOe);if(i()>=c)throw new Error(GOe);await s(a,n)}}function PV(e,t){const n=e.trim();return t?`${t.fullPath}${t.hierarchyDelimiter}${n}`:n}const xL=(e,t)=>{const n=t.length===0?[e]:e.split(t);return n[0]?.toLowerCase()==="inbox"&&(n[0]="INBOX"),n.join(t)};function ZOe({name:e,delimiter:t,parent:n,existingPaths:r}){const a=e.trim();if(a==="")return"Enter a folder name.";if(t.length>0&&a.includes(t))return`A folder name can't contain "${t}".`;const s=xL(PV(a,n),t);if(r.some(c=>xL(c,t)===s))return"A folder with that name already exists."}function XOe(e){const t=Lc(),{data:n}=_d({...sk({path:{accountId:e??""}}),enabled:!!e}),r=hI({...ZTe(),onSuccess:()=>{e&&t.invalidateQueries({queryKey:cT({path:{accountId:e}})})}}),a=_.useRef(new Map),s=_.useCallback(async(c,u,f)=>{if(!e)throw new Error("No account to create the folder in. Pick messages from a single account first.");const h=n?.items??[],m=u?h.find(x=>x.fullPath===u):void 0;if(u&&!m)throw new Error(`Couldn't find the folder "${u}" to create this one inside.`);const g=m?{fullPath:m.fullPath,hierarchyDelimiter:m.hierarchyDelimiter}:void 0,y=PV(c,g);let w=a.current.get(y);if(!w){const x=g?.hierarchyDelimiter??h[0]?.hierarchyDelimiter??"/",E=ZOe({name:c,delimiter:x,parent:g,existingPaths:h.map(A=>A.fullPath)});if(E)throw new Error(E);w=(await r.mutateAsync({path:{accountId:e},body:{fullPath:y,namespaceType:"personal"}})).mailboxId,a.current.set(y,w)}const b=await YOe({mailboxId:w,signal:f,fetchMailboxes:async()=>(await t.fetchQuery({...sk({path:{accountId:e}}),staleTime:0})).items??[]});return a.current.delete(y),{id:b.mailboxId,label:Pp(b),path:b.fullPath}},[r,e,n,t]);return{createFolder:_.useCallback((c,u)=>s(c,"",u),[s]),createFolderIn:s,mutation:r}}const QOe=()=>{const{t:e}=vV("mail",{useSuspense:!1});return _.useCallback((t,n)=>e(t,{defaultValue:n}),[e])},ZE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},qDe={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},Dp=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function By(e){const t=new Map,n=[...e].sort((r,a)=>Dp.indexOf(ZE[r.role])-Dp.indexOf(ZE[a.role]));for(const r of n){if(!r.mailboxId||t.has(r.mailboxId))continue;const a=ZE[r.role];a&&t.set(r.mailboxId,a)}return t}function DV(e,t,n){const r=e.displayNameOverride?.trim();if(r)return r;const a=Pp(e);return!t||!n?a:n(`sidebar.${t}`,a)}const JOe=new Set(["sent","drafts","trash"]),VDe=e=>e===void 0||!JOe.has(e),WDe=100,e4e=e=>e.trim().toLowerCase()==="inbox",t4e=(e,t)=>{if(e.hierarchyDelimiter.length===0)return!1;const n=`${e.fullPath}${e.hierarchyDelimiter}`;return t.some(r=>r.mailboxId!==e.mailboxId&&r.fullPath.startsWith(n))},n4e=["Appointed","Flagged","Reserved"],r4e=(e,t)=>e.mailboxId!==t.mailboxId?!1:e.source==="Stale"?t.specialUse?.includes(e.role)??!1:n4e.includes(e.source),a4e=(e,t)=>t.find(n=>r4e(n,e))?.role;function GDe(e,t,n){if(e4e(e.fullPath))return{deletable:!1,reason:"inbox",message:"The inbox can't be deleted."};const r=a4e(e,n);return r?{deletable:!1,reason:"role",message:`This folder is your ${r} folder. Reassign that role before deleting it.`}:t4e(e,t)?{deletable:!1,reason:"children",message:"This folder has subfolders. Delete them first."}:{deletable:!0}}function s4e(e,t){return e.filter(n=>n.mailboxId!==t)}function KDe(e){return{total:e,moved:0,phase:e===0?"moved":"moving"}}function YDe(e,t){if(e.phase!=="moving")return e;const n=Math.min(e.total,e.moved+Math.max(0,t));return{...e,moved:n,phase:n>=e.total?"moved":"moving"}}function ZDe(e,t){return{...e,phase:"failed",error:t}}function XDe(e){return`Moved ${e.moved} of ${e.total}`}function QDe(e){const t=Math.max(0,Math.floor(e/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}function JDe(e){return e>0?"choose-fate":"confirm-empty"}const o4e=new Set(["outbox","postvak uit","boîte d'envoi","postausgang","buzón de salida","posta in uscita","送信トレイ","送件匣","发件箱","skrzynka nadawcza"]),i4e=e=>{const t=Pp(e).trim().toLowerCase();return o4e.has(t)},CL=Dp.length,l4e=(e,t)=>{const n=By(t);return[...e.filter(a=>{const s=n.get(a.mailboxId);return s==="drafts"||s==="sent"?!1:!i4e(a)})].sort((a,s)=>{const i=n.has(a.mailboxId)?Dp.indexOf(n.get(a.mailboxId)??"inbox"):CL,c=n.has(s.mailboxId)?Dp.indexOf(n.get(s.mailboxId)??"inbox"):CL;return i!==c?i-c:Pp(a).localeCompare(Pp(s),void 0,{sensitivity:"base",numeric:!0})})},c4e=e=>e[0]?.hierarchyDelimiter??"/",u4e=({mailboxes:e,folderAppointments:t,currentMailboxId:n,excludeMailboxId:r,translator:a})=>{const s=l4e(e,t),i=By(t);return(r?s4e(s,r):s).map(u=>({id:u.mailboxId,label:DV(u,i.get(u.mailboxId),a),path:u.fullPath,isCurrent:u.mailboxId===n,messageCount:u.messageCount}))},LV=_.createContext(void 0),EL=Symbol("appoint-failed"),d4e=({children:e})=>{const t=Lc(),n=QOe(),[r,a]=_.useState(null),[s,i]=_.useState(),[c,u]=_.useState({kind:"choosing"}),f=r?.accountId,{data:h}=_d({...uT(),staleTime:1/0,enabled:!!f}),{data:m}=_d({...sk({path:{accountId:f??""}}),enabled:!!f}),{createFolderIn:g}=XOe(f),y=hI({...KTe(),meta:dA(409)}),w=h?.accounts.find(L=>L.accountId===f),b=_.useMemo(()=>m?.items??[],[m]),x=_.useMemo(()=>w?.folderAppointments??[],[w]),E=_.useMemo(()=>u4e({mailboxes:b,folderAppointments:x,translator:n}),[b,x,n]),k=x.find(L=>L.role===r?.role),A=r?.guessedMailboxId??k?.mailboxId,R=b.find(L=>L.mailboxId===A),P=r?.trashFolderLabel??(R?DV(R,By(x).get(R.mailboxId),n):void 0),O=_.useRef(null),T=_.useCallback(()=>{O.current=null,a(null),i(void 0),u({kind:"choosing"})},[]),M=_.useCallback(L=>{O.current=L,a(L),u({kind:"choosing"}),i(L.reason==="unconfirmed"?L.guessedMailboxId:void 0)},[]),z=_.useCallback(L=>{O.current===L&&T()},[T]),q=_.useCallback(L=>{r&&(u({kind:"appointing"}),y.mutateAsync({path:{accountId:r.accountId,role:r.role},body:{mailboxId:L}}).catch(B=>(u({kind:"appoint-failed",cause:zRe(B)?"mailbox-pending":"generic"}),EL)).then(async B=>{B!==EL&&(await t.invalidateQueries({queryKey:bV()}),u({kind:"acting"}),await r.onAppointed(),z(r))}).catch(()=>z(r)))},[r,y,t,z]),U=_.useMemo(()=>({requestAppointment:M}),[M]);return C.jsxs(LV.Provider,{value:U,children:[e,r&&C.jsx(hie,{open:!0,reason:r.reason,action:r.action,folders:E,delimiter:c4e(b),trashFolderLabel:P,guessedMailboxId:A,staleFolderLabel:r.staleFolderLabel??k?.staleAppointmentPath,accountEmail:(h?.accounts.length??0)>1?w?.email:void 0,phase:c,selectedId:s,onSelect:i,onCreateFolder:g,onConfirm:q,onCancel:T})]})},f4e=()=>{const e=_.useContext(LV);if(!e)throw new Error("useRoleAppointmentPrompt must be used within a RoleAppointmentPromptProvider");return e},UV=_.createContext(void 0),h4e=({children:e})=>{const[t,n]=_.useState(void 0),r=_.useRef(void 0),a=_.useRef(void 0),s=_.useRef(void 0),i=_.useRef(new Set),c=Lc(),{pushError:u}=MRe(),{requestAppointment:f}=f4e(),h=_.useRef(async()=>({kind:"ran",outcome:{done:0,failedIds:[],refused:0,cancelled:!1}})),m=_.useCallback(b=>{HOe(c,BOe(MOe(b.action,b.mailboxId)));const x=new Set;if(b.accountId&&x.add(b.accountId),b.source.kind==="targets")for(const E of b.source.targets)E.accountId&&x.add(E.accountId);for(const E of x)c.invalidateQueries({queryKey:cT({path:{accountId:E}})})},[c]),g=_.useCallback(async b=>{const x=s.current;if(x)return{kind:"refused",reason:NOe(x.action.kind,x.matched,x.mailboxLabel)};const E=Symbol("bulk-run"),k=new AbortController;r.current=k,a.current=E,s.current=b,b.claimEnding&&(i.current.add(E),b.claimEnding(()=>i.current.delete(E))),n({action:b.action,mailboxId:b.mailboxId,progress:{done:0,total:b.matched}});const A=T=>{a.current===E&&n(M=>M&&{...M,progress:zOe(T)})},R=b.source.kind==="targets"?await MV(b.source.targets,b.applyBatch,A,k.signal):await UOe(b.source.fetchPage,b.matched,b.applyBatch,A,k.signal),P=i.current.delete(E);a.current===E&&(a.current=void 0,s.current=void 0,n(void 0));const O=R.error?URe(R.error):void 0;return O?f({accountId:O.accountId,role:O.role,reason:O.reason,action:{kind:"delete",count:b.matched},onAppointed:async()=>{const T=await h.current({...b,claimEnding:void 0});T.kind==="refused"&&u({title:wL(b.action.kind,0),detail:T.reason})}}):R.error?u(_Re(wL(b.action.kind,R.done),ROe(b.action.kind),R.error)):R.refused>0&&u({severity:"warning",title:R.refused>1?`Couldn't delete ${R.refused} of ${b.matched} messages yet`:"Couldn't delete this message yet",detail:"Something else moved them while the delete was being prepared. They are back where they now sit — try again."}),P||b.reportEnding?.(b.action.kind,b.matched,R),R.done>0&&m(b),{kind:"ran",outcome:R}},[m,u,f]);h.current=g;const y=_.useCallback(b=>{s.current?.mailboxId===b&&r.current?.abort()},[]);_.useEffect(()=>{const b=i.current;return()=>{r.current?.abort(),r.current=void 0,a.current=void 0,s.current=void 0,b.clear()}},[]);const w=_.useMemo(()=>({run:t,start:g,stop:y}),[t,g,y]);return C.jsx(UV.Provider,{value:w,children:e})},e9e=()=>{const e=_.useContext(UV);if(!e)throw new Error("useBulkRun must be used within a BulkRunProvider");return e},p4e=600,m4e=300,zV="remit logs",g4e="https://github.com/remit-mail/reader/releases/tag/";function jV(e,t){const n=t?.check.lastCheckedAt;return n!==void 0&&n!==e.since}function v4e(e){const t=xa(e);return`The check could not be requested — ${t===void 0?"the server did not answer":`the server answered ${t}`}. Run \`remit logs backend\` to see why.`}const y4e={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function gT(e){return y4e[e]??"reconnecting"}function FV(e){const t=xa(e);return t===404||t===403||t===401}function gk(e,t){const n=e?.run??null;return n===null||n.outcome!==null||n.runId===t?null:n}function $V(e,t){const n=e?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:pv(n.publishedAt)??t,releaseNotesUrl:n.releaseNotesUrl??BV(n.latestVersion),summary:n.summary??""}}function b4e(e){const t=e?.check.schemaVersion,n=e?.currentSchemaVersion;return t===void 0||n===void 0?!1:t>n}function vk(){return p4e+m4e}function yk(e,t){return Math.max(0,Math.floor((t-e)/1e3))}function pv(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function BV(e){return`${g4e}${e}`}function Lp(e,t,n,r,a){return{status:"applying",runId:e,version:t,target:n,phase:r,elapsedSeconds:a}}function S4e(e,t,n){switch(n){case"succeeded":return{status:"succeeded",runId:t.runId,version:t.targetVersion,previousVersion:t.fromVersion,releaseNotesUrl:e.check.releaseNotesUrl??BV(t.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:t.runId,attemptedVersion:t.targetVersion,previousVersion:t.fromVersion,reason:t.message,logsCommand:t.logCommand};case"abandoned":return{status:"abandoned",runId:t.runId,version:t.fromVersion,attemptedVersion:t.targetVersion,reason:t.message,logsCommand:t.logCommand};default:return n}}function w4e(e,t,n,r){const a=e.check,s=pv(a.lastCheckedAt);if(n!==null)return{status:"checkFailed",version:e.currentVersion,reason:n,lastCheckedAt:s};if(t!==null&&!jV(t,e))return{status:"checking",version:e.currentVersion};if(a.status==="failed")return{status:"checkFailed",version:e.currentVersion,reason:a.error??"Remit could not reach the update service.",lastCheckedAt:s};if(a.status==="disabled")return{status:"neverChecked",version:e.currentVersion,lastCheckedAt:s};const i=$V(e,r);return i?{status:"available",version:e.currentVersion,release:i}:{status:"upToDate",version:e.currentVersion,checkedAt:pv(a.lastCheckedAt)??r}}function _L(e,t,n){return{surface:{status:"ready",section:e,overlay:t},releaseHeld:n}}function HV(e,t,n,r){return{status:"ready",section:Lp(e,t,n,"reconnecting",r),overlay:{kind:"applying",target:n,phase:"reconnecting",elapsedSeconds:r}}}function qV(e,t,n,r,a){return{status:"ready",section:Lp(e,t,n,"reconnecting",r),overlay:{kind:"neverCameBack",attemptedVersion:n,previousVersion:t,elapsedSeconds:r,logsCommand:a}}}function x4e(e,t){return{surface:qV(e.runId,e.previousVersion,e.attemptedVersion,t,zV),releaseHeld:!1}}function C4e(e,t,n,r,a){const s=yk(e.startedAt,a),i=t?.currentVersion??e.previousVersion,c=!r&&n!==null&&n.runId===e.runId;if(c&&n!==null&&n.outcome!==null)return null;if(c&&n!==null){const u=gT(n.phase);return _L(Lp(n.runId,i,n.targetVersion,u,s),{kind:"applying",target:n.targetVersion,phase:u,elapsedSeconds:s},!1)}return r?s>vk()?x4e(e,s):{surface:HV(e.runId,e.previousVersion,e.attemptedVersion,s),releaseHeld:!1}:t===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>vk()?{surface:{status:"ready",section:{status:"unreachable",runId:e.runId,previousVersion:e.previousVersion,attemptedVersion:e.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??zV},overlay:{kind:"none"}},releaseHeld:!0}:_L(Lp(e.runId,i,e.attemptedVersion,e.phase,s),{kind:"applying",target:e.attemptedVersion,phase:e.phase,elapsedSeconds:s},!1)}function kL(e){const{data:t,isError:n,dismissedRunId:r,checkPress:a,checkFailure:s,sighting:i,now:c}=e;if(n){const h=gk(t,r);if(h!==null){const m=i!==null&&i.runId===h.runId?i.observedAt:c,g=yk(m,c);return g>vk()?qV(h.runId,h.fromVersion,h.targetVersion,g,h.logCommand):HV(h.runId,h.fromVersion,h.targetVersion,g)}return{status:"ready",section:{status:"checkFailed",version:t?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}}}if(!t)return{status:"loading"};const u=t.run,f=u!==null&&r!==null&&u.runId===r;if(u!==null&&!f&&u.outcome!==null)return{status:"ready",section:S4e(t,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!f&&u.outcome===null){const h=yk(pv(u.startedAt)??c,c),m=gT(u.phase);return{status:"ready",section:Lp(u.runId,u.fromVersion,u.targetVersion,m,h),overlay:{kind:"applying",target:u.targetVersion,phase:m,elapsedSeconds:h}}}return{status:"ready",section:w4e(t,a,s,c),overlay:{kind:"none"}}}function E4e(e){const{data:t,isError:n,error:r,held:a,now:s}=e,i=t?.run??null;if(FV(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const c=C4e(a,t,i,n,s);return c||{surface:kL(e),releaseHeld:!0}}return{surface:kL(e),releaseHeld:!1}}const _4e=3e4,k4e=5e3,A4e=uA,I4e={...uA,...ble},T4e=3e4,R4e="The updater did not answer. Run `remit logs updater` to see why.";function O4e(e,t,n,r){if(FV(e)&&!n)return!1;const a=t!==null&&t.outcome===null;return n||a||r?k4e:_4e}function N4e(){const e=Lc(),[t,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(null),[c,u]=_.useState(null),[f,h]=_.useState(null),m=_.useRef(t);m.current=t;const g=_.useRef(s);g.current=s;const y=e.getQueryData(ok()),w=t!==null||gk(y,r)!==null,b=_d({...gRe(),retry:!1,meta:w?I4e:A4e,refetchInterval:L=>O4e(L.state.error,L.state.data?.run??null,m.current!==null,g.current!==null)}),x=_.useRef(b.data);x.current=b.data;const E=E4e({data:b.data,isError:b.isError,error:b.error,held:t,dismissedRunId:r,checkPress:s,checkFailure:c,sighting:f,now:Date.now()}),k=gk(b.data,r);_.useEffect(()=>{if(k===null){h(L=>L===null?L:null);return}h(L=>L!==null&&L.runId===k.runId?L:{runId:k.runId,observedAt:Date.now()})},[k]);const A=_.useRef(null);A.current=E.surface.status==="ready"&&"runId"in E.surface.section?E.surface.section.runId:null;const{releaseHeld:R}=E;_.useEffect(()=>{R&&n(L=>L===null?L:null)},[R]),_.useEffect(()=>{s!==null&&jV(s,b.data)&&i(null)},[s,b.data]),_.useEffect(()=>{if(s===null)return;const L=s.pressedAt+T4e-Date.now(),B=setTimeout(()=>{i(null),u(R4e)},Math.max(0,L));return()=>clearTimeout(B)},[s]);const{refetch:P}=b,O=_.useCallback(()=>{u(null),i({pressedAt:Date.now(),since:x.current?.check.lastCheckedAt}),yV({query:{refresh:!0},throwOnError:!0}).then(()=>{P()}).catch(L=>{cA(L,uA,"user")&&sl(L),i(null),u(v4e(L))})},[P]),T=_.useCallback(()=>{P()},[P]),M=hI({...vRe(),meta:{softError:!0},onSuccess:L=>{const B=L.run;B!==null&&(n({runId:B.runId,attemptedVersion:B.targetVersion,previousVersion:B.fromVersion,phase:gT(B.phase),startedAt:Date.now()}),a(null)),e.setQueryData(ok(),L)},onError:()=>{P()}}),{mutate:z}=M,q=_.useCallback(L=>{z({body:{targetVersion:L}})},[z]),U=_.useCallback(()=>{A.current!==null&&a(A.current),n(null),i(null),u(null)},[]);return{surface:E.surface,appliesSchemaMigration:b4e(b.data),currentVersion:b.data?.currentVersion,release:$V(b.data,Date.now()),onCheck:O,install:q,onDismissResult:U,onRetryConnection:T}}const vT=_.createContext(null);function M4e({children:e}){const t=N4e();return _.createElement(vT.Provider,{value:t},e)}function P4e(){const e=_.useContext(vT);if(e===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return e}function D4e(){return _.useContext(vT)}function L4e(){const{surface:e,onRetryConnection:t}=P4e();if(e.status!=="ready")return null;const{overlay:n}=e;return n.kind==="applying"?C.jsx(tle,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(nle,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:t}):null}const U4e=({error:e,reset:t,info:n})=>{const r=qv(e),a=sl(e,{recoverable:r,componentStack:n?.componentStack});return C.jsx(aF,{fatal:a,onRetry:r?t:void 0})},Hc=QSe()({component:j4e,errorComponent:U4e}),z4e=()=>{const{t:e}=vV("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:e("accessibility.skipToContent","Skip to main content")})};function j4e(){return C.jsxs(NRe,{children:[C.jsx(d4e,{children:C.jsx(h4e,{children:C.jsxs(M4e,{children:[C.jsxs(ERe,{children:[C.jsx(z4e,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(Bv,{}),children:C.jsx(kB,{})})})]}),C.jsx(L4e,{})]})})}),C.jsx(rF,{})]})}const F4e=$e("/")({beforeLoad:()=>{throw em({to:"/mail/brief"})}}),$4e=qp().apiUrl;Ce.setConfig({baseUrl:$4e,fetch:fz});Ce.interceptors.error.use((e,t)=>e instanceof Hv||!t?e:hle(e,t.status));const B4e=()=>Ke(()=>import("./calendar-boBQgeWi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),H4e=$e("/calendar")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(uT())},component:Ge(B4e,"component")}),q4e=()=>Ke(()=>import("./import-BeylQ7Mh.js"),__vite__mapDeps([11,12,13,14,15,16])),V4e=$e("/import")({component:Ge(q4e,"component")}),VV="/mail/brief",WV="/mail/$mailboxId",GV="/mail/outbox",KV="/mail/flagged";function W4e(e){for(const t of e){if(t.routeId===VV)return{list:"brief"};if(t.routeId===KV)return{list:"flagged"};if(t.routeId===GV)return{list:"outbox"};if(t.routeId===WV)return{list:"mailbox",mailboxId:t.params?.mailboxId}}}function t9e(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);if(t[0]!=="mail")return"";const n=t[1];return n?n==="brief"?VV:n==="flagged"?KV:n==="outbox"?GV:G4e(n):""}function n9e(e){if(typeof e!="object"||e===null)return"";const{q:t}=e;return typeof t=="string"?t:""}function G4e(e){return`${WV}:${e}`}function r9e(e,t){return e===t?!0:e.startsWith(`${t}/`)}function K4e(e){const t=e.split(/[?#]/)[0].split("/").filter(Boolean);return t[0]==="mail"&&t.length>2}const Y4e=()=>iie(oie),yT=["intelligence","nav","shortcuts"],Z4e=["nav","shortcuts"],YV=e=>Z4e.includes(e);function a9e(e,t){return[...e.filter(n=>!YV(n)),...t?[t]:[]]}const X4e=$y(yT);function bk(e){const t=new Set(e.split(",").map(n=>X4e.safeParse(n)).filter(n=>n.success).map(n=>n.data));return yT.filter(n=>t.has(n))}function bT(e){return yT.filter(t=>e.includes(t)).join(",")}function s9e(){const e=AB({select:t=>bT(bk(t.hash))});return _.useMemo(()=>bk(e),[e])}const Q4e=(e,t)=>!YV(e)&&t;function J4e(e){return(t="")=>bT(bk(t).filter(n=>Q4e(n,e)))}function Hy(){const e=Y4e();return _.useMemo(()=>J4e(e),[e])}function o9e(){const e=Qs();return _.useCallback(t=>{e({search:!0,hash:bT(t),replace:!0,hashScrollIntoView:!1})},[e])}function qy(){const e=ywe({select:r=>W4e(r.matches)?.list}),n=gd({from:"/mail/$mailboxId",shouldThrow:!1})?.mailboxId;return _.useMemo(()=>({list:e,mailboxId:n}),[e,n])}function i9e(){const{pathname:e}=AB();return K4e(e)}function l9e(){const e=Qs(),t=Hy(),{list:n,mailboxId:r}=qy();return _.useCallback(()=>{const a=i=>i,s=t;if(n==="flagged"){e({to:"/mail/flagged",search:a,hash:s});return}if(n==="outbox"){e({to:"/mail/outbox",search:a,hash:s});return}if(n==="mailbox"&&r){e({to:"/mail/$mailboxId",params:{mailboxId:r},search:a,hash:s});return}e({to:"/mail/brief",search:a,hash:s})},[e,t,n,r])}const e5e=["year","month","week","day","agenda"],t5e=$y(e5e),ZV="week",n5e=new Set(["month","week","day"]),c9e=e=>n5e.has(e),u9e=e=>e==="agenda";function r5e(e){const t=t5e.safeParse(e);return t.success?t.data:void 0}const a5e=/^\d{4}-\d{2}-\d{2}$/;function s5e(e){if(!a5e.test(e))return;const[t,n,r]=e.split("-").map(Number),a=Date.UTC(t,n-1,r),s=new Date(a);if(s.getUTCFullYear()===t&&s.getUTCMonth()===n-1&&s.getUTCDate()===r)return e}const jd=e=>String(e).padStart(2,"0");function XV(e){return`${e.getFullYear()}-${jd(e.getMonth()+1)}-${jd(e.getDate())}`}function o5e(e,t){return{view:r5e(e.view)??ZV,date:s5e(e.date)??t}}function d9e(e,t,n){const[r,a,s]=e.split("-").map(Number);if(t==="year")return AL(r+n,a,s);if(t==="month")return AL(r,a+n,s);const i=t==="day"?1:7,c=new Date(Date.UTC(r,a-1,s+i*n));return i5e(c)}const i5e=e=>`${e.getUTCFullYear()}-${jd(e.getUTCMonth()+1)}-${jd(e.getUTCDate())}`;function AL(e,t,n){const r=e+Math.floor((t-1)/12),a=((t-1)%12+12)%12+1,s=new Date(Date.UTC(r,a,0)).getUTCDate();return`${r}-${jd(a)}-${jd(Math.min(n,s))}`}const QV=Dr().min(1);function l5e(e){const t=e==null?[]:[e].flat(),n=new Set;for(const r of t){if(typeof r!="string"&&typeof r!="number")continue;const a=QV.safeParse(String(r));a.success&&n.add(a.data)}return[...n].sort()}const JV=Va({calendarId:fOe(l5e,RV(QV)).transform(e=>e.length===0?void 0:e)}),Vy=Va({q:Dr().optional()}),ST=Vy.extend({}),eW=Vy.extend({}),c5e=Vy.extend({}),tW=Vy.extend({}),u5e=ST,XE=Va({body:Dr().optional()}),IL=e=>{const{body:t,...n}=e;return n},wT={brief:ST.extend(XE.shape),flagged:eW.extend(XE.shape),mailbox:tW.extend(XE.shape)},d5e=KSe(Yoe);function f9e({fragment:e,...t}){const n=Hy();return C.jsx(d5e,{...t,hash:e??n})}const f5e=["reply","reply-all","forward"],h5e=$y(f5e),xT="/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}",CT="/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}",ET="/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}";function nW(){const e=gd({from:xT,shouldThrow:!1}),t=gd({from:CT,shouldThrow:!1}),n=gd({from:ET,shouldThrow:!1});return e??t??n}function p5e(){const e=lc({from:xT,shouldThrow:!1}),t=lc({from:CT,shouldThrow:!1}),n=lc({from:ET,shouldThrow:!1});return(e??t??n)?.body}const _T=e=>t=>e===void 0?IL(t):{...IL(t),body:e.body};function kT(){const e=nW(),t=p5e();return _.useMemo(()=>{if(!e)return;const n=h5e.safeParse(e.mode);return n.success?{kind:"reply",mode:n.data,threadId:e.threadId,sourceMessageId:e.messageId,outboxMessageId:e.outboxMessageId,seed:t===void 0?void 0:{body:t}}:{kind:"unknown",segment:e.mode}},[e,t])}function h9e(){return kT()?.kind==="reply"}function rW(e,t,n,r){return e==="flagged"?{to:CT,params:{...n,outboxMessageId:r}}:e==="mailbox"&&t?{to:ET,params:{...n,mailboxId:t,outboxMessageId:r}}:{to:xT,params:{...n,outboxMessageId:r}}}function m5e(e,t){if(e?.kind==="reply"&&e.threadId===t.threadId&&e.sourceMessageId===t.messageId)return e.outboxMessageId}function p9e(){const e=Qs(),t=Hy(),{list:n,mailboxId:r}=qy(),a=kT();return _.useCallback((s,i)=>{e({...rW(n,r,s,i===void 0?m5e(a,s):void 0),search:_T(i),hash:t})},[e,t,n,r,a])}function m9e(e,t,n){if(!(!t||!n))return r=>e({threadId:t,messageId:n,mode:r})}function g9e(){const e=Qs(),{list:t,mailboxId:n}=qy(),r=kT();return _.useCallback(a=>{r?.kind==="reply"&&e({...rW(t,n,{threadId:r.threadId,messageId:r.sourceMessageId,mode:r.mode},a),search:_T(void 0),hash:!0,replace:!0})},[e,t,n,r])}function v9e(){const e=Qs(),t=Hy(),{list:n,mailboxId:r}=qy(),a=nW();return _.useCallback(()=>{if(!a)return;const s=_T(void 0),i=t,c={threadId:a.threadId,messageId:a.messageId};if(n==="flagged"){e({to:"/mail/flagged/$threadId/$messageId",params:c,search:s,hash:i});return}if(n==="mailbox"&&r){e({to:"/mail/$mailboxId/$threadId/$messageId",params:{...c,mailboxId:r},search:s,hash:i});return}e({to:"/mail/brief/$threadId/$messageId",params:c,search:s,hash:i})},[e,t,n,r,a])}const g5e=new Map;function y9e(e){const t=new Map;for(const n of e){const r=By(n.folderAppointments);for(const[a,s]of r)t.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId),i={providerPath:a.fullPath,hierarchyDelimiter:a.hierarchyDelimiter};t.set(a.mailboxId,s?{role:s,...i}:i)}}return t}function b9e(e){const t=[];for(const[n,r]of e)r.role==="junk"&&t.push(n);return t}function S9e(e,t){const n=t[0];if(!e)return n?{mailboxId:n}:{};for(const a of t){const s=e.get(a);if(s&&pse(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=e.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const v5e=_.createContext(null),w9e=()=>_.useContext(v5e)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:g5e,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onRaiseIntelligence:()=>{}},y5e=$y(["match","properties","folder","rule","name","review","run"]),b5e=e=>{const t=y5e.safeParse(e);return t.success?t.data:void 0},S5e=Bc("search"),w5e=e=>{const t=S5e.safeParse(e);return t.success?t.data:void 0},x5e=TV().transform(w5e),C5e=()=>lc({from:"/mail",select:e=>e.wizardFrom}),E5e=TV().transform(b5e),_5e=(e,t)=>$v(e,t)+1,aW=()=>lc({from:"/mail",select:e=>e.wizard}),k5e=()=>{const e=Qs();return _.useCallback((t,n)=>{e({to:".",search:r=>({...r,wizard:t,wizardFrom:n})})},[e])},x9e=()=>{const e=aW(),t=k5e(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),t("match")},[t]),s=_.useCallback(()=>{t("properties","search")},[t]);return{verb:n,start:a,startFromSearch:s,isOpen:e!==void 0}},C9e=e=>{const t=_r(),n=Qs(),r=aW(),a=C5e(),s=_.useRef(r!==void 0),i=_.useRef(a),c=_.useRef(void 0);_.useEffect(()=>{c.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:e,wizardFrom:m})})))()},[e,n]);const u=_.useCallback(m=>{m===r||c.current===m||(c.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{t.history.back()},[t]),h=_.useCallback((m,g)=>{t.history.go(-_5e(m,g))},[t]);return{step:r,goToStep:u,goBack:f,closeWizard:h}},A5e=()=>Ke(()=>import("./mail-Hxhm7JAo.js"),__vite__mapDeps([17,1,18,19,7,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,10,3,4,5,6,8,9,35,36,37])),I5e=Va({q:Dr().optional(),wizard:E5e,wizardFrom:x5e}),T5e=$e("/mail")({loader:({context:{queryClient:e}})=>{e.prefetchQuery(uT()),e.prefetchQuery({...yRe(),staleTime:6e4})},component:Ge(A5e,"component"),validateSearch:I5e}),R5e=()=>Ke(()=>import("./onboarding-BJbB8X0X.js"),__vite__mapDeps([38,39,40,41,20,12,13,27,42,15,16])),O5e=$e("/onboarding")({component:Ge(R5e,"component")});function N5e(){const e=D4e(),t=e?.surface.status==="ready"&&e.surface.section.status==="available";return C.jsx(ej,{label:t?"Update available":void 0,children:C.jsx(Tne,{className:"size-4"})})}const M5e=dA(401);function P5e(){return _d({...cRe(),meta:M5e})}const QE={listed:"Sync warnings",unread:"Warnings could not be read",signedOut:"Session ended"};function D5e(e,t){if(Xj(t))return QE.signedOut;if(t)return QE.unread;if(e&&((e.entries?.length??0)>0||(e.warnings?.length??0)>0))return QE.listed}function L5e(){const e=P5e();return D5e(e.data,e.error)}function U5e(){const e=L5e();return C.jsx(ej,{label:e,children:C.jsx(pc,{className:"size-4"})})}const z5e=()=>Ke(()=>import("./settings-D3ZXcAs5.js"),[]),E9e=[{id:"accounts",label:"Accounts",icon:C.jsx(wz,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(Ine,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(yne,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(mne,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx(kne,{className:"size-4"})},{id:"calendars",label:"Calendars",icon:C.jsx(cne,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(wne,{className:"size-4"})},{id:"warnings",label:"Warnings",icon:C.jsx(U5e,{})},{id:"advanced",label:"Advanced",icon:C.jsx(N5e,{})}],_9e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",calendars:"/settings/calendars",appearance:"/settings/appearance",warnings:"/settings/warnings",advanced:"/settings/advanced"},j5e=$e("/settings")({component:Ge(z5e,"component")}),F5e=$e("/calendar/")({validateSearch:JV,beforeLoad:({search:e})=>{throw em({to:"/calendar/$view/$date",params:{view:ZV,date:XV(new Date)},search:e,replace:!0})}}),$5e=$e("/mail/")({validateSearch:u5e,beforeLoad:({search:e})=>{throw em({to:"/mail/brief",search:e,replace:!0})}}),B5e=()=>Ke(()=>import("./_mailboxId-oLYxQCD3.js"),__vite__mapDeps([43,23,24,1,25,22,26,27,28,29,30,44,45,20,19,31,32,33,7,46,4,18,47,36,42,35,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,34,61,62,63,64,65,66,67,68,69])),H5e=$e("/mail/$mailboxId")({component:Ge(B5e,"component"),validateSearch:tW}),q5e=()=>Ke(()=>import("./brief-CrG0TXf-.js"),__vite__mapDeps([70,1])),V5e=()=>Ke(()=>import("./brief-BDAlZsbh.js"),__vite__mapDeps([71,23,24,1,25,22,26,27,28,29,30,72,45,20,19,46,4,18,7,47,36,42,35,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,34,31,32,33,65,64,73,69])),W5e=$e("/mail/brief")({component:Ge(V5e,"component"),validateSearch:ST,errorComponent:Ge(q5e,"errorComponent")}),G5e=()=>Ke(()=>import("./flagged-DglDNhoh.js"),__vite__mapDeps([74,1])),K5e=()=>Ke(()=>import("./flagged-CB_iIMnJ.js"),__vite__mapDeps([75,23,24,1,25,22,26,27,28,29,30,76,45,20,19,46,4,18,7,47,36,42,35,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,34,61,33,73,69])),Y5e=$e("/mail/flagged")({component:Ge(K5e,"component"),validateSearch:eW,errorComponent:Ge(G5e,"errorComponent")}),Z5e=()=>Ke(()=>import("./outbox-e5Vzaasr.js"),__vite__mapDeps([77,23,24,1,25,22,26,27,28,29,30,78,4,45,20,19,32,56,79,80,62,63,34,9,69])),X5e=$e("/mail/outbox")({component:Ge(Z5e,"component"),validateSearch:c5e}),Q5e=()=>Ke(()=>import("./index-WIu9MfmE.js"),[]),J5e=$e("/settings/")({component:Ge(Q5e,"component")}),e6e=()=>Ke(()=>import("./accounts-SAuzFQ3C.js"),__vite__mapDeps([81,39,40,41,20,12,13,27,42,15,1,79,82,35,83,34,67,26,30,49,84])),t6e=Va({editAccountId:Dr().optional(),focusSmtp:fT().optional(),connected:Dr().optional(),oauthError:Dr().optional(),oauthEmail:Dr().optional(),missingServices:Dr().optional()}),n6e=$e("/settings/accounts")({component:Ge(e6e,"component"),validateSearch:t6e}),r6e=()=>Ke(()=>import("./advanced-DQMn-u_6.js"),__vite__mapDeps([85,82,35,83,34,67,14,29,13,49,15,86,80,68,58,56,84,20])),a6e=$e("/settings/advanced")({component:Ge(r6e,"component")}),s6e=()=>Ke(()=>import("./appearance-GEiZelw-.js"),__vite__mapDeps([87,82,35,83,34,67,84,20])),o6e=$e("/settings/appearance")({component:Ge(s6e,"component")}),i6e=()=>Ke(()=>import("./calendars-BRMCZNMT.js"),__vite__mapDeps([88,82,35,83,34,67,13,52,30,1,33,89,90,91])),l6e=$e("/settings/calendars")({component:Ge(i6e,"component")}),c6e=()=>Ke(()=>import("./filters-B12L_wOK.js"),__vite__mapDeps([92,1,82,35,83,34,67,66,64,60,68])),u6e=$e("/settings/filters")({component:Ge(c6e,"component")}),d6e=()=>Ke(()=>import("./folders-C2jVZZ1E.js"),__vite__mapDeps([93,1,21,82,35,83,34,67,8])),f6e=$e("/settings/folders")({component:Ge(d6e,"component")}),h6e=()=>Ke(()=>import("./labels-CYFWEYMz.js"),__vite__mapDeps([94,30,1,82,35,83,34,67,64])),p6e=$e("/settings/labels")({component:Ge(h6e,"component")}),m6e=()=>Ke(()=>import("./senders-CpVur9bb.js"),__vite__mapDeps([95,1,20,82,35,83,34,67,28,84])),g6e=$e("/settings/senders")({component:Ge(m6e,"component")}),v6e=()=>Ke(()=>import("./suggested-vips-BmIFp0CH.js"),[]),y6e=$e("/settings/suggested-vips")({component:Ge(v6e,"component")}),b6e=()=>Ke(()=>import("./warnings-DRuw_qoM.js"),__vite__mapDeps([96,82,35,83,34,67,1,89,86,10,68,97,37,7,84,20])),S6e=$e("/settings/warnings")({component:Ge(b6e,"component")}),w6e=()=>Ke(()=>import("./_view._date-CIup_Q5W.js"),__vite__mapDeps([98,51,7,52,50,42,53,5,56,1,54,99,28,100,2,83,63,34,59])),x6e=$e("/calendar/$view/$date")({validateSearch:JV,beforeLoad:({params:e,search:t})=>{const n=o5e(e,XV(new Date));if(!(n.view===e.view&&n.date===e.date))throw em({to:"/calendar/$view/$date",params:n,search:t,replace:!0})},component:Ge(w6e,"component")}),C6e=()=>Ke(()=>import("./index-CFZD4Llh.js"),__vite__mapDeps([101,44,45,20,22,19,31,32,33,7,46,4,18,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,62,63,64,65,66,67,68])),E6e=$e("/mail/$mailboxId/")({component:Ge(C6e,"component")}),_6e=()=>Ke(()=>import("./_threadId-fRx1zVFy.js"),[]),k6e=$e("/mail/$mailboxId/$threadId")({component:Ge(_6e,"component")}),A6e=()=>Ke(()=>import("./index-WRGoXiDS.js"),__vite__mapDeps([102,72,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,31,32,33,65,64,73])),I6e=$e("/mail/brief/")({component:Ge(A6e,"component")}),T6e=()=>Ke(()=>import("./_threadId-CaYtB_WN.js"),[]),R6e=$e("/mail/brief/$threadId")({component:Ge(T6e,"component")}),O6e=()=>Ke(()=>import("./index-CtuiSaCS.js"),__vite__mapDeps([103,76,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,33,73])),N6e=$e("/mail/flagged/")({component:Ge(O6e,"component")}),M6e=()=>Ke(()=>import("./_threadId-OVejPT9k.js"),[]),P6e=$e("/mail/flagged/$threadId")({component:Ge(M6e,"component")}),D6e=()=>Ke(()=>import("./index-CcJMBsLJ.js"),__vite__mapDeps([104,78,4,45,20,22,19,32,56,79,80,62,63,34,9])),L6e=$e("/mail/outbox/")({component:Ge(D6e,"component")}),U6e=()=>Ke(()=>import("./index-Cw5aGFb4.js"),__vite__mapDeps([105,47])),z6e=$e("/calendar/$view/$date/")({component:Ge(U6e,"component")}),j6e=()=>Ke(()=>import("./_calendarObjectId-nxT9Cd4b.js"),[]),F6e=$e("/calendar/$view/$date/$calendarObjectId")({component:Ge(j6e,"component")}),$6e=()=>Ke(()=>import("./new-BCF8EX_O.js"),__vite__mapDeps([106,107,51,7,52,57,100,90,1])),B6e=$e("/calendar/$view/$date/new")({component:Ge($6e,"component")}),H6e=()=>Ke(()=>import("./index-mRTnvK5c.js"),__vite__mapDeps([108,44,45,20,22,19,31,32,33,7,46,4,18,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,62,63,64,65,66,67,68])),q6e=$e("/mail/$mailboxId/$threadId/")({component:Ge(H6e,"component")}),V6e=()=>Ke(()=>import("./_messageId-mRTnvK5c.js"),__vite__mapDeps([109,44,45,20,22,19,31,32,33,7,46,4,18,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,62,63,64,65,66,67,68])),W6e=$e("/mail/$mailboxId/$threadId/$messageId")({component:Ge(V6e,"component")}),G6e=()=>Ke(()=>import("./compose._-_outboxMessageId_-D3dfLj3E.js"),__vite__mapDeps([110,24,1,25,22,26,27,28,29,30])),K6e=$e("/mail/$mailboxId/compose/{-$outboxMessageId}")({component:Ge(G6e,"component")}),Y6e=()=>Ke(()=>import("./index-i0DWT1LI.js"),__vite__mapDeps([111,72,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,31,32,33,65,64,73])),Z6e=$e("/mail/brief/$threadId/")({component:Ge(Y6e,"component")}),X6e=()=>Ke(()=>import("./_messageId-i0DWT1LI.js"),__vite__mapDeps([112,72,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,31,32,33,65,64,73])),Q6e=$e("/mail/brief/$threadId/$messageId")({component:Ge(X6e,"component")}),J6e=()=>Ke(()=>import("./compose._-_outboxMessageId_-D3PM2hJA.js"),__vite__mapDeps([113,24,1,25,22,26,27,28,29,30])),eNe=$e("/mail/brief/compose/{-$outboxMessageId}")({component:Ge(J6e,"component")}),tNe=()=>Ke(()=>import("./index-BLnfv0a9.js"),__vite__mapDeps([114,76,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,33,73])),nNe=$e("/mail/flagged/$threadId/")({component:Ge(tNe,"component")}),rNe=()=>Ke(()=>import("./_messageId-CCO8nZeh.js"),__vite__mapDeps([115,76,45,20,22,19,46,4,18,7,47,1,36,42,35,25,26,27,28,29,48,49,50,51,52,53,5,54,55,41,56,57,6,58,59,60,40,30,34,61,33,73])),aNe=$e("/mail/flagged/$threadId/$messageId")({component:Ge(rNe,"component")}),sNe=()=>Ke(()=>import("./compose._-_outboxMessageId_-t0uDuGCl.js"),__vite__mapDeps([116,24,1,25,22,26,27,28,29,30])),oNe=$e("/mail/flagged/compose/{-$outboxMessageId}")({component:Ge(sNe,"component")}),iNe=()=>Ke(()=>import("./compose._-_outboxMessageId_-by9UvleU.js"),__vite__mapDeps([117,24,1,25,22,26,27,28,29,30])),lNe=$e("/mail/outbox/compose/{-$outboxMessageId}")({component:Ge(iNe,"component")}),cNe=()=>Ke(()=>import("./_outboxMessageId-ChboPh8E.js"),__vite__mapDeps([118,78,4,45,20,22,19,32,56,79,80,62,63,34,9])),uNe=$e("/mail/outbox/draft/$outboxMessageId")({component:Ge(cNe,"component")}),dNe=()=>Ke(()=>import("./index-T7UWz5y9.js"),__vite__mapDeps([119,120,97,107,51,7,52,57,55,35,41,56,53,42,21,90,1,99,59,91])),fNe=$e("/calendar/$view/$date/$calendarObjectId/")({component:Ge(dNe,"component")}),hNe=()=>Ke(()=>import("./_recurrenceId-BGJ8Sm-l.js"),__vite__mapDeps([121,120,97,107,51,7,52,57,55,35,41,56,53,42,21,90,1,99,59,91])),pNe=$e("/calendar/$view/$date/$calendarObjectId/$recurrenceId")({component:Ge(hNe,"component")}),mNe=()=>Ke(()=>import("./suggestion._suggestionId-Dxf5-pZK.js"),__vite__mapDeps([122,54,1,51,7,52,47,107,57,59])),gNe=$e("/calendar/$view/$date/suggestion/$suggestionId")({component:Ge(mNe,"component")}),vNe=$e("/mail/$mailboxId/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:wT.mailbox}),yNe=$e("/mail/brief/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:wT.brief}),bNe=$e("/mail/flagged/$threadId/$messageId/$mode/{-$outboxMessageId}")({validateSearch:wT.flagged}),SNe=F4e.update({id:"/",path:"/",getParentRoute:()=>Hc}),AT=H4e.update({id:"/calendar",path:"/calendar",getParentRoute:()=>Hc}),wNe=V4e.update({id:"/import",path:"/import",getParentRoute:()=>Hc}),tf=T5e.update({id:"/mail",path:"/mail",getParentRoute:()=>Hc}),xNe=O5e.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Hc}),Ga=j5e.update({id:"/settings",path:"/settings",getParentRoute:()=>Hc}),CNe=F5e.update({id:"/",path:"/",getParentRoute:()=>AT}),ENe=$5e.update({id:"/",path:"/",getParentRoute:()=>tf}),Wy=H5e.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>tf}),Gy=W5e.update({id:"/brief",path:"/brief",getParentRoute:()=>tf}),Ky=Y5e.update({id:"/flagged",path:"/flagged",getParentRoute:()=>tf}),Yy=X5e.update({id:"/outbox",path:"/outbox",getParentRoute:()=>tf}),_Ne=J5e.update({id:"/",path:"/",getParentRoute:()=>Ga}),kNe=n6e.update({id:"/accounts",path:"/accounts",getParentRoute:()=>Ga}),ANe=a6e.update({id:"/advanced",path:"/advanced",getParentRoute:()=>Ga}),INe=o6e.update({id:"/appearance",path:"/appearance",getParentRoute:()=>Ga}),TNe=l6e.update({id:"/calendars",path:"/calendars",getParentRoute:()=>Ga}),RNe=u6e.update({id:"/filters",path:"/filters",getParentRoute:()=>Ga}),ONe=f6e.update({id:"/folders",path:"/folders",getParentRoute:()=>Ga}),NNe=p6e.update({id:"/labels",path:"/labels",getParentRoute:()=>Ga}),MNe=g6e.update({id:"/senders",path:"/senders",getParentRoute:()=>Ga}),PNe=y6e.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>Ga}),DNe=S6e.update({id:"/warnings",path:"/warnings",getParentRoute:()=>Ga}),lm=x6e.update({id:"/$view/$date",path:"/$view/$date",getParentRoute:()=>AT}),LNe=E6e.update({id:"/",path:"/",getParentRoute:()=>Wy}),IT=k6e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Wy}),UNe=I6e.update({id:"/",path:"/",getParentRoute:()=>Gy}),TT=R6e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Gy}),zNe=N6e.update({id:"/",path:"/",getParentRoute:()=>Ky}),RT=P6e.update({id:"/$threadId",path:"/$threadId",getParentRoute:()=>Ky}),jNe=L6e.update({id:"/",path:"/",getParentRoute:()=>Yy}),FNe=z6e.update({id:"/",path:"/",getParentRoute:()=>lm}),OT=F6e.update({id:"/$calendarObjectId",path:"/$calendarObjectId",getParentRoute:()=>lm}),$Ne=B6e.update({id:"/new",path:"/new",getParentRoute:()=>lm}),BNe=q6e.update({id:"/",path:"/",getParentRoute:()=>IT}),sW=W6e.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>IT}),HNe=K6e.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Wy}),qNe=Z6e.update({id:"/",path:"/",getParentRoute:()=>TT}),oW=Q6e.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>TT}),VNe=eNe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Gy}),WNe=nNe.update({id:"/",path:"/",getParentRoute:()=>RT}),iW=aNe.update({id:"/$messageId",path:"/$messageId",getParentRoute:()=>RT}),GNe=oNe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Ky}),KNe=lNe.update({id:"/compose/{-$outboxMessageId}",path:"/compose/{-$outboxMessageId}",getParentRoute:()=>Yy}),YNe=uNe.update({id:"/draft/$outboxMessageId",path:"/draft/$outboxMessageId",getParentRoute:()=>Yy}),ZNe=fNe.update({id:"/",path:"/",getParentRoute:()=>OT}),XNe=pNe.update({id:"/$recurrenceId",path:"/$recurrenceId",getParentRoute:()=>OT}),QNe=gNe.update({id:"/suggestion/$suggestionId",path:"/suggestion/$suggestionId",getParentRoute:()=>lm}),JNe=vNe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>sW}),eMe=yNe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>oW}),tMe=bNe.update({id:"/$mode/{-$outboxMessageId}",path:"/$mode/{-$outboxMessageId}",getParentRoute:()=>iW}),nMe={CalendarViewDateCalendarObjectIdRecurrenceIdRoute:XNe,CalendarViewDateCalendarObjectIdIndexRoute:ZNe},rMe=OT._addFileChildren(nMe),aMe={CalendarViewDateCalendarObjectIdRoute:rMe,CalendarViewDateNewRoute:$Ne,CalendarViewDateIndexRoute:FNe,CalendarViewDateSuggestionSuggestionIdRoute:QNe},sMe=lm._addFileChildren(aMe),oMe={CalendarIndexRoute:CNe,CalendarViewDateRoute:sMe},iMe=AT._addFileChildren(oMe),lMe={MailMailboxIdThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:JNe},cMe=sW._addFileChildren(lMe),uMe={MailMailboxIdThreadIdMessageIdRoute:cMe,MailMailboxIdThreadIdIndexRoute:BNe},dMe=IT._addFileChildren(uMe),fMe={MailMailboxIdThreadIdRoute:dMe,MailMailboxIdIndexRoute:LNe,MailMailboxIdComposeChar123OutboxMessageIdChar125Route:HNe},hMe=Wy._addFileChildren(fMe),pMe={MailBriefThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:eMe},mMe=oW._addFileChildren(pMe),gMe={MailBriefThreadIdMessageIdRoute:mMe,MailBriefThreadIdIndexRoute:qNe},vMe=TT._addFileChildren(gMe),yMe={MailBriefThreadIdRoute:vMe,MailBriefIndexRoute:UNe,MailBriefComposeChar123OutboxMessageIdChar125Route:VNe},bMe=Gy._addFileChildren(yMe),SMe={MailFlaggedThreadIdMessageIdModeChar123OutboxMessageIdChar125Route:tMe},wMe=iW._addFileChildren(SMe),xMe={MailFlaggedThreadIdMessageIdRoute:wMe,MailFlaggedThreadIdIndexRoute:WNe},CMe=RT._addFileChildren(xMe),EMe={MailFlaggedThreadIdRoute:CMe,MailFlaggedIndexRoute:zNe,MailFlaggedComposeChar123OutboxMessageIdChar125Route:GNe},_Me=Ky._addFileChildren(EMe),kMe={MailOutboxIndexRoute:jNe,MailOutboxComposeChar123OutboxMessageIdChar125Route:KNe,MailOutboxDraftOutboxMessageIdRoute:YNe},AMe=Yy._addFileChildren(kMe),IMe={MailMailboxIdRoute:hMe,MailBriefRoute:bMe,MailFlaggedRoute:_Me,MailOutboxRoute:AMe,MailIndexRoute:ENe},TMe=tf._addFileChildren(IMe),RMe={SettingsAccountsRoute:kNe,SettingsAdvancedRoute:ANe,SettingsAppearanceRoute:INe,SettingsCalendarsRoute:TNe,SettingsFiltersRoute:RNe,SettingsFoldersRoute:ONe,SettingsLabelsRoute:NNe,SettingsSendersRoute:MNe,SettingsSuggestedVipsRoute:PNe,SettingsWarningsRoute:DNe,SettingsIndexRoute:_Ne},OMe=Ga._addFileChildren(RMe),NMe={IndexRoute:SNe,CalendarRoute:iMe,ImportRoute:wNe,MailRoute:TMe,OnboardingRoute:xNe,SettingsRoute:OMe},MMe=Hc._addFileChildren(NMe)._addFileTypes(),PMe=(e,t,n)=>{const r=pwe({routeTree:MMe,context:{queryClient:e},history:n,stringifySearch:pIe,defaultPreload:"intent",defaultPendingComponent:Bv,defaultPendingMs:200,defaultPendingMinMs:300});return r.subscribe("onResolved",a=>{t.recordPageView(a.toLocation.pathname),Dle(a.toLocation.pathname)}),r},Xe=e=>typeof e=="string",_h=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},TL=e=>e==null?"":""+e,DMe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},LMe=/###/g,RL=e=>e&&e.indexOf("###")>-1?e.replace(LMe,"."):e,OL=e=>!e||Xe(e),Jh=(e,t,n)=>{const r=Xe(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(OL(e))return{};const s=RL(r[a]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return OL(e)?{}:{obj:e,k:RL(r[a])}},NL=(e,t,n)=>{const{obj:r,k:a}=Jh(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),c=Jh(e,i,Object);for(;c.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),c=Jh(e,i,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},UMe=(e,t,n,r)=>{const{obj:a,k:s}=Jh(e,t,Object);a[s]=a[s]||[],a[s].push(n)},mv=(e,t)=>{const{obj:n,k:r}=Jh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},zMe=(e,t,n)=>{const r=mv(e,n);return r!==void 0?r:mv(t,n)},lW=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Xe(e[r])||e[r]instanceof String||Xe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lW(e[r],t[r],n):e[r]=t[r]);return e},Fu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jMe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const FMe=e=>Xe(e)?e.replace(/[&<>"'\/]/g,t=>jMe[t]):e;class $Me{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const BMe=[" ",",","?","!",";"],HMe=new $Me(20),qMe=(e,t,n)=>{t=t||"",n=n||"";const r=BMe.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=HMe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},Sk=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;s+=u-s+1;break}a=i}return a},gv=e=>e?.replace("_","-"),VMe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class vv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||VMe,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Xe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new vv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new vv(this.logger,t)}}var js=new vv;class Zy{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,u]=i;for(let f=0;f<u;f++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,u]=i;for(let f=0;f<u;f++)c.apply(c,[t,...r])})}}class ML extends Zy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Xe(r)&&s?c.push(...r.split(s)):c.push(r)));const u=mv(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!i||!Xe(r)?u:Sk(this.data?.[t]?.[n],r,s)}addResource(t,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),NL(this.data,c,a),s.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Xe(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let u=mv(this.data,c)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?lW(u,r,s):u={...u,...r},NL(this.data,c,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var cW={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,a)??t}),t}};const PL={},DL=e=>!Xe(e)&&typeof e!="boolean"&&typeof e!="number";class yv extends Zy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),DMe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=js.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,n)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!qMe(t,r,a);if(i&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Xe(s)?[s]:s};const f=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(a)}return{key:t,namespaces:Xe(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],n),u=c[c.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const U=n.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${U}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${U}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(t,n);let g=m?.res;const y=m?.usedKey||i,w=m?.exactUsedKey||i,b=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Xe(n.count),A=yv.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",P=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,T=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${P}`]||n.defaultValue;let M=g;E&&!g&&A&&(M=T);const z=DL(M),q=Object.prototype.toString.apply(M);if(E&&M&&z&&b.indexOf(q)<0&&!(Xe(x)&&Array.isArray(M))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,M,{...n,ns:c}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=U,m.usedParams=this.getUsedParamsDetails(n),m):U}if(s){const U=Array.isArray(M),L=U?[]:{},B=U?w:y;for(const G in M)if(Object.prototype.hasOwnProperty.call(M,G)){const ie=`${B}${s}${G}`;A&&!g?L[G]=this.translate(ie,{...n,defaultValue:DL(T)?T[G]:void 0,joinArrays:!1,ns:c}):L[G]=this.translate(ie,{...n,joinArrays:!1,ns:c}),L[G]===ie&&(L[G]=M[G])}g=L}}else if(E&&Xe(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,t,n,r));else{let U=!1,L=!1;!this.isValidLookup(g)&&A&&(U=!0,g=T),this.isValidLookup(g)||(L=!0,g=i);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:g,ie=A&&T!==g&&this.options.updateMissing;if(L||U||ie){if(this.logger.log(ie?"updateKey":"missingKey",f,u,i,ie?T:g),s){const pe=this.resolve(i,{...n,keySeparator:!1});pe&&pe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let pe=0;pe<X.length;pe++)$.push(X[pe]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const re=(pe,_e,j)=>{const Y=A&&j!==g?j:G;this.options.missingKeyHandler?this.options.missingKeyHandler(pe,u,_e,Y,ie,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(pe,u,_e,Y,ie,n),this.emit("missingKey",pe,u,_e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(pe=>{const _e=this.pluralResolver.getSuffixes(pe,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&_e.indexOf(`${this.options.pluralSeparator}zero`)<0&&_e.push(`${this.options.pluralSeparator}zero`),_e.forEach(j=>{re([pe],i+j,n[`defaultValue${j}`]||T)})}):re($,i,T))}g=this.extendTranslation(g,t,n,m,r),L&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${u}:${i}`),(L||U)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,U?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,a,s){var i=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Xe(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Xe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||a.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,y=new Array(g),w=0;w<g;w++)y[w]=arguments[w];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=Xe(c)?[c]:c;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=cW.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,c;return Xe(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(u,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Xe(n.count),y=g&&!n.ordinal&&n.count===0,w=n.context!==void 0&&(Xe(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(c=x,!PL[`${b[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(PL[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${b.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const P=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+P)),w){const T=`${h}${this.options.contextSeparator}${n.context}`;k.push(T),g&&(k.push(T+R),n.ordinal&&R.indexOf(O)===0&&k.push(T+R.replace(O,this.options.pluralSeparator)),y&&k.push(T+P))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Xe(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class LL{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=js.create("languageUtils")}getScriptPartFromCode(t){if(t=gv(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=gv(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Xe(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Xe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Xe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Xe(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const UL={zero:0,one:1,two:2,few:3,many:4,other:5},zL={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class WMe{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=js.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=gv(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),zL;if(!t.match(/-|_/))return zL;const u=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(u,n)}return this.pluralRulesCache[s]=i,i}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>UL[a]-UL[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const jL=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=zMe(e,t,n);return!s&&a&&Xe(n)&&(s=Sk(e,n,r),s===void 0&&(s=Sk(t,n,r))),s},JE=e=>e.replace(/\$/g,"$$$$");class GMe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=js.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:c,suffixEscaped:u,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:w,nestingSuffixEscaped:b,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:FMe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?Fu(s):i||"{{",this.suffix=c?Fu(c):u||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?Fu(g):y||Fu("$t("),this.nestingSuffix=w?Fu(w):b||Fu(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let s,i,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const E=jL(n,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const w=y.split(this.formatSeparator),b=w.shift().trim(),x=w.join(this.formatSeparator).trim();return this.format(jL(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:b})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>JE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?JE(this.escape(y)):JE(y)}].forEach(y=>{for(c=0;s=y.regex.exec(t);){const w=s[1].trim();if(i=f(w),i===void 0)if(typeof h=="function"){const x=h(t,s,a);i=Xe(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,w))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),i="";else!Xe(i)&&!this.useRawValueToEscape&&(i=TL(i));const b=y.safeValue(i);if(t=t.replace(s[0],b),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const c=(u,f)=>{const h=this.nestingOptionsSeparator;if(u.indexOf(h)<0)return u;const m=u.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),w=g.match(/"/g);((y?.length??0)%2===0&&!w||w.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,b),`${u}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&!Xe(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),u=h,f=!0}if(s=n(c.call(this,a[1].trim(),i),i),s&&a[0]===t&&!Xe(s))return s;Xe(s)||(s=TL(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),f&&(s=u.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const KMe=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[c,...u]=i.split(":"),f=u.join(":").trim().replace(/^'+|'+$/g,""),h=c.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},$u=e=>{const t={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let c=t[i];return c||(c=e(gv(r),a),t[i]=c),c(n)}};class YMe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=js.create("formatter"),this.options=t,this.formats={number:$u((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:$u((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:$u((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:$u((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:$u((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=$u(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(c=>c.indexOf(")")>-1)){const c=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,c)].join(this.formatSeparator)}return s.reduce((c,u)=>{const{formatName:f,formatOptions:h}=KMe(u);if(this.formats[f]){let m=c;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](c,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return c},t)}}const ZMe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class XMe extends Zy{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=js.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const s={},i={},c={},u={};return t.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),u[m]===void 0&&(u[m]=!0)))}),h||(c[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const a=t.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{UMe(u.loaded,[s],i),ZMe(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(f=>{c[f]||(c[f]={});const h=u.loaded[f];h.length&&h.forEach(m=>{c[f][m]===void 0&&(c[f][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const c=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,s*2,i)},s);return}i(f,h)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const f=u(t,n);f&&typeof f.then=="function"?f.then(h=>c(null,h)).catch(c):c(null,f)}catch(f){c(f)}return}return u(t,n,c)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Xe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Xe(n)&&(n=[n]);const s=this.queueLoad(t,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,c),this.loaded(t,i,c)})}saveMissing(t,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(t,n,r,a,u):h=f(t,n,r,a),h&&typeof h.then=="function"?h.then(m=>c(null,m)).catch(c):c(null,h)}catch(h){c(h)}else f(t,n,r,a,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const FL=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Xe(e[1])&&(t.defaultValue=e[1]),Xe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$L=e=>(Xe(e.ns)&&(e.ns=[e.ns]),Xe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Xe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),T0=()=>{},QMe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Up extends Zy{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$L(t),this.services={},this.logger=js,this.modules={external:[]},QMe(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Xe(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=FL();this.options={...a,...this.options,...$L(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?js.init(s(this.modules.logger),this.options):js.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=YMe;const m=new LL(this.options);this.store=new ML(this.options.resources,this.options);const g=this.services;g.logger=js,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new WMe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new GMe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new XMe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var w=arguments.length,b=new Array(w>1?w-1:0),x=1;x<w;x++)b[x-1]=arguments[x];t.emit(y,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new yv(this.services,this.options),this.translator.on("*",function(y){for(var w=arguments.length,b=new Array(w>1?w-1:0),x=1;x<w;x++)b[x-1]=arguments[x];t.emit(y,...b)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=T0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const u=_h(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T0;const a=Xe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload?.forEach?.(c=>i(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=_h();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=T0),this.services.backendConnector.reload(t,n,s=>{a.resolve(),r(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&cW.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=_h();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const f=Xe(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),a}getFixedT(t,n,r){var a=this;const s=function(i,c){let u;if(typeof c!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];u=a.options.overloadTranslationOptionHandler([i,c].concat(h))}else u={...c};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return u.keyPrefix&&Array.isArray(i)?y=i.map(w=>`${u.keyPrefix}${g}${w}`):y=u.keyPrefix?`${u.keyPrefix}${g}${i}`:i,a.t(y,u)};return Xe(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(c,u)=>{const f=this.services.backendConnector.state[`${c}|${u}`];return f===-1||f===0||f===2};if(n.precheck){const c=n.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(s,t)))}loadNamespaces(t,n){const r=_h();return this.options.ns?(Xe(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=_h();Xe(t)&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new LL(FL());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Up(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T0;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Up(a);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((u,f)=>(u[f]={...this.store.data[f]},Object.keys(u[f]).reduce((h,m)=>(h[m]={...u[f][m]},h),{})),{});s.store=new ML(c,a),s.services.resourceStore=s.store}return s.translator=new yv(s.services,a),s.translator.on("*",function(c){for(var u=arguments.length,f=new Array(u>1?u-1:0),h=1;h<u;h++)f[h-1]=arguments[h];s.emit(c,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kr=Up.createInstance();kr.createInstance=Up.createInstance;kr.createInstance;kr.dir;kr.init;kr.loadResources;kr.reloadResources;kr.use;kr.changeLanguage;kr.getFixedT;kr.t;kr.exists;kr.setDefaultNamespace;kr.hasLoadedNamespace;kr.loadNamespaces;kr.loadLanguages;const{slice:JMe,forEach:e8e}=[];function t8e(e){return e8e.call(JMe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function n8e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const BL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,r8e=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(t);let s=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!BL.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!BL.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},HL={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=r8e(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var a8e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return HL.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=t;n&&typeof document<"u"&&HL.create(n,e,r,a,s)}},s8e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const c=s[i].indexOf("=");c>0&&s[i].substring(0,c)===t&&(n=s[i].substring(c+1))}}return n}},o8e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(t){const i=s.split("&");for(let c=0;c<i.length;c++){const u=i[c].indexOf("=");u>0&&i[c].substring(0,u)===t&&(r=i[c].substring(u+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Bu=null;const qL=()=>{if(Bu!==null)return Bu;try{if(Bu=typeof window<"u"&&window.localStorage!==null,!Bu)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Bu=!1}return Bu};var i8e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&qL())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&qL()&&window.localStorage.setItem(n,e)}};let Hu=null;const VL=()=>{if(Hu!==null)return Hu;try{if(Hu=typeof window<"u"&&window.sessionStorage!==null,!Hu)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Hu=!1}return Hu};var l8e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&VL())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&VL()&&window.sessionStorage.setItem(n,e)}},c8e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},u8e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},d8e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},f8e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let uW=!1;try{document.cookie,uW=!0}catch{}const dW=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];uW||dW.splice(1,1);const h8e=()=>({order:dW,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class fW{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=t8e(n,this.options||{},h8e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(a8e),this.addDetector(s8e),this.addDetector(i8e),this.addDetector(l8e),this.addDetector(c8e),this.addDetector(u8e),this.addDetector(d8e),this.addDetector(f8e),this.addDetector(o8e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!n8e(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}fW.type="languageDetector";const hW=["__proto__","constructor","prototype"];function pW(e){return!(typeof e!="string"||e.length===0||e.length>128||hW.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mW(e){return!(!pW(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}function p8e(e){return!(!pW(e)||e.indexOf("//")>-1)}const m8e={lng:mW,ns:p8e};function R0(e){return typeof e!="string"?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function g8e(e){if(typeof e!="string"||e.length===0)return e;try{const t=new URL(e);return t.username||t.password?(t.username="",t.password="",t.toString()):e}catch{return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function gW(){return typeof XMLHttpRequest=="function"||typeof XMLHttpRequest=="object"}function v8e(e){return!!e&&typeof e.then=="function"}function y8e(e){return v8e(e)?e:Promise.resolve(e)}const b8e=/\{\{(.+?)\}\}/g,WL=/^[/\\]{2}/;function GL(e,t){let n=!1;const r=e.replace(b8e,(a,s)=>{const i=s.trim();if(hW.indexOf(i)>-1)return a;const c=t[i];if(c==null)return a;const u=m8e[i]||mW,f=String(c).split("+");for(const h of f)if(!u(h))return n=!0,a;return f.join("+")});return n||WL.test(r)&&!WL.test(e)?null:r}const fc=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:void 0;let bv;typeof fetch=="function"?bv=fetch:fc&&typeof fc.fetch=="function"&&(bv=fc.fetch);const KL=gW()&&fc?fc.XMLHttpRequest:void 0,S8e=typeof ActiveXObject=="function"&&fc?fc.ActiveXObject:void 0,vW=["__proto__","constructor","prototype"],wk=(e,t)=>{if(t&&typeof t=="object"){let n="";for(const r of Object.keys(t))vW.indexOf(r)>-1||(n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]));if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},YL=(e,t,n,r)=>{const a=s=>{if(!s.ok)return n(s.statusText||"Error",{status:s.status});s.text().then(i=>{n(null,{status:s.status,data:i})}).catch(n)};if(r){const s=r(e,t);if(s instanceof Promise){s.then(a).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(a).catch(n):bv(e,t).then(a).catch(n)},w8e=(e,t,n,r)=>{e.queryStringParams&&(t=wk(t,e.queryStringParams));const a={...typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders};typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(a["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(a["Content-Type"]="application/json");const s=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,i={method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:a,...e._omitFetchOptions?{}:s},c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{YL(t,i,r,c)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return r(u);try{Object.keys(s).forEach(f=>{delete i[f]}),YL(t,i,r,c),e._omitFetchOptions=!0}catch(f){r(f)}}},x8e=(e,t,n,r)=>{n&&typeof n=="object"&&(n=wk("",n).slice(1)),e.queryStringParams&&(t=wk(t,e.queryStringParams));try{const a=KL?new KL:new S8e("MSXML2.XMLHTTP.3.0");a.open(n?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,n&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");let s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(const i of Object.keys(s))vW.indexOf(i)>-1||a.setRequestHeader(i,s[i]);a.onreadystatechange=()=>{a.readyState>3&&r(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(n)}catch(a){console&&console.log(a)}},C8e=(e,t,n,r)=>{if(typeof n=="function"&&(r=n,n=void 0),r=r||(()=>{}),bv&&t.indexOf("file:")!==0)return w8e(e,t,n,r);if(gW()||typeof ActiveXObject=="function")return x8e(e,t,n,r);r(new Error("No fetch and no xhr implementation found!"))},E8e=()=>({loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>{},request:C8e,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}});var yW=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...E8e(),...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){const r=setInterval(()=>this.reload(),this.options.reloadInterval);typeof r=="object"&&typeof r.unref=="function"&&r.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,r,a){let s=this.options.loadPath;typeof this.options.loadPath=="function"&&(s=this.options.loadPath(e,n)),s=y8e(s),s.then(i=>{if(!i)return a(null,{});const c=GL(i,{lng:e.join("+"),ns:n.join("+")});if(c==null){const u=e.map(R0).join(", "),f=n.map(R0).join(", ");return a(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+u+"] namespaces=["+f+"]"),!1)}this.loadUrl(c,a,t,r)})}loadUrl(e,t,n,r){const a=typeof n=="string"?[n]:n,s=typeof r=="string"?[r]:r,i=this.options.parseLoadPayload(a,s),c=R0(g8e(e));this.options.request(this.options,e,i,(u,f)=>{if(f&&(f.status>=500&&f.status<600||!f.status))return t("failed loading "+c+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return t("failed loading "+c+"; status code: "+f.status,!1);if(!f&&u&&u.message){const g=u.message.toLowerCase();if(["failed","fetch","network","load"].find(y=>g.indexOf(y)>-1))return t("failed loading "+c+": "+R0(u.message),!0)}if(u)return t(u,!1);let h,m;try{typeof f.data=="string"?h=this.options.parse(f.data,n,r):h=f.data}catch{m="failed parsing "+c+" to json"}if(m)return t(m,!1);t(null,h)})}create(e,t,n,r,a){if(!this.options.addPath)return;typeof e=="string"&&(e=[e]);const s=this.options.parsePayload(t,n,r);let i=0;const c=[],u=[];e.forEach(f=>{let h=this.options.addPath;typeof this.options.addPath=="function"&&(h=this.options.addPath(f,t));const m=GL(h,{lng:f,ns:t});if(m==null){i+=1,a&&i===e.length&&a(c,u);return}this.options.request(this.options,m,s,(g,y)=>{i+=1,c.push(g),u.push(y),i===e.length&&typeof a=="function"&&a(c,u)})})}reload(){const{backendConnector:e,languageUtils:t,logger:n}=this.services,r=e.language;if(r&&r.toLowerCase()==="cimode")return;const a=[],s=i=>{t.toResolveHierarchy(i).forEach(c=>{a.indexOf(c)<0&&a.push(c)})};s(r),this.allOptions.preload&&this.allOptions.preload.forEach(i=>s(i)),a.forEach(i=>{this.allOptions.ns.forEach(c=>{e.read(i,c,"read",null,null,(u,f)=>{u&&n.warn(`loading namespace ${c} for language ${i} failed`,u),!u&&f&&n.log(`loaded namespace ${c} for language ${i}`,f),e.loaded(`${i}|${c}`,u,f)})})})}};yW.type="backend";kr.use(yW).use(fW).use(kIe).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const _8e=({authProvider:e,rootElementId:t="root"})=>{Nle(),fIe(),e.configure(),$we(e);const n=uIe();xle(n);const r=new fbe({queryCache:new X$({onError:Vwe}),mutationCache:new Z$({onError:Wwe}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=PMe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(t);if(!s)throw new Error(`Root element not found: #${t}`);const{Shell:i}=e;Cwe.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(hV.Provider,{value:n,children:C.jsxs(hbe,{client:r,children:[C.jsx(qwe,{value:e,children:C.jsx(i,{children:C.jsx(vwe,{router:a})})}),!1]})})}))};_8e({authProvider:Hye});export{une as $,ej as A,ap as B,t9e as C,Tre as D,n9e as E,i9e as F,w9e as G,L5e as H,wz as I,Hle as J,HOe as K,rp as L,BOe as M,sk as N,kB as O,YV as P,Fd as Q,XIe as R,cT as S,cA as T,sl as U,qp as V,v5e as W,$o as X,W4e as Y,cne as Z,_ne as _,s9e as a,dle as a$,dne as a0,Sz as a1,Ene as a2,bne as a3,Ane as a4,qk as a5,Sne as a6,ine as a7,pne as a8,AB as a9,hs as aA,Zoe as aB,Nv as aC,Va as aD,fT as aE,Dr as aF,ODe as aG,xDe as aH,fA as aI,x1 as aJ,uA as aK,J7e as aL,eDe as aM,b3 as aN,n6e as aO,f7e as aP,E9e as aQ,xne as aR,_9e as aS,NDe as aT,I7e as aU,eA as aV,mPe as aW,P8e as aX,pPe as aY,Z7e as aZ,P4e as a_,gd as aa,r9e as ab,xPe as ac,vV as ad,uDe as ae,By as af,DV as ag,VDe as ah,f9e as ai,iRe as aj,H5e as ak,h9e as al,Bv as am,U8e as an,SPe as ao,K8e as ap,Jk as aq,xae as ar,pc as as,F as at,MRe as au,Y8e as av,_Re as aw,d7e as ax,c7e as ay,ij as az,o9e as b,Qte as b$,cle as b0,lle as b1,xa as b2,Hv as b3,tL as b4,_3 as b5,a7e as b6,aRe as b7,q7e as b8,W7e as b9,OTe as bA,YDe as bB,o7e as bC,WDe as bD,JDe as bE,XDe as bF,gne as bG,QDe as bH,KTe as bI,C7e as bJ,GDe as bK,ZE as bL,zRe as bM,qDe as bN,ePe as bO,R7e as bP,O7e as bQ,jh as bR,Cne as bS,tDe as bT,uRe as bU,RDe as bV,wDe as bW,P5e as bX,Xj as bY,y9e as bZ,Ine as b_,V7e as ba,bOe as bb,sRe as bc,K7e as bd,G7e as be,Y7e as bf,Sle as bg,v7e as bh,y7e as bi,XOe as bj,uj as bk,tPe as bl,Y4e as bm,nse as bn,QOe as bo,u4e as bp,c4e as bq,nA as br,Bae as bs,nPe as bt,use as bu,KOe as bv,s7e as bw,VIe as bx,KDe as by,ZDe as bz,_d as c,LDe as c$,XV as c0,u9e as c1,c9e as c2,iie as c3,oie as c4,Jd as c5,qn as c6,O1 as c7,B$ as c8,ibe as c9,A8e as cA,EV as cB,pDe as cC,mDe as cD,hDe as cE,fz as cF,dDe as cG,Ke as cH,lA as cI,X8e as cJ,yDe as cK,mRe as cL,Q8e as cM,gDe as cN,fDe as cO,CRe as cP,IL as cQ,dRe as cR,iPe as cS,MDe as cT,wV as cU,DDe as cV,Ks as cW,x9e as cX,aW as cY,zDe as cZ,AOe as c_,pbe as ca,vbe as cb,wbe as cc,ybe as cd,bbe as ce,Nr as cf,Cbe as cg,W7 as ch,Sbe as ci,poe as cj,M8e as ck,ure as cl,pre as cm,dre as cn,xre as co,Hy as cp,qy as cq,l9e as cr,Pp as cs,Sae as ct,wae as cu,lne as cv,oPe as cw,dz as cx,f5 as cy,k8e as cz,uT as d,SDe as d$,UDe as d0,f4e as d1,URe as d2,T7e as d3,Q7e as d4,SV as d5,CTe as d6,p9e as d7,m9e as d8,Zse as d9,gae as dA,sPe as dB,$8e as dC,Qoe as dD,gPe as dE,g9e as dF,v9e as dG,oDe as dH,rDe as dI,jDe as dJ,HDe as dK,bRe as dL,FDe as dM,$De as dN,BDe as dO,$Oe as dP,lDe as dQ,ADe as dR,sDe as dS,l7e as dT,i7e as dU,nDe as dV,IDe as dW,kDe as dX,_De as dY,cDe as dZ,bDe as d_,Xse as da,aoe as db,rPe as dc,doe as dd,uoe as de,lN as df,foe as dg,ooe as dh,CDe as di,tne as dj,Zte as dk,D8e as dl,H8e as dm,z8e as dn,N8e as dp,nne as dq,xz as dr,R8e as ds,fre as dt,loe as du,yae as dv,aPe as dw,bz as dx,pse as dy,mne as dz,Ot as e,O8e as e$,vDe as e0,kT as e1,TDe as e2,qv as e3,rne as e4,EDe as e5,JTe as e6,Hk as e7,PDe as e8,e9e as e9,kne as eA,b7e as eB,S7e as eC,YTe as eD,x7e as eE,w7e as eF,U7e as eG,H7e as eH,lc as eI,o5e as eJ,d9e as eK,N7e as eL,iDe as eM,j7e as eN,F7e as eO,$7e as eP,B7e as eQ,z7e as eR,lTe as eS,E7e as eT,k7e as eU,_7e as eV,J8e as eW,m7e as eX,GTe as eY,p7e as eZ,g7e as e_,TTe as ea,ITe as eb,xV as ec,jOe as ed,FOe as ee,C5e as ef,C9e as eg,cPe as eh,$v as ei,dPe as ej,uPe as ek,fPe as el,hPe as em,S9e as en,T8e as eo,k5e as ep,lPe as eq,B8e as er,xw as es,yPe as et,vPe as eu,Ebe as ev,F8e as ew,aDe as ex,E3 as ey,tse as ez,Kt as f,VTe as f0,j8e as f1,b9e as f2,yRe as f3,pT as f4,M7e as f5,L7e as f6,P7e as f7,fNe as f8,D7e as f9,pNe as fa,G8e as fb,Z8e as fc,fne as fd,Eae as fe,W8e as ff,q8e as fg,V8e as fh,y3 as g,Lc as h,hI as i,C as j,X7e as k,h7e as l,A7e as m,u7e as n,bV as o,a9e as p,r7e as q,_ as r,dA as s,Pe as t,Qs as u,Wk as v,Mv as w,L8e as x,_r as y,ywe as z};
|