1import{r as a,j as h,b as ft,a as vt,d as on}from"./react-CaZ3b-uf.js";import{b as fe,P as K,d as U,g as sn,u as ke,a as $e,c as an,h as cn,e as un,i as ge}from"./radix-accordion-B9Cw5kfI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d49e63b3-3525-45f9-b4f9-08fa8564a769",e._sentryDebugIdIdentifier="sentry-dbid-d49e63b3-3525-45f9-b4f9-08fa8564a769")}catch{}})();var T=function(){return T=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},T.apply(this,arguments)};function pt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}
1function ln(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var dn=Object.defineProperty,fn=(e,t)=>dn(e,"name",{value:t,configurable:!0});function q(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>((...n)=>t.current?.(...n)),[])}fn(q,"useCallbackRef");var vn=Object.defineProperty,R=(e,t)=>vn(e,"name",{value:t,configurable:!0}),Ne="dismissableLayer.update",pn="dismissableLayer.pointerDownOutside",mn="dismissableLayer.focusOutside",Ze,mt=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),hn=a.forwardRef(R(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:i,onInteractOutside:l,onDismiss:d,...p}=t,u=a.useContext(mt),[f,g]=a.useState(null),E=f?.ownerDocument??globalThis?.document,[,v]=a.useState({}),m=fe(n,g),b=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=C?b.indexOf(C):-1,D=f?b.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,P=D>=y,S=a.useRef(!1),_=gt(O=>{c?.(O),l?.(O),O.defaultPrevented||d?.()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(O=>{if(!(O instanceof Node))return!1;const he=[...u.branches].some(Xe=>Xe.contains(O));return P&&!he},[u.branches,P])}),F=Et(O=>{if(o&&S.current)return;const he=O.target;[...u.branches].some(rn=>rn.contains(he))||(i?.(O),l?.(O),O.defaultPrevented||d?.())},E),k=f?D===b.length-1:!1,$=q(O=>{O.key==="Escape"&&(s?.(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))});return a.useEffect(()=>{if(k)return E.addEventListener("keydown",$,{capture:!0}),()=>E.removeEventListener("keydown",$,{capture:!0})},[E,k,$]),a.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ze=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ie(),()=>{r&&(u.layersWithOutsidePointerEventsDisabled.delete(f),u.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=Ze))}},[f,E,r,u]),a.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ie())},[f,u]),a.useEffect(()=>{const O=R(()=>v({}),"handleUpdate");return document.addEventListener(Ne,O),()=>document.removeEventListener(Ne,O)},[]),h.jsx(K.div,{...p,ref:m,style:{pointerEvents:w?P?"auto":"none":void 0,...t.style},onFocusCapture:U(t.onFocusCapture,F.onFocusCapture),onBlurCapture:U(t.onBlurCapture,F.onBlurCapture),onPointerDownCapture:U(t.onPointerDownCapture,_.onPointerDownCapture)})},"DismissableLayer"));function ht(){const e=a.useContext(mt),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R(ht,"useDismissableLayerSurface");var gn=R(()=>!0,"IS_TRUE");function gt(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=gn}=t,i=q(e),l=a.useRef(!1),d=a.useRef(!1),p=a.useRef(new Map),u=a.useRef(()=>{});return a.useEffect(()=>{function f(){d.current=!1,o.current=!1,p.current.clear()}R(f,"resetOutsideInteraction");function g(){return Array.from(p.current.values()).some(Boolean)}R(g,"isOutsideInteractionIntercepted");function E(y){if(!d.current)return;const D=y.target;D instanceof Node&&[...s].some(P=>P.contains(D))||p.current.set(y.type,!0),y.type==="click"&&window.setTimeout(()=>{d.current&&u.current()},0)}R(E,"handleInteractionCapture");function v(y){d.current&&p.current.set(y.type,!1)}R(v,"handleInteractionBubble");const m=R(y=>{if(y.target&&!l.current){let D=function(){n.removeEventListener("click",u.current);const P=g();f(),P||je(pn,i,w,{discrete:!0})};if(R(D,"handleAndDispatchPointerDownOutsideEvent"),!c(y.target)){n.removeEventListener("click",u.current),f(),l.current=!1;return}const w={originalEvent:y};d.current=!0,o.current=r&&y.button===0,p.current.clear(),!r||y.button!==0?D():(n.removeEventListener("click",u.current),u.current=D,n.addEventListener("click",u.current,{once:!0}))}else n.removeEventListener("click",u.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const y of b)n.addEventListener(y,E,!0),n.addEventListener(y,v);const C=window.setTimeout(()=>{n.addEventListener("pointerdown",m)}
1,0);return()=>{window.clearTimeout(C),n.removeEventListener("pointerdown",m),n.removeEventListener("click",u.current);for(const y of b)n.removeEventListener(y,E,!0),n.removeEventListener(y,v)}},[n,i,r,o,s,c]),{onPointerDownCapture:R(()=>l.current=!0,"onPointerDownCapture")}}R(gt,"usePointerDownOutside");function Et(e,t=globalThis?.document){const n=q(e),r=a.useRef(!1);return a.useEffect(()=>{const o=R(s=>{s.target&&!r.current&&je(mn,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:R(()=>r.current=!0,"onFocusCapture"),onBlurCapture:R(()=>r.current=!1,"onBlurCapture")}}R(Et,"useFocusOutside");function Ie(){const e=new CustomEvent(Ne);document.dispatchEvent(e)}R(Ie,"dispatchUpdate");function je(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sn(o,s):o.dispatchEvent(s)}R(je,"handleAndDispatchCustomEvent");var En=Object.defineProperty,x=(e,t)=>En(e,"name",{value:t,configurable:!0}),Ee="focusScope.autoFocusOnMount",ye="focusScope.autoFocusOnUnmount",qe={bubbles:!1,cancelable:!0},yn=a.forwardRef(x(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...i}=t,[l,d]=a.useState(null),p=q(s),u=q(c),f=a.useRef(null),g=fe(n,d),E=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let m=function(D){if(E.paused||!l)return;const w=D.target;l.contains(w)?f.current=w:M(f.current,{select:!0})},b=function(D){if(E.paused||!l)return;const w=D.relatedTarget;w!==null&&(l.contains(w)||M(f.current,{select:!0}))},C=function(D){if(document.activeElement===document.body)for(const P of D)P.removedNodes.length>0&&M(l)};x(m,"handleFocusIn"),x(b,"handleFocusOut"),x(C,"handleMutations"),document.addEventListener("focusin",m),document.addEventListener("focusout",b);const y=new MutationObserver(C);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),y.disconnect()}}},[o,l,E.paused]),a.useEffect(()=>{if(l){Qe.add(E);const m=document.activeElement;if(!l.contains(m)){const C=new CustomEvent(Ee,qe);l.addEventListener(Ee,p),l.dispatchEvent(C),C.defaultPrevented||(yt(St(We(l)),{select:!0}),document.activeElement===m&&M(l))}return()=>{l.removeEventListener(Ee,p),setTimeout(()=>{const C=new CustomEvent(ye,qe);l.addEventListener(ye,u),l.dispatchEvent(C),C.defaultPrevented||M(m??document.body,{select:!0}),l.removeEventListener(ye,u),Qe.remove(E)},0)}}},[l,p,u,E]);const v=a.useCallback(m=>{if(!r&&!o||E.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,C=document.activeElement;if(b&&C){const y=m.currentTarget,[D,w]=bt(y);D&&w?!m.shiftKey&&C===w?(m.preventDefault(),r&&M(D,{select:!0})):m.shiftKey&&C===D&&(m.preventDefault(),r&&M(w,{select:!0})):C===y&&m.preventDefault()}},[r,o,E.paused]);return h.jsx(K.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})},"FocusScope"));function yt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(M(r,{select:t}),document.activeElement!==n)return}x(yt,"focusFirst");function bt(e){const t=We(e),n=Te(t,e),r=Te(t.reverse(),e);return[n,r]}x(bt,"getTabbableEdges");function We(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:x(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}x(We,"getTabbableCandidates");function Te(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ct(r,{upTo:t})))return r}x(Te,"findVisible");function Ct(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}x(Ct,"isHidden");function Dt(e){return e instanceof HTMLInputElement&&"select"in e}x(Dt,"isSelectableInput");function M(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dt(e)&&t&&e.select()}}x(M,"focus");var Qe=wt();function wt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ae(e,t),e.unshift(t)},remove(t){e=Ae(e,t),e[0]?.resume()}}}x(wt,"createFocusScopesStack");function Ae(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}x(Ae,"arrayRemove");function St(e){return e.filter(t=>t.tagName!=="A")}x(St,"removeLinks");var bn=Object.defineProperty,Cn=(e,t)=>bn(e,"name",{value:t,configurable:!0}),Dn=a.forwardRef(Cn(function(t,n){const{container:r,...o}=t,[s,c]=a.useState(!1);ke(()=>c(!0),[]);const i=r||s&&globalThis?.document?.body;return i?ft.createPortal(h.jsx(K.div,{...o,ref:n}),i):null},"Portal")),wn=Object.defineProperty,Ue=(e,t)=>wn(e,"name",{value:t,configurable:!0}),te=0,H=null;function Sn(e){return Be(),e.children}Ue(Sn,"FocusGuards");function Be(){a.useEffect(()=>{H||(H={start:_e(),end:_e()});const{start:e,end:t}=H;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),te++,()=>{te===1&&(H?.start.remove(),H?.end.remove(),H=null),te=Math.max(0,te-1)}},[])}Ue(Be,"useFocusGuards");function _e(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,921 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}Ue(_e,"createFocusGuard");var ue="right-scroll-bar-position",le="width-before-scroll-bar",Pn="with-scroll-bars-hidden",On="--removed-body-scroll-bar-size";function be(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rn(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var xn=typeof window<"u"?a.useLayoutEffect:a.useEffect,Je=new WeakMap;function Nn(e,t){var n=Rn(null,function(r){return e.forEach(function(o){return be(o,r)})});return xn(function(){var r=Je.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(i){s.has(i)||be(i,null)}),s.forEach(function(i){o.has(i)||be(i,c)})}Je.set(n,e)},[e]),n}function In(e){return e}function Tn(e,t){t===void 0&&(t=In);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,r);return n.push(c),function(){n=n.filter(function(i){return i!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var i=n;n=[],i.forEach(s),c=n}var l=function(){var p=c;c=[],p.forEach(s)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(p){c.push(p),d()},filter:function(p){return c=c.filter(p),n}}}};return o}function An(e){e===void 0&&(e={});var t=Tn(null);return t.options=T({async:!0,ssr:!1},e),t}var Pt=function(e){var t=e.sideCar,n=pt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,T({},n))};Pt.isSideCarExport=!0;function _n(e,t){return e.useMedium(t),Pt}var Ot=An(),Ce=function(){},ve=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Ce,onWheelCapture:Ce,onTouchMoveCapture:Ce}),o=r[0],s=r[1],c=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,p=e.enabled,u=e.shards,f=e.sideCar,g=e.noRelative,E=e.noIsolation,v=e.inert,m=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,y=e.gapMode,D=pt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,P=Nn([n,t]),S=T(T({},D),o);return a.createElement(a.Fragment,null,p&&a.createElement(w,{sideCar:Ot,removeScrollBar:d,shards:u,noRelative:g,noIsolation:E,inert:v,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:y}),c?a.cloneElement(a.Children.only(i),T(T({},S),{ref:P})):a.createElement(C,T({},S,{className:l,ref:P}),i))});ve.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ve.classNames={fullWidth:le,zeroRight:ue};var Fn=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fn();return t&&e.setAttribute("nonce",t),e}function Ln(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $n=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Mn())&&(Ln(t,n),kn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jn=function(){var e=$n();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rt=function(){var e=jn(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Wn={left:0,top:0,right:0,gap:0},De=function(e){return parseInt(e||"",10)||0},Un=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[De(n),De(r),De(o)]},Bn=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wn;var t=Un(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])}},Kn=Rt(),Z="data-scroll-locked",Vn=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,i=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Pn,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(i,"px ").concat(r,`; 5 } 6 body[`).concat(Z,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(c,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(i,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(ue,` { 20 right: `).concat(i,"px ").concat(r,`; 21 } 22 23 .`).concat(le,` { 24 margin-right: `).concat(i,"px ").concat(r,`; 25 } 26 27 .`).concat(ue," .").concat(ue,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(le," .").concat(le,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(Z,`] { 36 `).concat(On,": ").concat(i,`px; 37 } 38`)},et=function(){var e=parseInt(document.body.getAttribute(Z)||"0",10);return isFinite(e)?e:0},Hn=function(){a.useEffect(function(){return document.body.setAttribute(Z,(et()+1).toString()),function(){var e=et()-1;e<=0?document.body.removeAttribute(Z):document.body.setAttribute(Z,e.toString())}},[])},Gn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Hn();var s=a.useMemo(function(){return Bn(o)},[o]);return a.createElement(Kn,{styles:Vn(s,!t,o,n?"":"!important")})},Fe=!1;if(typeof window<"u")try{var ne=Object.defineProperty({},"passive",{get:function(){return Fe=!0,!0}});window.addEventListener("test",ne,ne),window.removeEventListener("test",ne,ne)}catch{Fe=!1}var G=Fe?{passive:!1}:!1,Yn=function(e){return e.tagName==="TEXTAREA"},xt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yn(e)&&n[t]==="visible")},zn=function(e){return xt(e,"overflowY")},Xn=function(e){return xt(e,"overflowX")},tt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Nt(e,r);if(o){var s=It(e,r),c=s[1],i=s[2];if(c>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Zn=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},qn=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Nt=function(e,t){return e==="v"?zn(t):Xn(t)},It=function(e,t){return e==="v"?Zn(t):qn(t)},Qn=function(e,t){return e==="h"&&t==="rtl"?-1:1},Jn=function(e,t,n,r,o){var s=Qn(e,window.getComputedStyle(t).direction),c=s*r,i=n.target,l=t.contains(i),d=!1,p=c>0,u=0,f=0;do{if(!i)break;var g=It(e,i),E=g[0],v=g[1],m=g[2],b=v-m-s*E;(E||b)&&Nt(e,i)&&(u+=b,f+=E);var C=i.parentNode;i=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(p&&Math.abs(u)<1||!p&&Math.abs(f)<1)&&(d=!0),d},re=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nt=function(e){return[e.deltaX,e.deltaY]},rt=function(e){return e&&"current"in e?e.current:e},er=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tr=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},nr=0,Y=[];function rr(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(nr++)[0],s=a.useState(Rt)[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 v=ln([e.lockRef.current],(e.shards||[]).map(rt),!0).filter(Boolean);return v.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=a.useCallback(function(v,m){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!c.current.allowPinchZoom;var b=re(v),C=n.current,y="deltaX"in v?v.deltaX:C[0]-b[0],D="deltaY"in v?v.deltaY:C[1]-b[1],w,P=v.target,S=Math.abs(y)>Math.abs(D)?"h":"v";if("touches"in v&&S==="h"&&P.type==="range")return!1;var _=window.getSelection(),F=_&&_.anchorNode,k=F?F===P||F.contains(P):!1;if(k)return!1;var $=tt(S,P);if(!$)return!0;if($?w=S:(w=S==="v"?"h":"v",$=tt(S,P)),!$)return!1;if(!r.current&&"changedTouches"in v&&(y||D)&&(r.current=w),!w)return!0;var O=r.current||w;return Jn(O,m,v,O==="h"?y:D)},[]),l=a.useCallback(function(v){var m=v;if(!(!Y.length||Y[Y.length-1]!==s)){var b="deltaY"in m?nt(m):re(m),C=t.current.filter(function(w){return w.name===m.type&&(w.target===m.target||m.target===w.shadowParent)&&er(w.delta,b)})[0];if(C&&C.should){m.cancelable&&m.preventDefault();return}
41if(!C){var y=(c.current.shards||[]).map(rt).filter(Boolean).filter(function(w){return w.contains(m.target)}),D=y.length>0?i(m,y[0]):!c.current.noIsolation;D&&m.cancelable&&m.preventDefault()}}},[]),d=a.useCallback(function(v,m,b,C){var y={name:v,delta:m,target:b,should:C,shadowParent:or(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(D){return D!==y})},1)},[]),p=a.useCallback(function(v){n.current=re(v),r.current=void 0},[]),u=a.useCallback(function(v){d(v.type,nt(v),v.target,i(v,e.lockRef.current))},[]),f=a.useCallback(function(v){d(v.type,re(v),v.target,i(v,e.lockRef.current))},[]);a.useEffect(function(){return Y.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,G),document.addEventListener("touchmove",l,G),document.addEventListener("touchstart",p,G),function(){Y=Y.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,G),document.removeEventListener("touchmove",l,G),document.removeEventListener("touchstart",p,G)}},[]);var g=e.removeScrollBar,E=e.inert;return a.createElement(a.Fragment,null,E?a.createElement(s,{styles:tr(o)}):null,g?a.createElement(Gn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function or(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sr=_n(Ot,rr);var Ke=a.forwardRef(function(e,t){return a.createElement(ve,T({},e,{ref:t,sideCar:sr}))});Ke.classNames=ve.classNames;var ar=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,oe=new WeakMap,se={},we=0,Tt=function(e){return e&&(e.host||Tt(e.parentNode))},ir=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Tt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cr=function(e,t,n,r){var o=ir(t,Array.isArray(e)?e:[e]);se[n]||(se[n]=new WeakMap);var s=se[n],c=[],i=new Set,l=new Set(o),d=function(u){!u||i.has(u)||(i.add(u),d(u.parentNode))};o.forEach(d);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),E=g!==null&&g!=="false",v=(z.get(f)||0)+1,m=(s.get(f)||0)+1;z.set(f,v),s.set(f,m),c.push(f),v===1&&E&&oe.set(f,!0),m===1&&f.setAttribute(n,"true"),E||f.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return p(t),i.clear(),we++,function(){c.forEach(function(u){var f=z.get(u)-1,g=s.get(u)-1;z.set(u,f),s.set(u,g),f||(oe.has(u)||u.removeAttribute(r),oe.delete(u)),g||u.removeAttribute(n)}),we--,we||(z=new WeakMap,z=new WeakMap,oe=new WeakMap,se={})}},ur=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ar(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),cr(r,o,n,"aria-hidden")):function(){return null}},lr=Object.defineProperty,N=(e,t)=>lr(e,"name",{value:t,configurable:!0}),Ve="Dialog",[At,Do]=an(Ve),[dr,A]=At(Ve),wo=N(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,i=a.useRef(null),l=a.useRef(null),[d,p]=un({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[u,f]=a.useState(0),[g,E]=a.useState(0);return h.jsx(dr,{scope:t,triggerRef:i,contentRef:l,contentId:ge(),titleId:ge(),descriptionId:ge(),titlePresent:u>0,descriptionPresent:g>0,setTitleCount:f,setDescriptionCount:E,open:d,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(v=>!v),[p]),modal:c,children:n})},"Dialog"),_t="DialogPortal",[fr,Ft]=At(_t,{forceMount:void 0}),So=N(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=A(_t,t);return h.jsx(fr,{scope:t,forceMount:n,children:a.Children.map(r,c=>h.jsx($e,{present:n||s.open,children:h.jsx(Dn,{asChild:!0,container:o,children:c})}))})},"DialogPortal"),Me="DialogOverlay",Po=a.forwardRef(N(function(t,n){const r=Ft(Me,t.__scopeDialog),{forceMount:o=r.forceMount,...s}=t,c=A(Me,t.__scopeDialog);return c.modal?h.jsx($e,{present:o||c.open,children:h.jsx(pr,{...s,ref:n})}):null},"DialogOverlay")),vr=cn("DialogOverlay.RemoveScroll"),pr=a.forwardRef(N(function(t,n){const{__scopeDialog:r,...o}=t,s=A(Me,r),c=ht(),i=fe(n,c);return h.jsx(Ke,{as:vr,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(K.div,{"data-state":He(s.open
vendor: 5,726 bytes, line 41
41),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Q="DialogContent",Oo=a.forwardRef(N(function(t,n){const r=Ft(Q,t.__scopeDialog),{forceMount:o=r.forceMount,...s}=t,c=A(Q,t.__scopeDialog);return h.jsx($e,{present:o||c.open,children:c.modal?h.jsx(mr,{...s,ref:n}):h.jsx(hr,{...s,ref:n})})},"DialogContent")),mr=a.forwardRef(N(function(t,n){const r=A(Q,t.__scopeDialog),o=a.useRef(null),s=fe(n,r.contentRef,o);return a.useEffect(()=>{const c=o.current;if(c)return ur(c)},[]),h.jsx(Mt,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:U(t.onCloseAutoFocus,c=>{c.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:U(t.onPointerDownOutside,c=>{const i=c.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&c.preventDefault()}),onFocusOutside:U(t.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),hr=a.forwardRef(N(function(t,n){const r=A(Q,t.__scopeDialog),o=a.useRef(!1),s=a.useRef(!1);return h.jsx(Mt,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{t.onCloseAutoFocus?.(c),c.defaultPrevented||(o.current||r.triggerRef.current?.focus(),c.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:c=>{t.onInteractOutside?.(c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=c.target;r.triggerRef.current?.contains(i)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})},"DialogContentNonModal")),Mt=a.forwardRef(N(function(t,n){const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,...i}=t,l=A(Q,r);return Be(),h.jsx(h.Fragment,{children:h.jsx(yn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:c,children:h.jsx(hn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":He(l.open),...i,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),gr="DialogTitle",Ro=a.forwardRef(N(function(t,n){const{__scopeDialog:r,...o}=t,s=A(gr,r),{setTitleCount:c}=s;return ke(()=>(c(i=>i+1),()=>c(i=>i-1)),[c]),h.jsx(K.h2,{id:s.titleId,...o,ref:n})},"DialogTitle")),Er="DialogDescription",xo=a.forwardRef(N(function(t,n){const{__scopeDialog:r,...o}=t,s=A(Er,r),{setDescriptionCount:c}=s;return ke(()=>(c(i=>i+1),()=>c(i=>i-1)),[c]),h.jsx(K.p,{id:s.descriptionId,...o,ref:n})},"DialogDescription")),yr="DialogClose",No=a.forwardRef(N(function(t,n){const{__scopeDialog:r,...o}=t,s=A(yr,r);return h.jsx(K.button,{type:"button",...o,ref:n,onClick:U(t.onClick,()=>s.onOpenChange(!1))})},"DialogClose"));function He(e){return e?"open":"closed"}N(He,"getState");function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ot(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ot(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ot(e[o],null)}}}}function V(...e){return a.useCallback(Lt(...e),e)}function br(e,t){const n=a.createContext(t),r=s=>{const{children:c,...i}=s,l=a.useMemo(()=>i,Object.values(i));return h.jsx(n.Provider,{value:l,children:c})};r.displayName=e+"Provider";function o(s){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Cr(e,t=[]){let n=[];function r(s,c){const i=a.createContext(c),l=n.length;n=[...n,c];const d=u=>{const{scope:f,children:g,...E}=u,v=f?.[e]?.[l]||i,m=a.useMemo(()=>E,Object.values(E));return h.jsx(v.Provider,{value:m,children:g})};d.displayName=s+"Provider";function p(u,f){const g=f?.[e]?.[l]||i,E=a.useContext(g);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,p]}const o=()=>{const s=n.map(c=>a.createContext(c));return function(i){const l=i?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Dr(o,...t)]}function Dr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=r.reduce((i,{useScope:l,scopeName:d})=>{const u=l(s)[`__scope${d}`];return{...i,...u}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var J=globalThis?.document?a.useLayoutEffect:()=>{},wr=vt[" useId ".trim().toString()]||(()=>{}),Sr=0;function Se(e){const[t,n]=a.useState(wr());return J(()=>{n(r=>r??String(Sr++))},[e]),t?`radix-${t}`:""}var Pr=vt[" useInsertionEffect ".trim().toString()]||J;function Or({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=Rr({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const p=a.useRef(e!==void 0);a.useEffect(()=>{const u=p.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. 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.`),p.current=i},[i,r])}const d=a.useCallback(p=>{if(i){const u=xr(p)?p(e):p;u!==e&&c.current?.(u)}else s(p)},[i,e,s,c]);return[l,d]}function Rr({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Pr(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function xr(e){return typeof e=="function"}function kt(e){const t=Nr(e),n=a.forwardRef((r,o)=>{const{children:s,...c}=r,i=a.Children.toArray(s),l=i.find(Tr);
vendor: 4,118 bytes, line 41
41if(l){const d=l.props.children,p=i.map(u=>u===l?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:u);return h.jsx(t,{...c,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,p):null})}return h.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Nr(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const c=_r(o),i=Ar(s,o.props);return o.type!==a.Fragment&&(i.ref=r?Lt(r,c):c),a.cloneElement(o,i)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ir=Symbol("radix.slottable");function Tr(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ir}function Ar(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function _r(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=Fr.reduce((e,t)=>{const n=kt(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:c,...i}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mr(e,t){e&&ft.flushSync(()=>e.dispatchEvent(t))}function ee(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Lr(e,t=globalThis?.document){const n=ee(e);a.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kr="DismissableLayer",Le="dismissableLayer.update",$r="dismissableLayer.pointerDownOutside",jr="dismissableLayer.focusOutside",st,$t=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:i,...l}=e,d=a.useContext($t),[p,u]=a.useState(null),f=p?.ownerDocument??globalThis?.document,[,g]=a.useState({}),E=V(t,S=>u(S)),v=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(m),C=p?v.indexOf(p):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,D=C>=b,w=Br(S=>{const _=S.target,F=[...d.branches].some(k=>k.contains(_));!D||F||(o?.(S),c?.(S),S.defaultPrevented||i?.())},f),P=Kr(S=>{const _=S.target;[...d.branches].some(k=>k.contains(_))||(s?.(S),c?.(S),S.defaultPrevented||i?.())},f);return Lr(S=>{C===d.layers.size-1&&(r?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},f),a.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(st=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),at(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=st)}},[p,f,n,d]),a.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),at())},[p,d]),a.useEffect(()=>{const S=()=>g({});return document.addEventListener(Le,S),()=>document.removeEventListener(Le,S)},[]),h.jsx(L.div,{...l,ref:E,style:{pointerEvents:y?D?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,P.onFocusCapture),onBlurCapture:W(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,w.onPointerDownCapture)})});jt.displayName=kr;var Wr="DismissableLayerBranch",Ur=a.forwardRef((e,t)=>{const n=a.useContext($t),r=a.useRef(null),o=V(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(L.div,{...e,ref:o})});Ur.displayName=Wr;
vendor: 4,399 bytes, line 41
41function Br(e,t=globalThis?.document){const n=ee(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Wt($r,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Kr(e,t=globalThis?.document){const n=ee(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wt(jr,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function at(){const e=new CustomEvent(Le);document.dispatchEvent(e)}function Wt(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mr(o,s):o.dispatchEvent(s)}var Pe="focusScope.autoFocusOnMount",Oe="focusScope.autoFocusOnUnmount",it={bubbles:!1,cancelable:!0},Vr="FocusScope",Ut=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[i,l]=a.useState(null),d=ee(o),p=ee(s),u=a.useRef(null),f=V(t,v=>l(v)),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let v=function(y){if(g.paused||!i)return;const D=y.target;i.contains(D)?u.current=D:j(u.current,{select:!0})},m=function(y){if(g.paused||!i)return;const D=y.relatedTarget;D!==null&&(i.contains(D)||j(u.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const w of y)w.removedNodes.length>0&&j(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",m);const C=new MutationObserver(b);return i&&C.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",m),C.disconnect()}}},[r,i,g.paused]),a.useEffect(()=>{if(i){ut.add(g);const v=document.activeElement;if(!i.contains(v)){const b=new CustomEvent(Pe,it);i.addEventListener(Pe,d),i.dispatchEvent(b),b.defaultPrevented||(Hr(Zr(Bt(i)),{select:!0}),document.activeElement===v&&j(i))}return()=>{i.removeEventListener(Pe,d),setTimeout(()=>{const b=new CustomEvent(Oe,it);i.addEventListener(Oe,p),i.dispatchEvent(b),b.defaultPrevented||j(v??document.body,{select:!0}),i.removeEventListener(Oe,p),ut.remove(g)},0)}}},[i,d,p,g]);const E=a.useCallback(v=>{if(!n&&!r||g.paused)return;const m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(m&&b){const C=v.currentTarget,[y,D]=Gr(C);y&&D?!v.shiftKey&&b===D?(v.preventDefault(),n&&j(y,{select:!0})):v.shiftKey&&b===y&&(v.preventDefault(),n&&j(D,{select:!0})):b===C&&v.preventDefault()}},[n,r,g.paused]);return h.jsx(L.div,{tabIndex:-1,...c,ref:f,onKeyDown:E})});Ut.displayName=Vr;function Hr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(j(r,{select:t}),document.activeElement!==n)return}function Gr(e){const t=Bt(e),n=ct(t,e),r=ct(t.reverse(),e);return[n,r]}function Bt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ct(e,t){for(const n of e)if(!Yr(n,{upTo:t}))return n}function Yr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zr(e){return e instanceof HTMLInputElement&&"select"in e}function j(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zr(e)&&t&&e.select()}}var ut=Xr();function Xr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=lt(e,t),e.unshift(t)},remove(t){e=lt(e,t),e[0]?.resume()}}}function lt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Zr(e){return e.filter(t=>t.tagName!=="A")}var qr="Portal",Kt=a.forwardRef((e,t)=>
vendor: 4,653 bytes, line 41
41{const{container:n,...r}=e,[o,s]=a.useState(!1);J(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?on.createPortal(h.jsx(L.div,{...r,ref:t}),c):null});Kt.displayName=qr;function Qr(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var pe=e=>{const{present:t,children:n}=e,r=Jr(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=V(r.ref,eo(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};pe.displayName="Presence";function Jr(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),c=e?"mounted":"unmounted",[i,l]=Qr(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=ae(r.current);s.current=i==="mounted"?d:"none"},[i]),J(()=>{const d=r.current,p=o.current;if(p!==e){const f=s.current,g=ae(d);e?l("MOUNT"):g==="none"||d?.display==="none"?l("UNMOUNT"):l(p&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),J(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,u=g=>{const v=ae(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(l("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},f=g=>{g.target===t&&(s.current=ae(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:a.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function ae(e){return e?.animationName||"none"}function eo(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Re=0;function to(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dt()),document.body.insertAdjacentElement("beforeend",e[1]??dt()),Re++,()=>{Re===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Re--}},[])}function dt(){const 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 no=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},X=new WeakMap,ie=new WeakMap,ce={},xe=0,Vt=function(e){return e&&(e.host||Vt(e.parentNode))},ro=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Vt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oo=function(e,t,n,r){var o=ro(t,Array.isArray(e)?e:[e]);ce[n]||(ce[n]=new WeakMap);var s=ce[n],c=[],i=new Set,l=new Set(o),d=function(u){!u||i.has(u)||(i.add(u),d(u.parentNode))};o.forEach(d);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(i.has(f))p(f);else try{var g=f.getAttribute(r),E=g!==null&&g!=="false",v=(X.get(f)||0)+1,m=(s.get(f)||0)+1;X.set(f,v),s.set(f,m),c.push(f),v===1&&E&&ie.set(f,!0),m===1&&f.setAttribute(n,"true"),E||f.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return p(t),i.clear(),xe++,function(){c.forEach(function(u){var f=X.get(u)-1,g=s.get(u)-1;X.set(u,f),s.set(u,g),f||(ie.has(u)||u.removeAttribute(r),ie.delete(u)),g||u.removeAttribute(n)}),xe--,xe||(X=new WeakMap,X=new WeakMap,ie=new WeakMap,ce={})}},so=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=no(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),oo(r,o,n,"aria-hidden")):function(){return null}},me="Dialog",[Ht]=Cr(me),[ao,I]=Ht(me),Gt=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,i=a.useRef(null),l=a.useRef(null),[d,p]=Or({prop:r,defaultProp:o??!1,onChange:s,caller:me});return h.jsx(ao,{scope:t,triggerRef:i,contentRef:l,contentId:Se(),titleId:Se(),descriptionId:Se(),open:d,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(u=>!u),[p]),modal:c,children:n})};Gt.displayName=me;var Yt="DialogTrigger",io=a.forwardRef((e,t)=>
vendor: 4,341 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=I(Yt,n),s=V(t,o.triggerRef);return h.jsx(L.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ze(o.open),...r,ref:s,onClick:W(e.onClick,o.onOpenToggle)})});io.displayName=Yt;var Ge="DialogPortal",[co,zt]=Ht(Ge,{forceMount:void 0}),Xt=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=I(Ge,t);return h.jsx(co,{scope:t,forceMount:n,children:a.Children.map(r,c=>h.jsx(pe,{present:n||s.open,children:h.jsx(Kt,{asChild:!0,container:o,children:c})}))})};Xt.displayName=Ge;var de="DialogOverlay",Zt=a.forwardRef((e,t)=>{const n=zt(de,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=I(de,e.__scopeDialog);return s.modal?h.jsx(pe,{present:r||s.open,children:h.jsx(lo,{...o,ref:t})}):null});Zt.displayName=de;var uo=kt("DialogOverlay.RemoveScroll"),lo=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=I(de,n);return h.jsx(Ke,{as:uo,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(L.div,{"data-state":ze(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),B="DialogContent",qt=a.forwardRef((e,t)=>{const n=zt(B,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=I(B,e.__scopeDialog);return h.jsx(pe,{present:r||s.open,children:s.modal?h.jsx(fo,{...o,ref:t}):h.jsx(vo,{...o,ref:t})})});qt.displayName=B;var fo=a.forwardRef((e,t)=>{const n=I(B,e.__scopeDialog),r=a.useRef(null),o=V(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return so(s)},[]),h.jsx(Qt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,i=c.button===0&&c.ctrlKey===!0;(c.button===2||i)&&s.preventDefault()}),onFocusOutside:W(e.onFocusOutside,s=>s.preventDefault())})}),vo=a.forwardRef((e,t)=>{const n=I(B,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return h.jsx(Qt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Qt=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,i=I(B,n),l=a.useRef(null),d=V(t,l);return to(),h.jsxs(h.Fragment,{children:[h.jsx(Ut,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:h.jsx(jt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ze(i.open),...c,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(go,{titleId:i.titleId}),h.jsx(yo,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Ye="DialogTitle",po=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=I(Ye,n);return h.jsx(L.h2,{id:o.titleId,...r,ref:t})});po.displayName=Ye;var Jt="DialogDescription",mo=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=I(Jt,n);return h.jsx(L.p,{id:o.descriptionId,...r,ref:t})});mo.displayName=Jt;var en="DialogClose",ho=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=I(en,n);return h.jsx(L.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});ho.displayName=en;function ze(e){return e?"open":"closed"}var tn="DialogTitleWarning",[Io,nn]=br(tn,{contentName:B,titleName:Ye,docsSlug:"dialog"}),go=({titleId:e})=>{const t=nn(tn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Eo="DialogDescriptionWarning",yo=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nn(Eo).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");
45t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},To=Gt,Ao=Xt,_o=Zt,Fo=qt;export{Fo as C,hn as D,yn as F,_o as O,Dn as P,Ke as R,Be as a,Oo as b,wo as c,No as d,Ro as e,xo as f,So as g,ur as h,Po as i,Se as j,L as k,To as l,Ao as m,Lt as n,q as 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.