1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{$ as n,C as r,Q as i,et as a,nt as o,ot as s,v as c}from"./Tooltip.PNC8NIZa.js";import{n as l,t as u}from"./useLabel.BMjZg4WL.js";import{t as d}from"./useNumberFormatter.t6impjkR.js";function f(e){let{value:t=0,minValue:n=0,maxValue:i=100,valueLabel:a,isIndeterminate:o,formatOptions:l={style:`percent`}}=e,f=r(e,{labelable:!0}),{labelProps:p,fieldProps:m}=u({...e,labelElementType:`span`});t=c(t,n,i);let h=(t-n)/(i-n),g=d(l);if(!o&&!a){let e=l.style===`percent`?h:t;a=g.format(e)}return{progressBarProps:s(f,{...m,"aria-valuenow":o?void 0:t,"aria-valuemin":n,"aria-valuemax":i,"aria-valuetext":o?void 0:a,role:`progressbar`}),labelProps:p}}var p=e(t(),1),m=(0,p.createContext)(null),h=(0,p.forwardRef)(function(e,t){[e,t]=i(e,t,m);let{value:u=0,minValue:d=0,maxValue:h=100,isIndeterminate:g=!1}=e;u=c(u,d,h);let[_,v]=a(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:y,labelProps:b}=f({...e,label:v}),x=g?void 0:(u-d)/(h-d)*100,S=n({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:x,valueText:y[`aria-valuetext`],isIndeterminate:g}}),C=r(e,{global:!0});return p.createElement(o.div,{...s(C,S,y),ref:t,slot:e.slot||void 0},p.createElement(l.Provider,{value:{...b,ref:_,elementType:`span`}},S.children))});export{m as n,h 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.