"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1798],{53905:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},9883:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},45367:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},4631:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},22261:function(e,r,t){t.d(r,{aU:function(){return W},$j:function(){return Z},VY:function(){return P},dk:function(){return $},aV:function(){return _},h_:function(){return F},fC:function(){return V},Dx:function(){return T},xz:function(){return I}});var n=t(2265),o=t(56989),i=t(42210),l=t(79515),a=t(85744),s=t(57437);n.forwardRef((e,r)=>{let{children:t,...o}=e,i=n.Children.toArray(t),l=i.find(c);if(l){let e=l.props.children,t=i.map(r=>r!==l?r:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(u,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,t):null})}return(0,s.jsx)(u,{...o,ref:r,children:t})}).displayName="Slot";var u=n.forwardRef((e,r)=>{let{children:t,...o}=e;if(n.isValidElement(t)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref;return n.cloneElement(t,{...function(e,r){let t={...r};for(let n in r){let o=e[n],i=r[n],l=/^on[A-Z]/.test(n);l?o&&i?t[n]=(...e)=>{i(...e),o(...e)}:o&&(t[n]=o):"style"===n?t[n]={...o,...i}:"className"===n&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props),ref:r?(0,i.F)(r,a):a})}return n.Children.count(t)>1?n.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function c(e){return n.isValidElement(e)&&e.type===d}var f="AlertDialog",[p,g]=(0,o.b)(f,[l.p8]),m=(0,l.p8)(),y=e=>{let{__scopeAlertDialog:r,...t}=e,n=m(r);return(0,s.jsx)(l.fC,{...n,...t,modal:!0})};y.displayName=f;var h=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,o=m(t);return(0,s.jsx)(l.xz,{...o,...n,ref:r})});h.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:r,...t}=e,n=m(r);return(0,s.jsx)(l.h_,{...n,...t})};v.displayName="AlertDialogPortal";var x=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,o=m(t);return(0,s.jsx)(l.aV,{...o,...n,ref:r})});x.displayName="AlertDialogOverlay";var j="AlertDialogContent",[D,R]=p(j),w=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,children:o,...u}=e,c=m(t),f=n.useRef(null),p=(0,i.e)(r,f),g=n.useRef(null);return(0,s.jsx)(l.jm,{contentName:j,titleName:b,docsSlug:"alert-dialog",children:(0,s.jsx)(D,{scope:t,cancelRef:g,children:(0,s.jsxs)(l.VY,{role:"alertdialog",...c,...u,ref:p,onOpenAutoFocus:(0,a.M)(u.onOpenAutoFocus,e=>{e.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,s.jsx)(d,{children:o}),(0,s.jsx)(M,{contentRef:f})]})})})});w.displayName=j;var b="AlertDialogTitle",C=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,o=m(t);return(0,s.jsx)(l.Dx,{...o,...n,ref:r})});C.displayName=b;var N="AlertDialogDescription",E=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,o=m(t);return(0,s.jsx)(l.dk,{...o,...n,ref:r})});E.displayName=N;var k=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,o=m(t);return(0,s.jsx)(l.x8,{...o,...n,ref:r})});k.displayName="AlertDialogAction";var A="AlertDialogCancel",O=n.forwardRef((e,r)=>{let{__scopeAlertDialog:t,...n}=e,{cancelRef:o}=R(A,t),a=m(t),u=(0,i.e)(r,o);return(0,s.jsx)(l.x8,{...a,...n,ref:u})});O.displayName=A;var M=({contentRef:e})=>{let r=`\`${j}\` requires a description for the component to be accessible for screen reader users.

