vendor: 8,266 bytes, line 1
1import{r as a,j as m,v as De,k as lt,l as dt}from"./vendor-xyflow-C6mtc78y.js";import{c as ft,b as Pe,u as M,a as W}from"./button-C9oBKpST.js";import{_ as O,a as Oe,b as vt}from"./client-D2Pf9LGg.js";const mt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pt=ft("x",mt);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ht(e,t){const n=a.createContext(t),r=s=>{const{children:c,...i}=s,d=a.useMemo(()=>i,Object.values(i));return m.jsx(n.Provider,{value:d,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 gt(e,t=[]){let n=[];function r(s,c){const i=a.createContext(c),d=n.length;n=[...n,c];const u=v=>{const{scope:p,children:g,...w}=v,l=p?.[e]?.[d]||i,h=a.useMemo(()=>w,Object.values(w));return m.jsx(l.Provider,{value:h,children:g})};u.displayName=s+"Provider";function f(v,p){const g=p?.[e]?.[d]||i,w=a.useContext(g);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(c=>a.createContext(c));return function(i){const d=i?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return o.scopeName=e,[r,yt(o,...t)]}function yt(...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:d,scopeName:u})=>{const v=d(s)[`__scope${u}`];return{...i,...v}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var $=globalThis?.document?a.useLayoutEffect:()=>{},Et=De[" useId ".trim().toString()]||(()=>{}),bt=0;function te(e){const[t,n]=a.useState(Et());return $(()=>{n(r=>r??String(bt++))},[e]),t?`radix-${t}`:""}var Ct=De[" useInsertionEffect ".trim().toString()]||$;function St({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=wt({defaultProp:t,onChange:n}),i=e!==void 0,d=i?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const v=f.current;if(v!==i){const p=v?"controlled":"uncontrolled",g=i?"controlled":"uncontrolled"}f.current=i},[i,r])}const u=a.useCallback(f=>{if(i){const v=Rt(f)?f(e):f;v!==e&&c.current?.(v)}else s(f)},[i,e,s,c]);return[d,u]}function wt({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Ct(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Rt(e){return typeof e=="function"}function Nt(e){const t=xt(e),n=a.forwardRef((r,o)=>{const{children:s,...c}=r,i=a.Children.toArray(s),d=i.find(Pt);if(d){const u=d.props.children,f=i.map(v=>v===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:v);return m.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return m.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function xt(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const c=At(o),i=Ot(s,o.props);return o.type!==a.Fragment&&(i.ref=r?Pe(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 Dt=Symbol("radix.slottable");function Pt(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dt}function Ot(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 d=s(...i);return o(...i),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function At(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 Tt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],D=Tt.reduce((e,t)=>{const n=Nt(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:c,...i}=o,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(d,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function It(e,t){e&<.flushSync(()=>e.dispatchEvent(t))}function U(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Mt(e,t=globalThis?.document){const n=U(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 _t="DismissableLayer",ue="dismissableLayer.update",Lt="dismissableLayer.pointerDownOutside",Ft="dismissableLayer.focusOutside",pe,Ae=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Te=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:i,...d}=e,u=a.useContext(Ae),[f,v]=a.useState(null),p=f?.ownerDocument??globalThis?.document,[,g]=a.useState({}),w=M(t,E=>v(E)),l=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(h),b=f?l.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,R=Wt(E=>{const T=E.target,_=[...u.branches].some(B=>B.contains(T));!S||_||(o?.(E),c?.(E),E.defaultPrevented||i?.())},p),N=Bt(E=>{const T=E.target;[...u.branches].some(B=>B.contains(T))||(s?.(E),c?.(E),E.defaultPrevented||i?.())},p);return Mt(E=>{b===u.layers.size-1&&(r?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},p),a.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(pe=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),he(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=pe)}},[f,p,n,u]),a.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),he())},[f,u]),a.useEffect(()=>{const E=()=>g({});return document.addEventListener(ue,E),()=>document.removeEventListener(ue,E)},[]),m.jsx(D.div,{...d,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,N.onFocusCapture),onBlurCapture:A(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,R.onPointerDownCapture)})});Te.displayName=_t;var kt="DismissableLayerBranch",jt=a.forwardRef((e,t)=>{const n=a.useContext(Ae),r=a.useRef(null),o=M(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(D.div,{...e,ref:o})});jt.displayName=kt;function Wt(e,t=globalThis?.document){const n=U(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let d=function(){Ie(Lt,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}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 Bt(e,t=globalThis?.document){const n=U(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ie(Ft,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 he(){const e=new CustomEvent(ue);document.dispatchEvent(e)}function Ie(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?It(o,s):o.dispatchEvent(s)}var ne="focusScope.autoFocusOnMount",re="focusScope.autoFocusOnUnmount",ge={bubbles:!1,cancelable:!0},$t="FocusScope",Me=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}
vendor: 5,623 bytes, line 1
1=e,[i,d]=a.useState(null),u=U(o),f=U(s),v=a.useRef(null),p=M(t,l=>d(l)),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let l=function(C){if(g.paused||!i)return;const S=C.target;i.contains(S)?v.current=S:P(v.current,{select:!0})},h=function(C){if(g.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||P(v.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&P(i)};document.addEventListener("focusin",l),document.addEventListener("focusout",h);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",h),b.disconnect()}}},[r,i,g.paused]),a.useEffect(()=>{if(i){Ee.add(g);const l=document.activeElement;if(!i.contains(l)){const y=new CustomEvent(ne,ge);i.addEventListener(ne,u),i.dispatchEvent(y),y.defaultPrevented||(Ut(zt(_e(i)),{select:!0}),document.activeElement===l&&P(i))}return()=>{i.removeEventListener(ne,u),setTimeout(()=>{const y=new CustomEvent(re,ge);i.addEventListener(re,f),i.dispatchEvent(y),y.defaultPrevented||P(l??document.body,{select:!0}),i.removeEventListener(re,f),Ee.remove(g)},0)}}},[i,u,f,g]);const w=a.useCallback(l=>{if(!n&&!r||g.paused)return;const h=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(h&&y){const b=l.currentTarget,[C,S]=Vt(b);C&&S?!l.shiftKey&&y===S?(l.preventDefault(),n&&P(C,{select:!0})):l.shiftKey&&y===C&&(l.preventDefault(),n&&P(S,{select:!0})):y===b&&l.preventDefault()}},[n,r,g.paused]);return m.jsx(D.div,{tabIndex:-1,...c,ref:p,onKeyDown:w})});Me.displayName=$t;function Ut(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(P(r,{select:t}),document.activeElement!==n)return}function Vt(e){const t=_e(e),n=ye(t,e),r=ye(t.reverse(),e);return[n,r]}function _e(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 ye(e,t){for(const n of e)if(!Ht(n,{upTo:t}))return n}function Ht(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 Kt(e){return e instanceof HTMLInputElement&&"select"in e}function P(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Kt(e)&&t&&e.select()}}var Ee=Gt();function Gt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=be(e,t),e.unshift(t)},remove(t){e=be(e,t),e[0]?.resume()}}}function be(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zt(e){return e.filter(t=>t.tagName!=="A")}var Xt="Portal",Le=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=a.useState(!1);$(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?dt.createPortal(m.jsx(D.div,{...r,ref:t}),c):null});Le.displayName=Xt;function Yt(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var Q=e=>{const{present:t,children:n}=e,r=Zt(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=M(r.ref,qt(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};Q.displayName="Presence";function Zt(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),c=e?"mounted":"unmounted",[i,d]=Yt(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=H(r.current);s.current=i==="mounted"?u:"none"},[i]),$(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,g=H(u);e?d("MOUNT"):g==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),$(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,v=g=>{const l=H(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&l&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=g=>{g.target===t&&(s.current=H(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function H(e){return e?.animationName||"none"}function qt(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 oe=0;function Qt(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ce()),document.body.insertAdjacentElement("beforeend",e[1]??Ce()),oe++,()=>{oe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oe--}},[])}function Ce(){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,888 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var Y="right-scroll-bar-position",Z="width-before-scroll-bar",Jt="with-scroll-bars-hidden",en="--removed-body-scroll-bar-size";function ae(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tn(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 nn=typeof window<"u"?a.useLayoutEffect:a.useEffect,Se=new WeakMap;function rn(e,t){var n=tn(null,function(r){return e.forEach(function(o){return ae(o,r)})});return nn(function(){var r=Se.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(i){s.has(i)||ae(i,null)}),s.forEach(function(i){o.has(i)||ae(i,c)})}Se.set(n,e)},[e]),n}function on(e){return e}function an(e,t){t===void 0&&(t=on);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 d=function(){var f=c;c=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){c.push(f),u()},filter:function(f){return c=c.filter(f),n}}}};return o}function sn(e){e===void 0&&(e={});var t=an(null);return t.options=O({async:!0,ssr:!1},e),t}var Fe=function(e){var t=e.sideCar,n=Oe(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,O({},n))};Fe.isSideCarExport=!0;function cn(e,t){return e.useMedium(t),Fe}var ke=sn(),se=function(){},J=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:se,onWheelCapture:se,onTouchMoveCapture:se}),o=r[0],s=r[1],c=e.forwardProps,i=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,v=e.shards,p=e.sideCar,g=e.noRelative,w=e.noIsolation,l=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,C=e.gapMode,S=Oe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,N=rn([n,t]),E=O(O({},S),o);return a.createElement(a.Fragment,null,f&&a.createElement(R,{sideCar:ke,removeScrollBar:u,shards:v,noRelative:g,noIsolation:w,inert:l,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:C}),c?a.cloneElement(a.Children.only(i),O(O({},E),{ref:N})):a.createElement(b,O({},E,{className:d,ref:N}),i))});J.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};J.classNames={fullWidth:Z,zeroRight:Y};var un=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ln(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=un();return t&&e.setAttribute("nonce",t),e}function dn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ln())&&(dn(t,n),fn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mn=function(){var e=vn();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},je=function(){var e=mn(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},pn={left:0,top:0,right:0,gap:0},ie=function(e){return parseInt(e||"",10)||0},hn=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[ie(n),ie(r),ie(o)]},gn=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pn;var t=hn(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])}},yn=je(),j="data-scroll-locked",En=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(Jt,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(i,"px ").concat(r,`; 5 } 6 body[`).concat(j,`] { 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(Y,` { 20 right: `).concat(i,"px ").concat(r,`; 21 } 22 23 .`).concat(Z,` { 24 margin-right: `).concat(i,"px ").concat(r,`; 25 } 26 27 .`).concat(Y," .").concat(Y,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(Z," .").concat(Z,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(j,`] { 36 `).concat(en,": ").concat(i,`px; 37 } 38`)},we=function(){var e=parseInt(document.body.getAttribute(j)||"0",10);return isFinite(e)?e:0},bn=function(){a.useEffect(function(){return document.body.setAttribute(j,(we()+1).toString()),function(){var e=we()-1;e<=0?document.body.removeAttribute(j):document.body.setAttribute(j,e.toString())}},[])},Cn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;bn();var s=a.useMemo(function(){return gn(o)},[o]);return a.createElement(yn,{styles:En(s,!t,o,n?"":"!important")})},le=!1;if(typeof window<"u")try{var K=Object.defineProperty({},"passive",{get:function(){return le=!0,!0}});window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch{le=!1}var L=le?{passive:!1}:!1,Sn=function(e){return e.tagName==="TEXTAREA"},We=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sn(e)&&n[t]==="visible")},wn=function(e){return We(e,"overflowY")},Rn=function(e){return We(e,"overflowX")},Re=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Be(e,r);if(o){var s=$e(e,r),c=s[1],i=s[2];if(c>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nn=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xn=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Be=function(e,t){return e==="v"?wn(t):Rn(t)},$e=function(e,t){return e==="v"?Nn(t):xn(t)},Dn=function(e,t){return e==="h"&&t==="rtl"?-1:1},Pn=function(e,t,n,r,o){var s=Dn(e,window.getComputedStyle(t).direction),c=s*r,i=n.target,d=t.contains(i),u=!1,f=c>0,v=0,p=0;do{if(!i)break;var g=$e(e,i),w=g[0],l=g[1],h=g[2],y=l-h-s*w;(w||y)&&Be(e,i)&&(v+=y,p+=w);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&i!==document.body||d&&(t.contains(i)||t===i));return(f&&Math.abs(v)<1||!f&&Math.abs(p)<1)&&(u=!0),u},G=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ne=function(e){return[e.deltaX,e.deltaY]},xe=function(e){return e&&"current"in e?e.current:e},On=function(e,t){return e[0]===t[0]&&e[1]===t[1]},An=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Tn=0,F=[];function In(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Tn++)[0],s=a.useState(je)[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 l=vt([e.lockRef.current],(e.shards||[]).map(xe),!0).filter(Boolean);return l.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=a.useCallback(function(l,h){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=G(l),b=n.current,C="deltaX"in l?l.deltaX:b[0]-y[0],S="deltaY"in l?l.deltaY:b[1]-y[1],R,N=l.target,E=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in l&&E==="h"&&N.type==="range")return!1;var T=window.getSelection(),_=T&&T.anchorNode,B=_?_===N||_.contains(N):!1;if(B)return!1;var V=Re(E,N);if(!V)return!0;if(V?R=E:(R=E==="v"?"h":"v",V=Re(E,N)),!V)return!1;if(!r.current&&"changedTouches"in l&&(C||S)&&(r.current=R),!R)return!0;var me=r.current||R;return Pn(me,h,l,me==="h"?C:S)},[]),d=a.useCallback(function(l){var h=l;if(!(!F.length||F[F.length-1]!==s)){var y="deltaY"in h?Ne(h):G(h),b=t.current.filter(function(R){return R.name===h.type&&(R.target===h.target||h.target===R.shadowParent)&&On(R.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}
vendor: 4,662 bytes, line 41
41if(!b){var C=(c.current.shards||[]).map(xe).filter(Boolean).filter(function(R){return R.contains(h.target)}),S=C.length>0?i(h,C[0]):!c.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),u=a.useCallback(function(l,h,y,b){var C={name:l,delta:h,target:y,should:b,shadowParent:Mn(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=a.useCallback(function(l){n.current=G(l),r.current=void 0},[]),v=a.useCallback(function(l){u(l.type,Ne(l),l.target,i(l,e.lockRef.current))},[]),p=a.useCallback(function(l){u(l.type,G(l),l.target,i(l,e.lockRef.current))},[]);a.useEffect(function(){return F.push(s),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:p}),document.addEventListener("wheel",d,L),document.addEventListener("touchmove",d,L),document.addEventListener("touchstart",f,L),function(){F=F.filter(function(l){return l!==s}),document.removeEventListener("wheel",d,L),document.removeEventListener("touchmove",d,L),document.removeEventListener("touchstart",f,L)}},[]);var g=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:An(o)}):null,g?a.createElement(Cn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _n=cn(ke,In);var Ue=a.forwardRef(function(e,t){return a.createElement(J,O({},e,{ref:t,sideCar:_n}))});Ue.classNames=J.classNames;var Ln=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},k=new WeakMap,z=new WeakMap,X={},ce=0,Ve=function(e){return e&&(e.host||Ve(e.parentNode))},Fn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ve(n);return r&&e.contains(r)?r:null}).filter(function(n){return!!n})},kn=function(e,t,n,r){var o=Fn(t,Array.isArray(e)?e:[e]);X[n]||(X[n]=new WeakMap);var s=X[n],c=[],i=new Set,d=new Set(o),u=function(v){!v||i.has(v)||(i.add(v),u(v.parentNode))};o.forEach(u);var f=function(v){!v||d.has(v)||Array.prototype.forEach.call(v.children,function(p){if(i.has(p))f(p);else try{var g=p.getAttribute(r),w=g!==null&&g!=="false",l=(k.get(p)||0)+1,h=(s.get(p)||0)+1;k.set(p,l),s.set(p,h),c.push(p),l===1&&w&&z.set(p,!0),h===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch{}})};return f(t),i.clear(),ce++,function(){c.forEach(function(v){var p=k.get(v)-1,g=s.get(v)-1;k.set(v,p),s.set(v,g),p||(z.has(v)||v.removeAttribute(r),z.delete(v)),g||v.removeAttribute(n)}),ce--,ce||(k=new WeakMap,k=new WeakMap,z=new WeakMap,X={})}},jn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ln(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),kn(r,o,n,"aria-hidden")):function(){return null}};function Wn(e){const t=Bn(e),n=a.forwardRef((r,o)=>{const{children:s,...c}=r,i=a.Children.toArray(s),d=i.find(Un);if(d){const u=d.props.children,f=i.map(v=>v===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:v);return m.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return m.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Bn(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const c=Hn(o),i=Vn(s,o.props);return o.type!==a.Fragment&&(i.ref=r?Pe(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 $n=Symbol("radix.slottable");function Un(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$n}function Vn(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 d=s(...i);return o(...i),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Hn(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 ee="Dialog",[He]=gt(ee),[Kn,x]=He(ee),Ke=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,i=a.useRef(null),d=a.useRef(null),[u,f]=St({prop:r,defaultProp:o??!1,onChange:s,caller:ee});return m.jsx(Kn,{scope:t,triggerRef:i,contentRef:d,contentId:te(),titleId:te(),descriptionId:te(),open:u,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(v=>!v),[f]),modal:c,children:n})};Ke.displayName=ee;var Ge="DialogTrigger",Gn=a.forwardRef((e,t)=>
vendor: 5,380 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=x(Ge,n),s=M(t,o.triggerRef);return m.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ve(o.open),...r,ref:s,onClick:A(e.onClick,o.onOpenToggle)})});Gn.displayName=Ge;var de="DialogPortal",[zn,ze]=He(de,{forceMount:void 0}),Xe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=x(de,t);return m.jsx(zn,{scope:t,forceMount:n,children:a.Children.map(r,c=>m.jsx(Q,{present:n||s.open,children:m.jsx(Le,{asChild:!0,container:o,children:c})}))})};Xe.displayName=de;var q="DialogOverlay",Ye=a.forwardRef((e,t)=>{const n=ze(q,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=x(q,e.__scopeDialog);return s.modal?m.jsx(Q,{present:r||s.open,children:m.jsx(Yn,{...o,ref:t})}):null});Ye.displayName=q;var Xn=Wn("DialogOverlay.RemoveScroll"),Yn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(q,n);return m.jsx(Ue,{as:Xn,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(D.div,{"data-state":ve(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",Ze=a.forwardRef((e,t)=>{const n=ze(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=x(I,e.__scopeDialog);return m.jsx(Q,{present:r||s.open,children:s.modal?m.jsx(Zn,{...o,ref:t}):m.jsx(qn,{...o,ref:t})})});Ze.displayName=I;var Zn=a.forwardRef((e,t)=>{const n=x(I,e.__scopeDialog),r=a.useRef(null),o=M(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return jn(s)},[]),m.jsx(qe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,i=c.button===0&&c.ctrlKey===!0;(c.button===2||i)&&s.preventDefault()}),onFocusOutside:A(e.onFocusOutside,s=>s.preventDefault())})}),qn=a.forwardRef((e,t)=>{const n=x(I,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return m.jsx(qe,{...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()}})}),qe=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,i=x(I,n),d=a.useRef(null),u=M(t,d);return Qt(),m.jsxs(m.Fragment,{children:[m.jsx(Me,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:m.jsx(Te,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ve(i.open),...c,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Qn,{titleId:i.titleId}),m.jsx(er,{contentRef:d,descriptionId:i.descriptionId})]})]})}),fe="DialogTitle",Qe=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(fe,n);return m.jsx(D.h2,{id:o.titleId,...r,ref:t})});Qe.displayName=fe;var Je="DialogDescription",et=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(Je,n);return m.jsx(D.p,{id:o.descriptionId,...r,ref:t})});et.displayName=Je;var tt="DialogClose",nt=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=x(tt,n);return m.jsx(D.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});nt.displayName=tt;function ve(e){return e?"open":"closed"}var rt="DialogTitleWarning",[vr,ot]=ht(rt,{contentName:I,titleName:fe,docsSlug:"dialog"}),Qn=({titleId:e})=>{const t=ot(rt),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(()=>{if(e){const r=document.getElementById(e)}},[n,e]),null},Jn="DialogDescriptionWarning",er=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ot(Jn).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");if(t&&o){const s=document.getElementById(t)}},[r,e,t]),null},tr=Ke,nr=Xe,at=Ye,st=Ze,it=Qe,ct=et,rr=nt;const mr=tr,or=nr,ut=a.forwardRef(({className:e,...t},n)=>m.jsx(at,{ref:n,className:W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ut.displayName=at.displayName;const ar=a.forwardRef(({className:e,children:t,overlayClassName:n,showCloseButton:r=!0,...o},s)=>m.jsxs(or,{children:[m.jsx(ut,{className:n}),m.jsxs(st,{ref:s,className:W("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
45nded-lg",e),...o,children:[t,r&&m.jsxs(rr,{className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:pointer-events-none",children:[m.jsx(pt,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ar.displayName=st.displayName;const sr=({className:e,...t})=>m.jsx("div",{className:W("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});sr.displayName="DialogHeader";const ir=({className:e,...t})=>m.jsx("div",{className:W("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ir.displayName="DialogFooter";const cr=a.forwardRef(({className:e,...t},n)=>m.jsx(it,{ref:n,className:W("text-lg font-semibold leading-none tracking-tight",e),...t}));cr.displayName=it.displayName;const ur=a.forwardRef(({className:e,...t},n)=>m.jsx(ct,{ref:n,className:W("text-sm text-muted-foreground",e),...t}));ur.displayName=ct.displayName;export{st as C,mr as D,Me as F,at as O,D as P,Ue as R,it as T,pt as X,ar as a,sr as b,cr as c,ur as d,ir as e,gt as f,te as g,A as h,St as i,U as j,Q as k,Qt as l,Te as m,jn as n,It as o,nr as p,rr as q,ct as r,tr as s,$ as u}; 46//# sourceMappingURL=dialog-B7l1kUt1.js.map
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.