1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5336],{65336:function(e,t,n){n.d(t,{bU:function(){return X},e6:function(){return O},fC:function(){return W},fQ:function(){return B}});var r=n(7653),o=n(57819),i=n(2467),l=n(18497),a=n(20379),d=n(65192),u=n(17113),s=n(77214),c=n(68288),f=n(76646),m=n(59445),p=n(27573),h=["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",[b,S,y]=(0,m.B)(g),[x,D]=(0,a.b)(g,[y]),[R,M]=x(g),E=r.forwardRef((e,t)=>{let{name:n,min:l=0,max:a=100,step:u=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:f=0,defaultValue:m=[l],value:w,onValueChange:g=()=>{},onValueCommit:S=()=>{},inverted:y=!1,form:x,...D}=e,M=r.useRef(new Set),E=r.useRef(0),P="horizontal"===s?_:k,[j=[],A]=(0,d.T)({prop:w,defaultProp:m,onChange:e=>{var t;null===(t=[...M.current][E.current])||void 0===t||t.focus(),g(e)}}),C=r.useRef(j);function I(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,i=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-l)/u)*u+l,r),d=(0,o.u)(i,[l,a]);A(function(){var e,r;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(o,d,t);if(e=i,!(!((r=f*u)>0)||Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=r))return o;{E.current=i.indexOf(d);let e=String(i)!==String(o);return e&&n&&S(i),e?i:o}})}return(0,p.jsx)(R,{scope:e.__scopeSlider,name:n,disabled:c,min:l,max:a,valueIndexToChangeRef:E,thumbs:M.current,values:j,orientation:s,form:x,children:(0,p.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(P,{"aria-disabled":c,"data-disabled":c?"":void 0,...D,ref:t,onPointerDown:(0,i.M)(D.onPointerDown,()=>{c||(C.current=j)}),min:l,max:a,inverted:y,onSlideStart:c?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t));return n.indexOf(Math.min(...n))}(j,e);I(e,t)},onSlideMove:c?void 0:function(e){I(e,E.current)},onSlideEnd:c?void 0:function(){let e=C.current[E.current];j[E.current]!==e&&S(j)},onHomeKeyDown:()=>!c&&I(l,0,{commit:!0}),onEndKeyDown:()=>!c&&I(a,j.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!c){let e=h.includes(t.key)||t.shiftKey&&v.includes(t.key),r=E.current;I(j[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});E.displayName=g;var[P,j]=x(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),_=r.forwardRef((e,t)=>{let{min:n,max:o,dir:i,inverted:a,onSlideStart:d,onSlideMove:s,onSlideEnd:c,onStepKeyDown:f,...m}=e,[h,v]=r.useState(null),g=(0,l.e)(t,e=>v(e)),b=r.useRef(void 0),S=(0,u.gm)(i),y="ltr"===S,x=y&&!a||!y&&a;function D(e){let t=b.current||h.getBoundingClientRect(),r=T([0,t.width],x?[n,o]:[o,n]);return b.current=t,r(e-t.left)}return(0,p.jsx)(P,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,p.jsx)(A,{dir:S,"data-orientation":"horizontal",...m,ref:g,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=D(e.clientX);null==d||d(t)},onSlideMove:e=>{let t=D(e.clientX);null==s||s(t)},onSlideEnd:()=>{b.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=w[x?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{let{min:n,max:o,inverted:i,onSlideStart:a,onSlideMove:d,onSlideEnd:u,onStepKeyDown:s,...c}=e,f=r.useRef(null),m=(0,l.e)(t,f),h=r.useRef(void 0),v=!i;function g(e){let t=h.current||f.current.getBoundingClientRect(),r=T([0,t.height],v?[o,n]:[n,o]);return h.current=t,r(e-t.top)}return(0,p.jsx)(P,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,p.jsx)(A,{"data-orientation":"vertical",...c,ref:m,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=g(e.clientY);null==d||d(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>
1{let t=w[v?"from-bottom":"from-top"].includes(e.key);null==s||s({event:e,direction:t?-1:1})}})})}),A=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:l,onHomeKeyDown:a,onEndKeyDown:d,onStepKeyDown:u,...s}=e,c=M(g,n);return(0,p.jsx)(f.WV.span,{...s,ref:t,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(d(e),e.preventDefault()):h.concat(v).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})}),C="SliderTrack",I=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=M(C,n);return(0,p.jsx)(f.WV.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});I.displayName=C;var K="SliderRange",z=r.forwardRef((e,t)=>{let{__scopeSlider:n,...o}=e,i=M(K,n),a=j(K,n),d=r.useRef(null),u=(0,l.e)(t,d),s=i.values.length,c=i.values.map(e=>L(e,i.min,i.max));return(0,p.jsx)(f.WV.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:u,style:{...e.style,[a.startEdge]:(s>1?Math.min(...c):0)+"%",[a.endEdge]:100-Math.max(...c)+"%"}})});z.displayName=K;var H="SliderThumb",N=r.forwardRef((e,t)=>{let n=S(e.__scopeSlider),[o,i]=r.useState(null),a=(0,l.e)(t,e=>i(e)),d=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,p.jsx)(V,{...e,ref:a,index:d})}),V=r.forwardRef((e,t)=>{var n;let{__scopeSlider:o,index:a,name:d,...u}=e,s=M(H,o),m=j(H,o),[h,v]=r.useState(null),w=(0,l.e)(t,e=>v(e)),g=!h||s.form||!!h.closest("form"),S=(0,c.t)(h),y=s.values[a],x=void 0===y?0:L(y,s.min,s.max),D=(n=s.values.length)>2?"Value ".concat(a+1," of ").concat(n):2===n?["Minimum","Maximum"][a]:void 0,R=null==S?void 0:S[m.size],E=R?function(e,t,n){let r=e/2,o=T([0,50],[0,r]);return(r-o(t)*n)*n}(R,x,m.direction):0;return r.useEffect(()=>{if(h)return s.thumbs.add(h),()=>{s.thumbs.delete(h)}},[h,s.thumbs]),(0,p.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[m.startEdge]:"calc(".concat(x,"% + ").concat(E,"px)")},children:[(0,p.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,p.jsx)(f.WV.span,{role:"slider","aria-label":e["aria-label"]||D,"aria-valuemin":s.min,"aria-valuenow":y,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...u,ref:w,style:void 0===y?{display:"none"}:e.style,onFocus:(0,i.M)(e.onFocus,()=>{s.valueIndexToChangeRef.current=a})})}),g&&(0,p.jsx)(U,{name:null!=d?d:s.name?s.name+(s.values.length>1?"[]":""):void 0,form:s.form,value:y},a)]})});N.displayName=H;var U=r.forwardRef((e,t)=>{let{__scopeSlider:n,value:o,...i}=e,a=r.useRef(null),d=(0,l.e)(a,t),u=(0,s.D)(o);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==o&&t){let n=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,p.jsx)(f.WV.input,{style:{display:"none"},...i,ref:d,defaultValue:o})});function L(e,t,n){return(0,o.u)(100/(n-t)*(e-t),[0,100])}function T(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}U.displayName="RadioBubbleInput";var W=E,B=I,O=z,X=N}}]);
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.