You can add a description to the \`${j}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.

Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${j}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.

For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return n.useEffect(()=>{let t=document.getElementById(e.current?.getAttribute("aria-describedby"));t||console.warn(r)},[r,e]),null},V=y,I=h,F=v,_=x,P=w,W=k,Z=O,T=C,$=E},79515:function(e,r,t){t.d(r,{x8:function(){return ea},VY:function(){return eo},dk:function(){return el},aV:function(){return en},h_:function(){return et},fC:function(){return ee},Dx:function(){return ei},xz:function(){return er},jm:function(){return X},p8:function(){return b}});var n=t(2265),o=t(85744),i=t(42210),l=t(56989),a=t(20966),s=t(73763),u=t(79249),d=t(52759),c=t(52730),f=t(85606),p=t(31033),g=t(31244),m=t(73386),y=t(85859),h=t(57437),v=n.forwardRef((e,r)=>{let{children:t,...o}=e,i=n.Children.toArray(t),l=i.find(D);if(l){let e=l.props.children,t=i.map(r=>r!==l?r:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,h.jsx)(x,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,t):null})}return(0,h.jsx)(x,{...o,ref:r,children:t})});v.displayName="Slot";var x=n.forwardRef((e,r)=>{let{children:t,...o}=e;if(n.isValidElement(t)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref;return n.cloneElement(t,{...function(e,r){let t={...r};for(let n in r){let o=e[n],i=r[n],l=/^on[A-Z]/.test(n);l?o&&i?t[n]=(...e)=>{i(...e),o(...e)}:o&&(t[n]=o):"style"===n?t[n]={...o,...i}:"className"===n&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props),ref:r?(0,i.F)(r,a):a})}return n.Children.count(t)>1?n.Children.only(null):null});x.displayName="SlotClone";var j=({children:e})=>(0,h.jsx)(h.Fragment,{children:e});function D(e){return n.isValidElement(e)&&e.type===j}var R="Dialog",[w,b]=(0,l.b)(R),[C,N]=w(R),E=e=>{let{__scopeDialog:r,children:t,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,d=n.useRef(null),c=n.useRef(null),[f=!1,p]=(0,s.T)({prop:o,defaultProp:i,onChange:l});return(0,h.jsx)(C,{scope:r,triggerRef:d,contentRef:c,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:t})};E.displayName=R;var k="DialogTrigger",A=n.forwardRef((e,r)=>{let{__scopeDialog:t,...n}=e,l=N(k,t),a=(0,i.e)(r,l.triggerRef);return(0,h.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":K(l.open),...n,ref:a,onClick:(0,o.M)(e.onClick,l.onOpenToggle)})});A.displayName=k;var O="DialogPortal",[M,V]=w(O,{forceMount:void 0}),I=e=>{let{__scopeDialog:r,forceMount:t,children:o,container:i}=e,l=N(O,r);return(0,h.jsx)(M,{scope:r,forceMount:t,children:n.Children.map(o,e=>(0,h.jsx)(f.z,{present:t||l.open,children:(0,h.jsx)(c.h,{asChild:!0,container:i,children:e})}))})};I.displayName=O;var F="DialogOverlay",_=n.forwardRef((e,r)=>{let t=V(F,e.__scopeDialog),{forceMount:n=t.forceMount,...o}=e,i=N(F,e.__scopeDialog);return i.modal?(0,h.jsx)(f.z,{present:n||i.open,children:(0,h.jsx)(P,{...o,ref:r})}):null});_.displayName=F;var P=n.forwardRef((e,r)=>{let{__scopeDialog:t,...n}=e,o=N(F,t);return(0,h.jsx)(m.Z,{as:v,allowPinchZoom:!0,shards:[o.contentRef],children:(0,h.jsx)(p.WV.div,{"data-state":K(o.open),...n,ref:r,style:{pointerEvents:"auto",...n.style}})})}),W="DialogContent",Z=n.forwardRef((e,r)=>{let t=V(W,e.__scopeDialog),{forceMount:n=t.forceMount,...o}=e,i=N(W,e.__scopeDialog);return(0,h.jsx)(f.z,{present:n||i.open,children:i.modal?(0,h.jsx)(T,{...o,ref:r}):(0,h.jsx)($,{...o,ref:r})})});Z.displayName=W;var T=n.forwardRef((e,r)=>{let t=N(W,e.__scopeDialog),l=n.useRef(null),a=(0,i.e)(r,t.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,y.Ry)(e)},[]),(0,h.jsx)(z,{...e,ref:a,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let r=e.detail.originalEvent,t=0===r.button&&!0===r.ctrlKey,n=2===r.button||t;n&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),$=n.forwardRef((e,r)=>{let t=N(W,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,h.jsx)(z,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(o.current||t.triggerRef.current?.focus(),r.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(o.current=!0,"pointerdown"!==r.detail.originalEvent.type||(i.current=!0));let n=r.target,l=t.triggerRef.current?.contains(n);l&&r.preventDefault(),"focusin"===r.detail.originalEvent.type&&i.current&&r.preventDefault()}})}),z=n.forwardRef((e,r)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,c=N(W,t),f=n.useRef(null),p=(0,i.e)(r,f);return(0,g.EW)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,h.jsx)(u.XB,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":K(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(J,{titleId:c.titleId}),(0,h.jsx)(Q,{contentRef:f,descriptionId:c.descriptionId})]})]})}),S="DialogTitle",B=n.forwardRef((e,r)=>{let{__scopeDialog:t,...n}=e,o=N(S,t);return(0,h.jsx)(p.WV.h2,{id:o.titleId,...n,ref:r})});B.displayName=S;var Y="DialogDescription",q=n.forwardRef((e,r)=>{let{__scopeDialog:t,...n}=e,o=N(Y,t);return(0,h.jsx)(p.WV.p,{id:o.descriptionId,...n,ref:r})});q.displayName=Y;var H="DialogClose",U=n.forwardRef((e,r)=>{let{__scopeDialog:t,...n}=e,i=N(H,t);return(0,h.jsx)(p.WV.button,{type:"button",...n,ref:r,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function K(e){return e?"open":"closed"}U.displayName=H;var L="DialogTitleWarning",[X,G]=(0,l.k)(L,{contentName:W,titleName:S,docsSlug:"dialog"}),J=({titleId:e})=>{let r=G(L),t=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return n.useEffect(()=>{if(e){let r=document.getElementById(e);r||console.error(t)}},[t,e]),null},Q=({contentRef:e,descriptionId:r})=>{let t=G("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${t.contentName}}.`;return n.useEffect(()=>{let t=e.current?.getAttribute("aria-describedby");if(r&&t){let e=document.getElementById(r);e||console.warn(o)}},[o,e,r]),null},ee=E,er=A,et=I,en=_,eo=Z,ei=B,el=q,ea=U}}]);