PageSourceSearch

https://smartkredit.ai/assets/ui-components-DxhxuCpf.js

js smartkredit.ai collected 2026-10-05 14:21:07 UTC 102,721 bytes, 53 lines download raw bytes

vendor: 22,661 bytes, lines 1-9
1import{r as l,R as z,a as ht,b as Fi,c as eo}from"./react-vendor-CkR_CRi0.js";var to={exports:{}},vt={};/**
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 ki=l,$i=Symbol.for("react.element"),Bi=Symbol.for("react.fragment"),Wi=Object.prototype.hasOwnProperty,Vi=ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hi={key:!0,ref:!0,__self:!0,__source:!0};function no(e,t,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)Wi.call(t,o)&&!Hi.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:$i,type:e,key:i,ref:s,props:r,_owner:Vi.current}}vt.Fragment=Bi;vt.jsx=no;vt.jsxs=no;to.exports=vt;var w=to.exports;function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function On(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oo(...e){return t=>{let n=!1;const o=e.map(r=>{const i=On(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():On(e[r],null)}}}}function K(...e){return l.useCallback(oo(...e),e)}function Ui(e,t){const n=l.createContext(t),o=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:u,children:s})};o.displayName=e+"Provider";function r(i){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function be(e,t=[]){let n=[];function o(i,s){const a=l.createContext(s),u=n.length;n=[...n,s];const c=p=>{var y;const{scope:v,children:m,...b}=p,d=((y=v==null?void 0:v[e])==null?void 0:y[u])||a,h=l.useMemo(()=>b,Object.values(b));return w.jsx(d.Provider,{value:h,children:m})};c.displayName=i+"Provider";function f(p,v){var d;const m=((d=v==null?void 0:v[e])==null?void 0:d[u])||a,b=l.useContext(m);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,f]}const r=()=>{const i=n.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[o,Ki(r,...t)]}function Ki(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Me(e){const t=zi(e),n=l.forwardRef((o,r)=>{const{children:i,...s}=o,a=l.Children.toArray(i),u=a.find(Gi);if(u){const c=u.props.children,f=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return w.jsx(t,{...s,ref:r,children:l.isValidElement(c)?l.cloneElement(c,void 0,f):null})}return w.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var Bl=Me("Slot");function zi(e){const t=l.forwardRef((n,o)=>{const{children:r,...i}=n;if(l.isValidElement(r)){const s=Xi(r),a=Yi(i,r.props);return r.type!==l.Fragment&&(a.ref=o?oo(o,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ro=Symbol("radix.slottable");function Wl(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ro,t}function Gi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ro}function Yi(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{const u=i(...a);return r(...a),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Xi(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function on(e){const t=e+"CollectionProvider",[n,o]=be(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=d=>{const{scope:h,children:y}=d,g=z.useRef(null),x=z.useRef(new Map).current;return w.jsx(r,{scope:h,itemMap:x,collectionRef:g,children:y})};s.displayName=t;const a=e+"CollectionSlot",u=Me(a),c=z.forwardRef((d,h)=>{const{scope:y,children:g}=d,x=i(a,y),S=K(h,x.collectionRef);return w.jsx(u,{ref:S,children:g})});c.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=Me(f),m=z.forwardRef((d,h)=>{const{scope:y,children:g,...x}=d,S=z.useRef(null),C=K(h,S),R=i(f,y);return z.useEffect(()=>(R.itemMap.set(S,{ref:S,...x}),()=>void R.itemMap.delete(S))),w.jsx(v,{[p]:"",ref:C,children:g})});m.displayName=f;function b(d){const h=i(e+"CollectionConsumer",d);return z.useCallback(()=>{const g=h.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((R,E)=>x.indexOf(R.ref.current)-x.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},b,o]}var qi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=qi.reduce((e,t)=>{const n=Me(`Primitive.${t}`),o=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Zi(e,t){e&&ht.flushSync(()=>e.dispatchEvent(t))}function ve(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Qi(e,t=globalThis==null?void 0:globalThis.document){const n=ve(e);l.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Ji="DismissableLayer",Ht="dismissableLayer.update",es="dismissableLayer.pointerDownOutside",ts="dismissableLayer.focusOutside",In,io=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(io),[f,p]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),b=K(t,E=>p(E)),d=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(h),g=f?d.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=g>=y,C=os(E=>{const P=E.target,D=[...c.branches].some(I=>I.contains(P));!S||D||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},v),R=rs(E=>{const P=E.target;[...c.branches].some(I=>I.contains(P))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},v);return Qi(E=>{g===c.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},v),l.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(In=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Nn(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=In)}},[f,v,n,c]),l.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Nn())},[f,c]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Ht,E),()=>document.removeEventListener(Ht,E)},[]),w.jsx(O.div,{...u,ref:b,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,R.onFocusCapture),onBlurCapture:N(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,C.onPointerDownCapture)})});gt.displayName=Ji;var ns="DismissableLayerBranch",so=l.forwardRef((e,t)=>{const n=l.useContext(io),o=l.useRef(null),r=K(t,o);return l.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(O.div,{...e,ref:r})});so.displayName=ns;function os(e,t=globalThis==null?void 0:globalThis.document){const n=ve(e),o=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let u=function(){ao(es,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function rs(e,t=globalThis==null?void 0:globalThis.document){const n=ve(e),o=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!o.current&&ao(ts,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Nn(){const e=new CustomEvent(Ht);document.dispatchEvent(e)}function ao(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Zi(r,i):r.dispatchEvent(i)}var Vl=gt,Hl=so,G=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},is="Portal",rn=l.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,i]=l.useState(!1);G(()=>i(!0),[]);const s=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Fi.createPortal(w.jsx(O.div,{...o,ref:t}),s):null});rn.displayName=is;function ss(e,t){return l.useReducer((n,o)=>t[n][o]??n,e)}var Fe=e=>{const{present:t,children:n}=e,o=as(t),r=typeof n=="function"?n({present:o.isPresent}):l.Children.only(n),i=K(o.ref,cs(r));return typeof n=="function"||o.isPresent?l.cloneElement(r,{ref:i}):null};Fe.displayName="Presence";function as(e){const[t,n]=l.useState(),o=l.useRef(null),r=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ss(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=Qe(o.current);i.current=a==="mounted"?c:"none"},[a]),G(()=>{const c=o.current,f=r.current;if(f!==e){const v=i.current,m=Qe(c);e?u("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),G(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,p=m=>{const d=Qe(o.current).includes(m.animationName);if(m.target===t&&d&&(u("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=m=>{m.target===t&&(i.current=Qe(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{o.current=c?getComputedStyle(c):null,n(c)},[])}}function Qe(e){return(e==null?void 0:e.animationName)||"none"}function cs(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ls=eo[" useInsertionEffect ".trim().toString()]||G;function ge({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,s]=us({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:r;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${o} is changing from ${p?"controlled":"uncontrolled"} to ${a?"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=a},[a,o])}const c=l.useCallback(f=>{var p;if(a){const v=fs(f)?f(e):f;v!==e&&((p=s.current)==null||p.call(s,v))}else i(f)},[a,e,i,s]);return[u,c]}function us({defaultProp:e,onChange:t}){const[n,o]=l.useState(e),r=l.useRef(n),i=l.useRef(t);return ls(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==n&&((s=i.current)==null||s.call(i,n),r.current=n)},[n,r]),[n,o,i]}function fs(e){return typeof e=="function"}var co=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ds="VisuallyHidden",lo=l.forwardRef((e,t)=>w.jsx(O.span,{...e,ref:t,style:{...co,...e.style}}));lo.displayName=ds;var Ul=lo,ps=eo[" useId ".trim().toString()]||(()=>{}),ms=0;function ae(e){const[t,n]=l.useState(ps());return G(()=>{n(o=>o??String(ms++))},[e]),t?`radix-${t}`:""}const hs=["top","right","bottom","left"],ye=Math.min,Z=Math.max,at=Math.round,Je=Math.floor,ce=e=>({x:e,y:e}),vs={left:"right",right:"left",bottom:"top",top:"bottom"},gs={start:"end",end:"start"};function Ut(e,t,n){return Z(e,ye(t,n))}function de(e,t){return typeof e=="function"?e(t):e}function pe(e){return e.split("-")[0]}function ke(e){return e.split("-")[1]}function sn(e){return e==="x"?"y":"x"}function an(e){return e==="y"?"height":"width"}const ys=new Set(["top","bottom"]);function se(e){return ys.has(pe(e))?"y":"x"}function cn(e){return sn(se(e))}function ws(e,t,n){n===void 0&&(n=!1);const o=ke(e),r=cn(e),i=an(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ct(s)),[s,ct(s)]}function bs(e){const t=ct(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.replace(/start|end/g,t=>gs[t])}const Dn=["left","right"],Mn=["right","left"],xs=["top","bottom"],Ss=["bottom","top"];function Cs(e,t,n){switch(e){case"top":case"bottom":return n?t?Mn:Dn:t?Dn:Mn;case"left":case"right":return t?xs:Ss;default:return[]}}function Es(e,t,n,o){const r=ke(e);let i=Cs(pe(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Kt)))),i}function ct(e){return e.replace(/left|right|bottom|top/g,t=>vs[t])}function Rs(e){return{top:0,right:0,bottom:0,left:0,...e}}function uo(e){return typeof e!="number"?Rs(e):{top:e,right:e,bottom:e,left:e}}function lt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function jn(e,t,n){let{reference:o,floating:r}=e;const i=se(t),s=cn(t),a=an(s),u=pe(t),c=i==="y",f=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,v=o[a]/2-r[a]/2;let m;switch(u){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}switch(ke(t)){case"start":m[s]-=v*(n&&c?-1:1);break;case"end":m[s]+=v*(n&&c?-1:1);break}return m}const Ps=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=jn(c,o,u),v=o,m={},b=0;for(let d=0;d<a.length;d++){const{name:h,fn:y}=a[d],{x:g,y:x,data:S,reset:C}=await y({x:f,y:p,initialPlacement:o,placement:v,strategy:r,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});f=g??f,p=x??p,m={...m,[h]:{...m[h],...S}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:f,y:p}=jn(c,v,u)),d=-1)}return{x:f,y:p,placement:v,strategy:r,middlewareData:m}};async function Ge(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:m=0}=de(t,e),b=uo(m),h=a[v?p==="floating"?"reference":"floating":p],y=lt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:u})),g=p==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:u}):g);return{top:(y.top-C.top+b.top)/S.y,bottom:(C.bottom-y.bottom+b.bottom)/S.y,left:(y.left-C.left+b.left)/S.x,right:(C.right-y.right+b.right)/S.x}}const As=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:f=0}=de(e,t)||{};if(c==null)return{};const p=uo(f),v={x:n,y:o},m=cn(r),b=an(m),d=await s.getDimensions(c),h=m==="y",y=h?"top":"left",g=h?"bottom":"right",x=h?"clientHeight":"clientWidth",S=i.reference[b]+i.reference[m]-v[m]-i.floating[b],C=v[m]-i.reference[m],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=R?R[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=a.floating[x]||i.floating[b]);const P=S/2-C/2,D=E/2-d[b]/2-1,I=ye(p[y],D),F=ye(p[g],D),B=I,j=E-d[b]-F,M=E/2-d[b]/2+P,V=Ut(B,M,j),T=!u.arrow&&ke(r)!=null&&M!==V&&i.reference[b]/2-(M<B?I:F)-d[b]/2<0,L=T?M<B?M-B:M-j:0;return{[m]:v[m]+L,data:{[m]:V,centerOffset:M-V-L,...T&&{alignmentOffset:L}},reset:T}}}),_s=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:d=!0,...h}=de(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=pe(r),g=se(a),x=pe(a)===a,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),C=v||(x||!d?[ct(a)]:bs(a)),R=b!=="none";!v&&R&&C.push(...Es(a,d,b,S));const E=[a,...C],P=await Ge(t,h),D=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&D.push(P[y]),p){const M=ws(r,s,S);D.push(P[M[0]],P[M[1]])}if(I=[...I,{placement:r,overflows:D}],!D.every(M=>M<=0)){var F,B;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,V=E[M];if(V&&(!(p==="alignment"?g!==se(V):!1)||I.every(A=>A.overflows[0]>0&&se(A.placement)===g)))return{data:{index:M,overflows:I},reset:{placement:V}};let T=(B=I.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:B.placement;if(!T)switch(m){case"bestFit":{var j;const L=(j=I.filter(A=>{if(R){const H=se(A.placement);return H===g||H==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(H=>H>0).reduce((H,X)=>H+X,0)]).sort((A,H)=>A[1]-H[1])[0])==null?void 0:j[0];L&&(T=L);break}case"initialPlacement":T=a;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function Ln(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fn(e){return hs.some(t=>e[t]>=0)}const Ts=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=de(e,t);switch(o){case"referenceHidden":{const i=await Ge(t,{...r,elementContext:"reference"}),s=Ln(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fn(s)}}}case"escaped":{const i=await Ge(t,{...r,altBoundary:!0}),s=Ln(i,n.floating);return{data:{escapedOffsets:s,escaped:Fn(s)}}}default:return{}}}}},fo=new Set(["left","top"]);async function Os(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=pe(n),a=ke(n),u=se(n)==="y",c=fo.has(s)?-1:1,f=i&&u?-1:1,p=de(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(m=a==="end"?b*-1:b),u?{x:m*f,y:v*c}:{x:v*c,y:m*f}}const Is=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,u=await Os(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:i+u.y,data:{...u,placement:s}}}}},Ns=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:h=>{let{x:y,y:g}=h;return{x:y,y:g}}},...u}=de(e,t),c={x:n,y:o},f=await Ge(t,u),p=se(pe(r)),v=sn(p);let m=c[v],b=c[p];if(i){const h=v==="y"?"top":"left",y=v==="y"?"bottom":"right",g=m+f[h],x=m-f[y];m=Ut(g,m,x)}if(s){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=b+f[h],x=b-f[y];b=Ut(g,b,x)}const d=a.fn({...t,[v]:m,[p]:b});return{...d,data:{x:d.x-n,y:d.y-o,enabled:{[v]:i,[p]:s}}}}}},Ds=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=de(e,t),f={x:n,y:o},p=se(r),v=sn(p);let m=f[v],b=f[p];const d=de(a,t),h=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(u){const x=v==="y"?"height":"width",S=i.reference[v]-i.floating[x]+h.mainAxis,C=i.reference[v]+i.reference[x]-h.mainAxis;m<S?m=S:m>C&&(m=C)}if(c){var y,g;const x=v==="y"?"width":"height",S=fo.has(pe(r)),C=i.reference[p]-i.floating[x]+(S&&((y=s.offset)==null?void 0:y[p])||0)+(S?0:h.crossAxis),R=i.reference[p]+i.reference[x]+(S?0:((g=s.offset)==null?void 0:g[p])||0)-(S?h.crossAxis:0);b<C?b=C:b>R&&(b=R)}return{[v]:m,[p]:b}}}},Ms=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=de(e,t),f=await Ge(t,c),p=pe(r),v=ke(r),m=se(r)==="y",{width:b,height:d}=i.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=v===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,h=v==="end"?"top":"bottom");
vendor: 4,736 bytes, line 9
9const g=d-f.top-f.bottom,x=b-f.left-f.right,S=ye(d-f[h],g),C=ye(b-f[y],x),R=!t.middlewareData.shift;let E=S,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=g),R&&!v){const I=Z(f.left,0),F=Z(f.right,0),B=Z(f.top,0),j=Z(f.bottom,0);m?P=b-2*(I!==0||F!==0?I+F:Z(f.left,f.right)):E=d-2*(B!==0||j!==0?B+j:Z(f.top,f.bottom))}await u({...t,availableWidth:P,availableHeight:E});const D=await s.getDimensions(a.floating);return b!==D.width||d!==D.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function $e(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ue(e){var t;return(t=(po(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function po(e){return yt()?e instanceof Node||e instanceof Q(e).Node:!1}function te(e){return yt()?e instanceof Element||e instanceof Q(e).Element:!1}function le(e){return yt()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function kn(e){return!yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}const js=new Set(["inline","contents"]);function Xe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!js.has(r)}const Ls=new Set(["table","td","th"]);function Fs(e){return Ls.has($e(e))}const ks=[":popover-open",":modal"];function wt(e){return ks.some(t=>{try{return e.matches(t)}catch{return!1}})}const $s=["transform","translate","scale","rotate","perspective"],Bs=["transform","translate","scale","rotate","perspective","filter"],Ws=["paint","layout","strict","content"];function ln(e){const t=un(),n=te(e)?ne(e):e;return $s.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Bs.some(o=>(n.willChange||"").includes(o))||Ws.some(o=>(n.contain||"").includes(o))}function Vs(e){let t=we(e);for(;le(t)&&!je(t);){if(ln(t))return t;if(wt(t))return null;t=we(t)}return null}function un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hs=new Set(["html","body","#document"]);function je(e){return Hs.has($e(e))}function ne(e){return Q(e).getComputedStyle(e)}function bt(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function we(e){if($e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kn(e)&&e.host||ue(e);return kn(t)?t.host:t}function mo(e){const t=we(e);return je(t)?e.ownerDocument?e.ownerDocument.body:e.body:le(t)&&Xe(t)?t:mo(t)}function Ye(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=mo(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Q(r);if(i){const a=zt(s);return t.concat(s,s.visualViewport||[],Xe(r)?r:[],a&&n?Ye(a):[])}return t.concat(r,Ye(r,[],n))}function zt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ho(e){const t=ne(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=le(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=at(n)!==i||at(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function fn(e){return te(e)?e:e.contextElement}function Ne(e){const t=fn(e);if(!le(t))return ce(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ho(t);let s=(i?at(n.width):n.width)/o,a=(i?at(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Us=ce(0);function vo(e){const t=Q(e);return!un()||!t.visualViewport?Us:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ks(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Q(e)?!1:t}function Ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=fn(e);let s=ce(1);t&&(o?te(o)&&(s=Ne(o)):s=Ne(e));const a=Ks(i,n,o)?vo(i):ce(0);let u=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,f=r.width/s.x,p=r.height/s.y;if(i){const v=Q(i),m=o&&te(o)?Q(o):o;let b=v,d=zt(b);for(;d&&o&&m!==b;){const h=Ne(d),y=d.getBoundingClientRect(),g=ne(d),x=y.left+(d.clientLeft+parseFloat(g.paddingLeft))*h.x,S=y.top+(d.clientTop+parseFloat(g.paddingTop))*h.y;u*=h.x,c*=h.y,f*=h.x,p*=h.y,u+=x,c+=S,b=Q(d),d=zt(b)}}return lt({width:f,height:p,x:u,y:c})}function dn(e,t){const n=bt(e).scrollLeft;return t?t.left+n:Ee(ue(e)).left+n}function go(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:dn(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function zs(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ue(o),a=t?wt(t.floating):!1;if(o===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=ce(1);
vendor: 5,523 bytes, line 9
9const f=ce(0),p=le(o);if((p||!p&&!i)&&(($e(o)!=="body"||Xe(s))&&(u=bt(o)),le(o))){const m=Ee(o);c=Ne(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}const v=s&&!p&&!i?go(s,u,!0):ce(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+v.x,y:n.y*c.y-u.scrollTop*c.y+f.y+v.y}}function Gs(e){return Array.from(e.getClientRects())}function Ys(e){const t=ue(e),n=bt(e),o=e.ownerDocument.body,r=Z(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Z(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+dn(e);const a=-n.scrollTop;return ne(o).direction==="rtl"&&(s+=Z(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Xs(e,t){const n=Q(e),o=ue(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,u=0;if(r){i=r.width,s=r.height;const c=un();(!c||c&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:s,x:a,y:u}}const qs=new Set(["absolute","fixed"]);function Zs(e,t){const n=Ee(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=le(e)?Ne(e):ce(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=r*i.x,c=o*i.y;return{width:s,height:a,x:u,y:c}}function $n(e,t,n){let o;if(t==="viewport")o=Xs(e,n);else if(t==="document")o=Ys(ue(e));else if(te(t))o=Zs(t,n);else{const r=vo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return lt(o)}function yo(e,t){const n=we(e);return n===t||!te(n)||je(n)?!1:ne(n).position==="fixed"||yo(n,t)}function Qs(e,t){const n=t.get(e);if(n)return n;let o=Ye(e,[],!1).filter(a=>te(a)&&$e(a)!=="body"),r=null;const i=ne(e).position==="fixed";let s=i?we(e):e;for(;te(s)&&!je(s);){const a=ne(s),u=ln(s);!u&&a.position==="fixed"&&(r=null),(i?!u&&!r:!u&&a.position==="static"&&!!r&&qs.has(r.position)||Xe(s)&&!u&&yo(e,s))?o=o.filter(f=>f!==s):r=a,s=we(s)}return t.set(e,o),o}function Js(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?wt(t)?[]:Qs(t,this._c):[].concat(n),o],a=s[0],u=s.reduce((c,f)=>{const p=$n(t,f,r);return c.top=Z(p.top,c.top),c.right=ye(p.right,c.right),c.bottom=ye(p.bottom,c.bottom),c.left=Z(p.left,c.left),c},$n(t,a,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ea(e){const{width:t,height:n}=ho(e);return{width:t,height:n}}function ta(e,t,n){const o=le(t),r=ue(t),i=n==="fixed",s=Ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=ce(0);function c(){u.x=dn(r)}if(o||!o&&!i)if(($e(t)!=="body"||Xe(r))&&(a=bt(t)),o){const m=Ee(t,!0,i,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else r&&c();i&&!o&&r&&c();const f=r&&!o&&!i?go(r,a):ce(0),p=s.left+a.scrollLeft-u.x-f.x,v=s.top+a.scrollTop-u.y-f.y;return{x:p,y:v,width:s.width,height:s.height}}function Dt(e){return ne(e).position==="static"}function Bn(e,t){if(!le(e)||ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ue(e)===n&&(n=n.ownerDocument.body),n}function wo(e,t){const n=Q(e);if(wt(e))return n;if(!le(e)){let r=we(e);for(;r&&!je(r);){if(te(r)&&!Dt(r))return r;r=we(r)}return n}let o=Bn(e,t);for(;o&&Fs(o)&&Dt(o);)o=Bn(o,t);return o&&je(o)&&Dt(o)&&!ln(o)?n:o||Vs(e)||n}const na=async function(e){const t=this.getOffsetParent||wo,n=this.getDimensions,o=await n(e.floating);return{reference:ta(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oa(e){return ne(e).direction==="rtl"}const ra={convertOffsetParentRelativeRectToViewportRelativeRect:zs,getDocumentElement:ue,getClippingRect:Js,getOffsetParent:wo,getElementRects:na,getClientRects:Gs,getDimensions:ea,getScale:Ne,isElement:te,isRTL:oa};function bo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ia(e,t){let n=null,o;const r=ue(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:f,top:p,width:v,height:m}=c;if(a||t(),!v||!m)return;const b=Je(p),d=Je(r.clientWidth-(f+v)),h=Je(r.clientHeight-(p+m)),y=Je(f),x={rootMargin:-b+"px "+-d+"px "+-h+"px "+-y+"px",threshold:Z(0,ye(1,u))||1};let S=!0;function C(R){const E=R[0].intersectionRatio;if(E!==u){if(!S)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!bo(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function sa(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=fn(e),f=r||i?[...c?Ye(c):[],...Ye(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const p=c&&a?ia(c,n):null;let v=-1,m=null;s&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let b,d=u?Ee(e):null;u&&h();function h(){const y=Ee(e);d&&!bo(d,y)&&n(),d=y,b=requestAnimationFrame(h)}return n(),()=>{var y;f.forEach(g=>{r&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(b)}}const aa=Is,ca=Ns,la=_s,ua=Ms,fa=Ts,Wn=As,da=Ds,pa=(e,t,n)=>{const o=new Map,r={platform:ra,...n},i={...r.platform,_c:o};return Ps(e,t,{...r,platform:i})};var ma=typeof document<"u",ha=function(){},rt=ma?l.useLayoutEffect:ha;function ut(e,t){if(e===t)return!0;
vendor: 2,982 bytes, line 9
9if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ut(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ut(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vn(e,t){const n=xo(e);return Math.round(t*n)/n}function Mt(e){const t=l.useRef(e);return rt(()=>{t.current=e}),t}function va(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=l.useState(o);ut(v,o)||m(o);const[b,d]=l.useState(null),[h,y]=l.useState(null),g=l.useCallback(A=>{A!==R.current&&(R.current=A,d(A))},[]),x=l.useCallback(A=>{A!==E.current&&(E.current=A,y(A))},[]),S=i||b,C=s||h,R=l.useRef(null),E=l.useRef(null),P=l.useRef(f),D=u!=null,I=Mt(u),F=Mt(r),B=Mt(c),j=l.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:v};F.current&&(A.platform=F.current),pa(R.current,E.current,A).then(H=>{const X={...H,isPositioned:B.current!==!1};M.current&&!ut(P.current,X)&&(P.current=X,ht.flushSync(()=>{p(X)}))})},[v,t,n,F,B]);rt(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[c]);const M=l.useRef(!1);rt(()=>(M.current=!0,()=>{M.current=!1}),[]),rt(()=>{if(S&&(R.current=S),C&&(E.current=C),S&&C){if(I.current)return I.current(S,C,j);j()}},[S,C,j,I,D]);const V=l.useMemo(()=>({reference:R,floating:E,setReference:g,setFloating:x}),[g,x]),T=l.useMemo(()=>({reference:S,floating:C}),[S,C]),L=l.useMemo(()=>{const A={position:n,left:0,top:0};if(!T.floating)return A;const H=Vn(T.floating,f.x),X=Vn(T.floating,f.y);return a?{...A,transform:"translate("+H+"px, "+X+"px)",...xo(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:X}},[n,a,T.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:j,refs:V,elements:T,floatingStyles:L}),[f,j,V,T,L])}const ga=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Wn({element:o.current,padding:r}).fn(n):{}:o?Wn({element:o,padding:r}).fn(n):{}}}},ya=(e,t)=>({...aa(e),options:[e,t]}),wa=(e,t)=>({...ca(e),options:[e,t]}),ba=(e,t)=>({...da(e),options:[e,t]}),xa=(e,t)=>({...la(e),options:[e,t]}),Sa=(e,t)=>({...ua(e),options:[e,t]}),Ca=(e,t)=>({...fa(e),options:[e,t]}),Ea=(e,t)=>({...ga(e),options:[e,t]});var Ra="Arrow",So=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;
vendor: 5,182 bytes, line 9
9return w.jsx(O.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});So.displayName=Ra;var Pa=So;function Aa(e){const[t,n]=l.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var pn="Popper",[Co,Eo]=be(pn),[_a,Ro]=Co(pn),Po=e=>{const{__scopePopper:t,children:n}=e,[o,r]=l.useState(null);return w.jsx(_a,{scope:t,anchor:o,onAnchorChange:r,children:n})};Po.displayName=pn;var Ao="PopperAnchor",_o=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Ro(Ao,n),s=l.useRef(null),a=K(t,s);return l.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:w.jsx(O.div,{...r,ref:a})});_o.displayName=Ao;var mn="PopperContent",[Ta,Oa]=Co(mn),To=l.forwardRef((e,t)=>{var _,U,Y,W,k,$;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:b,...d}=e,h=Ro(mn,n),[y,g]=l.useState(null),x=K(t,q=>g(q)),[S,C]=l.useState(null),R=Aa(S),E=(R==null?void 0:R.width)??0,P=(R==null?void 0:R.height)??0,D=o+(i!=="center"?"-"+i:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(c)?c:[c],B=F.length>0,j={padding:I,boundary:F.filter(Na),altBoundary:B},{refs:M,floatingStyles:V,placement:T,isPositioned:L,middlewareData:A}=va({strategy:"fixed",placement:D,whileElementsMounted:(...q)=>sa(...q,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[ya({mainAxis:r+P,alignmentAxis:s}),u&&wa({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?ba():void 0,...j}),u&&xa({...j}),Sa({...j,apply:({elements:q,rects:ie,availableWidth:He,availableHeight:Ue})=>{const{width:Ke,height:Li}=ie.reference,Ze=q.floating.style;Ze.setProperty("--radix-popper-available-width",`${He}px`),Ze.setProperty("--radix-popper-available-height",`${Ue}px`),Ze.setProperty("--radix-popper-anchor-width",`${Ke}px`),Ze.setProperty("--radix-popper-anchor-height",`${Li}px`)}}),S&&Ea({element:S,padding:a}),Da({arrowWidth:E,arrowHeight:P}),v&&Ca({strategy:"referenceHidden",...j})]}),[H,X]=No(T),fe=ve(b);G(()=>{L&&(fe==null||fe())},[L,fe]);const We=(_=A.arrow)==null?void 0:_.x,Ve=(U=A.arrow)==null?void 0:U.y,me=((Y=A.arrow)==null?void 0:Y.centerOffset)!==0,[_e,Ce]=l.useState();return G(()=>{y&&Ce(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:L?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(W=A.transformOrigin)==null?void 0:W.x,(k=A.transformOrigin)==null?void 0:k.y].join(" "),...(($=A.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(Ta,{scope:n,placedSide:H,onArrowChange:C,arrowX:We,arrowY:Ve,shouldHideArrow:me,children:w.jsx(O.div,{"data-side":H,"data-align":X,...d,ref:x,style:{...d.style,animation:L?void 0:"none"}})})})});To.displayName=mn;var Oo="PopperArrow",Ia={top:"bottom",right:"left",bottom:"top",left:"right"},Io=l.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Oa(Oo,o),s=Ia[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(Pa,{...r,ref:n,style:{...r.style,display:"block"}})})});Io.displayName=Oo;function Na(e){return e!==null}var Da=e=>({name:"transformOrigin",options:e,fn(t){var h,y,g;const{placement:n,rects:o,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,f]=No(n),p={start:"0%",center:"50%",end:"100%"}[f],v=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,m=(((g=r.arrow)==null?void 0:g.y)??0)+u/2;let b="",d="";return c==="bottom"?(b=s?p:`${v}px`,d=`${-u}px`):c==="top"?(b=s?p:`${v}px`,d=`${o.floating.height+u}px`):c==="right"?(b=`${-u}px`,d=s?p:`${m}px`):c==="left"&&(b=`${o.floating.width+u}px`,d=s?p:`${m}px`),{data:{x:b,y:d}}}});function No(e){const[t,n="center"]=e.split("-");return[t,n]}var Ma=Po,ja=_o,La=To,Fa=Io,Gt=function(e,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},Gt(e,t)};function Do(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gt(e,t);function n(){this.constructor=e}
vendor: 1,867 bytes, line 9
9e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},J.apply(this,arguments)};function xt(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Mo(e,t,n,o){var r=arguments.length,i=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}function jo(e,t){return function(n,o){t(n,o,e)}}function Lo(e,t,n,o,r,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=o.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?o.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,o.name):{}),p,v=!1,m=n.length-1;m>=0;m--){var b={};for(var d in o)b[d]=d==="access"?{}:o[d];for(var d in o.access)b.access[d]=o.access[d];b.addInitializer=function(y){if(v)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var h=(0,n[m])(a==="accessor"?{get:f.get,set:f.set}:f[u],b);if(a==="accessor"){if(h===void 0)continue;if(h===null||typeof h!="object")throw new TypeError("Object expected");(p=s(h.get))&&(f.get=p),(p=s(h.set))&&(f.set=p),(p=s(h.init))&&r.unshift(p)}else(p=s(h))&&(a==="field"?r.unshift(p):f[u]=p)}c&&Object.defineProperty(c,o.name,f),v=!0}
vendor: 2,024 bytes, line 9
9function Fo(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function ko(e){return typeof e=="symbol"?e:"".concat(e)}function $o(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Bo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Wo(e,t,n,o){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{c(o.next(f))}catch(p){s(p)}}function u(f){try{c(o.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):r(f.value).then(a,u)}c((o=o.apply(e,t||[])).next())})}function Vo(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return u([c,f])}}function u(c){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(o=1,r&&(i=c[0]&2?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var St=Object.create?function(e,t,n,o){o===void 0&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);
vendor: 5,414 bytes, line 9
9(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){o===void 0&&(o=n),e[o]=t[n]};function Ho(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&St(t,e,n)}function ft(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],s;try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return i}function Uo(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(hn(arguments[t]));return e}function Ko(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)o[r]=i[s];return o}function vn(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function Le(e){return this instanceof Le?(this.v=e,this):new Le(e)}function zo(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,i=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(m){return function(b){return Promise.resolve(b).then(m,p)}}function a(m,b){o[m]&&(r[m]=function(d){return new Promise(function(h,y){i.push([m,d,h,y])>1||u(m,d)})},b&&(r[m]=b(r[m])))}function u(m,b){try{c(o[m](b))}catch(d){v(i[0][3],d)}}function c(m){m.value instanceof Le?Promise.resolve(m.value.v).then(f,p):v(i[0][2],m)}function f(m){u("next",m)}function p(m){u("throw",m)}function v(m,b){m(b),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Go(e){var t,n;return t={},o("next"),o("throw",function(r){throw r}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(r,i){t[r]=e[r]?function(s){return(n=!n)?{value:Le(e[r](s)),done:!1}:i?i(s):s}:i}}function Yo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ft=="function"?ft(e):e[Symbol.iterator](),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),r(a,u,s.done,s.value)})}}function r(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function Xo(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ka=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Yt=function(e){return Yt=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},Yt(e)};function qo(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Yt(e),o=0;o<n.length;o++)n[o]!=="default"&&St(t,e,n[o]);return ka(t,e),t}function Zo(e){return e&&e.__esModule?e:{default:e}}function Qo(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)}function Jo(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function er(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function tr(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");r&&(o=function(){try{r.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}var $a=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};function nr(e){function t(i){e.error=e.hasError?new $a(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,o=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&o===1)return o=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return o|=2,Promise.resolve(i).then(r,function(s){return t(s),r()})}else o|=1}catch(s){t(s)}
9if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return r()}function or(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,o,r,i,s){return o?t?".jsx":".js":r&&(!i||!s)?n:r+i+"."+s.toLowerCase()+"js"}):e}const Ba={__extends:Do,__assign:J,__rest:xt,__decorate:Mo,__param:jo,__esDecorate:Lo,__runInitializers:Fo,__propKey:ko,__setFunctionName:$o,__metadata:Bo,__awaiter:Wo,__generator:Vo,__createBinding:St,__exportStar:Ho,__values:ft,__read:hn,__spread:Uo,__spreadArrays:Ko,__spreadArray:vn,__await:Le,__asyncGenerator:zo,__asyncDelegator:Go,__asyncValues:Yo,__makeTemplateObject:Xo,__importStar:qo,__importDefault:Zo,__classPrivateFieldGet:Qo,__classPrivateFieldSet:Jo,__classPrivateFieldIn:er,__addDisposableResource:tr,__disposeResources:nr,__rewriteRelativeImportExtension:or},Kl=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:tr,get __assign(){return J},__asyncDelegator:Go,__asyncGenerator:zo,__asyncValues:Yo,__await:Le,__awaiter:Wo,__classPrivateFieldGet:Qo,__classPrivateFieldIn:er,__classPrivateFieldSet:Jo,__createBinding:St,__decorate:Mo,__disposeResources:nr,__esDecorate:Lo,__exportStar:Ho,__extends:Do,__generator:Vo,__importDefault:Zo,__importStar:qo,__makeTemplateOb
vendor: 4,692 bytes, line 9
9ject:Xo,__metadata:Bo,__param:jo,__propKey:ko,__read:hn,__rest:xt,__rewriteRelativeImportExtension:or,__runInitializers:Fo,__setFunctionName:$o,__spread:Uo,__spreadArray:vn,__spreadArrays:Ko,__values:ft,default:Ba},Symbol.toStringTag,{value:"Module"}));var jt="focusScope.autoFocusOnMount",Lt="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},Wa="FocusScope",gn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=ve(r),f=ve(i),p=l.useRef(null),v=K(t,d=>u(d)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(o){let d=function(x){if(m.paused||!a)return;const S=x.target;a.contains(S)?p.current=S:he(p.current,{select:!0})},h=function(x){if(m.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||he(p.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&he(a)};document.addEventListener("focusin",d),document.addEventListener("focusout",h);const g=new MutationObserver(y);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",h),g.disconnect()}}},[o,a,m.paused]),l.useEffect(()=>{if(a){Kn.add(m);const d=document.activeElement;if(!a.contains(d)){const y=new CustomEvent(jt,Hn);a.addEventListener(jt,c),a.dispatchEvent(y),y.defaultPrevented||(Va(Ga(rr(a)),{select:!0}),document.activeElement===d&&he(a))}return()=>{a.removeEventListener(jt,c),setTimeout(()=>{const y=new CustomEvent(Lt,Hn);a.addEventListener(Lt,f),a.dispatchEvent(y),y.defaultPrevented||he(d??document.body,{select:!0}),a.removeEventListener(Lt,f),Kn.remove(m)},0)}}},[a,c,f,m]);const b=l.useCallback(d=>{if(!n&&!o||m.paused)return;const h=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(h&&y){const g=d.currentTarget,[x,S]=Ha(g);x&&S?!d.shiftKey&&y===S?(d.preventDefault(),n&&he(x,{select:!0})):d.shiftKey&&y===x&&(d.preventDefault(),n&&he(S,{select:!0})):y===g&&d.preventDefault()}},[n,o,m.paused]);return w.jsx(O.div,{tabIndex:-1,...s,ref:v,onKeyDown:b})});gn.displayName=Wa;function Va(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(he(o,{select:t}),document.activeElement!==n)return}function Ha(e){const t=rr(e),n=Un(t,e),o=Un(t.reverse(),e);return[n,o]}function rr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Un(e,t){for(const n of e)if(!Ua(n,{upTo:t}))return n}function Ua(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 Ka(e){return e instanceof HTMLInputElement&&"select"in e}function he(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ka(e)&&t&&e.select()}}var Kn=za();function za(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=zn(e,t),e.unshift(t)},remove(t){var n;e=zn(e,t),(n=e[0])==null||n.resume()}}}function zn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ga(e){return e.filter(t=>t.tagName!=="A")}var Ft=0;function ir(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gn()),document.body.insertAdjacentElement("beforeend",e[1]??Gn()),Ft++,()=>{Ft===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ft--}},[])}function Gn(){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 it="right-scroll-bar-position",st="width-before-scroll-bar",Ya="with-scroll-bars-hidden",Xa="--removed-body-scroll-bar-size";function kt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qa(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Za=typeof window<"u"?l.useLayoutEffect:l.useEffect,Yn=new WeakMap;function Qa(e,t){var n=qa(null,function(o){return e.forEach(function(r){return kt(r,o)})});return Za(function(){var o=Yn.get(n);if(o){var r=new Set(o),i=new Set(e),s=n.current;r.forEach(function(a){i.has(a)||kt(a,null)}
vendor: 4,146 bytes, lines 9-24
9),i.forEach(function(a){r.has(a)||kt(a,s)})}Yn.set(n,e)},[e]),n}function Ja(e){return e}function ec(e,t){t===void 0&&(t=Ja);var n=[],o=!1,r={read:function(){if(o)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(i){var s=t(i,o);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return r}function tc(e){e===void 0&&(e={});var t=ec(null);return t.options=J({async:!0,ssr:!1},e),t}var sr=function(e){var t=e.sideCar,n=xt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return l.createElement(o,J({},n))};sr.isSideCarExport=!0;function nc(e,t){return e.useMedium(t),sr}var ar=tc(),$t=function(){},Ct=l.forwardRef(function(e,t){var n=l.useRef(null),o=l.useState({onScrollCapture:$t,onWheelCapture:$t,onTouchMoveCapture:$t}),r=o[0],i=o[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,m=e.noRelative,b=e.noIsolation,d=e.inert,h=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,x=e.gapMode,S=xt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,R=Qa([n,t]),E=J(J({},S),r);return l.createElement(l.Fragment,null,f&&l.createElement(C,{sideCar:ar,removeScrollBar:c,shards:p,noRelative:m,noIsolation:b,inert:d,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:x}),s?l.cloneElement(l.Children.only(a),J(J({},E),{ref:R})):l.createElement(g,J({},E,{className:u,ref:R}),a))});Ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ct.classNames={fullWidth:st,zeroRight:it};var oc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oc();return t&&e.setAttribute("nonce",t),e}function ic(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ac=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rc())&&(ic(t,n),sc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cc=function(){var e=ac();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cr=function(){var e=cc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},lc={left:0,top:0,right:0,gap:0},Bt=function(e){return parseInt(e||"",10)||0},uc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Bt(n),Bt(o),Bt(r)]},fc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lc;var t=uc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},dc=cr(),De="data-scroll-locked",pc=function(e,t,n,o){var r=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
10  .`.concat(Ya,` {
11   overflow: hidden `).concat(o,`;
12   padding-right: `).concat(a,"px ").concat(o,`;
13  }
14  body[`).concat(De,`] {
15    overflow: hidden `).concat(o,`;
16    overscroll-behavior: contain;
17    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
18    padding-left: `.concat(r,`px;
19    padding-top: `).concat(i,`px;
20    padding-right: `).concat(s,`px;
21    margin-left:0;
22    margin-top:0;
23    margin-right: `).concat(a,"px ").concat(o,`;
24    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
24")].filter(Boolean).join(""),`
25  }
26  
27  .`).concat(it,` {
28    right: `).concat(a,"px ").concat(o,`;
29  }
30  
31  .`).concat(st,` {
32    margin-right: `).concat(a,"px ").concat(o,`;
33  }
34  
35  .`).concat(it," .").concat(it,` {
36    right: 0 `).concat(o,`;
37  }
38  
39  .`).concat(st," .").concat(st,` {
40    margin-right: 0 `).concat(o,`;
41  }
42  
43  body[`).concat(De,`] {
44    `).concat(Xa,": ").concat(a,`px;
45  }
46`)},Xn=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},mc=function(){l.useEffect(function(){return document.body.setAttribute(De,(Xn()+1).toString()),function(){var e=Xn()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[])},hc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;mc();var i=l.useMemo(function(){return fc(r)},[r]);return l.createElement(dc,{styles:pc(i,!t,r,n?"":"!important")})},Xt=!1;if(typeof window<"u")try{var et=Object.defineProperty({},"passive",{get:function(){return Xt=!0,!0}});window.addEventListener("test",et,et),window.removeEventListener("test",et,et)}catch{Xt=!1}var Te=Xt?{passive:!1}:!1,vc=function(e){return e.tagName==="TEXTAREA"},lr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vc(e)&&n[t]==="visible")},gc=function(e){return lr(e,"overflowY")},yc=function(e){return lr(e,"overflowX")},qn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=ur(e,o);if(r){var i=fr(e,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},wc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},bc=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},ur=function(e,t){return e==="v"?gc(t):yc(t)},fr=function(e,t){return e==="v"?wc(t):bc(t)},xc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sc=function(e,t,n,o,r){var i=xc(e,window.getComputedStyle(t).direction),s=i*o,a=n.target,u=t.contains(a),c=!1,f=s>0,p=0,v=0;do{if(!a)break;var m=fr(e,a),b=m[0],d=m[1],h=m[2],y=d-h-i*b;(b||y)&&ur(e,a)&&(p+=y,v+=b);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&(Math.abs(p)<1||!r)||!f&&(Math.abs(v)<1||!r))&&(c=!0),c},tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zn=function(e){return[e.deltaX,e.deltaY]},Qn=function(e){return e&&"current"in e?e.current:e},Cc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ec=function(e){return`
47  .block-interactivity-`.concat(e,` {pointer-events: none;}
48  .allow-interactivity-`).concat(e,` {pointer-events: all;}
49`)},Rc=0,Oe=[];function Pc(e){var t=l.useRef([]),n=l.useRef([0,0]),o=l.useRef(),r=l.useState(Rc++)[0],i=l.useState(cr)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var d=vn([e.lockRef.current],(e.shards||[]).map(Qn),!0).filter(Boolean);return d.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),d.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(d,h){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!s.current.allowPinchZoom;var y=tt(d),g=n.current,x="deltaX"in d?d.deltaX:g[0]-y[0],S="deltaY"in d?d.deltaY:g[1]-y[1],C,R=d.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in d&&E==="h"&&R.type==="range")return!1;var P=qn(E,R);if(!P)return!0;if(P?C=E:(C=E==="v"?"h":"v",P=qn(E,R)),!P)return!1;if(!o.current&&"changedTouches"in d&&(x||S)&&(o.current=C),!C)return!0;var D=o.current||C;return Sc(D,h,d,D==="h"?x:S,!0)},[]),u=l.useCallback(function(d){var h=d;if(!(!Oe.length||Oe[Oe.length-1]!==i)){var y="deltaY"in h?Zn(h):tt(h),g=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&Cc(C.delta,y)})[0];if(g&&g.should){h.cancelable&&h.preventDefault();return}
vendor: 4,329 bytes, line 49
49if(!g){var x=(s.current.shards||[]).map(Qn).filter(Boolean).filter(function(C){return C.contains(h.target)}),S=x.length>0?a(h,x[0]):!s.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),c=l.useCallback(function(d,h,y,g){var x={name:d,delta:h,target:y,should:g,shadowParent:Ac(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),f=l.useCallback(function(d){n.current=tt(d),o.current=void 0},[]),p=l.useCallback(function(d){c(d.type,Zn(d),d.target,a(d,e.lockRef.current))},[]),v=l.useCallback(function(d){c(d.type,tt(d),d.target,a(d,e.lockRef.current))},[]);l.useEffect(function(){return Oe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,Te),document.addEventListener("touchmove",u,Te),document.addEventListener("touchstart",f,Te),function(){Oe=Oe.filter(function(d){return d!==i}),document.removeEventListener("wheel",u,Te),document.removeEventListener("touchmove",u,Te),document.removeEventListener("touchstart",f,Te)}},[]);var m=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(i,{styles:Ec(r)}):null,m?l.createElement(hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ac(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _c=nc(ar,Pc);var yn=l.forwardRef(function(e,t){return l.createElement(Ct,J({},e,{ref:t,sideCar:_c}))});yn.classNames=Ct.classNames;var Tc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ie=new WeakMap,nt=new WeakMap,ot={},Wt=0,dr=function(e){return e&&(e.host||dr(e.parentNode))},Oc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=dr(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ic=function(e,t,n,o){var r=Oc(t,Array.isArray(e)?e:[e]);ot[n]||(ot[n]=new WeakMap);var i=ot[n],s=[],a=new Set,u=new Set(r),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};r.forEach(c);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(v){if(a.has(v))f(v);else try{var m=v.getAttribute(o),b=m!==null&&m!=="false",d=(Ie.get(v)||0)+1,h=(i.get(v)||0)+1;Ie.set(v,d),i.set(v,h),s.push(v),d===1&&b&&nt.set(v,!0),h===1&&v.setAttribute(n,"true"),b||v.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return f(t),a.clear(),Wt++,function(){s.forEach(function(p){var v=Ie.get(p)-1,m=i.get(p)-1;Ie.set(p,v),i.set(p,m),v||(nt.has(p)||p.removeAttribute(o),nt.delete(p)),m||p.removeAttribute(n)}),Wt--,Wt||(Ie=new WeakMap,Ie=new WeakMap,nt=new WeakMap,ot={})}},pr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Tc(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Ic(o,r,n,"aria-hidden")):function(){return null}},Et="Dialog",[mr,zl]=be(Et),[Nc,oe]=mr(Et),hr=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),u=l.useRef(null),[c,f]=ge({prop:o,defaultProp:r??!1,onChange:i,caller:Et});return w.jsx(Nc,{scope:t,triggerRef:a,contentRef:u,contentId:ae(),titleId:ae(),descriptionId:ae(),open:c,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};hr.displayName=Et;var vr="DialogTrigger",gr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=oe(vr,n),i=K(t,r.triggerRef);return w.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":xn(r.open),...o,ref:i,onClick:N(e.onClick,r.onOpenToggle)})});gr.displayName=vr;var wn="DialogPortal",[Dc,yr]=mr(wn,{forceMount:void 0}),wr=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=oe(wn,t);return w.jsx(Dc,{scope:t,forceMount:n,children:l.Children.map(o,s=>w.jsx(Fe,{present:n||i.open,children:w.jsx(rn,{asChild:!0,container:r,children:s})}))})};wr.displayName=wn;var dt="DialogOverlay",br=l.forwardRef((e,t)=>{const n=yr(dt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=oe(dt,e.__scopeDialog);return i.modal?w.jsx(Fe,{present:o||i.open,children:w.jsx(jc,{...r,ref:t})}):null});br.displayName=dt;var Mc=Me("DialogOverlay.RemoveScroll"),jc=l.forwardRef((e,t)=>
vendor: 25,369 bytes, lines 49-53
49{const{__scopeDialog:n,...o}=e,r=oe(dt,n);return w.jsx(yn,{as:Mc,allowPinchZoom:!0,shards:[r.contentRef],children:w.jsx(O.div,{"data-state":xn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Re="DialogContent",xr=l.forwardRef((e,t)=>{const n=yr(Re,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=oe(Re,e.__scopeDialog);return w.jsx(Fe,{present:o||i.open,children:i.modal?w.jsx(Lc,{...r,ref:t}):w.jsx(Fc,{...r,ref:t})})});xr.displayName=Re;var Lc=l.forwardRef((e,t)=>{const n=oe(Re,e.__scopeDialog),o=l.useRef(null),r=K(t,n.contentRef,o);return l.useEffect(()=>{const i=o.current;if(i)return pr(i)},[]),w.jsx(Sr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault())})}),Fc=l.forwardRef((e,t)=>{const n=oe(Re,e.__scopeDialog),o=l.useRef(!1),r=l.useRef(!1);return w.jsx(Sr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Sr=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...s}=e,a=oe(Re,n),u=l.useRef(null),c=K(t,u);return ir(),w.jsxs(w.Fragment,{children:[w.jsx(gn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:w.jsx(gt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":xn(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(kc,{titleId:a.titleId}),w.jsx(Bc,{contentRef:u,descriptionId:a.descriptionId})]})]})}),bn="DialogTitle",Cr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=oe(bn,n);return w.jsx(O.h2,{id:r.titleId,...o,ref:t})});Cr.displayName=bn;var Er="DialogDescription",Rr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=oe(Er,n);return w.jsx(O.p,{id:r.descriptionId,...o,ref:t})});Rr.displayName=Er;var Pr="DialogClose",Ar=l.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=oe(Pr,n);return w.jsx(O.button,{type:"button",...o,ref:t,onClick:N(e.onClick,()=>r.onOpenChange(!1))})});Ar.displayName=Pr;function xn(e){return e?"open":"closed"}var _r="DialogTitleWarning",[Gl,Tr]=Ui(_r,{contentName:Re,titleName:bn,docsSlug:"dialog"}),kc=({titleId:e})=>{const t=Tr(_r),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 l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$c="DialogDescriptionWarning",Bc=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Tr($c).contentName}}.`;return l.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Yl=hr,Xl=gr,ql=wr,Zl=br,Ql=xr,Jl=Cr,eu=Rr,tu=Ar;function Wc(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Jn(e,[t,n]){return Math.min(n,Math.max(t,e))}var Vc=l.createContext(void 0);function Rt(e){const t=l.useContext(Vc);return e||t||"ltr"}var Hc=[" ","Enter","ArrowUp","ArrowDown"],Uc=[" ","Enter"],Pe="Select",[Pt,At,Kc]=on(Pe),[Be,nu]=be(Pe,[Kc,Eo]),_t=Eo(),[zc,xe]=Be(Pe),[Gc,Yc]=Be(Pe),Or=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:a,onValueChange:u,dir:c,name:f,autoComplete:p,disabled:v,required:m,form:b}=e,d=_t(t),[h,y]=l.useState(null),[g,x]=l.useState(null),[S,C]=l.useState(!1),R=Rt(c),[E,P]=ge({prop:o,defaultProp:r??!1,onChange:i,caller:Pe}),[D,I]=ge({prop:s,defaultProp:a,onChange:u,caller:Pe}),F=l.useRef(null),B=h?b||!!h.closest("form"):!0,[j,M]=l.useState(new Set),V=Array.from(j).map(T=>T.props.value).join(";");return w.jsx(Ma,{...d,children:w.jsxs(zc,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:ae(),value:D,onValueChange:I,open:E,onOpenChange:P,dir:R,triggerPointerDownPosRef:F,disabled:v,children:[w.jsx(Pt.Provider,{scope:t,children:w.jsx(Gc,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(T=>{M(L=>new Set(L).add(T))},[]),onNativeOptionRemove:l.useCallback(T=>{M(L=>{const A=new Set(L);return A.delete(T),A})},[]),children:n})}),B?w.jsxs(ei,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:T=>I(T.target.value),disabled:v,form:b,children:[D===void 0?w.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};Or.displayName=Pe;var Ir="SelectTrigger",Nr=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,i=_t(n),s=xe(Ir,n),a=s.disabled||o,u=K(t,s.onTriggerChange),c=At(n),f=l.useRef("touch"),[p,v,m]=ni(d=>{const h=c().filter(x=>!x.disabled),y=h.find(x=>x.value===s.value),g=oi(h,d,y);g!==void 0&&s.onValueChange(g.value)}),b=d=>{a||(s.onOpenChange(!0),m()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return w.jsx(ja,{asChild:!0,...i,children:w.jsx(O.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":ti(s.value)?"":void 0,...r,ref:u,onClick:N(r.onClick,d=>{d.currentTarget.focus(),f.current!=="mouse"&&b(d)}),onPointerDown:N(r.onPointerDown,d=>{f.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(b(d),d.preventDefault())}),onKeyDown:N(r.onKeyDown,d=>{const h=p.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&v(d.key),!(h&&d.key===" ")&&Hc.includes(d.key)&&(b(),d.preventDefault())})})})});Nr.displayName=Ir;var Dr="SelectValue",Mr=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:i,placeholder:s="",...a}=e,u=xe(Dr,n),{onValueNodeHasChildrenChange:c}=u,f=i!==void 0,p=K(t,u.onValueNodeChange);return G(()=>{c(f)},[c,f]),w.jsx(O.span,{...a,ref:p,style:{pointerEvents:"none"},children:ti(u.value)?w.jsx(w.Fragment,{children:s}):i})});Mr.displayName=Dr;var Xc="SelectIcon",jr=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return w.jsx(O.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});jr.displayName=Xc;var qc="SelectPortal",Lr=e=>w.jsx(rn,{asChild:!0,...e});Lr.displayName=qc;var Ae="SelectContent",Fr=l.forwardRef((e,t)=>{const n=xe(Ae,e.__scopeSelect),[o,r]=l.useState();if(G(()=>{r(new DocumentFragment)},[]),!n.open){const i=o;return i?ht.createPortal(w.jsx(kr,{scope:e.__scopeSelect,children:w.jsx(Pt.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx($r,{...e,ref:t})});Fr.displayName=Ae;var ee=10,[kr,Se]=Be(Ae),Zc="SelectContentImpl",Qc=Me("SelectContent.RemoveScroll"),$r=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:u,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:m,sticky:b,hideWhenDetached:d,avoidCollisions:h,...y}=e,g=xe(Ae,n),[x,S]=l.useState(null),[C,R]=l.useState(null),E=K(t,_=>S(_)),[P,D]=l.useState(null),[I,F]=l.useState(null),B=At(n),[j,M]=l.useState(!1),V=l.useRef(!1);l.useEffect(()=>{if(x)return pr(x)},[x]),ir();const T=l.useCallback(_=>{const[U,...Y]=B().map($=>$.ref.current),[W]=Y.slice(-1),k=document.activeElement;for(const $ of _)if($===k||($==null||$.scrollIntoView({block:"nearest"}),$===U&&C&&(C.scrollTop=0),$===W&&C&&(C.scrollTop=C.scrollHeight),$==null||$.focus(),document.activeElement!==k))return},[B,C]),L=l.useCallback(()=>T([P,x]),[T,P,x]);l.useEffect(()=>{j&&L()},[j,L]);const{onOpenChange:A,triggerPointerDownPosRef:H}=g;l.useEffect(()=>{if(x){let _={x:0,y:0};const U=W=>{var k,$;_={x:Math.abs(Math.round(W.pageX)-(((k=H.current)==null?void 0:k.x)??0)),y:Math.abs(Math.round(W.pageY)-((($=H.current)==null?void 0:$.y)??0))}},Y=W=>{_.x<=10&&_.y<=10?W.preventDefault():x.contains(W.target)||A(!1),document.removeEventListener("pointermove",U),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Y,{capture:!0})}}},[x,A,H]),l.useEffect(()=>{const _=()=>A(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[A]);const[X,fe]=ni(_=>{const U=B().filter(k=>!k.disabled),Y=U.find(k=>k.ref.current===document.activeElement),W=oi(U,_,Y);W&&setTimeout(()=>W.ref.current.focus())}),We=l.useCallback((_,U,Y)=>{const W=!V.current&&!Y;(g.value!==void 0&&g.value===U||W)&&(D(_),W&&(V.current=!0))},[g.value]),Ve=l.useCallback(()=>x==null?void 0:x.focus(),[x]),me=l.useCallback((_,U,Y)=>{const W=!V.current&&!Y;(g.value!==void 0&&g.value===U||W)&&F(_)},[g.value]),_e=o==="popper"?qt:Br,Ce=_e===qt?{side:a,sideOffset:u,align:c,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:m,sticky:b,hideWhenDetached:d,avoidCollisions:h}:{};return w.jsx(kr,{scope:n,content:x,viewport:C,onViewportChange:R,itemRefCallback:We,selectedItem:P,onItemLeave:Ve,itemTextRefCallback:me,focusSelectedItem:L,selectedItemText:I,position:o,isPositioned:j,searchRef:X,children:w.jsx(yn,{as:Qc,allowPinchZoom:!0,children:w.jsx(gn,{asChild:!0,trapped:g.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:N(r,_=>{var U;(U=g.trigger)==null||U.focus({preventScroll:!0}),_.preventDefault()}),children:w.jsx(gt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:w.jsx(_e,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:_=>_.preventDefault(),...y,...Ce,onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,_=>{const U=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!U&&_.key.length===1&&fe(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let W=B().filter(k=>!k.disabled).map(k=>k.ref.current);if(["ArrowUp","End"].includes(_.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const k=_.target,$=W.indexOf(k);W=W.slice($+1)}setTimeout(()=>T(W)),_.preventDefault()}})})})})})})});$r.displayName=Zc;var Jc="SelectItemAlignedPosition",Br=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,i=xe(Ae,n),s=Se(Ae,n),[a,u]=l.useState(null),[c,f]=l.useState(null),p=K(t,E=>f(E)),v=At(n),m=l.useRef(!1),b=l.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:y,focusSelectedItem:g}=s,x=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&d&&h&&y){const E=i.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(i.dir!=="rtl"){const k=I.left-P.left,$=D.left-k,q=E.left-$,ie=E.width+q,He=Math.max(ie,P.width),Ue=window.innerWidth-ee,Ke=Jn($,[ee,Math.max(ee,Ue-He)]);a.style.minWidth=ie+"px",a.style.left=Ke+"px"}else{const k=P.right-I.right,$=window.innerWidth-D.right-k,q=window.innerWidth-E.right-$,ie=E.width+q,He=Math.max(ie,P.width),Ue=window.innerWidth-ee,Ke=Jn($,[ee,Math.max(ee,Ue-He)]);a.style.minWidth=ie+"px",a.style.right=Ke+"px"}const F=v(),B=window.innerHeight-ee*2,j=d.scrollHeight,M=window.getComputedStyle(c),V=parseInt(M.borderTopWidth,10),T=parseInt(M.paddingTop,10),L=parseInt(M.borderBottomWidth,10),A=parseInt(M.paddingBottom,10),H=V+T+j+A+L,X=Math.min(h.offsetHeight*5,H),fe=window.getComputedStyle(d),We=parseInt(fe.paddingTop,10),Ve=parseInt(fe.paddingBottom,10),me=E.top+E.height/2-ee,_e=B-me,Ce=h.offsetHeight/2,_=h.offsetTop+Ce,U=V+T+_,Y=H-U;if(U<=me){const k=F.length>0&&h===F[F.length-1].ref.current;a.style.bottom="0px";const $=c.clientHeight-d.offsetTop-d.offsetHeight,q=Math.max(_e,Ce+(k?Ve:0)+$+L),ie=U+q;a.style.height=ie+"px"}else{const k=F.length>0&&h===F[0].ref.current;a.style.top="0px";const q=Math.max(me,V+d.offsetTop+(k?We:0)+Ce)+Y;a.style.height=q+"px",d.scrollTop=U-me+d.offsetTop}a.style.margin=`${ee}px 0`,a.style.minHeight=X+"px",a.style.maxHeight=B+"px",o==null||o(),requestAnimationFrame(()=>m.current=!0)}},[v,i.trigger,i.valueNode,a,c,d,h,y,i.dir,o]);G(()=>x(),[x]);const[S,C]=l.useState();G(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const R=l.useCallback(E=>{E&&b.current===!0&&(x(),g==null||g(),b.current=!1)},[x,g]);return w.jsx(tl,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:w.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(O.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Br.displayName=Jc;var el="SelectPopperPosition",qt=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ee,...i}=e,s=_t(n);return w.jsx(La,{...s,...i,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qt.displayName=el;var[tl,Sn]=Be(Ae,{}),Zt="SelectViewport",Wr=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,i=Se(Zt,n),s=Sn(Zt,n),a=K(t,i.onViewportChange),u=l.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),w.jsx(Pt.Slot,{scope:n,children:w.jsx(O.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:N(r.onScroll,c=>{const f=c.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&p){const m=Math.abs(u.current-f.scrollTop);if(m>0){const b=window.innerHeight-ee*2,d=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(d,h);if(y<b){const g=y+m,x=Math.min(b,g),S=g-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Wr.displayName=Zt;var Vr="SelectGroup",[nl,ol]=Be(Vr),rl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ae();return w.jsx(nl,{scope:n,id:r,children:w.jsx(O.div,{role:"group","aria-labelledby":r,...o,ref:t})})});rl.displayName=Vr;var Hr="SelectLabel",Ur=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ol(Hr,n);return w.jsx(O.div,{id:r.id,...o,ref:t})});Ur.displayName=Hr;var pt="SelectItem",[il,Kr]=Be(pt),zr=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:i,...s}=e,a=xe(pt,n),u=Se(pt,n),c=a.value===o,[f,p]=l.useState(i??""),[v,m]=l.useState(!1),b=K(t,g=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,g,o,r)}),d=ae(),h=l.useRef("touch"),y=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(il,{scope:n,value:o,disabled:r,textId:d,isSelected:c,onItemTextChange:l.useCallback(g=>{p(x=>x||((g==null?void 0:g.textContent)??"").trim())},[]),children:w.jsx(Pt.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:w.jsx(O.div,{role:"option","aria-labelledby":d,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:b,onFocus:N(s.onFocus,()=>m(!0)),onBlur:N(s.onBlur,()=>m(!1)),onClick:N(s.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:N(s.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:N(s.onPointerDown,g=>{h.current=g.pointerType}),onPointerMove:N(s.onPointerMove,g=>{var x;h.current=g.pointerType,r?(x=u.onItemLeave)==null||x.call(u):h.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,g=>{var x;g.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:N(s.onKeyDown,g=>{var S;((S=u.searchRef)==null?void 0:S.current)!==""&&g.key===" "||(Uc.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});zr.displayName=pt;var ze="SelectItemText",Gr=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...i}=e,s=xe(ze,n),a=Se(ze,n),u=Kr(ze,n),c=Yc(ze,n),[f,p]=l.useState(null),v=K(t,y=>p(y),u.onItemTextChange,y=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,y,u.value,u.disabled)}),m=f==null?void 0:f.textContent,b=l.useMemo(()=>w.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=c;return G(()=>(d(b),()=>h(b)),[d,h,b]),w.jsxs(w.Fragment,{children:[w.jsx(O.span,{id:u.textId,...i,ref:v}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?ht.createPortal(i.children,s.valueNode):null]})});Gr.displayName=ze;var Yr="SelectItemIndicator",Xr=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Kr(Yr,n).isSelected?w.jsx(O.span,{"aria-hidden":!0,...o,ref:t}):null});Xr.displayName=Yr;var Qt="SelectScrollUpButton",qr=l.forwardRef((e,t)=>{const n=Se(Qt,e.__scopeSelect),o=Sn(Qt,e.__scopeSelect),[r,i]=l.useState(!1),s=K(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=u.scrollTop>0;i(c)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?w.jsx(Qr,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});qr.displayName=Qt;var Jt="SelectScrollDownButton",Zr=l.forwardRef((e,t)=>{const n=Se(Jt,e.__scopeSelect),o=Sn(Jt,e.__scopeSelect),[r,i]=l.useState(!1),s=K(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<c;i(f)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?w.jsx(Qr,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});Zr.displayName=Jt;var Qr=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,i=Se("SelectScrollButton",n),s=l.useRef(null),a=At(n),u=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),G(()=>{var f;const c=a().find(p=>p.ref.current===document.activeElement);(f=c==null?void 0:c.ref.current)==null||f.scrollIntoView({block:"nearest"})},[a]),w.jsx(O.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:N(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:N(r.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:N(r.onPointerLeave,()=>{u()})})}),sl="SelectSeparator",Jr=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return w.jsx(O.div,{"aria-hidden":!0,...o,ref:t})});Jr.displayName=sl;var en="SelectArrow",al=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=_t(n),i=xe(en,n),s=Se(en,n);return i.open&&s.position==="popper"?w.jsx(Fa,{...r,...o,ref:t}):null});al.displayName=en;var cl="SelectBubbleInput",ei=l.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=l.useRef(null),i=K(o,r),s=Wc(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(p)}},[s,t]),w.jsx(O.select,{...n,style:{...co,...n.style},ref:i,defaultValue:t})});ei.displayName=cl;function ti(e){return e===""||e===void 0}function ni(e){const t=ve(e),n=l.useRef(""),o=l.useRef(0),r=l.useCallback(s=>{const a=n.current+s;t(a),function u(c){n.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>u(""),1e3))}(a)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}function oi(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=ll(e,Math.max(i,0));r.length===1&&(s=s.filter(c=>c!==n));const u=s.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function ll(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var ou=Or,ru=Nr,iu=Mr,su=jr,au=Lr,cu=Fr,lu=Wr,uu=Ur,fu=zr,du=Gr,pu=Xr,mu=qr,hu=Zr,vu=Jr,Vt="rovingFocusGroup.onEntryFocus",ul={bubbles:!1,cancelable:!0},qe="RovingFocusGroup",[tn,ri,fl]=on(qe),[dl,ii]=be(qe,[fl]),[pl,ml]=dl(qe),si=l.forwardRef((e,t)=>w.jsx(tn.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(tn.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(hl,{...e,ref:t})})}));si.displayName=qe;var hl=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...p}=e,v=l.useRef(null),m=K(t,v),b=Rt(i),[d,h]=ge({prop:s,defaultProp:a??null,onChange:u,caller:qe}),[y,g]=l.useState(!1),x=ve(c),S=ri(n),C=l.useRef(!1),[R,E]=l.useState(0);return l.useEffect(()=>{const P=v.current;if(P)return P.addEventListener(Vt,x),()=>P.removeEventListener(Vt,x)},[x]),w.jsx(pl,{scope:n,orientation:o,dir:b,loop:r,currentTabStopId:d,onItemFocus:l.useCallback(P=>h(P),[h]),onItemShiftTab:l.useCallback(()=>g(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:l.useCallback(()=>E(P=>P-1),[]),children:w.jsx(O.div,{tabIndex:y||R===0?-1:0,"data-orientation":o,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{C.current=!0}),onFocus:N(e.onFocus,P=>{const D=!C.current;if(P.target===P.currentTarget&&D&&!y){const I=new CustomEvent(Vt,ul);if(P.currentTarget.dispatchEvent(I),!I.defaultPrevented){const F=S().filter(T=>T.focusable),B=F.find(T=>T.active),j=F.find(T=>T.id===d),V=[B,j,...F].filter(Boolean).map(T=>T.ref.current);li(V,f)}}C.current=!1}),onBlur:N(e.onBlur,()=>g(!1))})})}),ai="RovingFocusGroupItem",ci=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,children:s,...a}=e,u=ae(),c=i||u,f=ml(ai,n),p=f.currentTabStopId===c,v=ri(n),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:d}=f;return l.useEffect(()=>{if(o)return m(),()=>b()},[o,m,b]),w.jsx(tn.ItemSlot,{scope:n,id:c,focusable:o,active:r,children:w.jsx(O.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...a,ref:t,onMouseDown:N(e.onMouseDown,h=>{o?f.onItemFocus(c):h.preventDefault()}),onFocus:N(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:N(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=yl(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let x=v().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(h.currentTarget);x=f.loop?wl(x,S+1):x.slice(S+1)}setTimeout(()=>li(x))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:d!=null}):s})})});ci.displayName=ai;var vl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yl(e,t,n){const o=gl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return vl[o]}function li(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function wl(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var bl=si,xl=ci,Tt="Collapsible",[Sl,ui]=be(Tt),[Cl,Cn]=Sl(Tt),fi=l.forwardRef((e,t)=>
vendor: 4,151 bytes, line 53
53{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[u,c]=ge({prop:o,defaultProp:r??!1,onChange:s,caller:Tt});return w.jsx(Cl,{scope:n,disabled:i,contentId:ae(),open:u,onOpenToggle:l.useCallback(()=>c(f=>!f),[c]),children:w.jsx(O.div,{"data-state":Rn(u),"data-disabled":i?"":void 0,...a,ref:t})})});fi.displayName=Tt;var di="CollapsibleTrigger",pi=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=Cn(di,n);return w.jsx(O.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Rn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:N(e.onClick,r.onOpenToggle)})});pi.displayName=di;var En="CollapsibleContent",mi=l.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Cn(En,e.__scopeCollapsible);return w.jsx(Fe,{present:n||r.open,children:({present:i})=>w.jsx(El,{...o,ref:t,present:i})})});mi.displayName=En;var El=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=e,s=Cn(En,n),[a,u]=l.useState(o),c=l.useRef(null),f=K(t,c),p=l.useRef(0),v=p.current,m=l.useRef(0),b=m.current,d=s.open||a,h=l.useRef(d),y=l.useRef(void 0);return l.useEffect(()=>{const g=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(g)},[]),G(()=>{const g=c.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();p.current=x.height,m.current=x.width,h.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),u(o)}},[s.open,o]),w.jsx(O.div,{"data-state":Rn(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!d,...i,ref:f,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:d&&r})});function Rn(e){return e?"open":"closed"}var Rl=fi,Pl=pi,Al=mi,re="Accordion",_l=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Pn,Tl,Ol]=on(re),[Ot,gu]=be(re,[Ol,ui]),An=ui(),hi=z.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,i=o;return w.jsx(Pn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?w.jsx(Ml,{...i,ref:t}):w.jsx(Dl,{...r,ref:t})})});hi.displayName=re;var[vi,Il]=Ot(re),[gi,Nl]=Ot(re,{collapsible:!1}),Dl=z.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,u]=ge({prop:n,defaultProp:o??"",onChange:r,caller:re});return w.jsx(vi,{scope:e.__scopeAccordion,value:z.useMemo(()=>a?[a]:[],[a]),onItemOpen:u,onItemClose:z.useCallback(()=>i&&u(""),[i,u]),children:w.jsx(gi,{scope:e.__scopeAccordion,collapsible:i,children:w.jsx(yi,{...s,ref:t})})})}),Ml=z.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=e,[s,a]=ge({prop:n,defaultProp:o??[],onChange:r,caller:re}),u=z.useCallback(f=>a((p=[])=>[...p,f]),[a]),c=z.useCallback(f=>a((p=[])=>p.filter(v=>v!==f)),[a]);return w.jsx(vi,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:c,children:w.jsx(gi,{scope:e.__scopeAccordion,collapsible:!0,children:w.jsx(yi,{...i,ref:t})})})}),[jl,It]=Ot(re),yi=z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...s}=e,a=z.useRef(null),u=K(a,t),c=Tl(n),p=Rt(r)==="ltr",v=N(e.onKeyDown,m=>{var P;if(!_l.includes(m.key))return;const b=m.target,d=c().filter(D=>{var I;return!((I=D.ref.current)!=null&&I.disabled)}),h=d.findIndex(D=>D.ref.current===b),y=d.length;if(h===-1)return;m.preventDefault();let g=h;const x=0,S=y-1,C=()=>{g=h+1,g>S&&(g=x)},R=()=>{g=h-1,g<x&&(g=S)};switch(m.key){case"Home":g=x;break;case"End":g=S;break;case"ArrowRight":i==="horizontal"&&(p?C():R());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(p?R():C());break;case"ArrowUp":i==="vertical"&&R();break}const E=g%y;(P=d[E].ref.current)==null||P.focus()});return w.jsx(jl,{scope:n,disabled:o,direction:r,orientation:i,children:w.jsx(Pn.Slot,{scope:n,children:w.jsx(O.div,{...s,"data-orientation":i,ref:u,onKeyDown:o?void 0:v})})})}),mt="AccordionItem",[Ll,_n]=Ot(mt),wi=z.forwardRef((e,t)=>
vendor: 4,114 bytes, line 53
53{const{__scopeAccordion:n,value:o,...r}=e,i=It(mt,n),s=Il(mt,n),a=An(n),u=ae(),c=o&&s.value.includes(o)||!1,f=i.disabled||e.disabled;return w.jsx(Ll,{scope:n,open:c,disabled:f,triggerId:u,children:w.jsx(Rl,{"data-orientation":i.orientation,"data-state":Ri(c),...a,...r,ref:t,disabled:f,open:c,onOpenChange:p=>{p?s.onItemOpen(o):s.onItemClose(o)}})})});wi.displayName=mt;var bi="AccordionHeader",xi=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=It(re,n),i=_n(bi,n);return w.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Ri(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:t})});xi.displayName=bi;var nn="AccordionTrigger",Si=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=It(re,n),i=_n(nn,n),s=Nl(nn,n),a=An(n);return w.jsx(Pn.ItemSlot,{scope:n,children:w.jsx(Pl,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...o,ref:t})})});Si.displayName=nn;var Ci="AccordionContent",Ei=z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=It(re,n),i=_n(Ci,n),s=An(n);return w.jsx(Al,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ei.displayName=Ci;function Ri(e){return e?"open":"closed"}var yu=hi,wu=wi,bu=xi,xu=Si,Su=Ei,Nt="Tabs",[Fl,Cu]=be(Nt,[ii]),Pi=ii(),[kl,Tn]=Fl(Nt),Ai=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:u="automatic",...c}=e,f=Rt(a),[p,v]=ge({prop:o,onChange:r,defaultProp:i??"",caller:Nt});return w.jsx(kl,{scope:n,baseId:ae(),value:p,onValueChange:v,orientation:s,dir:f,activationMode:u,children:w.jsx(O.div,{dir:f,"data-orientation":s,...c,ref:t})})});Ai.displayName=Nt;var _i="TabsList",Ti=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,i=Tn(_i,n),s=Pi(n);return w.jsx(bl,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:w.jsx(O.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})});Ti.displayName=_i;var Oi="TabsTrigger",Ii=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...i}=e,s=Tn(Oi,n),a=Pi(n),u=Mi(s.baseId,o),c=ji(s.baseId,o),f=o===s.value;return w.jsx(xl,{asChild:!0,...a,focusable:!r,active:f,children:w.jsx(O.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:u,...i,ref:t,onMouseDown:N(e.onMouseDown,p=>{!r&&p.button===0&&p.ctrlKey===!1?s.onValueChange(o):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(o)}),onFocus:N(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!r&&p&&s.onValueChange(o)})})})});Ii.displayName=Oi;var Ni="TabsContent",Di=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:i,...s}=e,a=Tn(Ni,n),u=Mi(a.baseId,o),c=ji(a.baseId,o),f=o===a.value,p=l.useRef(f);return l.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),w.jsx(Fe,{present:r||f,children:({present:v})=>w.jsx(O.div,{"data-state":f?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&i})})});Di.displayName=Ni;function Mi(e,t){return`${e}-trigger-${t}`}function ji(e,t){return`${e}-content-${t}`}var Eu=Ai,Ru=Ti,Pu=Ii,Au=Di;export{bu as $,ja as A,Hl as B,La as C,gt as D,Aa as E,pu as F,du as G,ou as H,fu as I,ru as J,iu as K,su as L,au as M,cu as N,Zl as O,O as P,lu as Q,Vl as R,Bl as S,Jl as T,ii as U,lo as V,Rt as W,bl as X,xl as Y,wu as Z,Wo as _,be as a,xu as a0,Su as a1,yu as a2,Jn as a3,mu as a4,hu as a5,uu as a6,vu as a7,Ru as a8,Pu as a9,Au as aa,Eu as ab,zl as ac,Gl as ad,ge as b,on as c,Fe as d,ve as e,N as f,rn as g,G as h,Zi as i,w as j,Eo as k,Ul as l,Fa as m,Wl as n,ae as o,Ma as p,xt as q,Ql as r,tu as s,Kl as t,K as u,eu as v,ql as w,Yl as x,Xl as y,Wc as z};

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.