1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[300],{179:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9089).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6502:(e,t,n)=>{n.d(t,{bm:()=>tc,UC:()=>tu,hJ:()=>ta,ZL:()=>ti,bL:()=>tr,hE:()=>tl,l9:()=>to});var r,o,i=n(587),a=n.t(i,2),u=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var c=n(9364),s=n(1531),d=globalThis?.document?i.useLayoutEffect:()=>{},f=a[" useId ".trim().toString()]||(()=>void 0),p=0;function v(e){let[t,n]=i.useState(f());return d(()=>{e||n(e=>e??String(p++))},[e]),e||(t?`radix-${t}`:"")}var m=a[" useInsertionEffect ".trim().toString()]||d,h=(Symbol("RADIX:SYNC_STATE"),n(26));function g(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,a,u=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(l.ref=t?(0,c.t)(t,u):u),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,a=i.Children.toArray(r),u=a.find(E);if(u){let e=u.props.children,r=a.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var y=Symbol("radix.slottable");function E(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===y}var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=g(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function w(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var C="dismissableLayer.update",N=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R=i.forwardRef((e,t)=>{var n,o;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,...m}=e,h=i.useContext(N),[g,y]=i.useState(null),E=null!==(o=null==g?void 0:g.ownerDocument)&&void 0!==o?o:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=i.useState({}),O=(0,c.s)(t,e=>y(e)),D=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),P=D.indexOf(T),M=g?D.indexOf(g):-1,A=h.layersWithOutsidePointerEventsDisabled.size>0,L=M>=P,k=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=w(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){x("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!L||n||(null==d||d(e),null==p||p(e),e.defaultPrevented||null==v||v())},E),j=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=w(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>
1{e.target&&!o.current&&x("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;[...h.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==v||v())},E);return!function(e,t=globalThis?.document){let n=w(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M===h.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},E),i.useEffect(()=>{if(g)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),S(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[g,E,a,h]),i.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),S())},[g,h]),i.useEffect(()=>{let e=()=>R({});return document.addEventListener(C,e),()=>document.removeEventListener(C,e)},[]),(0,s.jsx)(b.div,{...m,ref:O,style:{pointerEvents:A?L?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,j.onFocusCapture),onBlurCapture:l(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,k.onPointerDownCapture)})});function S(){let e=new CustomEvent(C);document.dispatchEvent(e)}function x(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&h.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}R.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(N),r=i.useRef(null),o=(0,c.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(b.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var O="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},P=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[l,d]=i.useState(null),f=w(o),p=w(a),v=i.useRef(null),m=(0,c.s)(t,e=>d(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?v.current=t:L(v.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||L(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&&L(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,h.paused]),i.useEffect(()=>{if(l){k.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(O,T);l.addEventListener(O,f),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(L(r,{select:t}),document.activeElement!==n)return}(M(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(l))}return()=>{l.removeEventListener(O,f),setTimeout(()=>{let t=new CustomEvent(D,T);l.addEventListener(D,p),l.dispatchEvent(t),t.defaultPrevented||L(null!=e?e:document.body,{select:!0}),l.removeEventListener(D,p),k.remove(h)},0)}}},[l,f,p,h]);let g=i.useCallback(e=>{if(!n&&!r||h.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=M(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&L(i,{select:!0})):(e.preventDefault(),n&&L(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,s.jsx)(b.div,{tabIndex:-1,...u,ref:m,onKeyDown:g})});function M(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 A(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 L(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()}}P.displayName="FocusScope";var k=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=j(e,t)).unshift(t)},remove(t){var n;null===(n=(e=j(e,t))[0])||void 0===n||n.resume()}}}();function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var I=i.forwardRef((e,t)=>
1{var n,r;let{container:o,...a}=e,[u,l]=i.useState(!1);d(()=>l(!0),[]);let c=o||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?h.createPortal((0,s.jsx)(b.div,{...a,ref:t}),c):null});I.displayName="Portal";var F=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef(null),u=i.useRef(e),l=i.useRef("none"),[c,s]=(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.current);l.current="mounted"===c?e:"none"},[c]),d(()=>{let t=a.current,n=u.current;if(n!==e){let r=l.current,o=_(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),u.current=e}},[e,s]),d(()=>{if(r){var e;let t,n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=_(a.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(s("ANIMATION_END"),!u.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&&(l.current=_(a.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)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=(0,c.s)(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:a}):null};function _(e){return(null==e?void 0:e.animationName)||"none"}F.displayName="Presence";var W=0;function B(){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 U=function(){return(U=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 $(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 K=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),X="width-before-scroll-bar";function Y(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Z="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,z=new WeakMap;function V(e){return e}var H=function(e){void 0===e&&(e={});var t,n,r,o,i=(t=null,void 0===n&&(n=V),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return i.options=U({async:!0,ssr:!1},e),i}(),q=function(){},G=i.forwardRef(function(e,t){var n,r,o,a,u=i.useRef(null),l=i.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),c=l[0],s=l[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,E=e.noIsolation,b=e.inert,w=e.allowPinchZoom,C=e.as,N=e.gapMode,R=$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[u,t],r=function(e){return n.forEac
1h(function(t){return Y(t,e)})},(o=(0,i.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,Z(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)||Y(e,null)}),r.forEach(function(e){t.has(e)||Y(e,o)})}z.set(a,n)},[n]),a),x=U(U({},R),c);return i.createElement(i.Fragment,null,m&&i.createElement(g,{sideCar:H,removeScrollBar:v,shards:h,noRelative:y,noIsolation:E,inert:b,setCallbacks:s,allowPinchZoom:!!w,lockRef:u,gapMode:N}),d?i.cloneElement(i.Children.only(f),U(U({},x),{ref:S})):i.createElement(void 0===C?"div":C,U({},x,{className:p,ref:S}),f))});G.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},G.classNames={fullWidth:X,zeroRight:K};var J=function(e){var t=e.sideCar,n=$(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 i.createElement(r,U({},n))};J.isSideCarExport=!0;var Q=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 i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.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)}}},ee=function(){var e=Q();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},et=function(){var e=ee();return function(t){return e(t.styles,t.dynamic),null}},en={left:0,top:0,right:0,gap:0},er=function(e){return parseInt(e||"",10)||0},eo=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[er(n),er(r),er(o)]},ei=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return en;var t=eo(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])}},ea=et(),eu="data-scroll-locked",el=function(e,t,n,r){var o=e.left,i=e.top,a=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(eu,"] {\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(i,"px;\n padding-right: ").concat(a,"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(K," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(X," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(K," .").concat(K," {\n right: 0 ").concat(r,";\n }\n \n .").concat(X," .").concat(X," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(eu,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},ec=function(){var e=parseInt(document.body.getAttribute(eu)||"0",10);return isFinite(e)?e:0},es=function(){i.useEffect(function(){return document.body.setAttribute(eu,(ec()+1).toString()),function(){var e=ec()-1;e<=0?document.body.removeAttribute(eu):document.body.setAttribute(eu,e.toString())}},[])},ed=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;es();var a=i.useMemo(function(){return ei(o)},[o]);return i.createElement(ea,{styles:el(a,!t,o,n?"":"!important")})},ef=!1;if("undefined"!=typeof window)try{var ep=Object.defineProperty({},"passive",{get:function(){return ef=!0,!0}});window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch(e){ef=!1}var ev=!!ef&&{passive:!1},em=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])},eh=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eg(e,r)){var o=ey(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eg=function(e,t){return"v"===e?em(t,"overflowY"):em(t,"overflowX")},ey=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eE=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,l=n.target,c=t.contains(l),s=!1,d=u>0,f=0,p=0;
1do{if(!l)break;var v=ey(e,l),m=v[0],h=v[1]-v[2]-a*m;(m||h)&&eg(e,l)&&(f+=h,p+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&u>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},eb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ew=function(e){return[e.deltaX,e.deltaY]},eC=function(e){return e&&"current"in e?e.current:e},eN=0,eR=[];let eS=(H.useMedium(function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eN++)[0],a=i.useState(et)[0],u=i.useRef(e);i.useEffect(function(){u.current=e},[e]),i.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,i=t.length;o<i;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(eC),!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 l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,i=eb(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=eh(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eh(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return eE(p,t,e,"h"===p?l:c,!0)},[]),c=i.useCallback(function(e){if(eR.length&&eR[eR.length-1]===a){var n="deltaY"in e?ew(e):eb(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=(u.current.shards||[]).map(eC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eb(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,ew(t),t.target,l(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,eb(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return eR.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ev),document.addEventListener("touchmove",c,ev),document.addEventListener("touchstart",d,ev),function(){eR=eR.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,ev),document.removeEventListener("touchmove",c,ev),document.removeEventListener("touchstart",d,ev)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(ed,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),J);var ex=i.forwardRef(function(e,t){return i.createElement(G,U({},e,{ref:t,sideCar:eS}))});ex.classNames=G.classNames;var eO=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},eD=new WeakMap,eT=new WeakMap,eP={},eM=0,eA=function(e){return e&&(e.host||eA(e.parentNode))},eL=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eA(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});eP[n]||(eP[n]=new WeakMap);var i=eP[n],a=[],u=new Set,l=new Set(o),c=function(e){!e||u.has(e)||(u.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(eD.get(e)||0)+1,c=(i.get(e)||0)+1;eD.set(e,l),i.set(e,c),a.push(e),1===l&&o&&eT.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),u.clear(),eM++,function(){a.forEach(function(e){var t=eD.get(e)-1,o=i.get(e)-1;eD.set(e,t),i.set(e,o),t||(eT.has(e)||e.removeAttribute(r),eT.delete(e)),o||e.removeAttribute(n)}),--eM||(eD=new WeakMap,eD=new WeakMap,eT=new WeakMap,eP={})}},ek=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||eO(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eL(r,o,n,"aria-hidden")):function(){return null}},ej="Dialog",[eI,eF]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;n=[...n,r];let u=t=>{let{scope:n,children:r,...u}=t,l=n?.[e]?.[a]||o,c=i.useMemo(()=>u,Object.values(u));return(0,s.jsx)(l.Provider,{value:c,children:r})};return u.displayName=t+"Provider",[u,function(n,u){let l=u?.[e]?.[a]||o,c=i.useContext(l);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ej),[e_,eW]=eI(ej),eB=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,l=i.useRef(null),c=i.useRef(null),[d,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,u]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return m(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[c,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[l,e,a,u])]}({prop:r,defaultProp:null!=o&&o,onChange:a,caller:ej});return(0,s.jsx)(e_,{scope:t,triggerRef:l,contentRef:c,contentId:v(),titleId:v(),descriptionId:v(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};eB.displayName=ej;var eU="DialogTrigger",e$=i.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=eW(eU,n),i=(0,c.s)(t,o.triggerRef);return(0,s.jsx)(b.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e5(o.open),...r,ref:i,onClick:l(e.onClick,o.onOpenToggle)})});e$.displayName=eU;var eK="DialogPortal",[eX,eY]=eI(eK,{forceMount:void 0}),eZ=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eW(eK,t);return(0,s.jsx)(eX,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,s.jsx)(F,{present:n||a.open,children:(0,s.jsx)(I,{asChild:!0,container:o,children:e})}))})};eZ.displayName=eK;var ez="DialogOverlay",eV=i.forwardRef((e,t)=>{let n=eY(ez,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eW(ez,e.__scopeDialog);return i.modal?(0,s.jsx)(F,{present:r||i.open,children:(0,s.jsx)(eq,{...o,ref:t})}):null});eV.displayName=ez;var eH=g("DialogOverlay.RemoveScroll"),eq=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(ez,n);return(0,s.jsx)(ex,{as:eH,allowPinchZoom:!0,shards:[o.contentRef],children:(0,s.jsx)(b.div,{"data-state":e5(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eG="DialogContent",eJ=i.forwardRef((e,t)=>{let n=eY(eG,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eW(eG,e.__scopeDialog);return(0,s.jsx)(F,{present:r||i.open,children:i.modal?(0,s.jsx)(eQ,{...o,ref:t}):(0,s.jsx)(e0,{...o,ref:t})})});eJ.displayName=eG;var eQ=i.forwardRef((e,t)=>{let n=eW(eG,e.__scopeDialog),r=i.useRef(null),o=(0,c.s)(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return ek(e)},[]),(0,s.jsx)(e1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),e0=i.forwardRef((e,t)=>{let n=eW(eG,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,s.jsx)(e1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;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 u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e1=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,l=eW(eG,n),d=i.useRef(null),f=(0,c.s)(t,d);return i.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:B()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:B()),W++,()=>{1===W&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),W--}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,s.jsx)(R,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":e5(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tt,{titleId:l.titleId}),(0,s.jsx)(tn,{contentRef:d,descriptionId:l.descriptionId})]})]})}),e2="DialogTitle",e6=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e2,n);return(0,s.jsx)(b.h2,{id:o.titleId,...r,ref:t})});e6.displayName=e2;var e8="DialogDescription";i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e8,n);return(0,s.jsx)(b.p,{id:o.descriptionId,...r,ref:t})}).displayName=e8;var e9="DialogClose",e3=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e9,n);return(0,s.jsx)(b.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})});function e5(e){return e?"open":"closed"}e3.displayName=e9;var e7="DialogTitleWarning",[e4,te]=function(e,t){let n=i.createContext(t),r=e=>{let{children:t,...r}=e,o=i.useMemo(()=>r,Object.values(r));return(0,s.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=i.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(e7,{contentName:eG,titleName:e2,docsSlug:"dialog"}),tt=e=>{let{titleId:t}=e,n=te(e7),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},tn=e=>{let{contentRef:t,descriptionId:n}=e,r=te("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},tr=eB,to=e$,ti=eZ,ta=eV,tu=eJ,tl=e6,tc=e3}}]);
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.