From 24b510135cc34097c91fe96e450db9b1224dffca Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Wed, 23 Sep 2026 14:58:53 +1000 Subject: [PATCH] Align shared recording library and viewer with dashboard styling --- .../web/dist/_astro/LibraryPage.Dwlp7Hh7.js | 1 + .../web/dist/_astro/LibraryPage.fMpkKWnY.js | 1 - .../web/dist/_astro/SharePage.DPtG8Fwa.js | 6 - .../web/dist/_astro/SharePage.P3RzS8D3.js | 1 + .../web/dist/_astro/ShareUI.BflDJKuK.js | 7 - .../web/dist/_astro/ShareUI.C55A6XGF.css | 1 - .../web/dist/_astro/ShareUI.CpnBv7vU.js | 12 + .../web/dist/_astro/ShareUI.DkgCTqfk.css | 1 + .../recordly-share/worker/web/dist/embed.html | 2 +- .../worker/web/dist/fonts/DMSans-Variable.ttf | Bin 0 -> 240164 bytes .../worker/web/dist/fonts/OFL.txt | 93 ++ .../worker/web/dist/lib-login.html | 22 +- .../recordly-share/worker/web/dist/lib.html | 22 +- .../recordly-share/worker/web/dist/share.html | 22 +- .../web/public/fonts/DMSans-Variable.ttf | Bin 0 -> 240164 bytes .../worker/web/public/fonts/OFL.txt | 93 ++ .../worker/web/src/components/LibraryPage.tsx | 814 +++++++++++++----- .../worker/web/src/components/SharePage.tsx | 593 +++++++------ .../worker/web/src/components/ShareUI.tsx | 119 ++- .../worker/web/src/components/ThemeToggle.tsx | 44 + .../src/components/library/LibraryCard.tsx | 187 ++++ .../worker/web/src/layouts/Base.astro | 25 +- .../worker/web/src/styles/global.css | 70 +- 23 files changed, 1520 insertions(+), 616 deletions(-) create mode 100644 services/recordly-share/worker/web/dist/_astro/LibraryPage.Dwlp7Hh7.js delete mode 100644 services/recordly-share/worker/web/dist/_astro/LibraryPage.fMpkKWnY.js delete mode 100644 services/recordly-share/worker/web/dist/_astro/SharePage.DPtG8Fwa.js create mode 100644 services/recordly-share/worker/web/dist/_astro/SharePage.P3RzS8D3.js delete mode 100644 services/recordly-share/worker/web/dist/_astro/ShareUI.BflDJKuK.js delete mode 100644 services/recordly-share/worker/web/dist/_astro/ShareUI.C55A6XGF.css create mode 100644 services/recordly-share/worker/web/dist/_astro/ShareUI.CpnBv7vU.js create mode 100644 services/recordly-share/worker/web/dist/_astro/ShareUI.DkgCTqfk.css create mode 100644 services/recordly-share/worker/web/dist/fonts/DMSans-Variable.ttf create mode 100644 services/recordly-share/worker/web/dist/fonts/OFL.txt create mode 100644 services/recordly-share/worker/web/public/fonts/DMSans-Variable.ttf create mode 100644 services/recordly-share/worker/web/public/fonts/OFL.txt create mode 100644 services/recordly-share/worker/web/src/components/ThemeToggle.tsx create mode 100644 services/recordly-share/worker/web/src/components/library/LibraryCard.tsx diff --git a/services/recordly-share/worker/web/dist/_astro/LibraryPage.Dwlp7Hh7.js b/services/recordly-share/worker/web/dist/_astro/LibraryPage.Dwlp7Hh7.js new file mode 100644 index 00000000..f03163d8 --- /dev/null +++ b/services/recordly-share/worker/web/dist/_astro/LibraryPage.Dwlp7Hh7.js @@ -0,0 +1 @@ +import{$ as A0,a as u0,b as g0,c as p0,d as O0,e as D0,t as z0,f as I0,g as T0,h as B0,i as U0,j as C,k as X,l as Z0,m as e0,n as H0,o as M0,p as j0,q as $0,r as q0,s as W0,u as Y0,v as f0,w as G0,x as J0,y as K0,z as Q0,A as X0,B as a,C as e1,D as a1,E as a0,F as S,G as V,H as t1,S as l1,I as n1,J as j,K as p,L as x0,M as g,N as r1,O as J,T as s1,P as c1,Q as v0,R as o1,U as i1,V as d1,W as m1,X as h1,Y as w}from"./ShareUI.CpnBv7vU.js";import{r as e,$ as A}from"./index.DeQQz02V.js";let E=typeof document<"u"&&window.visualViewport;function u1(){let t=A0(),[l,r]=e.useState(()=>t?{width:0,height:0}:G());return e.useEffect(()=>{let s=i=>{r(h=>i.width===h.width&&i.height===h.height?h:i)},c=()=>{E&&E.scale>1||s(G())},d,m=i=>{E&&E.scale>1||p0(O0(i))&&(d=requestAnimationFrame(()=>{let h=D0();(!h||!p0(h))&&s({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return s(G()),u0()&&g0()&&window.addEventListener("blur",m,!0),E?E.addEventListener("resize",c):window.addEventListener("resize",c),()=>{cancelAnimationFrame(d),u0()&&g0()&&window.removeEventListener("blur",m,!0),E?E.removeEventListener("resize",c):window.removeEventListener("resize",c)}},[]),l}function G(){return{width:E?Math.min(E.width*E.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:E?E.height*E.scale:document.documentElement.clientHeight}}const t0=z0({defaultVariants:{scroll:"inside",size:"md",variant:"opaque"},slots:{backdrop:"modal__backdrop",body:"modal__body",closeTrigger:"modal__close-trigger",container:"modal__container",dialog:"modal__dialog",footer:"modal__footer",header:"modal__header",heading:"modal__heading",icon:"modal__icon",trigger:"modal__trigger"},variants:{scroll:{inside:{body:"modal__body--scroll-inside",dialog:"modal__dialog--scroll-inside"},outside:{body:"modal__body--scroll-outside",container:"modal__container--scroll-outside",dialog:"modal__dialog--scroll-outside"}},size:{cover:{dialog:"modal__dialog--cover"},full:{container:"modal__container--full",dialog:"modal__dialog--full"},lg:{dialog:"modal__dialog--lg"},md:{dialog:"modal__dialog--md"},sm:{dialog:"modal__dialog--sm"},xs:{dialog:"modal__dialog--xs"}},variant:{blur:{backdrop:"modal__backdrop--blur"},opaque:{backdrop:"modal__backdrop--opaque"},transparent:{backdrop:"modal__backdrop--transparent"}}}});function g1(t,l,r){let{overlayProps:s,underlayProps:c}=I0({...t,isOpen:l.isOpen,onClose:l.close},r);return T0({isDisabled:!l.isOpen}),B0(),e.useEffect(()=>{if(l.isOpen&&r.current)return U0([r.current],{shouldUseInert:!0})},[l.isOpen,r]),{modalProps:C(s),underlayProps:c}}const p1=e.createContext(null),l0=e.createContext(null),f1=e.forwardRef(function(l,r){if(e.useContext(l0))return A.createElement(b0,{...l,modalRef:r},l.children);let{isDismissable:c,isKeyboardDismissDisabled:d,isOpen:m,defaultOpen:i,onOpenChange:h,children:u,isEntering:H,isExiting:v,UNSTABLE_portalContainer:M,shouldCloseOnInteractOutside:f,...L}=l;return A.createElement(y0,{isDismissable:c,isKeyboardDismissDisabled:d,isOpen:m,defaultOpen:i,onOpenChange:h,isEntering:H,isExiting:v,UNSTABLE_portalContainer:M,shouldCloseOnInteractOutside:f},A.createElement(b0,{...L,modalRef:r},u))});function x1(t,l){[t,l]=W0(t,l,p1);let r=e.useContext(X),s=Y0(t),c=t.isOpen!=null||t.defaultOpen!=null||!r?s:r,d=e0(l),m=e.useRef(null),i=f0(d,c.isOpen),h=f0(m,c.isOpen),u=i||h||t.isExiting||!1,H=A0();return!c.isOpen&&!u||H?null:A.createElement(b1,{...t,state:c,isExiting:u,overlayRef:d,modalRef:m})}const y0=e.forwardRef(x1);function b1({UNSTABLE_portalContainer:t,...l}){let r=l.modalRef,{state:s}=l,{modalProps:c,underlayProps:d}=g1(l,s,r),m=H0(l.overlayRef)||l.isEntering||!1,i=M0({...l,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:m,isExiting:l.isExiting,state:s}}),h=u1(),u,H;if(typeof document<"u"){let M=G0(document.body)?document.body:document.scrollingElement||document.documentElement,f=M.getBoundingClientRect().width%1,L=M.getBoundingClientRect().height%1;u=M.scrollWidth-f,H=M.scrollHeight-L}let v={...i.style,"--visual-viewport-width":h.width+"px","--visual-viewport-height":h.height+"px","--page-width":u!==void 0?u+"px":void 0,"--page-height":H!==void 0?H+"px":void 0};return A.createElement(J0,{isExiting:l.isExiting,portalContainer:t},A.createElement(j0.div,{...C($0(l,{global:!0}),d),...i,style:v,ref:l.overlayRef,"data-entering":m||void 0,"data-exiting":l.isExiting||void 0},A.createElement(K0,{values:[[l0,{modalProps:c,modalRef:r,isExiting:l.isExiting,isDismissable:l.isDismissable}],[X,s]]},i.children)))}function b0(t){let{modalProps:l,modalRef:r,isExiting:s,isDismissable:c}=e.useContext(l0),d=e.useContext(X),m=e.useMemo(()=>Z0(t.modalRef,r),[t.modalRef,r]),i=e0(m),h=H0(i),u=M0({...t,defaultClassName:"react-aria-Modal",values:{isEntering:h,isExiting:s,state:d}});return A.createElement(j0.div,{...C($0(t,{global:!0}),l),...u,ref:i,"data-entering":h||void 0,"data-exiting":s||void 0},c&&A.createElement(q0,{onDismiss:d.close}),u.children)}const E1=A.forwardRef(({children:t,...l},r)=>{r=e0(r);let{pressProps:s}=Q0({...l,ref:r}),{focusableProps:c}=X0(l,r),d=A.Children.only(t);e.useEffect(()=>{},[r,l.isDisabled]);let m=parseInt(A.version,10)<19?d.ref:d.props.ref;return A.cloneElement(d,{...C(s,c,d.props),ref:Z0(m,r)})}),A1={variant:"default"},Z=e.createContext({}),E0=({children:t,state:l,...r})=>{const s=e.useMemo(()=>({slots:t0(),placement:void 0}),[]),c=e.useMemo(()=>l?{isOpen:l.isOpen,onOpenChange:l.setOpen}:{},[l]);return a.jsx(Z,{value:s,children:a.jsx(e1,{"data-slot":"modal-root",...C(r,c),children:t})})},Z1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(E1,{children:a.jsx(S.div,{className:V(s?.trigger,l),"data-slot":"modal-trigger",role:"button",...r,children:t})})},H1=({children:t,className:l,isDismissable:r=!0,onClick:s,variant:c,...d})=>{const{slots:m}=e.use(Z),i=e.useMemo(()=>t0({variant:c}),[c]),h=e.useMemo(()=>({slots:{...m,...i}}),[m,i]);return a.jsx(y0,{className:a0(l,i?.backdrop()),"data-slot":"modal-backdrop",isDismissable:r,onClick:u=>{u.stopPropagation(),s?.(u)},...d,children:u=>a.jsxs(Z,{value:h,children:[typeof t=="function"?t(u):t," "]})})},M1=({children:t,className:l,placement:r="auto",scroll:s,size:c,...d})=>{const{slots:m}=e.use(Z),i=e.useMemo(()=>t0({scroll:s,size:c}),[s,c]),h=e.useMemo(()=>({placement:r,slots:{...m,...i}}),[m,r,i]);return a.jsx(f1,{className:a0(l,i?.container()),"data-placement":r,"data-slot":"modal-container",...d,children:u=>a.jsx(Z,{value:h,children:typeof t=="function"?t(u):t})})},j1=({children:t,className:l,...r})=>{const{placement:s,slots:c}=e.use(Z);return a.jsx(l1,{value:A1,children:a.jsx(n1,{className:V(c?.dialog,l),"data-placement":s,"data-slot":"modal-dialog",...r,children:t})})},$1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(S.div,{className:V(s?.header,l),"data-slot":"modal-header",...r,children:t})},v1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(S.div,{className:V(s?.body,l),"data-slot":"modal-body",...r,children:t})},y1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(S.div,{className:V(s?.footer,l),"data-slot":"modal-footer",...r,children:t})},w1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(t1,{className:V(s?.heading,l),"data-slot":"modal-heading",slot:"title",...r,children:t})},V1=({children:t,className:l,...r})=>{const{slots:s}=e.use(Z);return a.jsx(S.div,{className:V(s?.icon,l),"data-slot":"modal-icon",...r,children:t})},L1=({className:t,...l})=>{const{slots:r}=e.use(Z);return a.jsx(a1,{className:a0(t,r?.closeTrigger()),"data-slot":"modal-close-trigger",slot:"close",...l})},b=Object.assign(E0,{Root:E0,Trigger:Z1,Backdrop:H1,Container:M1,Dialog:j1,Header:$1,Icon:V1,Heading:w1,Body:v1,Footer:y1,CloseTrigger:L1}),N1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),e.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),F1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),e.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),_1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,36A92.09,92.09,0,0,0,79,84.36,68,68,0,1,0,72,220h88a92,92,0,0,0,0-184Zm0,160H72a44,44,0,0,1-1.82-88A91.86,91.86,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,68,68Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",opacity:"0.2"}),e.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160a88.09,88.09,0,0,0,87.93-91.48C246.11,77.54,207.07,40,160.06,40Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,42A86.11,86.11,0,0,0,82.43,90.88,62,62,0,1,0,72,214h88a86,86,0,0,0,0-172Zm0,160H72a50,50,0,0,1,0-100,50.67,50.67,0,0,1,5.91.35A85.61,85.61,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,74,74Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M160,44A84.11,84.11,0,0,0,83.59,93.12,60.71,60.71,0,0,0,72,92a60,60,0,0,0,0,120h88a84,84,0,0,0,0-168Zm0,160H72a52,52,0,1,1,8.55-103.3A83.66,83.66,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,76,76Z"}))]]),C1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),e.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]),S1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),e.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z"}))]]),k1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),e.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),R1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v63.72L186.14,97.86a20,20,0,0,0-28.28,0L52,203.72V52ZM85.66,204,172,117.66l32,32V204ZM76,96a20,20,0,1,1,20,20A20,20,0,0,1,76,96Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,40H48a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h8.69L166.34,106.34a8,8,0,0,1,11.32,0L216,144.69V48A8,8,0,0,0,208,40ZM96,112a16,16,0,1,1,16-16A16,16,0,0,1,96,112Z",opacity:"0.2"}),e.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM80,96a16,16,0,1,1,16,16A16,16,0,0,1,80,96Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM46,208V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2v82.2l-28.1-28.1a14,14,0,0,0-19.8,0L54.2,210H48A2,2,0,0,1,46,208Zm162,2H71.17l99.41-99.41a2,2,0,0,1,2.83,0L210,147.17V208A2,2,0,0,1,208,210ZM96,118A22,22,0,1,0,74,96,22,22,0,0,0,96,118Zm0-32A10,10,0,1,1,86,96,10,10,0,0,1,96,86Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM44,208V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4v87l-31.51-31.52a12,12,0,0,0-17,0L55,212H48A4,4,0,0,1,44,208Zm164,4H66.34L169.17,109.17a4,4,0,0,1,5.66,0L212,146.34V208A4,4,0,0,1,208,212ZM96,116A20,20,0,1,0,76,96,20,20,0,0,0,96,116Zm0-32A12,12,0,1,1,84,96,12,12,0,0,1,96,84Z"}))]]),P1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),e.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),O1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),e.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),D1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),e.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),z1=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),w0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:N1}));w0.displayName="CaretDownIcon";const K=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:F1}));K.displayName="CheckIcon";const Q=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:_1}));Q.displayName="CloudIcon";const n0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:C1}));n0.displayName="DotsThreeIcon";const r0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:S1}));r0.displayName="FolderSimpleIcon";const V0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:k1}));V0.displayName="GearSixIcon";const L0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:R1}));L0.displayName="ImageSquareIcon";const N0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:P1}));N0.displayName="MagnifyingGlassIcon";const s0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:O1}));s0.displayName="PlusIcon";const F0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:D1}));F0.displayName="SignOutIcon";const _0=e.forwardRef((t,l)=>e.createElement(j,{ref:l,...t,weights:z1}));_0.displayName="TrashIcon";async function I1(){const t=await fetch("/api/videos",{credentials:"include"});if(t.status===401)return window.location.href="/library/login",[];if(!t.ok)throw new Error(`Failed to load videos (${t.status})`);return(await t.json()).videos||[]}async function T1(t){const l=await fetch(`/api/renew/${t}`,{method:"POST",credentials:"include"});return l.ok&&(await l.json()).expiresAt||null}async function B1(t){return(await fetch(`/api/delete/${t}`,{method:"DELETE",credentials:"include"})).ok}function I(t){const l=/[Zz]$|[+-]\d{2}:?\d{2}$/.test(t);return new Date(l?t:t.replace(" ","T")+"Z")}function U1({video:t,folders:l,assignFolder:r,selecting:s,selected:c,toggleSelected:d,busy:m,renew:i,remove:h,copy:u}){const[H,v]=e.useState(!1),M=l.filter(f=>f.codes.includes(t.share_code));return a.jsxs("li",{className:"group min-w-0",children:[a.jsxs(p,{variant:"ghost",isDisabled:m,"aria-label":t.title,onPress:()=>s?d():window.open(`/s/${t.share_code}`,"_blank","noopener,noreferrer"),"aria-pressed":s?c:void 0,className:"relative block h-auto w-full min-w-0 rounded-xl p-0",children:[a.jsx("div",{className:"relative flex aspect-[4/3] w-full items-center justify-center overflow-hidden rounded-xl bg-default/60",children:H?a.jsx(L0,{weight:"fill",className:"size-8 text-muted-foreground/20"}):a.jsx("img",{src:`/thumb/${t.share_code}`,alt:"",loading:"lazy",draggable:!1,onError:()=>v(!0),className:"h-full w-full object-cover"})}),s&&a.jsx("span",{className:`absolute right-2 top-2 flex size-5 items-center justify-center rounded-md ${c?"bg-accent text-white":"bg-background/90"}`,children:c&&a.jsx(K,{className:"size-3.5"})})]}),a.jsxs("div",{className:"relative flex items-start justify-between gap-4 pt-5",children:[a.jsx(x0,{"aria-label":"Your library",className:"!size-[48px] shrink-0 !rounded-full bg-accent/15 text-accent",children:a.jsx(x0.Fallback,{className:"!rounded-full bg-accent/15 text-xs font-medium text-accent",children:"LP"})}),a.jsxs("div",{className:"h-12 min-w-0 flex-1",children:[a.jsx("p",{title:t.title,className:"truncate pr-8 text-[12px] font-medium leading-5",children:t.title}),a.jsxs("div",{className:"mt-1 flex h-6 min-w-0 items-center gap-2",children:[a.jsx("p",{className:"shrink-0 text-[11px] text-muted-foreground",children:I(t.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),M.map(f=>a.jsx("button",{title:`Remove from ${f.name}`,onClick:()=>r(t.share_code,f.id),className:"max-w-24 truncate rounded-full bg-default/60 px-2 py-1 text-[11px]",children:f.name},f.id)),a.jsxs(g,{children:[a.jsxs(p,{variant:"ghost",size:"sm","aria-label":`Add folder to ${t.title}`,className:"h-6 min-w-0 shrink-0 gap-1.5 rounded-full px-2.5 text-[11px] text-muted-foreground opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100",children:[a.jsx(s0,{className:"size-3"}),"Add folder"]}),a.jsx(g.Popover,{children:a.jsxs(g.Menu,{"aria-label":"Assign recording folder",children:[l.map(f=>a.jsxs(g.Item,{id:f.id,textValue:f.name,onAction:()=>r(t.share_code,f.id),children:[a.jsx(r0,{weight:"fill"}),f.name,f.codes.includes(t.share_code)&&a.jsx(K,{className:"size-3"})]},f.id)),!l.length&&a.jsx(g.Item,{id:"empty",isDisabled:!0,children:"Create a folder in the sidebar"})]})})]})]})]}),a.jsxs(g,{children:[a.jsx(p,{variant:"ghost",isIconOnly:!0,"aria-label":`Options for ${t.title}`,isDisabled:m,className:"absolute right-0 top-5 size-6 min-w-6 text-muted-foreground",children:a.jsx(n0,{weight:"bold",className:"size-5"})}),a.jsx(g.Popover,{children:a.jsxs(g.Menu,{"aria-label":"Recording options",children:[a.jsx(g.Item,{id:"open",onAction:()=>window.open(`/s/${t.share_code}`,"_blank","noopener,noreferrer"),children:"Open recording"}),a.jsx(g.Item,{id:"copy",onAction:u,children:"Copy link"}),a.jsx(g.Item,{id:"renew",onAction:i,children:"Renew share link"}),a.jsx(g.Item,{id:"delete",onAction:h,className:"text-danger",children:"Delete recording"})]})})]})]})]})}function Y1(){const[t,l]=e.useState(!1);return e.useEffect(()=>l(new URLSearchParams(location.search).has("error")),[]),a.jsxs(i1,{children:[a.jsx(d1,{size:28}),a.jsx("h1",{children:"Your library"}),a.jsx("p",{children:"Enter your dashboard password to manage shared recordings."}),a.jsxs("form",{method:"POST",action:"/library/login",className:"gate-form",children:[a.jsxs(m1,{name:"password",isRequired:!0,children:[a.jsx(h1,{children:"Password"}),a.jsx(J,{type:"password",autoComplete:"current-password",autoFocus:!0})]}),t&&a.jsx(v0,{children:"Incorrect password. Please try again."}),a.jsx(p,{type:"submit",children:"Unlock library"})]})]})}function G1(){const[t,l]=e.useState("shared"),[r,s]=e.useState(""),[c,d]=e.useState("all"),[m,i]=e.useState("recent"),[h,u]=e.useState([]),[H,v]=e.useState(!0),[M,f]=e.useState(""),[L,k]=e.useState(null),[R,N]=e.useState(null),c0=e.useCallback(async()=>{v(!0),f("");try{u(await I1())}catch{f("Could not load your recordings. Please try again.")}finally{v(!1)}},[]);e.useEffect(()=>{c0()},[c0]);async function C0(n){k(n);try{const o=await T1(n);if(!o)throw new Error;u(x=>x.map($=>$.share_code===n?{...$,expires_at:o}:$)),w.success("Share link renewed")}catch{w.danger("Could not renew this link. Try again.")}finally{k(null)}}async function S0(n){k(n);try{if(!await B1(n))throw new Error;return u(o=>o.filter(x=>x.share_code!==n)),w.success("Recording deleted"),!0}catch{return w.danger("Could not delete this recording. Try again."),!1}finally{k(null)}}const[y,o0]=e.useState([]),[i0,P]=e.useState(null),[T,B]=e.useState(""),[k0,U]=e.useState(!1),[O,q]=e.useState(!1),[D,F]=e.useState([]),[d0,m0]=e.useState(!1);e.useEffect(()=>{try{const n=JSON.parse(localStorage.getItem("recordly-cloud-folders")||"[]");Array.isArray(n)&&o0(n.filter(o=>!!o&&typeof o.id=="string"&&typeof o.name=="string"&&Array.isArray(o.codes)&&o.codes.every(x=>typeof x=="string")))}catch{}},[]);function z(n){o0(n);try{localStorage.setItem("recordly-cloud-folders",JSON.stringify(n))}catch{w.danger("Folders could not be saved in this browser.")}}function R0(n,o){z(y.map(x=>x.id===o?{...x,codes:x.codes.includes(n)?x.codes.filter($=>$!==n):[...x.codes,n]}:x))}function h0(){T.trim()&&z(y.map(n=>n.id===i0?{...n,name:T.trim()}:n)),P(null)}const W=h.filter(n=>{const o=Date.now()-I(n.created_at).getTime(),x=y.find($=>$.id===t);return n.title.toLocaleLowerCase().includes(r.trim().toLocaleLowerCase())&&(!x||x.codes.includes(n.share_code))&&(c==="all"||o<=(c==="week"?7:30)*864e5)}).sort((n,o)=>m==="name"?n.title.localeCompare(o.title):I(o.created_at).getTime()-I(n.created_at).getTime()),_=L!==null||d0,Y=n=>`h-10 w-full justify-start gap-3 px-3 text-[13px] ${n?"bg-default/50 font-medium":"text-muted-foreground"}`;async function P0(n){try{await navigator.clipboard.writeText(`${location.origin}/s/${n}`),w.success("Link copied")}catch{w.danger("Could not copy the link.")}}return a.jsxs(a.Fragment,{children:[a.jsx(r1,{}),a.jsxs("div",{className:"library-dashboard flex h-full flex-row gap-0 rounded-none bg-background p-0 text-foreground",children:[a.jsxs("aside",{"aria-label":"Library navigation",className:"flex w-48 shrink-0 flex-col bg-transparent px-4 pb-5 pt-12 lg:w-56",children:[a.jsxs("div",{className:"mb-4 flex h-10 items-center gap-2.5 px-3",children:[a.jsx("img",{src:"/icon-64.png",alt:"",className:"size-7 rounded-lg"}),a.jsx("span",{className:"text-[15px] font-semibold tracking-tight",children:"Recordly"})]}),a.jsx("nav",{className:"space-y-1",children:a.jsxs(p,{variant:"ghost",className:Y(t==="shared"),"aria-current":t==="shared"?"page":void 0,onPress:()=>l("shared"),children:[a.jsx(Q,{weight:t==="shared"?"fill":"regular",className:"size-[18px]"}),"Shared"]})}),a.jsxs("div",{className:"mb-2 mt-9 flex items-center justify-between pl-3",children:[a.jsx("h2",{className:"text-[13px] font-semibold tracking-tight text-foreground/80",children:"Folders"}),a.jsx(p,{variant:"ghost",isIconOnly:!0,className:"size-7 min-w-7","aria-label":"New folder",onPress:()=>{let n="Untitled folder",o=1;for(;y.some($=>$.name===n);)n=`Untitled folder ${o++}`;const x=crypto.randomUUID();z([...y,{id:x,name:n,codes:[]}]),P(x),B(n)},children:a.jsx(s0,{className:"size-3.5"})})]}),a.jsx("div",{className:"library-folders min-h-0 flex-1 space-y-1 overflow-y-auto",children:y.map(n=>a.jsxs("div",{className:`group flex h-10 items-center gap-1 rounded-lg px-1 ${t===n.id?"bg-default/70":"hover:bg-default/40"}`,children:[a.jsx(r0,{weight:"fill",className:"mx-2 size-4 shrink-0 text-accent"}),i0===n.id?a.jsx("form",{className:"min-w-0 flex-1",onSubmit:o=>{o.preventDefault(),h0()},children:a.jsx(J,{autoFocus:!0,"aria-label":"Folder name",maxLength:80,value:T,onChange:o=>B(o.target.value),onBlur:h0,onKeyDown:o=>{o.key==="Escape"&&P(null)},className:"h-8 w-full min-w-0 border-0 bg-transparent px-0 text-[13px] shadow-none"})}):a.jsx(p,{variant:"ghost","aria-current":t===n.id?"page":void 0,onPress:()=>l(n.id),className:"h-full min-w-0 flex-1 justify-start rounded-none px-0 text-[13px]",children:a.jsx("span",{className:"truncate",children:n.name})}),a.jsxs(g,{children:[a.jsx(p,{variant:"ghost",isIconOnly:!0,"aria-label":`Options for ${n.name}`,className:"size-6 min-w-6 text-muted-foreground opacity-0 group-hover:opacity-100 focus:opacity-100",children:a.jsx(n0,{className:"size-4"})}),a.jsx(g.Popover,{children:a.jsxs(g.Menu,{"aria-label":"Folder options",children:[a.jsx(g.Item,{id:"rename",onAction:()=>{P(n.id),B(n.name)},children:"Rename"}),a.jsx(g.Item,{id:"remove",onAction:()=>{z(y.filter(o=>o.id!==n.id)),t===n.id&&l("shared")},children:"Remove folder"})]})})]})]},n.id))}),a.jsxs("div",{className:"space-y-1 pt-6",children:[a.jsx(s1,{sidebar:!0}),a.jsxs(p,{variant:"ghost",className:Y(t==="settings"),onPress:()=>l("settings"),children:[a.jsx(V0,{weight:t==="settings"?"fill":"regular",className:"size-[18px]"}),"Settings"]}),a.jsxs(p,{variant:"ghost",className:Y(!1),onPress:()=>location.assign("/library/logout"),children:[a.jsx(F0,{className:"size-[18px]"}),"Log out"]})]})]}),a.jsxs(c1,{className:"my-3 mr-3 flex min-h-0 min-w-0 flex-1 flex-col gap-0 overflow-hidden rounded-2xl bg-background p-0 shadow-sm",children:[t!=="settings"&&a.jsxs(a.Fragment,{children:[a.jsx("header",{className:"flex h-24 shrink-0 items-center gap-5 px-7 pt-5 lg:px-10",children:a.jsxs("div",{className:"relative min-w-0 flex-1",children:[a.jsx(N0,{className:"pointer-events-none absolute left-3.5 top-1/2 z-10 size-4 -translate-y-1/2 text-muted-foreground/60"}),a.jsx(J,{"aria-label":"Search recordings",placeholder:"Search recordings…",value:r,onChange:n=>s(n.target.value),className:"h-11 w-full border-0 bg-default/30 pl-10 shadow-none"})]})}),a.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-7 pb-7 lg:px-10",children:[a.jsxs("div",{className:"flex gap-2","aria-label":"Time filters",children:[[["all","All"],["week","Last 7 days"],["month","Last 30 days"]].map(([n,o])=>a.jsx(p,{variant:c===n?"secondary":"ghost",size:"sm","aria-pressed":c===n,onPress:()=>d(n),className:`h-7 rounded-lg px-3 text-xs ${c===n?"bg-default/60 text-foreground":"text-muted-foreground"}`,children:o},n)),a.jsx(p,{variant:"ghost",isIconOnly:!0,className:"size-7 min-w-7 text-danger","aria-label":"Select recordings to delete","aria-pressed":O,onPress:()=>{q(!O),F([])},children:a.jsx(_0,{weight:"fill",className:"size-4"})})]}),a.jsx("div",{className:"ml-auto",children:a.jsxs(g,{children:[a.jsxs(p,{variant:"ghost",size:"sm","aria-label":"Sort recordings",className:"h-7 gap-2 text-xs text-muted-foreground",children:[m==="name"?"Name":"Last created",a.jsx(w0,{className:"size-3"})]}),a.jsx(g.Popover,{children:a.jsxs(g.Menu,{"aria-label":"Sort recordings",children:[a.jsx(g.Item,{id:"recent",onAction:()=>i("recent"),children:"Last created"}),a.jsx(g.Item,{id:"name",onAction:()=>i("name"),children:"Name"})]})})]})})]}),O&&a.jsxs("div",{className:"flex items-center gap-3 px-7 pb-5 text-xs lg:px-10",children:[a.jsx(p,{variant:"ghost",size:"sm",onPress:()=>F(W.map(n=>n.share_code)),children:"Select all"}),a.jsxs("span",{children:[D.length," selected"]}),a.jsx(p,{variant:"danger",size:"sm",isDisabled:!D.length||_,onPress:()=>N(D),children:"Delete"}),a.jsx(p,{variant:"ghost",size:"sm",onPress:()=>{q(!1),F([])},children:"Cancel"})]})]}),a.jsx("main",{className:"custom-scrollbar min-h-0 flex-1 overflow-y-auto px-7 pb-10 lg:px-10",children:t==="settings"?a.jsxs("div",{className:"space-y-5 py-10",children:[a.jsx("h1",{className:"text-lg font-semibold",children:"Library settings"}),a.jsx("p",{className:"text-sm text-muted",children:"Folders are saved in this browser. Recordings and share links are stored by your sharing service."}),a.jsx(p,{variant:"secondary",onPress:()=>U(!0),children:"How to share a recording"})]}):a.jsxs(a.Fragment,{children:[M&&a.jsx(v0,{children:M}),a.jsx("ul",{"aria-label":"Your recordings",className:"grid grid-cols-[repeat(auto-fill,minmax(min(100%,280px),1fr))] gap-x-7 gap-y-10 lg:gap-x-9",children:H?[0,1,2].map(n=>a.jsx("li",{children:a.jsx(o1,{className:"aspect-[4/3] w-full rounded-xl"})},n)):W.map(n=>a.jsx(U1,{video:n,folders:y,assignFolder:R0,selecting:O,selected:D.includes(n.share_code),toggleSelected:()=>F(o=>o.includes(n.share_code)?o.filter(x=>x!==n.share_code):[...o,n.share_code]),busy:_,copy:()=>{P0(n.share_code)},renew:()=>{C0(n.share_code)},remove:()=>N([n.share_code])},n.share_code))}),!H&&!M&&!W.length&&a.jsxs("div",{className:"flex h-64 flex-col items-center justify-center gap-3 text-sm text-muted-foreground",children:[a.jsx(Q,{weight:"fill",className:"size-8 opacity-40"}),a.jsx("p",{children:h.length?"No recordings match this view.":"No shared recordings yet."}),a.jsx(p,{variant:"secondary",onPress:()=>{s(""),d("all"),l("shared")},children:"Show all recordings"})]})]})})]})]}),a.jsx(b,{isOpen:k0,onOpenChange:U,children:a.jsx(b.Backdrop,{children:a.jsx(b.Container,{children:a.jsxs(b.Dialog,{children:[a.jsx(b.Header,{children:a.jsx(b.Heading,{children:"Share a recording"})}),a.jsx(b.Body,{children:a.jsx("p",{children:"Open a project in Recordly, choose Export, then Create share link. Your shared recording will appear here."})}),a.jsx(b.Footer,{children:a.jsx(p,{onPress:()=>U(!1),children:"Got it"})})]})})})}),a.jsx(b,{isOpen:R!==null,onOpenChange:n=>{!n&&!_&&N(null)},children:a.jsx(b.Backdrop,{children:a.jsx(b.Container,{children:a.jsxs(b.Dialog,{children:[a.jsx(b.Header,{children:a.jsxs(b.Heading,{children:["Delete"," ",R?.length===1?"recording":"recordings","?"]})}),a.jsx(b.Body,{children:a.jsxs("p",{children:["This permanently removes ",R?.length," recording(s) and their share links."]})}),a.jsxs(b.Footer,{children:[a.jsx(p,{variant:"secondary",isDisabled:_,onPress:()=>N(null),children:"Cancel"}),a.jsx(p,{variant:"danger",isDisabled:_,isPending:d0,onPress:async()=>{m0(!0);try{const n=[];for(const o of R||[])await S0(o)||n.push(o);N(n.length?n:null),F(n),q(n.length>0)}finally{m0(!1)}},children:"Delete"})]})]})})})})]})}export{Y1 as LibraryLogin,G1 as default}; diff --git a/services/recordly-share/worker/web/dist/_astro/LibraryPage.fMpkKWnY.js b/services/recordly-share/worker/web/dist/_astro/LibraryPage.fMpkKWnY.js deleted file mode 100644 index 9d39604f..00000000 --- a/services/recordly-share/worker/web/dist/_astro/LibraryPage.fMpkKWnY.js +++ /dev/null @@ -1 +0,0 @@ -import{p as j,j as a,N as A,H as S,B as o,r as D,a as p,S as L,C as i,b as y,e as E,L as _,c as F,d as $,T as P,f as T,I as C,t as u}from"./ShareUI.BflDJKuK.js";import{r as e}from"./index.DeQQz02V.js";const z=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),e.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),k=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Z=e.forwardRef((r,n)=>e.createElement(j,{ref:n,...r,weights:z}));Z.displayName="ArrowSquareOutIcon";const w=e.forwardRef((r,n)=>e.createElement(j,{ref:n,...r,weights:k}));w.displayName="TrashIcon";async function R(){const r=await fetch("/api/videos",{credentials:"include"});if(r.status===401)return window.location.href="/library/login",[];if(!r.ok)throw new Error(`Failed to load videos (${r.status})`);return(await r.json()).videos||[]}async function I(r){const n=await fetch(`/api/renew/${r}`,{method:"POST",credentials:"include"});return n.ok&&(await n.json()).expiresAt||null}async function O(r){return(await fetch(`/api/delete/${r}`,{method:"DELETE",credentials:"include"})).ok}function U(r){const n=Math.floor(r/3600),l=Math.floor(r%3600/60),c=Math.floor(r%60);return n>0?`${n}:${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`:`${l}:${String(c).padStart(2,"0")}`}function b(r){const n=/[Zz]$|[+-]\d{2}:?\d{2}$/.test(r);return new Date(n?r:r.replace(" ","T")+"Z")}function B(r){const n=b(r);return Number.isNaN(n.getTime())?"—":n.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function q(r){const n=b(r).getTime();return Number.isNaN(n)?NaN:Math.max(0,Math.round((n-Date.now())/(1440*60*1e3)))}function J(){const[r,n]=e.useState(!1);return e.useEffect(()=>n(new URLSearchParams(location.search).has("error")),[]),a.jsxs($,{children:[a.jsx(E,{size:28}),a.jsx("h1",{children:"Your library"}),a.jsx("p",{children:"Enter your dashboard password to manage shared recordings."}),a.jsxs("form",{method:"POST",action:"/library/login",className:"gate-form",children:[a.jsxs(P,{name:"password",isRequired:!0,children:[a.jsx(T,{children:"Password"}),a.jsx(C,{type:"password",autoComplete:"current-password",autoFocus:!0})]}),r&&a.jsx(p,{children:"Incorrect password. Please try again."}),a.jsx(o,{type:"submit",children:"Unlock library"})]})]})}function K(){const[r,n]=e.useState([]),[l,c]=e.useState(!0),[V,f]=e.useState(""),[d,m]=e.useState(null),[M,H]=e.useState(null);async function x(){c(!0),f("");try{n(await R())}catch{f("Could not load your recordings. Please try again.")}finally{c(!1)}}e.useEffect(()=>{x()},[]);async function N(t){m(t);try{const s=await I(t);if(!s)throw new Error;n(h=>h.map(g=>g.share_code===t?{...g,expires_at:s}:g)),u.success("Share link renewed")}catch{u.danger("Could not renew this link. Try again.")}finally{m(null)}}async function v(t){m(t);try{if(!await O(t))throw new Error;n(s=>s.filter(h=>h.share_code!==t)),u.success("Recording deleted"),H(null)}catch{u.danger("Could not delete this recording. Try again.")}finally{m(null)}}return a.jsxs(a.Fragment,{children:[a.jsx(A,{}),a.jsx(S,{title:"Library",library:!0}),a.jsxs("main",{className:"library-main",children:[a.jsxs("div",{className:"recording-heading",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"recording-title",children:"Your recordings"}),a.jsx("p",{className:"recording-meta",children:"Manage your shared videos and links."})]}),a.jsxs(o,{variant:"ghost",size:"sm",onPress:()=>{x()},isDisabled:l,children:[a.jsx(D,{size:16}),"Refresh"]})]}),V&&a.jsx(p,{children:V}),a.jsx("div",{className:"library-grid",children:l?[0,1,2].map(t=>a.jsx(L,{className:"loading-sidebar"},t)):r.map(t=>{const s=q(t.expires_at);return a.jsxs(i,{children:[a.jsx("img",{className:"library-thumb",src:`/thumb/${t.share_code}`,alt:"",loading:"lazy",onError:h=>{h.currentTarget.style.visibility="hidden"}}),a.jsxs(i.Header,{children:[a.jsx(i.Title,{children:t.title}),a.jsxs(i.Description,{children:[U(t.duration)," · ",B(t.created_at)," ·"," ",t.view_count," ",t.view_count===1?"view":"views"]})]}),a.jsxs(i.Content,{children:[a.jsx(y,{size:"sm",variant:"soft",color:s<=3?"warning":"default",children:Number.isNaN(s)?"Expiry unknown":s===0?"Expires today":s===1?"Expires tomorrow":`Expires in ${s} days`}),!!t.is_protected&&a.jsxs(y,{size:"sm",variant:"soft",children:[a.jsx(E,{size:12}),"Protected"]})]}),a.jsxs(i.Footer,{className:"library-actions",children:[a.jsxs(_,{className:"button button--sm button--ghost",href:`/s/${t.share_code}`,target:"_blank",rel:"noopener noreferrer",children:[a.jsx(Z,{size:16}),"Open"]}),a.jsx(F,{code:t.share_code}),a.jsx(o,{size:"sm",variant:"ghost",isDisabled:d!==null,onPress:()=>{N(t.share_code)},children:"Renew"}),a.jsx(o,{size:"sm",variant:"danger-soft",isIconOnly:!0,"aria-label":`Delete ${t.title}`,isDisabled:d!==null,onPress:()=>H(t.share_code),children:a.jsx(w,{size:16})})]}),M===t.share_code&&a.jsxs(i.Content,{className:"gate-content",children:[a.jsxs(p,{children:["Delete “",t.title,"”? This permanently removes the recording and its share link."]}),a.jsxs("div",{className:"library-actions",children:[a.jsx(o,{size:"sm",variant:"secondary",onPress:()=>H(null),isDisabled:d!==null,children:"Cancel"}),a.jsx(o,{size:"sm",variant:"danger",isPending:d===t.share_code,isDisabled:d!==null,onPress:()=>{v(t.share_code)},children:"Delete recording"})]})]})]},t.share_code)})}),!l&&!V&&r.length===0&&a.jsxs(i,{className:"empty-feedback",children:[a.jsx(i.Title,{children:"No shared recordings yet"}),a.jsx(i.Description,{children:"Publish a recording from Recordly to see it here."})]})]})]})}export{J as LibraryLogin,K as default}; diff --git a/services/recordly-share/worker/web/dist/_astro/SharePage.DPtG8Fwa.js b/services/recordly-share/worker/web/dist/_astro/SharePage.DPtG8Fwa.js deleted file mode 100644 index 53158f69..00000000 --- a/services/recordly-share/worker/web/dist/_astro/SharePage.DPtG8Fwa.js +++ /dev/null @@ -1,6 +0,0 @@ -import{$ as Je,g as re,h as Y,i as Fe,k as Nt,l as et,m as kr,n as Lr,o as rt,q as Ae,s as Se,u as fe,v as se,w as ae,x as nt,y as Xi,z as ce,A as lt,D as rl,E as z,F as Ne,G as Ze,J as le,K as Ji,M as Qi,O as Fr,P as es,Q as bt,R as yt,U as De,V as Dr,W as Lt,X as ts,Y as Nr,Z as B,_ as nl,a0 as Ir,a1 as fr,a2 as We,a3 as rs,a4 as zt,a5 as ll,a6 as hr,a7 as al,a8 as Et,a9 as il,aa as ns,ab as ls,ac as Ut,ad as Vr,ae as xe,af as Re,ag as as,ah as Hr,ai as is,aj as tr,ak as qe,al as mr,am as Ft,an as St,ao as sl,ap as ss,aq as os,ar as Ke,as as Wt,at as cs,au as us,av as on,aw as ds,ax as jr,j as h,ay as ue,az as fs,aA as hs,aB as ol,aC as ms,aD as ut,aE as ps,aF as cl,aG as qt,aH as gs,aI as bs,aJ as Te,aK as de,aL as ul,aM as ys,aN as vs,aO as $s,aP as xs,aQ as Es,aR as Qe,aS as Ss,aT as ws,aU as Ps,aV as Cs,aW as Ms,aX as As,aY as cn,p as he,C as dl,B as W,aZ as fl,L as hl,f as It,t as Be,b as Ks,a_ as Ts,a$ as Rs,a as ml,T as pr,I as pl,N as ks,H as gl,S as Mt,d as Ls,e as Fs,r as Ds,c as Ns}from"./ShareUI.BflDJKuK.js";import{r as a,$ as x,R as Is}from"./index.DeQQz02V.js";const Vs="react-aria-clear-focus",Hs="react-aria-focus";class js{constructor(e,t,n,l){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const o=s.shadowRoot;if(o){const c=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(s);if(this.filter?.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=l??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const i=t.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}get currentNode(){return this._currentNode}set currentNode(e){if(!re(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let n=e,l=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=l,this._currentSetFor.add(o),n=l=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=l,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return re(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let t=this._walkerStack[0].lastChild();return t&&(this.currentNode=t),t}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(e):this.filter?.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let l=this.nextNode();return l&&(this.currentNode=l),l}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let t=this.nextNode();return t&&(this.currentNode=t),t}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}const t=e.previousNode();if(t){if(t.shadowRoot){let l;if(typeof this.filter=="function"?l=this.filter(t):this.filter?.acceptNode&&(l=this.filter.acceptNode(t)),l===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let i=this.lastChild();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function bl(r,e,t,n){return Je()?new js(r,e,t,n):r.createTreeWalker(e,t,n)}function un(r,e){const t=a.useRef(!0),n=a.useRef(null);Y(()=>(t.current=!0,()=>{t.current=!1}),[]),Y(()=>{t.current?t.current=!1:(!n.current||e.some((l,i)=>!Object.is(l,n[i])))&&r(),n.current=e},e)}function Os(){return typeof window.ResizeObserver<"u"}function Vt(r){const{ref:e,box:t,onResize:n}=r;let l=Fe(n);a.useEffect(()=>{let i=e?.current;if(i)if(Os()){const s=new window.ResizeObserver(o=>{o.length&&l()});return s.observe(i,{box:t}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)}},[e,t])}function at(r,e){if(!r)return!1;let t=window.getComputedStyle(r),n=document.scrollingElement||document.documentElement,l=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return r===n&&t.overflow!=="hidden"&&(l=!0),l&&e&&(l=r.scrollHeight!==r.clientHeight||r.scrollWidth!==r.clientWidth),l}function Or(r,e){let t=r;for(at(t,e)&&(t=t.parentElement);t&&!at(t,e);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function rr(r,e){let t=[],n=document.scrollingElement||document.documentElement;for(;r&&(at(r,e)&&t.push(r),r!==n);)r=r.parentElement;return t}function ht(r){return Nt()?r.metaKey:r.ctrlKey}const _s=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nr(r){return r instanceof HTMLInputElement&&!_s.has(r.type)||r instanceof HTMLTextAreaElement||r instanceof HTMLElement&&r.isContentEditable}let Zs=0;const lr=new Map;function Bs(r){let[e,t]=a.useState();return Y(()=>{if(!r)return;let n=lr.get(r);if(n)t(n.element.id);else{let l=`react-aria-description-${Zs++}`;t(l);let i=document.createElement("div");i.id=l,i.style.display="none",i.textContent=r,document.body.appendChild(i),n={refCount:0,element:i},lr.set(r,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),lr.delete(r))}},[r]),{"aria-describedby":r?e:void 0}}function mt(r,e,t,n){let l=Fe(t),i=t==null;a.useEffect(()=>{if(!(i||r.current==null))return et(r.current,e,l,n)},[r,e,n,i])}function Dt(r,e,t={}){if(r===e)return;let n=e.getBoundingClientRect();zs(r,e,n,t)}function zs(r,e,t,n={}){let{block:l="nearest",inline:i="nearest"}=n,s=r.scrollTop,o=r.scrollLeft,c=r.getBoundingClientRect(),u=window.getComputedStyle(e),f=window.getComputedStyle(r),d=document.scrollingElement||document.documentElement,p=r===d,g=r===d?0:c.top,b=r===d?r.clientHeight:c.bottom,y=r===d?0:c.left,m=r===d?r.clientWidth:c.right,v=parseFloat(u.scrollMarginTop)||0,$=parseFloat(u.scrollMarginBottom)||0,w=parseFloat(u.scrollMarginLeft)||0,S=parseFloat(u.scrollMarginRight)||0,K=parseFloat(f.scrollPaddingTop)||0,T=parseFloat(f.scrollPaddingBottom)||0,C=parseFloat(f.scrollPaddingLeft)||0,F=parseFloat(f.scrollPaddingRight)||0,_=parseFloat(f.borderTopWidth)||0,j=parseFloat(f.borderBottomWidth)||0,N=parseFloat(f.borderLeftWidth)||0,H=parseFloat(f.borderRightWidth)||0,D=t.top-v,M=t.bottom+$,L=t.left-w,O=t.right+S,I=r===d?0:N+H,X=r===d?0:_+j,ne=r===d?0:r.offsetWidth-r.clientWidth-I,te=r===d?0:r.offsetHeight-r.clientHeight-X,U=g+(p?0:_)+K,A=b-(p?0:j)-T-te,P=y+(p?0:N)+C,V=m-(p?0:H)-F;kr()&&Lr()||f.direction==="ltr"?V-=ne:f.direction==="rtl"&&(P+=ne);let E=DA,Z=L
V;if(E&&l==="start")s+=D-U;else if(E&&l==="center")s+=(D+M)/2-(U+A)/2;else if(E&&l==="end")s+=M-A;else if(E&&l==="nearest"){let q=D-U,pe=M-A;s+=Math.abs(q)<=Math.abs(pe)?q:pe}if(Z&&i==="start")o+=L-P;else if(Z&&i==="center")o+=(L+O)/2-(P+V)/2;else if(Z&&i==="end")o+=O-V;else if(Z&&i==="nearest"){let q=L-P,pe=O-V;o+=Math.abs(q)<=Math.abs(pe)?q:pe}r.scrollTo({left:o,top:s})}function dn(r,e={}){let{containingElement:t}=e;if(r&&r.isConnected){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let{left:i,top:s}=r.getBoundingClientRect(),o=rr(r,!0);for(let f of o)Dt(f,r);let{left:c,top:u}=r.getBoundingClientRect();if(Math.abs(i-c)>1||Math.abs(s-u)>1){o=t?rr(t,!0):[];for(let f of o)Dt(f,t,{block:"center",inline:"center"});for(let f of rr(r,!0))Dt(f,r)}}else{let{left:i,top:s}=r.getBoundingClientRect();r?.scrollIntoView?.({block:"nearest"});let{left:o,top:c}=r.getBoundingClientRect();(Math.abs(i-o)>1||Math.abs(s-c)>1)&&(t?.scrollIntoView?.({block:"center",inline:"center"}),r.scrollIntoView?.({block:"nearest"}))}}}function Us(r,e){let{collection:t,onLoadMore:n,scrollOffset:l=1,direction:i="end"}=r,s=a.useRef(null),o=Fe(c=>{for(let u of c)u.isIntersecting&&n&&n()});Y(()=>{if(e.current){const c=100*l,u=i==="start"?`${c}% 0px 0px 0px`:`0px ${c}% ${c}% ${c}%`;s.current=new IntersectionObserver(o,{root:Or(e?.current),rootMargin:u}),s.current.observe(e.current)}return()=>{s.current&&s.current.disconnect()}},[t,e,l,i])}function gr(r){const e=a.version.split(".");return parseInt(e[0],10)>=19?r:r?"true":void 0}function _r(r,e=!0){let[t,n]=a.useState(!0),l=t&&e;return Y(()=>{if(l&&r.current&&"getAnimations"in r.current)for(let i of r.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[r,l]),yl(r,l,a.useCallback(()=>n(!1),[])),l}function Zr(r,e){let[t,n]=a.useState(e?"open":"closed");switch(t){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let l=t==="exiting";return yl(r,l,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),l}function yl(r,e,t){Y(()=>{if(e&&r.current){if(!("getAnimations"in r.current)){t();return}let n=r.current.getAnimations();if(n.length===0){t();return}let l=!1;return Promise.allSettled(n.map(i=>i.finished)).then(()=>{l||rt.flushSync(()=>{t()})}),()=>{l=!0}}},[r,e,t])}const Ws=a.createContext({}),qs="__avatar_group_child",Gs=Ae({defaultVariants:{color:"default",size:"md"},slots:{base:"avatar",fallback:"avatar__fallback",image:"avatar__image"},variants:{color:{accent:{fallback:"avatar__fallback--accent"},danger:{fallback:"avatar__fallback--danger"},default:{fallback:"avatar__fallback--default"},success:{fallback:"avatar__fallback--success"},warning:{fallback:"avatar__fallback--warning"}},size:{lg:{base:"avatar--lg"},md:{base:"avatar--md"},sm:{base:"avatar--sm"}},variant:{default:{},soft:{base:"avatar--soft"}}}}),Ys=Ae({slots:{menu:"dropdown__menu",popover:"dropdown__popover",root:"dropdown",trigger:"dropdown__trigger"}}),Xs=Ae({defaultVariants:{variant:"default"},slots:{indicator:"menu-item__indicator",item:"menu-item",submenuIndicator:"menu-item__indicator menu-item__indicator--submenu"},variants:{variant:{danger:{item:"menu-item--danger"},default:{item:"menu-item--default"}}}}),Js=Ae({base:"menu-section"}),Qs=Ae({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),eo=Ae({defaultVariants:{hideScrollBar:!1,orientation:"vertical",variant:"fade"},slots:{base:"scroll-shadow"},variants:{hideScrollBar:{false:{},true:{base:"scroll-shadow--hide-scrollbar"}},orientation:{horizontal:{base:"scroll-shadow--horizontal"},vertical:{base:"scroll-shadow--vertical"}},variant:{fade:{base:"scroll-shadow--fade"}}}}),to=Ae({slots:{base:"slider",fill:"slider__fill",marks:"slider__marks",output:"slider__output",thumb:"slider__thumb",track:"slider__track"}}),ro=Ae({defaultVariants:{align:"center",variant:"primary"},slots:{base:"tabs",scrollNext:"tabs__list-container__scroll-next",scrollPrev:"tabs__list-container__scroll-prev",scroller:"tabs__list-container__scroller",separator:"tabs__separator",tab:"tabs__tab",tabIndicator:"tabs__indicator",tabList:"tabs__list",tabListContainer:"tabs__list-container",tabPanel:"tabs__panel"},variants:{align:{center:{},end:{base:"tabs--align-end"},start:{base:"tabs--align-start"}},variant:{primary:{},secondary:{base:"tabs--secondary"}}}}),no=Ae({base:"textarea",defaultVariants:{fullWidth:!1,variant:"primary"},variants:{fullWidth:{false:"",true:"textarea--full-width"},variant:{primary:"textarea--primary",secondary:"textarea--secondary"}}}),lo=Ae({slots:{base:"tooltip",trigger:"tooltip__trigger"}}),Br=a.createContext({placement:"bottom"}),ao=a.forwardRef(function(e,t){[e,t]=Se(e,t,Br);let n=e.placement,l={position:"absolute",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"};n!=null&&(l[n]="100%");let i=fe({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});i.style&&Object.keys(i.style).forEach(o=>i.style[o]===void 0&&delete i.style[o]);let s=se(e);return x.createElement(ae.div,{...s,...i,style:{...l,...i.style},ref:t,"data-placement":n})}),io=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function fn(r){return r.dataset.liveAnnouncer==="true"||r.dataset.reactAriaTopLayer!==void 0}let dt=new WeakMap,me=[];function so(r,e){let t=nt(r?.[0]),n=e instanceof t.Element?{root:e}:e,l=n?.root??document.body,i=n?.shouldUseInert&&io,s=new Set(r),o=new Set,c=m=>i&&m instanceof t.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",u=(m,v)=>{i&&m instanceof t.HTMLElement?m.inert=v:v?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof t.HTMLElement&&(m.inert=!1))},f=new Set;if(Je()){let m=l.getRootNode();for(let v of r){let $=v.getRootNode();for(;Xi($)&&$!==m;)f.add($),$=$.host.getRootNode()}}let d=m=>{for(let S of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(S);let v=S=>{if(o.has(S)||s.has(S)||S.parentElement&&o.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let K of s)if(re(S,K))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},$=bl(ce(m),m,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),w=v(m);if(w===NodeFilter.FILTER_ACCEPT&&p(m),w!==NodeFilter.FILTER_REJECT){let S=$.nextNode();for(;S!=null;)p(S),S=$.nextNode()}},p=m=>{let v=dt.get(m)??0;c(m)&&v===0||(v===0&&u(m,!0),o.add(m),dt.set(m,v+1))};me.length&&me[me.length-1].disconnect(),d(l);let g=new MutationObserver(m=>{for(let v of m)if(v.type==="childList"){if(v.target.isConnected&&![...s,...o].some($=>re($,v.target)))for(let $ of v.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&fn($)?s.add($):$ instanceof Element&&d($);if(Je()){for(let $ of f)if(!$.isConnected){g.disconnect();break}}}});g.observe(l,{childList:!0,subtree:!0});let b=new Set;if(Je())for(let m of f){let v=new MutationObserver($=>{for(let w of $)if(w.type==="childList"){if(w.target.isConnected&&![...s,...o].some(S=>re(S,w.target)))for(let S of w.addedNodes)(S instanceof HTMLElement||S instanceof SVGElement)&&fn(S)?s.add(S):S instanceof Element&&d(S);if(Je()){for(let S of f)if(!S.isConnected){g.disconnect();break}}}});v.observe(m,{childList:!0,subtree:!0}),b.add(v)}let y={visibleNodes:s,hiddenNodes:o,observe(){g.observe(l,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return me.push(y),()=>{if(g.disconnect(),Je())for(let m of b)m.disconnect();for(let m of o){let v=dt.get(m);v!=null&&(v===1?(u(m,!1),dt.delete(m)):dt.set(m,v-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}function oo(r){let e=me[me.length-1];if(e&&!e.visibleNodes.has(r))return e.visibleNodes.add(r),()=>{e.visibleNodes.delete(r)}}const be={top:"top",bottom:"top",left:"left",right:"left"},Ht={top:"bottom",bottom:"top",left:"right",right:"left"},co={top:"left",left:"top"},br={top:"height",left:"width"},vl={width:"totalWidth",height:"totalHeight"},At={};let uo=()=>typeof document<"u"?window.visualViewport:null;function hn(r,e){let t=0,n=0,l=0,i=0,s=0,o=0,c={},u=(e?.scale??1)>1;if(r.tagName==="BODY"||r.tagName==="HTML"){let f=document.documentElement;l=f.clientWidth,i=f.clientHeight,t=e?.width??l,n=e?.height??i,c.top=f.scrollTop||r.scrollTop,c.left=f.scrollLeft||r.scrollLeft,e&&(s=Math.max(0,e.pageTop-(c.top??0)),o=Math.max(0,e.pageLeft-(c.left??0)))}else({width:t,height:n,top:s,left:o}=vt(r,!1)),c.top=r.scrollTop,c.left=r.scrollLeft,l=t,i=n;return Lr()&&(r.tagName==="BODY"||r.tagName==="HTML")&&u&&(c.top=0,c.left=0,s=e?.pageTop??0,o=e?.pageLeft??0),{width:t,height:n,totalWidth:l,totalHeight:i,scroll:c,top:s,left:o}}function fo(r){return{top:r.scrollTop,left:r.scrollLeft,width:r.scrollWidth,height:r.scrollHeight}}function mn(r,e,t,n,l,i,s){let o=l.scroll[r]??0,c=n[br[r]],u=s[r]+n.scroll[be[r]]+i,f=s[r]+n.scroll[be[r]]+c-i,d=e-o+n.scroll[be[r]]+s[r]-n[be[r]],p=e-o+t+n.scroll[be[r]]+s[r]-n[be[r]];return df?Math.max(f-p,u-d):0}function ho(r){let e=window.getComputedStyle(r);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function pn(r){if(At[r])return At[r];let[e,t]=r.split(" "),n=be[e]||"right",l=co[n];be[t]||(t="center");let i=br[n],s=br[l];return At[r]={placement:e,crossPlacement:t,axis:n,crossAxis:l,size:i,crossSize:s},At[r]}function ar(r,e,t,n,l,i,s,o,c,u,f){let{placement:d,crossPlacement:p,axis:g,crossAxis:b,size:y,crossSize:m}=n,v={};v[b]=r[b]??0,p==="center"?v[b]+=((r[m]??0)-(t[m]??0))/2:p!==b&&(v[b]+=(r[m]??0)-(t[m]??0)),v[b]+=i;const $=r[b]-t[m]+c+u,w=r[b]+r[m]-c-u;if(v[b]=lt(v[b],$,w),d===g){let S=o?f[y]:f[vl[y]];v[Ht[g]]=Math.floor(S-r[g]+l)}else v[g]=Math.floor(r[g]+r[y]+l);return v}function mo(r,e,t,n,l,i,s,o,c,u,f){let d=(r.top!=null?r.top:c[vl.height]-(r.bottom??0)-s)-(c.scroll.top??0),p=u?t.top:0,g={top:Math.max(e.top+p,(f?.offsetTop??e.top)+p),bottom:Math.min(e.top+e.height+p,(f?.offsetTop??0)+(f?.height??0))};return o!=="top"?Math.max(0,g.bottom-d-((l.top??0)+(l.bottom??0)+i)):Math.max(0,d+s-g.top-((l.top??0)+(l.bottom??0)+i))}function gn(r,e,t,n,l,i,s,o){let{placement:c,axis:u,size:f}=i;return c===u?Math.max(0,t[u]-(s.scroll[u]??0)-(r[u]+(o?e[u]:0))-(n[u]??0)-n[Ht[u]]-l):Math.max(0,r[f]+r[u]+(o?e[u]:0)-t[u]-t[f]+(s.scroll[u]??0)-(n[u]??0)-n[Ht[u]]-l)}function po(r,e,t,n,l,i,s,o,c,u,f,d,p,g,b,y,m,v){let $=pn(r),{size:w,crossAxis:S,crossSize:K,placement:T,crossPlacement:C}=$,F=ar(e,o,t,$,f,d,u,p,b,y,c),_=f,j=gn(o,u,e,l,i+f,$,c,m);if(s&&t[w]>j){let E=pn(`${Ht[T]} ${C}`),Z=ar(e,o,t,E,f,d,u,p,b,y,c);gn(o,u,e,l,i+f,E,c,m)>j&&($=E,F=Z,_=f)}let N="bottom";$.axis==="top"?$.placement==="top"?N="top":$.placement==="bottom"&&(N="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?N="bottom":$.crossPlacement==="bottom"&&(N="top"));let H=mn(S,F[S],t[K],o,c,i,u);F[S]+=H;let D=mo(F,o,u,p,l,i,t.height,N,c,m,v);g&&g g;JcV-`WSc~XI8uq&e}#w{|wpAYsUJl[0]i||new yc({collection:t,disabledKeys:n,disabledBehavior:u,ref:l,collator:c,layoutDelegate:s,orientation:o}),[i,s,t,n,l,c,u,o]),{collectionProps:d}=ii({...r,ref:l,selectionManager:e,keyboardDelegate:f});return{listProps:d}}function xc(r,e,t){let{shouldFocusWrap:n=!0,onKeyDown:l,onKeyUp:i,...s}=r;!r["aria-label"]&&r["aria-labelledby"];let o=se(r,{labelable:!0}),{listProps:c}=$c({...s,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return li.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:B(o,{onKeyDown:l,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u)}})}}function si(r){let{id:e,selectionManager:t,key:n,ref:l,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:o,isDisabled:c,onAction:u,allowsDifferentPressOrigin:f,linkBehavior:d="action"}=r,p=Hr();e=Re(e);let g=E=>{if(E.pointerType==="keyboard"&&Er(E))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(d==="selection"&&l.current){let Z=t.getItemProps(n);p.open(l.current,E,Z.href,Z.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):E&&E.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||E&&(ht(E)||E.pointerType==="touch"||E.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};a.useEffect(()=>{n===t.focusedKey&&t.isFocused&&(s?va(l.current):o?o():le()!==l.current&&l.current&&bt(l.current))},[l,n,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),c=c||t.isDisabled(n);let b={};!s&&!c?b={tabIndex:n===t.focusedKey?0:-1,onFocus(E){z(E)===l.current&&t.setFocusedKey(n)}}:c&&(b.onMouseDown=E=>{E.preventDefault()}),a.useEffect(()=>{c&&t.focusedKey===n&&t.setFocusedKey(null)},[t,c,n]);let y=t.isLink(n)&&d==="override",m=u&&r.UNSTABLE_itemBehavior==="action",v=t.isLink(n)&&d!=="selection"&&d!=="none",$=!c&&t.canSelectItem(n)&&!y&&!m,w=(u||v)&&!c,S=w&&(t.selectionBehavior==="replace"?!$:!$||t.isEmpty),K=w&&$&&t.selectionBehavior==="replace",T=S||K,C=a.useRef(null),F=T&&$,_=a.useRef(!1),j=a.useRef(!1),N=t.getItemProps(n),H=E=>{u&&(u(),l.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),v&&l.current&&p.open(l.current,E,N.href,N.routerOptions)},D={ref:l};i?(D.onPressStart=E=>{C.current=E.pointerType,_.current=F,E.pointerType==="keyboard"&&(!T||Fn(E.key))&&g(E)},f?(D.onPressUp=S?void 0:E=>{E.pointerType==="mouse"&&$&&g(E)},D.onPress=S?H:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&$&&g(E)}):D.onPress=E=>{if(S||K&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Ln(E.key))return;H(E)}else E.pointerType!=="keyboard"&&$&&g(E)}):(D.onPressStart=E=>{C.current=E.pointerType,_.current=F,j.current=S,$&&(E.pointerType==="mouse"&&!S||E.pointerType==="keyboard"&&(!w||Fn(E.key)))&&g(E)},D.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&T&&Ln(E.key)||E.pointerType==="mouse"&&j.current)&&(T?H(E):$&&g(E))});let M=pc(t.collection);if(b["data-collection"]=M,b["data-key"]=n,D.preventFocusOnPress=s,s&&(D=B(D,{onPressStart(E){E.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(n))},onPress(E){E.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(n))}})),N)for(let E of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[E]&&(D[E]=Nr(D[E],N[E]));let{pressProps:L,isPressed:O}=Vr(D),I=K?E=>{C.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),H(E))}:void 0,{longPressProps:X}=Yr({isDisabled:!F,onLongPress(E){E.pointerType==="touch"&&(g(E),t.setSelectionBehavior("toggle"))}}),ne=E=>{C.current==="touch"&&_.current&&E.preventDefault()},te=d!=="none"&&t.isLink(n)?E=>{is.isOpening||E.preventDefault()}:void 0,U=B(b,$||S||s&&!c?L:{},F?X:{},{onDoubleClick:I,onDragStartCapture:ne,onClick:te,id:e},s?{onMouseDown:E=>E.preventDefault()}:void 0),A=E=>{let Z=E;for(;Z&&Z!==l.current;){let q=Z.getAttribute("data-collection");if(q!=null)return q!==M;Z=Z.parentElement}return Fr(E)},P=U.onPointerDown;U.onPointerDown=E=>{let Z=z(E);if(Z&&Z!==l.current&&A(Z)){E.stopPropagation();return}P?.(E)};let V=U.onMouseDown;return U.onMouseDown=E=>{let Z=z(E);if(Z&&Z!==l.current&&A(Z)){E.stopPropagation();return}V?.(E)},{itemProps:U,isPressed:O,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:c,allowsSelection:$,hasAction:T}}function Ln(r){return r==="Enter"}function Fn(r){return r===" "}function oi(r,e){return typeof e.getChildren=="function"?e.getChildren(r.key):r.childNodes}function Ec(r){return Sc(r)}function Sc(r,e){for(let t of r)return t}function or(r,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let n=[...Dn(r,e),e],l=[...Dn(r,t),t],i=n.slice(0,l.length).findIndex((s,o)=>s!==l[o]);return i!==-1?(e=n[i],t=l[i],e.index-t.index):n.findIndex(s=>s===t)>=0?1:(l.findIndex(s=>s===e)>=0,-1)}function Dn(r,e){let t=[],n=e;for(;n?.parentKey!=null;)n=r.getItem(n.parentKey),n&&t.unshift(n);return t}const Nn=new WeakMap;function wc(r){let e=Nn.get(r);if(e!=null)return e;let t=0,n=l=>{for(let i of l)i.type==="section"?n(oi(i,r)):i.type==="item"&&t++};return n(r),Nn.set(r,t),t}function Pc(r,e,t){let{id:n,key:l,closeOnSelect:i,shouldCloseOnSelect:s,isVirtualized:o,"aria-haspopup":c,onPressStart:u,onPressUp:f,onPress:d,onPressChange:p,onPressEnd:g,onClick:b,onHoverStart:y,onHoverChange:m,onHoverEnd:v,onKeyDown:$,onKeyUp:w,onFocus:S,onFocusChange:K,onBlur:T,selectionManager:C=e.selectionManager}=r,F=!!c,_=F&&r["aria-expanded"]==="true",j=r.isDisabled??C.isDisabled(l),N=r.isSelected??C.isSelected(l),H=li.get(e),D=e.collection.getItem(l),M=r.onClose||H.onClose,L=Hr(),O=()=>{if(!F&&(D?.props?.onAction?D.props.onAction():r.onAction&&r.onAction(l),H.onAction)){let J=H.onAction;J(l,D?.value)}},I="menuitem";F||(C.selectionMode==="single"?I="menuitemradio":C.selectionMode==="multiple"&&(I="menuitemcheckbox"));let X=tr(),ne=tr(),te=tr(),U={id:n,"aria-disabled":j||void 0,role:I,"aria-label":r["aria-label"],"aria-labelledby":X,"aria-describedby":[r["aria-describedby"],ne,te].filter(Boolean).join(" ")||void 0,"aria-controls":r["aria-controls"],"aria-haspopup":c,"aria-expanded":r["aria-expanded"]};if(C.selectionMode!=="none"&&!F&&(U["aria-checked"]=N),o){let J=Number(D?.index);U["aria-posinset"]=Number.isNaN(J)?void 0:J+1,U["aria-setsize"]=wc(e.collection)}let A=a.useRef(!1),P=J=>{p?.(J),A.current=J},V=a.useRef(null),E=J=>{J.pointerType!=="keyboard"&&(V.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(A.current||J.target.click()),f?.(J)},Z=J=>{b?.(J),O(),ss(J,L,D.props.href,D?.props.routerOptions);let Ye=V.current?.pointerType==="keyboard"?V.current?.key==="Enter"||C.selectionMode==="none"||C.isLink(l):C.selectionMode!=="multiple"||C.isLink(l);Ye=s??i??Ye,M&&!F&&Ye&&M(),V.current=null},{itemProps:q,isFocused:pe}=si({id:n,selectionManager:C,key:l,ref:t,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:Ie,isPressed:Ve}=Vr({onPressStart:u,onPress:d,onPressUp:E,onPressChange:P,onPressEnd:g,isDisabled:j}),{hoverProps:R}=qe({isDisabled:j,onHoverStart(J){!mr()&&!(_&&c)&&(C.setFocused(!0),C.setFocusedKey(l)),y?.(J)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:k}=De({shortcuts:{" ":J=>{V.current={pointerType:"keyboard",key:" "},z(J).click(),Ft("keyboard")},Enter:J=>{V.current={pointerType:"keyboard",key:"Enter"};let Ye=z(J);if(Ye.tagName!=="A"){Ye.click(),Ft("keyboard");return}return Ft("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:$,onKeyUp:w}),{focusableProps:oe}=St({onBlur:T,onFocus:S,onFocusChange:K},t),Q=se(D?.props);delete Q.id;let Ct=sl(D?.props);return{menuItemProps:{...U,...B(Q,Ct,F?{onFocus:q.onFocus,"data-collection":q["data-collection"],"data-key":q["data-key"]}:q,Ie,R,k,oe,H.shouldUseVirtualFocus||F?{onMouseDown:J=>J.preventDefault()}:void 0,j?void 0:{onClick:Z}),tabIndex:q.tabIndex!=null&&_&&!H.shouldUseVirtualFocus?-1:q.tabIndex},labelProps:{id:X},descriptionProps:{id:ne},keyboardShortcutProps:{id:te},isFocused:pe,isFocusVisible:pe&&C.isFocused&&mr()&&!_,isSelected:N,isPressed:Ve,isDisabled:j}}function Cc(r){let{heading:e,"aria-label":t}=r,n=Re();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?n:void 0}}}const Tt=2,Mc=50,Ac=1e3,In=Math.PI/12;function Kc(r){let{menuRef:e,submenuRef:t,isOpen:n,isDisabled:l}=r,i=a.useRef(void 0),s=a.useRef(void 0),o=a.useRef(0),c=a.useRef(void 0),u=a.useRef(void 0),f=a.useRef(void 0),d=a.useRef(2),[p,g]=a.useState(!1);Vt({ref:n?t:void 0,onResize:()=>{t.current&&(s.current=t.current.getBoundingClientRect(),f.current=void 0)}});let y=()=>{g(!1),d.current=Tt,i.current=void 0},m=os(),v=Fe($=>{p&&$.preventDefault()});a.useEffect(()=>{p&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents=""},[e,p]),Y(()=>{let $=t.current,w=e.current;if(l||!$||!n||m!=="pointer"||!w){y();return}s.current=$.getBoundingClientRect();let S=K=>{if(K.pointerType==="touch"||K.pointerType==="pen")return;let T=Date.now();if(T-o.currentc+u.timestamp,0)/d.members.length):i.push({time:o.timestamp,members:[o]})}return i}function N1(a,t){const n=/(?s&&l.push({text:a.slice(s,o)});const d=Number(i[1]||0)*3600+Number(i[2])*60+Number(i[3]);l.push({text:i[0],...t>0&&d<=t?{time:d}:{}}),s=o+i[0].length}return sa?o-a:void 0;return el(t,u,c,f)},tl=e=>{const t=new Set(e.orderSensitiveModifiers);return n=>{const r=[];let a=[];for(let o=0;o0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),o=e.format(n),s=a.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}function dc(e={}){let{locale:t}=jn();return i.useMemo(()=>new lc(t,e),[t,e])}function fc(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:a,isIndeterminate:o,formatOptions:s={style:"percent"}}=e,l=ue(e,{labelable:!0}),{labelProps:c,fieldProps:u}=Ta({...e,labelElementType:"span"});t=Yr(t,n,r);let d=r-n,f=d===0?0:(t-n)/d,h=dc(s);if(!o&&!a){let g=s.style==="percent"?f:t;a=h.format(g)}return{progressBarProps:q(l,{...u,"aria-valuenow":o?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":o?void 0:a,role:"progressbar"}),labelProps:c}}const La=i.createContext(null),Zd=i.forwardRef(function(t,n){[t,n]=fe(t,n,La);let{value:r=0,minValue:a=0,maxValue:o=100,isIndeterminate:s=!1}=t;r=Yr(r,a,o);let[l,c]=Ca(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:u,labelProps:d}=fc({...t,label:c}),f=o-a,h;s||(f===0?h=0:h=(r-a)/f*100);let g=ge({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:h,valueText:u["aria-valuetext"],isIndeterminate:s}}),v=ue(t,{global:!0});return I.createElement(le.div,{...q(v,g,u),ref:n,slot:t.slot||void 0},I.createElement(Fn.Provider,{value:{...d,ref:l,elementType:"span"}},g.children))}),Ma=7e3;let Oe=null;function ur(e,t="assertive",n=Ma){Oe?Oe.announce(e,t,n):(Oe=new mc,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Oe.announce(e,t,n):setTimeout(()=>{Oe?.isAttached()&&Oe?.announce(e,t,n)},100))}class mc{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Ma){if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(a):this.politeLog?.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Hn(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Aa(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Ia(e){let t=i.useRef({isFocused:!1,observer:null});return ae(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),i.useCallback(n=>{let r=D(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r,o=s=>{if(t.current.isFocused=!1,a.disabled){let l=Hn(s);e?.(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){t.current.observer?.disconnect();let s=a===pe()?null:pe();a.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let At=!1;function bc(e){for(;e&&!Js(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=re(e),n=pe(t.document);if(!n||n===e)return;let r=e?.getRootNode(),a=r!=null&&Tn(r)?r:re(e),o=v=>v===e||v!=null&&G(e,v),s=v=>v===n||n!=null&&v!=null&&G(n,v);At=!0;let l=!1,c=v=>{(s(D(v))||l)&&v.stopImmediatePropagation()},u=v=>{(s(D(v))||l)&&(v.stopImmediatePropagation(),!e&&!l&&(l=!0,ce(n),h()))},d=v=>{(o(D(v))||l)&&v.stopImmediatePropagation()},f=v=>{(o(D(v))||l)&&(v.stopImmediatePropagation(),l||(l=!0,ce(n),h()))};a.addEventListener("blur",c,!0),a.addEventListener("focusout",u,!0),a.addEventListener("focusin",f,!0),a.addEventListener("focus",d,!0);let h=()=>{cancelAnimationFrame(g),a.removeEventListener("blur",c,!0),a.removeEventListener("focusout",u,!0),a.removeEventListener("focusin",f,!0),a.removeEventListener("focus",d,!0),At=!1,l=!1},g=requestAnimationFrame(h);return h}let he=null;const nt=new Set;let tt=new Map,Re=!1,wt=!1;const pc={Tab:!0,Escape:!0};function Kt(e,t){for(let n of nt)n(e,t)}function hc(e){return!(e.metaKey||!Ee()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function It(e){Re=!0,!Ce.isOpening&&hc(e)&&(he="keyboard",Kt("keyboard",e))}function Ue(e){he="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Re=!0,Kt("pointer",e))}function Ra(e){!Ce.isOpening&&Gr(e)&&(Re=!0,he="virtual")}function Va(e){if(At)return;let t=D(e),n=re(t),r=X(t);if(t===n){wt=!0;return}t===r||!e.isTrusted||(!Re&&!wt&&(he="virtual",Kt("virtual",e)),Re=!1,wt=!1)}function Fa(){At||(Re=!1,wt=!0)}function Rt(e){if(typeof window>"u"||typeof document>"u")return;const t=re(e),n=X(e);if(tt.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Re=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",It,!0),n.addEventListener("keyup",It,!0),n.addEventListener("click",Ra,!0),t.addEventListener("focus",Va,!0),t.addEventListener("blur",Fa,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ue,!0),n.addEventListener("pointermove",Ue,!0),n.addEventListener("pointerup",Ue,!0)),t.addEventListener("beforeunload",()=>{ja(e)},{once:!0}),tt.set(t,{focus:r})}const ja=(e,t)=>{const n=re(e),r=X(e);t&&r.removeEventListener("DOMContentLoaded",t),tt.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:tt.get(n).focus}),r.removeEventListener("keydown",It,!0),r.removeEventListener("keyup",It,!0),r.removeEventListener("click",Ra,!0),n.removeEventListener("focus",Va,!0),n.removeEventListener("blur",Fa,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Ue,!0),r.removeEventListener("pointermove",Ue,!0),r.removeEventListener("pointerup",Ue,!0)),tt.delete(n))};function vc(e){const t=X(e);let n;return t.readyState!=="loading"?Rt(e):(n=()=>{Rt(e)},t.addEventListener("DOMContentLoaded",n)),()=>ja(e,n)}typeof document<"u"&&vc();function Vt(){return he!=="pointer"}function Et(){return he}function gc(e){he=e,Kt(e,null)}function Gd(){Rt();let[e,t]=i.useState(he);return i.useEffect(()=>{let n=()=>{t(he)};return nt.add(n),()=>{nt.delete(n)}},[]),at()?null:e}const $c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yc(e,t,n){let r=n?D(n):void 0,a=X(r),o=re(r);const s=typeof o<"u"?o.HTMLInputElement:HTMLInputElement,l=typeof o<"u"?o.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof o<"u"?o.HTMLElement:HTMLElement,u=typeof o<"u"?o.KeyboardEvent:KeyboardEvent;let d=pe(a);return e=e||d instanceof s&&!$c.has(d.type)||d instanceof l||d instanceof c&&d.isContentEditable,!(e&&t==="keyboard"&&n instanceof u&&!pc[n.key])}function xc(e={}){let{isTextInput:t,autoFocus:n}=e,[r,a]=i.useState(n||Vt());return Ha(o=>{a(o)},[t],{isTextInput:t}),{isFocusVisible:r}}function Ha(e,t,n){Rt(),i.useEffect(()=>{if(n?.enabled===!1)return;let r=(a,o)=>{yc(!!n?.isTextInput,a,o)&&e(Vt())};return nt.add(r),()=>{nt.delete(r)}},t)}function wc(e){if(!e.isConnected)return;const t=X(e);if(Et()==="virtual"){let n=pe(t);Ur(()=>{const r=pe(t);(r===n||r===t.body)&&e.isConnected&&ce(e)})}else ce(e)}function Da(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const o=i.useCallback(c=>{if(D(c)===c.currentTarget)return r&&r(c),a&&a(!1),!0},[r,a]),s=Ia(o),l=i.useCallback(c=>{let u=D(c);const d=X(u),f=d?pe(d):pe();u===c.currentTarget&&u===f&&(n&&n(c),a&&a(!0),s(c))},[a,n,s]);return{focusProps:{onFocus:!t&&(n||a||r)?l:void 0,onBlur:!t&&(r||a)?o:void 0}}}function ht(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}const Ec=new Set(["shift","alt","control","meta","mod"]),Cc=["Alt","Control","Meta","Shift"];function Tc(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Ee()?"Meta":"Control"),t}function kc(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function Na(e){return Cc.filter(t=>e.has(t))}function Sc(e){let t=e.split("+").reduce((n,r)=>{let a=r.toLowerCase();return Ec.has(a)?a==="shift"?n.shift=!0:a==="alt"?n.alt=!0:a==="control"?n.ctrl=!0:a==="meta"?n.meta=!0:a==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function Oa(e){return e.toLowerCase()}const Pc={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Lc(e){let t=Oa(e),n=Pc[t];return n??t}function Mc(e){let t=Na(Tc(e)),n=Lc(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Ac(e){let t=Na(kc(e)),n=Oa(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function Ic(e){let t=new Map;for(let[n,r]of Object.entries(e)){let a=Sc(n);t.set(Mc(a),r)}return n=>{let r=Ac(n),a=t.get(r),o=a?.(n);o===void 0&&a!==void 0?o={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof o=="boolean"&&(o={shouldContinuePropagation:!o,shouldPreventDefault:o}),o?.shouldPreventDefault&&n.preventDefault(),(!a||o?.shouldContinuePropagation)&&n.continuePropagation()}}function Rc(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,a,o;if(t){let s=Ic(t),l=ht(u=>{if(!G(u.currentTarget,D(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}s(u)}),c=ht(u=>{if(!G(u.currentTarget,D(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}u.continuePropagation()});a=e.onKeyDown?St(e.onKeyDown,l):l,o=e.onKeyUp?St(e.onKeyUp,c):c}else a=ht(e.onKeyDown),o=ht(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:a,onKeyUp:o}}}let _a=I.createContext(null);function Vc(e){let t=i.useContext(_a)||{};Zr(t,e);let{ref:n,...r}=t;return r}const Wd=I.forwardRef(function(t,n){let{children:r,...a}=t,o=Bt(n),s={...a,ref:o};return I.createElement(_a.Provider,{value:s},r)});function Dn(e,t){let{focusProps:n}=Da(e),{keyboardProps:r}=Rc(e),a=q(n,r),o=Vc(t),s=e.isDisabled?{}:o,l=i.useRef(e.autoFocus);i.useEffect(()=>{l.current&&t.current&&wc(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:q({...a,tabIndex:c},s)}}let ze="default",xn="",Ct=new WeakMap;function Fc(e){if(Ot()&&kt()){if(ze==="default"){const t=X(e);xn=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ze="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ct.set(e,e.style[t]),e.style[t]="none"}}function dr(e){if(Ot()&&kt()){if(ze!=="disabled")return;ze="restoring",setTimeout(()=>{Ur(()=>{if(ze==="restoring"){const t=X(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=xn||""),xn="",ze="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ct.has(e)){let t=Ct.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ct.delete(e)}}const Ba=I.createContext({register:()=>{}});Ba.displayName="PressResponderContext";function jc(e){let t=i.useContext(Ba);if(t){let{register:n,ref:r,...a}=t;e=q(a,e),n()}return Zr(t,e.ref),e}class vt{#e;constructor(t,n,r,a){this.#e=!0;const s=(a?.target??r.currentTarget)?.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),s&&(u!=null&&d!=null?(l=u-s.left,c=d-s.top):(l=s.width/2,c=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=c,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const fr=Symbol("linkClicked"),mr="react-aria-pressable-style",br="data-react-aria-pressable";function za(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:o,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...g}=jc(e),[v,w]=i.useState(!1),$=i.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:k}=kn(),T=i.useCallback((p,A)=>{let H=$.current;if(l||H.didFirePressStart)return!1;let E=!0;if(H.isTriggeringEvent=!0,r){let K=new vt("pressstart",A,p);r(K),E=K.shouldStopPropagation}return n&&n(!0),H.isTriggeringEvent=!1,H.didFirePressStart=!0,w(!0),E},[l,r,n]),L=i.useCallback((p,A,H=!0)=>{let E=$.current;if(!E.didFirePressStart)return!1;E.didFirePressStart=!1,E.isTriggeringEvent=!0;let K=!0;if(a){let b=new vt("pressend",A,p);a(b),K=b.shouldStopPropagation}if(n&&n(!1),w(!1),t&&H&&!l){let b=new vt("press",A,p);t(b),K&&=b.shouldStopPropagation}return E.isTriggeringEvent=!1,K},[l,a,n,t]),F=Me(L),j=i.useCallback((p,A)=>{let H=$.current;if(l)return!1;if(o){H.isTriggeringEvent=!0;let E=new vt("pressup",A,p);return o(E),H.isTriggeringEvent=!1,E.shouldStopPropagation}return!0},[l,o]),V=Me(j),x=i.useCallback(p=>{let A=$.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&L(Le(A.target,p),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,k(),f||dr(A.target);for(let H of A.disposables)H();A.disposables=[]}},[f,k,L]),R=Me(x);i.useEffect(()=>{l&&$.current.isPressed&&R({currentTarget:$.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let M=i.useCallback(p=>{d&&x(p)},[d,x]),z=i.useCallback(p=>{l||s?.(p)},[l,s]),Z=i.useCallback((p,A)=>{if(!l&&s){let H=new MouseEvent("click",p);Aa(H,A),s(Hn(H))}},[l,s]),Q=i.useMemo(()=>{let p=$.current,A={onKeyDown(E){if(en(E.nativeEvent,E.currentTarget)&&G(E.currentTarget,D(E))){pr(D(E),E.key)&&E.preventDefault();let K=!0;!p.isPressed&&!E.repeat&&(p.target=E.currentTarget,p.isPressed=!0,p.pointerType="keyboard",K=T(E,"keyboard"));let b=E.currentTarget,y=O=>{en(O,b)&&!O.repeat&&G(b,D(O))&&p.target&&V(Le(p.target,O),"keyboard")};C(X(E.currentTarget),"keyup",St(y,H),!0),K&&E.stopPropagation(),E.metaKey&&Ee()&&p.metaKeyEvents?.set(E.key,E.nativeEvent)}else E.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(E){if(!(E&&!G(E.currentTarget,D(E)))&&E&&E.button===0&&!p.isTriggeringEvent&&!Ce.isOpening){let K=!0;if(l&&E.preventDefault(),!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||Gr(E.nativeEvent))){let b=T(E,"virtual"),y=V(E,"virtual"),O=F(E,"virtual");z(E),K=b&&y&&O}else if(p.isPressed&&p.pointerType!=="keyboard"){let b=p.pointerType||E.nativeEvent.pointerType||"virtual",y=V(Le(E.currentTarget,E),b),O=F(Le(E.currentTarget,E),b,!0);K=y&&O,p.isOverTarget=!1,z(E),R(E)}p.ignoreEmulatedMouseEvents=!1,K&&E.stopPropagation()}}},H=E=>{if(p.isPressed&&p.target&&en(E,p.target)){pr(D(E),E.key)&&E.preventDefault();let K=D(E),b=G(p.target,K);F(Le(p.target,E),"keyboard",b),b&&Z(E,p.target),k(),E.key!=="Enter"&&Nn(p.target)&&G(p.target,K)&&!E[fr]&&(E[fr]=!0,Ce(p.target,E,!1)),p.isPressed=!1,p.metaKeyEvents?.delete(E.key)}else if(E.key==="Meta"&&p.metaKeyEvents?.size){let K=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let b of K.values())p.target?.dispatchEvent(new KeyboardEvent("keyup",b))}};if(typeof PointerEvent<"u"){A.onPointerDown=b=>{if(b.button!==0||!G(b.currentTarget,D(b)))return;if(Zs(b.nativeEvent)){p.pointerType="virtual";return}p.pointerType=b.pointerType;let y=!0;if(!p.isPressed){p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=b.pointerId,p.target=b.currentTarget,f||Fc(p.target),y=T(b,p.pointerType);let O=D(b);"releasePointerCapture"in O&&("hasPointerCapture"in O?O.hasPointerCapture(b.pointerId)&&O.releasePointerCapture(b.pointerId):O.releasePointerCapture(b.pointerId)),C(X(b.currentTarget),"pointerup",E,!1),C(X(b.currentTarget),"pointercancel",K,!1)}y&&b.stopPropagation()},A.onMouseDown=b=>{if(G(b.currentTarget,D(b))&&b.button===0){if(u){let y=bc(b.target);y&&p.disposables.push(y)}b.stopPropagation()}},A.onPointerUp=b=>{!G(b.currentTarget,D(b))||p.pointerType==="virtual"||b.button===0&&!p.isPressed&&V(b,p.pointerType||b.pointerType)},A.onPointerEnter=b=>{b.pointerId===p.activePointerId&&p.target&&!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,T(Le(p.target,b),p.pointerType))},A.onPointerLeave=b=>{b.pointerId===p.activePointerId&&p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,F(Le(p.target,b),p.pointerType,!1),M(b))};let E=b=>{if(b.pointerId===p.activePointerId&&p.isPressed&&b.button===0&&p.target){if(G(p.target,D(b))&&p.pointerType!=null){let y=!1,O=setTimeout(()=>{p.isPressed&&p.target instanceof HTMLElement&&(y?R(b):(ce(p.target),p.target.click()))},80);C(b.currentTarget,"click",()=>y=!0,!0),p.disposables.push(()=>clearTimeout(O))}else R(b);p.isOverTarget=!1}},K=b=>{R(b)};A.onDragStart=b=>{G(b.currentTarget,D(b))&&R(b)}}return A},[C,l,u,k,f,M,T,z,Z]);return i.useEffect(()=>{if(!h)return;const p=X(h.current);if(!p||!p.head||p.getElementById(mr))return;const A=p.createElement("style");A.id=mr;let H=ti(p);H&&(A.nonce=H),A.textContent=`
-@layer {
- [${br}] {
- touch-action: pan-x pan-y pinch-zoom;
- }
-}
- `.trim(),p.head.prepend(A)},[h]),i.useEffect(()=>{let p=$.current;return()=>{f||dr(p.target??void 0);for(let A of p.disposables)A();p.disposables=[]}},[f]),{isPressed:c||v,pressProps:q(g,Q,{[br]:!0})}}function Nn(e){return e.tagName==="A"&&e.hasAttribute("href")}function en(e,t){const{key:n,code:r}=e,a=t,o=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof re(a).HTMLInputElement&&!Ka(a,n)||a instanceof re(a).HTMLTextAreaElement||a.isContentEditable)&&!((o==="link"||!o&&Nn(a))&&n!=="Enter")}function Le(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function Hc(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Nn(e)}function pr(e,t){return Ee()&&t==="Enter"?!1:e instanceof HTMLInputElement?t==="Enter"&&(e.type==="checkbox"||e.type==="radio")?!1:!Ka(e,t):Hc(e)}const Dc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ka(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Dc.has(e.type)}function Nc(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:h,target:g,rel:v,type:w="button"}=e,$;n==="button"?$={type:w,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:$={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?g:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:C,isPressed:k}=za({onPressStart:o,onPressEnd:s,onPressChange:c,onPress:a,onPressUp:l,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:T}=Dn(e,t);d&&(T.tabIndex=r?-1:T.tabIndex);let L=q(T,C,ue(e,{labelable:!0}));return{isPressed:k,buttonProps:q($,L,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Ua(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,o=i.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=kn(),c=i.useCallback(f=>{G(f.currentTarget,D(f))&&o.current.isFocusWithin&&!G(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,l(),n&&n(f),a&&a(!1))},[n,a,o,l]),u=Ia(c),d=i.useCallback(f=>{if(!G(f.currentTarget,D(f)))return;let h=D(f);const g=X(h),v=pe(g);if(!o.current.isFocusWithin&&v===h){r&&r(f),a&&a(!0),o.current.isFocusWithin=!0,u(f);let w=f.currentTarget;s(g,"focus",$=>{let C=D($);if(o.current.isFocusWithin&&!G(w,C)){let k=new g.defaultView.FocusEvent("blur",{relatedTarget:C});Aa(k,w);let T=Hn(k);c(T)}},{capture:!0})}},[r,a,u,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}function Ze(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=i.useRef({isFocused:!1,isFocusVisible:t||Vt()}),[o,s]=i.useState(!1),[l,c]=i.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=i.useCallback(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),d=i.useCallback(g=>{a.current.isFocused=g,a.current.isFocusVisible=Vt(),s(g),u()},[u]);Ha(g=>{a.current.isFocusVisible=g,u()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Da({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=Ua({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:r?h:f}}let wn=!1,gt=0;function Oc(){wn=!0,setTimeout(()=>{wn=!1},500)}function hr(e){e.pointerType==="touch"&&Oc()}function _c(){let e=X(null);if(!(typeof e>"u"))return gt===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",hr),gt++,()=>{gt--,!(gt>0)&&typeof PointerEvent<"u"&&e.removeEventListener("pointerup",hr)}}function Fe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}=e,[o,s]=i.useState(!1),l=i.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i.useEffect(_c,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=kn(),{hoverProps:d,triggerHoverEnd:f}=i.useMemo(()=>{let h=(w,$)=>{if(l.pointerType=$,a||$==="touch"||l.isHovered||!G(w.currentTarget,D(w)))return;l.isHovered=!0;let C=w.currentTarget;l.target=C,c(X(D(w)),"pointerover",k=>{l.isHovered&&l.target&&!G(l.target,D(k))&&g(k,k.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:$}),n&&n(!0),s(!0)},g=(w,$)=>{let C=l.target;l.pointerType="",l.target=null,!($==="touch"||!l.isHovered||!C)&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:C,pointerType:$}),n&&n(!1),s(!1))},v={};return typeof PointerEvent<"u"&&(v.onPointerEnter=w=>{wn&&w.pointerType==="mouse"||h(w,w.pointerType)},v.onPointerLeave=w=>{!a&&G(w.currentTarget,D(w))&&g(w,w.pointerType)}),{hoverProps:v,triggerHoverEnd:g}},[t,n,r,a,l,c,u]);return i.useEffect(()=>{a&&f({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:d,isHovered:o}}const Za=i.createContext({}),Ga=st(function(t,n){[t,n]=fe(t,n,Za);let r=t,{isPending:a}=r,{buttonProps:o,isPressed:s}=Nc(t,n);o=zc(o,a);let{focusProps:l,isFocused:c,isFocusVisible:u}=Ze(t),{hoverProps:d,isHovered:f}=Fe({...t,isDisabled:t.isDisabled||a}),h={isHovered:f,isPressed:(r.isPressed||s)&&!a,isFocused:c,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:a??!1},g=ge({...t,values:h,defaultClassName:"react-aria-Button"}),v=Ae(o.id),w=Ae(),$=o["aria-labelledby"];a&&($?$=`${$} ${w}`:o["aria-label"]&&($=`${v} ${w}`));let C=i.useRef(a);i.useEffect(()=>{let T={"aria-labelledby":$||v};(!C.current&&c&&a||C.current&&c&&!a)&&ur(T,"assertive"),C.current=a},[a,c,$,v]);let k=ue(t,{global:!0});return delete k.onClick,I.createElement(le.button,{...q(k,g,o,l,d),type:o.type==="submit"&&a?"button":o.type,id:v,ref:n,"aria-labelledby":$,slot:t.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":c||void 0,"data-pending":a||void 0,"data-focus-visible":u||void 0},I.createElement(La.Provider,{value:{id:w}},g.children))}),Bc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function zc(e,t){if(t){for(const n in e)n.startsWith("on")&&!Bc.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const Kc=typeof document<"u"?I.useInsertionEffect??I.useLayoutEffect:()=>{};function Uc(e,t,n){let[r,a]=i.useState(e||t),o=i.useRef(r),s=i.useRef(e!==void 0),l=e!==void 0;i.useEffect(()=>{s.current,s.current=l},[l]);let c=l?e:r;Kc(()=>{o.current=c});let[,u]=i.useReducer(()=>({}),{}),d=i.useCallback((f,...h)=>{let g=typeof f=="function"?f(o.current):f;Object.is(o.current,g)||(o.current=g,a(g),u(),n?.(g,...h))},[n]);return[c,d]}const we=e=>e?"true":void 0;function $e(e,t){return Vn(e,(n,r)=>{const a=typeof t=="function"?t(r)??"":t??"";return _l(a,n??"")??""})}const ee=(e,t,n)=>typeof e=="function"?e({...n??{},className:t}):t,qd=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",fill:"currentColor",fillRule:"evenodd"})}),Yd=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.03 10.53a.75.75 0 0 1-1.06 0L8 6.56l-3.97 3.97a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06",fill:"currentColor",fillRule:"evenodd"})}),Xd=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",fill:"currentColor",fillRule:"evenodd"})}),Qd=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Zc=({height:e=9,width:t=9,...n})=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:e,role:"presentation",viewBox:"0 0 7 7",width:t,xmlns:"http://www.w3.org/2000/svg",...n,children:m.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),Gc=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Ft=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Wa=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),qa=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Ya=e=>m.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),Xa=i.createContext({}),it=i.createContext({}),Wc={variant:"default"},vr=({children:e,className:t,status:n,...r})=>{const a=I.useMemo(()=>Bl({status:n}),[n]),o=I.useMemo(()=>({slots:a,status:n}),[a,n]);return m.jsx(it,{value:o,children:m.jsx(Xa,{value:Wc,children:m.jsx(J.div,{className:a?.base({className:t}),"data-slot":"alert-root",...r,children:e})})})},qc=({children:e,className:t,...n})=>{const{slots:r,status:a}=i.use(it),o=()=>{switch(a){case"accent":return m.jsx(Ft,{"data-slot":"alert-default-icon"});case"success":return m.jsx(Ya,{"data-slot":"alert-default-icon"});case"warning":return m.jsx(Wa,{"data-slot":"alert-default-icon"});case"danger":return m.jsx(qa,{"data-slot":"alert-default-icon"});default:return m.jsx(Ft,{"data-slot":"alert-default-icon"})}};return m.jsx(J.div,{className:ee(r?.indicator,t),"data-slot":"alert-indicator",...n,children:e??o()})},Yc=({children:e,className:t,...n})=>{const{slots:r}=i.use(it);return m.jsx(J.div,{className:ee(r?.content,t),"data-slot":"alert-content",...n,children:e})},Xc=({children:e,className:t,...n})=>{const{slots:r}=i.use(it);return m.jsx(J.p,{className:ee(r?.title,t),"data-slot":"alert-title",...n,children:e})},Qc=({children:e,className:t,...n})=>{const{slots:r}=i.use(it);return m.jsx(J.span,{className:ee(r?.description,t),"data-slot":"alert-description",...n,children:e})},$t=Object.assign(vr,{Root:vr,Indicator:qc,Content:Yc,Title:Xc,Description:Qc}),Jc=Symbol.for("react-aria.i18n.locale"),eu=Symbol.for("react-aria.i18n.strings");let yt;class Ut{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(t,n){let a=this.getStringsForLocale(n)[t];if(!a)throw new Error(`Could not find intl message ${t} in ${n} locale`);return a}getStringsForLocale(t){let n=this.strings[t];return n||(n=tu(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jc];if(yt===void 0){let a=window[eu];if(!a)return null;yt={};for(let o in a)yt[o]=new Ut({[n]:a[o]},n)}let r=yt?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function tu(e,t,n="en-US"){if(t[e])return t[e];let r=nu(e),a=ru(e);if(a&&t[`${r}-${a}`])return t[`${r}-${a}`];if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function nu(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function ru(e){if(Intl.Locale)return new Intl.Locale(e).script}const gr=new Map,$r=new Map;class au{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let o=this.locale+":"+r,s=gr.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),gr.set(o,s));let l=s.select(t);return a=n[l]||n.other,typeof a=="function"?a():a}number(t){let n=$r.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),$r.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}}const yr=new WeakMap;function ou(e){let t=yr.get(e);return t||(t=new Ut(e),yr.set(e,t)),t}function su(e,t){return t&&Ut.getGlobalDictionaryForPackage(t)||ou(e)}function Qa(e,t){let{locale:n}=jn(),r=su(e,t);return i.useMemo(()=>new au(n,r),[n,r])}const iu=i.createContext({});function lu(){return i.useContext(iu)??{}}var tn={exports:{}},nn={};var xr;function cu(){if(xr)return nn;xr=1;var e=ls();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function l(f,h){var g=h(),v=r({inst:{value:g,getSnapshot:h}}),w=v[0].inst,$=v[1];return o(function(){w.value=g,w.getSnapshot=h,c(w)&&$({inst:w})},[f,g,h]),a(function(){return c(w)&&$({inst:w}),f(function(){c(w)&&$({inst:w})})},[f]),s(g),g}function c(f){var h=f.getSnapshot;f=f.value;try{var g=h();return!n(f,g)}catch{return!0}}function u(f,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return nn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,nn}var wr;function uu(){return wr||(wr=1,tn.exports=cu()),tn.exports}var Ja=uu();const Jd=i.createContext(null),du=i.createContext(null),On=i.createContext({}),eo=st(function(t,n){[t,n]=fe(t,n,On);let{elementType:r="span",...a}=t,o=le[r];return I.createElement(o,{className:"react-aria-Text",...a,ref:n})}),Er=({children:e,className:t,slot:n,style:r,variant:a,...o})=>{const s=i.useMemo(()=>Zl({variant:a}),[a]);return m.jsx(Ga,{"aria-label":"Close",className:$e(t,s),"data-slot":"close-button",slot:n,style:r,type:"button",...o,children:l=>typeof e=="function"?e(l):e??m.jsx(Gc,{"data-slot":"close-button-icon"})})},fu=Object.assign(Er,{Root:Er}),mu=i.createContext({}),bu=i.createContext(null),to={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},no={...to,customError:!0,valid:!1},Qe={isInvalid:!1,validationDetails:to,validationErrors:[]},pu=i.createContext({}),Cr="__reactAriaFormValidationState";function hu(e){if(e[Cr]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}=e[Cr];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:o}}return vu(e)}function vu(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:o,validate:s,validationBehavior:l="aria"}=e;n&&(t||=n==="invalid");let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:no}:null,u=i.useMemo(()=>{if(!s||a==null)return null;let M=gu(s,a);return Tr(M)},[s,a]);o?.validationDetails.valid&&(o=void 0);let d=i.useContext(pu),f=i.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>En(d[M])):En(d[r]):[],[d,r]),[h,g]=i.useState(d),[v,w]=i.useState(!1);d!==h&&(g(d),w(!1));let $=i.useMemo(()=>Tr(v?[]:f),[v,f]),C=i.useRef(Qe),[k,T]=i.useState(Qe),L=i.useRef(Qe),F=()=>{if(!j)return;V(!1);let M=u||o||C.current;rn(M,L.current)||(L.current=M,T(M))},[j,V]=i.useState(!1);return i.useEffect(F),{realtimeValidation:c||$||u||o||Qe,displayValidation:l==="native"?c||$||k:c||$||u||o||k,updateValidation(M){l==="aria"&&!rn(k,M)?T(M):C.current=M},resetValidation(){let M=Qe;rn(M,L.current)||(L.current=M,T(M)),l==="native"&&V(!1),w(!0)},commitValidation(){l==="native"&&V(!0),w(!0)}}}function En(e){return e?Array.isArray(e)?e:[e]:[]}function gu(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return En(n)}return[]}function Tr(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:no}:null}function rn(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const $u=i.createContext(null);function yu(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:o,fieldProps:s}=Ta(e),l=un([!!t,!!n,r,a]),c=un([!!t,!!n,r,a]);return s=q(s,{"aria-describedby":[l,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:s,descriptionProps:{id:l},errorMessageProps:{id:c}}}function xu(e,t,n){let{validationBehavior:r,focus:a}=e;ae(()=>{if(r==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Eu(n.current))}});let o=i.useRef(!1),s=Me(()=>{o.current||t.resetValidation()}),l=Me(u=>{t.displayValidation.isInvalid||t.commitValidation();let d=n?.current?.form;!u.defaultPrevented&&n&&d&&Cu(d)===n.current&&(a?a():n.current?.focus(),gc("keyboard")),u.preventDefault()}),c=Me(()=>{t.commitValidation()});i.useEffect(()=>{let u=n?.current;if(!u)return;let d=u.form,f=d?.reset;return d&&(d.reset=()=>{o.current=!window.event||window.event.type==="message"&&D(window.event)instanceof MessagePort,f?.call(d),o.current=!1}),u.addEventListener("invalid",l),u.addEventListener("change",c),d?.addEventListener("reset",s),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",c),d?.removeEventListener("reset",s),d&&(d.reset=f)}},[n,r])}function wu(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Eu(e){return{isInvalid:!e.validity.valid,validationDetails:wu(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Cu(e){for(let t=0;to?i-o:void 0;return If(e,c,u,f)},Ff=t=>{const e=new Set(t.orderSensitiveModifiers);return n=>{const r=[];let o=[];for(let i=0;i0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=t.format(-n),i=t.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return t.format(n)}}function Y0(t={}){let{locale:e}=it();return a.useMemo(()=>new W0(e,t),[e,t])}function X0(t){let{value:e=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:s={style:"percent"}}=t,l=de(t,{labelable:!0}),{labelProps:u,fieldProps:c}=Xs({...t,labelElementType:"span"});e=Wt(e,n,r);let d=r-n,f=d===0?0:(e-n)/d,p=Y0(s);if(!i&&!o){let m=s.style==="percent"?f:e;o=p.format(m)}return{progressBarProps:Q(l,{...c,"aria-valuenow":i?void 0:e,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:u}}const tl=a.createContext(null),X1=a.forwardRef(function(e,n){[e,n]=me(e,n,tl);let{value:r=0,minValue:o=0,maxValue:i=100,isIndeterminate:s=!1}=e;r=Wt(r,o,i);let[l,u]=mo(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:c,labelProps:d}=X0({...e,label:u}),f=i-o,p;s||(f===0?p=0:p=(r-o)/f*100);let m=ve({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:c["aria-valuetext"],isIndeterminate:s}}),h=de(e,{global:!0});return $.createElement(ue.div,{...Q(h,m,c),ref:n,slot:e.slot||void 0},$.createElement(go.Provider,{value:{...d,ref:l,elementType:"span"}},m.children))}),nl=7e3;let xt=null;function oi(t,e="assertive",n=nl){xt?xt.announce(t,e,n):(xt=new J0,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?xt.announce(t,e,n):setTimeout(()=>{xt?.isAttached()&&xt?.announce(t,e,n)},100))}class J0{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=nl){if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,n==="assertive"?this.assertiveLog?.appendChild(o):this.politeLog?.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function vo(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function rl(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ol(t){let e=a.useRef({isFocused:!1,observer:null});return J(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=V(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let o=r,i=s=>{if(e.current.isFocused=!1,o.disabled){let l=vo(s);t?.(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){e.current.observer?.disconnect();let s=o===re()?null:re();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Bn=!1;function Q0(t){for(;t&&!ws(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=he(t),n=re(e.document);if(!n||n===t)return;let r=t?.getRootNode(),o=r!=null&&Xn(r)?r:he(t),i=h=>h===t||h!=null&&Y(t,h),s=h=>h===n||n!=null&&h!=null&&Y(n,h);Bn=!0;let l=!1,u=h=>{(s(V(h))||l)&&h.stopImmediatePropagation()},c=h=>{(s(V(h))||l)&&(h.stopImmediatePropagation(),!t&&!l&&(l=!0,ce(n),p()))},d=h=>{(i(V(h))||l)&&h.stopImmediatePropagation()},f=h=>{(i(V(h))||l)&&(h.stopImmediatePropagation(),l||(l=!0,ce(n),p()))};o.addEventListener("blur",u,!0),o.addEventListener("focusout",c,!0),o.addEventListener("focusin",f,!0),o.addEventListener("focus",d,!0);let p=()=>{cancelAnimationFrame(m),o.removeEventListener("blur",u,!0),o.removeEventListener("focusout",c,!0),o.removeEventListener("focusin",f,!0),o.removeEventListener("focus",d,!0),Bn=!1,l=!1},m=requestAnimationFrame(p);return p}let _e=null;const Gt=new Set;let Ut=new Map,bt=!1,Rn=!1;const ep={Tab:!0,Escape:!0};function tr(t,e){for(let n of Gt)n(t,e)}function tp(t){return!(t.metaKey||!Me()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function _n(t){bt=!0,!Be.isOpening&&tp(t)&&(_e="keyboard",tr("keyboard",t))}function Tt(t){_e="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(bt=!0,tr("pointer",t))}function il(t){!Be.isOpening&&xs(t)&&(bt=!0,_e="virtual")}function sl(t){if(Bn)return;let e=V(t),n=he(e),r=ee(e);if(e===n){Rn=!0;return}e===r||!t.isTrusted||(!bt&&!Rn&&(_e="virtual",tr("virtual",t)),bt=!1,Rn=!1)}function ll(){Bn||(bt=!1,Rn=!0)}function Hn(t){if(typeof window>"u"||typeof document>"u")return;const e=he(t),n=ee(t);if(Ut.get(e))return;let r=e.HTMLElement.prototype.focus;Reflect.defineProperty(e.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){bt=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",_n,!0),n.addEventListener("keyup",_n,!0),n.addEventListener("click",il,!0),e.addEventListener("focus",sl,!0),e.addEventListener("blur",ll,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Tt,!0),n.addEventListener("pointermove",Tt,!0),n.addEventListener("pointerup",Tt,!0)),e.addEventListener("beforeunload",()=>{al(t)},{once:!0}),Ut.set(e,{focus:r})}const al=(t,e)=>{const n=he(t),r=ee(t);e&&r.removeEventListener("DOMContentLoaded",e),Ut.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Ut.get(n).focus}),r.removeEventListener("keydown",_n,!0),r.removeEventListener("keyup",_n,!0),r.removeEventListener("click",il,!0),n.removeEventListener("focus",sl,!0),n.removeEventListener("blur",ll,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Tt,!0),r.removeEventListener("pointermove",Tt,!0),r.removeEventListener("pointerup",Tt,!0)),Ut.delete(n))};function np(t){const e=ee(t);let n;return e.readyState!=="loading"?Hn(t):(n=()=>{Hn(t)},e.addEventListener("DOMContentLoaded",n)),()=>al(t,n)}typeof document<"u"&&np();function At(){return _e!=="pointer"}function Je(){return _e}function Ln(t){_e=t,tr(t,null)}function rp(){Hn();let[t,e]=a.useState(_e);return a.useEffect(()=>{let n=()=>{e(_e)};return Gt.add(n),()=>{Gt.delete(n)}},[]),nt()?null:t}const op=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ip(t,e,n){let r=n?V(n):void 0,o=ee(r),i=he(r);const s=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,u=typeof i<"u"?i.HTMLElement:HTMLElement,c=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let d=re(o);return t=t||d instanceof s&&!op.has(d.type)||d instanceof l||d instanceof u&&d.isContentEditable,!(t&&e==="keyboard"&&n instanceof c&&!ep[n.key])}function sp(t={}){let{isTextInput:e,autoFocus:n}=t,[r,o]=a.useState(n||At());return ul(i=>{o(i)},[e],{isTextInput:e}),{isFocusVisible:r}}function ul(t,e,n){Hn(),a.useEffect(()=>{if(n?.enabled===!1)return;let r=(o,i)=>{ip(!!n?.isTextInput,o,i)&&t(At())};return Gt.add(r),()=>{Gt.delete(r)}},e)}function et(t){if(!t.isConnected)return;const e=ee(t);if(Je()==="virtual"){let n=re(e);ys(()=>{const r=re(e);(r===n||r===e.body)&&t.isConnected&&ce(t)})}else ce(t)}function cl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:o}=t;const i=a.useCallback(u=>{if(V(u)===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),s=ol(i),l=a.useCallback(u=>{let c=V(u);const d=ee(c),f=d?re(d):re();c===u.currentTarget&&c===f&&(n&&n(u),o&&o(!0),s(u))},[o,n,s]);return{focusProps:{onFocus:!e&&(n||o||r)?l:void 0,onBlur:!e&&(r||o)?i:void 0}}}function yn(t){if(t)return e=>{let n=!0,r={...e,preventDefault(){e.preventDefault()},isDefaultPrevented(){return e.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof e.continuePropagation=="function"&&e.continuePropagation()},isPropagationStopped(){return n}};t(r),n&&!(typeof e.isPropagationStopped=="function"&&e.isPropagationStopped())&&e.stopPropagation()}}const lp=new Set(["shift","alt","control","meta","mod"]),ap=["Alt","Control","Meta","Shift"];function up(t){let e=new Set;return t.alt&&e.add("Alt"),t.shift&&e.add("Shift"),t.ctrl&&e.add("Control"),t.meta&&e.add("Meta"),t.mod&&e.add(Me()?"Meta":"Control"),e}function cp(t){let e=new Set;return t.altKey&&e.add("Alt"),t.ctrlKey&&e.add("Control"),t.metaKey&&e.add("Meta"),t.shiftKey&&e.add("Shift"),e}function dl(t){return ap.filter(e=>t.has(e))}function dp(t){let e=t.split("+").reduce((n,r)=>{let o=r.toLowerCase();return lp.has(o)?o==="shift"?n.shift=!0:o==="alt"?n.alt=!0:o==="control"?n.ctrl=!0:o==="meta"?n.meta=!0:o==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(e.key==="")throw new Error(`Invalid keyboard shortcut: "${t}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return e}function fl(t){return t.toLowerCase()}const fp={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function pp(t){let e=fl(t),n=fp[e];return n??e}function hp(t){let e=dl(up(t)),n=pp(t.key);return e.length>0?`${e.join("+")}+${n}`:n}function mp(t){let e=dl(cp(t)),n=fl(t.key);return(e.length>0?`${e.join("+")}+`:"")+n}function bp(t){let e=new Map;for(let[n,r]of Object.entries(t)){let o=dp(n);e.set(hp(o),r)}return n=>{let r=mp(n),o=e.get(r),i=o?.(n);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&n.preventDefault(),(!o||i?.shouldContinuePropagation)&&n.continuePropagation()}}function tt(t){let{shortcuts:e,allowRepeats:n=!1,allowComposing:r=!1}=t,o,i;if(e){let s=bp(e),l=yn(c=>{if(!Y(c.currentTarget,V(c))){c.continuePropagation();return}if(c.nativeEvent?.repeat&&!n||c.nativeEvent?.isComposing&&!r){c.continuePropagation();return}s(c)}),u=yn(c=>{if(!Y(c.currentTarget,V(c))){c.continuePropagation();return}if(c.nativeEvent?.repeat&&!n||c.nativeEvent?.isComposing&&!r){c.continuePropagation();return}c.continuePropagation()});o=t.onKeyDown?ht(t.onKeyDown,l):l,i=t.onKeyUp?ht(t.onKeyUp,u):u}else o=yn(t.onKeyDown),i=yn(t.onKeyUp);return{keyboardProps:t.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}let qt=$.createContext(null);function gp(t){let e=a.useContext(qt)||{};ro(e,t);let{ref:n,...r}=e;return r}const J1=$.forwardRef(function(e,n){let{children:r,...o}=e,i=rt(n),s={...o,ref:i};return $.createElement(qt.Provider,{value:s},r)});function nr(t,e){let{focusProps:n}=cl(t),{keyboardProps:r}=tt(t),o=Q(n,r),i=gp(e),s=t.isDisabled?{}:i,l=a.useRef(t.autoFocus);a.useEffect(()=>{l.current&&e.current&&et(e.current),l.current=!1},[e]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:Q({...o,tabIndex:u},s)}}let Ct="default",zr="",In=new WeakMap;function vp(t){if(gt()&&pt()){if(Ct==="default"){const e=ee(t);zr=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Ct="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";In.set(t,t.style[e]),t.style[e]="none"}}function ii(t){if(gt()&&pt()){if(Ct!=="disabled")return;Ct="restoring",setTimeout(()=>{ys(()=>{if(Ct==="restoring"){const e=ee(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=zr||""),zr="",Ct="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&In.has(t)){let e=In.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),In.delete(t)}}const Yt=$.createContext({register:()=>{}});Yt.displayName="PressResponderContext";function yp(t){let e=a.useContext(Yt);if(e){let{register:n,ref:r,...o}=e;t=Q(o,t),n()}return ro(e,t.ref),t}class $n{#e;constructor(e,n,r,o){this.#e=!0;const s=(o?.target??r.currentTarget)?.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),s&&(c!=null&&d!=null?(l=c-s.left,u=d-s.top):(l=s.width/2,u=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const si=Symbol("linkClicked"),li="react-aria-pressable-style",ai="data-react-aria-pressable";function on(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:l,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...m}=yp(t),[h,g]=a.useState(!1),b=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:v}=Jn(),w=a.useCallback((C,R)=>{let H=b.current;if(l||H.didFirePressStart)return!1;let L=!0;if(H.isTriggeringEvent=!0,r){let q=new $n("pressstart",R,C);r(q),L=q.shouldStopPropagation}return n&&n(!0),H.isTriggeringEvent=!1,H.didFirePressStart=!0,g(!0),L},[l,r,n]),x=a.useCallback((C,R,H=!0)=>{let L=b.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let q=!0;if(o){let T=new $n("pressend",R,C);o(T),q=T.shouldStopPropagation}if(n&&n(!1),g(!1),e&&H&&!l){let T=new $n("press",R,C);e(T),q&&=T.shouldStopPropagation}return L.isTriggeringEvent=!1,q},[l,o,n,e]),F=Ce(x),K=a.useCallback((C,R)=>{let H=b.current;if(l)return!1;if(i){H.isTriggeringEvent=!0;let L=new $n("pressup",R,C);return i(L),H.isTriggeringEvent=!1,L.shouldStopPropagation}return!0},[l,i]),P=Ce(K),S=a.useCallback(C=>{let R=b.current;if(R.isPressed&&R.target){R.didFirePressStart&&R.pointerType!=null&&x(at(R.target,C),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,v(),f||ii(R.target);for(let H of R.disposables)H();R.disposables=[]}},[f,v,x]),I=Ce(S);a.useEffect(()=>{l&&b.current.isPressed&&I({currentTarget:b.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let M=a.useCallback(C=>{d&&S(C)},[d,S]),O=a.useCallback(C=>{l||s?.(C)},[l,s]),z=a.useCallback((C,R)=>{if(!l&&s){let H=new MouseEvent("click",C);rl(H,R),s(vo(H))}},[l,s]),U=a.useMemo(()=>{let C=b.current,R={onKeyDown(L){if(Er(L.nativeEvent,L.currentTarget)&&Y(L.currentTarget,V(L))){ui(V(L),L.key)&&L.preventDefault();let q=!0;!C.isPressed&&!L.repeat&&(C.target=L.currentTarget,C.isPressed=!0,C.pointerType="keyboard",q=w(L,"keyboard"));let T=L.currentTarget,A=j=>{Er(j,T)&&!j.repeat&&Y(T,V(j))&&C.target&&P(at(C.target,j),"keyboard")};y(ee(L.currentTarget),"keyup",ht(A,H),!0),q&&L.stopPropagation(),L.metaKey&&Me()&&C.metaKeyEvents?.set(L.key,L.nativeEvent)}else L.key==="Meta"&&(C.metaKeyEvents=new Map)},onClick(L){if(!(L&&!Y(L.currentTarget,V(L)))&&L&&L.button===0&&!C.isTriggeringEvent&&!Be.isOpening){let q=!0;if(l&&L.preventDefault(),!C.ignoreEmulatedMouseEvents&&!C.isPressed&&(C.pointerType==="virtual"||xs(L.nativeEvent))){let T=w(L,"virtual"),A=P(L,"virtual"),j=F(L,"virtual");O(L),q=T&&A&&j}else if(C.isPressed&&C.pointerType!=="keyboard"){let T=C.pointerType||L.nativeEvent.pointerType||"virtual",A=P(at(L.currentTarget,L),T),j=F(at(L.currentTarget,L),T,!0);q=A&&j,C.isOverTarget=!1,O(L),I(L)}C.ignoreEmulatedMouseEvents=!1,q&&L.stopPropagation()}}},H=L=>{if(C.isPressed&&C.target&&Er(L,C.target)){ui(V(L),L.key)&&L.preventDefault();let q=V(L),T=Y(C.target,q);F(at(C.target,L),"keyboard",T),T&&z(L,C.target),v(),L.key!=="Enter"&&yo(C.target)&&Y(C.target,q)&&!L[si]&&(L[si]=!0,Be(C.target,L,!1)),C.isPressed=!1,C.metaKeyEvents?.delete(L.key)}else if(L.key==="Meta"&&C.metaKeyEvents?.size){let q=C.metaKeyEvents;C.metaKeyEvents=void 0;for(let T of q.values())C.target?.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent<"u"){R.onPointerDown=T=>{if(T.button!==0||!Y(T.currentTarget,V(T)))return;if(xd(T.nativeEvent)){C.pointerType="virtual";return}C.pointerType=T.pointerType;let A=!0;if(!C.isPressed){C.isPressed=!0,C.isOverTarget=!0,C.activePointerId=T.pointerId,C.target=T.currentTarget,f||vp(C.target),A=w(T,C.pointerType);let j=V(T);"releasePointerCapture"in j&&("hasPointerCapture"in j?j.hasPointerCapture(T.pointerId)&&j.releasePointerCapture(T.pointerId):j.releasePointerCapture(T.pointerId)),y(ee(T.currentTarget),"pointerup",L,!1),y(ee(T.currentTarget),"pointercancel",q,!1)}A&&T.stopPropagation()},R.onMouseDown=T=>{if(Y(T.currentTarget,V(T))&&T.button===0){if(c){let A=Q0(T.target);A&&C.disposables.push(A)}T.stopPropagation()}},R.onPointerUp=T=>{!Y(T.currentTarget,V(T))||C.pointerType==="virtual"||T.button===0&&!C.isPressed&&P(T,C.pointerType||T.pointerType)},R.onPointerEnter=T=>{T.pointerId===C.activePointerId&&C.target&&!C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!0,w(at(C.target,T),C.pointerType))},R.onPointerLeave=T=>{T.pointerId===C.activePointerId&&C.target&&C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!1,F(at(C.target,T),C.pointerType,!1),M(T))};let L=T=>{if(T.pointerId===C.activePointerId&&C.isPressed&&T.button===0&&C.target){if(Y(C.target,V(T))&&C.pointerType!=null){let A=!1,j=setTimeout(()=>{C.isPressed&&C.target instanceof HTMLElement&&(A?I(T):(ce(C.target),C.target.click()))},80);y(T.currentTarget,"click",()=>A=!0,!0),C.disposables.push(()=>clearTimeout(j))}else I(T);C.isOverTarget=!1}},q=T=>{I(T)};R.onDragStart=T=>{Y(T.currentTarget,V(T))&&I(T)}}return R},[y,l,c,v,f,M,w,O,z]);return a.useEffect(()=>{if(!p)return;const C=ee(p.current);if(!C||!C.head||C.getElementById(li))return;const R=C.createElement("style");R.id=li;let H=Ss(C);H&&(R.nonce=H),R.textContent=`
+@layer {
+ [${ai}] {
+ touch-action: pan-x pan-y pinch-zoom;
+ }
+}
+ `.trim(),C.head.prepend(R)},[p]),a.useEffect(()=>{let C=b.current;return()=>{f||ii(C.target??void 0);for(let R of C.disposables)R();C.disposables=[]}},[f]),{isPressed:u||h,pressProps:Q(m,U,{[ai]:!0})}}function yo(t){return t.tagName==="A"&&t.hasAttribute("href")}function Er(t,e){const{key:n,code:r}=t,o=e,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof he(o).HTMLInputElement&&!pl(o,n)||o instanceof he(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&yo(o))&&n!=="Enter")}function at(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function $p(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!yo(t)}function ui(t,e){return Me()&&e==="Enter"?!1:t instanceof HTMLInputElement?e==="Enter"&&(t.type==="checkbox"||t.type==="radio")?!1:!pl(t,e):$p(t)}const xp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":xp.has(t.type)}function Ep(t,e){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:m,rel:h,type:g="button"}=t,b;n==="button"?b={type:g,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:b={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?m:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?h:void 0};let{pressProps:y,isPressed:v}=on({onPressStart:i,onPressEnd:s,onPressChange:u,onPress:o,onPressUp:l,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:w}=nr(t,e);d&&(w.tabIndex=r?-1:w.tabIndex);let x=Q(w,y,de(t,{labelable:!0}));return{isPressed:v,buttonProps:Q(b,x,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function sn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,i=a.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=Jn(),u=a.useCallback(f=>{Y(f.currentTarget,V(f))&&i.current.isFocusWithin&&!Y(f.currentTarget,f.relatedTarget)&&(i.current.isFocusWithin=!1,l(),n&&n(f),o&&o(!1))},[n,o,i,l]),c=ol(u),d=a.useCallback(f=>{if(!Y(f.currentTarget,V(f)))return;let p=V(f);const m=ee(p),h=re(m);if(!i.current.isFocusWithin&&h===p){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let g=f.currentTarget;s(m,"focus",b=>{let y=V(b);if(i.current.isFocusWithin&&!Y(g,y)){let v=new m.defaultView.FocusEvent("blur",{relatedTarget:y});rl(v,g);let w=vo(v);u(w)}},{capture:!0})}},[r,o,c,s,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}function Lt(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||At()}),[i,s]=a.useState(!1),[l,u]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=a.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(m=>{o.current.isFocused=m,o.current.isFocusVisible=At(),s(m),c()},[c]);ul(m=>{o.current.isFocusVisible=m,c()},[n,i],{enabled:i,isTextInput:n});let{focusProps:f}=cl({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=sn({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:r?p:f}}let Ur=!1,xn=0;function wp(){Ur=!0,setTimeout(()=>{Ur=!1},500)}function ci(t){t.pointerType==="touch"&&wp()}function Cp(){let t=ee(null);if(!(typeof t>"u"))return xn===0&&typeof PointerEvent<"u"&&t.addEventListener("pointerup",ci),xn++,()=>{xn--,!(xn>0)&&typeof PointerEvent<"u"&&t.removeEventListener("pointerup",ci)}}function Ue(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[i,s]=a.useState(!1),l=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Cp,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=Jn(),{hoverProps:d,triggerHoverEnd:f}=a.useMemo(()=>{let p=(g,b)=>{if(l.pointerType=b,o||b==="touch"||l.isHovered||!Y(g.currentTarget,V(g)))return;l.isHovered=!0;let y=g.currentTarget;l.target=y,u(ee(V(g)),"pointerover",v=>{l.isHovered&&l.target&&!Y(l.target,V(v))&&m(v,v.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:y,pointerType:b}),n&&n(!0),s(!0)},m=(g,b)=>{let y=l.target;l.pointerType="",l.target=null,!(b==="touch"||!l.isHovered||!y)&&(l.isHovered=!1,c(),r&&r({type:"hoverend",target:y,pointerType:b}),n&&n(!1),s(!1))},h={};return typeof PointerEvent<"u"&&(h.onPointerEnter=g=>{Ur&&g.pointerType==="mouse"||p(g,g.pointerType)},h.onPointerLeave=g=>{!o&&Y(g.currentTarget,V(g))&&m(g,g.pointerType)}),{hoverProps:h,triggerHoverEnd:m}},[e,n,r,o,l,u,c]);return a.useEffect(()=>{o&&f({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:d,isHovered:i}}const $o=a.createContext({}),xo=rn(function(e,n){[e,n]=me(e,n,$o);let r=e,{isPending:o}=r,{buttonProps:i,isPressed:s}=Ep(e,n);i=Pp(i,o);let{focusProps:l,isFocused:u,isFocusVisible:c}=Lt(e),{hoverProps:d,isHovered:f}=Ue({...e,isDisabled:e.isDisabled||o}),p={isHovered:f,isPressed:(r.isPressed||s)&&!o,isFocused:u,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:o??!1},m=ve({...e,values:p,defaultClassName:"react-aria-Button"}),h=xe(i.id),g=xe(),b=i["aria-labelledby"];o&&(b?b=`${b} ${g}`:i["aria-label"]&&(b=`${h} ${g}`));let y=a.useRef(o);a.useEffect(()=>{let w={"aria-labelledby":b||h};(!y.current&&u&&o||y.current&&u&&!o)&&oi(w,"assertive"),y.current=o},[o,u,b,h]);let v=de(e,{global:!0});return delete v.onClick,$.createElement(ue.button,{...Q(v,m,i,l,d),type:i.type==="submit"&&o?"button":i.type,id:h,ref:n,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":u||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},$.createElement(tl.Provider,{value:{id:g}},m.children))}),Sp=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Pp(t,e){if(e){for(const n in t)n.startsWith("on")&&!Sp.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const Tp=typeof document<"u"?$.useInsertionEffect??$.useLayoutEffect:()=>{};function rr(t,e,n){let[r,o]=a.useState(t||e),i=a.useRef(r),s=a.useRef(t!==void 0),l=t!==void 0;a.useEffect(()=>{s.current,s.current=l},[l]);let u=l?t:r;Tp(()=>{i.current=u});let[,c]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...p)=>{let m=typeof f=="function"?f(i.current):f;Object.is(i.current,m)||(i.current=m,o(m),c(),n?.(m,...p))},[n]);return[u,d]}const hl=a.createContext({}),Q1=a.forwardRef(function(e,n){[e,n]=me(e,n,hl);let{children:r,level:o=3,className:i,...s}=e,l=ue[`h${o}`];return $.createElement(l,{...s,ref:n,className:i??"react-aria-Heading"},r)}),Ge=t=>t?"true":void 0;function Se(t,e){return ho(t,(n,r)=>{const o=typeof e=="function"?e(r)??"":e??"";return $0(o,n??"")??""})}const be=(t,e,n)=>typeof t=="function"?t({...n??{},className:e}):e,eg=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",fill:"currentColor",fillRule:"evenodd"})}),tg=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M13.03 10.53a.75.75 0 0 1-1.06 0L8 6.56l-3.97 3.97a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06",fill:"currentColor",fillRule:"evenodd"})}),ng=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",fill:"currentColor",fillRule:"evenodd"})}),kp=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Mp=({height:t=9,width:e=9,...n})=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:t,role:"presentation",viewBox:"0 0 7 7",width:e,xmlns:"http://www.w3.org/2000/svg",...n,children:E.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),Ap=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),jn=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),ml=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),bl=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),gl=t=>E.jsx("svg",{"aria-hidden":"true",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:E.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),Eo=a.createContext({}),ln=a.createContext({}),Rp={variant:"default"},di=({children:t,className:e,status:n,...r})=>{const o=$.useMemo(()=>w0({status:n}),[n]),i=$.useMemo(()=>({slots:o,status:n}),[o,n]);return E.jsx(ln,{value:i,children:E.jsx(Eo,{value:Rp,children:E.jsx(ge.div,{className:o?.base({className:e}),"data-slot":"alert-root",...r,children:t})})})},Lp=({children:t,className:e,...n})=>{const{slots:r,status:o}=a.use(ln),i=()=>{switch(o){case"accent":return E.jsx(jn,{"data-slot":"alert-default-icon"});case"success":return E.jsx(gl,{"data-slot":"alert-default-icon"});case"warning":return E.jsx(ml,{"data-slot":"alert-default-icon"});case"danger":return E.jsx(bl,{"data-slot":"alert-default-icon"});default:return E.jsx(jn,{"data-slot":"alert-default-icon"})}};return E.jsx(ge.div,{className:be(r?.indicator,e),"data-slot":"alert-indicator",...n,children:t??i()})},Ip=({children:t,className:e,...n})=>{const{slots:r}=a.use(ln);return E.jsx(ge.div,{className:be(r?.content,e),"data-slot":"alert-content",...n,children:t})},Fp=({children:t,className:e,...n})=>{const{slots:r}=a.use(ln);return E.jsx(ge.p,{className:be(r?.title,e),"data-slot":"alert-title",...n,children:t})},Kp=({children:t,className:e,...n})=>{const{slots:r}=a.use(ln);return E.jsx(ge.span,{className:be(r?.description,e),"data-slot":"alert-description",...n,children:t})},En=Object.assign(di,{Root:di,Indicator:Lp,Content:Ip,Title:Fp,Description:Kp}),vl=a.createContext({placement:"bottom"}),rg=a.forwardRef(function(e,n){[e,n]=me(e,n,vl);let r=e.placement,o={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(o[r]="100%");let i=ve({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});i.style&&Object.keys(i.style).forEach(l=>i.style[l]===void 0&&delete i.style[l]);let s=de(e);return $.createElement(ue.div,{...s,...i,style:{...o,...i.style},ref:n,"data-placement":r})}),Dp=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function fi(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let Ot=new WeakMap,we=[];function Np(t,e){let n=he(t?.[0]),r=e instanceof n.Element?{root:e}:e,o=r?.root??document.body,i=r?.shouldUseInert&&Dp,s=new Set(t),l=new Set,u=b=>i&&b instanceof n.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,y)=>{i&&b instanceof n.HTMLElement?b.inert=y:y?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof n.HTMLElement&&(b.inert=!1))},d=new Set;if(Ne()){let b=o.getRootNode();for(let y of t){let v=y.getRootNode();for(;Xn(v)&&v!==b;)d.add(v),v=v.host.getRootNode()}}let f=b=>{for(let x of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(x);let y=x=>{if(l.has(x)||s.has(x)||x.parentElement&&l.has(x.parentElement)&&x.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let F of s)if(Y(x,F))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=gs(ee(b),b,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),w=y(b);if(w===NodeFilter.FILTER_ACCEPT&&p(b),w!==NodeFilter.FILTER_REJECT){let x=v.nextNode();for(;x!=null;)p(x),x=v.nextNode()}},p=b=>{let y=Ot.get(b)??0;u(b)&&y===0||(y===0&&c(b,!0),l.add(b),Ot.set(b,y+1))};we.length&&we[we.length-1].disconnect(),f(o);let m=new MutationObserver(b=>{for(let y of b)if(y.type==="childList"){if(y.target.isConnected&&![...s,...l].some(v=>Y(v,y.target)))for(let v of y.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&fi(v)?s.add(v):v instanceof Element&&f(v);if(Ne()){for(let v of d)if(!v.isConnected){m.disconnect();break}}}});m.observe(o,{childList:!0,subtree:!0});let h=new Set;if(Ne())for(let b of d){let y=new MutationObserver(v=>{for(let w of v)if(w.type==="childList"){if(w.target.isConnected&&![...s,...l].some(x=>Y(x,w.target)))for(let x of w.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&fi(x)?s.add(x):x instanceof Element&&f(x);if(Ne()){for(let x of d)if(!x.isConnected){m.disconnect();break}}}});y.observe(b,{childList:!0,subtree:!0}),h.add(y)}let g={visibleNodes:s,hiddenNodes:l,observe(){m.observe(o,{childList:!0,subtree:!0})},disconnect(){m.disconnect()}};return we.push(g),()=>{if(m.disconnect(),Ne())for(let b of h)b.disconnect();for(let b of l){let y=Ot.get(b);y!=null&&(y===1?(c(b,!1),Ot.delete(b)):Ot.set(b,y-1))}g===we[we.length-1]?(we.pop(),we.length&&we[we.length-1].observe()):we.splice(we.indexOf(g),1)}}function Op(t){let e=we[we.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const Te={top:"top",bottom:"top",left:"left",right:"left"},zn={top:"bottom",bottom:"top",left:"right",right:"left"},Vp={top:"left",left:"top"},Zr={top:"height",left:"width"},yl={width:"totalWidth",height:"totalHeight"},wn={};let Bp=()=>typeof document<"u"?window.visualViewport:null;function pi(t,e){let n=0,r=0,o=0,i=0,s=0,l=0,u={},c=(e?.scale??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let d=document.documentElement;o=d.clientWidth,i=d.clientHeight,n=e?.width??o,r=e?.height??i,u.top=d.scrollTop||t.scrollTop,u.left=d.scrollLeft||t.scrollLeft,e&&(s=Math.max(0,e.pageTop-(u.top??0)),l=Math.max(0,e.pageLeft-(u.left??0)))}else({width:n,height:r,top:s,left:l}=Xt(t,!1)),u.top=t.scrollTop,u.left=t.scrollLeft,o=n,i=r;return pt()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c&&(u.top=0,u.left=0,s=e?.pageTop??0,l=e?.pageLeft??0),{width:n,height:r,totalWidth:o,totalHeight:i,scroll:u,top:s,left:l}}function _p(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function hi(t,e,n,r,o,i,s){let l=o.scroll[t]??0,u=r[Zr[t]],c=s[t]+r.scroll[Te[t]]+i,d=s[t]+r.scroll[Te[t]]+u-i,f=e-l+r.scroll[Te[t]]+s[t]-r[Te[t]],p=e-l+n+r.scroll[Te[t]]+s[t]-r[Te[t]];return fo[0]i||new um({collection:n,disabledKeys:r,disabledBehavior:c,ref:o,collator:u,layoutDelegate:s,orientation:l}),[i,s,n,r,o,u,c,l]),{collectionProps:f}=am({...t,ref:o,selectionManager:e,keyboardDelegate:d});return{listProps:f}}function fm(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...s}=t;!t["aria-label"]&&t["aria-labelledby"];let l=de(t,{labelable:!0}),{listProps:u}=dm({...s,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return su.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:Q(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...u,onKeyDown:c=>{(c.key!=="Escape"||t.shouldUseVirtualFocus)&&u.onKeyDown?.(c)}})}}function pm(t){let{id:e,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:l,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=tn();e=xe(e);let m=k=>{if(k.pointerType==="keyboard"&&Xr(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&o.current){let Z=n.getItemProps(r);p.open(o.current,k,Z.href,Z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(Bt(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(s?va(o.current):l?l():re()!==o.current&&o.current&&et(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),u=u||n.isDisabled(r);let h={};!s&&!u?h={tabIndex:r===n.focusedKey?0:-1,onFocus(k){V(k)===o.current&&n.setFocusedKey(r)}}:u&&(h.onMouseDown=k=>{k.preventDefault()}),a.useEffect(()=>{u&&n.focusedKey===r&&n.setFocusedKey(null)},[n,u,r]);let g=n.isLink(r)&&f==="override",b=c&&t.UNSTABLE_itemBehavior==="action",y=n.isLink(r)&&f!=="selection"&&f!=="none",v=!u&&n.canSelectItem(r)&&!g&&!b,w=(c||y)&&!u,x=w&&(n.selectionBehavior==="replace"?!v:!v||n.isEmpty),F=w&&v&&n.selectionBehavior==="replace",K=x||F,P=a.useRef(null),S=K&&v,I=a.useRef(!1),M=a.useRef(!1),O=n.getItemProps(r),z=k=>{c&&(c(),o.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),y&&o.current&&p.open(o.current,k,O.href,O.routerOptions)},U={ref:o};i?(U.onPressStart=k=>{P.current=k.pointerType,I.current=S,k.pointerType==="keyboard"&&(!K||Bi(k.key))&&m(k)},d?(U.onPressUp=x?void 0:k=>{k.pointerType==="mouse"&&v&&m(k)},U.onPress=x?z:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&v&&m(k)}):U.onPress=k=>{if(x||F&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Vi(k.key))return;z(k)}else k.pointerType!=="keyboard"&&v&&m(k)}):(U.onPressStart=k=>{P.current=k.pointerType,I.current=S,M.current=x,v&&(k.pointerType==="mouse"&&!x||k.pointerType==="keyboard"&&(!w||Bi(k.key)))&&m(k)},U.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&K&&Vi(k.key)||k.pointerType==="mouse"&&M.current)&&(K?z(k):v&&m(k))});let C=im(n.collection);if(h["data-collection"]=C,h["data-key"]=r,U.preventFocusOnPress=s,s&&(U=Q(U,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[k]&&(U[k]=ht(U[k],O[k]));let{pressProps:R,isPressed:H}=on(U),L=F?k=>{P.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),z(k))}:void 0,{longPressProps:q}=So({isDisabled:!S,onLongPress(k){k.pointerType==="touch"&&(m(k),n.setSelectionBehavior("toggle"))}}),T=k=>{P.current==="touch"&&I.current&&k.preventDefault()},A=f!=="none"&&n.isLink(r)?k=>{Be.isOpening||k.preventDefault()}:void 0,j=Q(h,v||x||s&&!u?R:{},S?q:{},{onDoubleClick:L,onDragStartCapture:T,onClick:A,id:e},s?{onMouseDown:k=>k.preventDefault()}:void 0),W=k=>{let Z=k;for(;Z&&Z!==o.current;){let oe=Z.getAttribute("data-collection");if(oe!=null)return oe!==C;Z=Z.parentElement}return lo(k)},ne=j.onPointerDown;j.onPointerDown=k=>{let Z=V(k);if(Z&&Z!==o.current&&W(Z)){k.stopPropagation();return}ne?.(k)};let te=j.onMouseDown;return j.onMouseDown=k=>{let Z=V(k);if(Z&&Z!==o.current&&W(Z)){k.stopPropagation();return}te?.(k)},{itemProps:j,isPressed:H,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:u,allowsSelection:v,hasAction:K}}function Vi(t){return t==="Enter"}function Bi(t){return t===" "}function au(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function hm(t){return mm(t)}function mm(t,e){for(let n of t)return n}function kr(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[..._i(t,e),e],o=[..._i(t,n),n],i=r.slice(0,o.length).findIndex((s,l)=>s!==o[l]);return i!==-1?(e=r[i],n=o[i],e.index-n.index):r.findIndex(s=>s===n)>=0?1:(o.findIndex(s=>s===e)>=0,-1)}function _i(t,e){let n=[],r=e;for(;r?.parentKey!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const Hi=new WeakMap;function bm(t){let e=Hi.get(t);if(e!=null)return e;let n=0,r=o=>{for(let i of o)i.type==="section"?r(au(i,t)):i.type==="item"&&n++};return r(t),Hi.set(t,n),n}function gm(t,e,n){let{id:r,key:o,closeOnSelect:i,shouldCloseOnSelect:s,isVirtualized:l,"aria-haspopup":u,onPressStart:c,onPressUp:d,onPress:f,onPressChange:p,onPressEnd:m,onClick:h,onHoverStart:g,onHoverChange:b,onHoverEnd:y,onKeyDown:v,onKeyUp:w,onFocus:x,onFocusChange:F,onBlur:K,selectionManager:P=e.selectionManager}=t,S=!!u,I=S&&t["aria-expanded"]==="true",M=t.isDisabled??P.isDisabled(o),O=t.isSelected??P.isSelected(o),z=su.get(e),U=e.collection.getItem(o),C=t.onClose||z.onClose,R=tn(),H=()=>{if(!S&&(U?.props?.onAction?U.props.onAction():t.onAction&&t.onAction(o),z.onAction)){let ae=z.onAction;ae(o,U?.value)}},L="menuitem";S||(P.selectionMode==="single"?L="menuitemradio":P.selectionMode==="multiple"&&(L="menuitemcheckbox"));let q=Ye(),T=Ye(),A=Ye(),j={id:r,"aria-disabled":M||void 0,role:L,"aria-label":t["aria-label"],"aria-labelledby":q,"aria-describedby":[t["aria-describedby"],T,A].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":u,"aria-expanded":t["aria-expanded"]};if(P.selectionMode!=="none"&&!S&&(j["aria-checked"]=O),l){let ae=Number(U?.index);j["aria-posinset"]=Number.isNaN(ae)?void 0:ae+1,j["aria-setsize"]=bm(e.collection)}let W=a.useRef(!1),ne=ae=>{p?.(ae),W.current=ae},te=a.useRef(null),k=ae=>{ae.pointerType!=="keyboard"&&(te.current={pointerType:ae.pointerType}),ae.pointerType==="mouse"&&(W.current||ae.target.click()),d?.(ae)},Z=ae=>{h?.(ae),H(),fs(ae,R,U.props.href,U?.props.routerOptions);let yt=te.current?.pointerType==="keyboard"?te.current?.key==="Enter"||P.selectionMode==="none"||P.isLink(o):P.selectionMode!=="multiple"||P.isLink(o);yt=s??i??yt,C&&!S&&yt&&C(),te.current=null},{itemProps:oe,isFocused:ye}=pm({id:r,selectionManager:P,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:G,isPressed:Fe}=on({onPressStart:c,onPress:f,onPressUp:k,onPressChange:ne,onPressEnd:m,isDisabled:M}),{hoverProps:D}=Ue({isDisabled:M,onHoverStart(ae){!At()&&!(I&&u)&&(P.setFocused(!0),P.setFocusedKey(o)),g?.(ae)},onHoverChange:b,onHoverEnd:y}),{keyboardProps:N}=tt({shortcuts:{" ":ae=>{te.current={pointerType:"keyboard",key:" "},V(ae).click(),Ln("keyboard")},Enter:ae=>{te.current={pointerType:"keyboard",key:"Enter"};let yt=V(ae);if(yt.tagName!=="A"){yt.click(),Ln("keyboard");return}return Ln("keyboard"),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:v,onKeyUp:w}),{focusableProps:ie}=nr({onBlur:K,onFocus:x,onFocusChange:F},n),se=de(U?.props);delete se.id;let dn=ds(U?.props);return{menuItemProps:{...j,...Q(se,dn,S?{onFocus:oe.onFocus,"data-collection":oe["data-collection"],"data-key":oe["data-key"]}:oe,G,D,N,ie,z.shouldUseVirtualFocus||S?{onMouseDown:ae=>ae.preventDefault()}:void 0,M?void 0:{onClick:Z}),tabIndex:oe.tabIndex!=null&&I&&!z.shouldUseVirtualFocus?-1:oe.tabIndex},labelProps:{id:q},descriptionProps:{id:T},keyboardShortcutProps:{id:A},isFocused:ye,isFocusVisible:ye&&P.isFocused&&At()&&!I,isSelected:O,isPressed:Fe,isDisabled:M}}function vm(t){let{heading:e,"aria-label":n}=t,r=xe();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const Pn=2,ym=50,$m=1e3,ji=Math.PI/12;function xm(t){let{menuRef:e,submenuRef:n,isOpen:r,isDisabled:o}=t,i=a.useRef(void 0),s=a.useRef(void 0),l=a.useRef(0),u=a.useRef(void 0),c=a.useRef(void 0),d=a.useRef(void 0),f=a.useRef(2),[p,m]=a.useState(!1);Dn({ref:r?n:void 0,onResize:()=>{n.current&&(s.current=n.current.getBoundingClientRect(),d.current=void 0)}});let g=()=>{m(!1),f.current=Pn,i.current=void 0},b=rp(),y=Ce(v=>{p&&v.preventDefault()});a.useEffect(()=>{p&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents=""},[e,p]),J(()=>{let v=n.current,w=e.current;if(o||!v||!r||b!=="pointer"||!w){g();return}s.current=v.getBoundingClientRect();let x=F=>{if(F.pointerType==="touch"||F.pointerType==="pen")return;let K=Date.now();if(K-l.currentH{o-Y;BHo5AN-&2
zV*1mwnX;7rb$BuTa6g_m;3Z`(1g#>Vr?D2&Q9hninlAp-_udB!#h;*puM-BQYLPA#
zO5{GIW8*%$F2;Qp*toAa@Z_Q^?^=5M)r