1import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t,r as n}from"./framework-D_rUT4EX.js";import{a as r,i,n as a,o,r as s,s as c}from"./site-image-B4K568Dg.js";var l=n(),u=e(t(),1),d=Object.defineProperty,f=(e,t)=>d(e,`name`,{value:t,configurable:!0});function p(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}f(p,`setRef`);function m(...e){return t=>{let n=!1,r=e.map(e=>{let r=p(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():p(e[t],null)}}}}f(m,`composeRefs`);function h(...e){return u.useCallback(m(...e),e)}f(h,`useComposedRefs`);var g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e){let t=u.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];T(r)&&typeof k==`function`&&(r=k(r._payload)),u.Children.forEach(r,e=>{if(w(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;T(n)&&typeof k==`function`&&(n=k(n._payload)),a=x(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=u.cloneElement(a,void 0,s):!o&&u.Children.count(r)===1&&u.isValidElement(r)&&(a=r);let c=a?C(a):void 0,l=h(n,c);if(!a){if(r||r===0)throw Error(o?O(e):D(e));return r}let d=S(i,a.props??{});return a.type!==u.Fragment&&(d.ref=n?l:c),u.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}_(v,`createSlot`);var y=Symbol.for(`radix.slottable`);function b(e){let t=_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=y,t}_(b,`createSlottable`);var x=_((e,t)=>
1{if(`child`in e.props){let t=e.props.child;return u.isValidElement(t)?u.cloneElement(t,void 0,e.props.children(t.props.children)):null}return u.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function S(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}_(S,`mergeProps`);function C(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}_(C,`getElementRef`);function w(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}_(w,`isSlottable`);var ee=Symbol.for(`react.lazy`);function T(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ee&&`_payload`in e&&E(e._payload)}_(T,`isLazyComponent`);function E(e){return typeof e==`object`&&!!e&&`then`in e}_(E,`isPromiseLike`);var D=_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),O=_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),k=u.use,A=Object.defineProperty,j=(e,t)=>A(e,`name`,{value:t,configurable:!0});function M(e){let t=e+`CollectionProvider`,[n,r]=o(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=j(e=>{let{scope:t,children:n}=e,r=u.useRef(null),a=u.useRef(new Map).current;return(0,l.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);s.displayName=t;let c=e+`CollectionSlot`,d=v(c),f=u.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,l.jsx)(d,{ref:h(t,a(c,n).collectionRef),children:r})});f.displayName=c;let p=e+`CollectionItemSlot`,m=`data-radix-collection-item`,g=v(p),_=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=u.useRef(null),s=h(t,o),c=a(p,n);return u.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,l.jsx)(g,{[m]:``,ref:s,children:r})});_.displayName=p;function y(t){let n=a(e+`CollectionConsumer`,t);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return j(y,`useCollection`),[{Provider:s,Slot:f,ItemSlot:_},y,r]}j(M,`createCollection`);var N=new WeakMap,P=class e extends Map{static{j(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],N.set(this,!0)}set(e,t){return N.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=I(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t===void 0?!1:this.delete(t)}at(e){let t=F(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=F(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return F(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function F(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=te(e,t);return n===-1?void 0:e[n]}j(F,`at`);function te(e,t){let n=e.length,r=I(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}j(te,`toSafeIndex`);function I(e){return e!==e||e===0?0:Math.trunc(e)}j(I,`toSafeInteger`);function ne(e){let t=e+`CollectionProvider`,[n,r]=o(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new P,setItemMap:j(()=>void 0,`setItemMap`)}),s=j(({state:e,...t})=>e?(0,l.jsx)(d,{...t,state:e}):(0,l.jsx)(c,{...t}),`CollectionProvider`);s.displayName=t;let c=j(e=>{let t=b();return(0,l.jsx)(d,{...e,state:t})},`CollectionInit`);c.displayName=t+`Init`;let d=j(e=>{let{scope:t,children:n,state:r}=e,a=u.useRef(null),[o,s]=u.useState(null),c=h(a,s),[d,f]=r;return u.useEffect(()=>{if(!o)return;let e=ae(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,l.jsx)(i,{scope:t,itemMap:d,setItemMap:f,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);d.displayName=t+`Impl`;let f=e+`CollectionSlot`,p=v(f),m=u.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,l.jsx)(p,{ref:h(t,a(f,n).collectionRef),children:r})});m.displayName=f;let g=e+`CollectionItemSlot`,_=v(g),y=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=u.useRef(null),[s,c]=u.useState(null),d=h(t,o,c),{setItemMap:f}=a(g,n),p=u.useRef(i);re(p.current,i)||(p.current=i);let m=p.current;return u.useEffect(()=>{let e=m;return f(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(L):(t.set(s,{...e,element:s}),t.toSorted(L)):t),()=>{f(e=>!s||!e.has(s)?e:(e.delete(s),new P(e)))}},[s,m,f]),(0,l.jsx)(_,{"data-radix-collection-item":``,ref:d,children:r})});y.displayName=g;function b(){return u.useState(new P)}j(b,`useInitCollection`);function x(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return j(x,`useCollection`),[{Provider:s,Slot:m,ItemSlot:y},{createCollectionScope:r,useCollection:x,useInitCollection:b}]}j(ne,`createCollection`);function re(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}j(re,`shallowEqual`);function ie(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}j(ie,`isElementPreceding`);function L(e,t){return!e[1].element||!t[1].element?0:ie(e[1].element,t[1].element)?-1:1}j(L,`sortByDocumentPosition`);function ae(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}j(ae,`getChildListObserver`);var oe=Object.defineProperty,se=(e,t)=>oe(e,`name`,{value:t,configurable:!0}),ce=u.createContext(void 0);function R(e){let t=u.useContext(ce);return e||t||`ltr`}se(R,`useDirection`);var le=Object.defineProperty,ue=(e,t)=>
1le(e,`name`,{value:t,configurable:!0});function de(e){let[t,n]=u.useState(void 0);return i(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}ue(de,`useSize`);var fe=Object.defineProperty,pe=(e,t)=>fe(e,`name`,{value:t,configurable:!0});function z(e){let t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}pe(z,`usePrevious`);var me=Object.defineProperty,he=(e,t)=>me(e,`name`,{value:t,configurable:!0});function B(e,[t,n]){return Math.min(n,Math.max(t,e))}he(B,`clamp`);var ge=Object.defineProperty,V=(e,t)=>ge(e,`name`,{value:t,configurable:!0});function H(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}V(H,`setRef`);function _e(...e){return t=>{let n=!1,r=e.map(e=>{let r=H(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():H(e[t],null)}}}}V(_e,`composeRefs`);function U(...e){return u.useCallback(_e(...e),e)}V(U,`useComposedRefs`);var ve=Object.defineProperty,W=(e,t)=>ve(e,`name`,{value:t,configurable:!0}),ye=[`PageUp`,`PageDown`],be=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],xe={"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`,[K,Se,Ce]=M(G),[q,we]=o(G,[Ce]),[Te,J]=q(G),Ee=u.forwardRef(W(function(e,t){let{name:n,min:i=0,max:a=100,step:o=1,orientation:c=`horizontal`,disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[i],value:m,onValueChange:h=W(()=>{},`onValueChange`),onValueCommit:g=W(()=>{},`onValueCommit`),inverted:_=!1,form:v,...y}=e,b=u.useRef(new Set),x=u.useRef(0),S=u.useRef(!1),C=c===`horizontal`?ke:Ae,[w,ee]=u.useState(null),T=U(t,ee),[E=[],D]=s({prop:m,defaultProp:p,onChange:W(e=>{[...b.current][x.current]?.focus({preventScroll:!0,focusVisible:S.current}),S.current=!1,h(e)},`onChange`)}),O=u.useRef(E),k=u.useRef(E);u.useEffect(()=>{let e=v?w?.ownerDocument.getElementById(v):w?.closest(`form`);if(e instanceof HTMLFormElement){let t=W(()=>D(k.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[w,v,D]);function A(e){N(e,Ke(E,e))}W(A,`handleSlideStart`);function j(e){N(e,x.current)}W(j,`handleSlideMove`);function M(){String(E)!==String(O.current)&&g(E)}W(M,`handleSlideEnd`);function N(e,t,{commit:n}={commit:!1}){let r=Q(o),s=B($(Math.round((e-i)/o)*o+i,r),[i,a]);D((e=[])=>{let r=We(e,s,t);if(Ye(r,f*o)){x.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&g(r),t?r:e}else return e})}return W(N,`updateValues`),(0,l.jsx)(Te,{scope:e.__scopeSlider,name:n,disabled:d,min:i,max:a,valueIndexToChangeRef:x,thumbs:b.current,values:E,orientation:c,form:v,children:(0,l.jsx)(K.Provider,{scope:e.__scopeSlider,children:(0,l.jsx)(K.Slot,{scope:e.__scopeSlider,children:(0,l.jsx)(C,{"aria-disabled":d,"data-disabled":d?``:void 0,...y,ref:T,onPointerDown:r(y.onPointerDown,()=>{d||(O.current=E,S.current=!1)}),min:i,max:a,inverted:_,onSlideStart:d?void 0:A,onSlideMove:d?void 0:j,onSlideEnd:d?void 0:M,onHomeKeyDown:()=>{d||(S.current=!0,N(i,0,{commit:!0}))},onEndKeyDown:()=>{d||(S.current=!0,N(a,E.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!d){S.current=!0;let n=ye.includes(e.key)||e.shiftKey&&be.includes(e.key)?10:1,r=x.current,a=E[r];N(Xe(a,{min:i,step:o,direction:t,multiplier:n}),r,{commit:!0})}}})})})})},`Slider`)),[De,Oe]=q(G,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),ke=u.forwardRef(W(function(e,t){let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:d,...f}=e,[p,m]=u.useState(null),h=U(t,m),g=u.useRef(void 0),_=R(i),v=_===`ltr`,y=v&&!a||!v&&a;function b(e){let t=g.current||p.getBoundingClientRect(),i=Z([0,t.width],y?[n,r]:[r,n]);return g.current=t,i(e-t.left)}return W(b,`getValueFromPointer`),(0,l.jsx)(De,{scope:e.__scopeSlider,startEdge:y?`left`:`right`,endEdge:y?`right`:`left`,direction:y?1:-1,size:`width`,children:(0,l.jsx)(je,{dir:_,"data-orientation":`horizontal`,...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=b(e.clientX);o?.(t)},onSlideMove:e=>{let t=b(e.clientX);s?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>
1{let t=xe[y?`from-left`:`from-right`].includes(e.key);d?.({event:e,direction:t?-1:1})}})})},`SliderHorizontal`)),Ae=u.forwardRef(W(function(e,t){let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...d}=e,f=u.useRef(null),p=U(t,f),m=u.useRef(void 0),h=!i;function g(e){let t=m.current||f.current.getBoundingClientRect(),i=Z([0,t.height],h?[r,n]:[n,r]);return m.current=t,i(e-t.top)}return W(g,`getValueFromPointer`),(0,l.jsx)(De,{scope:e.__scopeSlider,startEdge:h?`bottom`:`top`,endEdge:h?`top`:`bottom`,size:`height`,direction:h?1:-1,children:(0,l.jsx)(je,{"data-orientation":`vertical`,...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=g(e.clientY);a?.(t)},onSlideMove:e=>{let t=g(e.clientY);o?.(t)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:e=>{let t=xe[h?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})},`SliderVertical`)),je=u.forwardRef(W(function(e,t){let{__scopeSlider:n,onSlideStart:i,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:u,onStepKeyDown:d,...f}=e,p=J(G,n);return(0,l.jsx)(c.span,{...f,ref:t,onKeyDown:r(e.onKeyDown,e=>{e.key===`Home`?(s(e),e.preventDefault()):e.key===`End`?(u(e),e.preventDefault()):ye.concat(be).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:r(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):i(e)}),onPointerMove:r(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:r(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})},`SliderImpl`)),Me=`SliderTrack`,Ne=u.forwardRef(W(function(e,t){let{__scopeSlider:n,...r}=e,i=J(Me,n);return(0,l.jsx)(c.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})},`SliderTrack`)),Pe=`SliderRange`,Fe=u.forwardRef(W(function(e,t){let{__scopeSlider:n,...r}=e,i=J(Pe,n),a=Oe(Pe,n),o=U(t,u.useRef(null)),s=i.values.length,d=i.values.map(e=>X(e,i.min,i.max)),f=s>1?Math.min(...d):0,p=100-Math.max(...d);return(0,l.jsx)(c.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:f+`%`,[a.endEdge]:p+`%`}})},`SliderRange`)),[Ie,Le]=q(`SliderThumb`),Re=`SliderThumbProvider`;function ze(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,a=J(Re,t),o=Se(t),[s,c]=u.useState(null),d=u.useMemo(()=>s?o().findIndex(e=>e.ref.current===s):-1,[o,s]),f=de(s),p=s?!!a.form||!!s.closest(`form`):!0,m=a.values[d],h=n??(a.name?a.name+(a.values.length>1?`[]`:``):void 0),g=m===void 0?0:X(m,a.min,a.max);u.useEffect(()=>{if(s)return a.thumbs.add(s),()=>{a.thumbs.delete(s)}},[s,a.thumbs]);let _={value:m,name:h,form:a.form,isFormControl:p,index:d,thumb:s,onThumbChange:c,percent:g,size:f};return(0,l.jsx)(Ie,{scope:t,..._,children:Ze(i)?i(_):r})}W(ze,`SliderThumbProvider`);var Y=`SliderThumbTrigger`,Be=u.forwardRef(W(function(e,t){let{__scopeSlider:n,...i}=e,a=J(Y,n),o=Oe(Y,n),{index:s,value:u,percent:d,size:f,onThumbChange:p}=Le(Y,n),m=U(t,p),h=Ge(s,a.values.length),g=f?.[o.size],_=g?qe(g,d,o.direction):0;return(0,l.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[o.startEdge]:`calc(${d}% + ${_}px)`},children:(0,l.jsx)(K.ItemSlot,{scope:n,children:(0,l.jsx)(c.span,{role:`slider`,"aria-label":e[`aria-label`]||h,"aria-valuemin":a.min,"aria-valuenow":u,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,tabIndex:a.disabled?void 0:0,...i,ref:m,style:u===void 0?{display:`none`}:e.style,onFocus:r(e.onFocus,()=>{a.valueIndexToChangeRef.current=s})})})})},`SliderThumbTrigger`)),Ve=u.forwardRef(W(function(e,t){let{__scopeSlider:n,name:r,...i}=e;return(0,l.jsx)(ze,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Be,{...i,ref:t,__scopeSlider:n}),r?(0,l.jsx)(Ue,{__scopeSlider:n},e):null]})})},`SliderThumb`)),He=`SliderBubbleInput`,Ue=u.forwardRef(W(function({__scopeSlider:e,...t},n){let{value:r,name:i,form:a}=Le(He,e),o=u.useRef(null),s=U(o,n),d=z(r);return u.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(d!==r&&n){let t=new Event(`input`,{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[d,r]),(0,l.jsx)(c.input,{style:{display:`none`},name:i,form:a,...t,ref:s,defaultValue:r})},`SliderBubbleInput`));function We(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>
1e-t)}W(We,`getNextSortedValues`);function X(e,t,n){return B(100/(n-t)*(e-t),[0,100])}W(X,`convertValueToPercentage`);function Ge(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}W(Ge,`getLabel`);function Ke(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}W(Ke,`getClosestValueIndex`);function qe(e,t,n){let r=e/2;return(r-Z([0,50],[0,r])(t)*n)*n}W(qe,`getThumbInBoundsOffset`);function Je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}W(Je,`getStepsBetweenValues`);function Ye(e,t){if(t>0){let n=Je(e);return Math.min(...n)>=t}return!0}W(Ye,`hasMinStepsBetweenValues`);function Z(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])}}W(Z,`linearScale`);function Q(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes(`e`)){let[e,n]=t.split(`e`),r=e.split(`.`)[1]||``,i=Number(n);return Math.max(0,r.length-i)}let n=t.split(`.`)[1];return n?n.length:0}W(Q,`getDecimalCount`);function $(e,t){let n=10**t;return Math.round(e*n)/n}W($,`roundValue`);function Xe(e,{min:t,step:n,direction:r,multiplier:i}){let a=Q(n),o=(e-t)/n,s=Math.round(o),c=$(s*n+t,a)===$(e,a),l;return l=c?s+i*r:r>0?Math.ceil(o):Math.floor(o),$(l*n+t,a)}W(Xe,`getNextStepValue`);function Ze(e){return typeof e==`function`}W(Ze,`isFunction`);function Qe({className:e,defaultValue:t,value:n,min:r=0,max:i=100,"aria-label":o,"aria-labelledby":s,"aria-valuetext":c,...d}){let f=u.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,i],[n,t,r,i]);return(0,l.jsxs)(Ee,{"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,className:a(`relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,e),...d,children:[(0,l.jsx)(Ne,{"data-slot":`slider-track`,className:a(`relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5`),children:(0,l.jsx)(Fe,{"data-slot":`slider-range`,className:a(`absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`)})}),Array.from({length:f.length},(e,t)=>(0,l.jsx)(Ve,{"data-slot":`slider-thumb`,"aria-label":o,"aria-labelledby":s,"aria-valuetext":c,className:`block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`},t))]})}export{M as i,z as n,R as r,Qe as t};
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.