nextclaw 0.12.5 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/cli/index.js +370 -231
  2. package/package.json +7 -7
  3. package/ui-dist/assets/{ChannelsList-DhvjpZcs.js → ChannelsList-i00X_bon.js} +1 -1
  4. package/ui-dist/assets/ChatPage-BEkVUTgU.js +38 -0
  5. package/ui-dist/assets/{DocBrowser-LpzGe8An.js → DocBrowser-DhSfSjNp.js} +1 -1
  6. package/ui-dist/assets/{LogoBadge-Be4lktJN.js → LogoBadge-E8XCymGk.js} +1 -1
  7. package/ui-dist/assets/MarketplacePage-DSa7G0ro.js +49 -0
  8. package/ui-dist/assets/McpMarketplacePage-bDGyqSad.js +40 -0
  9. package/ui-dist/assets/{ModelConfig-DuImUHIX.js → ModelConfig-Dvsyt1Tg.js} +1 -1
  10. package/ui-dist/assets/{ProvidersList-Ccleg25k.js → ProvidersList-DMbXOYsb.js} +1 -1
  11. package/ui-dist/assets/{RuntimeConfig-C6iqpJR_.js → RuntimeConfig-ToBbIBNn.js} +1 -1
  12. package/ui-dist/assets/{SearchConfig-Dvp1TAXu.js → SearchConfig-BV_SO-L3.js} +1 -1
  13. package/ui-dist/assets/{SecretsConfig-D5Ymlvt9.js → SecretsConfig-D5J_q_Za.js} +1 -1
  14. package/ui-dist/assets/{SessionsConfig-CIA_jA1P.js → SessionsConfig-B8gi8Vbi.js} +1 -1
  15. package/ui-dist/assets/{chat-message-B60Fh9kI.js → chat-message-v-cXhn7X.js} +1 -1
  16. package/ui-dist/assets/index-BXJPYlRo.js +8 -0
  17. package/ui-dist/assets/index-BoDFsNXm.css +1 -0
  18. package/ui-dist/assets/{index-CPDASUXh.js → index-ElnZdv5o.js} +1 -1
  19. package/ui-dist/assets/{label-D4fGx6Wb.js → label-352ph_Yg.js} +1 -1
  20. package/ui-dist/assets/marketplace-localization-Dk31LJJJ.js +1 -0
  21. package/ui-dist/assets/{page-layout-twy8gmBE.js → page-layout-BwIR7lB8.js} +1 -1
  22. package/ui-dist/assets/{popover-DYbYpt1j.js → popover-BdOI7aUv.js} +1 -1
  23. package/ui-dist/assets/{security-config-BcIZ4rpb.js → security-config-BEhAoZux.js} +1 -1
  24. package/ui-dist/assets/skeleton-C3DLX_PO.js +1 -0
  25. package/ui-dist/assets/{switch-DqA6r5XR.js → switch-CgUsIol7.js} +1 -1
  26. package/ui-dist/assets/{tabs-custom-C6enKKs1.js → tabs-custom-Dc_3h5fO.js} +1 -1
  27. package/ui-dist/assets/{useConfirmDialog-CHBf5Of7.js → useConfirmDialog-DSrny346.js} +2 -2
  28. package/ui-dist/assets/{vendor-DKBNiC31.js → vendor-425xp8cv.js} +1 -1
  29. package/ui-dist/index.html +3 -3
  30. package/ui-dist/assets/ChatPage-B8VBaMQm.js +0 -38
  31. package/ui-dist/assets/MarketplacePage-Cx9AI3_h.js +0 -49
  32. package/ui-dist/assets/index-BiPDnzv0.js +0 -8
  33. package/ui-dist/assets/index-C8GsgIUn.css +0 -1
  34. package/ui-dist/assets/skeleton-DypBy7jp.js +0 -1
