"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(e,t,o,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of __getOwnPropNames(t))__hasOwnProp.call(e,s)||s===o||__defProp(e,s,{get:()=>t[s],enumerable:!(r=__getOwnPropDesc(t,s))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),minimist_exports={};function minimist(e,t){t||(t={});let o={},r={};for(let e of toArray(t.boolean))o[e]=!0;for(let e of toArray(t.string))r[e]=!0;let s={_:[]};function i(e,t){void 0===s[e]||o[e]||"boolean"==typeof s[e]?s[e]=t:Array.isArray(s[e])?s[e].push(t):s[e]=[s[e],t]}let n=[],l=e.indexOf("--");-1!==l&&(n=e.slice(l+1),e=e.slice(0,l));for(let t=0;t<e.length;t++){let n,l,_=e[t];if(/^--.+=/.test(_)){let e=_.match(/^--([^=]+)=([\s\S]*)$/);if(o[n=e[1]])throw Error(`boolean option '--${n}' should not be passed with '=value', use '--${n}' or '--no-${n}' instead`);i(n,e[2])}else if(/^--no-.+/.test(_))i(n=_.match(/^--no-(.+)/)[1],!1);else if(/^--.+/.test(_))n=_.match(/^--(.+)/)[1],void 0===(l=e[t+1])||/^(-|--)[^-]/.test(l)||o[n]?/^(true|false)$/.test(l)?(i(n,"true"===l),t+=1):i(n,!r[n]||""):(i(n,l),t+=1);else if(/^-[^-]+/.test(_)){let s=_.slice(1,-1).split(""),a=!1;for(let e=0;e<s.length;e++){if("-"===(l=_.slice(e+2))){i(s[e],l);continue}if(/[A-Za-z]/.test(s[e])&&"="===l[0]){i(s[e],l.slice(1)),a=!0;break}if(/[A-Za-z]/.test(s[e])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(l)){i(s[e],l),a=!0;break}if(s[e+1]&&s[e+1].match(/\W/)){i(s[e],_.slice(e+2)),a=!0;break}i(s[e],!r[s[e]]||"")}n=_.slice(-1)[0],a||"-"===n||(!e[t+1]||/^(-|--)[^-]/.test(e[t+1])||o[n]?e[t+1]&&/^(true|false)$/.test(e[t+1])?(i(n,"true"===e[t+1]),t+=1):i(n,!r[n]||""):(i(n,e[t+1]),t+=1))}else s._.push(_)}for(let e of n)s._.push(e);return s}function toArray(e){return e?Array.isArray(e)?e:[e]:[]}__export(minimist_exports,{minimist:()=>minimist}),module.exports=__toCommonJS(minimist_exports);