import{__require as t}from"./map-generator.mjs";import{__require as r}from"./parse.mjs";import{__require as s}from"./result.mjs";import{__require as e}from"./stringify.mjs";import{__require as o}from"./warn-once.mjs";var i,n;function h(){if(n)return i;n=1;let h=t(),u=r();const c=s();let a=e(),l=o();class p{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=u;try{t=r(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,s){let e;r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=s,this._map=void 0;let o=a;this.result=new c(this._processor,e,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new h(o,e,this._opts,r);if(n.isMap()){let[t,r]=n.generate();t&&(this.result.css=t),r&&(this.result.map=r)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return"production"!==process.env.NODE_ENV&&("from"in this._opts||l("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this._css}warnings(){return[]}}return i=p,p.default=p,i}export{h as __require};