@@ -1 +1 @@
1
- import{r as c,j as e,e as M}from"./vendor-DKBNiC31.js";import{a6 as O,a7 as R,a8 as I,a9 as B,aa as _,C as u,a3 as h,a4 as x,t as s,a5 as m,z as p,B as j,I as l}from"./index-BiPDnzv0.js";import{L as o}from"./label-D4fGx6Wb.js";import{S as z}from"./switch-DqA6r5XR.js";import{P as G,a as V}from"./page-layout-twy8gmBE.js";const W=8;function A(r){return r.trim().length>=W}function L(r,n){return r!==n?(M.error(s("authPasswordMismatch")),!1):!0}function q(){const r=O(),n=R(),S=I(),g=B(),y=_(),[f,U]=c.useState(""),[i,N]=c.useState(""),[w,b]=c.useState(""),[d,v]=c.useState(""),[P,C]=c.useState(""),t=r.data,E=f.trim().length>0&&A(i)&&i===w&&!n.isPending,D=A(d)&&d===P&&!g.isPending,T=async()=>{if(L(i,w))try{await n.mutateAsync({username:f.trim(),password:i}),N(""),b("")}catch{}},F=async()=>{if(L(d,P))try{await g.mutateAsync({password:d}),v(""),C("")}catch{}},H=async a=>{try{await S.mutateAsync({enabled:a})}catch{}},k=async()=>{try{await y.mutateAsync()}catch{}};return r.isLoading&&!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsx(p,{className:"text-sm text-gray-500",children:s("loading")})]}):r.isError||!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-500",children:s("authStatusLoadFailed")}),e.jsx(j,{variant:"outline",onClick:()=>{r.refetch()},children:s("authRetryStatus")})]})]}):t.configured?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authStatusLabel")}),e.jsx("p",{className:"text-sm text-gray-600",children:s("authStatusConfiguredUser").replace("{username}",t.username??"")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authUsernameFixedHelp")})]}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:t.enabled?s("enabled"):s("disabled")})]}),e.jsxs("div",{className:"mt-4 flex flex-col gap-4 border-t border-gray-200 pt-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authEnableLabel")}),e.jsx("p",{className:"text-xs text-gray-500",children:t.enabled?s("authEnableOnHelp"):s("authEnableOffHelp")})]}),e.jsx(z,{checked:t.enabled,disabled:S.isPending,onCheckedChange:a=>{H(a)}})]})]}),e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authPasswordSectionTitle")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordSectionDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-next",children:s("authPassword")}),e.jsx(l,{id:"auth-password-next",type:"password",value:d,onChange:a=>v(a.target.value),placeholder:s("authPasswordPlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-password-confirm",type:"password",value:P,onChange:a=>C(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(j,{type:"button",disabled:!D,onClick:()=>void F(),children:g.isPending?s("authPasswordUpdating"):s("authPasswordAction")}),t.enabled&&t.authenticated?e.jsx(j,{type:"button",variant:"outline",disabled:y.isPending,onClick:()=>void k(),children:y.isPending?s("authLoggingOut"):s("authLogoutAction")}):null]}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authSessionMemoryNotice")})]})]})]}):e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-5",children:[e.jsxs("div",{className:"rounded-xl border border-dashed border-gray-200 bg-gray-50/70 p-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authSetupTitle")}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:s("authSetupDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-username",children:s("authUsername")}),e.jsx(l,{id:"auth-setup-username",value:f,onChange:a=>U(a.target.value),placeholder:s("authUsernamePlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-password",children:s("authPassword")}),e.jsx(l,{id:"auth-setup-password",type:"password",value:i,onChange:a=>N(a.target.value),placeholder:s("authPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-setup-confirm",type:"password",value:w,onChange:a=>b(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordMinLengthHint")})]}),e.jsx(j,{type:"button",disabled:!E,onClick:()=>void T(),children:n.isPending?s("authSettingUp"):s("authSetupAction")})]})]})}function Z(){return e.jsxs(G,{className:"space-y-6",children:[e.jsx(V,{title:s("authSecurityTitle"),description:s("authSecurityDescription")}),e.jsx(q,{})]})}export{Z as SecurityConfig};
1
+ import{r as c,j as e,e as M}from"./vendor-425xp8cv.js";import{a6 as O,a7 as R,a8 as I,a9 as B,aa as _,C as u,a3 as h,a4 as x,t as s,a5 as m,z as p,B as j,I as l}from"./index-BXJPYlRo.js";import{L as o}from"./label-352ph_Yg.js";import{S as z}from"./switch-CgUsIol7.js";import{P as G,a as V}from"./page-layout-BwIR7lB8.js";const W=8;function A(r){return r.trim().length>=W}function L(r,n){return r!==n?(M.error(s("authPasswordMismatch")),!1):!0}function q(){const r=O(),n=R(),S=I(),g=B(),y=_(),[f,U]=c.useState(""),[i,N]=c.useState(""),[w,b]=c.useState(""),[d,v]=c.useState(""),[P,C]=c.useState(""),t=r.data,E=f.trim().length>0&&A(i)&&i===w&&!n.isPending,D=A(d)&&d===P&&!g.isPending,T=async()=>{if(L(i,w))try{await n.mutateAsync({username:f.trim(),password:i}),N(""),b("")}catch{}},F=async()=>{if(L(d,P))try{await g.mutateAsync({password:d}),v(""),C("")}catch{}},H=async a=>{try{await S.mutateAsync({enabled:a})}catch{}},k=async()=>{try{await y.mutateAsync()}catch{}};return r.isLoading&&!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsx(p,{className:"text-sm text-gray-500",children:s("loading")})]}):r.isError||!t?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-500",children:s("authStatusLoadFailed")}),e.jsx(j,{variant:"outline",onClick:()=>{r.refetch()},children:s("authRetryStatus")})]})]}):t.configured?e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-6",children:[e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authStatusLabel")}),e.jsx("p",{className:"text-sm text-gray-600",children:s("authStatusConfiguredUser").replace("{username}",t.username??"")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authUsernameFixedHelp")})]}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-3 py-1 text-xs font-medium text-gray-700",children:t.enabled?s("enabled"):s("disabled")})]}),e.jsxs("div",{className:"mt-4 flex flex-col gap-4 border-t border-gray-200 pt-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authEnableLabel")}),e.jsx("p",{className:"text-xs text-gray-500",children:t.enabled?s("authEnableOnHelp"):s("authEnableOffHelp")})]}),e.jsx(z,{checked:t.enabled,disabled:S.isPending,onCheckedChange:a=>{H(a)}})]})]}),e.jsxs("div",{className:"rounded-xl border border-gray-200 p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authPasswordSectionTitle")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordSectionDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-next",children:s("authPassword")}),e.jsx(l,{id:"auth-password-next",type:"password",value:d,onChange:a=>v(a.target.value),placeholder:s("authPasswordPlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-password-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-password-confirm",type:"password",value:P,onChange:a=>C(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(j,{type:"button",disabled:!D,onClick:()=>void F(),children:g.isPending?s("authPasswordUpdating"):s("authPasswordAction")}),t.enabled&&t.authenticated?e.jsx(j,{type:"button",variant:"outline",disabled:y.isPending,onClick:()=>void k(),children:y.isPending?s("authLoggingOut"):s("authLogoutAction")}):null]}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authSessionMemoryNotice")})]})]})]}):e.jsxs(u,{children:[e.jsxs(h,{children:[e.jsx(x,{children:s("authSecurityTitle")}),e.jsx(m,{children:s("authSecurityDescription")})]}),e.jsxs(p,{className:"space-y-5",children:[e.jsxs("div",{className:"rounded-xl border border-dashed border-gray-200 bg-gray-50/70 p-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900",children:s("authSetupTitle")}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:s("authSetupDescription")})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-username",children:s("authUsername")}),e.jsx(l,{id:"auth-setup-username",value:f,onChange:a=>U(a.target.value),placeholder:s("authUsernamePlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-password",children:s("authPassword")}),e.jsx(l,{id:"auth-setup-password",type:"password",value:i,onChange:a=>N(a.target.value),placeholder:s("authPasswordPlaceholder")})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(o,{htmlFor:"auth-setup-confirm",children:s("authConfirmPassword")}),e.jsx(l,{id:"auth-setup-confirm",type:"password",value:w,onChange:a=>b(a.target.value),placeholder:s("authConfirmPasswordPlaceholder")}),e.jsx("p",{className:"text-xs text-gray-500",children:s("authPasswordMinLengthHint")})]}),e.jsx(j,{type:"button",disabled:!E,onClick:()=>void T(),children:n.isPending?s("authSettingUp"):s("authSetupAction")})]})]})}function Z(){return e.jsxs(G,{className:"space-y-6",children:[e.jsx(V,{title:s("authSecurityTitle"),description:s("authSecurityDescription")}),e.jsx(q,{})]})}export{Z as SecurityConfig};
@@ -0,0 +1 @@
1
+ import{j as t}from"./vendor-425xp8cv.js";import{c as o}from"./index-BXJPYlRo.js";function m({className:e,...s}){return t.jsx("div",{className:o("animate-pulse rounded-md bg-slate-200",e),...s})}export{m as S};
@@ -1 +1 @@
1
- import{r as e,j as i}from"./vendor-DKBNiC31.js";import{c as t}from"./index-BiPDnzv0.js";const l=e.forwardRef(({className:o,checked:r=!1,onCheckedChange:s,...a},n)=>i.jsx("button",{type:"button",role:"switch","aria-checked":r,ref:n,className:t("peer inline-flex h-[22px] w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",r?"bg-primary":"bg-gray-200/80 hover:bg-gray-300/80",o),onClick:()=>s==null?void 0:s(!r),...a,children:i.jsx("span",{className:t("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",r?"translate-x-5":"translate-x-0")})}));l.displayName="Switch";export{l as S};
1
+ import{r as e,j as i}from"./vendor-425xp8cv.js";import{c as t}from"./index-BXJPYlRo.js";const l=e.forwardRef(({className:o,checked:r=!1,onCheckedChange:s,...a},n)=>i.jsx("button",{type:"button",role:"switch","aria-checked":r,ref:n,className:t("peer inline-flex h-[22px] w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",r?"bg-primary":"bg-gray-200/80 hover:bg-gray-300/80",o),onClick:()=>s==null?void 0:s(!r),...a,children:i.jsx("span",{className:t("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",r?"translate-x-5":"translate-x-0")})}));l.displayName="Switch";export{l as S};
@@ -1 +1 @@
1
- import{j as e}from"./vendor-DKBNiC31.js";import{ag as m,c as a}from"./index-BiPDnzv0.js";function c({tabs:s,activeTab:i,onChange:o,className:n}){return e.jsx("div",{className:a("flex items-center gap-6 border-b border-gray-200/60 mb-6",n),children:s.map(t=>{const r=i===t.id;return e.jsxs("button",{onClick:()=>o(t.id),className:a("relative pb-3 text-[14px] font-medium transition-all duration-fast flex items-center gap-1.5",r?"text-gray-900":"text-gray-600 hover:text-gray-900"),children:[t.label,t.count!==void 0&&e.jsx("span",{className:a("text-[11px] font-medium","text-gray-500"),children:m(t.count)}),r&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary rounded-full"})]},t.id)})})}export{c as T};
1
+ import{j as e}from"./vendor-425xp8cv.js";import{ag as m,c as a}from"./index-BXJPYlRo.js";function c({tabs:s,activeTab:i,onChange:o,className:n}){return e.jsx("div",{className:a("flex items-center gap-6 border-b border-gray-200/60 mb-6",n),children:s.map(t=>{const r=i===t.id;return e.jsxs("button",{onClick:()=>o(t.id),className:a("relative pb-3 text-[14px] font-medium transition-all duration-fast flex items-center gap-1.5",r?"text-gray-900":"text-gray-600 hover:text-gray-900"),children:[t.label,t.count!==void 0&&e.jsx("span",{className:a("text-[11px] font-medium","text-gray-500"),children:m(t.count)}),r&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary rounded-full"})]},t.id)})})}export{c as T};
@@ -1,5 +1,5 @@
1
- import{r as i,az as ee,j as a,aB as N,aH as te,aD as D,aE as v,aI as oe,aC as b,aJ as ae,aK as ne,aM as re,aN as se,aO as ie,aL as le,a_ as ce,aw as de}from"./vendor-DKBNiC31.js";import{P as R}from"./index-CPDASUXh.js";import{c as m,B as P,t as p}from"./index-BiPDnzv0.js";var C="Dialog",[O]=oe(C),[ue,u]=O(C),I=e=>{const{__scopeDialog:o,children:n,open:r,defaultOpen:s,onOpenChange:t,modal:l=!0}=e,c=i.useRef(null),d=i.useRef(null),[f,x]=ee({prop:r,defaultProp:s??!1,onChange:t,caller:C});return a.jsx(ue,{scope:o,triggerRef:c,contentRef:d,contentId:N(),titleId:N(),descriptionId:N(),open:f,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(y=>!y),[x]),modal:l,children:n})};I.displayName=C;var w="DialogTrigger",fe=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(w,n),t=b(o,s.triggerRef);return a.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":E(s.open),...r,ref:t,onClick:v(e.onClick,s.onOpenToggle)})});fe.displayName=w;var j="DialogPortal",[ge,A]=O(j,{forceMount:void 0}),T=e=>{const{__scopeDialog:o,forceMount:n,children:r,container:s}=e,t=u(j,o);return a.jsx(ge,{scope:o,forceMount:n,children:i.Children.map(r,l=>a.jsx(R,{present:n||t.open,children:a.jsx(te,{asChild:!0,container:s,children:l})}))})};T.displayName=j;var h="DialogOverlay",M=i.forwardRef((e,o)=>{const n=A(h,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,t=u(h,e.__scopeDialog);return t.modal?a.jsx(R,{present:r||t.open,children:a.jsx(me,{...s,ref:o})}):null});M.displayName=h;var pe=le("DialogOverlay.RemoveScroll"),me=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(h,n);return a.jsx(ne,{as:pe,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(D.div,{"data-state":E(s.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",F=i.forwardRef((e,o)=>{const n=A(g,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,t=u(g,e.__scopeDialog);return a.jsx(R,{present:r||t.open,children:t.modal?a.jsx(xe,{...s,ref:o}):a.jsx(ve,{...s,ref:o})})});F.displayName=g;var xe=i.forwardRef((e,o)=>{const n=u(g,e.__scopeDialog),r=i.useRef(null),s=b(o,n.contentRef,r);return i.useEffect(()=>{const t=r.current;if(t)return ae(t)},[]),a.jsx(L,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,t=>{var l;t.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,t=>{const l=t.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&t.preventDefault()}),onFocusOutside:v(e.onFocusOutside,t=>t.preventDefault())})}),ve=i.forwardRef((e,o)=>{const n=u(g,e.__scopeDialog),r=i.useRef(!1),s=i.useRef(!1);return a.jsx(L,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,t),t.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),t.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:t=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=t.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&s.current&&t.preventDefault()}})}),L=i.forwardRef((e,o)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:t,...l}=e,c=u(g,n),d=i.useRef(null),f=b(o,d);return re(),a.jsxs(a.Fragment,{children:[a.jsx(se,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:t,children:a.jsx(ie,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":E(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(De,{titleId:c.titleId}),a.jsx(Ce,{contentRef:d,descriptionId:c.descriptionId})]})]})}),_="DialogTitle",S=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(_,n);return a.jsx(D.h2,{id:s.titleId,...r,ref:o})});S.displayName=_;var k="DialogDescription",W=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(k,n);return a.jsx(D.p,{id:s.descriptionId,...r,ref:o})});W.displayName=k;var $="DialogClose",G=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u($,n);return a.jsx(D.button,{type:"button",...r,ref:o,onClick:v(e.onClick,()=>s.onOpenChange(!1))})});G.displayName=$;function E(e){return e?"open":"closed"}var B="DialogTitleWarning",[we,z]=ce(B,{contentName:g,titleName:_,docsSlug:"dialog"}),De=({titleId:e})=>{const o=z(B),n=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
1
+ import{r as i,az as ee,j as a,aB as N,aH as te,aD as D,aE as v,aI as oe,aC as b,aJ as ae,aK as ne,aM as re,aN as se,aO as ie,aL as le,a_ as ce,aw as de}from"./vendor-425xp8cv.js";import{P as R}from"./index-ElnZdv5o.js";import{c as m,B as P,t as p}from"./index-BXJPYlRo.js";var C="Dialog",[O]=oe(C),[ue,u]=O(C),I=e=>{const{__scopeDialog:o,children:n,open:r,defaultOpen:s,onOpenChange:t,modal:l=!0}=e,c=i.useRef(null),d=i.useRef(null),[f,x]=ee({prop:r,defaultProp:s??!1,onChange:t,caller:C});return a.jsx(ue,{scope:o,triggerRef:c,contentRef:d,contentId:N(),titleId:N(),descriptionId:N(),open:f,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(y=>!y),[x]),modal:l,children:n})};I.displayName=C;var w="DialogTrigger",fe=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(w,n),t=b(o,s.triggerRef);return a.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":E(s.open),...r,ref:t,onClick:v(e.onClick,s.onOpenToggle)})});fe.displayName=w;var j="DialogPortal",[ge,A]=O(j,{forceMount:void 0}),T=e=>{const{__scopeDialog:o,forceMount:n,children:r,container:s}=e,t=u(j,o);return a.jsx(ge,{scope:o,forceMount:n,children:i.Children.map(r,l=>a.jsx(R,{present:n||t.open,children:a.jsx(te,{asChild:!0,container:s,children:l})}))})};T.displayName=j;var h="DialogOverlay",M=i.forwardRef((e,o)=>{const n=A(h,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,t=u(h,e.__scopeDialog);return t.modal?a.jsx(R,{present:r||t.open,children:a.jsx(me,{...s,ref:o})}):null});M.displayName=h;var pe=le("DialogOverlay.RemoveScroll"),me=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(h,n);return a.jsx(ne,{as:pe,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(D.div,{"data-state":E(s.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",F=i.forwardRef((e,o)=>{const n=A(g,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,t=u(g,e.__scopeDialog);return a.jsx(R,{present:r||t.open,children:t.modal?a.jsx(xe,{...s,ref:o}):a.jsx(ve,{...s,ref:o})})});F.displayName=g;var xe=i.forwardRef((e,o)=>{const n=u(g,e.__scopeDialog),r=i.useRef(null),s=b(o,n.contentRef,r);return i.useEffect(()=>{const t=r.current;if(t)return ae(t)},[]),a.jsx(L,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,t=>{var l;t.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,t=>{const l=t.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&t.preventDefault()}),onFocusOutside:v(e.onFocusOutside,t=>t.preventDefault())})}),ve=i.forwardRef((e,o)=>{const n=u(g,e.__scopeDialog),r=i.useRef(!1),s=i.useRef(!1);return a.jsx(L,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,t),t.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),t.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:t=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=t.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&s.current&&t.preventDefault()}})}),L=i.forwardRef((e,o)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:t,...l}=e,c=u(g,n),d=i.useRef(null),f=b(o,d);return re(),a.jsxs(a.Fragment,{children:[a.jsx(se,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:t,children:a.jsx(ie,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":E(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(De,{titleId:c.titleId}),a.jsx(Ce,{contentRef:d,descriptionId:c.descriptionId})]})]})}),_="DialogTitle",S=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(_,n);return a.jsx(D.h2,{id:s.titleId,...r,ref:o})});S.displayName=_;var k="DialogDescription",W=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u(k,n);return a.jsx(D.p,{id:s.descriptionId,...r,ref:o})});W.displayName=k;var $="DialogClose",G=i.forwardRef((e,o)=>{const{__scopeDialog:n,...r}=e,s=u($,n);return a.jsx(D.button,{type:"button",...r,ref:o,onClick:v(e.onClick,()=>s.onOpenChange(!1))})});G.displayName=$;function E(e){return e?"open":"closed"}var B="DialogTitleWarning",[we,z]=ce(B,{contentName:g,titleName:_,docsSlug:"dialog"}),De=({titleId:e})=>{const o=z(B),n=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
5
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},he="DialogDescriptionWarning",Ce=({contentRef:e,descriptionId:o})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${z(he).contentName}}.`;return i.useEffect(()=>{var t;const s=(t=e.current)==null?void 0:t.getAttribute("aria-describedby");o&&s&&(document.getElementById(o)||console.warn(r))},[r,e,o]),null},ye=I,Ne=T,H=M,K=F,V=S,q=W,be=G;const Re=ye,je=Ne,J=i.forwardRef(({className:e,...o},n)=>a.jsx(H,{ref:n,className:m("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));J.displayName=H.displayName;const U=i.forwardRef(({className:e,children:o,...n},r)=>a.jsxs(je,{children:[a.jsx(J,{}),a.jsxs(K,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200/50 bg-white p-6 shadow-xl duration-base data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",e),...n,children:[o,a.jsxs(be,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(de,{className:"h-4 w-4 text-gray-500"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));U.displayName=K.displayName;const X=({className:e,...o})=>a.jsx("div",{className:m("flex flex-col space-y-2 text-center sm:text-left",e),...o});X.displayName="DialogHeader";const Y=({className:e,...o})=>a.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",e),...o});Y.displayName="DialogFooter";const Z=i.forwardRef(({className:e,...o},n)=>a.jsx(V,{ref:n,className:m("text-lg font-semibold leading-tight tracking-tight text-gray-900",e),...o}));Z.displayName=V.displayName;const Q=i.forwardRef(({className:e,...o},n)=>a.jsx(q,{ref:n,className:m("text-sm text-gray-500 leading-relaxed",e),...o}));Q.displayName=q.displayName;const _e=({open:e,onOpenChange:o,title:n,description:r,confirmLabel:s=p("confirm"),cancelLabel:t=p("cancel"),variant:l="default",onConfirm:c,onCancel:d})=>{const f=()=>{c(),o(!1)},x=()=>{d(),o(!1)};return a.jsx(Re,{open:e,onOpenChange:o,children:a.jsxs(U,{className:"[&>:last-child]:hidden",onCloseAutoFocus:y=>y.preventDefault(),children:[a.jsxs(X,{children:[a.jsx(Z,{children:n}),r?a.jsx(Q,{children:r}):null]}),a.jsxs(Y,{className:"gap-2 sm:gap-0",children:[a.jsx(P,{type:"button",variant:"outline",onClick:x,children:t}),a.jsx(P,{type:"button",variant:l==="destructive"?"destructive":"default",onClick:f,children:s})]})]})})},Ee={open:!1,title:"",description:"",confirmLabel:p("confirm"),cancelLabel:p("cancel"),variant:"default",resolve:null};function Ae(){const[e,o]=i.useState(Ee),n=i.useCallback(t=>new Promise(l=>{o({open:!0,title:t.title,description:t.description??"",confirmLabel:t.confirmLabel??p("confirm"),cancelLabel:t.cancelLabel??p("cancel"),variant:t.variant??"default",resolve:c=>{l(c),o(d=>({...d,open:!1,resolve:null}))}})}),[]),r=i.useCallback(t=>{o(l=>(!t&&l.resolve&&l.resolve(!1),{...l,open:t,resolve:t?l.resolve:null}))},[]),s=i.useCallback(()=>a.jsx(_e,{open:e.open,onOpenChange:r,title:e.title,description:e.description||void 0,confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,variant:e.variant,onConfirm:()=>{var t;return(t=e.resolve)==null?void 0:t.call(e,!0)},onCancel:()=>{var t;return(t=e.resolve)==null?void 0:t.call(e,!1)}}),[e,r]);return{confirm:n,ConfirmDialog:s}}export{Ae as u};
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},he="DialogDescriptionWarning",Ce=({contentRef:e,descriptionId:o})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${z(he).contentName}}.`;return i.useEffect(()=>{var t;const s=(t=e.current)==null?void 0:t.getAttribute("aria-describedby");o&&s&&(document.getElementById(o)||console.warn(r))},[r,e,o]),null},ye=I,Ne=T,H=M,K=F,V=S,q=W,be=G;const Re=ye,je=Ne,J=i.forwardRef(({className:e,...o},n)=>a.jsx(H,{ref:n,className:m("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));J.displayName=H.displayName;const U=i.forwardRef(({className:e,children:o,...n},r)=>a.jsxs(je,{children:[a.jsx(J,{}),a.jsxs(K,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200/50 bg-white p-6 shadow-xl duration-base data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",e),...n,children:[o,a.jsxs(be,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(de,{className:"h-4 w-4 text-gray-500"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));U.displayName=K.displayName;const X=({className:e,...o})=>a.jsx("div",{className:m("flex flex-col space-y-2 text-center sm:text-left",e),...o});X.displayName="DialogHeader";const Y=({className:e,...o})=>a.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",e),...o});Y.displayName="DialogFooter";const Z=i.forwardRef(({className:e,...o},n)=>a.jsx(V,{ref:n,className:m("text-lg font-semibold leading-tight tracking-tight text-gray-900",e),...o}));Z.displayName=V.displayName;const Q=i.forwardRef(({className:e,...o},n)=>a.jsx(q,{ref:n,className:m("text-sm text-gray-500 leading-relaxed",e),...o}));Q.displayName=q.displayName;const _e=({open:e,onOpenChange:o,title:n,description:r,confirmLabel:s=p("confirm"),cancelLabel:t=p("cancel"),variant:l="default",onConfirm:c,onCancel:d})=>{const f=()=>{c(),o(!1)},x=()=>{d(),o(!1)};return a.jsx(Re,{open:e,onOpenChange:o,children:a.jsxs(U,{className:"[&>:last-child]:hidden",onCloseAutoFocus:y=>y.preventDefault(),children:[a.jsxs(X,{children:[a.jsx(Z,{children:n}),r?a.jsx(Q,{children:r}):null]}),a.jsxs(Y,{className:"gap-2 sm:gap-0",children:[a.jsx(P,{type:"button",variant:"outline",onClick:x,children:t}),a.jsx(P,{type:"button",variant:l==="destructive"?"destructive":"default",onClick:f,children:s})]})]})})},Ee={open:!1,title:"",description:"",confirmLabel:p("confirm"),cancelLabel:p("cancel"),variant:"default",resolve:null};function Ae(){const[e,o]=i.useState(Ee),n=i.useCallback(t=>new Promise(l=>{o({open:!0,title:t.title,description:t.description??"",confirmLabel:t.confirmLabel??p("confirm"),cancelLabel:t.cancelLabel??p("cancel"),variant:t.variant??"default",resolve:c=>{l(c),o(d=>({...d,open:!1,resolve:null}))}})}),[]),r=i.useCallback(t=>{o(l=>(!t&&l.resolve&&l.resolve(!1),{...l,open:t,resolve:t?l.resolve:null}))},[]),s=i.useCallback(()=>a.jsx(_e,{open:e.open,onOpenChange:r,title:e.title,description:e.description||void 0,confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,variant:e.variant,onConfirm:()=>{var t;return(t=e.resolve)==null?void 0:t.call(e,!0)},onCancel:()=>{var t;return(t=e.resolve)==null?void 0:t.call(e,!1)}}),[e,r]);return{confirm:n,ConfirmDialog:s}}export{Re as D,U as a,X as b,Z as c,Q as d,Y as e,Ae as u};
@@ -404,4 +404,4 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
404
404
  `)},Gh=function(){var n=parseInt(document.body.getAttribute(ei)||"0",10);return isFinite(n)?n:0},aC=function(){g.useEffect(function(){return document.body.setAttribute(ei,(Gh()+1).toString()),function(){var n=Gh()-1;n<=0?document.body.removeAttribute(ei):document.body.setAttribute(ei,n.toString())}},[])},uC=function(n){var r=n.noRelative,i=n.noImportant,l=n.gapMode,a=l===void 0?"margin":l;aC();var c=g.useMemo(function(){return iC(a)},[a]);return g.createElement(sC,{styles:lC(c,!r,a,i?"":"!important")})},jc=!1;if(typeof window<"u")try{var $l=Object.defineProperty({},"passive",{get:function(){return jc=!0,!0}});window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{jc=!1}var Go=jc?{passive:!1}:!1,cC=function(n){return n.tagName==="TEXTAREA"},zv=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!cC(n)&&i[r]==="visible")},dC=function(n){return zv(n,"overflowY")},fC=function(n){return zv(n,"overflowX")},Xh=function(n,r){var i=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var a=jv(n,l);if(a){var c=Bv(n,l),f=c[1],p=c[2];if(f>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},pC=function(n){var r=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[r,i,l]},hC=function(n){var r=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[r,i,l]},jv=function(n,r){return n==="v"?dC(r):fC(r)},Bv=function(n,r){return n==="v"?pC(r):hC(r)},mC=function(n,r){return n==="h"&&r==="rtl"?-1:1},vC=function(n,r,i,l,a){var c=mC(n,window.getComputedStyle(r).direction),f=c*l,p=i.target,h=r.contains(p),m=!1,w=f>0,x=0,k=0;do{if(!p)break;var y=Bv(n,p),O=y[0],S=y[1],C=y[2],P=S-C-c*O;(O||P)&&jv(n,p)&&(x+=P,k+=O);var T=p.parentNode;p=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!h&&p!==document.body||h&&(r.contains(p)||r===p));return(w&&Math.abs(x)<1||!w&&Math.abs(k)<1)&&(m=!0),m},Vl=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Zh=function(n){return[n.deltaX,n.deltaY]},Jh=function(n){return n&&"current"in n?n.current:n},yC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},gC=function(n){return`
405
405
  .block-interactivity-`.concat(n,` {pointer-events: none;}
406
406
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
407
- `)},wC=0,Xo=[];function xC(n){var r=g.useRef([]),i=g.useRef([0,0]),l=g.useRef(),a=g.useState(wC++)[0],c=g.useState(Fv)[0],f=g.useRef(n);g.useEffect(function(){f.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=U2([n.lockRef.current],(n.shards||[]).map(Jh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var p=g.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var P=Vl(S),T=i.current,R="deltaX"in S?S.deltaX:T[0]-P[0],L="deltaY"in S?S.deltaY:T[1]-P[1],z,U=S.target,H=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in S&&H==="h"&&U.type==="range")return!1;var q=window.getSelection(),Z=q&&q.anchorNode,te=Z?Z===U||Z.contains(U):!1;if(te)return!1;var he=Xh(H,U);if(!he)return!0;if(he?z=H:(z=H==="v"?"h":"v",he=Xh(H,U)),!he)return!1;if(!l.current&&"changedTouches"in S&&(R||L)&&(l.current=z),!z)return!0;var X=l.current||z;return vC(X,C,S,X==="h"?R:L)},[]),h=g.useCallback(function(S){var C=S;if(!(!Xo.length||Xo[Xo.length-1]!==c)){var P="deltaY"in C?Zh(C):Vl(C),T=r.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&yC(z.delta,P)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(f.current.shards||[]).map(Jh).filter(Boolean).filter(function(z){return z.contains(C.target)}),L=R.length>0?p(C,R[0]):!f.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),m=g.useCallback(function(S,C,P,T){var R={name:S,delta:C,target:P,should:T,shadowParent:SC(P)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(L){return L!==R})},1)},[]),w=g.useCallback(function(S){i.current=Vl(S),l.current=void 0},[]),x=g.useCallback(function(S){m(S.type,Zh(S),S.target,p(S,n.lockRef.current))},[]),k=g.useCallback(function(S){m(S.type,Vl(S),S.target,p(S,n.lockRef.current))},[]);g.useEffect(function(){return Xo.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:k}),document.addEventListener("wheel",h,Go),document.addEventListener("touchmove",h,Go),document.addEventListener("touchstart",w,Go),function(){Xo=Xo.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Go),document.removeEventListener("touchmove",h,Go),document.removeEventListener("touchstart",w,Go)}},[]);var y=n.removeScrollBar,O=n.inert;return g.createElement(g.Fragment,null,O?g.createElement(c,{styles:gC(a)}):null,y?g.createElement(uC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function SC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const CC=G2(Dv,xC);var Uv=g.forwardRef(function(n,r){return g.createElement(fa,Ln({},n,{ref:r,sideCar:CC}))});Uv.classNames=fa.classNames;var kC=[" ","Enter","ArrowUp","ArrowDown"],EC=[" ","Enter"],xo="Select",[pa,ha,bC]=zx(xo),[Si]=sd(xo,[bC,Sv]),ma=Sv(),[RC,$r]=Si(xo),[PC,MC]=Si(xo),Hv=n=>{const{__scopeSelect:r,children:i,open:l,defaultOpen:a,onOpenChange:c,value:f,defaultValue:p,onValueChange:h,dir:m,name:w,autoComplete:x,disabled:k,required:y,form:O}=n,S=ma(r),[C,P]=g.useState(null),[T,R]=g.useState(null),[L,z]=g.useState(!1),U=Bx(m),[H,q]=qh({prop:l,defaultProp:a??!1,onChange:c,caller:xo}),[Z,te]=qh({prop:f,defaultProp:p,onChange:h,caller:xo}),he=g.useRef(null),X=C?O||!!C.closest("form"):!0,[ye,ce]=g.useState(new Set),xe=Array.from(ye).map(ae=>ae.props.value).join(";");return ee.jsx(P2,{...S,children:ee.jsxs(RC,{required:y,scope:r,trigger:C,onTriggerChange:P,valueNode:T,onValueNodeChange:R,valueNodeHasChildren:L,onValueNodeHasChildrenChange:z,contentId:ld(),value:Z,onValueChange:te,open:H,onOpenChange:q,dir:U,triggerPointerDownPosRef:he,disabled:k,children:[ee.jsx(pa.Provider,{scope:r,children:ee.jsx(PC,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(ae=>{ce(ie=>new Set(ie).add(ae))},[]),onNativeOptionRemove:g.useCallback(ae=>{ce(ie=>{const j=new Set(ie);return j.delete(ae),j})},[]),children:i})}),X?ee.jsxs(fy,{"aria-hidden":!0,required:y,tabIndex:-1,name:w,autoComplete:x,value:Z,onChange:ae=>te(ae.target.value),disabled:k,form:O,children:[Z===void 0?ee.jsx("option",{value:""}):null,Array.from(ye)]},xe):null]})})};Hv.displayName=xo;var $v="SelectTrigger",Vv=g.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:l=!1,...a}=n,c=ma(i),f=$r($v,i),p=f.disabled||l,h=ct(r,f.onTriggerChange),m=ha(i),w=g.useRef("touch"),[x,k,y]=hy(S=>{const C=m().filter(R=>!R.disabled),P=C.find(R=>R.value===f.value),T=my(C,S,P);T!==void 0&&f.onValueChange(T.value)}),O=S=>{p||(f.onOpenChange(!0),y()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return ee.jsx(M2,{asChild:!0,...c,children:ee.jsx(Xe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":py(f.value)?"":void 0,...a,ref:h,onClick:Je(a.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&O(S)}),onPointerDown:Je(a.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(O(S),S.preventDefault())}),onKeyDown:Je(a.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&k(S.key),!(C&&S.key===" ")&&kC.includes(S.key)&&(O(),S.preventDefault())})})})});Vv.displayName=$v;var Wv="SelectValue",Qv=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,children:c,placeholder:f="",...p}=n,h=$r(Wv,i),{onValueNodeHasChildrenChange:m}=h,w=c!==void 0,x=ct(r,h.onValueNodeChange);return At(()=>{m(w)},[m,w]),ee.jsx(Xe.span,{...p,ref:x,style:{pointerEvents:"none"},children:py(h.value)?ee.jsx(ee.Fragment,{children:f}):c})});Qv.displayName=Wv;var TC="SelectIcon",Kv=g.forwardRef((n,r)=>{const{__scopeSelect:i,children:l,...a}=n;return ee.jsx(Xe.span,{"aria-hidden":!0,...a,ref:r,children:l||"▼"})});Kv.displayName=TC;var OC="SelectPortal",qv=n=>ee.jsx(Ov,{asChild:!0,...n});qv.displayName=OC;var So="SelectContent",Yv=g.forwardRef((n,r)=>{const i=$r(So,n.__scopeSelect),[l,a]=g.useState();if(At(()=>{a(new DocumentFragment)},[]),!i.open){const c=l;return c?xs.createPortal(ee.jsx(Gv,{scope:n.__scopeSelect,children:ee.jsx(pa.Slot,{scope:n.__scopeSelect,children:ee.jsx("div",{children:n.children})})}),c):null}return ee.jsx(Xv,{...n,ref:r})});Yv.displayName=So;var cn=10,[Gv,Vr]=Si(So),_C="SelectContentImpl",NC=ea("SelectContent.RemoveScroll"),Xv=g.forwardRef((n,r)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:f,side:p,sideOffset:h,align:m,alignOffset:w,arrowPadding:x,collisionBoundary:k,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C,...P}=n,T=$r(So,i),[R,L]=g.useState(null),[z,U]=g.useState(null),H=ct(r,K=>L(K)),[q,Z]=g.useState(null),[te,he]=g.useState(null),X=ha(i),[ye,ce]=g.useState(!1),xe=g.useRef(!1);g.useEffect(()=>{if(R)return B2(R)},[R]),Xx();const ae=g.useCallback(K=>{const[fe,...Ce]=X().map(Oe=>Oe.ref.current),[be]=Ce.slice(-1),Me=document.activeElement;for(const Oe of K)if(Oe===Me||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===fe&&z&&(z.scrollTop=0),Oe===be&&z&&(z.scrollTop=z.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Me))return},[X,z]),ie=g.useCallback(()=>ae([q,R]),[ae,q,R]);g.useEffect(()=>{ye&&ie()},[ye,ie]);const{onOpenChange:j,triggerPointerDownPosRef:B}=T;g.useEffect(()=>{if(R){let K={x:0,y:0};const fe=be=>{var Me,Oe;K={x:Math.abs(Math.round(be.pageX)-(((Me=B.current)==null?void 0:Me.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Oe=B.current)==null?void 0:Oe.y)??0))}},Ce=be=>{K.x<=10&&K.y<=10?be.preventDefault():R.contains(be.target)||j(!1),document.removeEventListener("pointermove",fe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[R,j,B]),g.useEffect(()=>{const K=()=>j(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[j]);const[W,_]=hy(K=>{const fe=X().filter(Me=>!Me.disabled),Ce=fe.find(Me=>Me.ref.current===document.activeElement),be=my(fe,K,Ce);be&&setTimeout(()=>be.ref.current.focus())}),F=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&(Z(K),be&&(xe.current=!0))},[T.value]),ne=g.useCallback(()=>R==null?void 0:R.focus(),[R]),re=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&he(K)},[T.value]),ve=l==="popper"?Bc:Zv,Se=ve===Bc?{side:p,sideOffset:h,align:m,alignOffset:w,arrowPadding:x,collisionBoundary:k,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C}:{};return ee.jsx(Gv,{scope:i,content:R,viewport:z,onViewportChange:U,itemRefCallback:F,selectedItem:q,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:ie,selectedItemText:te,position:l,isPositioned:ye,searchRef:W,children:ee.jsx(Uv,{as:NC,allowPinchZoom:!0,children:ee.jsx(sv,{asChild:!0,trapped:T.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Je(a,K=>{var fe;(fe=T.trigger)==null||fe.focus({preventScroll:!0}),K.preventDefault()}),children:ee.jsx(ov,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:ee.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:K=>K.preventDefault(),...P,...Se,onPlaced:()=>ce(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Je(P.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&_(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let be=X().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(K.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Me=K.target,Oe=be.indexOf(Me);be=be.slice(Oe+1)}setTimeout(()=>ae(be)),K.preventDefault()}})})})})})})});Xv.displayName=_C;var LC="SelectItemAlignedPosition",Zv=g.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:l,...a}=n,c=$r(So,i),f=Vr(So,i),[p,h]=g.useState(null),[m,w]=g.useState(null),x=ct(r,H=>w(H)),k=ha(i),y=g.useRef(!1),O=g.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:P,focusSelectedItem:T}=f,R=g.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&m&&S&&C&&P){const H=c.trigger.getBoundingClientRect(),q=m.getBoundingClientRect(),Z=c.valueNode.getBoundingClientRect(),te=P.getBoundingClientRect();if(c.dir!=="rtl"){const Me=te.left-q.left,Oe=Z.left-Me,qe=H.left-Oe,dt=H.width+qe,yn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Mh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.left=Zt+"px"}else{const Me=q.right-te.right,Oe=window.innerWidth-Z.right-Me,qe=window.innerWidth-H.right-Oe,dt=H.width+qe,yn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Mh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.right=Zt+"px"}const he=k(),X=window.innerHeight-cn*2,ye=S.scrollHeight,ce=window.getComputedStyle(m),xe=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.paddingTop,10),ie=parseInt(ce.borderBottomWidth,10),j=parseInt(ce.paddingBottom,10),B=xe+ae+ye+j+ie,W=Math.min(C.offsetHeight*5,B),_=window.getComputedStyle(S),F=parseInt(_.paddingTop,10),ne=parseInt(_.paddingBottom,10),re=H.top+H.height/2-cn,ve=X-re,Se=C.offsetHeight/2,K=C.offsetTop+Se,fe=xe+ae+K,Ce=B-fe;if(fe<=re){const Me=he.length>0&&C===he[he.length-1].ref.current;p.style.bottom="0px";const Oe=m.clientHeight-S.offsetTop-S.offsetHeight,qe=Math.max(ve,Se+(Me?ne:0)+Oe+ie),dt=fe+qe;p.style.height=dt+"px"}else{const Me=he.length>0&&C===he[0].ref.current;p.style.top="0px";const qe=Math.max(re,xe+S.offsetTop+(Me?F:0)+Se)+Ce;p.style.height=qe+"px",S.scrollTop=fe-re+S.offsetTop}p.style.margin=`${cn}px 0`,p.style.minHeight=W+"px",p.style.maxHeight=X+"px",l==null||l(),requestAnimationFrame(()=>y.current=!0)}},[k,c.trigger,c.valueNode,p,m,S,C,P,c.dir,l]);At(()=>R(),[R]);const[L,z]=g.useState();At(()=>{m&&z(window.getComputedStyle(m).zIndex)},[m]);const U=g.useCallback(H=>{H&&O.current===!0&&(R(),T==null||T(),O.current=!1)},[R,T]);return ee.jsx(IC,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:y,onScrollButtonChange:U,children:ee.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ee.jsx(Xe.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Zv.displayName=LC;var AC="SelectPopperPosition",Bc=g.forwardRef((n,r)=>{const{__scopeSelect:i,align:l="start",collisionPadding:a=cn,...c}=n,f=ma(i);return ee.jsx(T2,{...f,...c,ref:r,align:l,collisionPadding:a,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bc.displayName=AC;var[IC,vd]=Si(So,{}),Uc="SelectViewport",Jv=g.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:l,...a}=n,c=Vr(Uc,i),f=vd(Uc,i),p=ct(r,c.onViewportChange),h=g.useRef(0);return ee.jsxs(ee.Fragment,{children:[ee.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),ee.jsx(pa.Slot,{scope:i,children:ee.jsx(Xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,m=>{const w=m.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:k}=f;if(k!=null&&k.current&&x){const y=Math.abs(h.current-w.scrollTop);if(y>0){const O=window.innerHeight-cn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),P=Math.max(S,C);if(P<O){const T=P+y,R=Math.min(O,T),L=T-R;x.style.height=R+"px",x.style.bottom==="0px"&&(w.scrollTop=L>0?L:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Jv.displayName=Uc;var ey="SelectGroup",[DC,FC]=Si(ey),zC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ld();return ee.jsx(DC,{scope:i,id:a,children:ee.jsx(Xe.div,{role:"group","aria-labelledby":a,...l,ref:r})})});zC.displayName=ey;var ty="SelectLabel",ny=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=FC(ty,i);return ee.jsx(Xe.div,{id:a.id,...l,ref:r})});ny.displayName=ty;var ia="SelectItem",[jC,ry]=Si(ia),oy=g.forwardRef((n,r)=>{const{__scopeSelect:i,value:l,disabled:a=!1,textValue:c,...f}=n,p=$r(ia,i),h=Vr(ia,i),m=p.value===l,[w,x]=g.useState(c??""),[k,y]=g.useState(!1),O=ct(r,T=>{var R;return(R=h.itemRefCallback)==null?void 0:R.call(h,T,l,a)}),S=ld(),C=g.useRef("touch"),P=()=>{a||(p.onValueChange(l),p.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ee.jsx(jC,{scope:i,value:l,disabled:a,textId:S,isSelected:m,onItemTextChange:g.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:ee.jsx(pa.ItemSlot,{scope:i,value:l,disabled:a,textValue:w,children:ee.jsx(Xe.div,{role:"option","aria-labelledby":S,"data-highlighted":k?"":void 0,"aria-selected":m&&k,"data-state":m?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:O,onFocus:Je(f.onFocus,()=>y(!0)),onBlur:Je(f.onBlur,()=>y(!1)),onClick:Je(f.onClick,()=>{C.current!=="mouse"&&P()}),onPointerUp:Je(f.onPointerUp,()=>{C.current==="mouse"&&P()}),onPointerDown:Je(f.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:Je(f.onPointerMove,T=>{var R;C.current=T.pointerType,a?(R=h.onItemLeave)==null||R.call(h):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(f.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=h.onItemLeave)==null||R.call(h))}),onKeyDown:Je(f.onKeyDown,T=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(EC.includes(T.key)&&P(),T.key===" "&&T.preventDefault())})})})})});oy.displayName=ia;var us="SelectItemText",iy=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,...c}=n,f=$r(us,i),p=Vr(us,i),h=ry(us,i),m=MC(us,i),[w,x]=g.useState(null),k=ct(r,P=>x(P),h.onItemTextChange,P=>{var T;return(T=p.itemTextRefCallback)==null?void 0:T.call(p,P,h.value,h.disabled)}),y=w==null?void 0:w.textContent,O=g.useMemo(()=>ee.jsx("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=m;return At(()=>(S(O),()=>C(O)),[S,C,O]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Xe.span,{id:h.textId,...c,ref:k}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?xs.createPortal(c.children,f.valueNode):null]})});iy.displayName=us;var sy="SelectItemIndicator",ly=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ry(sy,i).isSelected?ee.jsx(Xe.span,{"aria-hidden":!0,...l,ref:r}):null});ly.displayName=sy;var Hc="SelectScrollUpButton",ay=g.forwardRef((n,r)=>{const i=Vr(Hc,n.__scopeSelect),l=vd(Hc,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const m=h.scrollTop>0;c(m)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(cy,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});ay.displayName=Hc;var $c="SelectScrollDownButton",uy=g.forwardRef((n,r)=>{const i=Vr($c,n.__scopeSelect),l=vd($c,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const m=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<m;c(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(cy,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});uy.displayName=$c;var cy=g.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:l,...a}=n,c=Vr("SelectScrollButton",i),f=g.useRef(null),p=ha(i),h=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),At(()=>{var w;const m=p().find(x=>x.ref.current===document.activeElement);(w=m==null?void 0:m.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),ee.jsx(Xe.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:Je(a.onPointerMove,()=>{var m;(m=c.onItemLeave)==null||m.call(c),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{h()})})}),BC="SelectSeparator",dy=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ee.jsx(Xe.div,{"aria-hidden":!0,...l,ref:r})});dy.displayName=BC;var Vc="SelectArrow",UC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ma(i),c=$r(Vc,i),f=Vr(Vc,i);return c.open&&f.position==="popper"?ee.jsx(O2,{...a,...l,ref:r}):null});UC.displayName=Vc;var HC="SelectBubbleInput",fy=g.forwardRef(({__scopeSelect:n,value:r,...i},l)=>{const a=g.useRef(null),c=ct(l,a),f=I2(r);return g.useEffect(()=>{const p=a.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==r&&w){const x=new Event("change",{bubbles:!0});w.call(p,r),p.dispatchEvent(x)}},[f,r]),ee.jsx(Xe.select,{...i,style:{..._v,...i.style},ref:c,defaultValue:r})});fy.displayName=HC;function py(n){return n===""||n===void 0}function hy(n){const r=go(n),i=g.useRef(""),l=g.useRef(0),a=g.useCallback(f=>{const p=i.current+f;r(p),(function h(m){i.current=m,window.clearTimeout(l.current),m!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(p)},[r]),c=g.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,a,c]}function my(n,r,i){const a=r.length>1&&Array.from(r).every(m=>m===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let f=$C(n,Math.max(c,0));a.length===1&&(f=f.filter(m=>m!==i));const h=f.find(m=>m.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function $C(n,r){return n.map((i,l)=>n[(r+l)%n.length])}var wE=Hv,xE=Vv,SE=Qv,CE=Kv,kE=qv,EE=Yv,bE=Jv,RE=ny,PE=oy,ME=iy,TE=ly,OE=ay,_E=uy,NE=dy;const em=n=>{let r;const i=new Set,l=(m,w)=>{const x=typeof m=="function"?m(r):m;if(!Object.is(x,r)){const k=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),i.forEach(y=>y(r,k))}},a=()=>r,p={setState:l,getState:a,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m))},h=r=n(l,a,p);return p},VC=(n=>n?em(n):em),WC=n=>n;function QC(n,r=WC){const i=G.useSyncExternalStore(n.subscribe,G.useCallback(()=>r(n.getState()),[n,r]),G.useCallback(()=>r(n.getInitialState()),[n,r]));return G.useDebugValue(i),i}const tm=n=>{const r=VC(n),i=l=>QC(r,l);return Object.assign(i,r),i},LE=(n=>n?tm(n):tm);export{lk as $,ak as A,hk as B,yk as C,Wk as D,Fk as E,fk as F,Ok as G,Ak as H,CE as I,Hr as J,Dk as K,RE as L,Uk as M,F1 as N,LE as O,kE as P,ek as Q,wE as R,OE as S,xE as T,tk as U,bE as V,XC as W,f1 as X,GC as Y,qC as Z,ZC as _,ok as a,At as a$,wk as a0,Tk as a1,zk as a2,dk as a3,Zk as a4,bk as a5,Kk as a6,mk as a7,cE as a8,dE as a9,P2 as aA,ld as aB,ct as aC,Xe as aD,Je as aE,M2 as aF,Sv as aG,Ov as aH,sd as aI,B2 as aJ,Uv as aK,ea as aL,Xx as aM,sv as aN,ov as aO,T2 as aP,O2 as aQ,jk as aR,Lk as aS,aE as aT,eE as aU,Ik as aV,Ck as aW,mE as aX,hE as aY,Vk as aZ,pE as a_,pk as aa,pm as ab,kk as ac,lE as ad,_k as ae,Mk as af,nE as ag,Sk as ah,Gk as ai,Hk as aj,yE as ak,U2 as al,gE as am,vE as an,uE as ao,Jk as ap,qk as aq,Xk as ar,Rm as as,YC as at,Rk as au,Pk as av,fE as aw,rE as ax,xk as ay,qh as az,Qm as b,Bk as b0,Qk as b1,ck as b2,Nk as b3,Rw as c,rk as d,sk as e,gk as f,_E as g,EE as h,PE as i,ee as j,TE as k,vk as l,ME as m,NE as n,SE as o,Ek as p,sE as q,g as r,tE as s,ik as t,nk as u,$k as v,iE as w,Yk as x,uk as y,oE as z};
407
+ `)},wC=0,Xo=[];function xC(n){var r=g.useRef([]),i=g.useRef([0,0]),l=g.useRef(),a=g.useState(wC++)[0],c=g.useState(Fv)[0],f=g.useRef(n);g.useEffect(function(){f.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=U2([n.lockRef.current],(n.shards||[]).map(Jh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var p=g.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var P=Vl(S),T=i.current,R="deltaX"in S?S.deltaX:T[0]-P[0],L="deltaY"in S?S.deltaY:T[1]-P[1],z,U=S.target,H=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in S&&H==="h"&&U.type==="range")return!1;var q=window.getSelection(),Z=q&&q.anchorNode,te=Z?Z===U||Z.contains(U):!1;if(te)return!1;var he=Xh(H,U);if(!he)return!0;if(he?z=H:(z=H==="v"?"h":"v",he=Xh(H,U)),!he)return!1;if(!l.current&&"changedTouches"in S&&(R||L)&&(l.current=z),!z)return!0;var X=l.current||z;return vC(X,C,S,X==="h"?R:L)},[]),h=g.useCallback(function(S){var C=S;if(!(!Xo.length||Xo[Xo.length-1]!==c)){var P="deltaY"in C?Zh(C):Vl(C),T=r.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&yC(z.delta,P)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(f.current.shards||[]).map(Jh).filter(Boolean).filter(function(z){return z.contains(C.target)}),L=R.length>0?p(C,R[0]):!f.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),m=g.useCallback(function(S,C,P,T){var R={name:S,delta:C,target:P,should:T,shadowParent:SC(P)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(L){return L!==R})},1)},[]),w=g.useCallback(function(S){i.current=Vl(S),l.current=void 0},[]),x=g.useCallback(function(S){m(S.type,Zh(S),S.target,p(S,n.lockRef.current))},[]),k=g.useCallback(function(S){m(S.type,Vl(S),S.target,p(S,n.lockRef.current))},[]);g.useEffect(function(){return Xo.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:k}),document.addEventListener("wheel",h,Go),document.addEventListener("touchmove",h,Go),document.addEventListener("touchstart",w,Go),function(){Xo=Xo.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Go),document.removeEventListener("touchmove",h,Go),document.removeEventListener("touchstart",w,Go)}},[]);var y=n.removeScrollBar,O=n.inert;return g.createElement(g.Fragment,null,O?g.createElement(c,{styles:gC(a)}):null,y?g.createElement(uC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function SC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const CC=G2(Dv,xC);var Uv=g.forwardRef(function(n,r){return g.createElement(fa,Ln({},n,{ref:r,sideCar:CC}))});Uv.classNames=fa.classNames;var kC=[" ","Enter","ArrowUp","ArrowDown"],EC=[" ","Enter"],xo="Select",[pa,ha,bC]=zx(xo),[Si]=sd(xo,[bC,Sv]),ma=Sv(),[RC,$r]=Si(xo),[PC,MC]=Si(xo),Hv=n=>{const{__scopeSelect:r,children:i,open:l,defaultOpen:a,onOpenChange:c,value:f,defaultValue:p,onValueChange:h,dir:m,name:w,autoComplete:x,disabled:k,required:y,form:O}=n,S=ma(r),[C,P]=g.useState(null),[T,R]=g.useState(null),[L,z]=g.useState(!1),U=Bx(m),[H,q]=qh({prop:l,defaultProp:a??!1,onChange:c,caller:xo}),[Z,te]=qh({prop:f,defaultProp:p,onChange:h,caller:xo}),he=g.useRef(null),X=C?O||!!C.closest("form"):!0,[ye,ce]=g.useState(new Set),xe=Array.from(ye).map(ae=>ae.props.value).join(";");return ee.jsx(P2,{...S,children:ee.jsxs(RC,{required:y,scope:r,trigger:C,onTriggerChange:P,valueNode:T,onValueNodeChange:R,valueNodeHasChildren:L,onValueNodeHasChildrenChange:z,contentId:ld(),value:Z,onValueChange:te,open:H,onOpenChange:q,dir:U,triggerPointerDownPosRef:he,disabled:k,children:[ee.jsx(pa.Provider,{scope:r,children:ee.jsx(PC,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(ae=>{ce(ie=>new Set(ie).add(ae))},[]),onNativeOptionRemove:g.useCallback(ae=>{ce(ie=>{const j=new Set(ie);return j.delete(ae),j})},[]),children:i})}),X?ee.jsxs(fy,{"aria-hidden":!0,required:y,tabIndex:-1,name:w,autoComplete:x,value:Z,onChange:ae=>te(ae.target.value),disabled:k,form:O,children:[Z===void 0?ee.jsx("option",{value:""}):null,Array.from(ye)]},xe):null]})})};Hv.displayName=xo;var $v="SelectTrigger",Vv=g.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:l=!1,...a}=n,c=ma(i),f=$r($v,i),p=f.disabled||l,h=ct(r,f.onTriggerChange),m=ha(i),w=g.useRef("touch"),[x,k,y]=hy(S=>{const C=m().filter(R=>!R.disabled),P=C.find(R=>R.value===f.value),T=my(C,S,P);T!==void 0&&f.onValueChange(T.value)}),O=S=>{p||(f.onOpenChange(!0),y()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return ee.jsx(M2,{asChild:!0,...c,children:ee.jsx(Xe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":py(f.value)?"":void 0,...a,ref:h,onClick:Je(a.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&O(S)}),onPointerDown:Je(a.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(O(S),S.preventDefault())}),onKeyDown:Je(a.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&k(S.key),!(C&&S.key===" ")&&kC.includes(S.key)&&(O(),S.preventDefault())})})})});Vv.displayName=$v;var Wv="SelectValue",Qv=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,children:c,placeholder:f="",...p}=n,h=$r(Wv,i),{onValueNodeHasChildrenChange:m}=h,w=c!==void 0,x=ct(r,h.onValueNodeChange);return At(()=>{m(w)},[m,w]),ee.jsx(Xe.span,{...p,ref:x,style:{pointerEvents:"none"},children:py(h.value)?ee.jsx(ee.Fragment,{children:f}):c})});Qv.displayName=Wv;var TC="SelectIcon",Kv=g.forwardRef((n,r)=>{const{__scopeSelect:i,children:l,...a}=n;return ee.jsx(Xe.span,{"aria-hidden":!0,...a,ref:r,children:l||"▼"})});Kv.displayName=TC;var OC="SelectPortal",qv=n=>ee.jsx(Ov,{asChild:!0,...n});qv.displayName=OC;var So="SelectContent",Yv=g.forwardRef((n,r)=>{const i=$r(So,n.__scopeSelect),[l,a]=g.useState();if(At(()=>{a(new DocumentFragment)},[]),!i.open){const c=l;return c?xs.createPortal(ee.jsx(Gv,{scope:n.__scopeSelect,children:ee.jsx(pa.Slot,{scope:n.__scopeSelect,children:ee.jsx("div",{children:n.children})})}),c):null}return ee.jsx(Xv,{...n,ref:r})});Yv.displayName=So;var cn=10,[Gv,Vr]=Si(So),_C="SelectContentImpl",NC=ea("SelectContent.RemoveScroll"),Xv=g.forwardRef((n,r)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:f,side:p,sideOffset:h,align:m,alignOffset:w,arrowPadding:x,collisionBoundary:k,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C,...P}=n,T=$r(So,i),[R,L]=g.useState(null),[z,U]=g.useState(null),H=ct(r,K=>L(K)),[q,Z]=g.useState(null),[te,he]=g.useState(null),X=ha(i),[ye,ce]=g.useState(!1),xe=g.useRef(!1);g.useEffect(()=>{if(R)return B2(R)},[R]),Xx();const ae=g.useCallback(K=>{const[fe,...Ce]=X().map(Oe=>Oe.ref.current),[be]=Ce.slice(-1),Me=document.activeElement;for(const Oe of K)if(Oe===Me||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===fe&&z&&(z.scrollTop=0),Oe===be&&z&&(z.scrollTop=z.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Me))return},[X,z]),ie=g.useCallback(()=>ae([q,R]),[ae,q,R]);g.useEffect(()=>{ye&&ie()},[ye,ie]);const{onOpenChange:j,triggerPointerDownPosRef:B}=T;g.useEffect(()=>{if(R){let K={x:0,y:0};const fe=be=>{var Me,Oe;K={x:Math.abs(Math.round(be.pageX)-(((Me=B.current)==null?void 0:Me.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Oe=B.current)==null?void 0:Oe.y)??0))}},Ce=be=>{K.x<=10&&K.y<=10?be.preventDefault():R.contains(be.target)||j(!1),document.removeEventListener("pointermove",fe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[R,j,B]),g.useEffect(()=>{const K=()=>j(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[j]);const[W,_]=hy(K=>{const fe=X().filter(Me=>!Me.disabled),Ce=fe.find(Me=>Me.ref.current===document.activeElement),be=my(fe,K,Ce);be&&setTimeout(()=>be.ref.current.focus())}),F=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&(Z(K),be&&(xe.current=!0))},[T.value]),ne=g.useCallback(()=>R==null?void 0:R.focus(),[R]),re=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&he(K)},[T.value]),ve=l==="popper"?Bc:Zv,Se=ve===Bc?{side:p,sideOffset:h,align:m,alignOffset:w,arrowPadding:x,collisionBoundary:k,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C}:{};return ee.jsx(Gv,{scope:i,content:R,viewport:z,onViewportChange:U,itemRefCallback:F,selectedItem:q,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:ie,selectedItemText:te,position:l,isPositioned:ye,searchRef:W,children:ee.jsx(Uv,{as:NC,allowPinchZoom:!0,children:ee.jsx(sv,{asChild:!0,trapped:T.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Je(a,K=>{var fe;(fe=T.trigger)==null||fe.focus({preventScroll:!0}),K.preventDefault()}),children:ee.jsx(ov,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:ee.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:K=>K.preventDefault(),...P,...Se,onPlaced:()=>ce(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Je(P.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&_(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let be=X().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(K.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Me=K.target,Oe=be.indexOf(Me);be=be.slice(Oe+1)}setTimeout(()=>ae(be)),K.preventDefault()}})})})})})})});Xv.displayName=_C;var LC="SelectItemAlignedPosition",Zv=g.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:l,...a}=n,c=$r(So,i),f=Vr(So,i),[p,h]=g.useState(null),[m,w]=g.useState(null),x=ct(r,H=>w(H)),k=ha(i),y=g.useRef(!1),O=g.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:P,focusSelectedItem:T}=f,R=g.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&m&&S&&C&&P){const H=c.trigger.getBoundingClientRect(),q=m.getBoundingClientRect(),Z=c.valueNode.getBoundingClientRect(),te=P.getBoundingClientRect();if(c.dir!=="rtl"){const Me=te.left-q.left,Oe=Z.left-Me,qe=H.left-Oe,dt=H.width+qe,yn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Mh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.left=Zt+"px"}else{const Me=q.right-te.right,Oe=window.innerWidth-Z.right-Me,qe=window.innerWidth-H.right-Oe,dt=H.width+qe,yn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Mh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.right=Zt+"px"}const he=k(),X=window.innerHeight-cn*2,ye=S.scrollHeight,ce=window.getComputedStyle(m),xe=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.paddingTop,10),ie=parseInt(ce.borderBottomWidth,10),j=parseInt(ce.paddingBottom,10),B=xe+ae+ye+j+ie,W=Math.min(C.offsetHeight*5,B),_=window.getComputedStyle(S),F=parseInt(_.paddingTop,10),ne=parseInt(_.paddingBottom,10),re=H.top+H.height/2-cn,ve=X-re,Se=C.offsetHeight/2,K=C.offsetTop+Se,fe=xe+ae+K,Ce=B-fe;if(fe<=re){const Me=he.length>0&&C===he[he.length-1].ref.current;p.style.bottom="0px";const Oe=m.clientHeight-S.offsetTop-S.offsetHeight,qe=Math.max(ve,Se+(Me?ne:0)+Oe+ie),dt=fe+qe;p.style.height=dt+"px"}else{const Me=he.length>0&&C===he[0].ref.current;p.style.top="0px";const qe=Math.max(re,xe+S.offsetTop+(Me?F:0)+Se)+Ce;p.style.height=qe+"px",S.scrollTop=fe-re+S.offsetTop}p.style.margin=`${cn}px 0`,p.style.minHeight=W+"px",p.style.maxHeight=X+"px",l==null||l(),requestAnimationFrame(()=>y.current=!0)}},[k,c.trigger,c.valueNode,p,m,S,C,P,c.dir,l]);At(()=>R(),[R]);const[L,z]=g.useState();At(()=>{m&&z(window.getComputedStyle(m).zIndex)},[m]);const U=g.useCallback(H=>{H&&O.current===!0&&(R(),T==null||T(),O.current=!1)},[R,T]);return ee.jsx(IC,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:y,onScrollButtonChange:U,children:ee.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ee.jsx(Xe.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Zv.displayName=LC;var AC="SelectPopperPosition",Bc=g.forwardRef((n,r)=>{const{__scopeSelect:i,align:l="start",collisionPadding:a=cn,...c}=n,f=ma(i);return ee.jsx(T2,{...f,...c,ref:r,align:l,collisionPadding:a,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bc.displayName=AC;var[IC,vd]=Si(So,{}),Uc="SelectViewport",Jv=g.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:l,...a}=n,c=Vr(Uc,i),f=vd(Uc,i),p=ct(r,c.onViewportChange),h=g.useRef(0);return ee.jsxs(ee.Fragment,{children:[ee.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),ee.jsx(pa.Slot,{scope:i,children:ee.jsx(Xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,m=>{const w=m.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:k}=f;if(k!=null&&k.current&&x){const y=Math.abs(h.current-w.scrollTop);if(y>0){const O=window.innerHeight-cn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),P=Math.max(S,C);if(P<O){const T=P+y,R=Math.min(O,T),L=T-R;x.style.height=R+"px",x.style.bottom==="0px"&&(w.scrollTop=L>0?L:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Jv.displayName=Uc;var ey="SelectGroup",[DC,FC]=Si(ey),zC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ld();return ee.jsx(DC,{scope:i,id:a,children:ee.jsx(Xe.div,{role:"group","aria-labelledby":a,...l,ref:r})})});zC.displayName=ey;var ty="SelectLabel",ny=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=FC(ty,i);return ee.jsx(Xe.div,{id:a.id,...l,ref:r})});ny.displayName=ty;var ia="SelectItem",[jC,ry]=Si(ia),oy=g.forwardRef((n,r)=>{const{__scopeSelect:i,value:l,disabled:a=!1,textValue:c,...f}=n,p=$r(ia,i),h=Vr(ia,i),m=p.value===l,[w,x]=g.useState(c??""),[k,y]=g.useState(!1),O=ct(r,T=>{var R;return(R=h.itemRefCallback)==null?void 0:R.call(h,T,l,a)}),S=ld(),C=g.useRef("touch"),P=()=>{a||(p.onValueChange(l),p.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ee.jsx(jC,{scope:i,value:l,disabled:a,textId:S,isSelected:m,onItemTextChange:g.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:ee.jsx(pa.ItemSlot,{scope:i,value:l,disabled:a,textValue:w,children:ee.jsx(Xe.div,{role:"option","aria-labelledby":S,"data-highlighted":k?"":void 0,"aria-selected":m&&k,"data-state":m?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:O,onFocus:Je(f.onFocus,()=>y(!0)),onBlur:Je(f.onBlur,()=>y(!1)),onClick:Je(f.onClick,()=>{C.current!=="mouse"&&P()}),onPointerUp:Je(f.onPointerUp,()=>{C.current==="mouse"&&P()}),onPointerDown:Je(f.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:Je(f.onPointerMove,T=>{var R;C.current=T.pointerType,a?(R=h.onItemLeave)==null||R.call(h):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(f.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=h.onItemLeave)==null||R.call(h))}),onKeyDown:Je(f.onKeyDown,T=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(EC.includes(T.key)&&P(),T.key===" "&&T.preventDefault())})})})})});oy.displayName=ia;var us="SelectItemText",iy=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,...c}=n,f=$r(us,i),p=Vr(us,i),h=ry(us,i),m=MC(us,i),[w,x]=g.useState(null),k=ct(r,P=>x(P),h.onItemTextChange,P=>{var T;return(T=p.itemTextRefCallback)==null?void 0:T.call(p,P,h.value,h.disabled)}),y=w==null?void 0:w.textContent,O=g.useMemo(()=>ee.jsx("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=m;return At(()=>(S(O),()=>C(O)),[S,C,O]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Xe.span,{id:h.textId,...c,ref:k}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?xs.createPortal(c.children,f.valueNode):null]})});iy.displayName=us;var sy="SelectItemIndicator",ly=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ry(sy,i).isSelected?ee.jsx(Xe.span,{"aria-hidden":!0,...l,ref:r}):null});ly.displayName=sy;var Hc="SelectScrollUpButton",ay=g.forwardRef((n,r)=>{const i=Vr(Hc,n.__scopeSelect),l=vd(Hc,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const m=h.scrollTop>0;c(m)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(cy,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});ay.displayName=Hc;var $c="SelectScrollDownButton",uy=g.forwardRef((n,r)=>{const i=Vr($c,n.__scopeSelect),l=vd($c,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const m=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<m;c(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(cy,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});uy.displayName=$c;var cy=g.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:l,...a}=n,c=Vr("SelectScrollButton",i),f=g.useRef(null),p=ha(i),h=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),At(()=>{var w;const m=p().find(x=>x.ref.current===document.activeElement);(w=m==null?void 0:m.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),ee.jsx(Xe.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:Je(a.onPointerMove,()=>{var m;(m=c.onItemLeave)==null||m.call(c),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{h()})})}),BC="SelectSeparator",dy=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ee.jsx(Xe.div,{"aria-hidden":!0,...l,ref:r})});dy.displayName=BC;var Vc="SelectArrow",UC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ma(i),c=$r(Vc,i),f=Vr(Vc,i);return c.open&&f.position==="popper"?ee.jsx(O2,{...a,...l,ref:r}):null});UC.displayName=Vc;var HC="SelectBubbleInput",fy=g.forwardRef(({__scopeSelect:n,value:r,...i},l)=>{const a=g.useRef(null),c=ct(l,a),f=I2(r);return g.useEffect(()=>{const p=a.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==r&&w){const x=new Event("change",{bubbles:!0});w.call(p,r),p.dispatchEvent(x)}},[f,r]),ee.jsx(Xe.select,{...i,style:{..._v,...i.style},ref:c,defaultValue:r})});fy.displayName=HC;function py(n){return n===""||n===void 0}function hy(n){const r=go(n),i=g.useRef(""),l=g.useRef(0),a=g.useCallback(f=>{const p=i.current+f;r(p),(function h(m){i.current=m,window.clearTimeout(l.current),m!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(p)},[r]),c=g.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,a,c]}function my(n,r,i){const a=r.length>1&&Array.from(r).every(m=>m===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let f=$C(n,Math.max(c,0));a.length===1&&(f=f.filter(m=>m!==i));const h=f.find(m=>m.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function $C(n,r){return n.map((i,l)=>n[(r+l)%n.length])}var wE=Hv,xE=Vv,SE=Qv,CE=Kv,kE=qv,EE=Yv,bE=Jv,RE=ny,PE=oy,ME=iy,TE=ly,OE=ay,_E=uy,NE=dy;const em=n=>{let r;const i=new Set,l=(m,w)=>{const x=typeof m=="function"?m(r):m;if(!Object.is(x,r)){const k=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),i.forEach(y=>y(r,k))}},a=()=>r,p={setState:l,getState:a,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m))},h=r=n(l,a,p);return p},VC=(n=>n?em(n):em),WC=n=>n;function QC(n,r=WC){const i=G.useSyncExternalStore(n.subscribe,G.useCallback(()=>r(n.getState()),[n,r]),G.useCallback(()=>r(n.getInitialState()),[n,r]));return G.useDebugValue(i),i}const tm=n=>{const r=VC(n),i=l=>QC(r,l);return Object.assign(i,r),i},LE=(n=>n?tm(n):tm);export{lk as $,ak as A,hk as B,yk as C,Wk as D,Fk as E,fk as F,Ok as G,Ak as H,CE as I,Hr as J,Dk as K,RE as L,Uk as M,F1 as N,LE as O,kE as P,ek as Q,wE as R,OE as S,xE as T,tk as U,bE as V,dE as W,XC as X,f1 as Y,GC as Z,qC as _,ok as a,At as a$,ZC as a0,wk as a1,Tk as a2,zk as a3,dk as a4,Zk as a5,bk as a6,Kk as a7,mk as a8,cE as a9,P2 as aA,ld as aB,ct as aC,Xe as aD,Je as aE,M2 as aF,Sv as aG,Ov as aH,sd as aI,B2 as aJ,Uv as aK,ea as aL,Xx as aM,sv as aN,ov as aO,T2 as aP,O2 as aQ,jk as aR,Lk as aS,aE as aT,eE as aU,Ik as aV,Ck as aW,mE as aX,hE as aY,Vk as aZ,pE as a_,pk as aa,pm as ab,kk as ac,lE as ad,_k as ae,Mk as af,nE as ag,Sk as ah,Gk as ai,Hk as aj,yE as ak,U2 as al,gE as am,vE as an,uE as ao,Jk as ap,qk as aq,Xk as ar,Rm as as,YC as at,Rk as au,Pk as av,fE as aw,rE as ax,xk as ay,qh as az,Qm as b,Bk as b0,Qk as b1,ck as b2,Nk as b3,Rw as c,rk as d,sk as e,gk as f,_E as g,EE as h,PE as i,ee as j,TE as k,vk as l,ME as m,NE as n,SE as o,Ek as p,sE as q,g as r,tE as s,ik as t,nk as u,$k as v,iE as w,Yk as x,uk as y,oE as z};
@@ -6,9 +6,9 @@
6
6
  <link rel="icon" type="image/svg+xml" href="/logo.svg" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
8
  <title>NextClaw - 系统配置</title>
9
- <script type="module" crossorigin src="/assets/index-BiPDnzv0.js"></script>
10
- <link rel="modulepreload" crossorigin href="/assets/vendor-DKBNiC31.js">
11
- <link rel="stylesheet" crossorigin href="/assets/index-C8GsgIUn.css">
9
+ <script type="module" crossorigin src="/assets/index-BXJPYlRo.js"></script>
10
+ <link rel="modulepreload" crossorigin href="/assets/vendor-425xp8cv.js">
11
+ <link rel="stylesheet" crossorigin href="/assets/index-BoDFsNXm.css">
12
12
  </head>
13
13
 
14
14
  <body>