PageSourceSearch

https://jamit.app/_next/static/chunks/5400-d3a16620ecd2acb3.js

js jamit.app collected 2026-10-02 15:18:43 UTC 103,159 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5400],{1933:(e,t,n)=>{n.d(t,{jH:()=>a});var r=n(12115),o=(n(95155),r.createContext(void 0));function a(e){const t=r.useContext(o);return e||t||"ltr"}},6415:(e,t,n)=>{n.d(t,{CC:()=>H,Q6:()=>V,bL:()=>G,zi:()=>W});var r=n(12115),o=n(27209),a=n(70379),i=n(47527),s=n(68599),c=n(98979),l=n(1933),u=n(83417),d=n(63509),f=n(55897),p=n(76094),h=n(95155),m=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],w={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[y,x,b]=(0,p.N)(g),[C,S]=(0,s.A)(g,[b]),[j,E]=C(g),R=r.forwardRef((e,t)=>{const{name:n,min:i=0,max:s=100,step:l=1,orientation:u="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[i],value:w,onValueChange:g=()=>{},onValueCommit:x=()=>{},inverted:b=!1,form:C,...S}=e,E=r.useRef(new Set),R=r.useRef(0),_="horizontal"===u?N:D,[M=[],k]=(0,c.i)({prop:w,defaultProp:p,onChange:e=>{const t=[...E.current];t[R.current]?.focus(),g(e)}}),P=r.useRef(M);function L(e,t,{commit:n}={commit:!1}){const r=function(e){return(String(e).split(".")[1]||"").length}(l),a=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-i)/l)*l+i,r),c=(0,o.q)(a,[i,s]);k((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,c,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}(e);return Math.min(...n)>=t}return!0}(r,f*l)){R.current=r.indexOf(c);const t=String(r)!==String(e);return t&&n&&x(r),t?r:e}return e})}return(0,h.jsx)(j,{scope:e.__scopeSlider,name:n,disabled:d,min:i,max:s,valueIndexToChangeRef:R,thumbs:E.current,values:M,orientation:u,form:C,children:(0,h.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,h.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,h.jsx)(_,{"aria-disabled":d,"data-disabled":d?"":void 0,...S,ref:t,onPointerDown:(0,a.mK)(S.onPointerDown,()=>{d||(P.current=M)}),min:i,max:s,inverted:b,onSlideStart:d?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(M,e);L(e,t)},onSlideMove:d?void 0:function(e){L(e,R.current)},onSlideEnd:d?void 0:function(){const e=P.current[R.current];M[R.current]!==e&&x(M)},onHomeKeyDown:()=>!d&&L(i,0,{commit:!0}),onEndKeyDown:()=>!d&&L(s,M.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!d){const n=m.includes(e.key)||e.shiftKey&&v.includes(e.key)?10:1,r=R.current;L(M[r]+l*n*t,r,{commit:!0})}}})})})})});R.displayName=g;var[_,M]=C(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),N=r.forwardRef((e,t)=>{const{min:n,max:o,dir:a,inverted:s,onSlideStart:c,onSlideMove:u,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,v]=r.useState(null),g=(0,i.s)(t,e=>v(e)),y=r.useRef(void 0),x=(0,l.jH)(a),b="ltr"===x,C=b&&!s||!b&&s;function S(e){const t=y.current||m.getBoundingClientRect(),r=z([0,t.width],C?[n,o]:[o,n]);return y.current=t,r(e-t.left)}return(0,h.jsx)(_,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:(0,h.jsx)(k,{dir:x,"data-orientation":"horizontal",...p,ref:g,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=S(e.clientX);c?.(t)},onSlideMove:e=>{const t=S(e.clientX);u?.(t)},onSlideEnd:()=>{y.current=void 0,d?.()},onStepKeyDown:e=>{const t=w[C?"from-left":"from-right"].includes(e.key);f?.({event:e,direction:t?-1:1})}})})}),D=r.forwardRef((e,t)=>{const{min:n,max:o,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,f=r.useRef(null),p=(0,i.s)(t,f),m=r.useRef(void 0),v=!a;function g(e){const t=m.current||f.current.getBoundingClientRect(),r=z([0,t.height],v?[o,n]:[n,o]);return m.current=t,r(e-t.top)}return(0,h.jsx)(_,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,h.jsx)(k,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);s?.(t)},onSlideMove:e=>{const t=g(e.clientY);c?.(t)},onSlideEnd:()=>{m.current=void 0,l?.()},onStepKeyDown:e=>
1{const t=w[v?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=E(g,n);return(0,h.jsx)(f.sG.span,{...u,ref:t,onKeyDown:(0,a.mK)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(c(e),e.preventDefault()):m.concat(v).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,a.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,a.mK)(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),P="SliderTrack",L=r.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=E(P,n);return(0,h.jsx)(f.sG.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});L.displayName=P;var T="SliderRange",A=r.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,a=E(T,n),s=M(T,n),c=r.useRef(null),l=(0,i.s)(t,c),u=a.values.length,d=a.values.map(e=>B(e,a.min,a.max)),p=u>1?Math.min(...d):0,m=100-Math.max(...d);return(0,h.jsx)(f.sG.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...o,ref:l,style:{...e.style,[s.startEdge]:p+"%",[s.endEdge]:m+"%"}})});A.displayName=T;var I="SliderThumb",O=r.forwardRef((e,t)=>{const n=x(e.__scopeSlider),[o,a]=r.useState(null),s=(0,i.s)(t,e=>a(e)),c=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,h.jsx)(K,{...e,ref:s,index:c})}),K=r.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:s,...c}=e,l=E(I,n),u=M(I,n),[p,m]=r.useState(null),v=(0,i.s)(t,e=>m(e)),w=!p||(l.form||!!p.closest("form")),g=(0,d.X)(p),x=l.values[o],b=void 0===x?0:B(x,l.min,l.max),C=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,l.values.length),S=g?.[u.size],j=S?function(e,t,n){const r=e/2,o=z([0,50],[0,r]);return(r-o(t)*n)*n}(S,b,u.direction):0;return r.useEffect(()=>{if(p)return l.thumbs.add(p),()=>{l.thumbs.delete(p)}},[p,l.thumbs]),(0,h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${b}% + ${j}px)`},children:[(0,h.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,h.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||C,"aria-valuemin":l.min,"aria-valuenow":x,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...c,ref:v,style:void 0===x?{display:"none"}:e.style,onFocus:(0,a.mK)(e.onFocus,()=>{l.valueIndexToChangeRef.current=o})})}),w&&(0,h.jsx)(F,{name:s??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:x},o)]})});O.displayName=I;var F=r.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const a=r.useRef(null),s=(0,i.s)(a,o),c=(0,u.Z)(t);return r.useEffect(()=>{const e=a.current;if(!e)return;const n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(c!==t&&r){const n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[c,t]),(0,h.jsx)(f.sG.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});function B(e,t,n){const r=100/(n-t)*(e-t);return(0,o.q)(r,[0,100])}function z(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])}}F.displayName="RadioBubbleInput";var G=R,H=L,V=A,W=O},17347:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(12115);function o(e){const t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},18460:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(29722);const o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,i=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return a(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:i,defaultVariants:s}=t,c=Object.keys(i).map(e=>{const t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;const a=o(t)||o(r);return i[e][a]}),l=n&&Object.entries(n).reduce((e,t)=>
1{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),u=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...l}[t]):{...s,...l}[t]===n})?[...e,n,r]:e},[]);return a(e,c,u,null==n?void 0:n.class,null==n?void 0:n.className)}},19040:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(12115),o=n(47650),a=n(55897),i=n(66294),s=n(95155),c=r.forwardRef((e,t)=>{const{container:n,...c}=e,[l,u]=r.useState(!1);(0,i.N)(()=>u(!0),[]);const d=n||l&&globalThis?.document?.body;return d?o.createPortal((0,s.jsx)(a.sG.div,{...c,ref:t}),d):null});c.displayName="Portal"},19650:(e,t,n)=>{n.d(t,{AX:()=>B,B1:()=>y,EA:()=>L,FW:()=>g,Gp:()=>O,Ir:()=>R,Jl:()=>f,KZ:()=>z,Kw:()=>G,Mw:()=>E,Qp:()=>v,Rj:()=>K,Su:()=>b,Yb:()=>S,an:()=>D,c_:()=>p,cn:()=>c,gu:()=>W,gy:()=>j,hI:()=>h,jG:()=>w,jJ:()=>H,mC:()=>C,o0:()=>d,oU:()=>_,tw:()=>x,uW:()=>N,vj:()=>u,y$:()=>M,yQ:()=>m});var r=n(29722),o=n(622),a=n(95155),i=n(12115),s=n(18460);function c(...e){return(0,o.QP)((0,r.$)(e))}var l=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M96 160C96 142.3 110.3 128 128 128L512 128C529.7 128 544 142.3 544 160C544 177.7 529.7 192 512 192L128 192C110.3 192 96 177.7 96 160zM96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320zM544 480C544 497.7 529.7 512 512 512L128 512C110.3 512 96 497.7 96 480C96 462.3 110.3 448 128 448L512 448C529.7 448 544 462.3 544 480z"})}),u=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M480 272C480 317.9 465.1 360.3 440 394.7L566.6 521.4C579.1 533.9 579.1 554.2 566.6 566.7C554.1 579.2 533.8 579.2 521.3 566.7L394.7 440C360.3 465.1 317.9 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272zM272 416C351.5 416 416 351.5 416 272C416 192.5 351.5 128 272 128C192.5 128 128 192.5 128 272C128 351.5 192.5 416 272 416z"})}),d=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})}),f=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})}),p=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}),h=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e,children:[(0,a.jsx)("path",{d:"m5 6 6 6-6 6"}),(0,a.jsx)("path",{d:"m12 6 6 6-6 6"})]}),m=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),v=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})}),w=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"
1currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"})}),g=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"})}),y=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M47.6 300.4 228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"})}),x=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 34.5L144.2 208H136v256h194.2c33.1 0 61-24.5 65.4-57.2l28.9-216.7c2.6-19.5-3.4-39.1-16.5-53.7s-31.8-22.4-51.5-22.4h-57.9l9.6-33.6c6.7-23.5-6.9-48-30.4-54.7zM32 224c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H32z"})}),b=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-34.5L144.2 304H136V48h194.2c33.1 0 61 24.5 65.4 57.2l28.9 216.7c2.6 19.5-3.4 39.1-16.5 53.7s-31.8 22.4-51.5 22.4h-57.9l9.6 33.6c6.7 23.5-6.9 48-30.4 54.7zM32 288c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H32z"})}),C=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})}),S=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"})}),j=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"})}),E=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M512 240c0 114.9-114.6 208-256 208-37.1 0-72.3-6.4-104.1-17.9-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9-2.5-6-1.1-12.8 3.4-17.4 .4-.3 11.2-12 21.9-29.3 5.5-8.9 11-19.7 15-30.7C15.5 358.7 0 301.4 0 240 0 125.1 114.6 32 256 32s256 93.1 256 208z"})}),R=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zM269.3 493.3c12-12 18.7-28.3 18.7-45.3H160c0 17 6.7 33.3 18.7 45.3S207 512 224 512s33.3-6.7 45.3-18.7z"})}),_=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"
1currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M256 48C141.1 48 48 141.1 48 256v96c0 35.3 28.7 64 64 64h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H112.8C128.2 132.3 208 64 256 64s127.8 68.3 143.2 160H368c-17.7 0-32 14.3-32 32v128c0 17.7 14.3 32 32 32h32c35.3 0 64-28.7 64-64V256C464 141.1 370.9 48 256 48z"})}),M=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M272 112C272 85.5 293.5 64 320 64C346.5 64 368 85.5 368 112C368 138.5 346.5 160 320 160C293.5 160 272 138.5 272 112zM272 528C272 501.5 293.5 480 320 480C346.5 480 368 501.5 368 528C368 554.5 346.5 576 320 576C293.5 576 272 554.5 272 528zM112 272C138.5 272 160 293.5 160 320C160 346.5 138.5 368 112 368C85.5 368 64 346.5 64 320C64 293.5 85.5 272 112 272zM480 320C480 293.5 501.5 272 528 272C554.5 272 576 293.5 576 320C576 346.5 554.5 368 528 368C501.5 368 480 346.5 480 320zM139 433.1C157.8 414.3 188.1 414.3 206.9 433.1C225.7 451.9 225.7 482.2 206.9 501C188.1 519.8 157.8 519.8 139 501C120.2 482.2 120.2 451.9 139 433.1zM139 139C157.8 120.2 188.1 120.2 206.9 139C225.7 157.8 225.7 188.1 206.9 206.9C188.1 225.7 157.8 225.7 139 206.9C120.2 188.1 120.2 157.8 139 139zM501 433.1C519.8 451.9 519.8 482.2 501 501C482.2 519.8 451.9 519.8 433.1 501C414.3 482.2 414.3 451.9 433.1 433.1C451.9 414.3 482.2 414.3 501 433.1z"})}),N=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M128 128C92.7 128 64 156.7 64 192L64 448C64 483.3 92.7 512 128 512L512 512C547.3 512 576 483.3 576 448L576 256C576 220.7 547.3 192 512 192L160 192C142.3 192 128 177.7 128 160C128 142.3 142.3 128 160 128L496 128C504.8 128 512 120.8 512 112C512 103.2 504.8 96 496 96L128 96zM464 352C464 334.3 478.3 320 496 320C513.7 320 528 334.3 528 352C528 369.7 513.7 384 496 384C478.3 384 464 369.7 464 352z"})}),D=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor","aria-hidden":"true",...e,children:(0,a.jsx)("path",{d:"M94.7 270.1C116.4 184.3 194 120 286.6 120C345.5 120 398.5 145.9 434.7 186.9L463.1 158.5C471.3 150.3 483.6 147.8 494.3 152.3C505 156.8 512 167.2 512 178.8L512 295.4C512 308 501.8 318.2 489.2 318.2L372.6 318.2C361 318.2 350.6 311.2 346.1 300.5C341.6 289.8 344.1 277.5 352.3 269.3L390.2 231.4C365.1 205.2 328.2 188 286.6 188C222.3 188 168.2 232.6 153.1 292.4C149.1 308.2 133 317.8 117.2 313.8C101.4 309.8 91.8 293.7 95.8 277.9L94.7 270.1zM545.3 370C549.3 354.2 565.4 344.6 581.2 348.6C597 352.6 606.6 368.7 602.6 384.5C580.9 470.3 503.3 534.6 410.7 534.6C351.9 534.6 298.9 508.7 262.6 467.8L234.2 496.2C226 504.4 213.7 506.9 203 502.4C192.3 497.9 185.3 487.5 185.3 475.9L185.3 359.3C185.3 346.7 195.5 336.5 208.1 336.5L324.7 336.5C336.3 336.5 346.7 343.5 351.2 354.2C355.7 364.9 353.2 377.2 345 385.4L307.1 423.3C332.2 449.5 369.1 466.7 410.7 466.7C475 466.7 529.1 422.1 544.2 362.3L545.3 370z"})}),k=(0,s.F)(["relative isolate overflow-hidden","bg-[var(--color-surface-elevated,#262626)]","before:absolute before:inset-0 before:-translate-x-full","before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent","before:animate-[belle-skeleton-shimmer_1.6s_ease-in-out_infinite]","motion-reduce:before:hidden motion-reduce:animate-pulse"].join(" "),{variants:{variant:{rect:"rounded-[var(--radius-md,8px)]",rounded:"rounded-[var(--radius-xl,16px)]",circle:"rounded-full",text:"rounded-md",pill:"rounded-full"}},defaultVariants:{variant:"rect"}}),P=e=>"number"==typeof e?`${e}px`:e,L=(0,i.forwardRef)(function({className:e,variant:t="rect",width:n,height:r,lines:o,style:i,...s},l){const u={width:P(n),height:P(r),...i};return"text"===t&&o&&o>1?(0,a.jsxs)("div",{ref:l,role:"status","aria-busy":"true","aria-live":"polite",className:c("flex w-full flex-col gap-2",e),style:i,...s,children:[Array.from({length:o}).map((e,t)=>(0,a.jsx)("div",{className:c(k({variant:"text"}),"h-3.5"),style:{width:t===o-1?"60%":"100%"}},t)),(0,a.jsx)("span",{className:"sr-only",children:"Loading…"})]}):(0,a.jsx)("div",{ref:l,role:"status","aria-busy":"true","aria-live":"polite",className:c(k({variant:t}),"text"===t&&"h-3.5 w-full",e),style:u,...s,children:(0,a.jsx)("span",{className:"sr-only",children:"Loading…"})})}),T=(0,s.F)("jamit-header",{variants:{size:{sm:"jamit-header--sm",md:"jamit-header--md",lg:"jamit-header--lg"}},defaultVariants:{size:"md"}}),A=(0,i.forwardRef)(function({className:e,size:t,leading:n,center:r,trailing:o,children:i,...s},l){return i?(0,a.jsx)("header",{ref:l,className:c(T({size:t}),e),...s,children:i}):(0,a.jsxs)("header",{ref:l,className:c(T({size:t}),e),...s,children:[(0,a.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:n}),(0,a.jsx)("div",{className:"flex-1 flex items-center justify-center max-w-2xl mx-auto",children:r}),(0,a.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:o})]})}),I=(0,i.forwardRef)(function({className:e,icon:t,...n},r){return(0,a.jsx)("button",{ref:r,type:"button","aria-label":"Toggle menu",className:c("jamit-header__menu-btn",e),...n,children:t||(0,a.jsx)(l,{className:"h-5 w-5"})})}),O=(0,i.forwardRef)(function({className:e,children:t,href:n,...r},o){const i=(0,a.jsx)("div",{ref:o,className:c("jamit-header__logo",e),...r,children:t});return n?(0,a.jsx)("a",{href:n,className:"cursor-pointer",children:i}):i}
1),K=(0,i.forwardRef)(function({className:e,placeholder:t="Search...",onSearch:n,icon:r,children:o,onKeyDown:i,...s},l){return(0,a.jsxs)("div",{className:c("relative w-full min-w-0",e),children:[(0,a.jsxs)("div",{className:"jamit-header__search-input",children:[r||(0,a.jsx)(u,{className:"h-4 w-4 text-[var(--color-text-tertiary,#737373)] shrink-0"}),(0,a.jsx)("input",{ref:l,type:"text",placeholder:t,onKeyDown:e=>{"Enter"===e.key&&n&&(e.preventDefault(),n(e.currentTarget.value)),i?.(e)},className:"jamit-header__search-field",...s})]}),o]})}),F=(0,s.F)("jamit-header__stat-pill",{variants:{variant:{default:"",primary:"jamit-header__stat-pill--primary",secondary:"jamit-header__stat-pill--secondary",gamification:"jamit-header__stat-pill--gamification",social:"jamit-header__stat-pill--social"}},defaultVariants:{variant:"default"}}),B=(0,i.forwardRef)(function({className:e,variant:t,icon:n,value:r,label:o,labelVariant:i,isLoading:s,href:l,...u},d){const f=(0,a.jsxs)("div",{ref:d,className:c(F({variant:t}),e),...u,children:[n&&(0,a.jsx)("span",{className:"shrink-0",children:n}),s?(0,a.jsx)(M,{className:"h-3 w-3"}):(0,a.jsx)("span",{children:r}),o&&(0,a.jsx)("span",{className:c(F({variant:i||t})),children:o})]});return l?(0,a.jsx)("a",{href:l,className:"cursor-pointer hover:opacity-80 transition-opacity",children:f}):f}),z=(0,i.forwardRef)(function({className:e,children:t,divided:n=!0,...r},o){return(0,a.jsx)("div",{ref:o,className:c("jamit-header__stat-group",n&&"jamit-header__stat-group--divided",e),...r,children:t})}),G=(0,i.forwardRef)(function({className:e,src:t,alt:n="User avatar",fallback:r,avatarSize:o=30,name:i,showCaret:s,...l},u){const d=t?(0,a.jsx)("img",{src:t,alt:n,className:"h-full w-full object-cover"}):(0,a.jsx)("div",{className:"jamit-header__avatar-fallback",children:r||("string"==typeof i?i.charAt(0):n?.charAt(0))?.toUpperCase()||"?"});if(null!=i){const t=s??!0;return(0,a.jsxs)("button",{ref:u,type:"button","aria-label":"User menu","aria-haspopup":"menu",className:c("inline-flex cursor-pointer items-center gap-2.5 rounded-full bg-(--color-surface-elevated,#262626) py-1 pl-1 pr-3 text-sm font-medium text-(--color-text,#fafafa) transition-colors hover:bg-(--color-border,#3a3a3a)",e),...l,children:[(0,a.jsx)("span",{className:"block shrink-0 overflow-hidden rounded-full bg-(--color-surface,#0a0a0a)",style:{width:o,height:o},children:d}),(0,a.jsx)("span",{className:"truncate",children:i}),t&&(0,a.jsx)(m,{className:"size-4 shrink-0 text-(--color-text-secondary,#a3a3a3)"})]})}return(0,a.jsx)("button",{ref:u,type:"button","aria-label":"User menu",className:c("jamit-header__avatar-btn",e),style:{width:o,height:o},...l,children:d})}),H=Object.assign(A,{MenuButton:I,Logo:O,SearchInput:K,StatPill:B,StatGroup:z,Avatar:G}),V={black:"jamit-logo-black.svg",white:"jamit-logo-white.svg","icon-black":"jamit-icon-logo-black.svg","icon-white":"jamit-icon-logo-white.svg","icon-colored":"jamit-icon-logo-colored.svg"},W=(0,i.forwardRef)(function({variant:e="white",width:t,height:n,basePath:r="/logos",className:o,alt:i="Jamit",...s},l){const u=`${r}/${V[e]}`,d=e.startsWith("icon-"),f=t??(d?40:120),p=n??40;return(0,a.jsx)("img",{ref:l,src:u,alt:i,width:f,height:p,className:c("object-contain",o),...s})})},22032:(e,t,n)=>{n.d(t,{Mz:()=>T,i3:()=>I,UC:()=>A,bL:()=>L,Bk:()=>w});var r=n(12115),o=n(9683),a=n(17294),i=n(55897),s=n(95155),c=r.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,s.jsx)(i.sG.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});c.displayName="Arrow";var l=c,u=n(47527),d=n(68599),f=n(17347),p=n(66294),h=n(63509),m="Popper",[v,w]=(0,d.A)(m),[g,y]=v(m),x=e=>{const{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,s.jsx)(g,{scope:t,anchor:o,onAnchorChange:a,children:n})};x.displayName=m;var b="PopperAnchor",C=r.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...a}=e,c=y(b,n),l=r.useRef(null),d=(0,u.s)(t,l),f=r.useRef(null);return r.useEffect(()=>{const e=f.current;f.current=o?.current||l.current,e!==f.current&&c.onAnchorChange(f.current)}),o?null:(0,s.jsx)(i.sG.div,{...a,ref:d})});C.displayName=b;var S="PopperContent",[j,E]=v(S),R=r.forwardRef((e,t)=>
1{const{__scopePopper:n,side:c="bottom",sideOffset:l=0,align:d="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:R,..._}=e,M=y(S,n),[N,L]=r.useState(null),T=(0,u.s)(t,e=>L(e)),[A,I]=r.useState(null),O=(0,h.X)(A),K=O?.width??0,F=O?.height??0,B=c+("center"!==d?"-"+d:""),z="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},G=Array.isArray(g)?g:[g],H=G.length>0,V={padding:z,boundary:G.filter(D),altBoundary:H},{refs:W,floatingStyles:U,placement:$,isPositioned:q,middlewareData:X}=(0,o.we)({strategy:"fixed",placement:B,whileElementsMounted:(...e)=>(0,a.ll)(...e,{animationFrame:"always"===E}),elements:{reference:M.anchor},middleware:[(0,o.cY)({mainAxis:l+F,alignmentAxis:m}),w&&(0,o.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?(0,o.ER)():void 0,...V}),w&&(0,o.UU)({...V}),(0,o.Ej)({...V,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),A&&(0,o.UE)({element:A,padding:v}),k({arrowWidth:K,arrowHeight:F}),C&&(0,o.jD)({strategy:"referenceHidden",...V})]}),[Y,Z]=P($),J=(0,f.c)(R);(0,p.N)(()=>{q&&J?.()},[q,J]);const Q=X.arrow?.x,ee=X.arrow?.y,te=0!==X.arrow?.centerOffset,[ne,re]=r.useState();return(0,p.N)(()=>{N&&re(window.getComputedStyle(N).zIndex)},[N]),(0,s.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:q?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(j,{scope:n,placedSide:Y,onArrowChange:I,arrowX:Q,arrowY:ee,shouldHideArrow:te,children:(0,s.jsx)(i.sG.div,{"data-side":Y,"data-align":Z,..._,ref:T,style:{..._.style,animation:q?void 0:"none"}})})})});R.displayName=S;var _="PopperArrow",M={top:"bottom",right:"left",bottom:"top",left:"right"},N=r.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=E(_,n),a=M[o.placedSide];return(0,s.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(l,{...r,ref:t,style:{...r.style,display:"block"}})})});function D(e){return null!==e}N.displayName=_;var k=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=P(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===c?(p=a?u:`${d}px`,h=-s+"px"):"top"===c?(p=a?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",h=a?u:`${f}px`):"left"===c&&(p=`${r.floating.width+s}px`,h=a?u:`${f}px`),{data:{x:p,y:h}}}});function P(e){const[t,n="center"]=e.split("-");return[t,n]}var L=x,T=C,A=R,I=N},22954:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,a=new WeakMap,i={},s=0,c=function(e){return e&&(e.host||c(e.parentNode))},l=function(e,t,n,r){var l=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);i[n]||(i[n]=new WeakMap);var u=i[n],d=[],f=new Set,p=new Set(l),h=function(e){e&&!f.has(e)&&(f.add(e),h(e.parentNode))};l.forEach(h);var m=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,s=(o.get(e)||0)+1,c=(u.get(e)||0)+1;o.set(e,s),u.set(e,c),d.push(e),1===s&&i&&a.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),s++,function(){d.forEach(function(e){var t=o.get(e)-1,i=u.get(e)-1;o.set(e,t),u.set(e,i),t||(a.has(e)||e.removeAttribute(r),a.delete(e)),i||e.removeAttribute(n)}),--s||(o=new WeakMap,o=new WeakMap,a=new WeakMap,i={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||r(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),l(o,a,n,"aria-hidden")):function(){return null}}},26765:(e,t,n)=>{n.d(t,{UC:()=>Ke,YJ:()=>Be,In:()=>Ie,q7:()=>Ge,VF:()=>Ve,p4:()=>He,JU:()=>ze,ZL:()=>Oe,bL:()=>Le,wn:()=>Ue,PP:()=>We,wv:()=>$e,l9:()=>Te,WT:()=>Ae,LM:()=>Fe});var r=n(12115),o=n(47650),a=n(27209),i=n(70379),s=n(76094),c=n(47527),l=n(68599),u=n(1933),d=n(98454),f=n(32007),p=n(69885),h=n(89971),m=n(22032),v=n(19040),w=n(55897),g=n(42442),y=n(17347),x=n(98979),b=n(66294),C=n(83417),S=n(95155),j=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"}),E=r.forwardRef((e,t)=>
1(0,S.jsx)(w.sG.span,{...e,ref:t,style:{...j,...e.style}}));E.displayName="VisuallyHidden";var R=n(22954),_=n(78919),M=[" ","Enter","ArrowUp","ArrowDown"],N=[" ","Enter"],D="Select",[k,P,L]=(0,s.N)(D),[T,A]=(0,l.A)(D,[L,m.Bk]),I=(0,m.Bk)(),[O,K]=T(D),[F,B]=T(D),z=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:a,onOpenChange:i,value:s,defaultValue:c,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:v,required:w,form:g}=e,y=I(t),[b,C]=r.useState(null),[j,E]=r.useState(null),[R,_]=r.useState(!1),M=(0,u.jH)(d),[N,P]=(0,x.i)({prop:o,defaultProp:a??!1,onChange:i,caller:D}),[L,T]=(0,x.i)({prop:s,defaultProp:c,onChange:l,caller:D}),A=r.useRef(null),K=!b||(g||!!b.closest("form")),[B,z]=r.useState(new Set),G=Array.from(B).map(e=>e.props.value).join(";");return(0,S.jsx)(m.bL,{...y,children:(0,S.jsxs)(O,{required:w,scope:t,trigger:b,onTriggerChange:C,valueNode:j,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:_,contentId:(0,h.B)(),value:L,onValueChange:T,open:N,onOpenChange:P,dir:M,triggerPointerDownPosRef:A,disabled:v,children:[(0,S.jsx)(k.Provider,{scope:t,children:(0,S.jsx)(F,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{z(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{z(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),K?(0,S.jsxs)(Ne,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:L,onChange:e=>T(e.target.value),disabled:v,form:g,children:[void 0===L?(0,S.jsx)("option",{value:""}):null,Array.from(B)]},G):null]})})};z.displayName=D;var G="SelectTrigger",H=r.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...a}=e,s=I(n),l=K(G,n),u=l.disabled||o,d=(0,c.s)(t,l.onTriggerChange),f=P(n),p=r.useRef("touch"),[h,v,g]=ke(e=>{const t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=Pe(t,e,n);void 0!==r&&l.onValueChange(r.value)}),y=e=>{u||(l.onOpenChange(!0),g()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,S.jsx)(m.Mz,{asChild:!0,...s,children:(0,S.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":De(l.value)?"":void 0,...a,ref:d,onClick:(0,i.mK)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:(0,i.mK)(a.onPointerDown,e=>{p.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,i.mK)(a.onKeyDown,e=>{const t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),t&&" "===e.key||M.includes(e.key)&&(y(),e.preventDefault())})})})});H.displayName=G;var V="SelectValue",W=r.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=K(V,n),{onValueNodeHasChildrenChange:u}=l,d=void 0!==a,f=(0,c.s)(t,l.onValueNodeChange);return(0,b.N)(()=>{u(d)},[u,d]),(0,S.jsx)(w.sG.span,{...s,ref:f,style:{pointerEvents:"none"},children:De(l.value)?(0,S.jsx)(S.Fragment,{children:i}):a})});W.displayName=V;var U=r.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,S.jsx)(w.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});U.displayName="SelectIcon";var $=e=>(0,S.jsx)(v.Z,{asChild:!0,...e});$.displayName="SelectPortal";var q="SelectContent",X=r.forwardRef((e,t)=>{const n=K(q,e.__scopeSelect),[a,i]=r.useState();if((0,b.N)(()=>{i(new DocumentFragment)},[]),!n.open){const t=a;return t?o.createPortal((0,S.jsx)(Z,{scope:e.__scopeSelect,children:(0,S.jsx)(k.Slot,{scope:e.__scopeSelect,children:(0,S.jsx)("div",{children:e.children})})}),t):null}return(0,S.jsx)(ee,{...e,ref:t})});X.displayName=q;var Y=10,[Z,J]=T(q),Q=(0,g.TL)("SelectContent.RemoveScroll"),ee=r.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:C,...j}=e,E=K(q,n),[M,N]=r.useState(null),[D,k]=r.useState(null),L=(0,c.s)(t,e=>N(e)),[T,A]=r.useState(null),[I,O]=r.useState(null),F=P(n),[B,z]=r.useState(!1),G=r.useRef(!1);r.useEffect(()=>{if(M)return(0,R.Eq)(M)},[M]),(0,f.Oh)();const H=r.useCallback(e=>{const[t,...n]=F().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focu
1s(),document.activeElement!==o)return}},[F,D]),V=r.useCallback(()=>H([T,M]),[H,T,M]);r.useEffect(()=>{B&&V()},[B,V]);const{onOpenChange:W,triggerPointerDownPosRef:U}=E;r.useEffect(()=>{if(M){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(U.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():M.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[M,W,U]),r.useEffect(()=>{const e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);const[$,X]=ke(e=>{const t=F().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Pe(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Y=r.useCallback((e,t,n)=>{const r=!G.current&&!n;(void 0!==E.value&&E.value===t||r)&&(A(e),r&&(G.current=!0))},[E.value]),J=r.useCallback(()=>M?.focus(),[M]),ee=r.useCallback((e,t,n)=>{const r=!G.current&&!n;(void 0!==E.value&&E.value===t||r)&&O(e)},[E.value]),re="popper"===o?ne:te,oe=re===ne?{side:u,sideOffset:h,align:m,alignOffset:v,arrowPadding:w,collisionBoundary:g,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:C}:{};return(0,S.jsx)(Z,{scope:n,content:M,viewport:D,onViewportChange:k,itemRefCallback:Y,selectedItem:T,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:V,selectedItemText:I,position:o,isPositioned:B,searchRef:$,children:(0,S.jsx)(_.A,{as:Q,allowPinchZoom:!0,children:(0,S.jsx)(p.n,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.mK)(a,e=>{E.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,S.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,S.jsx)(re,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...j,...oe,onPlaced:()=>z(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:(0,i.mK)(j.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});ee.displayName="SelectContentImpl";var te=r.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...i}=e,s=K(q,n),l=J(q,n),[u,d]=r.useState(null),[f,p]=r.useState(null),h=(0,c.s)(t,e=>p(e)),m=P(n),v=r.useRef(!1),g=r.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:C,focusSelectedItem:j}=l,E=r.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&y&&x&&C){const e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=C.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,s=e.left-i,c=e.width+s,l=Math.max(c,t.width),d=window.innerWidth-Y,f=(0,a.q)(i,[Y,Math.max(Y,d-l)]);
1u.style.minWidth=c+"px",u.style.left=f+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,s=window.innerWidth-e.right-i,c=e.width+s,l=Math.max(c,t.width),d=window.innerWidth-Y,f=(0,a.q)(i,[Y,Math.max(Y,d-l)]);u.style.minWidth=c+"px",u.style.right=f+"px"}const i=m(),c=window.innerHeight-2*Y,l=y.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),g=p+h+l+parseInt(d.paddingBottom,10)+w,b=Math.min(5*x.offsetHeight,g),S=window.getComputedStyle(y),j=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),R=e.top+e.height/2-Y,_=c-R,M=x.offsetHeight/2,N=p+h+(x.offsetTop+M),D=g-N;if(N<=R){const e=i.length>0&&x===i[i.length-1].ref.current;u.style.bottom="0px";const t=f.clientHeight-y.offsetTop-y.offsetHeight,n=N+Math.max(_,M+(e?E:0)+t+w);u.style.height=n+"px"}else{const e=i.length>0&&x===i[0].ref.current;u.style.top="0px";const t=Math.max(R,p+y.offsetTop+(e?j:0)+M)+D;u.style.height=t+"px",y.scrollTop=N-R+y.offsetTop}u.style.margin=`${Y}px 0`,u.style.minHeight=b+"px",u.style.maxHeight=c+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[m,s.trigger,s.valueNode,u,f,y,x,C,s.dir,o]);(0,b.N)(()=>E(),[E]);const[R,_]=r.useState();(0,b.N)(()=>{f&&_(window.getComputedStyle(f).zIndex)},[f]);const M=r.useCallback(e=>{e&&!0===g.current&&(E(),j?.(),g.current=!1)},[E,j]);return(0,S.jsx)(re,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:M,children:(0,S.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,S.jsx)(w.sG.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});te.displayName="SelectItemAlignedPosition";var ne=r.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Y,...a}=e,i=I(n);return(0,S.jsx)(m.UC,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});ne.displayName="SelectPopperPosition";var[re,oe]=T(q,{}),ae="SelectViewport",ie=r.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...a}=e,s=J(ae,n),l=oe(ae,n),u=(0,c.s)(t,s.onViewportChange),d=r.useRef(0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.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}),(0,S.jsx)(k.Slot,{scope:n,children:(0,S.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,i.mK)(a.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;if(r?.current&&n){const e=Math.abs(d.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Y,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});ie.displayName=ae;var se="SelectGroup",[ce,le]=T(se),ue=r.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=(0,h.B)();return(0,S.jsx)(ce,{scope:n,id:o,children:(0,S.jsx)(w.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ue.displayName=se;var de="SelectLabel",fe=r.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le(de,n);return(0,S.jsx)(w.sG.div,{id:o.id,...r,ref:t})});fe.displayName=de;var pe="SelectItem",[he,me]=T(pe),ve=r.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:a=!1,textValue:s,...l}=e,u=K(pe,n),d=J(pe,n),f=u.value===o,[p,m]=r.useState(s??""),[v,g]=r.useState(!1),y=(0,c.s)(t,e=>d.itemRefCallback?.(e,o,a)),x=(0,h.B)(),b=r.useRef("touch"),C=()=>{a||(u.onValueChange(o),u.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(0,S.jsx)(he,{scope:n,value:o,disabled:a,textId:x,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,S.jsx)(k.ItemSlot,{scope:n,value:o,disabled:a,textValue:p,children:(0,S.jsx)(w.sG.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:y,onFocus:(0,i.mK)(l.onFocus,()=>g(!0)),onBlur:(0,i.mK)(l.onBlur,()=>g(!1)),onClick:(0,i.mK)(l.onClick,()=>{"mouse"!==b.current&&C()}),onPointerUp:(0,i.mK)(l.onPointerUp,()=>{"mouse"===b.current&&C()}),onPointerDown:(0,i.mK)(l.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,i.mK)(l.onPointerMove,e=>{b.current=e.pointerType,a?d.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focu
1s({preventScroll:!0})}),onPointerLeave:(0,i.mK)(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,i.mK)(l.onKeyDown,e=>{""!==d.searchRef?.current&&" "===e.key||(N.includes(e.key)&&C()," "===e.key&&e.preventDefault())})})})})});ve.displayName=pe;var we="SelectItemText",ge=r.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...s}=e,l=K(we,n),u=J(we,n),d=me(we,n),f=B(we,n),[p,h]=r.useState(null),m=(0,c.s)(t,e=>h(e),d.onItemTextChange,e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),v=p?.textContent,g=r.useMemo(()=>(0,S.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=f;return(0,b.N)(()=>(y(g),()=>x(g)),[y,x,g]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(w.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?o.createPortal(s.children,l.valueNode):null]})});ge.displayName=we;var ye="SelectItemIndicator",xe=r.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return me(ye,n).isSelected?(0,S.jsx)(w.sG.span,{"aria-hidden":!0,...r,ref:t}):null});xe.displayName=ye;var be="SelectScrollUpButton",Ce=r.forwardRef((e,t)=>{const n=J(be,e.__scopeSelect),o=oe(be,e.__scopeSelect),[a,i]=r.useState(!1),s=(0,c.s)(t,o.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,S.jsx)(Ee,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Ce.displayName=be;var Se="SelectScrollDownButton",je=r.forwardRef((e,t)=>{const n=J(Se,e.__scopeSelect),o=oe(Se,e.__scopeSelect),[a,i]=r.useState(!1),s=(0,c.s)(t,o.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,S.jsx)(Ee,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});je.displayName=Se;var Ee=r.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...a}=e,s=J("SelectScrollButton",n),c=r.useRef(null),l=P(n),u=r.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),(0,b.N)(()=>{const e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,S.jsx)(w.sG.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,i.mK)(a.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(o,50))}),onPointerMove:(0,i.mK)(a.onPointerMove,()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(o,50))}),onPointerLeave:(0,i.mK)(a.onPointerLeave,()=>{u()})})}),Re=r.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,S.jsx)(w.sG.div,{"aria-hidden":!0,...r,ref:t})});Re.displayName="SelectSeparator";var _e="SelectArrow",Me=r.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=I(n),a=K(_e,n),i=J(_e,n);return a.open&&"popper"===i.position?(0,S.jsx)(m.i3,{...o,...r,ref:t}):null});Me.displayName=_e;var Ne=r.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const a=r.useRef(null),i=(0,c.s)(o,a),s=(0,C.Z)(t);return r.useEffect(()=>{const e=a.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(s!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,S.jsx)(w.sG.select,{...n,style:{...j,...n.style},ref:i,defaultValue:t})});function De(e){return""===e||void 0===e}function ke(e){const t=(0,y.c)(e),n=r.useRef(""),o=r.useRef(0),a=r.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),i=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,a,i]}function Pe(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const c=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}Ne.displayName="SelectBubbleInput";var Le=z,Te=H,Ae=W,Ie=U,Oe=$,Ke=X,Fe=ie,Be=ue,ze=fe,Ge=ve,He=ge,Ve=xe,We=Ce,Ue=je,$e=Re},27209:(e,t,n)=>{function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},32007:(e,t,n)=>{n.d(t,{Oh:()=>a});var r=n(12115),o=0;function a(){r.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??i()),document.body.insertAdjacentElement("beforeend",e[1]??i()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),o--}},[])}function i(){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}},42442:(e,t,n)=>{var r;n.d(t,{DX:()=>s,TL:()=>i});var o=n(12115),a=n(47527);function i(e){const t=o.forwardRef((t,n)=>{let{children:r,...i}=t,s=null,u=!1;const m=[];d(r)&&"function"==typeof h&&(r=h(r._payload)),o.Children.forEach(r,e=>{if(t=e,o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===c){u=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;d(n)&&"function"==typeof h&&(n=h(n._payload)),s=l(t,n),m.push(s?.props?.children)}else m.push(e);var t}),s?s=o.cloneElement(s,void 0,m):!u&&1===o.Children.count(r)&&o.isValidElement(r)&&(s=r);const v=s?function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(s):void 0,w=(0,a.s)(n,v);if(!s){if(r||0===r)throw new Error(u?p(e):f(e));return r}const g=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(i,s.props??{});return s.type!==o.Fragment&&(g.ref=n?w:v),o.cloneElement(s,g)});return t.displayName=`${e}.Slot`,t}var s=i("Slot"),c=Symbol.for("radix.slottable");var l=(e,t)=>
1{if("child"in e.props){const t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null};var u=Symbol.for("react.lazy");function d(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}var f=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,p=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(r||(r=n.t(o,2)))[" use ".trim().toString()]},47527:(e,t,n)=>{n.d(t,{s:()=>i,t:()=>a});var r=n(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1;const r=e.map(e=>{const r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function i(...e){return r.useCallback(a(...e),e)}},55897:(e,t,n)=>{n.d(t,{hO:()=>c,sG:()=>s});var r=n(12115),o=n(47650),a=n(42442),i=n(95155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=(0,a.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{const{asChild:o,...a}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(s,{...a,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function c(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},57793:(e,t,n)=>{n.d(t,{H_:()=>jt,UC:()=>xt,YJ:()=>bt,q7:()=>St,VF:()=>_t,JU:()=>Ct,ZL:()=>yt,z6:()=>Et,hN:()=>Rt,bL:()=>wt,wv:()=>Mt,Pb:()=>Nt,G5:()=>kt,ZP:()=>Dt,l9:()=>gt});var r=n(12115),o=n(70379),a=n(47527),i=n(68599),s=n(98979),c=n(55897),l=n(76094),u=n(1933),d=n(98454),f=n(32007),p=n(69885),h=n(89971),m=n(22032),v=n(19040),w=n(83935),g=n(83478),y=n(42442),x=n(17347),b=n(22954),C=n(78919),S=n(95155),j=["Enter"," "],E=["ArrowUp","PageDown","End"],R=["ArrowDown","PageUp","Home",...E],_={ltr:[...j,"ArrowRight"],rtl:[...j,"ArrowLeft"]},M={ltr:["ArrowLeft"],rtl:["ArrowRight"]},N="Menu",[D,k,P]=(0,l.N)(N),[L,T]=(0,i.A)(N,[P,m.Bk,g.RG]),A=(0,m.Bk)(),I=(0,g.RG)(),[O,K]=L(N),[F,B]=L(N),z=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:i,modal:s=!0}=e,c=A(t),[l,d]=r.useState(null),f=r.useRef(!1),p=(0,x.c)(i),h=(0,u.jH)(a);return r.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,S.jsx)(m.bL,{...c,children:(0,S.jsx)(O,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:(0,S.jsx)(F,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:o})})})};z.displayName=N;var G=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=A(n);return(0,S.jsx)(m.Mz,{...o,...r,ref:t})});G.displayName="MenuAnchor";var H="MenuPortal",[V,W]=L(H,{forceMount:void 0}),U=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=K(H,t);return(0,S.jsx)(V,{scope:t,forceMount:n,children:(0,S.jsx)(w.C,{present:n||a.open,children:(0,S.jsx)(v.Z,{asChild:!0,container:o,children:r})})})};U.displayName=H;var $="MenuContent",[q,X]=L($),Y=r.forwardRef((e,t)=>{const n=W($,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=K($,e.__scopeMenu),i=B($,e.__scopeMenu);return(0,S.jsx)(D.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(w.C,{present:r||a.open,children:(0,S.jsx)(D.Slot,{scope:e.__scopeMenu,children:i.modal?(0,S.jsx)(Z,{...o,ref:t}):(0,S.jsx)(J,{...o,ref:t})})})})}),Z=r.forwardRef((e,t)=>{const n=K($,e.__scopeMenu),i=r.useRef(null),s=(0,a.s)(t,i);return r.useEffect(()=>{const e=i.current;if(e)return(0,b.Eq)(e)},[]),(0,S.jsx)(ee,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),J=r.forwardRef((e,t)=>
1{const n=K($,e.__scopeMenu);return(0,S.jsx)(ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Q=(0,y.TL)("MenuContent.ScrollLock"),ee=r.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:x,onDismiss:b,disableOutsideScroll:j,..._}=e,M=K($,n),N=B($,n),D=A(n),P=I(n),L=k(n),[T,O]=r.useState(null),F=r.useRef(null),z=(0,a.s)(t,F,M.onContentChange),G=r.useRef(0),H=r.useRef(""),V=r.useRef(0),W=r.useRef(null),U=r.useRef("right"),X=r.useRef(0),Y=j?C.A:r.Fragment,Z=j?{as:Q,allowPinchZoom:!0}:void 0,J=e=>{const t=H.current+e,n=L().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,c=Math.max(a,0),s.map((e,t)=>s[(c+t)%s.length]));var s,c;1===o.length&&(i=i.filter(e=>e!==n));const l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){H.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};r.useEffect(()=>()=>window.clearTimeout(G.current),[]),(0,f.Oh)();const ee=r.useCallback(e=>U.current===W.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],c=i.x,l=i.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}(n,t)}(e,W.current?.area),[]);return(0,S.jsx)(q,{scope:n,searchRef:H,onItemEnter:r.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:r.useCallback(e=>{ee(e)||(F.current?.focus(),O(null))},[ee]),onTriggerLeave:r.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:V,onPointerGraceIntentChange:r.useCallback(e=>{W.current=e},[]),children:(0,S.jsx)(Y,{...Z,children:(0,S.jsx)(p.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.mK)(c,e=>{e.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,S.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:v,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:x,onDismiss:b,children:(0,S.jsx)(g.bL,{asChild:!0,...P,dir:N.dir,orientation:"vertical",loop:i,currentTabStopId:T,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.mK)(h,e=>{N.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,S.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":Me(M.open),"data-radix-menu-content":"",dir:N.dir,...D,..._,ref:z,style:{outline:"none",..._.style},onKeyDown:(0,o.mK)(_.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&J(e.key));const o=F.current;if(e.target!==o)return;if(!R.includes(e.key))return;e.preventDefault();const a=L().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),H.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,ke(e=>{const t=e.target,n=X.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>X.current?"right":"left";U.current=t,X.current=e.clientX}}))})})})})})})});Y.displayName=$;var te=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,S.jsx)(c.sG.div,{role:"group",...r,ref:t})});te.displayName="MenuGroup";var ne=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,S.jsx)(c.sG.div,{...r,ref:t})});ne.displayName="MenuLabel";var re="MenuItem",oe="menu.itemSelect",ae=r.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...s}=e,l=r.useRef(null),u=B(re,e.__scopeMenu),d=X(re,e.__scopeMenu),f=(0,a.s)(t,l),p=r.useRef(!1);return(0,S.jsx)(ie,{...s,ref:f,disabled:n,onClick:(0,o.mK)(e.onClick,()=>{const e=l.current;if(!n&&e){const t=new CustomEvent(oe,{bubbles:!0,cancelable:!0});e.addEventListener(oe,e=>i?.(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?p.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{const t=""!==d.searchRef.current;
1n||t&&" "===e.key||j.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ae.displayName=re;var ie=r.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:s,...l}=e,u=X(re,n),d=I(n),f=r.useRef(null),p=(0,a.s)(t,f),[h,m]=r.useState(!1),[v,w]=r.useState("");return r.useEffect(()=>{const e=f.current;e&&w((e.textContent??"").trim())},[l.children]),(0,S.jsx)(D.ItemSlot,{scope:n,disabled:i,textValue:s??v,children:(0,S.jsx)(g.q7,{asChild:!0,...d,focusable:!i,children:(0,S.jsx)(c.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:p,onPointerMove:(0,o.mK)(e.onPointerMove,ke(e=>{if(i)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:(0,o.mK)(e.onPointerLeave,ke(e=>u.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>m(!0)),onBlur:(0,o.mK)(e.onBlur,()=>m(!1))})})})}),se=r.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return(0,S.jsx)(me,{scope:e.__scopeMenu,checked:n,children:(0,S.jsx)(ae,{role:"menuitemcheckbox","aria-checked":Ne(n)?"mixed":n,...a,ref:t,"data-state":De(n),onSelect:(0,o.mK)(a.onSelect,()=>r?.(!!Ne(n)||!n),{checkForDefaultPrevented:!1})})})});se.displayName="MenuCheckboxItem";var ce="MenuRadioGroup",[le,ue]=L(ce,{value:void 0,onValueChange:()=>{}}),de=r.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=(0,x.c)(r);return(0,S.jsx)(le,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,S.jsx)(te,{...o,ref:t})})});de.displayName=ce;var fe="MenuRadioItem",pe=r.forwardRef((e,t)=>{const{value:n,...r}=e,a=ue(fe,e.__scopeMenu),i=n===a.value;return(0,S.jsx)(me,{scope:e.__scopeMenu,checked:i,children:(0,S.jsx)(ae,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":De(i),onSelect:(0,o.mK)(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});pe.displayName=fe;var he="MenuItemIndicator",[me,ve]=L(he,{checked:!1}),we=r.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=ve(he,n);return(0,S.jsx)(w.C,{present:r||Ne(a.checked)||!0===a.checked,children:(0,S.jsx)(c.sG.span,{...o,ref:t,"data-state":De(a.checked)})})});we.displayName=he;var ge=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,S.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ge.displayName="MenuSeparator";var ye=r.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=A(n);return(0,S.jsx)(m.i3,{...o,...r,ref:t})});ye.displayName="MenuArrow";var xe="MenuSub",[be,Ce]=L(xe),Se=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,i=K(xe,t),s=A(t),[c,l]=r.useState(null),[u,d]=r.useState(null),f=(0,x.c)(a);return r.useEffect(()=>(!1===i.open&&f(!1),()=>f(!1)),[i.open,f]),(0,S.jsx)(m.bL,{...s,children:(0,S.jsx)(O,{scope:t,open:o,onOpenChange:f,content:u,onContentChange:d,children:(0,S.jsx)(be,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:c,onTriggerChange:l,children:n})})})};Se.displayName=xe;var je="MenuSubTrigger",Ee=r.forwardRef((e,t)=>{const n=K(je,e.__scopeMenu),i=B(je,e.__scopeMenu),s=Ce(je,e.__scopeMenu),c=X(je,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=c,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{const e=u.current;return()=>{window.clearTimeout(e),d(null)}},[u,d]),(0,S.jsx)(G,{asChild:!0,...f,children:(0,S.jsx)(ie,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?s.contentId:void 0,"data-state":Me(n.open),...e,ref:(0,a.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,ke(t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,ke(e=>{p();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,a=o?-5:5,i=t[o?"left":"right"],s=t[o?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:i,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,t=>{const r=""!==c.searchRef.current;e.disabled||r&&" "===t.key||_[i.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});
1Ee.displayName=je;var Re="MenuSubContent",_e=r.forwardRef((e,t)=>{const n=W($,e.__scopeMenu),{forceMount:i=n.forceMount,align:s="start",...c}=e,l=K($,e.__scopeMenu),u=B($,e.__scopeMenu),d=Ce(Re,e.__scopeMenu),f=r.useRef(null),p=(0,a.s)(t,f);return(0,S.jsx)(D.Provider,{scope:e.__scopeMenu,children:(0,S.jsx)(w.C,{present:i||l.open,children:(0,S.jsx)(D.Slot,{scope:e.__scopeMenu,children:(0,S.jsx)(ee,{id:d.contentId,"aria-labelledby":d.triggerId,...c,ref:p,align:s,side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=M[u.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function Me(e){return e?"open":"closed"}function Ne(e){return"indeterminate"===e}function De(e){return Ne(e)?"indeterminate":e?"checked":"unchecked"}function ke(e){return t=>"mouse"===t.pointerType?e(t):void 0}_e.displayName=Re;var Pe=z,Le=G,Te=U,Ae=Y,Ie=te,Oe=ne,Ke=ae,Fe=se,Be=de,ze=pe,Ge=we,He=ge,Ve=ye,We=Se,Ue=Ee,$e=_e,qe="DropdownMenu",[Xe,Ye]=(0,i.A)(qe,[T]),Ze=T(),[Je,Qe]=Xe(qe),et=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:i,onOpenChange:c,modal:l=!0}=e,u=Ze(t),d=r.useRef(null),[f,p]=(0,s.i)({prop:a,defaultProp:i??!1,onChange:c,caller:qe});return(0,S.jsx)(Je,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:l,children:(0,S.jsx)(Pe,{...u,open:f,onOpenChange:p,dir:o,modal:l,children:n})})};et.displayName=qe;var tt="DropdownMenuTrigger",nt=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=Qe(tt,n),l=Ze(n);return(0,S.jsx)(Le,{asChild:!0,...l,children:(0,S.jsx)(c.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,a.t)(t,s.triggerRef),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nt.displayName=tt;var rt=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ze(t);return(0,S.jsx)(Te,{...r,...n})};rt.displayName="DropdownMenuPortal";var ot="DropdownMenuContent",at=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Qe(ot,n),s=Ze(n),c=r.useRef(!1);return(0,S.jsx)(Ae,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...a,ref:t,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{c.current||i.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,o.mK)(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});at.displayName=ot;var it=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Ie,{...o,...r,ref:t})});it.displayName="DropdownMenuGroup";var st=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Oe,{...o,...r,ref:t})});st.displayName="DropdownMenuLabel";var ct=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Ke,{...o,...r,ref:t})});ct.displayName="DropdownMenuItem";var lt=r.forwardRef((e,t)=>
1{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Fe,{...o,...r,ref:t})});lt.displayName="DropdownMenuCheckboxItem";var ut=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Be,{...o,...r,ref:t})});ut.displayName="DropdownMenuRadioGroup";var dt=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(ze,{...o,...r,ref:t})});dt.displayName="DropdownMenuRadioItem";var ft=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Ge,{...o,...r,ref:t})});ft.displayName="DropdownMenuItemIndicator";var pt=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(He,{...o,...r,ref:t})});pt.displayName="DropdownMenuSeparator";var ht=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Ve,{...o,...r,ref:t})});ht.displayName="DropdownMenuArrow";var mt=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)(Ue,{...o,...r,ref:t})});mt.displayName="DropdownMenuSubTrigger";var vt=r.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ze(n);return(0,S.jsx)($e,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vt.displayName="DropdownMenuSubContent";var wt=et,gt=nt,yt=rt,xt=at,bt=it,Ct=st,St=ct,jt=lt,Et=ut,Rt=dt,_t=ft,Mt=pt,Nt=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ze(t),[c,l]=(0,s.i)({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return(0,S.jsx)(We,{...i,open:c,onOpenChange:l,children:n})},Dt=mt,kt=vt},63509:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(12115),o=n(66294);function a(e){const[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},66294:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(12115),o=globalThis?.document?r.useLayoutEffect:()=>{}},68599:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(12115),o=n(95155);function a(e,t=[]){let n=[];const a=()=>{const t=n.map(e=>r.createContext(e));return function(n){const o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){const i=r.createContext(a),s=n.length;n=[...n,a];const c=t=>{const{scope:n,children:a,...c}=t,l=n?.[e]?.[s]||i,u=r.useMemo(()=>c,Object.values(c));return(0,o.jsx)(l.Provider,{value:u,children:a})};return c.displayName=t+"Provider",[c,function(n,o){const c=o?.[e]?.[s]||i,l=r.useContext(c);if(l)return l;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},i(a,...t)]}function i(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}},69885:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(12115),o=n(47527),a=n(55897),i=n(17347),s=n(95155),c="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{const{loop:n=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:w,...g}=e,[y,x]=r.useState(null),b=(0,i.c)(h),C=(0,i.c)(w),S=r.useRef(null),j=(0,o.s)(t,e=>x(e)),E=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(E.paused||!y)return;const t=e.target;y.contains(t)?S.current=t:m(S.current,{select:!0})},t=function(e){if(E.paused||!y)return;const t=e.relatedTarget;null!==t&&(y.contains(t)||m(S.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&m(y)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return y&&r.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,y,E.paused]),r.useEffect(()=>{if(y){v.add(E);const t=document.activeElement;
1if(!y.contains(t)){const n=new CustomEvent(c,u);y.addEventListener(c,b),y.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(m(r,{select:t}),document.activeElement!==n)return}((e=f(y),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&m(y))}return()=>{y.removeEventListener(c,b),setTimeout(()=>{const e=new CustomEvent(l,u);y.addEventListener(l,C),y.dispatchEvent(e),e.defaultPrevented||m(t??document.body,{select:!0}),y.removeEventListener(l,C),v.remove(E)},0)}}var e},[y,b,C,E]);const R=r.useCallback(e=>{if(!n&&!d)return;if(E.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,a]=function(e){const t=f(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,E.paused]);return(0,s.jsx)(a.sG.div,{tabIndex:-1,...g,ref:j,onKeyDown:R})});function f(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(const n of e)if(!h(n,{upTo:t}))return n}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=w(e,t),e.unshift(t)},remove(t){e=w(e,t),e[0]?.resume()}}}();function w(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}},70379:(e,t,n)=>{n.d(t,{mK:()=>r});"undefined"==typeof window||!window.document||window.document.createElement;function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},76094:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(12115),o=n(68599),a=n(47527),i=n(42442),s=n(95155);function c(e){const t=e+"CollectionProvider",[n,c]=(0,o.A)(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{const{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;const f=e+"CollectionSlot",p=(0,i.TL)(f),h=r.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=u(f,n),i=(0,a.s)(t,o.collectionRef);return(0,s.jsx)(p,{ref:i,children:r})});h.displayName=f;const m=e+"CollectionItemSlot",v="data-radix-collection-item",w=(0,i.TL)(m),g=r.forwardRef((e,t)=>{const{scope:n,children:o,...i}=e,c=r.useRef(null),l=(0,a.s)(t,c),d=u(m,n);return r.useEffect(()=>(d.itemMap.set(c,{ref:c,...i}),()=>{d.itemMap.delete(c)})),(0,s.jsx)(w,{[v]:"",ref:l,children:o})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){const n=u(e+"CollectionConsumer",t);return r.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},c]}var l=new WeakMap;Map;function u(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=d(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function d(e){return e!=e||0===e?0:Math.trunc(e)}},78919:(e,t,n)=>{n.d(t,{A:()=>U});var r=n(49303),o=n(12115),a="right-scroll-bar-position",i="width-before-scroll-bar";function s(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,l=new WeakMap;function u(e,t){var n,r,a,i=(n=t||null,r=function(t){return e.forEach(function(e){return s(e,t)})},(a=(0,o.useState)(function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;
vendor: 4,226 bytes, line 1
1t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=r,a.facade);return c(function(){var t=l.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||s(e,null)}),r.forEach(function(e){n.has(e)||s(e,o)})}l.set(i,e)},[e]),i}function d(e){return e}function f(e,t){void 0===t&&(t=d);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}var p=function(e){void 0===e&&(e={});var t=f(null);return t.options=(0,r.Cl)({async:!0,ssr:!1},e),t}(),h=function(){},m=o.forwardRef(function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),i=a[0],s=a[1],c=e.forwardProps,l=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,v=e.shards,w=e.sideCar,g=e.noRelative,y=e.noIsolation,x=e.inert,b=e.allowPinchZoom,C=e.as,S=void 0===C?"div":C,j=e.gapMode,E=(0,r.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=w,_=u([n,t]),M=(0,r.Cl)((0,r.Cl)({},E),i);return o.createElement(o.Fragment,null,m&&o.createElement(R,{sideCar:p,removeScrollBar:f,shards:v,noRelative:g,noIsolation:y,inert:x,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:j}),c?o.cloneElement(o.Children.only(l),(0,r.Cl)((0,r.Cl)({},M),{ref:_})):o.createElement(S,(0,r.Cl)({},M,{className:d,ref:_}),l))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:i,zeroRight:a};var v,w=function(e){var t=e.sideCar,n=(0,r.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,(0,r.Cl)({},n))};w.isSideCarExport=!0;function g(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v||n.nc;return t&&e.setAttribute("nonce",t),e}var y=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=g())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e,t=(e=y(),function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},b={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[C(n),C(r),C(o)]}(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])}},j=x(),E="data-scroll-locked",R=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(s,"px;\n    padding-right: ").concat(c,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(i," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(i," .").concat(i," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},_=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},M=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;o.useEffect(function(){return document.body.setAttribute(E,(_()+1).toString()),function(){var e=_()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[]);var i=o.useMemo(function(){return S(a)},[a]);return o.createElement(j,{styles:R(i,!t,a,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){N=!1}var k=!!N&&{passive:!1},P=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},L=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),T(e,r)){var o=A(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},T=function(e,t){return"v"===e?function(e){return P(e,"overflowY")}(t):function(e){return P(e,"overflowX")}(t)},A=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},I=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},F=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},B=0,z=[];function G(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const H=(V=function(e){var t=o.useRef([]),n=o.useRef([0,0]),a=o.useRef(),i=o.useState(B++)[0],s=o.useState(x)[0],c=o.useRef(e);o.useEffect(function(){c.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,r.fX)([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,o=I(e),i=n.current,s="deltaX"in e?e.deltaX:i[0]-o[0],l="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(s)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=L(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=L(d,u)),!h)return!1;if(!a.current&&"changedTouches"in e&&(s||l)&&(a.current=r),!r)return!0;var m=a.current||r;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,u=i>0,d=0,f=0;do{if(!s)break;var p=A(e,s),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&T(e,s)&&(d+=m,f+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(l=!0),l}(m,t,e,"h"===m?s:l,!0)},[]),u=o.useCallback(function(e){var n=e;if(z.length&&z[z.length-1]===s){var r="deltaY"in n?O(n):I(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();
1else if(!o){var a=(c.current.shards||[]).map(K).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?l(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=o.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:G(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=o.useCallback(function(e){n.current=I(e),a.current=void 0},[]),p=o.useCallback(function(t){d(t.type,O(t),t.target,l(t,e.lockRef.current))},[]),h=o.useCallback(function(t){d(t.type,I(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return z.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,k),document.addEventListener("touchmove",u,k),document.addEventListener("touchstart",f,k),function(){z=z.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,k),document.removeEventListener("touchmove",u,k),document.removeEventListener("touchstart",f,k)}},[]);var m=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(s,{styles:F(i)}):null,m?o.createElement(M,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(V),w);var V,W=o.forwardRef(function(e,t){return o.createElement(m,(0,r.Cl)({},e,{ref:t,sideCar:H}))});W.classNames=m.classNames;const U=W},83417:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(12115);function o(e){const t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},83478:(e,t,n)=>{n.d(t,{RG:()=>b,bL:()=>D,q7:()=>k});var r=n(12115),o=n(70379),a=n(76094),i=n(47527),s=n(68599),c=n(89971),l=n(55897),u=n(17347),d=n(98979),f=n(1933),p=n(95155),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[w,g,y]=(0,a.N)(v),[x,b]=(0,s.A)(v,[y]),[C,S]=x(v),j=r.forwardRef((e,t)=>(0,p.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(E,{...e,ref:t})})}));j.displayName=v;var E=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:c,currentTabStopId:w,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:S=!1,...j}=e,E=r.useRef(null),R=(0,i.s)(t,E),_=(0,f.jH)(c),[M,D]=(0,d.i)({prop:w,defaultProp:y??null,onChange:x,caller:v}),[k,P]=r.useState(!1),L=(0,u.c)(b),T=g(n),A=r.useRef(!1),[I,O]=r.useState(0);return r.useEffect(()=>{const e=E.current;if(e)return e.addEventListener(h,L),()=>e.removeEventListener(h,L)},[L]),(0,p.jsx)(C,{scope:n,orientation:a,dir:_,loop:s,currentTabStopId:M,onItemFocus:r.useCallback(e=>D(e),[D]),onItemShiftTab:r.useCallback(()=>P(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(l.sG.div,{tabIndex:k||0===I?-1:0,"data-orientation":a,...j,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{const t=!A.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=T().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),S)}}A.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>P(!1))})})}),R="RovingFocusGroupItem",_=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:s,children:u,...d}=e,f=(0,c.B)(),h=s||f,m=S(R,n),v=m.currentTabStopId===h,y=g(n),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:C}=m;return r.useEffect(()=>{if(a)return x(),()=>b()},[a,x,b]),(0,p.jsx)(w.ItemSlot,{scope:n,id:h,focusable:a,active:i,children:(0,p.jsx)(l.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:M[r]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=y().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=m.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>N(o))}var n,r}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=C}):u})})});_.displayName=R;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var D=j,k=_},83935:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(12115),o=n(47527),a=n(66294);var i=e=>{const{present:t,children:n}=e,i=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),c=r.useRef("none"),l=e?"mounted":"unmounted",[u,d]=function(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{const e=s(o.current);c.current="mounted"===u?e:"none"},[u]),(0,a.N)(()=>{const t=o.current,n=i.current;if(n!==e){const r=c.current,o=s(t);if(e)d("MOUNT");else if("none"===o||"none"===t?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}},[e,d]),(0,a.N)(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=s(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(d("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},a=e=>{e.target===t&&(c.current=s(o.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(t),c="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),l=(0,o.s)(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof n||i.isPresent?r.cloneElement(c,{ref:l}):null};function s(e){return e?.animationName||"none"}i.displayName="Presence"},86033:(e,t,n)=>{n.d(t,{C1:()=>F,bL:()=>O,q7:()=>K});var r=n(12115),o=n(70379),a=n(47527),i=n(68599),s=n(55897),c=n(83478),l=n(98979),u=n(1933),d=n(63509),f=n(83417),p=n(83935),h=n(95155),m="Radio",[v,w]=(0,i.A)(m),[g,y]=v(m),x=r.forwardRef((e,t)=>{const{__scopeRadio:n,name:i,checked:c=!1,required:l,disabled:u,value:d="on",onCheck:f,form:p,...m}=e,[v,w]=r.useState(null),y=(0,a.s)(t,e=>w(e)),x=r.useRef(!1),b=!v||(p||!!v.closest("form"));return(0,h.jsxs)(g,{scope:n,checked:c,disabled:u,children:[(0,h.jsx)(s.sG.button,{type:"button",role:"radio","aria-checked":c,"data-state":j(c),"data-disabled":u?"":void 0,disabled:u,value:d,...m,ref:y,onClick:(0,o.mK)(e.onClick,e=>{c||f?.(),b&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})}),b&&(0,h.jsx)(S,{control:v,bubbles:!x.current,name:i,value:d,checked:c,required:l,disabled:u,form:p,style:{transform:"translateX(-100%)"}})]})});x.displayName=m;var b="RadioIndicator",C=r.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=y(b,n);return(0,h.jsx)(p.C,{present:r||a.checked,children:(0,h.jsx)(s.sG.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});C.displayName=b;var S=r.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...i},c)=>{const l=r.useRef(null),u=(0,a.s)(l,c),p=(0,f.Z)(n),m=(0,d.X)(t);return r.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(p!==n&&r){const t=new Event("click",{bubbles:o});r.call(e,n),e.dispatchEvent(t)}},[p,n,o]),(0,h.jsx)(s.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:u,style:{...i.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function j(e){return e?"checked":"unchecked"}S.displayName="RadioBubbleInput";var E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],R="RadioGroup",[_,M]=(0,i.A)(R,[c.RG,w]),N=(0,c.RG)(),D=w(),[k,P]=_(R),L=r.forwardRef((e,t)=>
1{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:d=!1,orientation:f,dir:p,loop:m=!0,onValueChange:v,...w}=e,g=N(n),y=(0,u.jH)(p),[x,b]=(0,l.i)({prop:a,defaultProp:o??null,onChange:v,caller:R});return(0,h.jsx)(k,{scope:n,name:r,required:i,disabled:d,value:x,onValueChange:b,children:(0,h.jsx)(c.bL,{asChild:!0,...g,orientation:f,dir:y,loop:m,children:(0,h.jsx)(s.sG.div,{role:"radiogroup","aria-required":i,"aria-orientation":f,"data-disabled":d?"":void 0,dir:y,...w,ref:t})})})});L.displayName=R;var T="RadioGroupItem",A=r.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:i,...s}=e,l=P(T,n),u=l.disabled||i,d=N(n),f=D(n),p=r.useRef(null),m=(0,a.s)(t,p),v=l.value===s.value,w=r.useRef(!1);return r.useEffect(()=>{const e=e=>{E.includes(e.key)&&(w.current=!0)},t=()=>w.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(c.q7,{asChild:!0,...d,focusable:!u,active:v,children:(0,h.jsx)(x,{disabled:u,required:l.required,checked:v,...f,...s,name:l.name,ref:m,onCheck:()=>l.onValueChange(s.value),onKeyDown:(0,o.mK)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.mK)(s.onFocus,()=>{w.current&&p.current?.click()})})})});A.displayName=T;var I=r.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=D(n);return(0,h.jsx)(C,{...o,...r,ref:t})});I.displayName="RadioGroupIndicator";var O=L,K=A,F=I},89971:(e,t,n)=>{var r;n.d(t,{B:()=>c});var o=n(12115),a=n(66294),i=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>{}),s=0;function c(e){const[t,n]=o.useState(i());return(0,a.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},98454:(e,t,n)=>{n.d(t,{qW:()=>h});var r=n(12115),o=n(70379),a=n(55897),i=n(47527),s=n(17347);var c,l=n(95155),u="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside",p=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=r.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:x,...b}=e,C=r.useContext(p),[S,j]=r.useState(null),E=S?.ownerDocument??globalThis?.document,[,R]=r.useState({}),_=(0,i.s)(t,e=>j(e)),M=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),D=M.indexOf(N),k=S?M.indexOf(S):-1,P=C.layersWithOutsidePointerEventsDisabled.size>0,L=k>=D,T=function(e,t=globalThis?.document){const n=(0,s.c)(e),o=r.useRef(!1),a=r.useRef(()=>{});return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let r=function(){w(d,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);o.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...C.branches].some(e=>e.contains(t));L&&!n&&(m?.(e),y?.(e),e.defaultPrevented||x?.())},E),A=function(e,t=globalThis?.document){const n=(0,s.c)(e),o=r.useRef(!1);return r.useEffect(()=>{const e=e=>{if(e.target&&!o.current){w(f,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...C.branches].some(e=>e.contains(t))||(g?.(e),y?.(e),e.defaultPrevented||x?.())},E);return function(e,t=globalThis?.document){const n=(0,s.c)(e);r.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k===C.layers.size-1&&(h?.(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},E),r.useEffect(()=>{if(S)return n&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(c=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(S)),C.layers.add(S),v(),()=>{n&&1===C.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=c)}},[S,E,n,C]),r.useEffect(()=>()=>{S&&(C.layers.delete(S),C.layersWithOutsidePointerEventsDisabled.delete(S),v())},[S,C]),r.useEffect(()=>{const e=()=>R({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}
1,[]),(0,l.jsx)(a.sG.div,{...b,ref:_,style:{pointerEvents:P?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,T.onPointerDownCapture)})});h.displayName="DismissableLayer";var m=r.forwardRef((e,t)=>{const n=r.useContext(p),o=r.useRef(null),s=(0,i.s)(t,o);return r.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(a.sG.div,{...e,ref:s})});function v(){const e=new CustomEvent(u);document.dispatchEvent(e)}function w(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.hO)(o,i):o.dispatchEvent(i)}m.displayName="DismissableLayerBranch"},98979:(e,t,n)=>{var r;n.d(t,{i:()=>s});var o=n(12115),a=n(66294),i=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||a.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,c]=function({defaultProp:e,onChange:t}){const[n,r]=o.useState(e),a=o.useRef(n),s=o.useRef(t);return i(()=>{s.current=t},[t]),o.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,r,s]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:a;{const t=o.useRef(void 0!==e);o.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. 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.`)}t.current=l},[l,r])}const d=o.useCallback(t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&c.current?.(n)}else s(t)},[l,e,s,c]);return[u,d]}Symbol("RADIX:SYNC_STATE")}}]);

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.