var e={name:`seq`,async execute(e){let t=`
`,n=!1,r=[],i=0;for(;i<e.length;){let a=e[i];if(a===`-s`&&i+1<e.length){t=e[i+1],i+=2;continue}if(a===`-w`){n=!0,i++;continue}if(a===`--`){i++;break}if(a.startsWith(`-`)&&a!==`-`){if(a.startsWith(`-s`)&&a.length>2){t=a.slice(2),i++;continue}if((a===`-ws`||a===`-sw`)&&(n=!0,i+1<e.length)){t=e[i+1],i+=2;continue}}r.push(a),i++}for(;i<e.length;)r.push(e[i]),i++;if(r.length===0)return{stdout:``,stderr:`seq: missing operand
`,exitCode:1};let a=1,o=1,s;if(r.length===1?s=parseFloat(r[0]):r.length===2?(a=parseFloat(r[0]),s=parseFloat(r[1])):(a=parseFloat(r[0]),o=parseFloat(r[1]),s=parseFloat(r[2])),Number.isNaN(a)||Number.isNaN(o)||Number.isNaN(s))return{stdout:``,stderr:`seq: invalid floating point argument: '${r.find(e=>Number.isNaN(parseFloat(e)))}'
`,exitCode:1};if(o===0)return{stdout:``,stderr:`seq: invalid Zero increment value: '0'
`,exitCode:1};let c=[],l=e=>{let t=String(e),n=t.indexOf(`.`);return n===-1?0:t.length-n-1},u=Math.max(l(a),l(o),l(s)),d=1e5,f=0;if(o>0)for(let e=a;e<=s+1e-10&&!(f++>d);e+=o)c.push(u>0?e.toFixed(u):String(Math.round(e)));else for(let e=a;e>=s-1e-10&&!(f++>d);e+=o)c.push(u>0?e.toFixed(u):String(Math.round(e)));if(n&&c.length>0){let e=Math.max(...c.map(e=>e.replace(`-`,``).length));for(let t=0;t<c.length;t++){let n=c[t].startsWith(`-`),r=(n?c[t].slice(1):c[t]).padStart(e,`0`);c[t]=n?`-${r}`:r}}let p=c.join(t);return{stdout:p?`${p}
`:``,stderr:``,exitCode:0}}},t={name:`seq`,flags:[{flag:`-s`,type:`value`,valueHint:`string`},{flag:`-w`,type:`boolean`}],needsArgs:!0};export{t as n,e as t};
//# sourceMappingURL=chunk-A7A2DBEE-BqvlRSRw.mjs.map