1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7254],{1671:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},1817:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},3276:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},3388:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},8336:function(e,t,n){let r;n.d(t,{x8:function(){return to},VY:function(){return tt},dk:function(){return tr},aV:function(){return te},h_:function(){return e4},fC:function(){return e7},Dx:function(){return tn},xz:function(){return e9}});var o,a,i,u,c,l,d,s=n(2265),f=n(6741),p=n(8575),v=n(3966),m=n(9255),h=n(886),g=n(5278),y=n(2912),b=n(6606),w=n(7437),E="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",x={bubbles:!1,cancelable:!0},R=s.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,c]=s.useState(null),l=(0,b.W)(o),d=(0,b.W)(a),f=s.useRef(null),v=(0,p.e)(t,e=>c(e)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?f.current=t:M(f.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||M(f.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&&M(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),s.useEffect(()=>{if(u){k.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(E,x);u.addEventListener(E,l),u.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(M(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(u))}return()=>{u.removeEventListener(E,l),setTimeout(()=>{let t=new CustomEvent(C,x);u.addEventListener(C,d),u.dispatchEvent(t),t.defaultPrevented||M(null!=e?e:document.body,{select:!0}),u.removeEventListener(C,d),k.remove(m)},0)}}},[u,l,d,m]);let h=s.useCallback(e=>{if(!n&&!r||m.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=S(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&M(a,{select:!0})):(e.preventDefault(),n&&M(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,w.jsx)(y.WV.div,{tabIndex:-1,...i,ref:v,onKeyDown:h})});function S(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 N(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 M(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()}}R.displayName="FocusScope";var k=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=j(r,e)).unshift(e)},remove(e){var t;null===(t=(r=j(r,e))[0])||void 0===t||t.resume()}});function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var D=n(3832),A=n(1599),O=0;function I(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var T=function(){return(T=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 P(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}"function"==typeof SuppressedError&&SuppressedError;var L="right-scroll-bar-position",F="width-before-scroll-bar";function W(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var _="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,Z=new WeakMap,B=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],u=!1,c={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,u);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){u=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=T({async:!0,ssr:!1},o),c),V=function(){},K=s.forwardRef(function(e,t){var n,r,o,a,i=s.useRef(null),u=s.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),c=u[0],l=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,w=e.inert,E=e.allowPinchZoom,C=e.as,x=e.gapMode,R=P(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[i,t],r=function(e){return n.forEach(function(t){return W(t,e)})}
1,(o=(0,s.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,a=o.facade,_(function(){var e=Z.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||W(e,null)}),r.forEach(function(e){t.has(e)||W(e,o)})}Z.set(a,n)},[n]),a),N=T(T({},R),c);return s.createElement(s.Fragment,null,m&&s.createElement(g,{sideCar:B,removeScrollBar:v,shards:h,noRelative:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!E,lockRef:i,gapMode:x}),d?s.cloneElement(s.Children.only(f),T(T({},N),{ref:S})):s.createElement(void 0===C?"div":C,T({},N,{className:p,ref:S}),f))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:F,zeroRight:L};var z=function(e){var t=e.sideCar,n=P(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 s.createElement(r,T({},n))};z.isSideCarExport=!0;var X=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=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y=function(){var e=X();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},H=function(){var e=Y();return function(t){return e(t.styles,t.dynamic),null}},U={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},$=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[q(n),q(r),q(o)]},G=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return U;var t=$(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])}},J=H(),Q="data-scroll-locked",ee=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(Q,"] {\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(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(L," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(F," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(L," .").concat(L," {\n right: 0 ").concat(r,";\n }\n \n .").concat(F," .").concat(F," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Q,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},et=function(){var e=parseInt(document.body.getAttribute(Q)||"0",10);return isFinite(e)?e:0},en=function(){s.useEffect(function(){return document.body.setAttribute(Q,(et()+1).toString()),function(){var e=et()-1;e<=0?document.body.removeAttribute(Q):document.body.setAttribute(Q,e.toString())}},[])},er=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;en();var a=s.useMemo(function(){return G(o)},[o]);return s.createElement(J,{styles:ee(a,!t,o,n?"":"!important")})},eo=!1;if("undefined"!=typeof window)try{var ea=Object.defineProperty({},"passive",{get:function(){return eo=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch(e){eo=!1}var ei=!!eo&&{passive:!1},eu=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])},ec=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),el(e,r)){var o=ed(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},el=function(e,t){return"v"===e?eu(t,"overflowY"):eu(t,"overflowX")},ed=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},es=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,c=n.target,l=t.contains(c),d=!1,s=u>0,f=0,p=0;
1do{if(!c)break;var v=ed(e,c),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&el(e,c)&&(f+=h,p+=m);var g=c.parentNode;c=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return s&&(o&&1>Math.abs(f)||!o&&u>f)?d=!0:!s&&(o&&1>Math.abs(p)||!o&&-u>p)&&(d=!0),d},ef=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ep=function(e){return[e.deltaX,e.deltaY]},ev=function(e){return e&&"current"in e?e.current:e},em=0,eh=[],eg=(l=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(em++)[0],a=s.useState(H)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.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(ev),!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=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=ef(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-a[0],l="deltaY"in e?e.deltaY:u[1]-a[1],d=e.target,s=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var v=ec(s,d);if(!v)return!0;if(v?o=s:(o="v"===s?"h":"v",v=ec(s,d)),!v)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var m=r.current||o;return es(m,t,e,"h"===m?c:l,!0)},[]),c=s.useCallback(function(e){if(eh.length&&eh[eh.length-1]===a){var n="deltaY"in e?ep(e):ef(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(ev).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=s.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=s.useCallback(function(e){n.current=ef(e),r.current=void 0},[]),f=s.useCallback(function(t){l(t.type,ep(t),t.target,u(t,e.lockRef.current))},[]),p=s.useCallback(function(t){l(t.type,ef(t),t.target,u(t,e.lockRef.current))},[]);s.useEffect(function(){return eh.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ei),document.addEventListener("touchmove",c,ei),document.addEventListener("touchstart",d,ei),function(){eh=eh.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,ei),document.removeEventListener("touchmove",c,ei),document.removeEventListener("touchstart",d,ei)}},[]);var v=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?s.createElement(er,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},B.useMedium(l),z),ey=s.forwardRef(function(e,t){return s.createElement(K,T({},e,{ref:t,sideCar:eg}))});ey.classNames=K.classNames;var eb=new WeakMap,ew=new WeakMap,eE={},eC=0,ex=function(e){return e&&(e.host||ex(e.parentNode))},eR=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ex(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});eE[n]||(eE[n]=new WeakMap);var a=eE[n],i=[],u=new Set,c=new Set(o),l=function(e){!e||u.has(e)||(u.add(e),l(e.parentNode))};o.forEach(l);var d=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(eb.get(e)||0)+1,l=(a.get(e)||0)+1;eb.set(e,c),a.set(e,l),i.push(e),1===c&&o&&ew.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 d(t),u.clear(),eC++,function(){i.forEach(function(e){var t=eb.get(e)-1,o=a.get(e)-1;eb.set(e,t),a.set(e,o),t||(ew.has(e)||e.removeAttribute(r),ew.delete(e)),o||e.removeAttribute(n)}),--eC||(eb=new WeakMap,eb=new WeakMap,ew=new WeakMap,eE={})}},eS=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"))),eR(r,o,n,"aria-hidden")):function(){return null}},eN=Symbol("radix.slottable");function eM(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eN}var ek="Dialog",[ej,eD]=(0,v.b)(ek),[eA,eO]=ej(ek),eI=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,u=s.useRef(null),c=s.useRef(null),[l,d]=(0,h.T)({prop:r,defaultProp:null!=o&&o,onChange:a,caller:ek});return(0,w.jsx)(eA,{scope:t,triggerRef:u,contentRef:c,contentId:(0,m.M)(),titleId:(0,m.M)(),descriptionId:(0,m.M)(),open:l,onOpenChange:d,onOpenToggle:s.useCallback(()=>d(e=>!e),[d]),modal:i,children:n})};eI.displayName=ek;var eT="DialogTrigger",eP=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eO(eT,n),a=(0,p.e)(t,o.triggerRef);return(0,w.jsx)(y.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e1(o.open),...r,ref:a,onClick:(0,f.Mj)(e.onClick,o.onOpenToggle)})});eP.displayName=eT;var eL="DialogPortal",[eF,eW]=ej(eL,{forceMount:void 0}),e_=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eO(eL,t);return(0,w.jsx)(eF,{scope:t,forceMount:n,children:s.Children.map(r,e=>(0,w.jsx)(A.z,{present:n||a.open,children:(0,w.jsx)(D.h,{asChild:!0,container:o,children:e})}))})};e_.displayName=eL;var eZ="DialogOverlay",eB=s.forwardRef((e,t)=>{let n=eW(eZ,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eO(eZ,e.__scopeDialog);return a.modal?(0,w.jsx)(A.z,{present:r||a.open,children:(0,w.jsx)(eK,{...o,ref:t})}):null});eB.displayName=eZ;var eV=function(e){let t=function(e){let t=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(s.isValidElement(n)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,i=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(i.ref=t?(0,p.F)(t,a):a),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=s.forwardRef((e,n)=>{let{children:r,...o}=e,a=s.Children.toArray(r),i=a.find(eM);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,w.jsx)(t,{...o,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,w.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("DialogOverlay.RemoveScroll"),eK=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eO(eZ,n);return(0,w.jsx)(ey,{as:eV,allowPinchZoom:!0,shards:[o.contentRef],children:(0,w.jsx)(y.WV.div,{"data-state":e1(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ez="DialogContent",eX=s.forwardRef((e,t)=>{let n=eW(ez,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eO(ez,e.__scopeDialog);return(0,w.jsx)(A.z,{present:r||a.open,children:a.modal?(0,w.jsx)(eY,{...o,ref:t}):(0,w.jsx)(eH,{...o,ref:t})})});eX.displayName=ez;var eY=s.forwardRef((e,t)=>{let n=eO(ez,e.__scopeDialog),r=s.useRef(null),o=(0,p.e)(t,n.contentRef,r);return s.useEffect(()=>{let e=r.current;if(e)return eS(e)},[]),(0,w.jsx)(eU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,f.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,f.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,f.Mj)(e.onFocusOutside,e=>e.preventDefault())})}),eH=s.forwardRef((e,t)=>
1{let n=eO(ez,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return(0,w.jsx)(eU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eU=s.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,u=eO(ez,n),c=s.useRef(null),l=(0,p.e)(t,c);return s.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:I()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:I()),O++,()=>{1===O&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),O--}},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(R,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,w.jsx)(g.XB,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e1(u.open),...i,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(e6,{titleId:u.titleId}),(0,w.jsx)(e8,{contentRef:c,descriptionId:u.descriptionId})]})]})}),eq="DialogTitle",e$=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eO(eq,n);return(0,w.jsx)(y.WV.h2,{id:o.titleId,...r,ref:t})});e$.displayName=eq;var eG="DialogDescription",eJ=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eO(eG,n);return(0,w.jsx)(y.WV.p,{id:o.descriptionId,...r,ref:t})});eJ.displayName=eG;var eQ="DialogClose",e0=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eO(eQ,n);return(0,w.jsx)(y.WV.button,{type:"button",...r,ref:t,onClick:(0,f.Mj)(e.onClick,()=>o.onOpenChange(!1))})});function e1(e){return e?"open":"closed"}e0.displayName=eQ;var e2="DialogTitleWarning",[e3,e5]=(0,v.k)(e2,{contentName:ez,titleName:eq,docsSlug:"dialog"}),e6=e=>{let{titleId:t}=e,n=e5(e2),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 s.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},e8=e=>{let{contentRef:t,descriptionId:n}=e,r=e5("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return s.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},e7=eI,e9=eP,e4=e_,te=eB,tt=eX,tn=e$,tr=eJ,to=e0},370:function(e,t,n){n.d(t,{f:function(){return c}});var r=n(2265);n(4887);var o=n(7495),a=n(7437),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,u=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(u,{...i,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),u=r.forwardRef((e,t)=>(0,a.jsx)(i.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName="Label";var c=u}}]);
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.