1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6053],{66053:function(e,t,n){let r;n.d(t,{x8:function(){return eC},VY:function(){return ew},dk:function(){return eD},aV:function(){return eh},h_:function(){return eb},fC:function(){return eE},Dx:function(){return eN},xz:function(){return eg}});var o,i=n(2265);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}(...e),e)}var s=n(73966),d=n(99255),c=n(80886),f=n(54887),v=n(98482),p=n(57437),m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?v.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),y=n(26606),E=n(91096),g="dismissableLayer.update",b=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:v,...h}=e,D=i.useContext(b),[C,x]=i.useState(null),O=null!==(r=null==C?void 0:C.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=i.useState({}),T=a(t,e=>x(e)),P=Array.from(D.layers),[I]=[...D.layersWithOutsidePointerEventsDisabled].slice(-1),L=P.indexOf(I),F=C?P.indexOf(C):-1,j=D.layersWithOutsidePointerEventsDisabled.size>0,M=F>=L,A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,y.W)(e),o=i.useRef(!1),u=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){N("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",u.current),u.current=t,n.addEventListener("click",u.current,{once:!0})):t()}else n.removeEventListener("click",u.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",u.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...D.branches].some(e=>e.contains(t));!M||n||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==v||v())},O),S=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,y.W)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&N("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...D.branches].some(e=>e.contains(t))||(null==c||c(e),null==f||f(e),e.defaultPrevented||null==v||v())},O);return(0,E.e)(e=>{F!==D.layers.size-1||(null==s||s(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},O),i.useEffect(()=>{if(C)return l&&(0===D.layersWithOutsidePointerEventsDisabled.size&&(o=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),D.layersWithOutsidePointerEventsDisabled.add(C)),D.layers.add(C),w(),()=>{l&&1===D.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=o)}},[C,O,l,D]),i.useEffect(()=>()=>{C&&(D.layers.delete(C),D.layersWithOutsidePointerEventsDisabled.delete(C),w())},[C,D]),i.useEffect(()=>{let e=()=>R({});return document.addEventListener(g,e),()=>document.removeEventListener(g,e)},[]),(0,p.jsx)(m.div,{...h,ref:T,style:{pointerEvents:j?M?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,S.onFocusCapture),onBlurCapture:u(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,A.onPointerDownCapture)})});function w(){let e=new CustomEvent(g);document.dispatchEvent(e)}function N(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&f.flushSync(()=>i.dispatchEvent(u)):i.dispatchEvent(u)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(b),r=i.useRef(null),o=a(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(m.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var D="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},O=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...l}=e,[s,d]=i.useState(null),c=(0,y.W)(o),f=(0,y.W)(u),v=i.useRef(null),E=a(t,e=>d(e)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?v.current=t:P(v.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||P(v.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&P(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,g.paused]),i.useEffect(()=>{if(s){I.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(D,x);s.addEventListener(D,c),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(P(r,{select:t}),document.activeElement!==n)return}(R(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&P(s))}return()=>{s.removeEventListener(D,c),setTimeout(()=>{let t=new CustomEvent(C,x);s.addEventListener(C,f),s.dispatchEvent(t),t.defaultPrevented||P(null!=e?e:document.body,{select:!0}),s.removeEventListener(C,f),I.remove(g)},0)}}},[s,c,f,g]);let b=i.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=R(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&P(i,{select:!0})):(e.preventDefault(),n&&P(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,p.jsx)(m.div,{tabIndex:-1,...l,ref:E,onKeyDown:b})});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function P(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var I=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=L(r,e)).unshift(e)},remove(e){var t;null===(t=(r=L(r,e))[0])||void 0===t||t.resume()}});function L(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var F=n(61188),j=i.forwardRef((e,t)=>{var n,r;let{container:o,...u}=e,[l,a]=i.useState(!1);(0,F.b)(()=>a(!0),[]);let s=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?f.createPortal((0,p.jsx)(m.div,{...u,ref:t}),s):null});j.displayName="Portal";var M=e=>{var t,n;let r,o;let{present:u,children:l}=e,s=function(e){var t,n;let[r,o]=i.useState(),u=i.useRef({}),l=i.useRef(e),a=i.useRef("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=A(u.current);a.current="mounted"===s?e:"none"},[s]),(0,F.b)(()=>{let t=u.current,n=l.current;if(n!==e){let r=a.current,o=A(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,F.b)(()=>
1{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=A(u.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(a.current=A(u.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{e&&(u.current=getComputedStyle(e)),o(e)},[])}}(u),d="function"==typeof l?l({present:s.isPresent}):i.Children.only(l),c=a(s.ref,(r=null===(t=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?d.ref:(r=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof l||s.isPresent?i.cloneElement(d,{ref:c}):null};function A(e){return(null==e?void 0:e.animationName)||"none"}M.displayName="Presence";var S=n(86097),_=n(99157),W=n(5478),k="Dialog",[U,K]=(0,s.b)(k),[B,z]=U(k),V=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:u,modal:l=!0}=e,a=i.useRef(null),s=i.useRef(null),[f=!1,v]=(0,c.T)({prop:r,defaultProp:o,onChange:u});return(0,p.jsx)(B,{scope:t,triggerRef:a,contentRef:s,contentId:(0,d.M)(),titleId:(0,d.M)(),descriptionId:(0,d.M)(),open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(e=>!e),[v]),modal:l,children:n})};V.displayName=k;var q="DialogTrigger",H=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(q,n),i=a(t,o.triggerRef);return(0,p.jsx)(m.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ec(o.open),...r,ref:i,onClick:u(e.onClick,o.onOpenToggle)})});H.displayName=q;var Z="DialogPortal",[Y,$]=U(Z,{forceMount:void 0}),G=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,u=z(Z,t);return(0,p.jsx)(Y,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,p.jsx)(M,{present:n||u.open,children:(0,p.jsx)(j,{asChild:!0,container:o,children:e})}))})};G.displayName=Z;var J="DialogOverlay",Q=i.forwardRef((e,t)=>{let n=$(J,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(J,e.__scopeDialog);return i.modal?(0,p.jsx)(M,{present:r||i.open,children:(0,p.jsx)(X,{...o,ref:t})}):null});Q.displayName=J;var X=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(J,n);return(0,p.jsx)(_.Z,{as:v.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,p.jsx)(m.div,{"data-state":ec(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ee="DialogContent",et=i.forwardRef((e,t)=>{let n=$(ee,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(ee,e.__scopeDialog);return(0,p.jsx)(M,{present:r||i.open,children:i.modal?(0,p.jsx)(en,{...o,ref:t}):(0,p.jsx)(er,{...o,ref:t})})});et.displayName=ee;var en=i.forwardRef((e,t)=>{let n=z(ee,e.__scopeDialog),r=i.useRef(null),o=a(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,W.Ry)(e)},[]),(0,p.jsx)(eo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault())})}),er=i.forwardRef((e,t)=>{let n=z(ee,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,p.jsx)(eo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,u;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(u=n.triggerRef.current)||void 0===u||u.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,u;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(u=n.triggerRef.current)||void 0===u?void 0:u.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eo=i.forwardRef((e,t)=>
1{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...l}=e,s=z(ee,n),d=i.useRef(null),c=a(t,d);return(0,S.EW)(),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:(0,p.jsx)(h,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ec(s.open),...l,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(em,{titleId:s.titleId}),(0,p.jsx)(ey,{contentRef:d,descriptionId:s.descriptionId})]})]})}),ei="DialogTitle",eu=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(ei,n);return(0,p.jsx)(m.h2,{id:o.titleId,...r,ref:t})});eu.displayName=ei;var el="DialogDescription",ea=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(el,n);return(0,p.jsx)(m.p,{id:o.descriptionId,...r,ref:t})});ea.displayName=el;var es="DialogClose",ed=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(es,n);return(0,p.jsx)(m.button,{type:"button",...r,ref:t,onClick:u(e.onClick,()=>o.onOpenChange(!1))})});function ec(e){return e?"open":"closed"}ed.displayName=es;var ef="DialogTitleWarning",[ev,ep]=(0,s.k)(ef,{contentName:ee,titleName:ei,docsSlug:"dialog"}),em=e=>{let{titleId:t}=e,n=ep(ef),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return i.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},ey=e=>{let{contentRef:t,descriptionId:n}=e,r=ep("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return i.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},eE=V,eg=H,eb=G,eh=Q,ew=et,eN=eu,eD=ea,eC=ed},86097:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(2265),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:u()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:u()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function u(){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}}}]);
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.