libre-webui 0.29.0 → 0.31.0
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/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +24 -7
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/persistence/postgresAutomationWebhooksMigration.d.ts +9 -0
- package/backend/dist/persistence/postgresAutomationWebhooksMigration.d.ts.map +1 -0
- package/backend/dist/persistence/postgresAutomationWebhooksMigration.js +38 -0
- package/backend/dist/persistence/postgresAutomationWebhooksMigration.js.map +1 -0
- package/backend/dist/persistence/postgresMigrationRegistry.d.ts.map +1 -1
- package/backend/dist/persistence/postgresMigrationRegistry.js +4 -0
- package/backend/dist/persistence/postgresMigrationRegistry.js.map +1 -1
- package/backend/dist/persistence/postgresResourceRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/postgresResourceRepositories.js +5 -0
- package/backend/dist/persistence/postgresResourceRepositories.js.map +1 -1
- package/backend/dist/persistence/postgresWorkApprovalsMigration.d.ts +13 -0
- package/backend/dist/persistence/postgresWorkApprovalsMigration.d.ts.map +1 -0
- package/backend/dist/persistence/postgresWorkApprovalsMigration.js +69 -0
- package/backend/dist/persistence/postgresWorkApprovalsMigration.js.map +1 -0
- package/backend/dist/persistence/resourceTypes.d.ts +4 -0
- package/backend/dist/persistence/resourceTypes.d.ts.map +1 -1
- package/backend/dist/persistence/resourceTypes.js.map +1 -1
- package/backend/dist/persistence/sqliteMigrations.d.ts +3 -0
- package/backend/dist/persistence/sqliteMigrations.d.ts.map +1 -1
- package/backend/dist/persistence/sqliteMigrations.js +156 -2
- package/backend/dist/persistence/sqliteMigrations.js.map +1 -1
- package/backend/dist/persistence/sqliteResourceRepositories.d.ts.map +1 -1
- package/backend/dist/persistence/sqliteResourceRepositories.js +7 -0
- package/backend/dist/persistence/sqliteResourceRepositories.js.map +1 -1
- package/backend/dist/persistence/sqliteToPostgresMigration.d.ts.map +1 -1
- package/backend/dist/persistence/sqliteToPostgresMigration.js +32 -1
- package/backend/dist/persistence/sqliteToPostgresMigration.js.map +1 -1
- package/backend/dist/platform/workPersistence/postgresWorkPersistence.d.ts +10 -1
- package/backend/dist/platform/workPersistence/postgresWorkPersistence.d.ts.map +1 -1
- package/backend/dist/platform/workPersistence/postgresWorkPersistence.js +85 -5
- package/backend/dist/platform/workPersistence/postgresWorkPersistence.js.map +1 -1
- package/backend/dist/platform/workPersistence/sqliteWorkPersistence.d.ts +10 -1
- package/backend/dist/platform/workPersistence/sqliteWorkPersistence.d.ts.map +1 -1
- package/backend/dist/platform/workPersistence/sqliteWorkPersistence.js +67 -7
- package/backend/dist/platform/workPersistence/sqliteWorkPersistence.js.map +1 -1
- package/backend/dist/platform/workPersistence/types.d.ts +37 -0
- package/backend/dist/platform/workPersistence/types.d.ts.map +1 -1
- package/backend/dist/platform/workPersistence/types.js.map +1 -1
- package/backend/dist/routes/automations.d.ts.map +1 -1
- package/backend/dist/routes/automations.js +83 -1
- package/backend/dist/routes/automations.js.map +1 -1
- package/backend/dist/routes/ollama.d.ts.map +1 -1
- package/backend/dist/routes/ollama.js +64 -0
- package/backend/dist/routes/ollama.js.map +1 -1
- package/backend/dist/routes/plugins.d.ts.map +1 -1
- package/backend/dist/routes/plugins.js +90 -0
- package/backend/dist/routes/plugins.js.map +1 -1
- package/backend/dist/routes/work.d.ts.map +1 -1
- package/backend/dist/routes/work.js +83 -0
- package/backend/dist/routes/work.js.map +1 -1
- package/backend/dist/services/authService.d.ts +2 -0
- package/backend/dist/services/authService.d.ts.map +1 -1
- package/backend/dist/services/authService.js +2 -0
- package/backend/dist/services/authService.js.map +1 -1
- package/backend/dist/services/automationService.d.ts +13 -1
- package/backend/dist/services/automationService.d.ts.map +1 -1
- package/backend/dist/services/automationService.js +31 -0
- package/backend/dist/services/automationService.js.map +1 -1
- package/backend/dist/services/notificationService.d.ts.map +1 -1
- package/backend/dist/services/notificationService.js +1 -0
- package/backend/dist/services/notificationService.js.map +1 -1
- package/backend/dist/services/ollamaService.d.ts +12 -0
- package/backend/dist/services/ollamaService.d.ts.map +1 -1
- package/backend/dist/services/ollamaService.js +26 -0
- package/backend/dist/services/ollamaService.js.map +1 -1
- package/backend/dist/services/ollamaSettingsService.d.ts +10 -0
- package/backend/dist/services/ollamaSettingsService.d.ts.map +1 -0
- package/backend/dist/services/ollamaSettingsService.js +83 -0
- package/backend/dist/services/ollamaSettingsService.js.map +1 -0
- package/backend/dist/services/workAgentGuidance.d.ts +11 -0
- package/backend/dist/services/workAgentGuidance.d.ts.map +1 -1
- package/backend/dist/services/workAgentGuidance.js +16 -2
- package/backend/dist/services/workAgentGuidance.js.map +1 -1
- package/backend/dist/services/workAgentService.d.ts +56 -0
- package/backend/dist/services/workAgentService.d.ts.map +1 -1
- package/backend/dist/services/workAgentService.js +467 -17
- package/backend/dist/services/workAgentService.js.map +1 -1
- package/backend/dist/services/workApprovalService.d.ts +67 -0
- package/backend/dist/services/workApprovalService.d.ts.map +1 -0
- package/backend/dist/services/workApprovalService.js +273 -0
- package/backend/dist/services/workApprovalService.js.map +1 -0
- package/backend/dist/services/workEventService.d.ts.map +1 -1
- package/backend/dist/services/workEventService.js +25 -0
- package/backend/dist/services/workEventService.js.map +1 -1
- package/backend/dist/services/workPolicyService.d.ts +4 -0
- package/backend/dist/services/workPolicyService.d.ts.map +1 -1
- package/backend/dist/services/workPolicyService.js +19 -0
- package/backend/dist/services/workPolicyService.js.map +1 -1
- package/backend/dist/services/workRuntimeShared.d.ts +2 -0
- package/backend/dist/services/workRuntimeShared.d.ts.map +1 -1
- package/backend/dist/services/workRuntimeShared.js.map +1 -1
- package/backend/dist/services/workTaskService.d.ts +3 -1
- package/backend/dist/services/workTaskService.d.ts.map +1 -1
- package/backend/dist/services/workTaskService.js +21 -4
- package/backend/dist/services/workTaskService.js.map +1 -1
- package/backend/dist/types/index.d.ts +3 -1
- package/backend/dist/types/index.d.ts.map +1 -1
- package/backend/dist/types/index.js.map +1 -1
- package/backend/dist/types/work.d.ts +32 -11
- package/backend/dist/types/work.d.ts.map +1 -1
- package/backend/dist/websocketServer.d.ts.map +1 -1
- package/backend/dist/websocketServer.js +14 -2
- package/backend/dist/websocketServer.js.map +1 -1
- package/backend/package.json +2 -2
- package/deploy/work-computer/Dockerfile +1 -0
- package/deploy/work-computer/tint2rc +1 -0
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
- package/frontend/dist/artifact-runtime/mermaid.js +8 -8
- package/frontend/dist/artifact-runtime/papaparse.js +2 -2
- package/frontend/dist/artifact-runtime/plotly.js +371 -652
- package/frontend/dist/assets/index-B6xMZpzA.js +76 -0
- package/frontend/dist/assets/index-BjipfsCP.css +1 -0
- package/frontend/dist/index.html +28 -28
- package/frontend/dist/js/{ArtifactContainer-CTXxnWRo.js → ArtifactContainer-Bn6iJtaJ.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-CEYuIhJA.js → ArtifactDemoPage-BLF8Ok-o.js} +1 -1
- package/frontend/dist/js/{ArtifactSandboxFrame-DLOy2VOm.js → ArtifactSandboxFrame-Cs1Gu1WB.js} +1 -1
- package/frontend/dist/js/{ArtifactSlideOutPanel-DnTTc1VY.js → ArtifactSlideOutPanel-CuKq5cL0.js} +1 -1
- package/frontend/dist/js/AutomationModal-Dha4KgLI.js +1 -0
- package/frontend/dist/js/AutomationsPage-HcMCRV-D.js +1 -0
- package/frontend/dist/js/{AvatarUpload-DzL00yOL.js → AvatarUpload-CFrlSszY.js} +1 -1
- package/frontend/dist/js/{Button--pDOakZx.js → Button-CgN11mgY.js} +1 -1
- package/frontend/dist/js/{CalendarPage-Bls3TBeZ.js → CalendarPage-D_K-XrG9.js} +1 -1
- package/frontend/dist/js/ChannelsPage-D3CoImOT.js +1 -0
- package/frontend/dist/js/ChatPage-C0iBDbOq.js +14 -0
- package/frontend/dist/js/ConnectModels-D_ZbZQub.js +1 -0
- package/frontend/dist/js/{EvaluationsPage-DSgj9dT5.js → EvaluationsPage-DOJLpauA.js} +2 -2
- package/frontend/dist/js/FirstTimeSetup-DDIP_4Dd.js +1 -0
- package/frontend/dist/js/GalleryPage-C8U_F7Ns.js +1 -0
- package/frontend/dist/js/{HomePage-BebX3v-x.js → HomePage-B_aotoDU.js} +1 -1
- package/frontend/dist/js/LibreClawPage-cr2N6W00.js +1 -0
- package/frontend/dist/js/{Logo-BE9SvCC5.js → Logo-B7o7eaPU.js} +1 -1
- package/frontend/dist/js/{LogoMark-C8x1yyP3.js → LogoMark-D9g6ls0h.js} +1 -1
- package/frontend/dist/js/{ModelManagerModals-CpWAltRA.js → ModelManagerModals-C-J1d7GL.js} +1 -1
- package/frontend/dist/js/NotesPage-Bgr7R_Vm.js +3 -0
- package/frontend/dist/js/{PasswordStrengthMeter-Cdq2oQbc.js → PasswordStrengthMeter-DR-mGbLF.js} +1 -1
- package/frontend/dist/js/PersonasPage-C3D_6lIx.js +13 -0
- package/frontend/dist/js/{PluginUsagePage-jMrpL2Jb.js → PluginUsagePage-DK7MgSiu.js} +1 -1
- package/frontend/dist/js/RichMessageContent-7FxrZ4A8.js +1 -0
- package/frontend/dist/js/{RichMessageContent-CC9QZQKd.js → RichMessageContent-CQkLI7Dt.js} +1 -1
- package/frontend/dist/js/SettingsModal-CIV_Bgsf.js +19 -0
- package/frontend/dist/js/{SettingsToggle-C16gtVyi.js → SettingsToggle-Cw4OhW7B.js} +1 -1
- package/frontend/dist/js/ShareDialog-BCEVgtbN.js +1 -0
- package/frontend/dist/js/{SystemPage-Drd1neLN.js → SystemPage-BNVZtLe9.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-CquciWKV.js → UserManagementPage-pPC_Svj9.js} +1 -1
- package/frontend/dist/js/WorkPage-Q33nIqkM.js +7 -0
- package/frontend/dist/js/{api-2DulPtq1.js → api-D-5hpGht.js} +3 -3
- package/frontend/dist/js/api-WR1CTYO5.js +1 -0
- package/frontend/dist/js/{appNavigation-DAGh98Yj.js → appNavigation-DfHbXBey.js} +1 -1
- package/frontend/dist/js/{appStore-Ci1X0yA-.js → appStore-B136FGdu.js} +2 -2
- package/frontend/dist/js/appVersion-Ck7dYiHe.js +1 -0
- package/frontend/dist/js/ar-Cq-nC6v9.js +2 -0
- package/frontend/dist/js/authStore-6AJLgQsD.js +1 -0
- package/frontend/dist/js/authStore-Ckz37pwu.js +4 -0
- package/frontend/dist/js/axios-CUerAKcc.js +1 -0
- package/frontend/dist/js/{babel-D7QYvEns.js → babel-8afoxhZ7.js} +1 -1
- package/frontend/dist/js/bn-BFSKytYs.js +2 -0
- package/frontend/dist/js/chatStore-Dpm3g_Ln.js +3 -0
- package/frontend/dist/js/classPrivateMethodInitSpec-DE0XIqc_.js +1 -0
- package/frontend/dist/js/config-DJwXAf8i.js +1 -0
- package/frontend/dist/js/cs-BKWXa629.js +2 -0
- package/frontend/dist/js/da-Cra_DJnV.js +2 -0
- package/frontend/dist/js/de-BQa6_UuE.js +2 -0
- package/frontend/dist/js/es-BBOHFrx1.js +2 -0
- package/frontend/dist/js/{estree-D7xT4AeP.js → estree-qxY7ACbu.js} +3 -3
- package/frontend/dist/js/{evaluationsApi-Cu5PH_qi.js → evaluationsApi-BKY-maUM.js} +1 -1
- package/frontend/dist/js/fr-C8kXs5c0.js +2 -0
- package/frontend/dist/js/hi-BEef4bjU.js +2 -0
- package/frontend/dist/js/{html-HvA9vEyn.js → html-B_cUU1Gi.js} +2 -2
- package/frontend/dist/js/id-Djipic7Y.js +2 -0
- package/frontend/dist/js/is-pazl6RLG.js +2 -0
- package/frontend/dist/js/it-DobPbTwl.js +2 -0
- package/frontend/dist/js/ja-DwYNaMNX.js +2 -0
- package/frontend/dist/js/ko-BQfXE7_o.js +2 -0
- package/frontend/dist/js/{markdown-DaF0SXNk.js → markdown-BAF0w-jL.js} +3 -3
- package/frontend/dist/js/{messageCodeStyles-DKq3DH1W.js → messageCodeStyles-CkxF6yil.js} +2 -2
- package/frontend/dist/js/ms-CkPQoE5T.js +2 -0
- package/frontend/dist/js/nl-X_QsDAtu.js +2 -0
- package/frontend/dist/js/pl-CK39gUsy.js +2 -0
- package/frontend/dist/js/{postcss-RCIJRrFm.js → postcss-B2vYq4-H.js} +1 -1
- package/frontend/dist/js/pt-C0dWyR_I.js +2 -0
- package/frontend/dist/js/{router-vendor-BGP0k6Y2.js → router-vendor-CIwPu612.js} +1 -1
- package/frontend/dist/js/ru-sNJkEz1G.js +2 -0
- package/frontend/dist/js/{standalone-BMD7E0jY.js → standalone-BqZmfuRy.js} +2 -2
- package/frontend/dist/js/sv-Bh-uxdF3.js +2 -0
- package/frontend/dist/js/{teamEventStream-C4u_py2D.js → teamEventStream-DUodK0-C.js} +1 -1
- package/frontend/dist/js/th-DPVtwZj2.js +2 -0
- package/frontend/dist/js/tr-BYNM_Tm7.js +2 -0
- package/frontend/dist/js/{ttsBatching-C9kQXFB1.js → ttsBatching-7_-p2nxR.js} +1 -1
- package/frontend/dist/js/{typescript-LOiqVRM1.js → typescript-DokwN-5Y.js} +1 -1
- package/frontend/dist/js/{ui-DUzqxWMk.js → ui-BK53RPmS.js} +2 -2
- package/frontend/dist/js/ui-vendor-CPdYrKhz.js +177 -0
- package/frontend/dist/js/uk-kvNBuYin.js +2 -0
- package/frontend/dist/js/{useChat-6yDWZSTz.js → useChat-Czg2p4Rr.js} +1 -1
- package/frontend/dist/js/useDictation-B2lYEYKn.js +1 -0
- package/frontend/dist/js/useQuery-ClAiNxQ7.js +1 -0
- package/frontend/dist/js/{useTranslation-DrnYb6Cx.js → useTranslation-C7GwbUQA.js} +1 -1
- package/frontend/dist/js/{utils-D9UstwTG.js → utils-nNyg0lfc.js} +1 -1
- package/frontend/dist/js/utils-vendor-CeUf_ngc.js +9 -0
- package/frontend/dist/js/vi-CmLoaP0K.js +2 -0
- package/frontend/dist/js/workApi-BoJb9aVF.js +1 -0
- package/frontend/dist/js/{workApi-BwDBwG62.js → workApi-CFH097y5.js} +3 -3
- package/frontend/dist/js/{yaml-CyhEdlt2.js → yaml-BXEpxPn2.js} +2 -2
- package/frontend/dist/js/zh-D2zvmvrj.js +2 -0
- package/frontend/dist/sw.js +7 -1
- package/package.json +5 -5
- package/frontend/dist/assets/index-O8rtJINp.css +0 -1
- package/frontend/dist/assets/index-f1s6QpC5.js +0 -93
- package/frontend/dist/js/AutomationModal-DB3lrK2K.js +0 -1
- package/frontend/dist/js/AutomationsPage-D3v0Cra1.js +0 -1
- package/frontend/dist/js/ChannelsPage-BnoCniNf.js +0 -1
- package/frontend/dist/js/ChatPage-BMcigJWr.js +0 -14
- package/frontend/dist/js/FirstTimeSetup-BRysXCjP.js +0 -1
- package/frontend/dist/js/GalleryPage-DUcM4dg0.js +0 -1
- package/frontend/dist/js/LibreClawPage-A37KF9_G.js +0 -1
- package/frontend/dist/js/ModelSelector-C1ipX-44.js +0 -1
- package/frontend/dist/js/NotesPage-CXSz7Hde.js +0 -3
- package/frontend/dist/js/PersonasPage-CiOBffF3.js +0 -13
- package/frontend/dist/js/RichMessageContent-CU6WTuOs.js +0 -1
- package/frontend/dist/js/SettingsModal-DP_wKehV.js +0 -19
- package/frontend/dist/js/ShareDialog-BW8iGd_i.js +0 -1
- package/frontend/dist/js/WorkPage-BgASwAGs.js +0 -6
- package/frontend/dist/js/api-BmIdrQfK.js +0 -1
- package/frontend/dist/js/appVersion-BRMnr50t.js +0 -1
- package/frontend/dist/js/ar-CpmN0TY8.js +0 -2
- package/frontend/dist/js/authStore-DIvsSaOt.js +0 -4
- package/frontend/dist/js/authStore-DoxafXFR.js +0 -1
- package/frontend/dist/js/axios-C8xWfUG8.js +0 -1
- package/frontend/dist/js/bn-BwrMg_Oh.js +0 -2
- package/frontend/dist/js/chatStore-DkpmZLOG.js +0 -3
- package/frontend/dist/js/classPrivateMethodInitSpec-DUpGnGHL.js +0 -1
- package/frontend/dist/js/config-Ckn9cand.js +0 -1
- package/frontend/dist/js/cs-f72Fnxz3.js +0 -2
- package/frontend/dist/js/da-qp8lOgkJ.js +0 -2
- package/frontend/dist/js/de-CpcLHr97.js +0 -2
- package/frontend/dist/js/es-gZHsxjG4.js +0 -2
- package/frontend/dist/js/fr-BY5aUofi.js +0 -2
- package/frontend/dist/js/hi-KCn9gIiT.js +0 -2
- package/frontend/dist/js/id-C7U6kS0J.js +0 -2
- package/frontend/dist/js/is-N9Ek-Usz.js +0 -2
- package/frontend/dist/js/it-CqaqWB8D.js +0 -2
- package/frontend/dist/js/ja-C5f9HAm1.js +0 -2
- package/frontend/dist/js/ko-BuoboDvb.js +0 -2
- package/frontend/dist/js/ms-Cu-UWc6j.js +0 -2
- package/frontend/dist/js/nl-nOUc4C_i.js +0 -2
- package/frontend/dist/js/pl-BKKwFhxj.js +0 -2
- package/frontend/dist/js/pt-B18-KYtS.js +0 -2
- package/frontend/dist/js/ru-DflEWNyb.js +0 -2
- package/frontend/dist/js/sv-CU-nPjr8.js +0 -2
- package/frontend/dist/js/th-dOxm2Hhl.js +0 -2
- package/frontend/dist/js/tr-7ThM4F8q.js +0 -2
- package/frontend/dist/js/ui-vendor-C0KwbTD4.js +0 -177
- package/frontend/dist/js/uk-Cl7Pk0Yf.js +0 -2
- package/frontend/dist/js/useQuery-CoWV2PmJ.js +0 -1
- package/frontend/dist/js/utils-vendor-DtsgPwcz.js +0 -9
- package/frontend/dist/js/vi-eljYUBOk.js +0 -2
- package/frontend/dist/js/workApi-uXUZSjsf.js +0 -1
- package/frontend/dist/js/zh-B0sinUfQ.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{_ as t,g as n}from"./markdown-core-CsTEqgp1.js";import{n as r}from"./react-vendor-BsJBHRYW.js";import{t as i}from"./useQuery-ClAiNxQ7.js";import{f as a}from"./router-vendor-CIwPu612.js";import{t as o}from"./useTranslation-C7GwbUQA.js";import{t as s}from"./utils-nNyg0lfc.js";import{h as c,s as l,t as u}from"./chatStore-Dpm3g_Ln.js";import{A as d,Cn as f,Kn as p,Kt as m,Mn as h,Mt as g,Q as _,S as v,Tn as y,U as b,Vt as x,Wt as S,Y as C,bn as w,c as T,er as E,ir as D,n as O,qn as k,t as A,yr as j}from"./ui-vendor-CPdYrKhz.js";import{t as ee}from"./logger-CpCQz3Vi.js";import{C as te,g as ne,t as re,y as M}from"./api-D-5hpGht.js";import{t as ie}from"./authStore-Ckz37pwu.js";var N=e(t(),1),ae=r(),P=n();function F(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function oe({hfTask:e,hfSort:t,canInstallModels:n,loadingHf:r,hfModels:i,expandedHfModel:a,hfGgufFiles:c,loadingGguf:l,pullingModel:u,pullProgress:d,setHfTask:m,setHfSort:h,onToggleHfModel:_,onPullHfGguf:v,onCancelPull:y,onRefreshHfModels:b}){let{t:x}=o();return(0,P.jsxs)(`div`,{className:`flex-1 flex flex-col overflow-hidden`,children:[(0,P.jsx)(`div`,{className:`px-3 py-2 border-b border-gray-200 dark:border-dark-300 flex-shrink-0 space-y-2`,children:(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsxs)(`select`,{value:e,onChange:e=>m(e.target.value),onMouseDown:e=>e.stopPropagation(),className:`flex-1 px-2 py-1.5 rounded-lg border text-xs bg-gray-50 dark:bg-dark-50 border-gray-200 dark:border-dark-300 text-gray-900 dark:text-gray-100`,children:[(0,P.jsx)(`option`,{value:`text-generation`,children:x(`modelManager.huggingface.taskTextGeneration`)}),(0,P.jsx)(`option`,{value:`text-to-speech`,children:x(`modelManager.huggingface.taskTextToSpeech`)}),(0,P.jsx)(`option`,{value:`text-to-image`,children:x(`modelManager.huggingface.taskTextToImage`)}),(0,P.jsx)(`option`,{value:`automatic-speech-recognition`,children:x(`modelManager.huggingface.taskSpeechRecognition`)})]}),(0,P.jsxs)(`select`,{value:t,onChange:e=>h(e.target.value),onMouseDown:e=>e.stopPropagation(),className:`px-2 py-1.5 rounded-lg border text-xs bg-gray-50 dark:bg-dark-50 border-gray-200 dark:border-dark-300 text-gray-900 dark:text-gray-100`,children:[(0,P.jsx)(`option`,{value:`downloads`,children:x(`modelManager.huggingface.sortDownloads`)}),(0,P.jsx)(`option`,{value:`likes`,children:x(`modelManager.huggingface.sortLikes`)}),(0,P.jsx)(`option`,{value:`lastModified`,children:x(`modelManager.huggingface.sortRecent`)})]})]})}),(0,P.jsxs)(`div`,{className:`scroll-region min-h-0 flex-1 scrollbar-thin`,children:[!n&&(0,P.jsx)(`div`,{className:`mx-3 mb-1 mt-3 rounded-lg border border-amber-200 bg-amber-500/10 px-3 py-2 text-xs text-ink dark:border-amber-800 dark:bg-amber-900/20`,children:x(`modelSelector.pullRestricted`)}),r?(0,P.jsx)(`div`,{className:`flex items-center justify-center py-12`,children:(0,P.jsx)(g,{className:`h-6 w-6 animate-spin text-gray-400`})}):i.length===0?(0,P.jsxs)(`div`,{className:`px-4 py-8 text-center text-gray-500 dark:text-gray-400`,children:[(0,P.jsx)(A,{className:`h-8 w-8 mx-auto mb-2 text-gray-300 dark:text-gray-600`}),(0,P.jsx)(`p`,{className:`text-sm`,children:x(`modelManager.huggingface.noModelsFound`)})]}):(0,P.jsx)(`div`,{className:`divide-y divide-gray-100 dark:divide-dark-200`,children:i.map(e=>{let t=a===e.id,r=c[e.id]||[],i=l===e.id;return(0,P.jsxs)(`div`,{className:`bg-white dark:bg-dark-100`,children:[(0,P.jsx)(`div`,{className:`px-3 py-3 cursor-pointer hover:bg-gray-50 dark:hover:bg-dark-200`,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),_(e.id)},children:(0,P.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,P.jsx)(`div`,{className:`flex-shrink-0 rounded-lg bg-yellow-500/20 p-2 dark:bg-yellow-900/30`,children:(0,P.jsx)(A,{className:`h-4 w-4 text-yellow-600 dark:text-yellow-400`})}),(0,P.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(`h4`,{dir:`ltr`,className:`text-sm font-medium text-gray-900 dark:text-gray-100 truncate`,children:e.id}),e.gated&&(0,P.jsx)(`span`,{className:`rounded bg-yellow-500/20 px-1.5 py-0.5 text-xs text-ink dark:bg-yellow-900/30`,children:`Gated`})]}),(0,P.jsxs)(`p`,{className:`text-xs text-gray-500 dark:text-gray-400 mt-0.5`,children:[`by `,e.author]}),(0,P.jsxs)(`div`,{className:`flex items-center gap-3 mt-1.5 text-xs text-gray-400 dark:text-gray-500`,children:[(0,P.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,P.jsx)(f,{className:`h-3 w-3`}),F(e.downloads)]}),(0,P.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,P.jsx)(S,{className:`h-3 w-3`}),F(e.likes)]}),e.pipeline_tag&&(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 rounded bg-gray-100 dark:bg-dark-200`,children:e.pipeline_tag})]})]}),(0,P.jsxs)(`div`,{className:`flex items-center gap-2 flex-shrink-0`,children:[(0,P.jsx)(`a`,{href:`https://huggingface.co/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onMouseDown:e=>e.stopPropagation(),className:`p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200`,children:(0,P.jsx)(w,{className:`h-4 w-4 text-gray-400`})}),(0,P.jsx)(p,{className:s(`h-4 w-4 text-gray-400 transition-transform`,t&&`rotate-180`)})]})]})}),t&&(0,P.jsx)(`div`,{className:`px-3 pb-3 pt-1 border-t border-gray-100 dark:border-dark-200 bg-gray-50 dark:bg-dark-200`,children:i?(0,P.jsxs)(`div`,{className:`flex items-center justify-center py-4`,children:[(0,P.jsx)(g,{className:`h-4 w-4 animate-spin text-gray-400`}),(0,P.jsx)(`span`,{className:`ml-2 text-xs text-gray-500`,children:x(`modelManager.huggingface.checkingGguf`)})]}):r.length===0?(0,P.jsx)(`div`,{className:`py-4 text-center text-xs text-gray-500 dark:text-gray-400`,children:x(`modelManager.huggingface.noGgufAvailable`)}):(0,P.jsxs)(`div`,{className:`space-y-2`,children:[(0,P.jsx)(`div`,{className:`text-xs font-medium text-gray-600 dark:text-gray-300 mb-2`,children:x(`modelManager.huggingface.ggufFilesCount`,{count:r.length})}),r.map(e=>{let t=u===e.ollamaCommand;return(0,P.jsxs)(`div`,{className:`flex items-center gap-2 p-2 rounded-lg bg-white dark:bg-dark-100 border border-gray-200 dark:border-dark-300`,children:[(0,P.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,P.jsx)(`div`,{className:`text-xs font-medium text-gray-800 dark:text-gray-200 truncate`,children:e.filename}),(0,P.jsxs)(`div`,{className:`flex items-center gap-2 mt-0.5 text-xs text-gray-500 dark:text-gray-400`,children:[(0,P.jsx)(`span`,{children:e.sizeFormatted}),e.quantization&&(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 rounded bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-400`,children:e.quantization})]})]}),t?(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(`div`,{className:`text-xs text-gray-500 w-12 text-right`,children:d?.percent===void 0?`...`:`${d.percent}%`}),(0,P.jsx)(`button`,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),y()},className:`p-1.5 rounded-lg text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20`,children:(0,P.jsx)(O,{className:`h-4 w-4`})})]}):n?(0,P.jsxs)(`button`,{onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),v(e.ollamaCommand,e.filename)},disabled:!!u,className:s(`px-3 py-1.5 rounded-lg text-xs font-medium`,`bg-primary-100 dark:bg-primary-900/30`,`text-primary-700 dark:text-primary-400`,`hover:bg-primary-200 dark:hover:bg-primary-900/50`,`disabled:opacity-50 disabled:cursor-not-allowed`),children:[(0,P.jsx)(f,{className:`h-3 w-3 inline mr-1`}),x(`models.pull`)]}):(0,P.jsx)(`span`,{className:`rounded bg-amber-500/20 px-2 py-1 text-[11px] font-medium text-ink dark:bg-amber-900/30`,children:x(`modelSelector.adminOnlyPull`)})]},e.filename)}),u?.startsWith(`hf.co/`)&&u.includes(e.id)&&d?.percent!==void 0&&(0,P.jsx)(`div`,{className:`w-full bg-gray-200 dark:bg-dark-300 rounded-full h-1.5 overflow-hidden mt-2`,children:(0,P.jsx)(`div`,{className:`h-1.5 rounded-full bg-primary-500 transition-all duration-300`,style:{width:`${d.percent}%`}})})]})})]},e.id)})})]}),(0,P.jsxs)(`div`,{className:`px-3 py-2 border-t border-gray-200 dark:border-dark-300 flex items-center justify-between flex-shrink-0`,children:[(0,P.jsxs)(`a`,{href:`https://huggingface.co/models`,target:`_blank`,rel:`noopener noreferrer`,onMouseDown:e=>e.stopPropagation(),className:`text-xs text-primary-600 dark:text-primary-400 hover:underline flex items-center gap-1`,children:[(0,P.jsx)(w,{className:`h-3 w-3`}),x(`modelManager.huggingface.browseAllLink`)]}),(0,P.jsx)(`button`,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),b()},className:`p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200`,children:(0,P.jsx)(C,{className:s(`h-3.5 w-3.5 text-gray-400`,r&&`animate-spin`)})})]})]})}function se({filteredGroups:e,selectedModel:t,showImageGen:n,getModelValue:r,getModelIcon:i,getModelLabel:a,getModelSubLabel:c,onModelSelect:l,onOpenGallery:u}){let{t:d}=o();return(0,P.jsxs)(`div`,{className:`scroll-region min-h-0 flex-1 scrollbar-thin scrollbar-thumb-gray-300 dark:scrollbar-thumb-dark-400`,children:[e.length>0?e.map(e=>(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`div`,{className:`px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-dark-300 border-b border-gray-200 dark:border-dark-400 sticky top-0`,children:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.icon,e.label,` (`,e.models.length,`)`]})}),e.models.map(e=>{let n=r(e);return(0,P.jsx)(`button`,{type:`button`,"data-testid":`model-selector-option`,"data-model-value":n,"aria-pressed":t===n,onClick:()=>l(n),className:s(`block w-full cursor-pointer border-b border-gray-100 px-3 py-3 text-start last:border-b-0 dark:border-dark-200`,`hover:bg-gray-50 dark:hover:bg-dark-200`,`bg-white dark:bg-dark-100 transition-colors`,`focus-visible:relative focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500/50`,t===n&&`bg-primary-50 dark:bg-primary-900/30`),children:(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[i(e),(0,P.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,P.jsx)(`div`,{dir:e.isPersona?`auto`:`ltr`,className:`text-sm font-medium text-gray-900 dark:text-gray-100 truncate`,children:a(e)}),c(e)&&(0,P.jsx)(`div`,{dir:`auto`,className:`text-xs text-gray-500 dark:text-gray-400 truncate`,children:c(e)})]}),t===n&&(0,P.jsx)(k,{className:`h-4 w-4 text-primary-600 dark:text-primary-400 flex-shrink-0`})]})},n)})]},e.type)):(0,P.jsxs)(`div`,{className:`px-4 py-8 text-center text-gray-500 dark:text-gray-400`,children:[(0,P.jsx)(y,{className:`h-8 w-8 mx-auto mb-2 text-gray-300 dark:text-gray-600`}),(0,P.jsx)(`p`,{className:`text-sm`,children:d(`models.noModelsFound`)})]}),n&&(0,P.jsxs)(`div`,{className:`border-t border-gray-200 dark:border-dark-300`,children:[(0,P.jsx)(`div`,{className:`px-3 py-2 text-xs font-semibold text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-dark-300`,children:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(_,{className:`h-4 w-4 text-blue-600 dark:text-blue-400`}),d(`modelSelector.actions`)]})}),(0,P.jsx)(`div`,{onMouseDown:e=>{e.preventDefault(),u()},className:`px-3 py-3 cursor-pointer hover:bg-blue-50 dark:hover:bg-blue-900/20 bg-white dark:bg-dark-100`,children:(0,P.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,P.jsx)(x,{className:`h-4 w-4 text-blue-600 dark:text-blue-400`}),(0,P.jsxs)(`div`,{className:`flex-1`,children:[(0,P.jsx)(`div`,{className:`text-sm font-medium text-gray-900 dark:text-gray-100`,children:d(`gallery.generate`)}),(0,P.jsx)(`div`,{className:`text-xs text-gray-500 dark:text-gray-400`,children:d(`gallery.generateDescription`)})]})]})})]})]})}function ce({libraryCategories:e,libraryCategory:t,canInstallModels:n,loadingLibrary:r,filteredLibraryModels:i,pullingModel:a,pullProgress:c,setLibraryCategory:l,isModelInstalled:u,onModelSelect:d,onPullModel:p,onCancelPull:m,onRefreshLibrary:_}){let{t:v}=o();return(0,P.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:[(0,P.jsx)(`div`,{className:`px-3 py-2 border-b border-gray-200 dark:border-dark-300 flex-shrink-0`,children:(0,P.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.map(e=>(0,P.jsx)(`button`,{onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),l(e)},className:s(`px-2.5 py-1 rounded-full text-xs font-medium transition-colors`,t===e?`bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-400`:`bg-gray-100 dark:bg-dark-200 text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-dark-300`),children:e.charAt(0).toUpperCase()+e.slice(1)},e))})}),(0,P.jsxs)(`div`,{className:`scroll-region min-h-0 flex-1 scrollbar-thin`,children:[!n&&(0,P.jsx)(`div`,{className:`mx-3 mb-1 mt-3 rounded-lg border border-amber-200 bg-amber-500/10 px-3 py-2 text-xs text-ink dark:border-amber-800 dark:bg-amber-900/20`,children:v(`modelSelector.pullRestricted`)}),r?(0,P.jsx)(`div`,{className:`flex items-center justify-center py-12`,children:(0,P.jsx)(g,{className:`h-6 w-6 animate-spin text-gray-400`})}):i.length===0?(0,P.jsxs)(`div`,{className:`px-4 py-8 text-center text-gray-500 dark:text-gray-400`,children:[(0,P.jsx)(h,{className:`h-8 w-8 mx-auto mb-2 text-gray-300 dark:text-gray-600`}),(0,P.jsx)(`p`,{className:`text-sm`,children:v(`models.noModelsFound`)})]}):(0,P.jsx)(`div`,{className:`divide-y divide-gray-100 dark:divide-dark-200`,children:i.map(e=>{let t=u(e.name),r=a===e.name;return(0,P.jsxs)(`div`,{className:s(`px-3 py-3 bg-white dark:bg-dark-100`,t&&`bg-green-50/50 dark:bg-green-900/10`),children:[(0,P.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,P.jsx)(`div`,{className:`p-2 rounded-lg bg-blue-100 dark:bg-blue-900/30 flex-shrink-0`,children:(0,P.jsx)(h,{className:`h-4 w-4 text-blue-600 dark:text-blue-400`})}),(0,P.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(`h4`,{dir:`ltr`,className:`text-sm font-medium text-gray-900 dark:text-gray-100 truncate`,children:e.name}),t&&(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 rounded text-xs bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400`,children:v(`modelSelector.installed`)}),(e.category===`cloud`||e.tags?.includes(`cloud`))&&(0,P.jsxs)(`span`,{className:`px-1.5 py-0.5 rounded text-xs bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400 flex items-center gap-1`,children:[(0,P.jsx)(h,{className:`h-3 w-3`}),`Cloud`]})]}),(0,P.jsx)(`p`,{className:`text-xs text-gray-500 dark:text-gray-400 line-clamp-1 mt-0.5`,children:e.description}),(0,P.jsxs)(`div`,{className:`flex items-center gap-2 mt-1.5`,children:[e.sizes.slice(0,3).map(e=>(0,P.jsx)(`span`,{className:`px-1.5 py-0.5 rounded text-xs bg-gray-100 dark:bg-dark-200 text-gray-600 dark:text-gray-400`,children:e},e)),e.pulls&&(0,P.jsxs)(`span`,{className:`text-xs text-gray-400 dark:text-gray-500 flex items-center gap-1`,children:[(0,P.jsx)(f,{className:`h-3 w-3`}),e.pulls]})]})]}),(0,P.jsx)(`div`,{className:`flex-shrink-0`,children:r?(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(`div`,{className:`text-xs text-gray-500 w-12 text-right`,children:c?.percent===void 0?`...`:`${c.percent}%`}),(0,P.jsx)(`button`,{onClick:m,className:`p-1.5 rounded-lg text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20`,children:(0,P.jsx)(O,{className:`h-4 w-4`})})]}):t?(0,P.jsx)(`button`,{onClick:()=>d(e.name),className:`px-3 py-1.5 rounded-lg text-xs font-medium bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 hover:bg-green-200 dark:hover:bg-green-900/50`,children:v(`modelSelector.use`)}):n?(0,P.jsxs)(`button`,{onClick:()=>p(e.name),className:`px-3 py-1.5 rounded-lg text-xs font-medium bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-400 hover:bg-primary-200 dark:hover:bg-primary-900/50`,children:[(0,P.jsx)(f,{className:`h-3 w-3 inline mr-1`}),v(`modelSelector.pull`)]}):(0,P.jsx)(`span`,{className:`rounded bg-amber-500/20 px-2 py-1 text-[11px] font-medium text-ink dark:bg-amber-900/30`,children:v(`modelSelector.adminOnlyPull`)})})]}),r&&c?.percent!==void 0&&(0,P.jsx)(`div`,{className:`mt-2 w-full bg-gray-200 dark:bg-dark-300 rounded-full h-1.5 overflow-hidden`,children:(0,P.jsx)(`div`,{className:`h-1.5 rounded-full bg-primary-500 transition-all duration-300`,style:{width:`${c.percent}%`}})})]},e.name)})})]}),(0,P.jsxs)(`div`,{className:`px-3 py-2 border-t border-gray-200 dark:border-dark-300 flex items-center justify-between flex-shrink-0`,children:[(0,P.jsxs)(`a`,{href:`https://ollama.com/library`,target:`_blank`,rel:`noopener noreferrer`,onMouseDown:e=>e.stopPropagation(),className:`text-xs text-primary-600 dark:text-primary-400 hover:underline flex items-center gap-1`,children:[(0,P.jsx)(w,{className:`h-3 w-3`}),v(`modelManager.huggingface.browseAllLink`)]}),(0,P.jsx)(`button`,{onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),_()},className:`p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-dark-200`,children:(0,P.jsx)(C,{className:s(`h-3.5 w-3.5 text-gray-400`,r&&`animate-spin`)})})]})]})}var le=ee(`components:model-selector`),I=({models:e,selectedModel:t,onModelChange:n,currentPersona:r,className:f,disabled:g=!1,compact:_=!1,showImageGen:y=!1,onModelsRefresh:x,getModelValue:S,getModelLabel:C,getModelTitle:w,triggerRef:k,triggerTestId:ee,selectTestId:re,ariaLabel:F})=>{let{t:I}=o(),[L,R]=(0,N.useState)(!1),[z,B]=(0,N.useState)(``),[V,H]=(0,N.useState)(`installed`),ue=(0,N.useRef)(null),de=(0,N.useRef)(null),fe=(0,N.useRef)(null),pe=(0,N.useRef)(null),me=a(),{user:he,systemInfo:ge}=ie(),U=he?.role===`admin`||ge?.requiresAuth===!1,[W,_e]=(0,N.useState)(`all`),[ve,ye]=(0,N.useState)(``),[be,xe]=(0,N.useState)(`text-generation`),[Se,Ce]=(0,N.useState)(`downloads`),[we,Te]=(0,N.useState)(``),[Ee,De]=(0,N.useState)(null),[Oe,ke]=(0,N.useState)({}),[Ae,je]=(0,N.useState)(null),[G,K]=(0,N.useState)(null),[Me,q]=(0,N.useState)(null),[Ne,J]=(0,N.useState)(null),Pe=[`all`,`general`,`coding`,`reasoning`,`vision`,`embedding`,`cloud`],Fe=[{type:`legacy`,label:I(`modelSelector.providerNotRecorded`,`Provider not recorded`),icon:(0,P.jsx)(E,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>e.isLegacySelection),color:`gray`},{type:`unavailable`,label:I(`modelSelector.unavailableSelections`,`Unavailable selections`),icon:(0,P.jsx)(O,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>e.isUnavailable&&!e.isLegacySelection),color:`gray`},{type:`personas`,label:I(`modelSelector.personas`),icon:(0,P.jsx)(T,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>e.isPersona&&!e.isUnavailable),color:`purple`},{type:`agents`,label:I(`modelSelector.agentModels`,`Agents`),icon:(0,P.jsx)(v,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>e.isAgent&&!e.isUnavailable),color:`green`},{type:`ollama`,label:I(`modelSelector.ollamaModels`),icon:(0,P.jsx)(D,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>c(e)&&!e.name.includes(`embed`)),color:`green`},{type:`plugins`,label:I(`modelSelector.pluginModels`),icon:(0,P.jsx)(A,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}),models:e.filter(e=>e.isPlugin&&!e.isUnavailable),color:`green`}].filter(e=>e.models.length>0).map(e=>({...e,models:e.models.filter(e=>e.name.toLowerCase().includes(z.toLowerCase())||e.personaName&&e.personaName.toLowerCase().includes(z.toLowerCase())||e.pluginName&&e.pluginName.toLowerCase().includes(z.toLowerCase()))})).filter(e=>e.models.length>0),Y=e=>S?.(e)??e.name,Ie=u(e=>e.modelMetadata),X=u(e=>e.personas),Z=e.find(e=>Y(e)===t),Le=e=>{if(!e.name.startsWith(`persona:`))return;let t=e.name.slice(8),n=t;try{n=decodeURIComponent(t)}catch{}let r=X[t]??X[n];if(r?.name)return r.name;if(e.personaName&&e.personaName!==t)return e.personaName},Re=e=>{if(!e.name.startsWith(`persona:`))return;let t=e.name.slice(8),n=t;try{n=decodeURIComponent(t)}catch{}return X[t]??X[n]};(0,N.useImperativeHandle)(k,()=>fe.current);let Q=(0,N.useCallback)((e=!0)=>{R(!1),B(``),e&&window.requestAnimationFrame(()=>fe.current?.focus())},[]),{data:ze=[],isLoading:Be,refetch:Ve}=i({queryKey:[`ollama-library-selector`,ve,W===`cloud`?`cloud`:`all`],queryFn:async()=>{let e=await M.getLibraryModels({search:ve||void 0,sort:`popular`,category:W===`cloud`?`cloud`:void 0});return e.success&&e.data?e.data:[]},enabled:L&&V===`ollama`}),{data:He=[],isLoading:Ue,refetch:We}=i({queryKey:[`hf-models-selector`,be,we,Se],queryFn:async()=>{let e=await te.getModels({task:be,search:we||void 0,sort:Se,limit:30});return e.success&&e.data?e.data:[]},enabled:L&&V===`huggingface`}),Ge=ze.filter(e=>{let t=!z||e.name.toLowerCase().includes(z.toLowerCase())||e.description.toLowerCase().includes(z.toLowerCase()),n=W===`all`||e.category===W;return t&&n}),Ke=(0,N.useCallback)(async e=>{let[t,n]=e.split(`/`);if(!(!t||!n)){je(e);try{let r=await te.getGgufFiles(t,n);r.success&&r.data&&ke(t=>({...t,[e]:r.data}))}catch(e){le.error(`Failed to load GGUF files:`,e)}finally{je(null)}}},[]),qe=(0,N.useCallback)(e=>{Ee===e?De(null):(De(e),Oe[e]||Ke(e))},[Ee,Oe,Ke]),Je=(0,N.useCallback)((e,t)=>{if(!U){j.error(I(`modelSelector.pullRestricted`));return}if(!G){K(e),q({status:`starting`});try{let n=M.pullModelStream(e,e=>{q(e)},()=>{q(null),K(null),J(null),j.success(I(`modelDownload.success`,{name:t})),x?.()},e=>{q(null),K(null),J(null),j.error(I(`modelDownload.failed`,{error:e}))});J(()=>n)}catch{q(null),K(null),j.error(I(`modelDownload.startFailed`))}}},[U,x,G,I]);(0,N.useEffect)(()=>{let e=setTimeout(()=>{V===`huggingface`?Te(z):V===`ollama`&&ye(z)},300);return()=>clearTimeout(e)},[z,V]),(0,N.useEffect)(()=>{if(!L)return;let e=e=>{if(e.key===`Escape`){e.preventDefault(),Q();return}if(e.key===`Tab`&&de.current){let t=Array.from(de.current.querySelectorAll(`button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])`)).filter(e=>e.offsetParent!==null),n=t[0],r=t[t.length-1];if(!n||!r)return;e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())}};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[Q,L]),(0,N.useEffect)(()=>{L&&pe.current&&pe.current.focus()},[L]);let Ye=async t=>{let r=e.find(e=>Y(e)===t)??e.find(e=>!e.isPlugin&&!e.isPersona&&e.name===t),i=r?Y(r):t,a=r?.name??t;Q();try{let e=await M.listRunningModels();if(e.success&&e.data){let t=e.data;t.length>0&&(r?.isPlugin!==!0&&t.some(e=>e.name===a||a.startsWith(`persona:`))||await M.unloadAllModels())}}catch(e){le.warn(`Failed to unload models before switch:`,e)}n({target:{value:i}})},Xe=async e=>{if(!U){j.error(I(`modelSelector.pullRestricted`));return}if(!G){K(e),q({status:`starting`});try{let t=M.pullModelStream(e,e=>{q(e)},()=>{q(null),K(null),J(null),j.success(I(`modelDownload.success`,{name:e})),x?.()},e=>{q(null),K(null),J(null),j.error(I(`modelDownload.failed`,{error:e}))});J(()=>t)}catch{q(null),K(null),j.error(I(`modelDownload.startFailed`))}}},Ze=()=>{Ne&&(Ne(),J(null),K(null),q(null),j.success(I(`modelDownload.cancelled`)))},Qe=t=>e.some(e=>c(e)&&(e.name===t||e.name.startsWith(t+`:`))),$e=e=>{let t=Ie[l(e)]?.avatar;if(t&&!e.isPersona)return(0,P.jsx)(`img`,{src:t,alt:``,className:`h-4 w-4 shrink-0 rounded-full object-cover`});if(e.isPersona||e.isLegacySelection){let t=Re(e);if(t)return(0,P.jsx)(`img`,{src:ne(t,64),alt:``,className:`h-4 w-4 shrink-0 rounded object-cover`})}return e.isLegacySelection?(0,P.jsx)(E,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}):e.isPersona?(0,P.jsx)(T,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}):e.isPlugin?(0,P.jsx)(A,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`}):(0,P.jsx)(D,{className:`h-4 w-4 text-gray-500 dark:text-dark-600`})},$=e=>{if(C)return C(e);let t=Ie[l(e)]?.label;return t&&!e.isPersona?t:e.isLegacySelection?`${Le(e)??e.name} (${I(`modelSelector.legacyProvider`,`provider not recorded`)})`:e.isPersona?Le(e)||e.personaName||e.name:e.isAgent?e.isUnavailable?`${e.agentName||e.name} (${I(`modelSelector.unavailable`,`unavailable`)})`:e.agentName||e.name:(e.isPlugin,e.isUnavailable?`${e.name} (${I(`modelSelector.unavailable`,`unavailable`)})`:e.name)},et=e=>e.isLegacySelection?e.isUnavailable?I(`modelSelector.providerUnavailable`,`provider unavailable`):I(`modelSelector.reselectProvider`,`reselect a provider to pin this model`):e.isPersona?`via ${e.model}`:e.isPlugin?e.isUnavailable?`via ${e.pluginName||e.pluginId} · ${I(`modelSelector.providerUnavailable`,`provider unavailable`)}`:`via ${e.pluginName}`:e.isUnavailable?I(`modelSelector.providerUnavailable`,`provider unavailable`):null;return(0,P.jsxs)(`div`,{className:s(`relative`,f),ref:ue,children:[(0,P.jsxs)(`button`,{ref:fe,"data-testid":ee,type:`button`,onClick:()=>!g&&R(!L),disabled:g,"aria-haspopup":`dialog`,"aria-expanded":L,"aria-label":F&&Z?`${F}: ${$(Z)}`:F,className:s(_?`h-9 sm:h-10 px-2.5 flex items-center justify-between text-start w-full`:`w-full flex items-center justify-between gap-2 px-3 py-2.5 text-start`,`border border-black/[0.06] bg-gray-100/70 dark:border-white/[0.06] dark:bg-dark-300/70`,`rounded-xl text-sm hover:bg-gray-100 dark:hover:bg-dark-300`,`transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500/40`,g?`opacity-50 cursor-not-allowed`:`cursor-pointer`),title:_?Z?w?.(Z)??$(Z):I(`modelSelector.selectModel`):void 0,children:[(()=>{if(!Z)return _?(0,P.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[(0,P.jsx)(D,{className:`h-4 w-4`}),(0,P.jsx)(`span`,{className:`text-xs font-medium text-gray-400 dark:text-gray-500 truncate`,children:I(`modelSelector.selectModel`)})]}):I(`modelSelector.selectModel`);if(_){let e=$(Z);return(0,P.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[$e(Z),(0,P.jsx)(`span`,{dir:Z.isPersona?`auto`:`ltr`,className:`text-xs font-medium text-gray-700 dark:text-gray-200 truncate`,children:e})]})}let e=$(Z),t=et(Z);return(0,P.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[$e(Z),(0,P.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,P.jsx)(`span`,{dir:Z.isPersona?`auto`:`ltr`,className:`text-sm font-medium truncate`,children:e}),t&&(0,P.jsx)(`span`,{dir:`auto`,className:`text-xs text-gray-500 dark:text-gray-400 truncate`,children:t})]}),Z.isPersona&&r&&(0,P.jsxs)(`div`,{className:`flex items-center gap-1 ms-auto`,children:[(0,P.jsx)(E,{className:`h-3 w-3 text-gray-500 dark:text-dark-600`}),r.embedding_model&&(0,P.jsx)(d,{className:`h-3 w-3 text-gray-400 dark:text-dark-500`})]})]})})(),(0,P.jsx)(p,{className:s(_?`h-3 w-3`:`h-4 w-4`,`text-gray-400 flex-shrink-0 transition-transform duration-150`,L&&`rotate-180`)})]}),L&&(0,ae.createPortal)((0,P.jsxs)(`div`,{className:`fixed inset-0 z-[999999] flex items-center justify-center p-3 sm:p-6`,children:[(0,P.jsx)(`div`,{className:`absolute inset-0 bg-gray-950/55 backdrop-blur-md`,onClick:()=>Q()}),(0,P.jsxs)(`div`,{ref:de,role:`dialog`,"aria-modal":`true`,"aria-label":I(`modelSelector.selectModel`),className:s(`relative flex w-full max-w-xl flex-col overflow-hidden bg-white/[0.98] dark:bg-dark-25/[0.98]`,`h-[min(620px,88vh)] rounded-[1.5rem] border border-black/[0.08] dark:border-white/[0.09]`,`shadow-[0_30px_100px_rgba(0,0,0,0.28)] backdrop-blur-xl animate-scale-in`),onClick:e=>e.stopPropagation(),children:[(0,P.jsxs)(`div`,{className:`flex-shrink-0`,children:[(0,P.jsxs)(`div`,{className:`flex items-center justify-between px-4 pb-2 pt-4 sm:px-5 sm:pt-5`,children:[(0,P.jsx)(`h2`,{className:`text-lg font-medium tracking-[-0.025em] text-gray-950 dark:text-dark-950 rtl:tracking-normal`,children:I(`modelSelector.selectModel`)}),(0,P.jsx)(`button`,{type:`button`,onClick:()=>Q(),className:`flex h-9 w-9 items-center justify-center rounded-full text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-950 dark:text-dark-500 dark:hover:bg-dark-200 dark:hover:text-dark-950`,title:I(`common.close`),children:(0,P.jsx)(O,{className:`h-4 w-4`})})]}),(0,P.jsx)(`div`,{className:`px-4 pb-3 sm:px-5`,children:(0,P.jsxs)(`div`,{className:`relative`,children:[(0,P.jsx)(b,{className:`absolute start-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400`}),(0,P.jsx)(`input`,{ref:pe,type:`text`,placeholder:I(V===`installed`?`modelSelector.searchInstalled`:V===`ollama`?`modelSelector.searchOllama`:`modelSelector.searchHuggingFace`),value:z,onChange:e=>B(e.target.value),className:s(`w-full rounded-xl border border-black/[0.07] bg-gray-100/70 py-2.5 ps-10 pe-4 text-sm dark:border-white/[0.07] dark:bg-dark-200/70`,`focus:outline-none focus:ring-2 focus:ring-primary-500/20`,`text-gray-900 dark:text-dark-900 placeholder:text-gray-400 dark:placeholder:text-dark-500`)})]})}),(0,P.jsxs)(`div`,{className:`mx-4 mb-3 flex rounded-xl bg-gray-100/70 p-1 dark:bg-dark-200/70 sm:mx-5`,children:[(0,P.jsxs)(`button`,{onClick:()=>{H(`installed`)},className:s(`flex-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors sm:px-4`,V===`installed`?`bg-white text-gray-950 shadow-sm dark:bg-dark-300 dark:text-dark-950`:`text-gray-500 hover:text-gray-800 dark:text-dark-500 dark:hover:text-dark-800`),"aria-pressed":V===`installed`,children:[(0,P.jsx)(m,{className:`h-4 w-4 inline me-1.5`}),I(`modelSelector.installed`)]}),(0,P.jsxs)(`button`,{onClick:()=>{H(`ollama`)},className:s(`flex-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors sm:px-4`,V===`ollama`?`bg-white text-gray-950 shadow-sm dark:bg-dark-300 dark:text-dark-950`:`text-gray-500 hover:text-gray-800 dark:text-dark-500 dark:hover:text-dark-800`),"aria-pressed":V===`ollama`,children:[(0,P.jsx)(h,{className:`h-4 w-4 inline me-1.5`}),`Ollama`]}),(0,P.jsxs)(`button`,{onClick:()=>{H(`huggingface`)},className:s(`flex-1 rounded-lg px-2 py-2 text-xs font-medium transition-colors sm:px-4`,V===`huggingface`?`bg-white text-gray-950 shadow-sm dark:bg-dark-300 dark:text-dark-950`:`text-gray-500 hover:text-gray-800 dark:text-dark-500 dark:hover:text-dark-800`),"aria-pressed":V===`huggingface`,children:[(0,P.jsx)(A,{className:`h-4 w-4 inline me-1.5`}),`HuggingFace`]})]})]}),V===`installed`&&(0,P.jsx)(se,{filteredGroups:Fe,selectedModel:t,showImageGen:y,getModelValue:Y,getModelIcon:$e,getModelLabel:$,getModelSubLabel:et,onModelSelect:Ye,onOpenGallery:()=>{Q(!1),me(`/gallery`)}}),V===`ollama`&&(0,P.jsx)(ce,{libraryCategories:Pe,libraryCategory:W,canInstallModels:U,loadingLibrary:Be,filteredLibraryModels:Ge,pullingModel:G,pullProgress:Me,setLibraryCategory:_e,isModelInstalled:Qe,onModelSelect:Ye,onPullModel:Xe,onCancelPull:Ze,onRefreshLibrary:()=>{Ve()}}),V===`huggingface`&&(0,P.jsx)(oe,{hfTask:be,hfSort:Se,canInstallModels:U,loadingHf:Ue,hfModels:He,expandedHfModel:Ee,hfGgufFiles:Oe,loadingGguf:Ae,pullingModel:G,pullProgress:Me,setHfTask:xe,setHfSort:Ce,onToggleHfModel:qe,onPullHfGguf:Je,onCancelPull:Ze,onRefreshHfModels:()=>{We()}})]})]}),document.body),(0,P.jsx)(`select`,{"data-testid":re,"aria-label":F,"aria-hidden":`true`,dir:`ltr`,value:t,onChange:n,className:`hidden`,tabIndex:-1,children:e.map(e=>(0,P.jsx)(`option`,{value:Y(e),children:$(e)},`${e.isLegacySelection?`legacy`:e.isPersona?`persona`:e.isPlugin?`plugin`:`ollama`}:${e.pluginId||``}:${Y(e)}`))})]})},L=ee(`hooks:dictation`),R=()=>{if(typeof window>`u`)return;let e=window;return e.SpeechRecognition||e.webkitSpeechRecognition},z=[{mimeType:`audio/webm;codecs=opus`,format:`webm`}],B=300,V=.25,H=e=>`${encodeURIComponent(e.plugin)}:${encodeURIComponent(e.model)}`;function ue(e){if(typeof MediaRecorder>`u`)return;let t=new Set((e.config?.formats||[]).map(e=>e.toLowerCase()));return z.find(e=>(t.size===0||t.has(e.format))&&(typeof MediaRecorder.isTypeSupported!=`function`||MediaRecorder.isTypeSupported(e.mimeType)))?.mimeType}function de({onStart:e,onText:t,ownerKey:n}){let{t:r,i18n:i}=o(),[a,s]=(0,N.useState)(`idle`),[c,l]=(0,N.useState)([]),u=(0,N.useRef)(null),d=(0,N.useRef)(null),f=(0,N.useRef)(null),p=(0,N.useRef)(null),m=(0,N.useRef)(null),h=(0,N.useRef)(0),g=(0,N.useRef)(`idle`),_=(0,N.useRef)(void 0),v=(0,N.useRef)(e),y=(0,N.useRef)(t);(0,N.useEffect)(()=>{v.current=e,y.current=t},[e,t]),(0,N.useEffect)(()=>{let e=!1;return re.getModels().then(t=>{!e&&t.success&&t.data&&l(t.data)}).catch(()=>{e||l([])}),()=>{e=!0}},[]);let b=(0,N.useMemo)(()=>typeof window<`u`&&window.isSecureContext&&typeof navigator<`u`&&!!navigator.mediaDevices&&!!R(),[]),x=typeof window<`u`&&window.isSecureContext&&typeof navigator<`u`&&!!navigator.mediaDevices?.getUserMedia,S=(0,N.useMemo)(()=>[...b?[{key:`browser`,kind:`browser`}]:[],...x?c.filter(e=>!!ue(e)).map(e=>({key:H(e),kind:`provider`,model:e})):[]],[b,x,c]),[C,w]=(0,N.useState)(``),T=(0,N.useMemo)(()=>S.find(e=>e.key===C)??S[0],[C,S]),E=T?.kind===`provider`?T.model:void 0,D=S.length>0,O=(0,N.useCallback)(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null)},[]),k=(0,N.useCallback)(e=>{g.current=e,s(e)},[]),A=(0,N.useCallback)(()=>{h.current+=1,O(),u.current?.stop(),u.current=null,p.current?.abort(),p.current=null;let e=d.current;d.current=null,e&&(e.ondataavailable=null,e.onerror=null,e.onstop=null,e.state===`recording`&&e.stop()),f.current?.getTracks().forEach(e=>e.stop()),f.current=null,k(`idle`)},[O,k]);return(0,N.useEffect)(()=>(_.current=n,A),[A,n]),{supported:D,phase:a,toggle:(0,N.useCallback)(async()=>{let e=g.current;if(e===`starting`||e===`transcribing`){A();return}if(e===`recording`){d.current?.state===`recording`?(k(`transcribing`),d.current.stop()):A();return}if(E){let e=h.current+1;h.current=e;let t=_.current;v.current(),k(`starting`);try{let n=await navigator.mediaDevices.getUserMedia({audio:!0});if(h.current!==e||_.current!==t){n.getTracks().forEach(e=>e.stop());return}f.current=n;let a=ue(E),o=a?new MediaRecorder(n,{mimeType:a}):new MediaRecorder(n),s=[];o.ondataavailable=e=>{e.data.size>0&&s.push(e.data)},o.onerror=()=>{n.getTracks().forEach(e=>e.stop()),O(),h.current===e&&(d.current=null,f.current=null,k(`idle`),j.error(r(`voiceMode.transcriptionFailed`)))},o.onstop=()=>{if(n.getTracks().forEach(e=>e.stop()),O(),h.current!==e||_.current!==t)return;if(d.current=null,f.current=null,s.length===0){k(`idle`);return}let a=new Blob(s,{type:o.mimeType||s[0].type||`audio/webm`}),c=new AbortController;p.current=c,k(`transcribing`),re.transcribe(a,E,{language:i.language,signal:c.signal,fallbackMessage:r(`voiceMode.transcriptionFailed`)}).then(n=>{h.current!==e||_.current!==t||c.signal.aborted||y.current(n.text.trim())}).catch(e=>{c.signal.aborted||(L.error(`Provider transcription failed:`,e),j.error(e instanceof Error?e.message:r(`voiceMode.transcriptionFailed`)))}).finally(()=>{p.current===c&&h.current===e&&(p.current=null,k(`idle`))})},d.current=o,o.start(250);let c=E.config?.max_duration_seconds,l=typeof c==`number`&&c>0?Math.min(c,B):B;m.current=window.setTimeout(()=>{h.current===e&&o.state===`recording`&&o.stop()},Math.max(.1,l-V)*1e3),k(`recording`);return}catch(t){if(h.current!==e)return;L.error(`Failed to start provider dictation:`,t),O(),f.current?.getTracks().forEach(e=>e.stop()),f.current=null,d.current=null,k(`idle`),j.error(r(`voiceMode.transcriptionFailed`));return}}let t=R();if(!t)return;let n=h.current+1;h.current=n;let a=_.current,o=new t;o.lang=i.language,o.continuous=!0,o.interimResults=!0,v.current(),o.onresult=e=>{if(h.current!==n||_.current!==a||u.current!==o)return;let t=``;for(let n=0;n<e.results.length;n++)t+=e.results[n][0]?.transcript??``;y.current(t.trim())},o.onend=()=>{h.current===n&&(u.current=null,k(`idle`))},o.onerror=()=>{h.current===n&&(u.current=null,k(`idle`))},u.current=o,k(`recording`);try{o.start()}catch(e){L.error(`Failed to start dictation:`,e),u.current=null,k(`idle`)}},[A,O,i.language,E,k,r]),cancel:A,sources:S,activeSourceKey:T?.key??``,setSourceKey:w,providerModel:E}}export{I as n,de as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{_ as t,g as n}from"./markdown-core-CsTEqgp1.js";import{_ as r,b as i,v as a,y as o}from"./router-vendor-CIwPu612.js";import{t as s}from"./classPrivateMethodInitSpec-DE0XIqc_.js";var c=e(t(),1),l=n(),u=c.createContext(void 0),d=e=>{let t=c.useContext(u);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},f=({client:e,children:t})=>(c.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,l.jsx)(u.Provider,{value:e,children:t})),p,m,h={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},g=new(p=new WeakMap,m=new WeakMap,class{constructor(){i(this,p,h),i(this,m,!1)}setTimeoutProvider(e){r(p,this,e)}setTimeout(e,t){return a(p,this).setTimeout(e,t)}clearTimeout(e){a(p,this).clearTimeout(e)}setInterval(e,t){return a(p,this).setInterval(e,t)}clearInterval(e){a(p,this).clearInterval(e)}});function _(e){setTimeout(e,0)}var v=typeof window>`u`||`Deno`in globalThis;function y(){}function ee(e,t){return typeof e==`function`?e(t):e}function b(e){return typeof e==`number`&&e>=0&&e!==1/0}function x(e,t){return Math.max(e+(t||0)-Date.now(),0)}function S(e,t){return typeof e==`function`?e(t):e}function te(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==re(o,t.options))return!1}else if(!C(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function ne(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ie(t.options.mutationKey)!==ie(a))return!1}else if(!C(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function re(e,t){return(t?.queryKeyHashFn||ie)(e)}function ie(e){return JSON.stringify(e,(e,t)=>le(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function C(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!C(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!C(e[r],t[r]))return!1;return!0}return!1}var ae=Object.prototype.hasOwnProperty;function oe(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ce(e)&&ce(t);if(!r&&!(le(e)&&le(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ae.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=oe(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function se(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ce(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function le(e){if(!ue(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ue(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ue(e){return Object.prototype.toString.call(e)===`[object Object]`}function de(e){return new Promise(t=>{g.setTimeout(t,e)})}function fe(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:oe(e,t)}function pe(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function me(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var he=Symbol();function ge(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===he?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function _e(e,t){return typeof e==`function`?e(...t):!!e}function ve(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ye=()=>v,be=()=>ye(),w=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(){}},T,E,D,xe=new(T=new WeakMap,E=new WeakMap,D=new WeakMap,class extends w{constructor(){super(),i(this,T,void 0),i(this,E,void 0),i(this,D,void 0),r(D,this,e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){a(E,this)||this.setEventListener(a(D,this))}onUnsubscribe(){this.hasListeners()||(a(E,this)?.call(this),r(E,this,void 0))}setEventListener(e){r(D,this,e),a(E,this)?.call(this),r(E,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){a(T,this)!==e&&(r(T,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof a(T,this)==`boolean`?a(T,this):globalThis.document?.visibilityState!==`hidden`}}),Se=_;function Ce(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Se,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var we=Ce(),O,k,A,Te=new(O=new WeakMap,k=new WeakMap,A=new WeakMap,class extends w{constructor(){super(),i(this,O,!0),i(this,k,void 0),i(this,A,void 0),r(A,this,e=>{if(typeof window<`u`&&window.addEventListener){let 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(){a(k,this)||this.setEventListener(a(A,this))}onUnsubscribe(){this.hasListeners()||(a(k,this)?.call(this),r(k,this,void 0))}setEventListener(e){r(A,this,e),a(k,this)?.call(this),r(k,this,e(this.setOnline.bind(this)))}setOnline(e){a(O,this)!==e&&(r(O,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return a(O,this)}});function Ee(e){return Math.min(1e3*2**e,3e4)}function De(e){return(e??`online`)!==`online`||Te.isOnline()}var Oe=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ke(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(y);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Oe(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>xe.isFocused()&&(e.networkMode===`always`||Te.isOnline())&&e.canRun(),p=()=>De(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(be()?0:3),a=e.retryDelay??Ee,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),de(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var j,Ae=(j=new WeakMap,class{constructor(){i(this,j,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),b(this.gcTime)&&r(j,this,g.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(be()?1/0:3e5))}clearGcTimeout(){a(j,this)!==void 0&&(g.clearTimeout(a(j,this)),r(j,this,void 0))}});function je(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{ve(e,()=>t.signal,()=>n=!0)},u=ge(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?me:pe;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Ne:Me,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Me(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Me(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ne(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Pe(e,t){return t?Me(e,t)!=null:!1}function Fe(e,t){return!t||!e.getPreviousPageParam?!1:Ne(e,t)!=null}var M,N,P,F,I,L,Ie,R,z,Le=(M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakMap,L=new WeakMap,Ie=new WeakMap,R=new WeakMap,z=new WeakSet,class extends Ae{constructor(e){super(),s(this,z),i(this,M,void 0),i(this,N,void 0),i(this,P,void 0),i(this,F,void 0),i(this,I,void 0),i(this,L,void 0),i(this,Ie,void 0),i(this,R,void 0),r(R,this,!1),r(Ie,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],r(I,this,e.client),r(F,this,a(I,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,r(N,this,Be(this.options)),this.state=e.state??a(N,this),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return a(M,this)}get promise(){return a(L,this)?.promise}setOptions(e){if(this.options={...a(Ie,this),...e},e?._type&&r(M,this,e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Be(this.options);e.data!==void 0&&(this.setState(ze(e.data,e.dataUpdatedAt)),r(N,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&a(F,this).remove(this)}setData(e,t){let n=fe(this.state.data,e,this.options);return o(z,this,B).call(this,{data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){o(z,this,B).call(this,{type:`setState`,state:e})}cancel(e){let t=a(L,this)?.promise;return a(L,this)?.cancel(e),t?t.then(y).catch(y):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return a(N,this)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>S(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===he||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>S(e.options.staleTime,this)===`static`)}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:!x(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),a(L,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),a(L,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),a(F,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(a(L,this)&&(a(R,this)||this.state.fetchStatus===`paused`&&this.state.status===`pending`?a(L,this).cancel({revert:!0}):a(L,this).cancelRetry()),this.scheduleGc()),a(F,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||o(z,this,B).call(this,{type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&a(L,this)?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(a(L,this))return a(L,this).continueRetry(),a(L,this).promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r(R,this,!0),n.signal)})},s=()=>{let e=ge(this.options,t),n=(()=>{let e={client:a(I,this),queryKey:this.queryKey,meta:this.meta};return i(e),e})();return r(R,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},c=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:a(I,this),state:this.state,fetchFn:s};return i(e),e})();(a(M,this)===`infinite`?je(this.options.pages):this.options.behavior)?.onFetch(c,this),r(P,this,this.state),(this.state.fetchStatus===`idle`||this.state.fetchMeta!==c.fetchOptions?.meta)&&o(z,this,B).call(this,{type:`fetch`,meta:c.fetchOptions?.meta});let l=r(L,this,ke({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof Oe&&e.revert&&this.setState({...a(P,this),fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{o(z,this,B).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{o(z,this,B).call(this,{type:`pause`})},onContinue:()=>{o(z,this,B).call(this,{type:`continue`})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{let e=await l.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),a(F,this).config.onSuccess?.(e,this),a(F,this).config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Oe){if(e.silent)return a(L,this).promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw o(z,this,B).call(this,{type:`error`,error:e}),a(F,this).config.onError?.(e,this),a(F,this).config.onSettled?.(this.state.data,e,this),e}finally{a(L,this)===l&&r(L,this,void 0),this.scheduleGc()}}});function B(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Re(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ze(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return r(P,this,e.manual?n:void 0),n;case`error`:let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),we.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),a(F,this).notify({query:this,type:`updated`,action:e})})}function Re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:De(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ze(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Be(e){let 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 V,H,Ve,U,W,G,K,He,q,J,Y,X,Z,Q,$,Ue=(V=new WeakMap,H=new WeakMap,Ve=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,He=new WeakMap,q=new WeakMap,J=new WeakMap,Y=new WeakMap,X=new WeakMap,Z=new WeakMap,Q=new WeakMap,$=new WeakSet,class extends w{constructor(e,t){super(),s(this,$),i(this,V,void 0),i(this,H,void 0),i(this,Ve,void 0),i(this,U,void 0),i(this,W,void 0),i(this,G,void 0),i(this,K,void 0),i(this,He,void 0),i(this,q,void 0),i(this,J,void 0),i(this,Y,void 0),i(this,X,void 0),i(this,Z,void 0),i(this,Q,new Set),this.options=t,r(V,this,e),r(K,this,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(H,this).addObserver(this),et(a(H,this),this.options)?o($,this,We).call(this):this.updateResult(),o($,this,Ye).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tt(a(H,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tt(a(H,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,o($,this,Xe).call(this),o($,this,Ze).call(this),a(H,this).removeObserver(this)}setOptions(e){let t=this.options,n=a(H,this);if(this.options=a(V,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof S(this.options.enabled,a(H,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);o($,this,Qe).call(this),a(H,this).setOptions(this.options),t._defaulted&&!se(this.options,t)&&a(V,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:a(H,this),observer:this});let r=this.hasListeners();r&&nt(a(H,this),n,this.options,t)&&o($,this,We).call(this),this.updateResult(),r&&(a(H,this)!==n||S(this.options.enabled,a(H,this))!==S(t.enabled,a(H,this))||S(this.options.staleTime,a(H,this))!==S(t.staleTime,a(H,this)))&&o($,this,Ke).call(this);let i=o($,this,qe).call(this);r&&(a(H,this)!==n||S(this.options.enabled,a(H,this))!==S(t.enabled,a(H,this))||i!==a(Z,this))&&o($,this,Je).call(this,i)}getOptimisticResult(e){let t=a(V,this).getQueryCache().build(a(V,this),e),n=this.createResult(t,e);return se(this.getCurrentResult(),n)||(r(U,this,n),r(G,this,this.options),r(W,this,a(H,this).state)),n}getCurrentResult(){return a(U,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){a(Q,this).add(e)}getCurrentQuery(){return a(H,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=a(V,this).defaultQueryOptions(e),n=a(V,this).getQueryCache().build(a(V,this),t),r=()=>{},i,o=new Promise(e=>{i=e,r=a(V,this).getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),o])}fetch(e){return o($,this,We).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),a(U,this)))}createResult(e,t){let n=a(H,this),i=this.options,o=a(U,this),s=a(W,this),c=a(G,this),l=e===n?a(Ve,this):e.state,{state:u}=e,d={...u},f=!1,p;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&et(e,t),o=r&&nt(e,n,t,i);(a||o)&&(d={...d,...Re(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:m,errorUpdatedAt:h,status:g}=d;p=d.data;let _=!1;if(t.placeholderData!==void 0&&p===void 0&&g===`pending`){let e;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=o.data,_=!0):e=typeof t.placeholderData==`function`?t.placeholderData(a(J,this)?.state.data,a(J,this)):t.placeholderData,e!==void 0&&(g=`success`,p=fe(o?.data,e,t),f=!0)}if(t.select&&p!==void 0&&!_){if(o&&p===s?.data&&t.select===a(He,this))p=a(q,this);else try{r(He,this,t.select),p=t.select(p),p=fe(o?.data,p,t),r(q,this,p),r(K,this,null)}catch(e){r(K,this,e)}}else p===void 0&&r(K,this,null);a(K,this)&&(m=a(K,this),p=a(q,this),h=Date.now(),g=`error`,f=!1);let v=d.fetchStatus===`fetching`,y=g===`pending`,ee=g===`error`,b=y&&v,x=p!==void 0;return{status:g,fetchStatus:d.fetchStatus,isPending:y,isSuccess:g===`success`,isError:ee,isInitialLoading:b,isLoading:b,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:ee&&!x,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:ee&&x,isStale:rt(e,t),refetch:this.refetch,isEnabled:S(t.enabled,e)!==!1}}updateResult(){let e=a(U,this),t=this.createResult(a(H,this),this.options);if(r(W,this,a(H,this).state),r(G,this,this.options),a(W,this).data!==void 0&&r(J,this,a(H,this)),se(t,e))return;r(U,this,t);let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!a(Q,this).size)return!0;let r=new Set(n??a(Q,this));return this.options.throwOnError&&r.add(`error`),Object.keys(a(U,this)).some(t=>{let n=t;return a(U,this)[n]!==e[n]&&r.has(n)})})();we.batch(()=>{n&&this.listeners.forEach(e=>{e(a(U,this))}),a(V,this).getQueryCache().notify({query:a(H,this),type:`observerResultsUpdated`})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&o($,this,Ye).call(this)}});function We(e){o($,this,Qe).call(this);let t=a(H,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(y)),t}function Ge(e){return!be()&&S(this.options.enabled,a(H,this))!==!1&&b(e)}function Ke(){o($,this,Xe).call(this);let e=S(this.options.staleTime,a(H,this));if(a(U,this).isStale||!o($,this,Ge).call(this,e))return;let t=x(a(U,this).dataUpdatedAt,e)+1;r(Y,this,g.setTimeout(()=>{a(U,this).isStale||this.updateResult()},t))}function qe(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(a(H,this)):this.options.refetchInterval)??!1}function Je(e){o($,this,Ze).call(this),r(Z,this,e),!(a(Z,this)===0||!o($,this,Ge).call(this,a(Z,this)))&&r(X,this,g.setInterval(()=>{(this.options.refetchIntervalInBackground||xe.isFocused())&&o($,this,We).call(this)},a(Z,this)))}function Ye(){o($,this,Ke).call(this),o($,this,Je).call(this,o($,this,qe).call(this))}function Xe(){a(Y,this)!==void 0&&(g.clearTimeout(a(Y,this)),r(Y,this,void 0))}function Ze(){a(X,this)!==void 0&&(g.clearInterval(a(X,this)),r(X,this,void 0))}function Qe(){let e=a(V,this).getQueryCache().build(a(V,this),this.options);if(e===a(H,this))return;let t=a(H,this);r(H,this,e),r(Ve,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function $e(e,t){return S(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||S(t.retryOnMount,e)!==!1)}function et(e,t){return $e(e,t)||e.state.data!==void 0&&tt(e,t,t.refetchOnMount)}function tt(e,t,n){if(S(t.enabled,e)!==!1&&S(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&rt(e,t)}return!1}function nt(e,t,n,r){return(e!==t||S(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&rt(e,n)}function rt(e,t){return S(t.enabled,e)!==!1&&e.isStaleByTime(S(t.staleTime,e))}var it=c.createContext(!1),at=()=>c.useContext(it);it.Provider;function ot(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=c.createContext(ot()),ct=()=>c.useContext(st),lt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?_e(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},ut=e=>{c.useEffect(()=>{e.clearReset()},[e])},dt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||_e(n,[e.error,r])),ft=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},pt=(e,t)=>e?.suspense&&t.isPending,mt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ht(e,t,n){let r=at(),i=ct(),a=d(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),l=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:l?`optimistic`:void 0,ft(o),lt(o,i,s),ut(i);let[u]=c.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),p=!r&&l;if(c.useSyncExternalStore(c.useCallback(e=>{let t=p?u.subscribe(we.batchCalls(e)):y;return u.updateResult(),t},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),c.useEffect(()=>{u.setOptions(o)},[o,u]),pt(o,f))throw mt(o,u,i);if(dt({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;return o.notifyOnChangeProps?f:u.trackResult(f)}function gt(e,t){return ht(e,Ue,t)}export{d as C,f as S,te as _,Pe as a,S as b,ke as c,xe as d,w as f,ne as g,re as h,Le as i,Te as l,ie as m,ht as n,Fe as o,ee as p,Ue as r,Ae as s,gt as t,we as u,y as v,he as x,C as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{_ as n}from"./markdown-core-CsTEqgp1.js";import{c as r,u as i}from"./utils-
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{_ as n}from"./markdown-core-CsTEqgp1.js";import{c as r,u as i}from"./utils-nNyg0lfc.js";var a=e(n()),o=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);p(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},s={},c=(e,t,n,r)=>{p(n)&&s[n]||(p(n)&&(s[n]=new Date),o(e,t,n,r))},l=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},u=(e,t,n)=>{e.loadNamespaces(t,l(e,n))},d=(e,t,n,r)=>{if(p(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,l(e,r))},f=(e,t,n={})=>!t.languages||!t.languages.length?(c(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),p=e=>typeof e==`string`,m=e=>typeof e==`object`&&!!e,h=(0,a.createContext)(),g=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},_=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),v=t(((e,t)=>{t.exports=_()}))(),y={t:(e,t)=>{if(p(t))return t;if(m(t)&&p(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},b=()=>()=>{},x=(e,t={})=>{let{i18n:n}=t,{i18n:o,defaultNS:s}=(0,a.useContext)(h)||{},l=n||o||r();l&&!l.reportNamespaces&&(l.reportNamespaces=new g),l||c(l,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let m=(0,a.useMemo)(()=>({...i(),...l?.options?.react,...t}),[l,t]),{useSuspense:_,keyPrefix:x}=m,S=e||s||l?.options?.defaultNS,C=p(S)?[S]:S||[`translation`],w=(0,a.useMemo)(()=>C,C);l?.reportNamespaces?.addUsedNamespaces?.(w);let T=(0,a.useRef)(0),E=(0,a.useCallback)(e=>{if(!l)return b;let{bindI18n:t,bindI18nStore:n}=m,r=()=>{T.current+=1,e()};return t&&l.on(t,r),n&&l.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>l.off(e,r)),n&&n.split(` `).forEach(e=>l.store.off(e,r))}},[l,m]),D=(0,a.useRef)(),O=(0,a.useCallback)(()=>{if(!l)return y;let e=!!(l.isInitialized||l.initializedStoreOnce)&&w.every(e=>f(e,l,m)),n=t.lng||l.language,r=T.current,i=D.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===x&&i.revision===r)return i;let a={t:l.getFixedT(n,m.nsMode===`fallback`?w:w[0],x,{scopeNs:w}),ready:e,lng:n,keyPrefix:x,revision:r};return D.current=a,a},[l,w,x,m,t.lng]),[k,A]=(0,a.useState)(0),{t:j,ready:M}=(0,v.useSyncExternalStore)(E,O,O);(0,a.useEffect)(()=>{if(l&&!M&&!_){let e=()=>A(e=>e+1);t.lng?d(l,t.lng,w,e):u(l,w,e)}},[l,t.lng,w,M,_,k]);let N=l||{},P=(0,a.useRef)(null),F=(0,a.useRef)(),I=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},L=(0,a.useMemo)(()=>{let e=N,t=e?.language,n=e;e&&(P.current&&P.current.__original===e&&F.current===t?n=P.current:(n=I(e),P.current=n,F.current=t));let r=!M&&!_?(...e)=>(c(l,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),j(...e)):j,i=[r,n,M];return i.t=r,i.i18n=n,i.ready=M,i},[j,N,M,N.resolvedLanguage,N.language,N.languages]);if(l&&_&&!M){let e=!1;try{e=!1}catch{}throw e&&c(l,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?d(l,t.lng,w,n):u(l,w,n)})}return L};export{o as a,p as i,h as n,c as o,m as r,x as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t}from"./utils-vendor-
|
|
1
|
+
import{n as e,r as t}from"./utils-vendor-CeUf_ngc.js";var n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,r={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},i=e=>r[e],a=e=>e.replace(n,i),o={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:a,transDefaultProps:void 0},s=(e={})=>{o={...o,...e}},c=()=>o,l,u=e=>{l=e},d=()=>l;function f(...n){return e(t(n))}function p(){return typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform)}var m=new Map,h=new Map,g=e=>{let t=m.get(e);return t||(t=new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`narrow`}),m.set(e,t)),t},_=e=>{let t=h.get(e);return t||(t=new Intl.DateTimeFormat(e),h.set(e,t)),t};function v(e,t=`en`){let n=new Date(e),r=Math.max(0,new Date().getTime()-n.getTime()),i=Math.floor(r/6e4),a=Math.floor(r/36e5),o=Math.floor(r/864e5);if(t.toLowerCase().split(`-`)[0]===`en`)return i<1?`Just now`:i<60?`${i}m ago`:a<24?`${a}h ago`:o<7?`${o}d ago`:_(t).format(n);let s=g(t);return i<1?s.format(0,`second`):i<60?s.format(-i,`minute`):a<24?s.format(-a,`hour`):o<7?s.format(-o,`day`):_(t).format(n)}function y(e){let t=[`B`,`KB`,`MB`,`GB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(1)} ${t[r]}`}function b(){return Math.random().toString(36).substring(2)+Date.now().toString(36)}function x(e,t){return e.length<=t?e:e.substring(0,t)+`...`}function S(e){for(let t of[/^\[Thinking:\s*([\s\S]*?)\]\s*/i,/^<thinking>([\s\S]*?)<\/thinking>\s*/i,/^<think>([\s\S]*?)<\/think>\s*/i]){let n=e.match(t);if(n)return{thinking:n[1].trim(),content:e.slice(n[0].length).trim(),thinkingComplete:!0}}for(let[t,n]of[[/^\[Thinking:\s*/i,`]`],[/^<thinking>\s*/i,`</thinking>`],[/^<think>\s*/i,`</think>`]]){let r=e.match(t);if(r&&!e.toLowerCase().includes(n))return{thinking:e.slice(r[0].length).trim()||null,content:``,thinkingComplete:!1}}return{thinking:null,content:e,thinkingComplete:!0}}export{p as a,d as c,s as d,a as f,b as i,u as l,y as n,S as o,v as r,x as s,f as t,c as u};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{_ as n}from"./markdown-core-CsTEqgp1.js";var r=t(n(),1),i=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},a=(e=>e?i(e):i),o=e=>e;function s(e,t=o){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n}var c=e=>{let t=a(e),n=e=>s(t,e);return Object.assign(n,t),n},l=(e=>e?c(e):c);function u(e,t){return function(){return e.apply(t,arguments)}}var{toString:d}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:p,toStringTag:m}=Symbol,h=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),g=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),_=(e,t,n)=>e===Object.prototype||!n&&t===null,v=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(g(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},y=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=f(n);if(_(n,i,n===e))return!1;if(h(n,t))return!0;n=i}return!1},b=(e,t)=>e!=null&&y(e,t)?e[t]:void 0,x=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=f(e);if(t===null&&v(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:f(a);if(_(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)g(t)||h(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},S=(e=>t=>{let n=d.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>S(t)===e),w=e=>t=>typeof t===e,{isArray:T}=Array,E=w(`undefined`);function D(e){return e!==null&&!E(e)&&e.constructor!==null&&!E(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var O=C(`ArrayBuffer`);function ee(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&O(e.buffer),t}var te=w(`string`),k=w(`function`),A=w(`number`),j=e=>typeof e==`object`&&!!e,M=e=>e===!0||e===!1,N=e=>{if(!j(e))return!1;let t=f(e);return(t===null||t===Object.prototype||f(t)===null)&&!y(e,m)&&!y(e,p)},P=e=>{if(!j(e)||D(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ne=C(`Date`),F=C(`File`),I=e=>!!(e&&e.uri!==void 0),L=e=>e&&e.getParts!==void 0,R=C(`Blob`),z=C(`FileList`),B=C(`Set`),re=e=>j(e)&&k(e.pipe);function V(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var ie=V(),ae=ie.FormData===void 0?void 0:ie.FormData,oe=e=>{if(!e)return!1;if(ae&&e instanceof ae)return!0;let t=f(e);if(!t||t===Object.prototype||!k(e.append))return!1;let n=S(e);return n===`formdata`||n===`object`&&k(e.toString)&&e.toString()===`[object FormData]`},se=C(`URLSearchParams`),[ce,le,ue,de]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(C),fe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function pe(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),T(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(D(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function me(e,t){if(D(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var he=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ge=e=>!E(e)&&e!==he;function _e(...e){let{caseless:t,skipUndefined:n}=ge(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&me(r,i)||i,o=h(r,a)?r[a]:void 0;N(o)&&N(e)?r[a]=_e(o,e):N(e)?r[a]=_e({},e):T(e)?r[a]=e.slice():(!n||!E(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||D(n)||(pe(n,i),typeof n!=`object`||T(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ke.call(n,t)&&i(n[t],t)}}return r}var ve=(e,t,n,{allOwnKeys:r}={})=>(pe(t,(t,r)=>{n&&k(t)?Object.defineProperty(e,r,{__proto__:null,value:u(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),be=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},xe=(e,t,n,r)=>{let i,a,o,s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&f(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Se=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Ce=e=>{if(!e)return null;if(T(e))return e;let t=e.length;if(!A(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},we=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&f(Uint8Array)),Te=(e,t)=>{let n=(e&&e[p]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ee=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},De=C(`HTMLFormElement`),Oe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:ke}=Object.prototype,Ae=C(`RegExp`),je=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};pe(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Me=e=>{je(e,(t,n)=>{if(k(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(k(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})}})},Ne=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return T(e)?r(e):r(String(e).split(t)),n},Pe=()=>{},Fe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ie(e){return!!(e&&k(e.append)&&e[m]===`FormData`&&e[p])}var Le=e=>{let t=new WeakSet,n=e=>{if(j(e)){if(t.has(e))return;if(D(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(B(e)){r=[];for(let t of e){let e=n(t);!E(e)&&r.push(e)}}else r=T(e)?[]:{},pe(e,(e,t)=>{let i=n(e);!E(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Re=C(`AsyncFunction`),ze=e=>e&&(j(e)||k(e))&&k(e.then)&&k(e.catch),Be=((e,t)=>e?setImmediate:t?((e,t)=>(he.addEventListener(`message`,({source:n,data:r})=>{n===he&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),he.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,k(he.postMessage)),Ve=typeof queueMicrotask<`u`?queueMicrotask.bind(he):typeof process<`u`&&process.nextTick||Be,He=e=>e!=null&&k(e[p]),H={isArray:T,isArrayBuffer:O,isBuffer:D,isFormData:oe,isArrayBufferView:ee,isString:te,isNumber:A,isBoolean:M,isObject:j,isPlainObject:N,isEmptyObject:P,isReadableStream:ce,isRequest:le,isResponse:ue,isHeaders:de,isUndefined:E,isDate:ne,isFile:F,isReactNativeBlob:I,isReactNative:L,isBlob:R,isRegExp:Ae,isFunction:k,isStream:re,isURLSearchParams:se,isTypedArray:we,isFileList:z,forEach:pe,merge:_e,extend:ve,trim:fe,stripBOM:ye,inherits:be,toFlatObject:xe,kindOf:S,kindOfTest:C,endsWith:Se,toArray:Ce,forEachEntry:Te,matchAll:Ee,isHTMLForm:De,hasOwnProperty:h,hasOwnProp:h,hasOwnInPrototypeChain:y,getSafeProp:b,toSafeFlatObject:x,reduceDescriptors:je,freezeMethods:Me,toObjectSet:Ne,toCamelCase:Oe,noop:Pe,toFiniteNumber:Fe,findKey:me,global:he,isContextDefined:ge,isSpecCompliantForm:Ie,toJSONObject:Le,isAsyncFn:Re,isThenable:ze,setImmediate:Be,asap:Ve,isIterable:He,isSafeIterable:e=>e!=null&&y(e,p)&&He(e)},Ue=H.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),We=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=H.hasOwnProp(t,n);!n||a&&H.hasOwnProp(Ue,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Ge(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Ke=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),qe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Je(e,t){return H.isArray(e)?e.map(e=>Je(e,t)):Ge(String(e).replace(t,``))}var Ye=e=>Je(e,Ke),Xe=e=>Je(e,qe);function Ze(e){let t=Object.create(null);return H.forEach(e.toJSON(),(e,n)=>{t[n]=Xe(e)}),t}var Qe=Symbol(`internals`);function $e(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:H.isArray(e)?e.map(et):Ye(String(e))}function tt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var nt=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rt(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function it(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function at(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=rt(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=rt(i.slice(0,a));if(!nt.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=rt(i.slice(a+1));t[s]=it(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var ot=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function st(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function lt(e,t){let n=H.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var U=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=$e(t);if(!i)return;let a=H.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=et(e))}let a=(e,t)=>H.forEach(e,(e,n)=>i(e,n,t));if(H.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(H.isString(e)&&(e=e.trim())&&!ot(e))a(We(e),t);else if(H.isObject(e)&&H.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!H.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],H.hasOwnProp(n,i)?(r=n[i],n[i]=H.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=$e(e),e){let n=H.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return tt(e);if(H.isFunction(t))return t.call(this,e,n);if(H.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=$e(e),e){let n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||st(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=$e(e),e){let i=H.findKey(n,e);i&&(!t||st(n,n[i],i,t))&&(delete n[i],r=!0)}}return H.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||st(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return H.forEach(this,(r,i)=>{let a=H.findKey(n,i);if(a){t[a]=et(r),delete t[i];return}let o=e?ct(i):String(i).trim();o!==i&&delete t[i],t[o]=et(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return H.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&H.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){let e=this.get(`set-cookie`);return H.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return at(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Qe]=this[Qe]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=$e(e);t[r]||(lt(n,e),t[r]=!0)}return H.isArray(e)?e.forEach(r):r(e),this}};U.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),H.reduceDescriptors(U.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),H.freezeMethods(U);var ut=`[REDACTED ****]`;function dt(e){if(H.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(H.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ft(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||H.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof U&&(e=e.toJSON()),r.push(e);let t;if(H.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);H.isUndefined(r)||(t[n]=r)});else{if(!H.isPlainObject(e)&&dt(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ut:i(a);H.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function pt(e){try{return String(e)}catch{return``}}function mt(e){return e.errors.map(e=>{try{return e&&e.message?pt(e.message):pt(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var W=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&H.isArray(t.errors)&&t.errors.length&&(s=mt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&H.hasOwnProp(e,`redact`)?e.redact:void 0,n=H.isArray(t)&&t.length>0?ft(e,t):H.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,W.ERR_BAD_OPTION=`ERR_BAD_OPTION`,W.ECONNABORTED=`ECONNABORTED`,W.ETIMEDOUT=`ETIMEDOUT`,W.ECONNREFUSED=`ECONNREFUSED`,W.ERR_NETWORK=`ERR_NETWORK`,W.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,W.ERR_DEPRECATED=`ERR_DEPRECATED`,W.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,W.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,W.ERR_CANCELED=`ERR_CANCELED`,W.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,W.ERR_INVALID_URL=`ERR_INVALID_URL`,W.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ht(e){return H.isPlainObject(e)||H.isArray(e)}function gt(e){return H.endsWith(e,`[]`)?e.slice(0,-2):e}function _t(e,t,n){return e?e.concat(t).map(function(e,t){return e=gt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function vt(e){return H.isArray(e)&&!e.some(ht)}var yt=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function bt(e,t,n){if(!H.isObject(e))throw TypeError(`target must be an object`);t=t||new FormData;let r=(e,t)=>{let r=H.getSafeProp(n,e);return H.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&H.isSpecCompliantForm(t),d=[];if(!H.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(H.isDate(e))return e.toISOString();if(H.isBoolean(e))return e.toString();if(!u&&H.isBlob(e))throw new W(`Blob is not supported. Use a Buffer instead.`);if(H.isArrayBuffer(e)||H.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new W(`Blob is not supported. Use a Buffer instead.`,W.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new W(`Object is too deeply nested (`+e+` levels). Max depth: `+l,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!H.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(H.isReactNative(t)&&H.isReactNativeBlob(e))return t.append(_t(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(H.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(H.isArray(e)&&vt(e)||(H.isFileList(e)||H.endsWith(n,`[]`))&&(a=H.toArray(e)))return n=gt(n),a.forEach(function(e,r){!(H.isUndefined(e)||e===null)&&t.append(s===!0?_t([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return ht(e)?!0:(t.append(_t(r,n,o),f(e)),!1)}let g=Object.assign(yt,{defaultVisitor:h,convertValue:f,isVisitable:ht});function _(e,n,r=0){if(!H.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),H.forEach(e,function(e,i){(!(H.isUndefined(e)||e===null)&&a.call(t,e,H.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!H.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function xt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function St(e,t){this._pairs=[],e&&bt(e,this,t)}var Ct=St.prototype;Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){let t=e?t=>e.call(this,t,xt):xt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function wt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Tt(e,t,n){if(!t)return e;e=e||``;let r=H.isFunction(n)?{serialize:n}:n,i=H.getSafeProp(r,`encode`)||wt,a=H.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):H.isURLSearchParams(t)?t.toString():new St(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Et=Symbol(`internals`);function Dt(e){return e?e.length:0}function Ot(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function kt(e,t){let n=e.handlers,r=Dt(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var At=class{constructor(){this.handlers=[],this[Et]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[Et];this.handlers??(this.handlers=[]),kt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[Et];kt(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],kt(this,this[Et]))}forEach(e){let t=this[Et];kt(this,t),t.iterationDepth++;try{H.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(kt(this,t),Ot(this.handlers),t.handlersLength=Dt(this.handlers))}}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Mt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:St,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Nt=e({hasBrowserEnv:()=>Pt,hasStandardBrowserEnv:()=>It,hasStandardBrowserWebWorkerEnv:()=>Lt,navigator:()=>Ft,origin:()=>Rt}),Pt=typeof window<`u`&&typeof document<`u`,Ft=typeof navigator==`object`&&navigator||void 0,It=Pt&&(!Ft||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ft.product)<0),Lt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Rt=Pt&&window.location.href||`http://localhost`,G={...Nt,...Mt};function zt(e,t){return bt(e,new G.classes.URLSearchParams,{visitor:function(e,t,n,r){return G.isNode&&H.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Bt=100;function Vt(e){if(e>Bt)throw new W(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Bt,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ht(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Vt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Ut(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Wt(e){function t(e,n,r,i){Vt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&H.isArray(r)?r.length:a,s?(H.hasOwnProp(r,a)?r[a]=H.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!H.hasOwnProp(r,a)||!H.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&H.isArray(r[a])&&(r[a]=Ut(r[a])),!o)}if(H.isFormData(e)&&H.isFunction(e.entries)){let n={};return H.forEachEntry(e,(e,r)=>{t(Ht(e),r,n,0)}),n}return null}var Gt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Kt=(e,t)=>e!=null&&H.hasOwnProp(e,t)?e[t]:void 0;function qt(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Jt={transitional:jt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=H.isObject(e);if(i&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return r?JSON.stringify(Wt(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Kt(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zt(e,t).toString();if((a=H.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Kt(this,`env`),r=n&&n.FormData;return bt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),qt(e)):e}],transformResponse:[function(e){let t=Kt(this,`transitional`)||Jt.transitional,n=t&&t.forcedJSONParsing,r=Kt(this,`responseType`),i=r===`json`;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Kt(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?W.from(e,W.ERR_BAD_RESPONSE,this,null,Kt(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};H.forEach(Gt,e=>{Jt.headers[e]={}});function Yt(e,t){let n=this||Jt,r=t||n,i=U.from(r.headers),a=r.data;return H.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Xt(e){return!!(e&&e.__CANCEL__)}var Zt=class extends W{constructor(e,t,n){super(e??`canceled`,W.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Qt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W(`Request failed with status code `+n.status,n.status>=400&&n.status<500?W.ERR_BAD_REQUEST:W.ERR_BAD_RESPONSE,n.config,n.request,n))}var $t=/[\t\n\r]/g;function en(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace($t,``)}function tn(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function nn(e,t){e=e||10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function rn(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-s)))},()=>i&&o(i),(...e)=>o(e)]}var an=(e,t,n=3)=>{let r=0,i=nn(50,250);return rn(n=>{if(!n||!H.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},on=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sn=(e,t=H.asap)=>(...n)=>t(()=>e(...n)),cn=G.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,G.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(G.origin),G.navigator&&/(msie|trident)/i.test(G.navigator.userAgent)):()=>!0,ln=G.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&s.push(`path=${r}`),H.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),H.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function un(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var fn=/^https?:(?!\/\/)/i;function pn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ut}`)}function mn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ut}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ut}`);return n===-1?r:`${r}#${pn(t.slice(n+1))}`}function hn(e,t){if(typeof e==`string`){let n=en(e);if(fn.test(n))throw new W(`Invalid URL ${JSON.stringify(mn(n))}: missing "//" after protocol`,W.ERR_INVALID_URL,t)}}function gn(e,t,n,r){hn(t,r);let i=!un(t);return e&&(i||n===!1)?(hn(e,r),dn(e,t)):t}var _n=e=>e instanceof U?{...e}:e,vn=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function yn(e,t){e=e||{},t=t||{};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:r},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function i(e,t,n,i){if(!H.isUndefined(t))return r(e,t,n,i);if(!H.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!H.isUndefined(t))return r(void 0,t)}function o(e,t){if(!H.isUndefined(t))return r(void 0,t);if(!H.isUndefined(e))return r(void 0,e)}function s(n){let r=H.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!H.isUndefined(r)){if(H.isPlainObject(r)){if(H.hasOwnProp(r,n))return r[n]}else return}let i=H.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(H.isPlainObject(i)&&H.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(H.hasOwnProp(t,a))return r(n,i);if(H.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(_n(e),_n(t),n,!0)};return H.forEach(vn({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=H.hasOwnProp(l,r)?l[r]:i,o=a(H.hasOwnProp(e,r)?e[r]:void 0,H.hasOwnProp(t,r)?t[r]:void 0,r);H.isUndefined(o)&&a!==c||(n[r]=o)}),H.hasOwnProp(t,`validateStatus`)&&H.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(H.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var bn=[`content-type`,`content-length`];function xn(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{bn.includes(t.toLowerCase())&&e.set(t,n)})}var Sn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Cn(e){let t=yn({},e),n=e=>H.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=U.from(s),t.url=Tt(gn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=H.getSafeProp(c,`username`)||``,n=H.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?Sn(n):``)))}catch(t){throw W.from(t,W.ERR_BAD_OPTION_VALUE,e)}}if(H.isFormData(r)){let e=H.getSafeProp(r,`getHeaders`);G.hasStandardBrowserEnv||G.hasStandardBrowserWebWorkerEnv||H.isReactNative(r)?s.setContentType(void 0):H.isFunction(e)&&xn(s,e.call(r),n(`formDataHeaderPolicy`))}if(G.hasStandardBrowserEnv&&(H.isFunction(i)&&(i=i(t)),i===!0||i==null&&cn(t.url))){let e=a&&o&&ln.read(o);e&&s.set(a,e)}return t}var wn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Cn(e),i=r.data,a=U.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(tn(en(r.url))||tn(G.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new W(`Request aborted`,W.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=U.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());Qt(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&(n(new W(`Request aborted`,W.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){let r=new W(t&&t.message?t.message:`Network Error`,W.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||jt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&H.forEach(Ze(a),function(e,t){g.setRequestHeader(t,e)}),H.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=an(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=an(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&(n(!t||t.type?new Zt(null,e,g):t),g.abort(),h(),g=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=tn(r.url);if(v&&!G.protocols.includes(v)){n(new W(`Unsupported protocol `+v+`:`,W.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},Tn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new Zt(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t),o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),e=null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>H.asap(o),s},En=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Dn=async function*(e,t){for await(let n of On(e))yield*En(n,t)},On=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},kn=(e,t,n,r)=>{let i=Dn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},An=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,jn=(e,t,n)=>t+2<n&&An(e.charCodeAt(t+1))&&An(e.charCodeAt(t+2)),Mn=e=>e<=57?e-48:(e&223)-55,Nn=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Pn=e=>e===9||e===10||e===12||e===13||e===32,Fn=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},In=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Ln=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&jn(e,a,t)&&(o=Mn(e.charCodeAt(a+1))*16+Mn(e.charCodeAt(a+2)),a+=2),!Pn(o)){if(o===61){r++;continue}if(!Nn(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?In(e):Fn(n)},Rn=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&jn(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function zn(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Rn(t===-1?e:e.slice(0,t),Ln)}var Bn=`1.20.0`,Vn=65536,Hn={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Un}=H,Wn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Gn=e=>{if(!H.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Kn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Jn=e=>{let t=H.global!==void 0&&H.global!==null?H.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=H.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Un(i):typeof fetch==`function`,c=Un(a),l=Un(o);if(!s)return!1;let u=s&&Un(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Kn(()=>{let e=!1,t=new a(G.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Kn(()=>H.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new a(G.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e+=``),H.isString(e))return(await d(e)).byteLength},g=async(e,t)=>H.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=Cn(e),D=H.isNumber(w)&&w>-1,O=H.isNumber(T)&&T>-1,ee=t=>H.hasOwnProp(e,t)?e[t]:void 0,te=i||fetch;b=b?(b+``).toLowerCase():`text`;let k=Tn([l,d&&d.toAbortSignal()],_),A=null,j=k&&k.unsubscribe&&(()=>{k.unsubscribe()}),M,N=null,P=()=>new W(`Request body larger than maxBodyLength limit`,W.ERR_BAD_REQUEST,e,A);try{let i,l=ee(`auth`);if(l&&(i={username:H.getSafeProp(l,`username`)||``,password:H.getSafeProp(l,`password`)||``}),qn(t)){let e=new URL(t,G.origin);!i&&(e.username||e.password)&&(i={username:Gn(e.username),password:Gn(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Wn((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&zn(t)>w)throw new W(`maxContentLength size of `+w+` exceeded`,W.ERR_BAD_RESPONSE,e,A);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(M=e,e>T))throw P()}let d=O&&(H.isReadableStream(s)||H.isStream(s)),_=(e,t,n)=>kn(e,Vn,e=>{if(O&&e>T)throw N=P();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(M=M??await g(x,s),M!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(H.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&on(M,an(sn(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new W(`Stream request bodies are not supported by the current fetch implementation`,W.ERR_NOT_SUPPORT,e,A);H.isString(S)||(S=S?`include`:`omit`);let ne=c&&`credentials`in a.prototype;if(H.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Bn,!1);let F=C==null?C:Object.assign(Object.create(null),C);F&&(delete F.body,delete F.headers,delete F.method,delete F.signal,delete F.duplex,delete F.credentials);let I=Object.assign(Object.create(null),F,{signal:k,method:n.toUpperCase(),headers:Ze(x.normalize()),body:s,duplex:`half`,credentials:ne?S:void 0});c&&(H.forEach(Hn,(e,t)=>{I[t]===void 0&&(I[t]=e)}),I.signal===void 0&&(I.signal=null),I.body===void 0&&(I.body=null)),E===0&&(I.redirect=`manual`,F&&(F.redirect=`manual`)),A=c&&new a(t,I);let L=await(c?te(A,F):te(t,I)),R=U.from(L.headers);if(D){let t=H.toFiniteNumber(R.getContentLength());if(t!=null&&t>w)throw new W(`maxContentLength size of `+w+` exceeded`,W.ERR_BAD_RESPONSE,e,A)}let z=p&&(b===`stream`||b===`response`);if(p&&L.body&&(v||D||z&&j)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=L[e]});let n=H.toFiniteNumber(R.getContentLength()),[r,i]=v&&on(n,an(sn(v),!0))||[],a=0;L=new o(kn(L.body,Vn,t=>{if(D&&(a=t,a>w))throw new W(`maxContentLength size of `+w+` exceeded`,W.ERR_BAD_RESPONSE,e,A);r&&r(t)},()=>{i&&i(),j&&j()}),t)}b=b||`text`;let B=await m[H.findKey(m,b)||`text`](L,e);if(D&&!p&&!z){let t;if(B!=null&&(typeof B.byteLength==`number`?t=B.byteLength:typeof B.size==`number`?t=B.size:typeof B==`string`&&(t=typeof r==`function`?new r().encode(B).byteLength:B.length)),typeof t==`number`&&t>w)throw new W(`maxContentLength size of `+w+` exceeded`,W.ERR_BAD_RESPONSE,e,A)}return!z&&j&&j(),await new Promise((t,n)=>{Qt(t,n,{data:B,headers:U.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:A})})}catch(t){if(j&&j(),k&&k.aborted&&k.reason instanceof W){let n=k.reason;throw n.config=e,A&&(n.request=A),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(N)throw A&&!N.request&&(N.request=A),N;if(t instanceof W)throw A&&!t.request&&(t.request=A),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new W(`Network Error`,W.ERR_NETWORK,e,A,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw W.from(t,t&&t.code,e,A,t&&t.response)}}},Yn=new Map,Xn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Yn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Jn(t)),l=c;return c};Xn();var Zn={http:null,xhr:wn,fetch:{get:Xn}};H.forEach(Zn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Qn=e=>`- ${e}`,$n=e=>H.isFunction(e)||e===null||e===!1;function er(e,t){e=H.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!$n(r)&&(i=Zn[(n=String(r)).toLowerCase()],i===void 0))throw new W(`Unknown adapter '${n}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new W(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(Qn).join(`
|
|
5
|
+
`):` `+Qn(e[0]):`as no adapter specified`),W.ERR_NOT_SUPPORT)}return i}var tr={getAdapter:er,adapters:Zn};function nr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zt(null,e)}function rr(e){let t=H.toSafeFlatObject(e);return nr(t),t.headers=U.from(H.getSafeProp(t,`headers`)),t.data=Yt.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),tr.getAdapter(t.adapter||Jt.adapter,t)(t).then(function(e){nr(t),t.response=e;try{e.data=Yt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=U.from(e.headers),e},function(e){if(!Xt(e)&&(nr(t),e&&e.response)){t.response=e.response;try{e.response.data=Yt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=U.from(e.response.headers)}return Promise.reject(e)})}var ir={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{ir[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var ar={};ir.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Bn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new W(r(i,` has been removed`+(t?` in `+t:``)),W.ERR_DEPRECATED);return t&&!ar[i]&&(ar[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},ir.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function or(e,t,n){if(typeof e!=`object`||!e)throw new W(`options must be an object`,W.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new W(`option `+a+` must be `+n,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W(`Unknown option `+a,W.ERR_BAD_OPTION)}}var sr={assertOptions:or,validators:ir},K=sr.validators,cr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new At,response:new At}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
|
6
|
+
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
|
7
|
+
`),n=t===-1?-1:r.indexOf(`
|
|
8
|
+
`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
9
|
+
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t=t||{},t.url=e):t=e||{},t=yn(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&sr.assertOptions(n,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean),legacyInterceptorReqResOrdering:K.transitional(K.boolean),advertiseZstdAcceptEncoding:K.transitional(K.boolean),validateStatusUndefinedResolves:K.transitional(K.boolean)},!1),r!=null&&(H.isFunction(r)?t.paramsSerializer={serialize:r}:sr.assertOptions(r,{encode:K.function,serialize:K.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),sr.assertOptions(t,{baseUrl:K.spelling(`baseURL`),withXsrfToken:K.spelling(`withXSRFToken`)},!0),t.method=(H.getSafeProp(t,`method`)||H.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&H.merge(i.common,i[t.method]);i&&H.forEach(Gt.concat(`common`),e=>{delete i[e]}),t.headers=U.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s=s&&e.synchronous;let n=t.transitional||jt;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[rr.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);H.isThenable(n)&&(l=Promise.resolve(n).then(()=>rr.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=rr.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=yn(this.defaults,e),Tt(gn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};H.forEach([`delete`,`get`,`head`,`options`],function(e){cr.prototype[e]=function(t,n){return this.request(yn(n||{},{method:e,url:t,data:n&&H.hasOwnProp(n,`data`)?n.data:void 0}))}}),H.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(yn(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}cr.prototype[e]=t(),e!==`query`&&(cr.prototype[e+`Form`]=t(!0))});var lr=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Zt(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function ur(e){return function(t){return e.apply(null,t)}}function dr(e){return H.isObject(e)&&e.isAxiosError===!0}var fr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fr).forEach(([e,t])=>{fr[t]===void 0&&(fr[t]=e)});function pr(e){let t=new cr(e),n=u(cr.prototype.request,t);return H.extend(n,cr.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return pr(yn(e,t))},n}var q=pr(Jt);q.Axios=cr,q.CanceledError=Zt,q.CancelToken=lr,q.isCancel=Xt,q.VERSION=Bn,q.toFormData=bt,q.AxiosError=W,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=ur,q.isAxiosError=dr,q.mergeConfig=yn,q.AxiosHeaders=U,q.formToJSON=e=>Wt(H.isHTMLForm(e)?new FormData(e):e),q.getAdapter=tr.getAdapter,q.HttpStatusCode=fr,q.default=q;function mr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function hr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mr(e))&&(r&&(r+=` `),r+=t);return r}var gr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},_r=(e,t)=>({classGroupId:e,validator:t}),vr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),yr=`-`,br=[],xr=`arbitrary..`,Sr=e=>{let t=Tr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return wr(e);let n=e.split(yr);return Cr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?gr(i,t):t:i||br}return n[e]||br}}},Cr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Cr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(yr):e.slice(t).join(yr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},wr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?xr+r:void 0})(),Tr=e=>{let{theme:t,classGroups:n}=e;return Er(n,t)},Er=(e,t)=>{let n=vr();for(let r in e){let i=e[r];Dr(i,n,r,t)}return n},Dr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Or(i,t,n,r)}},Or=(e,t,n,r)=>{if(typeof e==`string`){kr(e,t,n);return}if(typeof e==`function`){Ar(e,t,n,r);return}jr(e,t,n,r)},kr=(e,t,n)=>{let r=e===``?t:Mr(t,e);r.classGroupId=n},Ar=(e,t,n,r)=>{if(Nr(e)){Dr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_r(n,e))},jr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Dr(o,Mr(t,a),n,r)}},Mr=(e,t)=>{let n=e,r=t.split(yr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=vr(),n.nextPart.set(t,i)),n=i}return n},Nr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Pr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Fr=`!`,Ir=`:`,Lr=[],Rr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),zr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ir){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Fr)?(c=s.slice(0,-1),l=!0):s.startsWith(Fr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Rr(t,l,c,u)};if(t){let e=t+Ir,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Rr(Lr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Br=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Vr=e=>({cache:Pr(e.cacheSize),parseClassName:zr(e),sortModifiers:Br(e),postfixLookupClassGroupIds:Hr(e),...Sr(e)}),Hr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ur=/\s+/,Wr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ur),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Fr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Gr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Kr(n))&&(i&&(i+=` `),i+=r);return i},Kr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Kr(e[r]))&&(n&&(n+=` `),n+=t);return n},qr=(e,...t)=>{let n,r,i,a,o=o=>(n=Vr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Wr(e,n);return i(e,a),a};return a=o,(...e)=>a(Gr(...e))},Jr=[],J=e=>{let t=t=>t[e]||Jr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\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$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ri=e=>Zr.test(e),Y=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),ii=e=>e.endsWith(`%`)&&Y(e.slice(0,-1)),Z=e=>Qr.test(e),ai=()=>!0,oi=e=>$r.test(e)&&!ei.test(e),si=()=>!1,ci=e=>ti.test(e),li=e=>ni.test(e),ui=e=>!Q(e)&&!$(e),di=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),fi=e=>Di(e,ji,si),Q=e=>Yr.test(e),pi=e=>Di(e,Mi,oi),mi=e=>Di(e,Ni,Y),hi=e=>Di(e,Fi,ai),gi=e=>Di(e,Pi,si),_i=e=>Di(e,ki,si),vi=e=>Di(e,Ai,li),yi=e=>Di(e,Ii,ci),$=e=>Xr.test(e),bi=e=>Oi(e,Mi),xi=e=>Oi(e,Pi),Si=e=>Oi(e,ki),Ci=e=>Oi(e,ji),wi=e=>Oi(e,Ai),Ti=e=>Oi(e,Ii,!0),Ei=e=>Oi(e,Fi,!0),Di=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Oi=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},ki=e=>e===`position`||e===`percentage`,Ai=e=>e===`image`||e===`url`,ji=e=>e===`length`||e===`size`||e===`bg-size`,Mi=e=>e===`length`,Ni=e=>e===`number`,Pi=e=>e===`family-name`,Fi=e=>e===`number`||e===`weight`,Ii=e=>e===`shadow`,Li=qr(()=>{let e=J(`color`),t=J(`font`),n=J(`text`),r=J(`font-weight`),i=J(`tracking`),a=J(`leading`),o=J(`breakpoint`),s=J(`container`),c=J(`spacing`),l=J(`radius`),u=J(`shadow`),d=J(`inset-shadow`),f=J(`text-shadow`),p=J(`drop-shadow`),m=J(`blur`),h=J(`perspective`),g=J(`aspect`),_=J(`ease`),v=J(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[ri,`full`,`auto`,...w()],E=()=>[X,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,X,$,Q]},X,$,Q],O=()=>[X,`auto`,$,Q],ee=()=>[`auto`,`min`,`max`,`fr`,$,Q],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[ri,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[ri,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[ri,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,$,Q],ne=()=>[...b(),Si,_i,{position:[$,Q]}],F=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],I=()=>[`auto`,`cover`,`contain`,Ci,fi,{size:[$,Q]}],L=()=>[ii,bi,pi],R=()=>[``,`none`,`full`,l,$,Q],z=()=>[``,Y,bi,pi],B=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[Y,ii,Si,_i],ie=()=>[``,`none`,m,$,Q],ae=()=>[`none`,Y,$,Q],oe=()=>[`none`,Y,$,Q],se=()=>[Y,$,Q],ce=()=>[ri,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Z],breakpoint:[Z],color:[ai],container:[Z],"drop-shadow":[Z],ease:[`in`,`out`,`in-out`],font:[ui],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Z],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Z],shadow:[Z],spacing:[`px`,Y],text:[Z],"text-shadow":[Z],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ri,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[di],columns:[{columns:[Y,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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`],sr:[`sr-only`,`not-sr-only`],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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[X,`auto`,$,Q]}],basis:[{basis:[ri,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Y,ri,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Y,$,Q]}],shrink:[{shrink:[``,Y,$,Q]}],order:[{order:[X,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,bi,pi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ei,hi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ii,Q]}],"font-family":[{font:[xi,gi,t]}],"font-features":[{"font-features":[Q]}],"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:[i,$,Q]}],"line-clamp":[{"line-clamp":[Y,`none`,$,mi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[Y,`from-font`,`auto`,$,pi]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Y,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[X,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:I()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},X,$,Q],radial:[``,$,Q],conic:[X,$,Q]},wi,vi]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Y,$,Q]}],"outline-w":[{outline:[``,Y,bi,pi]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,Ti,yi]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ti,yi]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Y,pi]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ti,yi]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Y,$,Q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Y]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Y]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ie()}],brightness:[{brightness:[Y,$,Q]}],contrast:[{contrast:[Y,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ti,yi]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Y,$,Q]}],"hue-rotate":[{"hue-rotate":[Y,$,Q]}],invert:[{invert:[``,Y,$,Q]}],saturate:[{saturate:[Y,$,Q]}],sepia:[{sepia:[``,Y,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Y,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Y,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Y,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Y,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Y,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Y,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Y,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Y,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Y,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Y,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[X,$,Q]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,$,Q]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Y,bi,pi,mi]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ri(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var zi=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return zi(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return zi(t)(e)}}}},Bi=(e,t)=>(n,r,i)=>{let a={storage:Ri(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return zi(u.getItem.bind(u))(a.name).then(e=>{if(e){if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state]}return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{++s,u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p};export{l as a,q as i,Li as n,hr as r,Bi as t};
|