vendor: 4,532 bytes, line 1
1import{d as Oe,a as xe,c as Ne,u as ie}from"./createLucideIcon-B9FnQU2u.js";import{G as E,R as Un,r as l,j as b,l as wo,c as re,t as Eo,a as Xn}from"./app-rcBkBzmi.js";import{b as _e,c as q,P as Xt,u as Kn,a as So}from"./index-Dcg6HPYz.js";import{P as yt}from"./index-CZ4LbP00.js";import{L as Co}from"./loader-circle-DI7p09Ob.js";const Ro=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Zl=Oe("BookOpen",Ro);const Po=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ql=Oe("ChevronRight",Po);const Ao=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Oo=Oe("CircleCheck",Ao);const No=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],To=Oe("Info",No);const _o=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Jl=Oe("LayoutGrid",_o);const Do=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Io=Oe("OctagonX",Do);const $o=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Mo=Oe("TriangleAlert",$o);const ko=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lo=Oe("X",ko);function jo(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Fo=e=>{switch(e){case"success":return Vo;case"info":return zo;case"warning":return Ho;case"error":return Yo;default:return null}},Bo=Array(12).fill(0),Wo=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},Bo.map((n,r)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Vo=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Ho=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),zo=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Yo=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Uo=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Xo=()=>{const[e,t]=E.useState(document.hidden);return E.useEffect(()=>{const n=()=>{t(document.hidden)};
vendor: 3,879 bytes, line 1
1return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Bt=1;class Ko{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Bt++,a=this.toasts.find(u=>u.id===s),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(u=>u.id===s?(this.publish({...u,...t,id:s,title:r}),{...u,...t,id:s,dismissible:i,title:r}):u):this.addToast({title:r,...o,dismissible:i,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,a;const i=o.then(async d=>{if(a=["resolve",d],E.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(qo(d)&&!d.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!E.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...g})}else if(d instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!E.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...g})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(d):n.success,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!E.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:m,...g})}}).catch(async d=>{if(a=["reject",d],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,p=typeof f=="object"&&!E.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),u=()=>new Promise((d,f)=>i.then(()=>a[0]==="reject"?f(a[1]):d(a[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,n)=>{const r=n?.id||Bt++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const G=new Ko,Go=(e,t)=>{const n=t?.id||Bt++;return G.addToast({title:e,...t,id:n}),n},qo=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Zo=Go,Qo=()=>G.toasts,Jo=()=>G.getActiveToasts(),eu=Object.assign(Zo,{success:G.success,info:G.info,warning:G.warning,error:G.error,custom:G.custom,message:G.message,promise:G.promise,dismiss:G.dismiss,loading:G.loading},{getHistory:Qo,getToasts:Jo});jo
vendor: 4,787 bytes, line 1
1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 1
1left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
1rt(e){return e.label!==void 0}const es=3,ts="24px",ns="16px",gn=4e3,rs=356,os=14,ss=45,is=200;function de(...e){return e.filter(Boolean).join(" ")}function as(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const cs=e=>{var t,n,r,o,s,a,i,u,d;const{invert:f,toast:c,unstyled:m,interacting:p,setHeights:g,visibleToasts:h,heights:v,index:y,toasts:S,exp
vendor: 4,411 bytes, line 1
1anded:x,removeToast:w,defaultRichColors:R,closeButton:P,style:C,cancelButtonStyle:O,actionButtonStyle:k,className:I="",descriptionClassName:M="",duration:F,position:$,gap:L,expandByDefault:z,classNames:A,icons:_,closeButtonAriaLabel:N="Close toast"}=e,[B,H]=E.useState(null),[ue,$e]=E.useState(null),[D,V]=E.useState(!1),[W,K]=E.useState(!1),[te,j]=E.useState(!1),[we,Me]=E.useState(!1),[ke,Ee]=E.useState(!1),[Le,Rt]=E.useState(0),[lo,an]=E.useState(0),Ge=E.useRef(c.duration||F||gn),cn=E.useRef(null),ve=E.useRef(null),uo=y===0,fo=y+1<=h,Z=c.type,je=c.dismissible!==!1,po=c.className||"",mo=c.descriptionClassName||"",et=E.useMemo(()=>v.findIndex(T=>T.toastId===c.id)||0,[v,c.id]),ho=E.useMemo(()=>{var T;return(T=c.closeButton)!=null?T:P},[c.closeButton,P]),ln=E.useMemo(()=>c.duration||F||gn,[c.duration,F]),Pt=E.useRef(0),Fe=E.useRef(0),un=E.useRef(0),Be=E.useRef(null),[go,vo]=$.split("-"),dn=E.useMemo(()=>v.reduce((T,Y,X)=>X>=et?T:T+Y.height,0),[v,et]),fn=Xo(),yo=c.invert||f,At=Z==="loading";Fe.current=E.useMemo(()=>et*L+dn,[et,dn]),E.useEffect(()=>{Ge.current=ln},[ln]),E.useEffect(()=>{V(!0)},[]),E.useEffect(()=>{const T=ve.current;if(T){const Y=T.getBoundingClientRect().height;return an(Y),g(X=>[{toastId:c.id,height:Y,position:c.position},...X]),()=>g(X=>X.filter(Q=>Q.toastId!==c.id))}},[g,c.id]),E.useLayoutEffect(()=>{if(!D)return;const T=ve.current,Y=T.style.height;T.style.height="auto";const X=T.getBoundingClientRect().height;T.style.height=Y,an(X),g(Q=>Q.find(U=>U.toastId===c.id)?Q.map(U=>U.toastId===c.id?{...U,height:X}:U):[{toastId:c.id,height:X,position:c.position},...Q])},[D,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Se=E.useCallback(()=>{K(!0),Rt(Fe.current),g(T=>T.filter(Y=>Y.toastId!==c.id)),setTimeout(()=>{w(c)},is)},[c,w,g,Fe]);E.useEffect(()=>{if(c.promise&&Z==="loading"||c.duration===1/0||c.type==="loading")return;let T;return x||p||fn?(()=>{if(un.current<Pt.current){const Q=new Date().getTime()-Pt.current;Ge.current=Ge.current-Q}un.current=new Date().getTime()})():Ge.current!==1/0&&(Pt.current=new Date().getTime(),T=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Se()},Ge.current)),()=>clearTimeout(T)},[x,p,c,Z,fn,Se]),E.useEffect(()=>{c.delete&&(Se(),c.onDismiss==null||c.onDismiss.call(c,c))},[Se,c.delete]);function bo(){var T;if(_?.loading){var Y;return E.createElement("div",{className:de(A?.loader,c==null||(Y=c.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":Z==="loading"},_.loading)}return E.createElement(Wo,{className:de(A?.loader,c==null||(T=c.classNames)==null?void 0:T.loader),visible:Z==="loading"})}const xo=c.icon||_?.[Z]||Fo(Z);var pn,mn;return E.createElement("li",{tabIndex:0,ref:ve,className:de(I,po,A?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,A?.default,A?.[Z],c==null||(n=c.classNames)==null?void 0:n[Z]),"data-sonner-toast":"","data-rich-colors":(pn=c.richColors)!=null?pn:R,"data-styled":!(c.jsx||c.unstyled||m),"data-mounted":D,"data-promise":!!c.promise,"data-swiped":ke,"data-removed":W,"data-visible":fo,"data-y-position":go,"data-x-position":vo,"data-index":y,"data-front":uo,"data-swiping":te,"data-dismissible":je,"data-type":Z,"data-invert":yo,"data-swipe-out":we,"data-swipe-direction":ue,"data-expanded":!!(x||z&&D),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${W?Le:Fe.current}px`,"--initial-height":z?"auto":`${lo}px`,...C,...c.style},onDragEnd:()=>{j(!1),H(null),Be.current=null},onPointerDown:T=>{T.button!==2&&(At||!je||(cn.current=new Date,Rt(Fe.current),T.target.setPointerCapture(T.pointerId),T.target.tagName!=="BUTTON"&&(j(!0),Be.current={x:T.clientX,y:T.clientY})))},onPointerUp:()=>{var T,Y,X;if(we||!je)return;Be.current=null;const Q=Number(((T=ve.current)==null?void 0:T.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tt=Number(((Y=ve.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),U=new Date().getTime()-((X=cn.current)==null?void 0:X.getTime()),ne=B==="x"?Q:tt,nt=Math.abs(ne)/U;if(Math.abs(ne)>=ss||nt>.11){Rt(Fe.current),c.onDismiss==null||c.onDismiss.call(c,c),$e(B==="x"?Q>0?"right":"left":tt>0?"down":"up"),Se(),Me(!0);return}else{var oe,se;(oe=ve.current)==null||oe.style.setProperty("--swipe-amount-x","0px"),(se=ve.current)==null||se.style.setProperty("--swipe-amount-y","0px")}Ee(!1),j(!1),H(null)},onPointerMove:T=>{var Y,X,Q;
vendor: 9,377 bytes, line 1
1if(!Be.current||!je||((Y=window.getSelection())==null?void 0:Y.toString().length)>0)return;const U=T.clientY-Be.current.y,ne=T.clientX-Be.current.x;var nt;const oe=(nt=e.swipeDirections)!=null?nt:as($);!B&&(Math.abs(ne)>1||Math.abs(U)>1)&&H(Math.abs(ne)>Math.abs(U)?"x":"y");let se={x:0,y:0};const hn=Te=>1/(1.5+Math.abs(Te)/20);if(B==="y"){if(oe.includes("top")||oe.includes("bottom"))if(oe.includes("top")&&U<0||oe.includes("bottom")&&U>0)se.y=U;else{const Te=U*hn(U);se.y=Math.abs(Te)<Math.abs(U)?Te:U}}else if(B==="x"&&(oe.includes("left")||oe.includes("right")))if(oe.includes("left")&&ne<0||oe.includes("right")&&ne>0)se.x=ne;else{const Te=ne*hn(ne);se.x=Math.abs(Te)<Math.abs(ne)?Te:ne}(Math.abs(se.x)>0||Math.abs(se.y)>0)&&Ee(!0),(X=ve.current)==null||X.style.setProperty("--swipe-amount-x",`${se.x}px`),(Q=ve.current)==null||Q.style.setProperty("--swipe-amount-y",`${se.y}px`)}},ho&&!c.jsx&&Z!=="loading"?E.createElement("button",{"aria-label":N,"data-disabled":At,"data-close-button":!0,onClick:At||!je?()=>{}:()=>{Se(),c.onDismiss==null||c.onDismiss.call(c,c)},className:de(A?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(mn=_?.close)!=null?mn:Uo):null,(Z||c.icon||c.promise)&&c.icon!==null&&(_?.[Z]!==null||c.icon)?E.createElement("div",{"data-icon":"",className:de(A?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||bo():null,c.type!=="loading"?xo:null):null,E.createElement("div",{"data-content":"",className:de(A?.content,c==null||(s=c.classNames)==null?void 0:s.content)},E.createElement("div",{"data-title":"",className:de(A?.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?E.createElement("div",{"data-description":"",className:de(M,mo,A?.description,c==null||(i=c.classNames)==null?void 0:i.description)},typeof c.description=="function"?c.description():c.description):null),E.isValidElement(c.cancel)?c.cancel:c.cancel&&rt(c.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||O,onClick:T=>{rt(c.cancel)&&je&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,T),Se())},className:de(A?.cancelButton,c==null||(u=c.classNames)==null?void 0:u.cancelButton)},c.cancel.label):null,E.isValidElement(c.action)?c.action:c.action&&rt(c.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||k,onClick:T=>{rt(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,T),!T.defaultPrevented&&Se())},className:de(A?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function vn(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ls(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,a=s?"--mobile-offset":"--offset",i=s?ns:ts;function u(d){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${a}-${d}`]=i:n[`${a}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):u(i)}),n}const us=E.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:u,className:d,offset:f,mobileOffset:c,theme:m="light",richColors:p,duration:g,style:h,visibleToasts:v=es,toastOptions:y,dir:S=vn(),gap:x=os,icons:w,containerAriaLabel:R="Notifications"}=t,[P,C]=E.useState([]),O=E.useMemo(()=>r?P.filter(D=>D.toasterId===r):P.filter(D=>!D.toasterId),[P,r]),k=E.useMemo(()=>Array.from(new Set([s].concat(O.filter(D=>D.position).map(D=>D.position)))),[O,s]),[I,M]=E.useState([]),[F,$]=E.useState(!1),[L,z]=E.useState(!1),[A,_]=E.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),N=E.useRef(null),B=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=E.useRef(null),ue=E.useRef(!1),$e=E.useCallback(D=>{C(V=>{var W;return(W=V.find(K=>K.id===D.id))!=null&&W.delete||G.dismiss(D.id),V.filter(({id:K})=>K!==D.id)})},[]);return E.useEffect(()=>G.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{C(V=>V.map(W=>W.id===D.id?{...W,delete:!0}:W))});return}setTimeout(()=>{Un.flushSync(()=>{C(V=>{const W=V.findIndex(K=>K.id===D.id);return W!==-1?[...V.slice(0,W),{...V[W],...D},...V.slice(W+1)]:[D,...V]})})})}),[P]),E.useEffect(()=>{if(m!=="system"){_(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_("dark"):_("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:V})=>{_(V?"dark":"light")})}catch{D.addListener(({matches:W})=>{try{_(W?"dark":"light")}catch(K){console.error(K)}})}},[m]),E.useEffect(()=>{P.length<=1&&$(!1)},[P]),E.useEffect(()=>{const D=V=>{var W;if(a.every(j=>V[j]||V.code===j)){var te;$(!0),(te=N.current)==null||te.focus()}V.code==="Escape"&&(document.activeElement===N.current||(W=N.current)!=null&&W.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[a]),E.useEffect(()=>{if(N.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,ue.current=!1)}},[N.current]),E.createElement("section",{ref:n,"aria-label":`${R} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((D,V)=>{var W;const[K,te]=D.split("-");return O.length?E.createElement("ol",{key:D,dir:S==="auto"?vn():S,tabIndex:-1,ref:N,className:d,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":K,"data-x-position":te,style:{"--front-toast-height":`${((W=I[0])==null?void 0:W.height)||0}px`,"--width":`${rs}px`,"--gap":`${x}px`,...h,...ls(f,c)},onBlur:j=>{ue.current&&!j.currentTarget.contains(j.relatedTarget)&&(ue.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||ue.current||(ue.current=!0,H.current=j.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{L||$(!1)},onDragEnd:()=>$(!1),onPointerDown:j=>{j.target instanceof HTMLElement&&j.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},O.filter(j=>!j.position&&V===0||j.position===D).map((j,we)=>{var Me,ke;return E.createElement(cs,{key:j.id,icons:w,index:we,toast:j,defaultRichColors:p,duration:(Me=y?.duration)!=null?Me:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:v,closeButton:(ke=y?.closeButton)!=null?ke:u,interacting:L,position:D,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:$e,toasts:O.filter(Ee=>Ee.position==j.position),heights:I.filter(Ee=>Ee.position==j.position),setHeights:M,expandByDefault:i,gap:x,expanded:F,swipeDirections:t.swipeDirections})})):null}))});function ds(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a);i.displayName=s+"Context";const u=n.length;n=[...n,a];const d=c=>{const{scope:m,children:p,...g}=c,h=m?.[e]?.[u]||i,v=l.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(c,m){const p=m?.[e]?.[u]||i,g=l.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const u=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,fs(o,...t)]}function fs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:d})=>{const c=u(s)[`__scope${d}`];return{...i,...c}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}var Ot={exports:{}},Nt={};var yn;function ps(){if(yn)return Nt;yn=1;var e=wo();function t(c,m){return c===m&&(c!==0||1/c===1/m)||c!==c&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(c,m){var p=m(),g=r({inst:{value:p,getSnapshot:m}}),h=g[0].inst,v=g[1];return s(function(){h.value=p,h.getSnapshot=m,u(h)&&v({inst:h})},[c,p,m]),o(function(){return u(h)&&v({inst:h}),c(function(){u(h)&&v({inst:h})})},[c]),a(p),p}function u(c){var m=c.getSnapshot;c=c.value;try{var p=m();return!n(c,p)}catch{return!0}}function d(c,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Nt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Nt}var bn;function ms(){return bn||(bn=1,Ot.exports=ps()),Ot.exports}var hs=ms();function gs(){return hs.useSyncExternalStore(vs,()=>!0,()=>!1)}function vs(){return()=>{}}var Kt="Avatar",[ys]=ds(Kt),[bs,Gn]=ys(Kt),qn=l.forwardRef((e,t)=>
1{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return b.jsx(bs,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:b.jsx(yt.span,{...r,ref:t})})});qn.displayName=Kt;var Zn="AvatarImage",Qn=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=Gn(Zn,n),i=xs(r,s),u=Re(d=>{o(d),a.onImageLoadingStatusChange(d)});return _e(()=>{i!=="idle"&&u(i)},[i,u]),i==="loaded"?b.jsx(yt.img,{...s,ref:t,src:r}):null});Qn.displayName=Zn;var Jn="AvatarFallback",er=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Gn(Jn,n),[a,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(u)}},[r]),a&&s.imageLoadingStatus!=="loaded"?b.jsx(yt.span,{...o,ref:t}):null});er.displayName=Jn;function xn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function xs(e,{referrerPolicy:t,crossOrigin:n}){const r=gs(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,i]=l.useState(()=>xn(s,e));return _e(()=>{i(xn(s,e))},[s,e]),_e(()=>{const u=c=>()=>{i(c)};if(!s)return;const d=u("loaded"),f=u("error");return s.addEventListener("load",d),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",f)}},[s,n,t]),a}var ws=qn,Es=Qn,Ss=er;function tu(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("relative flex size-8 shrink-0 overflow-hidden rounded-full",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx(ws,{"data-slot":"avatar",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function nu(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("aspect-square size-full",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx(Es,{"data-slot":"avatar-image",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function ru(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("bg-muted flex size-full items-center justify-center rounded-full",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx(Ss,{"data-slot":"avatar-fallback",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function Cs(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),u=n.length;n=[...n,a];const d=c=>{const{scope:m,children:p,...g}=c,h=m?.[e]?.[u]||i,v=l.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(c,m){const p=m?.[e]?.[u]||i,g=l.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const u=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,Rs(o,...t)]}function Rs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:d})=>{const c=u(s)[`__scope${d}`];return{...i,...c}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function wn(e){const t=Ps(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(Os);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ps(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=Ts(o),i=Ns(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var As=Symbol("radix.slottable");function Os(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===As}function Ns(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}
vendor: 23,004 bytes, lines 1-16
1:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ts(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _s(e){const t=e+"CollectionProvider",[n,r]=Cs(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:v,children:y}=h,S=E.useRef(null),x=E.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:x,collectionRef:S,children:y})};a.displayName=t;const i=e+"CollectionSlot",u=wn(i),d=E.forwardRef((h,v)=>{const{scope:y,children:S}=h,x=s(i,y),w=ie(v,x.collectionRef);return b.jsx(u,{ref:w,children:S})});d.displayName=i;const f=e+"CollectionItemSlot",c="data-radix-collection-item",m=wn(f),p=E.forwardRef((h,v)=>{const{scope:y,children:S,...x}=h,w=E.useRef(null),R=ie(v,w),P=s(f,y);return E.useEffect(()=>(P.itemMap.set(w,{ref:w,...x}),()=>{P.itemMap.delete(w)})),b.jsx(m,{[c]:"",ref:R,children:S})});p.displayName=f;function g(h){const v=s(e+"CollectionConsumer",h);return E.useCallback(()=>{const S=v.collectionRef.current;if(!S)return[];const x=Array.from(S.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((P,C)=>x.indexOf(P.ref.current)-x.indexOf(C.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:d,ItemSlot:p},g,r]}var Ds=Eo[" useId ".trim().toString()]||(()=>{}),Is=0;function lt(e){const[t,n]=l.useState(Ds());return _e(()=>{n(r=>r??String(Is++))},[e]),e||(t?`radix-${t}`:"")}var $s=l.createContext(void 0);function Ms(e){const t=l.useContext($s);return e||t||"ltr"}function ks(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,u=l.useMemo(()=>i,Object.values(i));return b.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ls(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),u=n.length;n=[...n,a];const d=c=>{const{scope:m,children:p,...g}=c,h=m?.[e]?.[u]||i,v=l.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(c,m){const p=m?.[e]?.[u]||i,g=l.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const u=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,js(o,...t)]}function js(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:d})=>{const c=u(s)[`__scope${d}`];return{...i,...c}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Fs(e){const t=Bs(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(Vs);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Bs(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=zs(o),i=Hs(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ws=Symbol("radix.slottable");function Vs(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ws}function Hs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ys=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tr=Ys.reduce((e,t)=>{const n=Fs(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Us(e,t){e&&Xn.flushSync(()=>e.dispatchEvent(t))}function Xs(e,t=globalThis?.document){const n=Re(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ks="DismissableLayer",Wt="dismissableLayer.update",Gs="dismissableLayer.pointerDownOutside",qs="dismissableLayer.focusOutside",En,nr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,d=l.useContext(nr),[f,c]=l.useState(null),m=f?.ownerDocument??globalThis?.document,[,p]=l.useState({}),g=ie(t,C=>c(C)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),S=f?h.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=y,R=Js(C=>{const O=C.target,k=[...d.branches].some(I=>I.contains(O));!w||k||(o?.(C),a?.(C),C.defaultPrevented||i?.())},m),P=ei(C=>{const O=C.target;[...d.branches].some(I=>I.contains(O))||(s?.(C),a?.(C),C.defaultPrevented||i?.())},m);return Xs(C=>{S===d.layers.size-1&&(r?.(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},m),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(En=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Sn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=En)}},[f,m,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Sn())},[f,d]),l.useEffect(()=>{const C=()=>p({});return document.addEventListener(Wt,C),()=>document.removeEventListener(Wt,C)},[]),b.jsx(tr.div,{...u,ref:g,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,P.onFocusCapture),onBlurCapture:q(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,R.onPointerDownCapture)})});rr.displayName=Ks;var Zs="DismissableLayerBranch",Qs=l.forwardRef((e,t)=>{const n=l.useContext(nr),r=l.useRef(null),o=ie(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(tr.div,{...e,ref:o})});Qs.displayName=Zs;function Js(e,t=globalThis?.document){const n=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let u=function(){or(Gs,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ei(e,t=globalThis?.document){const n=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&or(qs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sn(){const e=new CustomEvent(Wt);document.dispatchEvent(e)}function or(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Us(o,s):o.dispatchEvent(s)}function ti(e){const t=ni(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(oi);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ni(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=ii(o),i=si(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ri=Symbol("radix.slottable");function oi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ri}function si(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ii(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ai=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ci=ai.reduce((e,t)=>{const n=ti(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tt="focusScope.autoFocusOnMount",_t="focusScope.autoFocusOnUnmount",Cn={bubbles:!1,cancelable:!0},li="FocusScope",sr=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,u]=l.useState(null),d=Re(o),f=Re(s),c=l.useRef(null),m=ie(t,h=>u(h)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(x){if(p.paused||!i)return;const w=x.target;i.contains(w)?c.current=w:Ce(c.current,{select:!0})},v=function(x){if(p.paused||!i)return;const w=x.relatedTarget;w!==null&&(i.contains(w)||Ce(c.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const R of x)R.removedNodes.length>0&&Ce(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const S=new MutationObserver(y);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),S.disconnect()}}},[r,i,p.paused]),l.useEffect(()=>{if(i){Pn.add(p);const h=document.activeElement;if(!i.contains(h)){const y=new CustomEvent(Tt,Cn);i.addEventListener(Tt,d),i.dispatchEvent(y),y.defaultPrevented||(ui(hi(ir(i)),{select:!0}),document.activeElement===h&&Ce(i))}return()=>{i.removeEventListener(Tt,d),setTimeout(()=>{const y=new CustomEvent(_t,Cn);i.addEventListener(_t,f),i.dispatchEvent(y),y.defaultPrevented||Ce(h??document.body,{select:!0}),i.removeEventListener(_t,f),Pn.remove(p)},0)}}},[i,d,f,p]);const g=l.useCallback(h=>{if(!n&&!r||p.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const S=h.currentTarget,[x,w]=di(S);x&&w?!h.shiftKey&&y===w?(h.preventDefault(),n&&Ce(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&Ce(w,{select:!0})):y===S&&h.preventDefault()}},[n,r,p.paused]);return b.jsx(ci.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});sr.displayName=li;function ui(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ce(r,{select:t}),document.activeElement!==n)return}function di(e){const t=ir(e),n=Rn(t,e),r=Rn(t.reverse(),e);return[n,r]}function ir(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rn(e,t){for(const n of e)if(!fi(n,{upTo:t}))return n}function fi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pi(e){return e instanceof HTMLInputElement&&"select"in e}function Ce(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pi(e)&&t&&e.select()}}var Pn=mi();function mi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=An(e,t),e.unshift(t)},remove(t){e=An(e,t),e[0]?.resume()}}}function An(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hi(e){return e.filter(t=>t.tagName!=="A")}function gi(e){const t=vi(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(bi);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function vi(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=wi(o),i=xi(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yi=Symbol("radix.slottable");function bi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yi}function xi(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ei=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Si=Ei.reduce((e,t)=>{const n=gi(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ci="Portal",ar=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=l.useState(!1);_e(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Un.createPortal(b.jsx(Si.div,{...r,ref:t}),a):null});ar.displayName=Ci;function cr(e){const t=Ri(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(Ai);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ri(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=Ni(o),i=Oi(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pi=Symbol("radix.slottable");function Ai(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pi}function Oi(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ni(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ti=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=Ti.reduce((e,t)=>{const n=cr(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Dt=0;function _i(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??On()),document.body.insertAdjacentElement("beforeend",e[1]??On()),Dt++,()=>{Dt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dt--}},[])}function On(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fe=function(){return fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fe.apply(this,arguments)};function lr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Di(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ut="right-scroll-bar-position",dt="width-before-scroll-bar",Ii="with-scroll-bars-hidden",$i="--removed-body-scroll-bar-size";function It(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mi(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ki=typeof window<"u"?l.useLayoutEffect:l.useEffect,Nn=new WeakMap;function Li(e,t){var n=Mi(null,function(r){return e.forEach(function(o){return It(o,r)})});return ki(function(){var r=Nn.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||It(i,null)}),s.forEach(function(i){o.has(i)||It(i,a)})}Nn.set(n,e)},[e]),n}function ji(e){return e}function Fi(e,t){t===void 0&&(t=ji);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Bi(e){e===void 0&&(e={});var t=Fi(null);return t.options=fe({async:!0,ssr:!1},e),t}var ur=function(e){var t=e.sideCar,n=lr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,fe({},n))};ur.isSideCarExport=!0;function Wi(e,t){return e.useMedium(t),ur}var dr=Bi(),$t=function(){},bt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:$t,onWheelCapture:$t,onTouchMoveCapture:$t}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,c=e.shards,m=e.sideCar,p=e.noRelative,g=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,S=y===void 0?"div":y,x=e.gapMode,w=lr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=m,P=Li([n,t]),C=fe(fe({},w),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:dr,removeScrollBar:d,shards:c,noRelative:p,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),a?l.cloneElement(l.Children.only(i),fe(fe({},C),{ref:P})):l.createElement(S,fe({},C,{className:u,ref:P}),i))});bt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bt.classNames={fullWidth:dt,zeroRight:ut};var Vi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vi();return t&&e.setAttribute("nonce",t),e}function zi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ui=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hi())&&(zi(t,n),Yi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xi=function(){var e=Ui();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fr=function(){var e=Xi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ki={left:0,top:0,right:0,gap:0},Mt=function(e){return parseInt(e||"",10)||0},Gi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Mt(n),Mt(r),Mt(o)]},qi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ki;var t=Gi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zi=fr(),ze="data-scroll-locked",Qi=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Ii,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(i,"px ").concat(r,`; 5 } 6 body[`).concat(ze,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(a,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(i,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(ut,` { 20 right: `).concat(i,"px ").concat(r,`; 21 } 22 23 .`).concat(dt,` { 24 margin-right: `).concat(i,"px ").concat(r,`; 25 } 26 27 .`).concat(ut," .").concat(ut,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(dt," .").concat(dt,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(ze,`] { 36 `).concat($i,": ").concat(i,`px; 37 } 38`)},Tn=function(){var e=parseInt(document.body.getAttribute(ze)||"0",10);return isFinite(e)?e:0},Ji=function(){l.useEffect(function(){return document.body.setAttribute(ze,(Tn()+1).toString()),function(){var e=Tn()-1;e<=0?document.body.removeAttribute(ze):document.body.setAttribute(ze,e.toString())}},[])},ea=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ji();var s=l.useMemo(function(){return qi(o)},[o]);return l.createElement(Zi,{styles:Qi(s,!t,o,n?"":"!important")})},Vt=!1;if(typeof window<"u")try{var ot=Object.defineProperty({},"passive",{get:function(){return Vt=!0,!0}});window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch{Vt=!1}var We=Vt?{passive:!1}:!1,ta=function(e){return e.tagName==="TEXTAREA"},pr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ta(e)&&n[t]==="visible")},na=function(e){return pr(e,"overflowY")},ra=function(e){return pr(e,"overflowX")},_n=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=mr(e,r);if(o){var s=hr(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},oa=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},sa=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},mr=function(e,t){return e==="v"?na(t):ra(t)},hr=function(e,t){return e==="v"?oa(t):sa(t)},ia=function(e,t){return e==="h"&&t==="rtl"?-1:1},aa=function(e,t,n,r,o){var s=ia(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,u=t.contains(i),d=!1,f=a>0,c=0,m=0;do{if(!i)break;var p=hr(e,i),g=p[0],h=p[1],v=p[2],y=h-v-s*g;(g||y)&&mr(e,i)&&(c+=y,m+=g);var S=i.parentNode;i=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&Math.abs(c)<1||!f&&Math.abs(m)<1)&&(d=!0),d},st=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dn=function(e){return[e.deltaX,e.deltaY]},In=function(e){return e&&"current"in e?e.current:e},ca=function(e,t){return e[0]===t[0]&&e[1]===t[1]},la=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},ua=0,Ve=[];function da(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(ua++)[0],s=l.useState(fr)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Di([e.lockRef.current],(e.shards||[]).map(In),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var y=st(h),S=n.current,x="deltaX"in h?h.deltaX:S[0]-y[0],w="deltaY"in h?h.deltaY:S[1]-y[1],R,P=h.target,C=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in h&&C==="h"&&P.type==="range")return!1;var O=window.getSelection(),k=O&&O.anchorNode,I=k?k===P||k.contains(P):!1;if(I)return!1;var M=_n(C,P);if(!M)return!0;if(M?R=C:(R=C==="v"?"h":"v",M=_n(C,P)),!M)return!1;if(!r.current&&"changedTouches"in h&&(x||w)&&(r.current=R),!R)return!0;var F=r.current||R;return aa(F,v,h,F==="h"?x:w)},[]),u=l.useCallback(function(h){var v=h;if(!(!Ve.length||Ve[Ve.length-1]!==s)){var y="deltaY"in v?Dn(v):st(v),S=t.current.filter(function(R){return R.name===v.type&&(R.target===v.target||v.target===R.shadowParent)&&ca(R.delta,y)})[0];if(S&&S.should){v.cancelable&&v.preventDefault();return}
vendor: 14,400 bytes, lines 41-45
41if(!S){var x=(a.current.shards||[]).map(In).filter(Boolean).filter(function(R){return R.contains(v.target)}),w=x.length>0?i(v,x[0]):!a.current.noIsolation;w&&v.cancelable&&v.preventDefault()}}},[]),d=l.useCallback(function(h,v,y,S){var x={name:h,delta:v,target:y,should:S,shadowParent:fa(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),f=l.useCallback(function(h){n.current=st(h),r.current=void 0},[]),c=l.useCallback(function(h){d(h.type,Dn(h),h.target,i(h,e.lockRef.current))},[]),m=l.useCallback(function(h){d(h.type,st(h),h.target,i(h,e.lockRef.current))},[]);l.useEffect(function(){return Ve.push(s),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",u,We),document.addEventListener("touchmove",u,We),document.addEventListener("touchstart",f,We),function(){Ve=Ve.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,We),document.removeEventListener("touchmove",u,We),document.removeEventListener("touchstart",f,We)}},[]);var p=e.removeScrollBar,g=e.inert;return l.createElement(l.Fragment,null,g?l.createElement(s,{styles:la(o)}):null,p?l.createElement(ea,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pa=Wi(dr,da);var gr=l.forwardRef(function(e,t){return l.createElement(bt,fe({},e,{ref:t,sideCar:pa}))});gr.classNames=bt.classNames;var ma=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},He=new WeakMap,it=new WeakMap,at={},kt=0,vr=function(e){return e&&(e.host||vr(e.parentNode))},ha=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ga=function(e,t,n,r){var o=ha(t,Array.isArray(e)?e:[e]);at[n]||(at[n]=new WeakMap);var s=at[n],a=[],i=new Set,u=new Set(o),d=function(c){!c||i.has(c)||(i.add(c),d(c.parentNode))};o.forEach(d);var f=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(m){if(i.has(m))f(m);else try{var p=m.getAttribute(r),g=p!==null&&p!=="false",h=(He.get(m)||0)+1,v=(s.get(m)||0)+1;He.set(m,h),s.set(m,v),a.push(m),h===1&&g&&it.set(m,!0),v===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),i.clear(),kt++,function(){a.forEach(function(c){var m=He.get(c)-1,p=s.get(c)-1;He.set(c,m),s.set(c,p),m||(it.has(c)||c.removeAttribute(r),it.delete(c)),p||c.removeAttribute(n)}),kt--,kt||(He=new WeakMap,He=new WeakMap,it=new WeakMap,at={})}},va=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ma(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ga(r,o,n,"aria-hidden")):function(){return null}},xt="Dialog",[yr]=Ls(xt),[ya,le]=yr(xt),br=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),u=l.useRef(null),[d,f]=Kn({prop:r,defaultProp:o??!1,onChange:s,caller:xt});return b.jsx(ya,{scope:t,triggerRef:i,contentRef:u,contentId:lt(),titleId:lt(),descriptionId:lt(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(c=>!c),[f]),modal:a,children:n})};br.displayName=xt;var xr="DialogTrigger",wr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(xr,n),s=ie(t,o.triggerRef);return b.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zt(o.open),...r,ref:s,onClick:q(e.onClick,o.onOpenToggle)})});wr.displayName=xr;var Gt="DialogPortal",[ba,Er]=yr(Gt,{forceMount:void 0}),Sr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=le(Gt,t);return b.jsx(ba,{scope:t,forceMount:n,children:l.Children.map(r,a=>b.jsx(Xt,{present:n||s.open,children:b.jsx(ar,{asChild:!0,container:o,children:a})}))})};Sr.displayName=Gt;var pt="DialogOverlay",Cr=l.forwardRef((e,t)=>{const n=Er(pt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=le(pt,e.__scopeDialog);return s.modal?b.jsx(Xt,{present:r||s.open,children:b.jsx(wa,{...o,ref:t})}):null});Cr.displayName=pt;var xa=cr("DialogOverlay.RemoveScroll"),wa=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(pt,n);return b.jsx(gr,{as:xa,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(Ze.div,{"data-state":Zt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),De="DialogContent",Rr=l.forwardRef((e,t)=>{const n=Er(De,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=le(De,e.__scopeDialog);return b.jsx(Xt,{present:r||s.open,children:s.modal?b.jsx(Ea,{...o,ref:t}):b.jsx(Sa,{...o,ref:t})})});Rr.displayName=De;var Ea=l.forwardRef((e,t)=>{const n=le(De,e.__scopeDialog),r=l.useRef(null),o=ie(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return va(s)},[]),b.jsx(Pr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault())})}),Sa=l.forwardRef((e,t)=>{const n=le(De,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return b.jsx(Pr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Pr=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=le(De,n),u=l.useRef(null),d=ie(t,u);return _i(),b.jsxs(b.Fragment,{children:[b.jsx(sr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:b.jsx(rr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Zt(i.open),...a,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Ca,{titleId:i.titleId}),b.jsx(Pa,{contentRef:u,descriptionId:i.descriptionId})]})]})}),qt="DialogTitle",Ar=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(qt,n);return b.jsx(Ze.h2,{id:o.titleId,...r,ref:t})});Ar.displayName=qt;var Or="DialogDescription",Nr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(Or,n);return b.jsx(Ze.p,{id:o.descriptionId,...r,ref:t})});Nr.displayName=Or;var Tr="DialogClose",_r=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(Tr,n);return b.jsx(Ze.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});_r.displayName=Tr;function Zt(e){return e?"open":"closed"}var Dr="DialogTitleWarning",[ou,Ir]=ks(Dr,{contentName:De,titleName:qt,docsSlug:"dialog"}),Ca=({titleId:e})=>{const t=Ir(Dr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ra="DialogDescriptionWarning",Pa=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ir(Ra).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Aa=br,su=wr,Oa=Sr,Na=Cr,Ta=Rr,_a=Ar,Da=Nr,Ia=_r;const $a=["top","right","bottom","left"],Pe=Math.min,J=Math.max,mt=Math.round,ct=Math.floor,me=e=>({x:e,y:e}),Ma={left:"right",right:"left",bottom:"top",top:"bottom"},ka={start:"end",end:"start"};function Ht(e,t,n){return J(e,Pe(t,n))}function ye(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function Xe(e){return e.split("-")[1]}function Qt(e){return e==="x"?"y":"x"}function Jt(e){return e==="y"?"height":"width"}const La=new Set(["top","bottom"]);function pe(e){return La.has(be(e))?"y":"x"}function en(e){return Qt(pe(e))}function ja(e,t,n){n===void 0&&(n=!1);const r=Xe(e),o=en(e),s=Jt(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ht(a)),[a,ht(a)]}function Fa(e){const t=ht(e);return[zt(e),t,zt(t)]}function zt(e){return e.replace(/start|end/g,t=>ka[t])}const $n=["left","right"],Mn=["right","left"],Ba=["top","bottom"],Wa=["bottom","top"];function Va(e,t,n){switch(e){case"top":case"bottom":return n?t?Mn:$n:t?$n:Mn;case"left":case"right":return t?Ba:Wa;default:return[]}}function Ha(e,t,n,r){const o=Xe(e);let s=Va(be(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(zt)))),s}function ht(e){return e.replace(/left|right|bottom|top/g,t=>Ma[t])}function za(e){return{top:0,right:0,bottom:0,left:0,...e}}function $r(e){return typeof e!="number"?za(e):{top:e,right:e,bottom:e,left:e}}function gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function kn(e,t,n){let{reference:r,floating:o}=e;const s=pe(t),a=en(t),i=Jt(a),u=be(t),d=s==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let p;switch(u){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Xe(t)){case"start":p[a]-=m*(n&&d?-1:1);break;case"end":p[a]+=m*(n&&d?-1:1);break}return p}async function Ya(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:m=!1,padding:p=0}=ye(t,e),g=$r(p),v=i[m?c==="floating"?"reference":"floating":c],y=gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),S=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),w=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},R=gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:S,offsetParent:x,strategy:u}):S);return{top:(y.top-R.top+g.top)/w.y,bottom:(R.bottom-y.bottom+g.bottom)/w.y,left:(y.left-R.left+g.left)/w.x,right:(R.right-y.right+g.right)/w.x}}const Ua=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=kn(d,r,u),m=r,p={},g=0;for(let v=0;v<i.length;v++){var h;const{name:y,fn:S}=i[v],{x,y:w,data:R,reset:P}=await S({x:f,y:c,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:d,platform:{...a,detectOverflow:(h=a.detectOverflow)!=null?h:Ya},elements:{reference:e,floating:t}});f=x??f,c=w??c,p={...p,[y]:{...p[y],...R}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:c}=kn(d,m,u)),v=-1)}return{x:f,y:c,placement:m,strategy:o,middlewareData:p}},Xa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:d,padding:f=0}=ye(e,t)||{};if(d==null)return{};const c=$r(f),m={x:n,y:r},p=en(o),g=Jt(p),h=await a.getDimensions(d),v=p==="y",y=v?"top":"left",S=v?"bottom":"right",x=v?"clientHeight":"clientWidth",w=s.reference[g]+s.reference[p]-m[p]-s.floating[g],R=m[p]-s.reference[p],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=P?P[x]:0;(!C||!await(a.isElement==null?void 0:a.isElement(P)))&&(C=i.floating[x]||s.floating[g]);const O=w/2-R/2,k=C/2-h[g]/2-1,I=Pe(c[y],k),M=Pe(c[S],k),F=I,$=C-h[g]-M,L=C/2-h[g]/2+O,z=Ht(F,L,$),A=!u.arrow&&Xe(o)!=null&&L!==z&&s.reference[g]/2-(L<F?I:M)-h[g]/2<0,_=A?L<F?L-F:L-$:0;return{[p]:m[p]+_,data:{[p]:z,centerOffset:L-z-_,...A&&{alignmentOffset:_}},reset:A}}}),Ka=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=ye(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=be(o),S=pe(i),x=be(i)===i,w=await(u.isRTL==null?void 0:u.isRTL(d.floating)),R=m||(x||!h?[ht(i)]:Fa(i)),P=g!=="none";!m&&P&&R.push(...Ha(i,h,g,w));const C=[i,...R],O=await u.detectOverflow(t,v),k=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&k.push(O[y]),c){const L=ja(o,a,w);k.push(O[L[0]],O[L[1]])}if(I=[...I,{placement:o,overflows:k}],!k.every(L=>L<=0)){var M,F;const L=(((M=s.flip)==null?void 0:M.index)||0)+1,z=C[L];if(z&&(!(c==="alignment"?S!==pe(z):!1)||I.every(N=>pe(N.placement)===S?N.overflows[0]>0:!0)))return{data:{index:L,overflows:I},reset:{placement:z}};let A=(F=I.filter(_=>_.overflows[0]<=0).sort((_,N)=>_.overflows[1]-N.overflows[1])[0])==null?void 0:F.placement;if(!A)switch(p){case"bestFit":{var $;const _=($=I.filter(N=>{if(P){const B=pe(N.placement);return B===S||B==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(B=>B>0).reduce((B,H)=>B+H,0)]).sort((N,B)=>N[1]-B[1])[0])==null?void 0:$[0];_&&(A=_);break}case"initialPlacement":A=i;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Ln(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jn(e){return $a.some(t=>e[t]>=0)}const Ga=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=ye(e,t);
vendor: 1,274 bytes, line 45
45switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=Ln(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:jn(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ln(a,n.floating);return{data:{escapedOffsets:i,escaped:jn(i)}}}default:return{}}}}},Mr=new Set(["left","top"]);async function qa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=be(n),i=Xe(n),u=pe(n)==="y",d=Mr.has(a)?-1:1,f=s&&u?-1:1,c=ye(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&typeof g=="number"&&(p=i==="end"?g*-1:g),u?{x:p*f,y:m*d}:{x:m*d,y:p*f}}const Za=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,u=await qa(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},Qa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:y=>
vendor: 4,430 bytes, line 45
45{let{x:S,y:x}=y;return{x:S,y:x}}},...d}=ye(e,t),f={x:n,y:r},c=await s.detectOverflow(t,d),m=pe(be(o)),p=Qt(m);let g=f[p],h=f[m];if(a){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",x=g+c[y],w=g-c[S];g=Ht(x,g,w)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",x=h+c[y],w=h-c[S];h=Ht(x,h,w)}const v=u.fn({...t,[p]:g,[m]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:a,[m]:i}}}}}},Ja=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=ye(e,t),f={x:n,y:r},c=pe(o),m=Qt(c);let p=f[m],g=f[c];const h=ye(i,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const x=m==="y"?"height":"width",w=s.reference[m]-s.floating[x]+v.mainAxis,R=s.reference[m]+s.reference[x]-v.mainAxis;p<w?p=w:p>R&&(p=R)}if(d){var y,S;const x=m==="y"?"width":"height",w=Mr.has(be(o)),R=s.reference[c]-s.floating[x]+(w&&((y=a.offset)==null?void 0:y[c])||0)+(w?0:v.crossAxis),P=s.reference[c]+s.reference[x]+(w?0:((S=a.offset)==null?void 0:S[c])||0)-(w?v.crossAxis:0);g<R?g=R:g>P&&(g=P)}return{[m]:p,[c]:g}}}},ec=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...d}=ye(e,t),f=await a.detectOverflow(t,d),c=be(o),m=Xe(o),p=pe(o)==="y",{width:g,height:h}=s.floating;let v,y;c==="top"||c==="bottom"?(v=c,y=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=c,v=m==="end"?"top":"bottom");const S=h-f.top-f.bottom,x=g-f.left-f.right,w=Pe(h-f[v],S),R=Pe(g-f[y],x),P=!t.middlewareData.shift;let C=w,O=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=S),P&&!m){const I=J(f.left,0),M=J(f.right,0),F=J(f.top,0),$=J(f.bottom,0);p?O=g-2*(I!==0||M!==0?I+M:J(f.left,f.right)):C=h-2*(F!==0||$!==0?F+$:J(f.top,f.bottom))}await u({...t,availableWidth:O,availableHeight:C});const k=await a.getDimensions(i.floating);return g!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function wt(){return typeof window<"u"}function Ke(e){return kr(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ge(e){var t;return(t=(kr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kr(e){return wt()?e instanceof Node||e instanceof ee(e).Node:!1}function ae(e){return wt()?e instanceof Element||e instanceof ee(e).Element:!1}function he(e){return wt()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function Fn(e){return!wt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const tc=new Set(["inline","contents"]);function Qe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!tc.has(o)}const nc=new Set(["table","td","th"]);function rc(e){return nc.has(Ke(e))}const oc=[":popover-open",":modal"];function Et(e){return oc.some(t=>{try{return e.matches(t)}catch{return!1}})}const sc=["transform","translate","scale","rotate","perspective"],ic=["transform","translate","scale","rotate","perspective","filter"],ac=["paint","layout","strict","content"];function tn(e){const t=nn(),n=ae(e)?ce(e):e;return sc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ic.some(r=>(n.willChange||"").includes(r))||ac.some(r=>(n.contain||"").includes(r))}function cc(e){let t=Ae(e);for(;he(t)&&!Ue(t);){if(tn(t))return t;if(Et(t))return null;t=Ae(t)}return null}function nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lc=new Set(["html","body","#document"]);function Ue(e){return lc.has(Ke(e))}function ce(e){return ee(e).getComputedStyle(e)}function St(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fn(e)&&e.host||ge(e);return Fn(t)?t.host:t}function Lr(e){const t=Ae(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&Qe(t)?t:Lr(t)}function qe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Lr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ee(o);if(s){const i=Yt(a);
vendor: 4,172 bytes, line 45
45return t.concat(a,a.visualViewport||[],Qe(o)?o:[],i&&n?qe(i):[])}return t.concat(o,qe(o,[],n))}function Yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jr(e){const t=ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=he(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=mt(n)!==s||mt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function rn(e){return ae(e)?e:e.contextElement}function Ye(e){const t=rn(e);if(!he(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=jr(t);let a=(s?mt(n.width):n.width)/r,i=(s?mt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const uc=me(0);function Fr(e){const t=ee(e);return!nn()||!t.visualViewport?uc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ee(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=rn(e);let a=me(1);t&&(r?ae(r)&&(a=Ye(r)):a=Ye(e));const i=dc(s,n,r)?Fr(s):me(0);let u=(o.left+i.x)/a.x,d=(o.top+i.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(s){const m=ee(s),p=r&&ae(r)?ee(r):r;let g=m,h=Yt(g);for(;h&&r&&p!==g;){const v=Ye(h),y=h.getBoundingClientRect(),S=ce(h),x=y.left+(h.clientLeft+parseFloat(S.paddingLeft))*v.x,w=y.top+(h.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,c*=v.y,u+=x,d+=w,g=ee(h),h=Yt(g)}}return gt({width:f,height:c,x:u,y:d})}function Ct(e,t){const n=St(e).scrollLeft;return t?t.left+n:Ie(ge(e)).left+n}function Br(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ct(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ge(r),i=t?Et(t.floating):!1;if(r===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},d=me(1);const f=me(0),c=he(r);if((c||!c&&!s)&&((Ke(r)!=="body"||Qe(a))&&(u=St(r)),he(r))){const p=Ie(r);d=Ye(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const m=a&&!c&&!s?Br(a,u):me(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-u.scrollTop*d.y+f.y+m.y}}function pc(e){return Array.from(e.getClientRects())}function mc(e){const t=ge(e),n=St(e),r=e.ownerDocument.body,o=J(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=J(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ct(e);const i=-n.scrollTop;return ce(r).direction==="rtl"&&(a+=J(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Bn=25;function hc(e,t){const n=ee(e),r=ge(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,u=0;if(o){s=o.width,a=o.height;const f=nn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}const d=Ct(r);if(d<=0){const f=r.ownerDocument,c=f.body,m=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-c.clientWidth-p);g<=Bn&&(s-=g)}else d<=Bn&&(s+=d);return{width:s,height:a,x:i,y:u}}const gc=new Set(["absolute","fixed"]);function vc(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=he(e)?Ye(e):me(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:a,height:i,x:u,y:d}}function Wn(e,t,n){let r;if(t==="viewport")r=hc(e,n);else if(t==="document")r=mc(ge(e));else if(ae(t))r=vc(t,n);else{const o=Fr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gt(r)}function Wr(e,t){const n=Ae(e);return n===t||!ae(n)||Ue(n)?!1:ce(n).position==="fixed"||Wr(n,t)}function yc(e,t){const n=t.get(e);if(n)return n;let r=qe(e,[],!1).filter(i=>ae(i)&&Ke(i)!=="body"),o=null;const s=ce(e).position==="fixed";let a=s?Ae(e):e;for(;ae(a)&&!Ue(a);){const i=ce(a),u=tn(a);!u&&i.position==="fixed"&&(o=null),(s?!u&&!o:!u&&i.position==="static"&&!!o&&gc.has(o.position)||Qe(a)&&!u&&Wr(e,a))?r=r.filter(f=>f!==a):o=i,a=Ae(a)}return t.set(e,r),r}function bc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Et(t)?[]:yc(t,this._c):[].concat(n),r],i=a[0],u=a.reduce((d,f)=>{const c=Wn(t,f,o);return d.top=J(c.top,d.top),d.right=Pe(c.right,d.right),d.bottom=Pe(c.bottom,d.bottom),d.left
vendor: 4,737 bytes, line 45
45=J(c.left,d.left),d},Wn(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function xc(e){const{width:t,height:n}=jr(e);return{width:t,height:n}}function wc(e,t,n){const r=he(t),o=ge(t),s=n==="fixed",a=Ie(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=me(0);function d(){u.x=Ct(o)}if(r||!r&&!s)if((Ke(t)!=="body"||Qe(o))&&(i=St(t)),r){const p=Ie(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Br(o,i):me(0),c=a.left+i.scrollLeft-u.x-f.x,m=a.top+i.scrollTop-u.y-f.y;return{x:c,y:m,width:a.width,height:a.height}}function Lt(e){return ce(e).position==="static"}function Vn(e,t){if(!he(e)||ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ge(e)===n&&(n=n.ownerDocument.body),n}function Vr(e,t){const n=ee(e);if(Et(e))return n;if(!he(e)){let o=Ae(e);for(;o&&!Ue(o);){if(ae(o)&&!Lt(o))return o;o=Ae(o)}return n}let r=Vn(e,t);for(;r&&rc(r)&&Lt(r);)r=Vn(r,t);return r&&Ue(r)&&Lt(r)&&!tn(r)?n:r||cc(e)||n}const Ec=async function(e){const t=this.getOffsetParent||Vr,n=this.getDimensions,r=await n(e.floating);return{reference:wc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sc(e){return ce(e).direction==="rtl"}const Cc={convertOffsetParentRelativeRectToViewportRelativeRect:fc,getDocumentElement:ge,getClippingRect:bc,getOffsetParent:Vr,getElementRects:Ec,getClientRects:pc,getDimensions:xc,getScale:Ye,isElement:ae,isRTL:Sc};function Hr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rc(e,t){let n=null,r;const o=ge(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:c,width:m,height:p}=d;if(i||t(),!m||!p)return;const g=ct(c),h=ct(o.clientWidth-(f+m)),v=ct(o.clientHeight-(c+p)),y=ct(f),x={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:J(0,Pe(1,u))||1};let w=!0;function R(P){const C=P[0].intersectionRatio;if(C!==u){if(!w)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!Hr(d,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(R,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,x)}n.observe(e)}return a(!0),s}function Pc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=rn(e),f=o||s?[...d?qe(d):[],...qe(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const c=d&&i?Rc(d,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(y=>{let[S]=y;S&&S.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),d&&!u&&p.observe(d),p.observe(t));let g,h=u?Ie(e):null;u&&v();function v(){const y=Ie(e);h&&!Hr(h,y)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,u&&cancelAnimationFrame(g)}}const Ac=Za,Oc=Qa,Nc=Ka,Tc=ec,_c=Ga,Hn=Xa,Dc=Ja,Ic=(e,t,n)=>{const r=new Map,o={platform:Cc,...n},s={...o.platform,_c:r};return Ua(e,t,{...o,platform:s})};var $c=typeof document<"u",Mc=function(){},ft=$c?l.useLayoutEffect:Mc;function vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!vt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zn(e,t){const n=zr(e);return Math.round(t*n)/n}function jt(e){const t=l.useRef(e);return ft(()=>{t.current=e}),t}function kc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,c]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=l.useState(r);vt(m,r)||p(r);const[g,h]=l.useState(null),[v,y]=l.useState(null),S=l.useCallback(N=>{N!==P.current&&(P.current=N,h(N))},[]),x=l.useCallback(N=>{N!==C.current&&(C.current=N,y(N))},[]),w=s||g,R=a||v,P=l.useRef(null),C=l.useRef(null),O=l.useRef(f),k=u!=null,I=jt(u),M=jt(o),F=jt(d),$=l.useCallback(()=>
vendor: 4,505 bytes, line 45
45{if(!P.current||!C.current)return;const N={placement:t,strategy:n,middleware:m};M.current&&(N.platform=M.current),Ic(P.current,C.current,N).then(B=>{const H={...B,isPositioned:F.current!==!1};L.current&&!vt(O.current,H)&&(O.current=H,Xn.flushSync(()=>{c(H)}))})},[m,t,n,M,F]);ft(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,c(N=>({...N,isPositioned:!1})))},[d]);const L=l.useRef(!1);ft(()=>(L.current=!0,()=>{L.current=!1}),[]),ft(()=>{if(w&&(P.current=w),R&&(C.current=R),w&&R){if(I.current)return I.current(w,R,$);$()}},[w,R,$,I,k]);const z=l.useMemo(()=>({reference:P,floating:C,setReference:S,setFloating:x}),[S,x]),A=l.useMemo(()=>({reference:w,floating:R}),[w,R]),_=l.useMemo(()=>{const N={position:n,left:0,top:0};if(!A.floating)return N;const B=zn(A.floating,f.x),H=zn(A.floating,f.y);return i?{...N,transform:"translate("+B+"px, "+H+"px)",...zr(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:H}},[n,i,A.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:$,refs:z,elements:A,floatingStyles:_}),[f,$,z,A,_])}const Lc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hn({element:r.current,padding:o}).fn(n):{}:r?Hn({element:r,padding:o}).fn(n):{}}}},jc=(e,t)=>({...Ac(e),options:[e,t]}),Fc=(e,t)=>({...Oc(e),options:[e,t]}),Bc=(e,t)=>({...Dc(e),options:[e,t]}),Wc=(e,t)=>({...Nc(e),options:[e,t]}),Vc=(e,t)=>({...Tc(e),options:[e,t]}),Hc=(e,t)=>({..._c(e),options:[e,t]}),zc=(e,t)=>({...Lc(e),options:[e,t]});function Yc(e){const t=Uc(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(Kc);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uc(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=qc(o),i=Gc(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xc=Symbol("radix.slottable");function Kc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xc}function Gc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qc=Zc.reduce((e,t)=>{const n=Yc(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jc="Arrow",Yr=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return b.jsx(Qc.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yr.displayName=Jc;var el=Yr;function tl(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),u=n.length;n=[...n,a];const d=c=>{const{scope:m,children:p,...g}=c,h=m?.[e]?.[u]||i,v=l.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(c,m){const p=m?.[e]?.[u]||i,g=l.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const u=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,nl(o,...t)]}function nl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:d})=>{const c=u(s)[`__scope${d}`];return{...i,...c}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}
vendor: 4,528 bytes, line 45
45),[a])}};return n.scopeName=t.scopeName,n}function rl(e){const t=ol(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(il);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ol(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=cl(o),i=al(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sl=Symbol("radix.slottable");function il(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sl}function al(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function cl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ll=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ur=ll.reduce((e,t)=>{const n=rl(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),on="Popper",[Xr,iu]=tl(on),[ul,Kr]=Xr(on),Gr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return b.jsx(ul,{scope:t,anchor:r,onAnchorChange:o,children:n})};Gr.displayName=on;var qr="PopperAnchor",Zr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Kr(qr,n),a=l.useRef(null),i=ie(t,a),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=r?.current||a.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:b.jsx(Ur.div,{...o,ref:i})});Zr.displayName=qr;var sn="PopperContent",[dl,fl]=Xr(sn),Qr=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,v=Kr(sn,n),[y,S]=l.useState(null),x=ie(t,te=>S(te)),[w,R]=l.useState(null),P=So(w),C=P?.width??0,O=P?.height??0,k=r+(s!=="center"?"-"+s:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],F=M.length>0,$={padding:I,boundary:M.filter(ml),altBoundary:F},{refs:L,floatingStyles:z,placement:A,isPositioned:_,middlewareData:N}=kc({strategy:"fixed",placement:k,whileElementsMounted:(...te)=>Pc(...te,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[jc({mainAxis:o+O,alignmentAxis:a}),u&&Fc({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Bc():void 0,...$}),u&&Wc({...$}),Vc({...$,apply:({elements:te,rects:j,availableWidth:we,availableHeight:Me})=>{const{width:ke,height:Ee}=j.reference,Le=te.floating.style;Le.setProperty("--radix-popper-available-width",`${we}px`),Le.setProperty("--radix-popper-available-height",`${Me}px`),Le.setProperty("--radix-popper-anchor-width",`${ke}px`),Le.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),w&&zc({element:w,padding:i}),hl({arrowWidth:C,arrowHeight:O}),m&&Hc({strategy:"referenceHidden",...$})]}),[B,H]=to(A),ue=Re(g);_e(()=>{_&&ue?.()},[_,ue]);const $e=N.arrow?.x,D=N.arrow?.y,V=N.arrow?.centerOffset!==0,[W,K]=l.useState();return _e(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:_?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(dl,{scope:n,placedSide:B,onArrowChange:R,arrowX:$e,arrowY:D,shouldHideArrow:V,children:b.jsx(Ur.div,{"data-side":B,"data-align":H,...h,ref:x,style:{...h.style,animation:_?void 0:"none"}})})})});Qr.displayName=sn;var Jr="PopperArrow",pl={top:"bottom",right:"left",bottom:"top",left:"r
45ight"},eo=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=fl(Jr,r),a=pl[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(el,{...o,ref:n,style:{...o.style,display:"block"}})})});eo.displayName=Jr;function ml(e){return e!==null}var hl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,f]=to(n),c={start:"0%",center:"50%",end:"100%"}[f],m=(o.arrow?.x??0)+i/2,p=(o.arrow?.y??0)+u/2;let g="",h="";return d==="bottom"?(g=a?c:`${m}px`,h=`${-u}px`):d==="top"?(g=a?c:`${m}px`,h=`${r.floating.height+u}px`):d==="right"?(g=`${-u}px`,h=a?c:`${p}px`):d==="left"&&(g=`${r.floating.width+u}px`,h=a?c:`${p}px`),{data:{x:g,y:h}}}});function to(e){const[t,n="center"]=e.split("-");return[t,n]}var au=Gr,cu=Zr,lu=Qr,uu=eo;function gl(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),u=n.length;n=[...n,a];const d=c=>{const{scope:m,children:p,...g}=c,h=m?.[e]?.[u]||i,v=l.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(c,m){const p=m?.[e]?.[u]||i,g=l.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const u=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,vl(o,...t)]}function vl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:d})=>{const c=u(s)[`__scope${d}`];return{...i,...c}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function yl(e){const t=bl(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),u=i.find(wl);if(u){const d=u.props.children,f=i.map(c=>c===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:c);return b.jsx(t,{...a,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return b.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function bl(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=Sl(o),i=El(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Ne(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xl=Symbol("radix.slottable");function wl(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xl}function El(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Sl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],no=Cl.reduce((e,t)=>{const n=yl(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ft="rovingFocusGroup.onEntryFocus",Rl={bubbles:!1,cancelable:!0},Je="RovingFocusGroup",[Ut,ro,Pl]=_s(Je),[Al,du]=gl(Je,[Pl]),[Ol,Nl]=Al(Je),oo=l.forwardRef((e,t)=>b.jsx(Ut.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Ut.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Tl,{...e,ref:t})})}));oo.displayName=Je;var Tl=l.forwardRef((e,t)=>
45{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...c}=e,m=l.useRef(null),p=ie(t,m),g=Ms(s),[h,v]=Kn({prop:a,defaultProp:i??null,onChange:u,caller:Je}),[y,S]=l.useState(!1),x=Re(d),w=ro(n),R=l.useRef(!1),[P,C]=l.useState(0);return l.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(Ft,x),()=>O.removeEventListener(Ft,x)},[x]),b.jsx(Ol,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(O=>v(O),[v]),onItemShiftTab:l.useCallback(()=>S(!0),[]),onFocusableItemAdd:l.useCallback(()=>C(O=>O+1),[]),onFocusableItemRemove:l.useCallback(()=>C(O=>O-1),[]),children:b.jsx(no.div,{tabIndex:y||P===0?-1:0,"data-orientation":r,...c,ref:p,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{R.current=!0}),onFocus:q(e.onFocus,O=>{const k=!R.current;if(O.target===O.currentTarget&&k&&!y){const I=new CustomEvent(Ft,Rl);if(O.currentTarget.dispatchEvent(I),!I.defaultPrevented){const M=w().filter(A=>A.focusable),F=M.find(A=>A.active),$=M.find(A=>A.id===h),z=[F,$,...M].filter(Boolean).map(A=>A.ref.current);ao(z,f)}}R.current=!1}),onBlur:q(e.onBlur,()=>S(!1))})})}),so="RovingFocusGroupItem",io=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,u=lt(),d=s||u,f=Nl(so,n),c=f.currentTabStopId===d,m=ro(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:h}=f;return l.useEffect(()=>{if(r)return p(),()=>g()},[r,p,g]),b.jsx(Ut.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:b.jsx(no.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:q(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:q(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:q(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Il(v,f.orientation,f.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=m().filter(w=>w.focusable).map(w=>w.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const w=x.indexOf(v.currentTarget);x=f.loop?$l(x,w+1):x.slice(w+1)}setTimeout(()=>ao(x))}}),children:typeof a=="function"?a({isCurrentTabStop:c,hasTabStop:h!=null}):a})})});io.displayName=so;var _l={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Il(e,t,n){const r=Dl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _l[r]}function ao(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $l(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var fu=oo,pu=io,Ml="Separator",Yn="horizontal",kl=["horizontal","vertical"],co=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Yn,...o}=e,s=Ll(r)?r:Yn,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return b.jsx(yt.div,{"data-orientation":s,...i,...o,ref:t})});co.displayName=Ml;function Ll(e){return kl.includes(e)}var jl=co;function mu(e){const t=re.c(12);let n,r,o,s;t[0]!==e?({className:n,orientation:o,decorative:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s):(n=t[1],r=t[2],o=t[3],s=t[4]);const a=o===void 0?"horizontal":o,i=s===void 0?!0:s;let u;t[5]!==n?(u=xe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),t[5]=n,t[6]=u):u=t[6];let d;return t[7]!==i||t[8]!==a||t[9]!==r||t[10]!==u?(d=b.jsx(jl,{"data-slot":"separator-root",decorative:i,orientation:a,className:u,...r}),t[7]=i,t[8]=a,t[9]=r,t[10]=u,t[11]=d):d=t[11],d}function hu(e){const t=re.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=b.jsx(Aa,{"data-slot":"sheet",...n}),t[2]=n,t[3]=r):r=t[3],r}function Fl(e){const t=re.c(4);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=b.jsx(Oa,{"data-slot":"sheet-portal",...n}),t[2]=n,t[3]=r):r=t[3],r}function Bl(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx(Na,{"data-slot":"sheet-overlay",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function gu(e){const t=re.c(17);let n,r,o,s;t[0]!==e?({className:r,children:n,side:s,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s):(n=t[1],r=t[2],o=t[3],s=t[4]);const a=s===void 0?"right":s;let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(Bl,{}),t[5]=i):i=t[5];const u=a==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=a==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",c=a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;t[6]!==r||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==c?(m=xe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",u,d,f,c,r),t[6]=r,t[7]=u,t[8]=d,t[9]=f,t[10]=c,t[11]=m):m=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsxs(Ia,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[b.jsx(Lo,{className:"size-6"}),b.jsx("span",{className:"sr-only",children:"Close"})]}),t[12]=p):p=t[12];let g;return t[13]!==n||t[14]!==o||t[15]!==m?(g=b.jsxs(Fl,{children:[i,b.jsxs(Ta,{"data-slot":"sheet-content",className:m,...o,children:[n,p]})]}),t[13]=n,t[14]=o,t[15]=m,t[16]=g):g=t[16],g}function vu(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("flex flex-col gap-1.5 p-4",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx("div",{"data-slot":"sheet-header",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function yu(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("text-foreground font-semibold",n),t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==r||t[6]!==o?(s=b.jsx(_a,{"data-slot":"sheet-title",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function bu(e){const t=re.c(8);let n,r;t[0]!==e?({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=xe("text-muted-foreground text-sm",n),t[3]=n,t[4]=o):o=t[4];let s;
45return t[5]!==r||t[6]!==o?(s=b.jsx(Da,{"data-slot":"sheet-description",className:o,...r}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}var Wl=(e,t,n,r,o,s,a,i)=>{let u=document.documentElement,d=["light","dark"];function f(p){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",v=h&&s?o.map(y=>s[y]||y):o;h?(u.classList.remove(...v),u.classList.add(s&&s[p]?s[p]:p)):u.setAttribute(g,p)}),c(p)}function c(p){i&&d.includes(p)&&(u.style.colorScheme=p)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)f(r);else try{let p=localStorage.getItem(t)||n,g=a&&p==="system"?m():p;f(g)}catch{}},Vl=l.createContext(void 0),Hl={setTheme:e=>{},themes:[]},zl=()=>{var e;return(e=l.useContext(Vl))!=null?e:Hl};l.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:a,themes:i,nonce:u,scriptProps:d})=>{let f=JSON.stringify([n,t,s,e,i,a,r,o]).slice(1,-1);return l.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${Wl.toString()})(${f})`}})});const xu=e=>{const t=re.c(7);let n;t[0]!==e?({...n}=e,t[0]=e,t[1]=n):n=t[1];const{theme:r}=zl(),s=r===void 0?"system":r;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a={success:b.jsx(Oo,{className:"size-4"}),info:b.jsx(To,{className:"size-4"}),warning:b.jsx(Mo,{className:"size-4"}),error:b.jsx(Io,{className:"size-4"}),loading:b.jsx(Co,{className:"size-4 animate-spin"})},i={"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},t[2]=a,t[3]=i):(a=t[2],i=t[3]);let u;return t[4]!==n||t[5]!==s?(u=b.jsx(us,{theme:s,className:"toaster group",icons:a,style:i,...n}),t[4]=n,t[5]=s,t[6]=u):u=t[6],u};export{nu as A,Zl as B,Oo as C,Da as D,va as E,_i as F,gr as G,sr as H,pu as I,Jl as L,Na as O,Oa as P,fu as R,mu as S,_a as T,Lo as X,lt as a,Ql as b,du as c,ru as d,tu as e,Ta as f,Aa as g,su as h,Ia as i,ar as j,rr as k,lu as l,iu as m,cu as n,uu as o,au as p,hu as q,vu as r,yu as s,eu as t,Ms as u,bu as v,gu as w,xu as x,Re as y,_s as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.