1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61158],{57253:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(2193),o=n(33302),i=n(68741),s=e=>{var t;let n,s,{present:u,children:l}=e,d=function(e){var t,n;let[o,s]=r.useState(),u=r.useRef(null),l=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=a(u.current);d.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let t=u.current,n=l.current;if(n!==e){let r=d.current,o=a(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,i.N)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=a(u.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(f("ANIMATION_END"),!l.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(d.current=a(u.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,s(e)},[])}}(u),c="function"==typeof l?l({present:d.isPresent}):r.Children.only(l),f=(0,o.s)(d.ref,(t=c,(s=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(s=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof l||d.isPresent?r.cloneElement(c,{ref:f}):null};function a(e){return e?.animationName||"none"}s.displayName="Presence"},61158:(e,t,n)=>{n.d(t,{UC:()=>en,VY:()=>eo,ZL:()=>ee,bL:()=>Q,bm:()=>ei,hE:()=>er,hJ:()=>et,l9:()=>X});var r=n(2193),o=n(75225),i=n(33302),s=n(70476),a=n(3693),u=n(92417),l=n(69207),d=n(77756),c=n(78897),f=n(57253),p=n(93767),m=n(72407),v=n(42033),g=n(16501),y=n(39662),E=n(47477),b="Dialog",[h,w]=(0,s.A)(b),[D,C]=h(b),O=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,d=r.useRef(null),c=r.useRef(null),[f,p]=(0,u.i)({prop:o,defaultProp:i??!1,onChange:s,caller:b});return(0,E.jsx)(D,{scope:t,triggerRef:d,contentRef:c,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};O.displayName=b;var N="DialogTrigger",x=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,s=C(N,n),a=(0,i.s)(t,s.triggerRef);return(0,E.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":z(s.open),...r,ref:a,onClick:(0,o.mK)(e.onClick,s.onOpenToggle)})});x.displayName=N;var R="DialogPortal",[P,j]=h(R,{forceMount:void 0}),I=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,s=C(R,t);return(0,E.jsx)(P,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,E.jsx)(f.C,{present:n||s.open,children:(0,E.jsx)(c.Z,{asChild:!0,container:i,children:e})}))})};I.displayName=R;var T="DialogOverlay",A=r.forwardRef((e,t)=>{let n=j(T,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(T,e.__scopeDialog);return i.modal?(0,E.jsx)(f.C,{present:r||i.open,children:(0,E.jsx)(F,{...o,ref:t})}):null});A.displayName=T;var L=(0,y.TL)("DialogOverlay.RemoveScroll"),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(T,n);return(0,E.jsx)(v.A,{as:L,allowPinchZoom:!0,shards:[o.contentRef],children:(0,E.jsx)(p.sG.div,{"data-state":z(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),_="DialogContent",M=r.forwardRef((e,t)=>{let n=j(_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(_,e.__scopeDialog);return(0,E.jsx)(f.C,{present:r||i.open,children:i.modal?(0,E.jsx)(S,{...o,ref:t}):(0,E.jsx)(W,{...o,ref:t})})});M.displayName=_;var S=r.forwardRef((e,t)=>
1{let n=C(_,e.__scopeDialog),s=r.useRef(null),a=(0,i.s)(t,n.contentRef,s);return r.useEffect(()=>{let e=s.current;if(e)return(0,g.Eq)(e)},[]),(0,E.jsx)(k,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),W=r.forwardRef((e,t)=>{let n=C(_,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,E.jsx)(k,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),k=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,...u}=e,c=C(_,n),f=r.useRef(null),p=(0,i.s)(t,f);return(0,m.Oh)(),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,E.jsx)(l.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":z(c.open),...u,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(J,{titleId:c.titleId}),(0,E.jsx)(Y,{contentRef:f,descriptionId:c.descriptionId})]})]})}),U="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(U,n);return(0,E.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});B.displayName=U;var K="DialogDescription",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(K,n);return(0,E.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});q.displayName=K;var G="DialogClose",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(G,n);return(0,E.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function z(e){return e?"open":"closed"}$.displayName=G;var V="DialogTitleWarning",[Z,H]=(0,s.q)(V,{contentName:_,titleName:U,docsSlug:"dialog"}),J=({titleId:e})=>{let t=H(V),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{e&&document.getElementById(e)},[n,e]),null},Y=({contentRef:e,descriptionId:t})=>{let n=H("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&document.getElementById(t)},[o,e,t]),null},Q=O,X=x,ee=I,et=A,en=M,er=B,eo=q,ei=$},69207:(e,t,n)=>{n.d(t,{qW:()=>p});var r,o=n(2193),i=n(75225),s=n(93767),a=n(33302),u=n(8841),l=n(25333),d=n(47477),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:E,onDismiss:b,...h}=e,w=o.useContext(f),[D,C]=o.useState(null),O=D?.ownerDocument??globalThis?.document,[,N]=o.useState({}),x=(0,a.s)(t,e=>C(e)),R=Array.from(w.layers),[P]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),j=R.indexOf(P),I=D?R.indexOf(D):-1,T=w.layersWithOutsidePointerEventsDisabled.size>0,A=I>=j,L=function(e,t=globalThis?.document){let n=(0,u.c)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){v("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));A&&!n&&(g?.(e),E?.(e),e.defaultPrevented||b?.())},O),F=function(e,t=globalThis?.document){let n=(0,u.c)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&v("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(y?.(e),E?.(e),e.defaultPrevented||b?.())},O);return(0,l.U)(e=>{I===w.layers.size-1&&(p?.(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},O),o.useEffect(()=>{if(D)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(D)),w.layers.add(D),m(),()=>{n&&1===w.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=r)}},[D,O,n,w]),o.useEffect(()=>()=>{D&&(w.layers.delete(D),w.layersWithOutsidePointerEventsDisabled.delete(D),m())},[D,w]),o.useEffect(()=>{let e=()=>N({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(s.sG.div,{...h,ref:x,style:{pointerEvents:T?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,L.onPointerDownCapture)})});function m(){let e=new CustomEvent(c);document.dispatchEvent(e)}function v(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,s.hO)(o,i):o.dispatchEvent(i)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>
5{let n=o.useContext(f),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(s.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},72407:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(2193),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s()),document.body.insertAdjacentElement("beforeend",e[1]??s()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function s(){let 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}},75225:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"u">typeof window&&window.document&&window.document.createElement}}]);
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.