1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[302],{8302:(e,t,n)=>{n.d(t,{bm:()=>e3,UC:()=>e8,VY:()=>e9,hJ:()=>e4,ZL:()=>e7,bL:()=>e2,hE:()=>e5,l9:()=>e6,G$:()=>e$,Hs:()=>eN});var r,o,a=n(8523),i=n(9266),c=n(7461),u=n(8708),l=n(9840),s=n(4242),d=n(8267),f=n(9689),p=n(5576),v=n(5675),m="focusScope.autoFocusOnMount",h="focusScope.autoFocusOnUnmount",g={bubbles:!1,cancelable:!0},y=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[l,s]=a.useState(null),d=(0,p.c)(o),y=(0,p.c)(i),R=a.useRef(null),x=(0,c.s)(t,e=>s(e)),N=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(N.paused||!l)return;let t=e.target;l.contains(t)?R.current=t:w(R.current,{select:!0})},t=function(e){if(N.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||w(R.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&&w(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,N.paused]),a.useEffect(()=>{if(l){C.add(N);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(m,g);l.addEventListener(m,d),l.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(w(r,{select:t}),document.activeElement!==n)return}(b(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&w(l))}return()=>{l.removeEventListener(m,d),setTimeout(()=>{let t=new CustomEvent(h,g);l.addEventListener(h,y),l.dispatchEvent(t),t.defaultPrevented||w(null!=e?e:document.body,{select:!0}),l.removeEventListener(h,y),C.remove(N)},0)}}},[l,d,y,N]);let S=a.useCallback(e=>{if(!n&&!r||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=b(e);return[E(t,e),E(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&w(a,{select:!0})):(e.preventDefault(),n&&w(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,N.paused]);return(0,v.jsx)(f.sG.div,{tabIndex:-1,...u,ref:x,onKeyDown:S})});function b(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 E(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 w(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()}}y.displayName="FocusScope";var C=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=R(e,t)).unshift(t)},remove(t){var n;null==(n=(e=R(e,t))[0])||n.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var x=n(4677),N=n(6741),S=0,k=null;function A(){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}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function M(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var O=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),T="width-before-scroll-bar";function j(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var I="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,L=new WeakMap;function P(e){return e}var F=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=P),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;
1t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=D({async:!0,ssr:!1},e),o}(),_=function(){},W=a.forwardRef(function(e,t){var n,r,o,i,c=a.useRef(null),u=a.useState({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:_}),l=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,b=e.noIsolation,E=e.inert,w=e.allowPinchZoom,C=e.as,R=e.gapMode,x=M(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(n=[c,t],r=function(e){return n.forEach(function(t){return j(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,I(function(){var e=L.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||j(e,null)}),r.forEach(function(e){t.has(e)||j(e,o)})}L.set(i,n)},[n]),i),S=D(D({},x),l);return a.createElement(a.Fragment,null,m&&a.createElement(g,{sideCar:F,removeScrollBar:v,shards:h,noRelative:y,noIsolation:b,inert:E,setCallbacks:s,allowPinchZoom:!!w,lockRef:c,gapMode:R}),d?a.cloneElement(a.Children.only(f),D(D({},S),{ref:N})):a.createElement(void 0===C?"div":C,D({},S,{className:p,ref:N}),f))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:T,zeroRight:O};var K=function(e){var t=e.sideCar,n=M(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,D({},n))};K.isSideCarExport=!0;var B=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},G=function(){var e=B();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Y=function(){var e=G();return function(t){return e(t.styles,t.dynamic),null}},X={left:0,top:0,right:0,gap:0},Z=function(e){return parseInt(e||"",10)||0},H=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Z(n),Z(r),Z(o)]},U=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return X;var t=H(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])}},q=Y(),z="data-scroll-locked",V=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(z,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(O," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(T," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(O," .").concat(O," {\n right: 0 ").concat(r,";\n }\n \n .").concat(T," .").concat(T," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(z,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},J=function(){var e=parseInt(document.body.getAttribute(z)||"0",10);return isFinite(e)?e:0},$=function(){a.useEffect(function(){return document.body.setAttribute(z,(J()+1).toString()),function(){var e=J()-1;e<=0?document.body.removeAttribute(z):document.body.setAttribute(z,e.toString())}},[])},Q=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;$();var i=a.useMemo(function(){return U(o)},[o]);return a.createElement(q,{styles:V(i,!t,o,n?"":"!important")})},ee=!1;if("undefined"!=typeof window)try{var et=Object.defineProperty({},"passive",{get:function(){return ee=!0,!0}});window.addEventListener("test",et,et),window.removeEventListener("test",et,et)}catch(e){ee=!1}var en=!!ee&&{passive:!1},er=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eo=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ea(e,r)){var o=ei(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ea=function(e,t){return"v"===e?er(t,"overflowY"):er(t,"overflowX")},ei=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ec=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),c=i*r,u=n.target,l=t.contains(u),s=!1,d=c>0,f=0,p=0;
1do{if(!u)break;var v=ei(e,u),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&ea(e,u)&&(f+=h,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&c>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-c>p)&&(s=!0),s},eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},el=function(e){return[e.deltaX,e.deltaY]},es=function(e){return e&&"current"in e?e.current:e},ed=0,ef=[];let ep=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(ed++)[0],i=a.useState(Y)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(es),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var o,a=eu(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var v=eo(d,s);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=eo(d,s)),!v)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=o),!o)return!0;var m=r.current||o;return ec(m,t,e,"h"===m?u:l,!0)},[]),l=a.useCallback(function(e){if(ef.length&&ef[ef.length-1]===i){var n="deltaY"in e?el(e):eu(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(c.current.shards||[]).map(es).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=a.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=a.useCallback(function(e){n.current=eu(e),r.current=void 0},[]),f=a.useCallback(function(t){s(t.type,el(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){s(t.type,eu(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return ef.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,en),document.addEventListener("touchmove",l,en),document.addEventListener("touchstart",d,en),function(){ef=ef.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,en),document.removeEventListener("touchmove",l,en),document.removeEventListener("touchstart",d,en)}},[]);var v=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?a.createElement(Q,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},F.useMedium(r),K);var ev=a.forwardRef(function(e,t){return a.createElement(W,D({},e,{ref:t,sideCar:ep}))});ev.classNames=W.classNames;var em=new WeakMap,eh=new WeakMap,eg={},ey=0,eb=function(e){return e&&(e.host||eb(e.parentNode))},eE=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eb(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eg[n]||(eg[n]=new WeakMap);var a=eg[n],i=[],c=new Set,u=new Set(o),l=function(e){!e||c.has(e)||(c.add(e),l(e.parentNode))};o.forEach(l);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(em.get(e)||0)+1,l=(a.get(e)||0)+1;em.set(e,u),a.set(e,l),i.push(e),1===u&&o&&eh.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
1return s(t),c.clear(),ey++,function(){i.forEach(function(e){var t=em.get(e)-1,o=a.get(e)-1;em.set(e,t),a.set(e,o),t||(eh.has(e)||e.removeAttribute(r),eh.delete(e)),o||e.removeAttribute(n)}),--ey||(em=new WeakMap,em=new WeakMap,eh=new WeakMap,eg={})}},ew=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eE(r,o,n,"aria-hidden")):function(){return null}},eC=n(374),eR="Dialog",[ex,eN]=(0,u.A)(eR),[eS,ek]=ex(eR),eA=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,u=a.useRef(null),d=a.useRef(null),[f,p]=(0,s.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:eR});return(0,v.jsx)(eS,{scope:t,triggerRef:u,contentRef:d,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};eA.displayName=eR;var eD="DialogTrigger",eM=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ek(eD,n),a=(0,c.s)(t,o.triggerRef);return(0,v.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":eV(o.open),...r,ref:a,onClick:(0,i.mK)(e.onClick,o.onOpenToggle)})});eM.displayName=eD;var eO="DialogPortal",[eT,ej]=ex(eO,{forceMount:void 0}),eI=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ek(eO,t);return(0,v.jsx)(eT,{scope:t,forceMount:n,children:a.Children.map(r,e=>(0,v.jsx)(N.C,{present:n||i.open,children:(0,v.jsx)(x.Z,{asChild:!0,container:o,children:e})}))})};eI.displayName=eO;var eL="DialogOverlay",eP=a.forwardRef((e,t)=>{let n=ej(eL,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ek(eL,e.__scopeDialog);return a.modal?(0,v.jsx)(N.C,{present:r||a.open,children:(0,v.jsx)(e_,{...o,ref:t})}):null});eP.displayName=eL;var eF=(0,eC.TL)("DialogOverlay.RemoveScroll"),e_=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ek(eL,n);return(0,v.jsx)(ev,{as:eF,allowPinchZoom:!0,shards:[o.contentRef],children:(0,v.jsx)(f.sG.div,{"data-state":eV(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eW="DialogContent",eK=a.forwardRef((e,t)=>{let n=ej(eW,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ek(eW,e.__scopeDialog);return(0,v.jsx)(N.C,{present:r||a.open,children:a.modal?(0,v.jsx)(eB,{...o,ref:t}):(0,v.jsx)(eG,{...o,ref:t})})});eK.displayName=eW;var eB=a.forwardRef((e,t)=>{let n=ek(eW,e.__scopeDialog),r=a.useRef(null),o=(0,c.s)(t,n.contentRef,r);return a.useEffect(()=>{let e=r.current;if(e)return ew(e)},[]),(0,v.jsx)(eY,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),eG=a.forwardRef((e,t)=>{let n=ek(eW,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return(0,v.jsx)(eY,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let c=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eY=a.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...u}=e,l=ek(eW,n),s=a.useRef(null),f=(0,c.s)(t,s);return a.useEffect(()=>{k||(k={start:A(),end:A()});let{start:e,end:t}=k;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),S++,()=>{1===S&&(null==k||k.start.remove(),null==k||k.end.remove(),k=null),S=Math.max(0,S-1)}},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,v.jsx)(d.qW,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":eV(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(e0,{titleId:l.titleId}),(0,v.jsx)(e1,{contentRef:s,descriptionId:l.descriptionId})]})]})}),eX="DialogTitle",eZ=a.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=ek(eX,n);return(0,v.jsx)(f.sG.h2,{id:o.titleId,...r,ref:t})});eZ.displayName=eX;var eH="DialogDescription",eU=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ek(eH,n);return(0,v.jsx)(f.sG.p,{id:o.descriptionId,...r,ref:t})});eU.displayName=eH;var eq="DialogClose",ez=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ek(eq,n);return(0,v.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function eV(e){return e?"open":"closed"}ez.displayName=eq;var eJ="DialogTitleWarning",[e$,eQ]=(0,u.q)(eJ,{contentName:eW,titleName:eX,docsSlug:"dialog"}),e0=e=>{let{titleId:t}=e,n=eQ(eJ),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 a.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},e1=e=>{let{contentRef:t,descriptionId:n}=e,r=eQ("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return a.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},e2=eA,e6=eM,e7=eI,e4=eP,e8=eK,e5=eZ,e9=eU,e3=ez}}]);
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.