"use strict";const u=require("./command-approval-CpUzfNQz.cjs");function n(e){return e.trim().replace(/\s+/g," ")}function o(e,r,c){return c.some(t=>e.includes(t))?!1:r.includes("*")?!0:r.some(t=>{if(t.endsWith(" *")){const s=t.slice(0,-2);return e.startsWith(s+" ")||e===s}return e===t})}function d(e,r=[]){const c=e.map(n),t=r.map(n);return s=>o(n(s),c,t)}function p(e,r){const c=u.getCommandApprovalProvider(),t=c.getCommandDenylist(),s=r??c.getTrustedCommands(),m=n(e),a=t.map(n),i=s.map(n);return o(m,i,a)}exports.createCommandAcceptedChecker=d;exports.hasTrustMatch=o;exports.isCommandAccepted=p;exports.normalizeCommand=n;
//# sourceMappingURL=command-approval-By_nccL7.cjs.map
