const e=require("../node_modules/.pnpm/@ant-design_colors@7.2.1/node_modules/@ant-design/colors/es/presets.js");require("../node_modules/.pnpm/@ant-design_colors@7.2.1/node_modules/@ant-design/colors/es/index.js");const t=require("../vc-util/devWarning.js");function n(e){return!e||e<0?0:e>100?100:e}function r({success:e,successPercent:n}){let r=n;return e&&`progress`in e&&(t.default(!1,`Progress`,"`success.progress` is deprecated. Please use `success.percent` instead."),r=e.progress),e&&`percent`in e&&(r=e.percent),r}function i({percent:e,success:t,successPercent:i}){let a=n(r({success:t,successPercent:i}));return[a,n(n(e)-a)]}function a({success:t={},strokeColor:n}){let{strokeColor:r}=t;return[r||e.presetPrimaryColors.green,n||null]}var o=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):typeof e==`number`?[r,i]=[e,e]:[r=14,i=8]=e,r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):typeof e==`number`?[r,i]=[e,e]:[r=-1,i=8]=e}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:typeof e==`number`?[r,i]=[e,e]:(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return{width:r,height:i}};exports.getPercentage=i,exports.getSize=o,exports.getStrokeColor=a,exports.getSuccessPercent=r,exports.validProgress=n;