PageSourceSearch

https://snippetcloud-ai.lovable.app/assets/vendor-radix-dialog-Bajn-rmU.js

js snippetcloud-ai.lovable.app collected 2026-10-03 03:44:56 UTC 34,177 bytes, 53 lines download raw bytes

vendor: 4,496 bytes, lines 1-9
1import{r as i,a as lt,b as ft,d as Oe}from"./vendor-react-3efCd3Xu.js";var De={exports:{}},z={};/**
2 * @license React
3 * react-jsx-runtime.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var dt=i,vt=Symbol.for("react.element"),mt=Symbol.for("react.fragment"),pt=Object.prototype.hasOwnProperty,ht=dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0};function Ae(e,t,n){var r,o={},a=null,c=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(c=t.ref);for(r in t)pt.call(t,r)&&!gt.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:vt,type:e,key:a,ref:c,props:o,_owner:ht.current}}z.Fragment=mt;z.jsx=Ae;z.jsxs=Ae;De.exports=z;var g=De.exports;function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Te(...e){return t=>{let n=!1;const r=e.map(o=>{const a=pe(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():pe(e[o],null)}}}}function I(...e){return i.useCallback(Te(...e),e)}function yt(e,t){const n=i.createContext(t),r=a=>{const{children:c,...s}=a,d=i.useMemo(()=>s,Object.values(s));return g.jsx(n.Provider,{value:d,children:c})};r.displayName=e+"Provider";function o(a){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Et(e,t=[]){let n=[];function r(a,c){const s=i.createContext(c),d=n.length;n=[...n,c];const u=v=>{var y;const{scope:m,children:h,...w}=v,l=((y=m==null?void 0:m[e])==null?void 0:y[d])||s,p=i.useMemo(()=>w,Object.values(w));return g.jsx(l.Provider,{value:p,children:h})};u.displayName=a+"Provider";function f(v,m){var l;const h=((l=m==null?void 0:m[e])==null?void 0:l[d])||s,w=i.useContext(h);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(c=>i.createContext(c));return function(s){const d=(s==null?void 0:s[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return o.scopeName=e,[r,bt(o,...t)]}function bt(...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(a){const c=r.reduce((s,{useScope:d,scopeName:u})=>{const v=d(a)[`__scope${u}`];return{...s,...v}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function le(e){const t=Ct(e),n=i.forwardRef((r,o)=>{const{children:a,...c}=r,s=i.Children.toArray(a),d=s.find(St);if(d){const u=d.props.children,f=s.map(v=>v===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:v);return g.jsx(t,{...c,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return g.jsx(t,{...c,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var zn=le("Slot");function Ct(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const c=Rt(o),s=wt(a,o.props);return o.type!==i.Fragment&&(s.ref=r?Te(r,c):c),i.cloneElement(o,s)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _e=Symbol("radix.slottable");function Zn(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=_e,t}function St(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_e}function wt(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const d=a(...s);return o(...s),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Rt(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],D=Pt.reduce((e,t)=>
vendor: 13,005 bytes, line 9
9{const n=le(`Primitive.${t}`),r=i.forwardRef((o,a)=>{const{asChild:c,...s}=o,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xt(e,t){e&&lt.flushSync(()=>e.dispatchEvent(t))}function j(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Nt(e,t=globalThis==null?void 0:globalThis.document){const n=j(e);i.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 Ot="DismissableLayer",ce="dismissableLayer.update",Dt="dismissableLayer.pointerDownOutside",At="dismissableLayer.focusOutside",he,Ie=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fe=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...d}=e,u=i.useContext(Ie),[f,v]=i.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=I(t,E=>v(E)),l=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(p),b=f?l.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,R=_t(E=>{const O=E.target,W=[...u.branches].some(J=>J.contains(O));!S||W||(o==null||o(E),c==null||c(E),E.defaultPrevented||s==null||s())},m),N=It(E=>{const O=E.target;[...u.branches].some(J=>J.contains(O))||(a==null||a(E),c==null||c(E),E.defaultPrevented||s==null||s())},m);return Nt(E=>{b===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},m),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(he=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ge(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=he)}},[f,m,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ge())},[f,u]),i.useEffect(()=>{const E=()=>h({});return document.addEventListener(ce,E),()=>document.removeEventListener(ce,E)},[]),g.jsx(D.div,{...d,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,N.onFocusCapture),onBlurCapture:T(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,R.onPointerDownCapture)})});fe.displayName=Ot;var Tt="DismissableLayerBranch",Me=i.forwardRef((e,t)=>{const n=i.useContext(Ie),r=i.useRef(null),o=I(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),g.jsx(D.div,{...e,ref:o})});Me.displayName=Tt;function _t(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let d=function(){Le(Dt,n,u,{discrete:!0})};const u={originalEvent:s};s.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",a)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function It(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Le(At,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ge(){const e=new CustomEvent(ce);document.dispatchEvent(e)}function Le(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xt(o,a):o.dispatchEvent(a)}var qn=fe,Qn=Me,B=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Mt="Portal",Fe=i.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=i.useState(!1);B(()=>a(!0),[]);const c=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?ft.createPortal(g.jsx(D.div,{...r,ref:t}),c):null});Fe.displayName=Mt;function Lt(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Z=e=>{const{present:t,children:n}=e,r=Ft(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=I(r.ref,kt(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Z.displayName="Presence";function Ft(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),c=e?"mounted":"unmounted",[s,d]=Lt(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=U(r.current);a.current=s==="mounted"?u:"none"},[s]),B(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,h=U(u);e?d("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),B(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,v=h=>{const l=U(r.current).includes(h.animationName);if(h.target===t&&l&&(d("ANIMATION_END"),!o.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},m=h=>{h.target===t&&(a.current=U(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function U(e){return(e==null?void 0:e.animationName)||"none"}function kt(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wt=Oe[" useInsertionEffect ".trim().toString()]||B;function jt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,c]=Bt({defaultProp:t,onChange:n}),s=e!==void 0,d=s?e:o;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const v=f.current;v!==s&&console.warn(`${r} is changing from ${v?"controlled":"uncontrolled"} to ${s?"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.`),f.current=s},[s,r])}const u=i.useCallback(f=>{var v;if(s){const m=Ut(f)?f(e):f;m!==e&&((v=c.current)==null||v.call(c,m))}else a(f)},[s,e,a,c]);return[d,u]}function Bt({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return Wt(()=>{a.current=t},[t]),i.useEffect(()=>{var c;o.current!==n&&((c=a.current)==null||c.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Ut(e){return typeof e=="function"}var $t=Oe[" useId ".trim().toString()]||(()=>{}),Vt=0;function ee(e){const[t,n]=i.useState($t());return B(()=>{n(r=>r??String(Vt++))},[e]),t?`radix-${t}`:""}var x=function(){return x=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};function ke(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}function Jn(e,t,n,r){function o(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function s(f){try{u(r.next(f))}catch(v){c(v)}}function d(f){try{u(r.throw(f))}catch(v){c(v)}}function u(f){f.done?a(f.value):o(f.value).then(s,d)}u((r=r.apply(e,t||[])).next())})}function Kt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var te="focusScope.autoFocusOnMount",ne="focusScope.autoFocusOnUnmount",ye={bubbles:!1,cancelable:!0},Gt="FocusScope",We=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[s,d]=i.useState(null),u=j(o),f=j(a),v=i.useRef(null),m=I(t,l=>d(l)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let l=function(C){if(h.paused||!s)return;const S=C.target;s.contains(S)?v.current=S:A(v.current,{select:!0})},p=function(C){if(h.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||A(v.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&A(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",p);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",p),b.disconnect()}}},[r,s,h.paused]),i.useEffect(()=>{if(s){be.add(h);const l=document.activeElement;if(!s.contains(l)){const y=new CustomEvent(te,ye);s.addEventListener(te,u),s.dispatchEvent(y),y.defaultPrevented||(Yt(qt(je(s)),{select:!0}),document.activeElement===l&&A(s))}return()=>{s.removeEventListener(te,u),setTimeout(()=>{const y=new CustomEvent(ne,ye);s.addEventListener(ne,f),s.dispatchEvent(y),y.defaultPrevented||A(l??document.body,{select:!0}),s.removeEventListener(ne,f),be.remove(h)},0)}}},[s,u,f,h]);const w=i.useCallback(l=>{if(!n&&!r||h.paused)return;const p=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(p&&y){const b=l.currentTarget,[C,S]=Ht(b);C&&S?!l.shiftKey&&y===S?(l.preventDefault(),n&&A(C,{select:!0})):l.shiftKey&&y===C&&(l.preventDefault(),n&&A(S,{select:!0})):y===b&&l.preventDefault()}},[n,r,h.paused]);return g.jsx(D.div,{tabIndex:-1,...c,ref:m,onKeyDown:w})});We.displayName=Gt;function Yt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(A(r,{select:t}),document.activeElement!==n)return}function Ht(e){const t=je(e),n=Ee(t,e),r=Ee(t.reverse(),e);return[n,r]}function je(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 Ee(e,t){for(const n of e)if(!Xt(n,{upTo:t}))return n}function Xt(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 zt(e){return e instanceof HTMLInputElement&&"select"in e}function A(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zt(e)&&t&&e.select()}}var be=Zt();function Zt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ce(e,t),e.unshift(t)},remove(t){var n;e=Ce(e,t),(n=e[0])==null||n.resume()}}}function Ce(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qt(e){return e.filter(t=>t.tagName!=="A")}var re=0;function Qt(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Se()),document.body.insertAdjacentElement("beforeend",e[1]??Se()),re++,()=>{re===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),re--}},[])}function Se(){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 Y="right-scroll-bar-position",H="width-before-scroll-bar",Jt="with-scroll-bars-hidden",en="--removed-body-scroll-bar-size";function oe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tn(e,t){var n=i.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"?i.useLayoutEffect:i.useEffect,we=new WeakMap;function rn(e,t){var n=tn(null,function(r){return e.forEach(function(o){return oe(o,r)})});return nn(function(){var r=we.get(n);
vendor: 4,230 bytes, lines 9-24
9if(r){var o=new Set(r),a=new Set(e),c=n.current;o.forEach(function(s){a.has(s)||oe(s,null)}),a.forEach(function(s){o.has(s)||oe(s,c)})}we.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(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(a),c=n}var d=function(){var f=c;c=[],f.forEach(a)},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=x({async:!0,ssr:!1},e),t}var Be=function(e){var t=e.sideCar,n=ke(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 i.createElement(r,x({},n))};Be.isSideCarExport=!0;function cn(e,t){return e.useMedium(t),Be}var Ue=sn(),ae=function(){},q=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),o=r[0],a=r[1],c=e.forwardProps,s=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,v=e.shards,m=e.sideCar,h=e.noRelative,w=e.noIsolation,l=e.inert,p=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,C=e.gapMode,S=ke(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=m,N=rn([n,t]),E=x(x({},S),o);return i.createElement(i.Fragment,null,f&&i.createElement(R,{sideCar:Ue,removeScrollBar:u,shards:v,noRelative:h,noIsolation:w,inert:l,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:C}),c?i.cloneElement(i.Children.only(s),x(x({},E),{ref:N})):i.createElement(b,x({},E,{className:d,ref:N}),s))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};q.classNames={fullWidth:H,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 fn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dn(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())&&(fn(t,n),dn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mn=function(){var e=vn();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$e=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=$e(),k="data-scroll-locked",En=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
10  .`.concat(Jt,` {
11   overflow: hidden `).concat(r,`;
12   padding-right: `).concat(s,"px ").concat(r,`;
13  }
14  body[`).concat(k,`] {
15    overflow: hidden `).concat(r,`;
16    overscroll-behavior: contain;
17    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
18    padding-left: `.concat(o,`px;
19    padding-top: `).concat(a,`px;
20    padding-right: `).concat(c,`px;
21    margin-left:0;
22    margin-top:0;
23    margin-right: `).concat(s,"px ").concat(r,`;
24    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
24")].filter(Boolean).join(""),`
25  }
26  
27  .`).concat(Y,` {
28    right: `).concat(s,"px ").concat(r,`;
29  }
30  
31  .`).concat(H,` {
32    margin-right: `).concat(s,"px ").concat(r,`;
33  }
34  
35  .`).concat(Y," .").concat(Y,` {
36    right: 0 `).concat(r,`;
37  }
38  
39  .`).concat(H," .").concat(H,` {
40    margin-right: 0 `).concat(r,`;
41  }
42  
43  body[`).concat(k,`] {
44    `).concat(en,": ").concat(s,`px;
45  }
46`)},Re=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},bn=function(){i.useEffect(function(){return document.body.setAttribute(k,(Re()+1).toString()),function(){var e=Re()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},Cn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;bn();var a=i.useMemo(function(){return gn(o)},[o]);return i.createElement(yn,{styles:En(a,!t,o,n?"":"!important")})},ue=!1;if(typeof window<"u")try{var $=Object.defineProperty({},"passive",{get:function(){return ue=!0,!0}});window.addEventListener("test",$,$),window.removeEventListener("test",$,$)}catch{ue=!1}var M=ue?{passive:!1}:!1,Sn=function(e){return e.tagName==="TEXTAREA"},Ve=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 Ve(e,"overflowY")},Rn=function(e){return Ve(e,"overflowX")},Pe=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ke(e,r);if(o){var a=Ge(e,r),c=a[1],s=a[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pn=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]},Ke=function(e,t){return e==="v"?wn(t):Rn(t)},Ge=function(e,t){return e==="v"?Pn(t):xn(t)},Nn=function(e,t){return e==="h"&&t==="rtl"?-1:1},On=function(e,t,n,r,o){var a=Nn(e,window.getComputedStyle(t).direction),c=a*r,s=n.target,d=t.contains(s),u=!1,f=c>0,v=0,m=0;do{if(!s)break;var h=Ge(e,s),w=h[0],l=h[1],p=h[2],y=l-p-a*w;(w||y)&&Ke(e,s)&&(v+=y,m+=w);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(f&&(Math.abs(v)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(u=!0),u},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xe=function(e){return[e.deltaX,e.deltaY]},Ne=function(e){return e&&"current"in e?e.current:e},Dn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},An=function(e){return`
47  .block-interactivity-`.concat(e,` {pointer-events: none;}
48  .allow-interactivity-`).concat(e,` {pointer-events: all;}
49`)},Tn=0,L=[];function _n(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Tn++)[0],a=i.useState($e)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var l=Kt([e.lockRef.current],(e.shards||[]).map(Ne),!0).filter(Boolean);return l.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(l,p){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=V(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 O=Pe(E,N);if(!O)return!0;if(O?R=E:(R=E==="v"?"h":"v",O=Pe(E,N)),!O)return!1;if(!r.current&&"changedTouches"in l&&(C||S)&&(r.current=R),!R)return!0;var W=r.current||R;return On(W,p,l,W==="h"?C:S,!0)},[]),d=i.useCallback(function(l){var p=l;if(!(!L.length||L[L.length-1]!==a)){var y="deltaY"in p?xe(p):V(p),b=t.current.filter(function(R){return R.name===p.type&&(R.target===p.target||p.target===R.shadowParent)&&Dn(R.delta,y)})[0];if(b&&b.should){p.cancelable&&p.preventDefault();return}
vendor: 4,284 bytes, line 49
49if(!b){var C=(c.current.shards||[]).map(Ne).filter(Boolean).filter(function(R){return R.contains(p.target)}),S=C.length>0?s(p,C[0]):!c.current.noIsolation;S&&p.cancelable&&p.preventDefault()}}},[]),u=i.useCallback(function(l,p,y,b){var C={name:l,delta:p,target:y,should:b,shadowParent:In(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=i.useCallback(function(l){n.current=V(l),r.current=void 0},[]),v=i.useCallback(function(l){u(l.type,xe(l),l.target,s(l,e.lockRef.current))},[]),m=i.useCallback(function(l){u(l.type,V(l),l.target,s(l,e.lockRef.current))},[]);i.useEffect(function(){return L.push(a),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:m}),document.addEventListener("wheel",d,M),document.addEventListener("touchmove",d,M),document.addEventListener("touchstart",f,M),function(){L=L.filter(function(l){return l!==a}),document.removeEventListener("wheel",d,M),document.removeEventListener("touchmove",d,M),document.removeEventListener("touchstart",f,M)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(a,{styles:An(o)}):null,h?i.createElement(Cn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function In(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mn=cn(Ue,_n);var Ye=i.forwardRef(function(e,t){return i.createElement(q,x({},e,{ref:t,sideCar:Mn}))});Ye.classNames=q.classNames;var Ln=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},F=new WeakMap,K=new WeakMap,G={},se=0,He=function(e){return e&&(e.host||He(e.parentNode))},Fn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=He(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})},kn=function(e,t,n,r){var o=Fn(t,Array.isArray(e)?e:[e]);G[n]||(G[n]=new WeakMap);var a=G[n],c=[],s=new Set,d=new Set(o),u=function(v){!v||s.has(v)||(s.add(v),u(v.parentNode))};o.forEach(u);var f=function(v){!v||d.has(v)||Array.prototype.forEach.call(v.children,function(m){if(s.has(m))f(m);else try{var h=m.getAttribute(r),w=h!==null&&h!=="false",l=(F.get(m)||0)+1,p=(a.get(m)||0)+1;F.set(m,l),a.set(m,p),c.push(m),l===1&&w&&K.set(m,!0),p===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),se++,function(){c.forEach(function(v){var m=F.get(v)-1,h=a.get(v)-1;F.set(v,m),a.set(v,h),m||(K.has(v)||v.removeAttribute(r),K.delete(v)),h||v.removeAttribute(n)}),se--,se||(F=new WeakMap,F=new WeakMap,K=new WeakMap,G={})}},Wn=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]"))),kn(r,o,n,"aria-hidden")):function(){return null}},Q="Dialog",[Xe,er]=Et(Q),[jn,P]=Xe(Q),ze=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,s=i.useRef(null),d=i.useRef(null),[u,f]=jt({prop:r,defaultProp:o??!1,onChange:a,caller:Q});return g.jsx(jn,{scope:t,triggerRef:s,contentRef:d,contentId:ee(),titleId:ee(),descriptionId:ee(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(v=>!v),[f]),modal:c,children:n})};ze.displayName=Q;var Ze="DialogTrigger",qe=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(Ze,n),a=I(t,o.triggerRef);return g.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":me(o.open),...r,ref:a,onClick:T(e.onClick,o.onOpenToggle)})});qe.displayName=Ze;var de="DialogPortal",[Bn,Qe]=Xe(de,{forceMount:void 0}),Je=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=P(de,t);return g.jsx(Bn,{scope:t,forceMount:n,children:i.Children.map(r,c=>g.jsx(Z,{present:n||a.open,children:g.jsx(Fe,{asChild:!0,container:o,children:c})}))})};Je.displayName=de;var X="DialogOverlay",et=i.forwardRef((e,t)=>{const n=Qe(X,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=P(X,e.__scopeDialog);return a.modal?g.jsx(Z,{present:r||a.open,children:g.jsx($n,{...o,ref:t})}):null});et.displayName=X;var Un=le("DialogOverlay.RemoveScroll"),$n=i.forwardRef((e,t)=>
vendor: 3,985 bytes, lines 49-53
49{const{__scopeDialog:n,...r}=e,o=P(X,n);return g.jsx(Ye,{as:Un,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(D.div,{"data-state":me(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),_="DialogContent",tt=i.forwardRef((e,t)=>{const n=Qe(_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=P(_,e.__scopeDialog);return g.jsx(Z,{present:r||a.open,children:a.modal?g.jsx(Vn,{...o,ref:t}):g.jsx(Kn,{...o,ref:t})})});tt.displayName=_;var Vn=i.forwardRef((e,t)=>{const n=P(_,e.__scopeDialog),r=i.useRef(null),o=I(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return Wn(a)},[]),g.jsx(nt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&a.preventDefault()}),onFocusOutside:T(e.onFocusOutside,a=>a.preventDefault())})}),Kn=i.forwardRef((e,t)=>{const n=P(_,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return g.jsx(nt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var c,s;(c=e.onCloseAutoFocus)==null||c.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),nt=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...c}=e,s=P(_,n),d=i.useRef(null),u=I(t,d);return Qt(),g.jsxs(g.Fragment,{children:[g.jsx(We,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:g.jsx(fe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":me(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(Gn,{titleId:s.titleId}),g.jsx(Hn,{contentRef:d,descriptionId:s.descriptionId})]})]})}),ve="DialogTitle",rt=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(ve,n);return g.jsx(D.h2,{id:o.titleId,...r,ref:t})});rt.displayName=ve;var ot="DialogDescription",at=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(ot,n);return g.jsx(D.p,{id:o.descriptionId,...r,ref:t})});at.displayName=ot;var it="DialogClose",st=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=P(it,n);return g.jsx(D.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})});st.displayName=it;function me(e){return e?"open":"closed"}var ct="DialogTitleWarning",[tr,ut]=yt(ct,{contentName:_,titleName:ve,docsSlug:"dialog"}),Gn=({titleId:e})=>{const t=ut(ct),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
50
51If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
52
53For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Yn="DialogDescriptionWarning",Hn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ut(Yn).contentName}}.`;return i.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nr=ze,rr=qe,or=Je,ar=et,ir=tt,sr=rt,cr=at,ur=st;export{Qn as B,ir as C,fe as D,We as F,ar as O,D as P,Ye as R,zn as S,sr as T,tr as W,Jn as _,le as a,B as b,Et as c,j as d,jt as e,T as f,ee as g,Z as h,Wn as i,g as j,Qt as k,Te as l,xt as m,Fe as n,Zn as o,qn as p,ke as q,nr as r,or as s,ur as t,I as u,cr as v,rr as w,er as x};

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.