monocart-coverage-reports 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- var sn=Object.create;var vt=Object.defineProperty;var ln=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var an=Object.getPrototypeOf,fn=Object.prototype.hasOwnProperty;var be=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var v=(i,e)=>()=>{try{return e||i((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var cn=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of un(e))!fn.call(i,n)&&n!==t&&vt(i,n,{get:()=>e[n],enumerable:!(r=ln(e,n))||r.enumerable});return i};var Ct=(i,e,t)=>(t=i!=null?sn(an(i)):{},cn(e||!i||!i.__esModule?vt(t,"default",{value:i,enumerable:!0}):t,i));var Ie=v((Di,ke)=>{var Ce=process||{},_t=Ce.argv||[],ve=Ce.env||{},hn=!(ve.NO_COLOR||_t.includes("--no-color"))&&(!!ve.FORCE_COLOR||_t.includes("--color")||Ce.platform==="win32"||(Ce.stdout||{}).isTTY&&ve.TERM!=="dumb"||!!ve.CI),pn=(i,e,t=i)=>r=>{let n=""+r,o=n.indexOf(e,i.length);return~o?i+dn(n,e,t,o)+e:i+n+e},dn=(i,e,t,r)=>{let n="",o=0;do n+=i.substring(o,r)+t,o=r+e.length,r=i.indexOf(e,o);while(~r);return n+i.substring(o)},St=(i=hn)=>{let e=i?pn:()=>String;return{isColorSupported:i,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")}};ke.exports=St();ke.exports.createColors=St});var Be=v((Ui,Ot)=>{"use strict";var _e=/[\t\n\f\r "#'()/;[\\\]{}]/g,Se=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mn=/.[\r\n"'(/\\]/,xt=/[\da-f]/i;Ot.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,o,s,u,l,f,a,p,c,h,d,w=r.length,m=0,b=[],y=[],C=-1;function S(){return m}function L(A){throw e.error("Unclosed "+A,m)}function x(){return y.length===0&&m>=w}function F(A){if(y.length)return y.pop();if(m>=w)return;let P=A?A.ignoreUnclosed:!1;switch(o=r.charCodeAt(m),o){case 10:case 32:case 9:case 13:case 12:{l=m;do l+=1,o=r.charCodeAt(l);while(o===32||o===10||o===9||o===13||o===12);a=["space",r.slice(m,l)],m=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let D=String.fromCharCode(o);a=[D,D,m];break}case 40:{if(d=b.length?b.pop()[1]:"",h=r.charCodeAt(m+1),d==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){l=m;do{if(p=!1,l=r.indexOf(")",l+1),l===-1)if(n||P){l=m;break}else L("bracket");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["brackets",r.slice(m,l+1),m,l],m=l}else m<=C?a=["(","(",m]:(l=r.indexOf(")",m+1),s=r.slice(m,l+1),l===-1||mn.test(s)?(C=l===-1?w:l,a=["(","(",m]):(a=["brackets",s,m,l],m=l));break}case 39:case 34:{f=o===39?"'":'"',l=m;do{if(p=!1,l=r.indexOf(f,l+1),l===-1)if(n||P){l=m+1;break}else L("string");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["string",r.slice(m,l+1),m,l],m=l;break}case 64:{_e.lastIndex=m+1,_e.test(r),_e.lastIndex===0?l=r.length-1:l=_e.lastIndex-2,a=["at-word",r.slice(m,l+1),m,l],m=l;break}case 92:{for(l=m,u=!0;r.charCodeAt(l+1)===92;)l+=1,u=!u;if(o=r.charCodeAt(l+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(l+=1,xt.test(r.charAt(l)))){for(;xt.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}a=["word",r.slice(m,l+1),m,l],m=l;break}default:{o===47&&r.charCodeAt(m+1)===42?(l=r.indexOf("*/",m+2)+1,l===0&&(n||P?l=r.length:L("comment")),a=["comment",r.slice(m,l+1),m,l],m=l):(Se.lastIndex=m+1,Se.test(r),Se.lastIndex===0?l=r.length-1:l=Se.lastIndex-2,a=["word",r.slice(m,l+1),m,l],b.push(a),m=l);break}}return m++,a}function q(A){y.push(A)}return{back:q,endOfFile:x,nextToken:F,position:S}}});var qe=v((Gi,Et)=>{"use strict";var N=Ie(),gn=Be(),Lt;function wn(i){Lt=i}var yn={";":N.yellow,":":N.yellow,"(":N.cyan,")":N.cyan,"[":N.yellow,"]":N.yellow,"{":N.yellow,"}":N.yellow,"at-word":N.cyan,brackets:N.cyan,call:N.cyan,class:N.yellow,comment:N.gray,hash:N.magenta,string:N.green};function bn([i,e],t){if(i==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let r=t.nextToken();if(t.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return i}function At(i){let e=gn(new Lt(i),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),n=yn[bn(r,e)];n?t+=r[1].split(/\r?\n/).map(o=>n(o)).join(`
3
- `):t+=r[1]}return t}At.registerInput=wn;Et.exports=At});var De=v((ji,Pt)=>{"use strict";var Mt=Ie(),Rt=qe(),ne=class i extends Error{constructor(e,t,r,n,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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=Mt.isColorSupported);let r=a=>a,n=a=>a,o=a=>a;if(e){let{bold:a,gray:p,red:c}=Mt.createColors(!0);n=h=>a(c(h)),r=h=>p(h),Rt&&(o=h=>Rt(h))}let s=t.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),f=String(l).length;return s.slice(u,l).map((a,p)=>{let c=u+1+p,h=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(a.length>160){let w=20,m=Math.max(0,this.column-w),b=Math.max(this.column+w,this.endColumn+w),y=a.slice(m,b),C=r(h.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return n(">")+r(h)+o(y)+`
2
+ var sn=Object.create;var vt=Object.defineProperty;var ln=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var an=Object.getPrototypeOf,fn=Object.prototype.hasOwnProperty;var be=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var v=(i,e)=>()=>{try{return e||i((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var cn=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of un(e))!fn.call(i,n)&&n!==t&&vt(i,n,{get:()=>e[n],enumerable:!(r=ln(e,n))||r.enumerable});return i};var Ct=(i,e,t)=>(t=i!=null?sn(an(i)):{},cn(e||!i||!i.__esModule?vt(t,"default",{value:i,enumerable:!0}):t,i));var Be=v((Di,Ie)=>{var Ce=process||{},_t=Ce.argv||[],ve=Ce.env||{},hn=!(ve.NO_COLOR||_t.includes("--no-color"))&&(!!ve.FORCE_COLOR||_t.includes("--color")||Ce.platform==="win32"||(Ce.stdout||{}).isTTY&&ve.TERM!=="dumb"||!!ve.CI),pn=(i,e,t=i)=>r=>{let n=""+r,o=n.indexOf(e,i.length);return~o?i+dn(n,e,t,o)+e:i+n+e},dn=(i,e,t,r)=>{let n="",o=0;do n+=i.substring(o,r)+t,o=r+e.length,r=i.indexOf(e,o);while(~r);return n+i.substring(o)},St=(i=hn)=>{let e=i?pn:()=>String;return{isColorSupported:i,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")}};Ie.exports=St();Ie.exports.createColors=St});var qe=v((Ui,Ot)=>{"use strict";var _e=/[\t\n\f\r "#'()/;[\\\]{}]/g,Se=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mn=/.[\r\n"'(/\\]/,xt=/[\da-f]/i;Ot.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,o,s,u,l,f,a,p,c,h,d,w=r.length,m=0,b=[],y=[],C=-1;function S(){return m}function L(A){throw e.error("Unclosed "+A,m)}function x(){return y.length===0&&m>=w}function F(A){if(y.length)return y.pop();if(m>=w)return;let P=A?A.ignoreUnclosed:!1;switch(o=r.charCodeAt(m),o){case 10:case 32:case 9:case 13:case 12:{l=m;do l+=1,o=r.charCodeAt(l);while(o===32||o===10||o===9||o===13||o===12);a=["space",r.slice(m,l)],m=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let D=String.fromCharCode(o);a=[D,D,m];break}case 40:{if(d=b.length?b.pop()[1]:"",h=r.charCodeAt(m+1),d==="url"&&h!==39&&h!==34&&h!==32&&h!==10&&h!==9&&h!==12&&h!==13){l=m;do{if(p=!1,l=r.indexOf(")",l+1),l===-1)if(n||P){l=m;break}else L("bracket");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["brackets",r.slice(m,l+1),m,l],m=l}else m<=C?a=["(","(",m]:(l=r.indexOf(")",m+1),s=r.slice(m,l+1),l===-1||mn.test(s)?(C=l===-1?w:l,a=["(","(",m]):(a=["brackets",s,m,l],m=l));break}case 39:case 34:{f=o===39?"'":'"',l=m;do{if(p=!1,l=r.indexOf(f,l+1),l===-1)if(n||P){l=m+1;break}else L("string");for(c=l;r.charCodeAt(c-1)===92;)c-=1,p=!p}while(p);a=["string",r.slice(m,l+1),m,l],m=l;break}case 64:{_e.lastIndex=m+1,_e.test(r),_e.lastIndex===0?l=r.length-1:l=_e.lastIndex-2,a=["at-word",r.slice(m,l+1),m,l],m=l;break}case 92:{for(l=m,u=!0;r.charCodeAt(l+1)===92;)l+=1,u=!u;if(o=r.charCodeAt(l+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(l+=1,xt.test(r.charAt(l)))){for(;xt.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===32&&(l+=1)}a=["word",r.slice(m,l+1),m,l],m=l;break}default:{o===47&&r.charCodeAt(m+1)===42?(l=r.indexOf("*/",m+2)+1,l===0&&(n||P?l=r.length:L("comment")),a=["comment",r.slice(m,l+1),m,l],m=l):(Se.lastIndex=m+1,Se.test(r),Se.lastIndex===0?l=r.length-1:l=Se.lastIndex-2,a=["word",r.slice(m,l+1),m,l],b.push(a),m=l);break}}return m++,a}function q(A){y.push(A)}return{back:q,endOfFile:x,nextToken:F,position:S}}});var De=v((Gi,Et)=>{"use strict";var N=Be(),gn=qe(),Lt;function wn(i){Lt=i}var yn={";":N.yellow,":":N.yellow,"(":N.cyan,")":N.cyan,"[":N.yellow,"]":N.yellow,"{":N.yellow,"}":N.yellow,"at-word":N.cyan,brackets:N.cyan,call:N.cyan,class:N.yellow,comment:N.gray,hash:N.magenta,string:N.green};function bn([i,e],t){if(i==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let r=t.nextToken();if(t.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return i}function At(i){let e=gn(new Lt(i),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let r=e.nextToken(),n=yn[bn(r,e)];n?t+=r[1].split(/\r?\n/).map(o=>n(o)).join(`
3
+ `):t+=r[1]}return t}At.registerInput=wn;Et.exports=At});var Ue=v((ji,Pt)=>{"use strict";var Mt=Be(),Rt=De(),ne=class i extends Error{constructor(e,t,r,n,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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=Mt.isColorSupported);let r=a=>a,n=a=>a,o=a=>a;if(e){let{bold:a,gray:p,red:c}=Mt.createColors(!0);n=h=>a(c(h)),r=h=>p(h),Rt&&(o=h=>Rt(h))}let s=t.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),f=String(l).length;return s.slice(u,l).map((a,p)=>{let c=u+1+p,h=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(a.length>160){let w=20,m=Math.max(0,this.column-w),b=Math.max(this.column+w,this.endColumn+w),y=a.slice(m,b),C=r(h.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return n(">")+r(h)+o(y)+`
4
4
  `+C+n("^")}let d=r(h.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(h)+o(a)+`
5
5
  `+d+n("^")}return" "+r(h)+o(a)}).join(`
6
6
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
7
7
 
8
8
  `+e+`
9
- `),this.name+": "+this.message+e}};Pt.exports=ne;ne.default=ne});var Ue=v(($i,It)=>{"use strict";var vn=/[\t\n\f\r "#'()/;[\\\]{}]/,Nt={after:`
9
+ `),this.name+": "+this.message+e}};Pt.exports=ne;ne.default=ne});var Ge=v(($i,It)=>{"use strict";var vn=/[\t\n\f\r "#'()/;[\\\]{}]/,Nt={after:`
10
10
  `,beforeClose:`
11
11
  `,beforeComment:`
12
12
  `,beforeDecl:`
@@ -17,11 +17,11 @@ var sn=Object.create;var vt=Object.defineProperty;var ln=Object.getOwnPropertyDe
17
17
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
18
18
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
19
19
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let o=r.raws.before.split(`
20
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){!(e.parent&&e.parent.type==="document")&&e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),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)}};It.exports=ie;ie.default=ie});var qt=v((zi,Bt)=>{"use strict";var Sn=Ue(),xn=/(<)(\/?style\b)/gi,On=/(<)(!--)/g;function Ln(i){return i.includes("<")?i.replace(xn,"\\3c $2").replace(On,"\\3c $2"):i}function An(i,e,t){let r=[],n=0,o=0;for(let s=0;s<i.length;s+=3){let u=o,l=n+i[s].length;for(;n<l;)e[n]===t[o]?(n+=1,o+=1):(n+=1,o+=4);r.push(t.slice(u,o))}return r}var Ge=class extends Sn{escapeHTML(e){let t=this.builder,r,n;if(this.builder=(s,u,l)=>{r?(n+=s,r.push(s,u,l)):s.includes("<")?(n=s,r=[s,u,l]):t(s,u,l)},e(),this.builder=t,!r)return;let o=Ln(n);if(o===n)for(let s=0;s<r.length;s+=3)t(r[s],r[s+1],r[s+2]);else{let s=An(r,n,o);for(let u=0;u<r.length;u+=3)t(s[u/3],r[u+1],r[u+2])}}root(e){e.parent&&e.parent.type==="document"?(this.escapeHTML(()=>this.body(e)),e.raws.after&&this.builder(e.raws.after)):this.escapeHTML(()=>super.root(e))}};function je(i,e){let t=new Ge(e);i.type==="root"||i.type==="document"?t.stringify(i):t.escapeHTML(()=>t.stringify(i))}Bt.exports=je;je.default=je});var ze=v((Wi,$e)=>{"use strict";$e.exports.isClean=Symbol("isClean");$e.exports.my=Symbol("my")});var xe=v((Qi,Dt)=>{"use strict";var En=De(),Mn=Ue(),Rn=qt(),{isClean:oe,my:Pn}=ze();function Nn(i,e){let t=new i.constructor,r=[[i,t,e]];for(;r.length>0;){let[n,o,s]=r.pop();for(let u in n){if(!Object.prototype.hasOwnProperty.call(n,u)||u==="proxyCache")continue;let l=n[u],f=typeof l;if(u==="parent"&&f==="object")s&&(o[u]=s);else if(u==="source")o[u]=l;else if(Array.isArray(l)){let a=[];o[u]=a;for(let p of l){let c=new p.constructor;a.push(c),r.push([p,c,o])}}else{if(f==="object"&&l!==null){let a=new l.constructor;r.push([l,a,void 0]),l=a}o[u]=l}}}return t}function G(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,n=0;for(let o=0;o<i.length;o++){if(r===e.line&&t===e.column){n=o;break}i[o]===`
21
- `?(t=1,r+=1):t+=1}return n}var se=class i{get proxyOf(){return this}constructor(e={}){this.raws={},this[oe]=!1,this[Pn]=!0;for(let t of Object.keys(e))if(t!=="__proto__")if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}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=Nn(this);for(let r in e)t[r]=e[r];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:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new En(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[oe]=!0}markDirty(){if(this[oe]){this[oe]=!1;let e=this;for(;e=e.parent;)e[oe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:G(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let o=t.slice(G(t,this.source.start),G(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o))}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,o=G(n,this.source.start),s=o+e;for(let u=o;u<s;u++)n[u]===`
22
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:G(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:G(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(G(t,this.source.start),G(t,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:G(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:G(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):typeof e.index=="number"&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new Mn().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,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],o=[[this,n,0]];for(let u=0;u<o.length;u++){let[l,f,a]=o[u],p={};f[a]=p;for(let c in l){if(!Object.prototype.hasOwnProperty.call(l,c)||c==="parent"||c==="proxyCache")continue;let h=l[c];if(Array.isArray(h)){let d=[];p[c]=d;for(let w=0;w<h.length;w++){let m=h[w];typeof m=="object"&&m.toJSON?m.toJSON===i.prototype.toJSON?o.push([m,d,w]):d[w]=m.toJSON(null,t):d[w]=m}}else if(typeof h=="object"&&h.toJSON)h.toJSON===i.prototype.toJSON?o.push([h,p,c]):p[c]=h.toJSON(null,t);else if(c==="source"){if(h==null)continue;let d=t.get(h.input);d==null&&(d=t.size,t.set(h.input,d)),p[c]={end:h.end,inputId:d,start:h.start}}else p[c]=h}}let s=n[0];return r&&(s.inputs=[...t.keys()].map(u=>u.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Rn){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let o in r)n[o]=r[o];return e.warn(t,n)}};Dt.exports=se;se.default=se});var We=v((Ji,Ut)=>{"use strict";var Fn=xe(),le=class extends Fn{constructor(e){super(e),this.type="comment"}};Ut.exports=le;le.default=le});var Qe=v((Hi,Gt)=>{"use strict";var Tn=xe(),ue=class extends Tn{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"}};Gt.exports=ue;ue.default=ue});var ae=v((Vi,Vt)=>{"use strict";var $t=We(),zt=Qe(),jt=xe(),{isClean:Wt,my:Qt}=ze(),Je,Jt,Ht,He;function kn(i){let e=i.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let r of t.nodes)e.push(r)}}return i.slice()}function In(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[Wt]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var j=class i extends jt{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 r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==i.prototype.cleanRaws){r.cleanRaws(e);continue}if(jt.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}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")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(o,s)=>n(o.toProxy(),s):n)):t==="every"||t==="some"?r=>e[t]((n,...o)=>r(n.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(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 r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let u of o)this.proxyOf.nodes.splice(r,0,u);let s;for(let u in this.indexes)s=this.indexes[u],r<=s&&(this.indexes[u]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=kn(Jt(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"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 zt(e)]}else if(e.selector||e.selectors)e=[new He(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new $t(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Qt]||i.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Wt]&&In(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.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 r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:r,node:n}=t[t.length-1],o=n.indexes[r];if(o>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let l=t[t.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[o],u;try{u=e(s,o)}catch(l){throw s.addToError(l)}if(u===!1){for(let l of t)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?t.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}};j.registerParse=i=>{Jt=i};j.registerRule=i=>{He=i};j.registerAtRule=i=>{Je=i};j.registerRoot=i=>{Ht=i};Vt.exports=j;j.default=j;j.rebuild=i=>{let e=[i];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,Je.prototype):t.type==="rule"?Object.setPrototypeOf(t,He.prototype):t.type==="decl"?Object.setPrototypeOf(t,zt.prototype):t.type==="comment"?Object.setPrototypeOf(t,$t.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ht.prototype),t[Qt]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var Kt=v((Yi,Yt)=>{var Bn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qn=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n-- >0;)r+=i[Math.random()*i.length|0];return r},Dn=(i=21)=>{let e="",t=i|0;for(;t-- >0;)e+=Bn[Math.random()*64|0];return e};Yt.exports={nanoid:Dn,customAlphabet:qn}});var Zt=v(Ve=>{var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ve.encode=function(i){if(0<=i&&i<Xt.length)return Xt[i];throw new TypeError("Must be between 0 and 63: "+i)};Ve.decode=function(i){var e=65,t=90,r=97,n=122,o=48,s=57,u=43,l=47,f=26,a=52;return e<=i&&i<=t?i-e:r<=i&&i<=n?i-r+f:o<=i&&i<=s?i-o+a:i==u?62:i==l?63:-1}});var Xe=v(Ke=>{var er=Zt(),Ye=5,tr=1<<Ye,rr=tr-1,nr=tr;function Un(i){return i<0?(-i<<1)+1:(i<<1)+0}function Gn(i){var e=(i&1)===1,t=i>>1;return e?-t:t}Ke.encode=function(e){var t="",r,n=Un(e);do r=n&rr,n>>>=Ye,n>0&&(r|=nr),t+=er.encode(r);while(n>0);return t};Ke.decode=function(e,t,r){var n=e.length,o=0,s=0,u,l;do{if(t>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=er.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(l&nr),l&=rr,o=o+(l<<s),s+=Ye}while(u);r.value=Gn(o),r.rest=t}});var K=v(E=>{function jn(i,e,t){if(e in i)return i[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}E.getArg=jn;var ir=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,$n=/^data:.+\,.+$/;function fe(i){var e=i.match(ir);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}E.urlParse=fe;function Y(i){var e="";return i.scheme&&(e+=i.scheme+":"),e+="//",i.auth&&(e+=i.auth+"@"),i.host&&(e+=i.host),i.port&&(e+=":"+i.port),i.path&&(e+=i.path),e}E.urlGenerate=Y;var zn=32;function Wn(i){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var n=e[0];return e[0]=e[r],e[r]=n,e[0].result}var o=i(t);return e.unshift({input:t,result:o}),e.length>zn&&e.pop(),o}}var Ze=Wn(function(e){var t=e,r=fe(e);if(r){if(!r.path)return e;t=r.path}for(var n=E.isAbsolute(t),o=[],s=0,u=0;;)if(s=u,u=t.indexOf("/",s),u===-1){o.push(t.slice(s));break}else for(o.push(t.slice(s,u));u<t.length&&t[u]==="/";)u++;for(var l,f=0,u=o.length-1;u>=0;u--)l=o[u],l==="."?o.splice(u,1):l===".."?f++:f>0&&(l===""?(o.splice(u+1,f),f=0):(o.splice(u,2),f--));return t=o.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Y(r)):t});E.normalize=Ze;function or(i,e){i===""&&(i="."),e===""&&(e=".");var t=fe(e),r=fe(i);if(r&&(i=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),Y(t);if(t||e.match($n))return e;if(r&&!r.host&&!r.path)return r.host=e,Y(r);var n=e.charAt(0)==="/"?e:Ze(i.replace(/\/+$/,"")+"/"+e);return r?(r.path=n,Y(r)):n}E.join=or;E.isAbsolute=function(i){return i.charAt(0)==="/"||ir.test(i)};function Qn(i,e){i===""&&(i="."),i=i.replace(/\/$/,"");for(var t=0;e.indexOf(i+"/")!==0;){var r=i.lastIndexOf("/");if(r<0||(i=i.slice(0,r),i.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(i.length+1)}E.relative=Qn;var sr=(function(){var i=Object.create(null);return!("__proto__"in i)})();function lr(i){return i}function Jn(i){return ur(i)?"$"+i:i}E.toSetString=sr?lr:Jn;function Hn(i){return ur(i)?i.slice(1):i}E.fromSetString=sr?lr:Hn;function ur(i){if(!i)return!1;var e=i.length;if(e<9||i.charCodeAt(e-1)!==95||i.charCodeAt(e-2)!==95||i.charCodeAt(e-3)!==111||i.charCodeAt(e-4)!==116||i.charCodeAt(e-5)!==111||i.charCodeAt(e-6)!==114||i.charCodeAt(e-7)!==112||i.charCodeAt(e-8)!==95||i.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(i.charCodeAt(t)!==36)return!1;return!0}function Vn(i,e,t){var r=$(i.source,e.source);return r!==0||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:$(i.name,e.name)}E.compareByOriginalPositions=Vn;function Yn(i,e,t){var r;return r=i.originalLine-e.originalLine,r!==0||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:$(i.name,e.name)}E.compareByOriginalPositionsNoSource=Yn;function Kn(i,e,t){var r=i.generatedLine-e.generatedLine;return r!==0||(r=i.generatedColumn-e.generatedColumn,r!==0||t)||(r=$(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:$(i.name,e.name)}E.compareByGeneratedPositionsDeflated=Kn;function Xn(i,e,t){var r=i.generatedColumn-e.generatedColumn;return r!==0||t||(r=$(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:$(i.name,e.name)}E.compareByGeneratedPositionsDeflatedNoLine=Xn;function $(i,e){return i===e?0:i===null?1:e===null?-1:i>e?1:-1}function Zn(i,e){var t=i.generatedLine-e.generatedLine;return t!==0||(t=i.generatedColumn-e.generatedColumn,t!==0)||(t=$(i.source,e.source),t!==0)||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0)?t:$(i.name,e.name)}E.compareByGeneratedPositionsInflated=Zn;function ei(i){return JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}E.parseSourceMapInput=ei;function ti(i,e,t){if(e=e||"",i&&(i[i.length-1]!=="/"&&e[0]!=="/"&&(i+="/"),e=i+e),t){var r=fe(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var n=r.path.lastIndexOf("/");n>=0&&(r.path=r.path.substring(0,n+1))}e=or(Y(r),e)}return Ze(e)}E.computeSourceURL=ti});var rt=v(ar=>{var et=K(),tt=Object.prototype.hasOwnProperty,J=typeof Map<"u";function z(){this._array=[],this._set=J?new Map:Object.create(null)}z.fromArray=function(e,t){for(var r=new z,n=0,o=e.length;n<o;n++)r.add(e[n],t);return r};z.prototype.size=function(){return J?this._set.size:Object.getOwnPropertyNames(this._set).length};z.prototype.add=function(e,t){var r=J?e:et.toSetString(e),n=J?this.has(e):tt.call(this._set,r),o=this._array.length;(!n||t)&&this._array.push(e),n||(J?this._set.set(e,o):this._set[r]=o)};z.prototype.has=function(e){if(J)return this._set.has(e);var t=et.toSetString(e);return tt.call(this._set,t)};z.prototype.indexOf=function(e){if(J){var t=this._set.get(e);if(t>=0)return t}else{var r=et.toSetString(e);if(tt.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};z.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};z.prototype.toArray=function(){return this._array.slice()};ar.ArraySet=z});var hr=v(cr=>{var fr=K();function ri(i,e){var t=i.generatedLine,r=e.generatedLine,n=i.generatedColumn,o=e.generatedColumn;return r>t||r==t&&o>=n||fr.compareByGeneratedPositionsInflated(i,e)<=0}function Oe(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Oe.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Oe.prototype.add=function(e){ri(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Oe.prototype.toArray=function(){return this._sorted||(this._array.sort(fr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};cr.MappingList=Oe});var nt=v(pr=>{var ce=Xe(),O=K(),Le=rt().ArraySet,ni=hr().MappingList;function I(i){i||(i={}),this._file=O.getArg(i,"file",null),this._sourceRoot=O.getArg(i,"sourceRoot",null),this._skipValidation=O.getArg(i,"skipValidation",!1),this._ignoreInvalidMapping=O.getArg(i,"ignoreInvalidMapping",!1),this._sources=new Le,this._names=new Le,this._mappings=new ni,this._sourcesContents=null}I.prototype._version=3;I.fromSourceMap=function(e,t){var r=e.sourceRoot,n=new I(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(o){var s={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(s.source=o.source,r!=null&&(s.source=O.relative(r,s.source)),s.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(s.name=o.name)),n.addMapping(s)}),e.sources.forEach(function(o){var s=o;r!==null&&(s=O.relative(r,o)),n._sources.has(s)||n._sources.add(s);var u=e.sourceContentFor(o);u!=null&&n.setSourceContent(o,u)}),n};I.prototype.addMapping=function(e){var t=O.getArg(e,"generated"),r=O.getArg(e,"original",null),n=O.getArg(e,"source",null),o=O.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,n,o)===!1||(n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:o}))};I.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=O.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[O.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[O.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};I.prototype.applySourceMap=function(e,t,r){var n=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.`);n=e.file}var o=this._sourceRoot;o!=null&&(n=O.relative(o,n));var s=new Le,u=new Le;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=O.join(r,l.source)),o!=null&&(l.source=O.relative(o,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var a=l.source;a!=null&&!s.has(a)&&s.add(a);var p=l.name;p!=null&&!u.has(p)&&u.add(p)},this),this._sources=s,this._names=u,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=O.join(r,l)),o!=null&&(l=O.relative(o,l)),this.setSourceContent(l,f))},this)};I.prototype._validateMapping=function(e,t,r,n){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var o="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(o),!1;throw new Error(o)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n)){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&&r)return;var o="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(o),!1;throw new Error(o)}};I.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,n=0,o=0,s=0,u="",l,f,a,p,c=this._mappings.toArray(),h=0,d=c.length;h<d;h++){if(f=c[h],l="",f.generatedLine!==t){e=0;var w=f.generatedLine-t;l+=w===1?";":";".repeat(w),t=f.generatedLine}else if(h>0){if(!O.compareByGeneratedPositionsInflated(f,c[h-1]))continue;l+=","}l+=ce.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(p=this._sources.indexOf(f.source),l+=ce.encode(p-s),s=p,l+=ce.encode(f.originalLine-1-n),n=f.originalLine-1,l+=ce.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(a=this._names.indexOf(f.name),l+=ce.encode(a-o),o=a)),u+=l}return u};I.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=O.relative(t,r));var n=O.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};I.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};I.prototype.toString=function(){return JSON.stringify(this.toJSON())};pr.SourceMapGenerator=I});var dr=v(H=>{H.GREATEST_LOWER_BOUND=1;H.LEAST_UPPER_BOUND=2;function it(i,e,t,r,n,o){var s=Math.floor((e-i)/2)+i,u=n(t,r[s],!0);return u===0?s:u>0?e-s>1?it(s,e,t,r,n,o):o==H.LEAST_UPPER_BOUND?e<r.length?e:-1:s:s-i>1?it(i,s,t,r,n,o):o==H.LEAST_UPPER_BOUND?s:i<0?-1:i}H.search=function(e,t,r,n){if(t.length===0)return-1;var o=it(-1,t.length,e,t,r,n||H.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&r(t[o],t[o-1],!0)===0;)--o;return o}});var yr=v(wr=>{function gr(i){function e(n,o,s){var u=n[o];n[o]=n[s],n[s]=u}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,s,u){if(s<u){var l=t(s,u),f=s-1;e(n,l,u);for(var a=n[u],p=s;p<u;p++)o(n[p],a,!1)<=0&&(f+=1,e(n,f,p));e(n,f+1,p);var c=f+1;r(n,o,s,c-1),r(n,o,c+1,u)}}return r}function ii(i){let e=gr.toString();return new Function(`return ${e}`)()(i)}var oi=(function(){try{return new Function("return 0")(),!0}catch{return!1}})(),mr=new WeakMap;wr.quickSort=function(i,e,t=0){let r=oi?mr.get(e):gr(e);r===void 0&&(r=ii(e),mr.set(e,r)),r(i,e,t,i.length-1)}});var _r=v(Ee=>{var g=K(),st=dr(),X=rt().ArraySet,si=Xe(),he=yr().quickSort,Ae=1e7;function _(i,e){var t=i;return typeof i=="string"&&(t=g.parseSourceMapInput(i)),t.sections!=null?new B(t,e):new M(t,e)}_.fromSourceMap=function(i,e){return M.fromSourceMap(i,e)};_.prototype._version=3;_.prototype.__generatedMappings=null;Object.defineProperty(_.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});_.prototype.__originalMappings=null;Object.defineProperty(_.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});_.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};_.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};_.GENERATED_ORDER=1;_.ORIGINAL_ORDER=2;_.GREATEST_LOWER_BOUND=1;_.LEAST_UPPER_BOUND=2;_.prototype.eachMapping=function(e,t,r){var n=t||null,o=r||_.GENERATED_ORDER,s;switch(o){case _.GENERATED_ORDER:s=this._generatedMappings;break;case _.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var u=this.sourceRoot,l=e.bind(n),f=this._names,a=this._sources,p=this._sourceMapURL,c=0,h=s.length;c<h;c++){var d=s[c],w=d.source===null?null:a.at(d.source);w!==null&&(w=g.computeSourceURL(u,w,p)),l({source:w,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:f.at(d.name)})}};_.prototype.allGeneratedPositionsFor=function(e){var t=g.getArg(e,"line"),r={source:g.getArg(e,"source"),originalLine:t,originalColumn:g.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,st.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var u=s.originalLine;s&&s.originalLine===u;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return n};Ee.SourceMapConsumer=_;function M(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sources"),o=g.getArg(t,"names",[]),s=g.getArg(t,"sourceRoot",null),u=g.getArg(t,"sourcesContent",null),l=g.getArg(t,"mappings"),f=g.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);s&&(s=g.normalize(s)),n=n.map(String).map(g.normalize).map(function(a){return s&&g.isAbsolute(s)&&g.isAbsolute(a)?g.relative(s,a):a}),this._names=X.fromArray(o.map(String),!0),this._sources=X.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(a){return g.computeSourceURL(s,a,e)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=e,this.file=f}M.prototype=Object.create(_.prototype);M.prototype.consumer=_;M.prototype._findSourceIndex=function(i){var e=i;if(this.sourceRoot!=null&&(e=g.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]==i)return t;return-1};M.fromSourceMap=function(e,t){var r=Object.create(M.prototype),n=r._names=X.fromArray(e._names.toArray(),!0),o=r._sources=X.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(h){return g.computeSourceURL(r.sourceRoot,h,t)});for(var s=e._mappings.toArray().slice(),u=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,a=s.length;f<a;f++){var p=s[f],c=new Cr;c.generatedLine=p.generatedLine,c.generatedColumn=p.generatedColumn,p.source&&(c.source=o.indexOf(p.source),c.originalLine=p.originalLine,c.originalColumn=p.originalColumn,p.name&&(c.name=n.indexOf(p.name)),l.push(c)),u.push(c)}return he(r.__originalMappings,g.compareByOriginalPositions),r};M.prototype._version=3;Object.defineProperty(M.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Cr(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var ot=g.compareByGeneratedPositionsDeflatedNoLine;function br(i,e){let t=i.length,r=i.length-e;if(!(r<=1))if(r==2){let n=i[e],o=i[e+1];ot(n,o)>0&&(i[e]=o,i[e+1]=n)}else if(r<20)for(let n=e;n<t;n++)for(let o=n;o>e;o--){let s=i[o-1],u=i[o];if(ot(s,u)<=0)break;i[o-1]=u,i[o]=s}else he(i,ot,e)}M.prototype._parseMappings=function(e,t){var r=1,n=0,o=0,s=0,u=0,l=0,f=e.length,a=0,p={},c={},h=[],d=[],w,m,b,y,C;let S=0;for(;a<f;)if(e.charAt(a)===";")r++,a++,n=0,br(d,S),S=d.length;else if(e.charAt(a)===",")a++;else{for(w=new Cr,w.generatedLine=r,y=a;y<f&&!this._charIsMappingSeparator(e,y);y++);for(m=e.slice(a,y),b=[];a<y;)si.decode(e,a,c),C=c.value,a=c.rest,b.push(C);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(w.generatedColumn=n+b[0],n=w.generatedColumn,b.length>1&&(w.source=u+b[1],u+=b[1],w.originalLine=o+b[2],o=w.originalLine,w.originalLine+=1,w.originalColumn=s+b[3],s=w.originalColumn,b.length>4&&(w.name=l+b[4],l+=b[4])),d.push(w),typeof w.originalLine=="number"){let x=w.source;for(;h.length<=x;)h.push(null);h[x]===null&&(h[x]=[]),h[x].push(w)}}br(d,S),this.__generatedMappings=d;for(var L=0;L<h.length;L++)h[L]!=null&&he(h[L],g.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};M.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return st.search(e,t,o,s)};M.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};M.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",g.compareByGeneratedPositionsDeflated,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var o=g.getArg(n,"source",null);o!==null&&(o=this._sources.at(o),o=g.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=g.getArg(n,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:g.getArg(n,"originalLine",null),column:g.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};M.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};M.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n=e;this.sourceRoot!=null&&(n=g.relative(this.sourceRoot,n));var o;if(this.sourceRoot!=null&&(o=g.urlParse(this.sourceRoot))){var s=n.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')};M.prototype.generatedPositionFor=function(e){var t=g.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:g.getArg(e,"line"),originalColumn:g.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(n>=0){var o=this._originalMappings[n];if(o.source===r.source)return{line:g.getArg(o,"generatedLine",null),column:g.getArg(o,"generatedColumn",null),lastColumn:g.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ee.BasicSourceMapConsumer=M;function B(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new X,this._names=new X;var o={line:-1,column:0},s=0;this._sections=n.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=g.getArg(u,"offset"),f=g.getArg(l,"line"),a=g.getArg(l,"column");if(!vr(f)||!vr(a))throw new Error("Section offset line and column must be non-negative integers.");if(f>Ae)throw new Error("Section offset line must not exceed "+Ae+".");if(f<o.line||f===o.line&&a<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");o=l;var p=new _(g.getArg(u,"map"),e),c=f+(p._maxOffsetLine||0);if(c>Ae)throw new Error("Section offset line must not exceed "+Ae+", including offsets of nested sections.");return c>s&&(s=c),{generatedOffset:{generatedLine:f+1,generatedColumn:a+1},consumer:p}}),this._maxOffsetLine=s}function vr(i){return typeof i=="number"&&i>=0&&i<=9007199254740991&&Math.floor(i)===i}B.prototype=Object.create(_.prototype);B.prototype.constructor=_;B.prototype._version=3;Object.defineProperty(B.prototype,"sources",{get:function(){for(var i=[],e=0;e<this._sections.length;e++)for(var t=this._sections[e].consumer.sources,r=0;r<t.length;r++)i.push(t[r]);return i}});B.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=st.search(t,this._sections,function(o,s){var u=o.generatedLine-s.generatedOffset.generatedLine;return u||o.generatedColumn-s.generatedOffset.generatedColumn}),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};B.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};B.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r],o=n.consumer.sourceContentFor(e,!0);if(o||o==="")return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};B.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(g.getArg(e,"source"))!==-1){var n=r.consumer.generatedPositionFor(e);if(n){var o={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};B.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],o=n.consumer._generatedMappings,s=0;s<o.length;s++){var u=o[s],l=n.consumer._sources.at(u.source);l!==null&&(l=g.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;u.name&&(f=n.consumer._names.at(u.name),this._names.add(f),f=this._names.indexOf(f));var a={source:l,generatedLine:u.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(n.generatedOffset.generatedLine===u.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:f};this.__generatedMappings.push(a),typeof a.originalLine=="number"&&this.__originalMappings.push(a)}he(this.__generatedMappings,g.compareByGeneratedPositionsDeflated),he(this.__originalMappings,g.compareByOriginalPositions)};Ee.IndexedSourceMapConsumer=B});var xr=v(Sr=>{var li=nt().SourceMapGenerator,Me=K(),ui=/(\r?\n)/,ai=10,Z="$$$isSourceNode$$$";function T(i,e,t,r,n){this.children=[],this.sourceContents={},this.line=i??null,this.column=e??null,this.source=t??null,this.name=n??null,this[Z]=!0,r!=null&&this.add(r)}T.fromStringWithSourceMap=function(e,t,r){var n=new T,o=e.split(ui),s=0,u=function(){var c=d(),h=d()||"";return c+h;function d(){return s<o.length?o[s++]:void 0}},l=1,f=0,a=null;return t.eachMapping(function(c){if(a!==null)if(l<c.generatedLine)p(a,u()),l++,f=0;else{var h=o[s]||"",d=h.substr(0,c.generatedColumn-f);o[s]=h.substr(c.generatedColumn-f),f=c.generatedColumn,p(a,d),a=c;return}for(;l<c.generatedLine;){if(s>=o.length){l=c.generatedLine;break}n.add(u()),l++}if(f<c.generatedColumn){var h=o[s]||"";n.add(h.substr(0,c.generatedColumn)),o[s]=h.substr(c.generatedColumn),f=c.generatedColumn}a=c},this),s<o.length&&(a&&p(a,u()),n.add(o.splice(s).join(""))),t.sources.forEach(function(c){var h=t.sourceContentFor(c);h!=null&&(r!=null&&(c=Me.join(r,c)),n.setSourceContent(c,h))}),n;function p(c,h){if(c===null||c.source===void 0)n.add(h);else{var d=r?Me.join(r,c.source):c.source;n.add(new T(c.originalLine,c.originalColumn,d,h,c.name))}}};T.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Z]||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};T.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Z]||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};T.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)t=this.children[r],t[Z]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};T.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};T.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Z]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};T.prototype.setSourceContent=function(e,t){this.sourceContents[Me.toSetString(e)]=t};T.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Z]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;t<r;t++)e(Me.fromSetString(n[t]),this.sourceContents[n[t]])};T.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};T.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new li(e),n=!1,o=null,s=null,u=null,l=null;return this.walk(function(f,a){t.code+=f,a.source!==null&&a.line!==null&&a.column!==null?((o!==a.source||s!==a.line||u!==a.column||l!==a.name)&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name}),o=a.source,s=a.line,u=a.column,l=a.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var p=0,c=f.length;p<c;p++)f.charCodeAt(p)===ai?(t.line++,t.column=0,p+1===c?(o=null,n=!1):n&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name})):t.column++}),this.walkSourceContents(function(f,a){r.setSourceContent(f,a)}),{code:t.code,map:r}};Sr.SourceNode=T});var lt=v(Re=>{Re.SourceMapGenerator=nt().SourceMapGenerator;Re.SourceMapConsumer=_r().SourceMapConsumer;Re.SourceNode=xr().SourceNode});var Mr=v((uo,Er)=>{"use strict";var{existsSync:fi,readFileSync:ci,realpathSync:hi}=be("fs"),{dirname:Pe,isAbsolute:pi,join:di,relative:mi,sep:gi}=be("path"),{SourceMapConsumer:Or,SourceMapGenerator:Lr}=lt();function Ar(i){try{return hi(i)}catch{return i}}function wi(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var pe=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Pe(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Or(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,s=e.match(n)||e.match(o);if(s)return decodeURIComponent(e.substr(s[0].length));let u=e.match(t)||e.match(r);if(u)return wi(e.substr(u[0].length));let l=e.slice(22);throw l=l.slice(0,l.indexOf(",")),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 r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=mi(Ar(Pe(t)),Ar(e));if(n===".."||n.startsWith(".."+gi)||pi(n))return}if(this.root=Pe(e),fi(e))return this.mapFile=e,ci(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 r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof Or)return Lr.fromSourceMap(t).toString();if(t instanceof Lr)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 r=this.annotation;e&&(r=di(Pe(e),r));let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Er.exports=pe;pe.default=pe});var kr=v((ao,Tr)=>{"use strict";var{nanoid:yi}=Kt(),{isAbsolute:ft,resolve:ct}=be("path"),{SourceMapConsumer:bi,SourceMapGenerator:vi}=lt(),{fileURLToPath:Rr,pathToFileURL:Ne}=be("url"),Pr=De(),Ci=Mr(),ut=qe(),at=Symbol("lineToIndexCache"),_i=!!(bi&&vi),Nr=!!(ct&&ft);function Fr(i){if(i[at])return i[at];let e=i.css.split(`
23
- `),t=new Array(e.length),r=0;for(let n=0,o=e.length;n<o;n++)t[n]=r,r+=e[n].length+1;return i[at]=t,t}var ee=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&&(!Nr||/^\w+:\/\//.test(t.from)||ft(t.from)?this.file=t.from:this.file=ct(t.from)),Nr&&_i){let r=new Ci(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+yi(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let o,s,u,l,f;if(t&&typeof t=="object"){let p=t,c=r;if(typeof p.offset=="number"){l=p.offset;let h=this.fromOffset(l);t=h.line,r=h.col}else t=p.line,r=p.column,l=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){u=c.offset;let h=this.fromOffset(u);s=h.line,o=h.col}else s=c.line,o=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let p=this.fromOffset(l);t=p.line,r=p.col}let a=this.origin(t,r,s,o);return a?f=new Pr(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):f=new Pr(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:o,line:s},this.css,this.file,n.plugin),f.input={column:r,endColumn:o,endLine:s,endOffset:u,line:t,offset:l,source:this.css},this.file&&(Ne&&(f.input.url=Ne(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Fr(this)[e-1]+t-1}fromOffset(e){let t=Fr(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let o=t.length-2,s;for(;n<o;)if(s=n+(o-n>>1),e<t[s])o=s-1;else if(e>=t[s+1])n=s+1;else{n=s;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ct(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t-1,line:e});if(!s.source)return!1;let u;if(typeof r=="number"){let p=o.originalPositionFor({column:n-1,line:r});p.source&&(u=p)}let l;ft(s.source)?l=Ne(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ne(this.map.mapFile));let f={column:s.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Rr)f.file=Rr(l);else throw new Error("file: protocol is not available in this PostCSS build");let a=o.sourceContentFor(s.source);return a&&(f.source=a),f}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}};Tr.exports=ee;ee.default=ee;ut&&ut.registerInput&&ut.registerInput(ee)});var qr=v((fo,Br)=>{"use strict";var Ir=ae(),te=class extends Ir{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)}};Br.exports=te;te.default=te;Ir.registerAtRule(te)});var $r=v((co,jr)=>{"use strict";var Dr=ae(),Ur,Gr,Q=class extends Dr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=new Set;for(let s of Array.isArray(e)?e:[e])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let o=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of o)n.has(s.raws)||(s.raws.before=t.raws.before)}return o}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ur(new Gr,this,e).stringify()}};Q.registerLazyResult=i=>{Ur=i};Q.registerProcessor=i=>{Gr=i};jr.exports=Q;Q.default=Q;Dr.registerRoot(Q)});var Wr=v((ho,zr)=>{"use strict";var de={comma(i){return de.split(i,[","],!0)},space(i){let e=[" ",`
24
- `," "];return de.split(i,e)},split(i,e,t){if(typeof i!="string")return[];let r=[],n="",o=!1,s=0,u=!1,l="",f=!1,a=!1;for(let c=0;c<i.length;c++){let h=i[c];if(a){n+=h,h==="*"&&i[c+1]==="/"&&(n+="/",c+=1,a=!1);continue}if(f)f=!1;else if(h==="\\")f=!0;else if(u)h===l&&(u=!1);else if(h==='"'||h==="'")u=!0,l=h;else if(h==="/"&&i[c+1]==="*"){n+="/*",c+=1,a=!0;continue}else h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0);if(o){let d=n.trim();(t||d!=="")&&r.push(d),n="",o=!1}else n+=h}let p=n.trim();return(t||p!=="")&&r.push(p),r}};zr.exports=de;de.default=de});var Hr=v((po,Jr)=>{"use strict";var Qr=ae(),Si=Wr(),re=class extends Qr{get selectors(){return Si.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Jr.exports=re;re.default=re;Qr.registerRule(re)});var Xr=v((mo,Kr)=>{"use strict";var xi=qr(),Oi=We(),Li=Qe(),Ai=$r(),Vr=Hr(),Ei=Be(),Yr={empty:!0,space:!0};function Mi(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}function ht(i,e,t){let r="";for(let n=e;n<t;n++)r+=i[n][1];return r}var pt=class{constructor(e){this.input=e,this.root=new Ai,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 xi;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,o,s=!1,u=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,n=l[o];n&&n[0]==="space";)n=l[--o];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(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=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let o=t-1;o>=0&&(n=e[o],!(n[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,o;for(let[s,u]of e.entries()){if(n=u,o=n[0],o==="("&&(t+=1),o===")"&&(t-=1),t===0&&o===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(e){let t=new Oi;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Ei(this.input)}decl(e,t){let r=new Li;this.init(r,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Mi(e)),r.source.end.offset++;let o=0;for(;e[o][0]!=="word";)o===e.length-1&&this.unknownWord([e[o]]),o++;r.raws.before+=ht(e,0,o),r.source.start=this.getPosition(e[o][2]);let s=o;for(;o<e.length;){let c=e[o][0];if(c===":"||c==="space"||c==="comment")break;o++}r.prop=ht(e,s,o);let u=o,l;for(;o<e.length&&(l=e[o],o++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=ht(e,u,o),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=o;for(;o<e.length;){let c=e[o][0];if(c!=="space"&&c!=="comment")break;o++}let a=e.slice(f,o);e=e.slice(o),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(l=e[c],l[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(r.raws.important=h);break}else if(l[1].toLowerCase()==="important"){let h=e.slice(0),d="";for(let w=c;w>0;w--){let m=h[w][0];if(d.trim().startsWith("!")&&m!=="space")break;d=h.pop()[1]+d}d.trim().startsWith("!")&&(r.important=!0,r.raws.important=d,e=h)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 Vr;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++)}}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,r=null,n=!1,o=null,s=[],u=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")o||(o=f),s.push(r==="("?")":"]");else if(u&&n&&r==="{")o||(o=f),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,u);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&n){if(!u)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}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,r,n){let o,s,u=r.length,l="",f="",a=!0,p,c;for(let h=0;h<u;h+=1)o=r[h],s=o[0],s==="space"&&h===u-1&&!n?a=!1:s==="comment"?(c=r[h-1]?r[h-1][0]:"empty",p=r[h+1]?r[h+1][0]:"empty",!Yr[c]&&!Yr[p]?f===","?a=!1:(l+=o[1],f=o[1].slice(-1)):a=!1):(l+=o[1],f=o[1].slice(-1));if(!a){let h=r.reduce((d,w)=>d+w[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Vr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}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})}};Kr.exports=pt});var en=v((go,Zr)=>{"use strict";var Ri=ae(),Pi=kr(),Ni=Xr();function Fe(i,e){let t=new Pi(i,e),r=new Ni(t);try{r.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
20
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){!(e.parent&&e.parent.type==="document")&&e.source&&e.source.input.hasBOM&&this.builder("\uFEFF",e,"start"),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)}};It.exports=ie;ie.default=ie});var qt=v((zi,Bt)=>{"use strict";var Sn=Ge(),xn=/(<)(\/?style\b)/gi,On=/(<)(!--)/g;function Ln(i){return i.includes("<")?i.replace(xn,"\\3c $2").replace(On,"\\3c $2"):i}function An(i,e,t){let r=[],n=0,o=0;for(let s=0;s<i.length;s+=3){let u=o,l=n+i[s].length;for(;n<l;)e[n]===t[o]?(n+=1,o+=1):(n+=1,o+=4);r.push(t.slice(u,o))}return r}var je=class extends Sn{escapeHTML(e){let t=this.builder,r,n;if(this.builder=(s,u,l)=>{r?(n+=s,r.push(s,u,l)):s.includes("<")?(n=s,r=[s,u,l]):t(s,u,l)},e(),this.builder=t,!r)return;let o=Ln(n);if(o===n)for(let s=0;s<r.length;s+=3)t(r[s],r[s+1],r[s+2]);else{let s=An(r,n,o);for(let u=0;u<r.length;u+=3)t(s[u/3],r[u+1],r[u+2])}}root(e){e.parent&&e.parent.type==="document"?(this.escapeHTML(()=>this.body(e)),e.raws.after&&this.builder(e.raws.after)):this.escapeHTML(()=>super.root(e))}};function $e(i,e){let t=new je(e);i.type==="root"||i.type==="document"?t.stringify(i):t.escapeHTML(()=>t.stringify(i))}Bt.exports=$e;$e.default=$e});var We=v((Wi,ze)=>{"use strict";ze.exports.isClean=Symbol("isClean");ze.exports.my=Symbol("my")});var xe=v((Qi,Dt)=>{"use strict";var En=Ue(),Mn=Ge(),Rn=qt(),{isClean:oe,my:Pn}=We();function Nn(i,e){let t=new i.constructor,r=[[i,t,e]];for(;r.length>0;){let[n,o,s]=r.pop();for(let u in n){if(!Object.prototype.hasOwnProperty.call(n,u)||u==="proxyCache")continue;let l=n[u],f=typeof l;if(u==="parent"&&f==="object")s&&(o[u]=s);else if(u==="source")o[u]=l;else if(Array.isArray(l)){let a=[];o[u]=a;for(let p of l){let c=new p.constructor;a.push(c),r.push([p,c,o])}}else{if(f==="object"&&l!==null){let a=new l.constructor;r.push([l,a,void 0]),l=a}o[u]=l}}}return t}function W(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,n=0;for(let o=0;o<i.length;o++){if(r===e.line&&t===e.column){n=o;break}i[o]===`
21
+ `?(t=1,r+=1):t+=1}return n}var se=class i{get proxyOf(){return this}constructor(e={}){this.raws={},this[oe]=!1,this[Pn]=!0;for(let t of Object.keys(e))if(t!=="__proto__")if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"&&r.parent?this.append(r.clone()):this.append(r)}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=Nn(this);for(let r in e)t[r]=e[r];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:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new En(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[oe]=!0}markDirty(){if(this[oe]){this[oe]=!1;let e=this;for(;e=e.parent;)e[oe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:W(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let o=t.slice(W(t,this.source.start),this.rangeBy().end.offset).indexOf(e.word);o!==-1&&(r=this.positionInside(o))}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,o=W(n,this.source.start),s=o+e;for(let u=o;u<s;u++)n[u]===`
22
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:W(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:W(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(W(t,this.source.start),n.offset).indexOf(e.word);s!==-1&&(r=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:W(t,e.start)}:typeof e.index=="number"&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:W(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):typeof e.index=="number"&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new Mn().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,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],o=[[this,n,0]];for(let u=0;u<o.length;u++){let[l,f,a]=o[u],p={};f[a]=p;for(let c in l){if(!Object.prototype.hasOwnProperty.call(l,c)||c==="parent"||c==="proxyCache")continue;let h=l[c];if(Array.isArray(h)){let d=[];p[c]=d;for(let w=0;w<h.length;w++){let m=h[w];typeof m=="object"&&m.toJSON?m.toJSON===i.prototype.toJSON?o.push([m,d,w]):d[w]=m.toJSON(null,t):d[w]=m}}else if(typeof h=="object"&&h.toJSON)h.toJSON===i.prototype.toJSON?o.push([h,p,c]):p[c]=h.toJSON(null,t);else if(c==="source"){if(h==null)continue;let d=t.get(h.input);d==null&&(d=t.size,t.set(h.input,d)),p[c]={end:h.end,inputId:d,start:h.start}}else p[c]=h}}let s=n[0];return r&&(s.inputs=[...t.keys()].map(u=>u.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Rn){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let o in r)n[o]=r[o];return e.warn(t,n)}};Dt.exports=se;se.default=se});var Qe=v((Ji,Ut)=>{"use strict";var Fn=xe(),le=class extends Fn{constructor(e){super(e),this.type="comment"}};Ut.exports=le;le.default=le});var Je=v((Hi,Gt)=>{"use strict";var Tn=xe(),ue=class extends Tn{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"}};Gt.exports=ue;ue.default=ue});var ae=v((Vi,Vt)=>{"use strict";var $t=Qe(),zt=Je(),jt=xe(),{isClean:Wt,my:Qt}=We(),He,Jt,Ht,Ve;function kn(i){let e=i.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let r of t.nodes)e.push(r)}}return i.slice()}function In(i){let e=[i];for(;e.length>0;){let t=e.pop();if(t[Wt]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e.push(r)}}var G=class i extends jt{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 r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let r=t.pop();if(r!==this&&r.cleanRaws!==i.prototype.cleanRaws){r.cleanRaws(e);continue}if(jt.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}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")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(o,s)=>n(o.toProxy(),s):n)):t==="every"||t==="some"?r=>e[t]((n,...o)=>r(n.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(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 r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of n)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let u of o)this.proxyOf.nodes.splice(r,0,u);let s;for(let u in this.indexes)s=this.indexes[u],r<=s&&(this.indexes[u]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=kn(Jt(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"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 zt(e)]}else if(e.selector||e.selectors)e=[new Ve(e)];else if(e.name)e=[new He(e)];else if(e.text)e=[new $t(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Qt]||i.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Wt]&&In(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.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 r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:r,node:n}=t[t.length-1],o=n.indexes[r];if(o>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let l=t[t.length-1];l&&(l.node.indexes[l.iterator]+=1);continue}let s=n.proxyOf.nodes[o],u;try{u=e(s,o)}catch(l){throw s.addToError(l)}if(u===!1){for(let l of t)delete l.node.indexes[l.iterator];return!1}s.walk&&s.proxyOf.nodes?t.push({iterator:s.getIterator(),node:s}):n.indexes[r]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}};G.registerParse=i=>{Jt=i};G.registerRule=i=>{Ve=i};G.registerAtRule=i=>{He=i};G.registerRoot=i=>{Ht=i};Vt.exports=G;G.default=G;G.rebuild=i=>{let e=[i];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,He.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ve.prototype):t.type==="decl"?Object.setPrototypeOf(t,zt.prototype):t.type==="comment"?Object.setPrototypeOf(t,$t.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ht.prototype),t[Qt]=!0,t.nodes)for(let r of t.nodes)e.push(r)}}});var Kt=v((Yi,Yt)=>{var Bn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qn=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n-- >0;)r+=i[Math.random()*i.length|0];return r},Dn=(i=21)=>{let e="",t=i|0;for(;t-- >0;)e+=Bn[Math.random()*64|0];return e};Yt.exports={nanoid:Dn,customAlphabet:qn}});var Zt=v(Ye=>{var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ye.encode=function(i){if(0<=i&&i<Xt.length)return Xt[i];throw new TypeError("Must be between 0 and 63: "+i)};Ye.decode=function(i){var e=65,t=90,r=97,n=122,o=48,s=57,u=43,l=47,f=26,a=52;return e<=i&&i<=t?i-e:r<=i&&i<=n?i-r+f:o<=i&&i<=s?i-o+a:i==u?62:i==l?63:-1}});var Ze=v(Xe=>{var er=Zt(),Ke=5,tr=1<<Ke,rr=tr-1,nr=tr;function Un(i){return i<0?(-i<<1)+1:(i<<1)+0}function Gn(i){var e=(i&1)===1,t=i>>1;return e?-t:t}Xe.encode=function(e){var t="",r,n=Un(e);do r=n&rr,n>>>=Ke,n>0&&(r|=nr),t+=er.encode(r);while(n>0);return t};Xe.decode=function(e,t,r){var n=e.length,o=0,s=0,u,l;do{if(t>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=er.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(l&nr),l&=rr,o=o+(l<<s),s+=Ke}while(u);r.value=Gn(o),r.rest=t}});var K=v(E=>{function jn(i,e,t){if(e in i)return i[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}E.getArg=jn;var ir=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,$n=/^data:.+\,.+$/;function fe(i){var e=i.match(ir);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}E.urlParse=fe;function Y(i){var e="";return i.scheme&&(e+=i.scheme+":"),e+="//",i.auth&&(e+=i.auth+"@"),i.host&&(e+=i.host),i.port&&(e+=":"+i.port),i.path&&(e+=i.path),e}E.urlGenerate=Y;var zn=32;function Wn(i){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var n=e[0];return e[0]=e[r],e[r]=n,e[0].result}var o=i(t);return e.unshift({input:t,result:o}),e.length>zn&&e.pop(),o}}var et=Wn(function(e){var t=e,r=fe(e);if(r){if(!r.path)return e;t=r.path}for(var n=E.isAbsolute(t),o=[],s=0,u=0;;)if(s=u,u=t.indexOf("/",s),u===-1){o.push(t.slice(s));break}else for(o.push(t.slice(s,u));u<t.length&&t[u]==="/";)u++;for(var l,f=0,u=o.length-1;u>=0;u--)l=o[u],l==="."?o.splice(u,1):l===".."?f++:f>0&&(l===""?(o.splice(u+1,f),f=0):(o.splice(u,2),f--));return t=o.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Y(r)):t});E.normalize=et;function or(i,e){i===""&&(i="."),e===""&&(e=".");var t=fe(e),r=fe(i);if(r&&(i=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),Y(t);if(t||e.match($n))return e;if(r&&!r.host&&!r.path)return r.host=e,Y(r);var n=e.charAt(0)==="/"?e:et(i.replace(/\/+$/,"")+"/"+e);return r?(r.path=n,Y(r)):n}E.join=or;E.isAbsolute=function(i){return i.charAt(0)==="/"||ir.test(i)};function Qn(i,e){i===""&&(i="."),i=i.replace(/\/$/,"");for(var t=0;e.indexOf(i+"/")!==0;){var r=i.lastIndexOf("/");if(r<0||(i=i.slice(0,r),i.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(i.length+1)}E.relative=Qn;var sr=(function(){var i=Object.create(null);return!("__proto__"in i)})();function lr(i){return i}function Jn(i){return ur(i)?"$"+i:i}E.toSetString=sr?lr:Jn;function Hn(i){return ur(i)?i.slice(1):i}E.fromSetString=sr?lr:Hn;function ur(i){if(!i)return!1;var e=i.length;if(e<9||i.charCodeAt(e-1)!==95||i.charCodeAt(e-2)!==95||i.charCodeAt(e-3)!==111||i.charCodeAt(e-4)!==116||i.charCodeAt(e-5)!==111||i.charCodeAt(e-6)!==114||i.charCodeAt(e-7)!==112||i.charCodeAt(e-8)!==95||i.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(i.charCodeAt(t)!==36)return!1;return!0}function Vn(i,e,t){var r=j(i.source,e.source);return r!==0||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:j(i.name,e.name)}E.compareByOriginalPositions=Vn;function Yn(i,e,t){var r;return r=i.originalLine-e.originalLine,r!==0||(r=i.originalColumn-e.originalColumn,r!==0||t)||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=i.generatedLine-e.generatedLine,r!==0)?r:j(i.name,e.name)}E.compareByOriginalPositionsNoSource=Yn;function Kn(i,e,t){var r=i.generatedLine-e.generatedLine;return r!==0||(r=i.generatedColumn-e.generatedColumn,r!==0||t)||(r=j(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:j(i.name,e.name)}E.compareByGeneratedPositionsDeflated=Kn;function Xn(i,e,t){var r=i.generatedColumn-e.generatedColumn;return r!==0||t||(r=j(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:j(i.name,e.name)}E.compareByGeneratedPositionsDeflatedNoLine=Xn;function j(i,e){return i===e?0:i===null?1:e===null?-1:i>e?1:-1}function Zn(i,e){var t=i.generatedLine-e.generatedLine;return t!==0||(t=i.generatedColumn-e.generatedColumn,t!==0)||(t=j(i.source,e.source),t!==0)||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0)?t:j(i.name,e.name)}E.compareByGeneratedPositionsInflated=Zn;function ei(i){return JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}E.parseSourceMapInput=ei;function ti(i,e,t){if(e=e||"",i&&(i[i.length-1]!=="/"&&e[0]!=="/"&&(i+="/"),e=i+e),t){var r=fe(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var n=r.path.lastIndexOf("/");n>=0&&(r.path=r.path.substring(0,n+1))}e=or(Y(r),e)}return et(e)}E.computeSourceURL=ti});var nt=v(ar=>{var tt=K(),rt=Object.prototype.hasOwnProperty,J=typeof Map<"u";function $(){this._array=[],this._set=J?new Map:Object.create(null)}$.fromArray=function(e,t){for(var r=new $,n=0,o=e.length;n<o;n++)r.add(e[n],t);return r};$.prototype.size=function(){return J?this._set.size:Object.getOwnPropertyNames(this._set).length};$.prototype.add=function(e,t){var r=J?e:tt.toSetString(e),n=J?this.has(e):rt.call(this._set,r),o=this._array.length;(!n||t)&&this._array.push(e),n||(J?this._set.set(e,o):this._set[r]=o)};$.prototype.has=function(e){if(J)return this._set.has(e);var t=tt.toSetString(e);return rt.call(this._set,t)};$.prototype.indexOf=function(e){if(J){var t=this._set.get(e);if(t>=0)return t}else{var r=tt.toSetString(e);if(rt.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};$.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};$.prototype.toArray=function(){return this._array.slice()};ar.ArraySet=$});var hr=v(cr=>{var fr=K();function ri(i,e){var t=i.generatedLine,r=e.generatedLine,n=i.generatedColumn,o=e.generatedColumn;return r>t||r==t&&o>=n||fr.compareByGeneratedPositionsInflated(i,e)<=0}function Oe(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Oe.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Oe.prototype.add=function(e){ri(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Oe.prototype.toArray=function(){return this._sorted||(this._array.sort(fr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};cr.MappingList=Oe});var it=v(pr=>{var ce=Ze(),O=K(),Le=nt().ArraySet,ni=hr().MappingList;function I(i){i||(i={}),this._file=O.getArg(i,"file",null),this._sourceRoot=O.getArg(i,"sourceRoot",null),this._skipValidation=O.getArg(i,"skipValidation",!1),this._ignoreInvalidMapping=O.getArg(i,"ignoreInvalidMapping",!1),this._sources=new Le,this._names=new Le,this._mappings=new ni,this._sourcesContents=null}I.prototype._version=3;I.fromSourceMap=function(e,t){var r=e.sourceRoot,n=new I(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(o){var s={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(s.source=o.source,r!=null&&(s.source=O.relative(r,s.source)),s.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(s.name=o.name)),n.addMapping(s)}),e.sources.forEach(function(o){var s=o;r!==null&&(s=O.relative(r,o)),n._sources.has(s)||n._sources.add(s);var u=e.sourceContentFor(o);u!=null&&n.setSourceContent(o,u)}),n};I.prototype.addMapping=function(e){var t=O.getArg(e,"generated"),r=O.getArg(e,"original",null),n=O.getArg(e,"source",null),o=O.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,n,o)===!1||(n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:o}))};I.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=O.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[O.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[O.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};I.prototype.applySourceMap=function(e,t,r){var n=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.`);n=e.file}var o=this._sourceRoot;o!=null&&(n=O.relative(o,n));var s=new Le,u=new Le;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=O.join(r,l.source)),o!=null&&(l.source=O.relative(o,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var a=l.source;a!=null&&!s.has(a)&&s.add(a);var p=l.name;p!=null&&!u.has(p)&&u.add(p)},this),this._sources=s,this._names=u,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=O.join(r,l)),o!=null&&(l=O.relative(o,l)),this.setSourceContent(l,f))},this)};I.prototype._validateMapping=function(e,t,r,n){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var o="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(o),!1;throw new Error(o)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n)){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&&r)return;var o="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(o),!1;throw new Error(o)}};I.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,n=0,o=0,s=0,u="",l,f,a,p,c=this._mappings.toArray(),h=0,d=c.length;h<d;h++){if(f=c[h],l="",f.generatedLine!==t){e=0;var w=f.generatedLine-t;l+=w===1?";":";".repeat(w),t=f.generatedLine}else if(h>0){if(!O.compareByGeneratedPositionsInflated(f,c[h-1]))continue;l+=","}l+=ce.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(p=this._sources.indexOf(f.source),l+=ce.encode(p-s),s=p,l+=ce.encode(f.originalLine-1-n),n=f.originalLine-1,l+=ce.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(a=this._names.indexOf(f.name),l+=ce.encode(a-o),o=a)),u+=l}return u};I.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=O.relative(t,r));var n=O.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};I.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};I.prototype.toString=function(){return JSON.stringify(this.toJSON())};pr.SourceMapGenerator=I});var dr=v(H=>{H.GREATEST_LOWER_BOUND=1;H.LEAST_UPPER_BOUND=2;function ot(i,e,t,r,n,o){var s=Math.floor((e-i)/2)+i,u=n(t,r[s],!0);return u===0?s:u>0?e-s>1?ot(s,e,t,r,n,o):o==H.LEAST_UPPER_BOUND?e<r.length?e:-1:s:s-i>1?ot(i,s,t,r,n,o):o==H.LEAST_UPPER_BOUND?s:i<0?-1:i}H.search=function(e,t,r,n){if(t.length===0)return-1;var o=ot(-1,t.length,e,t,r,n||H.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&r(t[o],t[o-1],!0)===0;)--o;return o}});var yr=v(wr=>{function gr(i){function e(n,o,s){var u=n[o];n[o]=n[s],n[s]=u}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,s,u){if(s<u){var l=t(s,u),f=s-1;e(n,l,u);for(var a=n[u],p=s;p<u;p++)o(n[p],a,!1)<=0&&(f+=1,e(n,f,p));e(n,f+1,p);var c=f+1;r(n,o,s,c-1),r(n,o,c+1,u)}}return r}function ii(i){let e=gr.toString();return new Function(`return ${e}`)()(i)}var oi=(function(){try{return new Function("return 0")(),!0}catch{return!1}})(),mr=new WeakMap;wr.quickSort=function(i,e,t=0){let r=oi?mr.get(e):gr(e);r===void 0&&(r=ii(e),mr.set(e,r)),r(i,e,t,i.length-1)}});var _r=v(Ee=>{var g=K(),lt=dr(),X=nt().ArraySet,si=Ze(),he=yr().quickSort,Ae=1e7;function _(i,e){var t=i;return typeof i=="string"&&(t=g.parseSourceMapInput(i)),t.sections!=null?new B(t,e):new M(t,e)}_.fromSourceMap=function(i,e){return M.fromSourceMap(i,e)};_.prototype._version=3;_.prototype.__generatedMappings=null;Object.defineProperty(_.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});_.prototype.__originalMappings=null;Object.defineProperty(_.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});_.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};_.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};_.GENERATED_ORDER=1;_.ORIGINAL_ORDER=2;_.GREATEST_LOWER_BOUND=1;_.LEAST_UPPER_BOUND=2;_.prototype.eachMapping=function(e,t,r){var n=t||null,o=r||_.GENERATED_ORDER,s;switch(o){case _.GENERATED_ORDER:s=this._generatedMappings;break;case _.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var u=this.sourceRoot,l=e.bind(n),f=this._names,a=this._sources,p=this._sourceMapURL,c=0,h=s.length;c<h;c++){var d=s[c],w=d.source===null?null:a.at(d.source);w!==null&&(w=g.computeSourceURL(u,w,p)),l({source:w,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:f.at(d.name)})}};_.prototype.allGeneratedPositionsFor=function(e){var t=g.getArg(e,"line"),r={source:g.getArg(e,"source"),originalLine:t,originalColumn:g.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,lt.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var u=s.originalLine;s&&s.originalLine===u;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)n.push({line:g.getArg(s,"generatedLine",null),column:g.getArg(s,"generatedColumn",null),lastColumn:g.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return n};Ee.SourceMapConsumer=_;function M(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sources"),o=g.getArg(t,"names",[]),s=g.getArg(t,"sourceRoot",null),u=g.getArg(t,"sourcesContent",null),l=g.getArg(t,"mappings"),f=g.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);s&&(s=g.normalize(s)),n=n.map(String).map(g.normalize).map(function(a){return s&&g.isAbsolute(s)&&g.isAbsolute(a)?g.relative(s,a):a}),this._names=X.fromArray(o.map(String),!0),this._sources=X.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(a){return g.computeSourceURL(s,a,e)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=e,this.file=f}M.prototype=Object.create(_.prototype);M.prototype.consumer=_;M.prototype._findSourceIndex=function(i){var e=i;if(this.sourceRoot!=null&&(e=g.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]==i)return t;return-1};M.fromSourceMap=function(e,t){var r=Object.create(M.prototype),n=r._names=X.fromArray(e._names.toArray(),!0),o=r._sources=X.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(h){return g.computeSourceURL(r.sourceRoot,h,t)});for(var s=e._mappings.toArray().slice(),u=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,a=s.length;f<a;f++){var p=s[f],c=new Cr;c.generatedLine=p.generatedLine,c.generatedColumn=p.generatedColumn,p.source&&(c.source=o.indexOf(p.source),c.originalLine=p.originalLine,c.originalColumn=p.originalColumn,p.name&&(c.name=n.indexOf(p.name)),l.push(c)),u.push(c)}return he(r.__originalMappings,g.compareByOriginalPositions),r};M.prototype._version=3;Object.defineProperty(M.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Cr(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var st=g.compareByGeneratedPositionsDeflatedNoLine;function br(i,e){let t=i.length,r=i.length-e;if(!(r<=1))if(r==2){let n=i[e],o=i[e+1];st(n,o)>0&&(i[e]=o,i[e+1]=n)}else if(r<20)for(let n=e;n<t;n++)for(let o=n;o>e;o--){let s=i[o-1],u=i[o];if(st(s,u)<=0)break;i[o-1]=u,i[o]=s}else he(i,st,e)}M.prototype._parseMappings=function(e,t){var r=1,n=0,o=0,s=0,u=0,l=0,f=e.length,a=0,p={},c={},h=[],d=[],w,m,b,y,C;let S=0;for(;a<f;)if(e.charAt(a)===";")r++,a++,n=0,br(d,S),S=d.length;else if(e.charAt(a)===",")a++;else{for(w=new Cr,w.generatedLine=r,y=a;y<f&&!this._charIsMappingSeparator(e,y);y++);for(m=e.slice(a,y),b=[];a<y;)si.decode(e,a,c),C=c.value,a=c.rest,b.push(C);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");if(w.generatedColumn=n+b[0],n=w.generatedColumn,b.length>1&&(w.source=u+b[1],u+=b[1],w.originalLine=o+b[2],o=w.originalLine,w.originalLine+=1,w.originalColumn=s+b[3],s=w.originalColumn,b.length>4&&(w.name=l+b[4],l+=b[4])),d.push(w),typeof w.originalLine=="number"){let x=w.source;for(;h.length<=x;)h.push(null);h[x]===null&&(h[x]=[]),h[x].push(w)}}br(d,S),this.__generatedMappings=d;for(var L=0;L<h.length;L++)h[L]!=null&&he(h[L],g.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};M.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return lt.search(e,t,o,s)};M.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};M.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",g.compareByGeneratedPositionsDeflated,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var o=g.getArg(n,"source",null);o!==null&&(o=this._sources.at(o),o=g.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=g.getArg(n,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:g.getArg(n,"originalLine",null),column:g.getArg(n,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};M.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};M.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n=e;this.sourceRoot!=null&&(n=g.relative(this.sourceRoot,n));var o;if(this.sourceRoot!=null&&(o=g.urlParse(this.sourceRoot))){var s=n.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')};M.prototype.generatedPositionFor=function(e){var t=g.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:g.getArg(e,"line"),originalColumn:g.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",g.compareByOriginalPositions,g.getArg(e,"bias",_.GREATEST_LOWER_BOUND));if(n>=0){var o=this._originalMappings[n];if(o.source===r.source)return{line:g.getArg(o,"generatedLine",null),column:g.getArg(o,"generatedColumn",null),lastColumn:g.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ee.BasicSourceMapConsumer=M;function B(i,e){var t=i;typeof i=="string"&&(t=g.parseSourceMapInput(i));var r=g.getArg(t,"version"),n=g.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new X,this._names=new X;var o={line:-1,column:0},s=0;this._sections=n.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=g.getArg(u,"offset"),f=g.getArg(l,"line"),a=g.getArg(l,"column");if(!vr(f)||!vr(a))throw new Error("Section offset line and column must be non-negative integers.");if(f>Ae)throw new Error("Section offset line must not exceed "+Ae+".");if(f<o.line||f===o.line&&a<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");o=l;var p=new _(g.getArg(u,"map"),e),c=f+(p._maxOffsetLine||0);if(c>Ae)throw new Error("Section offset line must not exceed "+Ae+", including offsets of nested sections.");return c>s&&(s=c),{generatedOffset:{generatedLine:f+1,generatedColumn:a+1},consumer:p}}),this._maxOffsetLine=s}function vr(i){return typeof i=="number"&&i>=0&&i<=9007199254740991&&Math.floor(i)===i}B.prototype=Object.create(_.prototype);B.prototype.constructor=_;B.prototype._version=3;Object.defineProperty(B.prototype,"sources",{get:function(){for(var i=[],e=0;e<this._sections.length;e++)for(var t=this._sections[e].consumer.sources,r=0;r<t.length;r++)i.push(t[r]);return i}});B.prototype.originalPositionFor=function(e){var t={generatedLine:g.getArg(e,"line"),generatedColumn:g.getArg(e,"column")},r=lt.search(t,this._sections,function(o,s){var u=o.generatedLine-s.generatedOffset.generatedLine;return u||o.generatedColumn-s.generatedOffset.generatedColumn}),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};B.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};B.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r],o=n.consumer.sourceContentFor(e,!0);if(o||o==="")return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};B.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(g.getArg(e,"source"))!==-1){var n=r.consumer.generatedPositionFor(e);if(n){var o={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};B.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],o=n.consumer._generatedMappings,s=0;s<o.length;s++){var u=o[s],l=n.consumer._sources.at(u.source);l!==null&&(l=g.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;u.name&&(f=n.consumer._names.at(u.name),this._names.add(f),f=this._names.indexOf(f));var a={source:l,generatedLine:u.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(n.generatedOffset.generatedLine===u.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:f};this.__generatedMappings.push(a),typeof a.originalLine=="number"&&this.__originalMappings.push(a)}he(this.__generatedMappings,g.compareByGeneratedPositionsDeflated),he(this.__originalMappings,g.compareByOriginalPositions)};Ee.IndexedSourceMapConsumer=B});var xr=v(Sr=>{var li=it().SourceMapGenerator,Me=K(),ui=/(\r?\n)/,ai=10,Z="$$$isSourceNode$$$";function T(i,e,t,r,n){this.children=[],this.sourceContents={},this.line=i??null,this.column=e??null,this.source=t??null,this.name=n??null,this[Z]=!0,r!=null&&this.add(r)}T.fromStringWithSourceMap=function(e,t,r){var n=new T,o=e.split(ui),s=0,u=function(){var c=d(),h=d()||"";return c+h;function d(){return s<o.length?o[s++]:void 0}},l=1,f=0,a=null;return t.eachMapping(function(c){if(a!==null)if(l<c.generatedLine)p(a,u()),l++,f=0;else{var h=o[s]||"",d=h.substr(0,c.generatedColumn-f);o[s]=h.substr(c.generatedColumn-f),f=c.generatedColumn,p(a,d),a=c;return}for(;l<c.generatedLine;){if(s>=o.length){l=c.generatedLine;break}n.add(u()),l++}if(f<c.generatedColumn){var h=o[s]||"";n.add(h.substr(0,c.generatedColumn)),o[s]=h.substr(c.generatedColumn),f=c.generatedColumn}a=c},this),s<o.length&&(a&&p(a,u()),n.add(o.splice(s).join(""))),t.sources.forEach(function(c){var h=t.sourceContentFor(c);h!=null&&(r!=null&&(c=Me.join(r,c)),n.setSourceContent(c,h))}),n;function p(c,h){if(c===null||c.source===void 0)n.add(h);else{var d=r?Me.join(r,c.source):c.source;n.add(new T(c.originalLine,c.originalColumn,d,h,c.name))}}};T.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Z]||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};T.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Z]||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};T.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)t=this.children[r],t[Z]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};T.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};T.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Z]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};T.prototype.setSourceContent=function(e,t){this.sourceContents[Me.toSetString(e)]=t};T.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Z]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;t<r;t++)e(Me.fromSetString(n[t]),this.sourceContents[n[t]])};T.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};T.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new li(e),n=!1,o=null,s=null,u=null,l=null;return this.walk(function(f,a){t.code+=f,a.source!==null&&a.line!==null&&a.column!==null?((o!==a.source||s!==a.line||u!==a.column||l!==a.name)&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name}),o=a.source,s=a.line,u=a.column,l=a.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,n=!1);for(var p=0,c=f.length;p<c;p++)f.charCodeAt(p)===ai?(t.line++,t.column=0,p+1===c?(o=null,n=!1):n&&r.addMapping({source:a.source,original:{line:a.line,column:a.column},generated:{line:t.line,column:t.column},name:a.name})):t.column++}),this.walkSourceContents(function(f,a){r.setSourceContent(f,a)}),{code:t.code,map:r}};Sr.SourceNode=T});var ut=v(Re=>{Re.SourceMapGenerator=it().SourceMapGenerator;Re.SourceMapConsumer=_r().SourceMapConsumer;Re.SourceNode=xr().SourceNode});var Mr=v((uo,Er)=>{"use strict";var{existsSync:fi,readFileSync:ci,realpathSync:hi}=be("fs"),{dirname:Pe,isAbsolute:pi,join:di,relative:mi,sep:gi}=be("path"),{SourceMapConsumer:Or,SourceMapGenerator:Lr}=ut();function Ar(i){try{return hi(i)}catch{return i}}function wi(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var pe=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Pe(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Or(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,s=e.match(n)||e.match(o);if(s)return decodeURIComponent(e.substr(s[0].length));let u=e.match(t)||e.match(r);if(u)return wi(e.substr(u[0].length));let l=e.slice(22);throw l=l.slice(0,l.indexOf(",")),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 r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=mi(Ar(Pe(t)),Ar(e));if(n===".."||n.startsWith(".."+gi)||pi(n))return}if(this.root=Pe(e),fi(e))return this.mapFile=e,ci(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 r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof Or)return Lr.fromSourceMap(t).toString();if(t instanceof Lr)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 r=this.annotation;e&&(r=di(Pe(e),r));let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Er.exports=pe;pe.default=pe});var kr=v((ao,Tr)=>{"use strict";var{nanoid:yi}=Kt(),{isAbsolute:ct,resolve:Fe}=be("path"),{SourceMapConsumer:bi,SourceMapGenerator:vi}=ut(),{fileURLToPath:Rr,pathToFileURL:Ne}=be("url"),Pr=Ue(),Ci=Mr(),at=De(),ft=Symbol("lineToIndexCache"),_i=!!(bi&&vi),Nr=!!(Fe&&ct);function Fr(i){if(i[ft])return i[ft];let e=i.css.split(`
23
+ `),t=new Array(e.length),r=0;for(let n=0,o=e.length;n<o;n++)t[n]=r,r+=e[n].length+1;return i[ft]=t,t}var ee=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&&(!Nr||/^\w+:\/\//.test(t.from)||ct(t.from)?this.file=t.from:this.file=Fe(t.from)),Nr&&_i){let r=new Ci(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+yi(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let o,s,u,l,f;if(t&&typeof t=="object"){let p=t,c=r;if(typeof p.offset=="number"){l=p.offset;let h=this.fromOffset(l);t=h.line,r=h.col}else t=p.line,r=p.column,l=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){u=c.offset;let h=this.fromOffset(u);s=h.line,o=h.col}else s=c.line,o=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let p=this.fromOffset(l);t=p.line,r=p.col}let a=this.origin(t,r,s,o);return a?f=new Pr(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):f=new Pr(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:o,line:s},this.css,this.file,n.plugin),f.input={column:r,endColumn:o,endLine:s,endOffset:u,line:t,offset:l,source:this.css},this.file&&(Ne&&(f.input.url=Ne(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Fr(this)[e-1]+t-1}fromOffset(e){let t=Fr(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let o=t.length-2,s;for(;n<o;)if(s=n+(o-n>>1),e<t[s])o=s-1;else if(e>=t[s+1])n=s+1;else{n=s;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Fe(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t-1,line:e});if(!s.source)return!1;let u;if(typeof r=="number"){let p=o.originalPositionFor({column:n-1,line:r});p.source&&(u=p)}let l;ct(s.source)?l=Ne(s.source):l=new URL(s.source,Ne(this.map.mapFile||Fe(".")+"/"));let f={column:s.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Rr)f.file=Rr(l);else throw new Error("file: protocol is not available in this PostCSS build");let a=o.sourceContentFor(s.source);return a&&(f.source=a),f}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}};Tr.exports=ee;ee.default=ee;at&&at.registerInput&&at.registerInput(ee)});var qr=v((fo,Br)=>{"use strict";var Ir=ae(),te=class extends Ir{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)}};Br.exports=te;te.default=te;Ir.registerAtRule(te)});var $r=v((co,jr)=>{"use strict";var Dr=ae(),Ur,Gr,Q=class extends Dr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=new Set;for(let s of Array.isArray(e)?e:[e])s&&typeof s=="object"&&!s.parent&&s.raws&&typeof s.raws.before<"u"&&n.add(s.raws);let o=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of o)n.has(s.raws)||(s.raws.before=t.raws.before)}return o}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ur(new Gr,this,e).stringify()}};Q.registerLazyResult=i=>{Ur=i};Q.registerProcessor=i=>{Gr=i};jr.exports=Q;Q.default=Q;Dr.registerRoot(Q)});var Wr=v((ho,zr)=>{"use strict";var de={comma(i){return de.split(i,[","],!0)},space(i){let e=[" ",`
24
+ `," "];return de.split(i,e)},split(i,e,t){if(typeof i!="string")return[];let r=[],n="",o=!1,s=0,u=!1,l="",f=!1,a=!1;for(let c=0;c<i.length;c++){let h=i[c];if(a){n+=h,h==="*"&&i[c+1]==="/"&&(n+="/",c+=1,a=!1);continue}if(f)f=!1;else if(h==="\\")f=!0;else if(u)h===l&&(u=!1);else if(h==='"'||h==="'")u=!0,l=h;else if(h==="/"&&i[c+1]==="*"){n+="/*",c+=1,a=!0;continue}else h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0);if(o){let d=n.trim();(t||d!=="")&&r.push(d),n="",o=!1}else n+=h}let p=n.trim();return(t||p!=="")&&r.push(p),r}};zr.exports=de;de.default=de});var Hr=v((po,Jr)=>{"use strict";var Qr=ae(),Si=Wr(),re=class extends Qr{get selectors(){return Si.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Jr.exports=re;re.default=re;Qr.registerRule(re)});var Xr=v((mo,Kr)=>{"use strict";var xi=qr(),Oi=Qe(),Li=Je(),Ai=$r(),Vr=Hr(),Ei=qe(),Yr={empty:!0,space:!0};function Mi(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}function ht(i,e,t){let r="";for(let n=e;n<t;n++)r+=i[n][1];return r}var pt=class{constructor(e){this.input=e,this.root=new Ai,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 xi;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,o,s=!1,u=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,n=l[o];n&&n[0]==="space";)n=l[--o];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(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=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let o=t-1;o>=0&&(n=e[o],!(n[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,o;for(let[s,u]of e.entries()){if(n=u,o=n[0],o==="("&&(t+=1),o===")"&&(t-=1),t===0&&o===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=n}return!1}comment(e){let t=new Oi;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Ei(this.input)}decl(e,t){let r=new Li;this.init(r,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||Mi(e)),r.source.end.offset++;let o=0;for(;e[o][0]!=="word";)o===e.length-1&&this.unknownWord([e[o]]),o++;r.raws.before+=ht(e,0,o),r.source.start=this.getPosition(e[o][2]);let s=o;for(;o<e.length;){let c=e[o][0];if(c===":"||c==="space"||c==="comment")break;o++}r.prop=ht(e,s,o);let u=o,l;for(;o<e.length&&(l=e[o],o++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=ht(e,u,o),(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let f=o;for(;o<e.length;){let c=e[o][0];if(c!=="space"&&c!=="comment")break;o++}let a=e.slice(f,o);e=e.slice(o),this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(l=e[c],l[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(r.raws.important=h);break}else if(l[1].toLowerCase()==="important"){let h=e.slice(0),d="";for(let w=c;w>0;w--){let m=h[w][0];if(d.trim().startsWith("!")&&m!=="space")break;d=h.pop()[1]+d}d.trim().startsWith("!")&&(r.important=!0,r.raws.important=d,e=h)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 Vr;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++)}}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,r=null,n=!1,o=null,s=[],u=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")o||(o=f),s.push(r==="("?")":"]");else if(u&&n&&r==="{")o||(o=f),s.push("}");else if(s.length===0)if(r===";")if(n){this.decl(l,u);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(n=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&n){if(!u)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}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,r,n){let o,s,u=r.length,l="",f="",a=!0,p,c;for(let h=0;h<u;h+=1)o=r[h],s=o[0],s==="space"&&h===u-1&&!n?a=!1:s==="comment"?(c=r[h-1]?r[h-1][0]:"empty",p=r[h+1]?r[h+1][0]:"empty",!Yr[c]&&!Yr[p]?f===","?a=!1:(l+=o[1],f=o[1].slice(-1)):a=!1):(l+=o[1],f=o[1].slice(-1));if(!a){let h=r.reduce((d,w)=>d+w[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Vr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}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})}};Kr.exports=pt});var en=v((go,Zr)=>{"use strict";var Ri=ae(),Pi=kr(),Ni=Xr();function Te(i,e){let t=new Pi(i,e),r=new Ni(t);try{r.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
25
25
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?n.message+=`
26
26
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(n.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return r.root}Zr.exports=Fe;Fe.default=Fe;Ri.registerParse(Fe)});var on=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Ii;var me="diff-sequences",R=0,ge=(i,e,t,r,n)=>{let o=0;for(;i<e&&t<r&&n(i,t);)i+=1,t+=1,o+=1;return o},we=(i,e,t,r,n)=>{let o=0;for(;i<=e&&t<=r&&n(e,r);)e-=1,r-=1,o+=1;return o},dt=(i,e,t,r,n,o,s)=>{let u=0,l=-i,f=o[u],a=f;o[u]+=ge(f+1,e,r+f-l+1,t,n);let p=i<s?i:s;for(u+=1,l+=2;u<=p;u+=1,l+=2){if(u!==i&&a<o[u])f=o[u];else if(f=a+1,e<=f)return u-1;a=o[u],o[u]=f+ge(f+1,e,r+f-l+1,t,n)}return s},tn=(i,e,t,r,n,o,s)=>{let u=0,l=i,f=o[u],a=f;o[u]-=we(e,f-1,t,r+f-l-1,n);let p=i<s?i:s;for(u+=1,l-=2;u<=p;u+=1,l-=2){if(u!==i&&o[u]<a)f=o[u];else if(f=a-1,f<e)return u-1;a=o[u],o[u]=f-we(e,f-1,t,r+f-l-1,n)}return s},Fi=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=r-e,c=t-e,d=n-r-c,w=-d-(i-1),m=-d+(i-1),b=R,y=i<u?i:u;for(let C=0,S=-i;C<=y;C+=1,S+=2){let L=C===0||C!==i&&b<s[C],x=L?s[C]:b,F=L?x:x+1,q=p+F-S,A=ge(F+1,t,q+1,n,o),P=F+A;if(b=s[C],s[C]=P,w<=S&&S<=m){let D=(i-1-(S+d))/2;if(D<=f&&l[D]-1<=P){let U=p+x-(L?S+1:S-1),k=we(e,x,r,U,o),W=x-k,ye=U-k,V=W+1,Te=ye+1;a.nChangePreceding=i-1,i-1===V+Te-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=V,a.bEndPreceding=Te),a.nCommonPreceding=k,k!==0&&(a.aCommonPreceding=V,a.bCommonPreceding=Te),a.nCommonFollowing=A,A!==0&&(a.aCommonFollowing=F+1,a.bCommonFollowing=q+1);let yt=P+1,bt=q+A+1;return a.nChangeFollowing=i-1,i-1===t+n-yt-bt?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=yt,a.bStartFollowing=bt),!0}}}return!1},Ti=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=n-t,c=t-e,d=n-r-c,w=d-i,m=d+i,b=R,y=i<f?i:f;for(let C=0,S=i;C<=y;C+=1,S-=2){let L=C===0||C!==i&&l[C]<b,x=L?l[C]:b,F=L?x:x-1,q=p+F-S,A=we(e,F-1,r,q-1,o),P=F-A;if(b=l[C],l[C]=P,w<=S&&S<=m){let D=(i+(S-d))/2;if(D<=u&&P-1<=s[D]){let U=q-A;if(a.nChangePreceding=i,i===P+U-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=P,a.bEndPreceding=U),a.nCommonPreceding=A,A!==0&&(a.aCommonPreceding=P,a.bCommonPreceding=U),a.nChangeFollowing=i-1,i===1)a.nCommonFollowing=0,a.aStartFollowing=t,a.bStartFollowing=n;else{let k=p+x-(L?S-1:S+1),W=ge(x,t,k,n,o);a.nCommonFollowing=W,W!==0&&(a.aCommonFollowing=x,a.bCommonFollowing=k);let ye=x+W,V=k+W;i-1===t+n-ye-V?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=ye,a.bStartFollowing=V)}return!0}}}return!1},ki=(i,e,t,r,n,o,s,u,l)=>{let f=r-e,a=n-t,p=t-e,c=n-r,h=c-p,d=p,w=p;if(s[0]=e-1,u[0]=t,h%2===0){let m=(i||h)/2,b=(p+c)/2;for(let y=1;y<=b;y+=1)if(d=dt(y,t,n,f,o,s,d),y<m)w=tn(y,e,r,a,o,u,w);else if(Ti(y,e,t,r,n,o,s,d,u,w,l))return}else{let m=((i||h)+1)/2,b=(p+c+1)/2,y=1;for(d=dt(y,t,n,f,o,s,d),y+=1;y<=b;y+=1)if(w=tn(y-1,e,r,a,o,u,w),y<m)d=dt(y,t,n,f,o,s,d);else if(Fi(y,e,t,r,n,o,s,d,u,w,l))return}throw new Error(`${me}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${n}`)},mt=(i,e,t,r,n,o,s,u,l,f)=>{if(n-r<t-e){if(o=!o,o&&s.length===1){let{foundSubsequence:P,isCommon:D}=s[0];s[1]={foundSubsequence:(U,k,W)=>{P(U,W,k)},isCommon:(U,k)=>D(k,U)}}let q=e,A=t;e=r,t=n,r=q,n=A}let{foundSubsequence:a,isCommon:p}=s[o?1:0];ki(i,e,t,r,n,p,u,l,f);let{nChangePreceding:c,aEndPreceding:h,bEndPreceding:d,nCommonPreceding:w,aCommonPreceding:m,bCommonPreceding:b,nCommonFollowing:y,aCommonFollowing:C,bCommonFollowing:S,nChangeFollowing:L,aStartFollowing:x,bStartFollowing:F}=f;e<h&&r<d&&mt(c,e,h,r,d,o,s,u,l,f),w!==0&&a(w,m,b),y!==0&&a(y,C,S),x<t&&F<n&&mt(L,x,t,F,n,o,s,u,l,f)},rn=(i,e)=>{if(typeof e!="number")throw new TypeError(`${me}: ${i} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${me}: ${i} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${me}: ${i} value ${e} is a negative integer`)},nn=(i,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${me}: ${i} typeof ${t} is not a function`)};function Ii(i,e,t,r){rn("aLength",i),rn("bLength",e),nn("isCommon",t),nn("foundSubsequence",r);let n=ge(0,i,0,e,t);if(n!==0&&r(n,0,0),i!==n||e!==n){let o=n,s=n,u=we(o,i-1,s,e-1,t),l=i-u,f=e-u,a=n+u;i!==a&&e!==a&&mt(0,o,l,s,f,!1,[{foundSubsequence:r,isCommon:t}],[R],[R],{aCommonFollowing:R,aCommonPreceding:R,aEndPreceding:R,aStartFollowing:R,bCommonFollowing:R,bCommonPreceding:R,bEndPreceding:R,bStartFollowing:R,nChangeFollowing:R,nChangePreceding:R,nCommonFollowing:R,nCommonPreceding:R}),u!==0&&r(u,l,f)}}});var Bi=Ct(en(),1),wt=Ct(on(),1),yo=wt.default.default||wt.default;var export_parseCss=Bi.default;export{yo as diffSequence,export_parseCss as parseCss};
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return r.root}Zr.exports=Te;Te.default=Te;Ri.registerParse(Te)});var on=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Ii;var me="diff-sequences",R=0,ge=(i,e,t,r,n)=>{let o=0;for(;i<e&&t<r&&n(i,t);)i+=1,t+=1,o+=1;return o},we=(i,e,t,r,n)=>{let o=0;for(;i<=e&&t<=r&&n(e,r);)e-=1,r-=1,o+=1;return o},dt=(i,e,t,r,n,o,s)=>{let u=0,l=-i,f=o[u],a=f;o[u]+=ge(f+1,e,r+f-l+1,t,n);let p=i<s?i:s;for(u+=1,l+=2;u<=p;u+=1,l+=2){if(u!==i&&a<o[u])f=o[u];else if(f=a+1,e<=f)return u-1;a=o[u],o[u]=f+ge(f+1,e,r+f-l+1,t,n)}return s},tn=(i,e,t,r,n,o,s)=>{let u=0,l=i,f=o[u],a=f;o[u]-=we(e,f-1,t,r+f-l-1,n);let p=i<s?i:s;for(u+=1,l-=2;u<=p;u+=1,l-=2){if(u!==i&&o[u]<a)f=o[u];else if(f=a-1,f<e)return u-1;a=o[u],o[u]=f-we(e,f-1,t,r+f-l-1,n)}return s},Fi=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=r-e,c=t-e,d=n-r-c,w=-d-(i-1),m=-d+(i-1),b=R,y=i<u?i:u;for(let C=0,S=-i;C<=y;C+=1,S+=2){let L=C===0||C!==i&&b<s[C],x=L?s[C]:b,F=L?x:x+1,q=p+F-S,A=ge(F+1,t,q+1,n,o),P=F+A;if(b=s[C],s[C]=P,w<=S&&S<=m){let D=(i-1-(S+d))/2;if(D<=f&&l[D]-1<=P){let U=p+x-(L?S+1:S-1),k=we(e,x,r,U,o),z=x-k,ye=U-k,V=z+1,ke=ye+1;a.nChangePreceding=i-1,i-1===V+ke-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=V,a.bEndPreceding=ke),a.nCommonPreceding=k,k!==0&&(a.aCommonPreceding=V,a.bCommonPreceding=ke),a.nCommonFollowing=A,A!==0&&(a.aCommonFollowing=F+1,a.bCommonFollowing=q+1);let yt=P+1,bt=q+A+1;return a.nChangeFollowing=i-1,i-1===t+n-yt-bt?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=yt,a.bStartFollowing=bt),!0}}}return!1},Ti=(i,e,t,r,n,o,s,u,l,f,a)=>{let p=n-t,c=t-e,d=n-r-c,w=d-i,m=d+i,b=R,y=i<f?i:f;for(let C=0,S=i;C<=y;C+=1,S-=2){let L=C===0||C!==i&&l[C]<b,x=L?l[C]:b,F=L?x:x-1,q=p+F-S,A=we(e,F-1,r,q-1,o),P=F-A;if(b=l[C],l[C]=P,w<=S&&S<=m){let D=(i+(S-d))/2;if(D<=u&&P-1<=s[D]){let U=q-A;if(a.nChangePreceding=i,i===P+U-e-r?(a.aEndPreceding=e,a.bEndPreceding=r):(a.aEndPreceding=P,a.bEndPreceding=U),a.nCommonPreceding=A,A!==0&&(a.aCommonPreceding=P,a.bCommonPreceding=U),a.nChangeFollowing=i-1,i===1)a.nCommonFollowing=0,a.aStartFollowing=t,a.bStartFollowing=n;else{let k=p+x-(L?S-1:S+1),z=ge(x,t,k,n,o);a.nCommonFollowing=z,z!==0&&(a.aCommonFollowing=x,a.bCommonFollowing=k);let ye=x+z,V=k+z;i-1===t+n-ye-V?(a.aStartFollowing=t,a.bStartFollowing=n):(a.aStartFollowing=ye,a.bStartFollowing=V)}return!0}}}return!1},ki=(i,e,t,r,n,o,s,u,l)=>{let f=r-e,a=n-t,p=t-e,c=n-r,h=c-p,d=p,w=p;if(s[0]=e-1,u[0]=t,h%2===0){let m=(i||h)/2,b=(p+c)/2;for(let y=1;y<=b;y+=1)if(d=dt(y,t,n,f,o,s,d),y<m)w=tn(y,e,r,a,o,u,w);else if(Ti(y,e,t,r,n,o,s,d,u,w,l))return}else{let m=((i||h)+1)/2,b=(p+c+1)/2,y=1;for(d=dt(y,t,n,f,o,s,d),y+=1;y<=b;y+=1)if(w=tn(y-1,e,r,a,o,u,w),y<m)d=dt(y,t,n,f,o,s,d);else if(Fi(y,e,t,r,n,o,s,d,u,w,l))return}throw new Error(`${me}: no overlap aStart=${e} aEnd=${t} bStart=${r} bEnd=${n}`)},mt=(i,e,t,r,n,o,s,u,l,f)=>{if(n-r<t-e){if(o=!o,o&&s.length===1){let{foundSubsequence:P,isCommon:D}=s[0];s[1]={foundSubsequence:(U,k,z)=>{P(U,z,k)},isCommon:(U,k)=>D(k,U)}}let q=e,A=t;e=r,t=n,r=q,n=A}let{foundSubsequence:a,isCommon:p}=s[o?1:0];ki(i,e,t,r,n,p,u,l,f);let{nChangePreceding:c,aEndPreceding:h,bEndPreceding:d,nCommonPreceding:w,aCommonPreceding:m,bCommonPreceding:b,nCommonFollowing:y,aCommonFollowing:C,bCommonFollowing:S,nChangeFollowing:L,aStartFollowing:x,bStartFollowing:F}=f;e<h&&r<d&&mt(c,e,h,r,d,o,s,u,l,f),w!==0&&a(w,m,b),y!==0&&a(y,C,S),x<t&&F<n&&mt(L,x,t,F,n,o,s,u,l,f)},rn=(i,e)=>{if(typeof e!="number")throw new TypeError(`${me}: ${i} typeof ${typeof e} is not a number`);if(!Number.isSafeInteger(e))throw new RangeError(`${me}: ${i} value ${e} is not a safe integer`);if(e<0)throw new RangeError(`${me}: ${i} value ${e} is a negative integer`)},nn=(i,e)=>{let t=typeof e;if(t!=="function")throw new TypeError(`${me}: ${i} typeof ${t} is not a function`)};function Ii(i,e,t,r){rn("aLength",i),rn("bLength",e),nn("isCommon",t),nn("foundSubsequence",r);let n=ge(0,i,0,e,t);if(n!==0&&r(n,0,0),i!==n||e!==n){let o=n,s=n,u=we(o,i-1,s,e-1,t),l=i-u,f=e-u,a=n+u;i!==a&&e!==a&&mt(0,o,l,s,f,!1,[{foundSubsequence:r,isCommon:t}],[R],[R],{aCommonFollowing:R,aCommonPreceding:R,aEndPreceding:R,aStartFollowing:R,bCommonFollowing:R,bCommonPreceding:R,bEndPreceding:R,bStartFollowing:R,nChangeFollowing:R,nChangePreceding:R,nCommonFollowing:R,nCommonPreceding:R}),u!==0&&r(u,l,f)}}});var Bi=Ct(en(),1),wt=Ct(on(),1),yo=wt.default.default||wt.default;var export_parseCss=Bi.default;export{yo as diffSequence,export_parseCss as parseCss};
@@ -1,2 +1,3 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- var j=(i,t,e)=>{let s=i instanceof RegExp?Y(i,e):i,n=t instanceof RegExp?Y(t,e):t,r=s!==null&&n!=null&&gt(s,n,e);return r&&{start:r[0],end:r[1],pre:e.slice(0,r[0]),body:e.slice(r[0]+s.length,r[1]),post:e.slice(r[1]+n.length)}},Y=(i,t)=>{let e=t.match(i);return e?e[0]:null},gt=(i,t,e)=>{let s,n,r,o,c,l=e.indexOf(i),a=e.indexOf(t,l+1),h=l;if(l>=0&&a>0){if(i===t)return[l,a];for(s=[],r=e.length;h>=0&&!c;){if(h===l)s.push(h),l=e.indexOf(i,h+1);else if(s.length===1){let f=s.pop();f!==void 0&&(c=[f,a])}else n=s.pop(),n!==void 0&&n<r&&(r=n,o=a),a=e.indexOf(t,h+1);h=l<a&&l>=0?l:a}s.length&&o!==void 0&&(c=[r,o])}return c};var V="\0SLASH"+Math.random()+"\0",H="\0OPEN"+Math.random()+"\0",W="\0CLOSE"+Math.random()+"\0",X="\0COMMA"+Math.random()+"\0",Z="\0PERIOD"+Math.random()+"\0",mt=new RegExp(V,"g"),yt=new RegExp(H,"g"),wt=new RegExp(W,"g"),St=new RegExp(X,"g"),Et=new RegExp(Z,"g"),xt=/\\\\/g,bt=/\\{/g,Tt=/\\}/g,Ot=/\\,/g,Rt=/\\\./g,Mt=1e5,Nt=4e6;function D(i){return isNaN(i)?i.charCodeAt(0):parseInt(i,10)}function At(i){return i.replace(xt,V).replace(bt,H).replace(Tt,W).replace(Ot,X).replace(Rt,Z)}function vt(i){return i.replace(mt,"\\").replace(yt,"{").replace(wt,"}").replace(St,",").replace(Et,".")}function J(i){if(!i)return[""];let t=[],e=j("{","}",i);if(!e)return i.split(",");let{pre:s,body:n,post:r}=e,o=s.split(",");o[o.length-1]+="{"+n+"}";let c=J(r);return r.length&&(o[o.length-1]+=c.shift(),o.push.apply(o,c)),t.push.apply(t,o),t}function Q(i,t={}){if(!i)return[];let{max:e=Mt,maxLength:s=Nt}=t;return i.slice(0,2)==="{}"&&(i="\\{\\}"+i.slice(2)),F(At(i),e,s,!0).map(vt)}function Ct(i){return"{"+i+"}"}function Pt(i){return/^-?0\d/.test(i)}function _t(i,t){return i<=t}function $t(i,t){return i>=t}function C(i,t,e,s,n,r){let o=[],c=0;for(let l=0;l<i.length;l++)for(let a=0;a<e.length;a++){if(o.length>=s)return o;let h=i[l]+t+e[a];if(!(r&&!h)){if(c+h.length>n)return o;o.push(h),c+=h.length}}return o}function It(i,t,e,s){let n=i.split(/\.\./),r=[];if(n[0]===void 0||n[1]===void 0)return r;let o=D(n[0]),c=D(n[1]),l=Math.max(n[0].length,n[1].length),a=n.length===3&&n[2]!==void 0?Math.max(Math.abs(D(n[2])),1):1,h=_t;c<o&&(a*=-1,h=$t);let p=n.some(Pt),g=0;for(let d=o;h(d,c)&&r.length<e;d+=a){let u;if(t)u=String.fromCharCode(d),u==="\\"&&(u="");else if(u=String(d),p){let w=l-u.length;if(w>0){let m=new Array(w+1).join("0");d<0?u="-"+m+u.slice(1):u=m+u}}if(g+u.length>s)break;r.push(u),g+=u.length}return r}function F(i,t,e,s){let n=[""],r=!1,o=!0;for(;;){let c=j("{","}",i);if(!c)return C(n,i,[""],t,e,r);let l=c.pre;if(/\$$/.test(l)){if(n=C(n,l+"{"+c.body+"}",[""],t,e,r&&!c.post.length),o=!1,!c.post.length)break;i=c.post;continue}let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body),f=a||h,p=c.body.indexOf(",")>=0;if(!f&&!p){if(c.post.match(/,(?!,).*\}/)){i=c.pre+"{"+c.body+W+c.post,s=!0;continue}return C(n,l+"{"+c.body+"}"+c.post,[""],t,e,r)}o&&(r=s&&!f,o=!1);let g;if(f)g=It(c.body,h,t,e);else{let d=J(c.body);if(d.length===1&&d[0]!==void 0&&(d=F(d[0],t,e,!1).map(Ct),d.length===1)){if(n=C(n,l+d[0],[""],t,e,r&&!c.post.length),!c.post.length)break;i=c.post;continue}let u=r&&!c.post.length&&!l;for(let m=0;u&&m<n.length;m++)n[m]&&(u=!1);g=[];let w=0;t:for(let m=0;m<d.length;m++){let S=F(d[m],t,e,!1);for(let T=0;T<S.length;T++){let M=S[T];if(!(u&&!M)){if(g.length>=t||w+M.length>e)break t;g.push(M),w+=M.length}}}}if(n=C(n,l,g,t,e,r&&!c.post.length),!c.post.length)break;i=c.post}return n}var P=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")};var Lt={"[: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]},_=i=>i.replace(/[[\]\\-]/g,"\\$&"),jt=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),K=i=>i.join(""),tt=(i,t)=>{let e=t;if(i.charAt(e)!=="[")throw new Error("not in a brace expression");let s=[],n=[],r=e+1,o=!1,c=!1,l=!1,a=!1,h=e,f="";t:for(;r<i.length;){let u=i.charAt(r);if((u==="!"||u==="^")&&r===e+1){a=!0,r++;continue}if(u==="]"&&o&&!l){h=r+1;break}if(o=!0,u==="\\"&&!l){l=!0,r++;continue}if(u==="["&&!l){for(let[w,[m,S,T]]of Object.entries(Lt))if(i.startsWith(w,r)){if(f)return["$.",!1,i.length-e,!0];r+=w.length,T?n.push(m):s.push(m),c=c||S;continue t}}if(l=!1,f){u>f?s.push(_(f)+"-"+_(u)):u===f&&s.push(_(u)),f="",r++;continue}if(i.startsWith("-]",r+1)){s.push(_(u+"-")),r+=2;continue}if(i.startsWith("-",r+1)){f=u,r+=2;continue}s.push(_(u)),r++}if(h<r)return["",!1,0,!1];if(!s.length&&!n.length)return["$.",!1,i.length-e,!0];if(n.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!a){let u=s[0].length===2?s[0].slice(-1):s[0];return[jt(u),!1,h-e,!1]}let p="["+(a?"^":"")+K(s)+"]",g="["+(a?"":"^")+K(n)+"]";return[s.length&&n.length?"("+p+"|"+g+")":s.length?p:g,c,h-e,!0]};var N=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!0}={})=>e?t?i.replace(/\[([^/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?i.replace(/\[([^/\\{}])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var b,Dt=new Set(["!","?","+","*","@"]),k=i=>Dt.has(i),et=i=>k(i.type),Ft=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Wt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),kt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),st=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Gt="(?!(?:^|/)\\.\\.?(?:$|/))",I="(?!\\.)",zt=new Set(["[","."]),Ut=new Set(["..","."]),Bt=new Set("().*{}+?[]^$\\!"),qt=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),G="[^/]",nt=G+"*?",it=G+"+?",Yt=0,A=class{type;#s;#n;#i=!1;#t=[];#e;#c;#l;#a=!1;#r;#o;#h=!1;id=++Yt;get depth(){return(this.#e?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#s.id,parent:this.#e?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(t,e,s={}){this.type=t,t&&(this.#n=!0),this.#e=e,this.#s=this.#e?this.#e.#s:this,this.#r=this.#s===this?s:this.#s.#r,this.#l=this.#s===this?[]:this.#s.#l,t==="!"&&!this.#s.#a&&this.#l.push(this),this.#c=this.#e?this.#e.#t.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map(t=>String(t)).join("|")+")":this.#o=this.#t.map(t=>String(t)).join("")}#y(){if(this!==this.#s)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let t;for(;t=this.#l.pop();){if(t.type!=="!")continue;let e=t,s=e.#e;for(;s;){for(let n=e.#c+1;!s.type&&n<s.#t.length;n++)for(let r of t.#t){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(s.#t[n])}e=s,s=e.#e}}return this}push(...t){for(let e of t)if(e!==""){if(typeof e!="string"&&!(e instanceof b&&e.#e===this))throw new Error("invalid part: "+e);this.#t.push(e)}}toJSON(){let t=this.type===null?this.#t.slice().map(e=>typeof e=="string"?e:e.toJSON()):[this.type,...this.#t.map(e=>e.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#s||this.#s.#a&&this.#e?.type==="!")&&t.push({}),t}isStart(){if(this.#s===this)return!0;if(!this.#e?.isStart())return!1;if(this.#c===0)return!0;let t=this.#e;for(let e=0;e<this.#c;e++){let s=t.#t[e];if(!(s instanceof b&&s.type==="!"))return!1}return!0}isEnd(){if(this.#s===this||this.#e?.type==="!")return!0;if(!this.#e?.isEnd())return!1;if(!this.type)return this.#e?.isEnd();let t=this.#e?this.#e.#t.length:0;return this.#c===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let e=new b(this.type,t);for(let s of this.#t)e.copyIn(s);return e}static#f(t,e,s,n,r){let o=n.maxExtglobRecursion??2,c=!1,l=!1,a=-1,h=!1;if(e.type===null){let u=s,w="";for(;u<t.length;){let m=t.charAt(u++);if(c||m==="\\"){c=!c,w+=m;continue}if(l){u===a+1?(m==="^"||m==="!")&&(h=!0):m==="]"&&!(u===a+2&&h)&&(l=!1),w+=m;continue}else if(m==="["){l=!0,a=u,h=!1,w+=m;continue}if(!n.noext&&k(m)&&t.charAt(u)==="("&&r<=o){e.push(w),w="";let T=new b(m,e);u=b.#f(t,T,u,n,r+1),e.push(T);continue}w+=m}return e.push(w),u}let f=s+1,p=new b(null,e),g=[],d="";for(;f<t.length;){let u=t.charAt(f++);if(c||u==="\\"){c=!c,d+=u;continue}if(l){f===a+1?(u==="^"||u==="!")&&(h=!0):u==="]"&&!(f===a+2&&h)&&(l=!1),d+=u;continue}else if(u==="["){l=!0,a=f,h=!1,d+=u;continue}if(!n.noext&&k(u)&&t.charAt(f)==="("&&(r<=o||e&&e.#u(u))){let m=e&&e.#u(u)?0:1;p.push(d),d="";let S=new b(u,p);p.push(S),f=b.#f(t,S,f,n,r+m);continue}if(u==="|"){p.push(d),d="",g.push(p),p=new b(null,e);continue}if(u===")")return d===""&&e.#t.length===0&&(e.#h=!0),p.push(d),d="",e.push(...g,p),f;d+=u}return e.type=null,e.#n=void 0,e.#t=[t.substring(s-1)],f}#w(t){return this.#d(t,Wt)}#d(t,e=Ft){if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null)return!1;let s=t.#t[0];return!s||typeof s!="object"||s.type===null?!1:this.#u(s.type,e)}#u(t,e=kt){return!!e.get(this.type)?.includes(t)}#S(t,e){let s=t.#t[0],n=new b(null,s,this.options);n.#t.push(""),s.push(n),this.#g(t,e)}#g(t,e){let s=t.#t[0];this.#t.splice(e,1,...s.#t);for(let n of s.#t)typeof n=="object"&&(n.#e=this);this.#o=void 0}#E(t){return!!st.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let e=t.#t[0];return!e||typeof e!="object"||e.type===null?!1:this.#E(e.type)}#b(t){let e=st.get(this.type),s=t.#t[0],n=e?.get(s.type);if(!n)return!1;this.#t=s.#t;for(let r of this.#t)typeof r=="object"&&(r.#e=this);this.type=n,this.#o=void 0,this.#h=!1}static fromGlob(t,e={}){let s=new b(null,void 0,e);return b.#f(t,s,0,e,0),s}toMMPattern(){if(this!==this.#s)return this.#s.toMMPattern();let t=this.toString(),[e,s,n,r]=this.toRegExpSource();if(!(n||this.#n||this.#r.nocase&&!this.#r.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return s;let c=(this.#r.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,c),{_src:e,_glob:t})}get options(){return this.#r}toRegExpSource(t){let e=t??!!this.#r.dot;if(this.#s===this&&(this.#p(),this.#y()),!et(this)){let l=this.isStart()&&this.isEnd()&&!this.#t.some(g=>typeof g!="string"),a=this.#t.map(g=>{let[d,u,w,m]=typeof g=="string"?b.#T(g,this.#n,l):g.toRegExpSource(t);return this.#n=this.#n||w,this.#i=this.#i||m,d}).join(""),h="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&Ut.has(this.#t[0]))){let d=zt,u=e&&d.has(a.charAt(0))||a.startsWith("\\.")&&d.has(a.charAt(2))||a.startsWith("\\.\\.")&&d.has(a.charAt(4)),w=!e&&!t&&d.has(a.charAt(0));h=u?Gt:w?I:""}let f="";return this.isEnd()&&this.#s.#a&&this.#e?.type==="!"&&(f="(?:$|\\/)"),[h+a+f,N(a),this.#n=!!this.#n,this.#i]}let s=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#m(e);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let l=this.toString(),a=this;return a.#t=[l],a.type=null,a.#n=void 0,[l,N(this.toString()),!1,!1]}let o=!s||t||e||!I?"":this.#m(!0);o===r&&(o=""),o&&(r=`(?:${r})(?:${o})*?`);let c="";if(this.type==="!"&&this.#h)c=(this.isStart()&&!e?I:"")+it;else{let l=this.type==="!"?"))"+(this.isStart()&&!e&&!t?I:"")+nt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;c=n+r+l}return[c,N(r),this.#n=!!this.#n,this.#i]}#p(){if(et(this)){let t=0,e=!1;do{e=!0;for(let s=0;s<this.#t.length;s++){let n=this.#t[s];typeof n=="object"&&(n.#p(),this.#d(n)?(e=!1,this.#g(n,s)):this.#w(n)?(e=!1,this.#S(n,s)):this.#x(n)&&(e=!1,this.#b(n)))}}while(!e&&++t<10)}else for(let t of this.#t)typeof t=="object"&&t.#p();this.#o=void 0}#m(t){return this.#t.map(e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");let[s,n,r,o]=e.toRegExpSource(t);return this.#i=this.#i||o,s}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static#T(t,e,s=!1){let n=!1,r="",o=!1,c=!1;for(let l=0;l<t.length;l++){let a=t.charAt(l);if(n){n=!1,r+=(Bt.has(a)?"\\":"")+a;continue}if(a==="*"){if(c)continue;c=!0,r+=s&&/^[*]+$/.test(t)?it:nt,e=!0;continue}else c=!1;if(a==="\\"){l===t.length-1?r+="\\\\":n=!0;continue}if(a==="["){let[h,f,p,g]=tt(t,l);if(p){r+=h,o=o||f,l+=p-1,e=e||g;continue}}if(a==="?"){r+=G,e=!0;continue}r+=qt(a)}return[r,N(t),!!e,o]}};b=A;var z=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!1}={})=>e?t?i.replace(/[?*()[\]{}]/g,"[$&]"):i.replace(/[?*()[\]\\{}]/g,"\\$&"):t?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&");var x=(i,t,e={})=>(P(t),!e.nocomment&&t.charAt(0)==="#"?!1:new v(t,e).match(i)),Vt=/^\*+([^+@!?*[(]*)$/,Ht=i=>t=>!t.startsWith(".")&&t.endsWith(i),Xt=i=>t=>t.endsWith(i),Zt=i=>(i=i.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(i)),Jt=i=>(i=i.toLowerCase(),t=>t.toLowerCase().endsWith(i)),Qt=/^\*+\.\*+$/,Kt=i=>!i.startsWith(".")&&i.includes("."),te=i=>i!=="."&&i!==".."&&i.includes("."),ee=/^\.\*+$/,se=i=>i!=="."&&i!==".."&&i.startsWith("."),ne=/^\*+$/,ie=i=>i.length!==0&&!i.startsWith("."),re=i=>i.length!==0&&i!=="."&&i!=="..",oe=/^\?+([^+@!?*[(]*)?$/,ce=([i,t=""])=>{let e=ct([i]);return t?(t=t.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(t)):e},ae=([i,t=""])=>{let e=at([i]);return t?(t=t.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(t)):e},le=([i,t=""])=>{let e=at([i]);return t?s=>e(s)&&s.endsWith(t):e},he=([i,t=""])=>{let e=ct([i]);return t?s=>e(s)&&s.endsWith(t):e},ct=([i])=>{let t=i.length;return e=>e.length===t&&!e.startsWith(".")},at=([i])=>{let t=i.length;return e=>e.length===t&&e!=="."&&e!==".."},lt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",rt={win32:{sep:"\\"},posix:{sep:"/"}},fe=lt==="win32"?rt.win32.sep:rt.posix.sep;x.sep=fe;var E=Symbol("globstar **");x.GLOBSTAR=E;var ue="[^/]",pe=ue+"*?",de="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",ge="(?:(?!(?:\\/|^)\\.).)*?",me=(i,t={})=>e=>x(e,i,t);x.filter=me;var O=(i,t={})=>Object.assign({},i,t),ye=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return x;let t=x;return Object.assign((s,n,r={})=>t(s,n,O(i,r)),{Minimatch:class extends t.Minimatch{constructor(n,r={}){super(n,O(i,r))}static defaults(n){return t.defaults(O(i,n)).Minimatch}},AST:class extends t.AST{constructor(n,r,o={}){super(n,r,O(i,o))}static fromGlob(n,r={}){return t.AST.fromGlob(n,O(i,r))}},unescape:(s,n={})=>t.unescape(s,O(i,n)),escape:(s,n={})=>t.escape(s,O(i,n)),filter:(s,n={})=>t.filter(s,O(i,n)),defaults:s=>t.defaults(O(i,s)),makeRe:(s,n={})=>t.makeRe(s,O(i,n)),braceExpand:(s,n={})=>t.braceExpand(s,O(i,n)),match:(s,n,r={})=>t.match(s,n,O(i,r)),sep:t.sep,GLOBSTAR:E})};x.defaults=ye;var ht=(i,t={})=>(P(i),t.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:Q(i,{max:t.braceExpandMax}));x.braceExpand=ht;var we=(i,t={})=>new v(i,t).makeRe();x.makeRe=we;var Se=(i,t,e={})=>{let s=new v(t,e);return i=i.filter(n=>s.match(n)),s.options.nonull&&!i.length&&i.push(t),i};x.match=Se;var ot=/[?*]|[+@!]\(.*?\)|\[|\]/,Ee=i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),v=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,e={}){P(t),e=e||{},this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion??200,this.pattern=t,this.platform=e.platform||lt,this.isWindows=this.platform==="win32";let s="allowWindowsEscape";this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.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 t of this.set)for(let e of t)if(typeof e!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let n=this.globParts.map((r,o,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=r[0]===""&&r[1]===""&&(r[2]==="?"||!ot.test(r[2]))&&!ot.test(r[3]),a=/^[a-z]:/i.test(r[0]);if(l)return[...r.slice(0,4),...r.slice(4).map(h=>this.parse(h))];if(a)return[r[0],...r.slice(1).map(h=>this.parse(h))]}return r.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.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(t){if(this.options.noglobstar)for(let s of t)for(let n=0;n<s.length;n++)s[n]==="**"&&(s[n]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):e>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let n=s;for(;e[n+1]==="**";)n++;n!==s&&e.splice(s,n-s)}return e})}levelOneOptimize(t){return t.map(e=>(e=e.reduce((s,n)=>{let r=s[s.length-1];return n==="**"&&r==="**"?s:n===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(s.pop(),s):(s.push(n),s)},[]),e.length===0?[""]:e))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){let r=t[n];n===1&&r===""&&t[0]===""||(r==="."||r==="")&&(e=!0,t.splice(n,1),n--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(e=!0,t.pop())}let s=0;for(;(s=t.indexOf("..",s+1))!==-1;){let n=t[s-1];n&&n!=="."&&n!==".."&&n!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(n))&&(e=!0,t.splice(s-1,2),s-=2)}}while(e);return t.length===0?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let s of t){let n=-1;for(;(n=s.indexOf("**",n+1))!==-1;){let o=n;for(;s[o+1]==="**";)o++;o>n&&s.splice(n+1,o-n);let c=s[n+1],l=s[n+2],a=s[n+3];if(c!==".."||!l||l==="."||l===".."||!a||a==="."||a==="..")continue;e=!0,s.splice(n,1);let h=s.slice(0);h[n]="**",t.push(h),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<s.length-1;o++){let c=s[o];o===1&&c===""&&s[0]===""||(c==="."||c==="")&&(e=!0,s.splice(o,1),o--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(e=!0,s.pop())}let r=0;for(;(r=s.indexOf("..",r+1))!==-1;){let o=s[r-1];if(o&&o!=="."&&o!==".."&&o!=="**"){e=!0;let l=r===1&&s[r+1]==="**"?["."]:[];s.splice(r-1,2,...l),s.length===0&&s.push(""),r-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let s=e+1;s<t.length;s++){let n=this.partsMatch(t[e],t[s],!this.preserveMultipleSlashes);if(n){t[e]=[],t[s]=n;break}}return t.filter(e=>e.length)}partsMatch(t,e,s=!1){let n=0,r=0,o=[],c="";for(;n<t.length&&r<e.length;)if(t[n]===e[r])o.push(c==="b"?e[r]:t[n]),n++,r++;else if(s&&t[n]==="**"&&e[r]===t[n+1])o.push(t[n]),n++;else if(s&&e[r]==="**"&&t[n]===e[r+1])o.push(e[r]),r++;else if(t[n]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(c==="b")return!1;c="a",o.push(t[n]),n++,r++}else if(e[r]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(c==="a")return!1;c="b",o.push(e[r]),n++,r++}else return!1;return t.length===e.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,s=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)e=!e,s++;s&&(this.pattern=t.slice(s)),this.negate=e}matchOne(t,e,s=!1){let n=0,r=0;if(this.isWindows){let c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),h=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&typeof e[3]=="string"&&/^[a-z]:$/i.test(e[3]),f=l?3:c?0:void 0,p=h?3:a?0:void 0;if(typeof f=="number"&&typeof p=="number"){let[g,d]=[t[f],e[p]];g.toLowerCase()===d.toLowerCase()&&(e[p]=g,r=p,n=f)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(t=this.levelTwoFileOptimize(t)),e.includes(E)?this.#s(t,e,s,n,r):this.#i(t,e,s,n,r)}#s(t,e,s,n,r){let o=e.indexOf(E,r),c=e.lastIndexOf(E),[l,a,h]=s?[e.slice(r,o),e.slice(o+1),[]]:[e.slice(r,o),e.slice(o+1,c),e.slice(c+1)];if(l.length){let S=t.slice(n,n+l.length);if(!this.#i(S,l,s,0,0))return!1;n+=l.length,r+=l.length}let f=0;if(h.length){if(h.length+n>t.length)return!1;let S=t.length-h.length;if(this.#i(t,h,s,S,0))f=h.length;else{if(t[t.length-1]!==""||n+h.length===t.length||(S--,!this.#i(t,h,s,S,0)))return!1;f=h.length+1}}if(!a.length){let S=!!f;for(let T=n;T<t.length-f;T++){let M=String(t[T]);if(S=!0,M==="."||M===".."||!this.options.dot&&M.startsWith("."))return!1}return s||S}let p=[[[],0]],g=p[0],d=0,u=[0];for(let S of a)S===E?(u.push(d),g=[[],0],p.push(g)):(g[0].push(S),d++);let w=p.length-1,m=t.length-f;for(let S of p)S[1]=m-(u[w--]+S[0].length);return!!this.#n(t,p,n,0,s,0,!!f)}#n(t,e,s,n,r,o,c){let l=e[n];if(!l){for(let f=s;f<t.length;f++){c=!0;let p=t[f];if(p==="."||p===".."||!this.options.dot&&p.startsWith("."))return!1}return c}let[a,h]=l;for(;s<=h;){if(this.#i(t.slice(0,s+a.length),a,r,s,0)&&o<this.maxGlobstarRecursion){let g=this.#n(t,e,s+a.length,n+1,r,o+1,c);if(g!==!1)return g}let p=t[s];if(p==="."||p===".."||!this.options.dot&&p.startsWith("."))return!1;s++}return r||null}#i(t,e,s,n,r){let o,c,l,a;for(o=n,c=r,a=t.length,l=e.length;o<a&&c<l;o++,c++){this.debug("matchOne loop");let h=e[c],f=t[o];if(this.debug(e,h,f),h===!1||h===E)return!1;let p;if(typeof h=="string"?(p=f===h,this.debug("string match",h,f,p)):(p=h.test(f),this.debug("pattern match",h,f,p)),!p)return!1}if(o===a&&c===l)return!0;if(o===a)return s;if(c===l)return o===a-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return ht(this.pattern,this.options)}parse(t){P(t);let e=this.options;if(t==="**")return E;if(t==="")return"";let s,n=null;(s=t.match(ne))?n=e.dot?re:ie:(s=t.match(Vt))?n=(e.nocase?e.dot?Jt:Zt:e.dot?Xt:Ht)(s[1]):(s=t.match(oe))?n=(e.nocase?e.dot?ae:ce:e.dot?le:he)(s):(s=t.match(Qt))?n=e.dot?te:Kt:(s=t.match(ee))&&(n=se);let r=A.fromGlob(t,this.options).toMMPattern();return n&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:n}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let e=this.options,s=e.noglobstar?pe:e.dot?de:ge,n=new Set(e.nocase?["i"]:[]),r=t.map(l=>{let a=l.map(f=>{if(f instanceof RegExp)for(let p of f.flags.split(""))n.add(p);return typeof f=="string"?Ee(f):f===E?E:f._src});a.forEach((f,p)=>{let g=a[p+1],d=a[p-1];f!==E||d===E||(d===void 0?g!==void 0&&g!==E?a[p+1]="(?:\\/|"+s+"\\/)?"+g:a[p]=s:g===void 0?a[p-1]=d+"(?:\\/|\\/"+s+")?":g!==E&&(a[p-1]=d+"(?:\\/|\\/"+s+"\\/)"+g,a[p+1]=E))});let h=a.filter(f=>f!==E);if(this.partial&&h.length>=1){let f=[];for(let p=1;p<=h.length;p++)f.push(h.slice(0,p).join("/"));return"(?:"+f.join("|")+")"}return h.join("/")}).join("|"),[o,c]=t.length>1?["(?:",")"]:["",""];r="^"+o+r+c+"$",this.partial&&(r="^(?:\\/|"+o+r.slice(1,-1)+c+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;let s=this.options;this.isWindows&&(t=t.split("\\").join("/"));let n=this.slashSplit(t);this.debug(this.pattern,"split",n);let r=this.set;this.debug(this.pattern,"set",r);let o=n[n.length-1];if(!o)for(let c=n.length-2;!o&&c>=0;c--)o=n[c];for(let c of r){let l=n;if(s.matchBase&&c.length===1&&(l=[o]),this.matchOne(l,c,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(t){return x.defaults(t).Minimatch}};x.AST=A;x.Minimatch=v;x.escape=z;x.unescape=N;import $ from"node:path";import xe from"node:process";import be from"node:path";import ft,{promises as ds}from"node:fs";import{fileURLToPath as Te}from"node:url";var ut={directory:"isDirectory",file:"isFile"};function Oe(i){if(!(i==="both"||Object.hasOwn(ut,i)))throw new Error(`Invalid type specified: ${i}`)}var Re=(i,t)=>i==="both"?t.isFile()||t.isDirectory():t[ut[i]](),Me=i=>i instanceof URL?Te(i):i;function U(i,{cwd:t=xe.cwd(),type:e="file",allowSymlinks:s=!0}={}){Oe(e),t=Me(t);let n=s?ft.statSync:ft.lstatSync;for(let r of i)try{let o=n(be.resolve(t,r),{throwIfNoEntry:!1});if(!o)continue;if(Re(e,o))return r}catch{}}import{promisify as Ne}from"node:util";import{execFile as Ae,execFileSync as Es}from"node:child_process";import{fileURLToPath as ve}from"node:url";var bs=Ne(Ae);function B(i){return i instanceof URL?ve(i):i}var Ts=10*1024*1024;var Ce=Symbol("findUpStop");function Pe(i,t={}){let e=$.resolve(B(t.cwd)??""),{root:s}=$.parse(e),n=$.resolve(e,B(t.stopAt)??s),r=t.limit??Number.POSITIVE_INFINITY,o=[i].flat(),c=a=>{if(typeof i!="function")return U(o,a);let h=i(a.cwd);return typeof h=="string"?U([h],a):h},l=[];for(;;){let a=c({...t,cwd:e});if(a===Ce||(a&&l.push($.resolve(e,a)),e===n||l.length>=r))break;e=$.dirname(e)}return l}function _e(i,t={}){return Pe(i,{...t,limit:1})[0]}import q from"node:process";import $e from"node:os";import pt from"node:tty";function R(i,t=globalThis.Deno?globalThis.Deno.args:q.argv){let e=i.startsWith("-")?"":i.length===1?"-":"--",s=t.indexOf(e+i),n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}var{env:y}=q,L;R("no-color")||R("no-colors")||R("color=false")||R("color=never")?L=0:(R("color")||R("colors")||R("color=true")||R("color=always"))&&(L=1);function Ie(){if(!("FORCE_COLOR"in y))return;if(y.FORCE_COLOR==="true")return 1;if(y.FORCE_COLOR==="false")return 0;if(y.FORCE_COLOR.length===0)return 1;if(!/^\d+$/v.test(y.FORCE_COLOR))return;let i=Math.min(Number(y.FORCE_COLOR),3);if([0,1,2,3].includes(i))return i}function Le(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function je(i,{streamIsTTY:t,sniffFlags:e=!0}={}){let s=Ie();s!==void 0&&(L=s);let n=e?L:s;if(n===0)return 0;if(e){if(R("color=16m")||R("color=full")||R("color=truecolor"))return 3;if(R("color=256"))return 2}if(n!==void 0&&/^\d+$/v.test(y.FORCE_COLOR))return n;if("TF_BUILD"in y&&"AGENT_NAME"in y)return 1;if(i&&!t&&n===void 0)return 0;let r=n||0;if(y.TERM==="dumb")return r;if(q.platform==="win32"){let o=$e.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in y)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>Object.hasOwn(y,o))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>Object.hasOwn(y,o))||y.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in y)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/v.test(y.TEAMCITY_VERSION)?1:0;if(y.COLORTERM==="truecolor"||y.TERM==="xterm-kitty"||y.TERM==="xterm-ghostty"||y.TERM==="wezterm")return 3;if("TERM_PROGRAM"in y){let o=Number((y.TERM_PROGRAM_VERSION||"").split(".",1)[0]);switch(y.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(?:color)?$/iv.test(y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/iv.test(y.TERM)||"COLORTERM"in y?1:r}function dt(i,t={}){let e=je(i,{streamIsTTY:i&&i.isTTY,...t});return Le(e)}var De={stdout:dt({isTTY:pt.isatty(1)}),stderr:dt({isTTY:pt.isatty(2)})},Fe=De;export{v as Minimatch,_e as findUpSync,x as minimatch,Fe as supportsColor};
2
+ var B=(i,t,e)=>{let s=i instanceof RegExp?ft(i,e):i,n=t instanceof RegExp?ft(t,e):t,r=s!==null&&n!=null&&zt(s,n,e);return r&&{start:r[0],end:r[1],pre:e.slice(0,r[0]),body:e.slice(r[0]+s.length,r[1]),post:e.slice(r[1]+n.length)}},ft=(i,t)=>{let e=t.match(i);return e?e[0]:null},zt=(i,t,e)=>{let s,n,r,o,l,c=e.indexOf(i),a=e.indexOf(t,c+1),h=c;if(c>=0&&a>0){if(i===t)return[c,a];for(s=[],r=e.length;h>=0&&!l;){if(h===c)s.push(h),c=e.indexOf(i,h+1);else if(s.length===1){let u=s.pop();u!==void 0&&(l=[u,a])}else n=s.pop(),n!==void 0&&n<r&&(r=n,o=a),a=e.indexOf(t,h+1);h=c<a&&c>=0?c:a}s.length&&o!==void 0&&(l=[r,o])}return l};var pt="\0SLASH"+Math.random()+"\0",dt="\0OPEN"+Math.random()+"\0",X="\0CLOSE"+Math.random()+"\0",gt="\0COMMA"+Math.random()+"\0",mt="\0PERIOD"+Math.random()+"\0",Dt=new RegExp(pt,"g"),Wt=new RegExp(dt,"g"),Gt=new RegExp(X,"g"),Ut=new RegExp(gt,"g"),Bt=new RegExp(mt,"g"),Yt=/\\\\/g,qt=/\\{/g,Vt=/\\}/g,Xt=/\\,/g,Ht=/\\\./g,Zt=1e5,Kt=4e6,Qt=1e3,Jt=1e3;function Y(i){return isNaN(i)?i.charCodeAt(0):parseInt(i,10)}function te(i){return i.replace(Yt,pt).replace(qt,dt).replace(Vt,X).replace(Xt,gt).replace(Ht,mt)}function ee(i){return i.replace(Dt,"\\").replace(Wt,"{").replace(Gt,"}").replace(Ut,",").replace(Bt,".")}function q(i,t){for(let e=0;e<t.length;e++)i.push(t[e])}function se(i){let t=[],e="";for(;;){let s=B("{","}",i);if(!s){let c=i.split(",");return c[0]=e+c[0],q(t,c),t}let{pre:n,body:r,post:o}=s,l=n.split(",");if(l[0]=e+l[0],l[l.length-1]+="{"+r+"}",!o.length)return q(t,l),t;e=l.pop(),q(t,l),i=o}}function wt(i,t={}){if(!i)return[];let{max:e=Zt,maxLength:s=Kt,maxDepth:n=Qt,maxRewrites:r=Jt}=t;return i.slice(0,2)==="{}"&&(i="\\{\\}"+i.slice(2)),V(te(i),e,s,n,0,r,!0).map(ee)}function ne(i){return"{"+i+"}"}function ie(i){return/^-?0\d/.test(i)}function re(i,t){return i<=t}function oe(i,t){return i>=t}function T(i,t,e,s,n,r){let o=[],l=0;for(let c=0;c<i.length;c++)for(let a=0;a<e.length;a++){if(o.length>=s)return o;let h=i[c]+t+e[a];if(!(r&&!h)){if(l+h.length>n)return o;o.push(h),l+=h.length}}return o}function ce(i,t,e,s){let n=i.split(/\.\./),r=[];if(n[0]===void 0||n[1]===void 0)return r;let o=Y(n[0]),l=Y(n[1]),c=Math.max(n[0].length,n[1].length),a=n.length===3&&n[2]!==void 0?Math.max(Math.abs(Y(n[2])),1):1,h=re;l<o&&(a*=-1,h=oe);let p=n.some(ie),g=0;for(let f=o;h(f,l)&&r.length<e;f+=a){let d;if(t)d=String.fromCharCode(f),d==="\\"&&(d="");else if(d=String(f),p){let S=c-d.length;if(S>0){let m=new Array(S+1).join("0");f<0?d="-"+m+d.slice(1):d=m+d}}if(g+d.length>s)break;r.push(d),g+=d.length}return r}function V(i,t,e,s,n,r,o){if(n>s)return[i];let l=[""],c=0,a=!1,h=!0;for(;;){let u=B("{","}",i);if(!u)return T(l,i,[""],t,e,a);let p=u.pre;if(/\$$/.test(p)){if(l=T(l,p+"{"+u.body+"}",[""],t,e,a&&!u.post.length),h=!1,!u.post.length)break;i=u.post;continue}let g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(u.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(u.body),d=g||f,S=u.body.indexOf(",")>=0;if(!d&&!S){if(c<r&&u.post.match(/,(?!,).*\}/)){c++,i=u.pre+"{"+u.body+X+u.post,o=!0;continue}return T(l,p+"{"+u.body+"}"+u.post,[""],t,e,a)}h&&(a=o&&!d,h=!1);let m;if(d)m=ce(u.body,f,t,e);else{let y=se(u.body);if(y.length===1&&y[0]!==void 0&&(y=V(y[0],t,e,s,n+1,r,!1).map(ne),y.length===1)){if(l=T(l,p+y[0],[""],t,e,a&&!u.post.length),!u.post.length)break;i=u.post;continue}let A=a&&!u.post.length&&!p;for(let O=0;A&&O<l.length;O++)l[O]&&(A=!1);m=[];let P=0;t:for(let O=0;O<y.length;O++){let ut=V(y[O],t,e,s,n+1,r,!1);for(let U=0;U<ut.length;U++){let L=ut[U];if(!(A&&!L)){if(m.length>=t||P+L.length>e)break t;m.push(L),P+=L.length}}}}if(l=T(l,p,m,t,e,a&&!u.post.length),!u.post.length)break;i=u.post}return l}var le={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},v=i=>i.replace(/[[\]\\-]/g,"\\$&"),H=/$./,yt=(i,t,e=!1,s)=>{let n=m=>{let y=s?m.normalize(s):m;return[...y].length===1?y:m},r=t;if(i.charAt(r)!=="[")throw new Error("not in a brace expression");let o=[],l=[],c=r+1,a=!1,h=!1,u=!1,p=r,g="";t:for(;c<i.length;){let m=String.fromCodePoint(i.codePointAt(c));if((m==="!"||m==="^")&&c===r+1){u=!0,c++;continue}if(m==="]"&&a&&!h){p=c+1;break}if(a=!0,m==="\\"&&!h){h=!0,c++;continue}if(m==="["&&!h){for(let[A,[P,O]]of Object.entries(le))if(i.startsWith(A,c)){if(g)return[H,i.length-r];c+=A.length,O?l.push(P):o.push(P);continue t}}h=!1;let y=n(m);if(g){y.codePointAt(0)>g.codePointAt(0)?o.push(v(g)+"-"+v(y)):y===g&&o.push(v(y)),g="",c+=m.length;continue}if(i.startsWith("-]",c+m.length)){o.push(v(y+"-")),c+=m.length+1;continue}if(i.startsWith("-",c+m.length)){g=y,c+=m.length+1;continue}o.push(v(y)),c+=m.length}if(p<c)return[H,0];if(!o.length&&!l.length)return[H,i.length-r];let f="["+(u?"^":"")+o.join("")+"]",d="["+(u?"":"^")+l.join("")+"]",S="^"+(o.length&&l.length?"("+f+"|"+d+")":o.length?f:d);return[new RegExp(S,e?"iu":"u"),p-r]};var Z={t:"match",id:0},ae="!?+*@",R=i=>({t:"lit",ch:i}),he=i=>i.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),K=i=>new RegExp(`^${he(i)}$`,"iu"),tt=(i,t)=>{if(t===i.ch)return!0;if(!i.re)return!1;let e=t.charCodeAt(0);if(e>=128)return i.re.test(t);let s=i.ascii??=new Uint8Array(128);return s[e]||=i.re.test(t)?1:2,s[e]===1},ue=(i,t,e,s)=>{let n=[];for(let r=0;r<i.length;){let o=String.fromCodePoint(i.codePointAt(r));if(o==="\\"){let l=i.codePointAt(r+1),c=l===void 0?o:String.fromCodePoint(l);n.push(R(c)),r+=1+c.length;continue}if(o==="["){let[l,c]=yt(i,r,t,s);if(c){n.push({t:"class",re:l}),r+=c;continue}}if(!e&&ae.includes(o)&&i[r+1]==="("){n.push({t:"open",type:o}),r+=2;continue}n.push(!e&&o==="|"?{t:"bar"}:!e&&o===")"?{t:"close"}:o==="*"?{t:"star"}:o==="?"?{t:"any"}:R(o)),r+=o.length}return n},fe=i=>{let t=new Map,e=[];return i.forEach((s,n)=>{s.t==="open"?e.push(n):s.t==="close"&&e.length&&t.set(e.pop(),n)}),t},Et=(i,t,e,s,n)=>{let r=[],o=[r];for(let l=e;l<s;l++){let c=i[l],a=t.get(l);if(c.t==="open"&&a!==void 0){let h=Et(i,t,l+1,a,!1);r.push({t:"ext",type:c.type,alts:h}),l=a}else c.t==="bar"&&!n?o.push(r=[]):c.t==="open"?r.push(R(c.type),R("(")):c.t==="bar"?r.push(R("|")):c.t==="close"?r.push(R(")")):r.push(c)}return o},Ot=(i,t)=>{let e=[],s="",n=()=>{for(let r of s.normalize(t))e.push(R(r));s=""};for(let r of i){if(r.t==="lit"){s+=r.ch;continue}n(),e.push(r.t==="ext"?{...r,alts:r.alts.map(o=>Ot(o,t))}:r)}return n(),e},pe=(i,t)=>{let e=1,s=l=>({t:"split",id:e++,out:l}),n=(l,c)=>l.reduceRight((a,h)=>r(h,a),c),r=(l,c)=>{switch(l.t){case"lit":let p=t?K(l.ch):void 0;return{t:"lit",id:e++,ch:l.ch,re:p,next:c};case"any":case"star":return{t:l.t,id:e++,next:c};case"class":return{t:"class",id:e++,re:l.re,next:c}}let a=p=>l.alts.map(g=>n(g,p));switch(l.type){case"@":return s(a(c));case"?":return s([c,...a(c)]);case"!":return{t:"neg",id:e++,sub:s(a(Z)),next:c}}let h=s([]),u=s(a(h));return h.out.push(c,u),l.type==="*"?h:u};return[n(i,Z),e]},de=i=>{let t=[],e=new Set,s=r=>r.t==="match"?"match":String(r.id),n=(r,o)=>{if(r.t==="match"||e.has(r))return;e.add(r);let l=c=>t.push(`${o}${r.id}: ${c}`);switch(r.t){case"split":l(`split -> ${r.out.map(s).join(", ")}`);for(let c of r.out)n(c,o);return;case"neg":return l(`!(${s(r.sub)}) -> ${s(r.next)}`),n(r.sub,o+" "),n(r.next,o);case"lit":l(`${JSON.stringify(r.ch)} -> ${s(r.next)}`);break;case"class":l(`${r.re} -> ${s(r.next)}`);break;default:l(`${r.t==="any"?"?":"*"} -> ${s(r.next)}`)}n(r.next,o)};return n(i,""),[`start -> ${s(i)}`,...t].join(`
3
+ `)},Q=class{gen;threads=[];match=!1;runs=[];ids=[];constructor(t){this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Mt=(i,t)=>i.ids.length!==t.ids.length||i.runs.length!==t.runs.length||i.ids.some((e,s)=>e!==t.ids[s])?!1:i.runs.every(e=>t.runs.some(s=>s.neg===e.neg&&Mt(s.state,e.state))),xt=i=>({has:new Float64Array(i),seen:new Float64Array(i),gen:0}),_=class{dots;dotStart;#t;constructor(t,e,s){this.dots=t,this.dotStart=e,this.#t=s}state(){return new Q(++this.#t.gen)}done(t){return t.ids=t.threads.map(e=>e.id).sort((e,s)=>e-s),t.match&&t.ids.unshift(Z.id),t}#n(t,e){let{seen:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,!0)}#e(t,e){let{has:s}=this.#t;return s[e.id]===t.gen?!1:(s[e.id]=t.gen,t.threads.push(e),!0)}restricted(t,e){return e&&(this.dots||this.dotStart&&t===0)}add(t,e,s,n){switch(e.t){case"split":if(!this.#n(t,e))return;for(let o of e.out)this.add(t,o,s,n);return;case"neg":if(!this.#n(t,e))return;let r=this.state();return this.add(r,e.sub,s,!1),this.done(r),this.addRun(t,{t:"run",neg:e,state:r},s,n);case"star":if(this.restricted(s,n))return;this.#e(t,e)&&this.add(t,e.next,s,n);return;case"match":t.match=!0;return;default:this.#e(t,e)}}addRun(t,e,s,n){for(let r of t.runs)if(r.neg===e.neg&&Mt(r.state,e.state))return;t.runs.push(e),e.state.match||this.add(t,e.neg.next,s,n)}step(t,e,s,n){let r=this.state();for(let o of t.threads)switch(o.t){case"lit":tt(o,e)&&this.add(r,o.next,s+1,n);break;case"any":this.restricted(s,n)||this.add(r,o.next,s+1,n);break;case"class":!this.restricted(s,n)&&o.re.test(e)&&this.add(r,o.next,s+1,n);break;case"star":this.restricted(s,n)||this.add(r,o,s+1,n)}if(!this.restricted(s,n))for(let o of t.runs){if(o.state.dead){this.addRun(r,o,s+1,n);continue}let l=this.step(o.state,e,s,!1);this.addRun(r,{t:"run",neg:o.neg,state:l},s+1,n)}return this.done(r)}},Ct=i=>{let t=i.ids.join();if(!i.runs.length)return t;let e=i.runs.map(s=>`${s.neg.id}(${Ct(s.state)})`);return`${t}|${e.sort().join("|")}`},ge=1<<18,J=class{#t;#n=new Map;#e=0;#r;#i;#o;#s;constructor(t,e){this.#t=t,this.#o=new _(!1,!1,e),this.#s=new _(!1,!0,e)}#u(t){return{state:t,match:t.match,dead:t.dead,next:new Map}}#a(t){let e=Ct(t),s=this.#n.get(e);if(s)return s;this.#e>ge&&this.#f();let n=this.#u(t);return this.#n.set(e,n),this.#e+=e.length+1,n}#f(){this.#n.clear(),this.#e=0,this.#r=void 0,this.#i=void 0}start(t){if(t){if(this.#i)return this.#i;let s=this.#s.state();return this.#s.add(s,this.#t,0,!0),this.#i=this.#u(this.#s.done(s))}if(this.#r)return this.#r;let e=this.#o.state();return this.#o.add(e,this.#t,0,!0),this.#r=this.#a(this.#o.done(e))}next(t,e){let s=e.charCodeAt(0),n=s<128?void 0:t.next.get(e);if(n)return n;let r=t===this.#i?this.#a(this.#s.step(t.state,e,0,!0)):this.#a(this.#o.step(t.state,e,1,!0));return s<128?(t.ascii||(t.ascii=new Array(128),this.#e+=128),t.ascii[s]=r):t.next.set(e,r),this.#e++,r}},me=i=>{let t=[];for(let e=i;e.t!=="match";e=e.next){if(e.t==="split"||e.t==="neg")return;t.push(e)}return t},we=(i,t,e,s)=>{let n=0,r=e,o=-1,l=0;for(;r<s;){let c=i[n];if(c?.t==="star"){o=n++,l=r;continue}let a=t[r];if(c&&(c.t==="any"||c.t==="lit"&&tt(c,a)||c.t==="class"&&c.re.test(a))){n++,r++;continue}if(o===-1)return!1;n=o+1,r=++l}for(;i[n]?.t==="star";)n++;return n===i.length},Rt=i=>{let t=0,e=0;for(let s of i){let[n,r]=ye(s);t+=n,e+=r}return[t,e]},ye=i=>{if(i.t==="star")return[0,1/0];if(i.t!=="ext")return[1,1];if(i.type==="!")return[0,1/0];let t=i.alts.map(Rt),e=Math.min(...t.map(r=>r[0])),s=Math.max(...t.map(r=>r[1])),n=s===0?0:1/0;return i.type==="@"?[e,s]:i.type==="?"?[0,s]:i.type==="*"?[0,n]:[e,n]},St=(i,t,e)=>{for(let s=0;s<i.length;s++)if(!tt(i[s],t[e+s]))return!1;return!0},xe=/[/\ud800-\udfff]/,Se=/[\ud800-\udfff]/,j=i=>Se.test(i)?[...i]:i,bt=i=>{if(i.includes("/"))throw new Error("can only match a single path portion, got: "+i)},$=class{pattern;options;#t;#n;#e;#r;#i;#o;#s;#u=!1;#a=0;#f=1/0;#c=[];#h=[];#d;#g;#w=!1;#y;#l;constructor(t,e={}){if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=e;let{nocase:s=!1,noext:n=!1,normalize:r}=e;this.#l=r===!0?"NFC":r||void 0;let o=/^[?*+@]\(\)$/.test(t),l=ue(t,s,n||o,this.#l),[c]=Et(l,fe(l),0,l.length,!0);this.#l&&(c=Ot(c,this.#l));let[a,h]=pe(c,s);if(this.#t=a,this.#n=h,c.every(u=>u.t==="lit"))this.#i=c.map(u=>u.ch).join(""),s&&(this.#o=K(this.#i));else{let u=f=>f.t!=="lit"?void 0:s?{ch:f.ch,re:K(f.ch)}:{ch:f.ch};for(let f of c){let d=u(f);if(!d)break;this.#c.push(d)}for(let f=c.length-1;f>=0;f--){let d=u(c[f]);if(!d)break;this.#h.unshift(d)}this.#w=!!(this.#c.length||this.#h.length),s||(this.#d=this.#c.map(f=>f.ch).join(""),this.#g=this.#h.map(f=>f.ch).join("")),this.#s=me(this.#t)?.slice(this.#c.length,-this.#h.length||void 0),this.#u=!!this.#s?.every(f=>f.t==="star"||f.t==="any");let[p,g]=Rt(c);this.#a=p,this.#f=g}}test(t){return this.#l?(bt(t),this.#p(t.normalize(this.#l))):xe.test(t)?(bt(t),this.#p(t,[...t])):this.#p(t,t)}testUnchecked(t){return this.#p(this.#l?t.normalize(this.#l):t)}#p(t,e){if(this.#i!==void 0)return this.#o?this.#o.test(t):t===this.#i;let s=this.#a,n=this.#f;if(e===void 0){let h=t.length,u=h+1>>1;if(h<s||u>n)return!1;(u<s||h>n)&&(e=j(t))}if(e!==void 0&&(e.length<s||e.length>n))return!1;let r=this.#c.length;if(this.#w)if(this.#d!==void 0&&this.#g!==void 0){if(!t.startsWith(this.#d)||!t.endsWith(this.#g))return!1}else{e??=j(t);let h=e.length-this.#h.length;if(!St(this.#c,e,0)||!St(this.#h,e,h))return!1}let o=!this.options.dot&&t.startsWith(".");if(this.#s){if(t==="."||t===".."||o&&!r)return!1;if(this.#u)return!0;e??=j(t);let h=e.length-this.#h.length;return we(this.#s,e,r,h)}if(e??=j(t),t==="."||t===".."){this.#e??=xt(this.#n);let h=this.#r??=new _(!0,!1,this.#e),u=h.state();h.add(u,this.#t,0,!0);let p=h.done(u);for(let g=0;g<e.length;g++)p=h.step(p,e[g],g,!0);return p.match}this.#e??=xt(this.#n);let l=this.#y??=new J(this.#t,this.#e),c=l.start(o),a=e===t;for(let h=0;h<e.length;h++){if(c.dead)return!1;let u=a?t.charCodeAt(h):e[h].charCodeAt(0);c=c.ascii?.[u]??l.next(c,e[h])}return c.match}toString(){return de(this.#t)}};var k=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")};var et=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!1}={})=>e?t?i.replace(/[?*()[\]{}]/g,"[$&]"):i.replace(/[?*()[\]\\{}]/g,"\\$&"):t?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&");var st=(i,{windowsPathsNoEscape:t=!1,magicalBraces:e=!0}={})=>e?t?i.replace(/\[([^/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?i.replace(/\[([^/\\{}])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var b=(i,t,e={})=>(k(t),!e.nocomment&&t.charAt(0)==="#"?!1:new N(t,e).match(i)),_t=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",At={win32:{sep:"\\"},posix:{sep:"/"}},be=_t==="win32"?At.win32.sep:At.posix.sep;b.sep=be;var x=Symbol("globstar **");b.GLOBSTAR=x;var Ee=(i,t={})=>e=>b(e,i,t);b.filter=Ee;var M=(i,t={})=>Object.assign({},i,t),Oe=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return b;let t=b;return Object.assign((s,n,r={})=>t(s,n,M(i,r)),{Minimatch:class extends t.Minimatch{constructor(n,r={}){super(n,M(i,r))}static defaults(n){return t.defaults(M(i,n)).Minimatch}},unescape:(s,n={})=>t.unescape(s,M(i,n)),escape:(s,n={})=>t.escape(s,M(i,n)),filter:(s,n={})=>t.filter(s,M(i,n)),defaults:s=>t.defaults(M(i,s)),braceExpand:(s,n={})=>t.braceExpand(s,M(i,n)),match:(s,n,r={})=>t.match(s,n,M(i,r)),sep:t.sep,GLOBSTAR:x})};b.defaults=Oe;var $t=(i,t={})=>(k(i),t.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:wt(i,{max:t.braceExpandMax}));b.braceExpand=$t;var Me=(i,t,e={})=>{let s=new N(t,e);return i=i.filter(n=>s.match(n)),s.options.nonull&&!i.length&&i.push(t),i};b.match=Me;var Nt=/[?*]|[+@!]\(.*?\)|\[|\]/,kt=(i,t)=>{let e=t+1;(i.charAt(e)==="!"||i.charAt(e)==="^")&&e++;let s=!1;for(;e<i.length;e++){let n=i.charAt(e);if(n==="]"&&s)return e;s=!0,n==="\\"&&e++}return-1},Ce=(i,t)=>{if(!t&&(i==="+()"||i==="@()"))return i;let e="";for(let s=0;s<i.length;s++){let n=i.charAt(s);if(n==="\\")e+=i.charAt(++s)||n;else{if(n==="*"||n==="?")return;if(n==="["){let r=kt(i,s);if(r===-1){e+=n;continue}let o=i.slice(s+1,r);if(o.startsWith("\\")&&(o=o.slice(1)),[...o].length!==1||"!^".includes(i.charAt(s+1)))return;e+=o,s=r}else{if(!t&&"+@!".includes(n)&&i.charAt(s+1)==="("&&i.includes(")",s+2))return;e+=n}}}return e},Re=i=>{if(/^[?*+@]\(\)$/.test(i)||i.includes("[:"))return!1;let t=0;for(let e=0;e<i.length;e++){let s=i.charAt(e);if(s==="\\"){if(++e===i.length)return!1}else if(s==="["){let n=kt(i,e);n!==-1&&(e=n)}else if("+@!?*".includes(s)&&i.charAt(e+1)==="(")t++,e++;else if(s===")"){if(!t--)return!1}else if(s==="|"&&!t)return!1}return!t},nt,Pt,C=(i,t)=>typeof i=="string"?t===i:t!==""&&i.testUnchecked(t),Tt=(i,t,e,s,n)=>C(i,t)?e:s!==void 0&&C(i,s)?n:-1,ot=i=>i==="."||i==="..",it=i=>typeof i=="string"&&/^[a-z]:$/i.test(i),D=i=>typeof i=="string"&&/^unc$/i.test(i),rt=i=>{if(i[0]!==""||i[1]!=="")return-1;let t=i[2]!=="?"?2:D(i[3])?4:-1,e=i[t],s=i[t+1];return t!==-1&&e!==void 0&&e!==""&&e!==x&&s!==void 0&&s!==""&&s!==x?t:-1},z=(i,t)=>!ot(i)&&(t||!i.startsWith(".")),I=(i,t,e,s,n)=>{for(let r=t;r<e;){if(i.charCodeAt(r)===46){if(!s)return!0;let l=i.charCodeAt(r+1)===46?r+2:r+1;if(l>=e||W(i.charCodeAt(l),n))return!0}let o=ct(i,r,n);if(o===-1)return!1;for(r=o+1;r<e&&W(i.charCodeAt(r),n);)r++}return!1},W=(i,t)=>t==="/"?i===47:t==="\\"?i===92:i===47||i===92,ct=(i,t,e)=>{if(e!=="both")return i.indexOf(e,t);let s=i.indexOf("/",t),n=i.indexOf("\\",t);return s===-1?n:n===-1?s:Math.min(s,n)},vt=(i,t,e)=>e!=="both"?i.lastIndexOf(e,t):Math.max(i.lastIndexOf("/",t),i.lastIndexOf("\\",t)),N=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;#t;#n;#e;#r;#i=[];#o=[];#s=[];#u=new Map;#a=new WeakMap;constructor(t,e={}){k(t),e=e||{},this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion??200,this.pattern=t,this.platform=e.platform||_t,this.isWindows=this.platform==="win32";let s="allowWindowsEscape";this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.#t=!this.preserveMultipleSlashes,this.#e=(e.optimizationLevel??1)>=2;let n=e.normalize;this.#r=n===!0?"NFC":n||void 0,this.make();let r=this.set.map(o=>this.#c(o));this.#s=this.set.map((o,l)=>this.#t&&o.length-1>r[l]),this.#i=this.set.map((o,l)=>{let c=this.#s[l]?o.length-1:o.length,a=o.slice(r[l]+1,c).filter(h=>typeof h=="string"&&!!h);return[...new Set(a)]}),this.#n=this.#i.some(o=>o.length),this.#o=this.set.map((o,l)=>{let[c,a,h]=o;if(this.#s[l]&&o.length===2&&c===x&&a!==x)return"tail";if(this.#s[l]&&e.matchBase&&o.length===1&&c!==x&&c!=="")return"base";if(!(!this.#t||r[l]!==-1)){if(o.length===3&&c===x&&h===x&&a!==x&&a!==""&&this.maxGlobstarRecursion>0)return"mid";if(o.length===2&&a===x&&c!==x&&c!=="")return"head"}})}#f(t){return this.#r?t.normalize(this.#r):t}#c(t){if(!this.isWindows)return-1;if(it(t[0]))return 0;if(t[0]===""&&t[1]===""&&t[2]==="?"&&it(t[3]))return 3;let s=rt(t);return s===-1?-1:s+1}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if(typeof e!="string")return!0;return!1}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let s=this.globSet.map(r=>this.#S(r));this.globParts=this.preprocess(s);let n=this.globParts.map((r,o,l)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&D(r[3])?6:4,a=r[0]===""&&r[1]===""&&(r[2]==="?"||!Nt.test(r[2]))&&r.slice(3,c).every(u=>!Nt.test(u)),h=/^[a-z]:/i.test(r[0]);if(a)return[...r.slice(0,c).map(u=>this.#f(u)),...r.slice(c).map(u=>this.parse(u))];if(h)return[this.#f(r[0]),...r.slice(1).map(u=>this.parse(u))]}return r.map(c=>this.parse(c))});if(this.set=n.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]==="?"&&(it(o[3])||D(this.globParts[r][3]))&&(D(this.globParts[r][3])&&(o[3]="UNC"),o[2]="?")}e.noext||this.mergeRows()}mergeRows(){let t=!0;for(;t;){t=!1;let e=Math.max(0,...this.set.map(s=>s.length));for(let s=0;s<e;s++){let n=new Map;this.set.forEach((o,l)=>{if(!(o[s]instanceof $)||!Re(this.globParts[l][s]))return;let c=[...this.globParts[l]];c[s]="";let a=`${o.length}/${c.join("/")}`,h=n.get(a);h?h.push(l):n.set(a,[l])});let r=new Set;for(let o of n.values()){if(o.length<2)continue;let[l,...c]=o,h=`@(${o.map(u=>this.globParts[u][s]).join("|")})`;this.globParts[l][s]=h,this.set[l][s]=this.parse(h);for(let u of c)r.add(u)}r.size&&(t=!0,this.set=this.set.filter((o,l)=>!r.has(l)),this.globParts=this.globParts.filter((o,l)=>!r.has(l)))}}}preprocess(t){if(this.options.noglobstar)for(let s of t)for(let n=0;n<s.length;n++)s[n]==="**"&&(s[n]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):e>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let n=s;for(;e[n+1]==="**";)n++;n!==s&&e.splice(s,n-s)}return e})}levelOneOptimize(t){return t.map(e=>{let s=this.#c(e)+1;return e=e.reduce((n,r)=>{let o=n[n.length-1];return r==="**"&&o==="**"?n:r===".."&&n.length>s&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(r),n)},[]),e.length===0?[""]:e})}#h(t){let e=!this.isWindows||!t.includes("\\")?"/":t.includes("/")?"both":"\\",s=this.#t?0:-1,n="",r=0,o,l=0,c=!!this.options.dot;t:for(let a=0;a<this.set.length;a++){let h=this.set[a],u=h[h.length-1],p=s!==-1&&this.#s[a]&&u!==x;if(p&&s===0){let d=vt(t,t.length,e);if(r=d+1,n=t.slice(r),n===""&&d>=0){let m=d;for(;m>0&&W(t.charCodeAt(m-1),e);)m--;l=m===0?0:vt(t,m-1,e)+1,o=t.slice(l,m)}let S=this.#e&&(ot(n)||n===""&&o!==void 0&&ot(o));s=S?-1:1,p=!S}let g=-1;if(p&&typeof u=="string"&&(g=Tt(u,n,r,o,l),g===-1))continue;if(this.#n){for(let d of this.#i[a])if(!t.includes(d))continue t}if(p&&typeof u=="object"&&(g=Tt(u,n,r,o,l),g===-1))continue;let f=this.#o[a];if(f==="base"&&p)return"yes";if(f==="tail"&&p){if(this.#e&&I(t,0,g,!0,e))return"maybe";if(!I(t,0,g,c,e))return"yes";continue}if(f==="mid"||f==="head"){let d=this.#g(t,h,f==="head",c,e);if(d!=="no")return d;continue}return"maybe"}return"no"}#d(t,e,s){let n=!!this.options.dot,r=t.length;if(s==="head"){if(r<2||!C(e[0],t[0]))return!1;for(let l=1;l<r;l++)if(!z(t[l],n))return!1;return!0}let o=e[1];if(s==="tail"){let l=r-1;if(!C(o,t[l])&&(t[l]!==""||r===1||!C(o,t[--l])))return!1;for(let c=0;c<l;c++)if(!z(t[c],n))return!1;return!0}for(let l=0;l<r;l++){if(C(o,t[l])&&l+1<r){let c=l+1;for(;c<r&&z(t[c],n);)c++;if(c===r)return!0}if(!z(t[l],n))return!1}return!1}#g(t,e,s,n,r){if(this.#e&&I(t,0,t.length,!0,r))return"maybe";let o=e[s?0:1],l=0;for(let c=ct(t,l,r);c!==-1;c=ct(t,l,r)){let a=c+1;for(;a<t.length&&W(t.charCodeAt(a),r);)a++;if((typeof o=="string"?c-l===o.length&&t.startsWith(o,l):c>l&&o.testUnchecked(t.slice(l,c)))&&!I(t,a,t.length,n,r))return"yes";if(s||I(t,l,a,n,r))return"no";l=a}return"no"}#w(t){let e=nt;return e?.f===t&&e.isWindows===this.isWindows&&e.preserveMultipleSlashes===this.preserveMultipleSlashes&&e.normalize===this.#r?e:void 0}#y(t){let{isWindows:e,preserveMultipleSlashes:s}=this,n=this.#S(e?t.split("\\").join("/"):t),r=this.#r;return r&&(n=n.map(o=>o.normalize(r))),nt={f:t,isWindows:e,preserveMultipleSlashes:s,normalize:r,parts:n},nt}#l(t){let e=[...t],s=!1;do{if(s=!1,!this.preserveMultipleSlashes){for(let o=1;o<e.length-1;o++){let l=e[o];o===1&&l===""&&e[0]===""||(l==="."||l==="")&&(s=!0,e.splice(o,1),o--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(s=!0,e.pop())}let n=this.#c(e)+1,r=n;for(;(r=e.indexOf("..",r+1))!==-1;){let o=e[r-1];o&&o!=="."&&o!==".."&&o!=="**"&&(s=!0,e.splice(r-1,2),r=Math.max(r-2,n))}}while(s);return e.length===0?[""]:e}firstPhasePreProcess(t){let{braceExpandMax:e=1e5}=this.options,s=!1;do{s=!1;for(let n of t){let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let c=r;for(;n[c+1]==="**";)c++;c>r&&n.splice(r+1,c-r);let a=n[r+1],h=n[r+2],u=n[r+3];if(a!==".."||!h||h==="."||h===".."||!u||u==="."||u===".."||t.length>=e)continue;s=!0,n.splice(r,1);let p=n.slice(0);p[r]="**",t.push(p),r--}if(!this.preserveMultipleSlashes){for(let c=1;c<n.length-1;c++){let a=n[c];c===1&&a===""&&n[0]===""||(a==="."||a==="")&&(s=!0,n.splice(c,1),c--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(s=!0,n.pop())}let o=this.#c(n)+1,l=o;for(;(l=n.indexOf("..",l+1))!==-1;){let c=n[l-1];if(c&&c!=="."&&c!==".."&&c!=="**"){s=!0;let h=l===1&&n[l+1]==="**"?["."]:[];n.splice(l-1,2,...h),n.length===0&&n.push(""),l=Math.max(l-2,o)}}}}while(s);return t}secondPhasePreProcess(t){if(t.length>1e3)return t;for(let e=0;e<t.length-1;e++)for(let s=e+1;s<t.length;s++){let n=this.partsMatch(t[e],t[s],!this.preserveMultipleSlashes);if(n){t[e]=[],t[s]=n;break}}return t.filter(e=>e.length)}partsMatch(t,e,s=!1){let n=0,r=0,o=[],l="";for(;n<t.length&&r<e.length;)if(t[n]===e[r])o.push(l==="b"?e[r]:t[n]),n++,r++;else if(s&&t[n]==="**"&&e[r]===t[n+1])o.push(t[n]),n++;else if(s&&e[r]==="**"&&t[n]===e[r+1])o.push(e[r]),r++;else if(t[n]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(l==="b")return!1;l="a",o.push(t[n]),n++,r++}else if(e[r]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(l==="a")return!1;l="b",o.push(e[r]),n++,r++}else return!1;return t.length===e.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,s=0;for(let n=0;n<t.length&&t.charAt(n)==="!";n++)e=!e,s++;s&&(this.pattern=t.slice(s)),this.negate=e}#p(t,e,s,n){let r=0,o=0,l=this.isWindows?rt(e):-1,c=l===-1?-1:rt(s);if(c!==-1){let a=s[c],h=s[c+1];typeof a!="string"||typeof h!="string"?(r=l,o=c):e[l].toLowerCase()===a.toLowerCase()&&e[l+1].toLowerCase()===h.toLowerCase()&&(r=l+2,o=c+2)}else if(this.isWindows){let a=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),h=!a&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),p=!u&&s[0]===""&&s[1]===""&&s[2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3]),g=h?3:a?0:void 0,f=p?3:u?0:void 0;if(typeof g=="number"&&typeof f=="number"){let[d,S]=[t[g],s[f]];d.toLowerCase()===S.toLowerCase()&&(o=f+1,r=g+1)}}return t=e,s.includes(x)?this.#b(t,s,n,r,o):this.#m(t,s,n,r,o)}#b(t,e,s,n,r){let{head:o,body:l,tail:c,segments:a}=this.#E(e,s,r);if(o.length){let u=n+o.length;if(!this.#m(t,o,s,n,0,u))return!1;n+=o.length,r+=o.length}let h=0;if(c.length){if(c.length+n>t.length)return!1;let u=t.length-c.length;if(this.#m(t,c,s,u,0))h=c.length;else{if(t[t.length-1]!==""||n+c.length===t.length||(u--,!this.#m(t,c,s,u,0)))return!1;h=c.length+1}}if(!l.length){let u=!!h;for(let p=n;p<t.length-h;p++){let g=String(t[p]);if(u=!0,g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return s||u}return!!this.#x(t,a,t.length-h,n,0,s,0,!!h,new Set)}#E(t,e,s){let n=this.#a.get(t);n||(n=[],this.#a.set(t,n));let r=s*2+(e?1:0),o=n[r];if(o)return o;let l=t.indexOf(x,s),c=t.lastIndexOf(x),a=t.slice(s,l),h=t.slice(l+1,e?void 0:c),u=e?[]:t.slice(c+1),p=[[[],0]],g=p[0],f=0,d=[0];for(let m of h)m===x?(d.push(f),g=[[],0],p.push(g)):(g[0].push(m),f++);p.forEach((m,y)=>{m[1]=f-d[y]});let S={head:a,body:h,tail:u,segments:p};return n[r]=S,S}#x(t,e,s,n,r,o,l,c,a){let h=e[r];if(!h){if(o)return n>=s||n===s-1&&t[n]==="";for(let f=n;f<s;f++){c=!0;let d=t[f];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return c}let[u,p]=h,g=o?s:s-p;for(;n<=g;){let f=r*(t.length+1)+n;if(a.has(f))return!1;if(a.add(f),this.#m(t,u,o,n,0,n+u.length)&&l<this.maxGlobstarRecursion){let m=this.#x(t,e,s,n+u.length,r+1,o,l+1,c,a);if(m!==!1)return m}if(n===g)break;let S=t[n];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1;n++}return o||null}#m(t,e,s,n,r,o=t.length){let l,c,a,h;for(l=n,c=r,h=Math.min(o,t.length),a=e.length;l<h&&c<a;l++,c++){let u=e[c],p=t[l];if(u===!1||u===x||!C(u,p))return!1}if(l===h&&c===a)return!0;if(l===h)return s;if(c===a)return l===h-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return $t(this.pattern,this.options)}parse(t){k(t);let e=this.options;if(t==="**")return x;if(t==="")return"";let{nocase:s,nocaseMagicOnly:n,noext:r=!1,dot:o,normalize:l}=e,c=Ce(t,r);if(c!==void 0&&!(s&&!n&&t.toUpperCase()!==t.toLowerCase()))return this.#f(c);let a=this.#u.get(t);return a||(a=new $(t,{nocase:s,noext:r,dot:o,normalize:l}),this.#u.set(t,a)),a}#S(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;let s=this.options,n=this.#w(t);if(!n){if(!e&&!this.#r&&(this.#t||this.#n)&&Pt!==t){Pt=t;let a=this.#h(t);if(a==="no")return s.flipNegate?!1:this.negate;if(a==="yes")return s.flipNegate?!0:!this.negate}n=this.#y(t)}let r=n.parts,o=this.#e?n.resolved??=this.#l(r):r,l=this.set,c=r[r.length-1];if(!c)for(let a=r.length-2;!c&&a>=0;a--)c=r[a];for(let a=0;a<l.length;a++){let h=l[a],u=e?void 0:this.#o[a];if(u==="base"?C(h[0],c):u?this.#d(o,h,u):s.matchBase&&h.length===1?this.#p([c],[c],h,e):this.#p(r,o,h,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(t){return b.defaults(t).Minimatch}};b.Minimatch=N;b.escape=et;b.unescape=st;import F from"node:path";import Ae from"node:process";import Ne from"node:path";import It,{promises as ws}from"node:fs";import{fileURLToPath as Pe}from"node:url";var Ft={directory:"isDirectory",file:"isFile"};function Te(i){if(!(i==="both"||Object.hasOwn(Ft,i)))throw new Error(`Invalid type specified: ${i}`)}var ve=(i,t)=>i==="both"?t.isFile()||t.isDirectory():t[Ft[i]](),_e=i=>i instanceof URL?Pe(i):i;function lt(i,{cwd:t=Ae.cwd(),type:e="file",allowSymlinks:s=!0}={}){Te(e),t=_e(t);let n=s?It.statSync:It.lstatSync;for(let r of i)try{let o=n(Ne.resolve(t,r),{throwIfNoEntry:!1});if(!o)continue;if(ve(e,o))return r}catch{}}import{promisify as $e}from"node:util";import{execFile as ke,execFileSync as Os}from"node:child_process";import{fileURLToPath as Ie}from"node:url";var Cs=$e(ke);function at(i){return i instanceof URL?Ie(i):i}var Rs=10*1024*1024;var Fe=Symbol("findUpStop");function Le(i,t={}){let e=F.resolve(at(t.cwd)??""),{root:s}=F.parse(e),n=F.resolve(e,at(t.stopAt)??s),r=t.limit??Number.POSITIVE_INFINITY,o=[i].flat(),l=a=>{if(typeof i!="function")return lt(o,a);let h=i(a.cwd);return typeof h=="string"?lt([h],a):h},c=[];for(;;){let a=l({...t,cwd:e});if(a===Fe||(a&&c.push(F.resolve(e,a)),e===n||c.length>=r))break;e=F.dirname(e)}return c}function je(i,t={}){return Le(i,{...t,limit:1})[0]}import ht from"node:process";import ze from"node:os";import Lt from"node:tty";function E(i,t=globalThis.Deno?globalThis.Deno.args:ht.argv){let e=i.startsWith("-")?"":i.length===1?"-":"--",s=t.indexOf(e+i),n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}var{env:w}=ht,G;E("no-color")||E("no-colors")||E("color=false")||E("color=never")?G=0:(E("color")||E("colors")||E("color=true")||E("color=always"))&&(G=1);function De(){if(!("FORCE_COLOR"in w))return;if(w.FORCE_COLOR==="true")return 1;if(w.FORCE_COLOR==="false")return 0;if(w.FORCE_COLOR.length===0)return 1;if(!/^\d+$/v.test(w.FORCE_COLOR))return;let i=Math.min(Number(w.FORCE_COLOR),3);if([0,1,2,3].includes(i))return i}function We(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function Ge(i,{streamIsTTY:t,sniffFlags:e=!0}={}){let s=De();s!==void 0&&(G=s);let n=e?G:s;if(n===0)return 0;if(e){if(E("color=16m")||E("color=full")||E("color=truecolor"))return 3;if(E("color=256"))return 2}if(n!==void 0&&/^\d+$/v.test(w.FORCE_COLOR))return n;if("TF_BUILD"in w&&"AGENT_NAME"in w)return 1;if(i&&!t&&n===void 0)return 0;let r=n||0;if(w.TERM==="dumb")return r;if(ht.platform==="win32"){let o=ze.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in w)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>Object.hasOwn(w,o))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>Object.hasOwn(w,o))||w.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in w)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/v.test(w.TEAMCITY_VERSION)?1:0;if(w.COLORTERM==="truecolor"||w.TERM==="xterm-kitty"||w.TERM==="xterm-ghostty"||w.TERM==="wezterm")return 3;if("TERM_PROGRAM"in w){let o=Number((w.TERM_PROGRAM_VERSION||"").split(".",1)[0]);switch(w.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(?:color)?$/iv.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/iv.test(w.TERM)||"COLORTERM"in w?1:r}function jt(i,t={}){let e=Ge(i,{streamIsTTY:i&&i.isTTY,...t});return We(e)}var Ue={stdout:jt({isTTY:Lt.isatty(1)}),stderr:jt({isTTY:Lt.isatty(2)})},Be=Ue;export{N as Minimatch,je as findUpSync,b as minimatch,Be as supportsColor};