PageSourceSearch

https://ssa-calculator-updated.lovable.app/assets/index-uuZofOve.js

js ssa-calculator-updated.lovable.app collected 2026-10-03 03:35:53 UTC 54,814 bytes, 41 lines download raw bytes

1import{r as a,j as l,b as ne,d as gt,u as Bn,C as Vn}from"./index-SbfAiqDU.js";import{c as et,e as St,f as tt,u as D,g as Ke,h as P,P as O,i as Fn,b as X,j as Ue,R as Hn,k as nt,l as Z,m as xt,V as Wn,A as Kn,n as Un,D as $n,C as zn,o as Yn,T as Gn,B as at,L as Oe,p as Xn,q as qn,d as Zn,r as Qn,I as Jn}from"./button-CRxLkZOG.js";const er=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tr=et("check",er);const nr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yt=et("chevron-down",nr);const rr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],or=et("chevron-up",rr);function be(e,[t,n]){return Math.min(n,Math.max(t,e))}var ar=a.createContext(void 0);function wt(e){const t=a.useContext(ar);return e||t||"ltr"}function bt(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function st(e){const t=sr(e),n=a.forwardRef((r,o)=>{const{children:c,...i}=r,s=a.Children.toArray(c),d=s.find(cr);if(d){const m=d.props.children,g=s.map(f=>f===d?a.Children.count(m)>1?a.Children.only(null):a.isValidElement(m)?m.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(m)?a.cloneElement(m,void 0,g):null})}return l.jsx(t,{...i,ref:o,children:c})});return n.displayName=`${e}.Slot`,n}function sr(e){const t=a.forwardRef((n,r)=>{const{children:o,...c}=n;if(a.isValidElement(o)){const i=ur(o),s=lr(c,o.props);return o.type!==a.Fragment&&(s.ref=r?St(r,i):i),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ir=Symbol("radix.slottable");function cr(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ir}function lr(e,t){const n={...t};for(const r in t){const o=e[r],c=t[r];/^on[A-Z]/.test(r)?o&&c?n[r]=(...s)=>{const d=c(...s);return o(...s),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...c}:r==="className"&&(n[r]=[o,c].filter(Boolean).join(" "))}return{...e,...n}}function ur(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ct(e){const t=e+"CollectionProvider",[n,r]=tt(t),[o,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=u=>{const{scope:p,children:h}=u,v=ne.useRef(null),S=ne.useRef(new Map).current;return l.jsx(o,{scope:p,itemMap:S,collectionRef:v,children:h})};i.displayName=t;const s=e+"CollectionSlot",d=st(s),m=ne.forwardRef((u,p)=>{const{scope:h,children:v}=u,S=c(s,h),b=D(p,S.collectionRef);return l.jsx(d,{ref:b,children:v})});m.displayName=s;const g=e+"CollectionItemSlot",f="data-radix-collection-item",x=st(g),w=ne.forwardRef((u,p)=>{const{scope:h,children:v,...S}=u,b=ne.useRef(null),E=D(p,b),T=c(g,h);return ne.useEffect(()=>(T.itemMap.set(b,{ref:b,...S}),()=>{T.itemMap.delete(b)})),l.jsx(x,{[f]:"",ref:E,children:v})});w.displayName=g;function y(u){const p=c(e+"CollectionConsumer",u);return ne.useCallback(()=>{const v=p.collectionRef.current;if(!v)return[];const S=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((T,N)=>S.indexOf(T.ref.current)-S.indexOf(N.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:m,ItemSlot:w},y,r]}var Et=["PageUp","PageDown"],Nt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Rt={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ue="Slider",[$e,dr,fr]=Ct(ue),[Tt]=tt(ue,[fr]),[pr,Ee]=Tt(ue),It=a.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:c=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:d=0,defaultValue:m=[r],value:g,onValueChange:f=()=>{},onValueCommit:x=()=>{},inverted:w=!1,form:y,...u}=e,p=a.useRef(new Set),h=a.useRef(0),S=i==="horizontal"?mr:hr,[b=[],E]=Ke({prop:g,defaultProp:m,onChange:R=>{[...p.current][h.current]?.focus(),f(R)}}),T=a.useRef(b);function N(R){const _=yr(b,R);F(R,_)}function V(R){F(R,h.current)}function H(){const R=T.current[h.current];b[h.current]!==R&&x(b)}function F(R,_,{commit:U}={commit:!1}){const $=Er(c),W=Nr(Math.round((R-r)/c)*c+r,$),M=be(W,[r,o]);E((L=[])=>{const B=Sr(L,M,_);if(Cr(B,d*c)){h.current=B.indexOf(M);const z=String(B)!==String(L);return z&&U&&x(B),z?B:L}else return L})}return l.jsx(pr,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:h,thumbs:p.current,values:b,orientation:i,form:y,children:l.jsx($e.Provider,{scope:e.__scopeSlider,children:l.jsx($e.Slot,{scope:e.__scopeSlider,children:l.jsx(S,{"aria-disabled":s,"data-disabled":s?"":void 0,...u,ref:t,onPointerDown:P(u.onPointerDown,()=>{s||(T.current=b)}),min:r,max:o,inverted:w,onSlideStart:s?void 0:N,onSlideMove:s?void 0:V,onSlideEnd:s?void 0:H,onHomeKeyDown:()=>!s&&F(r,0,{commit:!0}),onEndKeyDown:()=>!s&&F(o,b.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:_})=>
1{if(!s){const W=Et.includes(R.key)||R.shiftKey&&Nt.includes(R.key)?10:1,M=h.current,L=b[M],B=c*W*_;F(L+B,M,{commit:!0})}}})})})})});It.displayName=ue;var[Pt,jt]=Tt(ue,{startEdge:"left",endEdge:"right",size:"width",direction:1}),mr=a.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:c,onSlideStart:i,onSlideMove:s,onSlideEnd:d,onStepKeyDown:m,...g}=e,[f,x]=a.useState(null),w=D(t,S=>x(S)),y=a.useRef(void 0),u=wt(o),p=u==="ltr",h=p&&!c||!p&&c;function v(S){const b=y.current||f.getBoundingClientRect(),E=[0,b.width],N=rt(E,h?[n,r]:[r,n]);return y.current=b,N(S-b.left)}return l.jsx(Pt,{scope:e.__scopeSlider,startEdge:h?"left":"right",endEdge:h?"right":"left",direction:h?1:-1,size:"width",children:l.jsx(_t,{dir:u,"data-orientation":"horizontal",...g,ref:w,style:{...g.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:S=>{const b=v(S.clientX);i?.(b)},onSlideMove:S=>{const b=v(S.clientX);s?.(b)},onSlideEnd:()=>{y.current=void 0,d?.()},onStepKeyDown:S=>{const E=Rt[h?"from-left":"from-right"].includes(S.key);m?.({event:S,direction:E?-1:1})}})})}),hr=a.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:c,onSlideMove:i,onSlideEnd:s,onStepKeyDown:d,...m}=e,g=a.useRef(null),f=D(t,g),x=a.useRef(void 0),w=!o;function y(u){const p=x.current||g.current.getBoundingClientRect(),h=[0,p.height],S=rt(h,w?[r,n]:[n,r]);return x.current=p,S(u-p.top)}return l.jsx(Pt,{scope:e.__scopeSlider,startEdge:w?"bottom":"top",endEdge:w?"top":"bottom",size:"height",direction:w?1:-1,children:l.jsx(_t,{"data-orientation":"vertical",...m,ref:f,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:u=>{const p=y(u.clientY);c?.(p)},onSlideMove:u=>{const p=y(u.clientY);i?.(p)},onSlideEnd:()=>{x.current=void 0,s?.()},onStepKeyDown:u=>{const h=Rt[w?"from-bottom":"from-top"].includes(u.key);d?.({event:u,direction:h?-1:1})}})})}),_t=a.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:c,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:d,...m}=e,g=Ee(ue,n);return l.jsx(O.span,{...m,ref:t,onKeyDown:P(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(s(f),f.preventDefault()):Et.concat(Nt).includes(f.key)&&(d(f),f.preventDefault())}),onPointerDown:P(e.onPointerDown,f=>{const x=f.target;x.setPointerCapture(f.pointerId),f.preventDefault(),g.thumbs.has(x)?x.focus():r(f)}),onPointerMove:P(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:P(e.onPointerUp,f=>{const x=f.target;x.hasPointerCapture(f.pointerId)&&(x.releasePointerCapture(f.pointerId),c(f))})})}),Mt="SliderTrack",At=a.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ee(Mt,n);return l.jsx(O.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});At.displayName=Mt;var ze="SliderRange",Dt=a.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ee(ze,n),c=jt(ze,n),i=a.useRef(null),s=D(t,i),d=o.values.length,m=o.values.map(x=>Lt(x,o.min,o.max)),g=d>1?Math.min(...m):0,f=100-Math.max(...m);return l.jsx(O.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[c.startEdge]:g+"%",[c.endEdge]:f+"%"}})});Dt.displayName=ze;var Ye="SliderThumb",Ot=a.forwardRef((e,t)=>{const n=dr(e.__scopeSlider),[r,o]=a.useState(null),c=D(t,s=>o(s)),i=a.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return l.jsx(vr,{...e,ref:c,index:i})}),vr=a.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...c}=e,i=Ee(Ye,n),s=jt(Ye,n),[d,m]=a.useState(null),g=D(t,v=>m(v)),f=d?i.form||!!d.closest("form"):!0,x=Fn(d),w=i.values[r],y=w===void 0?0:Lt(w,i.min,i.max),u=xr(r,i.values.length),p=x?.[s.size],h=p?wr(p,y,s.direction):0;return a.useEffect(()=>{if(d)return i.thumbs.add(d),()=>{i.thumbs.delete(d)}},[d,i.thumbs]),l.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${y}% + ${h}px)`},children:[l.jsx($e.ItemSlot,{scope:e.__scopeSlider,children:l.jsx(O.span,{role:"slider","aria-label":e["aria-label"]||u,"aria-valuemin":i.min,"aria-valuenow":w,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...c,ref:g,style:w===void 0?{display:"none"}:e.style,onFocus:P(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&l.jsx(kt,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:w},r)]})});Ot.displayName=Ye;var gr="RadioBubbleInput",kt=a.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=a.useRef(null),c=D(o,r),i=bt(t);return a.useEffect(()=>{const s=o.current;if(!s)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&g){const f=new Event("input",{bubbles:!0});g.call(s,t),s.dispatchEvent(f)}},[i,t]),l.jsx(O.input,{style:{display:"none"},...n,ref:c,defaultValue:t})});kt.displayName=gr;function Sr(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,c)=>o-c)}function Lt(e,t,n){const c=100/(n-t)*(e-t);return be(c,[0,100])}function xr(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function yr(e,t){if(e.length===1)return 0;const n=e.map(o=>
1Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function wr(e,t,n){const r=e/2,c=rt([0,50],[0,r]);return(r-c(t)*n)*n}function br(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Cr(e,t){if(t>0){const n=br(e);return Math.min(...n)>=t}return!0}function rt(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Er(e){return(String(e).split(".")[1]||"").length}function Nr(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Bt=It,Rr=At,Tr=Dt,Ir=Ot;const Vt=a.forwardRef(({className:e,...t},n)=>l.jsxs(Bt,{ref:n,className:X("relative flex w-full touch-none select-none items-center",e),...t,children:[l.jsx(Rr,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:l.jsx(Tr,{className:"absolute h-full bg-primary"})}),l.jsx(Ir,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));Vt.displayName=Bt.displayName;var ke=0;function Pr(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??it()),document.body.insertAdjacentElement("beforeend",e[1]??it()),ke++,()=>{ke===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ke--}},[])}function it(){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 Le="focusScope.autoFocusOnMount",Be="focusScope.autoFocusOnUnmount",ct={bubbles:!1,cancelable:!0},jr="FocusScope",Ft=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...i}=e,[s,d]=a.useState(null),m=Ue(o),g=Ue(c),f=a.useRef(null),x=D(t,u=>d(u)),w=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let u=function(S){if(w.paused||!s)return;const b=S.target;s.contains(b)?f.current=b:q(f.current,{select:!0})},p=function(S){if(w.paused||!s)return;const b=S.relatedTarget;b!==null&&(s.contains(b)||q(f.current,{select:!0}))},h=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&q(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",p);const v=new MutationObserver(h);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",p),v.disconnect()}}},[r,s,w.paused]),a.useEffect(()=>{if(s){ut.add(w);const u=document.activeElement;if(!s.contains(u)){const h=new CustomEvent(Le,ct);s.addEventListener(Le,m),s.dispatchEvent(h),h.defaultPrevented||(_r(kr(Ht(s)),{select:!0}),document.activeElement===u&&q(s))}return()=>{s.removeEventListener(Le,m),setTimeout(()=>{const h=new CustomEvent(Be,ct);s.addEventListener(Be,g),s.dispatchEvent(h),h.defaultPrevented||q(u??document.body,{select:!0}),s.removeEventListener(Be,g),ut.remove(w)},0)}}},[s,m,g,w]);const y=a.useCallback(u=>{if(!n&&!r||w.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,h=document.activeElement;if(p&&h){const v=u.currentTarget,[S,b]=Mr(v);S&&b?!u.shiftKey&&h===b?(u.preventDefault(),n&&q(S,{select:!0})):u.shiftKey&&h===S&&(u.preventDefault(),n&&q(b,{select:!0})):h===v&&u.preventDefault()}},[n,r,w.paused]);return l.jsx(O.div,{tabIndex:-1,...i,ref:x,onKeyDown:y})});Ft.displayName=jr;function _r(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(q(r,{select:t}),document.activeElement!==n)return}function Mr(e){const t=Ht(e),n=lt(t,e),r=lt(t.reverse(),e);return[n,r]}function Ht(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lt(e,t){for(const n of e)if(!Ar(n,{upTo:t}))return n}function Ar(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 Dr(e){return e instanceof HTMLInputElement&&"select"in e}function q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dr(e)&&t&&e.select()}}var ut=Or();function Or(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dt(e,t),e.unshift(t)},remove(t){e=dt(e,t),e[0]?.resume()}}}function dt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function kr(e){return e.filter(t=>t.tagName!=="A")}function Lr(e){const t=Br(e),n=a.forwardRef((r,o)=>{const{children:c,...i}=r,s=a.Children.toArray(c),d=s.find(Fr);if(d){const m=d.props.children,g=s.map(f=>f===d?a.Children.count(m)>1?a.Children.only(null):a.isValidElement(m)?m.props.children:null:f);return l.jsx(t,{...i,ref:o,children:a.isValidElement(m)?a.cloneElement(m,void 0,g):null})}return l.jsx(t,{...i,ref:o,children:c})});return n.displayName=`${e}.Slot`,n}function Br(e){const t=a.forwardRef((n,r)=>{const{children:o,...c}=n;if(a.isValidElement(o)){const i=Wr(o),s=Hr(c,o.props);return o.type!==a.Fragment&&(s.ref=r?St(r,i):i),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vr=Symbol("radix.slottable");function Fr(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vr}function Hr(e,t){const n={...t};for(const r in t){const o=e[r],c=t[r];/^on[A-Z]/.test(r)?o&&c?n[r]=(...s)=>{const d=c(...s);return o(...s),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...c}
vendor: 14,618 bytes, lines 1-41
1:r==="className"&&(n[r]=[o,c].filter(Boolean).join(" "))}return{...e,...n}}function Wr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},se=new WeakMap,ve=new WeakMap,ge={},Ve=0,Wt=function(e){return e&&(e.host||Wt(e.parentNode))},Ur=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$r=function(e,t,n,r){var o=Ur(t,Array.isArray(e)?e:[e]);ge[n]||(ge[n]=new WeakMap);var c=ge[n],i=[],s=new Set,d=new Set(o),m=function(f){!f||s.has(f)||(s.add(f),m(f.parentNode))};o.forEach(m);var g=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(x){if(s.has(x))g(x);else try{var w=x.getAttribute(r),y=w!==null&&w!=="false",u=(se.get(x)||0)+1,p=(c.get(x)||0)+1;se.set(x,u),c.set(x,p),i.push(x),u===1&&y&&ve.set(x,!0),p===1&&x.setAttribute(n,"true"),y||x.setAttribute(r,"true")}catch(h){console.error("aria-hidden: cannot operate on ",x,h)}})};return g(t),s.clear(),Ve++,function(){i.forEach(function(f){var x=se.get(f)-1,w=c.get(f)-1;se.set(f,x),c.set(f,w),x||(ve.has(f)||f.removeAttribute(r),ve.delete(f)),w||f.removeAttribute(n)}),Ve--,Ve||(se=new WeakMap,se=new WeakMap,ve=new WeakMap,ge={})}},zr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Kr(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$r(r,o,n,"aria-hidden")):function(){return null}},G=function(){return G=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(t[c]=n[c])}return t},G.apply(this,arguments)};function Kt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Yr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,c;r<o;r++)(c||!(r in t))&&(c||(c=Array.prototype.slice.call(t,0,r)),c[r]=t[r]);return e.concat(c||Array.prototype.slice.call(t))}var ye="right-scroll-bar-position",we="width-before-scroll-bar",Gr="with-scroll-bars-hidden",Xr="--removed-body-scroll-bar-size";function Fe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qr(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zr=typeof window<"u"?a.useLayoutEffect:a.useEffect,ft=new WeakMap;function Qr(e,t){var n=qr(null,function(r){return e.forEach(function(o){return Fe(o,r)})});return Zr(function(){var r=ft.get(n);if(r){var o=new Set(r),c=new Set(e),i=n.current;o.forEach(function(s){c.has(s)||Fe(s,null)}),c.forEach(function(s){o.has(s)||Fe(s,i)})}ft.set(n,e)},[e]),n}function Jr(e){return e}function eo(e,t){t===void 0&&(t=Jr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(c){var i=t(c,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(c){for(r=!0;n.length;){var i=n;n=[],i.forEach(c)}n={push:function(s){return c(s)},filter:function(){return n}}},assignMedium:function(c){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(c),i=n}var d=function(){var g=i;i=[],g.forEach(c)},m=function(){return Promise.resolve().then(d)};m(),n={push:function(g){i.push(g),m()},filter:function(g){return i=i.filter(g),n}}}};return o}function to(e){e===void 0&&(e={});var t=eo(null);return t.options=G({async:!0,ssr:!1},e),t}var Ut=function(e){var t=e.sideCar,n=Kt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,G({},n))};Ut.isSideCarExport=!0;function no(e,t){return e.useMedium(t),Ut}var $t=to(),He=function(){},Ne=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:He,onWheelCapture:He,onTouchMoveCapture:He}),o=r[0],c=r[1],i=e.forwardProps,s=e.children,d=e.className,m=e.removeScrollBar,g=e.enabled,f=e.shards,x=e.sideCar,w=e.noRelative,y=e.noIsolation,u=e.inert,p=e.allowPinchZoom,h=e.as,v=h===void 0?"div":h,S=e.gapMode,b=Kt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=x,T=Qr([n,t]),N=G(G({},b),o);return a.createElement(a.Fragment,null,g&&a.createElement(E,{sideCar:$t,removeScrollBar:m,shards:f,noRelative:w,noIsolation:y,inert:u,setCallbacks:c,allowPinchZoom:!!p,lockRef:n,gapMode:S}),i?a.cloneElement(a.Children.only(s),G(G({},N),{ref:T})):a.createElement(v,G({},N,{className:d,ref:T}),s))});Ne.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ne.classNames={fullWidth:we,zeroRight:ye};var ro=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ro();return t&&e.setAttribute("nonce",t),e}function ao(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function so(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var io=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oo())&&(ao(t,n),so(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},co=function(){var e=io();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zt=function(){var e=co(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},lo={left:0,top:0,right:0,gap:0},We=function(e){return parseInt(e||"",10)||0},uo=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[We(n),We(r),We(o)]},fo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lo;var t=uo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},po=zt(),le="data-scroll-locked",mo=function(e,t,n,r){var o=e.left,c=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Gr,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(s,"px ").concat(r,`;
5  }
6  body[`).concat(le,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(c,`px;
12    padding-right: `).concat(i,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(s,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(ye,` {
20    right: `).concat(s,"px ").concat(r,`;
21  }
22  
23  .`).concat(we,` {
24    margin-right: `).concat(s,"px ").concat(r,`;
25  }
26  
27  .`).concat(ye," .").concat(ye,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(we," .").concat(we,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(le,`] {
36    `).concat(Xr,": ").concat(s,`px;
37  }
38`)},pt=function(){var e=parseInt(document.body.getAttribute(le)||"0",10);return isFinite(e)?e:0},ho=function(){a.useEffect(function(){return document.body.setAttribute(le,(pt()+1).toString()),function(){var e=pt()-1;e<=0?document.body.removeAttribute(le):document.body.setAttribute(le,e.toString())}},[])},vo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ho();var c=a.useMemo(function(){return fo(o)},[o]);return a.createElement(po,{styles:mo(c,!t,o,n?"":"!important")})},Ge=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return Ge=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{Ge=!1}var ie=Ge?{passive:!1}:!1,go=function(e){return e.tagName==="TEXTAREA"},Yt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!go(e)&&n[t]==="visible")},So=function(e){return Yt(e,"overflowY")},xo=function(e){return Yt(e,"overflowX")},mt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Gt(e,r);if(o){var c=Xt(e,r),i=c[1],s=c[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yo=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wo=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gt=function(e,t){return e==="v"?So(t):xo(t)},Xt=function(e,t){return e==="v"?yo(t):wo(t)},bo=function(e,t){return e==="h"&&t==="rtl"?-1:1},Co=function(e,t,n,r,o){var c=bo(e,window.getComputedStyle(t).direction),i=c*r,s=n.target,d=t.contains(s),m=!1,g=i>0,f=0,x=0;do{if(!s)break;var w=Xt(e,s),y=w[0],u=w[1],p=w[2],h=u-p-c*y;(y||h)&&Gt(e,s)&&(f+=h,x+=y);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(g&&Math.abs(f)<1||!g&&Math.abs(x)<1)&&(m=!0),m},xe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ht=function(e){return[e.deltaX,e.deltaY]},vt=function(e){return e&&"current"in e?e.current:e},Eo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},No=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Ro=0,ce=[];function To(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Ro++)[0],c=a.useState(zt)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=Yr([e.lockRef.current],(e.shards||[]).map(vt),!0).filter(Boolean);return u.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(u,p){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!i.current.allowPinchZoom;var h=xe(u),v=n.current,S="deltaX"in u?u.deltaX:v[0]-h[0],b="deltaY"in u?u.deltaY:v[1]-h[1],E,T=u.target,N=Math.abs(S)>Math.abs(b)?"h":"v";if("touches"in u&&N==="h"&&T.type==="range")return!1;var V=window.getSelection(),H=V&&V.anchorNode,F=H?H===T||H.contains(T):!1;if(F)return!1;var R=mt(N,T);if(!R)return!0;if(R?E=N:(E=N==="v"?"h":"v",R=mt(N,T)),!R)return!1;if(!r.current&&"changedTouches"in u&&(S||b)&&(r.current=E),!E)return!0;var _=r.current||E;return Co(_,p,u,_==="h"?S:b)},[]),d=a.useCallback(function(u){var p=u;if(!(!ce.length||ce[ce.length-1]!==c)){var h="deltaY"in p?ht(p):xe(p),v=t.current.filter(function(E){return E.name===p.type&&(E.target===p.target||p.target===E.shadowParent)&&Eo(E.delta,h)})[0];if(v&&v.should){p.cancelable&&p.preventDefault();return}if(!v){var S=(i.current.shards||[]).map(vt).filter(Boolean).filter(function(E){return E.contains(p.target)}),b=S.length>0?s(p,S[0]):!i.current.noIsolation;b&&p.cancelable&&p.preventDefault()}}},[]),m=a.useCallback(function(u,p,h,v){var S={name:u,delta:p,target:h,should:v,shadowParent:Io(h)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(b){return b!==S})},1)},[]),g=a.useCallback(function(u){n.current=xe(u),r.current=void 0},[]),f=a.useCallback(function(u){m(u.type,ht(u),u.target,s(u,e.lockRef.current))},[]),x=a.useCallback(function(u){m(u.type,xe(u),u.target,s(u,e.lockRef.current))},[]);a.useEffect(function(){return ce.push(c),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:x}),document.addEventListener("wheel",d,ie),document.addEventListener("touchmove",d,ie),document.addEventListener("touchstart",g,ie),function(){ce=ce.filter(function(u){return u!==c}),document.removeEventListener("wheel",d,ie),document.removeEventListener("touchmove",d,ie),document.removeEventListener("touchstart",g,ie)}},[]);var w=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(c,{styles:No(o)}):null,w?a.createElement(vo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Io(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Po=no($t,To);var qt=a.forwardRef(function(e,t){return a.createElement(Ne,G({},e,{ref:t,sideCar:Po}))});qt.classNames=Ne.classNames;var jo=[" ","Enter","ArrowUp","ArrowDown"],_o=[" ","Enter"],re="Select",[Re,Te,Mo]=Ct(re),[de]=tt(re,[Mo,xt]),Ie=xt(),[Ao,Q]=de(re),[Do,Oo]=de(re),Zt=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:c,value:i,defaultValue:s,onValueChange:d,dir:m,name:g,autoComplete:f,disabled:x,required:w,form:y}=e,u=Ie(t),[p,h]=a.useState(null),[v,S]=a.useState(null),[b,E]=a.useState(!1),T=wt(m),[N,V]=Ke({prop:r,defaultProp:o??!1,onChange:c,caller:re}),[H,F]=Ke({prop:i,defaultProp:s,onChange:d,caller:re}),R=a.useRef(null),_=p?y||!!p.closest("form"):!0,[U,$]=a.useState(new Set),W=Array.from(U).map(M=>M.props.value).join(";");return l.jsx(Hn,{...u,children:l.jsxs(Ao,{required:w,scope:t,trigger:p,onTriggerChange:h,valueNode:v,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:nt(),value:H,onValueChange:F,open:N,onOpenChange:V,dir:T,triggerPointerDownPosRef:R,disabled:x,children:[l.jsx(Re.Provider,{scope:t,children:l.jsx(Do,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(M=>{$(L=>new Set(L).add(M))},[]),onNativeOptionRemove:a.useCallback(M=>{$(L=>{const B=new Set(L);return B.delete(M),B})},[]),children:n})}),_?l.jsxs(bn,{"aria-hidden":!0,required:w,tabIndex:-1,name:g,autoComplete:f,value:H,onChange:M=>F(M.target.value),disabled:x,form:y,children:[H===void 0?l.jsx("option",{value:""}):null,Array.from(U)]},W):null]})})};Zt.displayName=re;var Qt="SelectTrigger",Jt=a.forwardRef((e,t)=>
vendor: 14,531 bytes, line 41
41{const{__scopeSelect:n,disabled:r=!1,...o}=e,c=Ie(n),i=Q(Qt,n),s=i.disabled||r,d=D(t,i.onTriggerChange),m=Te(n),g=a.useRef("touch"),[f,x,w]=En(u=>{const p=m().filter(S=>!S.disabled),h=p.find(S=>S.value===i.value),v=Nn(p,u,h);v!==void 0&&i.onValueChange(v.value)}),y=u=>{s||(i.onOpenChange(!0),w()),u&&(i.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return l.jsx(Kn,{asChild:!0,...c,children:l.jsx(O.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Cn(i.value)?"":void 0,...o,ref:d,onClick:P(o.onClick,u=>{u.currentTarget.focus(),g.current!=="mouse"&&y(u)}),onPointerDown:P(o.onPointerDown,u=>{g.current=u.pointerType;const p=u.target;p.hasPointerCapture(u.pointerId)&&p.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(y(u),u.preventDefault())}),onKeyDown:P(o.onKeyDown,u=>{const p=f.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&x(u.key),!(p&&u.key===" ")&&jo.includes(u.key)&&(y(),u.preventDefault())})})})});Jt.displayName=Qt;var en="SelectValue",tn=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:c,placeholder:i="",...s}=e,d=Q(en,n),{onValueNodeHasChildrenChange:m}=d,g=c!==void 0,f=D(t,d.onValueNodeChange);return Z(()=>{m(g)},[m,g]),l.jsx(O.span,{...s,ref:f,style:{pointerEvents:"none"},children:Cn(d.value)?l.jsx(l.Fragment,{children:i}):c})});tn.displayName=en;var ko="SelectIcon",nn=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(O.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nn.displayName=ko;var Lo="SelectPortal",rn=e=>l.jsx(Un,{asChild:!0,...e});rn.displayName=Lo;var oe="SelectContent",on=a.forwardRef((e,t)=>{const n=Q(oe,e.__scopeSelect),[r,o]=a.useState();if(Z(()=>{o(new DocumentFragment)},[]),!n.open){const c=r;return c?gt.createPortal(l.jsx(an,{scope:e.__scopeSelect,children:l.jsx(Re.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),c):null}return l.jsx(sn,{...e,ref:t})});on.displayName=oe;var Y=10,[an,J]=de(oe),Bo="SelectContentImpl",Vo=Lr("SelectContent.RemoveScroll"),sn=a.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:i,side:s,sideOffset:d,align:m,alignOffset:g,arrowPadding:f,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:u,avoidCollisions:p,...h}=e,v=Q(oe,n),[S,b]=a.useState(null),[E,T]=a.useState(null),N=D(t,C=>b(C)),[V,H]=a.useState(null),[F,R]=a.useState(null),_=Te(n),[U,$]=a.useState(!1),W=a.useRef(!1);a.useEffect(()=>{if(S)return zr(S)},[S]),Pr();const M=a.useCallback(C=>{const[A,...K]=_().map(k=>k.ref.current),[I]=K.slice(-1),j=document.activeElement;for(const k of C)if(k===j||(k?.scrollIntoView({block:"nearest"}),k===A&&E&&(E.scrollTop=0),k===I&&E&&(E.scrollTop=E.scrollHeight),k?.focus(),document.activeElement!==j))return},[_,E]),L=a.useCallback(()=>M([V,S]),[M,V,S]);a.useEffect(()=>{U&&L()},[U,L]);const{onOpenChange:B,triggerPointerDownPosRef:z}=v;a.useEffect(()=>{if(S){let C={x:0,y:0};const A=I=>{C={x:Math.abs(Math.round(I.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(I.pageY)-(z.current?.y??0))}},K=I=>{C.x<=10&&C.y<=10?I.preventDefault():S.contains(I.target)||B(!1),document.removeEventListener("pointermove",A),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",A),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",A),document.removeEventListener("pointerup",K,{capture:!0})}}},[S,B,z]),a.useEffect(()=>{const C=()=>B(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[B]);const[Pe,me]=En(C=>{const A=_().filter(j=>!j.disabled),K=A.find(j=>j.ref.current===document.activeElement),I=Nn(A,C,K);I&&setTimeout(()=>I.ref.current.focus())}),je=a.useCallback((C,A,K)=>{const I=!W.current&&!K;(v.value!==void 0&&v.value===A||I)&&(H(C),I&&(W.current=!0))},[v.value]),_e=a.useCallback(()=>S?.focus(),[S]),ae=a.useCallback((C,A,K)=>{const I=!W.current&&!K;(v.value!==void 0&&v.value===A||I)&&R(C)},[v.value]),he=r==="popper"?Xe:cn,fe=he===Xe?{side:s,sideOffset:d,align:m,alignOffset:g,arrowPadding:f,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:u,avoidCollisions:p}:{};return l.jsx(an,{scope:n,content:S,viewport:E,onViewportChange:T,itemRefCallback:je,selectedItem:V,onItemLeave:_e,itemTextRefCallback:ae,focusSelectedItem:L,selectedItemText:F,position:r,isPositioned:U,searchRef:Pe,children:l.jsx(qt,{as:Vo,allowPinchZoom:!0,children:l.jsx(Ft,{asChild:!0,trapped:v.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:P(o,C=>{v.trigger?.focus({preventScroll:!0}),C.preventDefault()}),children:l.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:i,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:l.jsx(he,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:C=>C.preventDefault(),...h,...fe,onPlaced:()=>$(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:P(h.onKeyDown,C=>{const A=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!A&&C.key.length===1&&me(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let I=_().filter(j=>!j.disabled).map(j=>j.ref.current);if(["ArrowUp","End"].includes(C.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const j=C.target,k=I.indexOf(j);I=I.slice(k+1)}setTimeout(()=>M(I)),C.preventDefault()}})})})})})})});sn.displayName=Bo;var Fo="SelectItemAlignedPosition",cn=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,c=Q(oe,n),i=J(oe,n),[s,d]=a.useState(null),[m,g]=a.useState(null),f=D(t,N=>g(N)),x=Te(n),w=a.useRef(!1),y=a.useRef(!0),{viewport:u,selectedItem:p,selectedItemText:h,focusSelectedItem:v}=i,S=a.useCallback(()=>{if(c.trigger&&c.valueNode&&s&&m&&u&&p&&h){const N=c.trigger.getBoundingClientRect(),V=m.getBoundingClientRect(),H=c.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(c.dir!=="rtl"){const j=F.left-V.left,k=H.left-j,ee=N.left-k,te=N.width+ee,Me=Math.max(te,V.width),Ae=window.innerWidth-Y,De=be(k,[Y,Math.max(Y,Ae-Me)]);s.style.minWidth=te+"px",s.style.left=De+"px"}else{const j=V.right-F.right,k=window.innerWidth-H.right-j,ee=window.innerWidth-N.right-k,te=N.width+ee,Me=Math.max(te,V.width),Ae=window.innerWidth-Y,De=be(k,[Y,Math.max(Y,Ae-Me)]);s.style.minWidth=te+"px",s.style.right=De+"px"}const R=x(),_=window.innerHeight-Y*2,U=u.scrollHeight,$=window.getComputedStyle(m),W=parseInt($.borderTopWidth,10),M=parseInt($.paddingTop,10),L=parseInt($.borderBottomWidth,10),B=parseInt($.paddingBottom,10),z=W+M+U+B+L,Pe=Math.min(p.offsetHeight*5,z),me=window.getComputedStyle(u),je=parseInt(me.paddingTop,10),_e=parseInt(me.paddingBottom,10),ae=N.top+N.height/2-Y,he=_-ae,fe=p.offsetHeight/2,C=p.offsetTop+fe,A=W+M+C,K=z-A;if(A<=ae){const j=R.length>0&&p===R[R.length-1].ref.current;s.style.bottom="0px";const k=m.clientHeight-u.offsetTop-u.offsetHeight,ee=Math.max(he,fe+(j?_e:0)+k+L),te=A+ee;s.style.height=te+"px"}else{const j=R.length>0&&p===R[0].ref.current;s.style.top="0px";const ee=Math.max(ae,W+u.offsetTop+(j?je:0)+fe)+K;s.style.height=ee+"px",u.scrollTop=A-ae+u.offsetTop}s.style.margin=`${Y}px 0`,s.style.minHeight=Pe+"px",s.style.maxHeight=_+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[x,c.trigger,c.valueNode,s,m,u,p,h,c.dir,r]);Z(()=>S(),[S]);const[b,E]=a.useState();Z(()=>{m&&E(window.getComputedStyle(m).zIndex)},[m]);const T=a.useCallback(N=>{N&&y.current===!0&&(S(),v?.(),y.current=!1)},[S,v]);return l.jsx(Wo,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:w,onScrollButtonChange:T,children:l.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:l.jsx(O.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});cn.displayName=Fo;var Ho="SelectPopperPosition",Xe=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Y,...c}=e,i=Ie(n);return l.jsx(zn,{...i,...c,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...c.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)"}})});Xe.displayName=Ho;var[Wo,ot]=de(oe,{}),qe="SelectViewport",ln=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,c=J(qe,n),i=ot(qe,n),s=D(t,c.onViewportChange),d=a.useRef(0);return l.jsxs(l.Fragment,{children:[l.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:r}),l.jsx(Re.Slot,{scope:n,children:l.jsx(O.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:P(o.onScroll,m=>{const g=m.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:x}=i;if(x?.current&&f){const w=Math.abs(d.current-g.scrollTop);if(w>0){const y=window.innerHeight-Y*2,u=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),h=Math.max(u,p);if(h<y){const v=h+w,S=Math.min(y,v),b=v-S;f.style.height=S+"px",f.style.bottom==="0px"&&(g.scrollTop=b>0?b:0,f.style.justifyContent="flex-end")}}}d.current=g.scrollTop})})})]})});ln.displayName=qe;var un="SelectGroup",[Ko,Uo]=de(un),$o=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=nt();return l.jsx(Ko,{scope:n,id:o,children:l.jsx(O.div,{role:"group","aria-labelledby":o,...r,ref:t})})});$o.displayName=un;var dn="SelectLabel",fn=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uo(dn,n);return l.jsx(O.div,{id:o.id,...r,ref:t})});fn.displayName=dn;var Ce="SelectItem",[zo,pn]=de(Ce),mn=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:c,...i}=e,s=Q(Ce,n),d=J(Ce,n),m=s.value===r,[g,f]=a.useState(c??""),[x,w]=a.useState(!1),y=D(t,v=>d.itemRefCallback?.(v,r,o)),u=nt(),p=a.useRef("touch"),h=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")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 l.jsx(zo,{scope:n,value:r,disabled:o,textId:u,isSelected:m,onItemTextChange:a.useCallback(v=>{f(S=>S||(v?.textContent??"").trim())},[]),children:l.jsx(Re.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:l.jsx(O.div,{role:"option","aria-labelledby":u,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:y,onFocus:P(i.onFocus,()=>w(!0)),onBlur:P(i.onBlur,()=>w(!1)),onClick:P(i.onClick,()=>{p.current!=="mouse"&&h()}),onPointerUp:P(i.onPointerUp,()=>{p.current==="mouse"&&h()}),onPointerDown:P(i.onPointerDown,v=>{p.current=v.pointerType}),onPointerMove:P(i.onPointerMove,v=>{p.current=v.pointerType,o?d.onItemLeave?.():p.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(i.onPointerLeave,v=>{v.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:P(i.onKeyDown,v=>{d.searchRef?.current!==""&&v.key===" "||(_o.includes(v.key)&&h(),v.key===" "&&v.preventDefault())})})})})});mn.displayName=Ce;var pe="SelectItemText",hn=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...c}=e,i=Q(pe,n),s=J(pe,n),d=pn(pe,n),m=Oo(pe,n),[g,f]=a.useState(null),x=D(t,h=>f(h),d.onItemTextChange,h=>s.itemTextRefCallback?.(h,d.value,d.disabled)),w=g?.textContent,y=a.useMemo(()=>l.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:u,onNativeOptionRemove:p}=m;return Z(()=>(u(y),()=>p(y)),[u,p,y]),l.jsxs(l.Fragment,{children:[l.jsx(O.span,{id:d.textId,...c,ref:x}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?gt.createPortal(c.children,i.valueNode):null]})});hn.displayName=pe;var vn="SelectItemIndicator",gn=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return pn(vn,n).isSelected?l.jsx(O.span,{"aria-hidden":!0,...r,ref:t}):null});gn.displayName=vn;var Ze="SelectScrollUpButton",Sn=a.forwardRef((e,t)=>{const n=J(Ze,e.__scopeSelect),r=ot(Ze,e.__scopeSelect),[o,c]=a.useState(!1),i=D(t,r.onScrollButtonChange);return Z(()=>{if(n.viewport&&n.isPositioned){let s=function(){const m=d.scrollTop>0;c(m)};const d=n.viewport;return s(),d.addEventListener("scroll",s),()=>d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(yn,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop-d.offsetHeight)}}):null});Sn.displayName=Ze;var Qe="SelectScrollDownButton",xn=a.forwardRef((e,t)=>{const n=J(Qe,e.__scopeSelect),r=ot(Qe,e.__scopeSelect),[o,c]=a.useState(!1),i=D(t,r.onScrollButtonChange);return Z(()=>{if(n.viewport&&n.isPositioned){let s=function(){const m=d.scrollHeight-d.clientHeight,g=Math.ceil(d.scrollTop)<m;c(g)};const d=n.viewport;return s(),d.addEventListener("scroll",s),()=>d.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(yn,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:d}=n;s&&d&&(s.scrollTop=s.scrollTop+d.offsetHeight)}}):null});xn.displayName=Qe;var yn=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,c=J("SelectScrollButton",n),i=a.useRef(null),s=Te(n),d=a.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return a.useEffect(()=>()=>d(),[d]),Z(()=>{s().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),l.jsx(O.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:P(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:P(o.onPointerMove,()=>{c.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:P(o.onPointerLeave,()=>{d()})})}),Yo="SelectSeparator",wn=a.forwardRef((e,t)=>
41{const{__scopeSelect:n,...r}=e;return l.jsx(O.div,{"aria-hidden":!0,...r,ref:t})});wn.displayName=Yo;var Je="SelectArrow",Go=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ie(n),c=Q(Je,n),i=J(Je,n);return c.open&&i.position==="popper"?l.jsx(Yn,{...o,...r,ref:t}):null});Go.displayName=Je;var Xo="SelectBubbleInput",bn=a.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=a.useRef(null),c=D(r,o),i=bt(t);return a.useEffect(()=>{const s=o.current;if(!s)return;const d=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&g){const f=new Event("change",{bubbles:!0});g.call(s,t),s.dispatchEvent(f)}},[i,t]),l.jsx(O.select,{...n,style:{...Wn,...n.style},ref:c,defaultValue:t})});bn.displayName=Xo;function Cn(e){return e===""||e===void 0}function En(e){const t=Ue(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback(i=>{const s=n.current+i;t(s),(function d(m){n.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(s)},[t]),c=a.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,c]}function Nn(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,c=n?e.indexOf(n):-1;let i=qo(e,Math.max(c,0));o.length===1&&(i=i.filter(m=>m!==n));const d=i.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function qo(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zo=Zt,Rn=Jt,Qo=tn,Jo=nn,ea=rn,Tn=on,ta=ln,In=fn,Pn=mn,na=hn,ra=gn,jn=Sn,_n=xn,Mn=wn;const oa=Zo,aa=Qo,An=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Rn,{ref:r,className:X("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(Jo,{asChild:!0,children:l.jsx(yt,{className:"h-4 w-4 opacity-50"})})]}));An.displayName=Rn.displayName;const Dn=a.forwardRef(({className:e,...t},n)=>l.jsx(jn,{ref:n,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(or,{className:"h-4 w-4"})}));Dn.displayName=jn.displayName;const On=a.forwardRef(({className:e,...t},n)=>l.jsx(_n,{ref:n,className:X("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(yt,{className:"h-4 w-4"})}));On.displayName=_n.displayName;const kn=a.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsx(ea,{children:l.jsxs(Tn,{ref:o,className:X("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsx(Dn,{}),l.jsx(ta,{className:X("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(On,{})]})}));kn.displayName=Tn.displayName;const sa=a.forwardRef(({className:e,...t},n)=>l.jsx(In,{ref:n,className:X("px-2 py-1.5 text-sm font-semibold",e),...t}));
41sa.displayName=In.displayName;const Ln=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Pn,{ref:r,className:X("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(ra,{children:l.jsx(tr,{className:"h-4 w-4"})})}),l.jsx(na,{children:t})]}));Ln.displayName=Pn.displayName;const ia=a.forwardRef(({className:e,...t},n)=>l.jsx(Mn,{ref:n,className:X("-mx-1 my-1 h-px bg-muted",e),...t}));ia.displayName=Mn.displayName;function ua(){const e=Bn(),[t,n]=a.useState(!1),[r,o]=a.useState(""),[c,i]=a.useState(1),[s,d]=a.useState(""),[m,g]=a.useState({}),f=a.useMemo(()=>{const y=parseFloat(r.replace(/[^0-9.]/g,""));return isNaN(y)?0:y},[r]),x=y=>{y.preventDefault();const u={};(!f||f<=0)&&(u.premium="Please enter a premium amount."),s||(u.caseType="Please select a case type."),g(u),!(Object.keys(u).length>0)&&e({to:"/results",search:{premium:f,years:c,caseType:s}})},w=y=>{const u=y.replace(/[^0-9.]/g,"");if(!u){o("");return}const p=parseFloat(u);if(isNaN(p)){o("");return}o(p.toLocaleString("en-US"))};return l.jsx(Gn,{children:l.jsx("div",{className:"min-h-screen bg-background",children:l.jsxs("main",{className:"mx-auto max-w-3xl px-4 py-5 sm:px-6 sm:py-14",children:[t?l.jsxs("section",{"aria-labelledby":"calc-heading",className:"rounded-2xl border border-border bg-card p-6 shadow-[var(--shadow-card)] sm:p-8",children:[l.jsx("h2",{id:"calc-heading",className:"sr-only",children:"Calculator inputs"}),l.jsxs("form",{onSubmit:x,className:"space-y-7",noValidate:!0,children:[l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(Oe,{htmlFor:"premium",className:"text-sm font-semibold",children:"Total Premium Amount"}),l.jsxs(Xn,{children:[l.jsx(qn,{asChild:!0,children:l.jsx("button",{type:"button","aria-label":"More info about premium amount",className:"text-muted-foreground transition-colors hover:text-foreground",children:l.jsx(Zn,{className:"h-4 w-4"})})}),l.jsx(Qn,{className:"max-w-xs",children:"The total lump sum amount being structured into the annuity."})]})]}),l.jsxs("div",{className:"relative",children:[l.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-3 flex items-center text-base text-muted-foreground",children:"$"}),l.jsx(Jn,{id:"premium",inputMode:"decimal",placeholder:"0",value:r,onChange:y=>w(y.target.value),className:"h-12 pl-7 text-base"})]}),m.premium&&l.jsx("p",{className:"text-xs text-destructive",children:m.premium})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx(Oe,{htmlFor:"years",className:"text-sm font-semibold",children:"Number of Years"}),l.jsx(Vt,{id:"years",min:1,max:40,step:1,value:[c],onValueChange:y=>i(y[0]),className:"py-2"}),l.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[l.jsx("span",{children:"1 year"}),l.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[c," ",c===1?"year":"years"]}),l.jsx("span",{children:"40 years"})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(Oe,{htmlFor:"caseType",className:"text-sm font-semibold",children:"Case Type"}),l.jsxs(oa,{value:s,onValueChange:y=>d(y),children:[l.jsx(An,{id:"caseType",className:"h-12 text-base",children:l.jsx(aa,{placeholder:"Select a case type"})}),l.jsx(kn,{children:Vn.map(y=>l.jsx(Ln,{value:y,children:y},y))})]}),m.caseType&&l.jsx("p",{className:"text-xs text-destructive",children:m.caseType})]}),l.jsx(at,{type:"submit",className:"h-12 w-full bg-primary text-base font-semibold text-primary-foreground transition-all hover:opacity-95 hover:shadow-[var(--shadow-elegant)]",children:"Calculate Results"})]})]}):l.jsxs("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-[var(--shadow-card)] sm:p-10",children:[l.jsx("h1",{className:"text-center text-2xl font-bold tracking-tight text-foreground sm:text-4xl",style:{fontFamily:"var(--font-display)"},children:"Structured Settlement Annuity Calculator"}),l.jsx("p",{className:"mt-3 text-center text-sm leading-relaxed text-muted-foreground sm:mt-6 sm:text-base",children:"Estimate the rate of return and annual payments from a structured settlement annuity — for tax-free personal injury cases or taxable c
41ases."}),l.jsxs("div",{className:"mt-5 rounded-xl bg-muted/50 p-4 sm:mt-8 sm:p-8",children:[l.jsx("h2",{className:"text-base font-bold text-foreground sm:text-2xl",style:{fontFamily:"var(--font-display)"},children:"Benefits of Using Our Calculator"}),l.jsxs("ul",{className:"mt-2 space-y-1.5 text-sm text-foreground sm:mt-4 sm:space-y-3 sm:text-base",children:[l.jsxs("li",{className:"flex gap-3",children:[l.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-foreground"}),"Instantly calculate your potential returns"]}),l.jsxs("li",{className:"flex gap-3",children:[l.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-foreground"}),"For tax-free cases, calculate your taxable equivalent yield"]}),l.jsxs("li",{className:"flex gap-3",children:[l.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-foreground"}),"Make informed decisions about your financial future"]})]})]}),l.jsx(at,{onClick:()=>n(!0),className:"mt-5 h-12 w-full bg-primary text-base font-semibold text-primary-foreground transition-all hover:opacity-95 hover:shadow-[var(--shadow-elegant)] sm:mt-8",children:"Start Calculating"})]}),l.jsx("footer",{className:"mt-12 text-center text-xs text-muted-foreground",children:l.jsx("p",{children:"This calculator provides estimates only and does not constitute financial, legal, or tax advice."})})]})})})}export{ua as component};

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.