PageSourceSearch

https://vonvo.ai/assets/vendor-ui-extra-MYsYsKPI.js

js vonvo.ai collected 2026-10-05 13:13:53 UTC 22,595 bytes, 14 lines download raw bytes

vendor: 4,388 bytes, lines 1-9
1import{r as d,R as y}from"./vendor-react-BahMz3y6.js";import{c as L,u as $,a as Pe,P as R,b as E,d as ye,e as A,f as z,g as Et,h as _e,i as Ae,j as se,k as ie,l as Ee}from"./vendor-ui-core-M8iOpbwb.js";import{j as u}from"./vendor-query-DAAv_TEJ.js";var X="Collapsible",[It,Ie]=L(X),[kt,ce]=It(X),ke=d.forwardRef((e,t)=>{const{__scopeCollapsible:o,open:r,defaultOpen:n,disabled:a,onOpenChange:i,...s}=e,[c,f]=$({prop:r,defaultProp:n??!1,onChange:i,caller:X});return u.jsx(kt,{scope:o,disabled:a,contentId:Pe(),open:c,onOpenToggle:d.useCallback(()=>f(p=>!p),[f]),children:u.jsx(R.div,{"data-state":de(c),"data-disabled":a?"":void 0,...s,ref:t})})});ke.displayName=X;var Ne="CollapsibleTrigger",je=d.forwardRef((e,t)=>{const{__scopeCollapsible:o,...r}=e,n=ce(Ne,o);return u.jsx(R.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":de(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:t,onClick:E(e.onClick,n.onOpenToggle)})});je.displayName=Ne;var le="CollapsibleContent",De=d.forwardRef((e,t)=>{const{forceMount:o,...r}=e,n=ce(le,e.__scopeCollapsible);return u.jsx(ye,{present:o||n.open,children:({present:a})=>u.jsx(Nt,{...r,ref:t,present:a})})});De.displayName=le;var Nt=d.forwardRef((e,t)=>{const{__scopeCollapsible:o,present:r,children:n,...a}=e,i=ce(le,o),[s,c]=d.useState(r),f=d.useRef(null),p=A(t,f),l=d.useRef(0),v=l.current,b=d.useRef(0),S=b.current,g=i.open||s,x=d.useRef(g),m=d.useRef(void 0);return d.useEffect(()=>{const h=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(h)},[]),z(()=>{const h=f.current;if(h){m.current=m.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const C=h.getBoundingClientRect();l.current=C.height,b.current=C.width,x.current||(h.style.transitionDuration=m.current.transitionDuration,h.style.animationName=m.current.animationName),c(r)}},[i.open,r]),u.jsx(R.div,{"data-state":de(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:g&&n})});function de(e){return e?"open":"closed"}var jt=ke,Dt=je,Mt=De,Me={exports:{}},Te={};/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var V=d;function Tt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Tt,Bt=V.useState,Ot=V.useEffect,Vt=V.useLayoutEffect,$t=V.useDebugValue;function Ht(e,t){var o=t(),r=Bt({inst:{value:o,getSnapshot:t}}),n=r[0].inst,a=r[1];return Vt(function(){n.value=o,n.getSnapshot=t,te(n)&&a({inst:n})},[e,o,t]),Ot(function(){return te(n)&&a({inst:n}),e(function(){te(n)&&a({inst:n})})},[e]),$t(o),o}function te(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Lt(e,o)}catch{return!0}}function Kt(e,t){return t()}var Ft=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kt:Ht;Te.useSyncExternalStore=V.useSyncExternalStore!==void 0?V.useSyncExternalStore:Ft;Me.exports=Te;var Ut=Me.exports;function zt(){return Ut.useSyncExternalStore(Gt,()=>!0,()=>!1)}function Gt(){return()=>{}}var ue="Avatar",[qt,$o]=L(ue),[Xt,Le]=qt(ue),Be=d.forwardRef((e,t)=>{const{__scopeAvatar:o,...r}=e,[n,a]=d.useState("idle");return u.jsx(Xt,{scope:o,imageLoadingStatus:n,onImageLoadingStatusChange:a,children:u.jsx(R.span,{...r,ref:t})})});Be.displayName=ue;var Oe="AvatarImage",Ve=d.forwardRef((e,t)=>{const{__scopeAvatar:o,src:r,onLoadingStatusChange:n=()=>{},...a}=e,i=Le(Oe,o),s=Yt(r,a),c=Et(f=>{n(f),i.onImageLoadingStatusChange(f)});return z(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?u.jsx(R.img,{...a,ref:t,src:r}):null});Ve.displayName=Oe;var $e="AvatarFallback",He=d.forwardRef((e,t)=>{const{__scopeAvatar:o,delayMs:r,...n}=e,a=Le($e,o),[i,s]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?u.jsx(R.span,{...n,ref:t}):null});He.displayName=$e;function Se(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWi
vendor: 4,187 bytes, line 9
9dth>0?"loaded":"loading"):"error":"idle"}function Yt(e,{referrerPolicy:t,crossOrigin:o}){const r=zt(),n=d.useRef(null),a=r?(n.current||(n.current=new window.Image),n.current):null,[i,s]=d.useState(()=>Se(a,e));return z(()=>{s(Se(a,e))},[a,e]),z(()=>{const c=l=>()=>{s(l)};if(!a)return;const f=c("loaded"),p=c("error");return a.addEventListener("load",f),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof o=="string"&&(a.crossOrigin=o),()=>{a.removeEventListener("load",f),a.removeEventListener("error",p)}},[a,o,t]),i}var Ho=Be,Ko=Ve,Fo=He,I="Accordion",Wt=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[fe,Jt,Qt]=_e(I),[Y,Uo]=L(I,[Qt,Ie]),pe=Ie(),Ke=y.forwardRef((e,t)=>{const{type:o,...r}=e,n=r,a=r;return u.jsx(fe.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?u.jsx(oo,{...a,ref:t}):u.jsx(to,{...n,ref:t})})});Ke.displayName=I;var[Fe,Zt]=Y(I),[Ue,eo]=Y(I,{collapsible:!1}),to=y.forwardRef((e,t)=>{const{value:o,defaultValue:r,onValueChange:n=()=>{},collapsible:a=!1,...i}=e,[s,c]=$({prop:o,defaultProp:r??"",onChange:n,caller:I});return u.jsx(Fe,{scope:e.__scopeAccordion,value:y.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:y.useCallback(()=>a&&c(""),[a,c]),children:u.jsx(Ue,{scope:e.__scopeAccordion,collapsible:a,children:u.jsx(ze,{...i,ref:t})})})}),oo=y.forwardRef((e,t)=>{const{value:o,defaultValue:r,onValueChange:n=()=>{},...a}=e,[i,s]=$({prop:o,defaultProp:r??[],onChange:n,caller:I}),c=y.useCallback(p=>s((l=[])=>[...l,p]),[s]),f=y.useCallback(p=>s((l=[])=>l.filter(v=>v!==p)),[s]);return u.jsx(Fe,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:f,children:u.jsx(Ue,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(ze,{...a,ref:t})})})}),[no,W]=Y(I),ze=y.forwardRef((e,t)=>{const{__scopeAccordion:o,disabled:r,dir:n,orientation:a="vertical",...i}=e,s=y.useRef(null),c=A(s,t),f=Jt(o),l=Ae(n)==="ltr",v=E(e.onKeyDown,b=>{var U;if(!Wt.includes(b.key))return;const S=b.target,g=f().filter(K=>{var N;return!((N=K.ref.current)!=null&&N.disabled)}),x=g.findIndex(K=>K.ref.current===S),m=g.length;if(x===-1)return;b.preventDefault();let h=x;const C=0,w=m-1,_=()=>{h=x+1,h>w&&(h=C)},k=()=>{h=x-1,h<C&&(h=w)};switch(b.key){case"Home":h=C;break;case"End":h=w;break;case"ArrowRight":a==="horizontal"&&(l?_():k());break;case"ArrowDown":a==="vertical"&&_();break;case"ArrowLeft":a==="horizontal"&&(l?k():_());break;case"ArrowUp":a==="vertical"&&k();break}const D=h%m;(U=g[D].ref.current)==null||U.focus()});return u.jsx(no,{scope:o,disabled:r,direction:n,orientation:a,children:u.jsx(fe.Slot,{scope:o,children:u.jsx(R.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:v})})})}),G="AccordionItem",[ro,me]=Y(G),Ge=y.forwardRef((e,t)=>{const{__scopeAccordion:o,value:r,...n}=e,a=W(G,o),i=Zt(G,o),s=pe(o),c=Pe(),f=r&&i.value.includes(r)||!1,p=a.disabled||e.disabled;return u.jsx(ro,{scope:o,open:f,disabled:p,triggerId:c,children:u.jsx(jt,{"data-orientation":a.orientation,"data-state":Qe(f),...s,...n,ref:t,disabled:p,open:f,onOpenChange:l=>{l?i.onItemOpen(r):i.onItemClose(r)}})})});Ge.displayName=G;var qe="AccordionHeader",Xe=y.forwardRef((e,t)=>{const{__scopeAccordion:o,...r}=e,n=W(I,o),a=me(qe,o);return u.jsx(R.h3,{"data-orientation":n.orientation,"data-state":Qe(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Xe.displayName=qe;var oe="AccordionTrigger",Ye=y.forwardRef((e,t)=>{const{__scopeAccordion:o,...r}=e,n=W(I,o),a=me(oe,o),i=eo(oe,o),s=pe(o);return u.jsx(fe.ItemSlot,{scope:o,children:u.jsx(Dt,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...s,...r,ref:t})})});Ye.displayName=oe;var We="AccordionContent",Je=y.forwardRef((e,t)=>{const{__scopeAccordion:o,...r}=e,n=W(I,o),a=me(We,o),i=pe(o);return u.jsx(Mt,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Je.displayName=We;function Qe(e){return e?"open":"closed"}var zo=Ke,Go=Ge,qo=Xe,Xo=Ye,Yo=Je,ve="Progress",he=100,[ao,Wo]=L(ve),[so,io]=ao(ve),Ze=d.forwardRef((e,t)=>
9{const{__scopeProgress:o,value:r=null,max:n,getValueLabel:a=co,...i}=e;(n||n===0)&&!we(n)&&console.error(lo(`${n}`,"Progress"));const s=we(n)?n:he;r!==null&&!Re(r,s)&&console.error(uo(`${r}`,"Progress"));const c=Re(r,s)?r:null,f=q(c)?a(c,s):void 0;return u.jsx(so,{scope:o,value:c,max:s,children:u.jsx(R.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":q(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ot(c,s),"data-value":c??void 0,"data-max":s,...i,ref:t})})});Ze.displayName=ve;var et="ProgressIndicator",tt=d.forwardRef((e,t)=>{const{__scopeProgress:o,...r}=e,n=io(et,o);return u.jsx(R.div,{"data-state":ot(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...r,ref:t})});tt.displayName=et;function co(e,t){return`${Math.round(e/t*100)}%`}function ot(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function q(e){return typeof e=="number"}function we(e){return q(e)&&!isNaN(e)&&e>0}function Re(e,t){return q(e)&&!isNaN(e)&&e<=t&&e>=0}function lo(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${he}\`.`}function uo(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
10  - a positive number
11  - less than the value passed to \`max\` (or ${he} if no \`max\` prop is set)
12  - \`null\` or \`undefined\` if the progress is indeterminate.
13
14Defaulting to \`null\`.`}var Jo=Ze,Qo=tt,J="Checkbox",[fo,Zo]=L(J),[po,ge]=fo(J);function mo(e){const{__scopeCheckbox:t,checked:o,children:r,defaultChecked:n,disabled:a,form:i,name:s,onCheckedChange:c,required:f,value:p="on",internal_do_not_use_render:l}=e,[v,b]=$({prop:o,defaultProp:n??!1,onChange:c,caller:J}),[S,g]=d.useState(null),[x,m]=d.useState(null),h=d.useRef(!1),C=S?!!i||!!S.closest("form"):!0,w={checked:v,disabled:a,setChecked:b,control:S,setControl:g,name:s,form:i,value:p,hasConsumerStoppedPropagationRef:h,required:f,defaultChecked:j(n)?!1:n,isFormControl:C,bubbleInput:x,setBubbleInput:m};return u.jsx(po,{scope:t,...w,children:go(l)?l(w):r})}var nt="CheckboxTrigger",rt=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:o,...r},n)=>{const{control:a,value:i,disabled:s,checked:c,required:f,setControl:p,setChecked:l,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:S}=ge(nt,e),g=A(n,p),x=d.useRef(c);return d.useEffect(()=>{const m=a==null?void 0:a.form;if(m){const h=()=>l(x.current);return m.addEventListener("reset",h),()=>m.removeEventListener("reset",h)}},[a,l]),u.jsx(R.button,{type:"button",role:"checkbox","aria-checked":j(c)?"mixed":c,"aria-required":f,"data-state":ct(c),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:g,onKeyDown:E(t,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:E(o,m=>{l(h=>j(h)?!0:!h),S&&b&&(v.current=m.isPropagationStopped(),v.current||m.stopPropagation())})})});rt.displayName=nt;var vo=d.forwardRef((e,t)=>{const{__scopeCheckbox:o,name:r,checked:n,defaultChecked:a,required:i,disabled:s,value:c,onCheckedChange:f,form:p,...l}=e;return u.jsx(mo,{__scopeCheckbox:o,checked:n,defaultChecked:a,disabled:s,required:i,onCheckedChange:f,name:r,form:p,value:c,internal_do_not_use_render:({isFormControl:v})=>u.jsxs(u.Fragment,{children:[u.jsx(rt,{...l,ref:t,__scopeCheckbox:o}),v&&u.jsx(it,{__scopeCheckbox:o})]})})});vo.displayName=J;var at="CheckboxIndicator",ho=d.forwardRef((e,t)=>{const{__scopeCheckbox:o,forceMount:r,...n}=e,a=ge(at,o);return u.jsx(ye,{present:r||j(a.checked)||a.checked===!0,children:u.jsx(R.span,{"data-state":ct(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});ho.displayName=at;var st="CheckboxBubbleInput",it=d.forwardRef(({__scopeCheckbox:e,...t},o)=>{const{control:r,hasConsumerStoppedPropagationRef:n,checked:a,defaultChecked:i,required:s,disabled:c,name:f,value:p,form:l,bubbleInput:v,setBubbleInput:b}=ge(st,e),S=A(o,b),g=se(a),x=ie(r);d.useEffect(()=>{const h=v;if(!h)return;const C=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(C,"checked").set,k=!n.current;if(g!==a&&_){const D=new Event("click",{bubbles:k});h.indeterminate=j(a),_.call(h,j(a)?!1:a),h.dispatchEvent(D)}},[v,g,a,n]);const m=d.useRef(j(a)?!1:a);return u.jsx(R.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??m.current,required:s,disabled:c,name:f,value:p,form:l,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});it.displayName=st;function go(e){return typeof e=="function"}function j(e){return e==="indeterminate"}function ct(e){return j(e)?"indeterminate":e?"checked":"unchecked"}var lt=["PageUp","PageDown"],dt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ut={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},H="Slider",[ne,bo,xo]=_e(H),[ft,en]=L(H,[xo]),[Co,Q]=ft(H),pt=d.forwardRef((e,t)=>
14{const{name:o,min:r=0,max:n=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:f=[r],value:p,onValueChange:l=()=>{},onValueCommit:v=()=>{},inverted:b=!1,form:S,...g}=e,x=d.useRef(new Set),m=d.useRef(0),C=i==="horizontal"?So:wo,[w=[],_]=$({prop:p,defaultProp:f,onChange:P=>{var B;(B=[...x.current][m.current])==null||B.focus(),l(P)}}),k=d.useRef(w);function D(P){const M=Ao(w,P);N(P,M)}function U(P){N(P,m.current)}function K(){const P=k.current[m.current];w[m.current]!==P&&v(w)}function N(P,M,{commit:B}={commit:!1}){const xe=No(a),ee=jo(Math.round((P-r)/a)*a+r,xe),F=Ee(ee,[r,n]);_((O=[])=>{const T=yo(O,F,M);if(ko(T,c*a)){m.current=T.indexOf(F);const Ce=String(T)!==String(O);return Ce&&B&&v(T),Ce?T:O}else return O})}return u.jsx(Co,{scope:e.__scopeSlider,name:o,disabled:s,min:r,max:n,valueIndexToChangeRef:m,thumbs:x.current,values:w,orientation:i,form:S,children:u.jsx(ne.Provider,{scope:e.__scopeSlider,children:u.jsx(ne.Slot,{scope:e.__scopeSlider,children:u.jsx(C,{"aria-disabled":s,"data-disabled":s?"":void 0,...g,ref:t,onPointerDown:E(g.onPointerDown,()=>{s||(k.current=w)}),min:r,max:n,inverted:b,onSlideStart:s?void 0:D,onSlideMove:s?void 0:U,onSlideEnd:s?void 0:K,onHomeKeyDown:()=>!s&&N(r,0,{commit:!0}),onEndKeyDown:()=>!s&&N(n,w.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:M})=>{if(!s){const ee=lt.includes(P.key)||P.shiftKey&&dt.includes(P.key)?10:1,F=m.current,O=w[F],T=a*ee*M;N(O+T,F,{commit:!0})}}})})})})});pt.displayName=H;var[mt,vt]=ft(H,{startEdge:"left",endEdge:"right",size:"width",direction:1}),So=d.forwardRef((e,t)=>{const{min:o,max:r,dir:n,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:f,...p}=e,[l,v]=d.useState(null),b=A(t,C=>v(C)),S=d.useRef(void 0),g=Ae(n),x=g==="ltr",m=x&&!a||!x&&a;function h(C){const w=S.current||l.getBoundingClientRect(),_=[0,w.width],D=be(_,m?[o,r]:[r,o]);return S.current=w,D(C-w.left)}return u.jsx(mt,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width",children:u.jsx(ht,{dir:g,"data-orientation":"horizontal",...p,ref:b,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const w=h(C.clientX);i==null||i(w)},onSlideMove:C=>{const w=h(C.clientX);s==null||s(w)},onSlideEnd:()=>{S.current=void 0,c==null||c()},onStepKeyDown:C=>{const _=ut[m?"from-left":"from-right"].includes(C.key);f==null||f({event:C,direction:_?-1:1})}})})}),wo=d.forwardRef((e,t)=>{const{min:o,max:r,inverted:n,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...f}=e,p=d.useRef(null),l=A(t,p),v=d.useRef(void 0),b=!n;function S(g){const x=v.current||p.current.getBoundingClientRect(),m=[0,x.height],C=be(m,b?[r,o]:[o,r]);return v.current=x,C(g-x.top)}return u.jsx(mt,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:u.jsx(ht,{"data-orientation":"vertical",...f,ref:l,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const x=S(g.clientY);a==null||a(x)},onSlideMove:g=>{const x=S(g.clientY);i==null||i(x)},onSlideEnd:()=>{v.current=void 0,s==null||s()},onStepKeyDown:g=>{const m=ut[b?"from-bottom":"from-top"].includes(g.key);c==null||c({event:g,direction:m?-1:1})}})})}),ht=d.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:r,onSlideMove:n,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...f}=e,p=Q(H,o);return u.jsx(R.span,{...f,ref:t,onKeyDown:E(e.onKeyDown,l=>{l.key==="Home"?(i(l),l.preventDefault()):l.key==="End"?(s(l),l.preventDefault()):lt.concat(dt).includes(l.key)&&(c(l),l.preventDefault())}),onPointerDown:E(e.onPointerDown,l=>{const v=l.target;v.setPointerCapture(l.pointerId),l.preventDefault(),p.thumbs.has(v)?v.focus():r(l)}),onPointerMove:E(e.onPointerMove,l=>{l.target.hasPointerCapture(l.pointerId)&&n(l)}),onPointerUp:E(e.onPointerUp,l=>{const v=l.target;v.hasPointerCapture(l.pointerId)&&(v.releasePointerCapture(l.pointerId),a(l))})})}),gt="SliderTrack",bt=d.forwardRef((e,t)=>{const{__scopeSlider:o,...r}=e,n=Q(gt,o);return u.jsx(R.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...r,ref:t})});bt.displayName=gt;var re="SliderRange",xt=d.forwardRef((e,t)=>
14{const{__scopeSlider:o,...r}=e,n=Q(re,o),a=vt(re,o),i=d.useRef(null),s=A(t,i),c=n.values.length,f=n.values.map(v=>wt(v,n.min,n.max)),p=c>1?Math.min(...f):0,l=100-Math.max(...f);return u.jsx(R.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:l+"%"}})});xt.displayName=re;var ae="SliderThumb",Ct=d.forwardRef((e,t)=>{const o=bo(e.__scopeSlider),[r,n]=d.useState(null),a=A(t,s=>n(s)),i=d.useMemo(()=>r?o().findIndex(s=>s.ref.current===r):-1,[o,r]);return u.jsx(Ro,{...e,ref:a,index:i})}),Ro=d.forwardRef((e,t)=>{const{__scopeSlider:o,index:r,name:n,...a}=e,i=Q(ae,o),s=vt(ae,o),[c,f]=d.useState(null),p=A(t,h=>f(h)),l=c?i.form||!!c.closest("form"):!0,v=ie(c),b=i.values[r],S=b===void 0?0:wt(b,i.min,i.max),g=_o(r,i.values.length),x=v==null?void 0:v[s.size],m=x?Eo(x,S,s.direction):0;return d.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${S}% + ${m}px)`},children:[u.jsx(ne.ItemSlot,{scope:e.__scopeSlider,children:u.jsx(R.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":b,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:p,style:b===void 0?{display:"none"}:e.style,onFocus:E(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),l&&u.jsx(St,{name:n??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:b},r)]})});Ct.displayName=ae;var Po="RadioBubbleInput",St=d.forwardRef(({__scopeSlider:e,value:t,...o},r)=>{const n=d.useRef(null),a=A(n,r),i=se(t);return d.useEffect(()=>{const s=n.current;if(!s)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&p){const l=new Event("input",{bubbles:!0});p.call(s,t),s.dispatchEvent(l)}},[i,t]),u.jsx(R.input,{style:{display:"none"},...o,ref:a,defaultValue:t})});St.displayName=Po;function yo(e=[],t,o){const r=[...e];return r[o]=t,r.sort((n,a)=>n-a)}function wt(e,t,o){const a=100/(o-t)*(e-t);return Ee(a,[0,100])}function _o(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Ao(e,t){if(e.length===1)return 0;const o=e.map(n=>Math.abs(n-t)),r=Math.min(...o);return o.indexOf(r)}function Eo(e,t,o){const r=e/2,a=be([0,50],[0,r]);return(r-a(t)*o)*o}function Io(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function ko(e,t){if(t>0){const o=Io(e);return Math.min(...o)>=t}return!0}function be(e,t){return o=>{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*(o-e[0])}}function No(e){return(String(e).split(".")[1]||"").length}function jo(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var tn=pt,on=bt,nn=xt,rn=Ct,Z="Switch",[Do,an]=L(Z),[Mo,To]=Do(Z),Rt=d.forwardRef((e,t)=>{const{__scopeSwitch:o,name:r,checked:n,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:f,form:p,...l}=e,[v,b]=d.useState(null),S=A(t,C=>b(C)),g=d.useRef(!1),x=v?p||!!v.closest("form"):!0,[m,h]=$({prop:n,defaultProp:a??!1,onChange:f,caller:Z});return u.jsxs(Mo,{scope:o,checked:m,disabled:s,children:[u.jsx(R.button,{type:"button",role:"switch","aria-checked":m,"aria-required":i,"data-state":At(m),"data-disabled":s?"":void 0,disabled:s,value:c,...l,ref:S,onClick:E(e.onClick,C=>{h(w=>!w),x&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),x&&u.jsx(_t,{control:v,bubbles:!g.current,name:r,value:c,checked:m,required:i,disabled:s,form:p,style:{transform:"translateX(-100%)"}})]})});Rt.displayName=Z;var Pt="SwitchThumb",yt=d.forwardRef((e,t)=>{const{__scopeSwitch:o,...r}=e,n=To(Pt,o);return u.jsx(R.span,{"data-state":At(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:t})});yt.displayName=Pt;var Lo="SwitchBubbleInput",_t=d.forwardRef(({__scopeSwitch:e,control:t,checked:o,bubbles:r=!0,...n},a)=>{const i=d.useRef(null),s=A(i,a),c=se(o),f=ie(t);return d.useEffect(()=>{const p=i.current;
vendor: 633 bytes, line 14
14if(!p)return;const l=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(l,"checked").set;if(c!==o&&b){const S=new Event("click",{bubbles:r});b.call(p,o),p.dispatchEvent(S)}},[c,o,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...n,tabIndex:-1,ref:s,style:{...n.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_t.displayName=Lo;function At(e){return e?"checked":"unchecked"}var sn=Rt,cn=yt;export{je as C,Fo as F,qo as H,Ko as I,jt as R,Xo as T,De as a,Ho as b,Go as c,Yo as d,zo as e,Jo as f,Qo as g,vo as h,ho as i,tn as j,on as k,nn as l,rn as m,sn as n,cn as o};

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.