const e=/\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi,s="(color: 48842621)",r="(color: 70318723)",creator=o=>{const t=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-prefers-color-scheme",prepare(){const o=new WeakSet;return{postcssPlugin:"postcss-prefers-color-scheme",AtRule(a){if(o.has(a))return;if("media"!==a.name.toLowerCase())return;const{params:c}=a,p=c.replace(e,(e,o)=>"dark"===o.toLowerCase()?s:"light"===o.toLowerCase()?r:e);c!==p&&(o.add(a),a.cloneBefore({params:p}),t.preserve||a.remove())}}}}};creator.postcss=!0;export{creator as default,creator as"module.exports"};
