@seed-design/codemod 0.0.15 → 0.0.17
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/bin/index.cjs +66 -0
- package/bin/transforms/migrate-icons/index.js +36 -0
- package/bin/transforms/replace-color-design-token/index.js +17 -0
- package/bin/transforms/replace-color-prop/index.js +17 -0
- package/bin/transforms/replace-css-color-variable/index.js +50 -0
- package/bin/transforms/replace-css-typography-variable/index.js +50 -0
- package/bin/transforms/replace-tailwind-color/index.js +17 -0
- package/bin/transforms/replace-tailwind-typography/index.js +17 -0
- package/bin/transforms/replace-text-component/index.js +17 -0
- package/bin/transforms/replace-typography-design-token/index.js +17 -0
- package/package.json +4 -4
- package/bin/index.mjs +0 -73
- package/bin/transforms/migrate-icons/index.mjs +0 -158
- package/bin/transforms/replace-color-design-token/index.mjs +0 -17
- package/bin/transforms/replace-color-prop/index.mjs +0 -17
- package/bin/transforms/replace-css-color-variable/index.mjs +0 -50
- package/bin/transforms/replace-css-typography-variable/index.mjs +0 -50
- package/bin/transforms/replace-tailwind-color/index.mjs +0 -17
- package/bin/transforms/replace-tailwind-typography/index.mjs +0 -17
- package/bin/transforms/replace-text-component/index.mjs +0 -17
- package/bin/transforms/replace-typography-design-token/index.mjs +0 -17
@@ -0,0 +1,50 @@
|
|
1
|
+
var Ro=Object.create;var kt=Object.defineProperty;var Mo=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var To=Object.getPrototypeOf,ko=Object.prototype.hasOwnProperty;var x=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),No=(n,e)=>{for(var t in e)kt(n,t,{get:e[t],enumerable:!0})},Os=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Lo(e))!ko.call(n,s)&&s!==t&&kt(n,s,{get:()=>e[s],enumerable:!(i=Mo(e,s))||i.enumerable});return n};var Ae=(n,e,t)=>(t=n!=null?Ro(To(n)):{},Os(e||!n||!n.__esModule?kt(t,"default",{value:n,enumerable:!0}):t,n)),Po=n=>Os(kt({},"__esModule",{value:!0}),n);var Ci=x((eu,xi)=>{var Pt=process||{},As=Pt.argv||[],Nt=Pt.env||{},Do=!(Nt.NO_COLOR||As.includes("--no-color"))&&(!!Nt.FORCE_COLOR||As.includes("--color")||Pt.platform==="win32"||(Pt.stdout||{}).isTTY&&Nt.TERM!=="dumb"||!!Nt.CI),Fo=(n,e,t=n)=>i=>{let s=""+i,r=s.indexOf(e,n.length);return~r?n+Io(s,e,t,r)+e:n+s+e},Io=(n,e,t,i)=>{let s="",r=0;do s+=n.substring(r,i)+t,r=i+e.length,i=n.indexOf(e,r);while(~i);return s+n.substring(r)},Rs=(n=Do)=>{let e=n?Fo:()=>String;return{isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};xi.exports=Rs();xi.exports.createColors=Rs});var Ei=x((tu,Ls)=>{"use strict";var Dt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ft=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bo=/.[\r\n"'(/\\]/,Ms=/[\da-f]/i;Ls.exports=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,r,o,a,l,h,u,c,f,p,w,d=i.length,m=0,g=[],b=[];function S(){return m}function v(z){throw e.error("Unclosed "+z,m)}function C(){return b.length===0&&m>=d}function O(z){if(b.length)return b.pop();if(m>=d)return;let B=z?z.ignoreUnclosed:!1;switch(r=i.charCodeAt(m),r){case 10:case 32:case 9:case 13:case 12:{l=m;do l+=1,r=i.charCodeAt(l);while(r===32||r===10||r===9||r===13||r===12);u=["space",i.slice(m,l)],m=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Se=String.fromCharCode(r);u=[Se,Se,m];break}case 40:{if(w=g.length?g.pop()[1]:"",p=i.charCodeAt(m+1),w==="url"&&p!==39&&p!==34&&p!==32&&p!==10&&p!==9&&p!==12&&p!==13){l=m;do{if(c=!1,l=i.indexOf(")",l+1),l===-1)if(s||B){l=m;break}else v("bracket");for(f=l;i.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);u=["brackets",i.slice(m,l+1),m,l],m=l}else l=i.indexOf(")",m+1),o=i.slice(m,l+1),l===-1||Bo.test(o)?u=["(","(",m]:(u=["brackets",o,m,l],m=l);break}case 39:case 34:{h=r===39?"'":'"',l=m;do{if(c=!1,l=i.indexOf(h,l+1),l===-1)if(s||B){l=m+1;break}else v("string");for(f=l;i.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);u=["string",i.slice(m,l+1),m,l],m=l;break}case 64:{Dt.lastIndex=m+1,Dt.test(i),Dt.lastIndex===0?l=i.length-1:l=Dt.lastIndex-2,u=["at-word",i.slice(m,l+1),m,l],m=l;break}case 92:{for(l=m,a=!0;i.charCodeAt(l+1)===92;)l+=1,a=!a;if(r=i.charCodeAt(l+1),a&&r!==47&&r!==32&&r!==10&&r!==9&&r!==13&&r!==12&&(l+=1,Ms.test(i.charAt(l)))){for(;Ms.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===32&&(l+=1)}u=["word",i.slice(m,l+1),m,l],m=l;break}default:{r===47&&i.charCodeAt(m+1)===42?(l=i.indexOf("*/",m+2)+1,l===0&&(s||B?l=i.length:v("comment")),u=["comment",i.slice(m,l+1),m,l],m=l):(Ft.lastIndex=m+1,Ft.test(i),Ft.lastIndex===0?l=i.length-1:l=Ft.lastIndex-2,u=["word",i.slice(m,l+1),m,l],g.push(u),m=l);break}}return m++,u}function W(z){b.push(z)}return{back:W,endOfFile:C,nextToken:O,position:S}}});var _i=x((iu,Ns)=>{"use strict";var U=Ci(),Uo=Ei(),Ts;function $o(n){Ts=n}var jo={";":U.yellow,":":U.yellow,"(":U.cyan,")":U.cyan,"[":U.yellow,"]":U.yellow,"{":U.yellow,"}":U.yellow,"at-word":U.cyan,brackets:U.cyan,call:U.cyan,class:U.yellow,comment:U.gray,hash:U.magenta,string:U.green};function zo([n,e],t){if(n==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let i=t.nextToken();if(t.back(i),i[0]==="brackets"||i[0]==="(")return"call"}return n}function ks(n){let e=Uo(new Ts(n),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let i=e.nextToken(),s=jo[zo(i,e)];s?t+=i[1].split(/\r?\n/).map(r=>s(r)).join(`
|
2
|
+
`):t+=i[1]}return t}ks.registerInput=$o;Ns.exports=ks});var It=x((su,Fs)=>{"use strict";var Ps=Ci(),Ds=_i(),Qe=class n extends Error{constructor(e,t,i,s,r,o){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),s&&(this.source=s),o&&(this.plugin=o),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ps.isColorSupported);let i=u=>u,s=u=>u,r=u=>u;if(e){let{bold:u,gray:c,red:f}=Ps.createColors(!0);s=p=>u(f(p)),i=p=>c(p),Ds&&(r=p=>Ds(p))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),h=String(l).length;return o.slice(a,l).map((u,c)=>{let f=a+1+c,p=" "+(" "+f).slice(-h)+" | ";if(f===this.line){if(u.length>160){let d=20,m=Math.max(0,this.column-d),g=Math.max(this.column+d,this.endColumn+d),b=u.slice(m,g),S=i(p.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,d-1)).replace(/[^\t]/g," ");return s(">")+i(p)+r(b)+`
|
3
|
+
`+S+s("^")}let w=i(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+i(p)+r(u)+`
|
4
|
+
`+w+s("^")}return" "+i(p)+r(u)}).join(`
|
5
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
6
|
+
|
7
|
+
`+e+`
|
8
|
+
`),this.name+": "+this.message+e}};Fs.exports=Qe;Qe.default=Qe});var Oi=x((ru,Bs)=>{"use strict";var Is={after:`
|
9
|
+
`,beforeClose:`
|
10
|
+
`,beforeComment:`
|
11
|
+
`,beforeDecl:`
|
12
|
+
`,beforeOpen:" ",beforeRule:`
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Wo(n){return n[0].toUpperCase()+n.slice(1)}var Je=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i+s+r,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let s=e.parent,r=0;for(;s&&s.type!=="root";)r+=1,s=s.parent;if(i.includes(`
|
14
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<r;a++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let r=e.nodes[s],o=this.raw(r,"before");o&&this.builder(o),this.stringify(r,t!==s||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,i){let s;if(i||(i=t),t&&(s=e.raws[t],typeof s<"u"))return s;let r=e.parent;if(i==="before"&&(!r||r.type==="root"&&r.first===e||r&&r.type==="document"))return"";if(!r)return Is[i];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[i]<"u")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let a="raw"+Wo(i);this[a]?s=this[a](o,e):o.walk(l=>{if(s=l.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=Is[i]),o.rawCache[i]=s,s}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
|
15
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
16
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
17
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
|
18
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){let r=i.raws.before.split(`
|
19
|
+
`);return t=r[r.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],s=e.raws[t];return s&&s.value===i?s.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};Bs.exports=Je;Je.default=Je});var Ke=x((nu,Us)=>{"use strict";var qo=Oi();function Ai(n,e){new qo(e).stringify(n)}Us.exports=Ai;Ai.default=Ai});var Bt=x((ou,Ri)=>{"use strict";Ri.exports.isClean=Symbol("isClean");Ri.exports.my=Symbol("my")});var et=x((lu,$s)=>{"use strict";var Go=It(),Vo=Oi(),Ho=Ke(),{isClean:Ye,my:Qo}=Bt();function Mi(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let s=n[i],r=typeof s;i==="parent"&&r==="object"?e&&(t[i]=e):i==="source"?t[i]=s:Array.isArray(s)?t[i]=s.map(o=>Mi(o,t)):(r==="object"&&s!==null&&(s=Mi(s)),t[i]=s)}return t}function Xe(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,i=1,s=0;for(let r=0;r<n.length;r++){if(i===e.line&&t===e.column){s=r;break}n[r]===`
|
20
|
+
`?(t=1,i+=1):t+=1}return s}var Ze=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Ye]=!1,this[Qo]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Mi(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:i.column,line:i.line},t)}return new Go(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Ye]=!0}markDirty(){if(this[Ye]){this[Ye]=!1;let e=this;for(;e=e.parent;)e[Ye]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,r=i.slice(Xe(i,this.source.start),Xe(i,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,s="document"in this.source.input?this.source.input.document:this.source.input.css,r=Xe(s,this.source.start),o=r+e;for(let a=r;a<o;a++)s[a]===`
|
21
|
+
`?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,o=s.slice(Xe(s,this.source.start),Xe(s,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new Vo().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let s of e)s===this?i=!0:i?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let r=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))i[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=r,t.set(a.input,r),r++),i[o]={end:a.end,inputId:l,start:a.start}}else i[o]=a}return s&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ho){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let r in i)s[r]=i[r];return e.warn(t,s)}};$s.exports=Ze;Ze.default=Ze});var it=x((au,js)=>{"use strict";var Jo=et(),tt=class extends Jo{constructor(e){super(e),this.type="comment"}};js.exports=tt;tt.default=tt});var rt=x((hu,zs)=>{"use strict";var Ko=et(),st=class extends Ko{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};zs.exports=st;st.default=st});var pe=x((uu,Ys)=>{"use strict";var Ws=it(),qs=rt(),Yo=et(),{isClean:Gs,my:Vs}=Bt(),Li,Hs,Qs,Ti;function Js(n){return n.map(e=>(e.nodes&&(e.nodes=Js(e.nodes)),delete e.source,e))}function Ks(n){if(n[Gs]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Ks(e)}var Y=class n extends Yo{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(r,o)=>s(r.toProxy(),o):s)):t==="every"||t==="some"?i=>e[t]((s,...r)=>i(s.toProxy(),...r)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i+1,0,o);let r;for(let o in this.indexes)r=this.indexes[o],i<r&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let a of r)this.proxyOf.nodes.splice(i,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Js(Hs(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new qs(e)]}else if(e.selector||e.selectors)e=[new Ti(e)];else if(e.name)e=[new Li(e)];else if(e.text)e=[new Ws(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Vs]||n.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Gs]&&Ks(s),s.raws||(s.raws={}),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(r){throw t.addToError(r)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}};Y.registerParse=n=>{Hs=n};Y.registerRule=n=>{Ti=n};Y.registerAtRule=n=>{Li=n};Y.registerRoot=n=>{Qs=n};Ys.exports=Y;Y.default=Y;Y.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Li.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ti.prototype):n.type==="decl"?Object.setPrototypeOf(n,qs.prototype):n.type==="comment"?Object.setPrototypeOf(n,Ws.prototype):n.type==="root"&&Object.setPrototypeOf(n,Qs.prototype),n[Vs]=!0,n.nodes&&n.nodes.forEach(e=>{Y.rebuild(e)})}});var Ut=x((cu,Zs)=>{"use strict";var Xs=pe(),Re=class extends Xs{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Zs.exports=Re;Re.default=Re;Xs.registerAtRule(Re)});var $t=x((fu,ir)=>{"use strict";var Xo=pe(),er,tr,ve=class extends Xo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new er(new tr,this,e).stringify()}};ve.registerLazyResult=n=>{er=n};ve.registerProcessor=n=>{tr=n};ir.exports=ve;ve.default=ve});var rr=x((pu,sr)=>{var Zo="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",el=(n,e=21)=>(t=e)=>{let i="",s=t|0;for(;s--;)i+=n[Math.random()*n.length|0];return i},tl=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Zo[Math.random()*64|0];return e};sr.exports={nanoid:tl,customAlphabet:el}});var or=x(ki=>{var nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ki.encode=function(n){if(0<=n&&n<nr.length)return nr[n];throw new TypeError("Must be between 0 and 63: "+n)};ki.decode=function(n){var e=65,t=90,i=97,s=122,r=48,o=57,a=43,l=47,h=26,u=52;return e<=n&&n<=t?n-e:i<=n&&n<=s?n-i+h:r<=n&&n<=o?n-r+u:n==a?62:n==l?63:-1}});var Di=x(Pi=>{var lr=or(),Ni=5,ar=1<<Ni,hr=ar-1,ur=ar;function il(n){return n<0?(-n<<1)+1:(n<<1)+0}function sl(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Pi.encode=function(e){var t="",i,s=il(e);do i=s&hr,s>>>=Ni,s>0&&(i|=ur),t+=lr.encode(i);while(s>0);return t};Pi.decode=function(e,t,i){var s=e.length,r=0,o=0,a,l;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=lr.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&ur),l&=hr,r=r+(l<<o),o+=Ni}while(a);i.value=sl(r),i.rest=t}});var Le=x(L=>{function rl(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}L.getArg=rl;var cr=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nl=/^data:.+\,.+$/;function nt(n){var e=n.match(cr);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}L.urlParse=nt;function Me(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}L.urlGenerate=Me;var ol=32;function ll(n){var e=[];return function(t){for(var i=0;i<e.length;i++)if(e[i].input===t){var s=e[0];return e[0]=e[i],e[i]=s,e[0].result}var r=n(t);return e.unshift({input:t,result:r}),e.length>ol&&e.pop(),r}}var Fi=ll(function(e){var t=e,i=nt(e);if(i){if(!i.path)return e;t=i.path}for(var s=L.isAbsolute(t),r=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){r.push(t.slice(o));break}else for(r.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,h=0,a=r.length-1;a>=0;a--)l=r[a],l==="."?r.splice(a,1):l===".."?h++:h>0&&(l===""?(r.splice(a+1,h),h=0):(r.splice(a,2),h--));return t=r.join("/"),t===""&&(t=s?"/":"."),i?(i.path=t,Me(i)):t});L.normalize=Fi;function fr(n,e){n===""&&(n="."),e===""&&(e=".");var t=nt(e),i=nt(n);if(i&&(n=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),Me(t);if(t||e.match(nl))return e;if(i&&!i.host&&!i.path)return i.host=e,Me(i);var s=e.charAt(0)==="/"?e:Fi(n.replace(/\/+$/,"")+"/"+e);return i?(i.path=s,Me(i)):s}L.join=fr;L.isAbsolute=function(n){return n.charAt(0)==="/"||cr.test(n)};function al(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var i=n.lastIndexOf("/");if(i<0||(n=n.slice(0,i),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}L.relative=al;var pr=function(){var n=Object.create(null);return!("__proto__"in n)}();function dr(n){return n}function hl(n){return mr(n)?"$"+n:n}L.toSetString=pr?dr:hl;function ul(n){return mr(n)?n.slice(1):n}L.fromSetString=pr?dr:ul;function mr(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function cl(n,e,t){var i=le(n.source,e.source);return i!==0||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0||t)||(i=n.generatedColumn-e.generatedColumn,i!==0)||(i=n.generatedLine-e.generatedLine,i!==0)?i:le(n.name,e.name)}L.compareByOriginalPositions=cl;function fl(n,e,t){var i;return i=n.originalLine-e.originalLine,i!==0||(i=n.originalColumn-e.originalColumn,i!==0||t)||(i=n.generatedColumn-e.generatedColumn,i!==0)||(i=n.generatedLine-e.generatedLine,i!==0)?i:le(n.name,e.name)}L.compareByOriginalPositionsNoSource=fl;function pl(n,e,t){var i=n.generatedLine-e.generatedLine;return i!==0||(i=n.generatedColumn-e.generatedColumn,i!==0||t)||(i=le(n.source,e.source),i!==0)||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0)?i:le(n.name,e.name)}L.compareByGeneratedPositionsDeflated=pl;function dl(n,e,t){var i=n.generatedColumn-e.generatedColumn;return i!==0||t||(i=le(n.source,e.source),i!==0)||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0)?i:le(n.name,e.name)}L.compareByGeneratedPositionsDeflatedNoLine=dl;function le(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function ml(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=le(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:le(n.name,e.name)}L.compareByGeneratedPositionsInflated=ml;function gl(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}L.parseSourceMapInput=gl;function wl(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var i=nt(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var s=i.path.lastIndexOf("/");s>=0&&(i.path=i.path.substring(0,s+1))}e=fr(Me(i),e)}return Fi(e)}L.computeSourceURL=wl});var Ui=x(gr=>{var Ii=Le(),Bi=Object.prototype.hasOwnProperty,xe=typeof Map<"u";function ae(){this._array=[],this._set=xe?new Map:Object.create(null)}ae.fromArray=function(e,t){for(var i=new ae,s=0,r=e.length;s<r;s++)i.add(e[s],t);return i};ae.prototype.size=function(){return xe?this._set.size:Object.getOwnPropertyNames(this._set).length};ae.prototype.add=function(e,t){var i=xe?e:Ii.toSetString(e),s=xe?this.has(e):Bi.call(this._set,i),r=this._array.length;(!s||t)&&this._array.push(e),s||(xe?this._set.set(e,r):this._set[i]=r)};ae.prototype.has=function(e){if(xe)return this._set.has(e);var t=Ii.toSetString(e);return Bi.call(this._set,t)};ae.prototype.indexOf=function(e){if(xe){var t=this._set.get(e);if(t>=0)return t}else{var i=Ii.toSetString(e);if(Bi.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')};ae.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ae.prototype.toArray=function(){return this._array.slice()};gr.ArraySet=ae});var br=x(yr=>{var wr=Le();function yl(n,e){var t=n.generatedLine,i=e.generatedLine,s=n.generatedColumn,r=e.generatedColumn;return i>t||i==t&&r>=s||wr.compareByGeneratedPositionsInflated(n,e)<=0}function jt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}jt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};jt.prototype.add=function(e){yl(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};jt.prototype.toArray=function(){return this._sorted||(this._array.sort(wr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};yr.MappingList=jt});var $i=x(Sr=>{var ot=Di(),R=Le(),zt=Ui().ArraySet,bl=br().MappingList;function H(n){n||(n={}),this._file=R.getArg(n,"file",null),this._sourceRoot=R.getArg(n,"sourceRoot",null),this._skipValidation=R.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=R.getArg(n,"ignoreInvalidMapping",!1),this._sources=new zt,this._names=new zt,this._mappings=new bl,this._sourcesContents=null}H.prototype._version=3;H.fromSourceMap=function(e,t){var i=e.sourceRoot,s=new H(Object.assign(t||{},{file:e.file,sourceRoot:i}));return e.eachMapping(function(r){var o={generated:{line:r.generatedLine,column:r.generatedColumn}};r.source!=null&&(o.source=r.source,i!=null&&(o.source=R.relative(i,o.source)),o.original={line:r.originalLine,column:r.originalColumn},r.name!=null&&(o.name=r.name)),s.addMapping(o)}),e.sources.forEach(function(r){var o=r;i!==null&&(o=R.relative(i,r)),s._sources.has(o)||s._sources.add(o);var a=e.sourceContentFor(r);a!=null&&s.setSourceContent(r,a)}),s};H.prototype.addMapping=function(e){var t=R.getArg(e,"generated"),i=R.getArg(e,"original",null),s=R.getArg(e,"source",null),r=R.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,i,s,r)===!1||(s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),r!=null&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:s,name:r}))};H.prototype.setSourceContent=function(e,t){var i=e;this._sourceRoot!=null&&(i=R.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[R.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[R.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};H.prototype.applySourceMap=function(e,t,i){var s=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var r=this._sourceRoot;r!=null&&(s=R.relative(r,s));var o=new zt,a=new zt;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var h=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});h.source!=null&&(l.source=h.source,i!=null&&(l.source=R.join(i,l.source)),r!=null&&(l.source=R.relative(r,l.source)),l.originalLine=h.line,l.originalColumn=h.column,h.name!=null&&(l.name=h.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var c=l.name;c!=null&&!a.has(c)&&a.add(c)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var h=e.sourceContentFor(l);h!=null&&(i!=null&&(l=R.join(i,l)),r!=null&&(l=R.relative(r,l)),this.setSourceContent(l,h))},this)};H.prototype._validateMapping=function(e,t,i,s){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var r="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(r),!1;throw new Error(r)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!i&&!s)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&i)return;var r="Invalid mapping: "+JSON.stringify({generated:e,source:i,original:t,name:s});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(r),!1;throw new Error(r)}};H.prototype._serializeMappings=function(){for(var e=0,t=1,i=0,s=0,r=0,o=0,a="",l,h,u,c,f=this._mappings.toArray(),p=0,w=f.length;p<w;p++){if(h=f[p],l="",h.generatedLine!==t)for(e=0;h.generatedLine!==t;)l+=";",t++;else if(p>0){if(!R.compareByGeneratedPositionsInflated(h,f[p-1]))continue;l+=","}l+=ot.encode(h.generatedColumn-e),e=h.generatedColumn,h.source!=null&&(c=this._sources.indexOf(h.source),l+=ot.encode(c-o),o=c,l+=ot.encode(h.originalLine-1-s),s=h.originalLine-1,l+=ot.encode(h.originalColumn-i),i=h.originalColumn,h.name!=null&&(u=this._names.indexOf(h.name),l+=ot.encode(u-r),r=u)),a+=l}return a};H.prototype._generateSourcesContent=function(e,t){return e.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=R.relative(t,i));var s=R.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};H.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};H.prototype.toString=function(){return JSON.stringify(this.toJSON())};Sr.SourceMapGenerator=H});var vr=x(Ce=>{Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;function ji(n,e,t,i,s,r){var o=Math.floor((e-n)/2)+n,a=s(t,i[o],!0);return a===0?o:a>0?e-o>1?ji(o,e,t,i,s,r):r==Ce.LEAST_UPPER_BOUND?e<i.length?e:-1:o:o-n>1?ji(n,o,t,i,s,r):r==Ce.LEAST_UPPER_BOUND?o:n<0?-1:n}Ce.search=function(e,t,i,s){if(t.length===0)return-1;var r=ji(-1,t.length,e,t,i,s||Ce.GREATEST_LOWER_BOUND);if(r<0)return-1;for(;r-1>=0&&i(t[r],t[r-1],!0)===0;)--r;return r}});var Er=x(Cr=>{function Sl(n){function e(s,r,o){var a=s[r];s[r]=s[o],s[o]=a}function t(s,r){return Math.round(s+Math.random()*(r-s))}function i(s,r,o,a){if(o<a){var l=t(o,a),h=o-1;e(s,l,a);for(var u=s[a],c=o;c<a;c++)r(s[c],u,!1)<=0&&(h+=1,e(s,h,c));e(s,h+1,c);var f=h+1;i(s,r,o,f-1),i(s,r,f+1,a)}}return i}function vl(n){let e=Sl.toString();return new Function(`return ${e}`)()(n)}var xr=new WeakMap;Cr.quickSort=function(n,e,t=0){let i=xr.get(e);i===void 0&&(i=vl(e),xr.set(e,i)),i(n,e,t,n.length-1)}});var Ar=x(Wt=>{var y=Le(),Wi=vr(),Te=Ui().ArraySet,xl=Di(),lt=Er().quickSort;function A(n,e){var t=n;return typeof n=="string"&&(t=y.parseSourceMapInput(n)),t.sections!=null?new X(t,e):new P(t,e)}A.fromSourceMap=function(n,e){return P.fromSourceMap(n,e)};A.prototype._version=3;A.prototype.__generatedMappings=null;Object.defineProperty(A.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});A.prototype.__originalMappings=null;Object.defineProperty(A.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});A.prototype._charIsMappingSeparator=function(e,t){var i=e.charAt(t);return i===";"||i===","};A.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};A.GENERATED_ORDER=1;A.ORIGINAL_ORDER=2;A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.prototype.eachMapping=function(e,t,i){var s=t||null,r=i||A.GENERATED_ORDER,o;switch(r){case A.GENERATED_ORDER:o=this._generatedMappings;break;case A.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(s),h=this._names,u=this._sources,c=this._sourceMapURL,f=0,p=o.length;f<p;f++){var w=o[f],d=w.source===null?null:u.at(w.source);d!==null&&(d=y.computeSourceURL(a,d,c)),l({source:d,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:h.at(w.name)})}};A.prototype.allGeneratedPositionsFor=function(e){var t=y.getArg(e,"line"),i={source:y.getArg(e,"source"),originalLine:t,originalColumn:y.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var s=[],r=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,Wi.LEAST_UPPER_BOUND);if(r>=0){var o=this._originalMappings[r];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)s.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++r];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)s.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++r]}return s};Wt.SourceMapConsumer=A;function P(n,e){var t=n;typeof n=="string"&&(t=y.parseSourceMapInput(n));var i=y.getArg(t,"version"),s=y.getArg(t,"sources"),r=y.getArg(t,"names",[]),o=y.getArg(t,"sourceRoot",null),a=y.getArg(t,"sourcesContent",null),l=y.getArg(t,"mappings"),h=y.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);o&&(o=y.normalize(o)),s=s.map(String).map(y.normalize).map(function(u){return o&&y.isAbsolute(o)&&y.isAbsolute(u)?y.relative(o,u):u}),this._names=Te.fromArray(r.map(String),!0),this._sources=Te.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(u){return y.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=h}P.prototype=Object.create(A.prototype);P.prototype.consumer=A;P.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=y.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};P.fromSourceMap=function(e,t){var i=Object.create(P.prototype),s=i._names=Te.fromArray(e._names.toArray(),!0),r=i._sources=Te.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(p){return y.computeSourceURL(i.sourceRoot,p,t)});for(var o=e._mappings.toArray().slice(),a=i.__generatedMappings=[],l=i.__originalMappings=[],h=0,u=o.length;h<u;h++){var c=o[h],f=new Or;f.generatedLine=c.generatedLine,f.generatedColumn=c.generatedColumn,c.source&&(f.source=r.indexOf(c.source),f.originalLine=c.originalLine,f.originalColumn=c.originalColumn,c.name&&(f.name=s.indexOf(c.name)),l.push(f)),a.push(f)}return lt(i.__originalMappings,y.compareByOriginalPositions),i};P.prototype._version=3;Object.defineProperty(P.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Or(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var zi=y.compareByGeneratedPositionsDeflatedNoLine;function _r(n,e){let t=n.length,i=n.length-e;if(!(i<=1))if(i==2){let s=n[e],r=n[e+1];zi(s,r)>0&&(n[e]=r,n[e+1]=s)}else if(i<20)for(let s=e;s<t;s++)for(let r=s;r>e;r--){let o=n[r-1],a=n[r];if(zi(o,a)<=0)break;n[r-1]=a,n[r]=o}else lt(n,zi,e)}P.prototype._parseMappings=function(e,t){var i=1,s=0,r=0,o=0,a=0,l=0,h=e.length,u=0,c={},f={},p=[],w=[],d,m,g,b,S;let v=0;for(;u<h;)if(e.charAt(u)===";")i++,u++,s=0,_r(w,v),v=w.length;else if(e.charAt(u)===",")u++;else{for(d=new Or,d.generatedLine=i,b=u;b<h&&!this._charIsMappingSeparator(e,b);b++);for(m=e.slice(u,b),g=[];u<b;)xl.decode(e,u,f),S=f.value,u=f.rest,g.push(S);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");if(d.generatedColumn=s+g[0],s=d.generatedColumn,g.length>1&&(d.source=a+g[1],a+=g[1],d.originalLine=r+g[2],r=d.originalLine,d.originalLine+=1,d.originalColumn=o+g[3],o=d.originalColumn,g.length>4&&(d.name=l+g[4],l+=g[4])),w.push(d),typeof d.originalLine=="number"){let O=d.source;for(;p.length<=O;)p.push(null);p[O]===null&&(p[O]=[]),p[O].push(d)}}_r(w,v),this.__generatedMappings=w;for(var C=0;C<p.length;C++)p[C]!=null&<(p[C],y.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};P.prototype._findMapping=function(e,t,i,s,r,o){if(e[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[i]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Wi.search(e,t,r,o)};P.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var i=this._generatedMappings[e+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};P.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",y.compareByGeneratedPositionsDeflated,y.getArg(e,"bias",A.GREATEST_LOWER_BOUND));if(i>=0){var s=this._generatedMappings[i];if(s.generatedLine===t.generatedLine){var r=y.getArg(s,"source",null);r!==null&&(r=this._sources.at(r),r=y.computeSourceURL(this.sourceRoot,r,this._sourceMapURL));var o=y.getArg(s,"name",null);return o!==null&&(o=this._names.at(o)),{source:r,line:y.getArg(s,"originalLine",null),column:y.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};P.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};P.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(e);if(i>=0)return this.sourcesContent[i];var s=e;this.sourceRoot!=null&&(s=y.relative(this.sourceRoot,s));var r;if(this.sourceRoot!=null&&(r=y.urlParse(this.sourceRoot))){var o=s.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!r.path||r.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(t)return null;throw new Error('"'+s+'" is not in the SourceMap.')};P.prototype.generatedPositionFor=function(e){var t=y.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:y.getArg(e,"line"),originalColumn:y.getArg(e,"column")},s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,y.getArg(e,"bias",A.GREATEST_LOWER_BOUND));if(s>=0){var r=this._originalMappings[s];if(r.source===i.source)return{line:y.getArg(r,"generatedLine",null),column:y.getArg(r,"generatedColumn",null),lastColumn:y.getArg(r,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Wt.BasicSourceMapConsumer=P;function X(n,e){var t=n;typeof n=="string"&&(t=y.parseSourceMapInput(n));var i=y.getArg(t,"version"),s=y.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Te,this._names=new Te;var r={line:-1,column:0};this._sections=s.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=y.getArg(o,"offset"),l=y.getArg(a,"line"),h=y.getArg(a,"column");if(l<r.line||l===r.line&&h<r.column)throw new Error("Section offsets must be ordered and non-overlapping.");return r=a,{generatedOffset:{generatedLine:l+1,generatedColumn:h+1},consumer:new A(y.getArg(o,"map"),e)}})}X.prototype=Object.create(A.prototype);X.prototype.constructor=A;X.prototype._version=3;Object.defineProperty(X.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});X.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},i=Wi.search(t,this._sections,function(r,o){var a=r.generatedLine-o.generatedOffset.generatedLine;return a||r.generatedColumn-o.generatedOffset.generatedColumn}),s=this._sections[i];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};X.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};X.prototype.sourceContentFor=function(e,t){for(var i=0;i<this._sections.length;i++){var s=this._sections[i],r=s.consumer.sourceContentFor(e,!0);if(r||r==="")return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};X.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(y.getArg(e,"source"))!==-1){var s=i.consumer.generatedPositionFor(e);if(s){var r={line:s.line+(i.generatedOffset.generatedLine-1),column:s.column+(i.generatedOffset.generatedLine===s.line?i.generatedOffset.generatedColumn-1:0)};return r}}}return{line:null,column:null}};X.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var s=this._sections[i],r=s.consumer._generatedMappings,o=0;o<r.length;o++){var a=r[o],l=s.consumer._sources.at(a.source);l!==null&&(l=y.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var h=null;a.name&&(h=s.consumer._names.at(a.name),this._names.add(h),h=this._names.indexOf(h));var u={source:l,generatedLine:a.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(s.generatedOffset.generatedLine===a.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:h};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}lt(this.__generatedMappings,y.compareByGeneratedPositionsDeflated),lt(this.__originalMappings,y.compareByOriginalPositions)};Wt.IndexedSourceMapConsumer=X});var Mr=x(Rr=>{var Cl=$i().SourceMapGenerator,qt=Le(),El=/(\r?\n)/,_l=10,ke="$$$isSourceNode$$$";function q(n,e,t,i,s){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=s??null,this[ke]=!0,i!=null&&this.add(i)}q.fromStringWithSourceMap=function(e,t,i){var s=new q,r=e.split(El),o=0,a=function(){var f=w(),p=w()||"";return f+p;function w(){return o<r.length?r[o++]:void 0}},l=1,h=0,u=null;return t.eachMapping(function(f){if(u!==null)if(l<f.generatedLine)c(u,a()),l++,h=0;else{var p=r[o]||"",w=p.substr(0,f.generatedColumn-h);r[o]=p.substr(f.generatedColumn-h),h=f.generatedColumn,c(u,w),u=f;return}for(;l<f.generatedLine;)s.add(a()),l++;if(h<f.generatedColumn){var p=r[o]||"";s.add(p.substr(0,f.generatedColumn)),r[o]=p.substr(f.generatedColumn),h=f.generatedColumn}u=f},this),o<r.length&&(u&&c(u,a()),s.add(r.splice(o).join(""))),t.sources.forEach(function(f){var p=t.sourceContentFor(f);p!=null&&(i!=null&&(f=qt.join(i,f)),s.setSourceContent(f,p))}),s;function c(f,p){if(f===null||f.source===void 0)s.add(p);else{var w=i?qt.join(i,f.source):f.source;s.add(new q(f.originalLine,f.originalColumn,w,p,f.name))}}};q.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[ke]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};q.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[ke]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};q.prototype.walk=function(e){for(var t,i=0,s=this.children.length;i<s;i++)t=this.children[i],t[ke]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};q.prototype.join=function(e){var t,i,s=this.children.length;if(s>0){for(t=[],i=0;i<s-1;i++)t.push(this.children[i]),t.push(e);t.push(this.children[i]),this.children=t}return this};q.prototype.replaceRight=function(e,t){var i=this.children[this.children.length-1];return i[ke]?i.replaceRight(e,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(e,t):this.children.push("".replace(e,t)),this};q.prototype.setSourceContent=function(e,t){this.sourceContents[qt.toSetString(e)]=t};q.prototype.walkSourceContents=function(e){for(var t=0,i=this.children.length;t<i;t++)this.children[t][ke]&&this.children[t].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),t=0,i=s.length;t<i;t++)e(qt.fromSetString(s[t]),this.sourceContents[s[t]])};q.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};q.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},i=new Cl(e),s=!1,r=null,o=null,a=null,l=null;return this.walk(function(h,u){t.code+=h,u.source!==null&&u.line!==null&&u.column!==null?((r!==u.source||o!==u.line||a!==u.column||l!==u.name)&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),r=u.source,o=u.line,a=u.column,l=u.name,s=!0):s&&(i.addMapping({generated:{line:t.line,column:t.column}}),r=null,s=!1);for(var c=0,f=h.length;c<f;c++)h.charCodeAt(c)===_l?(t.line++,t.column=0,c+1===f?(r=null,s=!1):s&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(h,u){i.setSourceContent(h,u)}),{code:t.code,map:i}};Rr.SourceNode=q});var Vt=x(Gt=>{Gt.SourceMapGenerator=$i().SourceMapGenerator;Gt.SourceMapConsumer=Ar().SourceMapConsumer;Gt.SourceNode=Mr().SourceNode});var Gi=x((_u,kr)=>{"use strict";var{existsSync:Ol,readFileSync:Al}=require("fs"),{dirname:qi,join:Rl}=require("path"),{SourceMapConsumer:Lr,SourceMapGenerator:Tr}=Vt();function Ml(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var at=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=qi(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Lr(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/,o=e.match(s)||e.match(r);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(i);if(a)return Ml(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}loadFile(e){if(this.root=qi(e),Ol(e))return this.mapFile=e,Al(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(t instanceof Lr)return Tr.fromSourceMap(t).toString();if(t instanceof Tr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Rl(qi(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};kr.exports=at;at.default=at});var ht=x((Ou,Fr)=>{"use strict";var{nanoid:Ll}=rr(),{isAbsolute:Qi,resolve:Ji}=require("path"),{SourceMapConsumer:Tl,SourceMapGenerator:kl}=Vt(),{fileURLToPath:Nr,pathToFileURL:Ht}=require("url"),Pr=It(),Nl=Gi(),Vi=_i(),Hi=Symbol("fromOffsetCache"),Pl=!!(Tl&&kl),Dr=!!(Ji&&Qi),Ne=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Dr||/^\w+:\/\//.test(t.from)||Qi(t.from)?this.file=t.from:this.file=Ji(t.from)),Dr&&Pl){let i=new Nl(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Ll(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,s={}){let r,o,a;if(t&&typeof t=="object"){let h=t,u=i;if(typeof h.offset=="number"){let c=this.fromOffset(h.offset);t=c.line,i=c.col}else t=h.line,i=h.column;if(typeof u.offset=="number"){let c=this.fromOffset(u.offset);o=c.line,r=c.col}else o=u.line,r=u.column}else if(!i){let h=this.fromOffset(t);t=h.line,i=h.col}let l=this.origin(t,i,o,r);return l?a=new Pr(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):a=new Pr(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:r,line:o},this.css,this.file,s.plugin),a.input={column:i,endColumn:r,endLine:o,line:t,source:this.css},this.file&&(Ht&&(a.input.url=Ht(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,i;if(this[Hi])i=this[Hi];else{let r=this.css.split(`
|
22
|
+
`);i=new Array(r.length);let o=0;for(let a=0,l=r.length;a<l;a++)i[a]=o,o+=r[a].length+1;this[Hi]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let r=i.length-2,o;for(;s<r;)if(o=s+(r-s>>1),e<i[o])r=o-1;else if(e>=i[o+1])s=o+1;else{s=o;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ji(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let r=this.map.consumer(),o=r.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof i=="number"&&(a=r.originalPositionFor({column:s,line:i}));let l;Qi(o.source)?l=Ht(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Ht(this.map.mapFile));let h={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Nr)h.file=Nr(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=r.sourceContentFor(o.source);return u&&(h.source=u),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Fr.exports=Ne;Ne.default=Ne;Vi&&Vi.registerInput&&Vi.registerInput(Ne)});var Pe=x((Au,$r)=>{"use strict";var Ir=pe(),Br,Ur,de=class extends Ir{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let r of s)r.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Br(new Ur,this,e).stringify()}};de.registerLazyResult=n=>{Br=n};de.registerProcessor=n=>{Ur=n};$r.exports=de;de.default=de;Ir.registerRoot(de)});var Ki=x((Ru,jr)=>{"use strict";var ut={comma(n){return ut.split(n,[","],!0)},space(n){let e=[" ",`
|
23
|
+
`," "];return ut.split(n,e)},split(n,e,t){let i=[],s="",r=!1,o=0,a=!1,l="",h=!1;for(let u of n)h?h=!1:u==="\\"?h=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(r=!0),r?(s!==""&&i.push(s.trim()),s="",r=!1):s+=u;return(t||s!=="")&&i.push(s.trim()),i}};jr.exports=ut;ut.default=ut});var Qt=x((Mu,Wr)=>{"use strict";var zr=pe(),Dl=Ki(),De=class extends zr{get selectors(){return Dl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Wr.exports=De;De.default=De;zr.registerRule(De)});var Gr=x((Lu,qr)=>{"use strict";var Fl=Ut(),Il=it(),Bl=rt(),Ul=ht(),$l=Gi(),jl=Pe(),zl=Qt();function ct(n,e){if(Array.isArray(n))return n.map(s=>ct(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let r={...s,__proto__:Ul.prototype};r.map&&(r.map={...r.map,__proto__:$l.prototype}),e.push(r)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>ct(s,e))),i.source){let{inputId:s,...r}=i.source;i.source=r,s!=null&&(i.source.input=e[s])}if(i.type==="root")return new jl(i);if(i.type==="decl")return new Bl(i);if(i.type==="rule")return new zl(i);if(i.type==="comment")return new Il(i);if(i.type==="atrule")return new Fl(i);throw new Error("Unknown node type: "+n.type)}qr.exports=ct;ct.default=ct});var Xi=x((Tu,Yr)=>{"use strict";var{dirname:Jt,relative:Hr,resolve:Qr,sep:Jr}=require("path"),{SourceMapConsumer:Kr,SourceMapGenerator:Kt}=Vt(),{pathToFileURL:Vr}=require("url"),Wl=ht(),ql=!!(Kr&&Kt),Gl=!!(Jt&&Qr&&Hr&&Jr),Yi=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
24
|
+
`;this.css.includes(`\r
|
25
|
+
`)&&(t=`\r
|
26
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||Jt(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Kr(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Gl&&ql&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Kt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Kt({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Kt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},r,o;this.stringify(this.root,(a,l,h)=>{if(this.css+=a,l&&h!=="end"&&(s.generated.line=e,s.generated.column=t-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=a.match(/\n/g),o?(e+=o.length,r=a.lastIndexOf(`
|
27
|
+
`),t=a.length-r):t+=a.length,l&&h!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Jt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Jt(Qr(i,this.mapOpts.annotation)));let s=Hr(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Wl(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Vr){let i=Vr(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Jr==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};Yr.exports=Yi});var tn=x((ku,en)=>{"use strict";var Vl=Ut(),Hl=it(),Ql=rt(),Jl=Pe(),Xr=Qt(),Kl=Ei(),Zr={empty:!0,space:!0};function Yl(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}var Zi=class{constructor(e){this.input=e,this.root=new Jl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Vl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,r,o=!1,a=!1,l=[],h=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?h.push(i==="("?")":"]"):i==="{"&&h.length>0?h.push("}"):i===h[h.length-1]&&h.pop(),h.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(r=l.length-1,s=l[r];s&&s[0]==="space";)s=l[--r];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let r=t-1;r>=0&&(s=e[r],!(s[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,r;for(let[o,a]of e.entries()){if(s=a,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!i)this.doubleColon(s);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=s}return!1}comment(e){let t=new Hl;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Kl(this.input)}decl(e,t){let i=new Ql;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||Yl(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let h=e[0][0];if(h===":"||h==="space"||h==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let h=e.length-1;h>=0;h--){if(r=e[h],r[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,h);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(r[1].toLowerCase()==="important"){let u=e.slice(0),c="";for(let f=h;f>0;f--){let p=u[f][0];if(c.trim().startsWith("!")&&p!=="space")break;c=u.pop()[1]+c}c.trim().startsWith("!")&&(i.important=!0,i.raws.important=c,e=u)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(h=>h[0]!=="space"&&h[0]!=="comment")&&(i.raws.between+=o.map(h=>h[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Xr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,s=!1,r=null,o=[],a=e[1].startsWith("--"),l=[],h=e;for(;h;){if(i=h[0],l.push(h),i==="("||i==="[")r||(r=h),o.push(i==="("?")":"]");else if(a&&s&&i==="{")r||(r=h),o.push("}");else if(o.length===0)if(i===";")if(s){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(s=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(r=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(r),t&&s){if(!a)for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let r,o,a=i.length,l="",h=!0,u,c;for(let f=0;f<a;f+=1)r=i[f],o=r[0],o==="space"&&f===a-1&&!s?h=!1:o==="comment"?(c=i[f-1]?i[f-1][0]:"empty",u=i[f+1]?i[f+1][0]:"empty",!Zr[c]&&!Zr[u]?l.slice(-1)===","?h=!1:l+=r[1]:h=!1):l+=r[1];if(!h){let f=i.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new Xr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};en.exports=Zi});var Xt=x((Nu,sn)=>{"use strict";var Xl=pe(),Zl=ht(),ea=tn();function Yt(n,e){let t=new Zl(n,e),i=new ea(t);try{i.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?s.message+=`
|
28
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?s.message+=`
|
29
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(s.message+=`
|
30
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return i.root}sn.exports=Yt;Yt.default=Yt;Xl.registerParse(Yt)});var es=x((Pu,rn)=>{"use strict";var ft=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};rn.exports=ft;ft.default=ft});var Zt=x((Du,nn)=>{"use strict";var ta=es(),pt=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new ta(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};nn.exports=pt;pt.default=pt});var ts=x((Fu,ln)=>{"use strict";var on={};ln.exports=function(e){on[e]||(on[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var rs=x((Iu,cn)=>{"use strict";var ia=pe(),sa=$t(),ra=Xi(),na=Xt(),an=Zt(),oa=Pe(),la=Ke(),{isClean:se,my:aa}=Bt(),ha=ts(),ua={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ca={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fa={Once:!0,postcssPlugin:!0,prepare:!0},Fe=0;function dt(n){return typeof n=="object"&&typeof n.then=="function"}function un(n){let e=!1,t=ua[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Fe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Fe,t+"Exit"]:[t,t+"Exit"]}function hn(n){let e;return n.type==="document"?e=["Document",Fe,"DocumentExit"]:n.type==="root"?e=["Root",Fe,"RootExit"]:e=un(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function is(n){return n[se]=!1,n.nodes&&n.nodes.forEach(e=>is(e)),n}var ss={},me=class n{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=is(t);else if(t instanceof n||t instanceof an)s=is(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let r=na;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{s=r(t,i)}catch(o){this.processed=!0,this.error=o}s&&!s[aa]&&ia.rebuild(s)}this.result=new an(e,s,i),this.helpers={...ss,postcss:ss,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let s=i.postcssPlugin,r=i.postcssVersion,o=this.result.processor.version,a=r.split("."),l=o.split(".");(a[0]!==l[0]||parseInt(a[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+s+" uses "+r+". Perhaps this is the source of the error below.")}}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!ca[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!fa[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(dt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[se];){e[se]=!0;let t=[hn(e)];for(;t.length>0;){let i=this.visitTick(t);if(dt(i))try{await i}catch(s){let r=t[t.length-1].node;throw this.handleError(s,r)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(r=>i(r,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return dt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=la;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new ra(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(dt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[se];)e[se]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ha("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(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let r;try{r=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(dt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!a[se]){a[se]=!0,e.push(hn(a));return}t.iterator=0,delete i.indexes[o]}let r=t.events;for(;t.eventIndex<r.length;){let o=r[t.eventIndex];if(t.eventIndex+=1,o===Fe){i.nodes&&i.nodes.length&&(i[se]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[se]=!0;let t=un(e);for(let i of t)if(i===Fe)e.nodes&&e.each(s=>{s[se]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};me.registerPostcss=n=>{ss=n};cn.exports=me;me.default=me;oa.registerLazyResult(me);sa.registerLazyResult(me)});var pn=x((Bu,fn)=>{"use strict";var pa=Xi(),da=Xt(),ma=Zt(),ga=Ke(),wa=ts(),mt=class{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 e,t=da;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,r=ga;this.result=new ma(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new pa(r,s,this._opts,t);if(a.isMap()){let[l,h]=a.generate();l&&(this.result.css=l),h&&(this.result.map=h)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||wa("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(e,t)}toString(){return this._css}warnings(){return[]}};fn.exports=mt;mt.default=mt});var mn=x((Uu,dn)=>{"use strict";var ya=$t(),ba=rs(),Sa=pn(),va=Pe(),Ee=class{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(typeof i=="object"&&(i.parse||i.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Sa(this,e,t):new ba(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};dn.exports=Ee;Ee.default=Ee;va.registerProcessor(Ee);ya.registerProcessor(Ee)});var Cn=x(($u,xn)=>{"use strict";var gn=Ut(),wn=it(),xa=pe(),Ca=It(),yn=rt(),bn=$t(),Ea=Gr(),_a=ht(),Oa=rs(),Aa=Ki(),Ra=et(),Ma=Xt(),ns=mn(),La=Zt(),Sn=Pe(),vn=Qt(),Ta=Ke(),ka=es();function E(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ns(n)}E.plugin=function(e,t){let i=!1;function s(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
31
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
32
|
+
https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new ns().version,a}let r;return Object.defineProperty(s,"postcss",{get(){return r||(r=s()),r}}),s.process=function(o,a,l){return E([s(l)]).process(o,a)},s};E.stringify=Ta;E.parse=Ma;E.fromJSON=Ea;E.list=Aa;E.comment=n=>new wn(n);E.atRule=n=>new gn(n);E.decl=n=>new yn(n);E.rule=n=>new vn(n);E.root=n=>new Sn(n);E.document=n=>new bn(n);E.CssSyntaxError=Ca;E.Declaration=yn;E.Container=xa;E.Processor=ns;E.Document=bn;E.Comment=wn;E.Warning=ka;E.AtRule=gn;E.Result=La;E.Input=_a;E.Rule=vn;E.Root=Sn;E.Node=Ra;Oa.registerPostcss(E);xn.exports=E;E.default=E});var Mn=x((dc,Rn)=>{"use strict";Rn.exports=On;function On(n,e,t){n instanceof RegExp&&(n=_n(n,t)),e instanceof RegExp&&(e=_n(e,t));var i=An(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function _n(n,e){var t=e.match(n);return t?t[0]:null}On.range=An;function An(n,e,t){var i,s,r,o,a,l=t.indexOf(n),h=t.indexOf(e,l+1),u=l;if(l>=0&&h>0){if(n===e)return[l,h];for(i=[],r=t.length;u>=0&&!a;)u==l?(i.push(u),l=t.indexOf(n,u+1)):i.length==1?a=[i.pop(),h]:(s=i.pop(),s<r&&(r=s,o=h),h=t.indexOf(e,u+1)),u=l<h&&l>=0?l:h;i.length&&(a=[r,o])}return a}});var In=x((mc,Fn)=>{var Ln=Mn();Fn.exports=Da;var Tn="\0SLASH"+Math.random()+"\0",kn="\0OPEN"+Math.random()+"\0",as="\0CLOSE"+Math.random()+"\0",Nn="\0COMMA"+Math.random()+"\0",Pn="\0PERIOD"+Math.random()+"\0";function ls(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Na(n){return n.split("\\\\").join(Tn).split("\\{").join(kn).split("\\}").join(as).split("\\,").join(Nn).split("\\.").join(Pn)}function Pa(n){return n.split(Tn).join("\\").split(kn).join("{").split(as).join("}").split(Nn).join(",").split(Pn).join(".")}function Dn(n){if(!n)return[""];var e=[],t=Ln("{","}",n);if(!t)return n.split(",");var i=t.pre,s=t.body,r=t.post,o=i.split(",");o[o.length-1]+="{"+s+"}";var a=Dn(r);return r.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Da(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),gt(Na(n),!0).map(Pa)):[]}function Fa(n){return"{"+n+"}"}function Ia(n){return/^-?0\d/.test(n)}function Ba(n,e){return n<=e}function Ua(n,e){return n>=e}function gt(n,e){var t=[],i=Ln("{","}",n);if(!i)return[n];var s=i.pre,r=i.post.length?gt(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<r.length;o++){var a=s+"{"+i.body+"}"+r[o];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),u=l||h,c=i.body.indexOf(",")>=0;if(!u&&!c)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+as+i.post,gt(n)):[n];var f;if(u)f=i.body.split(/\.\./);else if(f=Dn(i.body),f.length===1&&(f=gt(f[0],!1).map(Fa),f.length===1))return r.map(function(Se){return i.pre+f[0]+Se});var p;if(u){var w=ls(f[0]),d=ls(f[1]),m=Math.max(f[0].length,f[1].length),g=f.length==3?Math.abs(ls(f[2])):1,b=Ba,S=d<w;S&&(g*=-1,b=Ua);var v=f.some(Ia);p=[];for(var C=w;b(C,d);C+=g){var O;if(h)O=String.fromCharCode(C),O==="\\"&&(O="");else if(O=String(C),v){var W=m-O.length;if(W>0){var z=new Array(W+1).join("0");C<0?O="-"+z+O.slice(1):O=z+O}}p.push(O)}}else{p=[];for(var B=0;B<f.length;B++)p.push.apply(p,gt(f[B],!1))}for(var B=0;B<p.length;B++)for(var o=0;o<r.length;o++){var a=s+p[B]+r[o];(!e||u||a)&&t.push(a)}}return t}});var Xh={};No(Xh,{default:()=>Yh,processCssFiles:()=>Kh});module.exports=Po(Xh);var _=Ae(Cn(),1),os=_.default,ju=_.default.stringify,zu=_.default.fromJSON,Wu=_.default.plugin,qu=_.default.parse,Gu=_.default.list,Vu=_.default.document,Hu=_.default.comment,Qu=_.default.atRule,Ju=_.default.rule,Ku=_.default.decl,Yu=_.default.root,Xu=_.default.CssSyntaxError,Zu=_.default.Declaration,ec=_.default.Container,tc=_.default.Processor,ic=_.default.Document,sc=_.default.Comment,rc=_.default.Warning,nc=_.default.AtRule,oc=_.default.Result,lc=_.default.Input,ac=_.default.Rule,hc=_.default.Root,uc=_.default.Node;var he=Ae(require("fs"),1),ue=Ae(require("path"),1),ei=class{timestamp;fileMigrations=[];currentFile=null;reportDir=ue.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return ue.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let t=ue.resolve(e);return ue.relative(this.reportDir,t)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;he.existsSync(this.reportDir)||he.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),t=he.existsSync(e)?he.readFileSync(e,"utf8"):"",i=this.fileMigrations.map(r=>{let o=ue.basename(r.filePath),a=r.results.map(l=>{let h=l.line?` (line: ${l.line})`:"",u=l.status==="success"?"\u2705 success":l.status==="warning"?"\u26A0\uFE0F warning":"\u274C failure",c=l.failureReason?`
|
33
|
+
- reason: ${l.failureReason}`:"";return` - ${u} ${h}
|
34
|
+
- as-is: \`${l.previousToken}\`
|
35
|
+
- to-be: ${l.nextToken?`\`${l.nextToken}\``:"undefined"}${c}`}).join(`
|
36
|
+
`);return`### [${o}](${r.filePath})
|
37
|
+
- timestamp: ${this.timestamp}
|
38
|
+
- summary:
|
39
|
+
- total: ${r.results.length}
|
40
|
+
- success: ${r.results.filter(l=>l.status==="success").length}
|
41
|
+
- warning: ${r.results.filter(l=>l.status==="warning").length}
|
42
|
+
- failure: ${r.results.filter(l=>l.status==="failure").length}
|
43
|
+
- lines
|
44
|
+
${a}`}).join(`
|
45
|
+
|
46
|
+
`);he.writeFileSync(e,t+(t?`
|
47
|
+
|
48
|
+
`:"")+i)}};var En=[{previous:"$semantic.typography.h1",next:[],description:"Deprecated"},{previous:"$semantic.typography.h2",next:[],description:"Deprecated"},{previous:"$semantic.typography.h3",next:[],description:"Deprecated"},{previous:"$semantic.typography.h4",next:["t10Bold","screenTitle"],description:"\uC904\uAC04\uACA9 -0.1px"},{previous:"$semantic.typography.title1Bold",next:["t9Bold"],description:"\uC904\uAC04\uACA9 -0.4px"},{previous:"$semantic.typography.title1Regular",next:[],description:"Deprecated"},{previous:"$semantic.typography.title2Bold",next:["t7Bold"]},{previous:"$semantic.typography.title2Regular",next:["t7Regular"]},{previous:"$semantic.typography.title3Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.title3Regular",next:["t6Regular"]},{previous:"$semantic.typography.subtitle1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.subtitle2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyL1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL1Regular",next:["articleBody"]},{previous:"$semantic.typography.bodyL2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL2Regular",next:[],alternative:["t4Regular"],description:"Deprecated"},{previous:"$semantic.typography.bodyM1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyM2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.caption1Bold",next:["t3Bold"],description:"\uC904\uAC04\uACA9 -1.5px"},{previous:"$semantic.typography.caption1Regular",next:[],alternative:["t3Regular"],description:"Deprecated"},{previous:"$semantic.typography.caption2Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.caption2Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label1Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.label1Regular",next:["t6Regular"]},{previous:"$semantic.typography.label2Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label2Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label3Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label3Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label4Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label4Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label5Bold",next:["t1Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label5Regular",next:["t1Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label6Bold",next:[],alternative:["t1Bold"],description:"Deprecated"},{previous:"$semantic.typography.label6Regular",next:[],alternative:["t1Regular"],description:"Deprecated"}];var vi=require("node:fs"),Oo=require("node:path");var Gn=Ae(In(),1);var wt=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var $a={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},yt=n=>n.replace(/[[\]\\-]/g,"\\$&"),ja=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bn=n=>n.join(""),Un=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let i=[],s=[],r=t+1,o=!1,a=!1,l=!1,h=!1,u=t,c="";e:for(;r<n.length;){let d=n.charAt(r);if((d==="!"||d==="^")&&r===t+1){h=!0,r++;continue}if(d==="]"&&o&&!l){u=r+1;break}if(o=!0,d==="\\"&&!l){l=!0,r++;continue}if(d==="["&&!l){for(let[m,[g,b,S]]of Object.entries($a))if(n.startsWith(m,r)){if(c)return["$.",!1,n.length-t,!0];r+=m.length,S?s.push(g):i.push(g),a=a||b;continue e}}if(l=!1,c){d>c?i.push(yt(c)+"-"+yt(d)):d===c&&i.push(yt(d)),c="",r++;continue}if(n.startsWith("-]",r+1)){i.push(yt(d+"-")),r+=2;continue}if(n.startsWith("-",r+1)){c=d,r+=2;continue}i.push(yt(d)),r++}if(u<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,n.length-t,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!h){let d=i[0].length===2?i[0].slice(-1):i[0];return[ja(d),!1,u-t,!1]}let f="["+(h?"^":"")+Bn(i)+"]",p="["+(h?"":"^")+Bn(s)+"]";return[i.length&&s.length?"("+f+"|"+p+")":i.length?f:p,a,u-t,!0]};var Z=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var za=new Set(["!","?","+","*","@"]),$n=n=>za.has(n),Wa="(?!(?:^|/)\\.\\.?(?:$|/))",ti="(?!\\.)",qa=new Set(["[","."]),Ga=new Set(["..","."]),Va=new Set("().*{}+?[]^$\\!"),Ha=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hs="[^/]",jn=hs+"*?",zn=hs+"+?",Ie=class n{type;#e;#t;#n=!1;#s=[];#o;#S;#h;#c=!1;#l;#a;#r=!1;constructor(e,t,i={}){this.type=e,e&&(this.#t=!0),this.#o=t,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#h=this.#e===this?[]:this.#e.#h,e==="!"&&!this.#e.#c&&this.#h.push(this),this.#S=this.#o?this.#o.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#s)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#s.map(e=>String(e)).join("|")+")":this.#a=this.#s.map(e=>String(e)).join("")}#g(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#h.pop();){if(e.type!=="!")continue;let t=e,i=t.#o;for(;i;){for(let s=t.#S+1;!i.type&&s<i.#s.length;s++)for(let r of e.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(i.#s[s])}t=i,i=t.#o}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#o===this))throw new Error("invalid part: "+t);this.#s.push(t)}}toJSON(){var t;let e=this.type===null?this.#s.slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...this.#s.map(i=>i.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&((t=this.#o)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#e===this)return!0;if(!((t=this.#o)!=null&&t.isStart()))return!1;if(this.#S===0)return!0;let e=this.#o;for(let i=0;i<this.#S;i++){let s=e.#s[i];if(!(s instanceof n&&s.type==="!"))return!1}return!0}isEnd(){var t,i,s;if(this.#e===this||((t=this.#o)==null?void 0:t.type)==="!")return!0;if(!((i=this.#o)!=null&&i.isEnd()))return!1;if(!this.type)return(s=this.#o)==null?void 0:s.isEnd();let e=this.#o?this.#o.#s.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let i of this.#s)t.copyIn(i);return t}static#w(e,t,i,s){let r=!1,o=!1,a=-1,l=!1;if(t.type===null){let p=i,w="";for(;p<e.length;){let d=e.charAt(p++);if(r||d==="\\"){r=!r,w+=d;continue}if(o){p===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(p===a+2&&l)&&(o=!1),w+=d;continue}else if(d==="["){o=!0,a=p,l=!1,w+=d;continue}if(!s.noext&&$n(d)&&e.charAt(p)==="("){t.push(w),w="";let m=new n(d,t);p=n.#w(e,m,p,s),t.push(m);continue}w+=d}return t.push(w),p}let h=i+1,u=new n(null,t),c=[],f="";for(;h<e.length;){let p=e.charAt(h++);if(r||p==="\\"){r=!r,f+=p;continue}if(o){h===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(h===a+2&&l)&&(o=!1),f+=p;continue}else if(p==="["){o=!0,a=h,l=!1,f+=p;continue}if($n(p)&&e.charAt(h)==="("){u.push(f),f="";let w=new n(p,u);u.push(w),h=n.#w(e,w,h,s);continue}if(p==="|"){u.push(f),f="",c.push(u),u=new n(null,t);continue}if(p===")")return f===""&&t.#s.length===0&&(t.#r=!0),u.push(f),f="",t.push(...c,u),h;f+=p}return t.type=null,t.#t=void 0,t.#s=[e.substring(i-1)],h}static fromGlob(e,t={}){let i=new n(null,void 0,t);return n.#w(e,i,0,t),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,i,s,r]=this.toRegExpSource();if(!(s||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#l}toRegExpSource(e){var l;let t=e??!!this.#l.dot;if(this.#e===this&&this.#g(),!this.type){let h=this.isStart()&&this.isEnd(),u=this.#s.map(w=>{let[d,m,g,b]=typeof w=="string"?n.#f(w,this.#t,h):w.toRegExpSource(e);return this.#t=this.#t||g,this.#n=this.#n||b,d}).join(""),c="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&Ga.has(this.#s[0]))){let d=qa,m=t&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),g=!t&&!e&&d.has(u.charAt(0));c=m?Wa:g?ti:""}let f="";return this.isEnd()&&this.#e.#c&&((l=this.#o)==null?void 0:l.type)==="!"&&(f="(?:$|\\/)"),[c+u+f,Z(u),this.#t=!!this.#t,this.#n]}let i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#p(t);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let h=this.toString();return this.#s=[h],this.type=null,this.#t=void 0,[h,Z(this.toString()),!1,!1]}let o=!i||e||t||!ti?"":this.#p(!0);o===r&&(o=""),o&&(r=`(?:${r})(?:${o})*?`);let a="";if(this.type==="!"&&this.#r)a=(this.isStart()&&!t?ti:"")+zn;else{let h=this.type==="!"?"))"+(this.isStart()&&!t&&!e?ti:"")+jn+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+r+h}return[a,Z(r),this.#t=!!this.#t,this.#n]}#p(e){return this.#s.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[i,s,r,o]=t.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#f(e,t,i=!1){let s=!1,r="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(s){s=!1,r+=(Va.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?r+="\\\\":s=!0;continue}if(l==="["){let[h,u,c,f]=Un(e,a);if(c){r+=h,o=o||u,a+=c-1,t=t||f;continue}}if(l==="*"){i&&e==="*"?r+=zn:r+=jn,t=!0;continue}if(l==="?"){r+=hs,t=!0;continue}r+=Ha(l)}return[r,Z(e),!!t,o]}};var Be=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var $=(n,e,t={})=>(wt(e),!t.nocomment&&e.charAt(0)==="#"?!1:new G(e,t).match(n)),Qa=/^\*+([^+@!?\*\[\(]*)$/,Ja=n=>e=>!e.startsWith(".")&&e.endsWith(n),Ka=n=>e=>e.endsWith(n),Ya=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Xa=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Za=/^\*+\.\*+$/,eh=n=>!n.startsWith(".")&&n.includes("."),th=n=>n!=="."&&n!==".."&&n.includes("."),ih=/^\.\*+$/,sh=n=>n!=="."&&n!==".."&&n.startsWith("."),rh=/^\*+$/,nh=n=>n.length!==0&&!n.startsWith("."),oh=n=>n.length!==0&&n!=="."&&n!=="..",lh=/^\?+([^+@!?\*\[\(]*)?$/,ah=([n,e=""])=>{let t=Vn([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},hh=([n,e=""])=>{let t=Hn([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},uh=([n,e=""])=>{let t=Hn([n]);return e?i=>t(i)&&i.endsWith(e):t},ch=([n,e=""])=>{let t=Vn([n]);return e?i=>t(i)&&i.endsWith(e):t},Vn=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},Hn=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},Qn=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Wn={win32:{sep:"\\"},posix:{sep:"/"}},fh=Qn==="win32"?Wn.win32.sep:Wn.posix.sep;$.sep=fh;var D=Symbol("globstar **");$.GLOBSTAR=D;var ph="[^/]",dh=ph+"*?",mh="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",gh="(?:(?!(?:\\/|^)\\.).)*?",wh=(n,e={})=>t=>$(t,n,e);$.filter=wh;var Q=(n,e={})=>Object.assign({},n,e),yh=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return $;let e=$;return Object.assign((i,s,r={})=>e(i,s,Q(n,r)),{Minimatch:class extends e.Minimatch{constructor(s,r={}){super(s,Q(n,r))}static defaults(s){return e.defaults(Q(n,s)).Minimatch}},AST:class extends e.AST{constructor(s,r,o={}){super(s,r,Q(n,o))}static fromGlob(s,r={}){return e.AST.fromGlob(s,Q(n,r))}},unescape:(i,s={})=>e.unescape(i,Q(n,s)),escape:(i,s={})=>e.escape(i,Q(n,s)),filter:(i,s={})=>e.filter(i,Q(n,s)),defaults:i=>e.defaults(Q(n,i)),makeRe:(i,s={})=>e.makeRe(i,Q(n,s)),braceExpand:(i,s={})=>e.braceExpand(i,Q(n,s)),match:(i,s,r={})=>e.match(i,s,Q(n,r)),sep:e.sep,GLOBSTAR:D})};$.defaults=yh;var Jn=(n,e={})=>(wt(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,Gn.default)(n));$.braceExpand=Jn;var bh=(n,e={})=>new G(n,e).makeRe();$.makeRe=bh;var Sh=(n,e,t={})=>{let i=new G(e,t);return n=n.filter(s=>i.match(s)),i.options.nonull&&!n.length&&n.push(e),n};$.match=Sh;var qn=/[?*]|[+@!]\(.*?\)|\[|\]/,vh=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),G=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){wt(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Qn,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((r,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=r[0]===""&&r[1]===""&&(r[2]==="?"||!qn.test(r[2]))&&!qn.test(r[3]),h=/^[a-z]:/i.test(r[0]);if(l)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(h)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let o=this.set[r];o[0]===""&&o[1]===""&&this.globParts[r][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let s=0;s<e[i].length;s++)e[i][s]==="**"&&(e[i][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let s=i;for(;t[s+1]==="**";)s++;s!==i&&t.splice(i,s-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,s)=>{let r=i[i.length-1];return s==="**"&&r==="**"?i:s===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(i.pop(),i):(i.push(s),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let r=e[s];s===1&&r===""&&e[0]===""||(r==="."||r==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let s=e[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let o=s;for(;i[o+1]==="**";)o++;o>s&&i.splice(s+1,o-s);let a=i[s+1],l=i[s+2],h=i[s+3];if(a!==".."||!l||l==="."||l===".."||!h||h==="."||h==="..")continue;t=!0,i.splice(s,1);let u=i.slice(0);u[s]="**",e.push(u),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let r=0;for(;(r=i.indexOf("..",r+1))!==-1;){let o=i[r-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=r===1&&i[r+1]==="**"?["."]:[];i.splice(r-1,2,...l),i.length===0&&i.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){let s=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(s){e[t]=[],e[i]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let s=0,r=0,o=[],a="";for(;s<e.length&&r<t.length;)if(e[s]===t[r])o.push(a==="b"?t[r]:e[s]),s++,r++;else if(i&&e[s]==="**"&&t[r]===e[s+1])o.push(e[s]),s++;else if(i&&t[r]==="**"&&e[s]===t[r+1])o.push(t[r]),r++;else if(e[s]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,r++}else if(t[r]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[r]),s++,r++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,i=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){let s=this.options;if(this.isWindows){let d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),m=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),S=m?3:d?0:void 0,v=b?3:g?0:void 0;if(typeof S=="number"&&typeof v=="number"){let[C,O]=[e[S],t[v]];C.toLowerCase()===O.toLowerCase()&&(t[v]=C,v>S?t=t.slice(v):S>v&&(e=e.slice(S)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,h=t.length;o<l&&a<h;o++,a++){this.debug("matchOne loop");var u=t[a],c=e[o];if(this.debug(t,u,c),u===!1)return!1;if(u===D){this.debug("GLOBSTAR",[t,u,c]);var f=o,p=a+1;if(p===h){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;f<l;){var w=e[f];if(this.debug(`
|
49
|
+
globstar while`,e,f,t,p,w),this.matchOne(e.slice(f),t.slice(p),i))return this.debug("globstar found match!",f,l,w),!0;if(w==="."||w===".."||!s.dot&&w.charAt(0)==="."){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
|
50
|
+
>>> no match, partial?`,e,f,t,p),f===l))}let d;if(typeof u=="string"?(d=c===u,this.debug("string match",u,c,d)):(d=u.test(c),this.debug("pattern match",u,c,d)),!d)return!1}if(o===l&&a===h)return!0;if(o===l)return i;if(a===h)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Jn(this.pattern,this.options)}parse(e){wt(e);let t=this.options;if(e==="**")return D;if(e==="")return"";let i,s=null;(i=e.match(rh))?s=t.dot?oh:nh:(i=e.match(Qa))?s=(t.nocase?t.dot?Xa:Ya:t.dot?Ka:Ja)(i[1]):(i=e.match(lh))?s=(t.nocase?t.dot?hh:ah:t.dot?uh:ch)(i):(i=e.match(Za))?s=t.dot?th:eh:(i=e.match(ih))&&(s=sh);let r=Ie.fromGlob(e,this.options).toMMPattern();return s&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:s}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?dh:t.dot?mh:gh,s=new Set(t.nocase?["i"]:[]),r=e.map(l=>{let h=l.map(u=>{if(u instanceof RegExp)for(let c of u.flags.split(""))s.add(c);return typeof u=="string"?vh(u):u===D?D:u._src});return h.forEach((u,c)=>{let f=h[c+1],p=h[c-1];u!==D||p===D||(p===void 0?f!==void 0&&f!==D?h[c+1]="(?:\\/|"+i+"\\/)?"+f:h[c]=i:f===void 0?h[c-1]=p+"(?:\\/|"+i+")?":f!==D&&(h[c-1]=p+"(?:\\/|\\/"+i+"\\/)"+f,h[c+1]=D))}),h.filter(u=>u!==D).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];r="^"+o+r+a+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let r=this.set;this.debug(this.pattern,"set",r);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<r.length;a++){let l=r[a],h=s;if(i.matchBase&&l.length===1&&(h=[o]),this.matchOne(h,l,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return $.defaults(e).Minimatch}};$.AST=Ie;$.Minimatch=G;$.escape=Be;$.unescape=Z;var vo=require("node:url");var Ue=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Xn=new Set,us=typeof process=="object"&&process?process:{},Zn=(n,e,t,i)=>{typeof us.emitWarning=="function"?us.emitWarning(n,e,t,i):console.error(`[${t}] ${e}: ${n}`)},ii=globalThis.AbortController,Kn=globalThis.AbortSignal,Yn;if(typeof ii>"u"){Kn=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},ii=class{constructor(){e()}signal=new Kn;abort(i){var s,r;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let o of this.signal._onabort)o(i);(r=(s=this.signal).onabort)==null||r.call(s,i)}}};let n=((Yn=us.env)==null?void 0:Yn.LRU_CACHE_IGNORE_AC_WARNING)!=="1",e=()=>{n&&(n=!1,Zn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var xh=n=>!Xn.has(n),Dc=Symbol("type"),ge=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),eo=n=>ge(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?$e:null:null,$e=class extends Array{constructor(e){super(e),this.fill(0)}},cs=class n{heap;length;static#e=!1;static create(e){let t=eo(e);if(!t)return[];n.#e=!0;let i=new n(e,t);return n.#e=!1,i}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},bt=class n{#e;#t;#n;#s;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#h;#c;#l;#a;#r;#g;#w;#p;#f;#C;#m;#E;#_;#b;#v;#x;#d;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#b,sizes:e.#E,keyMap:e.#l,keyList:e.#a,valList:e.#r,next:e.#g,prev:e.#w,get head(){return e.#p},get tail(){return e.#f},free:e.#C,isBackgroundFetch:t=>e.#u(t),backgroundFetch:(t,i,s,r)=>e.#B(t,i,s,r),moveToTail:t=>e.#$(t),indexes:t=>e.#A(t),rindexes:t=>e.#R(t),isStale:t=>e.#y(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#h}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#s}constructor(e){let{max:t=0,ttl:i,ttlResolution:s=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:h,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:f,maxSize:p=0,maxEntrySize:w=0,sizeCalculation:d,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:C,ignoreFetchAbort:O}=e;if(t!==0&&!ge(t))throw new TypeError("max option must be a nonnegative integer");let W=t?eo(t):Array;if(!W)throw new Error("invalid max value: "+t);if(this.#e=t,this.#t=p,this.maxEntrySize=w||this.#t,this.sizeCalculation=d,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=g,m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=m,this.#x=!!m,this.#l=new Map,this.#a=new Array(t).fill(void 0),this.#r=new Array(t).fill(void 0),this.#g=new W(t),this.#w=new W(t),this.#p=0,this.#f=0,this.#C=cs.create(t),this.#h=0,this.#c=0,typeof h=="function"&&(this.#n=h),typeof u=="function"?(this.#s=u,this.#m=[]):(this.#s=void 0,this.#m=void 0),this.#v=!!this.#n,this.#d=!!this.#s,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!O,this.maxEntrySize!==0){if(this.#t!==0&&!ge(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!ge(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#L()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ge(s)||s===0?s:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!ge(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#M()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let z="LRU_CACHE_UNBOUNDED";xh(z)&&(Xn.add(z),Zn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,n))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#M(){let e=new $e(this.#e),t=new $e(this.#e);this.#b=e,this.#_=t,this.#k=(r,o,a=Ue.now())=>{if(t[r]=o!==0?a:0,e[r]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#y(r)&&this.#T(this.#a[r],"expire")},o+1);l.unref&&l.unref()}},this.#O=r=>{t[r]=e[r]!==0?Ue.now():0},this.#i=(r,o)=>{if(e[o]){let a=e[o],l=t[o];if(!a||!l)return;r.ttl=a,r.start=l,r.now=i||s();let h=r.now-l;r.remainingTTL=a-h}};let i=0,s=()=>{let r=Ue.now();if(this.ttlResolution>0){i=r;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#l.get(r);if(o===void 0)return 0;let a=e[o],l=t[o];if(!a||!l)return 1/0;let h=(i||s())-l;return a-h},this.#y=r=>{let o=t[r],a=e[r];return!!a&&!!o&&(i||s())-o>a}}#O=()=>{};#i=()=>{};#k=()=>{};#y=()=>!1;#L(){let e=new $e(this.#e);this.#c=0,this.#E=e,this.#N=t=>{this.#c-=e[t],e[t]=0},this.#D=(t,i,s,r)=>{if(this.#u(i))return 0;if(!ge(s))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(s=r(i,t),!ge(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#P=(t,i,s)=>{if(e[t]=i,this.#t){let r=this.#t-e[t];for(;this.#c>r;)this.#I(!0)}this.#c+=e[t],s&&(s.entrySize=i,s.totalCalculatedSize=this.#c)}}#N=e=>{};#P=(e,t,i)=>{};#D=(e,t,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#A({allowStale:e=this.allowStale}={}){if(this.#h)for(let t=this.#f;!(!this.#F(t)||((e||!this.#y(t))&&(yield t),t===this.#p));)t=this.#w[t]}*#R({allowStale:e=this.allowStale}={}){if(this.#h)for(let t=this.#p;!(!this.#F(t)||((e||!this.#y(t))&&(yield t),t===this.#f));)t=this.#g[t]}#F(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#A())this.#r[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#a[e],this.#r[e]])}*rentries(){for(let e of this.#R())this.#r[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#a[e],this.#r[e]])}*keys(){for(let e of this.#A()){let t=this.#a[e];t!==void 0&&!this.#u(this.#r[e])&&(yield t)}}*rkeys(){for(let e of this.#R()){let t=this.#a[e];t!==void 0&&!this.#u(this.#r[e])&&(yield t)}}*values(){for(let e of this.#A())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}*rvalues(){for(let e of this.#R())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#A()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;if(r!==void 0&&e(r,this.#a[i],this))return this.get(this.#a[i],t)}}forEach(e,t=this){for(let i of this.#A()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#a[i],this)}}rforEach(e,t=this){for(let i of this.#R()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#a[i],this)}}purgeStale(){let e=!1;for(let t of this.#R({allowStale:!0}))this.#y(t)&&(this.#T(this.#a[t],"expire"),e=!0);return e}info(e){let t=this.#l.get(e);if(t===void 0)return;let i=this.#r[t],s=this.#u(i)?i.__staleWhileFetching:i;if(s===void 0)return;let r={value:s};if(this.#b&&this.#_){let o=this.#b[t],a=this.#_[t];if(o&&a){let l=o-(Ue.now()-a);r.ttl=l,r.start=Date.now()}}return this.#E&&(r.size=this.#E[t]),r}dump(){let e=[];for(let t of this.#A({allowStale:!0})){let i=this.#a[t],s=this.#r[t],r=this.#u(s)?s.__staleWhileFetching:s;if(r===void 0||i===void 0)continue;let o={value:r};if(this.#b&&this.#_){o.ttl=this.#b[t];let a=Ue.now()-this.#_[t];o.start=Math.floor(Date.now()-a)}this.#E&&(o.size=this.#E[t]),e.unshift([i,o])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let s=Date.now()-i.start;i.start=Ue.now()-s}this.set(t,i.value,i)}}set(e,t,i={}){var f,p,w,d,m;if(t===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:h=this.noUpdateTTL}=i,u=this.#D(e,t,i.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#T(e,"set"),this;let c=this.#h===0?void 0:this.#l.get(e);if(c===void 0)c=this.#h===0?this.#f:this.#C.length!==0?this.#C.pop():this.#h===this.#e?this.#I(!1):this.#h,this.#a[c]=e,this.#r[c]=t,this.#l.set(e,c),this.#g[this.#f]=c,this.#w[c]=this.#f,this.#f=c,this.#h++,this.#P(c,u,l),l&&(l.set="add"),h=!1;else{this.#$(c);let g=this.#r[c];if(t!==g){if(this.#x&&this.#u(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:b}=g;b!==void 0&&!o&&(this.#v&&((f=this.#n)==null||f.call(this,b,e,"set")),this.#d&&((p=this.#m)==null||p.push([b,e,"set"])))}else o||(this.#v&&((w=this.#n)==null||w.call(this,g,e,"set")),this.#d&&((d=this.#m)==null||d.push([g,e,"set"])));if(this.#N(c),this.#P(c,u,l),this.#r[c]=t,l){l.set="replace";let b=g&&this.#u(g)?g.__staleWhileFetching:g;b!==void 0&&(l.oldValue=b)}}else l&&(l.set="update")}if(s!==0&&!this.#b&&this.#M(),this.#b&&(h||this.#k(c,s,r),l&&this.#i(l,c)),!o&&this.#d&&this.#m){let g=this.#m,b;for(;b=g==null?void 0:g.shift();)(m=this.#s)==null||m.call(this,...b)}return this}pop(){var e;try{for(;this.#h;){let t=this.#r[this.#p];if(this.#I(!0),this.#u(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#d&&this.#m){let t=this.#m,i;for(;i=t==null?void 0:t.shift();)(e=this.#s)==null||e.call(this,...i)}}}#I(e){var r,o;let t=this.#p,i=this.#a[t],s=this.#r[t];return this.#x&&this.#u(s)?s.__abortController.abort(new Error("evicted")):(this.#v||this.#d)&&(this.#v&&((r=this.#n)==null||r.call(this,s,i,"evict")),this.#d&&((o=this.#m)==null||o.push([s,i,"evict"]))),this.#N(t),e&&(this.#a[t]=void 0,this.#r[t]=void 0,this.#C.push(t)),this.#h===1?(this.#p=this.#f=0,this.#C.length=0):this.#p=this.#g[t],this.#l.delete(i),this.#h--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=t,r=this.#l.get(e);if(r!==void 0){let o=this.#r[r];if(this.#u(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#y(r))s&&(s.has="stale",this.#i(s,r));else return i&&this.#O(r),s&&(s.has="hit",this.#i(s,r)),!0}else s&&(s.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,s=this.#l.get(e);if(s===void 0||!i&&this.#y(s))return;let r=this.#r[s];return this.#u(r)?r.__staleWhileFetching:r}#B(e,t,i,s){let r=t===void 0?void 0:this.#r[t];if(this.#u(r))return r;let o=new ii,{signal:a}=i;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:s},h=(d,m=!1)=>{let{aborted:g}=o.signal,b=i.ignoreFetchAbort&&d!==void 0;if(i.status&&(g&&!m?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),g&&!b&&!m)return c(o.signal.reason);let S=p;return this.#r[t]===p&&(d===void 0?S.__staleWhileFetching?this.#r[t]=S.__staleWhileFetching:this.#T(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,d,l.options))),d},u=d=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=d),c(d)),c=d=>{let{aborted:m}=o.signal,g=m&&i.allowStaleOnFetchAbort,b=g||i.allowStaleOnFetchRejection,S=b||i.noDeleteOnFetchRejection,v=p;if(this.#r[t]===p&&(!S||v.__staleWhileFetching===void 0?this.#T(e,"fetch"):g||(this.#r[t]=v.__staleWhileFetching)),b)return i.status&&v.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),v.__staleWhileFetching;if(v.__returned===v)throw d},f=(d,m)=>{var b;let g=(b=this.#o)==null?void 0:b.call(this,e,r,l);g&&g instanceof Promise&&g.then(S=>d(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(d(void 0),i.allowStaleOnFetchAbort&&(d=S=>h(S,!0)))})};i.status&&(i.status.fetchDispatched=!0);let p=new Promise(f).then(h,u),w=Object.assign(p,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return t===void 0?(this.set(e,w,{...l.options,status:void 0}),t=this.#l.get(e)):this.#r[t]=w,w}#u(e){if(!this.#x)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof ii}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:d,forceRefresh:m=!1,status:g,signal:b}=t;if(!this.#x)return g&&(g.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:g});let S={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:h,noUpdateTTL:u,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:w,ignoreFetchAbort:p,status:g,signal:b},v=this.#l.get(e);if(v===void 0){g&&(g.fetch="miss");let C=this.#B(e,v,S,d);return C.__returned=C}else{let C=this.#r[v];if(this.#u(C)){let Se=i&&C.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",Se&&(g.returnedStale=!0)),Se?C.__staleWhileFetching:C.__returned=C}let O=this.#y(v);if(!m&&!O)return g&&(g.fetch="hit"),this.#$(v),s&&this.#O(v),g&&this.#i(g,v),C;let W=this.#B(e,v,S,d),B=W.__staleWhileFetching!==void 0&&i;return g&&(g.fetch=O?"stale":"refresh",B&&O&&(g.returnedStale=!0)),B?W.__staleWhileFetching:W.__returned=W}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:r,...o}=t,a=this.get(e,o);if(!r&&a!==void 0)return a;let l=i(e,a,{options:o,context:s});return this.set(e,l,o),l}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=t,a=this.#l.get(e);if(a!==void 0){let l=this.#r[a],h=this.#u(l);return o&&this.#i(o,a),this.#y(a)?(o&&(o.get="stale"),h?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(r||this.#T(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),h?l.__staleWhileFetching:(this.#$(a),s&&this.#O(a),l))}else o&&(o.get="miss")}#U(e,t){this.#w[t]=e,this.#g[e]=t}#$(e){e!==this.#f&&(e===this.#p?this.#p=this.#g[e]:this.#U(this.#w[e],this.#g[e]),this.#U(this.#f,e),this.#f=e)}delete(e){return this.#T(e,"delete")}#T(e,t){var s,r,o,a;let i=!1;if(this.#h!==0){let l=this.#l.get(e);if(l!==void 0)if(i=!0,this.#h===1)this.#j(t);else{this.#N(l);let h=this.#r[l];if(this.#u(h)?h.__abortController.abort(new Error("deleted")):(this.#v||this.#d)&&(this.#v&&((s=this.#n)==null||s.call(this,h,e,t)),this.#d&&((r=this.#m)==null||r.push([h,e,t]))),this.#l.delete(e),this.#a[l]=void 0,this.#r[l]=void 0,l===this.#f)this.#f=this.#w[l];else if(l===this.#p)this.#p=this.#g[l];else{let u=this.#w[l];this.#g[u]=this.#g[l];let c=this.#g[l];this.#w[c]=this.#w[l]}this.#h--,this.#C.push(l)}}if(this.#d&&((o=this.#m)!=null&&o.length)){let l=this.#m,h;for(;h=l==null?void 0:l.shift();)(a=this.#s)==null||a.call(this,...h)}return i}clear(){return this.#j("delete")}#j(e){var t,i,s;for(let r of this.#R({allowStale:!0})){let o=this.#r[r];if(this.#u(o))o.__abortController.abort(new Error("deleted"));else{let a=this.#a[r];this.#v&&((t=this.#n)==null||t.call(this,o,a,e)),this.#d&&((i=this.#m)==null||i.push([o,a,e]))}}if(this.#l.clear(),this.#r.fill(void 0),this.#a.fill(void 0),this.#b&&this.#_&&(this.#b.fill(0),this.#_.fill(0)),this.#E&&this.#E.fill(0),this.#p=0,this.#f=0,this.#C.length=0,this.#c=0,this.#h=0,this.#d&&this.#m){let r=this.#m,o;for(;o=r==null?void 0:r.shift();)(s=this.#s)==null||s.call(this,...o)}}};var We=require("node:path"),uo=require("node:url"),oe=require("fs"),kh=Ae(require("node:fs"),1),be=require("node:fs/promises");var hi=require("node:events"),ys=Ae(require("node:stream"),1),no=require("node:string_decoder"),to=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ch=n=>!!n&&typeof n=="object"&&(n instanceof ye||n instanceof ys.default||Eh(n)||_h(n)),Eh=n=>!!n&&typeof n=="object"&&n instanceof hi.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==ys.default.Writable.prototype.pipe,_h=n=>!!n&&typeof n=="object"&&n instanceof hi.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function",ce=Symbol("EOF"),fe=Symbol("maybeEmitEnd"),we=Symbol("emittedEnd"),si=Symbol("emittingEnd"),St=Symbol("emittedError"),ri=Symbol("closed"),io=Symbol("read"),ni=Symbol("flush"),so=Symbol("flushChunk"),ee=Symbol("encoding"),je=Symbol("decoder"),T=Symbol("flowing"),vt=Symbol("paused"),ze=Symbol("resume"),k=Symbol("buffer"),j=Symbol("pipes"),N=Symbol("bufferLength"),fs=Symbol("bufferPush"),oi=Symbol("bufferShift"),F=Symbol("objectMode"),M=Symbol("destroyed"),ps=Symbol("error"),ds=Symbol("emitData"),ro=Symbol("emitEnd"),ms=Symbol("emitEnd2"),re=Symbol("async"),gs=Symbol("abort"),li=Symbol("aborted"),xt=Symbol("signal"),_e=Symbol("dataListeners"),V=Symbol("discarded"),Ct=n=>Promise.resolve().then(n),Oh=n=>n(),Ah=n=>n==="end"||n==="finish"||n==="prefinish",Rh=n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,Mh=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),ai=class{src;dest;opts;ondrain;constructor(e,t,i){this.src=e,this.dest=t,this.opts=i,this.ondrain=()=>e[ze](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ws=class extends ai{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,i){super(e,t,i),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},Lh=n=>!!n.objectMode,Th=n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer",ye=class extends hi.EventEmitter{[T]=!1;[vt]=!1;[j]=[];[k]=[];[F];[ee];[re];[je];[ce]=!1;[we]=!1;[si]=!1;[ri]=!1;[St]=null;[N]=0;[M]=!1;[xt];[li]=!1;[_e]=0;[V]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Lh(t)?(this[F]=!0,this[ee]=null):Th(t)?(this[ee]=t.encoding,this[F]=!1):(this[F]=!1,this[ee]=null),this[re]=!!t.async,this[je]=this[ee]?new no.StringDecoder(this[ee]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[k]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[j]});let{signal:i}=t;i&&(this[xt]=i,i.aborted?this[gs]():i.addEventListener("abort",()=>this[gs]()))}get bufferLength(){return this[N]}get encoding(){return this[ee]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[F]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[re]}set async(e){this[re]=this[re]||!!e}[gs](){var e,t;this[li]=!0,this.emit("abort",(e=this[xt])==null?void 0:e.reason),this.destroy((t=this[xt])==null?void 0:t.reason)}get aborted(){return this[li]}set aborted(e){}write(e,t,i){var r;if(this[li])return!1;if(this[ce])throw new Error("write after end");if(this[M])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8");let s=this[re]?Ct:Oh;if(!this[F]&&!Buffer.isBuffer(e)){if(Mh(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Rh(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[F]?(this[T]&&this[N]!==0&&this[ni](!0),this[T]?this.emit("data",e):this[fs](e),this[N]!==0&&this.emit("readable"),i&&s(i),this[T]):e.length?(typeof e=="string"&&!(t===this[ee]&&!((r=this[je])!=null&&r.lastNeed))&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[ee]&&(e=this[je].write(e)),this[T]&&this[N]!==0&&this[ni](!0),this[T]?this.emit("data",e):this[fs](e),this[N]!==0&&this.emit("readable"),i&&s(i),this[T]):(this[N]!==0&&this.emit("readable"),i&&s(i),this[T])}read(e){if(this[M])return null;if(this[V]=!1,this[N]===0||e===0||e&&e>this[N])return this[fe](),null;this[F]&&(e=null),this[k].length>1&&!this[F]&&(this[k]=[this[ee]?this[k].join(""):Buffer.concat(this[k],this[N])]);let t=this[io](e||null,this[k][0]);return this[fe](),t}[io](e,t){if(this[F])this[oi]();else{let i=t;e===i.length||e===null?this[oi]():typeof i=="string"?(this[k][0]=i.slice(e),t=i.slice(0,e),this[N]-=e):(this[k][0]=i.subarray(e),t=i.subarray(0,e),this[N]-=e)}return this.emit("data",t),!this[k].length&&!this[ce]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t="utf8"),e!==void 0&&this.write(e,t),i&&this.once("end",i),this[ce]=!0,this.writable=!1,(this[T]||!this[vt])&&this[fe](),this}[ze](){this[M]||(!this[_e]&&!this[j].length&&(this[V]=!0),this[vt]=!1,this[T]=!0,this.emit("resume"),this[k].length?this[ni]():this[ce]?this[fe]():this.emit("drain"))}resume(){return this[ze]()}pause(){this[T]=!1,this[vt]=!0,this[V]=!1}get destroyed(){return this[M]}get flowing(){return this[T]}get paused(){return this[vt]}[fs](e){this[F]?this[N]+=1:this[N]+=e.length,this[k].push(e)}[oi](){return this[F]?this[N]-=1:this[N]-=this[k][0].length,this[k].shift()}[ni](e=!1){do;while(this[so](this[oi]())&&this[k].length);!e&&!this[k].length&&!this[ce]&&this.emit("drain")}[so](e){return this.emit("data",e),this[T]}pipe(e,t){if(this[M])return e;this[V]=!1;let i=this[we];return t=t||{},e===to.stdout||e===to.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,i?t.end&&e.end():(this[j].push(t.proxyErrors?new ws(this,e,t):new ai(this,e,t)),this[re]?Ct(()=>this[ze]()):this[ze]()),e}unpipe(e){let t=this[j].find(i=>i.dest===e);t&&(this[j].length===1?(this[T]&&this[_e]===0&&(this[T]=!1),this[j]=[]):this[j].splice(this[j].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let i=super.on(e,t);if(e==="data")this[V]=!1,this[_e]++,!this[j].length&&!this[T]&&this[ze]();else if(e==="readable"&&this[N]!==0)super.emit("readable");else if(Ah(e)&&this[we])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[St]){let s=t;this[re]?Ct(()=>s.call(this,this[St])):s.call(this,this[St])}return i}removeListener(e,t){return this.off(e,t)}off(e,t){let i=super.off(e,t);return e==="data"&&(this[_e]=this.listeners("data").length,this[_e]===0&&!this[V]&&!this[j].length&&(this[T]=!1)),i}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[_e]=0,!this[V]&&!this[j].length&&(this[T]=!1)),t}get emittedEnd(){return this[we]}[fe](){!this[si]&&!this[we]&&!this[M]&&this[k].length===0&&this[ce]&&(this[si]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ri]&&this.emit("close"),this[si]=!1)}emit(e,...t){let i=t[0];if(e!=="error"&&e!=="close"&&e!==M&&this[M])return!1;if(e==="data")return!this[F]&&!i?!1:this[re]?(Ct(()=>this[ds](i)),!0):this[ds](i);if(e==="end")return this[ro]();if(e==="close"){if(this[ri]=!0,!this[we]&&!this[M])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(e==="error"){this[St]=i,super.emit(ps,i);let r=!this[xt]||this.listeners("error").length?super.emit("error",i):!1;return this[fe](),r}else if(e==="resume"){let r=super.emit("resume");return this[fe](),r}else if(e==="finish"||e==="prefinish"){let r=super.emit(e);return this.removeAllListeners(e),r}let s=super.emit(e,...t);return this[fe](),s}[ds](e){for(let i of this[j])i.dest.write(e)===!1&&this.pause();let t=this[V]?!1:super.emit("data",e);return this[fe](),t}[ro](){return this[we]?!1:(this[we]=!0,this.readable=!1,this[re]?(Ct(()=>this[ms]()),!0):this[ms]())}[ms](){if(this[je]){let t=this[je].end();if(t){for(let i of this[j])i.dest.write(t);this[V]||super.emit("data",t)}}for(let t of this[j])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[F]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[F]||(e.dataLength+=i.length)}),await t,e}async concat(){if(this[F])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[ee]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(M,()=>t(new Error("stream destroyed"))),this.on("error",i=>t(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[V]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[ce])return t();let r,o,a=c=>{this.off("data",l),this.off("end",h),this.off(M,u),t(),o(c)},l=c=>{this.off("error",a),this.off("end",h),this.off(M,u),this.pause(),r({value:c,done:!!this[ce]})},h=()=>{this.off("error",a),this.off("data",l),this.off(M,u),t(),r({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((c,f)=>{o=f,r=c,this.once(M,u),this.once("error",a),this.once("end",h),this.once("data",l)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[V]=!1;let e=!1,t=()=>(this.pause(),this.off(ps,t),this.off(M,t),this.off("end",t),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return t();let s=this.read();return s===null?t():{done:!1,value:s}};return this.once("end",t),this.once(ps,t),this.once(M,t),{next:i,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[M])return e?this.emit("error",e):this.emit(M),this;this[M]=!0,this[V]=!0,this[k].length=0,this[N]=0;let t=this;return typeof t.close=="function"&&!this[ri]&&t.close(),e?this.emit("error",e):this.emit(M),this}static get isStream(){return Ch}};var Nh=oe.realpathSync.native,_t={lstatSync:oe.lstatSync,readdir:oe.readdir,readdirSync:oe.readdirSync,readlinkSync:oe.readlinkSync,realpathSync:Nh,promises:{lstat:be.lstat,readdir:be.readdir,readlink:be.readlink,realpath:be.realpath}},co=n=>!n||n===_t||n===kh?_t:{..._t,...n,promises:{..._t.promises,...n.promises||{}}},fo=/^\\\\\?\\([a-z]:)\\?$/i,Ph=n=>n.replace(/\//g,"\\").replace(fo,"$1\\"),Dh=/[\\\/]/,K=0,po=1,mo=2,ne=4,go=6,wo=8,Oe=10,yo=12,J=15,Et=~J,bs=16,oo=32,Ot=64,te=128,ui=256,fi=512,lo=Ot|te|fi,Fh=1023,Ss=n=>n.isFile()?wo:n.isDirectory()?ne:n.isSymbolicLink()?Oe:n.isCharacterDevice()?mo:n.isBlockDevice()?go:n.isSocket()?yo:n.isFIFO()?po:K,ao=new Map,At=n=>{let e=ao.get(n);if(e)return e;let t=n.normalize("NFKD");return ao.set(n,t),t},ho=new Map,ci=n=>{let e=ho.get(n);if(e)return e;let t=At(n.toLowerCase());return ho.set(n,t),t},pi=class extends bt{constructor(){super({max:256})}},vs=class extends bt{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},bo=Symbol("PathScurry setAsCwd"),I=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#s;get nlink(){return this.#s}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#h;get rdev(){return this.#h}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#r;get blocks(){return this.#r}#g;get atimeMs(){return this.#g}#w;get mtimeMs(){return this.#w}#p;get ctimeMs(){return this.#p}#f;get birthtimeMs(){return this.#f}#C;get atime(){return this.#C}#m;get mtime(){return this.#m}#E;get ctime(){return this.#E}#_;get birthtime(){return this.#_}#b;#v;#x;#d;#M;#O;#i;#k;#y;#L;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=K,i,s,r,o,a){this.name=e,this.#b=r?ci(e):At(e),this.#i=t&Fh,this.nocase=r,this.roots=s,this.root=i||this,this.#k=o,this.#x=a.fullpath,this.#M=a.relative,this.#O=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=co(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#k}resolve(e){if(!e)return this;let t=this.getRootString(e),s=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#N(s):this.#N(s)}#N(e){let t=this;for(let i of e)t=t.child(i);return t}children(){let e=this.#k.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#k.set(this,t),this.#i&=~bs,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),s=this.nocase?ci(e):At(e);for(let l of i)if(l.#b===s)return l;let r=this.parent?this.sep:"",o=this.#x?this.#x+r+e:void 0,a=this.newChild(e,K,{...t,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=te),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#M!==void 0)return this.#M;let e=this.name,t=this.parent;if(!t)return this.#M=this.name;let i=t.relative();return i+(!i||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let e=this.name,t=this.parent;if(!t)return this.#O=this.fullpathPosix();let i=t.relativePosix();return i+(!i||!t.parent?"":"/")+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let s=t.fullpath()+(t.parent?this.sep:"")+e;return this.#x=s}fullpathPosix(){if(this.#d!==void 0)return this.#d;if(this.sep==="/")return this.#d=this.fullpath();if(!this.parent){let s=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(s)?this.#d=`//?/${s}`:this.#d=s}let e=this.parent,t=e.fullpathPosix(),i=t+(!t||!e.parent?"":"/")+this.name;return this.#d=i}isUnknown(){return(this.#i&J)===K}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&J)===wo}isDirectory(){return(this.#i&J)===ne}isCharacterDevice(){return(this.#i&J)===mo}isBlockDevice(){return(this.#i&J)===go}isFIFO(){return(this.#i&J)===po}isSocket(){return(this.#i&J)===yo}isSymbolicLink(){return(this.#i&Oe)===Oe}lstatCached(){return this.#i&oo?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#L}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let e=this.#i&J;return!(e!==K&&e!==Oe||this.#i&ui||this.#i&te)}calledReaddir(){return!!(this.#i&bs)}isENOENT(){return!!(this.#i&te)}isNamed(e){return this.nocase?this.#b===ci(e):this.#b===At(e)}async readlink(){var t;let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=await this.#e.promises.readlink(this.fullpath()),s=(t=await this.parent.realpath())==null?void 0:t.resolve(i);if(s)return this.#y=s}catch(i){this.#u(i.code);return}}readlinkSync(){var t;let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=this.#e.readlinkSync(this.fullpath()),s=(t=this.parent.realpathSync())==null?void 0:t.resolve(i);if(s)return this.#y=s}catch(i){this.#u(i.code);return}}#P(e){this.#i|=bs;for(let t=e.provisional;t<e.length;t++){let i=e[t];i&&i.#D()}}#D(){this.#i&te||(this.#i=(this.#i|te)&Et,this.#A())}#A(){let e=this.children();e.provisional=0;for(let t of e)t.#D()}#R(){this.#i|=fi,this.#F()}#F(){if(this.#i&Ot)return;let e=this.#i;(e&J)===ne&&(e&=Et),this.#i=e|Ot,this.#A()}#I(e=""){e==="ENOTDIR"||e==="EPERM"?this.#F():e==="ENOENT"?this.#D():this.children().provisional=0}#B(e=""){e==="ENOTDIR"?this.parent.#F():e==="ENOENT"&&this.#D()}#u(e=""){let t=this.#i;t|=ui,e==="ENOENT"&&(t|=te),(e==="EINVAL"||e==="UNKNOWN")&&(t&=Et),this.#i=t,e==="ENOTDIR"&&this.parent&&this.parent.#F()}#U(e,t){return this.#T(e,t)||this.#$(e,t)}#$(e,t){let i=Ss(e),s=this.newChild(e.name,i,{parent:this}),r=s.#i&J;return r!==ne&&r!==Oe&&r!==K&&(s.#i|=Ot),t.unshift(s),t.provisional++,s}#T(e,t){for(let i=t.provisional;i<t.length;i++){let s=t[i];if((this.nocase?ci(e.name):At(e.name))===s.#b)return this.#j(e,s,i,t)}}#j(e,t,i,s){let r=t.name;return t.#i=t.#i&Et|Ss(e),r!==e.name&&(t.name=e.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(t)),s.provisional++,t}async lstat(){if((this.#i&te)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#B(e.code)}}lstatSync(){if((this.#i&te)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#B(e.code)}}#G(e){let{atime:t,atimeMs:i,birthtime:s,birthtimeMs:r,blksize:o,blocks:a,ctime:l,ctimeMs:h,dev:u,gid:c,ino:f,mode:p,mtime:w,mtimeMs:d,nlink:m,rdev:g,size:b,uid:S}=e;this.#C=t,this.#g=i,this.#_=s,this.#f=r,this.#c=o,this.#r=a,this.#E=l,this.#p=h,this.#t=u,this.#S=c,this.#l=f,this.#n=p,this.#m=w,this.#w=d,this.#s=m,this.#h=g,this.#a=b,this.#o=S;let v=Ss(e);this.#i=this.#i&Et|v|oo,v!==K&&v!==ne&&v!==Oe&&(this.#i|=Ot)}#W=[];#q=!1;#V(e){this.#q=!1;let t=this.#W.slice();this.#W.length=0,t.forEach(i=>i(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let r=i.slice(0,i.provisional);t?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#W.push(e),this.#q)return;this.#q=!0;let s=this.fullpath();this.#e.readdir(s,{withFileTypes:!0},(r,o)=>{if(r)this.#I(r.code),i.provisional=0;else{for(let a of o)this.#U(a,i);this.#P(i)}this.#V(i.slice(0,i.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#z)await this.#z;else{let i=()=>{};this.#z=new Promise(s=>i=s);try{for(let s of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#U(s,e);this.#P(e)}catch(s){this.#I(s.code),e.provisional=0}this.#z=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let i of this.#e.readdirSync(t,{withFileTypes:!0}))this.#U(i,e);this.#P(e)}catch(i){this.#I(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&lo)return!1;let e=J&this.#i;return e===K||e===ne||e===Oe}shouldWalk(e,t){return(this.#i&ne)===ne&&!(this.#i&lo)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#L)return this.#L;if(!((fi|ui|te)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#L=this.resolve(e)}catch{this.#R()}}realpathSync(){if(this.#L)return this.#L;if(!((fi|ui|te)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#L=this.resolve(e)}catch{this.#R()}}[bo](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),i=[],s=this;for(;s&&s.parent;)t.add(s),s.#M=i.join(this.sep),s.#O=i.join("/"),s=s.parent,i.push("..");for(s=e;s&&s.parent&&!t.has(s);)s.#M=void 0,s.#O=void 0,s=s.parent}},di=class n extends I{sep="\\";splitSep=Dh;constructor(e,t=K,i,s,r,o,a){super(e,t,i,s,r,o,a)}newChild(e,t=K,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return We.win32.parse(e).root}getRoot(e){if(e=Ph(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,i]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=i;return this.roots[e]=new qe(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(fo,"$1\\"),e===t}},mi=class n extends I{splitSep="/";sep="/";constructor(e,t=K,i,s,r,o,a){super(e,t,i,s,r,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=K,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}},gi=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#s;constructor(e=process.cwd(),t,i,{nocase:s,childrenCacheSize:r=16*1024,fs:o=_t}={}){this.#s=co(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,uo.fileURLToPath)(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new pi,this.#t=new pi,this.#n=new vs(r);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),s===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let h=this.root,u=l.length-1,c=t.sep,f=this.rootPath,p=!1;for(let w of l){let d=u--;h=h.child(w,{relative:new Array(d).fill("..").join(c),relativePosix:new Array(d).fill("..").join("/"),fullpath:f+=(p?"":c)+w}),p=!0}this.cwd=h}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){let o=e[r];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#e.get(t);if(i!==void 0)return i;let s=this.cwd.resolve(t).fullpath();return this.#e.set(t,s),s}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){let o=e[r];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#t.get(t);if(i!==void 0)return i;let s=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,s),s}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i}=t;if(e.canReaddir()){let s=await e.readdir();return i?s:s.map(r=>r.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0}=t;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(s=>s.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=await e.readlink();return t?i:i==null?void 0:i.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return t?i:i==null?void 0:i.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=await e.realpath();return t?i:i==null?void 0:i.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return t?i:i==null?void 0:i.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=[];(!r||r(e))&&a.push(i?e:e.fullpath());let l=new Set,h=(c,f)=>{l.add(c),c.readdirCB((p,w)=>{if(p)return f(p);let d=w.length;if(!d)return f();let m=()=>{--d===0&&f()};for(let g of w)(!r||r(g))&&a.push(i?g:g.fullpath()),s&&g.isSymbolicLink()?g.realpath().then(b=>b!=null&&b.isUnknown()?b.lstat():b).then(b=>b!=null&&b.shouldWalk(l,o)?h(b,m):m()):g.shouldWalk(l,o)?h(g,m):m()},!0)},u=e;return new Promise((c,f)=>{h(u,p=>{if(p)return f(p);c(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=[];(!r||r(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let h of l){let u=h.readdirSync();for(let c of u){(!r||r(c))&&a.push(i?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(s&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(l,o)&&l.add(f)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t;(!r||r(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let h=l.readdirSync();for(let u of h){(!r||r(u))&&(yield i?u:u.fullpath());let c=u;if(u.isSymbolicLink()){if(!(s&&(c=u.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=new ye({objectMode:!0});(!r||r(e))&&a.write(i?e:e.fullpath());let l=new Set,h=[e],u=0,c=()=>{let f=!1;for(;!f;){let p=h.shift();if(!p){u===0&&a.end();return}u++,l.add(p);let w=(m,g,b=!1)=>{if(m)return a.emit("error",m);if(s&&!b){let S=[];for(let v of g)v.isSymbolicLink()&&S.push(v.realpath().then(C=>C!=null&&C.isUnknown()?C.lstat():C));if(S.length){Promise.all(S).then(()=>w(null,g,!0));return}}for(let S of g)S&&(!r||r(S))&&(a.write(i?S:S.fullpath())||(f=!0));u--;for(let S of g){let v=S.realpathCached()||S;v.shouldWalk(l,o)&&h.push(v)}f&&!a.flowing?a.once("drain",c):d||c()},d=!0;p.readdirCB(w,!0),d=!1}};return c(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=new ye({objectMode:!0}),l=new Set;(!r||r(e))&&a.write(i?e:e.fullpath());let h=[e],u=0,c=()=>{let f=!1;for(;!f;){let p=h.shift();if(!p){u===0&&a.end();return}u++,l.add(p);let w=p.readdirSync();for(let d of w)(!r||r(d))&&(a.write(i?d:d.fullpath())||(f=!0));u--;for(let d of w){let m=d;if(d.isSymbolicLink()){if(!(s&&(m=d.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(l,o)&&h.push(m)}}f&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[bo](t)}},qe=class extends gi{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,We.win32,"\\",{...t,nocase:i}),this.nocase=i;for(let s=this.cwd;s;s=s.parent)s.nocase=this.nocase}parseRootPath(e){return We.win32.parse(e).root.toUpperCase()}newRoot(e){return new di(this.rootPath,ne,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},Ge=class extends gi{sep="/";constructor(e=process.cwd(),t={}){let{nocase:i=!1}=t;super(e,We.posix,"/",{...t,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new mi(this.rootPath,ne,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},Rt=class extends Ge{constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,{...t,nocase:i})}},$c=process.platform==="win32"?di:mi,So=process.platform==="win32"?qe:process.platform==="darwin"?Rt:Ge;var Ih=n=>n.length>=1,Bh=n=>n.length>=1,Ve=class n{#e;#t;#n;length;#s;#o;#S;#h;#c;#l;#a=!0;constructor(e,t,i,s){if(!Ih(e))throw new TypeError("empty pattern list");if(!Bh(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#n=i,this.#s=s,this.#n===0){if(this.isUNC()){let[r,o,a,l,...h]=this.#e,[u,c,f,p,...w]=this.#t;h[0]===""&&(h.shift(),w.shift());let d=[r,o,a,l,""].join("/"),m=[u,c,f,p,""].join("/");this.#e=[d,...h],this.#t=[m,...w],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[r,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let h=r+"/",u=a+"/";this.#e=[h,...o],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===D}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new n(this.#e,this.#t,this.#n+1,this.#s),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#h=this.#h,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#s==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#s==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};var Uh=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",He=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:i,noext:s,noglobstar:r,platform:o=Uh}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:i,noext:s,noglobstar:r,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let t=new G(e,this.mmopts);for(let i=0;i<t.set.length;i++){let s=t.set[i],r=t.globParts[i];if(!s||!r)throw new Error("invalid pattern object");for(;s[0]==="."&&r[0]===".";)s.shift(),r.shift();let o=new Ve(s,r,0,this.platform),a=new G(o.globString(),this.mmopts),l=r[r.length-1]==="**",h=o.isAbsolute();h?this.absolute.push(a):this.relative.push(a),l&&(h?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),i=`${t}/`,s=e.relative()||".",r=`${s}/`;for(let o of this.relative)if(o.match(s)||o.match(r))return!0;for(let o of this.absolute)if(o.match(t)||o.match(i))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(i))return!0;for(let s of this.absoluteChildren)if(s.match(t))return!0;return!1}};var xs=class n{store;constructor(e=new Map){this.store=e}copy(){return new n(new Map(this.store))}hasWalked(e,t){var i;return(i=this.store.get(e.fullpath()))==null?void 0:i.has(t.globString())}storeWalked(e,t){let i=e.fullpath(),s=this.store.get(i);s?s.add(t.globString()):this.store.set(i,new Set([t.globString()]))}},Cs=class{store=new Map;add(e,t,i){let s=(t?2:0)|(i?1:0),r=this.store.get(e);this.store.set(e,r===void 0?s:s&r)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},Es=class{store=new Map;add(e,t){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(s=>s.globString()===t.globString())||i.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},Mt=class n{hasWalkedCache;matches=new Cs;subwalks=new Es;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new xs}processPatterns(e,t){this.patterns=t;let i=t.map(s=>[e,s]);for(let[s,r]of i){this.hasWalkedCache.storeWalked(s,r);let o=r.root(),a=r.isAbsolute()&&this.opts.absolute!==!1;if(o){s=s.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=r.rest();if(c)r=c;else{this.matches.add(s,!0,!1);continue}}if(s.isENOENT())continue;let l,h,u=!1;for(;typeof(l=r.pattern())=="string"&&(h=r.rest());)s=s.resolve(l),r=h,u=!0;if(l=r.pattern(),h=r.rest(),u){if(this.hasWalkedCache.hasWalked(s,r))continue;this.hasWalkedCache.storeWalked(s,r)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(s.resolve(l),a,c);continue}else if(l===D){(!s.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(s,r);let c=h==null?void 0:h.pattern(),f=h==null?void 0:h.rest();if(!h||(c===""||c===".")&&!f)this.matches.add(s,a,c===""||c===".");else if(c===".."){let p=s.parent||s;f?this.hasWalkedCache.hasWalked(p,f)||this.subwalks.add(p,f):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(s,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let i=this.subwalks.get(e),s=this.child();for(let r of t)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),h=o.rest();l===D?s.testGlobstar(r,o,h,a):l instanceof RegExp?s.testRegExp(r,l,h,a):s.testString(r,l,h,a)}return s}testGlobstar(e,t,i,s){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,s,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(i&&t.checkFollowGlobstar()?this.subwalks.add(e,i):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),i){let r=i.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(e,r,i.rest(),s);else if(r===".."){let o=e.parent||e;this.subwalks.add(o,i)}else r instanceof RegExp&&this.testRegExp(e,r,i.rest(),s)}}testRegExp(e,t,i,s){t.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}testString(e,t,i,s){e.isNamed(t)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}};var $h=(n,e)=>typeof n=="string"?new He([n],e):Array.isArray(n)?new He(n,e):n,wi=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,t,i){if(this.patterns=e,this.path=t,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=$h(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let s="cannot ignore child matches, ignore lacks add() method.";throw new Error(s)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#s(e){var t,i;return this.seen.has(e)||!!((i=(t=this.#t)==null?void 0:t.ignored)!=null&&i.call(t,e))}#o(e){var t,i;return!!((i=(t=this.#t)==null?void 0:t.childrenIgnored)!=null&&i.call(t,e))}pause(){this.paused=!0}resume(){var t;if((t=this.signal)!=null&&t.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){var t;(t=this.signal)!=null&&t.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&(r!=null&&r.isSymbolicLink())){let o=await r.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){var i;return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!((i=e.realpathCached())!=null&&i.isDirectory()))&&!this.#s(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&(r!=null&&r.isSymbolicLink())){let o=r.realpathSync();o&&(o!=null&&o.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){var r;if(this.#s(e))return;if(!this.includeChildMatches&&((r=this.#t)!=null&&r.add)){let o=`${e.relativePosix()}/**`;this.#t.add(o)}let i=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let s=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let o=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(o+s)}else{let o=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!o.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(o?a+o+s:"."+s)}}async match(e,t,i){let s=await this.matchCheck(e,i);s&&this.matchFinish(s,t)}matchSync(e,t,i){let s=this.matchCheckSync(e,i);s&&this.matchFinish(s,t)}walkCB(e,t,i){var s;(s=this.signal)!=null&&s.aborted&&i(),this.walkCB2(e,t,new Mt(this.opts),i)}walkCB2(e,t,i,s){var a;if(this.#o(e))return s();if((a=this.signal)!=null&&a.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(e,t,i,s));return}i.processPatterns(e,t);let r=1,o=()=>{--r===0&&s()};for(let[l,h,u]of i.matches.entries())this.#s(l)||(r++,this.match(l,h,u).then(()=>o()));for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;r++;let h=l.readdirCached();l.calledReaddir()?this.walkCB3(l,h,i,o):l.readdirCB((u,c)=>this.walkCB3(l,c,i,o),!0)}o()}walkCB3(e,t,i,s){i=i.filterEntries(e,t);let r=1,o=()=>{--r===0&&s()};for(let[a,l,h]of i.matches.entries())this.#s(a)||(r++,this.match(a,l,h).then(()=>o()));for(let[a,l]of i.subwalks.entries())r++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,t,i){var s;(s=this.signal)!=null&&s.aborted&&i(),this.walkCB2Sync(e,t,new Mt(this.opts),i)}walkCB2Sync(e,t,i,s){var a;if(this.#o(e))return s();if((a=this.signal)!=null&&a.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,i,s));return}i.processPatterns(e,t);let r=1,o=()=>{--r===0&&s()};for(let[l,h,u]of i.matches.entries())this.#s(l)||this.matchSync(l,h,u);for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;r++;let h=l.readdirSync();this.walkCB3Sync(l,h,i,o)}o()}walkCB3Sync(e,t,i,s){i=i.filterEntries(e,t);let r=1,o=()=>{--r===0&&s()};for(let[a,l,h]of i.matches.entries())this.#s(a)||this.matchSync(a,l,h);for(let[a,l]of i.subwalks.entries())r++,this.walkCB2Sync(a,l,i.child(),o);o()}},Lt=class extends wi{matches=new Set;constructor(e,t,i){super(e,t,i)}matchEmit(e){this.matches.add(e)}async walk(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,i)=>{this.walkCB(this.path,this.patterns,()=>{var s;(s=this.signal)!=null&&s.aborted?i(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{var t;if((t=this.signal)!=null&&t.aborted)throw this.signal.reason}),this.matches}},Tt=class extends wi{results;constructor(e,t,i){super(e,t,i),this.results=new ye({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var jh=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ie=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,vo.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||jh,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?qe:t.platform==="darwin"?Rt:t.platform?Ge:So;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",s={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(l=>new G(l,s)),[o,a]=r.reduce((l,h)=>(l[0].push(...h.set),l[1].push(...h.globParts),l),[[],[]]);this.patterns=o.map((l,h)=>{let u=a[h];if(!u)throw new Error("invalid pattern object");return new Ve(l,u,0,this.platform)})}async walk(){return[...await new Lt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Lt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Tt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Tt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var _s=(n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new G(t,e).hasMagic())return!0;return!1};function bi(n,e={}){return new ie(n,e).streamSync()}function Co(n,e={}){return new ie(n,e).stream()}function Eo(n,e={}){return new ie(n,e).walkSync()}async function xo(n,e={}){return new ie(n,e).walk()}function Si(n,e={}){return new ie(n,e).iterateSync()}function _o(n,e={}){return new ie(n,e).iterate()}var zh=bi,Wh=Object.assign(Co,{sync:bi}),qh=Si,Gh=Object.assign(_o,{sync:Si}),Vh=Object.assign(Eo,{stream:bi,iterate:Si}),yi=Object.assign(xo,{glob:xo,globSync:Eo,sync:Vh,globStream:Co,stream:Wh,globStreamSync:bi,streamSync:zh,globIterate:_o,iterate:Gh,globIterateSync:Si,iterateSync:qh,Glob:ie,hasMagic:_s,escape:Be,unescape:Z});yi.glob=yi;function Hh(n){let e=En.find(t=>t.previous===n);return e?e.next&&e.next.length>0?e.next[0]:(!e.next||e.next.length===0)&&e.alternative&&e.alternative.length>0?e.alternative[0]:null:null}function Qh(n){return n.replace(/var\(--seed-semantic-typography-([^-]+)-([^-]+)-([^)]+)\)/g,(e,t,i,s)=>{try{let r=`$semantic.typography.${t}${i.charAt(0).toUpperCase()+i.slice(1)}`,o=Hh(r);if(!o)return e;let a="";switch(s){case"font-size":a=`--seed-font-size-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"line-height":a=`--seed-line-height-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"font-weight":o.includes("Regular")?a="--seed-font-weight-regular":o.includes("Medium")?a="--seed-font-weight-medium":o.includes("Bold")&&(a="--seed-font-weight-bold");break;case"letter-spacing":return"normal";default:return e}return`var(${a})`}catch(r){return console.error(`Error transforming token: ${e}`,r),e}})}var Jh={postcssPlugin:"replace-css-typography-variable",Declaration(n){if(n.value.includes("var(--seed-semantic-typography")){let e=n.value,t=Qh(e);e!==t&&(n.value=t)}}},Ao=(n,e,t)=>{let{reporter:i}=t,s=null;if(i&&(s=new ei("replace-css-typography-variable"),s.startNewFile(n.path)),!n.path.endsWith(".css"))return n.source;try{let r=os([Jh]),o=n.source,l=r.process(o,{from:n.path,parser:os.parse}).sync().root.toString();return s&&(s.finishFile(),s.writeReport()),l}catch(r){return console.error("Error processing CSS:",r),n.source}};function Kh(n,e){let t=[];for(let r of n)try{if(r.endsWith(".css")){t.push((0,Oo.resolve)(r));continue}let o=yi.sync(`${r}/**/*.css`,{ignore:["**/node_modules/**","**/dist/**","**/build/**"]});t=[...t,...o]}catch(o){console.error(`\uACBD\uB85C \uCC98\uB9AC \uC911 \uC624\uB958 \uBC1C\uC0DD: ${r}`,o)}let i=[...new Set(t)];if(i.length===0){console.log("\uBCC0\uD658\uD560 CSS \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");return}console.log(`\uCD1D ${i.length}\uAC1C\uC758 CSS \uD30C\uC77C\uC744 \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`);let s=0;for(let r of i)try{let o=(0,vi.readFileSync)(r,"utf8"),a=Ao({path:r,source:o},null,e);o!==a&&((0,vi.writeFileSync)(r,a,"utf8"),console.log(`\uBCC0\uD658 \uC644\uB8CC: ${r}`),s++)}catch(o){console.error(`\uD30C\uC77C \uBCC0\uD658 \uC911 \uC624\uB958 \uBC1C\uC0DD: ${r}`,o)}console.log(`CSS \uBCC0\uD658 \uC644\uB8CC: \uCD1D ${s}\uAC1C \uD30C\uC77C \uBCC0\uACBD\uB428`)}var Yh=Ao;0&&(module.exports={processCssFiles});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var j=Object.create;var h=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var U=(r,e)=>{for(var t in e)h(r,t,{get:e[t],enumerable:!0})},C=(r,e,t,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of D(e))!X.call(r,a)&&a!==t&&h(r,a,{get:()=>e[a],enumerable:!(c=M(e,a))||c.enumerable});return r};var R=(r,e,t)=>(t=r!=null?j(N(r)):{},C(e||!r||!r.__esModule?h(t,"default",{value:r,enumerable:!0}):t,r)),B=r=>C(h({},"__esModule",{value:!0}),r);var ae={};U(ae,{default:()=>le});module.exports=B(ae);var J=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.on-image"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],W=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],z=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-carrot-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-green-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-yellow-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-red-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-blue-800",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"static \uC0C9\uC0C1 \uC0AC\uC6A9 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],k=[...J,...W,...z];var x=R(require("fs"),1),f=R(require("path"),1),w=class{timestamp;fileMigrations=[];currentFile=null;reportDir=f.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return f.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let t=f.resolve(e);return f.relative(this.reportDir,t)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;x.existsSync(this.reportDir)||x.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),t=x.existsSync(e)?x.readFileSync(e,"utf8"):"",c=this.fileMigrations.map(l=>{let n=f.basename(l.filePath),s=l.results.map(o=>{let i=o.line?` (line: ${o.line})`:"",p=o.status==="success"?"\u2705 success":o.status==="warning"?"\u26A0\uFE0F warning":"\u274C failure",u=o.failureReason?`
|
2
|
+
- reason: ${o.failureReason}`:"";return` - ${p} ${i}
|
3
|
+
- as-is: \`${o.previousToken}\`
|
4
|
+
- to-be: ${o.nextToken?`\`${o.nextToken}\``:"undefined"}${u}`}).join(`
|
5
|
+
`);return`### [${n}](${l.filePath})
|
6
|
+
- timestamp: ${this.timestamp}
|
7
|
+
- summary:
|
8
|
+
- total: ${l.results.length}
|
9
|
+
- success: ${l.results.filter(o=>o.status==="success").length}
|
10
|
+
- warning: ${l.results.filter(o=>o.status==="warning").length}
|
11
|
+
- failure: ${l.results.filter(o=>o.status==="failure").length}
|
12
|
+
- lines
|
13
|
+
${s}`}).join(`
|
14
|
+
|
15
|
+
`);x.writeFileSync(e,t+(t?`
|
16
|
+
|
17
|
+
`:"")+c)}};var O=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),q=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),V=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),G=/[^\p{L}\d]+/giu,S="$1\0$2",P="";function L(r){let e=r.trim();e=e.replace(O,S).replace(q,S),e=e.replace(G,"\0");let t=0,c=e.length;for(;e.charAt(t)==="\0";)t++;if(t===c)return[];for(;e.charAt(c-1)==="\0";)c--;return e.slice(t,c).split(/\0/g)}function H(r){let e=L(r);for(let t=0;t<e.length;t++){let c=e[t],a=V.exec(c);if(a){let l=a.index+(a[1]??a[2]).length;e.splice(t,1,c.slice(0,l),c.slice(l))}}return e}function E(r,e){let[t,c,a]=ee(r,e),l=K(e==null?void 0:e.locale),n=Q(e==null?void 0:e.locale),s=e!=null&&e.mergeAmbiguousCharacters?Y(l,n):Z(l,n);return t+c.map((o,i)=>i===0?l(o):s(o,i)).join((e==null?void 0:e.delimiter)??"")+a}function K(r){return r===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r)}function Q(r){return r===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(r)}function Y(r,e){return t=>`${e(t[0])}${r(t.slice(1))}`}function Z(r,e){return(t,c)=>{let a=t[0];return(c>0&&a>="0"&&a<="9"?"_"+a:e(a))+r(t.slice(1))}}function ee(r,e={}){let t=e.split??(e.separateNumbers?H:L),c=e.prefixCharacters??P,a=e.suffixCharacters??P,l=0,n=r.length;for(;l<r.length;){let s=r.charAt(l);if(!c.includes(s))break;l++}for(;n>l;){let s=n-1,o=r.charAt(s);if(!a.includes(o))break;n=s}return[r.slice(0,l),t(r.slice(l,n)),r.slice(n)]}function F(r){let e=r.replace(/^\$(semantic|static|scale)\.color\./,"").split(".").join("-");return E(e,{mergeAmbiguousCharacters:!0})}function I(r,e){let t=[["$color.palette.",`${r}-palette-`],["$color.stroke.",`${r}-stroke-`],["$color.bg.",`${r}-bg-`],["$color.fg.",`${r}-fg-`]];for(let[c,a]of t)if(e.startsWith(c))return e.replace(c,a);return e}var re={bg:"$color.bg",text:"$color.fg",stroke:"$color.stroke",fill:"$color.bg",accent:"$color.palette",caret:"$color.palette",decoration:"$color.palette",border:"$color.stroke",shadow:"$color.palette","inset-shadow":"$color.palette",ring:"$color.stroke","inset-ring":"$color.stroke"};function A(r,e){let t=e.next.find(a=>a.startsWith(re[r]));if(t)return t;let c=e.next.find(a=>a.startsWith("$color.palette"));if(c)return c;if(e.alternative&&e.alternative.length>0){let a=e.alternative.find(l=>l.startsWith("$color.palette"));if(a)return a}return null}function _(r,e){let t=/^(border(?:-[trblxys]+)?)-(.+)$/,c=r.match(t);if(c){let l=c[1],s=`border-${c[2]}`;for(let o of k)if(`border-${F(o.previous)}`===s){let p=A("border",o);if(p){let u=I("border",p);return`${l}-${u.replace(/^border-/,"")}`}(!o.next||o.next.length===0)&&(!o.alternative||o.alternative.length===0)&&o.description&&e.add({description:o.description,token:s})}return r}let a=/^([a-z]+)-(.+)$/;if(c=r.match(a),c){let l=c[1];for(let n of k)if(`${l}-${F(n.previous)}`===r){let o=A(l,n);if(o)return I(l,o);(!n.next||n.next.length===0)&&(!n.alternative||n.alternative.length===0)&&n.description&&e.add({description:n.description,token:r})}}return r}function te(r,e){let t=r,c=!1;t.startsWith("!")&&(c=!0,t=t.slice(1));let a=[];for(;t.includes(":");){let[s,...o]=t.split(":");if(s.includes("!")){let i=s.split("!");i[0]&&a.push(i[0]),t=`!${o.join(":")}`}else a.push(s),t=o.join(":")}let l=t;l.startsWith("!")?(l=_(l.slice(1),e),l=`!${l}`):l=_(l,e);let n=l;return a.length>0&&(n=`${a.join(":")}:${n}`),c&&(n=`!${n}`),n}function m(r,e){return r.split(" ").map(a=>te(a,e)).join(" ")}var oe=(r,e,t)=>{let c=t,{reporter:a}=c,l=e.jscodeshift,n=l(r.source),s=null;return a&&(s=new w("replace-tailwind-color"),s.startNewFile(r.path)),n.find(l.JSXAttribute,{name:{name:"className"}}).forEach(o=>{var u,g,d;let i=o.node.value;if(!i)return;let p=new Set;if(i.type==="StringLiteral"){let $=i.value,v=m($,p);$!==v&&s&&s.addResult({previousToken:$,nextToken:v,status:"success",line:(u=i.loc)==null?void 0:u.start.line}),i.value=v}else if(i.type==="JSXExpressionContainer"&&i.expression.type==="StringLiteral"){let $=i.expression.value,v=m($,p);$!==v&&s&&s.addResult({previousToken:$,nextToken:v,status:"success",line:(g=i.expression.loc)==null?void 0:g.start.line}),i.expression.value=v}else i.type==="JSXExpressionContainer"&&i.expression.type==="TemplateLiteral"&&i.expression.quasis.forEach(v=>{var T;let b=v.value.raw,y=m(b,p);b!==y&&s&&s.addResult({previousToken:b,nextToken:y,status:"success",line:(T=v.loc)==null?void 0:T.start.line}),v.value.raw=y,v.value.cooked=y});if(p.size>0&&s)for(let $ of p)s.addResult({previousToken:$.token,nextToken:$.token,status:"warning",failureReason:$.description,line:(d=o.node.loc)==null?void 0:d.start.line})}),n.find(l.StringLiteral).forEach(o=>{var g;if(o.parent.node.type==="JSXAttribute"||o.parent.node.type==="JSXExpressionContainer"&&o.parent.parent.node.type==="JSXAttribute")return;let i=new Set,p=o.node.value,u=m(p,i);p!==u&&s&&s.addResult({previousToken:p,nextToken:u,status:"success",line:(g=o.node.loc)==null?void 0:g.start.line}),o.node.value=u}),n.find(l.TemplateLiteral).forEach(o=>{o.parent.node.type==="JSXExpressionContainer"&&o.parent.parent.node.type==="JSXAttribute"||o.node.quasis.forEach(i=>{var d;let p=new Set,u=i.value.raw,g=m(u,p);u!==g&&s&&s.addResult({previousToken:u,nextToken:g,status:"success",line:(d=i.loc)==null?void 0:d.start.line}),i.value.raw=g,i.value.cooked=g})}),s&&(s.finishFile(),s.writeReport()),n.toSource()},le=oe;
|