"use strict";const e="marp-cli*",s=/^(?:-d|--debug)(?:$|=)/,t=["true","1"],i=["false","0"],r=["all","full"],l=s=>{const l=s.trim(),c=l.toLowerCase();return r.includes(c)?"*":t.includes(c)?e:!i.includes(c)&&(l||e)};exports.cliPrepare=(t=process.argv.slice(2))=>{let i=!1;const r=[...t],c=r.findIndex(e=>s.test(e));if(c>=0){const s=r[c];if(s.startsWith("-d=")||s.startsWith("--debug="))i=l(s.slice(s.indexOf("=")+1)),r.splice(c,1);else{const s=r[c+1];!s||s.startsWith("-")?(i=e,r.splice(c,1)):(i=l(s),r.splice(c,2))}}return{args:r,debug:i}},exports.defaultDebug=e;