@empjs/plugin-tailwindcss 1.0.0-beta.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@
6
6
  `)}
7
7
  ]`)})}});var pt=m((ms,ft)=>{"use strict";l();var ut=require("path"),ct=Ce(),Gn=br(),Hn=Er(),Bn=Ue(),Zn=we();async function dt(n,e,t,r,o,s,a){let c=Gn(n,e,o,s);for(let u of c)u.type!=="import"||!Jn(u.uri)||t.filter&&!t.filter(u.uri)||await Kn(n,u,t,r,a);let d,f=[],h=[];function i(u){if(!d)d=u;else if(u.node.params.toLowerCase()!==d.node.params.toLowerCase())throw u.node.error(`Incompatible @charset statements:
8
8
  ${u.node.params} specified in ${u.node.source.input.file}
9
- ${d.node.params} specified in ${d.node.source.input.file}`)}return c.forEach(u=>{u.type==="charset"?i(u):u.type==="import"?u.children?u.children.forEach((S,I)=>{S.type==="import"?f.push(S):S.type==="charset"?i(S):h.push(S),I===0&&(S.parent=u)}):f.push(u):u.type==="nodes"&&h.push(u)}),d?[d,...f.concat(h)]:f.concat(h)}async function Kn(n,e,t,r,o){if(ct.isValid(e.uri)){e.children=await lt(n,e,e.uri,t,r,o);return}else if(ct.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,a;s.source?.input?.file&&(a=s.source.input.file);let c=a?ut.dirname(s.source.input.file):t.root,d=[await t.resolve(e.uri,c,t,s)].flat(),f=await Promise.all(d.map(i=>ut.isAbsolute(i)?i:Bn(i,c,t,s)));f.forEach(i=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:i,parent:a})});let h=await Promise.all(f.map(i=>lt(n,e,i,t,r,o)));e.children=h.flat().filter(i=>!!i)}async function lt(n,e,t,r,o,s){let a=e.node,{conditions:c,from:d}=e,f=c.map(S=>Zn(S.layer,S.media,S.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[f])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][f]=!0}if(d.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:a});return}if(r.skipDuplicates&&o.hashFiles[h]?.[f])return;let i=await Hn(n,h,t,r,s),u=i.root;return n.messages=n.messages.concat(i.messages),r.skipDuplicates&&(u.some(I=>I.type==="atrule"&&I.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][f]=!0)),dt(n,u,r,o,c,[...d,t],s)}function Jn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}ft.exports=dt});var yt=m((gs,mt)=>{"use strict";l();var ht=require("path"),Qn=Ze(),Wn=Je(),Xn=We(),Vn=ar(),Yn=pt(),eo=Ue();function vt(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:eo,load:Vn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=ht.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>ht.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let a=await Yn(t,e,n,s,[],[],o);Wn(a),Qn(a,r),Xn(a,e)}}}vt.postcss=!0;mt.exports=vt});var to={};kt(to,{default:()=>ro});module.exports=Et(to);l();var Me=_e(require("path"),1),ro=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=require.resolve("tailwindcss/package.json"),r=Me.default.dirname(t);e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:[yt()({resolve:o=>o==="tailwindcss"?Me.default.join(r,"index.css"):o}),["@tailwindcss/postcss",{}]]}}),e.resolve.alias.set("tailwindcss",r)}});
9
+ ${d.node.params} specified in ${d.node.source.input.file}`)}return c.forEach(u=>{u.type==="charset"?i(u):u.type==="import"?u.children?u.children.forEach((S,I)=>{S.type==="import"?f.push(S):S.type==="charset"?i(S):h.push(S),I===0&&(S.parent=u)}):f.push(u):u.type==="nodes"&&h.push(u)}),d?[d,...f.concat(h)]:f.concat(h)}async function Kn(n,e,t,r,o){if(ct.isValid(e.uri)){e.children=await lt(n,e,e.uri,t,r,o);return}else if(ct.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,a;s.source?.input?.file&&(a=s.source.input.file);let c=a?ut.dirname(s.source.input.file):t.root,d=[await t.resolve(e.uri,c,t,s)].flat(),f=await Promise.all(d.map(i=>ut.isAbsolute(i)?i:Bn(i,c,t,s)));f.forEach(i=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:i,parent:a})});let h=await Promise.all(f.map(i=>lt(n,e,i,t,r,o)));e.children=h.flat().filter(i=>!!i)}async function lt(n,e,t,r,o,s){let a=e.node,{conditions:c,from:d}=e,f=c.map(S=>Zn(S.layer,S.media,S.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[f])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][f]=!0}if(d.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:a});return}if(r.skipDuplicates&&o.hashFiles[h]?.[f])return;let i=await Hn(n,h,t,r,s),u=i.root;return n.messages=n.messages.concat(i.messages),r.skipDuplicates&&(u.some(I=>I.type==="atrule"&&I.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][f]=!0)),dt(n,u,r,o,c,[...d,t],s)}function Jn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}ft.exports=dt});var yt=m((gs,mt)=>{"use strict";l();var ht=require("path"),Qn=Ze(),Wn=Je(),Xn=We(),Vn=ar(),Yn=pt(),eo=Ue();function vt(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:eo,load:Vn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=ht.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>ht.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let a=await Yn(t,e,n,s,[],[],o);Wn(a),Qn(a,r),Xn(a,e)}}}vt.postcss=!0;mt.exports=vt});var to={};kt(to,{default:()=>ro});module.exports=Et(to);l();var Me=_e(require("path"),1),ro=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=require.resolve("tailwindcss/package.json"),r=Me.default.dirname(t);e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:[yt()({resolve:o=>(console.log("postcss-import",n.resolve,o),o==="tailwindcss"?Me.default.join(r,"index.css"):o)}),["@tailwindcss/postcss",{}]]}}),e.resolve.alias.set("tailwindcss",r)}});
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- var N=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var yt=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var l=yt(()=>{"use strict"});var we=m((Qn,Ue)=>{"use strict";l();Ue.exports=function(e,t,r){let o=[];if(typeof e<"u"){let s="layer";e&&(s=`layer(${e})`),o.push(s)}return typeof r<"u"&&o.push(`supports(${r})`),typeof t<"u"&&o.push(t),o.join(" ")}});var ze=m((Xn,Le)=>{"use strict";l();var Re=we();Le.exports=function(e,t){t.reverse();let r=t.pop(),o=`${e} ${Re(r.layer,r.media,r.supports)}`;for(let s of t)o=`'data:text/css;base64,${Buffer.from(`@import ${o}`).toString("base64")}' ${Re(s.layer,s.media,s.supports)}`;return o}});var He=m((Yn,Ge)=>{"use strict";l();var gt=ze();Ge.exports=function(e,t){e.forEach(r=>{if(r.type==="charset"||r.type==="warning"||!r.conditions?.length)return;if(r.type==="import"){r.node.params=gt(r.fullUri,r.conditions);return}let{nodes:o}=r,{parent:s}=o[0],a=[];for(let f of r.conditions){if(typeof f.media<"u"){let h=t({name:"media",params:f.media,source:s.source});a.push(h)}if(typeof f.supports<"u"){let h=t({name:"supports",params:`(${f.supports})`,source:s.source});a.push(h)}if(typeof f.layer<"u"){let h=t({name:"layer",params:f.layer,source:s.source});a.push(h)}}let c=a.shift(),d=a.reduce((f,h)=>(f.append(h),h),c);s.insertBefore(o[0],c),o.forEach(f=>{f.parent=void 0}),o[0].raws.before=o[0].raws.before||`
1
+ var N=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var yt=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var l=yt(()=>{"use strict"});var we=m((Qn,Ue)=>{"use strict";l();Ue.exports=function(e,t,r){let o=[];if(typeof e<"u"){let s="layer";e&&(s=`layer(${e})`),o.push(s)}return typeof r<"u"&&o.push(`supports(${r})`),typeof t<"u"&&o.push(t),o.join(" ")}});var ze=m((Xn,Le)=>{"use strict";l();var Re=we();Le.exports=function(e,t){t.reverse();let r=t.pop(),o=`${e} ${Re(r.layer,r.media,r.supports)}`;for(let s of t)o=`'data:text/css;base64,${Buffer.from(`@import ${o}`).toString("base64")}' ${Re(s.layer,s.media,s.supports)}`;return o}});var He=m((Yn,Ge)=>{"use strict";l();var gt=ze();Ge.exports=function(e,t){e.forEach(r=>{if(r.type==="charset"||r.type==="warning"||!r.conditions?.length)return;if(r.type==="import"){r.node.params=gt(r.fullUri,r.conditions);return}let{nodes:o}=r,{parent:s}=o[0],a=[];for(let p of r.conditions){if(typeof p.media<"u"){let h=t({name:"media",params:p.media,source:s.source});a.push(h)}if(typeof p.supports<"u"){let h=t({name:"supports",params:`(${p.supports})`,source:s.source});a.push(h)}if(typeof p.layer<"u"){let h=t({name:"layer",params:p.layer,source:s.source});a.push(h)}}let c=a.shift(),d=a.reduce((p,h)=>(p.append(h),h),c);s.insertBefore(o[0],c),o.forEach(p=>{p.parent=void 0}),o[0].raws.before=o[0].raws.before||`
2
2
  `,d.append(o),r.type="nodes",r.nodes=[c],delete r.node})}});var Ze=m((ro,Be)=>{"use strict";l();Be.exports=function(e){e.forEach((t,r)=>{if(r!==0)if(t.parent){let{before:o}=t.parent.node.raws;t.type==="nodes"?t.nodes[0].raws.before=o:t.node.raws.before=o}else t.type==="nodes"&&(t.nodes[0].raws.before=t.nodes[0].raws.before||`
3
- `)})}});var Je=m((no,Ke)=>{"use strict";l();Ke.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var Ve=m((so,Xe)=>{"use strict";l();var Qe=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(a,c){o.push(function(d,f){if(d)c(d);else if(t.multiArgs){for(var h=new Array(arguments.length-1),i=1;i<arguments.length;i++)h[i-1]=arguments[i];a(h)}else a(f)}),n.apply(r,o)})}},We=Xe.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var a=function(c){return typeof c=="string"?s===c:c.test(s)};return t.include?t.include.some(a):!t.exclude.some(a)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):Qe(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,a){var c=n[a];return s[a]=typeof c=="function"&&r(a)?Qe(c,e,t):c,s},o)};We.all=We});var er=m((io,te)=>{"use strict";l();var fe=N("fs"),_t=N("path"),Ye=Ve(),wt=Ye(fe.stat),At=Ye(fe.readFile),Ae=_t.resolve,B=Object.create(null);function re(n,e){return Buffer.isEncoding(e)?n.toString(e):n}te.exports=function(n,e){return n=Ae(n),wt(n).then(function(t){var r=B[n];return r&&r.mtime.getTime()===t.mtime.getTime()?re(r.content,e):At(n).then(function(o){return B[n]={mtime:t.mtime,content:o},re(o,e)})}).catch(function(t){return B[n]=null,Promise.reject(t)})};te.exports.sync=function(n,e){n=Ae(n);try{var t=fe.statSync(n),r=B[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return re(r.content,e);var o=fe.readFileSync(n);return B[n]={mtime:t.mtime,content:o},re(o,e)}catch(s){throw B[n]=null,s}};te.exports.get=function(n,e){return n=Ae(n),B[n]?re(B[n].content,e):null};te.exports.clear=function(){B=Object.create(null)}});var Ce=m((co,rr)=>{"use strict";l();var Ct=/^data:text\/css(?:;(base64|plain))?,/i,bt=/^data:text\/css;base64,/i,kt=/^data:text\/css;plain,/i;function Et(n){return Ct.test(n)}function xt(n){return bt.test(n)?Buffer.from(n.slice(21),"base64").toString():kt.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}rr.exports={isValid:Et,contents:xt}});var or=m((fo,nr)=>{"use strict";l();var It=er(),tr=Ce();nr.exports=function(e){return tr.isValid(e)?tr.contents(e):It(e,"utf-8")}});var ar=m((ho,sr)=>{"use strict";l();var be=40,ke=41,pe=39,Ee=34,xe=92,Y=47,Ie=44,Fe=58,he=42,Ft=117,qt=85,St=43,Pt=/^[a-f0-9?-]+$/i;sr.exports=function(n){for(var e=[],t=n,r,o,s,a,c,d,f,h,i=0,u=t.charCodeAt(i),S=t.length,I=[{nodes:e}],T=0,C,j="",U="",P="";i<S;)if(u<=32){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);a=t.slice(i,r),s=e[e.length-1],u===ke&&T?P=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):u===Ie||u===Fe||u===Y&&t.charCodeAt(r+1)!==he&&(!C||C&&C.type==="function"&&C.value!=="calc")?U=a:e.push({type:"space",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}else if(u===pe||u===Ee){r=i,o=u===pe?"'":'"',a={type:"string",sourceIndex:i,quote:o};do if(c=!1,r=t.indexOf(o,r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=o,r=t.length-1,a.unclosed=!0;while(c);a.value=t.slice(i+1,r),a.sourceEndIndex=a.unclosed?r:r+1,e.push(a),i=r+1,u=t.charCodeAt(i)}else if(u===Y&&t.charCodeAt(i+1)===he)r=t.indexOf("*/",i),a={type:"comment",sourceIndex:i,sourceEndIndex:r+2},r===-1&&(a.unclosed=!0,r=t.length,a.sourceEndIndex=r),a.value=t.slice(i+2,r),e.push(a),i=r+2,u=t.charCodeAt(i);else if((u===Y||u===he)&&C&&C.type==="function"&&C.value==="calc")a=t[i],e.push({type:"word",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a}),i+=1,u=t.charCodeAt(i);else if(u===Y||u===Ie||u===Fe)a=t[i],e.push({type:"div",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a,before:U,after:""}),U="",i+=1,u=t.charCodeAt(i);else if(be===u){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=i,a={type:"function",sourceIndex:i-j.length,value:j,before:t.slice(h+1,r)},i=r,j==="url"&&u!==pe&&u!==Ee){r-=1;do if(c=!1,r=t.indexOf(")",r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=")",r=t.length-1,a.unclosed=!0;while(c);f=r;do f-=1,u=t.charCodeAt(f);while(u<=32);h<f?(i!==f+1?a.nodes=[{type:"word",sourceIndex:i,sourceEndIndex:f+1,value:t.slice(i,f+1)}]:a.nodes=[],a.unclosed&&f+1!==r?(a.after="",a.nodes.push({type:"space",sourceIndex:f+1,sourceEndIndex:r,value:t.slice(f+1,r)})):(a.after=t.slice(f+1,r),a.sourceEndIndex=r)):(a.after="",a.nodes=[]),i=r+1,a.sourceEndIndex=a.unclosed?r:i,u=t.charCodeAt(i),e.push(a)}else T+=1,a.after="",a.sourceEndIndex=i+1,e.push(a),I.push(a),e=a.nodes=[],C=a;j=""}else if(ke===u&&T)i+=1,u=t.charCodeAt(i),C.after=P,C.sourceEndIndex+=P.length,P="",T-=1,I[I.length-1].sourceEndIndex=i,I.pop(),C=I[T],e=C.nodes;else{r=i;do u===xe&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<S&&!(u<=32||u===pe||u===Ee||u===Ie||u===Fe||u===Y||u===be||u===he&&C&&C.type==="function"&&C.value==="calc"||u===Y&&C.type==="function"&&C.value==="calc"||u===ke&&T));a=t.slice(i,r),be===u?j=a:(Ft===a.charCodeAt(0)||qt===a.charCodeAt(0))&&St===a.charCodeAt(1)&&Pt.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:i,sourceEndIndex:r,value:a}):e.push({type:"word",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}for(i=I.length-1;i;i-=1)I[i].unclosed=!0,I[i].sourceEndIndex=t.length;return I[0].nodes}});var ur=m((mo,ir)=>{"use strict";l();ir.exports=function n(e,t,r){var o,s,a,c;for(o=0,s=e.length;o<s;o+=1)a=e[o],r||(c=t(a,o,e)),c!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&n(a.nodes,t,r),r&&t(a,o,e)}});var fr=m((go,dr)=>{"use strict";l();function cr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=lr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function lr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=cr(n[r],e)+t;return t}return cr(n,e)}dr.exports=lr});var hr=m((wo,pr)=>{"use strict";l();var ve=45,me=43,qe=46,Ot=101,Dt=69;function Nt(n){var e=n.charCodeAt(0),t;if(e===me||e===ve){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===qe&&r>=48&&r<=57}return e===qe?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}pr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!Nt(n))return!1;for(r=n.charCodeAt(e),(r===me||r===ve)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===qe&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Ot||r===Dt)&&(o>=48&&o<=57||(o===me||o===ve)&&s>=48&&s<=57))for(e+=o===me||o===ve?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var gr=m((Co,yr)=>{"use strict";l();var $t=ar(),vr=ur(),mr=fr();function K(n){return this instanceof K?(this.nodes=$t(n),this):new K(n)}K.prototype.toString=function(){return Array.isArray(this.nodes)?mr(this.nodes):""};K.prototype.walk=function(n,e){return vr(this.nodes,n,e),this};K.unit=hr();K.walk=vr;K.stringify=mr;yr.exports=K});var Ar=m((ko,wr)=>{"use strict";l();var _r=gr(),{stringify:ne}=_r;wr.exports=function(e,t,r,o){let s=[],a=[];return t.each(c=>{let d;c.type==="atrule"&&(c.name==="import"?d=Mt(e,c,r,o):c.name==="charset"&&(d=Tt(e,c,r,o))),d?(a.length&&(s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),a=[]),s.push(d)):a.push(c)}),a.length&&s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),s};function Tt(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Mt(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=_r(e.params).nodes,a={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},c,d,f;for(let h=0;h<s.length;h++){let i=s[h];if(!(i.type==="space"||i.type==="comment")){if(i.type==="string"){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.value,a.fullUri=ne(i);continue}if(i.type==="function"&&/^url$/i.test(i.value)){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.nodes[0].value,a.fullUri=ne(i);continue}if(!a.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((i.type==="word"||i.type==="function")&&/^layer$/i.test(i.value)){if(typeof c<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof f<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});i.nodes?c=ne(i.nodes):c="";continue}if(i.type==="function"&&/^supports$/i.test(i.value)){if(typeof f<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});f=ne(i.nodes);continue}d=ne(s.slice(h));break}}return a.uri?((typeof d<"u"||typeof c<"u"||typeof f<"u")&&a.conditions.push({layer:c,media:d,supports:f}),a):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}});var br=m((xo,Cr)=>{"use strict";l();var jt=N("path"),ye;Cr.exports=function(e,t,r,o,s){let{plugins:a}=o,c=jt.extname(r),d=[];if(c===".sss"){if(!ye)try{ye=N("sugarss")}catch{}if(ye)return Se(s,t,r,a,[ye])}return e.opts.syntax?.parse&&d.push(e.opts.syntax.parse),e.opts.parser&&d.push(e.opts.parser),d.push(null),Se(s,t,r,a,d)};function Se(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(a=>{if(s++,s===o.length)throw a;return Se(n,e,t,r,o,s)})}});var Pe=m((Fo,kr)=>{"use strict";l();var Ut=N("os");kr.exports=Ut.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m((So,Er)=>{"use strict";l();Er.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var xr=m((Oo,oe)=>{"use strict";l();var Rt=process.platform==="win32",Lt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,De={};function zt(n){return Lt.exec(n).slice(1)}De.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=zt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Gt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Ne={};function Ht(n){return Gt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Ht(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Rt?oe.exports=De.parse:oe.exports=Ne.parse;oe.exports.posix=Ne.parse;oe.exports.win32=De.parse});var $e=m((No,Sr)=>{"use strict";l();var qr=N("path"),Ir=qr.parse||xr(),Fr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Ir(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Ir(s.dir);return o.reduce(function(a,c){return a.concat(t.map(function(d){return qr.resolve(r,c,d)}))},[])};Sr.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return Fr(e,o)},t);var s=Fr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((To,Pr)=>{"use strict";l();Pr.exports=function(n,e){return e||{}}});var Nr=m((jo,Dr)=>{"use strict";l();var Bt="Function.prototype.bind called on incompatible ",Zt=Object.prototype.toString,Kt=Math.max,Jt="[object Function]",Or=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},Qt=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},Wt=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Dr.exports=function(e){var t=this;if(typeof t!="function"||Zt.apply(t)!==Jt)throw new TypeError(Bt+t);for(var r=Qt(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,Or(r,arguments));return Object(h)===h?h:this}return t.apply(e,Or(r,arguments))},a=Kt(0,t.length-r.length),c=[],d=0;d<a;d++)c[d]="$"+d;if(o=Function("binder","return function ("+Wt(c,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var f=function(){};f.prototype=t.prototype,o.prototype=new f,f.prototype=null}return o}});var Tr=m((Ro,$r)=>{"use strict";l();var Xt=Nr();$r.exports=Function.prototype.bind||Xt});var jr=m((zo,Mr)=>{"use strict";l();var Vt=Function.prototype.call,Yt=Object.prototype.hasOwnProperty,en=Tr();Mr.exports=en.call(Vt,Yt)});var Ur=m((Ho,rn)=>{rn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var se=m((Bo,zr)=>{"use strict";l();var tn=jr();function nn(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),a=0;a<3;++a){var c=parseInt(t[a]||0,10),d=parseInt(s[a]||0,10);if(c!==d)return o==="<"?c<d:o===">="?c>=d:!1}return o===">="}function Rr(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!nn(n,t[r]))return!1;return!0}function on(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(Rr(t,e[r]))return!0;return!1}return Rr(t,e)}var Lr=Ur();zr.exports=function(e,t){return tn(Lr,e)&&on(t,Lr[e])}});var Br=m((Ko,Hr)=>{"use strict";l();var Q=N("fs"),sn=Pe(),q=N("path"),an=Oe(),un=$e(),cn=Te(),ln=se(),dn=process.platform!=="win32"&&Q.realpath&&typeof Q.realpath.native=="function"?Q.realpath.native:Q.realpath,Gr=sn(),fn=function(){return[q.join(Gr,".node_modules"),q.join(Gr,".node_libraries")]},pn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},hn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},vn=function(e,t){dn(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},ae=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},mn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var a=JSON.parse(s);r(null,a)}catch{r(null)}})},yn=function(e,t,r){for(var o=un(t,r,e),s=0;s<o.length;s++)o[s]=q.join(o[s],e);return o};Hr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var a=new TypeError("Path must be a string.");return process.nextTick(function(){o(a)})}s=cn(e,s);var c=s.isFile||pn,d=s.isDirectory||hn,f=s.readFile||Q.readFile,h=s.realpath||vn,i=s.readPackage||mn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var S=s.packageIterator,I=s.extensions||[".js"],T=s.includeCoreModules!==!1,C=s.basedir||q.dirname(an()),j=s.filename||C;s.paths=s.paths||fn();var U=q.resolve(C);ae(h,U,s,function(p,v){p?o(p):ue(v)});var P;function ue(p){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))P=q.resolve(p,e),(e==="."||e===".."||e.slice(-1)==="/")&&(P+="/"),/\/$/.test(e)&&P===p?F(P,s.package,X):z(P,s.package,X);else{if(T&&ln(e))return o(null,e);R(e,p,function(v,E,y){if(v)o(v);else{if(E)return ae(h,E,s,function(M,x){M?o(M):o(null,x,y)});var b=new Error("Cannot find module '"+e+"' from '"+j+"'");b.code="MODULE_NOT_FOUND",o(b)}})}}function X(p,v,E){p?o(p):v?o(null,v,E):F(P,function(y,b,M){if(y)o(y);else if(b)ae(h,b,s,function(k,$){k?o(k):o(null,$,M)});else{var x=new Error("Cannot find module '"+e+"' from '"+j+"'");x.code="MODULE_NOT_FOUND",o(x)}})}function z(p,v,E){var y=v,b=E;typeof y=="function"&&(b=y,y=void 0);var M=[""].concat(I);x(M,p,y);function x(k,$,G){if(k.length===0)return b(null,void 0,G);var J=$+k[0],L=G;L?O(null,L):w(q.dirname(J),O);function O(Z,V,H){if(L=V,Z)return b(Z);if(H&&L&&s.pathFilter){var le=q.relative(H,J),de=le.slice(0,le.length-k[0].length),ee=s.pathFilter(L,$,de);if(ee)return x([""].concat(I.slice()),q.resolve(H,ee),L)}c(J,ce)}function ce(Z,V){if(Z)return b(Z);if(V)return b(null,J,L);x(k.slice(1),$,L)}}}function w(p,v){if(p===""||p==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(p)||/[/\\]node_modules[/\\]*$/.test(p))return v(null);ae(h,p,s,function(E,y){if(E)return w(q.dirname(p),v);var b=q.join(y,"package.json");c(b,function(M,x){if(!x)return w(q.dirname(p),v);i(f,b,function(k,$){k&&v(k);var G=$;G&&s.packageFilter&&(G=s.packageFilter(G,b)),v(null,G,p)})})})}function F(p,v,E){var y=E,b=v;typeof b=="function"&&(y=b,b=s.package),ae(h,p,s,function(M,x){if(M)return y(M);var k=q.join(x,"package.json");c(k,function($,G){if($)return y($);if(!G)return z(q.join(p,"index"),b,y);i(f,k,function(J,L){if(J)return y(J);var O=L;if(O&&s.packageFilter&&(O=s.packageFilter(O,k)),O&&O.main){if(typeof O.main!="string"){var ce=new TypeError("package \u201C"+O.name+"\u201D `main` must be a string");return ce.code="INVALID_PACKAGE_MAIN",y(ce)}(O.main==="."||O.main==="./")&&(O.main="index"),z(q.resolve(p,O.main),O,function(Z,V,H){if(Z)return y(Z);if(V)return y(null,V,H);if(!H)return z(q.join(p,"index"),H,y);var le=q.resolve(p,H.main);F(le,H,function(de,ee,je){if(de)return y(de);if(ee)return y(null,ee,je);z(q.join(p,"index"),je,y)})});return}z(q.join(p,"/index"),O,y)})})})}function A(p,v){if(v.length===0)return p(null,void 0);var E=v[0];d(q.dirname(E),y);function y(x,k){if(x)return p(x);if(!k)return A(p,v.slice(1));z(E,s.package,b)}function b(x,k,$){if(x)return p(x);if(k)return p(null,k,$);F(E,s.package,M)}function M(x,k,$){if(x)return p(x);if(k)return p(null,k,$);A(p,v.slice(1))}}function R(p,v,E){var y=function(){return yn(p,v,s)};A(E,S?S(p,v,y,s):y())}}});var Zr=m((Qo,gn)=>{gn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Wr=m((Wo,Qr)=>{"use strict";l();var _n=se(),Kr=Zr(),Jr={};for(ge in Kr)Object.prototype.hasOwnProperty.call(Kr,ge)&&(Jr[ge]=_n(ge));var ge;Qr.exports=Jr});var Vr=m((Vo,Xr)=>{"use strict";l();var wn=se();Xr.exports=function(e){return wn(e)}});var rt=m((es,et)=>{"use strict";l();var An=se(),W=N("fs"),D=N("path"),Cn=Pe(),bn=Oe(),kn=$e(),En=Te(),xn=process.platform!=="win32"&&W.realpathSync&&typeof W.realpathSync.native=="function"?W.realpathSync.native:W.realpathSync,Yr=Cn(),In=function(){return[D.join(Yr,".node_modules"),D.join(Yr,".node_libraries")]},Fn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},qn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},Sn=function(e){try{return xn(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},ie=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},Pn=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},On=function(e,t,r){for(var o=kn(t,r,e),s=0;s<o.length;s++)o[s]=D.join(o[s],e);return o};et.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=En(e,t),o=r.isFile||Fn,s=r.readFileSync||W.readFileSync,a=r.isDirectory||qn,c=r.realpathSync||Sn,d=r.readPackageSync||Pn;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=r.packageIterator,h=r.extensions||[".js"],i=r.includeCoreModules!==!1,u=r.basedir||D.dirname(bn()),S=r.filename||u;r.paths=r.paths||In();var I=ie(c,D.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var T=D.resolve(I,e);(e==="."||e===".."||e.slice(-1)==="/")&&(T+="/");var C=P(T)||X(T);if(C)return ie(c,C,r)}else{if(i&&An(e))return e;var j=z(e,I);if(j)return ie(c,j,r)}var U=new Error("Cannot find module '"+e+"' from '"+S+"'");throw U.code="MODULE_NOT_FOUND",U;function P(w){var F=ue(D.dirname(w));if(F&&F.dir&&F.pkg&&r.pathFilter){var A=D.relative(F.dir,w),R=r.pathFilter(F.pkg,w,A);R&&(w=D.resolve(F.dir,R))}if(o(w))return w;for(var p=0;p<h.length;p++){var v=w+h[p];if(o(v))return v}}function ue(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var F=D.join(ie(c,w,r),"package.json");if(!o(F))return ue(D.dirname(w));var A=d(s,F);return A&&r.packageFilter&&(A=r.packageFilter(A,w)),{pkg:A,dir:w}}}function X(w){var F=D.join(ie(c,w,r),"/package.json");if(o(F)){try{var A=d(s,F)}catch{}if(A&&r.packageFilter&&(A=r.packageFilter(A,w)),A&&A.main){if(typeof A.main!="string"){var R=new TypeError("package \u201C"+A.name+"\u201D `main` must be a string");throw R.code="INVALID_PACKAGE_MAIN",R}(A.main==="."||A.main==="./")&&(A.main="index");try{var p=P(D.resolve(w,A.main));if(p)return p;var v=X(D.resolve(w,A.main));if(v)return v}catch{}}}return P(D.join(w,"/index"))}function z(w,F){for(var A=function(){return On(w,F,r)},R=f?f(w,F,A,r):A(),p=0;p<R.length;p++){var v=R[p];if(a(D.dirname(v))){var E=P(v);if(E)return E;var y=X(v);if(y)return y}}}}});var nt=m((ts,tt)=>{"use strict";l();var _e=Br();_e.core=Wr();_e.isCore=Vr();_e.sync=rt();tt.exports=_e});var Me=m((os,st)=>{"use strict";l();var Dn=nt(),Nn=["web_modules","node_modules"];function ot(n,e){return new Promise((t,r)=>{Dn(n,e,(o,s)=>o?r(o):t(s))})}st.exports=function(e,t,r,o){let s=r.path,a={basedir:t,moduleDirectory:Nn.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(d){return d.style?d.main=d.style:(!d.main||!/\.css$/.test(d.main))&&(d.main="index.css"),d},preserveSymlinks:!1};return ot(`./${e}`,a).catch(()=>ot(e,a)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
3
+ `)})}});var Je=m((no,Ke)=>{"use strict";l();Ke.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var Ve=m((so,Xe)=>{"use strict";l();var Qe=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(a,c){o.push(function(d,p){if(d)c(d);else if(t.multiArgs){for(var h=new Array(arguments.length-1),i=1;i<arguments.length;i++)h[i-1]=arguments[i];a(h)}else a(p)}),n.apply(r,o)})}},We=Xe.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var a=function(c){return typeof c=="string"?s===c:c.test(s)};return t.include?t.include.some(a):!t.exclude.some(a)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):Qe(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,a){var c=n[a];return s[a]=typeof c=="function"&&r(a)?Qe(c,e,t):c,s},o)};We.all=We});var er=m((io,te)=>{"use strict";l();var pe=N("fs"),_t=N("path"),Ye=Ve(),wt=Ye(pe.stat),At=Ye(pe.readFile),Ae=_t.resolve,B=Object.create(null);function re(n,e){return Buffer.isEncoding(e)?n.toString(e):n}te.exports=function(n,e){return n=Ae(n),wt(n).then(function(t){var r=B[n];return r&&r.mtime.getTime()===t.mtime.getTime()?re(r.content,e):At(n).then(function(o){return B[n]={mtime:t.mtime,content:o},re(o,e)})}).catch(function(t){return B[n]=null,Promise.reject(t)})};te.exports.sync=function(n,e){n=Ae(n);try{var t=pe.statSync(n),r=B[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return re(r.content,e);var o=pe.readFileSync(n);return B[n]={mtime:t.mtime,content:o},re(o,e)}catch(s){throw B[n]=null,s}};te.exports.get=function(n,e){return n=Ae(n),B[n]?re(B[n].content,e):null};te.exports.clear=function(){B=Object.create(null)}});var Ce=m((co,rr)=>{"use strict";l();var Ct=/^data:text\/css(?:;(base64|plain))?,/i,bt=/^data:text\/css;base64,/i,kt=/^data:text\/css;plain,/i;function Et(n){return Ct.test(n)}function xt(n){return bt.test(n)?Buffer.from(n.slice(21),"base64").toString():kt.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}rr.exports={isValid:Et,contents:xt}});var or=m((po,nr)=>{"use strict";l();var It=er(),tr=Ce();nr.exports=function(e){return tr.isValid(e)?tr.contents(e):It(e,"utf-8")}});var ar=m((ho,sr)=>{"use strict";l();var be=40,ke=41,fe=39,Ee=34,xe=92,Y=47,Ie=44,Fe=58,he=42,Ft=117,qt=85,St=43,Pt=/^[a-f0-9?-]+$/i;sr.exports=function(n){for(var e=[],t=n,r,o,s,a,c,d,p,h,i=0,u=t.charCodeAt(i),S=t.length,I=[{nodes:e}],T=0,C,j="",U="",P="";i<S;)if(u<=32){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);a=t.slice(i,r),s=e[e.length-1],u===ke&&T?P=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):u===Ie||u===Fe||u===Y&&t.charCodeAt(r+1)!==he&&(!C||C&&C.type==="function"&&C.value!=="calc")?U=a:e.push({type:"space",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}else if(u===fe||u===Ee){r=i,o=u===fe?"'":'"',a={type:"string",sourceIndex:i,quote:o};do if(c=!1,r=t.indexOf(o,r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=o,r=t.length-1,a.unclosed=!0;while(c);a.value=t.slice(i+1,r),a.sourceEndIndex=a.unclosed?r:r+1,e.push(a),i=r+1,u=t.charCodeAt(i)}else if(u===Y&&t.charCodeAt(i+1)===he)r=t.indexOf("*/",i),a={type:"comment",sourceIndex:i,sourceEndIndex:r+2},r===-1&&(a.unclosed=!0,r=t.length,a.sourceEndIndex=r),a.value=t.slice(i+2,r),e.push(a),i=r+2,u=t.charCodeAt(i);else if((u===Y||u===he)&&C&&C.type==="function"&&C.value==="calc")a=t[i],e.push({type:"word",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a}),i+=1,u=t.charCodeAt(i);else if(u===Y||u===Ie||u===Fe)a=t[i],e.push({type:"div",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a,before:U,after:""}),U="",i+=1,u=t.charCodeAt(i);else if(be===u){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=i,a={type:"function",sourceIndex:i-j.length,value:j,before:t.slice(h+1,r)},i=r,j==="url"&&u!==fe&&u!==Ee){r-=1;do if(c=!1,r=t.indexOf(")",r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=")",r=t.length-1,a.unclosed=!0;while(c);p=r;do p-=1,u=t.charCodeAt(p);while(u<=32);h<p?(i!==p+1?a.nodes=[{type:"word",sourceIndex:i,sourceEndIndex:p+1,value:t.slice(i,p+1)}]:a.nodes=[],a.unclosed&&p+1!==r?(a.after="",a.nodes.push({type:"space",sourceIndex:p+1,sourceEndIndex:r,value:t.slice(p+1,r)})):(a.after=t.slice(p+1,r),a.sourceEndIndex=r)):(a.after="",a.nodes=[]),i=r+1,a.sourceEndIndex=a.unclosed?r:i,u=t.charCodeAt(i),e.push(a)}else T+=1,a.after="",a.sourceEndIndex=i+1,e.push(a),I.push(a),e=a.nodes=[],C=a;j=""}else if(ke===u&&T)i+=1,u=t.charCodeAt(i),C.after=P,C.sourceEndIndex+=P.length,P="",T-=1,I[I.length-1].sourceEndIndex=i,I.pop(),C=I[T],e=C.nodes;else{r=i;do u===xe&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<S&&!(u<=32||u===fe||u===Ee||u===Ie||u===Fe||u===Y||u===be||u===he&&C&&C.type==="function"&&C.value==="calc"||u===Y&&C.type==="function"&&C.value==="calc"||u===ke&&T));a=t.slice(i,r),be===u?j=a:(Ft===a.charCodeAt(0)||qt===a.charCodeAt(0))&&St===a.charCodeAt(1)&&Pt.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:i,sourceEndIndex:r,value:a}):e.push({type:"word",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}for(i=I.length-1;i;i-=1)I[i].unclosed=!0,I[i].sourceEndIndex=t.length;return I[0].nodes}});var ur=m((mo,ir)=>{"use strict";l();ir.exports=function n(e,t,r){var o,s,a,c;for(o=0,s=e.length;o<s;o+=1)a=e[o],r||(c=t(a,o,e)),c!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&n(a.nodes,t,r),r&&t(a,o,e)}});var pr=m((go,dr)=>{"use strict";l();function cr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=lr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function lr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=cr(n[r],e)+t;return t}return cr(n,e)}dr.exports=lr});var hr=m((wo,fr)=>{"use strict";l();var ve=45,me=43,qe=46,Ot=101,Dt=69;function Nt(n){var e=n.charCodeAt(0),t;if(e===me||e===ve){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===qe&&r>=48&&r<=57}return e===qe?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}fr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!Nt(n))return!1;for(r=n.charCodeAt(e),(r===me||r===ve)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===qe&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Ot||r===Dt)&&(o>=48&&o<=57||(o===me||o===ve)&&s>=48&&s<=57))for(e+=o===me||o===ve?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var gr=m((Co,yr)=>{"use strict";l();var $t=ar(),vr=ur(),mr=pr();function K(n){return this instanceof K?(this.nodes=$t(n),this):new K(n)}K.prototype.toString=function(){return Array.isArray(this.nodes)?mr(this.nodes):""};K.prototype.walk=function(n,e){return vr(this.nodes,n,e),this};K.unit=hr();K.walk=vr;K.stringify=mr;yr.exports=K});var Ar=m((ko,wr)=>{"use strict";l();var _r=gr(),{stringify:ne}=_r;wr.exports=function(e,t,r,o){let s=[],a=[];return t.each(c=>{let d;c.type==="atrule"&&(c.name==="import"?d=Mt(e,c,r,o):c.name==="charset"&&(d=Tt(e,c,r,o))),d?(a.length&&(s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),a=[]),s.push(d)):a.push(c)}),a.length&&s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),s};function Tt(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Mt(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=_r(e.params).nodes,a={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},c,d,p;for(let h=0;h<s.length;h++){let i=s[h];if(!(i.type==="space"||i.type==="comment")){if(i.type==="string"){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.value,a.fullUri=ne(i);continue}if(i.type==="function"&&/^url$/i.test(i.value)){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.nodes[0].value,a.fullUri=ne(i);continue}if(!a.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((i.type==="word"||i.type==="function")&&/^layer$/i.test(i.value)){if(typeof c<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof p<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});i.nodes?c=ne(i.nodes):c="";continue}if(i.type==="function"&&/^supports$/i.test(i.value)){if(typeof p<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});p=ne(i.nodes);continue}d=ne(s.slice(h));break}}return a.uri?((typeof d<"u"||typeof c<"u"||typeof p<"u")&&a.conditions.push({layer:c,media:d,supports:p}),a):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}});var br=m((xo,Cr)=>{"use strict";l();var jt=N("path"),ye;Cr.exports=function(e,t,r,o,s){let{plugins:a}=o,c=jt.extname(r),d=[];if(c===".sss"){if(!ye)try{ye=N("sugarss")}catch{}if(ye)return Se(s,t,r,a,[ye])}return e.opts.syntax?.parse&&d.push(e.opts.syntax.parse),e.opts.parser&&d.push(e.opts.parser),d.push(null),Se(s,t,r,a,d)};function Se(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(a=>{if(s++,s===o.length)throw a;return Se(n,e,t,r,o,s)})}});var Pe=m((Fo,kr)=>{"use strict";l();var Ut=N("os");kr.exports=Ut.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m((So,Er)=>{"use strict";l();Er.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var xr=m((Oo,oe)=>{"use strict";l();var Rt=process.platform==="win32",Lt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,De={};function zt(n){return Lt.exec(n).slice(1)}De.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=zt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Gt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Ne={};function Ht(n){return Gt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Ht(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Rt?oe.exports=De.parse:oe.exports=Ne.parse;oe.exports.posix=Ne.parse;oe.exports.win32=De.parse});var $e=m((No,Sr)=>{"use strict";l();var qr=N("path"),Ir=qr.parse||xr(),Fr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Ir(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Ir(s.dir);return o.reduce(function(a,c){return a.concat(t.map(function(d){return qr.resolve(r,c,d)}))},[])};Sr.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return Fr(e,o)},t);var s=Fr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((To,Pr)=>{"use strict";l();Pr.exports=function(n,e){return e||{}}});var Nr=m((jo,Dr)=>{"use strict";l();var Bt="Function.prototype.bind called on incompatible ",Zt=Object.prototype.toString,Kt=Math.max,Jt="[object Function]",Or=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},Qt=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},Wt=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Dr.exports=function(e){var t=this;if(typeof t!="function"||Zt.apply(t)!==Jt)throw new TypeError(Bt+t);for(var r=Qt(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,Or(r,arguments));return Object(h)===h?h:this}return t.apply(e,Or(r,arguments))},a=Kt(0,t.length-r.length),c=[],d=0;d<a;d++)c[d]="$"+d;if(o=Function("binder","return function ("+Wt(c,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,o.prototype=new p,p.prototype=null}return o}});var Tr=m((Ro,$r)=>{"use strict";l();var Xt=Nr();$r.exports=Function.prototype.bind||Xt});var jr=m((zo,Mr)=>{"use strict";l();var Vt=Function.prototype.call,Yt=Object.prototype.hasOwnProperty,en=Tr();Mr.exports=en.call(Vt,Yt)});var Ur=m((Ho,rn)=>{rn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var se=m((Bo,zr)=>{"use strict";l();var tn=jr();function nn(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),a=0;a<3;++a){var c=parseInt(t[a]||0,10),d=parseInt(s[a]||0,10);if(c!==d)return o==="<"?c<d:o===">="?c>=d:!1}return o===">="}function Rr(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!nn(n,t[r]))return!1;return!0}function on(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(Rr(t,e[r]))return!0;return!1}return Rr(t,e)}var Lr=Ur();zr.exports=function(e,t){return tn(Lr,e)&&on(t,Lr[e])}});var Br=m((Ko,Hr)=>{"use strict";l();var Q=N("fs"),sn=Pe(),q=N("path"),an=Oe(),un=$e(),cn=Te(),ln=se(),dn=process.platform!=="win32"&&Q.realpath&&typeof Q.realpath.native=="function"?Q.realpath.native:Q.realpath,Gr=sn(),pn=function(){return[q.join(Gr,".node_modules"),q.join(Gr,".node_libraries")]},fn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},hn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},vn=function(e,t){dn(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},ae=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},mn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var a=JSON.parse(s);r(null,a)}catch{r(null)}})},yn=function(e,t,r){for(var o=un(t,r,e),s=0;s<o.length;s++)o[s]=q.join(o[s],e);return o};Hr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var a=new TypeError("Path must be a string.");return process.nextTick(function(){o(a)})}s=cn(e,s);var c=s.isFile||fn,d=s.isDirectory||hn,p=s.readFile||Q.readFile,h=s.realpath||vn,i=s.readPackage||mn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var S=s.packageIterator,I=s.extensions||[".js"],T=s.includeCoreModules!==!1,C=s.basedir||q.dirname(an()),j=s.filename||C;s.paths=s.paths||pn();var U=q.resolve(C);ae(h,U,s,function(f,v){f?o(f):ue(v)});var P;function ue(f){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))P=q.resolve(f,e),(e==="."||e===".."||e.slice(-1)==="/")&&(P+="/"),/\/$/.test(e)&&P===f?F(P,s.package,X):z(P,s.package,X);else{if(T&&ln(e))return o(null,e);R(e,f,function(v,E,y){if(v)o(v);else{if(E)return ae(h,E,s,function(M,x){M?o(M):o(null,x,y)});var b=new Error("Cannot find module '"+e+"' from '"+j+"'");b.code="MODULE_NOT_FOUND",o(b)}})}}function X(f,v,E){f?o(f):v?o(null,v,E):F(P,function(y,b,M){if(y)o(y);else if(b)ae(h,b,s,function(k,$){k?o(k):o(null,$,M)});else{var x=new Error("Cannot find module '"+e+"' from '"+j+"'");x.code="MODULE_NOT_FOUND",o(x)}})}function z(f,v,E){var y=v,b=E;typeof y=="function"&&(b=y,y=void 0);var M=[""].concat(I);x(M,f,y);function x(k,$,G){if(k.length===0)return b(null,void 0,G);var J=$+k[0],L=G;L?O(null,L):w(q.dirname(J),O);function O(Z,V,H){if(L=V,Z)return b(Z);if(H&&L&&s.pathFilter){var le=q.relative(H,J),de=le.slice(0,le.length-k[0].length),ee=s.pathFilter(L,$,de);if(ee)return x([""].concat(I.slice()),q.resolve(H,ee),L)}c(J,ce)}function ce(Z,V){if(Z)return b(Z);if(V)return b(null,J,L);x(k.slice(1),$,L)}}}function w(f,v){if(f===""||f==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(f)||/[/\\]node_modules[/\\]*$/.test(f))return v(null);ae(h,f,s,function(E,y){if(E)return w(q.dirname(f),v);var b=q.join(y,"package.json");c(b,function(M,x){if(!x)return w(q.dirname(f),v);i(p,b,function(k,$){k&&v(k);var G=$;G&&s.packageFilter&&(G=s.packageFilter(G,b)),v(null,G,f)})})})}function F(f,v,E){var y=E,b=v;typeof b=="function"&&(y=b,b=s.package),ae(h,f,s,function(M,x){if(M)return y(M);var k=q.join(x,"package.json");c(k,function($,G){if($)return y($);if(!G)return z(q.join(f,"index"),b,y);i(p,k,function(J,L){if(J)return y(J);var O=L;if(O&&s.packageFilter&&(O=s.packageFilter(O,k)),O&&O.main){if(typeof O.main!="string"){var ce=new TypeError("package \u201C"+O.name+"\u201D `main` must be a string");return ce.code="INVALID_PACKAGE_MAIN",y(ce)}(O.main==="."||O.main==="./")&&(O.main="index"),z(q.resolve(f,O.main),O,function(Z,V,H){if(Z)return y(Z);if(V)return y(null,V,H);if(!H)return z(q.join(f,"index"),H,y);var le=q.resolve(f,H.main);F(le,H,function(de,ee,je){if(de)return y(de);if(ee)return y(null,ee,je);z(q.join(f,"index"),je,y)})});return}z(q.join(f,"/index"),O,y)})})})}function A(f,v){if(v.length===0)return f(null,void 0);var E=v[0];d(q.dirname(E),y);function y(x,k){if(x)return f(x);if(!k)return A(f,v.slice(1));z(E,s.package,b)}function b(x,k,$){if(x)return f(x);if(k)return f(null,k,$);F(E,s.package,M)}function M(x,k,$){if(x)return f(x);if(k)return f(null,k,$);A(f,v.slice(1))}}function R(f,v,E){var y=function(){return yn(f,v,s)};A(E,S?S(f,v,y,s):y())}}});var Zr=m((Qo,gn)=>{gn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Wr=m((Wo,Qr)=>{"use strict";l();var _n=se(),Kr=Zr(),Jr={};for(ge in Kr)Object.prototype.hasOwnProperty.call(Kr,ge)&&(Jr[ge]=_n(ge));var ge;Qr.exports=Jr});var Vr=m((Vo,Xr)=>{"use strict";l();var wn=se();Xr.exports=function(e){return wn(e)}});var rt=m((es,et)=>{"use strict";l();var An=se(),W=N("fs"),D=N("path"),Cn=Pe(),bn=Oe(),kn=$e(),En=Te(),xn=process.platform!=="win32"&&W.realpathSync&&typeof W.realpathSync.native=="function"?W.realpathSync.native:W.realpathSync,Yr=Cn(),In=function(){return[D.join(Yr,".node_modules"),D.join(Yr,".node_libraries")]},Fn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},qn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},Sn=function(e){try{return xn(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},ie=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},Pn=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},On=function(e,t,r){for(var o=kn(t,r,e),s=0;s<o.length;s++)o[s]=D.join(o[s],e);return o};et.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=En(e,t),o=r.isFile||Fn,s=r.readFileSync||W.readFileSync,a=r.isDirectory||qn,c=r.realpathSync||Sn,d=r.readPackageSync||Pn;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=r.packageIterator,h=r.extensions||[".js"],i=r.includeCoreModules!==!1,u=r.basedir||D.dirname(bn()),S=r.filename||u;r.paths=r.paths||In();var I=ie(c,D.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var T=D.resolve(I,e);(e==="."||e===".."||e.slice(-1)==="/")&&(T+="/");var C=P(T)||X(T);if(C)return ie(c,C,r)}else{if(i&&An(e))return e;var j=z(e,I);if(j)return ie(c,j,r)}var U=new Error("Cannot find module '"+e+"' from '"+S+"'");throw U.code="MODULE_NOT_FOUND",U;function P(w){var F=ue(D.dirname(w));if(F&&F.dir&&F.pkg&&r.pathFilter){var A=D.relative(F.dir,w),R=r.pathFilter(F.pkg,w,A);R&&(w=D.resolve(F.dir,R))}if(o(w))return w;for(var f=0;f<h.length;f++){var v=w+h[f];if(o(v))return v}}function ue(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var F=D.join(ie(c,w,r),"package.json");if(!o(F))return ue(D.dirname(w));var A=d(s,F);return A&&r.packageFilter&&(A=r.packageFilter(A,w)),{pkg:A,dir:w}}}function X(w){var F=D.join(ie(c,w,r),"/package.json");if(o(F)){try{var A=d(s,F)}catch{}if(A&&r.packageFilter&&(A=r.packageFilter(A,w)),A&&A.main){if(typeof A.main!="string"){var R=new TypeError("package \u201C"+A.name+"\u201D `main` must be a string");throw R.code="INVALID_PACKAGE_MAIN",R}(A.main==="."||A.main==="./")&&(A.main="index");try{var f=P(D.resolve(w,A.main));if(f)return f;var v=X(D.resolve(w,A.main));if(v)return v}catch{}}}return P(D.join(w,"/index"))}function z(w,F){for(var A=function(){return On(w,F,r)},R=p?p(w,F,A,r):A(),f=0;f<R.length;f++){var v=R[f];if(a(D.dirname(v))){var E=P(v);if(E)return E;var y=X(v);if(y)return y}}}}});var nt=m((ts,tt)=>{"use strict";l();var _e=Br();_e.core=Wr();_e.isCore=Vr();_e.sync=rt();tt.exports=_e});var Me=m((os,st)=>{"use strict";l();var Dn=nt(),Nn=["web_modules","node_modules"];function ot(n,e){return new Promise((t,r)=>{Dn(n,e,(o,s)=>o?r(o):t(s))})}st.exports=function(e,t,r,o){let s=r.path,a={basedir:t,moduleDirectory:Nn.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(d){return d.style?d.main=d.style:(!d.main||!/\.css$/.test(d.main))&&(d.main="index.css"),d},preserveSymlinks:!1};return ot(`./${e}`,a).catch(()=>ot(e,a)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
4
4
  in [
5
5
  ${s.join(`,
6
6
  `)}
7
- ]`)})}});var dt=m((as,lt)=>{"use strict";l();var at=N("path"),it=Ce(),$n=Ar(),Tn=br(),Mn=Me(),jn=we();async function ct(n,e,t,r,o,s,a){let c=$n(n,e,o,s);for(let u of c)u.type!=="import"||!Rn(u.uri)||t.filter&&!t.filter(u.uri)||await Un(n,u,t,r,a);let d,f=[],h=[];function i(u){if(!d)d=u;else if(u.node.params.toLowerCase()!==d.node.params.toLowerCase())throw u.node.error(`Incompatible @charset statements:
7
+ ]`)})}});var dt=m((as,lt)=>{"use strict";l();var at=N("path"),it=Ce(),$n=Ar(),Tn=br(),Mn=Me(),jn=we();async function ct(n,e,t,r,o,s,a){let c=$n(n,e,o,s);for(let u of c)u.type!=="import"||!Rn(u.uri)||t.filter&&!t.filter(u.uri)||await Un(n,u,t,r,a);let d,p=[],h=[];function i(u){if(!d)d=u;else if(u.node.params.toLowerCase()!==d.node.params.toLowerCase())throw u.node.error(`Incompatible @charset statements:
8
8
  ${u.node.params} specified in ${u.node.source.input.file}
9
- ${d.node.params} specified in ${d.node.source.input.file}`)}return c.forEach(u=>{u.type==="charset"?i(u):u.type==="import"?u.children?u.children.forEach((S,I)=>{S.type==="import"?f.push(S):S.type==="charset"?i(S):h.push(S),I===0&&(S.parent=u)}):f.push(u):u.type==="nodes"&&h.push(u)}),d?[d,...f.concat(h)]:f.concat(h)}async function Un(n,e,t,r,o){if(it.isValid(e.uri)){e.children=await ut(n,e,e.uri,t,r,o);return}else if(it.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,a;s.source?.input?.file&&(a=s.source.input.file);let c=a?at.dirname(s.source.input.file):t.root,d=[await t.resolve(e.uri,c,t,s)].flat(),f=await Promise.all(d.map(i=>at.isAbsolute(i)?i:Mn(i,c,t,s)));f.forEach(i=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:i,parent:a})});let h=await Promise.all(f.map(i=>ut(n,e,i,t,r,o)));e.children=h.flat().filter(i=>!!i)}async function ut(n,e,t,r,o,s){let a=e.node,{conditions:c,from:d}=e,f=c.map(S=>jn(S.layer,S.media,S.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[f])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][f]=!0}if(d.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:a});return}if(r.skipDuplicates&&o.hashFiles[h]?.[f])return;let i=await Tn(n,h,t,r,s),u=i.root;return n.messages=n.messages.concat(i.messages),r.skipDuplicates&&(u.some(I=>I.type==="atrule"&&I.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][f]=!0)),ct(n,u,r,o,c,[...d,t],s)}function Rn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}lt.exports=ct});var vt=m((us,ht)=>{"use strict";l();var ft=N("path"),Ln=He(),zn=Ze(),Gn=Je(),Hn=or(),Bn=dt(),Zn=Me();function pt(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:Zn,load:Hn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=ft.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>ft.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let a=await Bn(t,e,n,s,[],[],o);zn(a),Ln(a,r),Gn(a,e)}}}pt.postcss=!0;ht.exports=pt});l();import mt from"path";var ds=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=N.resolve("tailwindcss/package.json"),r=mt.dirname(t);e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(N.resolve("postcss-loader")).options({postcssOptions:{plugins:[vt()({resolve:o=>o==="tailwindcss"?mt.join(r,"index.css"):o}),["@tailwindcss/postcss",{}]]}}),e.resolve.alias.set("tailwindcss",r)}});export{ds as default};
9
+ ${d.node.params} specified in ${d.node.source.input.file}`)}return c.forEach(u=>{u.type==="charset"?i(u):u.type==="import"?u.children?u.children.forEach((S,I)=>{S.type==="import"?p.push(S):S.type==="charset"?i(S):h.push(S),I===0&&(S.parent=u)}):p.push(u):u.type==="nodes"&&h.push(u)}),d?[d,...p.concat(h)]:p.concat(h)}async function Un(n,e,t,r,o){if(it.isValid(e.uri)){e.children=await ut(n,e,e.uri,t,r,o);return}else if(it.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,a;s.source?.input?.file&&(a=s.source.input.file);let c=a?at.dirname(s.source.input.file):t.root,d=[await t.resolve(e.uri,c,t,s)].flat(),p=await Promise.all(d.map(i=>at.isAbsolute(i)?i:Mn(i,c,t,s)));p.forEach(i=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:i,parent:a})});let h=await Promise.all(p.map(i=>ut(n,e,i,t,r,o)));e.children=h.flat().filter(i=>!!i)}async function ut(n,e,t,r,o,s){let a=e.node,{conditions:c,from:d}=e,p=c.map(S=>jn(S.layer,S.media,S.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[p])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][p]=!0}if(d.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:a});return}if(r.skipDuplicates&&o.hashFiles[h]?.[p])return;let i=await Tn(n,h,t,r,s),u=i.root;return n.messages=n.messages.concat(i.messages),r.skipDuplicates&&(u.some(I=>I.type==="atrule"&&I.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][p]=!0)),ct(n,u,r,o,c,[...d,t],s)}function Rn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}lt.exports=ct});var vt=m((us,ht)=>{"use strict";l();var pt=N("path"),Ln=He(),zn=Ze(),Gn=Je(),Hn=or(),Bn=dt(),Zn=Me();function ft(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:Zn,load:Hn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=pt.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>pt.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let a=await Bn(t,e,n,s,[],[],o);zn(a),Ln(a,r),Gn(a,e)}}}ft.postcss=!0;ht.exports=ft});l();import mt from"path";var ds=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=N.resolve("tailwindcss/package.json"),r=mt.dirname(t);e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(N.resolve("postcss-loader")).options({postcssOptions:{plugins:[vt()({resolve:o=>(console.log("postcss-import",n.resolve,o),o==="tailwindcss"?mt.join(r,"index.css"):o)}),["@tailwindcss/postcss",{}]]}}),e.resolve.alias.set("tailwindcss",r)}});export{ds as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/plugin-tailwindcss",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0",
4
4
  "description": "base tailwind 4",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,13 +45,13 @@
45
45
  "@types/node": "^22.13.11",
46
46
  "postcss-import": "^16.1.0",
47
47
  "tsup": "^8.1.0",
48
- "@empjs/cli": "3.7.0-beta.0"
48
+ "@empjs/cli": "3.7.0"
49
49
  },
50
50
  "dependencies": {
51
- "@tailwindcss/postcss": "^4.0.15",
51
+ "@tailwindcss/postcss": "^4.1.3",
52
52
  "postcss": "^8.5.3",
53
53
  "postcss-loader": "^8.1.1",
54
- "tailwindcss": "^4.0.15"
54
+ "tailwindcss": "^4.1.3"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsup",